/* ==========================================================================
   Radio2Map — OpenMaxwell Flagship Editorial Design System
   Warm paper (#F3F0E7), cream cards (#F8F5EC), navy ink (#16325C),
   brand electric blue (#2F7BD8), disciplined lime highlight (#DCF24E).
   Zero opacity:0 scroll-hiding; zero animated numbers.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("static/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F3F0E7;
  --paper-2: #E8E3D5;
  --cream: #F8F5EC;
  --white: #FFFFFF;
  --ink: #16325C;
  --ink-soft: #3D5278;
  --muted: #5C6F8E;
  --blue: #2F7BD8;
  --blue-deep: #2468C9;
  --lime: #DCF24E;
  --amber: #B6410F;
  --amber-lo: #FDEBD6;
  --line: rgba(22, 50, 92, 0.14);
  --line-strong: rgba(22, 50, 92, 0.28);
  --code-bg: #102342;
  --code-fg: #E6EFFA;
  --shadow-1: 0 1px 2px rgba(22, 50, 92, 0.05), 0 6px 20px rgba(22, 50, 92, 0.06);
  --shadow-2: 0 4px 12px rgba(22, 50, 92, 0.07), 0 22px 48px rgba(22, 50, 92, 0.11);
  --wide: 120%;
  --narrow: 76%;
  --maxw: 1240px;
  --pad: clamp(18px, 3.2vw, 44px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.62;
  font-weight: 420;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
a { color: var(--blue-deep); text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: 16px; top: 16px; z-index: 90; background: var(--white); color: var(--ink);
  padding: 10px 14px; border: 2px solid var(--ink); font-weight: 700; text-decoration: none;
}
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* ── Topbar ── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 240, 231, 0.92);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar.scrolled { background: rgba(243, 240, 231, 0.97); box-shadow: 0 6px 24px rgba(22, 50, 92, 0.06); }
.topbar__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 64px; padding-top: 10px; padding-bottom: 10px;
}
.brand-cluster { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.om-brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.om-brand:hover { color: var(--blue); }
.om-brand__mark { width: 25px; height: 29px; flex: none; }
.om-brand__name { font-stretch: var(--wide); font-weight: 780; font-size: 16px; letter-spacing: -0.015em; line-height: 1; }
.brand-sep { width: 1px; height: 20px; background: var(--line-strong); }
.proj-crumb {
  font-stretch: var(--narrow); text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 750; font-size: 13.5px; color: var(--blue-deep); text-decoration: none;
}
.proj-crumb:hover { color: var(--ink); }
.inst-pill {
  font-stretch: var(--narrow); text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 740; font-size: 11.5px; padding: 4px 8px 3px;
  border: 1.5px solid var(--line-strong); color: var(--ink-soft); background: var(--cream); line-height: 1;
}
.topnav { display: flex; align-items: center; gap: 20px; }
.topnav a {
  font-stretch: var(--narrow); text-transform: uppercase; letter-spacing: 0.075em;
  font-weight: 680; font-size: 13.5px; color: var(--ink-soft); text-decoration: none;
  padding: 6px 0 4px; border-bottom: 2.5px solid transparent; transition: color 0.2s, border-color 0.2s; white-space: nowrap;
}
.topnav a:hover { color: var(--ink); }
.topnav a.active { color: var(--ink); border-bottom-color: var(--blue); }
.progress {
  position: absolute; left: 0; bottom: -1px; height: 2.5px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0); background: var(--blue);
}

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(28px, 3.8vw, 52px) 0 clamp(38px, 4.4vw, 60px);
  border-bottom: 1px solid var(--line);
}
.hero__waves {
  position: absolute; top: -40px; right: -40px;
  width: min(56vw, 760px); height: auto; aspect-ratio: 1;
  opacity: 0.24; pointer-events: none; z-index: 0;
  -webkit-mask-image: radial-gradient(circle at 100% 0, #000 32%, transparent 68%);
  mask-image: radial-gradient(circle at 100% 0, #000 32%, transparent 68%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.90fr);
  gap: clamp(26px, 4vw, 52px); align-items: center;
}
.hero-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 16px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-stretch: var(--narrow); text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 740; font-size: 12px; line-height: 1; padding: 6px 10px 5px;
  border: 1.5px solid var(--ink); color: var(--ink); background: transparent; text-decoration: none; white-space: nowrap;
}
.tag--lime { background: var(--lime); border-color: var(--ink); color: var(--ink); }
.tag--soft { border-color: var(--line-strong); color: var(--ink-soft); background: var(--cream); }
.hero h1 {
  font-stretch: var(--wide); font-weight: 820;
  font-size: clamp(32px, 4.1vw, 54px); line-height: 1.02; letter-spacing: -0.028em;
  color: var(--ink); text-wrap: balance; margin-bottom: 16px;
}
.hero h1 .accent { color: var(--blue); }
.lede { font-size: clamp(17px, 1.4vw, 19.5px); line-height: 1.46; color: var(--ink-soft); max-width: 46ch; margin-bottom: 20px; }
.authors { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 17px; font-weight: 660; color: var(--ink); margin-bottom: 5px; }
.authors a { color: var(--ink); text-decoration-color: rgba(47, 123, 216, 0.45); }
.authors a:hover { color: var(--blue); }
.affils { font-size: 14.5px; color: var(--muted); margin-bottom: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.affils .om-inline { display: inline-flex; align-items: center; gap: 5px; font-weight: 680; color: var(--ink); text-decoration: none; }
.affils .om-inline:hover { color: var(--blue); }
.affils .om-inline svg { width: 15px; height: 17px; flex: none; }

.cta { display: flex; flex-wrap: wrap; gap: 9px 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-stretch: var(--narrow); text-transform: uppercase; letter-spacing: 0.07em;
  font-weight: 720; font-size: 13.5px; line-height: 1; padding: 11px 15px 10px;
  text-decoration: none; border: 1.5px solid var(--ink); background: var(--cream); color: var(--ink);
  transition: background 0.18s, color 0.18s, border-color 0.18s; cursor: pointer;
}
.btn svg { width: 15px; height: 15px; flex: none; }
.btn:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn--primary { background: var(--ink); color: var(--cream); }
.btn--muted { border-style: dashed; border-color: var(--line-strong); color: var(--muted); background: rgba(248, 245, 236, 0.7); cursor: default; }
.btn--muted:hover { background: rgba(248, 245, 236, 0.7); color: var(--muted); border-color: var(--line-strong); }
.btn--muted small { font-weight: 540; opacity: 0.82; text-transform: none; letter-spacing: 0; font-stretch: 100%; }

/* ── 3D Hero Stage ── */
.scene-shell { background: var(--cream); border: 1.5px solid var(--line-strong); padding: 12px; box-shadow: var(--shadow-2); }
.scene-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.scene-title { font-stretch: var(--narrow); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 740; font-size: 12.5px; color: var(--ink); }
.seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--paper-2); border: 1px solid var(--line); }
.seg button {
  font-family: inherit; font-stretch: var(--narrow); text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 12px; font-weight: 720; padding: 6px 11px 5px; border: 0; background: transparent;
  color: var(--ink-soft); cursor: pointer; transition: background 0.18s, color 0.18s;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--ink); color: var(--cream); }
