/* PremierStock Radar — 증시 일기도 / 예보와 검증 장부
   Paper + ink like the PremierStock research desk; ochre is the only accent.
   Red (up) and blue (down) follow the Korean market convention and appear only on direction data. */

@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(./vendor/ibm-plex-mono/ibm-plex-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(./vendor/ibm-plex-mono/ibm-plex-mono-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url(./vendor/CormorantGaramond-Medium-latin.woff2) format('woff2'); }

:root {
  --paper: #f3f0e8;
  --paper-2: #ebe7dc;
  --paper-3: #e2ddcf;
  --card: #f8f6f0;
  --ink: #16150f;
  --ink-2: #34322a;
  --mute: #6b685d;
  --mute-2: #8f8c80;
  --rule: rgba(22, 21, 15, .14);
  --rule-strong: rgba(22, 21, 15, .32);
  --ochre: #a8700a;
  --ochre-soft: rgba(168, 112, 10, .12);
  --up: #c8331e;
  --dn: #1f4e9c;
  --miss: #8a877c;
  --mute-l: var(--mute); /* alias used by inline styles in app.js (basket) */

  --sans: PremiereSans, 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, PremiereSans, 'Pretendard Variable', 'Apple SD Gothic Neo', 'Malgun Gothic', monospace;
  --latin: 'Cormorant Garamond', 'Times New Roman', serif;

  --gutter: clamp(18px, 4.2vw, 64px);
  --maxw: 1280px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Subtle paper tooth, nothing more */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .09 0 0 0 0 .08 0 0 0 0 .06 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
code { font-family: var(--mono); font-size: .9em; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 6px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }

.muted { color: var(--mute); }
.muted-sm { color: var(--mute); font-size: .84rem; }
.up-c { color: var(--up); }
.dn-c { color: var(--dn); }
.hit-c { color: var(--ochre); }
.miss-c { color: var(--miss); }
.warn-c { color: var(--up); }

.sec-inner { width: min(var(--maxw), 100% - var(--gutter) * 2); margin-inline: auto; }
section { position: relative; }

.section-tag {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  font-size: .86rem; font-weight: 600; color: var(--ink-2);
}
.section-tag .mono {
  font-size: .72rem; padding: 2px 7px;
  border: 1px solid var(--rule-strong); border-radius: 3px;
  color: var(--ochre); font-weight: 500;
}
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.035em; line-height: 1.15; }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.4rem); font-weight: 800; }
h2 .line { overflow: hidden; padding-bottom: .06em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 18px;
  border: 1px solid var(--ink); border-radius: 4px;
  background: transparent; color: var(--ink);
  font-weight: 700; font-size: .95rem; text-decoration: none; line-height: 1.3; text-align: center;
  transition: background .18s, color .18s, transform .12s, box-shadow .18s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active, .chip-btn:active, .tab-btn:active, .search-submit:active, .header-cta:active, .header-pass:active, .work-row:active, .dd-item:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ochre); border-color: var(--ochre); color: #fff; }
.btn-outline { background: var(--card); }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: .84rem; }
.btn-danger { border-color: var(--up); color: var(--up); background: var(--card); }
.btn-danger:hover { background: var(--up); color: #fff; }
.btn-pill-paper { background: var(--card); }
.btn-paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-paper:hover { background: var(--ochre); border-color: var(--ochre); color: #fff; }
.btn-ghost-light { border-color: rgba(243, 240, 232, .4); color: var(--paper); }
.btn-ghost-light:hover { background: var(--paper); color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  height: var(--header-h);
  display: flex; align-items: center; gap: 14px;
  padding: 0 var(--gutter);
  background: rgba(243, 240, 232, .88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: transform .35s var(--ease), border-color .2s;
}
.site-header.is-solid { border-bottom-color: var(--rule); }
.site-header.is-hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.6; }
.brand-mark path { stroke: var(--ochre); stroke-width: 2.4; stroke-linecap: round; }
.brand-word { font-family: var(--latin); font-size: 1.42rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1; }
.brand-tag { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ochre); border-left: 1px solid var(--rule-strong); padding-left: 9px; }
.nav { display: flex; gap: 2px; margin: 0 auto; min-width: 0; }
.nav a {
  position: relative; padding: 7px 10px; font-size: .87rem; font-weight: 600;
  text-decoration: none; color: var(--ink-2); border-radius: 4px; white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; background: var(--ochre); }
.header-right { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.clock { margin: 0; font-size: .75rem; color: var(--mute); white-space: nowrap; }
.lang-switch { white-space: nowrap; min-height: 34px; padding: 4px 9px; border: 1px solid var(--rule-strong); background: transparent; color: var(--ink); border-radius: 3px; font-size: .74rem; font-weight: 500; letter-spacing: .04em; flex-shrink: 0; }
.lang-switch:hover { border-color: var(--ink); }
.header-pass {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 6px 11px;
  border: 1px solid var(--rule-strong); border-radius: 4px; background: var(--card);
  font-size: .84rem; font-weight: 700; white-space: nowrap; flex-shrink: 0;
}
.pass-pill { font-size: .7rem; padding: 1px 6px; border-radius: 3px; background: var(--paper-3); color: var(--ink-2); }
.alert-dot { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--up); color: #fff; font-size: .66rem; font-weight: 800; display: grid; place-items: center; }
.header-cta {
  min-height: 38px; padding: 6px 14px; border: 1px solid var(--ink); border-radius: 4px;
  background: var(--ink); color: var(--paper); font-weight: 700; font-size: .85rem; white-space: nowrap; flex-shrink: 0;
  transition: background .18s, border-color .18s;
}
.header-cta:hover { background: var(--ochre); border-color: var(--ochre); }
.menu-button { display: none; width: 42px; height: 42px; border: 1px solid var(--rule-strong); border-radius: 4px; background: var(--card); position: relative; }
.menu-button span:not(.sr-only) { position: absolute; left: 11px; right: 11px; height: 1.6px; background: var(--ink); transition: transform .25s var(--ease), top .25s; }
.menu-button span:nth-child(1) { top: 16px; }
.menu-button span:nth-child(2) { top: 24px; }
.menu-button[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 55;
  background: var(--paper); padding: 22px var(--gutter) 30px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease);
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { display: flex; align-items: baseline; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--rule); font-size: 1.3rem; font-weight: 800; text-decoration: none; letter-spacing: -0.03em; }
.mobile-menu nav small { font-size: .72rem; color: var(--ochre); font-weight: 500; }
.mobile-menu-foot { display: grid; gap: 12px; margin-top: 24px; }
.mobile-pass-btn { min-height: 48px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); border-radius: 4px; font-weight: 700; }
.mobile-pass-btn.mobile-lang-btn { background: transparent; color: var(--ink); font-family: var(--mono); font-weight: 500; }
.mobile-menu-foot p { margin: 0; font-size: .74rem; color: var(--mute); }

/* ---------- Toast & passcode ---------- */
.toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 400; transform: translateX(-50%);
  max-width: min(560px, calc(100% - 32px)); padding: 12px 18px;
  background: var(--ink); color: var(--paper); border-radius: 4px; font-size: .9rem; font-weight: 600;
  box-shadow: 0 10px 30px rgba(22, 21, 15, .25);
  animation: toast-in .25s var(--ease);
}
.toast-err { background: var(--up); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }

