/* Gaussians Can Subtract - project page */
:root {
  color-scheme: light;
  --bg: #fbfbfa;
  --surface: #ffffff;
  --surface-2: #f3f3f0;
  --ink: #111110;
  --ink-2: #4b4a47;
  --muted: #7d7b75;
  --line: #e3e2dc;
  --line-strong: #c9c8c0;
  --accent: #2a78d6;
  --accent-ink: #1c5cab;
  --accent-soft: #e9f1fc;
  --mesh: #d9602d;
  --gauss: #13915f;
  --grid: #e8e7e1;
  --axis: #c3c2b7;
  --shadow: 0 1px 2px rgba(17, 17, 16, .05), 0 8px 24px rgba(17, 17, 16, .06);
  --radius: 14px;
  --maxw: 1360px;
  --prose: 860px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0f0f0e;
    --surface: #1a1a19;
    --surface-2: #232321;
    --ink: #f0efec;
    --ink-2: #c3c2b7;
    --muted: #94928b;
    --line: #2f2f2c;
    --line-strong: #45443f;
    --accent: #3987e5;
    --accent-ink: #86b6ef;
    --accent-soft: #17263a;
    --mesh: #ec835a;
    --gauss: #2fbf86;
    --grid: #2a2a28;
    --axis: #45443f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
sup { line-height: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 10px clamp(16px, 4vw, 48px); display: flex; align-items: center; gap: 16px; }
.nav-brand { font-weight: 700; letter-spacing: .02em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-links { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { color: var(--ink-2); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: 14px; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { background: var(--surface-2); color: var(--ink); }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(16px, 4vw, 48px); }
main > section { padding-block: 112px 0; }
.sub-h { margin-top: 88px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 10px; }
h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.2; margin: 0 0 14px; letter-spacing: -.015em; }
h2 + figure, h2 + .card, h2 + .split { margin-top: 28px; }
h3 { font-size: 18px; margin: 0 0 6px; }
.lede { color: var(--ink-2); max-width: var(--prose); margin: 0 0 28px; font-size: 17px; }

/* ---------- hero ---------- */
.hero { padding-block: 80px 0; text-align: center; }
.venue { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--surface); }
.venue::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(40px, 7.2vw, 76px); line-height: 1.02; letter-spacing: -.035em; margin: 18px 0 10px; }
.hero h1 .sub-word { position: relative; color: var(--accent-ink); }
.hero .subtitle { font-size: clamp(18px, 2.4vw, 24px); color: var(--ink-2); margin: 0 auto 22px; max-width: 760px; line-height: 1.35; }
.authors { font-size: 18px; margin: 0 0 4px; }
.authors a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.authors span + span::before { content: "·"; margin: 0 10px; color: var(--muted); }
.affils { color: var(--ink-2); font-size: 15px; margin: 0 0 2px; }
.affils span + span { margin-left: 18px; }
.note { color: var(--muted); font-size: 13px; margin: 0; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px 0 0; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600; font-size: 15px;
  border: 1px solid var(--ink); transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 17px; height: 17px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

.teaser { margin: 44px auto 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card.white { background: #fff; }
figure { margin: 0; }
figcaption, .caption { color: var(--ink-2); font-size: 15px; margin-top: 14px; line-height: 1.55; }
figcaption b, .caption b { color: var(--ink); }

/* ---------- abstract + stats ---------- */
.abstract { max-width: var(--prose); }
.abstract p { color: var(--ink-2); font-size: 16.5px; }
.stats-label { margin: 40px 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 26px 24px 22px; text-align: center; }
.stat .v { font-size: clamp(40px, 5vw, 56px); font-weight: 750; letter-spacing: -.03em; line-height: 1; color: var(--accent-ink); }
.stat .v small { font-size: 17px; font-weight: 600; color: var(--ink-2); margin-left: 4px; }
.stat .k { color: var(--ink); font-size: 17px; font-weight: 600; margin-top: 10px; }
.stat .src { color: var(--muted); font-size: 12px; margin-top: 6px; }

/* ---------- method ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.pillar { padding: 22px 22px 20px; }
.pillar h3 { display: flex; align-items: center; }
.pillar .dot { flex: none; width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 10px; }
.pillar p { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; }

/* ---------- segmented controls & chips ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 0 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font: inherit; font-size: 13.5px; padding: 5px 11px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2);
}
.chip:hover { color: var(--ink); border-color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { font: inherit; font-size: 13.5px; border: 0; background: transparent; color: var(--ink-2); padding: 5px 12px; border-radius: 7px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); font-weight: 600; }
.label-sm { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* ---------- comparison widget ---------- */
.cmp { padding: 16px; }
.cmp-top { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.cmp-controls { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin: 12px 0 14px; }
.cmp-controls label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.cmp-controls select {
  font: inherit; font-size: 14px; padding: 5px 28px 5px 10px; border-radius: 8px; color: var(--ink);
  border: 1px solid var(--line-strong); background: var(--surface);
  appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 14px) 52%, calc(100% - 9px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}
.icon-btn { font: inherit; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; cursor: pointer; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); }
.icon-btn:hover { color: var(--ink); }
.icon-btn[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent); }
.icon-btn svg { width: 15px; height: 15px; }
.cmp-controls .spacer { flex: 1; }
.cmp-hint { font-size: 12.5px; color: var(--muted); }

.cmp-inner { width: 100%; }
.stage-frame { width: 100%; display: flex; align-items: center; justify-content: center; }
.stage { flex: none; position: relative; user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: ew-resize; }
.stage-clip { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 10px; background: var(--surface-2); }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.stage .img-r { clip-path: inset(0 0 0 var(--pos, 50%)); }
.stage .divider { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 0; z-index: 3; outline: none; }
.stage .divider::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.stage .knob {
  position: absolute; top: 50%; left: 0; width: 36px; height: 36px; transform: translate(-50%, -50%);
  border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); display: grid; place-items: center; color: #222;
}
.stage .knob svg { width: 20px; height: 20px; }
.stage .divider:focus-visible .knob { outline: 3px solid var(--accent); outline-offset: 2px; }
.stage .tag {
  position: absolute; top: 10px; z-index: 2; font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  background: rgba(17, 17, 16, .72); color: #fff; pointer-events: none; transition: opacity .2s;
}
.stage .tag-l { left: 10px; }
.stage .tag-r { right: 10px; }
.stage.lens-on { cursor: crosshair; }
.lens {
  position: absolute; z-index: 5; width: var(--lens, 210px); height: var(--lens, 210px); border-radius: 50%;
  overflow: hidden; pointer-events: none; border: 3px solid #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .45); background: #000;
}
.lens > div { position: absolute; inset: 0; background-repeat: no-repeat; }
.lens .lens-line { left: 50%; width: 2px; background: #fff; inset: 0 auto 0 50%; }

.story { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; }
.story button {
  font: inherit; text-align: left; padding: 10px 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); font-size: 13.5px; line-height: 1.35;
}
.story button b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.story button .n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--line-strong); color: var(--ink); font-size: 12px; font-weight: 700; margin-right: 6px; }
.story button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.story button[aria-pressed="true"] .n { background: var(--accent); color: #fff; }
.story-text { min-height: 24px; color: var(--ink-2); font-size: 15px; margin: 12px 2px 0; }
.story-text:empty { display: none; }

/* ---------- SH toggle ---------- */
.sh { padding: 16px; }
.sh-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; max-width: 960px; margin: 0 auto; }
.sh-head { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; text-align: center; max-width: 960px; margin: 4px auto 6px; }
.sh-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sh-cell { position: relative; cursor: pointer; border-radius: 6px; overflow: hidden; background: var(--surface-2); touch-action: manipulation; }
.sh-cell img { width: 100%; height: auto; image-rendering: auto; }
.sh-cell span { display: none;  position: absolute; left: 4px; bottom: 4px; font-size: 11px; font-weight: 600; color: #fff; background: rgba(17, 17, 16, .7); padding: 1px 6px; border-radius: 999px; pointer-events: none; }
.sh-state { font-size: 13.5px; color: var(--ink-2); }
.sh-state b { color: var(--ink); }

/* ---------- two-column feature ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.split .side { padding: 18px; }
.split .side img { border-radius: 8px; background: #fff; }

/* ---------- chart ---------- */
.viz { padding: 20px 20px 14px; }
.viz-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); margin: 4px 0 2px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.legend .k-ours { background: var(--accent); }
.legend .k-base { border: 2px solid var(--muted); width: 10px; height: 10px; }
.legend .k-arrow { width: 18px; height: 2px; border-radius: 0; background: var(--accent); vertical-align: 3px; opacity: .55; }
.chart-box { position: relative; }
.chart-box svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-box .gridline { stroke: var(--grid); stroke-width: 1; }
.chart-box .axis { stroke: var(--axis); stroke-width: 1; }
.chart-box .tick { fill: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.chart-box .axis-title { fill: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.chart-box .pt-base { fill: var(--surface); stroke: var(--muted); stroke-width: 2; }
.chart-box .pt-ours { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.chart-box .pt-hit { fill: transparent; cursor: pointer; outline: none; }
.chart-box .pt-hit:focus-visible { stroke: var(--accent); stroke-width: 2; }
.chart-box .lbl { fill: var(--ink-2); font-size: 12px; }
.chart-box .lbl.ours { fill: var(--ink); font-weight: 600; }
.chart-box .link { stroke: var(--accent); stroke-width: 2; opacity: .45; fill: none; }
.chart-box .hl .pt-base, .chart-box .hl .pt-ours { stroke-width: 3; }
.tooltip {
  position: absolute; z-index: 6; pointer-events: none; min-width: 168px; padding: 9px 11px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); font-size: 13px; color: var(--ink-2);
  transform: translate(-50%, calc(-100% - 12px)); opacity: 0; transition: opacity .12s;
}
.tooltip.show { opacity: 1; }
.tooltip b { color: var(--ink); display: block; margin-bottom: 4px; font-size: 13.5px; }
.tooltip table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.tooltip td { padding: 1px 0; }
.tooltip td:last-child { text-align: right; color: var(--ink); padding-left: 12px; }
.viz-foot { font-size: 12.5px; color: var(--muted); margin: 6px 2px 0; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin-top: 14px; }
table.res { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; min-width: 620px; }
table.res th, table.res td { padding: 7px 10px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.res th:first-child, table.res td:first-child { text-align: left; }
table.res thead th { font-size: 12.5px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line-strong); }
table.res tr.sep td { border-top: 1px solid var(--line-strong); }
table.res tr.ours td { background: var(--accent-soft); }
table.res tr.ours td:first-child { font-weight: 600; color: var(--ink); }
table.res td.best { font-weight: 700; color: var(--ink); }
table.res tr.group th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); padding-top: 6px; padding-bottom: 6px; }
table.res tr.part td { color: var(--ink-2); }
table.res.eff tbody tr.group:not(:first-child) th { border-top: 2px solid var(--line-strong); }
.tables-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; }
.tables-2 .card { padding: 18px 18px 12px; }
.tables-2 h3 { margin-bottom: 2px; }
.tables-2 .caption { margin: 0 0 4px; font-size: 13.5px; color: var(--muted); }
.tables-2 table.res { min-width: 400px; font-size: 14px; }

