/* HBin redesign (issue #60, stage 1). Visual system from the design export
   docs/design/claude-design/HBIN Site.dc.html:
   - colour modes Sun / Moon / Tree: only the tokens below change per mode
   - Syne (display), Geist (text), Geist Mono (figures, tabular)
   - boxes never change size with content: fixed heights, ellipsis
   - each colour has one meaning: call (the model's tip), hit, miss, live */

:root,
:root[data-theme="moon"] {
  --bg: #0d0d0e; --ink: #f3efe7; --mute: #8d877c; --mute2: #b8b2a7;
  --line: #222224; --line2: #2e2e31; --row: #1c1c1e; --hover: #141415;
  --panel: #161618; --call: oklch(0.72 0.11 65); --callInk: #0d0d0e;
  --dim: #3a3a3d; --live: oklch(0.68 0.21 25); --hit: oklch(0.72 0.13 160);
  --miss: oklch(0.66 0.17 28); --test: oklch(0.78 0.12 230); --near: oklch(0.8 0.15 75);
  --tl: 0.8; --logoBg: transparent;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: oklch(0.965 0.016 88); --ink: #171512; --mute: oklch(0.46 0.02 88);
    --mute2: oklch(0.36 0.02 88); --line: oklch(0.86 0.02 88);
    --line2: oklch(0.8 0.02 88); --row: oklch(0.89 0.018 88);
    --hover: oklch(0.935 0.022 88); --panel: oklch(0.985 0.01 88);
    --call: oklch(0.55 0.2 40); --callInk: #fff; --dim: oklch(0.85 0.02 88);
    --live: oklch(0.55 0.22 25); --hit: oklch(0.48 0.13 150);
    --miss: oklch(0.5 0.18 28); --test: oklch(0.45 0.12 240); --near: oklch(0.55 0.14 70);
    --tl: 0.46; --logoBg: #141210; color-scheme: light;
  }
}
:root[data-theme="sun"] {
  --bg: oklch(0.965 0.016 88); --ink: #171512; --mute: oklch(0.46 0.02 88);
  --mute2: oklch(0.36 0.02 88); --line: oklch(0.86 0.02 88);
  --line2: oklch(0.8 0.02 88); --row: oklch(0.89 0.018 88);
  --hover: oklch(0.935 0.022 88); --panel: oklch(0.985 0.01 88);
  --call: oklch(0.55 0.2 40); --callInk: #fff; --dim: oklch(0.85 0.02 88);
  --live: oklch(0.55 0.22 25); --hit: oklch(0.48 0.13 150);
  --miss: oklch(0.5 0.18 28); --test: oklch(0.45 0.12 240); --near: oklch(0.55 0.14 70);
  --tl: 0.46; --logoBg: #141210; color-scheme: light;
}
:root[data-theme="tree"] {
  --bg: oklch(0.17 0.018 165); --ink: oklch(0.95 0.02 130);
  --mute: oklch(0.7 0.03 150); --mute2: oklch(0.8 0.03 150);
  --line: oklch(0.26 0.02 165); --line2: oklch(0.32 0.02 165);
  --row: oklch(0.22 0.018 165); --hover: oklch(0.24 0.02 165);
  --panel: oklch(0.21 0.02 165); --call: oklch(0.9 0.2 125);
  --callInk: oklch(0.17 0.018 165); --dim: oklch(0.32 0.02 165);
  --live: oklch(0.75 0.2 0); --hit: oklch(0.78 0.14 165);
  --miss: oklch(0.7 0.16 35); --test: oklch(0.8 0.1 220); --near: oklch(0.8 0.15 75);
  --tl: 0.82; --logoBg: transparent; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.4 'Geist', ui-sans-serif, sans-serif;
  --gutter: 48px;
  /* Side padding: the gutter, widened on big screens so content stays
     within --content (header and footer rules still run edge to edge). */
  --content: 1200px;
  --pad: max(var(--gutter), calc((100% - var(--content)) / 2));
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: .85; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 8px; z-index: 99; background: var(--panel); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--call); outline-offset: 2px; }

.num { font-family: 'Geist Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.r { text-align: right; justify-content: flex-end; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.eyebrow { font: 500 11px 'Geist Mono', monospace; letter-spacing: .06em; color: var(--mute); }

/* ---------- header: its own surface, one bar ---------- */
.hb-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 0 var(--pad); background: var(--panel);
  border-bottom: 1px solid var(--line2);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; flex-direction: row; align-items: center; gap: 14px; min-width: 0; }