.seg button[data-ours][aria-pressed="true"] { background: var(--blue); color: var(--white); }

.scene-card { position: relative; aspect-ratio: 1 / 1; width: 100%; overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.scene-card canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.scene-card canvas:active { cursor: grabbing; }
.scene-card .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.45s; }
.scene-card.live .poster { opacity: 0; pointer-events: none; }
.scene-badge {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  font-stretch: var(--narrow); text-transform: uppercase; letter-spacing: 0.07em;
  font-size: 11.5px; font-weight: 740; padding: 5px 9px 4px;
  background: rgba(248, 245, 236, 0.94); border: 1px solid var(--line-strong); color: var(--ink);
}
.scene-badge.is-ours { background: var(--lime); border-color: var(--ink); }
.scene-hint {
  position: absolute; right: 10px; top: 10px; z-index: 2; font-size: 11.5px; font-weight: 600;
  color: var(--ink-soft); background: rgba(248, 245, 236, 0.90); border: 1px solid var(--line);
  padding: 4px 8px; display: none;
}
.scene-card.live .scene-hint { display: inline-block; }
.scene-footer-ui {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; pointer-events: none;
}
.scene-footer-ui > * { pointer-events: auto; }
.scene-reset {
  font-family: inherit; font-stretch: var(--narrow); text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 11.5px; font-weight: 700; background: rgba(248, 245, 236, 0.94); color: var(--ink);
  border: 1px solid var(--line-strong); padding: 5px 9px 4px; cursor: pointer;
}
.scene-reset:hover { background: var(--ink); color: var(--cream); }
.scene-key {
  font-size: 11px; line-height: 1.3; color: var(--ink-soft);
  background: rgba(248, 245, 236, 0.94); border: 1px solid var(--line-strong);
  padding: 6px 9px; min-width: 130px; font-variant-numeric: tabular-nums;
}
.scene-key .bar { height: 6px; margin: 4px 0 2px; background: linear-gradient(90deg, var(--amber-lo), #E07D3A, var(--amber)); }
.scene-key .ends { display: flex; justify-content: space-between; }
.scene-cap { margin-top: 9px; font-size: 12.6px; line-height: 1.46; color: var(--ink-soft); }

/* ── Headline KPI Strip (Static Final Values) ── */
.kpi-band { background: var(--ink); color: var(--cream); padding: clamp(22px, 2.8vw, 32px) 0; }
.kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 26px; }
.kpi { border-left: 3px solid var(--lime); padding-left: 16px; }
.kpi__label { font-stretch: var(--narrow); text-transform: uppercase; letter-spacing: 0.09em; font-size: 12px; font-weight: 700; color: rgba(248, 245, 236, 0.72); margin-bottom: 4px; }
.kpi__val { font-stretch: var(--wide); font-weight: 820; font-size: clamp(23px, 2.4vw, 31px); line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--white); margin-bottom: 5px; }
.kpi__val em { font-style: normal; color: var(--lime); }
.kpi__cap { font-size: 13.4px; line-height: 1.45; color: rgba(248, 245, 236, 0.84); }

