/* ImagiRep project page */
:root {
  color-scheme: light;
  --bg: #f9f9f7;
  --surface: #fcfcfb;
  --surface-2: #ffffff;
  --band: #f3f3f0;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #898781;
  --line: #e1e0d9;
  --axis: #c3c2b7;
  --ring: rgba(11, 11, 11, 0.10);
  --accent: #6250d6;
  --accent-ink: #4a3aa7;
  --rep-rgb: #6250d6;
  --rep-topdown: #2a78d6;
  --rep-text: #eb6834;
  --rep-video: #1baf7a;
  --rep-depth: #eda100;
  --rep-normals: #e87ba4;
  --rep-panorama: #008300;
  --rep-observed: #a3a19a;
  --seq-0: #f0f5fc; --seq-1: #cde2fb; --seq-2: #9ec5f4; --seq-3: #6da7ec; --seq-4: #3987e5; --seq-5: #256abf; --seq-6: #184f95;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 24px rgba(0,0,0,.06);
  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --bg: #0d0d0d; --surface: #1a1a19; --surface-2: #202020; --band: #141413;
    --ink: #f0efec; --ink-2: #c3c2b7; --muted: #898781; --line: #2c2c2a; --axis: #383835; --ring: rgba(255,255,255,.10);
    --accent: #9085e9; --accent-ink: #b3abf2;
    --rep-rgb: #9085e9; --rep-topdown: #3987e5; --rep-text: #d95926; --rep-video: #199e70; --rep-depth: #c98500;
    --rep-normals: #d55181; --rep-panorama: #008300; --rep-observed: #6f6e69;
    --seq-0: #18202b; --seq-1: #104281; --seq-2: #184f95; --seq-3: #1c5cab; --seq-4: #2a78d6; --seq-5: #5598e7; --seq-6: #9ec5f4;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 28px rgba(0,0,0,.35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0d0d; --surface: #1a1a19; --surface-2: #202020; --band: #141413;
  --ink: #f0efec; --ink-2: #c3c2b7; --muted: #898781; --line: #2c2c2a; --axis: #383835; --ring: rgba(255,255,255,.10);
  --accent: #9085e9; --accent-ink: #b3abf2;
  --rep-rgb: #9085e9; --rep-topdown: #3987e5; --rep-text: #d95926; --rep-video: #199e70; --rep-depth: #c98500;
  --rep-normals: #d55181; --rep-panorama: #008300; --rep-observed: #6f6e69;
  --seq-0: #18202b; --seq-1: #104281; --seq-2: #184f95; --seq-3: #1c5cab; --seq-4: #2a78d6; --seq-5: #5598e7; --seq-6: #9ec5f4;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 28px rgba(0,0,0,.35);
}

* { 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.65 var(--font); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); letter-spacing: -0.02em; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); font-weight: 600; margin-bottom: .6rem; }
p { margin: 0; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--surface-2); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap.wide { max-width: 1280px; }
.wrap.narrow { max-width: 820px; }
section { padding: 72px 0; }
section.band { background: var(--band); }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .6rem; }
.intro { color: var(--ink-2); max-width: 760px; margin-top: .9rem; font-size: 1.05rem; }
.note { color: var(--muted); font-size: .9rem; margin-top: 1rem; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1280px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand-mark { width: 18px; height: 18px; border-radius: 5px; background: conic-gradient(var(--rep-topdown) 0 14%, var(--rep-text) 0 28%, var(--rep-video) 0 42%, var(--rep-depth) 0 57%, var(--rep-normals) 0 71%, var(--rep-panorama) 0 85%, var(--rep-rgb) 0); }
.toc { display: flex; gap: 4px; margin-left: auto; }
.toc a { color: var(--ink-2); text-decoration: none; font-size: .9rem; padding: 6px 10px; border-radius: 8px; }
.toc a:hover, .toc a.active { color: var(--ink); background: var(--ring); }
.theme-toggle { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; cursor: pointer; }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) .theme-toggle .sun { display: none; } :root:where(:not([data-theme="light"])) .theme-toggle .moon { display: block; } }