.brand-mark { display: inline-flex; background: var(--logoBg); padding: 4px 8px; border-radius: 6px; }
.brand-mark img { height: 28px; width: auto; display: block; }
.brand-tag { font: 500 10px 'Geist Mono', monospace; letter-spacing: .14em; color: var(--mute); white-space: nowrap; }
.menu-btn { display: none; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--ink); font: 500 14px 'Geist', sans-serif; cursor: pointer; }
.hb-nav { display: flex; gap: 4px; align-items: center; }
.nav-link { padding: 9px 14px; color: var(--mute2); font: 500 15px 'Geist', sans-serif; border-radius: 999px; cursor: pointer; list-style: none; white-space: nowrap; }
.nav-link::-webkit-details-marker { display: none; }
.nav-link.is-current { background: var(--ink); color: var(--bg); font-weight: 600; }
.nav-menu { position: relative; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: 320px; padding: 12px 16px;
  background: var(--panel); border: 1px solid var(--line2); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.28); display: flex; flex-direction: column;
}
.menu-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; height: 44px; border-bottom: 1px solid var(--line2); }
.menu-item:last-child { border-bottom: 0; }
.menu-code { display: flex; gap: 8px; align-items: center; font: 600 16px 'Geist', sans-serif; }
.menu-status { display: flex; gap: 6px; align-items: center; font: 400 12px 'Geist Mono', monospace; color: var(--mute); white-space: nowrap; }
.mode-switch { display: flex; gap: 2px; padding: 3px; margin-left: 10px; border-radius: 999px; border: 1px solid var(--line2); }
.mode-switch button { width: 30px; height: 30px; border-radius: 999px; border: 0; padding: 0; background: transparent; color: var(--mute2); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.mode-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* ---------- sport marks (placeholder shapes from the design) ---------- */
.shape { display: inline-block; flex-shrink: 0; background: var(--call); }
.shape.is-mute { background: var(--mute2); }
.shape-af { width: 16px; height: 10px; border-radius: 50%; }
.shape-nfl { width: 11px; height: 11px; border-radius: 85% 0; transform: rotate(-45deg); }

/* ---------- tags and pills ---------- */
.tag { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px; font: 600 10px 'Geist Mono', monospace; letter-spacing: .05em; white-space: nowrap; vertical-align: 1px; }
.tag-new { border: 1px solid var(--call); color: var(--call); }
.tag-testing { border: 1px dashed var(--test); color: var(--test); }
.pill { font: 600 11px 'Geist Mono', monospace; letter-spacing: .06em; padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.pill-call { background: var(--call); color: var(--callInk); }
.pill-line { border: 1px solid var(--line2); color: var(--mute2); }
.btn { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; font: 500 14px 'Geist', sans-serif; white-space: nowrap; }
.btn-call { background: var(--call); color: var(--callInk); }
.btn-line { border: 1px solid var(--line2); color: var(--ink); background: transparent; }

/* ---------- toolbar: page title and the competition filter ---------- */
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px var(--pad); border-bottom: 1px solid var(--line); }
.page-title { margin: 0; font: 800 20px 'Syne', sans-serif; letter-spacing: -.01em; }
.filter { position: relative; }
.filter-btn { display: inline-flex; gap: 8px; align-items: center; height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--ink); font: 500 13px 'Geist', sans-serif; cursor: pointer; max-width: 100%; }
.filter-btn[aria-expanded="true"] { background: var(--panel); }
.filter-label { color: var(--mute2); }
.filter-state { font: 600 13px 'Geist Mono', monospace; color: var(--call); white-space: nowrap; }
.filter-caret { color: var(--mute); font-size: 11px; }
.filter-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 15; width: min(320px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.28); }
.chip { display: flex; gap: 10px; align-items: center; height: 44px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line2); background: transparent; color: var(--ink); font: 500 14px 'Geist', sans-serif; cursor: pointer; text-align: left; }
.chip-box { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--mute); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; line-height: 1; flex-shrink: 0; }
.chip[aria-pressed="true"] .chip-box { background: var(--call); border-color: var(--call); color: var(--callInk); }
.chip[aria-pressed="true"] .chip-box::after { content: "\2713"; }
.chip[aria-pressed="false"] { color: var(--mute); }
.chip .tag { margin-left: auto; }
.pop-all { align-self: flex-start; border: 0; background: none; color: var(--call); font: 500 12px 'Geist Mono', monospace; padding: 6px 2px; cursor: pointer; }
.tz-note { font: 400 12px 'Geist Mono', monospace; color: var(--mute); }

