/* Self-hosted fonts (OFL; licenses in static/fonts). Built by scripts/build_web_fonts.py. */
@font-face { font-family: "Big Shoulders"; src: url("fonts/big-shoulders-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Big Shoulders"; src: url("fonts/big-shoulders-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* Open Officiating site styles. The rules are docs/design.md (version 2).
   The officials' own world: the uniform's black and white, the flag's yellow, the
   referee's signal on every foul. Lists separated by space and light rules, not boxes.
   The scoreboard (pinned score bug, team colors, tug bars) lives on game pages.
   Team colors come from teams.css (--tc on .t-ABBR) and each game page's --away/--home. */
:root {
  --paper: #ffffff;
  --ink: #000000;
  --gray: #6b6b6b;
  --rule: #e4e4e4;
  --soft: #f4f4f4;
  --flag: #ffd100;
  --flag-ink: #6b5700;
  --live: #d0302b;
  --focus: #000000;
  --page: #f2f2f2;
  /* Defaults so nothing renders without a team color. */
  --away: var(--ink); --away-on: var(--paper); --home: var(--ink); --home-on: var(--paper);
  --away-text: var(--ink); --home-text: var(--ink);
  --tc: var(--ink); --tc-on: var(--paper); --tc-text: var(--ink);

  --font-num: "Big Shoulders", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* 16px, ratio 1.25 (docs/design.md, Type). */
  --s-1: 0.8rem; --s0: 1rem; --s1: 1.25rem; --s2: 1.563rem; --s3: 1.953rem; --s4: 2.441rem; --s5: 3.052rem;
  /* Spacing scale (docs/design.md, Space): 4, 8, 12, 16, 24, 32, 48, 64px. */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --gutter: 16px;
  /* Hover fill: how far it reaches past a row's text, and its corners (docs/design.md, Hover fill). */
  --hover-bleed: 8px; --hover-radius: 6px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #000000; --ink: #ffffff; --gray: #9c9c9c; --rule: #262626; --soft: #121212;
    --flag: #ffd100; --flag-ink: #ffd100; --live: #ff5a52; --focus: #ffffff; --page: #161616; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #000000; --ink: #ffffff; --gray: #9c9c9c; --rule: #262626; --soft: #121212;
  --flag: #ffd100; --flag-ink: #ffd100; --live: #ff5a52; --focus: #ffffff; --page: #161616; color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 24px; --hover-bleed: 10px; } }

* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font-text); font-size: var(--s0); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dim { color: var(--gray); }
.nowrap { white-space: nowrap; }
/* Hover fill (docs/design.md, Hover fill): a --soft layer under the row, not the row's own
   background, so it can reach --hover-bleed past the text each side with rounded corners
   while the text and the rules between rows stay on the column edge. It stays 2px clear of
   those rules. A table row's layer hangs off its first cell (a row's own ::before
   would lay out as an extra cell) but is placed against the row. Scroll boxes (.scroll, the ticker) pad themselves by the bleed so it isn't cut. */
a.lrow, .team-link, .flagrow, .wkrow, tbody tr.link, .short-list a, .find-list a, .tick, .ways a { position: relative; isolation: isolate; }
a.lrow::before, .team-link::before, .flagrow::before, .wkrow::before, tbody tr.link > td:first-child::before, .short-list a::before, .find-list a::before, .tick::before, .ways a::before {
  content: ""; position: absolute; inset: 2px calc(-1 * var(--hover-bleed)); z-index: -1; border-radius: var(--hover-radius); pointer-events: none;
}
a.lrow:hover::before, .team-link:hover::before, a.flagrow:hover::before, .flagrow.hot::before, .wkrow:hover::before, tbody tr.link:hover > td:first-child::before, .short-list a:hover::before, .find-list a:hover::before, .tick:hover::before, .ways a:hover::before { background: var(--soft); }
@media (prefers-reduced-motion: no-preference) {
  a.lrow::before, .team-link::before, .flagrow::before, .wkrow::before, tbody tr.link > td:first-child::before, .short-list a::before, .find-list a::before, .tick::before, .ways a::before { transition: background-color 0.15s; }
}

/* Rules between rows are background lines, never box-shadows: Brave paints a faint
   vertical seam where a shadowed row ends on a fractional pixel (docs/design.md, Lines). */
/* ---------- Site bar and seasons ---------- */
.bar { background: var(--paper); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; box-shadow: 0 1px 0 var(--rule); }
.bar-inner { max-width: 960px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 16px; min-height: 52px; }
.wordmark { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--font-num); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; font-size: var(--s1); line-height: 1; white-space: nowrap; }
.wordmark svg { width: 16px; height: 20px; flex: none; }
.nav { margin-left: auto; display: flex; }
.nav a { text-decoration: none; font-size: var(--s0); font-weight: 600; color: var(--gray); padding: 15px 8px 13px; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: linear-gradient(var(--ink), var(--ink)) left bottom / 100% 2px no-repeat; }
/* The site bar's search control (docs/design.md, Site bar): an icon, a 44px target. */
.find-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 52px; margin-right: -12px; color: var(--gray); flex: none; }
.find-link:hover { color: var(--ink); }
.find-link[aria-current="page"] { color: var(--ink); background: linear-gradient(var(--ink), var(--ink)) left bottom / 100% 2px no-repeat; }
.find-link .ico { width: 20px; height: 20px; }
.seasons { background: linear-gradient(var(--rule), var(--rule)) left bottom / 100% 1px no-repeat var(--paper); }
.seasons-inner { max-width: 960px; margin: 0 auto; padding: var(--sp-1) var(--gutter) 0; display: flex; align-items: center; gap: var(--sp-1) var(--sp-4); flex-wrap: wrap; min-height: 36px; font-size: var(--s-1); }
.seasons-inner .k { color: var(--gray); }
.seasons-inner a { color: var(--gray); text-decoration: none; font-family: var(--font-num); font-weight: 600; font-size: var(--s0); padding: 4px 1px 2px; }
.seasons-inner a:hover { color: var(--ink); }
.seasons-inner a[aria-current="page"] { color: var(--ink); background: linear-gradient(var(--ink), var(--ink)) left bottom / 100% 2px no-repeat; }
.seasons-inner .preview { margin-left: auto; color: var(--flag-ink); font-weight: 600; }
/* Eleven years and All: the years scroll sideways on their own when they don't fit, never
   the page. A year with nothing behind it is plain gray text; the coverage sentence says why. */
.seasons-inner .years { position: relative; display: flex; gap: 0 16px; min-width: 0; padding: 7px 0; margin: -7px 0; overflow-x: auto; scrollbar-width: none; }
.seasons-inner .years::-webkit-scrollbar { display: none; }
.seasons-inner .years a, .seasons-inner .yr { flex: none; }
.seasons-inner .yr { color: var(--gray); font-family: var(--font-num); font-weight: 600; font-size: var(--s0); padding: 4px 1px 2px; }
.seasons-inner .years a:not([aria-current]) { text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.seasons-inner .years a:not([aria-current]):hover { text-decoration-color: currentColor; }
.seasons-inner .cover { color: var(--gray); }

main { max-width: 960px; margin: 0 auto; padding-inline: var(--gutter); padding-block: var(--sp-5) var(--sp-7); display: grid; gap: var(--sp-5); }
/* Panels (docs/design.md, Panels; owner 2026-11-02): every block of a page is a --paper
   panel on the --page gray, 8px radius, padded 16px (24px from 720px). The page head (the
   name, its season line and finding) and the footnotes sit on the page itself. */
main > :not(.head, .fn, .sr-only, script, .search), .search > .find-group { background: var(--paper); border-radius: 8px; padding: var(--sp-4); min-width: 0; }
@media (min-width: 720px) { main > :not(.head, .fn, .sr-only, script, .search), .search > .find-group { padding: var(--sp-5); } }
/* A prose section's panel runs the column; its lines keep the 65ch measure inside it. */
main > .prose { max-width: none; }
main > .prose > * { max-width: 65ch; }
section { display: grid; gap: var(--sp-4); min-width: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--soft); color: var(--ink); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 16px; top: 8px; }

/* ---------- Page head: a name, a season line, one finding ---------- */
.head { display: grid; gap: var(--sp-2); }
.crumbs { font-size: var(--s-1); color: var(--gray); margin: 0 0 var(--sp-2); }
.crumbs a { color: var(--gray); }
.crumbs a:hover { color: var(--ink); }
h1 { font-family: var(--font-num); font-weight: 800; font-size: var(--s5); line-height: 1; letter-spacing: 0; margin: 0; text-wrap: balance; max-width: 22ch; }
h1 .code { font-size: 0.62em; vertical-align: 0.18em; margin-right: 10px; }
.season-line { font-size: var(--s-1); color: var(--gray); margin: var(--sp-1) 0 0; }
.season-line b { color: var(--ink); font-weight: 600; }
/* The switcher right of a profile's name (team select); only with the script, which opens
   the choice. Under 560px it drops under the name. */
.name-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp-2) var(--sp-5); }
.switch { display: none; }
.js .switch { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--s-1); color: var(--gray); }
.switch select { font: inherit; font-size: var(--s0); font-weight: 600; color: var(--ink); background: transparent; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; padding: 6px 2px; min-height: 44px; max-width: 16em; }
.switch select:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.finding { font-size: var(--s1); line-height: 1.4; max-width: 36em; margin: var(--sp-4) 0 0; text-wrap: pretty; }
.finding strong { font-weight: 600; }
.finding a { text-decoration-color: var(--gray); }
.finding .fl { display: inline-block; width: 13px; height: 17px; margin-right: 6px; vertical-align: -0.1em; }
/* Section titles: one style on every page, Barlow 700 step 1, with 24px above one that
   follows content inside its block (the block's 16px gap plus 8px). docs/design.md, Type. */
