/* ==========================================================================
   Target-Local Verifier Choice in Best-of-K Reasoning Selection
   --------------------------------------------------------------------------
   Design system: editorial research article.
   Warm paper background, Source Serif 4 for display + body, Inter for UI and
   figure labels, IBM Plex Mono for code. Hairline borders throughout.

   Three verifier classes carry three colours everywhere on the page:
     PRM (process reward)  -> blue     (--accent)
     V4  (outcome verifier)-> sienna   (--sienna)
     ORM (scalar outcome)  -> graphite (--graphite)
   Deltas carry a separate positive/negative pair (--pos / --neg).

   Sections:
     0. Tokens + dark theme
     1. Base & typography
     2. Chrome: progress bar, topbar, TOC, layout
     3. Hero + TL;DR
     4. Article content: sections, notes, figures, asides
     5. Components: specs, insights, tick lists, legend, verdict cards
     6. Tables + charts
     7. Footer, reveal, responsive
   ========================================================================== */

/* ============================ 0. TOKENS ================================= */
:root {
  /* Ink & surfaces (light — warm paper) */
  --bg:        #ffffff;
  --surface:   #fdfcfa;
  --ink:       #201d18;
  --ink-soft:  #4a463f;
  --muted:     #6f6a61;
  --faint:     #8d887e;
  --line:      #e6e2d8;
  --line-soft: #efece4;
  --code-bg:   #f2f0e9;

  /* PRM class / primary accent */
  --accent:      #2f6cc9;
  --accent-ink:  #23539e;
  --accent-wash: #eaf1fb;

  /* V4 outcome-verifier class */
  --sienna:      #bd5f16;
  --sienna-ink:  #9a4a0b;
  --sienna-wash: #f9efe3;

  /* ORM / boundary class */
  --graphite:      #57534a;
  --graphite-ink:  #45413a;
  --graphite-wash: #f0eee7;

  /* Deltas */
  --pos:      #1a7f37;
  --pos-wash: #e8f4ea;
  --neg:      #b04a3a;
  --neg-wash: #f8ecea;

  /* Type */
  --font-serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:  "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --text-body: 17px;
  --lh-body:   1.72;

  /* Metrics */
  --col:       680px;
  --col-wide:  920px;
  --toc-w:     236px;
  --radius:    10px;
  --radius-sm: 7px;
}

html.dark {
  --bg:        #131311;
  --surface:   #1a1a18;
  --ink:       #eae8e1;
  --ink-soft:  #c3c0b6;
  --muted:     #9b968b;
  --faint:     #7c786e;
  --line:      #2b2a26;
  --line-soft: #23221f;
  --code-bg:   #22211d;

  --accent:      #5590e8;
  --accent-ink:  #8ab5f0;
  --accent-wash: #1a2434;

  --sienna:      #d17c40;
  --sienna-ink:  #dd9a62;
  --sienna-wash: #2d2115;

  --graphite:      #a29d92;
  --graphite-ink:  #b5b0a4;
  --graphite-wash: #24231f;

  --pos:      #4bb464;
  --pos-wash: #17251a;
  --neg:      #dd7a67;
  --neg-wash: #2a1a17;
}

/* ============================ 1. BASE =================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .25s ease, color .25s ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif); color: var(--ink);
  line-height: 1.22; margin: 0; font-weight: 600;
}
p { margin: 0 0 1.25em; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
em, i { font-style: italic; }
b, strong { font-weight: 600; }
code {
  font-family: var(--font-mono); font-size: .8em;
  background: var(--code-bg); padding: .1em .35em;
  border-radius: 4px; color: var(--ink-soft);
}
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }

/* Concept accents — used sparingly in prose */
.u-p { color: var(--accent-ink);   font-weight: 600; }  /* PRM class      */
.u-v { color: var(--sienna-ink);   font-weight: 600; }  /* V4 class       */
.u-o { color: var(--graphite-ink); font-weight: 600; }  /* ORM / boundary */
.u-up   { color: var(--pos); font-weight: 600; font-variant-numeric: tabular-nums; }
.u-down { color: var(--neg); font-weight: 600; font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }

/* ============================ 2. CHROME ================================= */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--accent); z-index: 100;
}

