/* DtR project page. Hand-written, no framework. Colours follow the paper's figures. */

/* the two small faces add the few symbols the main subsets lack (sigma, epsilon, approx, arrow, the hat of x-hat) */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-extra.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0302, U+03B5, U+03C3, U+2192, U+2248;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-extra.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0078, U+0302, U+03B5, U+03C3;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-italic.woff2") format("woff2");   /* Latin subset, for quoted prompts */
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --band: #f5f5f7;
  --card: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #5f5f66;
  --ink-3: #6b6b73;
  --line: #d9d9de;
  --line-2: #e8e8ec;
  --dtr: #0072b2;
  --dtr-strong: #005a8c;
  --dtr-soft: rgba(0, 114, 178, 0.10);
  --lowres: #56b4e9;
  --lowres-soft: rgba(86, 180, 233, 0.16);
  --ref: #1d1d1f;
  --default: #8c8c8c;
  --cal: #3a3a3a;
  --se: #4d4d4d;
  --speed: #e69f00;
  --mrflow: #cc79a7;
  --czp: #009e73;
  --tag-problem: #e8590c;
  --bottleneck: #882255;
  --fresco: #999933;
  --ralu: #d55e00;
  --dpcache: #7a5a1e;
  --taylor: #b8860b;
  --explain: #555555;
  --region: #efefef;
  --stage: #0b0d10;
  --stage-2: #12151a;
  --stage-ink: #f5f5f7;
  --stage-ink-2: #a8a8ae;
  --stage-line: #2a2e35;
  --stage-dtr: #3aa6ea;
  --stage-lowres: #8fd0f5;
  --radius: 10px;
  --radius-sm: 6px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1200px;
  --textw: 720px;
  --gutter: clamp(16px, 4vw, 40px);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --on-dtr: #ffffff;
  --on-explain: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0d10;
    --band: #12151a;
    --card: #15181e;
    --ink: #f2f2f4;
    --ink-2: #b2b2b8;
    --ink-3: #8b8b93;
    --line: #2e323a;
    --line-2: #23272e;
    --dtr: #3aa6ea;
    --dtr-strong: #6cc0f2;
    --dtr-soft: rgba(58, 166, 234, 0.14);
    --lowres: #8fd0f5;
    --lowres-soft: rgba(143, 208, 245, 0.16);
    --ref: #f2f2f4;
    --default: #9b9ba2;
    --cal: #c9c9cf;
    --se: #b5b5bc;
    --explain: #a8a8ae;
    --region: #1c2027;
    --tag-problem: #ff8c42;
    --bottleneck: #c4507e;
    --fresco: #c9c95e;
    --dpcache: #c9a25c;
    --taylor: #e3b54d;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    --on-dtr: #04121c;
    --on-explain: #0b0d10;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0d10;
  --band: #12151a;
  --card: #15181e;
  --ink: #f2f2f4;
  --ink-2: #b2b2b8;
  --ink-3: #8b8b93;
  --line: #2e323a;
  --line-2: #23272e;
  --dtr: #3aa6ea;
  --dtr-strong: #6cc0f2;
  --dtr-soft: rgba(58, 166, 234, 0.14);
  --lowres: #8fd0f5;
  --lowres-soft: rgba(143, 208, 245, 0.16);
  --ref: #f2f2f4;
  --default: #9b9ba2;
  --cal: #c9c9cf;
  --se: #b5b5bc;
  --explain: #a8a8ae;
  --region: #1c2027;
  --tag-problem: #ff8c42;
  --bottleneck: #c4507e;
  --fresco: #c9c95e;
  --dpcache: #c9a25c;
  --taylor: #e3b54d;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  --on-dtr: #04121c;
  --on-explain: #0b0d10;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--dtr); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* model and method names link to their papers (build/make_links.py): the text keeps its colour, a thin underline marks the link */
a.ref { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: rgba(128, 128, 128, 0.6); }
@supports (text-decoration-color: color-mix(in srgb, red 50%, transparent)) { a.ref { text-decoration-color: color-mix(in srgb, currentColor 42%, transparent); } }
a.ref:hover, a.ref:focus-visible { text-decoration-color: currentColor; text-underline-offset: 0.2em; }
svg a.ref text { text-decoration: underline; }
svg a.ref:hover text, svg a.ref:focus-visible text { opacity: 0.72; }
button { font: inherit; color: inherit; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--dtr); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.nw { white-space: nowrap; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); }
.wrap-text { max-width: var(--textw); }
.section { padding: clamp(64px, 10vh, 112px) 0; position: relative; }
.section.band { background: var(--band); }
.section-head { margin: 0 0 36px; }
.kicker { font-size: 13px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dtr); margin: 0 0 10px; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 750; margin: 0 0 14px; }
.lede { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--ink); margin: 0; }
.lede strong { color: var(--ink); font-weight: 650; }
.dtr-word { color: var(--dtr); font-weight: 700; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 56px;
  display: flex; align-items: center;
  background: rgba(11, 13, 16, 0.55);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--stage-ink);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.light-zone { background: color-mix(in srgb, var(--bg) 78%, transparent); color: var(--ink); border-bottom-color: var(--line-2); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { font-weight: 800; letter-spacing: -0.02em; font-size: 18px; color: inherit; display: inline-flex; align-items: baseline; gap: 8px; }
.wordmark:hover { text-decoration: none; }
.wordmark .wm-d { color: var(--stage-lowres); }
.nav.light-zone .wordmark .wm-d { color: var(--lowres); }
.wordmark .wm-r { color: var(--stage-dtr); }
.nav.light-zone .wordmark .wm-r { color: var(--dtr); }
.wordmark small { font-weight: 500; font-size: 13px; opacity: 0.7; letter-spacing: 0; }
.nav-links { display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); font-size: 14px; }
.nav-links a { color: inherit; opacity: 0.78; }
.nav-links a:hover, .nav-links a.active { opacity: 1; text-decoration: none; }
.nav-links a.active { color: var(--stage-dtr); }
.nav.light-zone .nav-links a.active { color: var(--dtr); }
@media (max-width: 720px) { .nav-links .hide-sm { display: none; } .wordmark small { display: none; } }