.passcode-banner { position: relative; z-index: 20; margin-top: var(--header-h); background: var(--ink); color: var(--paper); }
.passcode-banner:not(.hidden) + main .hero { padding-top: 40px; }
.passcode-banner-inner { width: min(var(--maxw), 100% - var(--gutter) * 2); margin: 0 auto; padding: 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.passcode-copy { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .9rem; }
.passcode-kicker { font-size: .7rem; color: var(--ink); background: #e5b55a; padding: 2px 7px; border-radius: 3px; }
.code-chip { padding: 3px 10px; border: 1px dashed rgba(243, 240, 232, .55); border-radius: 3px; font-size: .92rem; letter-spacing: .04em; }
.passcode-sub { color: rgba(243, 240, 232, .7); font-size: .82rem; }
.passcode-actions { display: flex; gap: 8px; }
.passcode-banner .btn-outline { background: transparent; color: var(--paper); border-color: rgba(243, 240, 232, .45); }
.passcode-banner .btn-primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--header-h) + clamp(36px, 6vw, 76px)) 0 clamp(48px, 7vw, 96px); }
.hero-grid {
  width: min(var(--maxw), 100% - var(--gutter) * 2); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(28px, 4vw, 64px); align-items: center;
}
.kicker { margin: 0 0 22px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.kicker .mono { font-size: .72rem; background: var(--ink); color: var(--paper); padding: 3px 8px; border-radius: 3px; }
.hero-title { font-size: clamp(2.3rem, 1rem + 4vw, 4.5rem); font-weight: 900; letter-spacing: -0.055em; line-height: 1.04; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .05em; }
.hero-title .line-in { display: inline-block; }
.hero-title em, .contact-title em {
  font-style: normal; position: relative; z-index: 0;
  background: linear-gradient(transparent 62%, rgba(168, 112, 10, .32) 62%, rgba(168, 112, 10, .32) 90%, transparent 90%);
}
.hero-lede { margin: 26px 0 0; max-width: 34em; color: var(--ink-2); font-size: 1.02rem; }
.hero-lede strong { color: var(--ink); }

.search-station { position: relative; margin-top: 30px; max-width: 600px; }
.search-label { display: block; font-size: .72rem; color: var(--mute); margin-bottom: 8px; text-transform: none; }
.search-bar {
  display: flex; align-items: stretch;
  border: 1.5px solid var(--ink); border-radius: 4px; background: var(--card);
  box-shadow: 4px 4px 0 var(--ink);
  transition: box-shadow .18s, transform .18s;
}
.search-bar:focus-within { box-shadow: 2px 2px 0 var(--ink); transform: translate(2px, 2px); }
.search-bar input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 14px 16px; font-size: 1rem; outline: none; }
.search-bar input::placeholder { color: var(--mute-2); }
.search-submit { flex-shrink: 0; border: 0; border-left: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); padding: 0 22px; font-weight: 800; font-size: 1rem; transition: background .18s; }
.search-submit:hover { background: var(--ochre); }
.search-dropdown {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30;
  max-height: 320px; overflow-y: auto;
  background: var(--card); border: 1px solid var(--ink); border-radius: 4px; box-shadow: 0 16px 40px rgba(22, 21, 15, .16);
}
.search-station .search-dropdown { top: 82px; }
.dd-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--rule); cursor: pointer; }
.dd-item:last-child { border-bottom: 0; }
.dd-item:hover { background: var(--paper-2); }
.hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; }
.chip-btn, .chip-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px;
  padding: 5px 11px; border: 1px solid var(--rule-strong); border-radius: 3px; background: transparent;
  font-size: .84rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.chip-btn .mono { font-size: .72rem; color: var(--mute); }
.chip-btn:hover, .chip-link:hover { background: var(--card); border-color: var(--ink); }
.chip-link { color: var(--ochre); border-style: dashed; }

/* Weather-map card */
.wx-card {
  margin: 0; position: relative;
  background: var(--card);
  border: 1px solid var(--ink);
  box-shadow: 8px 8px 0 var(--paper-3), 8px 8px 0 1px var(--rule-strong);
  border-radius: 2px;
}
.wx-head { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--rule); font-size: .72rem; color: var(--ink-2); }
.wx-asof { color: var(--mute); white-space: nowrap; }
.wx-stage {
  position: relative; aspect-ratio: 5 / 4;
  background:
    linear-gradient(var(--rule) 1px, transparent 1px) 0 0 / 100% 28px,
    var(--card);
  background-blend-mode: normal;
  overflow: hidden;
}
.wx-stage::before { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--card), transparent 8%, transparent 92%, var(--card)); pointer-events: none; z-index: 1; }
.wx-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.wx-stamp {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  padding: 8px 12px 9px; border: 1.5px solid var(--ochre); border-radius: 3px;
  color: var(--ochre); background: rgba(248, 246, 240, .88);
  transform: rotate(-2.5deg);
  box-shadow: inset 0 0 0 3px rgba(248, 246, 240, .88), inset 0 0 0 4px rgba(168, 112, 10, .5);
}
.wx-stamp dl { margin: 0; display: grid; gap: 2px; }
.wx-stamp dl > div { display: flex; gap: 10px; justify-content: space-between; }
.wx-stamp dt { font-size: .66rem; opacity: .85; }
.wx-stamp dd { margin: 0; font-size: .74rem; font-weight: 500; white-space: nowrap; }
.wx-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 14px; border-top: 1px solid var(--rule); font-size: .8rem; color: var(--ink-2); }
.wx-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.wx-legend b { font-weight: 500; color: var(--ink); }
.lg { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.lg-up { background: var(--up); }
.lg-dn { background: var(--dn); }
.lg-pass { border: 1.4px solid var(--ink-2); }

/* ---------- Report dossier (opens under the hero) ---------- */
.report-stage { width: min(var(--maxw), 100% - var(--gutter) * 2); margin: clamp(32px, 5vw, 56px) auto 0; }
.dossier-card {
  background: var(--card); border: 1px solid var(--ink); border-radius: 2px;
  padding: clamp(18px, 3vw, 36px);
  box-shadow: 6px 6px 0 var(--paper-3);
}
.dossier-topbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px dashed var(--rule-strong); }
.dossier-serial { font-size: .72rem; color: var(--mute); overflow-wrap: anywhere; }
.dossier-close { min-height: 36px; border: 1px solid var(--rule-strong); background: transparent; border-radius: 3px; padding: 4px 12px; font-weight: 700; font-size: .84rem; white-space: nowrap; }
.dossier-close:hover { border-color: var(--ink); }
.dossier-actions { display: flex; gap: 8px; align-items: center; }
a.dossier-close { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.report-title-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 10px 0 6px; }
.report-stock-name { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); font-weight: 900; letter-spacing: -0.045em; }
.report-stock-sym { font-family: var(--mono); color: var(--mute); }
.report-head .muted { margin: 0; font-size: .9rem; }
.pill { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 8px; border-radius: 3px; font-size: .74rem; font-weight: 700; border: 1px solid var(--rule-strong); background: var(--paper); white-space: nowrap; }
.pill a { text-decoration: none; }
.pill-mk { font-family: var(--mono); font-weight: 500; }
.pill-liq { color: var(--ink-2); }
.pill-warn { border-color: var(--up); color: var(--up); white-space: normal; }
.pill-accent { border-color: var(--ochre); color: var(--ochre); background: var(--ochre-soft); }
.pill-neutral { color: var(--ink-2); }
.verdict-box { padding: 12px 16px; border: 1.5px solid var(--ink); border-radius: 3px; min-width: 210px; background: var(--paper); }
.verdict-up { border-color: var(--up); color: var(--up); }
.verdict-down { border-color: var(--dn); color: var(--dn); }
.v-label { font-family: var(--mono); font-size: .66rem; color: var(--mute); }
.v-val { font-weight: 800; font-size: 1.05rem; }
.prob-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.prob-box { border: 1px solid var(--rule-strong); border-radius: 3px; padding: 14px 16px; background: var(--paper); }
.p-title { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-weight: 800; font-size: .92rem; margin-bottom: 8px; }
.p-title .mono { font-weight: 400; font-size: .7rem; color: var(--mute); }
.p-nums { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .9rem; font-weight: 500; }
.bar-track { display: flex; height: 6px; background: var(--paper-3); margin: 8px 0; overflow: hidden; }
.bar-fill-up { background: var(--up); }
.bar-fill-dn { background: var(--dn); margin-left: auto; }
.p-sub { font-size: .8rem; color: var(--mute); }
.sec-h { font-size: 1.08rem; font-weight: 800; margin: 28px 0 12px; letter-spacing: -0.02em; }
.quad-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule-strong); }
.quad-item { padding: 12px 14px; border-right: 1px solid var(--rule); display: grid; gap: 4px; font-size: .84rem; color: var(--ink-2); }
.quad-item:last-child { border-right: 0; }
.quad-item strong { font-family: var(--mono); font-weight: 500; font-size: 1rem; color: var(--ink); }
.badge-mini { display: inline-block; font-family: var(--mono); font-size: .68rem; padding: 1px 6px; border: 1px solid var(--rule-strong); border-radius: 3px; color: var(--ink-2); white-space: nowrap; }
.ai-box { border-left: 3px solid var(--ochre); background: var(--paper); padding: 14px 18px; font-size: .95rem; white-space: pre-wrap; }
.factor-cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.factor-cat-card { border: 1px solid var(--rule-strong); border-radius: 3px; padding: 14px 16px; background: var(--paper); }
.factor-cat-title { font-weight: 800; font-size: .9rem; margin-bottom: 8px; }
.factor-row { margin: 8px 0; }
.factor-row-top { display: flex; justify-content: space-between; gap: 10px; font-size: .82rem; }
.factor-row-top strong { font-family: var(--mono); font-weight: 500; }
.factor-bar-bg { height: 4px; background: var(--paper-3); margin-top: 4px; }
.factor-bar-val { height: 100%; background: var(--ink-2); }
.factor-bar-good { background: var(--ochre); }
.factor-bar-warn { background: var(--up); }