.topbar {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  max-width: 1160px; margin: 0 auto; padding: 10px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.topbar__brand {
  display: flex; align-items: center; gap: 9px; color: var(--ink);
  font-family: var(--font-serif); font-weight: 600; font-size: 16px;
}
.topbar__brand:hover { text-decoration: none; }
.brand-mark svg .bm-frame  { fill: var(--accent-wash); stroke: var(--accent-ink); stroke-width: 1.6; }
.brand-mark svg .bm-a      { fill: none; stroke: var(--accent-ink); stroke-width: 1.9; stroke-linecap: round; }
.brand-mark svg .bm-b      { fill: none; stroke: var(--sienna);     stroke-width: 1.9; stroke-linecap: round; }
.topbar__nav { display: flex; align-items: center; gap: 18px; }
.topbar__link {
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 500; color: var(--muted);
}
.topbar__link:hover { color: var(--ink); text-decoration: none; }
.topbar__link--cta {
  color: var(--accent-ink);
  border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--line));
  padding: 5px 13px; border-radius: 999px;
}
.topbar__link--cta:hover { background: var(--accent-wash); }

.icon-btn {
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid var(--line); border-radius: 9px; background: transparent;
  color: var(--ink-soft); cursor: pointer; transition: background .2s;
}
.icon-btn:hover { background: var(--line-soft); }
.icon-btn svg { stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; }
.icon-moon { display: none; }
html.dark .icon-sun  { display: none; }
html.dark .icon-moon { display: block; }

/* Layout grid: TOC + article */
.layout {
  max-width: 1160px; margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: var(--toc-w) minmax(0, 1fr);
  gap: 48px; align-items: start;
}
.toc {
  position: sticky; top: 82px; padding-top: 56px;
  max-height: calc(100vh - 96px); overflow-y: auto;
}
.toc__title {
  font-family: var(--font-sans); font-size: 11px; font-weight: 650; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint); margin: 0 0 14px;
}
.toc__nav { display: flex; flex-direction: column; border-left: 1px solid var(--line); counter-reset: toc; }
.toc__item {
  font-family: var(--font-sans); font-size: 13px; line-height: 1.45; color: var(--muted);
  padding: 6px 14px; margin-left: -1px; border-left: 2px solid transparent;
  transition: color .15s, border-color .15s; counter-increment: toc;
}
.toc__item::before {
  content: counter(toc, decimal-leading-zero) "  ";
  font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums;
}
.toc__item:hover { color: var(--ink); text-decoration: none; }
.toc__item.is-active { color: var(--accent-ink); border-left-color: var(--accent); }
.toc__item.is-active::before { color: var(--accent-ink); }

.article { padding: 56px 0 90px; min-width: 0; }
.article > section > *,
.article > footer > * { max-width: var(--col); margin-left: auto; margin-right: auto; }
.article > section > .figure--wide { max-width: var(--col-wide); }
.hero > .hero__figure { max-width: var(--col-wide); }

/* ============================ 3. HERO + TLDR ============================ */
.hero { padding: 16px 0 4px; }
.hero__kicker {
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--sienna-ink);
  margin: 0 0 20px;
}
.hero__title {
  font-size: clamp(36px, 5.2vw, 54px); font-weight: 600; letter-spacing: -.018em;
  line-height: 1.06; margin: 0 0 12px;
}
.hero__dek {
  font-size: clamp(19px, 2.3vw, 23px); line-height: 1.4; color: var(--ink-soft);
  font-style: italic; margin: 0 0 22px;
}
.hero__subtitle { font-size: 18px; line-height: 1.65; color: var(--ink-soft); margin: 0 0 26px; }

.hero__byline {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 14px 0; margin-bottom: 30px;
}
.authors { font-family: var(--font-sans); font-size: 14px; font-weight: 550; color: var(--ink); margin: 0 0 5px; }
/* The corresponding author's name links out to their homepage. */
.author-link {
  color: var(--accent-ink); text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  transition: border-color .15s ease;
}
.author-link:hover { text-decoration: none; border-bottom-color: var(--accent); }
.affils  { font-family: var(--font-sans); font-size: 12.5px; color: var(--muted); margin: 0; }