/* ---------- hero (dark stage in both themes) ---------- */
.hero {
  background:
    radial-gradient(1200px 600px at 50% 72%, rgba(58, 166, 234, 0.13), transparent 60%),
    radial-gradient(900px 500px at 50% 0%, rgba(143, 208, 245, 0.06), transparent 70%),
    var(--stage);
  color: var(--stage-ink);
  padding: 104px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 75%);
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-head { text-align: center; max-width: 980px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 650; color: var(--stage-ink-2);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--stage-dtr); box-shadow: 0 0 12px var(--stage-dtr); }
.eyebrow b { color: var(--stage-ink); font-weight: 700; }
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5.4rem);
  line-height: 1.02; letter-spacing: -0.045em; font-weight: 800; margin: 0;
  background: linear-gradient(180deg, #ffffff 30%, #c9d6e2 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .subtitle { font-size: clamp(1.06rem, 2.1vw, 1.5rem); font-weight: 500; color: var(--stage-ink-2); margin: 14px auto 0; max-width: 34em; line-height: 1.35; letter-spacing: -0.01em; }
.authors { margin: 26px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; font-size: clamp(0.98rem, 1.5vw, 1.1rem); font-weight: 560; }
.authors sup { font-size: 0.68em; color: var(--stage-ink-2); margin-left: 1px; }
.affils { margin: 8px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 18px; font-size: 14px; color: var(--stage-ink-2); }
.affils sup { font-size: 0.75em; margin-right: 2px; }
.corresp { margin: 6px 0 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 22px; font-size: 13px; color: var(--stage-ink-2); }
.corresp .ct { white-space: nowrap; }   /* each contact stays on one line; phones stack the two */
.corresp a { color: var(--stage-ink); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.28); }
.corresp a:hover, .corresp a:focus-visible { border-bottom-color: currentColor; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px 0 0; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px;
  font-size: 15px; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.16); color: var(--stage-ink);
  background: rgba(255, 255, 255, 0.06); transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
  position: relative; cursor: pointer;
}
.pill svg { width: 18px; height: 18px; }
.pill:hover { background: rgba(255, 255, 255, 0.12); text-decoration: none; transform: translateY(-1px); }
.pill.primary { background: var(--stage-dtr); border-color: var(--stage-dtr); color: #04121c; }
.pill.primary:hover { background: #5bb7ef; }
.pill[aria-disabled="true"] { cursor: default; opacity: 0.62; }
.pill[aria-disabled="true"]:hover { transform: none; background: rgba(255, 255, 255, 0.06); }

/* race */
.race { margin: 44px auto 0; max-width: 1080px; }
.race-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 16px); }
.race-tile { margin: 0; position: relative; }
.race-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; min-height: 26px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 650; white-space: nowrap; }
.chip-ref { border: 1px solid rgba(255,255,255,0.55); color: #fff; }
.chip-def { border: 1px solid rgba(255,255,255,0.28); color: var(--stage-ink-2); }
.chip-dtr { background: var(--stage-dtr); color: #04121c; }
.race-head .cost { font-size: 13px; color: var(--stage-ink-2); white-space: nowrap; }
.race-img { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: #050607; outline: 1px solid rgba(255,255,255,0.06); }
.race-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.race-img img.hold-ref { opacity: 0; transition: opacity 0.12s linear; pointer-events: none; }
.race-img, .tile-img { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.race-img img, .tile-img img, .modal-canvas img { -webkit-user-drag: none; -webkit-user-select: none; user-select: none; }
.race-tile.holding .race-img img.hold-ref { opacity: 1; }
.race-tile[data-arm="dtr"] .race-img { outline: 1px solid rgba(58, 166, 234, 0.35); }
.race-tile[data-arm="dtr"].done .race-img { box-shadow: 0 0 0 2px var(--stage-dtr), 0 0 42px rgba(58, 166, 234, 0.45); }
.race-tile[data-arm] .race-img:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.race.switching .race-img img.frame { opacity: 0.3; }
.race-tile.holding .race-img::after { content: "Reference"; position: absolute; left: 10px; bottom: 10px; z-index: 3; font-size: 11.5px; font-weight: 650;
  padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.6); color: #fff; pointer-events: none; }
.race-stage {
  position: absolute; left: 10px; top: 10px; z-index: 2; height: 24px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 650; background: rgba(5, 6, 7, 0.62); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.25s var(--ease);
}
.race-stage.show { opacity: 1; }
.race-stage.decide { color: var(--stage-lowres); }
.race-stage.render { color: var(--stage-dtr); }
.race-stage .sw { width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.race-sigma { position: absolute; right: 10px; top: 10px; z-index: 2; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.86); background: rgba(5,6,7,0.5); padding: 2px 8px; border-radius: 999px; opacity: 0; transition: opacity 0.25s; }
.race-sigma.show { opacity: 1; }
.race-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 14px; }
.race-timer { font-size: clamp(1.1rem, 2.2vw, 1.6rem); font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.race-timer small { font-size: 0.6em; font-weight: 600; color: var(--stage-ink-2); margin-left: 2px; }
.race-tile[data-arm="dtr"] .race-timer { color: var(--stage-dtr); }
.race-lpips { font-size: 13px; color: var(--stage-ink-2); opacity: 0; transition: opacity 0.4s var(--ease); white-space: nowrap; }
.race-lpips b { color: #fff; font-weight: 700; }
.race-tile[data-arm="dtr"] .race-lpips b { color: var(--stage-dtr); }
.race-tile.done .race-lpips { opacity: 1; }
.race-bar { height: 3px; border-radius: 3px; background: rgba(255,255,255,0.08); margin-top: 8px; overflow: hidden; }
.race-bar i { display: block; height: 100%; width: 0%; background: rgba(255,255,255,0.55); border-radius: 3px; }
/* DtR's bar (user 11-24): Decide colour up to --split (where the Decide stage ends; main.js sets it from data.js), Render after it.
   The colours sit on the whole track: while the bar grows, main.js makes the background as wide as the track (100% / progress), so
   the bar is all Decide until the run reaches the end of the Decide stage and only then turns to Render */
.race-tile[data-arm="dtr"] .race-bar i { background: linear-gradient(90deg, var(--stage-lowres) 0 var(--split, 24.13%), var(--stage-dtr) var(--split, 24.13%) 100%) 0 0 / 100% 100% no-repeat; }
.race-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-top: 22px; font-size: 14px; color: var(--stage-ink-2); }
.ghost-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.04); color: var(--stage-ink); font-size: 13.5px; font-weight: 600;
}
.ghost-btn:hover { background: rgba(255,255,255,0.10); }
.ghost-btn svg { width: 15px; height: 15px; }
#race-play { min-width: 124px; justify-content: center; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.03); }
.seg button { border: 0; background: transparent; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--stage-ink-2); cursor: pointer; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: rgba(255,255,255,0.14); color: #fff; }
.race-tagline { text-align: center; margin: 30px auto 0; font-size: clamp(1.25rem, 2.7vw, 2rem); font-weight: 700; letter-spacing: -0.025em; color: #fff; line-height: 1.25; }
.race-tagline .strike { position: relative; color: var(--stage-ink-2); display: inline-block; }
.race-tagline .strike::after { content: ""; position: absolute; left: -2px; right: -2px; top: 54%; height: 3px; border-radius: 2px; background: var(--stage-dtr); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.race-tagline .same { color: var(--stage-dtr); display: inline-block; opacity: 0; transform: translateY(6px); transition: opacity 0.5s var(--ease) 0.35s, transform 0.5s var(--ease) 0.35s; }
.race-tagline.revealed .strike::after { transform: scaleX(1); }
.race-tagline.revealed .same { opacity: 1; transform: none; }
.race-sub { color: var(--stage-ink-2); font-size: 15px; margin: 10px 0 0; }
.race-sub b { color: #fff; }
.hold-hint { display: inline-flex; align-items: center; gap: 6px; }
.hold-hint kbd { font: inherit; font-size: 12px; padding: 1px 6px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.25); }
.race-tile .hold-cue { position: absolute; right: 10px; bottom: 10px; z-index: 2; font-size: 11.5px; font-weight: 600; color: #fff; background: rgba(5,6,7,0.55); padding: 3px 8px; border-radius: 999px; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.race-tile.done:not([data-arm="ref"]) .hold-cue { opacity: 0.9; }
.race-tile.done.holding .hold-cue { opacity: 0; }
.race-tile.done:not([data-arm="ref"]) .race-img { cursor: pointer; touch-action: pan-y; }

@media (max-width: 760px) {
  .hero { padding-top: 88px; }
  @media (orientation: portrait) and (max-width: 540px) {
    .race-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "ref ref" "def dtr"; }
    .race-tile[data-arm="ref"] { grid-area: ref; }
    .race-tile[data-arm="def"] { grid-area: def; }
    .race-tile[data-arm="dtr"] { grid-area: dtr; }
  }
  .race-head .cost { display: none; }
  .race-timer { font-size: 1.1rem; }
  .race-tile[data-arm="dtr"] .race-sigma { top: auto; bottom: 10px; }
  .race-tile[data-arm="dtr"].done .race-sigma, .race-tile[data-arm="dtr"]:not(.done) .hold-cue { transition: none; }
}

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; padding: 22px 20px 20px; }
.stat .big { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--dtr); }
.stat .big small { font-size: 0.5em; font-weight: 700; letter-spacing: -0.01em; }
.stat .label { margin-top: 10px; font-size: 14.5px; color: var(--ink); line-height: 1.45; }
.stat .label b { color: var(--ink); font-weight: 650; }
.stats-note { text-align: center; color: var(--ink-3); font-size: 13px; margin: 18px 0 0; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; gap: 10px; }
  .stat { display: grid; grid-template-columns: 6.4rem minmax(0, 1fr); align-items: center; gap: 14px; padding: 16px 18px; }
  .stat .big { font-size: 1.9rem; }
  .stat .label { margin-top: 0; font-size: 14px; }
}

/* ---------- generic comparison tiles ---------- */
.tiles { display: grid; gap: 10px; }
.tile { margin: 0; min-width: 0; }
.tile .tile-head { display: flex; flex-direction: column; gap: 1px; margin-bottom: 7px; min-height: 40px; }
.tile .tile-name { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.tile .tile-cost { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tile .tile-img { position: relative; aspect-ratio: 1/1; border-radius: var(--radius-sm); overflow: hidden; background: var(--band); }
.tile .tile-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .tile-score { margin-top: 7px; font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: center; }
.tile .tile-score b { color: var(--ink); }
.tile.is-dtr .tile-name { color: var(--dtr); }
.tile.is-dtr .tile-img { box-shadow: 0 0 0 2px var(--dtr); }
.tile.is-dtr .tile-score b { color: var(--dtr); }
.tile.is-ref .tile-img { box-shadow: 0 0 0 1px var(--line); }
.score-note { font-size: 13px; color: var(--ink-3); margin: 14px 0 0; }

/* teaser strip (problem) */
.strip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 900px) { .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.strip-prompt, .prompt-line { color: var(--ink-3); font-size: 13.5px; margin: 14px 0 0; }
.strip-prompt .q, .prompt-line .q, .gal-prompt .q { color: var(--ink); }
.q { font-family: "Source Serif 4", Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; font-size: 1.1em; letter-spacing: 0; }
.prompt-meta { display: block; margin-top: 2px; }
.toggle-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 22px; }

/* light-theme segmented control */
.seg-l { display: inline-flex; flex-wrap: wrap; padding: 3px; border-radius: 12px; background: var(--band); border: 1px solid var(--line-2); gap: 2px; }
.section.band .seg-l { background: var(--bg); }
.seg-l button { border: 0; background: transparent; padding: 7px 13px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.seg-l button:hover { color: var(--ink); }
.seg-l button[aria-selected="true"], .seg-l button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 0 0 1px var(--line-2); }
.section.band .seg-l button[aria-pressed="true"] { background: var(--band); box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.seg-l button .sub { font-weight: 500; color: var(--ink-3); margin-left: 5px; font-variant-numeric: tabular-nums; }
.seg-l.dtrsel button[aria-pressed="true"] { color: var(--dtr); }

/* ---------- method ---------- */
.insight { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 34px; }
.beat { background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; padding: 20px; position: relative; }
.beat .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 750; font-size: 14px; color: var(--on-dtr); background: var(--dtr); }
.beat.decide .n { background: var(--lowres); color: #062235; }
.beat.rebuild .n { background: var(--explain); color: var(--on-explain); }
.beat h3 { margin: 12px 0 6px; font-size: 1.15rem; letter-spacing: -0.015em; }
.beat.decide h3 { color: var(--dtr-strong); }
.beat p { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.55; }
.beat p b { color: var(--ink); }
@media (max-width: 860px) { .insight { grid-template-columns: 1fr; } }

.scrub { background: var(--card); border: 1px solid var(--line-2); border-radius: 18px; padding: clamp(16px, 2.4vw, 28px); box-shadow: var(--shadow); }
.scrub-lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lane { min-width: 0; }
.lane-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.lane-name { font-size: 14px; font-weight: 700; white-space: nowrap; }
.lane.dtr .lane-name { color: var(--dtr); }
.lane-state { font-size: 12px; font-weight: 650; color: var(--ink-3); white-space: nowrap; }
.lane-state.decide { color: var(--dtr-strong); }
.lane-img { position: relative; aspect-ratio: 1/1; border-radius: var(--radius-sm); overflow: hidden; background: var(--band); }
.lane-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lane.dtr .lane-img { box-shadow: 0 0 0 2px var(--dtr); }
.lane.dtr .lane-img.lowres { box-shadow: 0 0 0 2px var(--lowres); }
.lane-img .lr-badge { position: absolute; left: 8px; top: 8px; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(6, 34, 53, 0.72); color: #bfe6fb; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.lane-img.lowres .lr-badge { opacity: 1; }
.lane-foot { margin-top: 6px; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; display: flex; justify-content: space-between; }
.axis { margin-top: 22px; position: relative; padding: 0 2px; }
.axis-track { position: relative; height: 92px; }
.axis svg { width: calc(100% - 22px); height: 92px; margin: 0 11px; overflow: visible; }
.axis-labels { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; font-variant-numeric: tabular-nums; }
.scrub-range { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; margin: 6px 0 0; cursor: pointer; }
.scrub-range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--line-2); }
.scrub-range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line-2); }
.scrub-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--dtr); border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--dtr), 0 2px 8px rgba(0,0,0,0.25); margin-top: -8px; }
.scrub-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--dtr); border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--dtr); }
.scrub-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--dtr), 0 0 0 4px var(--ink); }
.scrub-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 1px var(--dtr), 0 0 0 4px var(--ink); }
.scrub-readout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.scrub-readout .sig { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.scrub-readout .zone { font-weight: 650; }
.scrub-readout .zone.decided { color: var(--dtr); }
.scrub-btns { display: flex; gap: 8px; }
.btn-l { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.btn-l:hover { border-color: var(--ink-3); }
.btn-l svg { width: 14px; height: 14px; }
@media (max-width: 760px) {
  .scrub-lanes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .lane-head { flex-direction: column; gap: 0; }
  .lane-state { font-size: 11px; }
  .lane-foot { display: none; }
}

/* ---------- gallery ---------- */
.gal-controls { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 24px; }
.gal-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; }
.gal-row .lbl { font-size: 12.5px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.model-tabs { overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.model-tabs::-webkit-scrollbar { display: none; }
.gal-stage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 16px); }
.gal-stage .tile-img { cursor: zoom-in; }
.gal-stage .tile-img.hold { cursor: pointer; }
.gal-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-top: 14px; }
.gal-prompt { color: var(--ink-3); font-size: 13.5px; flex-basis: 100%; }