h2 { font-family: var(--font-text); font-weight: 700; font-size: var(--s1); line-height: 1.25; margin: 0; text-wrap: balance; }
:is(section, .panel, .report) > :is(h2, .section-head):not(:first-child) { margin-top: var(--sp-2); }
h3 { font-family: var(--font-text); font-weight: 600; font-size: var(--s0); margin: 0; }
.lede { font-size: var(--s1); line-height: 1.45; max-width: 36em; margin: 0; text-wrap: pretty; }
.lede em, .lede strong { font-style: normal; font-weight: 600; }
.prose { max-width: 65ch; display: grid; gap: var(--sp-4); }
.prose p, .prose li { margin: 0; text-wrap: pretty; }
.prose ol, .prose ul { margin: 0; padding-left: 20px; display: grid; gap: var(--sp-2); }
.note { font-size: var(--s-1); color: var(--gray); margin: 0; max-width: 70ch; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2) var(--sp-4); flex-wrap: wrap; }
.facts { font-size: var(--s1); line-height: 1.45; max-width: 36em; display: grid; gap: var(--sp-3); }
.facts p { margin: 0; text-wrap: pretty; }
.facts strong { font-weight: 600; }

/* ---------- Status words ---------- */
.status { font-weight: 600; white-space: nowrap; }
.status.higher, .status.favors-home, .status.favors-road { color: var(--flag-ink); }
.status.higher::before, .status.favors-home::before, .status.favors-road::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px; vertical-align: 0.06em; background: var(--flag); box-shadow: 0 0 0 1px var(--ink); border-radius: 2px; }
.status.lower::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px; vertical-align: 0.06em; box-shadow: inset 0 0 0 1.5px var(--ink); border-radius: 2px; }
.status.typical, .status.too-few, .status.plain { color: var(--gray); font-weight: 500; }
.teamed .status.higher, .teamed .status.favors-home, .teamed .status.favors-road { color: var(--ink); }
.teamed .status::before { display: none; }
.badge { font-size: var(--s-1); color: var(--gray); white-space: nowrap; }
.code { font-family: var(--font-num); font-weight: 800; letter-spacing: 0.03em; color: var(--tc-text); }
.code.is-away { color: var(--away-text); }
.code.is-home { color: var(--home-text); }
.unchecked { font-size: var(--s-1); font-weight: 500; color: var(--gray); }

