/* ---------- Tokens (light is default; dark via OS setting or the toggle) ---------- */
:root {
  color-scheme: light;
  --page: #f9f9f7;
  --surface: #fcfcfb;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #898781;
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --border: rgba(11, 11, 11, 0.10);
  --border-strong: rgba(11, 11, 11, 0.20);
  --wash: rgba(11, 11, 11, 0.045);
  --tint: #f2f1ed;
  --s1: #2a78d6;
  --s2: #eb6834;
  --deemph: #c3c2b7;
  --link: #1c5cab;
  --good: #0ca30c;
  --warning: #fab219;
  --serious: #ec835a;
  --critical: #d03b3b;
  --neutral: #898781;
  --good-text: #006300;
  --neg: #e34948;
  --pos: #2a78d6;
  --d2004: #86b6ef;
  --d2025: #1c5cab;
  --shadow: 0 1px 2px rgba(11, 11, 11, 0.04), 0 6px 24px rgba(11, 11, 11, 0.05);
  --radius: 14px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --page: #0d0d0d; --surface: #1a1a19; --ink: #ffffff; --ink-2: #c3c2b7; --muted: #898781;
    --grid: #2c2c2a; --axis: #383835; --border: rgba(255, 255, 255, 0.10); --border-strong: rgba(255, 255, 255, 0.22);
    --wash: rgba(255, 255, 255, 0.05); --tint: #131312;
    --s1: #3987e5; --s2: #d95926; --deemph: #52514e; --link: #86b6ef; --good-text: #0ca30c;
    --neg: #e66767; --pos: #3987e5; --d2004: #1c5cab; --d2025: #86b6ef; --shadow: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d; --surface: #1a1a19; --ink: #ffffff; --ink-2: #c3c2b7; --muted: #898781;
  --grid: #2c2c2a; --axis: #383835; --border: rgba(255, 255, 255, 0.10); --border-strong: rgba(255, 255, 255, 0.22);
  --wash: rgba(255, 255, 255, 0.05); --tint: #131312;
  --s1: #3987e5; --s2: #d95926; --deemph: #52514e; --link: #86b6ef; --good-text: #0ca30c;
  --neg: #e66767; --pos: #3987e5; --d2004: #1c5cab; --d2025: #86b6ef; --shadow: none;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--link); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.015em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--s1); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--page); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.small { font-size: 14px; color: var(--ink-2); }
.prose { max-width: 70ch; }
.mono { font-family: var(--mono); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; gap: 18px; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 650; white-space: nowrap; }
.brand-mark { font-family: var(--mono); font-size: 13px; background: var(--ink); color: var(--page); border-radius: 6px; padding: 1px 6px; }
.brand-name { font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav a:first-child { margin-left: auto; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 14px; padding: 6px 9px; border-radius: 8px; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--wash); }
.nav a.active { color: var(--ink); background: var(--wash); font-weight: 600; }
.theme-toggle { flex: none; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle .i-moon { fill: var(--ink); stroke: none; display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) .theme-toggle .i-sun { display: none; }
  :root:where(:not([data-theme="light"])) .theme-toggle .i-moon { display: block; }
}

/* ---------- Buttons, chips, switches ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 9px 16px;
  border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--wash); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--page); border-color: var(--ink); }
.btn-primary:hover { background: var(--ink); opacity: .88; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--link); }
.btn-ghost:hover { background: var(--wash); }
.btn[disabled] { opacity: .45; cursor: default; }
.linkish { background: none; border: 0; padding: 4px 0; color: var(--link); cursor: pointer; font-size: 14px; text-decoration: underline; text-underline-offset: 2px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }

.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; }
.filter-label { font-size: 13px; color: var(--ink-2); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 5px 13px;
  border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface);
  font-size: 14px; cursor: pointer; color: var(--ink); transition: background .15s, color .15s;
}
.chip:hover { background: var(--wash); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--page); border-color: var(--ink); }
.chip .count { font-family: var(--mono); font-size: 12px; opacity: .75; }

.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); cursor: pointer; margin: 6px 0 18px; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { width: 38px; height: 22px; border-radius: 999px; background: var(--axis); position: relative; flex: none; transition: background .15s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.switch input:checked + .switch-ui { background: var(--s1); }
.switch input:checked + .switch-ui::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--s1); outline-offset: 2px; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 56px; border-bottom: 1px solid var(--border); }
.eyebrow, .sec-num { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 14px; }
.hero h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 780; max-width: 15ch; }
.dek { font-size: clamp(1.1rem, 1.9vw, 1.32rem); line-height: 1.5; color: var(--ink-2); max-width: 62ch; margin: 22px 0 0; }
.hero-quote { margin: 44px 0 0; padding: 26px 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); max-width: 900px; }
.hero-quote blockquote { margin: 0; }
.hero-quote p { font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.45; margin: 0; letter-spacing: -0.01em; }
.hero-quote .stage { font-weight: 700; }
.hero-quote figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-2); }

/* ---------- Stat tiles ---------- */
.tiles { display: grid; gap: 14px; margin: 28px 0 0; }
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 6px; }
.tile .t-label { font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.tile .t-value { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 720; letter-spacing: -0.03em; line-height: 1.05; }
.tile .t-note { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.tile .t-src { font-size: 12.5px; margin-top: auto; padding-top: 4px; }
.tag { display: inline-block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); border: 1px solid var(--border-strong); border-radius: 6px; padding: 0 5px; margin-left: 6px; vertical-align: 1px; }

/* ---------- Sections ---------- */
.sec { padding: 76px 0; border-bottom: 1px solid var(--border); }
.sec-tint { background: var(--tint); }
.sec h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); font-weight: 760; letter-spacing: -0.03em; }
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 66ch; margin: 14px 0 28px; }
.lede-strong { color: var(--ink); font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.35; font-weight: 600; letter-spacing: -0.015em; max-width: 34ch; }