.hero__links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 30px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 550; line-height: 1;
  color: var(--pill-ink, #fff); background: var(--pill-bg, #1c1c1a);
  border: 1px solid var(--pill-bg, #1c1c1a); border-radius: 999px;
  padding: 9px 16px; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.pill:hover {
  transform: translateY(-1px); background: var(--pill-bg-hover, #000);
  box-shadow: 0 4px 14px rgba(0,0,0,.16); text-decoration: none;
}
.pill svg { flex: none; }
.pill--soon {
  color: var(--muted); background: transparent; border: 1px dashed var(--line);
  cursor: default;
}
.pill--soon:hover { transform: none; background: transparent; box-shadow: none; }
html.dark .pill { --pill-bg: #f1f1ef; --pill-bg-hover: #fff; --pill-ink: #16160f; }
@media (max-width: 620px) { .pill { font-size: 12.5px; padding: 8px 13px; } }

.hero__figure { margin: 0; }

/* TL;DR */
.tldr {
  margin: 48px auto; padding: 26px 0 8px;
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line);
}
.tldr__kicker {
  font-family: var(--font-sans); font-size: 11.5px; font-weight: 650; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint); margin: 0 0 16px;
}
.tldr__list { list-style: none; counter-reset: tldr; margin: 0; padding: 0; display: grid; gap: 14px; }
.tldr__list li {
  position: relative; padding-left: 34px; counter-increment: tldr;
  color: var(--ink-soft); margin-bottom: 10px;
}
.tldr__list li::before {
  content: counter(tldr);
  position: absolute; left: 0; top: .22em;
  font-family: var(--font-sans); font-size: 12px; font-weight: 650;
  width: 21px; height: 21px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--accent-ink); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
}

/* ============================ 4. CONTENT ================================ */
.section { padding: 54px 0 10px; scroll-margin-top: 84px; }
.section__num {
  font-family: var(--font-sans); font-size: 12px; font-weight: 650;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink);
  margin: 0 0 10px;
}
.section__title {
  font-size: clamp(26px, 3.2vw, 33px); font-weight: 600;
  letter-spacing: -.012em; margin: 0 0 .75em;
}
.subhead { font-size: 21px; font-weight: 600; margin: 2.1em 0 .65em; }
.subhead--result { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.subhead__tag {
  font-family: var(--font-sans); font-size: 11.5px; font-weight: 650; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-ink);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.subhead__tag--v {
  color: var(--sienna-ink);
  border-color: color-mix(in srgb, var(--sienna) 40%, var(--line));
}
.subhead__tag--neg {
  color: var(--neg);
  border-color: color-mix(in srgb, var(--neg) 40%, var(--line));
}

/* Margin-note style callout */
.note { margin: 30px auto; padding: 4px 0 4px 22px; border-left: 2px solid var(--accent); }
.note--warn  { border-left-color: var(--sienna); }
.note--warn  .note__label { color: var(--sienna-ink); }
.note--limit { border-left-color: var(--neg); }
.note--limit .note__label { color: var(--neg); }
.note__label {
  font-family: var(--font-sans); font-size: 11.5px; font-weight: 650; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-ink); margin: 0 0 6px;
}
.note p:last-child { margin-bottom: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.65; }

/* Figures */
.figure { margin: 36px auto; }
figcaption {
  font-family: var(--font-sans); font-size: 13px; line-height: 1.55; color: var(--muted);
  margin: 14px auto 0; max-width: var(--col);
}
figcaption b { color: var(--ink-soft); font-weight: 600; }

/* Expandable aside */
.aside {
  margin: 28px auto; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
}
.aside > summary {
  cursor: pointer; list-style: none; padding: 14px 18px;
  font-family: var(--font-sans); font-weight: 600; font-size: 14.5px; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.aside > summary::-webkit-details-marker { display: none; }
.aside > summary::before {
  content: ""; width: 7px; height: 7px;
  border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted);
  transform: rotate(-45deg); transition: transform .2s; flex: none;
}
.aside[open] > summary::before { transform: rotate(45deg); }
.aside > *:not(summary) { padding: 0 18px 16px; }
.aside p { margin: 0 0 .8em; color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; }
.aside p:last-child { margin-bottom: 0; }

/* ============================ 5. COMPONENTS ============================= */

/* Experiment specs */
.specs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin: 30px auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: var(--font-sans);
}
.spec { padding: 18px 20px 16px; }
.spec + .spec { border-left: 1px solid var(--line); }
.spec__label {
  font-size: 10.5px; font-weight: 650; letter-spacing: .11em; text-transform: uppercase;
  color: var(--faint); margin: 0 0 7px;
}
.spec__value { font-family: var(--font-serif); font-size: 17.5px; font-weight: 600; color: var(--ink); margin: 0 0 7px; }
.spec__note { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 0; }

