/* Layout: a lab-report sheet. Compact masthead, a chart-recorder hero showing the task itself, then the leaderboard as the central instrument; one filter rail scopes every table and chart below it. */
:root {
  --paper: #f4f6f7;
  --surface: #ffffff;
  --ink: #132027;
  --ink-2: #46555d;
  --muted: #6f7d84;
  --rule: #dbe2e5;
  --rule-strong: #c3cdd2;
  --grid-minor: rgba(190, 70, 88, 0.09);
  --grid-major: rgba(190, 70, 88, 0.22);
  --accent: #9e2a3f;
  --accent-ink: #ffffff;
  --accent-soft: rgba(158, 42, 63, 0.07);
  --seq: #2a78d6;
  --div-pos: #256abf;
  --div-neg: #c93c3b;
  --div-mid: #eeefec;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s8: #e34948;
  /* Slots 9-20 extend the validated eight, chosen to be as far as possible from every earlier slot. */
  --s9: #96026d; --s10: #834105; --s11: #ac77fa; --s12: #ca38b1;
  --s13: #0c598e; --s14: #a25476; --s15: #790eae; --s16: #32a0c5;
  --s17: #b15f1c; --s18: #c60552; --s19: #0f41cc; --s20: #0e6636;
  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 6px;
  --logo-plate: transparent; --logo-pad: 0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1417; --surface: #151b1f; --ink: #e6ecee; --ink-2: #b0bcc2; --muted: #8a979e;
    --rule: #25303a; --rule-strong: #36434d;
    --grid-minor: rgba(240, 120, 138, 0.06); --grid-major: rgba(240, 120, 138, 0.15);
    --accent: #ee8a9b; --accent-ink: #1a0a0e; --accent-soft: rgba(238, 138, 155, 0.10);
    --seq: #3987e5; --div-pos: #3987e5; --div-neg: #e66767; --div-mid: #2a3136;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
    --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
    --s9: #bb0d99; --s10: #a85e36; --s11: #8d55f8; --s12: #eb33cd;
    --s13: #136d9e; --s14: #994f77; --s15: #a716d6; --s16: #0292b0;
    --s17: #be7547; --s18: #ca0f55; --s19: #1a5cde; --s20: #16794e;
    --logo-plate: #ffffff; --logo-pad: 6px 10px;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1417; --surface: #151b1f; --ink: #e6ecee; --ink-2: #b0bcc2; --muted: #8a979e;
  --rule: #25303a; --rule-strong: #36434d;
  --grid-minor: rgba(240, 120, 138, 0.06); --grid-major: rgba(240, 120, 138, 0.15);
  --accent: #ee8a9b; --accent-ink: #1a0a0e; --accent-soft: rgba(238, 138, 155, 0.10);
  --seq: #3987e5; --div-pos: #3987e5; --div-neg: #e66767; --div-mid: #2a3136;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
  --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
  --s9: #bb0d99; --s10: #a85e36; --s11: #8d55f8; --s12: #eb33cd;
  --s13: #136d9e; --s14: #994f77; --s15: #a716d6; --s16: #0292b0;
  --s17: #be7547; --s18: #ca0f55; --s19: #1a5cde; --s20: #16794e;
  --logo-plate: #ffffff; --logo-pad: 6px 10px;
  color-scheme: dark;
}

:root { color-scheme: light; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
* { box-sizing: border-box; }
img { max-width: 100%; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--paper);
}
a { color: inherit; text-decoration-color: color-mix(in oklab, var(--accent) 55%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
code, .mono { font-family: var(--font-mono); font-size: 0.92em; }

.wrap {
  max-width: 1200px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 760px) {
  .wrap {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}

/* Masthead */
.mast { border-bottom: 1px solid var(--rule); }
.mast-inner { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; padding-block: 14px; }
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; text-decoration: none; }
.wordmark span { font-family: var(--font-mono); font-weight: 400; font-size: 11.5px; color: var(--muted); margin-left: 8px; letter-spacing: 0.02em; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; font-size: 14px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--accent); }
.mast-links { margin-left: auto; display: flex; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--radius);
  border: 1px solid var(--rule-strong); background: var(--surface); color: var(--ink);
  font: 500 13.5px/1.2 var(--font-body); text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); color: var(--accent-ink); }