/* ---------- bibtex ---------- */
.bib { position: relative; padding: 0; }
.bib pre { margin: 0; padding: 18px 20px; overflow-x: auto; font: 13.5px/1.6 var(--mono); color: var(--ink); }
.bib .copy { position: absolute; top: 10px; right: 10px; }

footer { margin: 112px 0 0; padding: 28px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .split, .tables-2 { grid-template-columns: minmax(0, 1fr); }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .symbols { grid-template-columns: minmax(0, 1fr); }
  .story { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  main > section { padding-block: 72px 0; }
  .sub-h { margin-top: 64px; }
  .hero { padding-block: 48px 0; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .nav-brand { display: none; }
  .nav-links { margin-left: 0; }
  .cmp { padding: 10px; }
  .cmp-hint { display: none; }
  .stage .knob { width: 32px; height: 32px; }
  .affils span + span { margin-left: 0; display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .tooltip, .stage .tag { transition: none; }
}

/* overview: abstract + key numbers side by side on wide screens */
.ov { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 1100px) {
  .ov { grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); gap: 56px; align-items: center; }
  .ov .stats { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ov .stats-label { margin-top: 0; }
  .ov .stat { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; text-align: left; padding: 20px 24px; }
  .ov .stat .k { margin-top: 0; text-align: right; }
}

/* view switcher: frosted glass, floating on the left of the image */
.view-pick {
  position: absolute; z-index: 4; left: 12px; top: 46px;
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 5px 6px;
  border-radius: 14px; background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .45);
  backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .18); cursor: default;
}
.view-pick .vlabel { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); margin-bottom: 2px; }
.view-pick button {
  font: inherit; font-size: 13px; font-weight: 600; width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  border: 0; background: rgba(255, 255, 255, .18); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
  transition: background .15s, color .15s;
}
.view-pick button:hover { background: rgba(255, 255, 255, .38); }
.view-pick button[aria-pressed="true"] { background: rgba(255, 255, 255, .92); color: #111; text-shadow: none; }
@media (max-width: 640px) {
  .view-pick { top: 40px; left: 8px; padding: 6px 4px 5px; }
  .view-pick button { width: 26px; height: 26px; font-size: 12px; }
}

/* white margin around figures inside white cards */
.card.pad { padding: clamp(14px, 2.2vw, 28px); }
.card.pad img { border-radius: 4px; }

/* overview: both columns share one height */
@media (min-width: 1100px) {
  .ov { align-items: stretch; }
  .ov .abstract p:last-child { margin-bottom: 0; }
  .stats-col { display: flex; flex-direction: column; padding-top: 4px; }
  .ov .stats { flex: 1; grid-auto-rows: 1fr; }
  .ov .stat { align-items: center; }
}
.stats-label { font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-2); }

