/* PaSteer project page, design C "Showcase": dark-first landing page with a designed light mode.
   Series colours mirror PASTEER.colors in static/js/data.js (Okabe-Ito); *-ink variants are
   darker/lighter steps used only for small text so it meets 4.5:1. */

/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: light;
  --bg: #f7f6f2;
  --bg-2: #efeee8;
  --surface: #ffffff;
  --surface-2: #f4f3ee;
  --line: #dddbd2;
  --line-2: #c9c6bb;
  --text: #0d1015;
  --text-2: #2e333c;
  --muted: #545b67;
  --frame: #101318;
  --glow-a: rgba(0, 114, 178, 0.16);
  --glow-b: rgba(213, 94, 0, 0.10);
  --btn-bg: #0d1015;
  --btn-fg: #ffffff;
  --focus: #0b57d0;

  --exact: #D55E00; --soft: #009E73; --free: #0072B2; --none: #8a8f98;
  --exact-ink: #a84a00; --soft-ink: #00745a; --free-ink: #005e93; --none-ink: #5d626b;
  --floor: #2e333c;
  --band: rgba(13, 16, 21, 0.06);
  --ok: #00B050; --rec: #0072B2; --rej: #F3B48C;

  --f-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-math: "STIX Two Text", "STIXGeneral", "Cambria Math", Cambria, "Times New Roman", serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gut: 24px;
  --r: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #090b0f; --bg-2: #0e1117; --surface: #131820; --surface-2: #181e28;
    --line: #242b36; --line-2: #343c4a;
    --text: #eef1f6; --text-2: #c9cfd9; --muted: #9aa3b1; --frame: #05070a;
    --glow-a: rgba(61, 143, 214, 0.22); --glow-b: rgba(217, 106, 40, 0.13);
    --btn-bg: #eef1f6; --btn-fg: #090b0f; --focus: #8cc8ff;
    --exact: #D96A28; --soft: #1A9E7C; --free: #3D8FD6; --none: #8e939c;
    --exact-ink: #f08a4b; --soft-ink: #3cc39e; --free-ink: #6cb2f0; --none-ink: #a7acb5;
    --floor: #dfe4ec; --band: rgba(238, 241, 246, 0.07);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #090b0f; --bg-2: #0e1117; --surface: #131820; --surface-2: #181e28;
  --line: #242b36; --line-2: #343c4a;
  --text: #eef1f6; --text-2: #c9cfd9; --muted: #9aa3b1; --frame: #05070a;
  --glow-a: rgba(61, 143, 214, 0.22); --glow-b: rgba(217, 106, 40, 0.13);
  --btn-bg: #eef1f6; --btn-fg: #090b0f; --focus: #8cc8ff;
  --exact: #D96A28; --soft: #1A9E7C; --free: #3D8FD6; --none: #8e939c;
  --exact-ink: #f08a4b; --soft-ink: #3cc39e; --free-ink: #6cb2f0; --none-ink: #a7acb5;
  --floor: #dfe4ec; --band: rgba(238, 241, 246, 0.07);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--f-body); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.06; font-weight: 700; max-width: 22ch; margin-bottom: 22px; text-wrap: balance; }