/* Tick lists */
.ticklist { list-style: none; margin: 0 0 1.5em; padding: 0; display: grid; gap: 10px; }
.ticklist li {
  position: relative; padding-left: 24px; color: var(--ink-soft);
  font-size: 15px; line-height: 1.6;
}
.ticklist li::before {
  content: ""; position: absolute; left: 2px; top: 8px; width: 8px; height: 4.5px;
  border-left: 1.8px solid var(--accent-ink); border-bottom: 1.8px solid var(--accent-ink);
  transform: rotate(-45deg);
}
.ticklist--takeaways { max-width: var(--col); margin: 8px auto 26px; gap: 14px; }
.ticklist--takeaways li { font-size: 17px; line-height: 1.65; padding-left: 28px; }
.ticklist--takeaways li::before { top: 10px; width: 9px; height: 5px; }

.closing {
  font-size: 18px; line-height: 1.7; color: var(--ink);
  border-top: 1px solid var(--line); padding-top: 22px; margin-top: 6px;
  font-style: italic;
}

/* Insights (numbered contribution rows) */
.insights { margin: 30px auto; display: grid; gap: 0; max-width: var(--col); }
.insight {
  display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start;
  padding: 20px 0; border-top: 1px solid var(--line);
}
.insight:last-child { border-bottom: 1px solid var(--line); }
.insight__n {
  font-family: var(--font-sans); font-size: 13px; font-weight: 650;
  color: var(--faint); padding-top: 5px; font-variant-numeric: tabular-nums;
}
.insight h3 { font-size: 19px; margin: 0 0 6px; }
.insight p { color: var(--ink-soft); margin: 0; font-size: 15.5px; line-height: 1.65; }

/* Class legend (PRM / V4 / ORM) */
.legend {
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center;
  font-family: var(--font-sans); font-size: 12px; color: var(--muted);
  margin: 0 0 14px;
}
.legend__item { display: inline-flex; align-items: center; gap: 7px; }
.legend__swatch { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.legend__swatch--prm { background: var(--accent); }
.legend__swatch--v4  { background: var(--sienna); }
.legend__swatch--orm { background: var(--graphite); }
.legend__swatch--ci  { background: none; border: 1.5px solid var(--muted); border-radius: 999px; }
.legend__dash { width: 22px; height: 0; flex: none; }
.legend__dash--a { border-top: 2px dashed var(--muted); }
.legend__dash--b { border-top: 2px dotted var(--muted); }

/* Verdict cards: what replicated, what did not */
.verdicts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 30px auto; }
.verdict {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 16px 18px 15px;
  font-family: var(--font-sans);
}
.verdict--held  { border-top: 3px solid var(--pos); }
.verdict--broke { border-top: 3px solid var(--neg); }
.verdict__label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  margin: 0 0 6px;
}
.verdict--held  .verdict__label { color: var(--pos); }
.verdict--broke .verdict__label { color: var(--neg); }
.verdict h4 { font-family: var(--font-serif); font-size: 17px; margin: 0 0 6px; }
.verdict p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }

/* ============================ 6. TABLES + CHARTS ======================== */
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 22px 24px 18px;
}
.card--table { padding-bottom: 0; }
.card__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 12px;
}
.card__title {
  font-family: var(--font-sans); font-size: 14px; font-weight: 650; color: var(--ink);
  margin: 0 0 2px; letter-spacing: -.005em;
}
.card__sub { font-family: var(--font-sans); font-size: 12px; color: var(--muted); margin: 0; }