/* ── Sections ── */
section.band { padding: clamp(44px, 5.5vw, 70px) 0; }
section.band--alt { background: var(--paper-2); }
section.band--cream { background: var(--cream); }
section.band + section.band { border-top: 1px solid var(--line); }
.sec-head {
  display: grid; grid-template-columns: minmax(0, 3.8fr) minmax(0, 8.2fr);
  gap: 10px 36px; align-items: baseline; border-top: 3.5px solid var(--ink); padding-top: 16px; margin-bottom: 26px;
}
.kicker { display: inline-flex; align-items: center; gap: 9px; font-stretch: var(--narrow); text-transform: uppercase; letter-spacing: 0.10em; font-weight: 750; font-size: 13px; color: var(--blue-deep); }
.kicker__n { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; padding: 2px 6px; background: var(--ink); color: var(--cream); font-stretch: 100%; letter-spacing: 0; }
.sec-head h2 { font-stretch: var(--wide); font-weight: 800; font-size: clamp(25px, 3vw, 38px); line-height: 1.08; letter-spacing: -0.025em; color: var(--ink); }
.sec-lede { margin-top: 8px; font-size: 16px; line-height: 1.56; color: var(--ink-soft); max-width: 68ch; }

/* ── Interactive 2D Curtain Compare ── */
.compare-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr); gap: clamp(22px, 3vw, 40px); align-items: center; margin-bottom: 30px; }
.curtain-card { background: var(--white); border: 1.5px solid var(--line-strong); padding: 14px; box-shadow: var(--shadow-1); }
.curtain-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.curtain-stage { position: relative; aspect-ratio: 1 / 1; width: 100%; overflow: hidden; border: 1px solid var(--line); background: var(--paper); user-select: none; touch-action: pan-y; }
.curtain-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.curtain-clip { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--split, 50%)); }
.curtain-divider { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 2.5px; background: var(--ink); transform: translateX(-50%); pointer-events: none; z-index: 3; }
.curtain-knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink);
  color: var(--ink); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(22, 50, 92, 0.28);
}
.curtain-knob svg { width: 18px; height: 18px; }
.curtain-label { position: absolute; top: 10px; z-index: 4; font-stretch: var(--narrow); text-transform: uppercase; letter-spacing: 0.07em; font-size: 11.5px; font-weight: 760; padding: 4px 9px 3px; pointer-events: none; }
.curtain-label--left { left: 10px; background: rgba(22, 50, 92, 0.90); color: var(--cream); }
.curtain-label--right { right: 10px; background: var(--lime); color: var(--ink); border: 1.5px solid var(--ink); }
.curtain-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 5; }
.curtain-legend { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-size: 12.5px; color: var(--ink-soft); }
.legend-swatches { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.sw { display: inline-flex; align-items: center; gap: 6px; }
.sw i { display: inline-block; width: 11px; height: 11px; border: 1px solid rgba(22, 50, 92, 0.3); }

.compare-notes { display: flex; flex-direction: column; gap: 14px; }
.compare-notes h3 { font-stretch: var(--wide); font-weight: 780; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
.compare-notes p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.6; }
.mini-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 4px; }
.mini-fact { background: var(--cream); border: 1px solid var(--line-strong); padding: 12px 14px; }
.mini-fact__k { font-stretch: var(--narrow); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11.2px; font-weight: 720; color: var(--muted); }
.mini-fact__v { font-stretch: var(--wide); font-weight: 800; font-size: 20px; color: var(--ink); margin-top: 3px; font-variant-numeric: tabular-nums; }
.mini-fact__v span { font-size: 12.5px; font-weight: 600; color: var(--blue-deep); margin-left: 4px; }