/* ---------- Signals: the referee's hand signal for each foul ---------- */
.sig { width: 40px; height: 48px; flex: none; color: var(--ink); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.sig.sm { width: 30px; height: 36px; }
.sig.flagged { color: var(--flag-ink); }

/* ---------- Sort control pattern ---------- */
.seg { display: inline-flex; gap: var(--sp-4); flex-wrap: wrap; }
.seg button { font: inherit; font-size: var(--s0); font-weight: 600; border: 0; border-radius: 3px; background: none; color: var(--gray); padding: 10px 0 8px; min-height: 44px; cursor: pointer; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { color: var(--ink); background: linear-gradient(var(--ink), var(--ink)) left bottom / 100% 2px no-repeat; }
.flags-tools { display: flex; }

/* ---------- Ledger: crews, teams, penalty types ---------- */
.ledger { display: grid; min-width: 0; }
.lrow { display: grid; grid-template-columns: 2.8rem minmax(8.5rem, 14rem) minmax(0, 1fr) 4.5rem; align-items: center; gap: 0 var(--sp-4); padding: var(--sp-2) 0; text-decoration: none; color: inherit; }
.lrow + .lrow { background: linear-gradient(var(--rule), var(--rule)) left top / 100% 1px no-repeat; }
.lnum { font-family: var(--font-num); font-weight: 800; font-size: var(--s2); line-height: 1; text-align: right; color: var(--gray); display: flex; justify-content: flex-end; }
.lname { min-width: 0; display: flex; align-items: baseline; gap: var(--sp-2); font-weight: 600; }
.lname strong { font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.lval { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.lval.higher { color: var(--flag-ink); }
.lval.too-few, .lval.muted { color: var(--gray); font-weight: 500; }
.track { position: relative; height: 22px; }
.track .base { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--ink); }
.track .grid { position: absolute; top: 7px; bottom: 7px; width: 1px; background: var(--rule); }
.track .range { position: absolute; top: 50%; height: 6px; margin-top: -3px; background: var(--rule); border-radius: 3px; }
.track .dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ink); }
.higher .range { background: var(--flag); box-shadow: 0 0 0 1px var(--ink); }
.higher .dot { background: var(--flag); box-shadow: 0 0 0 2px var(--ink); }
.lower .range { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.too-few .dot { display: none; }
.too-few .range { background: none; box-shadow: none; border-top: 1px dashed var(--gray); height: 0; margin-top: 0; border-radius: 0; }
.track .clip { position: absolute; top: 50%; margin-top: -0.6em; font-size: var(--s-1); color: var(--gray); line-height: 1; }
.axis { display: grid; grid-template-columns: 2.8rem minmax(8.5rem, 14rem) minmax(0, 1fr) 4.5rem; gap: 0 14px; padding-bottom: 4px; }
.axis .ticks { position: relative; height: 18px; }
.axis .ticks span { position: absolute; transform: translateX(-50%); font-size: var(--s-1); font-variant-numeric: tabular-nums; color: var(--gray); white-space: nowrap; }
.axis .ticks span.std { color: var(--ink); font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); font-size: var(--s-1); color: var(--gray); align-items: center; margin-top: var(--sp-2); }
.legend i { display: inline-block; vertical-align: middle; margin-right: 6px; border-radius: 3px; }
.legend .k-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.legend .k-range { width: 22px; height: 6px; background: var(--rule); }
.legend .k-base { width: 2px; height: 14px; background: var(--ink); border-radius: 0; }
.legend .k-high { width: 22px; height: 6px; background: var(--flag); box-shadow: 0 0 0 1px var(--ink); }
.legend .k-low { width: 22px; height: 6px; box-shadow: inset 0 0 0 1.5px var(--ink); }
.legend .status { font-size: var(--s-1); }

/* ---------- Count line (live flag counts, forecast grades only) ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: var(--sp-2) var(--sp-5); }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .v { order: -1; font-family: var(--font-num); font-weight: 800; font-size: var(--s3); line-height: 1; }
.stat .v small { font-family: var(--font-text); font-size: var(--s-1); font-weight: 500; color: var(--gray); margin-left: 6px; }
.stat .k { font-size: var(--s-1); color: var(--gray); }
.stat .k a { color: inherit; }

/* ---------- Tables ---------- */
.scroll { overflow-x: auto; min-width: 0; margin-inline: calc(-1 * var(--hover-bleed)); padding-inline: var(--hover-bleed); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th { text-align: left; font-size: var(--s-1); color: var(--gray); font-weight: 500; padding: 4px 10px 8px; background: linear-gradient(var(--ink), var(--ink)) left bottom / 100% 2px no-repeat var(--paper); white-space: nowrap; }
td { padding: 10px; vertical-align: top; }
tbody tr + tr td { background: linear-gradient(var(--rule), var(--rule)) left top / 100% 1px no-repeat; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
td.r, th.r { text-align: right; }
tbody tr.link { cursor: pointer; }
td a { text-decoration-color: var(--rule); }
td a:hover { text-decoration-color: currentColor; }
.evidence { margin: 0; padding-left: 16px; display: grid; gap: var(--sp-1); font-size: var(--s-1); color: var(--gray); overflow-wrap: anywhere; }

/* ---------- Team directory ---------- */
.divisions { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: var(--sp-6) var(--sp-6); }
.division h3 { font-size: var(--s-1); color: var(--gray); font-weight: 500; padding-bottom: var(--sp-1); }
.team-link { display: grid; grid-template-columns: 2.8rem 1fr auto; align-items: baseline; gap: var(--sp-3); padding: var(--sp-2) 0; text-decoration: none; }
.team-link + .team-link { background: linear-gradient(var(--rule), var(--rule)) left top / 100% 1px no-repeat; }
.team-link .abbr { font-family: var(--font-num); font-weight: 800; font-size: var(--s1); letter-spacing: 0.03em; color: var(--tc-text); }
.team-link .val { font-size: var(--s-1); color: var(--gray); font-variant-numeric: tabular-nums; }
.swatch { display: none; }

/* ---------- Crew lineup: the seven officials at the snap ---------- */
.lineup { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
.lineup .field svg { display: block; width: 100%; max-width: 340px; height: auto; }
.lineup .field text { font-family: var(--font-text); }
.roster { list-style: none; margin: 0; padding: 0; display: grid; }
.roster li { display: grid; grid-template-columns: 2.4rem 3rem 1fr; align-items: baseline; gap: var(--sp-3); padding: var(--sp-2) 0; }
.roster li + li { background: linear-gradient(var(--rule), var(--rule)) left top / 100% 1px no-repeat; }
.roster .pos { font-weight: 600; font-size: var(--s-1); color: var(--gray); }
.roster .jn { font-family: var(--font-num); font-weight: 800; font-size: var(--s2); line-height: 1; }
.roster .nm { font-weight: 600; }
.roster .nm small { display: block; font-weight: 400; color: var(--gray); font-size: var(--s-1); }

/* ---------- Score bug (game pages only), pinned while you read the flags ---------- */
.bug { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: stretch; background: var(--soft); border-radius: 6px; overflow: hidden; }
.bug .code-block { display: grid; place-items: center; padding: 0 16px; font-family: var(--font-num); font-weight: 800; font-size: var(--s2); letter-spacing: 0.03em; }
.bug .code-block.away { background: var(--away); color: var(--away-on); }
.bug .code-block.home { background: var(--home); color: var(--home-on); }
.bug .sc { font-family: var(--font-num); font-weight: 800; font-size: var(--s5); line-height: 1; padding: 12px 16px; }
.bug .sc.home { text-align: right; }
.bug .sc.trail { color: var(--gray); }
.bug .gclock { display: grid; place-content: center; text-align: center; gap: 2px; padding: 0 var(--sp-2); }
.bug .gclock b { font-family: var(--font-num); font-weight: 800; font-size: var(--s1); white-space: nowrap; }
.bug .gclock span:not(.st) { font-size: var(--s-1); color: var(--gray); }
.stage { display: grid; min-width: 0; }
.stage > * { min-width: 0; }
.stage > * + * { margin-top: var(--sp-7); }
.stage > .sticky + .finding, .stage > .finding + .note { margin-top: var(--sp-4); }
main > .head + .stage { margin-top: calc(-1 * var(--sp-2)); }
.sticky { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; padding-top: var(--sp-2); background: var(--paper); }
body:has(.stage > .sticky) .bar { position: static; }

/* ---------- Flags: time, signal, the referee's announcement, tug bar ---------- */
.flags { display: grid; }
.flagrow { display: grid; grid-template-columns: 3.6rem 40px minmax(0, 1fr) minmax(7.5rem, min(36%, 15rem)); gap: 2px var(--sp-4); padding: var(--sp-3) 0; text-decoration: none; align-items: center; color: inherit; }
.flagrow + .flagrow { background: linear-gradient(var(--rule), var(--rule)) left top / 100% 1px no-repeat; }
.flagrow .clock { font-family: var(--font-num); font-weight: 600; font-size: var(--s1); color: var(--gray); white-space: nowrap; align-self: start; padding-top: 2px; }
.flagrow .what { min-width: 0; }
.flagrow .what strong { font-weight: 600; }
.flagrow .what > span { display: block; color: var(--gray); font-size: var(--s-1); }
.flagrow .what .desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; margin-top: 2px; }
.flagrow:hover .what .desc, .flagrow:focus .what .desc, .flagrow:focus-within .what .desc { -webkit-line-clamp: unset; line-clamp: none; }
.flagrow.not-counted .what, .flagrow.not-counted .clock { color: var(--gray); }
.flagrow.not-counted .what strong { font-weight: 500; }
.flags-legend { display: flex; justify-content: space-between; font-size: var(--s-1); font-weight: 600; }
.flags-legend span:first-child { color: var(--away-text); }
.flags-legend span:last-child { color: var(--home-text); }
.tug { display: grid; gap: 6px; min-width: 0; }
.tug b { font-family: var(--font-num); font-weight: 800; font-size: var(--s2); line-height: 1; color: var(--side-text, var(--ink)); white-space: nowrap; }
.tug b small { font-size: var(--s0); letter-spacing: 0.03em; margin-left: 4px; }
.tug .bar-t { position: relative; height: 8px; border-radius: 4px; background: linear-gradient(var(--rule), var(--rule)) center / 100% 2px no-repeat; }
.tug .bar-t i { position: absolute; top: 0; bottom: 0; background: var(--side, var(--ink)); border-radius: 4px; }
.tug.to-away { --side: var(--away); --side-text: var(--away-text); }
.tug.to-home { --side: var(--home); --side-text: var(--home-text); }
.tug.to-home b { text-align: right; }
.tug.to-away .bar-t i { right: 50%; }
.tug.to-home .bar-t i { left: 50%; }
.tug.to-away .bar-t::before, .tug.to-home .bar-t::before { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--gray); border-radius: 1px; }
.tug.across { --side: var(--tc); --side-text: var(--tc-text); }
.tug.across .bar-t i { left: 0; }

/* Quarter headings, added by site.js */
.qhead { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-4); padding: var(--sp-6) 0 var(--sp-2); background: linear-gradient(var(--ink), var(--ink)) left bottom / 100% 2px no-repeat; font-family: var(--font-num); font-weight: 800; font-size: var(--s2); line-height: 1; }
.qhead:first-child { padding-top: var(--sp-2); }
.qhead span + span { font-family: var(--font-text); font-weight: 500; font-size: var(--s-1); color: var(--gray); }
.flags.by-quarter .clock .q { display: none; }

/* ---------- Win-chance chart ---------- */
.wp { position: relative; }
.wp svg { display: block; width: 100%; height: auto; overflow: visible; }
.wp text { font-family: var(--font-text); font-size: var(--s-1); fill: var(--gray); }
.wp .t-team { font-weight: 600; }
.wp .t-team.home { fill: var(--home-text); }
.wp .t-team.away { fill: var(--away-text); }
.tip { position: absolute; pointer-events: none; background: var(--soft); color: var(--ink); font-size: var(--s-1); padding: 8px 10px; border-radius: 6px; max-width: 16rem; line-height: 1.4; transform: translate(-50%, calc(-100% - 12px)); box-shadow: 0 6px 18px rgb(0 0 0 / 0.22); }
.tip b { display: block; font-size: var(--s0); }
.wp-empty { padding: var(--sp-5) 0; color: var(--gray); font-size: var(--s-1); }

/* ---------- Not checked: live flags and forecasts ---------- */
.livebox { display: grid; gap: var(--sp-4); padding-top: var(--sp-4); border-top: 1px dashed var(--gray); }
#live-body { display: grid; gap: var(--sp-4); min-width: 0; overflow-anchor: none; } /* live.js keeps the reader's place itself */
.live-about, .live-updated { font-size: var(--s-1); }
.live-ref { color: var(--ink); }
.live-error { color: var(--live); }
.fc { border-top: 1px dashed var(--gray); padding-top: var(--sp-4); }
.share-source { display: none; }
/* Share view (?share, set by live.js): only what a game-thread image shows. */
.share-mode .bar, .share-mode .seasons, .share-mode footer, .share-mode .crumbs,
.share-mode .stage > :not(#live-bug, #live),
.share-mode #live .wp, .share-mode #live .flags-tools, .share-mode #live .flags-legend,
.share-mode #live-flags, .share-mode .live-about, .share-mode .live-updated { display: none; }
.share-mode main { max-width: 640px; }
.share-mode .livebox { border-top: 0; padding-top: 0; }
.share-mode .share-source { display: block; font-size: var(--s-1); color: var(--gray); }
@media (prefers-reduced-motion: no-preference) {
  .flagrow.is-new { animation: arrive 1.2s ease-out; }
  @keyframes arrive { from { background: var(--soft); } to { background: transparent; } }
}

/* ---------- Game status ---------- */
.st { font-family: var(--font-text); font-weight: 600; font-size: var(--s-1); white-space: nowrap; }
.st-live { color: var(--live); }
.st-live::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--live); vertical-align: 0.1em; }
.st-final { color: var(--ink); }
.st-sub { display: block; color: var(--gray); margin-top: 2px; font-variant-numeric: tabular-nums; font-size: var(--s-1); }

