/* TheLeagueStandings: the "Broadcast" design
   Dark scoreboard look. Mobile-first; the left rail appears at >=1024px. */

:root {
  --bg: #0E1116;
  --panel: #161B22;
  --panel-2: #1C222B;
  --line: #2A313B;
  --text: #E6EDF3;
  --muted: #9AA4B2;
  --accent: #FFB020;
  --accent-ink: #0E1116;
  --up: #3FB950;
  --down: #F85149;
  --focus: #7CC4FF;
  --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --rail-w: 232px;
  --tabbar-h: 60px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.45; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; font-variant-numeric: tabular-nums; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0 0 0.75rem; }
dl, dd { margin: 0; }
table { border-collapse: collapse; width: 100%; }
button { font: inherit; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 0.5rem; top: -3rem; background: var(--accent); color: var(--accent-ink); padding: 0.5rem 0.75rem; font-weight: 700; border-radius: 6px; z-index: 100; }
.skip-link:focus { top: 0.5rem; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 1rem; background: rgba(14,17,22,0.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--text); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.95rem; }
.brand:hover { text-decoration: none; }
.brand img { height: 28px; width: auto; flex: none; }
.brand small { display: block; font-size: 0.6rem; color: var(--muted); letter-spacing: 0.14em; font-weight: 600; }
.topbar .spacer { flex: 1; }
.topbar .pill { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0.25rem 0.6rem; white-space: nowrap; }

.rail { display: none; }
.main { padding: 1rem 1rem calc(var(--tabbar-h) + 1.5rem); max-width: 1180px; width: 100%; margin: 0 auto; min-width: 0; }