.gal-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs { display: flex; gap: 8px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.thumb { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; border: 0; padding: 0; cursor: pointer; opacity: 0.55; outline: 2px solid transparent; outline-offset: 2px; transition: opacity 0.2s, outline-color 0.2s; background: var(--band); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 0.9; }
.thumb[aria-pressed="true"] { opacity: 1; outline-color: var(--dtr); }
.thumb:focus-visible { outline-color: var(--ink); opacity: 1; }
.tile-img img.holdref { opacity: 0; transition: opacity 0.1s linear; pointer-events: none; }
.tile-img.showref img.holdref { opacity: 1; }
.tile-img .corner { position: absolute; left: 8px; bottom: 8px; font-size: 11.5px; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,0.55); color: #fff; opacity: 0; transition: opacity 0.15s; pointer-events: none; }
.tile-img.showref .corner { opacity: 1; }
.gal-note { font-size: 13px; color: var(--ink-3); margin: 12px 0 0; }
@media (max-width: 640px) {
  .gal-stage { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .tile .tile-head { min-height: 34px; }
  .tile .tile-name { font-size: 12.5px; }
  .tile .tile-cost { font-size: 11px; }
  .tile .tile-score { font-size: 12px; }
}

/* published-samplers strip in gallery */
.pub-wrap { margin-top: 26px; }
.pub-title { text-align: center; font-size: 14px; font-weight: 650; color: var(--ink-2); margin-bottom: 12px; }

/* ---------- modal (inspect) ---------- */
.modal { position: fixed; inset: 0; z-index: 100; background: rgb(5, 6, 8); display: none; flex-direction: column; color: #fff; }
.modal.open { display: flex; }
.modal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 70px 12px 16px; flex-wrap: wrap; position: relative; min-height: 62px; }
.modal-top .seg button { color: #c9c9cf; height: auto; min-height: 28px; padding-top: 4px; padding-bottom: 4px; line-height: 1.3; }
.modal-close { position: absolute; top: 12px; right: 16px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.modal-view { flex: 1; position: relative; overflow: hidden; touch-action: none; cursor: grab; outline: none; }
.modal-view.dragging { cursor: grabbing; }
.modal-canvas { position: absolute; left: 50%; top: 50%; width: min(86vh, 92vw); height: min(86vh, 92vw); transform-origin: 0 0; }
.modal-canvas img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.modal-canvas img.on { opacity: 1; }
.modal-foot { padding: 10px 16px 16px; font-size: 13px; color: #b9b9c0; text-align: center; }
.modal-foot kbd { font: inherit; padding: 0 5px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.3); }
.modal-foot .hint-touch { display: none; }
@media (hover: none) and (pointer: coarse) { .modal-foot .hint-pointer { display: none; } .modal-foot .hint-touch { display: inline; } }

/* ---------- charts ---------- */
.charts { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line-2); border-radius: 18px; padding: clamp(16px, 2vw, 24px); box-shadow: var(--shadow); min-width: 0; }
.card h3 { margin: 0 0 4px; font-size: 1.12rem; letter-spacing: -0.015em; }
.card .card-sub { margin: 0 0 12px; font-size: 13.5px; color: var(--ink-3); }
.chart { width: 100%; height: auto; overflow: visible; font-family: inherit; }
.chart text { fill: var(--ink-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.chart .grid line { stroke: var(--line-2); }
.chart .axis-line { stroke: var(--line); }
.chart .region { fill: var(--region); }
.chart .region-label { fill: var(--explain); font-size: 11.5px; font-weight: 650; }
.chart .series path.ln { fill: none; stroke-width: 2; pointer-events: none; }
.chart .series.dtr path.ln { stroke-width: 3; }
.chart .pt { cursor: pointer; }
.chart .pt:focus { outline: none; }
.chart .pt:focus-visible circle, .chart .pt:focus-visible rect, .chart .pt:focus-visible path { stroke: var(--ink); stroke-width: 2.5; }
.chart .lbl-dtr { fill: var(--dtr); font-weight: 750; font-size: 13px; paint-order: stroke; stroke: var(--card); stroke-width: 4px; stroke-linejoin: round; }
.chart rect.pt:focus-visible { stroke: var(--ink); stroke-width: 1.5; }
.chart .hit { fill: transparent; }
.chart .pt.hot circle, .chart .pt.hot rect, .chart .pt.hot path { stroke: var(--ink); stroke-width: 2.5; }
.chart .lbl-s { font-size: 11.5px; font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.legend i.dot { width: 9px; height: 9px; border-radius: 50%; }
.legend b { color: var(--dtr); }
.tooltip { position: fixed; z-index: 120; pointer-events: none; background: var(--ink); color: var(--bg); font-size: 12.5px; padding: 6px 9px; border-radius: 8px; white-space: nowrap; opacity: 0; transform: translate(-50%, calc(-100% - 10px)); transition: opacity 0.12s; }
.tooltip.show { opacity: 1; }
.tooltip.below { transform: translate(-50%, 10px); }
.dumb .row-label { font-size: 12px; }
.dumb .model-label { font-size: 12.5px; font-weight: 700; fill: var(--ink); }
.waffles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.waffle { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.waffle svg { width: 132px; height: 132px; }
.waffle .w-big { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.04em; color: var(--dtr); line-height: 1; }
.waffle .w-lbl { font-size: 14.5px; color: var(--ink); margin-top: 6px; line-height: 1.45; }
.waffle .w-lbl b { color: var(--ink); }
.waffle rect { transition: fill 0.25s; }
@media (max-width: 960px) { .charts { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .waffles { grid-template-columns: 1fr; } .waffle svg { width: 112px; height: 112px; } }

details.more { margin-top: 22px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--card); }
details.more > summary { cursor: pointer; padding: 14px 18px; font-weight: 650; font-size: 15px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "+"; font-size: 20px; font-weight: 500; color: var(--ink-3); }
details.more[open] > summary::after { content: "–"; }
.table-wrap { overflow-x: auto; padding: 0 18px 6px; }
.t1-cap { margin: 0; padding: 4px 18px 18px; font-size: 13px; color: var(--ink-3); }
table.t1 { border-collapse: collapse; width: 100%; font-size: 13.5px; min-width: 640px; }
table.t1 td:nth-child(n+3), table.t1 th:nth-child(n+3) { font-variant-numeric: tabular-nums; }
table.t1 th, table.t1 td { padding: 6px 10px; text-align: right; white-space: nowrap; }
table.t1 th:first-child, table.t1 td:first-child, table.t1 th:nth-child(2), table.t1 td:nth-child(2) { text-align: left; }
table.t1 thead th { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); font-weight: 650; color: var(--ink); }
table.t1 tbody tr.model td { font-weight: 700; padding-top: 14px; border-bottom: 1px solid var(--line-2); text-align: left; color: var(--ink); }
table.t1 tbody tr.grp-start td { border-top: 1px solid var(--line-2); }
table.t1 tbody tr.dtr td { font-weight: 700; color: var(--dtr); }
table.t1 tbody tr.dtr td:first-child { color: var(--ink-2); font-weight: 500; }
table.t1 tbody tr:last-child td { border-bottom: 2px solid var(--ink); }

/* ---------- beyond ---------- */
.video-card { background: var(--stage); border-radius: 18px; padding: clamp(14px, 2vw, 22px); color: var(--stage-ink); }
.video-labels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-bottom: 8px; }
.video-labels div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 0 4px; }
.video-labels .vl-name { font-weight: 700; font-size: 14px; }
.video-labels .vl-cost { font-size: 12.5px; color: var(--stage-ink-2); }
.video-labels .vl-dtr .vl-name { color: var(--stage-dtr); }
.video-frame { position: relative; border-radius: 10px; overflow: hidden; background: #000; aspect-ratio: 2496 / 480; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-frame .sep { position: absolute; top: 0; bottom: 0; width: 3px; background: var(--stage); }
.video-frame .sep.s1 { left: calc(33.333% - 1.5px); }
.video-frame .sep.s2 { left: calc(66.666% - 1.5px); }
.video-frame .dtr-ring { position: absolute; top: 0; bottom: 0; left: calc(66.666% + 1.5px); right: 0; box-shadow: inset 0 0 0 2px var(--stage-dtr); border-radius: 0 10px 10px 0; pointer-events: none; }
.video-scores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 8px; font-size: 13px; color: var(--stage-ink-2); text-align: center; font-variant-numeric: tabular-nums; }
.video-scores b { color: #fff; }
.video-scores .vd b { color: var(--stage-dtr); }
.video-ctrl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.video-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.video-pills button { border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.04); color: var(--stage-ink-2); border-radius: 999px; height: 30px; padding: 0 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.video-pills button[aria-pressed="true"] { background: rgba(58,166,234,0.18); border-color: var(--stage-dtr); color: #fff; }
.video-play { display: inline-flex; align-items: center; gap: 10px; }
.video-progress { width: 160px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.12); overflow: hidden; }
.video-progress i { display: block; height: 100%; width: 0; background: var(--stage-dtr); }
.video-prompt { margin-top: 10px; font-size: 13px; color: var(--stage-ink-2); }
.video-claim { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0 0 16px; }
.video-claim .big { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.04em; color: var(--dtr); line-height: 1; }
.video-claim p { margin: 0; color: var(--ink); flex: 1 1 320px; }
@media (max-width: 640px) {
  .video-frame { aspect-ratio: 832 / 1440; }
  .video-frame .sep.s1, .video-frame .sep.s2 { left: 0; right: 0; width: auto; height: 3px; top: auto; bottom: auto; }
  .video-frame .sep.s1 { top: calc(33.333% - 1.5px); }
  .video-frame .sep.s2 { top: calc(66.666% - 1.5px); }
  .video-frame .dtr-ring { left: 0; top: calc(66.666% + 1.5px); border-radius: 0 0 10px 10px; }
  .video-labels, .video-scores { display: none; }
  .video-vlabels { display: flex !important; }
}
.video-vlabels { display: none; position: absolute; inset: 0; flex-direction: column; pointer-events: none; }
.video-vlabels div { flex: 1; position: relative; }
.video-vlabels span { position: absolute; left: 8px; top: 8px; font-size: 11.5px; font-weight: 700; background: rgba(0,0,0,0.6); color: #fff; padding: 2px 8px; border-radius: 999px; }
.video-vlabels .vv-dtr span { color: var(--stage-dtr); }

.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.feats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* ---------- distilled renderers: a block of example strips with five tiles ---------- */
.distill { margin-top: 18px; padding: clamp(16px, 2.4vw, 28px); }
.distill-head { margin-bottom: 16px; }
.distill-head h3 { margin: 0 0 6px; font-size: 1.12rem; letter-spacing: -0.015em; }
.distill-head p { margin: 0; font-size: 14.5px; color: var(--ink); }
.distill .toggle-row { justify-content: flex-start; margin-bottom: 16px; }
.tiles.strip5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 640px) { .tiles.strip5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tiles.strip5 > .tile.is-ref { grid-column: 1 / -1; justify-self: center; width: calc(50% - 5px); } }
.distill-note { font-size: 14.5px; color: var(--ink); margin: 14px 0 0; }
.feat { background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; padding: 20px; min-width: 0; display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
.feat .f-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.feat h3 { margin: 6px 0 8px; font-size: 1.12rem; letter-spacing: -0.015em; line-height: 1.3; }
.feat p { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.55; }
.feat p b { color: var(--ink); }
.feat .f-num { display: flex; align-items: baseline; gap: 10px; margin: 0; padding-top: 14px; flex-wrap: wrap; align-self: start; }
.feat .f-num .a { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.04em; color: var(--dtr); line-height: 1; }
.feat .f-num .b { font-size: 1.15rem; font-weight: 700; color: var(--ink-3); text-decoration: none; }
.feat .f-num small { font-size: 12.5px; color: var(--ink-3); flex-basis: 100%; }
.minitiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.minitiles figure { margin: 0; }
.minitiles img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 6px; background: var(--band); }
.minitiles figcaption { font-size: 11.5px; color: var(--ink-3); text-align: center; margin-top: 4px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.minitiles figure.d figcaption { color: var(--dtr); font-weight: 650; }
.minitiles figure.d img { box-shadow: 0 0 0 2px var(--dtr); }
@media (max-width: 960px) { .feats { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .feats.two { grid-template-columns: 1fr; } }

/* ---------- citation ---------- */
.cite-box { position: relative; background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; }
.cite-box pre { margin: 0; padding: 18px 20px; overflow-x: auto; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13.5px; line-height: 1.6; color: var(--ink); }
.copy-btn { position: absolute; right: 10px; top: 10px; }
.cite-box pre:empty { min-height: 9.6em; }
.abstract { margin-top: 18px; }
.abstract p { padding: 0 18px 18px; margin: 0; color: var(--ink); font-size: 15.5px; }

footer { padding: 40px 0 56px; text-align: center; color: var(--ink-3); font-size: 13.5px; border-top: 1px solid var(--line-2); }
footer p { margin: 4px 0; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .race-tagline .strike::after, .race-tagline .same { transition: none; }
}

/* ---------- page additions ---------- */
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--dtr); color: var(--on-dtr); padding: 8px 14px; border-radius: 8px; font-weight: 650; }
.skip:focus { top: 12px; text-decoration: none; }
.section.highlights { padding: 44px 0 24px; }
.beat .formula { margin: 12px 0 0; font-size: 15px; color: var(--ink); background: var(--band); border-radius: 8px; padding: 6px 12px; display: inline-block; max-width: 100%; overflow-x: auto; }
.beat .formula .eps { color: var(--dtr); }
.mi { font-family: KaTeX_Math, "Times New Roman", serif; font-style: italic; font-weight: 400; font-size: 1.18em; line-height: 1; }
.scrub-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 14px; }
.scrub-title h3 { margin: 0; font-size: 1.12rem; letter-spacing: -0.015em; }
.scrub-title p { margin: 0; font-size: 13.5px; color: var(--ink-3); }
.axis-band { height: 18px; position: relative; margin: 0 11px; }
.axis-band > span { position: absolute; left: 0; top: 0; text-align: center; font-size: 12px; font-weight: 650; color: var(--dtr-strong); white-space: nowrap; }
.axis-ticks { position: relative; height: 18px; margin: 2px 11px 0; }
.axis-ticks .tk { position: absolute; top: 0; transform: translateX(-50%); font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.axis-ticks .tk:first-child { transform: none; }
.axis-ticks .tk:last-child { transform: translateX(-100%); }
.axis-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.axis-legend span { display: inline-flex; align-items: center; gap: 6px; }
.axis-legend i { display: inline-block; }
.axis-legend i.dot { width: 9px; height: 9px; border-radius: 50%; }
.axis-legend i.tick { width: 1px; height: 10px; background: var(--ink-3); }
.axis-legend i.dash { width: 2px; height: 12px; background: repeating-linear-gradient(180deg, var(--explain) 0 3px, transparent 3px 5px); }
.card-note { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); }
.card.study { margin-top: 18px; }
.modal-title { font-size: 13px; color: #c9c9cf; max-width: min(60ch, 40vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-top .seg { flex-wrap: wrap; border-radius: 14px; }
@media (max-width: 640px), (max-height: 500px) { .modal-title { display: none; } }
.wm-foot { font-weight: 800; color: var(--ink-2); }
.wm-foot .wm-d { color: var(--lowres); }
.wm-foot .wm-r { color: var(--dtr); }
.race-prompt { font-size: 13px; margin-top: 6px; }

/* the six samplers of the paper's Fig. 1 (since 2026-11-20): one row, wider than the text column on large screens */
.race:has(> .race-grid.n6) { --rw: min(1320px, calc(100vw - 2 * var(--gutter))); width: var(--rw); max-width: none; margin-left: calc((100% - var(--rw)) / 2); }
.race-grid.n6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.race-grid.n6 .race-head { gap: 4px 6px; margin-bottom: 7px; min-height: 22px; align-items: center; flex-wrap: wrap; }
.race-grid.n6 .chip { height: 22px; padding: 0 8px; font-size: 12px; gap: 4px; }
.race-grid.n6 .race-head .cost { font-size: 12px; }
.race-grid.n6 .race-foot { margin-top: 8px; gap: 4px; }
.race-grid.n6 .race-timer { font-size: clamp(1.02rem, 1.45vw, 1.3rem); }
.race-grid.n6 .race-lpips { font-size: 12px; }
.race-grid.n6 .race-sigma { right: 6px; top: 6px; font-size: 11px; padding: 1px 6px; }
.race-grid.n6 .race-stage { left: 6px; top: 6px; height: 20px; padding: 0 7px; font-size: 11px; gap: 5px; }
.race-grid.n6 .race-stage .sw { width: 7px; height: 7px; }
.race-grid.n6 .race-stage.res { color: #fff; }
.race-grid.n6 .hold-cue { right: 6px; bottom: 6px; font-size: 10.5px; padding: 2px 6px; }
.race-grid.n6 .race-tile.holding .race-img::after { left: 6px; bottom: 6px; font-size: 10.5px; padding: 2px 6px; }
@media (max-width: 960px) {
  .race-grid.n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: none; row-gap: 16px; }
  .race-grid.n6 .race-tile { grid-area: auto; }
}
.race-prompt .q { color: var(--stage-ink); }
.video-prompt .q { color: var(--stage-ink); }
.race.loading .race-img { cursor: progress; }
.strip .tile-img { cursor: zoom-in; }
/* ---------- refinements ---------- */
.hero { padding-top: 92px; }
.hero-head { max-width: 1100px; }
.hero h1 { font-size: clamp(2rem, 3.4vw + 0.5rem, 3.25rem); }
.hero .subtitle { max-width: 40em; }
.race { max-width: 980px; }
.race-tagline .same { transform: none; max-width: 0; overflow: hidden; white-space: nowrap; vertical-align: bottom; opacity: 0;
  transition: max-width 0.6s var(--ease) 0.3s, opacity 0.3s var(--ease); }
.race-tagline.revealed .same { max-width: 4.5em; opacity: 1; transition: max-width 0.6s var(--ease) 0.3s, opacity 0.5s var(--ease) 0.45s; }
.chart .axis-title { font-size: 12px; fill: var(--ink-3); }
/* tabular figures only where numbers line up: in Inter they also widen the hyphen of names like FLUX.1-dev */
.chart .axis-title, .chart .model-label, .chart .lbl-dtr { font-variant-numeric: normal; }
.chart .lbl-dtr { font-size: 13px; }
.dumb .row-label { font-size: 12px; }
@media (max-width: 820px) { .lane-name .opt { display: none; } }
@media (max-width: 760px) { .lane-head { min-height: 32px; } }
@media (max-width: 640px) {
  .tile-cost .c2 { display: none; }
  .tile .tile-head { min-height: 0; }
  .thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 52px)); justify-content: center; gap: 6px; }
  .thumb { width: 100%; height: auto; aspect-ratio: 1; }
  .gal-row { width: 100%; }
  .gal-row .seg-l { display: flex; width: 100%; }
  .gal-row .seg-l button { flex: 1 1 auto; text-align: center; padding: 7px 10px; }
  .gal-row .model-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 4 choices in 2 columns, 5 or 6 in 3, so no row is left with a lone button */
  .gal-row .seg-l:has(> button:nth-child(4):last-child) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gal-row .seg-l:has(> button:nth-child(5)) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gal-row #gal-budgets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gal-meta { justify-content: flex-start; }
  .gal-tools { width: 100%; justify-content: center; }
}
@media (max-width: 640px) { .cite-box pre { padding-top: 54px; font-size: 12.5px; } }
@media (max-width: 360px) { #gal-budgets button .sub { display: block; margin-left: 0; } }
@media (max-width: 380px) { #gal-view { display: grid; grid-template-columns: auto minmax(0, 1fr); } #gal-view button { white-space: normal; } }
.gal-stage.blinking .tile-img img.holdref { transition: none; }

/* ---------- wrapping ---------- */
.hero h1, .hero .subtitle, .section-title, .card h3, .feat h3, .beat h3, .scrub-title h3, .race-tagline, .stat .label, .feat .f-num small { text-wrap: balance; }
.lede, .race-sub, .strip-prompt, .gal-prompt, .distill-head p, .distill-note, .w-lbl, .feat p, .beat p, .card-sub, .card-note, .score-note, .video-claim p, .t1-cap, .abstract p { text-wrap: pretty; }
@supports not (text-wrap: pretty) { .nw-nopretty { white-space: nowrap; } }
@media (max-width: 424px) { .axis-band > span { font-size: 11px; } }
.axis-band .short .w1 { display: none; }
/* on narrow phones the revealed tagline takes 2 lines: its box keeps that height, so nothing below it moves at the reveal */
@media (max-width: 374px) { .race-tagline { min-height: 2.5em; } }
@media (max-width: 640px) { .lane-img .lr-badge .lr-opt { display: none; } }
@media (max-width: 820px) { table.t1 th, table.t1 td { padding: 6px 8px; } }

/* ---------- without JavaScript ---------- */
html:not(.js) .race-controls, html:not(.js) .scrub-btns, html:not(.js) #scrub-range, html:not(.js) .gal-controls,
html:not(.js) .gal-tools, html:not(.js) .thumbs, html:not(.js) .video-ctrl, html:not(.js) .copy-btn,
html:not(.js) [data-strips] .toggle-row, html:not(.js) .hold-cue, html:not(.js) #scrub,
html:not(.js) #gallery, html:not(.js) .charts .card + .card, html:not(.js) #frontier, html:not(.js) #frontier-legend,
html:not(.js) .js-only, html:not(.js) .waffle svg, html:not(.js) .video-card { display: none; }
html:not(.js) .waffle, html:not(.js) .charts { display: block; }
html:not(.js) .race-tile.done .race-img, html:not(.js) .tile-img { cursor: auto; }
html:not(.js) .race-bar i { width: 100%; }
html:not(.js) .nav { background: rgb(11, 13, 16); }
/* the problem strip's images wait for the race's first frames (main.js and the head script release them); not under reduced
   motion (no race at load), not on windows tall enough to show the strip at load */
@media (prefers-reduced-motion: no-preference) and (max-height: 1680px) { html.strip-wait #strip .tile-img img { display: none; } }

/* ---------- reduced motion (kept last) ---------- */
@media (prefers-reduced-motion: reduce) {
  .race-tagline .strike::after, .race-tagline .same, .race-tagline.revealed .same, .race-img img.hold-ref, .tile-img img.holdref { transition: none; }
}

/* ---------- round 13 (2026-11-20): what every comparison is against ---------- */
/* the struck word of the tagline is a <del> (not read out); its line is drawn by ::after */
.race-tagline del.strike { text-decoration: none; }

/* the scale of the problem (Sec. 5.1): LPIPS of a 100-NFE sample, DtR, another seed and Default on one axis */
.card.scale { margin-top: 4px; }
.scale-sub { margin: 4px 0 0; font-size: 15px; color: var(--ink); max-width: none; }
.sc { position: relative; height: 128px; margin: 22px 8px 0; }
.sc-axis { position: absolute; left: 0; right: 0; top: 64px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--lowres-soft), var(--line-2)); }
.sc-mark { position: absolute; top: 0; height: 100%; left: var(--x); transform: translateX(-50%); }
.sc-dot { position: absolute; left: 50%; top: 59px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--card); border: 2.5px solid var(--default); }
.sc-lbl { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 13.5px; color: var(--ink-2); line-height: 1.3; text-align: center; }
.sc-lbl b { display: block; font-size: 1.25rem; font-weight: 750; color: var(--ink); letter-spacing: -0.02em; }
.sc-ref .sc-lbl, .sc-seed .sc-lbl { bottom: 72px; }
.sc-dtr .sc-lbl, .sc-def .sc-lbl { top: 80px; }
.sc-dtr .sc-dot { background: var(--dtr); border-color: var(--dtr); }
.sc-dtr .sc-lbl, .sc-dtr .sc-lbl b { color: var(--dtr); }
.sc-seed .sc-dot { border-style: dashed; border-color: var(--ink-3); }
.sc-ref .sc-dot { border-color: var(--ink); }
.sc-def .sc-lbl { transform: translateX(-20%); }
.sc-seed .sc-lbl { transform: translateX(-80%); }
.sc-ticks { position: absolute; left: 0; right: 0; top: 76px; height: 0; }
.sc-tick { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--ink-3); top: 0; display: none; }

/* against each published sampler (Sec. 5.3) */
.card.vs { margin: 0 0 18px; }
.vs-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.vs-list li { display: grid; grid-template-columns: 9.5em 1fr; gap: 14px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line-2); }
.vs-k { font-size: 1.15rem; font-weight: 750; letter-spacing: -0.02em; color: var(--dtr); white-space: nowrap; }
.vs-t { font-size: 14.5px; color: var(--ink); line-height: 1.5; }
.vs-note { margin: 14px 0 0; font-size: 13px; color: var(--ink-3); line-height: 1.5; }
@media (max-width: 960px) { .vs-list { grid-template-columns: 1fr; } }