/* hero */
.hero { padding: 56px 0 40px; text-align: center; }
.venue { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .06em; color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 4px 12px; border-radius: 999px; margin-bottom: 1.1rem; }
.hero h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.4rem); letter-spacing: -0.035em; font-weight: 700; }
.hero h1 span { display: block; font-size: .56em; font-weight: 500; letter-spacing: -0.02em; color: var(--ink-2); margin-top: .35em; }
.authors { margin-top: 1.6rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: 1.08rem; font-weight: 500; }
.authors sup, .affil sup { color: var(--accent-ink); font-weight: 600; }
.affil { margin-top: .4rem; color: var(--ink-2); }
.links { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.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: .92rem; border: 0; cursor: pointer; font-family: inherit; }
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { opacity: .88; }
.btn[aria-disabled="true"] { background: var(--surface); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); cursor: default; }
.btn .soon { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.btn.small { padding: 7px 14px; font-size: .88rem; }
.teaser-wrap { margin-top: 44px; }
.caption { max-width: 900px; margin: 18px auto 0; color: var(--ink-2); font-size: .98rem; }

/* tl;dr + stats */
.tldr { padding: 32px 0 56px; }
.lead { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); line-height: 1.5; max-width: 860px; margin: 0 auto; text-align: center; letter-spacing: -0.01em; }
.lead em { font-style: normal; color: var(--rep-rgb); font-weight: 600; }
.stats { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stats li { background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--ring); padding: 18px 18px 16px; }
.stats b { display: block; font-size: 2rem; letter-spacing: -0.03em; line-height: 1.1; }
.stats span { color: var(--ink-2); font-size: .9rem; }
.abstract { padding-top: 24px; }
.abstract h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.abstract p { color: var(--ink-2); text-align: left; }

.premise { margin-top: 2.2rem; }
.premise p { color: var(--ink-2); font-size: 1.05rem; line-height: 1.7; text-align: left; }
.premise dfn, .intro dfn { font-style: normal; font-weight: 600; color: var(--ink); }
/* figures, cards */
.fig { margin: 32px 0 0; background: var(--surface-2); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.fig img { width: 100%; height: auto; border-radius: 6px; }
:root[data-theme="dark"] .fig img { filter: brightness(.94); }
.fig figcaption { color: var(--muted); font-size: .88rem; margin-top: 10px; }
.fig.small { margin: 0; }
.cards.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--ring); padding: 20px 22px; }
.card h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: .5rem; }
.card p { color: var(--ink-2); font-size: .97rem; }
.pill { display: inline-block; font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent-ink); }
.pill.soft { background: var(--ring); color: var(--ink-2); }
.reps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.rep { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; padding: 4px 12px 4px 9px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--ring); color: var(--ink-2); }
.rep::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--muted)); }
[data-rep="rgb"] { --c: var(--rep-rgb); } [data-rep="topdown"] { --c: var(--rep-topdown); } [data-rep="text"] { --c: var(--rep-text); }
[data-rep="video"] { --c: var(--rep-video); } [data-rep="depth"] { --c: var(--rep-depth); } [data-rep="normals"] { --c: var(--rep-normals); }
[data-rep="panorama"] { --c: var(--rep-panorama); } [data-rep="observed"] { --c: var(--rep-observed); }