.btn.theme { padding: 7px 9px; }
.btn.theme svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn.theme[aria-pressed="true"] .i-sun, .btn.theme[aria-pressed="false"] .i-moon { display: none; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px 56px; align-items: center; padding-block: 44px 36px; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 5.6vw, 60px); line-height: 1.02; letter-spacing: -0.02em; margin-top: 10px; }
.lede { font-size: 17.5px; line-height: 1.55; color: var(--ink-2); margin-top: 16px; max-width: 34em; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 22px 0 0; padding: 0; }
.facts div { display: flex; flex-direction: column; }
.facts dt { order: 2; font-size: 12.5px; color: var(--muted); }
.facts dd { order: 1; margin: 0; font-family: var(--font-display); font-size: 26px; font-weight: 500; line-height: 1.1; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

.scope { margin: 0; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); padding: 14px 14px 12px; min-width: 0; }
.scope svg { display: block; width: 100%; height: auto; }
.scope figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.scope figcaption p { flex: 1 1 260px; min-width: 0; }
.key { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.key i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.key .k-obs { background: var(--ink); }
.key .k-tgt { border: 1.6px solid var(--accent); }
.g-minor { stroke: var(--grid-minor); stroke-width: 1; }
.g-major { stroke: var(--grid-major); stroke-width: 1; }
.lane-label { font: 500 11.5px var(--font-mono); fill: var(--ink-2); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; }
.axis-label { font: 11px var(--font-mono); fill: var(--muted); }
.split-label { font: 500 11px var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; }

/* Filter rail */
.rail { border-block: 1px solid var(--rule); background: var(--paper); z-index: 6; }
@media (min-width: 760px) {
  .rail { position: sticky; top: env(safe-area-inset-top, 0px); background: color-mix(in oklab, var(--paper) 90%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}
.rail-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding-block: 10px; }
.ctl { display: flex; align-items: center; gap: 8px; }
.ctl-label { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.seg { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--surface); padding: 2px; gap: 2px; }
.seg button {
  font: 500 13px/1 var(--font-body); color: var(--ink-2); background: transparent; border: 0;
  padding: 7px 10px; border-radius: 4px; cursor: pointer;
}
.seg button:hover { color: var(--ink); background: var(--accent-soft); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
select {
  font: 500 13px var(--font-body); color: var(--ink); background: var(--surface);
  border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 7px 8px; max-width: 100%;
}
.slice-summary { margin-left: auto; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.slice-summary strong { color: var(--ink); font-weight: 600; }
.slice-summary .warn { color: var(--accent); }
.reset { font: 500 13px var(--font-body); color: var(--accent); background: none; border: 0; padding: 4px 2px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
#filter-btn[aria-expanded="true"] { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.fcount { font: 500 11px/1 var(--font-mono); min-width: 18px; padding: 3px 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); text-align: center; }

/* Dataset filter panel, opened from the rail */
.fpanel { border-top: 1px solid var(--rule); }
.fpanel-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 18px 40px; padding-block: 14px 16px; }
.fgroup { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.fgroup legend { padding: 0; margin-bottom: 6px; }
.fquick { display: flex; gap: 12px; margin-top: -6px; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.checks .check { align-items: flex-start; }
.checks .check input { margin: 3px 0 0; flex: none; }
.checks .n { color: var(--muted); font-variant-numeric: tabular-nums; }
/* Two range inputs share one track; only their thumbs take pointer events. */
.range { position: relative; height: 28px; margin-top: 4px; }
.range-track { position: absolute; left: 9px; right: 9px; top: 12px; height: 4px; border-radius: 2px; background: var(--rule-strong); }
.range-track i { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: var(--accent); }
.range input {
  position: absolute; left: 0; top: 5px; width: 100%; height: 18px; margin: 0; z-index: 1;
  background: none; pointer-events: none; -webkit-appearance: none; appearance: none;
}
.range.lo-top input:first-of-type { z-index: 2; }
.range input::-webkit-slider-runnable-track { height: 18px; background: none; }
.range input::-moz-range-track { background: none; }
.range input::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; cursor: grab;
  width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent);
}
.range input::-moz-range-thumb {
  pointer-events: auto; cursor: grab; box-sizing: border-box;
  width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent);
}
.range input:focus-visible { outline: none; }
.range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 35%, transparent); }
.range input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 35%, transparent); }
.range-vals { display: flex; justify-content: space-between; font: 500 13px var(--font-mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.fgroup .hint { font-size: 12.5px; }
.ffoot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 16px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ffoot strong { color: var(--ink); font-weight: 600; }

/* Sections */
section { padding-block: 44px 8px; scroll-margin-top: 72px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 32px; margin-bottom: 18px; }
.sec-head h2 { font-family: var(--font-display); font-weight: 500; font-size: 32px; line-height: 1.1; letter-spacing: -0.01em; }
.sec-head p { color: var(--ink-2); max-width: 46em; margin-top: 6px; }
.note { font-size: 13px; color: var(--muted); margin-top: 10px; max-width: 72em; }

/* Tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--rule); white-space: nowrap; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
thead th { font-size: 11.5px; font-weight: 500; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; padding-block: 11px; }
.num { text-align: right; }
.sort { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.sort:hover { color: var(--ink); }
.sort:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.sort::after { content: "↕"; opacity: 0.35; font-size: 11px; }
th[aria-sort="descending"] .sort::after { content: "↓"; opacity: 1; color: var(--accent); }
th[aria-sort="ascending"] .sort::after { content: "↑"; opacity: 1; color: var(--accent); }
th[aria-sort] { color: var(--ink); }
.hint { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 400; }

.lb tbody tr:hover td { background: var(--accent-soft); }
.c-pos { font-family: var(--font-display); font-size: 20px; font-weight: 500; width: 1%; color: var(--ink-2); text-align: center; }
.lb tbody tr:first-child .c-pos { color: var(--accent); }
.mcell { display: flex; align-items: center; gap: 10px; }
.sw { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.mname { font-weight: 600; text-decoration: none; }
.mname:hover { text-decoration: underline; }
.mref { display: block; font-size: 12.5px; color: var(--muted); }
.mref:is(a) { text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 2px; }
.mref:is(a):hover { color: var(--accent); text-decoration-color: currentColor; }
.chip { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--rule-strong); color: var(--ink-2); }
.elocell { display: flex; align-items: center; gap: 10px; }
.elo-num { font-weight: 600; font-size: 16px; min-width: 3.2em; text-align: right; }
.elo-ci { font-size: 12px; color: var(--muted); min-width: 5.6em; }
.elo-fig { margin-bottom: 16px; }
.elo-chart { margin-top: 10px; min-height: 120px; overflow: hidden; }
.elo-chart svg { display: block; max-width: 100%; height: auto; }
.e-grid { stroke: var(--rule); stroke-width: 1; }
.e-tick { font: 11px var(--font-body); fill: var(--muted); font-variant-numeric: tabular-nums; }
.e-name { font: 600 13px var(--font-body); fill: var(--ink); }
.e-type { font: 11.5px var(--font-body); fill: var(--muted); }
.e-val { font: 600 12.5px var(--font-body); fill: var(--ink); font-variant-numeric: tabular-nums; }
.e-ci { stroke: var(--ink); stroke-width: 1.5; }
.e-bg { fill: transparent; }
.e-row { outline: none; }
.e-row:hover .e-bg, .e-row:focus-visible .e-bg { fill: var(--accent-soft); }
.of { color: var(--muted); font-size: 12.5px; }
.empty { padding: 28px; text-align: center; color: var(--ink-2); }

/* Figures under the leaderboard */
.figs { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; margin-top: 20px; }
.fig { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); padding: 18px; min-width: 0; }
.fig h3 { font-size: 15.5px; font-weight: 600; }
.fig .sub { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.fig svg { display: block; width: 100%; height: auto; }
.matrix-box { max-width: 500px; margin: 10px auto 0; }
.m-label { font: 12px var(--font-body); fill: var(--ink-2); }
.m-cell-text { font: 600 12px var(--font-body); font-variant-numeric: tabular-nums; pointer-events: none; }
.div-legend { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 10px; justify-content: center; }
.div-legend .bar { width: 140px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--div-neg), var(--div-mid), var(--div-pos)); }
.multiples { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px 18px; margin-top: 12px; }
.panel { margin: 0; min-width: 0; }
.panel figcaption { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.p-grid { stroke: var(--rule); stroke-width: 1; }
.p-other { fill: none; stroke: var(--rule-strong); stroke-width: 1.25; }
.p-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.p-dot { stroke: var(--surface); stroke-width: 2; }
.p-hit { fill: transparent; cursor: default; }
.p-hit:focus-visible { outline: none; stroke: var(--accent); stroke-width: 1.5; }
.p-tick { font: 10px var(--font-body); fill: var(--muted); font-variant-numeric: tabular-nums; }
.p-val { font: 600 10.5px var(--font-body); fill: var(--ink-2); font-variant-numeric: tabular-nums; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
details.twin { margin-top: 12px; font-size: 13px; }
details.twin summary { cursor: pointer; color: var(--ink-2); }
details.twin table { margin-top: 8px; font-size: 12.5px; }
details.twin th, details.twin td { padding: 6px 10px; }

/* Per-dataset table */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-bottom: 12px; font-size: 13px; color: var(--ink-2); }
.shade-key { display: inline-flex; align-items: center; gap: 8px; }
.shade-key .ramp { width: 96px; height: 10px; border-radius: 3px; background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--seq) 34%, transparent)); border: 1px solid var(--rule); }
.ds th, .ds td { padding: 8px 10px; }
.ds td.sticky, .ds th.sticky { position: sticky; left: 0; background: var(--surface); z-index: 1; box-shadow: 1px 0 0 var(--rule); }
.ds-id { font-family: var(--font-mono); font-weight: 500; font-size: 13.5px; }
.ds-model { display: block; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.ds-dom { font-size: 12px; color: var(--ink-2); margin-left: 8px; }
.res { text-align: right; }
.res .v { font-size: 13.5px; }
.res .sd { font-size: 11.5px; color: var(--muted); margin-left: 4px; }
.res.best .v { font-weight: 600; }
.jgd-cell { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.jgd-bar { width: 36px; height: 6px; border-radius: 3px; background: var(--rule); overflow: hidden; }
.jgd-bar i { display: block; height: 100%; background: var(--ink-2); border-radius: 0 3px 3px 0; }

/* Datasets section */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: start; }
.prose p + p { margin-top: 12px; }
.prose { color: var(--ink-2); max-width: 38em; }
.prose strong { color: var(--ink); font-weight: 600; }
.params { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 18px 0 0; border-top: 1px solid var(--rule); }
.params div { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
.params dt { font-size: 12px; color: var(--muted); }
.params dd { margin: 0; font-family: var(--font-mono); font-size: 14px; color: var(--ink); }
.domains { display: grid; gap: 4px; margin-top: 10px; }
.dom-row {
  display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); align-items: center; gap: 12px;
  font: 13.5px var(--font-body); color: var(--ink-2); background: none; border: 0; padding: 4px 6px; border-radius: 4px; cursor: pointer; text-align: left;
}
.dom-row:hover { background: var(--accent-soft); color: var(--ink); }
.dom-row[aria-pressed="true"] { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.dom-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dom-bar { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.dom-bar i { display: block; height: 14px; background: var(--seq); border-radius: 0 4px 4px 0; }
.strip-box { margin-top: 26px; }
.s-dot { stroke: var(--surface); stroke-width: 1.5; }
.s-dot.in { fill: var(--ink); }
.s-dot.out { fill: var(--rule-strong); }
.s-cut { stroke: var(--accent); stroke-width: 1; }
.s-band { font: 500 11px var(--font-mono); fill: var(--accent); letter-spacing: 0.04em; text-transform: uppercase; }

/* Scoring */
.defs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.def { padding: 18px 22px 20px 0; border-bottom: 1px solid var(--rule); }
.def h3 { font-size: 16px; font-weight: 600; }
.def p { color: var(--ink-2); margin-top: 6px; font-size: 14.5px; }
.formula { display: block; margin-top: 10px; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 7px 9px; overflow-x: auto; }
.protocol { margin-top: 20px; color: var(--ink-2); max-width: 60em; }

/* Submit */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 12px; min-width: 0; }
.steps li::before { content: "Step " counter(step); font: 500 11.5px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.steps h3 { font-size: 16px; font-weight: 600; margin-top: 4px; }
.steps p { color: var(--ink-2); margin-top: 6px; font-size: 14.5px; }
pre { margin: 10px 0 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 12px 14px; overflow-x: auto; font: 12.5px/1.6 var(--font-mono); color: var(--ink); }

/* Cite + footer */
.cite { position: relative; }
.cite pre { padding-right: 80px; }
.copy { position: absolute; top: 8px; right: 8px; }
footer { margin-top: 56px; border-top: 1px solid var(--rule); }
.foot { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-block: 20px 32px; font-size: 13px; color: var(--muted); }
/* The university logo is shown unaltered; on the dark theme it sits on a white plate so its black lettering stays legible. */
.affil { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 24px; }
.affil-logo { display: inline-flex; flex: none; background: var(--logo-plate); padding: var(--logo-pad); border-radius: var(--radius); }
.affil-logo img { display: block; height: 48px; width: auto; }
.affil p { font-size: 14px; color: var(--ink-2); max-width: 46em; }

/* Dataset explorer */
.explorer { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); padding: 18px; margin-bottom: 32px; scroll-margin-top: 84px; min-width: 0; }
.ex-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.ex-controls .ctl { min-width: 0; max-width: 100%; }
.ex-controls select { min-width: 0; max-width: min(380px, 100%); }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.check input { accent-color: var(--accent); }
.ex-keys { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-2); margin-left: auto; }
.key .k-win { width: 14px; height: 10px; border-radius: 2px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 35%, transparent); }
.ex-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 14px 0 0; border-top: 1px solid var(--rule); }
.ex-meta div { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.ex-meta dt { font-size: 12px; color: var(--muted); }
.ex-meta dd { margin: 0; font-size: 14px; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-status { font-size: 13px; color: var(--ink-2); margin-top: 12px; font-variant-numeric: tabular-nums; }
.lanes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 14px 20px; margin-top: 12px; transition: opacity 0.15s; }
.lanes.loading { opacity: 0.45; }
.lane { margin: 0; min-width: 0; }
.lane svg { display: block; width: 100%; height: auto; margin-top: 3px; }
.lane-head { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; min-width: 0; }
.lane-name { font-family: var(--font-mono); font-weight: 500; color: var(--ink); white-space: nowrap; }
.lane-comp { color: var(--muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lane-score { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ex-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 14px; }
.ex-foot .note { margin-top: 0; flex: 1 1 320px; }
.hero-lanes svg { display: block; width: 100%; height: auto; }
.ds-open { all: unset; cursor: pointer; font-family: var(--font-mono); font-weight: 500; font-size: 13.5px; }
.ds-open:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.ds-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.s-dot { cursor: pointer; }

#tip {
  position: fixed; z-index: 50; pointer-events: none; max-width: 260px;
  background: var(--ink); color: var(--surface); font: 12.5px/1.45 var(--font-body);
  padding: 7px 10px; border-radius: 5px; white-space: pre-line; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

@media (max-width: 980px) {
  .figs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 28px 24px; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .fpanel-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fpanel-inner > fieldset { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .mast-links { margin-left: 0; }
  .slice-summary { margin-left: 0; width: 100%; }
  .fpanel-inner { grid-template-columns: minmax(0, 1fr); }
  .checks { grid-template-columns: minmax(0, 1fr); }
  .sec-head h2 { font-size: 27px; }
  .dom-row { grid-template-columns: minmax(0, 10em) minmax(0, 1fr); }
  th, td { padding: 9px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