.table-wrap { overflow-x: auto; margin: 0 -24px; }
.dtable {
  width: 100%; border-collapse: collapse;
  font-family: var(--font-sans); font-size: 13px; min-width: 560px;
}
.dtable thead th {
  text-align: left; font-size: 10.5px; font-weight: 650; letter-spacing: .09em;
  text-transform: uppercase; color: var(--faint);
  padding: 12px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.dtable thead th:first-child { padding-left: 24px; }
.dtable thead th:last-child  { padding-right: 24px; }
.dtable td { padding: 9px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.dtable td:first-child { padding-left: 24px; }
.dtable td:last-child  { padding-right: 24px; }
.dtable tbody tr:last-child td { border-bottom: none; }
.dtable .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dtable .policy { font-weight: 600; color: var(--ink); }
.dtable .ci { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dtable tr.is-ref td { background: color-mix(in srgb, var(--line-soft) 65%, transparent); }
.dtable tr.is-lead td { background: color-mix(in srgb, var(--accent-wash) 55%, transparent); }
.dtable tr.is-lead .policy { color: var(--accent-ink); }
.dtable .grouprow td {
  padding-top: 15px; padding-bottom: 5px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--faint); border-bottom: none; background: none;
}
.dtable .cls { font-weight: 650; white-space: nowrap; }
.cls--prm { color: var(--accent-ink); }
.cls--v4  { color: var(--sienna-ink); }
.cls--orm { color: var(--graphite-ink); }
.dtable .pos { color: var(--pos); font-weight: 650; }
.dtable .neg { color: var(--neg); font-weight: 650; }
.dtable .mono { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-soft); }
.dtable .wtl { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; }

/* Charts */
.chart { width: 100%; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .tick-label, .chart .grp-label { font-family: var(--font-sans); fill: var(--muted); }
.chart .val-label { font-family: var(--font-sans); fill: var(--ink-soft); font-weight: 600; }
.chart .axis-line { stroke: var(--line); stroke-width: 1; }
.chart .grid-line { stroke: var(--line-soft); stroke-width: 1; }
.chart .zero-line { stroke: var(--ink-soft); stroke-width: 1.2; }
.chart .ci-line   { stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; }
.chart .dot-prm { fill: var(--accent); }
.chart .dot-v4  { fill: var(--sienna); }
.chart .dot-orm { fill: var(--graphite); }
.chart .bar-prm { fill: var(--accent); }
.chart .bar-v4  { fill: var(--sienna); }
.chart .bar-orm { fill: var(--graphite); }
.chart .bar-pos { fill: var(--pos); }
.chart .bar-neg { fill: var(--neg); }
.chart .bar-dim { fill: var(--line); }
.chart .path-track { fill: none; stroke: var(--line); stroke-width: 1.4; stroke-dasharray: 4 4; }
.chart .path-track2 { fill: none; stroke: var(--line); stroke-width: 1.4; stroke-dasharray: 1 4; stroke-linecap: round; }
.chart .node-ring { fill: var(--surface); }
.chart .dot-neg { fill: var(--neg); }
.chart .ref-line {
  stroke: var(--sienna); stroke-width: 1.2; stroke-dasharray: 3 3; opacity: .8;
}
.chart .band-a { fill: var(--accent);   opacity: .13; }
.chart .band-b { fill: var(--graphite); opacity: .11; }
.chart .line-a { fill: none; stroke: var(--accent);   stroke-width: 2;   stroke-linejoin: round; }
.chart .line-b { fill: none; stroke: var(--graphite); stroke-width: 1.7; stroke-linejoin: round; stroke-dasharray: 5 3; }

/* bar entrance: CSS-only so charts never render empty on screenshot */
/* fill-mode `backwards` (not `both`) on purpose: the resting state is the
   element's own style, so a throttled or animation-free renderer — a link
   preview, a headless screenshot, a reduced-motion browser — still shows the
   full bar and the label instead of stranding them at opacity/scale 0. */
.chart .bar {
  transform-box: fill-box; transform-origin: left;
  animation: barIn .6s cubic-bezier(.2,.7,.2,1) backwards;
}
@keyframes barIn { from { transform: scale(0,1); } to { transform: scale(1,1); } }
.chart .fade-label { animation: lblIn .4s ease .15s backwards; }
@keyframes lblIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .chart .bar, .chart .fade-label { animation: none; }
}

/* ============================ 7. FOOTER + REVEAL ======================== */
.footer { border-top: 1px solid var(--line); margin-top: 70px; padding-top: 40px; }
.footer h3 { font-size: 19px; margin: 0 0 14px; }
.footer__meta {
  font-family: var(--font-sans); font-size: 13px; color: var(--muted);
  margin: 26px 0 0; line-height: 1.7;
}
.bibtex { position: relative; }
.bibtex pre {
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; color: var(--ink-soft);
  background: var(--code-bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; overflow-x: auto; margin: 0;
}
.bibtex__copy {
  position: absolute; top: 11px; right: 11px;
  font-family: var(--font-sans); font-size: 12.5px; font-weight: 600; color: var(--accent-ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 7px;
  padding: 4px 11px; cursor: pointer;
}
.bibtex__copy:hover { background: var(--accent-wash); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { display: none; }
  .article { padding-top: 32px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .topbar__link:not(.topbar__link--cta) { display: none; }
  .specs { grid-template-columns: 1fr; }
  .spec + .spec { border-left: none; border-top: 1px solid var(--line); }
  .verdicts { grid-template-columns: 1fr; }
  .card { padding: 16px 16px 14px; }
  .card--table { padding-bottom: 0; }
  .table-wrap { margin: 0 -16px; }
  .dtable thead th:first-child, .dtable td:first-child { padding-left: 16px; }
  .dtable thead th:last-child,  .dtable td:last-child  { padding-right: 16px; }
}