/* ---------- This week ---------- */
/* The week link: a line, not a card (only the bug and the report box get a box). */
.weekbar { display: flex; align-items: baseline; gap: var(--sp-1) var(--sp-3); flex-wrap: wrap; min-height: 44px; text-decoration: none; }
.weekbar b { font-family: var(--font-num); font-weight: 800; font-size: var(--s2); line-height: 1; white-space: nowrap; }
.weekbar span { text-decoration: underline; text-decoration-color: var(--gray); }
.weekbar:hover span { text-decoration-color: currentColor; }
.wk { display: grid; }
.wkrow { display: grid; grid-template-columns: 5.5rem minmax(0, 1.3fr) minmax(0, 1fr) 9rem; gap: var(--sp-1) var(--sp-4); align-items: baseline; padding: var(--sp-3) 0; cursor: pointer; }
.wkrow + .wkrow { background: linear-gradient(var(--rule), var(--rule)) left top / 100% 1px no-repeat; }
.wk-time { font-family: var(--font-num); font-weight: 600; font-size: var(--s1); white-space: nowrap; }
.wk-game { min-width: 0; }
.wk-game a { text-decoration: none; }
.wk-game a:hover strong { text-decoration: underline; text-decoration-color: var(--gray); }
.wk-game strong { font-weight: 600; }
.wk-game > span { display: block; color: var(--gray); font-size: var(--s-1); }
.wk-crew { min-width: 0; }
.wk-crew a { text-decoration-color: var(--rule); }
.wk-ratio { display: flex; align-items: baseline; gap: var(--sp-2); margin-top: 2px; font-size: var(--s-1); }
.wk-ratio .lval { font-size: var(--s0); }
.wk-status { text-align: right; }
/* A past week: every game checked, no kickoff time known, so no time column. */
.wk-past .wkrow { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 9rem; }
/* A week's switcher: the weeks either side, right of the name (under it below 560px). */
.pager { display: flex; gap: 0 var(--sp-5); font-size: var(--s-1); }
.pager a { display: inline-flex; align-items: center; gap: 0.3em; min-height: 44px; color: var(--gray); text-decoration-color: var(--rule); }
.pager a:hover { color: var(--ink); }
.tz { display: block; font-family: var(--font-text); font-size: var(--s-1); font-weight: 500; color: var(--gray); }

/* ---------- Callouts, standouts, report box, footnotes ---------- */
.callout { max-width: 66ch; }
.callout p { margin: 0; }
.callout.report { background: var(--soft); padding: var(--sp-5) var(--sp-5); border-radius: 6px; }
.empty { padding: var(--sp-5) 0; color: var(--gray); }
.standouts { list-style: none; margin: 0; padding: 0; display: grid; }
.standouts li { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; padding: var(--sp-2) 0; }
.standouts li + li { background: linear-gradient(var(--rule), var(--rule)) left top / 100% 1px no-repeat; }
.standouts strong { font-weight: 600; }
.standouts .num { font-weight: 600; }
.panel[hidden] { display: none; }
.fn { gap: var(--sp-2); padding-top: var(--sp-2); }
.fn h2 { font-size: var(--s-1); font-weight: 600; color: var(--gray); margin-top: 0; }
.fn ul, .fn-list { margin: 0; padding-left: 16px; display: grid; gap: var(--sp-2); font-size: var(--s-1); color: var(--gray); max-width: 70ch; }