/* ---------- Stepper (the script) ---------- */
.stepper { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; }
.step-tabs { display: flex; flex-direction: column; gap: 8px; }
.step-tab {
  text-align: left; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start;
  padding: 14px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.step-tab:hover { background: var(--wash); }
.step-tab[aria-selected="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.step-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 14px; background: var(--wash); }
.step-tab[aria-selected="true"] .step-n { background: var(--ink); color: var(--page); }
.step-t { font-weight: 650; line-height: 1.3; padding-top: 4px; }
.step-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; min-height: 100%; }
.step-panel h3 { font-size: 1.45rem; margin: 0 0 6px; }
.step-panel .step-lede { color: var(--ink-2); margin: 0 0 18px; }
.step-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.step-items li { display: grid; grid-template-columns: 74px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); }
.step-items li:first-child { border-top: 0; padding-top: 2px; }
.when { font-family: var(--mono); font-size: 13px; color: var(--ink-2); padding-top: 3px; }
.step-items .s-link { font-size: 13px; margin-left: 4px; white-space: nowrap; }
.step-note { margin: 18px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--wash); font-size: 15px; }
.step-nav { display: flex; gap: 8px; margin-top: 18px; }

/* ---------- Timeline explorer ---------- */
.pattern-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border-strong); border-left: 4px solid var(--s1); border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; font-size: 15px; }
.pattern-banner[hidden] { display: none; }
.explorer { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.chart-card { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 20px 14px; box-shadow: var(--shadow); min-width: 0; }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 18px; margin: 0 0 14px; }
.chart-title { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.chart-sub { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--ink-2); }
.key { display: inline-flex; align-items: center; gap: 7px; }
.sw { display: inline-block; width: 16px; height: 10px; border-radius: 3px; }
.sw-s1 { background: var(--s1); } .sw-s2 { background: var(--s2); }
.sw-dot { width: 11px; height: 11px; border-radius: 50%; }
.sw-2004 { background: var(--d2004); } .sw-2025 { background: var(--d2025); }
.sw-neg { background: var(--neg); } .sw-pos { background: var(--pos); }
.chart-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.chart-note { font-size: 13px; color: var(--ink-2); margin: 10px 0 0; line-height: 1.5; }