/* ---------- hero carousel: the next few events ---------- */
.hero { padding: 28px var(--pad) 20px; border-bottom: 1px solid var(--line); }
/* All slides share one grid cell, so the box is as tall as the tallest and
   nothing jumps when the slide changes. */
.hero-track { display: grid; }
.hero-item { grid-area: 1 / 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 56px; align-items: start; visibility: hidden; opacity: 0; transition: opacity .35s; }
.hero-item.is-active { visibility: visible; opacity: 1; }
.hero-none { grid-template-columns: minmax(0, 1fr); }
.hero-left { display: flex; flex-direction: column; gap: 14px; min-width: 0; align-items: flex-start; }
.hero-meta { display: flex; gap: 10px; align-items: center; font: 500 12px 'Geist Mono', monospace; color: var(--mute2); min-width: 0; max-width: 100%; height: 24px; }
.hero-title { margin: 0; font: 800 40px/1.1 'Syne', sans-serif; letter-spacing: -.02em; overflow-wrap: anywhere; }
.hero-title.is-mid { font-size: 36px; }
.hero-title.is-long { font-size: 32px; }
/* Team colour: a bar down the left of the name (decorative; the name is the label). */
.hero-team { display: inline-block; max-width: 100%; white-space: nowrap; border-left: 6px solid var(--tc, var(--mute)); padding-left: .3em; border-radius: 2px; }
.hero-title .vs, .vs { color: var(--mute); }
.hero-tip { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.hero-tipline { font: 800 30px 'Syne', sans-serif; color: var(--call); white-space: nowrap; }
.hero-sub { font: 500 15px 'Geist Mono', monospace; color: var(--mute2); margin: 0; }
.hero-actions { display: flex; gap: 16px; align-items: center; }
.hero-when { display: flex; gap: 10px; align-items: baseline; white-space: nowrap; }
.hero-count { font: 500 26px 'Geist Mono', monospace; color: var(--call); }
.hero-right { display: flex; flex-direction: column; gap: 18px; }
.hero-block { display: flex; flex-direction: column; gap: 8px; }
.band-none { margin: 0; font: 400 13px 'Geist', sans-serif; color: var(--mute); }
.carousel-controls { display: none; align-items: center; gap: 8px; margin-top: 18px; }
.js .carousel-controls:not([hidden]) { display: flex; }
.car-btn { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--ink); font: 500 20px/1 'Geist', sans-serif; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.car-pause { margin-left: auto; font-size: 12px; font-family: 'Geist Mono', monospace; }
.car-pause-text { font-size: 12px; }
.car-dots { display: flex; gap: 2px; }
.car-dot { width: 28px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.car-dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; border: 1.5px solid var(--mute); }
.car-dot.is-active::after { background: var(--call); border-color: var(--call); }
.who-row { display: flex; justify-content: space-between; font: 600 15px 'Geist', sans-serif; height: 20px; }
.who-bar { display: flex; height: 14px; gap: 3px; }
.who-home, .who-away { background: var(--dim); }
.who-home { border-radius: 4px 0 0 4px; transition: width .6s; }
.who-away { flex: 1; border-radius: 0 4px 4px 0; }
.who-home.is-tip, .who-away.is-tip { background: var(--call); }
.band { position: relative; height: 56px; }
.band-axis { position: absolute; left: 0; right: 0; top: 30px; height: 1px; background: var(--line2); }
.band-zero { position: absolute; left: 50%; top: 18px; height: 26px; width: 1px; background: var(--mute); }
.band-90, .band-50 { position: absolute; top: 24px; height: 12px; background: var(--call); border-radius: 6px; }
.band-90 { opacity: .28; }
.band-med { position: absolute; top: 18px; width: 3px; height: 24px; margin-left: -1.5px; background: var(--ink); }
.band-label { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; font: 600 12px 'Geist Mono', monospace; }
.band-axis-labels { display: flex; justify-content: space-between; font: 400 11px 'Geist Mono', monospace; color: var(--mute); }
.band-key { display: flex; flex-direction: column; gap: 4px; font: 400 13px/1.45 'Geist', sans-serif; color: var(--mute2); }
.band-key > span { display: flex; gap: 8px; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.key { display: inline-block; width: 16px; height: 8px; border-radius: 3px; background: var(--call); flex-shrink: 0; }
.key-90 { opacity: .28; }

/* ---------- feed and tables ---------- */
.feed, .round-sec, .record-sec { padding: 8px var(--pad) 40px; }
.day-head { display: flex; gap: 12px; align-items: baseline; margin: 0; padding: 28px 0 10px; border-bottom: 1px solid var(--line2); }
.day-label, .section-title { font: 800 20px 'Syne', sans-serif; letter-spacing: -.01em; margin: 0; }
.section-title { font-size: 26px; letter-spacing: -.02em; }
.sub-title { font: 600 15px 'Geist', sans-serif; margin: 28px 0 8px; }
.day-date { font: 400 13px 'Geist Mono', monospace; color: var(--mute); }
.grid { display: grid; gap: 12px; align-items: center; border-bottom: 1px solid var(--row); }
.grid > span { min-width: 0; }
.grid-head { padding: 10px 0; font: 500 11px 'Geist Mono', monospace; letter-spacing: .06em; color: var(--mute); }
.row { height: 64px; font-variant-numeric: tabular-nums; }
a.row:hover { background: var(--hover); opacity: 1; }
.feed-grid { grid-template-columns: 84px 112px minmax(0, 1fr) 128px 52px 64px 112px; }
.feed-grid.no-total { grid-template-columns: 84px 112px minmax(0, 1fr) 128px 52px 112px; }
.result-grid { grid-template-columns: 96px 92px minmax(0, 1fr) 128px 150px 104px; }
.comp-grid { grid-template-columns: 104px minmax(0, 1fr) 128px 52px 64px 170px 104px; }
.comp-grid.no-total { grid-template-columns: 104px minmax(0, 1fr) 128px 52px 170px 104px; }
.period-grid { grid-template-columns: minmax(0, 1fr) 120px 110px 90px 120px; }
.period-grid.row { height: 56px; }
.row-total { font-weight: 600; border-top: 1px solid var(--line2); }
.c-time { font: 500 14px 'Geist Mono', monospace; white-space: nowrap; }
.c-comp { display: flex; gap: 7px; align-items: center; font: 500 12px 'Geist Mono', monospace; color: var(--mute2); white-space: nowrap; overflow: hidden; }
.c-fix, .p-label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.teams { font: 500 15px 'Geist', sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.tbar { display: inline-block; width: 3px; height: 11px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.venue { font: 400 12px 'Geist', sans-serif; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tip { font: 700 14px 'Geist', sans-serif; color: var(--call); white-space: nowrap; }
.tip .num { font-weight: 500; }
.c-win, .c-total { font: 500 14px 'Geist Mono', monospace; }
.c-result { font: 500 13px 'Geist Mono', monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.state { display: inline-flex; gap: 6px; align-items: center; justify-content: flex-end; font: 600 12px 'Geist Mono', monospace; white-space: nowrap; }
.c-result .state { justify-content: flex-start; }
.state-upcoming { color: var(--mute); font-weight: 400; }
.state-soon .state-text { color: var(--callInk); background: var(--call); padding: 3px 8px; border-radius: 999px; min-width: 6ch; text-align: center; }
.state-live { color: var(--live); }
.state-locked, .state-final { color: var(--mute2); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: hbpulse 1.4s infinite; }
@keyframes hbpulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } .who-home { transition: none; } }
.lock { display: inline-block; width: 8px; height: 7px; border: 1.5px solid currentColor; border-radius: 1px; position: relative; margin-top: 3px; }
.lock::before { content: ""; position: absolute; left: 0; top: -5px; width: 5px; height: 4px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 3px 3px 0 0; margin-left: -0.5px; }
.grade { display: inline-flex; gap: 6px; align-items: center; justify-content: flex-end; font: 600 12px 'Geist Mono', monospace; white-space: nowrap; }
.grade-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 8px; line-height: 1; }
/* Player actuals graded against the player's own prediction ranges:
   inside 50% = hit colour, inside 90% = near, outside = miss. A symbol
   carries the same meaning for anyone who cannot tell the colours apart. */
.ag { white-space: nowrap; }
.ag::before { display: inline-block; font-size: .8em; margin-right: .35em; }
.ag-in50 { color: var(--hit); } .ag-in50::before { content: "\25CF"; }
.ag-in90 { color: var(--near); } .ag-in90::before { content: "\25D0"; }
.ag-out { color: var(--miss); } .ag-out::before { content: "\25CB"; }
.ag-legend { display: flex; gap: 14px; flex-wrap: wrap; margin: 4px 0 12px; font: 500 12px 'Geist', sans-serif; }
.grade-hit { color: var(--hit); }
.grade-hit .grade-dot { background: var(--hit); color: var(--callInk); }
.grade-miss { color: var(--miss); }
.grade-miss .grade-dot { border: 1.5px solid var(--miss); font-size: 7px; }
.grade-wait, .grade-none { color: var(--mute); font-weight: 500; }
.empty-filter { font: 800 28px 'Syne', sans-serif; letter-spacing: -.02em; padding: 40px 0 8px; margin: 0; }
.note-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 18px; border: 1px dashed var(--line2); border-radius: 12px; font: 400 14px 'Geist', sans-serif; color: var(--mute2); }
.note-line strong { color: var(--ink); }
.note-line a { font: 500 12px 'Geist Mono', monospace; color: var(--call); white-space: nowrap; }
.results { margin-top: 40px; }
.day-link { margin-left: auto; font: 500 12px 'Geist Mono', monospace; color: var(--call); white-space: nowrap; }
.day-tally { margin-left: auto; font: 500 12px 'Geist Mono', monospace; color: var(--mute2); white-space: nowrap; }
.comp-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 24px; font: 500 13px 'Geist Mono', monospace; color: var(--mute2); }
.pager a { color: var(--call); }

/* ---------- competition page ---------- */
.crumbs { display: flex; gap: 8px; align-items: center; padding: 14px var(--pad); border-bottom: 1px solid var(--line); font: 500 12px 'Geist Mono', monospace; color: var(--mute); white-space: nowrap; overflow: hidden; }
.crumb-here { color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.comp-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; height: 150px; padding: 28px var(--pad); border-bottom: 1px solid var(--line); }
.comp-head-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.comp-title { margin: 0; font: 800 48px/1.25 'Syne', sans-serif; letter-spacing: -.02em; }
.comp-head-side { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.testing-badge { display: flex; gap: 8px; align-items: center; max-width: 420px; height: 36px; padding: 0 12px; border: 1px dashed var(--test); border-radius: 10px; }
.testing-text { font: 400 12px 'Geist', sans-serif; color: var(--mute2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.season-pick { display: flex; gap: 8px; align-items: center; }
.season-pick select { height: 36px; background: var(--panel); color: var(--ink); border: 1px solid var(--line2); border-radius: 8px; padding: 0 10px; font: 500 13px 'Geist', sans-serif; max-width: 260px; }
.perf { padding: 24px var(--pad) 28px; }
.perf-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line2); border-radius: 12px; background: var(--panel); min-height: 128px; min-width: 0; }
.tile-round { margin-top: auto; font: 500 12px 'Geist Mono', monospace; color: var(--call); }
.tile-num { font: 500 30px 'Geist Mono', monospace; white-space: nowrap; }
.tile-num-sm { font-size: 22px; line-height: 36px; }
.tile-cap { font: 400 12px 'Geist', sans-serif; color: var(--mute2); }
.tile-label > span, .tile-round > span { white-space: nowrap; }
.tile-round-n { color: var(--mute2); }
.round-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 8px 0 14px; }
.round-bar > .section-title { white-space: nowrap; flex-shrink: 0; }
.round-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; min-width: 0; }
.round-tab { flex-shrink: 0; height: 32px; min-width: 44px; padding: 0 8px; display: flex; align-items: center; justify-content: center; border-radius: 999px; font: 500 13px 'Geist Mono', monospace; border: 1px solid var(--line2); color: var(--mute2); }
.round-tab.is-current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
/* Phone round stepper (shown at <= 720px in place of the tab strip). */
.round-step { display: none; gap: 8px; align-items: center; }
.round-step select { flex: 1; min-width: 0; height: 44px; background: var(--panel); color: var(--ink); border: 1px solid var(--line2); border-radius: 10px; padding: 0 12px; font: 500 15px 'Geist', sans-serif; }
.round-step-btn { flex-shrink: 0; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line2); border-radius: 999px; font: 500 24px/1 'Geist', sans-serif; color: var(--ink); }
.round-step-btn.is-off { color: var(--mute); opacity: .4; }
.mkt-grid { grid-template-columns: minmax(0, 1fr) 110px 110px 90px 90px; }
.mkt-grid.row { height: 48px; }
.mkt-grid.row-total { height: 56px; }
.models { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 0 0 12px; }
.model-chip { display: inline-flex; gap: 8px; align-items: center; height: 30px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 8px; font: 500 12px 'Geist', sans-serif; max-width: 100%; overflow: hidden; }
.model-market { font-weight: 600; white-space: nowrap; }
.model-since { color: var(--mute); font-size: 11px; white-space: nowrap; }
.model-note { color: var(--mute2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pending { font: 400 12px 'Geist', sans-serif; color: var(--mute); }
.round-summary, .muted-note { font: 400 13px 'Geist', sans-serif; color: var(--mute2); margin: 10px 0 0; }
.panel-empty { padding: 40px var(--pad); color: var(--mute2); }
.bars-scroll { overflow-x: auto; }
.bars { display: flex; gap: 6px; height: 130px; min-width: 100%; }
.bar-col { flex: 1 0 30px; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.bar-track { position: relative; width: 100%; height: 90px; border-bottom: 1px solid var(--line2); }
.bar-total, .bar-fill { position: absolute; bottom: 0; left: 20%; right: 20%; border-radius: 4px 4px 0 0; }
.bar-total { background: var(--dim); }
.bar-fill { background: var(--call); }
.bar-label { font: 600 11px 'Geist Mono', monospace; }
.bar-val { font: 400 10px 'Geist Mono', monospace; color: var(--mute); margin-top: -4px; }
.bars-key { display: flex; gap: 8px; align-items: center; font: 400 12px 'Geist', sans-serif; color: var(--mute2); }
.key-total { background: var(--dim); margin-left: 12px; }

/* ---------- match page ---------- */
.match-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; padding: 28px var(--pad); border-bottom: 1px solid var(--line); }
.match-head-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.match-title { margin: 0; font: 800 40px/1.15 'Syne', sans-serif; letter-spacing: -.02em; text-wrap: balance; overflow-wrap: anywhere; }
.tbar-lg { width: 4px; height: 26px; margin-right: 10px; vertical-align: -3px; }
.match-when { margin: 0; font: 500 14px 'Geist Mono', monospace; color: var(--mute2); }
.muted-inline { color: var(--mute); font-weight: 400; }
.match-head-side { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.match-state { display: flex; gap: 14px; align-items: center; min-height: 24px; }
.match-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 28px var(--pad); }
.panel { display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--line2); border-radius: 12px; background: var(--panel); min-width: 0; }
.panel-head { display: flex; gap: 10px; align-items: center; min-height: 20px; }
.panel-tip { margin: 0; font: 800 30px/1.2 'Syne', sans-serif; color: var(--call); overflow-wrap: anywhere; }
.panel-tip.result-line { color: var(--ink); }
.panel-sub { margin: 0; font: 400 14px/1.45 'Geist', sans-serif; color: var(--mute2); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.margin-block .band { margin-top: 2px; }
.players-sec { padding: 8px var(--pad) 40px; }
.panel-empty-inline { font: 400 14px 'Geist', sans-serif; color: var(--mute2); margin: 16px 0; }
.note-projected { justify-content: flex-start; margin-bottom: 4px; }
.team-block { margin-top: 28px; }
.team-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin: 0 0 8px; }
.team-title { margin: 0; font: 800 18px 'Syne', sans-serif; letter-spacing: -.01em; }
.table-scroll { overflow-x: auto; max-width: 100%; border: 1px solid var(--line2); border-radius: 12px; }
.ptable { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 760px; }
.ptable th, .ptable td { padding: 9px 12px; border-bottom: 1px solid var(--row); white-space: nowrap; text-align: left; }
.ptable thead th { font: 500 11px 'Geist Mono', monospace; letter-spacing: .06em; color: var(--mute); background: var(--panel); }
.ptable .r { text-align: right; }
.ptable tbody tr:last-child > * { border-bottom: 0; }
.ptable tbody tr:hover { background: var(--hover); }
.ptable .pt-name { position: sticky; left: 0; background: var(--bg); z-index: 1; font: 600 14px 'Geist', sans-serif; text-align: left; }
.ptable thead .pt-name { background: var(--panel); font: 500 11px 'Geist Mono', monospace; }
.pt-point { font-weight: 600; color: var(--call); }

/* ---------- blog ---------- */
.blog-head { display: flex; flex-direction: column; gap: 10px; padding: 32px var(--pad) 20px; }
.blog-lede { margin: 0; color: var(--mute2); max-width: 60ch; }
.blog-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; padding: 8px var(--pad) 48px; }
.blog-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--line2); border-radius: 12px; background: var(--panel); min-width: 0; }
.blog-card:hover { background: var(--hover); opacity: 1; }
.blog-card-title { margin: 0; font: 800 22px/1.2 'Syne', sans-serif; letter-spacing: -.01em; overflow-wrap: anywhere; }
.blog-card-desc { margin: 0; color: var(--mute2); font-size: 14px; }
.blog-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.blog-article { max-width: 760px; padding: 24px var(--gutter) 56px; margin: 0 auto; }
.back-link { font: 500 12px 'Geist Mono', monospace; color: var(--call); }
.article-header { display: flex; flex-direction: column; gap: 12px; margin: 18px 0 24px; }
.article-title { margin: 0; font: 800 38px/1.12 'Syne', sans-serif; letter-spacing: -.02em; text-wrap: balance; overflow-wrap: anywhere; }
.article-meta { display: flex; gap: 16px; color: var(--mute); font-size: 13px; }
.article-body { font: 400 17px/1.7 'Geist', sans-serif; color: var(--mute2); overflow-wrap: anywhere; }
.article-body h2 { font: 800 26px/1.2 'Syne', sans-serif; color: var(--ink); margin: 2rem 0 .6rem; }
.article-body h3 { font: 700 20px/1.25 'Syne', sans-serif; color: var(--ink); margin: 1.6rem 0 .5rem; }
.article-body h4 { font: 600 16px 'Geist', sans-serif; color: var(--ink); margin: 1.2rem 0 .4rem; }
.article-body p { margin: 0 0 1rem; }
.article-body a { color: var(--call); text-decoration: underline; text-underline-offset: 2px; }
.article-body strong { color: var(--ink); }
.article-body ul, .article-body ol { margin: .75rem 0 1rem 1.4rem; padding: 0; }
.article-body blockquote { border-left: 3px solid var(--call); margin: 1.2rem 0; padding: .2rem 0 .2rem 1.1rem; color: var(--mute2); }
.article-body code { font: 400 .88em 'Geist Mono', monospace; background: var(--row); padding: .1rem .35rem; border-radius: 4px; color: var(--ink); }
.article-body pre { background: var(--panel); border: 1px solid var(--line2); border-radius: 10px; padding: 14px 16px; overflow-x: auto; margin: 1rem 0 1.2rem; }
.article-body pre code { background: none; padding: 0; }
.article-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1rem 0 1.2rem; font-size: 14px; }
.article-body th { text-align: left; padding: 8px 12px; border-bottom: 2px solid var(--line2); font: 500 11px 'Geist Mono', monospace; letter-spacing: .06em; color: var(--mute); white-space: nowrap; }
.article-body td { padding: 8px 12px; border-bottom: 1px solid var(--row); color: var(--ink); }
.article-body img { max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line2); display: block; margin: 1rem 0; }
.article-body hr { border: 0; border-top: 1px solid var(--line2); margin: 2rem 0; }