.paywall-box {
  margin-top: 22px; padding: clamp(18px, 3vw, 30px);
  border: 1px dashed var(--ink); border-radius: 3px; background: var(--paper-2); text-align: center;
}
.paywall-kicker { font-size: .72rem; color: var(--ochre); }
.paywall-box h3 { margin: 8px 0 8px; font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); font-weight: 800; }
.paywall-box p { max-width: 640px; margin: 0 auto; font-size: .92rem; }
.paywall-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

/* ---------- Manifesto ---------- */
.manifesto { padding: clamp(64px, 9vw, 128px) 0; border-top: 1px solid var(--rule); }
.manifesto-text { margin: 0; max-width: 22em; font-size: clamp(1.45rem, 1rem + 1.8vw, 2.5rem); font-weight: 800; line-height: 1.38; letter-spacing: -0.04em; color: var(--ink); }
.js .manifesto-text .word { color: rgba(22, 21, 15, .2); transition: color .25s; }
.js .manifesto-text .word.is-lit { color: var(--ink); }
.manifesto-text strong { box-shadow: inset 0 -0.32em 0 rgba(168, 112, 10, .28); }
.is-static .manifesto-text .word { color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(40px, 6vw, 72px) 0 0; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--rule-strong); }
.facts > div { padding: 18px 18px 20px; border-right: 1px solid var(--rule); }
.facts > div:first-child { padding-left: 0; }
.facts > div:last-child { border-right: 0; }
.facts dt { font-size: .82rem; color: var(--mute); }
.facts dd { margin: 10px 0 0; display: flex; align-items: baseline; gap: 4px; }
.facts .count { font-family: var(--mono); font-size: clamp(2rem, 1.4rem + 2vw, 3.1rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.facts small { font-size: .85rem; color: var(--ink-2); font-weight: 600; }
.meta-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.meta-card { border: 1px solid var(--rule-strong); border-radius: 3px; background: var(--card); padding: 16px 18px; }
.meta-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .76rem; }
.meta-regime { margin: 8px 0 12px; font-size: 1.05rem; }
.meta-regime strong { font-weight: 800; margin-left: 6px; }
.meta-bar { display: flex; height: 10px; gap: 2px; background: transparent; }
.meta-bar i { display: block; min-width: 0; }
.meta-bar .mb-up { background: var(--up); min-width: 4px; }
.meta-bar .mb-dn { background: var(--dn); min-width: 4px; }
.meta-bar .mb-up[style*="flex-grow:0"], .meta-bar .mb-dn[style*="flex-grow:0"] { display: none; }
.meta-bar .mb-pass { background: repeating-linear-gradient(90deg, var(--paper-3) 0 6px, transparent 6px 8px); border: 1px solid var(--rule-strong); }
.meta-nums { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .86rem; font-weight: 700; }
.meta-nums b { font-weight: 500; }
.meta-nums .muted-sm { font-weight: 500; }

/* ---------- Section heads ---------- */
.sec-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px 48px; align-items: end; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-lede { margin: 0; color: var(--ink-2); font-size: .98rem; max-width: 34em; }
.sec-head-side { display: grid; gap: 18px; }
.loading-line { margin: 0; padding: 26px 0; color: var(--mute); font-size: .82rem; text-align: center; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .45; } }