/* ── Journal Plates ── */
figure.plate { min-width: 0; max-width: 100%; background: var(--white); border: 1px solid var(--line-strong); padding: clamp(12px, 1.6vw, 18px); box-shadow: var(--shadow-1); position: relative; }
figure.plate img { width: 100%; height: auto; cursor: zoom-in; background: var(--white); }
.figgrid > *, .compare-grid > *, .hero-grid > *, .editorial-split > *, .sec-head > *, .kpi-grid > *, .step-strip > * { min-width: 0; }
.table-card, .codebox { min-width: 0; max-width: 100%; }
.figscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.figscroll img { min-width: 100%; }
figure.plate figcaption { margin-top: 12px; font-size: 13.8px; line-height: 1.56; color: var(--ink-soft); max-width: 96ch; }
figure.plate figcaption b { color: var(--ink); }
.fig-lbl { display: inline-block; font-stretch: var(--narrow); text-transform: uppercase; letter-spacing: 0.07em; font-size: 11.5px; font-weight: 760; background: var(--ink); color: var(--cream); padding: 2px 7px 1px; margin-right: 7px; vertical-align: 1px; }
.zoom-btn { position: absolute; top: 16px; right: 16px; z-index: 2; width: 32px; height: 32px; display: grid; place-items: center; background: rgba(248, 245, 236, 0.92); color: var(--ink); border: 1px solid var(--line-strong); cursor: pointer; }
.zoom-btn:hover { background: var(--ink); color: var(--cream); }
.zoom-btn svg { width: 15px; height: 15px; }
.swipe-hint { display: none; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.figgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.figgrid--spaced { margin-top: 22px; }
.plate--mid { max-width: 960px; margin-left: auto; margin-right: auto; }

/* ── Abstract & Method Strip ── */
.editorial-split { display: grid; grid-template-columns: minmax(0, 3.8fr) minmax(0, 8.2fr); gap: 18px 36px; align-items: start; }
.pullquote { border-left: 4px solid var(--blue); padding: 6px 0 6px 16px; font-stretch: var(--wide); font-weight: 740; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.28; color: var(--ink); }
.abstract-body { font-size: 16.5px; line-height: 1.68; color: var(--ink-soft); max-width: 72ch; }
.step-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-bottom: 22px; }
.step-card { background: var(--cream); border: 1px solid var(--line-strong); border-top: 3.5px solid var(--blue); padding: 16px 18px; }
.step-card__n { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; font-weight: 700; color: var(--blue-deep); margin-bottom: 5px; }
.step-card h3 { font-stretch: var(--wide); font-weight: 760; font-size: 17px; color: var(--ink); margin-bottom: 5px; }
.step-card p { font-size: 14.2px; line-height: 1.52; color: var(--ink-soft); }