/* user study: who DtR was compared with, and the share per comparison (Supp. Tab. E8) */
.study-sub { margin: 4px 0 0; font-size: 15px; color: var(--ink); }
.study-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; margin-top: 18px; align-items: start; }
.study-bars .sb-title { margin: 0 0 8px; font-size: 13.5px; font-weight: 650; color: var(--ink-2); }
.study-bars ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.study-bars li { display: grid; grid-template-columns: 10.5em 1fr 3em; gap: 10px; align-items: center; font-size: 13px; }
.sb-name { color: var(--ink); white-space: nowrap; }
.sb-g { color: var(--ink-3); font-size: 12px; }
.sb-bar { position: relative; height: 10px; border-radius: 5px; background: var(--band); overflow: hidden; }
.sb-bar::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--ink-3); opacity: 0.6; }
.sb-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: var(--dtr); }
.sb-v { font-weight: 700; color: var(--dtr); text-align: right; font-variant-numeric: tabular-nums; }
.sb-note { margin: 8px 0 0; font-size: 12px; color: var(--ink-3); }
@media (max-width: 1100px) { .study-grid { grid-template-columns: 1fr 1fr; } .study-bars { grid-column: 1 / -1; grid-row: 2; } }
@media (max-width: 640px) { .study-grid { grid-template-columns: 1fr; } }