/* ---------- Bulletin (today's forecast) ---------- */
.radar-sec { padding: clamp(64px, 9vw, 120px) 0; background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--ink); border-radius: 3px; width: fit-content; max-width: 100%; background: var(--card); }
.tab-btn { min-height: 40px; padding: 6px 14px; border: 0; border-right: 1px solid var(--rule-strong); background: transparent; font-weight: 700; font-size: .86rem; white-space: nowrap; }
.tab-btn:last-child { border-right: 0; }
.tab-btn .mono { font-size: .74rem; color: var(--mute); }
.tab-btn.active { background: var(--ink); color: var(--paper); }
.tab-btn.active .mono { color: #e5b55a; }
.bulletin-surface { background: var(--card); border: 1px solid var(--ink); border-radius: 2px; padding: 4px clamp(12px, 2vw, 24px) clamp(14px, 2vw, 24px); }
.bulletin { list-style: none; margin: 0; padding: 0; }
.bl-row {
  display: grid; grid-template-columns: 44px 104px minmax(0, 1.5fr) 140px minmax(0, 1.3fr) 150px;
  gap: 12px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
}
.bl-head { padding: 12px 0 10px; border-bottom: 1.5px solid var(--ink); font-size: .74rem; font-weight: 700; color: var(--mute); }
.bl-head small { font-weight: 500; font-family: var(--mono); font-size: .66rem; }
.bl-no { font-size: .8rem; color: var(--mute); }
.bl-mk { font-size: .8rem; }
.bl-name { min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bl-dir { font-weight: 800; font-size: .9rem; white-space: nowrap; }
.bl-prob { display: grid; grid-template-columns: auto minmax(60px, 1fr); align-items: center; gap: 4px 10px; }
.bl-prob b { font-weight: 500; font-size: 1rem; }
.bl-prob small { grid-column: 1 / -1; }
.bl-hist { font-size: .84rem; color: var(--ink-2); }
.bl-hist-k { display: none; }
.bl-drivers { grid-column: 3 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .86rem; }
.pbar { position: relative; display: block; height: 6px; background: var(--paper-3); }
.pbar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); }
.is-up .pbar i { background: var(--up); }
.is-dn .pbar i { background: var(--dn); }
.pbar b { position: absolute; top: -3px; bottom: -3px; width: 1.5px; background: var(--ochre); }
.redacted { display: inline-flex; align-items: center; gap: 4px 10px; font-weight: 800; flex-wrap: wrap; }
.rd-name, .rd-sym { display: inline-flex; align-items: center; gap: 1px; }
.rd-sym .rx { background: var(--mute-2); }
.rx {
  display: inline-block; vertical-align: middle;
  width: calc(var(--n) * .62em); height: .95em;
  background: var(--ink); border-radius: 1px;
  transform: skewX(-4deg) rotate(-.6deg);
  -webkit-mask: linear-gradient(90deg, #000 0 94%, transparent 94% 100%) 0 0 / 12px 100%;
}
.redacted .mono { font-weight: 500; font-size: .84rem; color: var(--mute); }
.lock-tag { font-size: .64rem; padding: 1px 5px; border: 1px solid var(--rule-strong); border-radius: 2px; color: var(--mute); }
.bulletin-empty { margin: 0; padding: 28px 8px; text-align: center; color: var(--mute); }

.reveal-row { transition: opacity .35s var(--ease), transform .35s var(--ease); }
.js .reveal-row:not(.is-in) { opacity: 1; transform: none; }
.is-static .reveal-row { opacity: 1 !important; transform: none !important; }

/* ---------- Ledger ---------- */
.track-sec { padding: clamp(64px, 9vw, 128px) 0; }
.track-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
.ledger-panel { background: var(--card); border: 1px solid var(--ink); border-radius: 2px; padding: 0 0 8px; min-width: 0; }
.ledger-head { display: flex; align-items: baseline; gap: 12px; padding: 14px 18px; border-bottom: 1.5px solid var(--ink); }
.ledger-head .mono { font-size: .7rem; color: var(--ochre); white-space: nowrap; }
.ledger-head h3 { font-size: 1rem; font-weight: 800; letter-spacing: -0.02em; }
.ledger-panel .table-scroll { padding: 4px 18px 0; }
.ledger-panel .vault-box { margin: 14px 0; }
.ledger-sum { margin: 0 0 6px; font-size: .78rem; color: var(--ink-2); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.data-table th { text-align: left; padding: 10px 8px; font-size: .72rem; font-weight: 700; color: var(--mute); border-bottom: 1px solid var(--ink); white-space: nowrap; }
.data-table td { padding: 10px 8px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td { white-space: nowrap; }
.data-table tbody tr { background-image: linear-gradient(90deg, transparent 0 100%); }
.data-table tbody tr:nth-child(even) td { background: rgba(22, 21, 15, .02); }
.stamp {
  display: inline-block; padding: 2px 8px 1px;
  font-weight: 900; font-size: .8rem; letter-spacing: .08em;
  border: 2px solid currentColor; border-radius: 3px;
  transform: rotate(-6deg);
  white-space: nowrap;
}
.stamp-hit { color: #b04a12; box-shadow: inset 0 0 0 1px rgba(176, 74, 18, .25); }
.stamp-miss { color: var(--miss); border-style: dashed; }
.js .reveal-row .stamp { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1) .15s, opacity .2s .15s; }
.js .reveal-row:not(.is-in) .stamp { transform: rotate(-14deg) scale(1.5); opacity: 0; }

/* ---------- Method cycle ---------- */
.method { padding: clamp(64px, 9vw, 128px) 0; background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.method-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 96px); align-items: start; }
.method-title { font-size: clamp(2.1rem, 1.2rem + 3vw, 3.8rem); font-weight: 900; letter-spacing: -0.05em; line-height: 1.12; }
.mt-row { display: block; }
.mt-row b { color: var(--ochre); }
.method-copy { margin-top: 26px; color: var(--ink-2); max-width: 32em; }
.method-copy p { margin: 0 0 12px; }
.cycle { list-style: none; margin: 0; padding: 0 0 0 54px; position: relative; display: grid; gap: 22px; }
.cycle-path { position: absolute; left: 0; top: 14px; bottom: 14px; width: 40px; height: calc(100% - 28px); overflow: visible; }
.cycle-path path { fill: none; stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.cycle.is-drawing .cycle-path path { stroke-dashoffset: 1; }
.cycle-path { pointer-events: none; }
.cycle-step { position: relative; background: var(--card); border: 1px solid var(--rule-strong); border-radius: 3px; padding: 16px 18px; transition: border-color .3s, box-shadow .3s; }
.cycle-step::before {
  content: ""; position: absolute; left: -54px; top: 18px;
  width: 16px; height: 16px; margin-left: 12px; border-radius: 50%;
  background: var(--paper-2); border: 1.5px solid var(--ink);
  transition: background .3s;
}
.cycle-step.is-on, .is-static .cycle-step, .cycle:not(.is-drawing) .cycle-step { border-color: var(--ink); box-shadow: 4px 4px 0 var(--paper-3); }
.cycle-step.is-on::before, .is-static .cycle-step::before, .cycle:not(.is-drawing) .cycle-step::before { background: var(--ink); }
.cycle-step.is-verify.is-on::before, .is-static .cycle-step.is-verify::before { background: var(--ochre); border-color: var(--ochre); }
.cycle-no { display: inline-block; font-size: .72rem; padding: 1px 7px; border-radius: 2px; background: var(--ink); color: var(--paper); margin-bottom: 8px; }
.is-verify .cycle-no { background: var(--ochre); }
.cycle-step h3 { font-size: 1.08rem; font-weight: 800; letter-spacing: -0.025em; }
.cycle-step p { margin: 6px 0 0; color: var(--ink-2); font-size: .92rem; }
.principles { grid-column: 1 / -1; list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.principles li { padding: 16px 16px 0 0; font-size: .88rem; color: var(--ink-2); }
.principles li + li { padding-left: 16px; border-left: 1px solid var(--rule); }
.principles b { display: block; color: var(--ink); font-size: .98rem; margin-bottom: 4px; }

/* ---------- Pricing slips ---------- */
.pricing-sec { padding: clamp(64px, 9vw, 128px) 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.price-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  padding: 24px 24px 22px 24px; padding-top: 48px;
  background: var(--card); border: 1px solid var(--rule-strong); border-radius: 2px;
  /* Perforated tear-off edge along the top */
  -webkit-mask: radial-gradient(circle 5px at 8px 0, transparent 98%, #000) -8px 0 / 16px 100% repeat-x;
          mask: radial-gradient(circle 5px at 8px 0, transparent 98%, #000) -8px 0 / 16px 100% repeat-x;
}
.price-card::before { content: ""; position: absolute; left: 14px; right: 14px; top: 30px; border-top: 1.5px dashed var(--rule-strong); }
.price-card.featured { border-color: var(--ink); background: #fffdf7; box-shadow: inset 0 0 0 1px var(--ink), 6px 6px 0 var(--paper-3); }
.price-card.featured::after { content: "가장 많이 선택하는 27% 할인 연간 구독"; position: absolute; right: 16px; top: 8px; font-size: .7rem; color: var(--ochre); font-weight: 800; }
html[lang="en"] .price-card.featured::after { content: "BEST VALUE · SAVE 30% ANNUALLY"; }
.price-code { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.price-code .mono { font-size: .72rem; color: var(--mute); }
.price-card h3, .price-card h4 { margin: 14px 0 6px; font-size: 1.12rem; font-weight: 800; letter-spacing: -0.025em; }
.price-amt { font-family: var(--mono); font-size: clamp(1.7rem, 1.3rem + 1vw, 2.1rem); font-weight: 500; letter-spacing: -0.04em; margin: 6px 0 10px; }
.vat-tag { font-family: var(--sans); font-size: .7rem; color: var(--mute); letter-spacing: 0; font-weight: 600; }
.price-card .muted-sm { margin: 0; }
.price-meta-line { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule); font-size: .8rem; color: var(--ink-2); }
.provision-strip { margin-top: 22px; display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border: 1px solid var(--rule-strong); border-radius: 3px; background: var(--paper-2); font-size: .84rem; }
.provision-strip > .mono { font-size: .72rem; color: var(--ochre); padding-top: 2px; }
.provision-strip p { margin: 0; color: var(--ink-2); }

/* FAQ ledger accordion */
.faq-list { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; border-top: 1.5px solid var(--ink); }
.work-item { border-bottom: 1px solid var(--rule-strong); }
.work-row { width: 100%; display: grid; grid-template-columns: 48px minmax(0, 1fr) 28px; align-items: center; gap: 12px; padding: 20px 0; background: transparent; border: 0; text-align: left; }
.work-no { font-size: .78rem; color: var(--ochre); }
.work-name { font-size: clamp(1.02rem, .9rem + .5vw, 1.3rem); font-weight: 800; letter-spacing: -0.03em; }
.work-plus { position: relative; width: 22px; height: 22px; border: 1px solid var(--ink); border-radius: 2px; }
.work-plus::before, .work-plus::after { content: ""; position: absolute; left: 5px; right: 5px; top: 50%; height: 1.5px; margin-top: -.75px; background: var(--ink); transition: transform .25s var(--ease); }
.work-plus::after { transform: rotate(90deg); }
.work-item.is-open .work-plus::after { transform: rotate(0); }
.work-row:hover .work-name { text-decoration: underline; text-decoration-color: var(--ochre); text-underline-offset: 5px; }
.work-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.work-detail > div { overflow: hidden; padding-left: 60px; }
.work-item.is-open .work-detail { grid-template-rows: 1fr; }
.work-detail p { margin: 0; color: var(--ink-2); max-width: 46em; }
.work-detail ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 12px 0 22px; }
.work-detail li { font-size: .76rem; padding: 2px 8px; border: 1px solid var(--rule-strong); border-radius: 2px; font-family: var(--mono); }

/* ---------- Closing ---------- */
.contact { padding: clamp(72px, 10vw, 140px) 0; background: var(--ink); color: var(--paper); }
.contact .section-tag { color: rgba(243, 240, 232, .75); }
.contact .section-tag .mono { border-color: rgba(243, 240, 232, .3); color: #e5b55a; }
.contact-title { font-size: clamp(2.2rem, 1rem + 4.4vw, 4.8rem); font-weight: 900; letter-spacing: -0.055em; line-height: 1.08; }
.contact-title .line { display: block; overflow: hidden; padding-bottom: .05em; }
.contact-title .line-in { display: inline-block; }
.contact-title em { background: none; color: #e5b55a; text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .16em; }
.contact-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.contact-note { margin: 22px 0 0; color: rgba(243, 240, 232, .65); font-size: .88rem; }

/* ---------- Modals ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(22, 21, 15, .5); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal-panel { width: min(920px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--paper); border: 1px solid var(--ink); border-radius: 3px; box-shadow: 10px 10px 0 rgba(22, 21, 15, .25); animation: modal-in .28s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px); } }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 18px 22px; background: var(--paper); border-bottom: 1.5px solid var(--ink); }
.modal-kicker { font-size: .7rem; color: var(--ochre); }
.modal-head h3 { margin-top: 4px; font-size: 1.15rem; font-weight: 800; }
.icon-close { flex-shrink: 0; width: 40px; height: 40px; border: 1px solid var(--rule-strong); border-radius: 3px; background: var(--card); font-size: 1.4rem; line-height: 1; }
.icon-close:hover { border-color: var(--ink); }
.modal-body { padding: 20px 22px 24px; }
.modal-body h4 { font-size: 1rem; font-weight: 800; }
.mode-banner { padding: 10px 14px; border-left: 3px solid var(--ochre); background: var(--ochre-soft); font-size: .86rem; margin-bottom: 16px; }
.modal-pricing-grid .price-card { padding-top: 40px; }
.modal-pricing-grid .price-card::before { top: 26px; }
.modal-pricing-grid .price-card.featured::after { top: 6px; }
.consent-box { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--rule-strong); border-radius: 3px; background: var(--card); }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; cursor: pointer; }
.checkbox-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex-shrink: 0; }
.sync-code-input { flex: 1; min-width: 200px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--ink); border-radius: 3px; background: var(--card); font-family: var(--mono); }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 28px; border-top: 1px solid var(--rule); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; }
.footer-brand { margin: 0 0 14px; display: flex; align-items: center; gap: 9px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; }
.footer-links a { text-decoration: none; color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.legal-banner { margin: 18px 0 0; font-size: .8rem; color: var(--mute); max-width: 48em; }
.footer-biz { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; font-size: .82rem; }
.footer-biz dt { color: var(--mute); font-size: .74rem; }
.footer-biz dd { margin: 0; color: var(--ink-2); }
.merchant-meta { margin: 14px 0 0; font-size: .76rem; color: var(--mute); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: .78rem; color: var(--mute); }
.footer-bottom p { margin: 0; }
.footer-bottom a { text-decoration: none; }

/* ---------- Responsive ---------- */
/* ---------- Safety banners (radar) + core model basket: same ledger language ---------- */
.safety-banner-stack { display: grid; gap: 8px; margin-bottom: 18px; }
.safety-banner { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border: 1px solid var(--rule-strong); border-left: 3px solid var(--ochre); background: var(--card); color: var(--ink); font-size: .88rem; line-height: 1.6; border-radius: 3px; }
.safety-banner strong { font-weight: 800; }
.safety-banner.is-gap-rule { border-left-color: var(--ink); }
.dossier-card .safety-banner { margin: 14px 0 4px; }
.safety-tag { flex-shrink: 0; padding: 2px 7px; border: 1px solid var(--ochre); color: var(--ochre); background: var(--ochre-soft); font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .04em; border-radius: 2px; }
.safety-banner.is-gap-rule .safety-tag { border-color: var(--ink); color: var(--ink); background: transparent; }

.basket-sec { padding: clamp(72px, 9vw, 132px) 0; border-top: 1px solid var(--rule); background: var(--paper); }
.basket-card { background: var(--card); border: 1px solid var(--ink); border-radius: 3px; padding: clamp(18px, 2.6vw, 32px); box-shadow: 6px 6px 0 var(--paper-3); }
.basket-card h3, .basket-card h4 { margin-top: 0; }
.basket-top-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; padding-bottom: 22px; border-bottom: 1.5px solid var(--ink); }
.alloc-box { border: 1px solid var(--rule-strong); background: var(--paper); padding: 16px 18px; border-radius: 3px; }
.alloc-bar { display: flex; height: 10px; overflow: hidden; background: var(--paper-3); margin: 10px 0 8px; border-radius: 1px; }
.alloc-eq { background: var(--ink); transition: width .35s var(--ease); }
.alloc-cash { background: var(--ochre); transition: width .35s var(--ease); }
.basket-kpi-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 20px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.basket-kpi { padding: 14px 16px; }
.basket-kpi + .basket-kpi { border-left: 1px solid var(--rule); }
.basket-kpi span { display: block; font-size: .76rem; color: var(--mute); margin-bottom: 4px; }
.basket-kpi strong { font-family: var(--mono); font-size: 1.25rem; font-weight: 500; }
.basket-split-tables { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.basket-split-tables > div { min-width: 0; overflow-x: auto; }
.basket-split-tables .data-table th,
.basket-split-tables .data-table td { padding: 8px 6px; font-size: .81rem; }
.basket-split-tables .data-table td:first-child { white-space: normal; min-width: 165px; }
.modal-pricing-grid .price-card { gap: 10px; }
.basket-card #btn-basket-unlock { white-space: nowrap; background: var(--paper); color: var(--ink); border-color: var(--paper); }
.blur-text { filter: blur(4px); user-select: none; }

/* English readers: western convention (green up, red down) — still data-only colours. */
html[lang="en"] { --up: #1f7a4d; --dn: #c8331e; }
.sec-head-side .filter-tabs + .filter-tabs { margin-top: -8px; }

/* ---------- Standalone Document Pages (/sample, /terms, /s/...) ---------- */
.doc-body { padding-top: var(--header-h); }
.doc-main { width: min(1040px, 100% - var(--gutter) * 2); margin: clamp(28px, 4vw, 52px) auto clamp(48px, 7vw, 84px); }
.doc-card { background: var(--card); border: 1px solid var(--ink); border-radius: 3px; padding: clamp(22px, 3.5vw, 42px); box-shadow: 6px 6px 0 var(--paper-3); }
.doc-card h1 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); font-weight: 900; margin-bottom: 8px; }
.doc-card h2 { font-size: 1.18rem; font-weight: 800; margin: 26px 0 8px; }
.doc-card p, .doc-card li { color: var(--ink-2); font-size: .95rem; line-height: 1.7; }
.sample-ribbon { margin-bottom: 14px; padding: 10px 14px; border: 1px solid var(--ochre); border-left-width: 4px; background: var(--ochre-soft); font-size: .86rem; font-weight: 700; border-radius: 3px; }

/* ---------- wx5 6-Layer High-Density Briefing Card (.msv-card) ---------- */
.msv-track-note { margin: 8px 0 14px; padding: 10px 14px; border: 1px solid var(--rule-strong); background: var(--paper); border-radius: 3px; font-size: .85rem; color: var(--ink-2); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.msv-list { display: grid; gap: 16px; margin: 10px 0 4px; }
.msv-card {
  background: var(--card);
  border: 1px solid var(--rule-strong);
  border-top: 2px solid var(--ink);
  border-radius: 3px;
  padding: clamp(15px, 2.2vw, 22px);
  box-shadow: 4px 4px 0 var(--paper-3);
}
.msv-card.is-featured {
  border-color: var(--ochre);
  border-top: 2.5px solid var(--ochre);
  box-shadow: 5px 5px 0 rgba(168, 112, 10, .16);
}
.msv-feat-banner {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 10px; padding: 2px 9px;
  background: var(--ochre-soft); border: 1px solid var(--ochre); color: var(--ochre);
  font-family: var(--mono); font-size: .7rem; font-weight: 600; border-radius: 2px;
}
.msv-top {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.msv-top-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.msv-rank {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px;
  background: var(--paper-3); border: 1px solid var(--rule-strong); border-radius: 3px;
  font-family: var(--mono); font-size: .78rem; font-weight: 600; color: var(--ink);
}
.msv-sym-link {
  background: transparent; border: 0; padding: 0; font-weight: 900; font-size: 1.08rem;
  letter-spacing: -0.02em; text-decoration: underline; text-decoration-color: var(--ochre); text-underline-offset: 3px;
}
.msv-sym-link:hover { color: var(--ochre); }
.msv-kind-chip {
  font-size: .73rem; font-weight: 800; padding: 2px 7px; border-radius: 3px;
  background: rgba(22, 94, 62, .11); color: #165e3e; border: 1px solid rgba(22, 94, 62, .32);
}
.msv-kind-chip.is-up { background: rgba(200, 51, 30, .10); color: var(--up); border-color: rgba(200, 51, 30, .35); }
.msv-kind-chip.is-dn { background: rgba(31, 78, 156, .10); color: var(--dn); border-color: rgba(31, 78, 156, .35); }
.msv-cat-meta { font-size: .82rem; color: var(--mute); }
.msv-top-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.msv-price { font-family: var(--mono); font-size: 1.12rem; font-weight: 600; color: var(--ink); }
.msv-chg { font-family: var(--mono); font-size: .88rem; font-weight: 600; }

.msv-score-line {
  margin-top: 9px; font-size: .86rem; color: var(--ink-2); line-height: 1.55;
  display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline;
}
.msv-score-line strong { color: var(--ink); font-weight: 900; font-size: .94rem; }
.msv-pos { color: #16653e; font-weight: 700; }
.msv-neg { color: #b52b18; font-weight: 700; }

.msv-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.msv-badge {
  display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; line-height: 1.45;
}
.msv-b-good { background: rgba(22, 101, 62, .10); border: 1px solid rgba(22, 101, 62, .38); color: #145936; }
.msv-b-info { background: rgba(31, 78, 156, .09); border: 1px solid rgba(31, 78, 156, .36); color: #1d468a; }
.msv-b-warn { background: rgba(181, 43, 24, .09); border: 1px solid rgba(181, 43, 24, .38); color: #a92312; }

.msv-reasons {
  display: grid; grid-template-columns: 44px 52px minmax(0, 1fr); gap: 5px 8px;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule);
  font-size: .86rem; line-height: 1.56;
}
.msv-r-head { grid-column: 1; font-weight: 700; color: var(--mute); font-size: .8rem; }
.msv-r-key { grid-column: 2; font-weight: 700; color: var(--mute); font-size: .8rem; }
.msv-r-key.is-warn { color: #a92312; }
.msv-r-val { grid-column: 3; color: var(--ink); }
.msv-r-val.is-warn { color: #a92312; font-weight: 600; }

.msv-envelope {
  margin-top: 12px; padding: 12px 14px; border-radius: 4px;
  background: var(--paper-2); border: 1px solid var(--rule-strong);
  display: grid; grid-template-columns: 68px 52px minmax(0, 1fr); gap: 5px 10px;
  font-size: .86rem; line-height: 1.52;
}
.msv-env-head { grid-column: 1; font-weight: 800; color: var(--ink-2); font-size: .8rem; }
.msv-env-k { grid-column: 2; color: var(--mute); font-size: .8rem; font-weight: 700; }
.msv-env-v { grid-column: 3; color: var(--ink); }
.msv-env-v strong { font-family: var(--mono); font-weight: 600; font-size: .93rem; }
.msv-env-note { grid-column: 2 / -1; font-size: .76rem; color: var(--mute); margin-top: 2px; }

.msv-bottom-split {
  margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--rule-strong);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(250px, .85fr); gap: 12px 22px; align-items: center;
}
.msv-micro-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .82rem; color: var(--mute); line-height: 1.6; }
.msv-micro-stats b { color: var(--ink); font-family: var(--mono); font-weight: 600; }

.msv-excursion-bars { display: grid; gap: 6px; }
.msv-ex-row { display: grid; grid-template-columns: 36px minmax(90px, 1fr) 50px; align-items: center; gap: 8px; font-size: .8rem; }
.msv-ex-lbl { color: var(--mute); font-family: var(--mono); font-size: .76rem; }
.msv-ex-track { position: relative; height: 9px; background: var(--paper-3); border-radius: 5px; overflow: visible; }
.msv-ex-fill { position: absolute; left: 0; top: 0; bottom: 0; background: #c95748; border-radius: 5px; }
html[lang="en"] .msv-ex-fill { background: #2c7d56; }
.msv-ex-tick {
  position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink);
  border-radius: 1px; z-index: 2;
}
.msv-ex-val { text-align: right; font-family: var(--mono); font-weight: 600; color: var(--ink); font-size: .82rem; }

.msv-short-box {
  margin-top: 11px; padding: 10px 13px; border-radius: 4px;
  background: rgba(62, 56, 118, .06); border: 1px solid rgba(62, 56, 118, .26);
  font-size: .82rem; line-height: 1.58; color: var(--ink-2);
}
.msv-short-box strong { color: var(--ink); font-weight: 800; }
.msv-short-kicker { color: #3d3478; font-weight: 900; margin-right: 6px; }

@media (max-width: 820px) {
  .msv-bottom-split { grid-template-columns: minmax(0, 1fr); }
  .msv-reasons { grid-template-columns: 48px minmax(0, 1fr); }
  .msv-r-head { display: none; }
  .msv-r-key { grid-column: 1; }
  .msv-r-val { grid-column: 2; }
  .msv-envelope { grid-template-columns: 52px minmax(0, 1fr); }
  .msv-env-head { grid-column: 1 / -1; margin-bottom: 2px; }
  .msv-env-k { grid-column: 1; }
  .msv-env-v { grid-column: 2; }
  .msv-env-note { grid-column: 1 / -1; }
}

@media (max-width: 1520px) {
  .site-header { gap: 10px; }
  .site-header .clock { display: none; }
  .nav a { padding: 6px 8px; font-size: .83rem; }
  .header-pass { padding: 6px 10px; font-size: .82rem; }
  .header-cta { padding: 6px 12px; font-size: .83rem; }
}
@media (max-width: 1360px) {
  .basket-split-tables { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1240px) {
  .nav { display: none; }
  .menu-button { display: block; }
  .bl-row { grid-template-columns: 36px 92px minmax(0, 1.4fr) 124px minmax(0, 1.2fr); }
  .bl-hist { grid-column: 3 / -1; }
  .bl-head span:last-child { display: none; }
  .bl-hist-k { display: inline; color: var(--mute); }
  .track-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .basket-top-grid, .basket-split-tables { grid-template-columns: minmax(0, 1fr); }
  .basket-kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .basket-kpi:nth-child(3) { border-left: 0; }
  .basket-kpi:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .wx-card { max-width: 640px; }
  .sec-head { grid-template-columns: minmax(0, 1fr); }
  .method-grid { grid-template-columns: minmax(0, 1fr); }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles li:nth-child(3) { padding-left: 0; border-left: 0; }
  .pricing-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .prob-grid { grid-template-columns: minmax(0, 1fr); }
  .quad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quad-item:nth-child(2) { border-right: 0; }
  .quad-item:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .factor-cat-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  :root { --header-h: 58px; }
  body { font-size: 15.5px; }
  .clock, .brand-tag, .lang-switch { display: none; }
  .header-pass { padding: 6px 9px; }
  .header-cta { display: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(2) { border-right: 0; }
  .facts > div:nth-child(3) { padding-left: 0; }
  .facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .meta-strip { grid-template-columns: minmax(0, 1fr); }
  .bulletin-surface { padding-inline: 14px; }
  .bl-head { display: none; }
  .bl-row { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 6px 10px; padding: 14px 0; }
  .bl-no { grid-row: 1 / span 3; align-self: start; padding-top: 2px; }
  .bl-mk { grid-column: 2; font-size: .74rem; color: var(--mute); }
  .bl-dir { grid-column: 3; grid-row: 1; text-align: right; font-size: .82rem; }
  .bl-name { grid-column: 2 / -1; }
  .bl-prob { grid-column: 2 / -1; }
  .bl-hist { grid-column: 2 / -1; font-size: .78rem; }
  .bl-drivers { grid-column: 2 / -1; }
  .provision-strip { grid-template-columns: minmax(0, 1fr); }
  .work-row { grid-template-columns: 32px minmax(0, 1fr) 24px; gap: 8px; padding: 17px 0; }
  .work-detail > div { padding-left: 40px; }
  .wx-stage { aspect-ratio: 1 / 1; }
  .ledger-head { flex-direction: column; gap: 2px; padding: 12px 14px; }
  .ledger-panel .table-scroll { padding-inline: 12px; }
  .footer-biz { grid-template-columns: minmax(0, 1fr); }
  .passcode-sub { display: none; }
  .report-head > div:last-child { width: 100%; align-items: stretch !important; }
  .verdict-box { min-width: 0; }
}
@media (max-width: 420px) {
  .principles { grid-template-columns: minmax(0, 1fr); }
  .principles li + li { padding-left: 0; border-left: 0; }
  .principles li { border-bottom: 1px solid var(--rule); padding-bottom: 12px; }
  .search-submit { padding: 0 16px; }
  .wx-stamp { right: 8px; bottom: 8px; padding: 6px 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal-row:not(.is-in) { opacity: 1; transform: none; }
}
@media print {
  body::before, .site-header, .mobile-menu, .toast { display: none !important; }
}

/* ---------- wx8: Dossier 60-Session Structural Overlay Chart ---------- */
.dossier-chart-box {
  margin-top: 18px;
  padding: 16px 18px 14px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid var(--rule);
  border-radius: 10px;
}
.dc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.dc-title {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.dc-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--mute);
  font-family: "IBM Plex Mono", monospace;
}
.dc-leg-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.dc-swatch {
  display: inline-block;
  width: 11px;
  height: 7px;
  border-radius: 2px;
}
.dc-svg-wrap {
  width: 100%;
  overflow: hidden;
}
.dc-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 290px;
}
.dc-foot {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--mute);
}

/* ---------- wx10: PRO Subscription Benchmark + Ticker Lounge & Sentiment Poll ---------- */
.price-feature-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: .85rem;
  color: var(--ink-2);
}
.price-feature-list li {
  position: relative;
  display: block;
  padding-left: 18px;
  line-height: 1.5;
}
.price-feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ochre);
  font-weight: 900;
}

.comp-bench-card {
  margin-top: 24px;
  padding: clamp(16px, 2.2vw, 24px);
  background: var(--card);
  border: 1px solid var(--ink);
  border-radius: 3px;
  box-shadow: 5px 5px 0 var(--paper-3);
}
.comp-bench-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.comp-bench-head h3 { font-size: 1.05rem; font-weight: 800; }
.comp-bench-row-us td {
  background: rgba(168, 112, 10, .09) !important;
  font-weight: 700;
}

.community-sec {
  padding: clamp(68px, 8.5vw, 124px) 0;
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
}
.comm-clean-banner {
  padding: 10px 14px;
  border: 1px solid var(--rule-strong);
  border-left: 3.5px solid var(--ochre);
  background: var(--card);
  border-radius: 3px;
  font-size: .83rem;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.comm-hot-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}
.comm-hot-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid var(--rule-strong);
  background: var(--card);
  border-radius: 999px;
  font-size: .82rem;
  transition: border-color .2s, transform .15s;
}
.comm-hot-chip:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.comm-composer-card {
  background: var(--card);
  border: 1px solid var(--ink);
  border-radius: 3px;
  padding: clamp(14px, 2vw, 20px);
  box-shadow: 4px 4px 0 var(--paper-3);
  margin-bottom: 18px;
}
.comm-composer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.comm-profile-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.comm-nick-label {
  font-size: .92rem;
  font-weight: 800;
}
.comm-pro-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 3px;
  background: var(--ink);
  color: #f6d379;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.btn-link-sm {
  background: transparent;
  border: 0;
  padding: 2px 4px;
  font-size: .78rem;
  color: var(--ochre);
  text-decoration: underline;
}
.comm-nick-editor {
  display: flex;
  gap: 6px;
  align-items: center;
}
.comm-nick-editor input,
.comm-sym-inp,
.comm-select,
.comm-composer-body textarea,
.comm-reply-inp {
  font: inherit;
  font-size: .88rem;
  padding: 8px 11px;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
}
.comm-composer-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) minmax(140px, 1fr) minmax(130px, .9fr);
  gap: 8px;
  margin-top: 12px;
}
.comm-composer-body { margin-top: 8px; }
.comm-composer-body textarea {
  width: 100%;
  resize: vertical;
  min-height: 76px;
  line-height: 1.55;
}
.comm-composer-foot {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.comm-feed-list {
  display: grid;
  gap: 12px;
}
.comm-post-card {
  background: var(--card);
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  padding: 15px 18px;
}
.comm-post-card.is-pro-post {
  border-left: 3.5px solid var(--ochre);
}
.comm-post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.comm-author-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.comm-sym-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--paper-2);
  border: 1px solid var(--rule-strong);
  font-size: .78rem;
  font-weight: 700;
}
.comm-stance-tag {
  font-size: .74rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 3px;
}
.comm-stance-tag.is-up { background: rgba(200, 51, 30, .11); color: var(--up); }
.comm-stance-tag.is-dn { background: rgba(31, 78, 156, .11); color: var(--dn); }
.comm-stance-tag.is-neu { background: var(--paper-3); color: var(--ink-2); }
.comm-post-body {
  white-space: pre-wrap;
  font-size: .93rem;
  line-height: 1.62;
  color: var(--ink);
  margin: 6px 0 10px;
}
.comm-post-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px dashed var(--rule);
  font-size: .8rem;
}
.comm-act-btn {
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  padding: 3px 9px;
  font-size: .78rem;
  color: var(--ink-2);
}
.comm-act-btn.is-liked {
  border-color: var(--up);
  color: var(--up);
  font-weight: 700;
}
.comm-comments-box {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--paper);
  border-radius: 3px;
  border: 1px solid var(--rule);
}
.comm-comment-row {
  padding: 6px 0;
  border-bottom: 1px solid var(--rule);
  font-size: .85rem;
}
.comm-comment-row:last-of-type { border-bottom: 0; }
.comm-reply-form {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.comm-reply-inp { flex: 1; min-width: 0; }

/* Per-Ticker Sentiment Poll inside Stock Dossier */
.ticker-poll-card {
  margin-top: 22px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
}
.tp-btn-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}
.tp-vote-btn {
  padding: 9px 10px;
  border: 1px solid var(--rule-strong);
  background: var(--card);
  border-radius: 3px;
  font-weight: 800;
  font-size: .86rem;
  transition: border-color .15s, background .15s;
}
.tp-vote-btn.active-up { border-color: var(--up); background: rgba(200, 51, 30, .10); color: var(--up); }
.tp-vote-btn.active-neu { border-color: var(--ink); background: var(--paper-3); color: var(--ink); }
.tp-vote-btn.active-dn { border-color: var(--dn); background: rgba(31, 78, 156, .10); color: var(--dn); }
.tp-bar {
  display: flex;
  height: 10px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper-3);
  margin-bottom: 6px;
}
.tp-fill-up { background: var(--up); }
.tp-fill-neu { background: #9b978b; }
.tp-fill-dn { background: var(--dn); }

@media (max-width: 760px) {
  .comm-composer-controls { grid-template-columns: minmax(0, 1fr); }
  .tp-btn-row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- wx17: Live Defense Signboard, Sector Cycle Thermometer & 10-Yr Empirical Proof Board ---------- */
.posture-signboard {
  width: min(var(--maxw), 100% - var(--gutter) * 2);
  margin: clamp(26px, 3.6vw, 42px) auto 0;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  box-shadow: 6px 6px 0 var(--paper-3);
}
.posture-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px 18px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
}
.posture-head-left {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.posture-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5b55a;
  box-shadow: 0 0 0 3px rgba(229, 181, 90, .25);
}
.posture-kicker {
  font-size: .74rem;
  font-weight: 700;
  color: #e5b55a;
  letter-spacing: .04em;
}
.posture-head .muted-sm {
  color: rgba(243, 240, 232, .72);
  font-size: .74rem;
}
.posture-head-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.posture-jump {
  font-size: .74rem;
  color: #e5b55a;
  text-decoration: none;
  border-bottom: 1px dashed rgba(229, 181, 90, .55);
}
.posture-jump:hover {
  color: #fff;
  border-bottom-color: #fff;
}
.posture-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.posture-cell {
  padding: 15px 16px 16px;
  border-right: 1px solid var(--rule-strong);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.posture-cell:last-child { border-right: 0; }
.ps-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--mute);
}
.ps-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 600;
  border: 1px solid var(--rule-strong);
  background: var(--paper-2);
  color: var(--ink);
  white-space: nowrap;
}
.ps-badge.is-shield {
  background: var(--ochre-soft);
  border-color: var(--ochre);
  color: var(--ochre);
}
.ps-badge.is-active {
  background: rgba(22, 101, 62, .10);
  border-color: rgba(22, 101, 62, .38);
  color: #145936;
}
.ps-main {
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.3;
}
.ps-bar {
  display: flex;
  height: 7px;
  background: var(--paper-3);
  border-radius: 2px;
  overflow: hidden;
  margin: 2px 0;
}
.ps-bar-eq { background: var(--ink); }
.ps-bar-cash { background: var(--ochre); }
.ps-note {
  margin: 0;
  font-size: .8rem;
  line-height: 1.5;
  color: var(--ink-2);
}

/* Sector Cycle Thermometer inside #sec-manifesto */
.cycle-board {
  margin-top: clamp(32px, 4.5vw, 48px);
  background: var(--card);
  border: 1px solid var(--ink);
  border-radius: 3px;
  padding: clamp(16px, 2.4vw, 24px);
  box-shadow: 5px 5px 0 var(--paper-3);
}
.cb-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--ink);
}
.cb-head h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: -0.025em;
}
.cb-sub {
  margin: 4px 0 0;
  font-size: .86rem;
  color: var(--ink-2);
}
.cb-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.cb-item {
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  padding: 11px 12px;
  display: grid;
  gap: 6px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.cb-item:hover {
  border-color: var(--ink);
  background: #fffdf8;
}
.cb-item.is-broken {
  border-left: 3px solid var(--dn);
}
.cb-item.is-held {
  border-left: 3px solid var(--ochre);
  background: #fffdf7;
}
.cb-item.is-intact {
  border-left: 3px solid #16653e;
}
.cb-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
}
.cb-name {
  font-weight: 800;
  font-size: .88rem;
  color: var(--ink);
}
.cb-sym {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--mute);
}
.cb-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--ink-2);
}
.cb-stance {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 2px 7px;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 600;
  border: 1px solid var(--rule-strong);
  background: var(--card);
  color: var(--ink-2);
}
.cb-item.is-broken .cb-stance {
  color: var(--dn);
  border-color: rgba(31, 78, 156, .35);
  background: rgba(31, 78, 156, .07);
}
html[lang="en"] .cb-item.is-broken .cb-stance {
  border-color: rgba(200, 51, 30, .35);
  background: rgba(200, 51, 30, .07);
}
.cb-item.is-held .cb-stance {
  color: var(--ochre);
  border-color: var(--ochre);
  background: var(--ochre-soft);
}
.cb-item.is-intact .cb-stance {
  color: #145936;
  border-color: rgba(22, 101, 62, .35);
  background: rgba(22, 101, 62, .08);
}

