/* SURGENT project site styles (paper and ink, Space Grotesk, a dark stage for every video and frame,
   bold section titles with one sentence, flat panels, 1 px rules). Chart colours follow the paper's figures: coral = end-to-end,
   teal = with the verified evidence; the evidence window is drawn as amber light. Palettes checked with the dataviz validator
   (two modes ΔE 26.9 normal / 8.8 CVD; tool categories all-pairs 15.7 / 13.4; chain ramp ordinal) and every text pair >= 4.5:1. */

@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ============================================================================ tokens */
:root {
  color-scheme: light;
  --paper: #F6F5EF; --sheet: #FBFAF6; --panel: #ECEEE7; --ink: #17232A; --ink-2: #34434B; --muted: #56626A;
  --line: #CDD3CF; --line-strong: #7D8883; --accent: #0E6B61; --accent-wash: #DCEDE8; --accent-mark: #0E6B61;
  --stage: #111A1F; --stage-2: #18242A; --stage-3: #22313A; --stage-ink: #EEF2EF; --stage-muted: #A3B0B4; --stage-line: #2C3B43;
  --amber: #F4C56F; --amber-mark: #E2A947; --amber-wash: rgb(244 197 111 / .18); --evidence-page: #F8E7C2;
  --coral: #E0603C; --coral-ink: #A8401F; --teal: #008C7E; --teal-ink: #0B6561; --coral-night: #FF9474; --teal-night: #5FD0C4;
  --cat-t: #1B7E70; --cat-p: #AE443F; --cat-s: #1A6FB8; --cat-m: #9A6000; --cat-k: #7248A0;
  --cat-t-night: #29A895; --cat-p-night: #B24741; --cat-s-night: #2896F5; --cat-m-night: #C48300; --cat-k-night: #9250A0;
  --ok: #1B714A; --ok-wash: #DDEEE4; --partial: #8A5B05; --partial-wash: #F6EBD3; --bad: #9C3020; --bad-wash: #F6D9D1;
  --none: #5B6677; --none-wash: #E5E4DF;
  --mark-muted: #8C939E; --mark-faint: #B9BEC4; --grid: #E2E4DE; --axis: #AEB5B0;
  --chain-1: #7E2401; --chain-2: #A33810; --chain-3: #C4522D; --chain-4: #DC7352; --chain-5: #ED987D;
  --h-proc: 0 140 126; --h-judge: 23 35 42; --h-end: 224 96 60;
  --focus: #0E6B61;
  --sans: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --shell: min(1256px, calc(100% - clamp(40px, 9vw, 144px)));
  --pad: clamp(44px, 6.3vw, 92px);
  --nav-h: 65px;
  --r: 3px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --lane-label: 116px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0F1519; --sheet: #131B20; --panel: #172025; --ink: #E6EBE8; --ink-2: #C4CDCB; --muted: #9AA7AC;
    --line: #28343A; --line-strong: #64747B; --accent: #62C6B7; --accent-wash: #15302C; --accent-mark: #62C6B7;
    --stage: #0A1013; --stage-2: #121B20; --stage-3: #1C2930; --stage-line: #26343B;
    --evidence-page: rgb(244 197 111 / .16);
    --coral: #E77050; --coral-ink: #F69D83; --teal: #1FA89C; --teal-ink: #63CABF;
    --cat-t: #1B7E70; --cat-p: #B24741; --cat-s: #1A6FB8; --cat-m: #9A6000; --cat-k: #8A4A98;
    --ok: #55C08C; --ok-wash: #15302A; --partial: #D9A841; --partial-wash: #33291A; --bad: #F27B63; --bad-wash: #3A2421;
    --none: #98A4B3; --none-wash: #222C33;
    --mark-muted: #75838C; --mark-faint: #3E4B52; --grid: #1F2A30; --axis: #45535A;
    --chain-1: #F8B09A; --chain-2: #EB8F72; --chain-3: #D9704F; --chain-4: #BE5737; --chain-5: #9B462C;
    --h-proc: 31 168 156; --h-judge: 200 210 214; --h-end: 231 112 80;
    --focus: #62C6B7;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0F1519; --sheet: #131B20; --panel: #172025; --ink: #E6EBE8; --ink-2: #C4CDCB; --muted: #9AA7AC;
  --line: #28343A; --line-strong: #64747B; --accent: #62C6B7; --accent-wash: #15302C; --accent-mark: #62C6B7;
  --stage: #0A1013; --stage-2: #121B20; --stage-3: #1C2930; --stage-line: #26343B;
  --evidence-page: rgb(244 197 111 / .16);
  --coral: #E77050; --coral-ink: #F69D83; --teal: #1FA89C; --teal-ink: #63CABF;
  --cat-t: #1B7E70; --cat-p: #B24741; --cat-s: #1A6FB8; --cat-m: #9A6000; --cat-k: #8A4A98;
  --ok: #55C08C; --ok-wash: #15302A; --partial: #D9A841; --partial-wash: #33291A; --bad: #F27B63; --bad-wash: #3A2421;
  --none: #98A4B3; --none-wash: #222C33;
  --mark-muted: #75838C; --mark-faint: #3E4B52; --grid: #1F2A30; --axis: #45535A;
  --chain-1: #F8B09A; --chain-2: #EB8F72; --chain-3: #D9704F; --chain-4: #BE5737; --chain-5: #9B462C;
  --h-proc: 31 168 156; --h-judge: 200 210 214; --h-end: 231 112 80;
  --focus: #62C6B7;
}
/* a dark stage inside the page: the same components read light-on-dark */
.on-stage, .hero, .sec--stage, .stage, .f3__panel {
  --ink: var(--stage-ink); --ink-2: #CFD8D9; --muted: var(--stage-muted); --line: var(--stage-line); --line-strong: #6E7E85;
  --panel: var(--stage-2); --sheet: var(--stage-2); --accent: var(--teal-night); --accent-wash: #173731; --evidence-page: rgb(244 197 111 / .2);
  --coral-ink: var(--coral-night); --teal-ink: var(--teal-night); --grid: #223038; --axis: #44535B; --mark-muted: #7D8C94; --mark-faint: #3A4950;
  --ok: #55C08C; --ok-wash: #15302A; --bad: #F27B63; --bad-wash: #3A2421; --partial: #D9A841; --partial-wash: #33291A; --none: #A3B0B4; --none-wash: #22313A;
  --h-judge: 200 210 214; --focus: #7FE0D4;
  color: var(--ink);
}

/* ============================================================================ base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 1rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a, button, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
abbr { text-decoration: none; }
sup { font-size: .68em; line-height: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--paper); border-radius: var(--r); text-decoration: none; }
.skip:focus { top: 12px; }
.shell { width: var(--shell); margin-inline: auto; }
.mono, .kicker, .t-mono { font-family: var(--mono); }
.kicker { color: var(--accent); font-size: .81rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; line-height: 1.35; }
.note, .credit { color: var(--muted); font-size: .84rem; }
.credit { font-size: .78rem; }
.src { font-family: var(--mono); font-size: .74rem; color: var(--muted); margin-top: 8px; }
.lbl { font-family: var(--mono); font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.soon { display: inline-block; white-space: nowrap; margin-left: 4px; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 999px; font: 500 .68rem/1.5 var(--mono); color: var(--muted); letter-spacing: .02em; vertical-align: .08em; }
.loading { padding: 40px 0; color: var(--muted); font-family: var(--mono); font-size: .85rem; }
.err { padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.err p { margin-bottom: 10px; }
.scroller { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.ic { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic--fill { fill: currentColor; stroke: none; }
.ic--chev { transition: transform .2s var(--ease); }

/* ---------------------------------------------------------------------------- buttons */
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: .42rem 1rem; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink); font-size: .92rem; font-weight: 500; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.pill:hover { background: var(--panel); color: var(--ink); }
.pill .ic { width: .82em; height: .82em; }
.pill[data-state="playing"] .ic--play, .pill:not([data-state="playing"]) .ic--pause { display: none; }
.pill--stage, .pill--outline { color: var(--stage-ink); border-color: rgb(238 242 239 / .55); }
.pill--stage:hover, .pill--outline:hover { background: rgb(238 242 239 / .1); color: #fff; }
.pill--onpaper { color: var(--ink); border-color: var(--line-strong); }
.pill--ink { border-radius: var(--r); background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 600; }
.pill--ink:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.pill--quiet { min-height: 34px; padding: .32rem .85rem; font-size: .86rem; }
.pill--amber { background: var(--amber); color: #111A1F; border-color: var(--amber); font-weight: 600; min-height: 34px; padding: .32rem .9rem; font-size: .86rem; }
.pill--amber:hover { background: #F8D48E; color: #111A1F; }
.iconbtn { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--ink); }
.iconbtn:hover { background: var(--panel); }
.iconbtn .ic { width: 18px; height: 18px; }
.iconbtn--line { width: 34px; height: 34px; border: 1px solid var(--line-strong); }
.iconbtn--line .ic { width: 14px; height: 14px; }
.select { appearance: none; -webkit-appearance: none; min-height: 34px; padding: .35rem 2rem .35rem .7rem; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%2356626A' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right .55rem center / 12px; font-size: .9rem; max-width: 100%; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; }
.seg button { padding: .3rem .75rem; border: 0; border-right: 1px solid var(--line); background: transparent; font-size: .82rem; font-weight: 500; color: var(--muted); }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.seg--sm button { padding: .22rem .6rem; font-size: .76rem; font-family: var(--mono); }
.tabs { display: flex; flex-wrap: wrap; gap: 0 22px; }
.tab { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 0 9px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-size: .96rem; font-weight: 600; }
.tab small { font: 500 .72rem var(--mono); color: var(--muted); }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tab--end[aria-selected="true"] { border-bottom-color: var(--coral); }
.tab--verified[aria-selected="true"] { border-bottom-color: var(--teal); }

/* ---------------------------------------------------------------------------- disclosures ("More") */
.more { margin-top: 14px; }
.more > summary { display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--ink); }
.more > summary::-webkit-details-marker { display: none; }
.more > summary span { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .25em; }
.more > summary:hover span { text-decoration-color: currentColor; }
.more > summary .ic { width: .8em; height: .8em; }
.more[open] > summary .ic--chev { transform: rotate(90deg); }
.more__in { padding-top: 12px; color: var(--ink-2); font-size: .94rem; }
.more__in > p + p { margin-top: 8px; }
.more--data { margin-top: 6px; }
.more--data > summary { font-size: .8rem; font-weight: 500; color: var(--muted); }
.more--plain { margin-top: 4px; }
.notes { display: grid; gap: 6px; margin-top: 8px; padding-left: 16px; list-style: disc; color: var(--muted); font-size: .86rem; }

/* ---------------------------------------------------------------------------- chips, badges, states */
.chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 1px 7px 1px 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--sheet); font: 500 .8rem/1.5 var(--mono); color: var(--ink); white-space: nowrap; }
.chip i { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--c, var(--mark-muted)); color: #fff; font: 700 .62rem/1 var(--sans); font-style: normal; }
.chip--t { --c: var(--cat-t); } .chip--p { --c: var(--cat-p); } .chip--s { --c: var(--cat-s); } .chip--m { --c: var(--cat-m); } .chip--k { --c: var(--cat-k); }
.chip--xs { font-size: .74rem; }
.chip--fail { border-style: dashed; }
.winchip { display: inline-block; padding: 0 6px; border-radius: var(--r); background: var(--panel); font: 500 .72rem/1.6 var(--mono); color: var(--muted); white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px 1px 5px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.badge .glyph { width: 13px; height: 13px; }
.badge--ok { background: var(--ok-wash); color: var(--ok); }
.badge--bad { background: var(--bad-wash); color: var(--bad); }
.badge--partial { background: var(--partial-wash); color: var(--partial); }
.badge--none { background: var(--none-wash); color: var(--none); }
.badge--muted { background: var(--none-wash); color: var(--ink-2); padding-left: 8px; }
.badge .sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 1px; }
.glyph { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.glyph--ok circle { fill: currentColor; stroke: none; }
.glyph--ok path { stroke: var(--paper); stroke-width: 2; }
.glyph--partial path { fill: currentColor; stroke: none; }
.state { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--muted); }
.state .glyph { width: 15px; height: 15px; }
.tag { display: inline-block; margin-left: 10px; padding: 0 7px; border-radius: 999px; background: var(--accent-wash); color: var(--accent); font: 500 .68rem/1.6 var(--mono); text-transform: none; letter-spacing: 0; vertical-align: .1em; }