/* ---------- Footer ---------- */
footer { background: linear-gradient(var(--rule), var(--rule)) left top / 100% 1px no-repeat var(--paper); }
footer p { max-width: 960px; margin: 0 auto; padding: var(--sp-5) var(--gutter) var(--sp-2); font-size: var(--s-1); color: var(--gray); }
footer a { color: inherit; }
.theme { max-width: 960px; margin: 0 auto; padding: 0 var(--gutter) var(--sp-6); display: flex; align-items: center; gap: var(--sp-4); font-size: var(--s-1); color: var(--gray); }
.theme button { font: inherit; font-weight: 600; color: var(--gray); background: none; border: 0; border-radius: 3px; padding: 10px 0 8px; min-height: 44px; cursor: pointer; }
.theme button:hover { color: var(--ink); }
.theme button[aria-pressed="true"] { color: var(--ink); background: linear-gradient(var(--ink), var(--ink)) left bottom / 100% 2px no-repeat; }

/* A box that scrolls sideways fades at an edge with more past it (site.js sets .fade-start
   and .fade-end), so a cut tile, year or column reads as "there is more". */
.fade-end { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
.fade-start { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px); mask-image: linear-gradient(to right, transparent, #000 40px); }
.fade-start.fade-end { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); }

/* Small text links reach 44px for a thumb without changing the layout (docs/design.md,
   Accessibility): a transparent hit area centered on the link. */
.nav a, .seasons-inner a, .crumbs a, .section-head a.note, footer .foot-links a { position: relative; }
.nav a::after, .seasons-inner a::after, .crumbs a::after, .section-head a.note::after, footer .foot-links a::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  h1 { font-size: var(--s4); }
  .lrow, .axis { grid-template-columns: 2rem minmax(0, 7rem) minmax(0, 1fr) 3.4rem; gap: 0 9px; }
  .lnum { font-size: var(--s1); }
  .lname .badge { display: none; }
  .axis .ticks span.minor { display: none; }
  .lineup { grid-template-columns: 1fr; }
  .flagrow { grid-template-columns: 3rem 40px minmax(0, 1fr); gap: var(--sp-1) var(--sp-3); }
  .flagrow .tug { grid-column: 3; }
  .bug .sc { font-size: var(--s4); padding: 10px; }
  .bug .code-block { padding: 0 11px; font-size: var(--s1); }
  .wkrow { grid-template-columns: 4.6rem minmax(0, 1fr); gap: var(--sp-2) var(--sp-3); }
  .wk-time { grid-row: span 2; }
  .wk-crew, .wk-status { grid-column: 2; }
  .wk-status { text-align: left; }
  .wk-status:empty { display: none; }
  .wk-past .wkrow { grid-template-columns: minmax(0, 1fr); }
  .wk-past .wk-crew, .wk-past .wk-status { grid-column: 1; }
  .st-sub { display: inline; margin-left: 6px; }
  .hide-sm { display: none; }
  .seasons-inner .preview { margin-left: 0; width: 100%; padding-bottom: var(--sp-1); }
  .seasons-inner { flex-wrap: nowrap; flex-direction: column; align-items: stretch; gap: 0; padding-top: 2px; }
  .seasons-inner .k { display: none; }
  .seasons-inner .cover { padding-bottom: var(--sp-1); }
}
@media (max-width: 480px) {
  .bar-inner { flex-wrap: wrap; gap: 0 8px; padding-top: 10px; }
  /* Six links fit a 360px phone: 4px a side, the row runs gutter to gutter. Under that the
     nav scrolls sideways on its own, so the page never does. */
  .nav { flex: 0 0 calc(100% + 8px); margin-left: -4px; justify-content: space-between; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 10px 4px; font-size: var(--s-1); }
  /* The search control stays on the wordmark's row, so the nav row keeps its width. */
  .find-link { order: 1; margin-left: auto; height: 44px; margin-top: -10px; }
  .nav { order: 2; }
  .callout.report { padding: var(--sp-4); }
  th, td { padding-inline: 6px; }
  /* Flag rows: the time on its own line over the announcement, so the words get the row's
     full width beside the signal. */
  .flagrow { grid-template-columns: 40px minmax(0, 1fr); gap: 2px var(--sp-3); }
  .flagrow > .sig { grid-column: 1; grid-row: 1 / span 3; align-self: start; }
  .flagrow .clock { grid-column: 2; grid-row: 1; font-size: var(--s0); padding-top: 0; }
  .flagrow .what { grid-column: 2; grid-row: 2; }
  .flagrow .tug { grid-column: 2; grid-row: 3; margin-top: 4px; }
}

/* ---------- /design/ specimen (private builds only) ---------- */
.d-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 12px 16px; }
.d-swatch { display: grid; grid-template-columns: 32px 1fr; gap: 0 10px; align-items: center; font-size: var(--s-1); }
.d-swatch i { grid-row: span 2; width: 32px; height: 32px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--rule); }
.d-swatch span { color: var(--gray); }
.d-teams { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--s1); }
.d-signals { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 16px; }
.d-signals div { display: flex; align-items: center; gap: 10px; font-size: var(--s-1); }
.d-type { display: grid; }
.d-type > div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 10px 0; }
.d-type > div + div { background: linear-gradient(var(--rule), var(--rule)) left top / 100% 1px no-repeat; }
.d-k { font-size: var(--s-1); color: var(--gray); }
.d-h1 { font-family: var(--font-num); font-weight: 800; font-size: var(--s5); line-height: 1; margin: 0; }
@media (max-width: 640px) { .d-h1 { font-size: var(--s4); } }
.design-page code { font-size: 0.95em; }
footer .foot-links { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); padding-top: 0; }

/* ---------- Game database (docs/design.md, Data tools and Database pages) ---------- */

/* The page's own Back: a control you can see. */

/* Filter bar: pinned on wide screens; on phones it scrolls away with the page. */
.db { display: grid; gap: var(--sp-4); min-width: 0; }
.dbbar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--bar-h, 0px)); z-index: 8; background: linear-gradient(var(--rule), var(--rule)) left bottom / 100% 1px no-repeat var(--paper); display: grid; gap: var(--sp-1); padding-bottom: var(--sp-2); margin: 0; }
.views { display: flex; gap: var(--sp-5); overflow-x: auto; scrollbar-width: none; }
.views::-webkit-scrollbar { display: none; }
.views a { flex: none; white-space: nowrap; text-decoration: none; font-weight: 600; color: var(--gray); padding: 10px 0 8px; }
.views a:hover { color: var(--ink); }
.views a[aria-current="page"] { color: var(--ink); background: linear-gradient(var(--ink), var(--ink)) left bottom / 100% 2px no-repeat; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: var(--s-1); color: var(--gray); }
.filters label, .filters .weeks { display: inline-flex; align-items: center; gap: 8px; }
.filters select { font: inherit; font-size: var(--s0); font-weight: 600; color: var(--ink); background: var(--paper); border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; padding: 6px 2px; min-height: 40px; }
.filters .find { flex: 1 1 12rem; min-width: 0; }
.filters .find input { flex: 1; min-width: 0; font: inherit; font-size: var(--s0); color: var(--ink); background: var(--paper); border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; padding: 6px 2px; min-height: 40px; }
.filters .find input:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.filters .clear { font: inherit; font-size: var(--s-1); font-weight: 600; color: var(--gray); background: none; border: 0; min-height: 40px; padding: 0 2px; cursor: pointer; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }
.filters .clear:hover { color: var(--ink); }
.dbview { display: grid; gap: var(--sp-3); min-width: 0; }
@media (max-width: 560px) { .dbbar { position: static; } }
/* A long table keeps its column names: on wide screens, where the table fits its column
   (site.js marks the box .fits), the header row pins under the site bar and the filter
   bar. site.js measures both (--bar-h, --dbbar-h). */
@media (min-width: 561px) {
  .scroll.fits { overflow: visible; }
  .scroll.fits > table.dense > thead th { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--bar-h, 0px) + var(--dbbar-h, 0px)); z-index: 2; }
}