/* dumbbell: title row with the metric toggle */
.dumb-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 4px; }
.dumb-head h3 { margin: 0; }
.seg.dumb-metric { border-color: var(--line-2); background: var(--band); }
.seg.dumb-metric button { color: var(--ink-2); height: 26px; font-size: 12.5px; }
.seg.dumb-metric button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2); }

/* frontier: Fig. 6's band */
.chart .band-label { fill: var(--ink-3); font-size: 11.5px; font-weight: 600; }
.vs-geneval { margin: 16px 0 0; font-size: 14.5px; color: var(--ink); line-height: 1.5; }
.vs-list .vs-k { font-size: 1.05rem; color: var(--ink); }
.video-claim .claim-more { margin-top: 8px; font-size: 14.5px; }
.video-claim .claim-text { flex: 1 1 320px; min-width: 0; }
.beats-note { margin: 20px 0 22px; font-size: 15px; color: var(--ink); line-height: 1.55; }
.race-tagline del.strike { -webkit-user-select: none; user-select: none; }
@media (max-width: 640px) { .race-grid.n6 .race-foot { flex-wrap: wrap; gap: 0 6px; } }
.feat .f-num .b { white-space: normal; }
/* narrow screens: the scale as four rows, label and value above a bar of length LPIPS / 0.7 (round 14) */
@media (max-width: 900px) {
  .sc { height: auto; margin: 16px 0 0; display: grid; gap: 12px; }
  .sc-axis, .sc-ticks { display: none; }
  .sc-mark { position: static; height: auto; transform: none; }
  .sc-dot { display: none; }
  .sc-lbl { position: static; transform: none !important; white-space: normal; text-align: left; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13.5px; line-height: 1.35; }
  .sc-lbl b { display: inline; order: 2; font-size: 1.05rem; }
  .sc-mark::after { content: ""; display: block; height: 8px; margin-top: 5px; border-radius: 4px; width: var(--w); background: var(--default); }
  .sc-ref::after { background: var(--ink); }
  .sc-dtr::after { background: var(--dtr); }
  .sc-seed::after { background: repeating-linear-gradient(90deg, var(--ink-3) 0 6px, transparent 6px 10px); }
}
/* round 15 (user, 2026-11-20): phones, six-sampler race. The older phone rule moved DtR's sigma badge to the bottom (bottom: 10px) while
   the six-tile rule put every sigma badge at the top (top: 6px); with both set, the badge stretched over the whole picture. Below 760 px
   the sigma badges of all tiles now sit at the bottom right (they show only while the race runs; the hold cue takes that place after it),
   and the stage badges at the top left are compact enough for 100-115 px tiles. */