/* ── Native HTML Tables ── */
.table-card { background: var(--white); border: 1.5px solid var(--line-strong); box-shadow: var(--shadow-1); margin-bottom: 24px; }
.table-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; padding: 15px 18px; background: var(--cream); border-bottom: 1.5px solid var(--line); }
.table-head h3 { font-stretch: var(--wide); font-weight: 780; font-size: 17.5px; color: var(--ink); }
.table-sub { padding: 11px 18px; font-size: 13.2px; line-height: 1.5; color: var(--ink-soft); border-bottom: 1px solid var(--line); background: #FCFBF7; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.rtab { width: 100%; border-collapse: collapse; font-size: 13.4px; font-variant-numeric: tabular-nums; }
table.rtab th, table.rtab td { padding: 8px 10px; border-bottom: 1px solid rgba(22, 50, 92, 0.10); text-align: right; white-space: nowrap; }
table.rtab th { font-stretch: var(--narrow); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 740; font-size: 12px; color: var(--ink); background: var(--cream); }
table.rtab tr.grp-row th { text-align: center; background: var(--paper-2); border-bottom: 1.5px solid var(--line-strong); font-size: 11.8px; letter-spacing: 0.08em; }
table.rtab th.col-l, table.rtab td.col-l { text-align: left; }
table.rtab td.track-cell { text-align: left; font-stretch: var(--narrow); text-transform: uppercase; letter-spacing: 0.06em; font-size: 11.2px; font-weight: 740; color: var(--muted); vertical-align: top; border-right: 1px solid var(--line); }
table.rtab tr.sec-div td { border-top: 1.5px solid var(--line-strong); }
table.rtab tr.is-unranked td:not(.track-cell) { color: #7C8CA3; font-style: italic; }
table.rtab tr.is-ref td:not(.track-cell) { color: var(--muted); background: #F9F7F1; }
table.rtab tr.is-ours td { background: rgba(47, 123, 216, 0.11); color: var(--ink); font-weight: 640; border-top: 1.5px solid var(--blue); border-bottom: 1.5px solid var(--blue); }
table.rtab tbody tr:hover td:not(.track-cell) { background-color: rgba(220, 242, 78, 0.16); }
table.rtab tr.is-ours:hover td { background-color: rgba(47, 123, 216, 0.17); }
.ours-pill { display: inline-block; margin-left: 6px; padding: 2px 6px 1px; font-stretch: var(--narrow); text-transform: uppercase; letter-spacing: 0.07em; font-size: 10.5px; font-weight: 800; background: var(--lime); color: var(--ink); border: 1px solid var(--ink); vertical-align: 1px; font-style: normal; }
.best { font-weight: 820; color: var(--ink); }
.second { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.fc-n { font-size: 10.5px; color: var(--muted); margin-left: 2px; }
table.rtab[data-view="id"] .col-ood, table.rtab[data-view="id"] .col-new { display: none; }
table.rtab[data-view="ood"] .col-id { display: none; }

/* ── Tabs & BibTeX & Footer ── */
.tabbar { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 4px; background: var(--cream); border: 1.5px solid var(--line-strong); margin-bottom: 18px; }
.tabbar button { font-family: inherit; font-stretch: var(--narrow); text-transform: uppercase; letter-spacing: 0.07em; font-size: 13px; font-weight: 740; padding: 8px 15px 7px; border: 0; background: transparent; color: var(--ink-soft); cursor: pointer; }
.tabbar button:hover { color: var(--ink); }
.tabbar button[aria-selected="true"] { background: var(--ink); color: var(--cream); }
.tabpanel[hidden] { display: none; }

.codebox { position: relative; }
.codebox pre { margin: 0; background: var(--code-bg); color: var(--code-fg); padding: 20px 22px; overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; line-height: 1.66; border-left: 4px solid var(--lime); }
.copy-btn { position: absolute; top: 12px; right: 12px; font-family: inherit; font-stretch: var(--narrow); text-transform: uppercase; letter-spacing: 0.07em; font-size: 12px; font-weight: 740; padding: 7px 12px 6px; border: 1.5px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.09); color: var(--white); cursor: pointer; }
.copy-btn:hover, .copy-btn.copied { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.cite-note { margin-top: 10px; font-size: 13.8px; color: var(--muted); }

footer { background: var(--ink); color: rgba(248, 245, 236, 0.85); padding: 30px 0 38px; font-size: 13.8px; }
.foot-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 22px; }
.foot-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--cream); text-decoration: none; font-weight: 740; font-stretch: var(--wide); font-size: 15.5px; }
.foot-brand svg { width: 22px; height: 26px; flex: none; }
.foot-brand:hover { color: var(--lime); }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 18px; }
footer a { color: var(--cream); text-decoration-color: rgba(248, 245, 236, 0.4); }
footer a:hover { color: var(--lime); }