.gantt { --label-w: 272px; position: relative; font-size: 14px; }
.g-axis { display: grid; grid-template-columns: var(--label-w) minmax(0, 1fr); height: 26px; }
.g-ticks { position: relative; }
.g-tick { position: absolute; top: 2px; transform: translateX(-50%); font-family: var(--mono); font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.g-gridlines { position: absolute; top: 26px; bottom: 0; left: var(--label-w); right: 0; pointer-events: none; }
.g-gridline { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--grid); }
.g-rows { position: relative; }
.g-row {
  display: grid; grid-template-columns: var(--label-w) minmax(0, 1fr); align-items: center; width: 100%;
  min-height: 32px; padding: 0; margin: 0; border: 0; border-radius: 8px; background: transparent; cursor: pointer; text-align: left;
}
.g-row:hover { background: var(--wash); }
.g-row:focus-visible { outline-offset: 0; }
.g-label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 0 12px 0 8px; min-width: 0; }
.g-name { font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.g-years { font-family: var(--mono); font-size: 12px; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.g-track { position: relative; height: 32px; }
.g-bar { position: absolute; top: 50%; height: 12px; margin-top: -6px; border-radius: 4px; background: var(--s1); min-width: 6px; transition: background .2s, box-shadow .2s; }
.g-row.is-ai .g-bar { background: var(--s2); }
.g-bar.ongoing::after { content: ""; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: inherit; box-shadow: 0 0 0 2px var(--surface); }
.g-row.dim .g-bar { background: var(--deemph); }
.g-row.dim .g-name { color: var(--ink-2); font-weight: 450; }
.g-row.selected { background: var(--wash); }
.g-row.selected .g-bar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.g-row.selected .g-name { font-weight: 700; }

.detail { position: sticky; top: 72px; max-height: calc(100vh - 88px); overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 22px 18px; }
.detail::after { content: ""; position: sticky; display: block; bottom: -18px; height: 30px; margin: 0 -22px -18px; background: linear-gradient(to bottom, transparent, var(--surface)); pointer-events: none; }
.detail .d-cat { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.detail h3 { font-size: 1.45rem; margin: 6px 0 4px; letter-spacing: -0.02em; }
.detail .d-years { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.detail .d-summary { margin: 12px 0 14px; font-size: 16px; }
.motive-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.mtag { font-size: 12.5px; border: 1px solid var(--border-strong); border-radius: 999px; padding: 1px 9px; color: var(--ink-2); }
.d-block { border-top: 1px solid var(--border); padding: 12px 0 2px; }
.d-block h4 { font-size: 12.5px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); font-weight: 600; margin: 0 0 6px; }
.d-block p { font-size: 15.5px; margin: 0 0 8px; }
.plist { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.plist li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 15px; line-height: 1.45; }
.d-note { font-size: 14px; color: var(--ink-2); background: var(--wash); border-radius: 8px; padding: 9px 11px; margin: 4px 0 10px; }
.d-quote { margin: 8px 0 10px; padding: 0 0 0 14px; border-left: 3px solid var(--s1); }
.is-ai-detail .d-quote { border-left-color: var(--s2); }
.d-quote p { font-size: 16.5px; line-height: 1.45; margin: 0 0 6px; }
.d-quote figcaption { font-size: 13.5px; color: var(--ink-2); }
.d-sources { font-size: 13.5px; margin: 0; padding-left: 18px; color: var(--ink-2); }
.d-sources li { margin: 3px 0; }
.d-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; }

/* ---------- Icons for verdicts / status (always icon + label) ---------- */
.ico { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; }
.ico svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ico-wrong { background: var(--critical); }
.ico-right { background: var(--good); }
.ico-partly { background: var(--warning); }
.ico-partly svg, .ico-warning svg { stroke: #0b0b0b; }
.ico-open { background: var(--neutral); }
.ico-good { background: var(--good); }
.ico-warning { background: var(--warning); }
.ico-serious { background: var(--serious); }
.ico-serious svg { stroke: #0b0b0b; }
.verdict { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 650; border: 1px solid var(--border-strong); border-radius: 999px; padding: 3px 11px 3px 4px; background: var(--surface); white-space: nowrap; }

/* ---------- Tables (chart twins) ---------- */
.table-wrap { overflow-x: auto; margin-top: 12px; }
.table-wrap[hidden] { display: none; }
table.data { border-collapse: collapse; width: 100%; font-size: 14px; }
table.data th, table.data td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data th { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-2); font-weight: 600; }
table.data td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Quiz ---------- */
.quiz { max-width: 880px; }
.quiz-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 28px 30px 24px; }
.quiz-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--mono); font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
.progress { height: 4px; border-radius: 4px; background: var(--grid); overflow: hidden; margin-bottom: 22px; }
.progress > span { display: block; height: 100%; background: var(--ink); border-radius: 4px; transition: width .3s; }
.quiz-quote { font-size: clamp(1.3rem, 2.8vw, 1.85rem); line-height: 1.38; letter-spacing: -0.015em; margin: 0 0 24px; font-weight: 500; }
.quiz-quote::before { content: "“"; } .quiz-quote::after { content: "”"; }
.quiz-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.answer { min-height: 64px; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; text-align: left; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; transition: background .15s, border-color .15s; }
.answer:hover:not([disabled]) { background: var(--wash); border-color: var(--ink); }
.answer .a-main { font-weight: 700; font-size: 17px; }
.answer .a-sub { font-size: 13.5px; color: var(--ink-2); }
.answer[disabled] { cursor: default; }
.answer.picked { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.answer.faded { opacity: .55; }
.reveal { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 18px; }
.reveal-verdict { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.reveal-verdict .ico { width: 24px; height: 24px; }
.reveal-verdict .ico svg { width: 14px; height: 14px; }
.reveal .who { font-weight: 650; }
.reveal .ctx { color: var(--ink-2); margin: 6px 0 0; }
.reveal .orig { font-size: 14.5px; color: var(--ink-2); margin: 8px 0 0; }
.quiz-next { display: flex; justify-content: flex-end; margin-top: 18px; gap: 10px; flex-wrap: wrap; }
.quiz-end h3 { font-size: 1.7rem; margin: 0 0 10px; letter-spacing: -0.02em; }
.quiz-end .score { font-size: clamp(3rem, 8vw, 4.5rem); font-weight: 780; letter-spacing: -0.04em; line-height: 1; margin: 6px 0 14px; }
.quiz-all { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.quiz-all li { border-top: 1px solid var(--border); padding: 12px 0 0; display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.quiz-all .era { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); padding-top: 3px; }
.quiz-all .q { font-size: 15.5px; }
.quiz-all .by { font-size: 13.5px; color: var(--ink-2); }

/* ---------- Predictions ---------- */
.pred-controls { margin-bottom: 4px; }
.pred-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.pred-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.pred { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 10px; }
.pred-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pred-who { font-weight: 650; font-size: 14.5px; }
.pred-when { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.pred-text { font-size: 16.5px; line-height: 1.42; margin: 0; letter-spacing: -0.005em; }
.pred-out { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.pred-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; font-size: 13px; flex-wrap: wrap; }
.pred .hidden-verdict { display: none; }
.pred.guess .hidden-verdict { display: flex; }
.pred.guess .shown-verdict { display: none; }
.pred-empty { color: var(--ink-2); padding: 20px 0; }
.adj { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }

/* ---------- Patterns ---------- */
.accordion { display: grid; gap: 10px; max-width: 980px; }
.acc-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.acc-btn { width: 100%; display: grid; grid-template-columns: 44px 1fr 24px; gap: 12px; align-items: center; text-align: left; background: none; border: 0; padding: 16px 18px; cursor: pointer; border-radius: var(--radius); }
.acc-btn:hover { background: var(--wash); }
.acc-n { font-family: var(--mono); font-weight: 700; font-size: 15px; color: var(--ink-2); }
.acc-t { font-weight: 650; font-size: 1.08rem; line-height: 1.35; letter-spacing: -0.01em; }
.acc-chev { width: 20px; height: 20px; transition: transform .2s; stroke: var(--ink-2); fill: none; stroke-width: 2; }
.acc-btn[aria-expanded="true"] .acc-chev { transform: rotate(180deg); }
.acc-panel { padding: 0 18px 18px 74px; }
.acc-panel[hidden] { display: none; }
.acc-panel ul { margin: 8px 0 14px; padding-left: 18px; }
.acc-panel li { margin: 6px 0; font-size: 15.5px; }

/* ---------- Charts (SVG) ---------- */
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
svg.chart { width: 100%; height: auto; display: block; overflow: visible; }
svg.chart text { font-family: var(--sans); fill: var(--ink-2); font-size: 13px; }
svg.chart .t-strong { fill: var(--ink); font-weight: 650; }
svg.chart .t-mono { font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; }
svg.chart .gridline { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
svg.chart .baseline { stroke: var(--axis); stroke-width: 1; shape-rendering: crispEdges; }
svg.chart .connector { stroke: var(--axis); stroke-width: 2; stroke-linecap: round; }
svg.chart .dot { stroke: var(--surface); stroke-width: 2; }
svg.chart .dot-a { fill: var(--d2004); }
svg.chart .dot-b { fill: var(--d2025); }
svg.chart .bar-neg { fill: var(--neg); }
svg.chart .bar-pos { fill: var(--pos); }
svg.chart .hit { fill: transparent; cursor: pointer; }
svg.chart .mark { transition: opacity .15s; }
svg.chart .hovered .mark, svg.chart .mark.hovered { opacity: .82; }

/* ---------- Pairs ---------- */
.pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pair { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.pair-theme { font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); margin: 0 0 10px; }
.pair-cols { display: grid; grid-template-columns: 1fr 22px 1fr; gap: 10px; align-items: start; }
.pair-side .ps-when { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.pair-side .ps-when::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--s1); }
.pair-side.now .ps-when::before { background: var(--s2); }
.pair-side p { font-size: 15px; line-height: 1.45; margin: 4px 0 4px; }
.pair-side .ps-src { font-size: 12.5px; }
.pair-arrow { color: var(--ink-2); padding-top: 22px; text-align: center; }
.pair .reveal-btn { display: none; }
.pairs.guessing .pair:not(.revealed) .now > :not(.ps-when):not(.reveal-btn) { display: none; }
.pairs.guessing .pair:not(.revealed) .reveal-btn { display: inline-flex; margin-top: 6px; }

/* ---------- What's new ---------- */
.new-list { display: grid; gap: 16px; }
.new-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px 26px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px 30px; }
.new-card.key { border-color: var(--s2); box-shadow: inset 0 0 0 1px var(--s2); }
.new-n { font-family: var(--mono); font-size: 13px; color: var(--ink-2); letter-spacing: .05em; text-transform: uppercase; display: flex; gap: 8px; align-items: center; }
.key-flag { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; border-radius: 6px; padding: 1px 6px; background: var(--s2); color: #fff; }
.new-card h3 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); letter-spacing: -0.02em; margin: 6px 0 10px; }
.new-card .nc-body { font-size: 16px; margin: 0; }
.new-card .caveat { font-size: 14px; color: var(--ink-2); background: var(--wash); border-radius: 10px; padding: 10px 12px; margin: 14px 0 0; }
.nc-side { display: grid; gap: 12px; align-content: start; }
.nc-side .tile { padding: 14px 16px 12px; }
.nc-side .tile .t-value { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.nc-quote { margin: 0; padding-left: 14px; border-left: 3px solid var(--border-strong); }
.nc-quote p { font-size: 16px; line-height: 1.45; margin: 0 0 4px; }
.nc-quote figcaption { font-size: 13px; color: var(--ink-2); }

/* ---------- Verdict ---------- */
.analogy { display: grid; gap: 12px; margin: 26px 0 36px; max-width: 980px; }
.an-row { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; align-items: start; }
.an-name { font-weight: 700; font-size: 1.1rem; }
.an-desc { color: var(--ink-2); font-size: 15px; margin: 2px 0 0; }
.an-detail { grid-column: 1 / -1; font-size: 15px; margin: 6px 0 0; padding-top: 10px; border-top: 1px solid var(--border); }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; border: 1px solid var(--border-strong); border-radius: 999px; padding: 4px 14px 4px 5px; white-space: nowrap; background: var(--surface); }
.status .ico { width: 22px; height: 22px; }
.decided h3 { font-size: 1.35rem; margin: 0 0 10px; letter-spacing: -0.015em; }
.defaults { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; max-width: 900px; }
.defaults li { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: grid; grid-template-columns: 100px 1fr; gap: 12px; font-size: 15.5px; }
.d-k { font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); padding-top: 2px; }
.closing { margin: 44px 0 0; max-width: 900px; }
.closing blockquote { margin: 0; }
.closing p { font-size: clamp(1.35rem, 2.8vw, 1.95rem); line-height: 1.35; letter-spacing: -0.02em; font-weight: 600; margin: 0; }
.closing figcaption { font-size: 14.5px; color: var(--ink-2); margin-top: 12px; max-width: 70ch; }

/* ---------- Method / sources ---------- */
.method-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 18px; }
.sources { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; }
.sources summary { cursor: pointer; font-weight: 650; }
.sources ol { margin: 12px 0 4px; padding-left: 22px; font-size: 13.5px; max-height: 460px; overflow: auto; }
.sources li { margin: 4px 0; }

/* ---------- Tooltip ---------- */
.tip { position: fixed; z-index: 60; pointer-events: none; max-width: 300px; background: var(--surface); color: var(--ink); border: 1px solid var(--border-strong); border-radius: 10px; padding: 9px 11px; font-size: 13.5px; line-height: 1.4; box-shadow: 0 6px 24px rgba(0,0,0,.14); }
.tip[hidden] { display: none; }
.tip .tv { font-weight: 700; font-size: 15px; display: block; }
.tip .tl { color: var(--ink-2); display: block; }
.tip .tk { display: inline-block; width: 12px; height: 2px; vertical-align: middle; margin-right: 6px; border-radius: 2px; }

/* ---------- Footer ---------- */
.site-foot { padding: 28px 0 40px; font-size: 14px; color: var(--ink-2); }
.foot-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.noscript { position: fixed; bottom: 12px; left: 12px; right: 12px; background: var(--ink); color: var(--page); padding: 12px 16px; border-radius: 12px; z-index: 90; }
.noscript a { color: inherit; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .explorer { grid-template-columns: 1fr; }
  .detail { position: static; max-height: none; }
  .new-card { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .stepper { grid-template-columns: 1fr; }
  .step-tabs { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .step-tab { min-width: 220px; }
  .chart-grid, .pairs { grid-template-columns: 1fr; }
  .tiles-3 { grid-template-columns: 1fr; }
  .brand-name { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 40px; }
  .sec { padding: 52px 0; }
  .hero-quote { padding: 18px 18px; }
  .gantt { --label-w: 0px; }
  .g-axis { grid-template-columns: 1fr; }
  .g-gridlines { left: 0; }
  .g-row { grid-template-columns: 1fr; padding: 4px 0 0; }
  .g-label { padding: 0 2px; }
  .g-track { height: 18px; }
  .g-tick.minor { display: none; }
  .g-tick:first-child { transform: none; }
  .quiz-card { padding: 20px 18px; }
  .quiz-actions { grid-template-columns: 1fr; }
  .quiz-all li { grid-template-columns: 1fr; gap: 2px; }
  .acc-panel { padding-left: 18px; }
  .pair-cols { grid-template-columns: 1fr; }
  .pair-arrow { display: none; }
  .an-row { grid-template-columns: 1fr; }
  .defaults li { grid-template-columns: 1fr; gap: 2px; }
  .chart-card { padding: 16px 14px 12px; }
  .step-items li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .topbar, .theme-toggle, .cta-row, .switch, .filter-row, .chart-foot, .d-nav, .step-nav { display: none !important; }
  .sec { padding: 24px 0; break-inside: avoid; }
  .detail { position: static; max-height: none; }
}