@media (max-width: 760px) {
  .race-grid.n6 .race-sigma { top: auto; bottom: 5px; right: 5px; font-size: 10px; padding: 1px 5px; }
  .race-grid.n6 .race-stage { left: 5px; top: 5px; height: 18px; padding: 0 5px; font-size: 10px; gap: 4px; }
  .race-grid.n6 .race-stage .sw { display: none; }
  .race-grid.n6 .hold-cue { right: 5px; bottom: 5px; font-size: 9.5px; padding: 1px 5px; }
  .race-grid.n6 .race-tile.holding .race-img::after { left: 5px; bottom: 5px; font-size: 9.5px; padding: 1px 5px; }
  .race-grid.n6 .race-head { min-height: 0; margin-bottom: 6px; }
  .race-grid.n6 .chip { height: 21px; padding: 0 7px; font-size: 11.5px; }
  .race-grid.n6 .race-foot { margin-top: 6px; }
  .race-grid.n6 .race-timer { font-size: 1.05rem; }
  .race-grid.n6 .race-lpips { font-size: 11.5px; }
}
/* round 15: phones, the comparison list puts each sampler's name above its sentence */
@media (max-width: 640px) {
  .vs-list li { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
}
/* user 2026-11-20: the code is released a little later, so the Code button carries a small 'soon' */
.pill .soon { font-size: 11px; font-weight: 650; letter-spacing: 0.02em; line-height: 1; color: var(--stage-ink); background: rgba(255, 255, 255, 0.12); padding: 3px 7px; border-radius: 999px; margin-left: -1px; }
/* round 16: the paper's Fig. 4a, which resolution each sampler uses */
.card.resmap { margin: 22px 0 22px; }
.resmap-sub { margin: 4px 0 0; font-size: 15px; color: var(--ink); line-height: 1.55; }
.resmap-chart { display: block; width: 100%; margin-top: 14px; }
.resmap-chart .lane-name { fill: var(--ink); font-size: 13px; }
.resmap-chart .lane-name.ours { fill: var(--dtr); font-weight: 750; }
.resmap-chart .band-text { fill: var(--dtr); font-size: 12px; font-weight: 650; }
.resmap-chart .mk { stroke: var(--ink-2); fill: var(--card); }
.resmap-key { color: var(--ink-2); margin-top: 6px; }
.resmap-key .kg { width: 15px; height: 15px; display: inline-block; vertical-align: -3px; }
.resmap-key i.k-low { width: 18px; height: 3px; border-radius: 2px; background: var(--ink-3); }
.resmap-key i.k-full { width: 18px; height: 9px; border-radius: 2px; background: var(--ink-3); }
.resmap-key .k-seed { color: var(--dtr); }
@media (max-width: 640px) { .resmap-chart .lane-name { font-size: 11.5px; } }
.resmap-chart .eps { font-family: KaTeX_Math, "Times New Roman", serif; font-style: italic; font-size: 15px; fill: var(--dtr); }
.resmap-chart .mi { font-family: KaTeX_Math, "Times New Roman", serif; font-style: italic; }
/* round 17: one Results section (gallery, then the numbers); How it works opens with the problem; the hero prompt under the tagline */
#results .card.vs { margin-top: 44px; }
.section-head .lede-2 { margin-top: 12px; }
.race-tagline + .race-prompt { margin-top: 12px; }
.resmap-key .kg-wide { width: 24px; }
.resmap-key .kg-wide path { fill: var(--ink-3); }
/* round 18: the problem paragraph under the hero and the four results, each tagged (not a section) */
.section.highlights { padding: 48px 0 26px; }
.tag { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 13px; border-radius: 999px; border: 1.5px solid var(--tag-c);
  color: var(--tag-c); background: color-mix(in srgb, var(--tag-c) 8%, transparent); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; line-height: 1; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag-problem { --tag-c: var(--tag-problem); }
.tag-dtr { --tag-c: var(--dtr); }
.hl-problem { margin: 0 0 30px; }
.hl-problem .hl-text { margin: 12px 0 0; font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--ink); line-height: 1.6; text-wrap: pretty; }
.hl-problem .hl-text strong { font-weight: 650; }
.hl-dtr { margin: 0 0 12px; }
/* the hero's captions explain; they take the prompt's size, so the body text stays the focus */
.race-sub { font-size: 13px; }
/* round 19 (user): 'composition decided' was too small in the charts */
.resmap-chart .band-text { font-size: 15px; font-weight: 700; }
@media (max-width: 640px) { .resmap-chart .band-text { font-size: 13px; } }
.axis-band { height: 21px; }
.axis-band > span { font-size: 14px; font-weight: 700; }
@media (max-width: 424px) { .axis-band > span { font-size: 12.5px; } }
.chart .band-label { font-size: 12.5px; }