/* ---------------------------------------------------------------------------- tables */
.dtable { width: 100%; border-collapse: collapse; font-size: .86rem; font-variant-numeric: tabular-nums; }
.dtable caption { caption-side: bottom; text-align: left; padding-top: 8px; color: var(--muted); font-size: .8rem; }
.dtable th, .dtable td { padding: 7px 10px 7px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.dtable thead th { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom-color: var(--ink); }
.dtable tbody th { font-weight: 500; }
.dtable .num, .dtable td:not(:first-child) { font-family: var(--mono); font-size: .8rem; }
.dtable tfoot th, .dtable tfoot td { border-bottom: 0; font-weight: 600; }
.dtable--tools .num { text-align: right; white-space: nowrap; }
.dtable--tools td:nth-child(2), .dtable--tools td:nth-child(3) { font-family: var(--sans); font-size: .82rem; }
.dtable--tools tr.is-unused th .chip { opacity: .62; }
.cbar { display: inline-block; width: 64px; height: 6px; margin-right: 8px; border-radius: 3px; background: var(--panel); vertical-align: middle; overflow: hidden; }
.cbar .bar { display: block; height: 100%; border-radius: 3px; background: var(--ink-2); }
.dtable--cmp th, .dtable--cmp td { text-align: center; padding-right: 6px; }
.dtable--cmp tbody th { text-align: left; white-space: nowrap; }
.dtable--cmp thead th { font-size: .64rem; vertical-align: bottom; }
.dtable--cmp td .ic { margin: 0 auto; width: 15px; height: 15px; color: var(--accent); stroke-width: 2.2; }
.dtable--cmp .dash { color: var(--line-strong); }
.dtable--cmp tr.grp th { padding-top: 12px; font: 600 .66rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: left; }
.dtable--cmp tr.is-ours th, .dtable--cmp tr.is-ours td { background: var(--accent-wash); font-weight: 700; }

/* ============================================================================ top bar */
.topbar { position: sticky; top: 0; z-index: 40; height: var(--nav-h); border-bottom: 1px solid var(--line); background: var(--paper); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 100%; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-size: 1.22rem; font-weight: 700; letter-spacing: -.04em; }
.wordmark:hover { color: var(--ink); }
.mark { width: 26px; height: 26px; }
.nav ul { display: flex; gap: clamp(14px, 2.2vw, 30px); }
.nav a { font-size: .93rem; text-decoration: none; color: var(--ink); white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { text-decoration: underline; text-underline-offset: .35em; }
.topbar__end { display: flex; align-items: center; gap: 6px; }
.navpaper { display: inline-flex; align-items: center; gap: 6px; padding: .4rem 1.1rem; border-radius: var(--r); background: var(--ink); color: var(--paper); font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.navpaper:hover { background: var(--accent); color: var(--paper); }
.navpaper.is-soon { border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: default; }
.navpaper small { font: 500 .68rem var(--mono); }
.navpaper.is-soon small { margin-left: 2px; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 999px; }
.navpaper .ic { width: .8em; height: .8em; }
.theme-toggle .ic--theme-light, .theme-toggle .ic--theme-dark, .theme-toggle .ic--theme-system { display: none; }
:root[data-theme-pref="light"] .ic--theme-light, :root[data-theme-pref="dark"] .ic--theme-dark, :root[data-theme-pref="system"] .ic--theme-system { display: block; }
:root:not([data-theme-pref]) .ic--theme-light { display: block; }
.theme-toggle .fill { fill: currentColor; stroke: none; }
.menu-toggle { display: none; }
.menu { border-bottom: 1px solid var(--line); background: var(--paper); }
.menu ul { display: grid; padding: 8px 0 16px; }
.menu a { display: block; padding: 10px 0; text-decoration: none; font-size: 1.05rem; border-bottom: 1px solid var(--line); }

/* ============================================================================ hero: Figure 1 on the video */
.hero { --amber-mark: #F4C56F; background: var(--stage); color: var(--stage-ink); }
.hero__stage { position: relative; display: grid; grid-template-rows: 1fr auto auto; min-height: clamp(640px, calc(100svh - var(--nav-h)), 880px);
  background: radial-gradient(ellipse 70% 80% at 72% 44%, #1C2B32 0%, #131D22 46%, #0C1316 100%); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding-block: clamp(26px, 4.4vh, 56px) clamp(10px, 2vh, 22px); }
.hero__copy { position: relative; display: grid; align-content: center; gap: 22px; min-width: 0; }
.hero__kicker { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 600 .78rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--stage-muted); }
.hero__kicker span:first-child { color: var(--amber); }
.hsteps { display: grid; min-height: clamp(250px, 34vh, 360px); align-items: center; }
.hstep { grid-area: 1 / 1; display: grid; align-content: center; gap: 14px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .22s var(--ease), transform .25s var(--ease), visibility 0s .22s; }
.hero[data-step="question"] .hstep[data-step="question"], .hero[data-step="frames"] .hstep[data-step="frames"], .hero[data-step="phases"] .hstep[data-step="phases"],
.hero[data-step="search"] .hstep[data-step="search"], .hero[data-step="evidence"] .hstep[data-step="evidence"], .hero[data-step="answer"] .hstep[data-step="answer"] {
  opacity: 1; visibility: visible; transform: none; transition: opacity .5s var(--ease) .26s, transform .6s var(--ease) .26s, visibility 0s .22s; }
.hstep__k { font: 600 .8rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--amber); }
.hstep__q { max-width: 15ch; font-size: clamp(2.3rem, 4.5vw, 4.3rem); font-weight: 600; line-height: 1.02; letter-spacing: -.045em; color: #fff; text-wrap: balance; }
.hstep__big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .28em; line-height: .9; letter-spacing: -.055em; }
.hstep__big b { font-size: clamp(5rem, 10vw, 9rem); font-weight: 600; color: var(--amber); text-shadow: 0 2px 40px rgb(244 197 111 / .2); }
.hstep__big span { font-size: clamp(2.6rem, 5vw, 4.6rem); font-weight: 600; color: #fff; }
.hstep__big--time b { font-size: clamp(2.6rem, 5.2vw, 4.9rem); letter-spacing: -.045em; white-space: nowrap; }
.hstep__big--words { display: grid; gap: 10px; }
.hstep__big--words b { font-size: clamp(2.5rem, 4.8vw, 4.5rem); line-height: 1; max-width: 13ch; text-wrap: balance; }
.hstep__big--words span { font-size: clamp(1.5rem, 2.5vw, 2.2rem); color: var(--stage-ink); letter-spacing: -.03em; }
.hstep__mid { max-width: 28ch; font-size: clamp(1.25rem, 2vw, 1.7rem); font-weight: 500; line-height: 1.25; letter-spacing: -.02em; color: #fff; text-wrap: balance; }
.hstep__line { max-width: 52ch; color: var(--stage-muted); font-size: 1rem; line-height: 1.5; }
.hstep__line .mono { font-size: .82rem; color: var(--stage-ink); }
.hstep__call { justify-self: start; max-width: 100%; padding: 6px 10px; border-radius: var(--r); background: var(--stage-2); border: 1px solid var(--stage-line); font: 500 .84rem var(--mono); color: var(--stage-ink); overflow-wrap: anywhere; }
.hstep__phases { display: grid; gap: 2px; max-width: 520px; }
.hstep__phases li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 7px 0 7px 14px; border-left: 2px solid var(--stage-line); font-size: clamp(1.1rem, 1.7vw, 1.45rem); font-weight: 500; letter-spacing: -.02em; color: var(--stage-muted); }
.hstep__phases li b { font: 500 .95rem var(--mono); letter-spacing: 0; color: var(--stage-muted); white-space: nowrap; }
.hstep__phases li.is-key { border-left-color: var(--amber); color: #fff; }
.hstep__phases li.is-key b { color: var(--amber); }
.hero__state { display: inline-flex; align-items: center; gap: 10px; font: 600 .74rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--stage-muted); }
.hero__state b { padding: 3px 10px; border: 1px solid var(--stage-line); border-radius: 999px; color: var(--stage-ink); letter-spacing: .04em; transition: background .3s, color .3s, border-color .3s; }
.hero[data-i="3"] .hero__state b { border-color: var(--amber); color: var(--amber); }
.hero[data-i="4"] .hero__state b { border-color: var(--teal-night); color: var(--teal-night); }
.hero[data-i="5"] .hero__state b { border-color: var(--teal-night); background: var(--teal-night); color: #0A1013; }

.eyepiece { position: relative; justify-self: center; width: min(100%, 62vh, 520px); aspect-ratio: 1; }
.eyepiece__lens { position: absolute; inset: 3.5%; border-radius: 50%; overflow: hidden; background: #050809; box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 30px 90px -20px rgb(0 0 0 / .7); isolation: isolate; }
.eyepiece__v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s var(--ease); }
.eyepiece__v.is-on { opacity: 1; }
.eyepiece__lens::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 60px 18px rgb(5 8 9 / .75); pointer-events: none; }
.eyepiece__reticle { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgb(238 242 239 / .3); stroke-width: .5; pointer-events: none; }
.eyepiece__time { position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); display: inline-flex; gap: 8px; align-items: baseline; padding: 4px 11px; border-radius: 999px; background: rgb(10 16 19 / .78); font: 500 .78rem var(--mono); color: var(--stage-muted); white-space: nowrap; }
.eyepiece__time b { font-size: .95rem; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.eyepiece__flag { position: absolute; left: 50%; top: 10%; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: var(--amber); color: #111A1F; font: 700 .82rem var(--mono); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; box-shadow: 0 0 0 6px rgb(244 197 111 / .18); }
.eyepiece__cap { position: absolute; right: 2%; bottom: -2px; font-size: .72rem; color: var(--stage-muted); }

.htl { position: relative; padding-bottom: 4px; }
.htl__bands { position: relative; height: 26px; }
.htl__band { position: absolute; bottom: 4px; height: 5px; border-radius: 3px; background: rgb(238 242 239 / .3); transition: opacity .5s var(--ease); }
.htl__band i { position: absolute; left: 0; bottom: 9px; font: 500 .78rem var(--mono); font-style: normal; color: var(--stage-ink); white-space: nowrap; }
.htl__band.is-key { background: var(--amber); }
.htl__band.is-key i { color: var(--amber); }
.htl__strip { position: relative; display: grid; grid-template-columns: repeat(32, minmax(0, 1fr)); gap: 2px; height: clamp(28px, 3.1vw, 40px); }
.htl__tile { display: block; border-radius: 2px; background-size: 3200% 100%; background-position: calc(var(--i) * 100% / 31) 0; background-color: var(--stage-2); transition: filter .4s var(--ease), opacity .4s; filter: brightness(.82) saturate(.9); }
.htl__win { position: absolute; top: -4px; bottom: -4px; border-radius: 2px; pointer-events: none; transition: opacity .5s var(--ease); }
.htl__win--search { border: 1px solid rgb(244 197 111 / .75); background: rgb(244 197 111 / .1); }
.htl__win--evid { background: rgb(244 197 111 / .26); border-inline: 1px solid var(--amber); }
.htl__win--rupture { min-width: 3px; top: -8px; bottom: -8px; background: var(--amber); box-shadow: 0 0 14px 3px rgb(244 197 111 / .55); }
.htl__head { position: absolute; top: -10px; bottom: -10px; width: 2px; margin-left: -1px; background: #fff; border-radius: 1px; box-shadow: 0 0 0 1px rgb(10 16 19 / .5); pointer-events: none; z-index: 2; }
.htl__head::before { content: ""; position: absolute; top: -4px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.htl__axis { position: relative; height: 22px; margin-top: 8px; font: 500 .7rem var(--mono); color: var(--stage-muted); }
.htl__axis span { position: absolute; top: 0; transform: translateX(-50%); }
.htl__axis span:first-child { transform: none; }
.htl__note { position: absolute; right: 0; top: 2px; font: 500 .7rem var(--mono); color: var(--stage-muted); }
/* stepwise reveal of the timeline (generated in the final state) */
.hero[data-i="0"] .htl__band, .hero[data-i="1"] .htl__band { opacity: 0; }
.hero[data-i="0"] .htl__win, .hero[data-i="1"] .htl__win, .hero[data-i="2"] .htl__win { opacity: 0; }
.hero[data-i="3"] .htl__win--evid, .hero[data-i="3"] .htl__win--rupture { opacity: 0; }
.hero[data-i="0"] .htl__tile { filter: brightness(.5) saturate(.6); }
.hero[data-step="frames"] .htl__tile { animation: tileOn .9s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes tileOn { 0% { filter: brightness(.45) saturate(.6); transform: translateY(0); } 40% { filter: brightness(1.35) saturate(1.1); transform: translateY(-3px); } 100% { filter: brightness(1) saturate(1); transform: none; } }
.hero[data-step="search"] .htl__win--search::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--amber); animation: scan 3.6s linear infinite; }
@keyframes scan { from { left: 0; } to { left: calc(100% - 2px); } }
.hero.is-rupture .htl__win--rupture { animation: glow 1s ease-in-out infinite alternate; }
@keyframes glow { from { box-shadow: 0 0 10px 2px rgb(244 197 111 / .4); } to { box-shadow: 0 0 22px 6px rgb(244 197 111 / .75); } }

.hero__bar { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; align-items: center; gap: 20px; padding: 16px 0 22px; margin-top: 14px; border-top: 1px solid var(--stage-line); }
.hero__ctl { justify-self: center; }
.hero__scene-t, .hero__scene-m { white-space: nowrap; }
.hero__scene-t { font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; color: #fff; }
.hero__scene-m { margin-top: 4px; font: 500 .78rem var(--mono); color: var(--stage-muted); }
.hero__ctl { display: flex; align-items: center; gap: 18px; }
.hero__bar > .pill { justify-self: end; }
.stepper { --i: 5; position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding-bottom: 20px; min-width: min(460px, 44vw); }
.stepper__b { padding: 2px 6px; border: 0; background: none; color: var(--stage-muted); font-size: .82rem; text-align: center; white-space: nowrap; }
.stepper__b:hover { color: #fff; }
.stepper__b[aria-current] { color: #fff; text-decoration: underline; text-underline-offset: .35em; }
.stepper__track { position: absolute; left: calc(100% / 12); right: calc(100% / 12); bottom: 6px; height: 2px; border-radius: 1px; background: rgb(238 242 239 / .22); }
.stepper__fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--i) / 5 * 100%); background: var(--stage-ink); border-radius: 1px; transition: width .5s var(--ease); }
.stepper__knob { position: absolute; top: 50%; left: calc(var(--i) / 5 * 100%); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--stage-ink); box-shadow: 0 0 0 3px rgb(238 242 239 / .2); transition: left .5s var(--ease); }
.hero[data-i="0"] .stepper { --i: 0; } .hero[data-i="1"] .stepper { --i: 1; } .hero[data-i="2"] .stepper { --i: 2; }
.hero[data-i="3"] .stepper { --i: 3; } .hero[data-i="4"] .stepper { --i: 4; } .hero[data-i="5"] .stepper { --i: 5; }

/* ============================================================================ masthead */
.mast { padding-block: clamp(36px, 4.6vw, 70px) clamp(36px, 4vw, 60px); }
.mast__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(235px, .66fr); align-items: end; gap: clamp(20px, 5vw, 85px); }
.mast h1 { margin: 14px 0 10px -.05em; font-size: clamp(4.1rem, 8.4vw, 7.8rem); font-weight: 600; line-height: .88; letter-spacing: -.052em; }
.mast__title { max-width: 26ch; font-size: clamp(1.25rem, 2.22vw, 2.05rem); font-weight: 500; line-height: 1.17; letter-spacing: -.04em; text-wrap: balance; }
.authors { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px 14px; margin-top: clamp(24px, 3vw, 36px); }
.author > a, .author > span { display: grid; justify-items: center; align-content: start; gap: 8px; width: 98px; color: var(--ink); text-align: center; text-decoration: none; }
.nw { white-space: nowrap; }
.author { display: grid; justify-items: center; width: 98px; text-align: center; }
.author__ph { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: var(--accent-wash); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s; }
.author__ph img { width: 100%; height: 100%; object-fit: cover; }
.author a:hover .author__ph { box-shadow: 0 0 0 2px var(--accent); }
.author__mono { font-size: 1.45rem; font-weight: 600; letter-spacing: -.03em; color: var(--accent); }
.author__n { display: block; margin-top: 8px; font-size: .84rem; font-weight: 500; line-height: 1.25; }
.author > a .author__n, .author > span .author__n { margin-top: 0; }
.author a:hover .author__n { text-decoration: underline; color: var(--accent); }
.author__n sup { margin-left: 1px; color: var(--accent); font-weight: 600; }
.affils { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; margin-top: 20px; color: var(--muted); font-size: .86rem; }
.affil { display: inline-flex; align-items: center; gap: 6px; }
.affil sup { color: var(--accent); font-weight: 600; }
.logo { width: 222px; height: auto; }   /* JHU minimum logo box 222 x 68 px */
.logo--dark { display: none; }
:root[data-theme="dark"] .logo--light { display: none; } :root[data-theme="dark"] .logo--dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo--light { display: none; } :root:not([data-theme="light"]) .logo--dark { display: block; } }
.mast__side { display: grid; gap: 18px; padding-bottom: 8px; }
.resources { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 28px; font-size: .95rem; font-weight: 600; }
.res { display: inline-flex; align-items: center; gap: 5px; text-decoration: underline; text-decoration-color: var(--line-strong); }
.res:hover { text-decoration-thickness: 2px; text-decoration-color: currentColor; }
.res .ic { width: .78em; height: .78em; }
.res.is-soon { color: var(--muted); text-decoration: none; cursor: default; }
.res.is-soon small { display: inline-block; margin-left: 2px; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 999px; font: 500 .66rem/1.5 var(--mono); }
.mast__claim { max-width: 36ch; color: var(--ink-2); font-size: 1.04rem; line-height: 1.45; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(30px, 4vw, 52px); }
.stat { padding-top: 14px; border-top: 1px solid var(--ink); }
.stat__v { font-size: clamp(2.3rem, 4vw, 3.5rem); font-weight: 600; line-height: 1; letter-spacing: -.045em; }
.stat__l { margin-top: 8px; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.stat__d { margin-top: 3px; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.stat__src { display: block; margin-top: 2px; font: 500 .72rem var(--mono); white-space: nowrap; }
.more--abstract { margin-top: 26px; }
.abstract { max-width: 78ch; font-size: 1rem; line-height: 1.6; color: var(--ink-2); }

/* ============================================================================ sections */
.sec { padding-bottom: var(--pad); }
.sec > .shell { padding-top: var(--pad); border-top: 1px solid var(--line); }
.sec__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; gap: clamp(20px, 6vw, 90px); margin-bottom: clamp(24px, 3.2vw, 46px); }
.sec__t { font-size: clamp(2.15rem, 4.1vw, 3.95rem); font-weight: 600; line-height: 1.02; letter-spacing: -.055em; text-wrap: balance; }
.sec__dek { max-width: 52ch; padding-top: .55em; color: var(--muted); font-size: 1.02rem; line-height: 1.55; }
.cap { margin-top: 10px; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.cap b { color: var(--ink); font-weight: 600; }
.sec--stage { background: var(--stage); }
:root[data-theme="dark"] .sec--stage { background: #070B0D; box-shadow: inset 0 1px var(--stage-line), inset 0 -1px var(--stage-line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sec--stage { background: #070B0D; box-shadow: inset 0 1px var(--stage-line), inset 0 -1px var(--stage-line); } }
.sec--stage > .shell { border-top: 0; }
.sec--stage + .sec > .shell { border-top: 0; }

/* ============================================================================ how it works */
.method { display: grid; grid-template-columns: minmax(270px, .42fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.method__blocks { display: grid; gap: 26px; }
.mblock { padding-top: 14px; border-top: 1px solid var(--ink); }
.mblock h3 { font-size: clamp(1.45rem, 2.1vw, 1.9rem); font-weight: 600; line-height: 1.08; letter-spacing: -.045em; }
.mblock > p { margin-top: 8px; color: var(--muted); font-size: .97rem; }
.mblock__stat { font-family: var(--mono); font-size: .8rem !important; color: var(--muted) !important; }
.mblock__stat b { font-family: var(--sans); font-size: 1.25rem; color: var(--ink); letter-spacing: -.02em; margin-right: 2px; }
.cats { display: grid; grid-template-columns: repeat(2, max-content); gap: 6px; margin-top: 12px; }
.cats .cat { justify-self: start; }
.cat { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 2px; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; background: var(--sheet); }
.cat i { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--c); color: #fff; font: 700 .7rem/1 var(--sans); font-style: normal; }
.cat b { font: 500 .7rem var(--mono); color: var(--muted); }
.cat--t { --c: var(--cat-t); } .cat--p { --c: var(--cat-p); } .cat--s { --c: var(--cat-s); } .cat--m { --c: var(--cat-m); } .cat--k { --c: var(--cat-k); }
.modes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
@media (min-width: 1101px) { .modes { flex-wrap: nowrap; } }
.modes li { white-space: nowrap; padding: 3px 9px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--sheet); }
.modes b { font-weight: 600; font-size: .86rem; }
.gl { display: grid; gap: 14px; }
.gl__h { font: 600 .7rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.gl dl { display: grid; gap: 6px; }
.gl dt { font-weight: 600; font-size: .88rem; }
.gl dt abbr { font-family: var(--mono); font-size: .8rem; margin-right: 4px; color: var(--accent); }
.gl dd { color: var(--muted); font-size: .84rem; line-height: 1.45; }
.qtypes { margin-top: clamp(26px, 3vw, 38px); padding-top: 14px; border-top: 1px solid var(--line); font: 500 .8rem/1.7 var(--mono); color: var(--muted); text-wrap: pretty; }
.qtypes > span:first-child { margin-right: 6px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--accent); }
.qtypes b { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------------------- Figure 3 */
.f3 { min-width: 0; position: sticky; top: calc(var(--nav-h) + 24px); }
.f3__panel { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); min-height: 440px; border-radius: var(--r); background: var(--stage); }
.f3__media { display: grid; align-content: center; gap: 14px; padding: 16px; }
.f3__video, .viewer__v { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2px; background: #050809; }
.f3__video video, .viewer__v video { width: 100%; height: 100%; object-fit: cover; }
.vtime { position: absolute; left: 10px; bottom: 10px; display: inline-flex; gap: 8px; align-items: baseline; padding: 3px 9px; border-radius: 999px; background: rgb(10 16 19 / .78); font: 500 .74rem var(--mono); color: var(--stage-muted); }
.vtime b { color: #fff; font-size: .86rem; font-variant-numeric: tabular-nums; }
.vtime [data-flag] { color: #111A1F; background: var(--amber); border-radius: 999px; padding: 0 7px; font-weight: 700; text-transform: uppercase; font-size: .64rem; letter-spacing: .06em; }
.f3tl { display: grid; gap: 6px; }
.f3tl__row { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; align-items: center; }
.f3tl__lab { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--stage-muted); }
.f3tl__lab--exit { color: var(--amber); align-self: start; }
.f3tl__track { position: relative; height: 12px; border-radius: 2px; background: var(--stage-2); }
.f3tl__w { position: absolute; top: 2px; height: 8px; border-radius: 2px; min-width: 3px; transition: opacity .3s, box-shadow .3s; }
.f3tl__w--d { background: #8D9AA0; }
.f3tl__w--v { background: var(--teal-night); }
.f3[data-tab="draft"] .f3tl__w--v, .f3[data-tab="flags"] .f3tl__w--v, .f3[data-tab="verified"] .f3tl__w--d { opacity: .3; }
.f3tl__track--axis { height: 22px; background: none; }
.f3tl__exit { position: absolute; top: 1px; height: 6px; border-radius: 2px; background: var(--amber); box-shadow: 0 0 10px rgb(244 197 111 / .5); }
.f3tl__play { position: absolute; top: 2px; height: 2px; background: rgb(238 242 239 / .35); }
.f3tl__head { position: absolute; top: -40px; height: 46px; width: 2px; margin-left: -1px; background: #fff; border-radius: 1px; pointer-events: none; }
.f3tl__t { position: absolute; top: 9px; transform: translateX(-50%); font: 500 .66rem var(--mono); color: var(--stage-muted); white-space: nowrap; }
.f3tl__t:first-of-type { transform: none; }
.f3tl__t--end { transform: translateX(-100%); }
.f3__text { position: relative; padding: 20px 22px; border-left: 1px solid var(--stage-line); min-width: 0; }
.f3p { display: none; }
.f3[data-tab="question"] .f3p[data-tab="question"], .f3[data-tab="draft"] .f3p[data-tab="draft"], .f3[data-tab="flags"] .f3p[data-tab="flags"], .f3[data-tab="verified"] .f3p[data-tab="verified"] { display: block; animation: fadeIn .45s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.f3p__k { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font: 600 .7rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--stage-muted); }
.f3p__k:not(:first-child) { margin-top: 16px; }
.f3p__q { font-size: clamp(1.25rem, 1.9vw, 1.6rem); font-weight: 500; line-height: 1.2; letter-spacing: -.025em; color: #fff; }
.f3p__a { font-size: 1rem; color: var(--stage-ink); line-height: 1.45; }
.f3p__meta { margin-top: 14px; font: 500 .74rem var(--mono); color: var(--stage-muted); }
.flagcount { padding: 0 8px; border: 1px solid var(--coral-night); border-radius: 999px; color: var(--coral-night); text-transform: none; letter-spacing: 0; font-weight: 500; }
.flagcount--ok { border-color: var(--teal-night); color: var(--teal-night); }
.f3steps { display: grid; }
.f3s { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--stage-line); }
.f3s__n { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--stage-line); font: 600 .66rem var(--mono); color: var(--stage-muted); }
.f3s__call { font: 500 .76rem/1.45 var(--mono); color: var(--stage-ink); overflow-wrap: anywhere; }
.f3s__out { margin-top: 3px; font-size: .88rem; color: var(--stage-muted); }
.f3s__flag { display: flex; gap: 6px; margin-top: 5px; color: var(--amber); font-size: .84rem; }
.f3s__flag .ic { margin-top: .22em; }
.f3[data-tab="draft"] .f3s__flag { display: none; }
.f3notes { display: grid; gap: 12px; }
.f3note { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; align-items: start; padding: 12px; border: 1px solid rgb(244 197 111 / .4); border-radius: var(--r); background: rgb(244 197 111 / .07); color: #fff; font-size: .98rem; }
.f3note .ic { color: var(--amber); margin-top: .25em; }
.verdict { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; font-size: .92rem; line-height: 1.4; }
.verdict .glyph { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.verdict--bad { color: var(--coral-night); }
.verdict--ok { color: var(--teal-night); }
.verdict--ok .glyph--ok path { stroke: var(--stage); }
.f3__bar { display: flex; gap: 6px; margin-top: 6px; }
.f3__bar > .pill { min-height: 44px; }
.f3__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; flex: 1; }
.f3tab { position: relative; padding: 11px 8px; border: 0; border-top: 2px solid var(--line); background: transparent; color: var(--muted); font-size: .88rem; font-weight: 600; line-height: 1.25; }
.f3tab:hover { color: var(--ink); }
.f3tab[aria-selected="true"] { background: var(--accent-wash); color: var(--ink); border-top-color: var(--accent); }
.f3tab__prog { position: absolute; left: 0; top: -2px; height: 2px; width: 0; background: var(--ink); }
.f3tab.is-run .f3tab__prog { animation: prog var(--hold, 5s) linear forwards; }
@keyframes prog { from { width: 0; } to { width: 100%; } }

/* ============================================================================ charts */
.chart { margin: 0; min-width: 0; }
.chart__body { position: relative; min-width: 0; }
.chart--wide .chart__body { margin-top: 4px; }
.viz { width: 100%; height: auto; overflow: visible; font-family: var(--sans); }
.viz text { fill: var(--ink-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.viz .t-tick { fill: var(--muted); font-family: var(--mono); font-size: 10.5px; }
.viz .t-head { fill: var(--muted); font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; }
.viz .t-group { fill: var(--muted); font-family: var(--mono); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; }
.viz .t-name { fill: var(--ink); font-size: 12.5px; font-weight: 500; }
.viz .t-dim { fill: var(--ink-2); }
.viz .t-sm { font-size: 11.5px; }
.viz .t-val { fill: var(--ink); font-family: var(--mono); font-size: 11px; font-weight: 600; }
.viz .t-gap { fill: var(--teal-ink); font-family: var(--mono); font-size: 11px; font-weight: 700; }
.viz .t-note { fill: var(--muted); font-size: 11px; }
.viz .t-lab { fill: var(--ink); font-size: 11.5px; font-weight: 600; }
.viz .t-strong { fill: var(--ink); font-weight: 700; font-size: 12.5px; }
.viz .t-mono { font-family: var(--mono); }
.viz .t-in { font-family: var(--mono); font-size: 11px; font-weight: 700; }
.viz .gridline { stroke: var(--grid); stroke-width: 1; }
.viz .axisline { stroke: var(--axis); stroke-width: 1; }
.viz .rowline { stroke: var(--grid); stroke-width: 1; opacity: .7; }
.viz .refline { stroke: var(--ink); stroke-width: 1; }
.viz .refline--muted { stroke: var(--mark-muted); }
.viz .s-link { stroke: var(--mark-faint); }
.viz .s-end { stroke: var(--coral); } .viz .s-ver { stroke: var(--teal); } .viz .s-ink { stroke: var(--ink); } .viz .s-faint { stroke: var(--mark-faint); }
.viz .f-end { fill: var(--coral); } .viz .f-ver { fill: var(--teal); } .viz .f-ink { fill: var(--ink); } .viz .f-muted { fill: var(--mark-muted); }
.viz .f-band { fill: var(--panel); }
.viz .f-chain-1 { fill: var(--chain-1); } .viz .f-chain-2 { fill: var(--chain-2); } .viz .f-chain-3 { fill: var(--chain-3); } .viz .f-chain-4 { fill: var(--chain-4); } .viz .f-chain-5 { fill: var(--chain-5); }
.viz .ring-sheet { stroke: var(--paper); stroke-width: 2; }
.viz .hit { fill: transparent; cursor: default; }
.viz .hit:hover { fill: rgb(127 127 127 / .08); }
.viz .hit:focus-visible { fill: rgb(127 127 127 / .12); stroke: var(--focus); stroke-width: 2px; outline: none; }
.viz .f-hollow { fill: var(--paper); stroke: var(--mark-muted); stroke-width: 1.6; }
.viz .t-tick, .viz .t-head, .viz .t-group { font-size: 11.5px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0; color: var(--muted); font-size: .8rem; }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.legend i { display: inline-block; flex: none; }
.legend .dt2 { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.legend .ln2 { width: 16px; height: 2px; border-radius: 1px; background: var(--c); }
.legend .sw2 { width: 10px; height: 10px; border-radius: 2px; background: var(--c); }
.legend .ast { display: none; }
.legend .ring2 { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.6px var(--c); }
.cap--data { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.cap--data > .more--data { margin-top: 0; }
.cap--data > .more--data[open] { flex-basis: 100%; }
.chart__title { margin-bottom: 4px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.cap--src { margin-top: 6px; font: 500 .72rem var(--mono); color: var(--muted); }

/* ============================================================================ leaderboard */
.lb { margin-top: clamp(30px, 4vw, 52px); }
.lb__top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 20px; border-bottom: 1px solid var(--line); }
.lb__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-bottom: 8px; }
.lb__groups { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--muted); font-size: .78rem; font-weight: 500; }
.fchip[aria-pressed="true"] { background: var(--accent-wash); border-color: var(--accent); color: var(--ink); }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__ui { position: relative; width: 30px; height: 17px; border-radius: 999px; background: var(--line-strong); transition: background .2s; }
.switch__ui::after { content: ""; position: absolute; left: 2px; top: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); transition: transform .2s var(--ease); }
.switch input:checked + .switch__ui { background: var(--accent); }
.switch input:checked + .switch__ui::after { transform: translateX(13px); }
.switch input:focus-visible + .switch__ui { outline: 3px solid var(--focus); outline-offset: 2px; }
.lb__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 12px 0 8px; }
.lb__caption { font: 500 .8rem var(--mono); color: var(--muted); }
.lb__caption b { color: var(--ink); }
.lb__legend { margin: 0; }
.lb__legend li { white-space: nowrap; }
.lb__legend li > span:first-child { color: var(--ink-2); font-weight: 500; }
.lb__legend .muted { color: var(--muted); }
.ramp { display: inline-flex; gap: 2px; }
.ramp i { width: 14px; height: 10px; border-radius: 2px; }
.lb__colset { display: none; }
.lb__hint { display: none; font: 500 .74rem var(--mono); color: var(--muted); }
.lb__hint .ic { display: inline; vertical-align: -.1em; }
.lb__scroll { border-top: 1px solid var(--ink); }
.lbt { width: 100%; min-width: 1060px; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.lbt--narrow { min-width: 0; }
.lbt th, .lbt td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.lbt td { font: 500 .82rem var(--mono); position: relative; }
.lbt__g th { padding-top: 10px; padding-bottom: 6px; border-bottom: 2px solid var(--line); text-align: center; font: 600 .7rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.lbt__g th small { display: block; margin-top: 2px; font-size: .64rem; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); }
.lbt__g .g--proc { border-bottom-color: var(--teal); } .lbt__g .g--judge { border-bottom-color: var(--ink); } .lbt__g .g--end { border-bottom-color: var(--coral); }
.lbt__corner { text-align: left !important; vertical-align: bottom; font: 600 .7rem var(--mono) !important; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 1px solid var(--ink) !important; }
.lbt__c th { padding-top: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--ink); }
.lbt__c button { display: inline-flex; align-items: center; gap: 3px; padding: 0; border: 0; background: none; font: 600 .76rem var(--mono); color: var(--ink); }
.lbt__c .sort-ic { width: 9px; height: 9px; opacity: .3; transition: transform .2s; }
.lbt__c th[aria-sort="descending"] .sort-ic { opacity: 1; }
.lbt__c th[aria-sort="ascending"] .sort-ic { opacity: 1; transform: rotate(180deg); }
.lbt .c-name { text-align: left; font: 600 .9rem var(--sans); color: var(--ink); position: sticky; left: 0; z-index: 1; background: var(--paper); }
.lbt .lbt__corner { position: sticky; left: 0; z-index: 2; background: var(--paper); }
.lbt .c-name small { display: block; font-size: .68rem; font-weight: 500; color: var(--muted); }
.lbt__grp th { padding-top: 16px; padding-bottom: 6px; text-align: left; font: 600 .68rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 1px solid var(--line); }
.lbt__row:hover th, .lbt__row:hover td { background-color: var(--panel); }
.lbt td.c-ans { font-weight: 700; font-size: .88rem; }
.lbt td.is-best .v { font-weight: 800; color: var(--ink); }
.lbt td.is-second .v { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.lbt td .n { margin-left: 3px; font-size: .68rem; font-weight: 500; color: var(--ink-2); }
.lbt td.is-few { box-shadow: inset 0 -2px 0 var(--amber-mark); }
.lbt td .warn { width: 11px; height: 11px; margin-right: 3px; vertical-align: -1px; color: var(--partial); display: inline; }
.lbt td .v2 { display: block; font-size: .7rem; color: var(--muted); }
.lbt tr.is-hidden { display: none; }
.lbt tfoot th, .lbt tfoot td { border-bottom: 0; padding-top: 10px; font-size: .78rem; color: var(--muted); }
.lbt tfoot th { text-align: left; font: 600 .8rem var(--sans); }
/* heat: five steps of the mode's own hue, light tints so the numbers stay ink */
td.h--proc-1 { background-color: rgb(var(--h-proc) / .04); } td.h--proc-2 { background-color: rgb(var(--h-proc) / .1); } td.h--proc-3 { background-color: rgb(var(--h-proc) / .17); } td.h--proc-4 { background-color: rgb(var(--h-proc) / .26); } td.h--proc-5 { background-color: rgb(var(--h-proc) / .38); }
td.h--judge-1 { background-color: rgb(var(--h-judge) / .03); } td.h--judge-2 { background-color: rgb(var(--h-judge) / .07); } td.h--judge-3 { background-color: rgb(var(--h-judge) / .12); } td.h--judge-4 { background-color: rgb(var(--h-judge) / .18); } td.h--judge-5 { background-color: rgb(var(--h-judge) / .26); }
td.h--end-1 { background-color: rgb(var(--h-end) / .04); } td.h--end-2 { background-color: rgb(var(--h-end) / .1); } td.h--end-3 { background-color: rgb(var(--h-end) / .17); } td.h--end-4 { background-color: rgb(var(--h-end) / .26); } td.h--end-5 { background-color: rgb(var(--h-end) / .38); }
.ramp .h--proc-1 { background: rgb(var(--h-proc) / .04); } .ramp .h--proc-2 { background: rgb(var(--h-proc) / .1); } .ramp .h--proc-3 { background: rgb(var(--h-proc) / .17); } .ramp .h--proc-4 { background: rgb(var(--h-proc) / .26); } .ramp .h--proc-5 { background: rgb(var(--h-proc) / .38); }
.ramp .h--judge-1 { background: rgb(var(--h-judge) / .03); } .ramp .h--judge-2 { background: rgb(var(--h-judge) / .07); } .ramp .h--judge-3 { background: rgb(var(--h-judge) / .12); } .ramp .h--judge-4 { background: rgb(var(--h-judge) / .18); } .ramp .h--judge-5 { background: rgb(var(--h-judge) / .26); }
.ramp .h--end-1 { background: rgb(var(--h-end) / .04); } .ramp .h--end-2 { background: rgb(var(--h-end) / .1); } .ramp .h--end-3 { background: rgb(var(--h-end) / .17); } .ramp .h--end-4 { background: rgb(var(--h-end) / .26); } .ramp .h--end-5 { background: rgb(var(--h-end) / .38); }
.ramp i { box-shadow: inset 0 0 0 1px var(--line); }
.is-wave { animation: wave .5s var(--ease) both; }
@keyframes wave { from { opacity: .2; } to { opacity: 1; } }
.lb__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 20px; margin-top: 10px; }
.lb__foot .more { margin-top: 0; }
.lb__sort { color: var(--muted); font-size: .8rem; }
.lb__sort .ic { display: inline; width: 11px; height: 11px; vertical-align: -1px; color: var(--partial); }
@media (max-width: 1180px) {
  .lb__colset { display: inline-flex; }
  .lbt[data-colset="end"] [data-mode="proc"], .lbt[data-colset="end"] [data-mode="judge"],
  .lbt[data-colset="proc"] [data-mode="judge"], .lbt[data-colset="proc"] [data-mode="end"],
  .lbt[data-colset="judge"] [data-mode="proc"], .lbt[data-colset="judge"] [data-mode="end"] { display: none; }
  .lbt[data-colset="end"], .lbt[data-colset="proc"], .lbt[data-colset="judge"] { min-width: 0; }
  .lb__hint.is-on { display: block; }
}

/* ============================================================================ findings */
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4.2vw, 60px); }
.finding { display: grid; grid-template-rows: subgrid; grid-row: span 5; padding: 16px 0 40px; border-top: 1px solid var(--ink); }
.finding__n { font: 600 .76rem var(--mono); color: var(--accent); letter-spacing: .06em; }
.finding__h { margin-top: 6px; font-size: clamp(1.35rem, 2.05vw, 1.8rem); font-weight: 600; line-height: 1.1; letter-spacing: -.04em; text-wrap: balance; }
.finding__num { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-top: 10px; }
.finding__num b { font-size: clamp(1.9rem, 3vw, 2.55rem); font-weight: 600; line-height: 1; letter-spacing: -.045em; }
.finding__num span { max-width: 40ch; color: var(--muted); font-size: .92rem; line-height: 1.35; }
.fchart { margin-top: 16px; min-width: 0; }
.fchart > .seg { margin-bottom: 10px; }
.fchart > .chart + .chart { margin-top: 22px; }
.fchart .chart__title { margin-bottom: 4px; font-weight: 600; font-size: .9rem; }
.finding > .more { align-self: start; }
.tk { margin-top: clamp(16px, 2vw, 26px); padding-top: 18px; border-top: 1px solid var(--line); }
.tk .kicker { margin-bottom: 12px; }
.tk__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px clamp(20px, 3vw, 40px); }
.tk__list li { display: flex; align-items: baseline; gap: 12px; padding-top: 12px; border-top: 1px solid var(--ink); }
.tk__n { font: 600 .8rem var(--mono); color: var(--accent); }
.tk__list b { font-size: clamp(1.2rem, 1.8vw, 1.5rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.tk__close { margin-top: 10px; font-weight: 600; color: var(--ink); }

/* ============================================================================ explorer */
.ex { min-width: 0; }
.pick__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.pick__show { display: inline-flex; align-items: center; gap: 8px; }
.pick__show > span { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.search { position: relative; display: flex; align-items: center; flex: 1 1 220px; max-width: 360px; min-height: 34px; padding: 0 .3rem 0 .6rem; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--paper); }
.search > .ic { color: var(--muted); }
.search__in { flex: 1; min-width: 0; padding: .35rem .5rem; border: 0; background: transparent; font-size: .9rem; outline: none; }
.search__in::-webkit-search-cancel-button { display: none; }
.search:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.search__x { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 50%; background: none; color: var(--muted); }
.search__x .ic { width: 11px; height: 11px; }
.pick__nav { display: flex; align-items: center; gap: 6px; }
.pick__count { margin-left: auto; font: 500 .76rem var(--mono); color: var(--muted); }
.pick__strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(196px, 222px); gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
.pick__strip > li { scroll-snap-align: start; min-width: 0; }
.pick__empty { padding: 20px 0; color: var(--muted); }
.pick__empty p { margin-bottom: 10px; }
.pick__more { margin-top: 10px; }
.scard { display: grid; gap: 7px; width: 100%; height: 100%; align-content: start; padding: 8px 8px 10px; border: 0; border-top: 2px solid var(--line); border-radius: 0; background: transparent; text-align: left; color: var(--ink); transition: background .15s, border-color .15s; }
.scard:hover { background: var(--panel); }
.scard[aria-pressed="true"] { background: var(--accent-wash); border-top-color: var(--accent); }
.scard__img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2px; background: var(--stage); }
.scard__img img { width: 100%; height: 100%; object-fit: cover; }
.scard__strip { position: absolute; inset: 0; background-size: 800% 100%; background-position: 0 0; opacity: 0; transition: opacity .2s; }
.scard:hover .scard__strip, .scard:focus-visible .scard__strip { opacity: 1; animation: flick 2.4s steps(8, jump-none) infinite; }
@keyframes flick { from { background-position: 0% 0; } to { background-position: 100% 0; } }
.scard__fig { position: absolute; left: 6px; top: 6px; padding: 1px 6px; border-radius: 2px; background: rgb(10 16 19 / .82); color: #fff; font: 600 .72rem var(--mono); letter-spacing: .02em; }
.scard__t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; font-size: .9rem; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.scard__m { font: 500 .72rem var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scard__r { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font: 500 .72rem var(--mono); color: var(--muted); }
.dots .dot--r { fill: var(--ok); } .dots .dot--w { fill: var(--bad-wash); stroke: var(--bad); stroke-width: .8; stroke-opacity: .45; }
.dots .dot--n { fill: var(--none-wash); stroke: var(--none); stroke-width: .8; stroke-opacity: .5; } .dots .dot--x { fill: none; stroke: var(--line-strong); stroke-width: .8; stroke-dasharray: 1.5 1.2; }
.ex__main { margin-top: 20px; padding-top: 22px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 8px); transition: opacity .2s; }
.ex__main.is-loading { opacity: .55; }
.qhead { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px clamp(20px, 3vw, 40px); align-items: start; margin-bottom: 18px; }
.qhead__meta { font: 500 .74rem var(--mono); color: var(--muted); }
.qhead__title { margin-top: 8px; font-size: .95rem; font-weight: 600; color: var(--accent); }
.qhead__q { margin-top: 6px; font-size: clamp(1.4rem, 2.4vw, 2.1rem); font-weight: 600; line-height: 1.14; letter-spacing: -.035em; text-wrap: balance; }
.gold { padding: 12px 14px; border-left: 3px solid var(--accent); border-radius: 0 var(--r) var(--r) 0; background: var(--accent-wash); }
.gold__k { font: 600 .68rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.gold__a { margin-top: 4px; font-size: 1.12rem; font-weight: 600; line-height: 1.3; }
.gold__rule { margin-top: 4px; font-size: .82rem; color: var(--muted); }
.gold--compact { padding: 9px 12px; }
.gold--compact .gold__a { font-size: 1rem; }
.stage { padding: clamp(14px, 1.8vw, 20px); border-radius: var(--r); background: var(--stage); color: var(--stage-ink); }
.viewer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 16px; }
.viewer > .viewer__v { max-width: 880px; width: 100%; justify-self: center; }
.viewer[hidden] { display: none; }
.viewer__bar { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.viewer__cap { color: var(--stage-muted); font-size: .84rem; line-height: 1.45; }
.viewer__cap .credit { color: var(--stage-muted); }
.fstrip { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.ftile { min-width: 0; }
.sprite-tile { display: block; width: 100%; border-radius: 2px; background-repeat: no-repeat; background-color: var(--stage-2); }
.fstrip--img img { width: 100%; border-radius: 2px; }
.ftile.is-evid .sprite-tile, .ftile.is-evid img { box-shadow: 0 0 0 2px var(--amber); }
.ftile__t { display: block; margin-top: 4px; font: 500 .66rem var(--mono); color: var(--stage-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ftile__t b { color: var(--stage-ink); font-weight: 600; }
.stage__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 12px 0 4px; }
.stage__cap { color: var(--stage-muted); font-size: .8rem; }
.stage__cap .credit { color: var(--stage-muted); }
.stage__note { margin-top: 10px; color: var(--stage-muted); font-size: .76rem; line-height: 1.45; }
/* lanes timeline (explorer, worked examples) */
.tl { margin-top: 12px; }
.tl__labels { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font: 600 .66rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--stage-muted); }
.lanes { position: relative; display: grid; gap: 4px; }
.lane { display: grid; grid-template-columns: var(--lane-label) minmax(0, 1fr) 40px; gap: 10px; align-items: center; }
.lane__name { overflow: hidden; color: var(--stage-ink); font-size: .78rem; font-weight: 500; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.lane--ref .lane__name { color: var(--teal-night); font-weight: 600; }
.lane__track { position: relative; height: calc(var(--rows, 1) * 10px + 8px); min-height: 18px; border-radius: 3px; background: var(--stage-2); }
.lane__track--ref { background: color-mix(in srgb, var(--teal-night) 10%, var(--stage-2)); }
.lane__evid { position: absolute; top: -3px; bottom: -3px; min-width: 3px; background: rgb(244 197 111 / .18); border-inline: 1.5px solid var(--amber); box-shadow: 0 0 14px 2px rgb(244 197 111 / .22); pointer-events: none; }
.mk { position: absolute; top: calc(4px + var(--r, 0) * 10px); height: 8px; min-width: 4px; padding: 0; border: 0; border-radius: 2px; background: var(--c, var(--stage-muted)); cursor: pointer; }
.mk--t, .gsq.mk--t { --c: var(--cat-t-night); } .mk--p, .gsq.mk--p { --c: var(--cat-p-night); } .mk--s, .gsq.mk--s { --c: var(--cat-s-night); }
.mk--m, .gsq.mk--m { --c: var(--cat-m-night); } .mk--k, .gsq.mk--k { --c: var(--cat-k-night); } .mk--x, .gsq.mk--x { --c: var(--stage-muted); }
.mk--whole { left: 0 !important; width: 100% !important; top: calc(7px + var(--r, 0) * 10px); height: 2px; opacity: .45; }
.lane__empty { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); font: 500 .72rem var(--mono); color: var(--stage-muted); white-space: nowrap; pointer-events: none; }
.tl__legend { margin-top: 10px; color: var(--stage-muted); font-size: .76rem; }
.tl__legend .lg { position: relative; width: 14px; height: 8px; border-radius: 2px; background: var(--c); }
.tl__legend .lg--fail { background: repeating-linear-gradient(135deg, var(--stage-muted) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px var(--stage-muted); }
.tl__legend .lg--hit { background: var(--stage-3); box-shadow: 0 0 0 1.5px var(--amber); }
.tl__legend .lg--sq { width: 9px; height: 9px; background: var(--stage-muted); }
.mk--point { width: 9px; height: 9px; top: calc(3.5px + var(--r, 0) * 10px); border-radius: 1px; transform: translateX(-4.5px) rotate(45deg); }
.mk--fail, .gsq--fail { background: repeating-linear-gradient(135deg, var(--c) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px var(--c); }
.mk--hit { box-shadow: 0 0 0 1.5px var(--amber); }
.mk:hover, .mk:focus-visible, .gsq:hover { filter: brightness(1.3); z-index: 2; }
.lane__gutter { display: flex; align-items: center; gap: 3px; min-width: 0; font: 600 .64rem var(--mono); color: var(--stage-muted); }
.gsq { flex: none; width: 9px; height: 9px; padding: 0; border: 0; border-radius: 2px; background: var(--c); cursor: pointer; }
.lane--ticks, .lane--axis { align-items: start; }
.lane__ticks { position: relative; height: 11px; }
.tl__tick { position: absolute; top: 0; width: 1px; height: 8px; background: var(--stage-muted); opacity: .7; transform: translateX(-.5px); }
.tl__tick--strip { height: 11px; background: var(--stage-ink); opacity: .95; }
.tl__tick.is-near { background: #fff; opacity: 1; height: 13px; }
.lane__axis { position: relative; height: 14px; font: 500 .66rem var(--mono); color: var(--stage-muted); }
.lane__axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.lane__axis span.is-first { transform: none; }
.tl--compact .lane { grid-template-columns: var(--lane-label) minmax(0, 1fr) 30px; }
.tl__head { position: absolute; top: -4px; bottom: 18px; width: 2px; margin-left: -1px; background: #fff; border-radius: 1px; pointer-events: none; z-index: 3; box-shadow: 0 0 0 1px rgb(10 16 19 / .6); }
.loupe { margin-top: 14px; padding: 10px 12px 12px; border: 1px solid var(--stage-line); border-radius: var(--r); }
.loupe__lbl { font: 600 .66rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--amber); }
.ex__controls { position: sticky; top: var(--nav-h); z-index: 20; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 20px; margin: 16px 0 14px; padding: 10px 0 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.sides { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 8px; flex: 1 1 480px; max-width: 640px; padding-bottom: 10px; }
.side { display: grid; gap: 4px; min-width: 0; }
.side > span { font: 600 .66rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.side .select { width: 100%; }
.modebar { display: flex; align-items: end; gap: 14px; }
.mobile-switch { display: none; margin-bottom: 8px; }
.cards2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (min-width: 900px) { .cards2 > .mcard { position: sticky; top: calc(var(--nav-h) + 84px); } }
.mcard { min-width: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--sheet); }
.mcard__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 12px 14px 10px; border-bottom: 1px solid var(--line); }
.mcard__side { font: 600 .64rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.mcard__name { font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; }
.mcard__grp { font-size: .78rem; color: var(--muted); }
.mcard__badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.mcard__na { padding: 14px; color: var(--muted); font-size: .9rem; }
.mcard__sum { padding: 8px 14px; border-bottom: 1px solid var(--line); font: 500 .74rem var(--mono); color: var(--muted); }
.mcard__body { display: grid; gap: 12px; padding: 12px 14px 14px; }
.answer { padding: 10px 12px; border-radius: var(--r); background: var(--panel); }
.answer p { margin-top: 3px; font-size: .94rem; line-height: 1.45; overflow-wrap: anywhere; }
.judge__h { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.jrow { display: grid; grid-template-columns: 36px minmax(0, 1fr) 30px; gap: 8px; align-items: center; height: 17px; }
.jrow abbr { font: 600 .7rem var(--mono); }
.jbar { position: relative; height: 5px; border-radius: 3px; background: var(--panel); overflow: hidden; }
.jbar i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--ink-2); }
.jrow__v { font: 500 .7rem var(--mono); text-align: right; color: var(--ink-2); }
.jrow--na .jrow__v, .jrow--na abbr { color: var(--muted); }
.calls { display: grid; gap: 8px; }
.call { min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); transition: box-shadow .3s; }
.call--fail { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); background: color-mix(in srgb, var(--bad-wash) 45%, transparent); }
.call--fmt { border-style: dashed; }
.call.is-flash, .rstep.is-flash { box-shadow: 0 0 0 3px var(--amber); }
.call__h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.call__n { min-width: 14px; font: 600 .7rem var(--mono); color: var(--muted); }
.call__st { margin-left: auto; font: 600 .66rem var(--mono); }
.call__st--ok { color: var(--teal-ink); } .call__st--bad { color: var(--bad); } .call__st--none { color: var(--muted); }
.call__hit { padding: 0 6px; border-radius: 999px; background: var(--evidence-page); font: 600 .64rem/1.6 var(--mono); color: var(--ink); }
.call__th { margin-top: 6px; font-size: .86rem; line-height: 1.45; color: var(--ink-2); font-style: italic; }
.call__args { margin-top: 5px; padding: 0 6px; border-block: 3px solid var(--panel); border-radius: 2px; background: var(--panel); font: 500 .74rem/1.45 var(--mono); color: var(--ink-2); overflow-wrap: anywhere; }
.call__out { margin-top: 5px; font-size: .84rem; line-height: 1.45; overflow-wrap: anywhere; }
.call__out .lbl { margin-right: 6px; }
.call__self { display: flex; align-items: center; gap: 5px; margin-top: 5px; font-size: .76rem; color: var(--bad); }
.clamp { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp--2 { -webkit-line-clamp: 2; } .clamp--3 { -webkit-line-clamp: 3; } .clamp--4 { -webkit-line-clamp: 4; }
.is-open .clamp { display: block; -webkit-line-clamp: unset; }
.more-btn { margin-top: 4px; padding: 0; border: 0; background: none; color: var(--accent); font-size: .78rem; font-weight: 600; }
.refp { grid-column: 1 / -1; min-width: 0; padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.refp__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 10px; }
.refp__h h4 { font-size: 1.1rem; font-weight: 600; letter-spacing: -.02em; }
.rsteps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 18px; }
.rstep { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; min-width: 0; }
.rstep__n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-wash); color: var(--accent); font: 700 .68rem var(--mono); }
.rstep.is-evid .rstep__n { background: var(--amber); color: #111A1F; }
.rstep--ans .rstep__n { background: var(--accent); color: var(--paper); }
.rstep--ans .rstep__n .ic { width: 12px; height: 12px; stroke-width: 2.2; }
.rstep__a { margin-top: 2px; font-weight: 600; }
.ex > .more, .ex__main > .more { margin-top: 18px; }

/* ============================================================================ worked examples (dark band) */
.sec--stage .sec__t { color: #fff; }
.sec--stage .sec__dek { color: var(--stage-muted); }
.ctabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.ctab { display: grid; gap: 4px; padding: 10px 12px 12px; border: 0; border-top: 2px solid var(--stage-line); background: transparent; text-align: left; color: var(--stage-ink); }
.ctab:hover { background: var(--stage-2); }
.ctab[aria-selected="true"] { background: var(--accent-wash); border-top-color: var(--teal-night); }
.ctab__t { min-height: 2.45em; font-size: 1.02rem; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.ctab__m { font: 500 .7rem var(--mono); color: var(--stage-muted); }
.case { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "stage head" "stage text"; gap: 10px clamp(18px, 3vw, 40px); align-items: start; }
.case__head { grid-area: head; display: grid; gap: 8px; }
.case > .case__stage { grid-area: stage; }
.case > .case__text { grid-area: text; }
.cstep:not(.is-now) .cstep__o { display: none; }
.case__stage { display: grid; gap: 12px; background: var(--stage-2); }
.case__stage .lane__track { background: var(--stage-3); }
.case__video { display: grid; gap: 8px; }
.case__video .viewer__bar { flex-direction: row; align-items: center; gap: 12px; }
.case__frames .lbl { margin-bottom: 6px; }
.lbl--stage { color: var(--stage-muted); }
.case__text { display: grid; gap: 10px; align-content: start; min-width: 0; }
.case__meta { font: 500 .74rem var(--mono); color: var(--stage-muted); }
.case__q { font-size: clamp(1.3rem, 2.1vw, 1.8rem); font-weight: 600; line-height: 1.16; letter-spacing: -.03em; color: #fff; text-wrap: balance; }
.case__text > .lbl { margin-top: 6px; }
.csteps { display: grid; }
.cstep { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding: 8px 6px; border-bottom: 1px solid var(--stage-line); border-radius: 2px; transition: background .25s; }
.cstep.is-now { background: rgb(244 197 111 / .12); }
.cstep__n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--stage-line); font: 600 .66rem var(--mono); color: var(--stage-muted); }
.cstep.is-now .cstep__n { border-color: var(--amber); color: var(--amber); }
.cstep__goal { font-size: .92rem; font-weight: 600; line-height: 1.3; }
.cstep__out { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; margin-top: 4px; font-size: .84rem; color: var(--stage-muted); }
.cstep__out .chip { background: var(--stage-3); border-color: var(--stage-line); color: var(--stage-ink); }
.cstep__out .winchip { background: var(--stage-3); color: var(--stage-muted); }
.agents3 { display: grid; }
.arow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--stage-line); }
.arow__n { font-size: .92rem; font-weight: 600; }
.arow__m { font: 500 .72rem var(--mono); color: var(--stage-muted); min-width: 7.5em; text-align: right; }
.case__text .pill { justify-self: start; margin-top: 8px; }
.sec--stage .more > summary { color: var(--stage-ink); }
.sec--stage .gold { background: var(--accent-wash); }

/* ============================================================================ reliability */
.rgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(20px, 3vw, 44px); }
.rcell { min-width: 0; padding-top: 14px; border-top: 1px solid var(--ink); }
.rcell h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.15; }
.rcell__line { margin-top: 8px; color: var(--muted); font-size: .94rem; }
.rcell__line b { color: var(--ink); font-weight: 600; }
.kappa { margin-top: 12px; width: 100%; border-collapse: collapse; font: 500 .74rem var(--mono); font-variant-numeric: tabular-nums; }
.kappa th, .kappa td { padding: 4px 6px; border-bottom: 1px solid var(--line); text-align: right; }
.kappa thead th { font-size: .62rem; font-weight: 600; color: var(--muted); vertical-align: bottom; white-space: normal; max-width: 6em; line-height: 1.2; }
.kappa tbody th { text-align: left; font-weight: 600; }
.kappa td { background: rgb(var(--h-proc) / calc(var(--k) * .42)); }
.rkappa { grid-column: 1 / -1; }
.kappa caption { caption-side: bottom; padding-top: 6px; text-align: left; font: 500 .74rem var(--mono); color: var(--muted); }
.kappa thead th { font-size: .72rem; }

/* ============================================================================ citation, footer */
.cite { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.55fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.cite__l .kicker { margin-bottom: .85rem; }
.cite__t { font-size: clamp(2.6rem, 5.6vw, 4.8rem); font-weight: 600; line-height: .96; letter-spacing: -.055em; }
.cite__venue { margin-top: 16px; color: var(--ink-2); font-size: 1.02rem; }
.cite__lead { margin-top: 8px; color: var(--muted); font-size: .94rem; }
.bib { min-width: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.bib__bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px 9px 16px; border-bottom: 1px solid var(--line); font: 500 .82rem var(--mono); }
.bib__code { margin: 0; padding: 16px 18px 18px; overflow-x: auto; font: 500 .8rem/1.6 var(--mono); color: var(--ink-2); white-space: pre; overflow-wrap: normal; }
.bib__note { padding: 12px 16px 0; color: var(--ink-2); font-size: .9rem; }
.pill[disabled] { opacity: .5; cursor: not-allowed; }
.pill[disabled]:hover { background: transparent; }
.bib--placeholder .bib__code { color: var(--muted); }
.foot { padding: 36px 0 30px; border-top: 1px solid var(--line); background: var(--paper); }
.foot__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-bottom: 22px; }
.foot__logos .logo { width: 222px; height: auto; }
.foot__aff { padding-left: 30px; border-left: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.foot__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px clamp(20px, 4vw, 56px); color: var(--muted); font-size: .84rem; line-height: 1.5; }
.foot__grid b { color: var(--ink); font-weight: 600; }
.foot__grid .is-soon small, .flink small { display: inline-block; margin-left: 4px; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 999px; font: 500 .68rem/1.5 var(--mono); white-space: nowrap; }
.flink .ic { display: inline; width: .78em; height: .78em; vertical-align: -.05em; }
.foot__end { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); font: 500 .76rem var(--mono); color: var(--muted); }
.foot > .shell > .more { margin-top: 16px; }

/* ============================================================================ tooltip */
.tooltip { position: fixed; left: 0; top: 0; z-index: 60; display: grid; gap: 2px; max-width: min(320px, calc(100vw - 16px)); padding: 8px 11px; border-radius: var(--r); background: #17232A; color: #EEF2EF; font-size: .8rem; line-height: 1.35; pointer-events: none; box-shadow: 0 6px 24px rgb(0 0 0 / .22); }
.tooltip[hidden] { display: none; }
.tooltip b { font-weight: 600; }
.tt-v { font: 700 .95rem var(--mono); color: #fff; }
.tt-m { color: #B9C4C6; }
.tt-mono { font-family: var(--mono); font-size: .74rem; }
.tt-out { color: #D7DFDF; font-size: .76rem; }
:root[data-theme="dark"] .tooltip { background: #E6EBE8; color: #17232A; }
:root[data-theme="dark"] .tt-v { color: #0F1519; } :root[data-theme="dark"] .tt-m { color: #46545B; } :root[data-theme="dark"] .tt-out { color: #34434B; }

/* ============================================================================ responsive */
@media (min-width: 600px) and (max-width: 1180px) {
  .authors { display: grid; grid-template-columns: repeat(4, 98px); }
}
@media (max-width: 1180px) {
  .hero__bar { grid-template-columns: minmax(0, 1fr) auto; }
  .hero__ctl { justify-self: start; }
  .hero__ctl { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .stepper { min-width: 0; flex: 1; max-width: 640px; }
  .hero__bar > .pill { grid-column: 2; grid-row: 1; }
  .mast__grid { grid-template-columns: minmax(0, 1fr); }
  .mast__side { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px 40px; }
}
@media (max-width: 1100px) {
  .nav ul { gap: 14px; }
  .nav a { font-size: .86rem; }
  .method { grid-template-columns: minmax(0, 1fr); }
  .method__blocks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 24px; }
  .method__blocks > .more--plain { grid-column: 1 / -1; }
  .f3 { order: -1; position: static; }
}
@media (max-width: 1023px) {
  .nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
  .mast__side { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f3__panel { grid-template-columns: minmax(0, 1fr); }
  .f3__text { border-left: 0; border-top: 1px solid var(--stage-line); min-height: 280px; }
  .rgrid { grid-template-columns: minmax(0, 1fr); }
  .case { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "head" "stage" "text"; }
  .viewer { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 899px) {
  .cards2 { grid-template-columns: minmax(0, 1fr); }
  .mobile-switch { display: inline-flex; }
  .is-mhidden { display: none; }
  .modebar { flex-wrap: wrap; width: 100%; justify-content: space-between; }
  .qhead { grid-template-columns: minmax(0, 1fr); }
  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .finding { grid-row: auto; grid-template-rows: auto; display: block; }
  .tk__list { grid-template-columns: minmax(0, 1fr); }
  .method__blocks { grid-template-columns: minmax(0, 1fr); }
  .ctabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec__head { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .cite { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .hero__stage { min-height: 0; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 26px; }
  .hsteps { min-height: 210px; }
  .eyepiece { width: min(100%, 360px); grid-row: 2; }
  .hstep__q { font-size: clamp(1.9rem, 8.2vw, 2.6rem); max-width: 18ch; }
  .hstep__big b { font-size: clamp(4.2rem, 19vw, 5.6rem); }
  .hstep__big span { font-size: clamp(2.2rem, 10vw, 3rem); }
  .hstep__big--time b { font-size: clamp(2.2rem, 10.5vw, 3rem); }
  .hstep__big--words b { font-size: clamp(2.2rem, 10vw, 3rem); }
  .hstep__phases li { font-size: 1.05rem; padding: 5px 0 5px 10px; }
  .hstep__phases li b { font-size: .8rem; }
  .htl__strip { grid-template-columns: repeat(32, minmax(0, 1fr)); height: 26px; gap: 1px; }
  .htl__band i { display: none; }
  .htl__band.is-key i { display: block; }

  .htl__bands { height: 44px; }
  .htl__note { top: 0; left: 0; right: auto; }
  .htl__axis { height: auto; min-height: 20px; }
  .htl__axis span { display: none; }
  .hero__bar { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .hero__bar > .pill { grid-column: 1; grid-row: 3; justify-self: start; }
  .hero__ctl { grid-row: 2; flex-wrap: wrap; gap: 12px; }
  .stepper { width: 100%; flex: 1 1 100%; }
  .stepper__b { font-size: .72rem; padding: 2px 0; }
  .author, .author > a, .author > span { width: 76px; }
  .author__ph { width: 68px; height: 68px; }
  .author__n { font-size: .76rem; }
  .authors { gap: 14px 8px; }
  .f3__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); flex-basis: 100%; }
  .f3__bar { flex-wrap: wrap; }
  .f3__bar > .pill { min-height: 38px; order: 2; margin-top: 4px; }
  .lb__top .tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; width: 100%; }
  .lb__top .tab { flex-direction: column; gap: 0; align-items: flex-start; font-size: .9rem; }
  .lb__colset button { padding: .26rem .5rem; font-size: .74rem; }
  .foot__aff { padding-left: 0; border-left: 0; }
  .fstrip { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 8px; }
  .ftile__i { display: none; }
  .lane, .tl--compact .lane { --lane-label: 92px; grid-template-columns: var(--lane-label) minmax(0, 1fr) 26px; gap: 6px; }
  .lane__name { font-size: .72rem; }
  .tl__head { display: none; }
  .pick__strip { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; scroll-snap-type: none; gap: 10px; }
  .pick__count { margin-left: 0; }
  .search { max-width: none; flex-basis: 100%; order: 3; }
  .sides { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); flex-basis: 100%; }
  .scard__m { white-space: normal; }
  .stats { gap: 18px; }
}
@media (max-width: 480px) {
  .mast h1 { font-size: 4rem; }
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stat__v { font-size: 2.1rem; }
  .ctabs { grid-template-columns: minmax(0, 1fr); }
  .f3tl__row { grid-template-columns: 48px minmax(0, 1fr); }
  .navpaper { padding: .35rem .7rem; }
  .topbar__end { gap: 2px; }
}

/* ============================================================================ motion, forced colours, print */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .scard:hover .scard__strip, .scard:focus-visible .scard__strip { animation: none; background-position: 42.857% 0; }
}
@media (forced-colors: active) {
  .chip, .badge, .fchip, .pill, .mk, .gsq, .scard, .f3tab, .ctab { border: 1px solid CanvasText; }
  .htl__win, .lane__evid { border-color: Highlight; }
}
@media print {
  .topbar, .hero__bar, .pick, .ex__controls, .theme-toggle { display: none; }
  .hero, .sec--stage, .stage, .f3__panel { background: #fff !important; color: #000; }
}

/* ============================================================================ placeholders (no shift while components mount)
   heights measured on the mounted components; the component clears them when it has rendered */
:root { --ph-dumbbell: 654px; --ph-numberline: 226px; --ph-fig4a: 288px; --ph-fig10: 330px; --ph-fig12a: 444px; --ph-fig5: 174px;
  --ph-selfwritten: 338px; --ph-table15: 328px; --ph-fig4c: 288px; --ph-reasoning: 353px; --ph-medical: 192px; }
.lb[data-mount]:not([data-ready]) { min-height: 970px; }
.ex[data-mount]:not([data-ready]) { min-height: 2760px; }
.cases[data-mount]:not([data-ready]) { min-height: 811px; }
@media (max-width: 760px) {
  :root { --ph-dumbbell: 691px; --ph-numberline: 230px; --ph-fig12a: 463px; --ph-fig5: 199px; --ph-selfwritten: 361px; --ph-table15: 354px;
    --ph-reasoning: 399px; --ph-medical: 214px; --ph-fig10: 400px; }
  .lb[data-mount]:not([data-ready]) { min-height: 1174px; }
  .ex[data-mount]:not([data-ready]) { min-height: 3850px; }
  .cases[data-mount]:not([data-ready]) { min-height: 1596px; }
}
.anchor { display: block; height: 0; }

/* ============================================================================ hero before its module runs (autoplay): the Question step */
.hero-auto .hero:not([data-ready]) .hstep { opacity: 0; visibility: hidden; transition: none; }
.hero-auto .hero:not([data-ready]) .hstep[data-step="question"] { opacity: 1; visibility: visible; transform: none; }
.hero-auto .hero:not([data-ready]) .htl__band, .hero-auto .hero:not([data-ready]) .htl__win, .hero-auto .hero:not([data-ready]) .htl__head,
.hero-auto .hero:not([data-ready]) .hero__state b, .hero-auto .hero:not([data-ready]) .eyepiece__time { visibility: hidden; }
.hero-auto .hero:not([data-ready]) .htl__tile { filter: brightness(.5) saturate(.6); }
.hero-auto .hero:not([data-ready]) .stepper { --i: 0; }
.hero-auto .hero:not([data-ready]) .stepper__b[aria-current] { color: var(--stage-muted); text-decoration: none; }

/* ============================================================================ focus inside tab panels, small-text floor */
.f3p:focus-visible { outline-offset: 6px; }
.qhead__q:focus { outline: none; }
.lbl, .tl__labels, .lane__axis, .ftile__t, .mcard__side, .call__st, .side > span, .pick__show > span, .gold__k, .f3p__k { font-size: max(.72rem, 11.5px); }
.author__n sup { font-size: .7rem; }
.chip i { color: #fff; }
.call__hit { font-size: .7rem; }

/* ============================================================================ touch: targets of at least 44 px */
@media (pointer: coarse) {
  .iconbtn, .iconbtn--line { min-width: 44px; min-height: 44px; }
  .pill, .pill--quiet, .pill--amber, .select, .seg button, .fchip, .stepper__b, .more-btn, .navpaper { min-height: 44px; }
  .fchip, .seg button { padding-inline: .8rem; }
  .more > summary { min-height: 44px; }
  .more--data > summary { min-height: 40px; }
  .lbt__c button { min-height: 40px; padding: .6rem .35rem; }
  .res, .foot a, .foot__end a { display: inline-flex; align-items: center; min-height: 44px; }
  .mk::before, .gsq::before { content: ""; position: absolute; inset: -14px -4px; }
  .mk, .gsq { position: absolute; }
  .gsq { position: relative; }
  .tab { min-height: 44px; }
  .ctab, .f3tab { min-height: 48px; }
}
@media (max-width: 600px) {
  .htl__win { display: block; }
  .htl__head { display: block; }
  .sides { grid-template-columns: minmax(0, 1fr); }
  .sides > .iconbtn { justify-self: start; }
}

.scard__src { position: absolute; right: 5px; bottom: 5px; padding: 0 5px; border-radius: 2px; background: rgb(10 16 19 / .72); color: #E6EBE8; font: 500 .66rem/1.5 var(--mono); }
.lane__empty { z-index: 1; padding: 0 5px; border-radius: 2px; background: var(--stage-2); }
.case__stage .lane__empty { background: var(--stage-3); }
.rkappa .kappa { max-width: 900px; }
.dots { width: 100%; max-width: 153px; height: auto; }
@media (max-width: 600px) {
  .lbt th, .lbt td { padding: 6px 4px; }
  .lbt td { font-size: .76rem; }
  .lbt .c-name { font-size: .8rem; }
  .lbt td.c-ans { font-size: .8rem; }
  .lbt td .n { display: none; }
}
@media (max-width: 899px) { .ctab__t { min-height: 0; } }
@media (pointer: coarse) {
  .f3__bar > .pill { min-height: 44px; }
  .search { min-height: 44px; }
  .wordmark { min-height: 44px; }
}
@media (max-width: 760px) { .eyepiece__flag { padding: 5px 11px; font-size: .72rem; } }

/* author: paper title on a single line on wide screens (2026-12-01) */
@media (min-width: 1100px) {
  .mast__title { max-width: none; white-space: nowrap; font-size: clamp(1.25rem, 2vw, 2.05rem); }
}

/* author: resource links more visible (2026-12-01) */
.mast__side .res { padding: .5rem 1rem; border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink); font-size: 1.02rem; font-weight: 600; text-decoration: none; }
.mast__side .res:not(.is-soon) { background: var(--ink); color: var(--paper); }
.mast__side .res:not(.is-soon):hover { background: var(--accent); border-color: var(--accent); }
.mast__side .res.is-soon { border-color: var(--line-strong); color: var(--ink-2); background: transparent; }
.mast__side .res.is-soon small { color: var(--ink-2); border-color: var(--line-strong); }
.affils { flex-wrap: wrap; }
.affil--logo { flex-basis: 100%; }
/* author: abstract spans the full content width (2026-12-01) */
.abstract { max-width: none; }
/* paper Table 8 (Bland-Altman) */
.ba { margin-top: 28px; }
.ba .ba__grp th { padding-top: 14px; font-family: var(--sans); font-weight: 600; text-align: left; color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.ba .ba__na { color: var(--muted); font-style: italic; text-align: left; }
/* paper Table 8 as a figure */
.bafig { grid-column: 1 / -1; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.bafig__t { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 600; letter-spacing: -.03em; margin-bottom: 8px; }
.ba-svg { width: 100%; height: auto; display: block; margin: 6px 0 10px; font-family: var(--mono); }
.ba-g { font: 600 14px var(--sans); fill: var(--ink); }
.ba-m { font-size: 12.5px; font-weight: 600; fill: var(--ink); }
.ba-n, .ba-tick, .ba-h, .ba-na { font-size: 11.5px; fill: var(--muted); }
.ba-v { font-size: 12.5px; font-weight: 600; fill: var(--ink); }
.ba-grid { stroke: var(--line); stroke-width: 1; }
.ba-zero { stroke: var(--ink); stroke-width: 1.3; stroke-dasharray: 3 3; }
.ba-loa { fill: var(--accent); opacity: .12; }
.ba-ci { stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.ba-dot { fill: #E0603C; stroke: var(--paper); stroke-width: 1.6; }
.ba-dot--pos { fill: #008C7E; }
.ba-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: .86rem; color: var(--ink-2); }
.ba-k { display: inline-block; vertical-align: middle; margin-right: 6px; }
.ba-k--dot { width: 11px; height: 11px; border-radius: 50%; background: #E0603C; }
.ba-k--ci { width: 22px; height: 3px; background: var(--ink); border-radius: 2px; }
.ba-k--loa { width: 26px; height: 11px; border-radius: 6px; background: var(--accent); opacity: .18; }
.ba-scroll .ba-svg { min-width: 720px; }
/* author: footer logo centred (2026-12-01) */
.foot__logos { display: flex; justify-content: center; }
.foot__end { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.foot__end > :last-child { justify-self: end; }
.foot__end .foot__logos { margin: 0; padding: 0; list-style: none; }
@media (max-width: 520px) { .foot__end .foot__logos .logo { width: 150px; } }
.bib__bar { flex-wrap: wrap; gap: 8px; }
@media (max-width: 520px) { .foot__end { grid-template-columns: auto auto; } .foot__end .foot__logos { grid-column: 1 / -1; grid-row: 1; justify-self: center; } }
.res .ric { width: 1.15em; height: 1.15em; flex: none; }
/* author: one punchline above the key numbers (paper's Sec. 4.3 heading) */
.punch { margin: clamp(36px, 5vw, 64px) 0 clamp(18px, 2.4vw, 28px); font-size: clamp(1.7rem, 3.6vw, 3.1rem); font-weight: 600; line-height: 1.08; letter-spacing: -.045em; color: var(--ink); text-wrap: balance; }
.stat { border-top: 0; padding-top: 0; } /* author: no rule above the key numbers */
@media (min-width: 1100px) { .punch { white-space: nowrap; font-size: clamp(1.7rem, 2.65vw, 2.45rem); text-wrap: nowrap; } }
/* author: punchline as a full-width band (2026-12-01) */
.punch { position: relative; padding-block: clamp(26px, 3.4vw, 44px); color: #F6F5EF; background: #0E6B61;
  box-shadow: 0 0 0 100vmax #0E6B61; clip-path: inset(0 -100vmax); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .punch { background: #12504A; box-shadow: 0 0 0 100vmax #12504A; } }
:root[data-theme="dark"] .punch { background: #12504A; box-shadow: 0 0 0 100vmax #12504A; }
/* author: no paper-location labels ("Table 4", "Sec. 4.3") anywhere on the site */
.stat__src, .cap--src, .finding .src, p.src { display: none !important; }
.tab small, .scard__fig { display: none !important; }
/* author: one affiliation per line */
.affils .affil { flex-basis: 100%; }
@media (min-width: 700px) { .affils .affil span { white-space: nowrap; } }