/* Dense table: the one place rows run tight. */
table.dense td { padding: 7px; vertical-align: middle; white-space: nowrap; }
table.dense th { padding: 4px 7px 8px; text-align: left; }
table.dense th.r { text-align: right; }
table.dense th:first-child, table.dense td:first-child { padding-left: 0; }
table.dense th:last-child, table.dense td:last-child { padding-right: 0; }
table.dense th[data-k] { cursor: pointer; user-select: none; }
table.dense th[data-k]:hover { color: var(--ink); }
table.dense th[aria-sort="ascending"]::after { content: " \2191"; }
table.dense th[aria-sort="descending"]::after { content: " \2193"; }
table.dense td.wrap { white-space: normal; min-width: 18rem; max-width: 30rem; color: var(--gray); font-size: var(--s-1); }
table.dense td.strong { font-weight: 600; }
table.dense a { text-decoration: none; }
table.dense tr.link:hover a { text-decoration: underline; text-decoration-color: var(--gray); }
table.dense .foul { display: inline-flex; align-items: center; gap: var(--sp-2); }
table.dense .foul .sig { margin-block: -6px; }
table.dense tr.none td { color: var(--gray); }
td.grade.below, td.above { font-weight: 600; color: var(--flag-ink); }
/* The small flag mark before a grade under 100% (shape, never a colored cell). */
.gmark { display: inline-block; width: 9px; height: 11px; margin-right: 6px; vertical-align: -1px; background: var(--flag); box-shadow: 0 0 0 1px var(--ink); clip-path: polygon(0 0, 100% 0, 72% 50%, 100% 100%, 0 100%); }
.more { justify-self: start; font: inherit; font-weight: 600; color: var(--ink); background: none; border: 0; min-height: 44px; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }
.db[data-all] .strip-col, .db[data-all] .strip-keywrap { display: none; }
/* One season picked: the Season column would repeat it on every row, so it hides. */
.db:not([data-all]) .season-col { display: none; }
/* A zero count is --gray, so the one count that isn't zero stands out of its column. */
table.dense td.zero { color: var(--gray); }
/* The Teams view: a season shows only the halves it has (counts, call check); a sentence
 * says what's missing. */
.db[data-view="teams"]:not([data-counts]) .c-n, .db[data-view="teams"]:not([data-grades]) .c-g { display: none; }
.db-note { margin: 0; color: var(--gray); }
#db-notes:empty { display: none; }

/* Week strip: shape carries the result, so it reads in black and white. */
.strip { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 11px; gap: 3px; vertical-align: middle; }
.strip i, .strip-key i { display: block; width: 11px; height: 14px; border-radius: 2px; background: var(--ink); }
.strip i.below, .strip-key i.below { background: var(--flag); box-shadow: inset 0 0 0 1.5px var(--ink); }
.strip i.none, .strip-key i.none { background: none; box-shadow: inset 0 0 0 1px var(--gray); }
/* Flags not all checked yet: the gray outline, its lower half solid ink. */
.strip i.part, .strip-key i.part { background: none; box-shadow: inset 0 -7px 0 var(--ink), inset 0 0 0 1px var(--gray); }
.strip i.bye, .strip-key i.bye { background: none; position: relative; }
.strip i.bye::after, .strip-key i.bye::after { content: ""; position: absolute; left: 4px; top: 6px; width: 3px; height: 3px; border-radius: 50%; background: var(--gray); }
.strip i.now { outline: 2px solid var(--ink); outline-offset: 2px; }
.strip-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; font-size: var(--s-1); color: var(--gray); }
.strip-key span { display: inline-flex; gap: 6px; align-items: center; }
.strips { display: grid; gap: 12px; }
.strips > div { display: flex; gap: 12px; align-items: center; }
.strips .code { width: 2.6rem; font-size: var(--s1); }
@media (max-width: 480px) {
  .strip { grid-auto-columns: 7px; gap: 2px; }
  .strip i { width: 7px; height: 12px; }
  .strip i.part { box-shadow: inset 0 -6px 0 var(--ink), inset 0 0 0 1px var(--gray); }
  .strip i.bye::after { left: 2px; }
}

/* Profiles: tabs, the grade, facts, context figures. */
.profile { display: grid; gap: var(--sp-5); min-width: 0; }
.ptabs { display: flex; flex-wrap: wrap; gap: 0 var(--sp-5); background: linear-gradient(var(--rule), var(--rule)) left bottom / 100% 1px no-repeat; }
.ptabs a { text-decoration: none; font-weight: 600; color: var(--gray); padding: 10px 0 8px; min-height: 44px; display: inline-flex; align-items: center; }
.ptabs a:hover { color: var(--ink); }
.ptabs a[aria-current="true"], .ptabs a[aria-current="page"] { color: var(--ink); background: linear-gradient(var(--ink), var(--ink)) left bottom / 100% 2px no-repeat; }
/* The tab row's last link is the profile's other report, a page of its own: set apart on the right. */
.ptabs a.out { margin-left: auto; }
/* Phones: the tabs stay one row that scrolls sideways (with the edge fade), never wrapping a tab under the rest. */
@media (max-width: 560px) { .ptabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .ptabs::-webkit-scrollbar { display: none; } .ptabs a { flex: none; white-space: nowrap; } }
.dense tr.on td { font-weight: 600; }
/* A team's game log: the week column stays narrow, the opponent takes the room. */
.dense.log th:first-child { width: 4.5em; }
.panel, .report { display: grid; gap: var(--sp-4); min-width: 0; scroll-margin-top: 96px; }
.js .profile[data-tabs] .panel:not(.on) { display: none; }
.js .panel-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pgrade { display: flex; align-items: baseline; gap: var(--sp-3); margin: 0; }
.pgrade b { font-family: var(--font-num); font-weight: 800; font-size: var(--s3); line-height: 1; }
.pgrade b.below { color: var(--flag-ink); }
.pgrade b .gmark { width: 13px; height: 17px; vertical-align: 0; }
.pgrade span { font-size: var(--s-1); color: var(--gray); }
.pfact { font-size: var(--s1); line-height: 1.45; max-width: 36em; margin: 0; text-wrap: pretty; }
.stand { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: var(--sp-3) var(--sp-6); }
.stand div { display: grid; gap: 2px; }
/* Wide screens: context figures sit in thirds of the column, so two or three read as one row. */
@media (min-width: 720px) { .stand { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stand b { font-family: var(--font-num); font-weight: 800; font-size: var(--s3); line-height: 1; }
.stand span { font-size: var(--s-1); color: var(--gray); }
h1.foulname { display: flex; align-items: center; gap: var(--sp-3); max-width: none; }
.pfacts { display: grid; gap: var(--sp-2); }
h1.gname { font-size: var(--s3); max-width: none; }
.stage > .sticky + .pfacts { margin-top: var(--sp-5); }
.stage > .pfacts + .profile { margin-top: var(--sp-5); }

/* A game's broadcast bug: each team's side (code block and name) is one link to its team
   page; the name underlines on hover. Under 560px the names drop and the code block is the link. */
.dbbug { grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr); }
.dbbug .bteam { display: flex; align-items: stretch; min-width: 0; color: inherit; text-decoration: none; }
.dbbug .bteam.home { flex-direction: row-reverse; }
.dbbug a.bteam:focus-visible { outline-offset: -2px; }
.dbbug .tname { display: flex; align-items: center; padding: 0 var(--sp-3); font-weight: 600; min-width: 0; line-height: 1.2; text-decoration: inherit; }
.dbbug .bteam.home .tname { justify-content: flex-end; text-align: right; }
.dbbug a.bteam:hover .tname { text-decoration: underline; text-decoration-color: var(--gray); text-underline-offset: 3px; }
.dbbug .sc { padding: 12px; }
@media (max-width: 560px) {
  .dbbug { grid-template-columns: auto 1fr auto 1fr auto; }
  .dbbug .tname { display: none; }
}

/* Flagged plays: when and the situation, the foul with its signal, what the check found. */
.plays, .review-list { list-style: none; margin: 0; padding: 0; display: grid; }
.plays .play { display: grid; gap: var(--sp-2); padding: var(--sp-4) 0; }
.plays .play + .play, .review-list li + li { background: linear-gradient(var(--rule), var(--rule)) left top / 100% 1px no-repeat; }
.plays .play:first-child { padding-top: var(--sp-1); }
.plays p, .review-list p { margin: 0; }
.pgame { font-weight: 600; }
.pwhen { display: flex; flex-wrap: wrap; gap: 2px var(--sp-3); align-items: baseline; }
.pwhen b { font-family: var(--font-num); font-weight: 600; font-size: var(--s1); color: var(--gray); white-space: nowrap; }
.pfoul { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--sp-1) var(--sp-4); align-items: start; }
.pfoul > div { display: grid; gap: var(--sp-1); min-width: 0; }
.pname strong { font-weight: 600; }
.pdesc { font-size: var(--s-1); color: var(--gray); max-width: 65ch; overflow-wrap: anywhere; }

