/* Layout rules for the site. Fonts, sizes, colors and widths are set in
   config.css; edit that file instead of this one. */

/* ---------- Bundled font files ---------- */
@font-face { font-family: "Source Sans 3"; src: url("fonts/SourceSans3-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/SourceSans3-Semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/SourceSerif4-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/SourceSerif4-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/SourceSerif4-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/SourceSerif4-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("fonts/InterTight-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("fonts/InterTight-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- Short internal names for the config.css settings ---------- */
:root {
  --paper: var(--color-background);
  --paper-2: var(--color-background-alt);
  --card: var(--color-card);
  --ink: var(--color-text);
  --ink-2: var(--color-text-soft);
  --muted: var(--color-text-muted);
  --line: var(--color-line);
  --line-2: var(--color-line-strong);
  --orange: var(--color-accent);
  --orange-soft: var(--color-accent-soft);
  --blue: var(--color-link);
  --blue-soft: var(--color-link-soft);
  --teal: var(--color-teal);
  --serif: var(--font-heading);
  --sans: var(--font-body);
  --mono: var(--font-code);
  --wrap: var(--page-width);
  --radius: var(--corner-radius);
  --hw: var(--weight-heading);
  --shadow: 0 1px 2px rgba(24,33,45,.05), 0 6px 24px -12px rgba(24,33,45,.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--size-body)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
em { font-style: italic; }
i { font-family: var(--font-math); font-style: italic; }
b { font-weight: 600; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.wrap.narrow { max-width: var(--text-width); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; height: 58px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { font: 700 19px/1 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: .01em; }
.wordmark span { color: var(--orange); }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: var(--size-nav); font-weight: 600; padding: 7px 12px; border-radius: 999px; transition: background .15s, color .15s; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a.active { color: var(--orange); }
.menu-btn { display: none; font: 600 15px var(--sans); background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; color: var(--ink); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 64px; overflow: hidden; }
.graticule {
  position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 75%);
}
.hero .wrap { position: relative; text-align: center; }
.eyebrow { margin: 0 0 18px; font-size: var(--size-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
h1 { font: var(--hw) min(var(--size-title), 7vw)/1.2 var(--serif); margin: 0 auto 20px; max-width: 820px; letter-spacing: -.02em; text-wrap: balance; }
.authors { font-size: var(--size-authors); color: var(--ink-2); margin: 0 0 26px; }
.authors span { color: var(--line-2); margin: 0 12px; }
.authors a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.authors a:hover { color: var(--blue); text-decoration-color: currentColor; }
.links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 48px; }
/* Paper / Code / BibTeX: outlined pills, all the same weight */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); color: var(--ink); text-decoration: none;
  font: 600 var(--size-nav)/1 var(--sans); padding: 11px 18px; border-radius: 999px;
  border: 1px solid var(--line-2); box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { transform: translateY(-1px); border-color: var(--ink); box-shadow: 0 3px 10px rgba(0, 0, 0, .07); }

.hero-media { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; text-align: left; max-width: var(--hero-video-width); margin: 0 auto; align-items: start; }
.hero-clip { margin: 0; }
.frame { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 9; }
.frame video { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.hero-clip figcaption { font-size: var(--size-caption); color: var(--muted); margin: 0 0 10px; }
.hero-clip figcaption b { color: var(--ink); }

.tldr { font: 400 min(var(--size-summary), 5vw)/1.55 var(--sans); color: var(--ink-2); max-width: 860px; margin: 48px auto 40px; text-wrap: pretty; }
.tldr em { color: var(--orange); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; text-align: left; border-top: 1px solid var(--line-2); }
.stats > div { padding: 22px 22px 6px 0; }
.stats > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.stats dt { font: var(--hw) var(--size-stat)/1 var(--serif); color: var(--ink); letter-spacing: -.02em; }
.stats dt small { font-size: 22px; color: var(--orange); margin-left: 2px; }
.stats dd { margin: 10px 0 0; font-size: var(--size-caption); line-height: 1.45; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: var(--section-spacing) 0; border-top: 1px solid var(--line); }
.section.alt { background: var(--paper-2); }
.abstract { padding: 64px 0; }
.label { font: 600 var(--size-label)/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin: 0 0 16px; }
.abstract p { margin: 0; font-size: var(--size-body); color: var(--ink-2); hyphens: auto; text-align: justify; }

.sec-head { display: grid; grid-template-columns: var(--margin-col) 1fr; gap: 0; margin-bottom: 44px; }
.wrap.narrow .sec-head { grid-template-columns: 64px 1fr; gap: 8px; }
/* number sits at the right edge of the margin column, next to the title (like the "See" notes) */
.sec-head > .sec-num { justify-self: end; margin-right: 28px; text-align: right; }
.wrap.narrow .sec-head > .sec-num { justify-self: start; margin-right: 0; text-align: left; }
.sec-head.compact { margin-bottom: 24px; }
.sec-num { font: 600 15px/2.6 var(--serif); color: var(--orange); border-top: 2px solid var(--orange); width: 36px; }
h2 { font: var(--hw) min(var(--size-section-heading), 6.5vw)/1.2 var(--serif); margin: 0 0 14px; letter-spacing: -.015em; }
.lede { font-size: var(--size-section-intro); color: var(--ink-2); margin: 0; max-width: 780px; text-wrap: pretty; }
h3 { font: var(--hw) var(--size-subheading)/1.3 var(--serif); margin: 0 0 10px; letter-spacing: -.01em; }

/* ---------- Background primer + callout ---------- */
.nowrap { white-space: nowrap; }

/* Background primer. Pick a style in index.md:  ::: primer cards | paper | rail | panel | gutter */
/* Method text column: starts after the left margin column, ends at the page edge
   (aligned with the navigation bar). The margin column holds section numbers and "See" notes. */
.primer, .callout, .step-text, .step > .fig { margin-left: var(--margin-col) !important; margin-right: 0 !important; max-width: none !important; }
.primer { margin-bottom: 28px; }
.primer-card, .callout { position: relative; }
.callout > .mnotes { top: 23px; right: calc(100% + 31px); }
.mnotes { position: absolute; right: calc(100% + 28px); top: 3px; width: calc(var(--margin-col) - 28px); text-align: right; display: grid; justify-items: end; gap: 8px; font-size: var(--size-small); line-height: 1.3; }
.mnotes .mlabel { font: 600 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mnotes a { position: relative; color: var(--ink-2); text-decoration: none; border-bottom: 1px dotted var(--line-2); }
.mnotes a:hover, .mnotes a:focus-visible { color: var(--blue); border-bottom-color: var(--blue); }
.mnotes .tip { position: absolute; left: 0; top: calc(100% + 8px); z-index: 20; width: 320px; text-align: left; background: var(--ink); color: #fff;
  font-size: 14px; line-height: 1.4; padding: 10px 12px; border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.18);
  opacity: 0; visibility: hidden; transform: translateY(-3px); transition: opacity .12s, transform .12s; pointer-events: none; }
.mnotes .tip i { display: block; font: normal 13px/1.4 var(--sans); color: #c9ccd2; margin-top: 4px; }
.mnotes a:hover .tip, .mnotes a:focus-visible .tip { opacity: 1; visibility: visible; transform: none; }
.primer h3 { font-size: calc(var(--size-subheading) - 2px); margin: 0; }
.primer p { color: var(--ink-2); margin: 0 0 14px; font-size: calc(var(--size-body) - 1px); }
.primer .eq { margin: 6px 0 14px; }
.primer-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.primer-num { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue); font: 600 14px/1 var(--serif); }

/* cards: one bordered card per topic */
.primer--cards { display: grid; gap: 16px; }
.primer--cards .primer-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 26px 6px; }

/* paper: plain text with bold run-in headings, like \paragraph{} in a paper */
.primer--paper .primer-num { display: none; }
.primer--paper .primer-card { margin-bottom: 6px; }
.primer--paper .primer-head { display: block; margin: 0 0 6px; }
.primer--paper h3 { font-size: calc(var(--size-body) + 1px); }

/* rail: numbered steps on a vertical line */
.primer--rail .primer-card { position: relative; padding: 0 0 10px 46px; }
.primer--rail .primer-card::before { content: ""; position: absolute; left: 12px; top: 30px; bottom: 0; width: 2px; background: var(--line); }
.primer--rail .primer-card:last-child::before { display: none; }
.primer--rail .primer-num { position: absolute; left: 0; top: 0; }
.primer--rail .primer-head { min-height: 26px; }

/* panel: one tinted box, topics separated by thin rules */
.primer--panel { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 28px; }
.primer--panel .primer-card { padding: 20px 0 6px; }
.primer--panel .primer-card + .primer-card { border-top: 1px solid var(--line-2); }
.primer--panel .primer-num { background: none; width: auto; height: auto; color: var(--orange); font: 600 13px/1 var(--sans); letter-spacing: .1em; }
.primer--panel .primer-num::before { content: "0"; }

/* gutter: topic title in a left column, text on the right */
.primer--gutter .primer-card { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; padding: 20px 0 6px; border-top: 1px solid var(--line); }
.primer--gutter .primer-card:last-child { border-bottom: 1px solid var(--line); }
.primer--gutter .primer-head { flex-direction: column; align-items: flex-start; gap: 8px; }
.primer--gutter h3 { font-size: calc(var(--size-body)); line-height: 1.35; }

.callout { border-left: 3px solid var(--orange); background: color-mix(in srgb, var(--orange) 5%, var(--card)); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 26px 6px; max-width: var(--text-width); margin: 0 auto 40px; }
.callout h3 { margin-bottom: 8px; }
.callout p { color: var(--ink-2); margin: 0 0 14px; max-width: 900px; }

/* ---------- Figures ---------- */
.fig { margin: 0; }
.fig img { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.fig figcaption { font-size: var(--size-caption); color: var(--muted); margin-top: 12px; line-height: 1.5; }
.fig figcaption b { color: var(--ink-2); }
.fig.wide { margin-bottom: 56px; }
.zoomable img { cursor: zoom-in; }

/* ---------- Method steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
/* Single column, like a paper: text and equations first, figure below. */
.step { display: block; padding: 40px 0; border-top: 1px dashed var(--line-2); counter-increment: step; }
.step-text { position: relative; max-width: var(--text-width); margin: 0 auto; }
.step-tag { display: inline-block; font: 600 12.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); background: var(--blue-soft); padding: 6px 10px; border-radius: 999px; margin-bottom: 14px; }
.step-tag:empty { display: none; }
.step p { color: var(--ink-2); margin: 0 0 12px; }
.step small { display: block; font-size: var(--size-small); color: var(--muted); line-height: 1.55; margin-top: 4px; }
.eq .katex-display { margin: .4em 0; }
.step .eq { margin: 10px 0 18px; }
.step > .fig { margin: 28px auto 0; max-width: var(--text-width); }
.eq { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; margin: 8px 0 14px; overflow-x: auto; }
.narrow-fig { max-width: 380px; }
.step > .fig.narrow-fig { max-width: 380px; }

/* ---------- Tabs ---------- */
.tabs { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 28px; gap: 2px; max-width: 100%; overflow-x: auto; }
.tab { font: 600 16px var(--sans); color: var(--ink-2); background: none; border: 0; padding: 10px 20px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--ink); color: #fff; }
.tabpanel[hidden] { display: none; }
.panel-intro { color: var(--ink-2); max-width: 860px; margin: 0 0 36px; }

/* ---------- Video players ---------- */
.player { margin-bottom: 56px; }
.player-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.player-head h3 { margin: 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: 600 14.5px var(--sans); color: var(--ink-2); background: var(--card); border: 1px solid var(--line-2); padding: 6px 13px; border-radius: 999px; cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--ink-2); }
.chip.is-active { background: var(--orange); border-color: var(--orange); color: #fff; }
.frame.portrait { aspect-ratio: 1040 / 1300; }
.frame.wide2 { aspect-ratio: 2080 / 1300; }

/* Split player: portrait video on the left, title / buttons / legend on the right */
.player.split { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 40px; align-items: start; }
.player.split .player-head { flex-direction: column; align-items: flex-start; gap: 12px; }
.player-side { padding-top: 4px; }
/* two 'column' players side by side, one shared legend below */
.player-group { margin-bottom: 56px; }
.player-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: start; }
.player-row .player { margin-bottom: 0; }
.player.column .player-head { flex-direction: column; align-items: flex-start; gap: 12px; }
.player-group > .vlegend { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }

/* Video legends (HTML, so they use the page's body font) */
.vlegend { display: grid; gap: 10px; margin-top: 14px; font: 400 var(--size-legend)/1.35 var(--sans); color: var(--ink-2); }
.vlegend-group { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: baseline; }
.vlegend-title { font-weight: 600; color: var(--ink); min-width: 4.6em; }
.vlegend ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.vlegend li { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.vlegend svg { width: 28px; height: 14px; flex: none; }
.player-note { font-size: var(--size-caption); color: var(--muted); margin: 10px 0 0; }
.player-note [data-note] { color: var(--ink); font-weight: 600; }

.fig-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; margin-bottom: 48px; }
#tab-f1tenth .fig.wide { margin-bottom: 0; }

/* ---------- Comparison ---------- */
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 36px; }
.chart-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 14px; box-shadow: var(--shadow); }
.chart-card h3 { font: 600 16px var(--sans); margin: 0 0 2px; }
.chart-card p { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.chart-card svg { width: 100%; height: auto; overflow: visible; }
.chart-card text { font-family: var(--sans); }
.lc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lc-card { padding: 16px 16px 8px; }
.lc-card h3 { font: 600 15px/1.3 var(--sans); margin: 0 0 6px; }
.lc-legend { margin: 0 0 14px; }

.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table.results { width: 100%; border-collapse: collapse; font-size: var(--size-table); font-variant-numeric: tabular-nums; min-width: 640px; }
.results caption { caption-side: bottom; text-align: left; font-size: var(--size-small); color: var(--muted); padding: 12px 18px 14px; border-top: 1px solid var(--line); }
.results th, .results td { padding: 9px 18px; text-align: right; border-bottom: 1px solid var(--paper-2); }
.results th:first-child { text-align: left; font-weight: 400; color: var(--ink-2); }
.results thead th { font-weight: 600; color: var(--ink); padding-top: 16px; border-bottom: 0; }
.results thead tr.sub td, .results thead tr.sub th { font-size: 14px; color: var(--muted); padding-top: 0; border-bottom: 1px solid var(--line); }
.results .ours { color: var(--blue); }
.results .best-col { color: var(--orange); }
.results .best-cell { background: color-mix(in srgb, var(--orange) 5%, transparent); }
.results tr.hl th, .results tr.hl td { font-weight: 600; color: var(--ink); }
.results tr.group th { text-align: left; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 18px; font-weight: 600; background: none; }
.results b { color: var(--orange); }
.fine { font-size: var(--size-small); color: var(--muted); margin: 14px 0 0; max-width: 880px; }

/* ---------- Ablations ---------- */
.ablation { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 44px; align-items: start; }
.notes h3 { font-size: 20px; }
.notes ul { margin: 0; padding: 0; list-style: none; }
.notes li { position: relative; padding: 0 0 16px 22px; color: var(--ink-2); font-size: calc(var(--size-body) - 1px); }
.notes li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--orange); }

/* ---------- Citation ---------- */
.bib { position: relative; background: var(--ink); border-radius: var(--radius); }
.bib pre { margin: 0; padding: 22px 24px; color: #e8e4da; font: 14.5px/1.65 var(--mono); overflow-x: auto; }
.copy { position: absolute; top: 12px; right: 12px; font: 600 13px var(--sans); color: #e8e4da; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.copy:hover { background: rgba(255,255,255,.16); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: var(--size-small); color: var(--muted); }
.footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer a { color: var(--muted); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(18,24,33,.88); display: flex; align-items: center; justify-content: center; padding: 32px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; background: #fff; border-radius: 8px; padding: 16px; }
.lb-close { position: absolute; top: 14px; right: 18px; font-size: 34px; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .sec-head { grid-template-columns: 64px 1fr; gap: 8px; }
  .sec-head > .sec-num { justify-self: start; margin-right: 0; text-align: left; }
  .primer, .callout, .step-text, .step > .fig { margin-left: 0 !important; }
  .mnotes { position: static; width: auto; text-align: left; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 8px; }
  .mnotes .tip { display: none; }
  .step, .ablation { grid-template-columns: 1fr; gap: 24px; }
  .primer--gutter .primer-card { grid-template-columns: 1fr; gap: 6px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  body { font-size: calc(var(--size-body) - 1px); }
  .wrap, .topbar-inner { padding: 0 16px; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 58px; left: 0; right: 0; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 14px; }
  .nav.open { display: flex; }
  .hero { padding: 44px 0 44px; }
  .hero-media, .fig-pair, .charts, .player.split, .lc-grid, .player-row { grid-template-columns: 1fr; }
  .vlegend li { white-space: normal; }
  .sec-head { grid-template-columns: 1fr; }
  .section { padding: calc(var(--section-spacing) * .7) 0; }
  .stats dt { font-size: calc(var(--size-stat) * .8); }
  .abstract p { text-align: left; }
  .tab { padding: 9px 14px; font-size: 15px; }
}
@media (max-width: 460px) {
  .stats { grid-template-columns: 1fr; }
  .stats > div { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line); }
  .stats > div:first-child { border-top: 0; }
}