h3 { font-size: 21px; line-height: 1.25; font-weight: 700; }
b, strong { font-weight: 600; }
sub, sup { font-size: 0.72em; line-height: 0; }
.tl { position: relative; display: inline-block; }
.tl::after { content: "~"; position: absolute; left: 0; right: -0.1em; top: -0.62em; text-align: center; font-style: normal; font-size: 0.85em; }
.m { font-family: var(--f-math); font-style: italic; font-size: 1.07em; white-space: nowrap; letter-spacing: 0; }
.m .op { font-style: normal; }
.m sub, .m sup { font-style: normal; }
.small { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.exact-ink { color: var(--exact-ink); } .soft-ink { color: var(--soft-ink); } .free-ink { color: var(--free-ink); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--btn-bg); color: var(--btn-fg); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* markers: identity never by colour alone (ring = Exact, filled dot = PaSteer-free, square = soft, x = none) */
.mk { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; margin-right: 7px; flex: none; }
.mk-ring { border: 2.5px solid var(--exact); background: transparent; }
.mk-dot { background: var(--free); }
.mk-sq { background: var(--soft); border-radius: 2px; }
.mk-x { border-radius: 0; background:
  linear-gradient(45deg, transparent 42%, var(--none) 42% 58%, transparent 58%),
  linear-gradient(-45deg, transparent 42%, var(--none) 42% 58%, transparent 58%); }
.ln { display: inline-block; width: 22px; height: 4px; border-radius: 2px; margin-right: 7px; vertical-align: 3px; }
.ln-ok { background: var(--ok); } .ln-rec { background: var(--rec); } .ln-rej { background: var(--rej); }

/* ------------------------------------------------------------------ top bar */
.bar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.bar-in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); height: 60px; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 700 19px/1 var(--f-display); letter-spacing: -0.02em; text-decoration: none; flex: none; }
.brand-mark { width: 20px; height: 20px; border-radius: 6px; background: conic-gradient(from 210deg, var(--exact), var(--free) 60%, var(--exact)); }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 8px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--text-2); text-decoration: none; white-space: nowrap; }
.nav a:hover { background: var(--band); color: var(--text); }
.theme { flex: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme .i-sun { display: none; }
.theme[aria-pressed="true"] .i-sun { display: block; }
.theme[aria-pressed="true"] .i-moon { display: none; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; border-bottom: 1px solid var(--line); }
.hero-glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(620px 520px at 78% 38%, var(--glow-a), transparent 70%),
              radial-gradient(520px 420px at 92% 88%, var(--glow-b), transparent 70%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 470px; grid-template-rows: auto auto auto 1fr;
  grid-template-areas: "head fig" "tldr fig" "cta fig" "score fig"; column-gap: 56px; align-items: start; }
.hero-head { grid-area: head; } .hero-fig { grid-area: fig; } .tldr { grid-area: tldr; } .cta { grid-area: cta; } .score { grid-area: score; }
.venue { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 6px 14px 6px 12px; border: 1px solid var(--line-2);
  border-radius: 999px; font: 500 13px/1 var(--f-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2); background: var(--surface); }
.venue-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--free); box-shadow: 0 0 0 4px color-mix(in srgb, var(--free) 25%, transparent); }
.venue .sep, .byline .sep { color: var(--muted); }
.venue-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.venue-row .venue { margin: 0; white-space: nowrap; }
.venue-accept { color: var(--text); font-weight: 600; border-color: var(--text-2); }
h1 { margin: 0; }
.wordmark { display: block; font: 700 clamp(68px, 10vw, 132px)/0.88 var(--f-display); letter-spacing: -0.055em; margin-left: -0.04em;
  background: linear-gradient(100deg, var(--text) 30%, var(--free-ink) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.06em; }
.fulltitle { display: block; margin-top: 18px; font: 500 clamp(21px, 2.15vw, 29px)/1.22 var(--f-display); letter-spacing: -0.015em; max-width: 26ch; text-wrap: balance; }
.byline { margin: 18px 0 0; font-size: 17px; display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--text-2); }
.author { font-weight: 600; color: var(--text); }
.tldr { margin: 26px 0 0; max-width: 60ch; font-size: 17.5px; line-height: 1.55; color: var(--text-2);
  padding: 16px 18px; border-left: 3px solid var(--free); background: color-mix(in srgb, var(--surface) 80%, transparent); border-radius: 0 12px 12px 0; }