/* Call reviews: a list, a rule between rows, no cards. */
.review-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--sp-1) var(--sp-4); padding: var(--sp-4) 0; }
.review-row > div { display: grid; gap: var(--sp-1); min-width: 0; }
.review-row .rname a { text-decoration-color: var(--gray); }
.rwhere { font-size: var(--s-1); color: var(--gray); }
.rname strong, .rverdict strong { font-weight: 600; }
.rverdict .wrong::before { content: ""; display: inline-block; width: 9px; height: 11px; margin-right: 6px; vertical-align: -1px; background: var(--flag); box-shadow: 0 0 0 1px var(--ink); clip-path: polygon(0 0, 100% 0, 72% 50%, 100% 100%, 0 100%); }
article.review { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--sp-2) var(--sp-4); }
article.review .rbody { display: grid; gap: var(--sp-4); min-width: 0; }
article.review .rbody > p { margin: 0; }
article.review .rname { font-size: var(--s1); line-height: 1.4; max-width: 36em; }
article.review h2 { font-size: var(--s0); font-weight: 600; margin-top: var(--sp-2); }
article.review dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--sp-2) var(--sp-4); margin: 0; }
article.review dt { color: var(--gray); font-size: var(--s-1); padding-top: 2px; }
article.review dd { margin: 0; max-width: 65ch; }
.rlist { margin: 0; padding-left: 18px; display: grid; gap: var(--sp-2); max-width: 70ch; }
.clip { margin: 0; display: grid; gap: var(--sp-2); max-width: 860px; }
.clip video { width: 100%; aspect-ratio: 16 / 9; display: block; border-radius: 3px; background: #000; }
.clip figcaption { font-size: var(--s-1); color: var(--gray); }
.stills { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-3); }
.stills figure { margin: 0; display: grid; gap: var(--sp-2); }
.stills img { width: 100%; height: auto; display: block; border-radius: 3px; }
.stills figcaption { font-size: var(--s-1); color: var(--gray); }
/* A play's status (two statuses, 2026-11-02): a word in step -1, never a pill or a color. */
.pcheck { font-size: var(--s-1); font-weight: 600; color: var(--ink); white-space: nowrap; margin-left: var(--sp-2); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.pcheck:hover, .pcheck:focus-visible { text-decoration-color: currentColor; }
.rdate { font-size: var(--s-1); color: var(--gray); }
.rdate .pcheck { margin: 0 var(--sp-2) 0 0; }
/* What a play's claim rests on: frames, what was and wasn't confirmed, sources, the date. */
.evidence { gap: var(--sp-3); margin-top: var(--sp-3); }
.evidence h3, article.review .evidence h2 { font-size: var(--s0); font-weight: 600; margin: 0; }
.evidence h4, article.review .evidence h3 { font-size: var(--s-1); font-weight: 600; margin: 0 0 var(--sp-1); }
.evreview { max-width: 65ch; }
/* Every frame takes the same 16:9 box, letterboxed (contain), never cropped: a cropped
   replay or a graphic keeps all of what it shows, and captions in a row line up. */
.evframes figure { align-content: start; }
.evframes img { aspect-ratio: 16 / 9; object-fit: contain; background: var(--soft); }
.evframes figcaption b { color: var(--ink); font-weight: 600; }
.evlists { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-3) var(--sp-5); }
.evsources li, .evlists li { overflow-wrap: anywhere; }
.evdate { font-size: var(--s-1); color: var(--gray); max-width: 65ch; }
.grade-link { margin-top: var(--sp-5); }
@media (max-width: 600px) {
  article.review dl { grid-template-columns: 1fr; gap: 2px; }
  article.review dd { margin-bottom: var(--sp-2); }
  article.review, .review-row, .pfoul { grid-template-columns: 30px minmax(0, 1fr); gap: var(--sp-1) var(--sp-3); }
  article.review .sig, .review-row .sig, .pfoul .sig { width: 30px; height: 36px; }
}

/* ---------- Landing (docs/design.md, Landing; phase 7) ---------- */
/* The ticker: one tile per game, in one row that scrolls sideways inside its box on every
   width; the page never does. At 9.25rem a tile is cut at the 960px column's edge, so
   the row shows there is more. Tiles are divided by 1px rules, never boxed. */
.tick-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.tick-head h2 a { text-decoration: none; }
/* The ticker's previous and next buttons: wide screens, with the script, only when the
   tiles don't all fit. Phones swipe, with the edge fade. */
.tick-side { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin-left: auto; }
.tick-pager { display: none; margin: -12px -12px -12px 0; }
.tick-pager.on { display: inline-flex; }
.tick-pager button { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--hover-radius); background: none; color: var(--ink); cursor: pointer; }
.tick-pager button:hover:not(:disabled) { background: var(--soft); }
.tick-pager button:disabled { color: var(--rule); cursor: default; }
.tick-pager .ico { width: 20px; height: 20px; }
/* With the script the buttons (wide screens) and a swipe (phones) move the row, so its
   scrollbar goes; without the script it stays. */