/* ---------- footer ---------- */
.hb-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 24px var(--pad); border-top: 1px solid var(--line); font: 400 13px 'Geist', sans-serif; color: var(--mute); }
.footer-links { display: flex; gap: 20px; }

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  body { --gutter: 28px; }
  .hero-item { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 32px; }
  .hero-team { white-space: normal; }   /* narrow column: a long name may wrap */
}

/* ---------- phone: 16px gutters, two-line rows of fixed height ---------- */
@media (max-width: 720px) {
  body { --gutter: 16px; }
  .hb-header { min-height: 56px; padding-top: 8px; padding-bottom: 8px; }
  .brand-tag { display: none; }
  .brand-mark img { height: 26px; }
  /* One bar: logo left, Menu button right. The nav drops down as a panel
     (only once the script has run; without it the nav simply wraps). */
  .js .menu-btn { display: inline-flex; }
  .hb-nav { flex-basis: 100%; flex-wrap: wrap; }
  .hb-header { flex-wrap: wrap; }
  .js .hb-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column;
    align-items: stretch; gap: 2px; padding: 10px var(--pad) 14px; background: var(--panel);
    border-bottom: 1px solid var(--line2); box-shadow: 0 18px 30px rgba(0,0,0,.3);
  }
  .js .hb-nav.is-open { display: flex; }
  .nav-link { padding: 12px 14px; font-size: 15px; }
  .nav-menu > summary { display: block; }
  .menu-panel { position: static; width: auto; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 12px; }
  .mode-switch { margin: 8px 0 0; align-self: flex-start; }

  .toolbar { padding-top: 10px; padding-bottom: 10px; }
  .tz-inline { display: none; }
  .hero { padding-top: 18px; padding-bottom: 14px; }
  .hero-item { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .hero-left { gap: 12px; }
  .hero-title, .hero-title.is-mid, .hero-title.is-long { font-size: 26px; line-height: 1.15; }
  .hero-team { display: block; white-space: normal; }
  .hero-venue { display: none; }
  .hero-title .vs { display: block; font-size: .6em; line-height: 1.1; margin: 2px 0 2px 2px; }
  .hero-tipline { font-size: 24px; }
  .hero-sub { font-size: 13px; }
  .hero-meta { font-size: 11px; }
  .hero-count { font-size: 22px; }
  .hero-actions { width: 100%; }
  .car-pause-text { display: none; }

  .grid-head { display: none; }
  .row { height: 76px; row-gap: 2px; column-gap: 10px; }
  .feed-grid, .feed-grid.no-total {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "fix fix state" "meta tip win";
  }
  .feed-grid .c-time { grid-area: meta; }
  .feed-grid .c-comp { display: none; }
  .feed-grid .c-fix { grid-area: fix; }
  .feed-grid .c-tip { grid-area: tip; }
  .feed-grid .c-win { grid-area: win; }
  .feed-grid .c-total { display: none; }
  .feed-grid .c-state { grid-area: state; }
  .feed-grid .c-time::after { content: " \00b7  " attr(data-comp-label); }
  .row .venue { display: none; }
  .result-grid, .comp-grid, .comp-grid.no-total {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "fix fix grade" "time tip result";
  }
  .result-grid .c-comp, .comp-grid .c-win, .comp-grid .c-total { display: none; }
  .result-grid .c-time, .comp-grid .c-time { grid-area: time; font-size: 12px; color: var(--mute2); }
  .result-grid .c-fix, .comp-grid .c-fix { grid-area: fix; }
  .result-grid .c-tip, .comp-grid .c-tip { grid-area: tip; }
  .result-grid .c-result, .comp-grid .c-result { grid-area: result; text-align: right; }
  .result-grid .c-grade, .comp-grid .c-grade { grid-area: grade; }
  .results-page .result-grid .c-time::after { content: " \00b7  " attr(data-comp-label); }
  .day-head { flex-wrap: wrap; row-gap: 2px; }
  .day-date { white-space: nowrap; }
  .c-time { font-size: 12px; }
  .teams { font-size: 14px; }

  .comp-head { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 150px; gap: 12px; padding-top: 20px; padding-bottom: 20px; }
  .comp-head-side { align-items: stretch; }
  .testing-badge { max-width: none; }
  .comp-title { font-size: 36px; }
  .perf { padding-top: 18px; padding-bottom: 20px; }
  .tiles { gap: 8px; }
  .tile { min-height: 112px; padding: 12px 10px; }
  .tile .eyebrow { font-size: 10px; letter-spacing: .04em; }
  /* Phone: label and round each take two fixed lines, so every tile's
     figures sit level whatever the label length. */
  .tile-label > span, .tile-round > span { display: block; }
  .tile-round-n:empty::before { content: "\00a0"; }
  .comp-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .mkt-grid.grid-head { display: grid; font-size: 10px; letter-spacing: .02em; }
  .mkt-grid.grid-head > span { white-space: normal; line-height: 1.2; }
  .tile-num { font-size: 20px; }
  .tile-cap, .tile-round { font-size: 11px; }
  .mkt-grid { grid-template-columns: minmax(0, 1fr) 52px 56px 64px 64px; }
  .tile-num-sm { font-size: 16px; line-height: 28px; }
  .round-bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .round-tabs { display: none; }
  .round-step { display: flex; }
  .period-grid { grid-template-columns: minmax(0, 1fr) 96px 48px; }
  .period-grid > span { white-space: nowrap; }
  .period-grid.grid-head { display: grid; }
  .period-grid > span:nth-child(2), .period-grid > span:nth-child(5) { display: none; }
  .note-line { flex-direction: column; align-items: flex-start; }
  .note-line a { align-self: flex-end; }

  .match-head { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 20px; padding-bottom: 20px; }
  .match-head-side { align-items: stretch; }
  .match-title { font-size: 28px; }
  .match-panels { grid-template-columns: minmax(0, 1fr); padding-top: 20px; padding-bottom: 20px; }
  .panel-tip { font-size: 24px; }
  .blog-head { padding-top: 20px; }
  .article-title { font-size: 28px; }
  .article-body { font-size: 16px; }
  .article-body h2 { font-size: 22px; }
  .article-body h3 { font-size: 18px; }
  .article-meta { flex-wrap: wrap; gap: 4px 14px; }
  .blog-list { gap: 10px; padding-bottom: 32px; }
  .blog-card { padding: 16px; }
  .blog-card-title { font-size: 20px; }
}
.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; }