.tldr-k { font: 600 12.5px/1 var(--f-mono); letter-spacing: 0.08em; color: var(--free-ink); margin-right: 6px; vertical-align: 1px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--text); font-weight: 600; font-size: 15.5px; text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { border-color: var(--text-2); transform: translateY(-1px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.btn-primary:hover { border-color: var(--btn-bg); }
.btn-sub { font: 500 12px/1 var(--f-mono); letter-spacing: .06em; }

.score { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 560px; }
.score-cap { font: 500 12.5px/1.4 var(--f-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.score-row { display: flex; align-items: flex-end; gap: 22px; }
.score-cell { display: flex; flex-direction: column; gap: 2px; }
.score-k { font-size: 14px; font-weight: 600; color: var(--text-2); display: inline-flex; align-items: center; }
.score-n { font: 700 clamp(52px, 6vw, 76px)/0.95 var(--f-display); letter-spacing: -0.04em; font-feature-settings: "tnum"; }
.score-cell.exact .score-n { color: var(--exact-ink); }
.score-cell.free .score-n { color: var(--free-ink); }
.score-arrow { font: 500 40px/1 var(--f-display); color: var(--muted); padding-bottom: 12px; }
.score-note { margin: 12px 0 0; font-size: 15px; color: var(--text-2); max-width: 54ch; }

/* compare */
.hero-fig { margin: 0; }
.cmp { position: relative; border-radius: 18px; overflow: hidden; background: var(--frame); border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.45); touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.cmp img { width: 100%; height: auto; pointer-events: none; }
.cmp-b { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.cmp-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.cmp-knob { position: absolute; top: 50%; left: var(--pos); width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  background: #fff; color: #0d1015; display: grid; place-items: center; box-shadow: 0 4px 18px rgba(0,0,0,.4); cursor: grab; }
.cmp-knob svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cmp-knob:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 50%; }
.cmp-tag { position: absolute; top: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 8px; background: rgba(9, 11, 15, 0.8); color: #fff; font: 600 13px/1 var(--f-body); pointer-events: none; }
.cmp-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.cmp-tag.l { left: 12px; } .cmp-tag.l::before { border: 2px solid #D96A28; width: 6px; height: 6px; }
.cmp-tag.r { right: 12px; } .cmp-tag.r::before { background: #3D8FD6; }
.cmp-ctl { display: flex; gap: 6px; margin-top: 12px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.cmp-ctl button, .seg button { flex: 1; min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2);
  font: 600 14px/1.1 var(--f-body); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; }
.cmp-ctl button:hover, .seg button:hover { color: var(--text); background: var(--band); }
.cmp-ctl button[aria-pressed="true"], .seg button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); }
.cmp-ctl button[aria-pressed="true"] .mk-ring { border-color: var(--btn-fg); }
.cmp-ctl button[aria-pressed="true"] .mk-dot, .seg button[aria-pressed="true"] .mk-dot { background: var(--btn-fg); }
.seg button[aria-pressed="true"] .mk-ring { border-color: var(--btn-fg); }
.lines-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.lines-key span { display: inline-flex; align-items: center; }

/* ------------------------------------------------------------------ key numbers */
.band { background: var(--bg-2); }
.band-nums { padding: 60px 0 64px; border-bottom: 1px solid var(--line); }
.kicker-h { font: 500 13px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 26px; max-width: none; }
.nums { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.num { display: flex; flex-direction: column; gap: 6px; padding: 4px 26px 4px 0; margin-right: 26px; border-right: 1px solid var(--line); }
.num:last-child { border-right: 0; margin-right: 0; }
.num-n { font: 700 clamp(34px, 3.5vw, 46px)/1 var(--f-display); min-height: 1.15em; display: flex; align-items: flex-end; letter-spacing: -0.045em; font-feature-settings: "tnum"; margin-bottom: 8px; white-space: nowrap; }
.num-pair { white-space: nowrap; }
.num-range .num-to { font: 600 0.5em/1 var(--f-body); margin: 0 0.3em; }
.num-to { font-weight: 700; color: var(--muted); margin: 0 0.15em; font-size: .62em; align-self: center; }
.num-of { font-weight: 400; color: var(--muted); margin: 0 0.06em; }
.num-what { font: 700 18px/1.25 var(--f-display); letter-spacing: -0.01em; }
.num-how { font-size: 14.5px; line-height: 1.45; color: var(--text-2); }
.num-set { font: 500 13px/1.45 var(--f-body); color: var(--muted); }
.num-how b { font-weight: 700; color: var(--text); }
.num-link { margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 600; color: var(--free-ink); text-decoration: none; }
.num-link::after { content: " ↓"; }
.num-link:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ sections */
.sec { padding: 104px 0; }
.band.sec { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { display: flex; align-items: center; gap: 12px; font: 500 13px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.kicker span { display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 6px; border-radius: 7px; background: var(--text); color: var(--bg); font-weight: 600; }
.lead { font-size: 19px; line-height: 1.55; color: var(--text-2); }
.narrow { max-width: 64ch; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }

.split { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 56px; align-items: start; }
.split-copy p { max-width: 58ch; }
.stat-inline { display: flex; align-items: center; gap: 18px; margin: 6px 0 22px; padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.stat-big { font: 700 clamp(38px, 4vw, 52px)/1 var(--f-display); letter-spacing: -0.04em; color: var(--text); white-space: nowrap; font-feature-settings: "tnum"; }
.stat-lbl { font-size: 14.5px; line-height: 1.45; color: var(--text-2); }

/* charts */
.chart-card { margin: 0; padding: 22px 22px 16px; }
.chart-h { font-size: 19px; margin-bottom: 6px; }
.chart-sub { font-size: 14.5px; line-height: 1.5; color: var(--muted); margin: 0 0 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--text-2); margin-bottom: 6px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend svg { width: 28px; height: 10px; }
.chart { position: relative; width: 100%; min-height: 280px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.ax text { font: 500 12px var(--f-body); fill: var(--muted); font-feature-settings: "tnum"; }
.ax .grid { stroke: var(--line); stroke-width: 1; }
.ax .base { stroke: var(--line-2); stroke-width: 1.2; }
.band-r { fill: var(--band); }
.band-t { font: 600 12px var(--f-mono); fill: var(--muted); letter-spacing: .04em; }
.s-line { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.s-exact { stroke: var(--exact); } .s-soft { stroke: var(--soft); } .s-free { stroke: var(--free); } .s-none { stroke: var(--none); } .s-floor { stroke: var(--floor); }
.f-exact { fill: var(--exact); } .f-free { fill: var(--free); } .f-none { fill: var(--none); } .f-floor { fill: var(--floor); }
.endlbl { font: 600 12.5px var(--f-body); }
.t-exact { fill: var(--exact-ink); } .t-free { fill: var(--free-ink); } .t-none { fill: var(--none-ink); } .t-floor { fill: var(--text-2); }
.cursor { stroke: var(--text); stroke-width: 1; stroke-dasharray: 3 3; opacity: .6; }
.cdot { stroke: var(--surface); stroke-width: 2.5; }
.hit { fill: transparent; cursor: crosshair; touch-action: pan-y; }

.scrub { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: center; margin-top: 8px; }
.scrub label { font: 600 13px/1 var(--f-mono); color: var(--text-2); white-space: nowrap; }
.scrub-vals { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; color: var(--text-2); font-feature-settings: "tnum"; }
.scrub-vals b { font-weight: 700; color: var(--text); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--line-2); border-radius: 1px; }
input[type="range"]::-moz-range-track { height: 2px; background: var(--line-2); border-radius: 1px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -8px; border-radius: 50%; background: var(--free); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--free); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--free); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--free); }
input[type="range"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* disclosures */
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.more { margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.more > summary { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 12px 18px; font-weight: 600; font-size: 16px; }
.more > summary::before { content: "+"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--band); font: 600 17px/1 var(--f-display); }
.more[open] > summary::before { content: "−"; }
.more > summary:hover { color: var(--free-ink); }
.more-body { padding: 4px 18px 18px; }
.more-body > p { max-width: 80ch; }
.more-inline { margin-top: 10px; font-size: 14px; }
.more-inline > summary { display: inline-flex; min-height: 32px; align-items: center; color: var(--text-2); font-weight: 600; }
.more-inline > summary::before { content: "▸"; margin-right: 6px; transition: transform .15s; }
.more-inline[open] > summary::before { transform: rotate(90deg); }

/* tables */
.tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0 10px; }
.tbl table { border-collapse: collapse; width: 100%; font-size: 14.5px; font-feature-settings: "tnum"; }
.tbl th, .tbl td { padding: 8px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl thead th { font: 600 12.5px var(--f-mono); color: var(--muted); letter-spacing: .03em; }
.tbl tbody th { font-weight: 500; display: table-cell; }
.tbl tbody th .mk { margin-right: 8px; }
.tbl .ours td, .tbl .ours th { font-weight: 600; }
.tbl .ours td:last-child { color: var(--free-ink); }
.tbl .sep td { font: 600 12px var(--f-mono); color: var(--muted); text-align: left; padding-top: 16px; letter-spacing: .03em; text-transform: uppercase; }
.tbl .ref td, .tbl .ref th { color: var(--muted); font-style: italic; }
.tbl .pos { color: var(--free-ink); }

/* ------------------------------------------------------------------ method */
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px 24px; }
.step-art { width: 100%; height: auto; aspect-ratio: 2 / 1; background: var(--surface-2); border-radius: 12px; margin-bottom: 18px; }
.step-n { display: inline-block; margin-bottom: 8px; padding: 4px 9px; border-radius: 7px; background: var(--band); font: 600 12px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.step h3 { margin-bottom: 8px; }
.step { display: flex; flex-direction: column; }
.step-n { align-self: flex-start; }
.step p { font-size: 16px; color: var(--text-2); margin: 0; }
.facts { list-style: none; padding: 14px 0 0; margin: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 15px; color: var(--text-2); }
.facts b { color: var(--text); margin-right: 6px; }

.variants li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; }
.variants li b { color: var(--text); }
.variants .mk { align-self: center; }
.a-line { fill: none; stroke: var(--text-2); stroke-width: 2; stroke-linejoin: round; }
.a-mute { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 3 4; }
.a-fill { fill: var(--text); }
.a-lock { fill: var(--surface); }
.a-net { fill: var(--text); }
.a-badge { fill: var(--free); }
.a-vec rect { fill: var(--free); } .a-vec .v2 { fill: color-mix(in srgb, var(--free) 55%, transparent); } .a-vec .v3 { fill: color-mix(in srgb, var(--free) 30%, transparent); }
.a-lockarc { fill: none; stroke: var(--surface); stroke-width: 3; }
.a-bars rect { fill: var(--free); }
.a-txt { font: 600 12px var(--f-mono); fill: var(--muted); }
.a-free-t { fill: var(--free-ink); }
.a-soft-t { fill: var(--soft-ink); }
.a-soft { fill: color-mix(in srgb, var(--soft) 14%, transparent); stroke: var(--soft); stroke-width: 3; }
.a-exact-t { fill: var(--exact-ink); }
.a-mute-t { font-weight: 500; font-style: italic; }
.a-exact { fill: none; stroke: var(--exact); stroke-width: 2.5; stroke-dasharray: 7 5; }
.a-free { fill: color-mix(in srgb, var(--free) 14%, transparent); stroke: var(--free); stroke-width: 3; }
.a-dot { fill: var(--text); }
.a-spokes path { stroke: var(--line-2); stroke-width: 2.5; stroke-linecap: round; fill: none; }
.a-best { stroke: var(--free); stroke-width: 4; stroke-linecap: round; }
.a-best-dot { fill: var(--free); }
.a-hub { fill: var(--text); }

.eqs { display: grid; gap: 10px; margin: 6px 0 18px; }
.eq { display: grid; grid-template-columns: 130px minmax(0, auto) minmax(0, 1fr); gap: 6px 22px; align-items: baseline; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.eq > .m { font-size: 17px; }
.eq-k { font: 700 15px var(--f-display); }
.eq-n { font-size: 14.5px; color: var(--text-2); }
.eq-n .m { white-space: normal; }
.paper-fig { margin: 18px 0 0; }
.paper-fig img { width: 100%; height: auto; background: #fff; border-radius: 12px; padding: 14px; border: 1px solid var(--line); }
.paper-fig figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* ------------------------------------------------------------------ results */
.block { margin-top: 56px; }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.block-head h3 { font-size: clamp(21px, 2.1vw, 26px); }
.key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 14px; color: var(--text-2); }
.key span { display: inline-flex; align-items: center; }
.key-note { color: var(--muted); font-size: 13px; }
.note { font-size: 14px; color: var(--muted); max-width: 90ch; margin: 12px 0 0; }

.db { display: grid; }
.db-row { display: grid; grid-template-columns: 230px minmax(0, 1fr) 104px; gap: 4px 24px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.db-row.ctrl { border-top: 1px dashed var(--line-2); margin-top: 10px; }
.db-lbl b { display: block; font: 700 16.5px/1.25 var(--f-display); letter-spacing: -0.01em; }
.db-lbl span { font-size: 13.5px; color: var(--muted); }
.db-track { position: relative; height: 46px; }
.db-track::before { content: ""; position: absolute; left: 0; right: 0; top: 30px; height: 2px; background: var(--line); border-radius: 1px; }
.db-tick { position: absolute; top: 25px; width: 1px; height: 12px; background: var(--line-2); }
.db-bar { position: absolute; top: 28px; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--free) 55%, transparent);
  transform-origin: left center; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.db-pt { position: absolute; top: 31px; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; }
.db-pt.e { border: 3px solid var(--exact); background: var(--surface); z-index: 1; }
.db-pt.f { background: var(--free); box-shadow: 0 0 0 3px var(--surface); z-index: 2; transition: left .9s cubic-bezier(.2,.7,.2,1); }
.db-v { position: absolute; top: 0; font: 600 13.5px/1 var(--f-body); font-feature-settings: "tnum"; white-space: nowrap; }
.db-v.e { color: var(--exact-ink); transform: translateX(-100%); padding-right: 3px; }
.db-v.f { color: var(--free-ink); padding-left: 3px; }
.db-row.tight .db-v.e { padding-right: 9px; }
.db-row.tight .db-v.f { padding-left: 9px; }
.db-d { font: 700 clamp(26px, 2.6vw, 34px)/1 var(--f-display); letter-spacing: -0.03em; color: var(--free-ink); text-align: right; font-feature-settings: "tnum"; }
.db-d small { display: block; margin-top: 5px; font: 500 13px/1.2 var(--f-body); letter-spacing: 0; color: var(--muted); }
.db-row.ctrl .db-d { color: var(--text-2); }
.db-axis { display: grid; grid-template-columns: 230px minmax(0, 1fr) 104px; gap: 0 24px; padding-top: 8px; }
.db-axis-in { position: relative; height: 16px; font: 500 12px var(--f-body); color: var(--muted); font-feature-settings: "tnum"; }
.db-axis-in span { position: absolute; transform: translateX(-50%); }
.db.pre .db-bar { transform: scaleX(0); }
.db.pre .db-pt.f { left: var(--from) !important; }

.sweep-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
.readout { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.ro-h { font: 600 13px/1.3 var(--f-mono); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin: 0; }
.ro-angle { font: 700 56px/1 var(--f-display); letter-spacing: -0.04em; font-feature-settings: "tnum"; }
.ro-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ro-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 15px; color: var(--text-2); }
.ro-list li span { display: inline-flex; align-items: center; }
.ro-list b { font: 700 24px/1 var(--f-display); font-feature-settings: "tnum"; letter-spacing: -0.02em; }
.ro-list .free b { color: var(--free-ink); } .ro-list .exact b { color: var(--exact-ink); } .ro-list .none b { color: var(--none-ink); }
.ro-tip { font-size: 13.5px; color: var(--muted); margin: 0; }
.ro-ctl { margin-top: 4px; }
.ro-ctl label { display: block; font: 600 13px/1 var(--f-mono); color: var(--text-2); margin-bottom: 6px; }
.ro-ln { width: 22px; height: 10px; margin-right: 8px; flex: none; }

.evidence { margin-top: 64px; }
.evidence-h { font-size: 21px; margin-bottom: 4px; }

/* ------------------------------------------------------------------ gallery */
.gallery-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.gallery-head h2 { margin-bottom: 0; }
.seg { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); min-width: min(100%, 420px); }
.gal-key { margin: 22px 0 18px; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: start; }
.g-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.g-frame { position: relative; background: var(--surface-2); aspect-ratio: 900 / 1840; display: flex; align-items: center; justify-content: center; }
.g-tag { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 8px; background: rgba(9, 11, 15, 0.82); color: #fff; font: 600 13px/1 var(--f-body); }
.g-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tag, #3D8FD6); }
.g-tag[data-k="exact"] { --tag: #D96A28; } .g-tag[data-k="none"] { --tag: #8e939c; }
.g-frame img { width: 100%; height: auto; transition: opacity .25s ease; }
.g-frame img.fade { opacity: .25; }
.g-body { padding: 14px 16px 16px; }
.g-body h3 { font-size: 18px; }
.g-meta { font-size: 13.5px; color: var(--muted); margin: 2px 0 10px; }
.g-counts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.g-counts li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 8px; border-radius: 8px; font-size: 14px; color: var(--muted); position: relative; }
.g-counts li b { font: 700 17px/1 var(--f-display); font-feature-settings: "tnum"; color: var(--text-2); }
.g-counts li.on { background: var(--band); color: var(--text); }
.g-counts li span { display: inline-flex; align-items: center; gap: 7px; }
.g-counts li span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: transparent; }
.g-counts li.on span::before { background: var(--c); }
.g-counts li.on b { color: var(--text); }
.g-counts li[data-k="none"] { --c: var(--none); } .g-counts li[data-k="exact"] { --c: var(--exact); } .g-counts li[data-k="free"] { --c: var(--free); }
.g-rec { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
.g-rec b { color: var(--free-ink); font: 700 15px var(--f-display); }
.src-list { padding-left: 18px; margin: 0; }
.src-list li { margin: 4px 0; }

/* ------------------------------------------------------------------ scope */
.scope { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.scope-col { border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 18px; background: var(--surface); }
.scope-col h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; margin-bottom: 12px; }
.sc-h::before { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font: 700 17px/1 var(--f-display); flex: none; }
.sc-yes::before { content: "+" / ""; background: color-mix(in srgb, var(--free) 18%, transparent); color: var(--free-ink); }
.sc-no::before { content: "=" / ""; background: var(--band); color: var(--text); }
.sc-lim::before { content: "!" / ""; background: color-mix(in srgb, var(--exact) 18%, transparent); color: var(--exact-ink); }
.scope-col ul { margin: 0; padding-left: 18px; display: grid; gap: 10px; font-size: 15.5px; color: var(--text-2); }
.scope-col > p { font-size: 15.5px; color: var(--text-2); }
.scope-no { border-color: var(--line-2); }
.tbl-joint table { font-size: 14px; }
.tbl-joint th, .tbl-joint td { padding: 7px 8px; }

/* ------------------------------------------------------------------ paper */
.paper-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.abstract { font-size: 17px; line-height: 1.7; color: var(--text-2); max-width: 68ch; hyphens: manual; text-align: left; }
.paper-side { display: grid; gap: 12px; }
.doc { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; transition: border-color .15s; }
.doc:hover { border-color: var(--text-2); }
.doc-ic { width: 42px; height: 42px; border-radius: 10px; background: var(--btn-bg); color: var(--btn-fg); display: grid; place-items: center; flex: none; }
.doc-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.doc-t { display: flex; flex-direction: column; font: 700 17px/1.2 var(--f-display); }
.doc-t small { font: 400 13.5px/1.4 var(--f-body); color: var(--muted); margin-top: 2px; }
.doc-go { margin-left: auto; font-size: 18px; color: var(--muted); }
.cite { margin-top: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.cite-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); }
.cite-head h3 { font-size: 16px; }
.copy { min-height: 36px; min-width: 76px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--btn-bg); color: var(--btn-fg); font: 600 14px var(--f-body); cursor: pointer; }
.cite pre { margin: 0; padding: 14px 16px; font: 12.5px/1.6 var(--f-mono); color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.ack-h { font-size: 16px; margin-top: 12px; }

/* ------------------------------------------------------------------ footer */
.foot { padding: 40px 0 56px; border-top: 1px solid var(--line); }
.foot-in p { max-width: 110ch; }
.foot-in p:first-child { font-size: 15px; color: var(--text-2); }
.foot a { color: var(--free-ink); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 360px; column-gap: 40px; }
  .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .num:nth-child(2) { border-right: 0; margin-right: 0; }
  .split, .paper-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scope { grid-template-columns: minmax(0, 1fr); }
  .sweep-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .db-row, .db-axis { grid-template-columns: minmax(0, 1fr) 76px; }
  .db-lbl { grid-column: 1 / -1; }
  .db-axis > :first-child { display: none; }
  .eq { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  :root { --gut: 16px; }
  body { font-size: 16.5px; }
  .bar-in { gap: 10px; height: 56px; }
  .brand { font-size: 17px; }
  .nav { margin-left: 0; flex: 1; mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .nav a { padding: 8px 9px; font-size: 14px; }
  .hero { padding: 28px 0 48px; }
  .hero-grid { column-gap: 0; }
  .venue { font-size: 12px; }
  .venue-row { margin-bottom: 16px; }
  .fulltitle { margin-top: 12px; }
  .tldr { font-size: 16.5px; padding: 14px 14px; }
  .btn { padding: 0 14px; font-size: 15px; }
  .score-row { gap: 14px; }
  .score-arrow { font-size: 30px; }
  .hero-fig { max-width: 440px; }
  .cmp-ctl button { font-size: 13px; padding: 0 6px; }
  .cmp-ctl .mk { display: none; }
  .band-nums { padding: 44px 0; }
  .nums { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .num { border-right: 0; margin-right: 0; padding: 22px 0; border-bottom: 1px solid var(--line); }
  .num:first-child { padding-top: 0; }
  .num:last-child { border-bottom: 0; padding-bottom: 0; }
  .sec { padding: 68px 0; }
  .lead { font-size: 17.5px; }
  .stat-inline { flex-direction: column; align-items: flex-start; gap: 8px; }
  .chart-card { padding: 16px 14px 12px; }
  .chart { min-height: 220px; }
  .block { margin-top: 44px; }
  .gallery { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 12px; scroll-padding: 0 var(--gut); }
  .g-card { flex: 0 0 82%; scroll-snap-align: start; }
  .g-body { padding: 10px 10px 12px; }
  .g-body h3 { font-size: 16px; }
  .g-counts li { padding: 4px 6px; font-size: 12.5px; }
  .g-counts li b { font-size: 15px; }
  .seg { width: 100%; }
  .seg button { font-size: 13.5px; padding: 0 6px; }
  .seg .mk { margin-right: 5px; }
  .more > summary { font-size: 15px; padding: 10px 14px; }
  .more-body { padding: 2px 14px 14px; }
}

/* ------------------------------------------------------------------ motion + print */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .db.pre .db-bar { transform: none; }
  .db.pre .db-pt.f { left: var(--to) !important; }
}
@media print {
  .bar, .cmp-ctl, .seg, .scrub, .ro-ctl, .copy, .skip, .hero-glow, .theme { display: none !important; }
  body { background: #fff; color: #000; }
  .sec { padding: 28px 0; }
  details { display: block; }
  details > :not(summary) { display: block !important; }
}

/* ------------------------------------------------------------------ round 2 additions */
.scope-chip { display: flex; align-items: center; gap: 12px; margin-top: 30px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--text-2); font-size: 15px; text-decoration: none; }
.scope-chip:hover { border-color: var(--text-2); color: var(--text); }
.scope-chip-k { flex: none; font: 600 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; background: var(--band); color: var(--text); }
.scope-chip-go { margin-left: auto; color: var(--muted); }

.insight-row { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 20px; margin-top: 40px; align-items: stretch; }
.mini-card { margin: 0; padding: 22px; }
.mini-h { font: 700 18px/1.25 var(--f-display); letter-spacing: -0.01em; margin: 0 0 6px; }
.related { padding: 22px; }
.rel { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 14px; }
.rel li { display: grid; gap: 2px; padding-left: 14px; border-left: 2px solid var(--line-2); font-size: 15px; color: var(--text-2); }
.rel li b { font: 700 16px/1.3 var(--f-display); color: var(--text); }
.rel-cite { font: 500 13px/1.4 var(--f-body); color: var(--muted); }
.mini-card .key { margin: 4px 0 8px; }
.sw { display: inline-block; width: 18px; height: 10px; border-radius: 2px; margin-right: 7px; }
.sw-out { border: 2px solid var(--text-2); }
.sw-in { background: var(--text-2); }

.hb { display: grid; gap: 4px; }
.hb-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.hb-row:last-child { border-bottom: 0; }
.hb-lbl { display: inline-flex; align-items: center; font-size: 14.5px; font-weight: 600; }
.hb-bars { display: grid; gap: 4px; }
.hb-line { display: flex; align-items: center; gap: 8px; font-feature-settings: "tnum"; }
.hb-line b { font: 600 13.5px/1 var(--f-body); white-space: nowrap; color: var(--text-2); }
.hb-line em { font: 500 13px var(--f-body); font-style: normal; color: var(--muted); }
.hb-bar { display: block; height: 12px; border-radius: 0 3px 3px 0; min-width: 2px; flex: none; width: calc((100% - 64px) * var(--w)); }
.hb-bar.in { background: var(--c); }
.hb-bar.out { border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.c-none { --c: var(--none); } .c-exact { --c: var(--exact); } .c-soft { --c: var(--soft); } .c-free { --c: var(--free); } .c-ref { --c: var(--line-2); }
.hb-row.ref .hb-lbl { font-weight: 500; font-style: italic; color: var(--muted); }

.ctrl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.kb { display: grid; gap: 2px; }
.kb-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 52px; gap: 12px; align-items: center; min-height: 36px; }
.kb-lbl { display: flex; align-items: baseline; gap: 8px; font-size: 14.5px; }
.kb-lbl small { font: 500 13px var(--f-body); color: var(--muted); }
.kb-track { position: relative; height: 24px; }
.kb-track::before { content: ""; position: absolute; left: var(--z); top: -6px; bottom: -6px; width: 1.5px; background: var(--text-2); }
.kb-bar { position: absolute; top: 5px; height: 14px; }
.kb-bar.pos { background: var(--free); border-radius: 0 3px 3px 0; }
.kb-bar.neg { background: repeating-linear-gradient(135deg, var(--none) 0 3px, transparent 3px 6px); border: 1.5px solid var(--none); border-radius: 3px 0 0 3px; }
.kb-v { font: 700 15px/1 var(--f-display); font-feature-settings: "tnum"; text-align: right; white-space: nowrap; }
.kb-v.pos { color: var(--free-ink); } .kb-v.neg { color: var(--none-ink); }
.kb-row.ours .kb-lbl b { color: var(--free-ink); }
.kb-axis { min-height: 22px; }
.kb-axis .kb-track::before { display: none; }
.kb-zero { position: absolute; top: 2px; transform: translateX(-50%); font: 600 12px var(--f-mono); color: var(--muted); white-space: nowrap; }

.gal-cap { margin: 16px 0 0; font-size: 16px; color: var(--text-2); max-width: 75ch; min-height: 1.6em; }

/* without JS: hide controls that need it (content and figures stay) */
html:not(.js) .scrub, html:not(.js) .readout, html:not(.js) .cmp-ctl, html:not(.js) .cmp-knob, html:not(.js) .seg { display: none; }
html:not(.js) .sweep-grid { grid-template-columns: minmax(0, 1fr); }
html:not(.js) .gal-pager, html:not(.js) .theme, html:not(.js) .copy { display: none; }
html:not(.has-data) #galSeg, html:not(.has-data) .gal-pager, html:not(.has-data) .chart, html:not(.has-data) .legend, html:not(.has-data) .scrub, html:not(.has-data) .readout { display: none; }

@media (forced-colors: active) {
  .wordmark { background: none; color: CanvasText; }
  .mk, .hb-bar, .kb-bar, .db-pt, .db-bar { forced-color-adjust: none; }
}
@media (max-width: 1080px) {
  .insight-row, .ctrl-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .hb-row { grid-template-columns: minmax(0, 1fr); }
  .scope-chip { font-size: 14.5px; align-items: flex-start; }
  .mini-card, .related { padding: 16px; }
}

/* gallery pager (narrow screens only) */
.gal-pager { display: none; align-items: center; justify-content: center; gap: 14px; margin-top: 4px; }
.gp-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 600 18px/1 var(--f-body); cursor: pointer; }
.gp-count { font: 600 14px/1 var(--f-mono); color: var(--text-2); min-width: 48px; text-align: center; font-feature-settings: "tnum"; }
#gal:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 12px; }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "head" "tldr" "cta" "score" "fig"; }
  .hero-fig { margin-top: 20px; }
  .score { margin-top: 22px; padding-top: 16px; }
  .score-n { font-size: 46px; }
  .score-note { font-size: 14px; margin-top: 8px; }
  .gal-pager { display: flex; }
}

.probe { fill: var(--text-2); }
.terms { margin: 22px 0 0; font-size: 14px; line-height: 1.55; color: var(--text-2); max-width: 110ch; }
.terms b { color: var(--text); font-weight: 600; }
.sweep-note { margin: 8px 0 4px; }
.gal-caveat { margin: 18px 0 0; max-width: 90ch; }
.scrub-hint { margin: 0 0 10px; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
html:not(.has-data) .scrub-hint { display: none; }

/* round 6 (final) */
.byline a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.byline a:hover { text-decoration-color: currentColor; }
.byline .author { font-weight: 600; color: var(--text); }
.score-q { font-weight: 500; color: var(--muted); margin-left: 4px; }
.nw { white-space: nowrap; }
.ro-say { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--text); padding-top: 12px; border-top: 1px solid var(--line); }
.scrub-say { flex-basis: 100%; color: var(--text); }
.copy-status { margin: 8px 0 0; min-height: 1.4em; font-size: 13.5px; color: var(--muted); }
.insight-row { grid-template-columns: minmax(0, 1fr); }
.rr-card { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); grid-template-areas: "h bars" "sub bars" "key bars" "note bars"; grid-template-rows: auto auto auto 1fr; column-gap: 36px; }
.rr-card > .chart-h { grid-area: h; } .rr-card > .chart-sub { grid-area: sub; } .rr-card > .key { grid-area: key; } .rr-card > .hb { grid-area: bars; align-self: center; } .rr-card > .note { grid-area: note; }
.scope-rel { margin-top: 28px; }
.sec-code { border-top: 1px solid var(--line); }
.code-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.code-card { display: grid; gap: 6px; padding: 22px; align-content: start; }
.code-name { font: 700 22px/1.2 var(--f-display); color: var(--text); text-decoration: none; justify-self: start; }
.code-name:hover { text-decoration: underline; text-underline-offset: 4px; }
.code-cite { font-size: 13px; color: var(--muted); }
.code-what { font-size: 15px; color: var(--text-2); margin-top: 4px; }
.code-url { font-size: 13px; margin-top: 8px; justify-self: start; overflow-wrap: anywhere; }
@media (max-width: 760px) { .code-list { grid-template-columns: minmax(0, 1fr); } .code-card { padding: 16px; } }
.scope-rel .rel { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
html:not(.js) .cmp-b { position: static; clip-path: none; }
html:not(.js) .cmp-line { display: none; }
html:not(.js) .cmp-tag.r { left: 12px; right: auto; top: calc(50% + 12px); }
@media (max-width: 1080px) { .scope-rel .rel { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) { .rr-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "h" "sub" "key" "bars" "note"; grid-template-rows: none; } }
@media (max-width: 480px) {
  .cta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .cta .btn { justify-content: center; padding: 0 6px; gap: 6px; font-size: 14px; min-width: 0; }
  .cta .btn svg, .cta .btn-sub { display: none; }
}
@media (max-width: 480px) { .byline { flex-direction: column; gap: 2px; } .byline .sep { display: none; } }