.js .ticker .ticks { scrollbar-width: none; }
.js .ticker .ticks::-webkit-scrollbar { display: none; }
@media (max-width: 560px) { .tick-pager.on { display: none; } }
.tick-head h2 a:hover { text-decoration: underline; text-decoration-color: var(--gray); }
.ticker .ticks { list-style: none; margin: -14px 0 0 calc(-1 * var(--hover-bleed)); padding: 0 0 0 var(--hover-bleed); scroll-padding-inline-start: var(--hover-bleed); display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; }
.ticker .ticks li { flex: 0 0 auto; display: flex; scroll-snap-align: start; }
.ticker .ticks li + li { background: linear-gradient(var(--rule), var(--rule)) left top / 1px 100% no-repeat; }
.tick { display: grid; align-content: start; gap: 4px; width: 9.25rem; min-height: 44px; padding: 12px 14px 14px; color: inherit; text-decoration: none; }
.ticker .ticks li:first-child .tick { padding-left: 0; width: calc(9.25rem - 14px); }
/* A tile pads its own text, so its fill sits inside it; the first tile's reaches left like a row's. */
.tick::before { inset-inline: calc(14px - var(--hover-bleed)); }
.ticker .ticks li:first-child .tick::before { left: calc(-1 * var(--hover-bleed)); }
.tick-teams { display: flex; align-items: baseline; gap: 6px; font-size: var(--s2); line-height: 1; }
.tick-at { font-family: var(--font-text); font-size: var(--s-1); color: var(--gray); }
.tick-st .st { font-size: var(--s0); }
.tick-st .st-sub { display: block; margin: 0; }
.tick-crew { font-size: var(--s-1); line-height: 1.35; overflow-wrap: anywhere; }
.tick-crew .dim { display: block; }
/* The lead sits right under the ticker, like a page head without its name. */
/* This week, in short: one link a line, rows divided like any list. */
.short-list { list-style: none; margin: 0; padding: 0; }
.short-list li + li { border-top: 1px solid var(--rule); }
.short-list a { display: block; padding: var(--sp-3) 0; text-decoration: none; text-wrap: pretty; }
.short-list strong { font-weight: 600; }
.short-list .fl { display: inline-block; width: 13px; height: 17px; margin-right: 6px; vertical-align: -0.15em; }
.short-list .hi { color: var(--flag-ink); font-weight: 600; }
.short-list .note { margin: calc(-1 * var(--sp-2)) 0 var(--sp-3); }
/* The game database band: the four ways in, each a word over one context figure. */
.ways { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4) var(--sp-5); }
/* Each way in is one link, its name over its figure, lit by the shared hover fill. */
.ways a { display: grid; gap: 2px; min-height: 44px; padding: var(--sp-2) 0; color: inherit; text-decoration: none; }
.ways .way-name { font-weight: 600; font-size: var(--s1); line-height: 1.25; text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.ways a:hover .way-name { text-decoration-color: currentColor; }
.ways .way-fig { font-size: var(--s-1); color: var(--gray); }
.about-links { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-5); }
.about-links a { position: relative; }
.about-links a::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
@media (max-width: 560px) {
  .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tick { width: 8.75rem; padding-inline: 12px; }
  .tick::before { inset-inline: calc(12px - var(--hover-bleed)); }
  .ticker .ticks li:first-child .tick { width: calc(8.75rem - 12px); }
}
/* ---------- Search (docs/design.md, Search and Find box) ---------- */
.findbox { display: grid; gap: 6px; max-width: 40rem; }
.findbox-label { font-size: var(--s-1); color: var(--gray); }
.findbox-row { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--rule); }
/* The underline turns 2px ink on focus without moving the row. */
.findbox-row:focus-within { border-bottom: 2px solid var(--ink); margin-bottom: -1px; }
.findbox-row .ico { color: var(--gray); }
.findbox input { flex: 1; min-width: 0; font: inherit; font-size: var(--s1); color: var(--ink); background: transparent; border: 0; border-radius: 0; padding: 8px 2px; min-height: 44px; }
.findbox input:focus { outline: none; }
/* The browser's own clear mark is left out: one calm row; Escape still clears. */
.findbox input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.findbox button { font: inherit; font-weight: 600; color: var(--ink); background: none; border: 0; min-height: 44px; padding: 0 2px; cursor: pointer; }
.search { display: grid; gap: var(--sp-6); min-width: 0; }
.head .findbox { margin-top: 18px; }
.find-fallback { margin: 0; color: var(--gray); max-width: 36em; }
.find-fallback[hidden] { display: none; }
.find-loading { margin: 0; font-size: var(--s-1); color: var(--gray); }
.find-loading[hidden] { display: none; }
.find-group { display: grid; gap: var(--sp-1); min-width: 0; }
.find-group[hidden] { display: none; }
.find-group h2 { font-size: var(--s0); color: var(--gray); font-weight: 500; padding-bottom: var(--sp-2); border-bottom: 2px solid var(--ink); }
.find-list { list-style: none; margin: 0; padding: 0; }
.find-list li { border-bottom: 1px solid var(--rule); }
/* Rows sit flush with the heading; the shared hover fill reaches past the text each side. */
.find-list a { display: grid; gap: 2px; padding: var(--sp-2) 0; min-height: 44px; text-decoration: none; color: var(--ink); }
.find-name { font-weight: 600; }
.find-line { font-size: var(--s-1); color: var(--gray); font-variant-numeric: tabular-nums; }
.find-more { justify-self: start; font: inherit; font-size: var(--s-1); font-weight: 600; color: var(--gray); background: none; border: 0; min-height: 44px; padding: 0 2px; cursor: pointer; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }
.find-more:hover { color: var(--ink); }
.find-more[hidden] { display: none; }

/* ---------- Team band (docs/design.md, Team band; owner 2026-11-02) ---------- */
/* A team page's head is a band in the team's mark tone, gutter to gutter of the window,
   words in its on-block tone (4.5:1, like the score bug's code blocks). The band paints past
   the column with border-image outset, which neither scrolls the page nor leaves a seam. */
.head.band { color: var(--tc-on); --focus: var(--tc-on); margin-top: calc(-1 * var(--sp-5)); padding-block: var(--sp-5); border-image: linear-gradient(var(--tc), var(--tc)) fill 0 / 0 / 0 100vmax; }
.head.band :is(.crumbs, .crumbs a, .season-line, .season-line b, .switch, h1 .code) { color: var(--tc-on); }
.head.band .crumbs a { text-decoration-color: currentColor; }
.head.band .switch select { color: var(--tc-on); border-bottom-color: var(--tc-on); }
.head.band .switch select option { color: #000; background: #fff; }
main > .head.band + * { margin-top: 0; }

/* ---------- Scores strip (docs/design.md, Scores strip; owner 2026-11-02) ---------- */
/* The week's games above the site bar on every page but the landing: codes, finals and
   kickoffs only, never a referee. One row that scrolls sideways on its own, with the edge
   fade; it scrolls away with the page, and the site bar stays pinned. */
.scores { background: linear-gradient(var(--rule), var(--rule)) left bottom / 100% 1px no-repeat var(--paper); }
.scores-inner { max-width: 960px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: stretch; }
.scores-week { flex: none; display: flex; align-items: center; padding-right: var(--sp-3); font-size: var(--s-1); font-weight: 700; text-decoration: none; white-space: nowrap; }
.scores-week:hover { text-decoration: underline; text-decoration-color: var(--gray); }
.scores-list { list-style: none; margin: 0; padding: 0; display: flex; flex: 1; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.scores-list::-webkit-scrollbar { display: none; }
.scores-list li { flex: none; display: flex; background: linear-gradient(var(--rule), var(--rule)) left center / 1px 70% no-repeat; }
.score { position: relative; isolation: isolate; display: grid; align-content: center; width: 6.75rem; min-height: 44px; padding: var(--sp-1) var(--sp-3); color: inherit; text-decoration: none; font-size: var(--s-1); line-height: 1.3; }
.score::before { content: ""; position: absolute; inset: 2px; z-index: -1; border-radius: var(--hover-radius); pointer-events: none; }
.score:hover::before { background: var(--soft); }
.score-st { color: var(--gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score-t { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-2); font-variant-numeric: tabular-nums; }
.score-t .code { font-size: var(--s0); line-height: 1.2; }
.score-t b { font-weight: 600; font-size: var(--s0); }
.score-t b.trail { color: var(--gray); font-weight: 500; }
.share-mode .scores { display: none; }
@media (prefers-reduced-motion: no-preference) { .score::before { transition: background-color 0.15s; } }