.totop { position: fixed; right: 20px; bottom: 20px; z-index: 45; width: 42px; height: 42px; display: grid; place-items: center; background: var(--ink); color: var(--cream); border: 1.5px solid var(--cream); box-shadow: var(--shadow-2); text-decoration: none; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.totop.show { opacity: 1; pointer-events: auto; }
.totop:hover { background: var(--blue); color: var(--white); }
.totop svg { width: 18px; height: 18px; }

dialog.lb { width: min(96vw, 1620px); max-width: none; max-height: 94vh; padding: 0; border: 2px solid var(--ink); background: var(--white); color: var(--ink); box-shadow: 0 32px 90px rgba(10, 22, 42, 0.48); overflow: hidden; }
dialog.lb::backdrop { background: rgba(16, 35, 66, 0.72); backdrop-filter: blur(4px); }
.lb-body { max-height: 94vh; overflow: auto; padding: 18px; }
.lb-body img { display: block; width: 100%; height: auto; background: var(--white); }
.lb-cap { margin-top: 12px; font-size: 14px; line-height: 1.56; color: var(--ink-soft); }
.lb-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 1.5px solid var(--ink); background: var(--cream); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }

@media (max-width: 1020px) {
  .hero-grid, .compare-grid, .sec-head, .editorial-split { grid-template-columns: 1fr; }
  .scene-shell { max-width: 560px; }
  .kpi-grid, .step-strip, .figgrid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .topnav { gap: 14px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .topnav::-webkit-scrollbar { display: none; }
  .topbar__in { flex-wrap: wrap; gap: 8px 14px; }
  .figscroll img { min-width: 680px; }
  .swipe-hint { display: block; }
}
@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .inst-pill, .zoom-btn { display: none; }
  .mini-facts { grid-template-columns: 1fr; }
  table.rtab th, table.rtab td { padding: 7px 8px; font-size: 12.2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
