/* IntelX project page. Academic layout in the manner of the usual research
   project pages: centred title block, plain section titles, justified text,
   figures with captions. One light palette. */

:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --band: #F6F7F9;
  --ink: #1A1D23;
  --ink-2: #3C4350;
  --mute: #6A7180;
  --line: #E1E4E9;
  --line-2: #CBD0D8;
  --link: #2F6BC6;
  --accent: #D55E00;          /* IntelX, as in the paper's figures */
  --accent-soft: #FDF0E6;
  --violet: #6E2BD9;          /* the wordmark's "Intel" */
  /* violet to orange through the magenta an oklch blend passes; the soft
     version, at 55%, draws borders */
  --grad: linear-gradient(90deg, #6E2BD9 0%, #C42984 50%, #D55E00 100%);
  --grad-soft: linear-gradient(90deg, rgba(110, 43, 217, .55), rgba(196, 41, 132, .55), rgba(213, 94, 0, .55));
  --good: #1F8A55;
  --bad: #B83A2E;

  /* exploration maps */
  --map-unknown: #E9ECF1;
  --map-ghost: #D3D8E0;
  --map-free: #FFFFFF;
  --map-wall: #1E232C;
  --map-scan: rgba(213, 94, 0, .16);

  /* methods, the paper's palette */
  --m-random: #8C8C8C;
  --m-nearest: #7A6A3A;
  --m-cost_utility: #7B5AA6;
  --m-geom_ig: #56B4E9;
  --m-frontier: #E69F00;
  --m-hectoraug: #CC79A7;
  --m-upen: #009E73;
  --m-mapex: #0072B2;
  --m-ours: #D55E00;
  /* ablation arms */
  --m-abl_geomig: #56B4E9;
  --m-abl_strongest: #009E73;
  --m-abl_local: #0072B2;
  /* planner overlays in the ablation replays: the paper's figure palette */
  --ov-rank-1: #D8A200;
  --ov-rank-2: #1E86B0;
  --ov-rank-3: #D6197E;
  --ov-rank-4: #3E8E5A;
  --ov-node: #7E3FB8;
  --ov-node-fill: #E7D4F7;
  --ov-frontier: #E06A00;
  --ov-goal: #D62728;
  --ov-window: rgba(106, 113, 128, .55);

  /* architecture flows */
  --flow-red: #E8402A;
  --flow-gold: #F0A00A;

  --f-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
  color-scheme: light;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(60px + env(safe-area-inset-top, 0px)); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, canvas { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 3px; }
sub, sup { line-height: 0; }
p { margin: 0 0 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #FFFFFF; padding: 8px 14px; border-radius: 4px; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.wrap { width: 100%; max-width: 960px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: 1280px; }

/* ---------------------------------------------------------------- topnav */
.topnav {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  transform: translateY(-110%);
  transition: transform .3s ease;
}
.topnav.is-on { transform: none; }
.topnav__inner { max-width: 1280px; margin-inline: auto; padding: 9px var(--gutter); display: flex; align-items: center; gap: 24px; }
.topnav__brand img { height: 20px; width: auto; }
.topnav__links { display: flex; gap: 22px; margin-inline: auto; font-size: 14.5px; }
.topnav__links a { color: var(--ink-2); }
.topnav__links a.is-here { color: var(--ink); font-weight: 500; }
.topnav__cta { font: 500 13.5px/1.2 var(--f-mono); padding: 6px 14px; border-radius: 999px; background: #363636; color: #FFFFFF; }
.topnav__cta:hover { text-decoration: none; background: #222222; }
@media (max-width: 720px) { .topnav__links { display: none; } .topnav__cta { margin-inline-start: auto; } }

/* ------------------------------------------------------------- title block */
.hero {
  padding-block: clamp(40px, 6vw, 72px) 8px; text-align: center;
  background: radial-gradient(60% 560px at 50% 0%, rgba(110, 43, 217, .06), transparent 70%);
}
.hero__wordmark { width: clamp(170px, 20vw, 240px); height: auto; margin: 0 auto 20px; }
.hero__title {
  max-width: 920px; margin: 0 auto 14px;
  font: 500 clamp(26px, 3.4vw, 35px)/1.12 var(--f-display);
  font-variation-settings: "opsz" 72;
  letter-spacing: -.012em;
  text-wrap: balance;
}
.hero__venue { margin: 0 0 26px; font-size: clamp(16px, 1.6vw, 18.5px); color: var(--accent); font-weight: 500; }
.authors { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px clamp(26px, 4vw, 48px); margin: 0 0 14px; padding: 0; }
.author { display: grid; justify-items: center; gap: 10px; }
.author:hover { text-decoration: none; }
.author__name { font-weight: 500; font-size: 17px; color: var(--link); }
.author:hover .author__name { text-decoration: underline; text-underline-offset: 3px; }
.avatar { position: relative; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: linear-gradient(140deg, #ECE3FB, #FCEBDF); box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 4px var(--line), 0 6px 16px rgba(18, 21, 27, .08); transition: box-shadow .2s, transform .2s; }
.author:hover .avatar { box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 4px var(--accent), 0 8px 20px rgba(18, 21, 27, .12); transform: translateY(-2px); }
.avatar::before { content: attr(data-initials); position: absolute; inset: 0; display: grid; place-items: center; font: 600 18px/1 var(--f-mono); color: var(--mute); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__affil { margin: 0 0 24px; color: var(--ink-2); font-size: 16px; }
.hero__affil a { font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 18px; border-radius: 999px;
  background: #363636; color: #FFFFFF;
  font: 500 14.5px/1.2 var(--f-body);
}
.btn:hover { background: #222222; text-decoration: none; }
.btn--soon, .btn--soon:hover { opacity: .6; background: #363636; cursor: default; }
.ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn .emoji { width: 18px; height: 18px; flex: none; }
.ico-arxiv { font: 700 .86em/1 Georgia, "Times New Roman", serif; letter-spacing: -.02em; color: #FFB3B3; }

/* ------------------------------------------------------------------ teaser */
.teaser { padding-block: 36px 8px; }
.stage {
  position: relative; overflow: hidden; width: 100%;
  border: 1.5px solid transparent; border-radius: 8px;
  background: linear-gradient(var(--map-unknown), var(--map-unknown)) padding-box, var(--grad-soft) border-box;
  aspect-ratio: 1381 / 410;
}
.stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hud { position: absolute; z-index: 2; pointer-events: none; font-family: var(--f-mono); color: var(--ink); background: rgba(255, 255, 255, .9); border: 1px solid var(--line); border-radius: 4px; }
.hud--tl { top: 10px; left: 10px; display: grid; gap: 3px; padding: 7px 10px; }
.hud__map { font: 600 12.5px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.hud__meta { font-size: 11.5px; color: var(--mute); }
.hud--tr { top: 10px; right: 10px; display: flex; gap: 18px; padding: 8px 11px 7px; text-align: right; }
.hud__stat { display: grid; }
.hud__val { font: 700 clamp(19px, 2.4vw, 30px)/1 var(--f-mono); color: var(--accent); font-variant-numeric: tabular-nums; }
.hud__val--path { color: var(--ink); }
.hud__val small { font-size: .55em; font-weight: 500; opacity: .8; }
.hud__key { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-top: 5px; }
.hud--bl { bottom: 10px; left: 10px; display: flex; align-items: center; gap: 7px; padding: 5px 9px; font-size: 12px; color: var(--ink-2); }
.hud--bl b { color: var(--m-hectoraug); font-weight: 700; font-variant-numeric: tabular-nums; }
.rival__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--m-hectoraug); }
.hud--br { bottom: 10px; right: 10px; background: none; border: 0; }
.scalebar { display: grid; justify-items: center; gap: 3px; font-size: 11px; color: var(--ink-2); }
.scalebar i { display: block; height: 6px; width: 60px; border: 1.5px solid var(--ink-2); border-top: 0; }
.stage__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(26, 29, 35, .06); }
.stage__progress i { display: block; height: 100%; width: 0; background: var(--grad); }
.hero__done {
  position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: 4px; text-align: center;
  padding: 12px 20px; border-radius: 6px; background: rgba(255, 255, 255, .95); border: 1px solid var(--line-2);
}
.done__big { display: inline-flex; align-items: center; gap: .3em; font: 600 clamp(22px, 3vw, 34px)/1.1 var(--f-display); color: var(--accent); }
.done__big img { width: .8em; height: .8em; }
.done__small { font: 400 13px/1.4 var(--f-body); color: var(--ink-2); max-width: 44ch; }
.teaser__cap { max-width: 820px; margin: 18px auto 0; text-align: center; font-size: clamp(17px, 1.7vw, 19.5px); line-height: 1.55; color: var(--ink); }
.teaser__note { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 8px 0 0; font-size: 14px; color: var(--mute); text-align: center; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; font: 500 13.5px/1.2 var(--f-mono); color: var(--link); }
.linkbtn:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .stage { aspect-ratio: 1381 / 620; }
  .hud--tl .hud__meta { display: none; }
  .hud--bl { font-size: 11px; max-width: calc(100% - 90px); }
  .avatar { width: 66px; height: 66px; }
}

/* -------------------------------------------------------------- sections */
.section { padding-block: clamp(44px, 6vw, 72px); }
.section--band { background: var(--band); }
.h2 { position: relative; margin: 0 0 26px; padding-bottom: 18px; text-align: center; font: 500 clamp(30px, 4vw, 46px)/1.1 var(--f-display); font-variation-settings: "opsz" 72; letter-spacing: -.015em; text-wrap: balance; }
.h2::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 56px; height: 4px; border-radius: 999px; background: var(--grad); transform: translateX(-50%); }
.h3 { margin: 44px 0 14px; text-align: center; font: 600 clamp(21px, 2.2vw, 26px)/1.2 var(--f-display); letter-spacing: -.005em; }
.h3:first-child { margin-top: 0; }
.text { text-align: justify; hyphens: auto; color: var(--ink-2); }
.text p:last-child { margin-bottom: 0; }
.lede { max-width: 70ch; margin: 0 auto 34px; text-align: center; font-size: 18px; color: var(--ink-2); text-wrap: pretty; }
.note { margin: 10px auto 0; font-size: 13.5px; color: var(--mute); max-width: 78ch; text-align: center; }

/* overview: the three questions */
.questions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 8px 0 44px; }
.q { background: var(--surface); padding: 26px 22px 24px; display: grid; align-content: start; justify-items: center; gap: 10px; text-align: center; }
.q__who { margin: 0; font: 600 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.q__ask { margin: 0; font: 400 22px/1.25 var(--f-display); font-style: italic; color: var(--ink); text-wrap: balance; }
.q__how { margin: 0; font-size: 15px; color: var(--ink-2); }
.q__eg { margin: 6px 0 0; font: 400 12.5px/1.4 var(--f-mono); color: var(--mute); }
.q--ours { background: linear-gradient(180deg, var(--accent-soft), var(--surface) 75%); }
.q--ours .q__who { color: var(--accent); }
.tile { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad-soft) border-box; }
.tile img { width: 24px; height: 24px; }
@media (max-width: 860px) { .questions { grid-template-columns: 1fr; } }

/* overview: headline numbers */
.stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.stat { padding: 20px 16px 18px; display: grid; gap: 8px; align-content: start; justify-items: center; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__val { font: 500 clamp(40px, 5vw, 58px)/1 var(--f-display); font-variation-settings: "opsz" 72; letter-spacing: -.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat__val small { font-size: .45em; color: var(--ink-2); letter-spacing: 0; }
.stat__lbl { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); max-width: 24ch; }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* figures */
.figure { margin: 28px 0 0; }
.figure img { width: 100%; height: auto; }
.figure figcaption, .clip figcaption, .ablation > figcaption { margin: 12px auto 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); max-width: 82ch; text-align: center; }
.figure figcaption b, .clip figcaption b, .ablation > figcaption b { color: var(--ink); font-weight: 600; }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }

/* video */
.player { margin: 0 auto; max-width: 900px; background: #000; aspect-ratio: 1280 / 822; }
.player video { width: 100%; height: 100%; }

/* ---------------------------------------------------------------- tour */
.tour { margin: 26px 0 0; }
.tour__stage { position: relative; overflow: hidden; background: #FFFFFF; border: 1px solid var(--line); border-radius: 6px; aspect-ratio: 2.4 / 1; }
.tour__camera { position: absolute; left: 0; top: 0; width: 4030px; height: 1680px; transform-origin: 0 0; transition: transform 1.05s cubic-bezier(.65, .02, .2, 1); will-change: transform; }
.tour__camera img { width: 4030px; height: 1680px; max-width: none; }
.tour__flows { position: absolute; inset: 0; width: 4030px; height: 1680px; overflow: visible; pointer-events: none; }
.flow { fill: none; stroke-linecap: round; stroke-linejoin: round; transition: opacity .5s; }
.flow__route { stroke-width: 11; opacity: .14; }
.flow__route.is-on { opacity: .28; }
.flow__pulse { stroke-width: 15; stroke-dasharray: 1 64; animation: flow-march .55s linear infinite; opacity: .95; }
.flow__pulse.is-dim { opacity: .3; }
.flow--red { stroke: var(--flow-red); }
.flow--gold { stroke: var(--flow-gold); }
.flow--gold.flow__pulse { animation-duration: .8s; }
.tour.is-offscreen .flow__pulse { animation-play-state: paused; }
@keyframes flow-march { to { stroke-dashoffset: -65; } }
.tour__bar { display: grid; gap: 10px; margin-top: 14px; justify-items: center; }
.tour__ctl { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.tour__steps { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.tour__steps button {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-2); background: #FFFFFF; border-radius: 4px;
  padding: 5px 11px; font: 500 13px/1.1 var(--f-body); color: var(--ink-2); cursor: pointer;
}
.tour__steps button[aria-selected="true"] { color: #FFFFFF; background: #363636; border-color: #363636; }
.tour__steps button i { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); }
.tour__cap { min-height: 4.6em; max-width: 76ch; font-size: 15.5px; color: var(--ink-2); text-align: center; }
.tour__cap b { color: var(--ink); font-weight: 600; margin-right: 5px; }
@media (max-width: 760px) { .tour__stage { aspect-ratio: 1.35 / 1; } }

.iconbtn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: #FFFFFF; display: inline-grid; place-items: center; cursor: pointer; flex: none; }
.iconbtn svg { width: 14px; height: 14px; fill: currentColor; }
.iconbtn .i-pause { display: none; }
.iconbtn[aria-pressed="true"] .i-pause { display: block; }
.iconbtn[aria-pressed="true"] .i-play { display: none; }
.iconbtn--solid { background: #363636; color: #FFFFFF; border-color: #363636; }

/* ------------------------------------------------------------- stepper */
.stepper { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: clamp(18px, 3vw, 36px); align-items: start; margin-top: 24px; }
.stepper > * { min-width: 0; }
.stepper__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
.stepper__list li { counter-increment: step; border-bottom: 1px solid var(--line); }
.stepper__list button {
  width: 100%; text-align: left; display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; row-gap: 2px;
  padding: 9px 6px; border: 0; background: none; cursor: pointer; color: var(--ink-2);
}
.stepper__list button::before { content: counter(step) "."; grid-row: span 2; font: 600 12px/24.75px var(--f-mono); color: var(--mute); }
.stepper__list b { font-weight: 600; color: var(--ink); font-size: 15px; }
.stepper__list span { font-size: 13.5px; line-height: 1.45; display: none; }
.stepper__list button[aria-current="step"] b { color: var(--accent); font-weight: 600; }
.stepper__list button[aria-current="step"]::before { color: var(--accent); font-weight: 600; }
.stepper__list button[aria-current="step"] span { display: block; }
.stepper__list button:hover b { text-decoration: underline; text-underline-offset: 3px; }
.stepper__view { margin: 0; position: sticky; top: 76px; }
.stepper__frame { aspect-ratio: 4 / 3; background: #FFFFFF; border: 1px solid var(--line); border-radius: 6px; display: grid; place-items: center; overflow: hidden; padding: 12px; }
.stepper__frame img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; animation: fadein .4s ease; }
.stepper__key { width: min(340px, 70%); height: auto; margin: 10px auto 0; }
.stepper__cap { display: none; margin: 10px 0 0; font-size: 14.5px; color: var(--ink-2); text-align: center; }
@keyframes fadein { from { opacity: 0; } }
@media (max-width: 860px) {
  .stepper { grid-template-columns: 1fr; }
  .stepper__view { position: static; order: -1; }
  .stepper__list { grid-template-columns: repeat(2, 1fr); column-gap: 14px; }
  .stepper__list span, .stepper__list button[aria-current="step"] span { display: none; }
  .stepper__cap { display: block; }
}

/* bars drawn with spans need to be blocks to take a width */
.ab__track, .ab__bar { display: block; }

/* allocation chart */
.alloc { margin-top: 30px; display: grid; gap: 12px; }
.alloc__chart { display: grid; gap: 3px; max-width: 820px; width: 100%; margin-inline: auto; }
.ab { display: grid; grid-template-columns: 140px 1fr 64px; align-items: center; gap: 12px; font-size: 13.5px; position: relative; }
.ab__name { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.ab__track { height: 16px; border-radius: 3px; background: color-mix(in srgb, var(--line) 55%, transparent); overflow: hidden; }
.ab__bar { height: 100%; width: 0; border-radius: 3px; background: var(--grad); transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.ab__val { font: 500 12.5px/1 var(--f-mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ab:hover .ab__name { color: var(--ink); }
.ab__tip { position: absolute; left: 152px; bottom: calc(100% + 4px); z-index: 4; padding: 7px 10px; border-radius: 7px; background: var(--ink); color: #FFFFFF; font: 500 12px/1.35 var(--f-mono); white-space: nowrap; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.ab:hover .ab__tip { opacity: 1; transform: none; }
.ab--total { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.ab--total .ab__name, .ab--total .ab__val { color: var(--ink); font-weight: 600; }
@media (max-width: 560px) { .ab { grid-template-columns: 104px 1fr 54px; gap: 8px; font-size: 12.5px; } .ab__tip { left: 0; } }

/* ------------------------------------------------------------ predictor */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 4vw, 44px); align-items: start; }
.split > * { min-width: 0; }
.split .figure { margin-top: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* tables */
.tablewrap { overflow-x: auto; margin-top: 18px; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 540px; }
.tbl caption { caption-side: top; text-align: center; padding-bottom: 10px; font-size: 14px; color: var(--ink-2); }
.tbl th, .tbl td { padding: 7px 10px; text-align: right; white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl thead th { font: 600 12.5px/1.3 var(--f-mono); color: var(--ink-2); border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--ink); vertical-align: bottom; }
.tbl tbody tr:last-child td { border-bottom: 1.5px solid var(--ink); }
.tbl td { font-family: var(--f-mono); font-size: 13.5px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.tbl td:first-child { font-family: var(--f-body); font-size: 14.5px; color: var(--ink); }
.tbl td .pm { color: var(--mute); font-size: .86em; }
.tbl tr.is-ours td { background: var(--accent-soft); }
.tbl tr.is-ours td:first-child { font-weight: 600; }
.tbl td.best { color: var(--ink); font-weight: 700; }
.tbl tr.group td { font: 600 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); padding-top: 16px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.tbl--small { min-width: 420px; max-width: 640px; margin-inline: auto; }

/* --------------------------------------------------------------- race */
.race { margin-top: 26px; }
.race__maps { display: grid; justify-items: center; gap: 8px; margin-bottom: 16px; }
.race__group { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.race__grp { font: 600 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-right: 6px; }
.race__maps button { border: 1px solid var(--line-2); background: #FFFFFF; border-radius: 4px; padding: 5px 11px; font-size: 13.5px; cursor: pointer; color: var(--ink-2); }
.race__maps button[aria-selected="true"] { background: #363636; border-color: #363636; color: #FFFFFF; }
.race__ctl { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; max-width: 860px; margin: 0 auto 14px; }
.race__scrub input { width: 100%; accent-color: var(--accent); }
.race__dist { font: 600 14px/1 var(--f-mono); min-width: 74px; text-align: right; font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; background: #FFFFFF; }
.seg button { border: 0; background: none; padding: 6px 11px; font: 500 12.5px/1 var(--f-mono); cursor: pointer; color: var(--ink-2); }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: #363636; color: #FFFFFF; }
.race__grid { display: grid; gap: 14px 12px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.pane { margin: 0; min-width: 0; }
.pane__stage { position: relative; overflow: hidden; background: var(--map-unknown); border: 1px solid var(--line); border-radius: 4px; }
.pane--ours .pane__stage { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pane__stage canvas { width: 100%; height: auto; }
.pane__bar { display: flex; align-items: center; gap: 8px; padding: 6px 1px 0; font-size: 13.5px; flex-wrap: wrap; min-height: 26px; }
.pane__name { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink); }
.pane__name::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--ink)); }
.pane__stat { margin-inline-start: auto; font: 500 13px/1 var(--f-mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pane__badge { font: 600 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 6px; border-radius: 3px; }
.pane__badge.is-done { background: #E6F4EC; color: var(--good); }
.pane__badge.is-stop { background: #FBEAE7; color: var(--bad); }
.pane__sub { flex-basis: 100%; font: 400 11.5px/1.35 var(--f-mono); color: var(--mute); }
.race__chart { margin-top: 22px; max-width: 980px; margin-inline: auto; }
.race__chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.race__chart text { font: 500 11px var(--f-mono); fill: var(--mute); }
.race__chart .grid line { stroke: var(--line); }
.race__chart .target { stroke: var(--mute); stroke-dasharray: 4 4; }
.race__chart .cursor { stroke: var(--ink); stroke-width: 1; opacity: .6; }
.race__chart .curve { fill: none; stroke-width: 1.6; stroke-linejoin: round; opacity: .7; transition: opacity .2s, stroke-width .2s; }
.race__chart .curve.is-ours { stroke-width: 2.6; opacity: 1; }
.race__chart .curve.is-hl { stroke-width: 2.8; opacity: 1; }
.race__chart .end { stroke: #FFFFFF; stroke-width: 1.5; }
.race__chart .head { stroke: #FFFFFF; stroke-width: 1.5; }
.race__chart .cursor { opacity: .25; }
.race__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-top: 8px; font-size: 13.5px; color: var(--ink-2); }
.race__legend span { display: inline-flex; align-items: center; gap: 6px; }
.race__legend i { width: 14px; height: 3px; border-radius: 2px; background: var(--c); }
.race__legend .glyph { width: 14px; height: 14px; flex: none; }
.race__legend .glyph--wide { width: 34px; }
.race__status { margin: 10px auto 0; font-size: 13.5px; color: var(--mute); min-height: 1.4em; text-align: center; max-width: 86ch; }
@media (max-width: 640px) { .race__ctl { grid-template-columns: auto 1fr auto; } .race__ctl .seg { grid-column: 1 / -1; justify-self: center; } }

/* results tables */
.tables { margin-top: 10px; }
.tables__head { display: grid; justify-items: center; gap: 10px; }
.tables__head--spaced { margin-top: 40px; }
.seg--tabs button { padding: 7px 12px; font-family: var(--f-body); font-size: 13px; }

/* ---------------------------------------------------- method video, ablations */
.clip { margin: 26px 0 0; }
.clip video { width: 100%; height: auto; background: #F7F7F7; border: 1px solid var(--line); }
/* each ablation is a replay like the baselines race, one after the other */
.ablation { margin: 0; }
.ablation + .ablation { margin-top: clamp(48px, 6vw, 72px); }
.ablation .race { margin-top: 0; }

/* ------------------------------------------------------------- live demo */
.live { margin-top: 26px; }
.text .live__note { margin: 16px 0 0; padding: 10px 14px; border-left: 3px solid var(--violet); border-radius: 0 6px 6px 0;
  background: rgba(110, 43, 217, .05); font-size: 14.5px; line-height: 1.55; text-align: left; hyphens: manual; }
.live__note strong { color: var(--ink); font-weight: 600; }
.live__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin-bottom: 14px; }
.live__panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; }
.live__example { font: 400 14px var(--f-body); padding: 5px 8px; border: 1px solid var(--line-2); border-radius: 4px; background: #FFFFFF; color: var(--ink); max-width: 100%; }
.live__filebtn { position: relative; display: inline-flex; align-items: center; padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 4px; background: #FFFFFF; font-size: 14px; cursor: pointer; }
.live__filebtn:focus-within { outline: 2px solid var(--link); outline-offset: 2px; }
.live__filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.live__mpplabel { font-size: 14px; color: var(--ink-2); }
.live__mpp { width: 6.5em; margin-left: 6px; padding: 4px 6px; border: 1px solid var(--line-2); border-radius: 4px; font: 400 13.5px var(--f-mono); }
.live__stage { position: relative; overflow: hidden; height: 420px; background: var(--map-unknown); border: 1px solid var(--line); border-radius: 6px; }
.live__canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.live__canvas.is-drawing { cursor: crosshair; }
.live__ctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; margin: 14px auto 0; }
.live__run[disabled] { opacity: .6; cursor: progress; }
.live__run .i-pause, .live__run[aria-pressed="true"] .i-play { display: none; }
.live__run[aria-pressed="true"] .i-pause { display: block; }
.live__pacewrap { display: inline-flex; align-items: center; gap: 8px; }
.live__lbl { font: 600 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.live__check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.live__check input { accent-color: var(--accent); }
.live .hud--bl { max-width: calc(100% - 24px); }
@media (max-width: 640px) { .live__pacewrap { flex-wrap: wrap; justify-content: center; } }

/* ------------------------------------------------------------- citation */
.bib { position: relative; margin: 0 auto; max-width: 860px; }
.bib pre { margin: 0; padding: 18px 20px; background: #F5F5F5; border-radius: 4px; overflow-x: auto; font: 400 13.5px/1.6 var(--f-mono); color: var(--ink); text-align: left; }
.bib__copy { position: absolute; top: 10px; right: 10px; border: 1px solid var(--line-2); background: #FFFFFF; border-radius: 4px; padding: 6px 10px; font: 500 12.5px/1 var(--f-mono); cursor: pointer; }
.bib__copy.is-done { color: var(--good); border-color: var(--good); }
.bib__soon { margin: 0 auto; max-width: 860px; text-align: center; color: var(--mute); }

/* --------------------------------------------------------------- footer */
.footer { padding-block: 36px 44px; border-top: 1px solid var(--line); }
.footer__inner { display: grid; gap: 6px; justify-items: center; text-align: center; font-size: 14px; color: var(--mute); }
.footer p { margin: 0; }

/* -------------------------------------------------------------- lightbox */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(255, 255, 255, .98); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px)); cursor: zoom-out; overflow: auto; }
.lightbox img { max-width: min(96vw, 2400px); width: 100%; height: auto; }
.lightbox__close { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: #FFFFFF; color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .flow__pulse { animation: none; stroke-dasharray: none; opacity: .55; }
}