/* bottom tab bar (phone) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; height: var(--tabbar-h); display: grid; grid-template-columns: repeat(4, 1fr); background: #11151B; border-top: 1px solid var(--line); z-index: 30; padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: grid; place-items: center; align-content: center; gap: 2px; color: var(--muted); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.tabbar a:hover { text-decoration: none; color: var(--text); }
.tabbar a[aria-current="page"] { color: var(--accent); }
.glyph { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* phone menu: the rail's links in a drawer below the top bar */
.menu > summary { display: flex; align-items: center; gap: 0.4rem; min-height: 2.25rem; margin: -0.25rem 0; padding: 0 0.7rem 0 0.5rem; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer; list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { border-color: var(--accent); color: var(--accent); }
/* With no script, the open menu cannot close when focus leaves it, so it pushes the page down instead of covering it. */
@media (scripting: none) and (max-width: 1023px) {
  .topbar:has(.menu) { position: relative; }
  .topbar:has(.menu[open]) { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .topbar:has(.menu[open]) > .brand { justify-self: start; }
  .topbar:has(.menu[open]) > .spacer { display: none; }
  .menu[open] { grid-column: 1 / -1; }
  .menu[open] > summary { position: absolute; top: 0.6rem; right: 1rem; }
  .menu[open] > .rail { position: static; }
}
.menu > .rail { position: absolute; top: 100%; left: 0; right: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); align-items: start; gap: 1rem; max-height: calc(100vh - 3.5rem - var(--tabbar-h)); max-height: calc(100dvh - 3.5rem - var(--tabbar-h)); overflow-y: auto; overscroll-behavior: contain; padding: 1rem; background: #0B0E12; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,0.5); }
/* A phone on its side has little height, so the two bars take less of it. */
@media (max-width: 1023px) and (max-height: 500px) and (pointer: coarse) {
  :root { --tabbar-h: 40px; }
  .topbar { position: relative; }
  .tabbar .glyph { display: none; }
}

@media (min-width: 1024px) {
  .shell { grid-template-columns: var(--rail-w) 1fr; }
  .topbar { display: none; }
  .tabbar { display: none; }
  .rail { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 1.25rem 1rem; background: #0B0E12; border-right: 1px solid var(--line); }
  .main { padding: 1.75rem 2rem 3rem; }
}

.rail .brand { padding: 0 0.25rem; font-size: 1rem; flex-direction: column; align-items: flex-start; gap: 0.4rem; }
.rail .brand img { height: 32px; }
.rail-group { display: grid; gap: 2px; }
.rail-label { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); font-weight: 700; padding: 0 0.6rem; margin-bottom: 0.3rem; }
.sporticon { display: inline-block; height: 1.15em; width: 1.15em; margin-right: 0.4em; vertical-align: -0.2em; flex: none; }
.rail-label .sporticon { height: 1.5em; width: 1.5em; vertical-align: -0.4em; }
.rail a.item { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.5rem 0.6rem 0.5rem 1.1rem; border-radius: 8px; color: var(--text); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; transition: background-color 0.15s, color 0.15s; }
/* The play marker sits in the left padding, so the labels do not move when it shows.
   Padding wider than 1.1rem wraps "Men's College" onto two lines when its status says "Week 18". */
.rail a.item::before { content: ""; position: absolute; left: 0.4rem; top: 50%; width: 7px; height: 10px; margin-top: -5px; background: var(--muted); clip-path: polygon(0 0, 100% 50%, 0 100%); opacity: 0; transition: opacity 0.15s, background-color 0.15s; }
.rail a.item:hover { text-decoration: none; }
.rail a.item:focus-visible::before { opacity: 1; }
.rail a.item[aria-current="page"] { background: var(--panel-2); color: var(--accent); }
.rail a.item[aria-current="page"]::before { opacity: 1; background: var(--accent); }
/* On a touch screen the hover state stays on the item tapped last, so only a mouse gets it. */
@media (hover: hover) {
  .rail a.item:hover, .rail details summary:hover { background: var(--line); color: var(--text); }
  .rail a.item:hover::before { opacity: 1; }
  .rail a.item[aria-current="page"]:hover { color: var(--accent); }
}
/* High contrast mode removes the marker's background, so it uses a system color there. */
@media (forced-colors: active) {
  .rail a.item::before { forced-color-adjust: none; background: CanvasText; }
  .rail a.item[aria-current="page"]::before { background: Highlight; }
}
.rail a.item .status { font-size: 0.6rem; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; }
.rail a.item .status.live { color: var(--up); }
.rail details summary { cursor: pointer; list-style: none; padding: 0.5rem 0.6rem; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); border-radius: 8px; }
.rail details summary::-webkit-details-marker { display: none; }
.rail details summary::after { content: "+"; float: right; }
.rail details[open] summary::after { content: "–"; }
.rail details p { font-size: 0.74rem; color: var(--muted); padding: 0.25rem 0.6rem; }
.rail .rail-foot { margin-top: auto; display: grid; gap: 0.5rem; }
.rail .rail-foot a.cta { display: block; text-align: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; padding: 0.6rem; border-radius: 8px; }
.rail .rail-foot a.cta:hover { text-decoration: none; filter: brightness(1.05); }
.rail .rail-foot .fine { font-size: 0.68rem; color: var(--muted); padding: 0 0.25rem; }

/* version pill: links to release-notes.html; muted text on the page bg is about 7:1 */
.version { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0.15rem 0.6rem 0.15rem 0.5rem; line-height: 1.3; white-space: nowrap; }
.version::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.version:hover { color: var(--text); border-color: var(--accent); text-decoration: none; }
.rail .rail-foot .version { justify-self: start; }
.site-foot .version { align-self: center; }

/* ---------- common blocks ---------- */
.sample-banner { display: flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; margin-bottom: 1rem; }
.sample-banner .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

.site-notice { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 0.6rem 0.6rem 0.6rem 1rem; margin-bottom: 1rem; font-size: 0.88rem; }
.site-notice[hidden] { display: none; }
.site-notice p { margin: 0; align-self: center; }
.site-notice a { text-decoration: underline; }
.site-notice button { flex: none; width: 2rem; height: 2rem; background: none; border: 0; border-radius: 6px; color: var(--muted); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.site-notice button:hover { background: var(--panel-2); color: var(--text); }

.eyebrow { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); font-weight: 700; }
.display { font-weight: 900; text-transform: uppercase; letter-spacing: 0.01em; font-size: clamp(1.6rem, 5vw, 2.6rem); line-height: 1; overflow-wrap: break-word; }
.lede { color: var(--muted); max-width: 60ch; overflow-wrap: anywhere; }
.display + .lede, .display + .form-error { margin-top: 0.6rem; }
.keep { display: inline-block; }
@media (max-width: 399px) { .opt-xs { display: none; } }

.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.col-12 { grid-column: span 12; }
.col-6, .col-4, .col-8, .col-3 { grid-column: span 12; }
@media (min-width: 720px) { .col-6 { grid-column: span 6; } .col-4 { grid-column: span 6; } .col-3 { grid-column: span 6; } .col-8 { grid-column: span 12; } }
@media (min-width: 1024px) { .col-4 { grid-column: span 4; } .col-8 { grid-column: span 8; } .col-3 { grid-column: span 3; } }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; min-width: 0; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.card-head h2, .card-head h3 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; }
.card-head .more, .card .more { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.card-head .meta { font-size: 0.75rem; color: var(--muted); }

.badge { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 7px; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.02em; color: #fff; flex: none; }
.badge.lg { width: 3.5rem; height: 3.5rem; font-size: 1.1rem; border-radius: 12px; }
.badge.xl { width: 5rem; height: 5rem; font-size: 1.5rem; border-radius: 16px; }
/* Neutral monogram hues; not team colors */
.h1 { background: #3B5BDB; } .h2 { background: #C2410C; } .h3 { background: #0F766E; } .h4 { background: #7E22CE; }
.h5 { background: #B91C1C; } .h6 { background: #4D7C0F; } .h7 { background: #0369A1; } .h8 { background: #A16207; }
.h9 { background: #BE185D; } .h10 { background: #475569; } .h11 { background: #92400E; } .h12 { background: #1D4ED8; }
.h13 { background: #166534; } .h14 { background: #6D28D9; } .h15 { background: #9F1239; } .h16 { background: #155E75; }

/* movement chip: arrow + number + text, never color only */
.chg { display: inline-flex; align-items: center; gap: 0.25rem; font-weight: 800; font-size: 0.78rem; padding: 0.15rem 0.5rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); white-space: nowrap; }
.chg.up { color: var(--up); border-color: rgba(63,185,80,0.45); }
.chg.down { color: var(--down); border-color: rgba(248,81,73,0.45); }
.chg.same { color: var(--muted); border-color: transparent; background: none; }

.rec { font-weight: 900; font-size: 1.25rem; letter-spacing: -0.02em; }

/* mini standings list used on home + team page */
.mini { width: 100%; font-size: 0.85rem; }
.mini th, .mini td { padding: 0.45rem 0.4rem; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mini th { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; }
.mini th:first-child, .mini td:first-child, .mini th.team, .mini td.team { text-align: left; }
.mini td.team { width: 100%; white-space: normal; overflow-wrap: anywhere; }
.mini td.team a { color: var(--text); font-weight: 700; display: inline-flex; align-items: center; gap: 0.5rem; }
.mini tr:last-child td { border-bottom: 0; }
.mini .rank { color: var(--muted); font-weight: 700; }
.mini td.team .rank { display: inline-block; overflow-wrap: normal; }
.mini td:first-child:not(.team) a, .seasons td:first-child a { display: inline-block; min-width: 1.5rem; padding: 0.45rem 0.25rem; margin: -0.45rem -0.25rem; }
.mini .mini-conf { display: none; }
@media (max-width: 399px) {
  .mini th, .mini td { padding-left: 0.25rem; padding-right: 0.25rem; }
  .mini .mini-conf { display: block; color: var(--muted); }
}

/* ---------- standings page ---------- */
.league-picker { display: grid; gap: 0.75rem; margin-bottom: 1rem; }
.league-picker label { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.3rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 700; }
.league-picker select { font: inherit; font-weight: 700; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 0.55rem 0.7rem; width: 100%; }
@media (min-width: 720px) { .league-picker { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: end; } }
@media (min-width: 1024px) { .league-picker { grid-template-columns: 1fr 220px; } .league-picker .league-field { display: none; } }

.filmstrip { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.5rem; margin: 0.75rem 0 0.25rem; min-width: 0; }
.filmstrip .nav { width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); font-weight: 900; }
.filmstrip .nav:hover { text-decoration: none; border-color: var(--accent); }
.filmstrip .nav[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }
/* Leave room for the focus outline and keep the end chips out of the fade. */
.strip { display: flex; gap: 0.35rem; overflow-x: auto; scroll-snap-type: x proximity; padding: 0.375rem 1rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; min-width: 0; -webkit-mask-image: linear-gradient(to right, transparent, #000 1rem, #000 calc(100% - 1rem), transparent); mask-image: linear-gradient(to right, transparent, #000 1rem, #000 calc(100% - 1rem), transparent); }
.strip::-webkit-scrollbar { display: none; }
.strip > * { flex: none; min-width: 3rem; text-align: center; padding: 0.5rem 0.45rem; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.strip a { scroll-snap-align: center; }
.strip small { display: block; font-size: 0.66rem; color: var(--muted); font-weight: 600; letter-spacing: 0.06em; }
.strip .future { background: none; border-style: dashed; color: var(--muted); }
.strip a:hover { text-decoration: none; border-color: var(--accent); }
.strip a[aria-current="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.strip a[aria-current="true"] small { color: #3A2A00; }
.progress { height: 3px; background: var(--line); border-radius: 2px; margin: 0.25rem 2.75rem 0.75rem; overflow: hidden; }
.progress span { display: block; height: 100%; width: 50%; background: var(--accent); }
.asof { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; align-items: baseline; margin-bottom: 1rem; }
.asof h2 { font-size: 1.1rem; font-weight: 900; text-transform: uppercase; }
.asof .meta { color: var(--muted); font-size: 0.8rem; }

/* view tabs */
.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; overflow-x: auto; }
.tabs [role="tab"] { background: none; border: 0; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.76rem; padding: 0.6rem 0.8rem; cursor: pointer; white-space: nowrap; }
.tabs [role="tab"][aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
[role="tabpanel"][hidden] { display: none; }

.conf-head { display: flex; align-items: baseline; gap: 0.75rem; margin: 1.5rem 0 0.5rem; flex-wrap: wrap; }
.conf-head h2 { font-size: 1.35rem; font-weight: 900; text-transform: uppercase; }
.conf-head .meta { color: var(--muted); font-size: 0.8rem; }
.division { margin-bottom: 1rem; }
.division h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 800; padding: 0.5rem 0.25rem; display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; }
.division h3 a { font-size: 0.7rem; letter-spacing: 0.1em; flex: none; white-space: nowrap; padding: 0.5rem 0.25rem; margin: -0.5rem -0.25rem; }

/* The standings table keeps real <table> semantics.
   Under 720px each <tr> is laid out as a card; from 720px it is a normal row. */
.standings { width: 100%; }
.standings caption { text-align: left; font-size: 0.78rem; color: var(--muted); padding: 0 0.25rem 0.5rem; }
.standings thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.standings tbody { display: grid; gap: 0.6rem; }
.standings tr { position: relative; display: flex; flex-wrap: wrap; column-gap: 0.5rem; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 0.8rem 0.75rem; }
/* Keep the stats below the team even when a long name or record needs extra room. */
.standings tr::after { content: ""; order: 1; flex: 0 0 100%; }
.standings td { display: block; min-width: 0; }
/* On the card the rank sits as a tag on the top edge, outside the flow, so the 8 stats form a 4x2 grid. */
.standings td.c-rank { position: absolute; top: -0.6rem; left: 0.8rem; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 0 0.5rem; font-size: 0.68rem; line-height: 1.1rem; font-weight: 800; color: var(--muted); }
.standings td.c-rank::before { content: attr(data-label) " "; font-size: inherit; letter-spacing: 0.08em; text-transform: uppercase; display: inline; }
.standings td.c-team { flex: 1 1 0; font-weight: 800; font-size: 0.95rem; line-height: 1.15; }
.standings td.c-team .tm { display: flex; align-items: center; gap: 0.6rem; }
.standings td.c-team a { color: var(--text); min-width: 0; overflow-wrap: break-word; }
.standings td.c-rec { flex: none; text-align: right; }
.standings td.c-rec .rec { font-size: 1.4rem; white-space: nowrap; }
.standings td.c-chg { flex: none; }
.standings td.c-stat { order: 2; flex: 1 0 21%; margin-top: 0.4rem; background: var(--bg); border-radius: 6px; padding: 0.35rem 0.5rem; font-weight: 700; font-size: 0.85rem; }
.standings td.c-stat::before { content: attr(data-label); display: block; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 700; }
.standings tbody { padding-top: 0.4rem; }

@media (min-width: 720px) {
  .standings { --cell-pad-x: 0.55rem; }
  .standings thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .standings tbody { display: table-row-group; }
  .standings tr { display: table-row; position: static; background: none; border: 0; border-radius: 0; padding: 0; }
  .standings tr::after { content: none; }
  .standings tbody { padding-top: 0; }
  .standings td.c-rank { position: static; background: none; border-width: 0 0 1px; border-radius: 0; font-size: 0.88rem; line-height: inherit; }
  .standings tbody tr:nth-child(odd) td { background: rgba(255,255,255,0.025); }
  .standings td, .standings th { display: table-cell; padding: 0.55rem var(--cell-pad-x); border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; font-size: 0.88rem; }
  .standings th { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 800; border-bottom: 2px solid var(--line); }
  .standings th.c-team, .standings td.c-team { text-align: left; width: 100%; white-space: normal; }
  .standings td.c-team { font-size: 0.9rem; }
  .standings td.c-rank, .standings th.c-rank { text-align: center; color: var(--muted); font-weight: 800; width: 2.5rem; }
  .standings td.c-rec .rec { font-size: 1rem; }
  .standings td.c-stat, .standings td.c-rank { background: none; border-radius: 0; padding: 0.55rem var(--cell-pad-x); font-weight: 600; }
  .standings td.c-stat::before, .standings td.c-rank::before { content: none; }
  .standings td.c-stat.gb { color: var(--muted); }
  .standings td.c-chg { text-align: right; }
  /* Fixed widths keep each stat column in the same place in every table on a page. The team takes the rest. */
  .standings { table-layout: fixed; }
  .standings th.c-team { width: auto; }
  .standings th:nth-child(3) { width: calc(3.1rem + 2 * var(--cell-pad-x)); }
  .standings th:nth-child(4), .standings th:nth-child(6), .standings th:nth-child(7) { width: calc(2.15rem + 2 * var(--cell-pad-x)); }
  .standings th:nth-child(5) { width: calc(1.7rem + 2 * var(--cell-pad-x)); }
  .standings th:nth-child(8), .standings th:nth-child(9), .standings th:nth-child(11) { width: calc(2.35rem + 2 * var(--cell-pad-x)); }
  .standings th:nth-child(10) { width: calc(2.2rem + 2 * var(--cell-pad-x)); }
  .standings th:nth-child(12) { width: calc(2.7rem + 2 * var(--cell-pad-x)); }
}
@media (min-width: 720px) and (max-width: 799px) { .standings { --cell-pad-x: 0.45rem; } .standings th.c-rank { width: 2rem; } }

.legend { font-size: 0.74rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-top: 0.75rem; }
.legend b { color: var(--text); }
.legend a { display: inline-block; padding: 0.3rem 0; }

/* ---------- team page ---------- */
.hero { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 480px) { .hero { grid-template-columns: auto minmax(0, 1fr); } }
@media (max-width: 479px) { .hero .badge.xl { width: 3.5rem; height: 3.5rem; font-size: 1.1rem; border-radius: 12px; } }
.hero .rec-big { font-size: clamp(3rem, 12vw, 5.5rem); font-weight: 900; line-height: 0.95; letter-spacing: -0.04em; }
.hero .sub { color: var(--muted); font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-top: 0.4rem; }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin-top: 1rem; }
@media (min-width: 720px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 0.6rem 0.75rem; min-width: 0; }
.stat .k { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 700; }
.stat .v { font-size: 1.2rem; font-weight: 900; }

.weeks { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.6rem, 1fr)); gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.weeks li { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem; display: grid; align-content: start; gap: 0.15rem; border-top-width: 4px; min-width: 0; }
.weeks li.w { border-top-color: var(--up); }
.weeks li.l { border-top-color: var(--down); }
.weeks li.bye { border-top-color: var(--line); color: var(--muted); }
.weeks .wk { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 700; }
.weeks .res { font-weight: 900; font-size: 1rem; white-space: nowrap; }
.weeks .res .w { color: var(--up); } .weeks .res .l { color: var(--down); }
.weeks .opp { font-size: 0.78rem; font-weight: 700; overflow-wrap: anywhere; }
.weeks .pos { font-size: 0.7rem; color: var(--muted); }

.seasons { width: 100%; font-size: 0.85rem; }
.seasons th, .seasons td { padding: 0.45rem 0.5rem; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.seasons th { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; }
.seasons th:first-child, .seasons td:first-child, .seasons th.l, .seasons td.l { text-align: left; }
.seasons td.l, .seasons td.wrap { white-space: normal; }
.seasons td { vertical-align: top; }
.seasons td.l { width: 100%; }
.seasons .bar { display: inline-block; height: 8px; background: var(--accent); border-radius: 2px; vertical-align: middle; }
.seasons-wrap { overflow-x: auto; }
.seasons thead th { position: sticky; top: 0; background: var(--panel); }
@media (max-width: 719px) { .seasons .opt { display: none; } }

.crumbs { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.crumbs a { color: var(--muted); }
.crumbs > span { min-width: 0; overflow-wrap: anywhere; }
.crumbs span[aria-hidden] { opacity: 0.6; }

/* ---------- alerts ---------- */
.steps { display: grid; gap: 1rem; }
.step .num { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 900; font-size: 0.8rem; margin-right: 0.5rem; flex: none; }
.step h2 { display: flex; align-items: center; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; margin-bottom: 0.25rem; }
.step .hint { color: var(--muted); font-size: 0.82rem; margin-bottom: 0.75rem; }
.follow-part { border-top: 1px solid var(--line); padding-top: 0.75rem; margin-top: 1rem; }
.follow-part h3 { font-size: 0.88rem; font-weight: 800; margin-bottom: 0.25rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
.checks { display: grid; gap: 0.5rem; }
@media (min-width: 560px) { .checks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .checks.three { grid-template-columns: repeat(3, 1fr); } }
.check { display: flex; gap: 0.6rem; align-items: flex-start; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 0.6rem 0.7rem; cursor: pointer; }
.check:has(input:checked) { border-color: var(--accent); }
.check input { width: 1.1rem; height: 1.1rem; margin: 0.15rem 0 0; accent-color: var(--accent); flex: none; }
.check .t { display: flex; font-weight: 800; font-size: 0.88rem; }
.check .sporticon { margin-top: 0.15em; }
.sub-group h3 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 800; margin: 0.75rem 0 0.4rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { display: inline-flex; align-items: center; gap: 0.4rem; max-width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 1rem; padding: 0 0 0 0.35rem; font-size: 0.8rem; font-weight: 700; }
.chip .t { min-width: 0; padding: 0.3rem 0; overflow-wrap: anywhere; }
.chip button { background: none; border: 0; color: var(--muted); cursor: pointer; font-weight: 900; padding: 0; min-width: 2rem; min-height: 2rem; line-height: 1; }
.chip button:hover { color: var(--down); }
.search { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
input[type="search"], input[type="email"], input[type="text"] { font: inherit; width: 100%; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 0.65rem 0.75rem; }
input::placeholder { color: #7D8794; }
.suggest { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.suggest li { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.5rem 0.7rem; font-size: 0.85rem; }
.suggest li .lg { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.suggest li > span { min-width: 0; overflow-wrap: anywhere; }
.suggest li button { background: none; border: 1px solid var(--line); color: var(--accent); border-radius: 6px; font-weight: 800; font-size: 0.72rem; padding: 0.2rem 0.5rem; min-height: 1.5rem; cursor: pointer; text-transform: uppercase; letter-spacing: 0.08em; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.82rem; padding: 0.8rem 1.2rem; border-radius: 8px; border: 0; cursor: pointer; }
.btn:hover { filter: brightness(1.05); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.consent { font-size: 0.78rem; color: var(--muted); }
.summary-box { background: var(--bg); border: 1px dashed var(--line); border-radius: 8px; padding: 0.75rem; font-size: 0.85rem; }
.summary-box b { color: var(--accent); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.timeline li { display: grid; grid-template-columns: 0.75rem 1fr; gap: 0.6rem; align-items: start; }
.timeline .dot { width: 0.75rem; height: 0.75rem; margin-top: 0.3rem; border-radius: 50%; border: 2px solid var(--accent); }
.timeline .ttl { font-weight: 800; font-size: 0.9rem; }
.timeline .d { color: var(--muted); font-size: 0.8rem; }
.confirm-mock { background: var(--bg); border: 1px solid var(--up); border-radius: var(--radius); padding: 1rem; display: grid; gap: 0.5rem; overflow-wrap: anywhere; }
.confirm-mock .ok { color: var(--up); font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.74rem; }
.alerts-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.alerts-side > .next-card { margin-top: 0; }
/* The summary is in the form after the picker, so it is read before the submit button. A wide screen moves it to the side column. */
@media (min-width: 1024px) {
  .alerts-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .alerts-layout > .steps { grid-column: 1 / -1; grid-template-columns: subgrid; column-gap: inherit; align-items: start; }
  .alerts-layout > .steps > :not(.alerts-summary) { grid-column: 1; }
  .alerts-summary { grid-column: 2; grid-row: 1; }
  .alerts-side { grid-column: 2; }
}

/* ---------- release notes ---------- */
.release { margin-top: 1rem; }
.release .card-head { align-items: center; }
.release .ver { font-size: 1.3rem; font-weight: 900; letter-spacing: -0.01em; text-transform: none; }
.release-cols { display: grid; gap: 1rem; }
@media (min-width: 720px) { .release-cols { grid-template-columns: 1fr 1fr; } }
.release h3 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 800; margin-bottom: 0.4rem; }
.release ul { margin: 0; padding-left: 1.1rem; font-size: 0.88rem; display: grid; gap: 0.35rem; }

/* ---------- footer ---------- */
.site-foot { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.76rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.25rem; }
.site-foot a { color: var(--muted); }
.site-foot a:not(.version) { display: inline-block; text-decoration: underline; padding: 0.3rem 0; }
.site-foot .version { min-height: 1.5rem; }

/* ---------- home ---------- */
.hero-home { padding: 1.25rem 1rem; background: linear-gradient(135deg, #161B22 0%, #0E1116 70%); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 0.75rem; }
@media (min-width: 720px) { .hero-home { padding: 2rem; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: end; } }
.hero-home .display { max-width: 22ch; }
.hero-home .ticker { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.hero-home .ticker a { font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.65rem; color: var(--text); }
.hero-home .ticker a:hover { border-color: var(--accent); text-decoration: none; }
.hero-home .ticker a .s { display: inline-block; white-space: nowrap; color: var(--up); margin-left: 0.3rem; }
.hero-home .ticker a .s.off { color: var(--muted); }
.movers { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.movers li { display: grid; grid-template-columns: auto 1fr auto; gap: 0.6rem; align-items: center; padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
.movers li:last-child { border-bottom: 0; }
.movers .n { font-weight: 800; font-size: 0.9rem; }
.movers .n small { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 1.5rem 0 0.75rem; flex-wrap: wrap; }
.section-title h2 { font-size: 1.1rem; text-transform: uppercase; font-weight: 900; letter-spacing: 0.04em; }
.section-title .meta { font-size: 0.76rem; color: var(--muted); }
.offseason { color: var(--muted); font-size: 0.8rem; display: flex; align-items: center; gap: 0.4rem; }
.offseason::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex: none; }
.offseason.live::before { background: var(--up); }

/* ---------- site additions to the Broadcast design ---------- */
.honeypot { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.rail .brand small { display: block; }
.tabs a { border-bottom: 3px solid transparent; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.76rem; padding: 0.6rem 0.8rem; white-space: nowrap; }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.league-picker { margin-top: 0.75rem; }
.league-picker.season-only { margin: 0; min-width: 160px; display: block; }
.display + .league-picker.season-only { margin-top: 0.75rem; }
@media (min-width: 720px) { .display + .league-picker.season-only { max-width: 220px; } }
@media (min-width: 1024px) { .league-picker:not(.season-only) { grid-template-columns: 220px; } }
.jump { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.5rem 0 1rem; }
.jump a { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; border: 1px solid var(--line); border-radius: 999px; padding: 0.25rem 0.6rem; color: var(--text); }
.jump a:hover { border-color: var(--accent); text-decoration: none; }
.jump a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
/* Keep the first standings group close to the filters on a phone. */
@media (max-width: 719px), (max-width: 1023px) and (max-height: 500px) and (pointer: coarse) {
  .jump-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -1rem; padding: 0.375rem 1rem; -webkit-mask-image: linear-gradient(to right, transparent, #000 1rem, #000 calc(100% - 1rem), transparent); mask-image: linear-gradient(to right, transparent, #000 1rem, #000 calc(100% - 1rem), transparent); }
  .jump-row::-webkit-scrollbar { display: none; }
  .jump-row a { flex: none; white-space: nowrap; }
}
.strip:focus-within, .jump-row:focus-within { -webkit-mask-image: none; mask-image: none; }
@media (forced-colors: active) {
  .strip, .jump-row { -webkit-mask-image: none; mask-image: none; scrollbar-width: auto; }
  .strip::-webkit-scrollbar, .jump-row::-webkit-scrollbar { display: block; }
}
.division h3 a { text-transform: uppercase; }
.division { scroll-margin-top: 4rem; }
.division h3, #jump { scroll-margin-top: 4rem; }
.division h3 .to-jump { margin-left: auto; }
@media (max-width: 719px) { .division h3 { flex-wrap: wrap; } }
@media (min-width: 720px) { .only-phone, .division h3 .to-jump { display: none; } }
.legend { margin-top: 0.75rem; }
.card .eyebrow + .rec { margin: 0.35rem 0; }
.grid .lede, .card .lede { font-size: 0.85rem; }
.cta-card { margin-top: 1rem; }
.next-card { margin-top: 1rem; }
.mini td.team a[aria-current="page"], .mini tr.me td { color: var(--accent); }
.mini tr.me td { background: rgba(255,176,32,0.08); }
.mini td.win { color: var(--up); font-weight: 800; }
.mini td.loss { color: var(--down); font-weight: 800; }
.mini .badge { width: 1.6rem; height: 1.6rem; font-size: 0.56rem; border-radius: 6px; }
.movers .n a { color: var(--text); }
.scroll-box { overflow-x: auto; }
.scroll-box thead th { position: sticky; top: 0; background: var(--panel); }
@media (min-width: 720px) {
  .scroll-box, .seasons-wrap { max-height: 520px; overflow-y: auto; }
  .scroll-box.tall { max-height: 640px; }
}
/* Let the page handle vertical scrolling on a short touchscreen. */
@media (max-width: 1023px) and (max-height: 500px) and (pointer: coarse) {
  .scroll-box, .scroll-box.tall, .seasons-wrap { max-height: none; }
}
@media (max-width: 719px) { .schedule .opt { display: none; } }
.game-tag { margin-left: 0.25rem; padding: 0 0.35rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.team-grid { margin-top: 1rem; }
.weeks li.t { border-top-color: var(--muted); }
.weeks .res .t { color: var(--muted); }
.history { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; font-size: 0.88rem; }
.history li { display: grid; gap: 0 0.75rem; }
@media (min-width: 560px) { .history li { grid-template-columns: 12rem minmax(0, 1fr); } }
.membership td.l { white-space: normal; color: var(--muted); }
.team-search { margin: 1rem 0 0.5rem; max-width: 34rem; }
.directory { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.4rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .directory { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .directory { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.directory li[hidden] { display: none; }
.directory a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 0.6rem; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem 0.7rem; color: var(--text); min-height: 3rem; }
.directory a:has(> .badge) { grid-template-columns: auto minmax(min-content, 1fr) auto; }
.directory a:hover { border-color: var(--accent); text-decoration: none; }
.directory .t { font-weight: 800; font-size: 0.88rem; overflow-wrap: break-word; }
.directory .lg, .chip .lg, .suggest .lg { font-size: 0.66rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; white-space: nowrap; }
.directory .lg { white-space: normal; text-align: right; }
/* The divisions of a conference sit under it. */
.directory .directory { grid-template-columns: minmax(0, 1fr); margin: 0.4rem 0 0.4rem 0.6rem; padding-left: 0.6rem; border-left: 2px solid var(--line); }
.directory .directory a { min-height: 2.5rem; background: none; }
.chip .lg, .suggest .lg { white-space: normal; }
@media (max-width: 399px) { .chip .lg { display: block; } }
@media (max-width: 479px) {
  .directory a:has(> .badge) { grid-template-columns: auto minmax(0, 1fr); }
  .directory .badge { grid-row: span 2; }
  .directory a:has(> .badge) .lg { grid-column: 2; text-align: left; }
}
.alerts-layout { margin-top: 1.25rem; }
.sub-group { border-top: 1px solid var(--line); padding-top: 0.5rem; margin-top: 0.5rem; }
.sub-group summary { cursor: pointer; font-weight: 800; font-size: 0.88rem; padding: 0.35rem 0; }
.sub-group summary .s { color: var(--muted); font-size: 0.74rem; font-weight: 600; margin-left: 0.35rem; white-space: nowrap; }
.suggest[hidden] { display: none; }
.suggest .badge, .chip .badge { width: 1.4rem; height: 1.4rem; font-size: 0.5rem; border-radius: 5px; display: inline-grid; vertical-align: middle; margin-right: 0.4rem; }
.chip .badge { margin-right: 0; }
.chips:empty { display: none; }
.form-error { color: var(--down); font-weight: 700; font-size: 0.88rem; }
.step .btn { margin-top: 0.25rem; }
.steps > .btn { justify-self: start; }
.consent { margin-top: 0.75rem; }
.confirm-mock { margin: 1.25rem 0; max-width: 40rem; }
.confirm-mock .hint { color: var(--muted); font-size: 0.82rem; }
.confirm-actions { display: flex; gap: 0.5rem; }
.link-form { display: grid; gap: 0.75rem; max-width: 28rem; margin-top: 1rem; }
.contact-form { display: grid; gap: 1rem; max-width: 40rem; margin-top: 1rem; }
.contact-form .field { display: grid; gap: 0.3rem; font-size: 0.85rem; font-weight: 700; }
.contact-form .btn { justify-self: start; }
.contact-form textarea { font: inherit; width: 100%; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 0.65rem 0.75rem; resize: vertical; }
.contact-form .field input, .contact-form .field textarea { font-size: 1rem; font-weight: 400; }
.contact-form .form-error { margin: 0; }
.manage-link { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.82rem; }
.leave-note { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.82rem; }
.prose { max-width: 68ch; margin-top: 1rem; }
.prose h2 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; margin: 1.5rem 0 0.5rem; }
.prose ul { padding-left: 1.2rem; display: grid; gap: 0.35rem; margin: 0 0 0.75rem; }
h1:focus { outline: none; }
.shell { grid-template-columns: minmax(0, 1fr); }
.shell > div { min-width: 0; }
@media (min-width: 1024px) { .shell { grid-template-columns: var(--rail-w) minmax(0, 1fr); } }
.badge { white-space: nowrap; overflow: hidden; min-width: max-content; padding: 0 0.2em; }
.rail a.item .status { white-space: nowrap; font-size: 0.56rem; letter-spacing: 0.06em; }
/* A phone on its side shows few rows, so the blocks above the standings take less height. */
@media (max-width: 1023px) and (max-height: 500px) and (pointer: coarse) {
  .main { padding-top: 0.5rem; }
  .site-notice { margin-bottom: 0.5rem; padding-top: 0.3rem; padding-bottom: 0.3rem; }
  .crumbs { margin-bottom: 0.35rem; }
  .display { font-size: 1.5rem; }
  .league-picker { margin: 0.4rem 0 0.5rem; }
  .league-picker:not(.season-only) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .league-picker label { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.5rem; }
  .league-picker select { padding-top: 0.35rem; padding-bottom: 0.35rem; }
  .filmstrip { margin: 0.4rem 0 0.15rem; }
  .progress, .asof, .tabs { margin-bottom: 0.4rem; }
  .tabs a { padding-top: 0.4rem; padding-bottom: 0.4rem; }
  .conf-head { margin: 0.5rem 0 0.25rem; }
}

/* ---------- admin ---------- */
.admin-tabs { display: flex; gap: 0.25rem; overflow-x: auto; padding: 0.4rem 1rem; border-bottom: 1px solid var(--line); background: #11151B; }
.admin-tabs a { flex: none; padding: 0.4rem 0.65rem; border-radius: 8px; color: var(--muted); font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.admin-tabs a:hover { color: var(--text); text-decoration: none; }
.admin-tabs a[aria-current="page"] { background: var(--panel-2); color: var(--accent); }
@media (min-width: 1024px) { .admin-tabs { display: none; } .shell .topbar .pill, .shell .topbar form { display: none; } }
.topbar .brand { flex: none; }
.topbar .btn { white-space: nowrap; }
@media (max-width: 419px) { .topbar .pill { display: none; } }
.admin-main { padding-bottom: 2rem; }
.admin-section { margin-top: 1.25rem; }
.admin-section:not(.card) > .card-head { margin-bottom: 0; }
.admin-section .stat-row { margin-top: 0.6rem; }
.admin-small { padding: 0.45rem 0.7rem; font-size: 0.7rem; }
.admin-empty, .admin-muted { color: var(--muted); }
.admin-empty { margin: 0; }
.stat .v.admin-v-small { font-size: 0.86rem; font-weight: 700; }
.admin-display-small { font-size: clamp(1.1rem, 4vw, 1.6rem); text-transform: none; overflow-wrap: anywhere; }
.admin-title { font-size: 1.3rem; font-weight: 900; text-transform: uppercase; margin: 0.25rem 0 0.75rem; }
.admin-attention, .admin-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
/* Keep the hidden jobs header from contributing to the page width. */
.admin-table-wrap { overflow-x: auto; position: relative; }
.admin-table th, .admin-table td { padding: 0.5rem 0.6rem; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.84rem; vertical-align: top; }
.admin-table th { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; white-space: nowrap; }
.admin-table tbody th { width: 14rem; }
.admin-table tbody th[scope="row"] + td { overflow-wrap: anywhere; }
@media (max-width: 719px) {
  .admin-table:not(:has(thead)) tbody th[scope="row"], .admin-table:not(:has(thead)) tbody th[scope="row"] + td { display: block; width: auto; }
  .admin-table:not(:has(thead)) tbody th[scope="row"] { white-space: normal; border-bottom: 0; padding-bottom: 0; }
}
.admin-table tr:last-child td, .admin-table tr:last-child th { border-bottom: 0; }
.admin-table .n { text-align: right; white-space: nowrap; }
/* Under 720px each row of an admin table is a block, and each cell shows its column name before the value. */
@media (max-width: 719px) {
  .admin-table:has(thead) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .admin-table:has(thead), .admin-table:has(thead) tbody, .admin-table:has(thead) tr { display: block; }
  .admin-table:has(thead) tr { padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
  .admin-table:has(thead) tr:first-child { padding-top: 0; }
  .admin-table:has(thead) tr:last-child, .admin-table:has(thead) tr.admin-job-has-report { padding-bottom: 0; border-bottom: 0; }
  .admin-table:has(thead) td, .admin-table:has(thead) td.n { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.2rem 0; border: 0; text-align: left; white-space: normal; overflow-wrap: anywhere; }
  .admin-table:has(thead) td[data-label]::before { content: attr(data-label); content: attr(data-label) / ""; flex: none; width: 6.5rem; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; overflow-wrap: normal; }
  .admin-table:has(thead) td[colspan] { display: block; }
  .admin-table:has(thead) td > * { min-width: 0; }
  .admin-table:has(thead) td > .st { flex: none; }
}
.admin-flag { color: var(--down); font-weight: 800; }
.admin-message { min-width: 5rem; }
.admin-message summary { cursor: pointer; color: var(--accent); font-weight: 700; padding: 0.25rem 0; }
.admin-message pre, .admin-log { margin: 0.4rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.74rem; color: var(--muted); max-width: 60ch; }
.admin-log { max-width: none; }
.admin-table tr.admin-job-has-report td { border-bottom: 0; }
.admin-job-report td { padding-top: 0; }
.admin-job-report p { margin: 0; }
.admin-job-report progress { display: block; width: min(100%, 24rem); margin-top: 0.4rem; accent-color: var(--accent); }
.admin-job-lines { margin: 0.4rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.78rem; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.admin-pager { display: flex; gap: 1rem; align-items: center; justify-content: flex-end; margin-top: 0.75rem; font-size: 0.82rem; color: var(--muted); }
.admin-pager a { padding: 0.4rem 0.25rem; }
.admin-filter { display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; align-items: center; margin-top: 1rem; }
@media (max-width: 719px) {
  .admin-filter { display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .admin-filter > .btn, .admin-filter > noscript { grid-column: 1 / -1; justify-self: start; }
}
.admin-section .admin-filter { margin-top: 0; }
.admin-filter label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; }
.admin-filter select { font: inherit; font-size: 0.86rem; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 0.45rem 0.6rem; }
.admin-filter input { width: min(100%, 18rem); padding: 0.45rem 0.6rem; font-size: 0.86rem; }
.st { display: inline-block; padding: 0.1rem 0.45rem; border-radius: 999px; font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; border: 1px solid currentColor; white-space: nowrap; }
.st.ok { color: var(--up); }
.st.warn { color: var(--accent); }
.st.bad { color: var(--down); }
.admin-sign-in { display: grid; gap: 1rem; width: min(100% - 2rem, 26rem); margin: 0 auto; padding: 3rem 0; }
.admin-form { display: grid; gap: 0.6rem; margin-top: 0.75rem; }
.admin-form label { font-size: 0.74rem; color: var(--muted); font-weight: 700; }
.admin-form textarea { font-family: ui-monospace, Consolas, monospace; font-size: 0.8rem; line-height: 1.45; width: 100%; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 0.65rem 0.75rem; resize: vertical; }
/* Avoid iOS focus zoom on controls that inherit small label text. */
@media (pointer: coarse) { .league-picker select, .admin-filter select, .admin-filter input, .admin-form textarea { font-size: 1rem; } }
.html-editor { display: grid; gap: 0.4rem; }
.html-editor-bar { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.html-editor-bar[hidden], .html-editor-area[hidden], .html-editor textarea[hidden] { display: none; }
.html-editor-bar button { font: inherit; font-size: 0.75rem; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 0.3rem 0.6rem; cursor: pointer; }
.html-editor-bar button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.html-editor-bar button:disabled { opacity: 0.45; cursor: default; }
.html-editor-area { min-height: 12rem; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 0.65rem 0.75rem; line-height: 1.5; overflow-wrap: anywhere; }
.html-editor-area p, .html-editor-area div { margin: 0 0 0.75rem; }
.html-editor-area ul, .html-editor-area ol { margin: 0 0 0.75rem; padding-left: 1.5rem; }
.html-editor-area a { color: var(--accent); }
.admin-email-preview { display: block; width: 100%; height: 44rem; margin: 0.75rem 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.admin-qr { background: #fff; padding: 0.5rem; border-radius: 8px; margin: 0.5rem 0 0.75rem; }
.admin-secret code { overflow-wrap: anywhere; color: var(--accent); }