/* Hard-Z evidence: image and text in one card */
.evidence { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 24px 28px; background: var(--surface); }
.evidence-img { background: #fff; border-radius: 8px; padding: 10px; }
.evidence figcaption { margin: 0; font-size: 16px; }
.evidence figcaption h3 { color: var(--ink); margin-bottom: 10px; }
.evidence figcaption p { margin: 0 0 10px; color: var(--ink-2); }
@media (max-width: 860px) { .evidence { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 18px; } }

/* tables: equal-height cards, dataset as a quiet part of the heading */
.tables-2 { align-items: stretch; }
.h3-note { font-weight: 500; color: var(--muted); margin-left: 6px; }

.view-pick[hidden] { display: none; }

/* equation: LaTeX-typeset SVG, symbols in a ruled two-column list */
.eq { margin-top: 24px; padding: 34px clamp(18px, 3vw, 40px) 18px; }
.eq .formula { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 2.2em; font-size: clamp(17px, 2.1vw, 27px); color: var(--ink); padding-bottom: 30px; }
.eq svg.tex { display: block; overflow: visible; }
.symbols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); grid-auto-flow: column; column-gap: 48px; margin: 0; border-top: 1px solid var(--line-strong); }
.symbols > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; min-height: 60px; border-bottom: 1px solid var(--line); }
.symbols dt { height: 100%; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--line); font-size: 24px; color: var(--ink); }
.symbols dd { margin: 0; padding: 12px 0 12px 20px; color: var(--ink-2); font-size: 15.5px; line-height: 1.45; }
@media (max-width: 860px) {
  .symbols { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
  .symbols > div { grid-template-columns: 92px minmax(0, 1fr); }
}

/* SH viewer: toggle, headers and grid share one width */
.sh .toolbar { max-width: 960px; margin: 0 auto 14px; }