/* ---------- teaser ---------- */
.teaser { position: relative; width: 100%; aspect-ratio: 720 / 405; container-type: inline-size; background: #fff; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; --tz-hand: "Comic Relief", "Comic Sans MS", cursive; --tz-sans: "Roboto", "Inter", sans-serif; color: #222; }
.teaser * { --u: calc(100cqw / 720); }
.tz { position: absolute; display: flex; flex-direction: column; margin: 0; font-family: var(--tz-sans); transform-origin: center; }
img.tz { object-fit: contain; }
.tz-txt { padding: calc(var(--u) * 3.6) calc(var(--u) * 5); }
.tz-txt p { margin: 0; line-height: 1.12; white-space: pre-wrap; }
.tz-txt p.tz-gap { height: calc(var(--u) * 6); }
.tz svg { width: 100%; height: 100%; display: block; }
.tz-scene { z-index: 0; mix-blend-mode: multiply; pointer-events: none; }
.tz-scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.tz-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 3; }
.tz-box, .tz-arrow { fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.tz-arrow { stroke-width: 1.5; }
.tz-54 { z-index: 0; }
/* looping clips in place of stacked frames */
.tz-clip { overflow: hidden; border-radius: calc(var(--u) * 2.5); box-shadow: 0 calc(var(--u) * .8) calc(var(--u) * 2.4) rgba(0,0,0,.18); background: #ddd; }
.tz-clip img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- explorer ---------- */
.explorer { margin-top: 28px; display: grid; grid-template-columns: 252px 1fr; gap: 20px; align-items: start; }
.ex-picker { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; padding-right: 4px; scrollbar-width: thin; gap: 2px; }
.ex-group { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin: 10px 0 4px 8px; }
.ex-pick { text-align: left; border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: .86rem; padding: 5px 10px; border-radius: 8px; white-space: nowrap; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; }
.ex-pick small { color: var(--muted); font-size: .76rem; }
.ex-pick:hover { background: var(--ring); color: var(--ink); }
.ex-pick[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ring), var(--shadow); font-weight: 600; }
.ex-main { display: grid; gap: 16px; min-width: 0; }
.ex-q, .ex-observed, .ex-imagined { background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--ring); padding: 20px 22px; min-width: 0; }
.ex-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ex-uid { color: var(--muted); font-size: .78rem; margin-left: auto; font-variant-numeric: tabular-nums; }
.ex-question { font-size: 1.08rem; font-weight: 500; margin: 12px 0 14px; }
.ex-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ex-opt { text-align: left; font: inherit; font-size: .95rem; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; cursor: pointer; display: flex; gap: 10px; align-items: baseline; }
.ex-opt b { color: var(--muted); }
.ex-opt:hover { border-color: var(--axis); }
.ex-opt.picked { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.ex-opt.gold { border-color: #0ca30c; box-shadow: 0 0 0 1px #0ca30c; }
.ex-opt.gold b::after { content: " \2713"; color: #0ca30c; }
.ex-opt.wrong { opacity: .6; }
.ex-actions { display: flex; align-items: center; gap: 14px; margin-top: 14px; color: var(--ink-2); font-size: .92rem; }
.ex-strip { display: flex; gap: 10px; overflow-x: auto; }
.ex-strip figure { margin: 0; flex: 0 1 calc(50% - 5px); min-width: 200px; }
.ex-strip img { width: 100%; border-radius: 8px; aspect-ratio: 4 / 3; object-fit: cover; background: var(--band); }
.ex-strip figcaption, .ex-panel figcaption { font-size: .78rem; color: var(--muted); margin-top: 5px; }
.ex-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ex-tab { font: inherit; font-size: .86rem; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); cursor: pointer; }
.ex-tab::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.ex-tab[aria-selected="true"] { color: var(--ink); border-color: var(--c); box-shadow: 0 0 0 1px var(--c); font-weight: 600; }
.ex-panel { min-height: 220px; display: flex; gap: 12px; flex-wrap: wrap; }
.ex-panel figure { margin: 0; flex: 1 1 260px; }
.ex-panel img, .ex-panel video { width: 100%; max-height: 440px; object-fit: contain; border-radius: 8px; background: var(--band); }
.ex-panel .pano img { aspect-ratio: 2 / 1; object-fit: cover; }
.ex-panel pre { white-space: pre-wrap; font: .9rem/1.6 var(--font); background: var(--band); border-radius: 8px; padding: 14px 16px; margin: 0; color: var(--ink); width: 100%; }
.ex-caption { margin-top: 12px; color: var(--ink-2); font-size: .88rem; }
.ex-caption summary { cursor: pointer; color: var(--muted); }
.ex-caption p { margin-top: 6px; white-space: pre-wrap; }

/* ---------- findings ---------- */
.finding { margin-top: 40px; }
.finding-head { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; max-width: 900px; }
.finding-head p { color: var(--ink-2); font-size: 1.02rem; }
.finding-head strong { color: var(--ink); }
.fnum { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; background: var(--ink); color: var(--bg); }
.viz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; align-items: start; }
.viz { background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--ring); padding: 18px 18px 14px; min-width: 0; }
.finding > .viz { margin-top: 20px; }
.viz-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.viz-title { font-weight: 600; font-size: .98rem; }
.viz-sub { color: var(--muted); font-size: .84rem; }
.viz-controls { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--band); border-radius: 9px; padding: 3px; }
.seg button { font: inherit; font-size: .8rem; border: 0; background: transparent; color: var(--ink-2); padding: 4px 10px; border-radius: 7px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); font-weight: 600; }
.viz svg { width: 100%; height: auto; display: block; overflow: visible; }
.viz .plot { overflow-x: auto; }
.viz text { font-family: var(--font); fill: var(--ink-2); font-size: 12px; }
.viz .t-muted { fill: var(--muted); }
.viz .t-strong { fill: var(--ink); font-weight: 600; }
.viz .grid line { stroke: var(--line); stroke-width: 1; }
.viz .axis line, .viz .axis path { stroke: var(--axis); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8rem; color: var(--ink-2); margin: 6px 0 4px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); display: inline-block; }
.legend i.ring { background: transparent; box-shadow: inset 0 0 0 2px var(--c); border-radius: 50%; }
.legend i.line { height: 2px; border-radius: 1px; }
.table-toggle { font: inherit; font-size: .78rem; color: var(--muted); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; margin-top: 6px; }
.dtable { width: 100%; border-collapse: collapse; font-size: .82rem; margin-top: 8px; font-variant-numeric: tabular-nums; }
.dtable th, .dtable td { padding: 5px 6px; text-align: right; border-bottom: 1px solid var(--line); }
.dtable th:first-child, .dtable td:first-child { text-align: left; }
.dtable th { color: var(--muted); font-weight: 600; }
.dtable td.best { font-weight: 700; color: var(--ink); }
.compare { margin-top: 20px; }
.heat-cell { cursor: default; }
.heat-cell rect { stroke: var(--surface); stroke-width: 2; }
.heat-cell.best rect.ring { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.heat-cell text { font-size: 12px; font-variant-numeric: tabular-nums; }

/* tooltip */
.tooltip { position: fixed; z-index: 80; pointer-events: none; background: var(--surface-2); color: var(--ink); border-radius: 10px; box-shadow: var(--shadow), 0 0 0 1px var(--ring); padding: 8px 11px; font-size: .82rem; line-height: 1.45; max-width: 260px; }
.tooltip b { font-weight: 600; }

/* GEARS flow */
.flow { margin-top: 28px; background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--ring); padding: 18px; }
.flow svg { width: 100%; max-width: 880px; display: block; margin: 0 auto; }
.flow .fn rect, .flow .fn path { stroke-width: 1.2; }
.flow .fn text { font: 500 15px var(--font); text-anchor: middle; fill: var(--ink); }
.flow .in rect { fill: var(--band); stroke: var(--line); }
.flow .vlm rect { fill: color-mix(in srgb, var(--rep-topdown) 12%, var(--surface-2)); stroke: color-mix(in srgb, var(--rep-topdown) 40%, transparent); }
.flow .gate path { fill: color-mix(in srgb, var(--rep-depth) 22%, var(--surface-2)); stroke: color-mix(in srgb, var(--rep-depth) 55%, transparent); }
.flow .route rect { fill: color-mix(in srgb, var(--rep-rgb) 14%, var(--surface-2)); stroke: color-mix(in srgb, var(--rep-rgb) 45%, transparent); }
.flow .out rect { fill: color-mix(in srgb, var(--rep-video) 16%, var(--surface-2)); stroke: color-mix(in srgb, var(--rep-video) 50%, transparent); }
.flow .fe path { fill: none; stroke: var(--axis); stroke-width: 1.6; marker-end: url(#fa); }
.flow .fe path.faint { display: none; }
.flow marker path { fill: var(--axis); }
.flow .flabel { font: 600 14px var(--font); }
.flow .flabel.yes { fill: #0a7d0a; } .flow .flabel.no { fill: #b33a3a; }
:root[data-theme="dark"] .flow .flabel.yes { fill: #0ca30c; } :root[data-theme="dark"] .flow .flabel.no { fill: #e66767; }
.flow.play .fn, .flow.play .fe path { opacity: .22; transition: opacity .35s ease; }
.flow.play .lit { opacity: 1 !important; }
.flow .fe path.lit { stroke: var(--ink-2); }

/* bib + footer */
.bib { position: relative; background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--ring); margin-top: 18px; }
.bib pre { margin: 0; padding: 18px 20px; overflow-x: auto; font: 13px/1.6 "SFMono-Regular", Menlo, "Cascadia Mono", Consolas, "Liberation Mono", monospace; color: var(--ink); }
.copy { position: absolute; top: 10px; right: 10px; font: 600 .78rem var(--font); background: var(--band); color: var(--ink-2); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; cursor: pointer; }
.footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--ink-2); font-size: .88rem; }
.footer p + p { margin-top: 6px; }

/* responsive */
@media (max-width: 900px) {
  .toc { display: none; }
  .theme-toggle { margin-left: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards.two, .viz-grid { grid-template-columns: 1fr; }
  .explorer { grid-template-columns: 1fr; }
  .ex-picker { position: static; flex-direction: row; overflow-x: auto; max-height: none; padding-bottom: 6px; }
  .ex-group { flex: 0 0 auto; align-self: center; margin: 0 2px 0 8px; }
  .ex-pick { flex: 0 0 auto; }
  section { padding: 56px 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .flow { overflow-x: auto; padding: 12px; }
  .flow svg { min-width: 640px; }
  .ex-options { grid-template-columns: 1fr; }
  .teaser { border-radius: 10px; }
  .fig { padding: 10px; }
}
@media print { .topbar { display: none; } }