/* 4 Empirical Proof Pillars inside #sec-manifesto */
.proof-board {
  margin-top: 22px;
}
.proof-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.proof-head h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: -0.025em;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.proof-card {
  background: var(--card);
  border: 1px solid var(--rule-strong);
  border-top: 2px solid var(--ink);
  border-radius: 3px;
  padding: 16px 18px;
  display: grid;
  gap: 8px;
}
.proof-kicker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--ochre);
  font-weight: 600;
}
.proof-card h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.proof-card p {
  margin: 0;
  font-size: .86rem;
  color: var(--ink-2);
  line-height: 1.6;
}
.proof-stat {
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px dashed var(--rule-strong);
  font-family: var(--mono);
  font-size: .77rem;
  color: var(--ink);
  line-height: 1.5;
}
.proof-stat b {
  color: var(--ochre);
  font-weight: 700;
}

@media (max-width: 1120px) {
  .posture-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .posture-cell:nth-child(2) { border-right: 0; }
  .posture-cell:nth-child(-n+2) { border-bottom: 1px solid var(--rule-strong); }
  .cb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .posture-grid { grid-template-columns: minmax(0, 1fr); }
  .posture-cell { border-right: 0; border-bottom: 1px solid var(--rule-strong); }
  .posture-cell:last-child { border-bottom: 0; }
  .cb-grid { grid-template-columns: minmax(0, 1fr); }
  .proof-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- wx18: Multi-Page Section Routing, Compact Home Hub & PRO Unlock Grid ---------- */
html[data-page] [data-page] { display: none !important; }
html[data-page="home"] [data-page="home"],
html[data-page="signals"] [data-page="signals"],
html[data-page="baskets"] [data-page="baskets"],
html[data-page="ledger"] [data-page="ledger"],
html[data-page="lounge"] [data-page="lounge"],
html[data-page="pricing"] [data-page="pricing"] { display: block !important; }

.page-top-sec {
  padding-top: calc(var(--header-h) + clamp(32px, 4.5vw, 56px)) !important;
  border-top: 0 !important;
}
html:not([data-page="home"]) .report-stage:not(.hidden) {
  margin-top: calc(var(--header-h) + 26px);
  margin-bottom: 12px;
}
html:not([data-page="home"]) .report-stage:not(.hidden) ~ .page-top-sec {
  padding-top: clamp(24px, 3.5vw, 40px) !important;
}
.js .manifesto-text .word { color: var(--ink) !important; }

/* Compact Home Hub Section */
.hero {
  padding: calc(var(--header-h) + clamp(28px, 4.5vw, 56px)) 0 clamp(28px, 4vw, 44px);
}
.home-hub-sec {
  padding: clamp(22px, 3vw, 36px) 0 clamp(44px, 6vw, 72px);
  border-top: 1px solid var(--rule);
}
.home-hub-sec .cycle-board {
  margin-top: 0;
}
.home-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.hub-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--rule-strong);
  border-top: 2px solid var(--ink);
  border-radius: 3px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .16s var(--ease), border-color .16s, box-shadow .16s;
}
.hub-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  box-shadow: 5px 5px 0 var(--paper-3);
}
.hub-card.is-pro-hub {
  border-top-color: var(--ochre);
  background: #fffdf8;
}
.hub-kicker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: .71rem;
  color: var(--mute);
}
.hub-pill {
  padding: 1px 7px;
  border-radius: 2px;
  background: var(--paper-2);
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  font-weight: 600;
}
.hub-card.is-pro-hub .hub-pill {
  background: var(--ochre-soft);
  border-color: var(--ochre);
  color: var(--ochre);
}
.hub-card h3 {
  margin: 4px 0 4px;
  font-size: 1.04rem;
  font-weight: 900;
  letter-spacing: -0.025em;
}
.hub-card p {
  margin: 0;
  font-size: .83rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.hub-cta {
  font-family: var(--mono);
  font-size: .76rem;
  font-weight: 700;
  color: var(--ochre);
}

/* PRO Unlock 4-Pillar Comparison on /pricing */
.pro-unlock-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.pu-card {
  background: var(--card);
  border: 1px solid var(--rule-strong);
  border-left: 3px solid var(--ochre);
  border-radius: 3px;
  padding: 14px 15px;
  display: grid;
  gap: 6px;
}
.pu-tag {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--ochre);
  font-weight: 700;
}
.pu-card h4 {
  margin: 0;
  font-size: .95rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.pu-free {
  margin: 0;
  font-size: .78rem;
  color: var(--mute);
  line-height: 1.45;
}
.pu-pro {
  margin: 0;
  padding-top: 6px;
  border-top: 1px dashed var(--rule-strong);
  font-size: .82rem;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.48;
}

@media (max-width: 1120px) {
  .home-hub-grid, .pro-unlock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .home-hub-grid, .pro-unlock-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Option 2: Official TradingView Embeds & Personal Brokerage OpenAPI (BYOK) UI */
.pass-pill.is-on {
  background: var(--dn-soft, rgba(47, 107, 234, .14));
  color: var(--dn, #1f4e9c);
  font-weight: 700;
}
.posture-cell.is-clickable {
  cursor: pointer;
}
.posture-cell.is-clickable:hover {
  border-color: var(--ink);
}
.tv-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.tv-mini-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-md, 14px);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tv-mini-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.tv-mini-head strong {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.3;
}
.tv-mini-slot {
  height: 176px;
  width: 100%;
}
.tv-chart-box {
  margin: 16px 0;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg, 16px);
}
.tv-advanced-slot {
  height: 390px;
  width: 100%;
  margin-top: 8px;
}
/* TradingView official copyright link — MUST stay visible & legible */
.tradingview-widget-copyright {
  font-size: 11.5px !important;
  line-height: 22px !important;
  text-align: center !important;
  vertical-align: middle !important;
  color: var(--mute, #6a7280) !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.tradingview-widget-copyright a {
  text-decoration: none;
  color: var(--mute, #6a7280);
}
.tradingview-widget-copyright .blue-text {
  color: #2962FF;
}
.byok-explain-box {
  padding: 14px 16px;
  border-radius: var(--r-md, 14px);
  background: var(--paper-2, #eceef1);
  margin-bottom: 14px;
  font-size: .92rem;
  line-height: 1.6;
}
.byok-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.byok-guide-col {
  padding: 14px 16px;
  border-radius: var(--r-md, 14px);
  background: var(--paper, #f4f5f7);
  border: 1px solid var(--rule);
}
.byok-guide-col h4 {
  margin: 0 0 8px;
  font-size: .93rem;
  font-weight: 750;
}
.byok-step-list {
  margin: 0;
  padding-left: 18px;
  font-size: .83rem;
  line-height: 1.62;
  color: var(--ink-2, #333840);
}
.byok-step-list li + li {
  margin-top: 4px;
}
.byok-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.byok-field {
  display: grid;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
}
.byok-field:last-child {
  grid-column: 1 / -1;
}
.byok-field input, .byok-field select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
}
.byok-status-msg {
  min-height: 22px;
  margin: 12px 0 8px;
  font-weight: 600;
}
.byok-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.byok-result-card, .byok-cta-panel {
  padding: 16px 18px;
  border-radius: var(--r-md, 14px);
  background: var(--paper, #f4f5f7);
  border: 1px solid var(--rule-strong);
}
@media (max-width: 1100px) {
  .tv-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .tv-mini-grid, .byok-form-grid, .byok-guide-grid { grid-template-columns: minmax(0, 1fr); }
  .tv-advanced-slot { height: 320px; }
}
