/* ---- Fonts (self-hosted, SIL OFL; no third-party requests) ------------------------------ */
@font-face { font-family: 'Space Grotesk'; font-weight: 500; font-display: swap; src: url(../fonts/space-grotesk-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 700 800; font-display: swap; src: url(../fonts/space-grotesk-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 400 500; font-display: swap; src: url(../fonts/manrope-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url(../fonts/manrope-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url(../fonts/manrope-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 800 900; font-display: swap; src: url(../fonts/manrope-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Oswald'; font-weight: 500; font-display: swap; src: url(../fonts/oswald-latin-500-normal.woff2) format('woff2'); }

/* ---- Cold Front design tokens (DaveBomb Network, cyan palette) --------------------------- */
:root {
  /* Theme-independent */
  --ink: #061318; --grad: linear-gradient(135deg, #19b4d0 0%, #0a7f99 55%, #22303d 100%);
  --rail-w: 240px; --radius: 20px; --radius-sm: 12px;
}
/* Dark theme (default) */
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  /* "Latest" ticker: soft red label, faint red blush behind the scrolling headlines */
  --tk-red: #e8606a; --tk-on: #ffffff; --tk-band: rgba(232, 96, 106, .07); --tk-pill: rgba(232, 96, 106, .10); --tk-pill-line: rgba(232, 96, 106, .24); --tk-kick: #f08890;
  --bg: #0b0e11; --surface: #141a1f; --surface2: #1c232a; --line: #27313a;
  --text: #eef3f7; --muted: #9aa8b6; --faint: #7f8d9b; --me: #7fe3f3; --accent: #5ad6ec; --bad: #ff7b6e;
  --brand: #5ad6ec; --brand-dark: #8ee5f3; --on-brand: #061318; --gold: #5ad6ec; --gold-text: #5ad6ec;
  --strong: #ffffff; --prose: #dbe4ec; --lead-text: rgba(255,255,255,.86); --link: #7fe3f3;
  --lead-from: #16313a; --lead-to: #141a1f; --strip: transparent;
  --good: #4fd18b; --warn: #ff7b6e; --warn2: #ffb08a;
  --mine-row: #153038; --mine-tint: rgba(90, 214, 236, .09);
  --legend: #b9c6d2; --sel-ring: #ffffff;
  --tip-bg: #10161b; --tip-line: #2f3b46; --shadow: rgba(0, 0, 0, .5);
  --nav-bg: rgba(20, 26, 31, .9); --nav-on: #eef3f7;
  --chart-dim: #56636f; --chart-dim-text: #9aa8b6; --track-rest: #27313a; --track-rest-fg: #9aa8b6;
  --mast-text: #eef3f7; --mast-muted: #9aa8b6; --mast-field: #1c232a; --mast-line: #27313a; --rail-bg: #101418;
  --n-bg: #101418; --n-text: #eef3f7; --n-muted: #9aa8b6; --n-pill: #1c232a; --n-rule: #5ad6ec;
}
/* Light theme */
:root[data-theme="light"] {
  color-scheme: light;
  --tk-red: #cf3f4c; --tk-on: #ffffff; --tk-band: rgba(207, 63, 76, .05); --tk-pill: #fff6f6; --tk-pill-line: rgba(207, 63, 76, .20); --tk-kick: #b8323f;
  --bg: #eef1f4; --surface: #ffffff; --surface2: #e7ecf1; --line: #dbe2e9;
  --text: #121820; --muted: #586575; --faint: #66727f; --me: #0a6f86; --accent: #0a849f; --bad: #c0352a;
  --brand: #0a849f; --brand-dark: #086a80; --on-brand: #ffffff; --gold: #0a849f; --gold-text: #0a6f86;
  --strong: #05080d; --prose: #1d2834; --lead-text: rgba(255,255,255,.9); --link: #0a6f86;
  --lead-from: #e3f4f8; --lead-to: #ffffff; --strip: transparent;
  --good: #17834a; --warn: #c0352a; --warn2: #b4530f;
  --mine-row: #dcf0f5; --mine-tint: rgba(10, 132, 159, .09);
  --legend: #3b4a5c; --sel-ring: #121820;
  --tip-bg: #ffffff; --tip-line: #c8d2de; --shadow: rgba(15, 23, 34, .16);
  --nav-bg: rgba(255, 255, 255, .92); --nav-on: #121820;
  --chart-dim: #b3c0ce; --chart-dim-text: #5b6b7d; --track-rest: #d5dde7; --track-rest-fg: #3b4a5c;
  --mast-text: #121820; --mast-muted: #586575; --mast-field: #e7ecf1; --mast-line: #dbe2e9; --rail-bg: #ffffff;
  --n-bg: #ffffff; --n-text: #121820; --n-muted: #586575; --n-pill: #e7ecf1; --n-rule: #0a849f;
}
:root {
  --display: 'Space Grotesk', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --body: 'Manrope', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 var(--body); }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
main.wrap { padding-bottom: 56px; min-height: 60vh; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: 8px 12px; z-index: 99; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---- Masthead -------------------------------------------------------------------------- */
header.mast { background: linear-gradient(180deg, #0f1622 0%, #0b111a 100%); border-bottom: 3px solid var(--brand); color: var(--mast-text); }
.mast-top { display: flex; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 10px; }
.logo { width: 56px; height: 56px; flex: none; display: block; padding: 2px; background: #fff; border-radius: 50%;
  box-shadow: 0 0 0 2px var(--brand), 0 2px 8px rgba(0,0,0,.35); }
.mast-title { min-width: 0; flex: 1; }
.mast-title .kicker { display: block; font: 700 11px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.mast-title b { display: block; font: 800 30px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mast-meta { text-align: right; font-size: 11px; color: var(--mast-muted); display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.mast-meta #updated { font: 700 13px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--mast-text); }
nav.mainnav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
nav.mainnav::-webkit-scrollbar { display: none; }
nav.mainnav a { font: 700 15px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--mast-muted);
  padding: 12px 14px 11px; border-bottom: 3px solid transparent; margin-bottom: -3px; white-space: nowrap; }
nav.mainnav a:hover { color: var(--mast-text); }
nav.mainnav a.on { color: #fff; border-bottom-color: var(--gold); }

/* ---- Ticker ---------------------------------------------------------------------------- */
.ticker { display: flex; align-items: stretch; background: var(--ticker-bg); color: var(--ticker-text); border-bottom: 1px solid var(--ticker-line); height: 36px; overflow: hidden; }
.ticker[hidden] { display: none; }
.ticker-label { flex: none; display: flex; align-items: center; gap: 6px; background: var(--brand); color: var(--on-brand); padding: 0 14px 0 16px;
  font: 800 14px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); padding-right: 22px; }
.ticker-label i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
.ticker-viewport { flex: 1; overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); }
.ticker-track { display: inline-flex; align-items: center; height: 100%; white-space: nowrap; animation: ticker var(--dur, 60s) linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-track > span { display: inline-flex; height: 100%; }
.ticker-item { display: inline-flex; align-items: center; height: 100%; gap: 8px; padding: 0 22px; font-size: 13px; font-weight: 600; border-right: 1px solid var(--ticker-line); }
.ticker-item b { font: 800 12px/1 var(--display); letter-spacing: .1em; color: var(--brand); }
.ticker-item span { font-weight: 500; }
.ticker-item .tm { font-weight: 800; }
.ticker-item:hover span { text-decoration: underline; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker-viewport { overflow-x: auto; mask-image: none; }
  .ticker-label i { animation: none; }
}

/* ---- Score strip ----------------------------------------------------------------------- */
.scorestrip { background: var(--strip); border-bottom: 1px solid var(--line); }
.scorestrip .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: thin; }
.ss-head { flex: none; display: flex; flex-direction: column; justify-content: center; padding-right: 6px; border-right: 1px solid var(--line); margin-right: 2px; }
.ss-head b { font: 800 18px/1 var(--display); text-transform: uppercase; }
.ss-head span { font: 700 11px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ss-game { flex: none; width: 196px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; font-size: 12.5px; }
.ss-game:hover { border-color: var(--faint); }
.ss-status { font: 700 11px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.ss-status.live { color: var(--brand); }
.ss-row { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.ss-row span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-row .pts { font-variant-numeric: tabular-nums; font-weight: 700; }
.ss-row.lose { color: var(--muted); } .ss-row.lose .pts { font-weight: 600; }
.ss-row.me span:first-child { color: var(--me); }

/* ---- Page furniture -------------------------------------------------------------------- */
h1 { font: 800 34px/1.05 var(--display); text-transform: uppercase; margin: 22px 0 4px; letter-spacing: .01em; }
h1 + .dek { color: var(--muted); margin: 0 0 14px; font-size: 14px; }
h2 { font: 800 19px/1.1 var(--display); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
h2::before { content: ''; width: 4px; height: 17px; background: var(--brand); border-radius: 1px; flex: none; }
p.sub { font-size: 12px; color: var(--muted); margin: 2px 0 12px; line-height: 1.45; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px 14px; margin: 16px 0; }
.card.flush { padding: 0; overflow: hidden; }
.me { color: var(--me); }
.muted { color: var(--muted); }
.kicker { font: 700 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.byline { font-size: 12px; color: var(--muted); }
.more { display: inline-block; margin-top: 10px; font: 700 13px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); }
.more:hover { text-decoration: underline; }
.btn-primary { display: inline-flex; align-items: center; gap: 6px; background: var(--brand); color: var(--on-brand); border-radius: 4px; padding: 10px 16px;
  font: 800 14px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; border: 0; cursor: pointer; }
.btn-primary:hover { background: var(--brand-dark); }

.layout { display: grid; gap: 0 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .layout { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); } }

/* Lead story */
.lead { position: relative; background: linear-gradient(135deg, var(--lead-from) 0%, var(--lead-to) 60%); border: 1px solid var(--line); border-radius: 8px; padding: 22px 20px 20px; margin: 16px 0; overflow: hidden; }
.lead::after { content: ''; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; border: 24px solid rgba(255, 255, 255, .08); }
.lead h3 { font: 800 clamp(28px, 4.4vw, 42px)/1.02 var(--display); text-transform: uppercase; margin: 8px 0 10px; position: relative; z-index: 1; }
.lead p { font-size: 15px; color: var(--lead-text); margin: 0; max-width: 62ch; position: relative; z-index: 1; }

/* Number tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 8px; margin: 12px 0 0; }
/* In a narrow column (sidebar), stack the tiles as a clean list instead of squeezing them. */
aside .tiles { grid-template-columns: 1fr; }
aside .tile { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 10px; }
aside .tile .k { grid-column: 1 / -1; }
aside .tile .v { font-size: 18px; }
aside .tile .d { grid-column: 1 / -1; }
.tile { background: var(--surface2); border-radius: 6px; padding: 10px 12px; border-top: 3px solid var(--brand); }
.tile .k { font: 700 11px/1.2 var(--display); color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.tile .v { font: 800 20px/1.1 var(--display); margin-top: 4px; text-transform: uppercase; overflow-wrap: break-word; hyphens: none; }
.tile .d { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* Headline lists (news, reports) */
.hl { list-style: none; margin: 0; padding: 0; }
.trades { list-style: none; margin: 0; padding: 0; }
.trades li { border-top: 1px solid var(--line); }
.trades li:first-child { border-top: 0; }
.trades a { display: block; padding: 9px 0; color: var(--text); font-size: 13.5px; line-height: 1.35; }
.trades a:hover strong { text-decoration: underline; }
.tr-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 3px; }
.tr-date { font-size: 11.5px; color: var(--muted); }
.tr-status { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.tr-status.pending { color: #b45309; border-color: currentColor; }
.tr-status.done { color: #15803d; border-color: currentColor; }
.tr-status.vetoed { color: #b91c1c; border-color: currentColor; }
.tr-side { overflow-wrap: anywhere; }
.hl li { border-top: 1px solid var(--line); }
.hl li:first-child { border-top: 0; }
.hl a { display: block; padding: 11px 0; }
.hl a:hover .t { text-decoration: underline; }
.hl .t { font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--text); }
.hl .m { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.empty { border: 1px dashed var(--line); border-radius: 6px; padding: 14px; color: var(--muted); font-size: 13px; }

/* Article (weekly report, news story) */
.article { max-width: 720px; }
.article h1 { font-size: clamp(30px, 5vw, 46px); }
.article .byline { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.prose { font-size: 16.5px; line-height: 1.65; color: var(--prose); }
.prose h2, .prose h3, .prose h4 { font-family: var(--display); text-transform: uppercase; margin: 26px 0 8px; }
.prose h2::before { display: none; }
.prose h3 { font-size: 20px; } .prose h4 { font-size: 17px; letter-spacing: .04em; }
.prose p { margin: 0 0 14px; }
.prose a { color: var(--link); text-decoration: underline; }
.prose blockquote { margin: 18px 0; padding: 4px 0 4px 16px; border-left: 4px solid var(--brand); font-style: italic; color: var(--strong); font-size: 18px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 14px; }
.prose ol[start] { padding-left: 30px; }
.prose li { margin: 4px 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

/* Compact standings + power list */
table.compact { width: 100%; border-collapse: collapse; font-size: 13px; }
table.compact th { font: 700 11px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 0 4px 8px; }
table.compact td { padding: 7px 4px; border-top: 1px solid var(--line); white-space: nowrap; }
table.compact .r { text-align: right; } table.compact .c { text-align: center; }
table.compact .rk { width: 22px; color: var(--muted); font-weight: 700; }
table.compact .nm { max-width: 170px; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
table.compact tr.mine td { background: var(--mine-tint); }
table.compact tr.cut td, table.data tr.cut td { border-top: 2px dashed var(--faint); }
.mv { font-size: 11px; font-weight: 700; } .mv.up { color: var(--good); } .mv.down { color: var(--warn); } .mv.flat { color: var(--faint); }
.streak { font-weight: 700; font-size: 12px; } .streak.W { color: var(--good); } .streak.L { color: var(--warn); }

/* Box scores */
.games { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .games { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.game { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.game-status { font: 700 11px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 9px 12px; background: var(--surface2); }
.game-status.live { color: var(--brand); }
.game-team { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.game-team .nm { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-team .sc { font: 800 26px/1 var(--display); font-variant-numeric: tabular-nums; grid-row: span 2; align-self: center; }
.game-team .rec { font-size: 11.5px; color: var(--muted); }
.game-team.lose .nm, .game-team.lose .sc { color: var(--muted); }
.game-team.me .nm { color: var(--me); }
.game-team .tops { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.game-team .tops b { color: var(--text); font-weight: 600; }

.site-foot { border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; padding: 18px 0 30px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }

nav.sub { display: flex; gap: 6px; margin: 4px 0 4px; flex-wrap: wrap; }
nav.sub a { padding: 7px 14px; border-radius: 4px; background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  font: 700 13px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
nav.sub a.on { background: var(--text); color: var(--ink); border-color: var(--text); }

.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { border-collapse: separate; border-spacing: 0 2px; width: 100%; }
table.data th { font-size: 11px; color: var(--muted); font-weight: 600; text-align: left; padding: 0 6px 4px; cursor: pointer;
  white-space: nowrap; user-select: none; }
table.data th.sorted { color: var(--text); }
table.data td { padding: 7px 6px; background: var(--surface2); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
table.data td:first-child { border-radius: 8px 0 0 8px; }
table.data td:last-child { border-radius: 0 8px 8px 0; }
table.data tr.mine td { background: var(--mine-row); }
table.data .r { text-align: right; } table.data .c { text-align: center; }
table.data td.cellc { padding: 2px; background: transparent; }
table.data .stick { position: sticky; left: 0; z-index: 3; }
table.data th.stick { background: var(--surface); }
table.data td.stick { box-shadow: 6px 0 6px -4px var(--shadow); }

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; margin: 0 4px 5px 0; border-radius: 999px; background: var(--surface2);
  font-size: 11px; font-weight: 600; cursor: pointer; border: 1px solid transparent; color: var(--muted); user-select: none; }
.chip.on { color: var(--text); border-color: var(--faint); }
.chip i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 0; font-size: 12px; color: var(--muted); }
select { background: var(--surface2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; font-size: 12px; }
button.btn, a.btn { display: inline-flex; align-items: center; background: var(--surface2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; font-size: 12px; cursor: pointer; }

.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 10.5px; color: var(--legend); margin-bottom: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }

/* heat grids */
.grid { border-collapse: separate; border-spacing: 2px; }
.grid th { font-size: 10px; color: var(--legend); font-weight: 600; padding: 0; }
.grid th.rowh { text-align: left; padding-right: 6px; white-space: nowrap; font-size: 10.5px; position: sticky; left: 0; background: var(--surface); z-index: 2;
  max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
.grid th.colh { height: 84px; vertical-align: bottom; }
.grid th.colh div { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; margin: 0 auto; }
.grid td { min-width: 24px; height: 25px; text-align: center; font-weight: 700; font-size: 10px; border-radius: 4px; padding: 0 1px; cursor: pointer;
  letter-spacing: -.2px; white-space: nowrap; }
.grid td.diag { outline: 2px solid var(--me); outline-offset: -2px; }
.grid td.sel { box-shadow: 0 0 0 2px var(--sel-ring); position: relative; z-index: 1; }
.grid.wide td { min-width: 40px; font-size: 11px; height: 27px; }

/* bars */
.row { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; }
.row .nm { width: 104px; flex: none; font-weight: 600; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .end { width: 38px; flex: none; text-align: right; font-size: 11px; font-weight: 700; }
.bar { display: flex; gap: 2px; flex: 1; height: 22px; }
.bar div { height: 100%; border-radius: 3px; font-size: 9.5px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  white-space: nowrap; cursor: pointer; overflow: hidden; }
.track { height: 8px; background: var(--line); border-radius: 4px; }
.track div { height: 8px; background: var(--accent); border-radius: 4px; }

svg.chart { width: 100%; max-width: 760px; margin: 0 auto; height: auto; display: block; overflow: visible; }
svg.chart text { fill: var(--faint); font-size: 10px; }
svg.chart .grid-line { stroke: var(--line); stroke-width: 1; }

#tip { position: fixed; z-index: 100; display: none; max-width: 270px; pointer-events: none; background: var(--tip-bg); color: var(--text);
  border: 1px solid var(--tip-line); border-radius: 8px; padding: 8px 10px; font-size: 11.5px; line-height: 1.4; box-shadow: 0 6px 20px var(--shadow); }
#tip b { color: var(--strong); } #tip b.me { color: var(--me); } #tip .mut { color: var(--muted); } #tip table { border-collapse: collapse; margin-top: 4px; }
#tip td { padding: 1px 6px 1px 0; font-size: 11px; }
.w { color: var(--good); } .l { color: var(--warn); } .t { color: var(--muted); }
.note { font-size: 11px; color: var(--faint); margin-top: 8px; line-height: 1.4; }
.detail { margin-top: 12px; background: var(--surface2); border-radius: 10px; padding: 10px 12px; font-size: 12px; }
.detail table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.detail td, .detail th { padding: 3px 6px 3px 0; text-align: left; font-size: 12px; }
.detail th { color: var(--muted); font-weight: 600; font-size: 10.5px; }
.matchups { display: grid; gap: 6px; }
.mu { background: var(--surface2); border-radius: 8px; padding: 6px 10px; display: grid; grid-template-columns: 1fr auto; row-gap: 2px; font-size: 12.5px; }
.mu .win { font-weight: 800; } .mu .lose { color: var(--muted); }
.mu .pts { text-align: right; font-variant-numeric: tabular-nums; }
.loading, .err { padding: 40px 0; text-align: center; color: var(--muted); }
.err { color: var(--bad); }

.me-pick { font-size: 12px; color: var(--mast-muted); display: inline-flex; align-items: center; gap: 4px; }
.league-pick[hidden], .mainnav a[hidden], .bottomnav a[hidden], .mast .logo[hidden] { display: none !important; }
body[data-history="0"] .bottomnav { grid-template-columns: repeat(6, 1fr); }
.me-pick select { max-width: 150px; background: var(--mast-field); color: var(--mast-text); border: 1px solid var(--mast-line); border-radius: 6px; padding: 3px 4px; font-size: 12px; }

/* ---- Small screens ----------------------------------------------------------------------- */
@media (max-width: 600px) {
  .mast-top { flex-wrap: wrap; row-gap: 8px; }
  .mast-title b { white-space: normal; font-size: 26px; line-height: 1; }
  .mast-meta { order: 3; width: 100%; flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; row-gap: 8px; }
  .mast-meta .league-pick { order: 1; width: 100%; }
  .mast-meta .league-pick select { flex: 1; max-width: none; }
  h1 { font-size: 30px; }
  .lead { padding: 18px 16px; }
  .ss-game { width: 170px; }
  table.compact { table-layout: fixed; }
  table.compact .rk, table.compact th:first-child { width: 26px; }
  table.compact td:nth-child(3), table.compact th:nth-child(3) { width: 52px; }
  table.compact td:nth-child(4), table.compact th:nth-child(4) { width: 58px; }
  table.compact td:nth-child(5), table.compact th:nth-child(5) { width: 44px; }
  table.compact .nm { max-width: none; overflow: hidden; text-overflow: ellipsis; }
}

/* ---- Bottom tab bar (phones) ---------------------------------------------------------- */
.bottomnav { display: none; }
@media (max-width: 759px) {
  nav.mainnav { display: none; }
  header.mast { border-bottom-width: 0; }
  .ticker { border-top: 3px solid var(--brand); }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .bottomnav { display: grid; grid-template-columns: repeat(7, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--nav-bg); backdrop-filter: blur(8px); border-top: 1px solid var(--line);
    padding: 4px max(4px, env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-left)); }
  .bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px;
    color: var(--muted); font: 700 11px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; border-radius: 8px;
    -webkit-tap-highlight-color: transparent; }
  .bottomnav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .bottomnav a.on { color: var(--nav-on); }
  .bottomnav a.on svg { stroke: var(--gold-text); }
  .bottomnav a:active { background: var(--surface); }
  .site-foot { padding-bottom: 12px; }
}
.mast-top { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }

/* ---- Touch: comfortable tap targets ---------------------------------------------------- */
@media (pointer: coarse) {
  /* 16px stops iOS Safari from zooming the page when a dropdown is tapped */
  select, button.btn, a.btn { min-height: 38px; padding: 6px 10px; font-size: 16px; }
  .me-pick select { min-height: 36px; font-size: 16px; }
  .hl a { padding: 13px 0; }
  table.data th { cursor: pointer; }
  nav.sub a { padding: 11px 14px; }
  .more { padding: 10px 0; }
  .chip { padding: 7px 11px; font-size: 12px; }
  table.data th { padding-bottom: 8px; }
}
@media (hover: none) { .ss-game:hover, nav.mainnav a:hover { border-color: inherit; } }

/* ---- Wide screens ---------------------------------------------------------------------- */
@media (min-width: 1280px) { .mast-title b { font-size: 34px; } }

/* ---- Print: clean black-on-white report ------------------------------------------------- */
@media print {
  .ticker, .scorestrip, .bottomnav, nav.mainnav, .mast-meta, .site-foot, .more { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .card, .lead, .tile { background: #fff; border-color: #ccc; color: #000; }
  .prose { color: #000; } .prose a { color: #000; }
}
@media (max-width: 360px) { .mast-meta #updated { font-size: 11px; letter-spacing: .03em; } .mast-title b { font-size: 23px; } }

/* ---- Theme toggle ---------------------------------------------------------------------- */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--mast-field); border: 1px solid var(--mast-line); color: var(--mast-text); cursor: pointer; padding: 0; flex: none; }
.theme-toggle:hover { border-color: var(--gold); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
.mast-controls { display: flex; align-items: center; gap: 8px; }
@media (pointer: coarse) { .theme-toggle { width: 40px; height: 40px; } }
/* Light theme refinements */
:root[data-theme="light"] .card, :root[data-theme="light"] .lead, :root[data-theme="light"] .game { box-shadow: 0 1px 2px rgba(15, 23, 34, .06); }
:root[data-theme="light"] .ticker-item:hover span { text-decoration-color: var(--gold); }
:root[data-theme="light"] .tile { background: var(--surface2); }

/* ---- Heat grids on wider screens: use the room instead of phone-sized cells -------------- */
@media (min-width: 760px) {
  .grid { width: 100%; table-layout: fixed; border-spacing: 4px; }
  .grid thead th:first-child { width: 190px; }
  .grid th.rowh { max-width: 190px; font-size: 13px; padding-right: 10px; }
  .grid th.colh { height: 128px; font-size: 12px; padding-bottom: 6px; }
  .grid td { height: 38px; font-size: 13px; border-radius: 6px; letter-spacing: 0; }
  .grid td.diag { outline-width: 3px; outline-offset: -3px; }
  .grid.wide td { height: 38px; font-size: 13px; }
}
@media (min-width: 1100px) {
  .grid th.colh div { font-size: 12.5px; }
}

/* ---- Phones: less chrome above the content, tighter cards ------------------------------- */
@media (max-width: 759px) {
  .mast-top { padding-top: 10px; padding-bottom: 8px; gap: 10px; }
  .logo { width: 42px; height: 42px; }
  .mast-title .kicker { display: none; }
  .mast-title b { font-size: 24px; margin-top: 0; }
  .mast-meta #updated { font-size: 12px; }
  .ticker { height: 34px; }
  .scorestrip .wrap { padding-top: 8px; padding-bottom: 8px; }
  .ss-head b { font-size: 16px; }
  .ss-game { width: 158px; padding: 6px 9px; font-size: 12px; }
  /* The score strip is for Home and Scores; elsewhere it just pushes the page down. */
  body:not([data-page="home"]):not([data-page="scores"]) .scorestrip { display: none; }
  h1 { margin-top: 16px; }
  .card { padding: 14px 12px; margin: 12px 0; }
  .lead { margin: 12px 0; }
  .lead h3 { font-size: 28px; }
  .lead p { font-size: 14.5px; }
  .tile { padding: 9px 10px; }
  .tile .v { font-size: 17px; }
  .tile .d { font-size: 11px; }
  .game-team .sc { font-size: 24px; }
  .grid th.rowh { max-width: 84px; }
}
@media (max-width: 420px) {
  /* Compact standings on Home: drop PF so team names have room. */
  table.compact.standings td:nth-child(4), table.compact.standings th:nth-child(4) { display: none; }
}

/* ---- Wide tables: fade the right edge while there is more to swipe to ------------------- */
.tablewrap.scrolls:not(.at-end) { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.swipe-hint { display: none; font: 700 11px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); text-align: right; margin: -4px 0 6px; }
.swipe-hint.show { display: block; }
.mast-meta #updated { white-space: nowrap; }
@media (max-width: 360px) { .me-pick select { max-width: 120px; } .mast-controls { gap: 6px; } }

/* ---- Power rankings ------------------------------------------------------------------- */
.plist { margin-top: 6px; }
.ptier { font: 700 11px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin: 14px 0 6px; padding-top: 10px; border-top: 1px dashed var(--line); }
.ptier:first-child { margin-top: 4px; padding-top: 0; border-top: 0; }
.prow { display: flex; gap: 10px; align-items: flex-start; padding: 8px 6px; border-radius: 6px; }
.prow.mine { background: var(--mine-tint); }
.prk { font: 800 20px/1 var(--display); color: var(--muted); width: 26px; text-align: right; padding-top: 2px; flex: none; }
.pmain { flex: 1; min-width: 0; }
.ptop { display: flex; align-items: baseline; gap: 8px; margin-bottom: 5px; }
.pnm { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prec { font-size: 12px; color: var(--muted); }
.pscore { font: 800 18px/1 var(--display); min-width: 40px; text-align: right; }
.pbar { display: flex; height: 12px; border-radius: 3px; overflow: hidden; background: var(--surface2); }
.pbar div { height: 100%; cursor: pointer; border-right: 1px solid var(--surface); }
.pbar div:last-child { border-right: 0; }
@media (pointer: coarse) { .pbar { height: 16px; } }
.pcell { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.pcell small { font-size: 10.5px; color: var(--muted); font-weight: 500; }
.phow { margin: 4px 0 10px; }
.phow-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.phow-name { font-weight: 600; font-size: 13px; }
.phow-pts { font: 700 13px/1.4 var(--display); letter-spacing: .04em; color: var(--muted); text-align: right; }
.phow-how { grid-column: 1 / -1; font-size: 12px; color: var(--muted); line-height: 1.4; }
.phow .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
@media (max-width: 420px) { table.compact.power td:nth-child(3), table.compact.power th:nth-child(3) { display: none; } }

/* Matchup to watch */
.mw .kicker { font: 800 12px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.mw-board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 12px 0 10px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface2); }
.mw-side { min-width: 0; }
.mw-side.mw-r { text-align: right; }
.mw-rank { font: 700 11px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mw-name { font: 800 22px/1.1 var(--display); margin: 4px 0; overflow-wrap: break-word; }
.mw-side.me .mw-name { color: var(--brand); }
.mw-meta { font-size: 12px; color: var(--muted); }
.mw-num { font: 800 34px/1 var(--display); margin-top: 10px; font-variant-numeric: tabular-nums; }
.mw-numlabel { font: 700 10px/1.4 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mw-vs { font: 800 16px/1 var(--display); color: var(--on-brand); background: var(--brand); border-radius: 50%; width: 40px; height: 40px; display: grid; place-items: center; letter-spacing: .05em; }
.mw-why { margin: 0 0 6px; padding-left: 18px; font-size: 14px; line-height: 1.5; }
@media (max-width: 520px) {
  .mw-board { gap: 8px; padding: 12px 10px; }
  .mw-name { font-size: 18px; }
  .mw-num { font-size: 28px; }
  .mw-vs { width: 32px; height: 32px; font-size: 13px; }
}

/* Upcoming games and rest of season */
.game-team .sc.proj { color: var(--muted); font-size: 22px; }
.game-foot { font-size: 11.5px; color: var(--muted); padding: 8px 12px; border-top: 1px solid var(--line); background: var(--surface2); }
.rest { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .rest { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rest .card { margin: 0; }
.rest h2 a { color: inherit; }
.rest ul { list-style: none; margin: 0; padding: 0; }
.rest li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.rest li small { font-weight: 400; color: var(--muted); font-size: 12px; }
.rest li i { font-style: normal; font: 700 11px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin: 0 6px; }
.rest li.mine { background: var(--mine-tint); margin: 0 -8px; padding-left: 8px; padding-right: 8px; }
.rest .me { color: var(--me); }

/* Playoffs */
.champ { display: flex; flex-direction: column; gap: 6px; padding: 18px 16px; margin: 16px 0; border-radius: 8px; background: linear-gradient(120deg, var(--lead-from), var(--lead-to)); color: var(--lead-text); }
.champ b { font: 800 30px/1.05 var(--display); }
.bracket { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .bracket { grid-template-columns: repeat(var(--rounds), minmax(0, 1fr)); } .bk-games { height: 100%; justify-content: space-around; } .bk-round { display: flex; flex-direction: column; } }
.bk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-bottom: 6px; margin-bottom: 8px; border-bottom: 2px solid var(--brand); }
.bk-head b { font: 800 14px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.bk-head span { font-size: 11px; color: var(--muted); }
.bk-games { display: flex; flex-direction: column; gap: 10px; }
.bk-game { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); position: relative; }
.bk-game.live { border-color: var(--brand); }
.bk-live { position: absolute; top: 0; right: 0; font: 700 9px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; background: var(--brand); color: var(--on-brand); padding: 3px 6px; border-bottom-left-radius: 4px; }
.bk-team { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 10px; font-size: 13.5px; font-weight: 600; }
.bk-team + .bk-team { border-top: 1px solid var(--line); }
.bk-team .sd { font: 800 13px/1 var(--display); color: var(--muted); text-align: center; }
.bk-team .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-team .pt { font: 800 15px/1 var(--display); font-variant-numeric: tabular-nums; }
.bk-team.won { background: var(--surface2); }
.bk-team.won .nm { font-weight: 800; }
.bk-team.lost .nm, .bk-team.lost .pt { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }
.bk-team.tbd .nm { color: var(--faint); font-style: italic; font-weight: 500; }
.bk-team.me .nm { color: var(--me); }
.pbadge { display: inline-block; font: 700 10px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; padding: 4px 6px; border-radius: 3px; white-space: nowrap; }
.pbadge.in { background: var(--good); color: var(--bg); }
.pbadge.out { background: var(--surface2); color: var(--faint); }
.pbadge.maybe { border: 1px solid var(--good); color: var(--good); }
.pbadge.chase { border: 1px solid var(--line); color: var(--muted); }
.odds { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.odds .track { display: block; width: 44px; height: 6px; border-radius: 3px; background: var(--surface2); overflow: hidden; }
.odds i { display: block; height: 100%; background: var(--good); }
.odds b { min-width: 34px; text-align: right; }

/* Relegation (league rule): subtle, not alarming */
table tr.releg td { background: color-mix(in srgb, var(--warn) 10%, var(--surface2)); } /* opaque: the team column is sticky */
table tr.releg td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.rtag { display: inline-block; margin-left: 6px; font: 700 9.5px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--warn); border: 1px solid currentColor; border-radius: 3px; padding: 2px 4px; vertical-align: 1px; opacity: .85; }
.cmark { display: inline-block; margin-left: 5px; min-width: 15px; font: 800 10px/15px var(--display); text-align: center; text-transform: lowercase; border-radius: 3px; vertical-align: 1px; }
.cmark.clinched { background: var(--good); color: var(--bg); }
.cmark.eliminated { border: 1px solid var(--line); color: var(--faint); line-height: 13px; }
.clinch-note { font-size: 12.5px; color: var(--muted); margin: 0 0 14px; padding: 8px 10px; border-left: 3px solid var(--good); background: color-mix(in srgb, var(--good) 7%, transparent); border-radius: 0 4px 4px 0; }
.clinch-note b { color: var(--good); font-weight: 700; }
.releg-note { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; padding: 8px 10px; border-left: 3px solid var(--warn); background: color-mix(in srgb, var(--warn) 6%, transparent); border-radius: 0 4px 4px 0; }
.releg-note b { color: var(--warn); font-weight: 700; }

/* Bracket on phones: rounds side by side in pairs, names wrap instead of truncating */
@media (max-width: 759px) {
  .bracket { gap: 16px; }
  .bk-games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .bk-round:last-child .bk-games { grid-template-columns: minmax(0, 1fr); max-width: 70%; margin: 0 auto; }
  .bk-head { margin-bottom: 6px; padding-bottom: 4px; }
  .bk-team { grid-template-columns: 14px minmax(0, 1fr) auto; gap: 6px; padding: 6px 8px; font-size: 12.5px; min-height: 40px; }
  .bk-team .nm { white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
  .bk-team .sd { font-size: 12px; }
  .bk-team.tbd .nm { font-size: 11.5px; }
}

/* ---- League History ------------------------------------------------------------------- */
table.hof td { white-space: nowrap; }
table.hof td b { font-weight: 800; }
table.data tr.hist-champ td { background: color-mix(in srgb, var(--gold-text) 12%, var(--surface2)); }
.rb-h { font: 800 13px/1.2 var(--display); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 18px 0 8px; }
@media (max-width: 759px) {
  .bottomnav a { font-size: 10px; letter-spacing: .02em; }
}

/* ---- Reports: latest report, season picker, draft pick reporting ---- */
a.report-lead { display: block; border-top: 3px solid var(--brand); }
a.report-lead .t { font: 800 24px/1.1 var(--display); text-transform: uppercase; color: var(--text); margin-top: 8px; }
a.report-lead .m { font-size: 12px; color: var(--muted); margin-top: 6px; }
a.report-lead:hover .t { text-decoration: underline; }
.mut { color: var(--muted); font-weight: 400; }
nav.sub.seasons { align-items: center; margin-top: 14px; }
nav.sub.seasons .lbl { font: 700 11px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
nav.sub.seasons a { padding: 6px 12px; }
.pk { display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 5px; background: var(--surface2); border: 1px solid transparent;
  font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; }
.pk.got { background: var(--gold); color: var(--ink); font-weight: 500; }
.pk.got b { font-weight: 800; }
.pk.away { background: transparent; border: 1px dashed var(--faint); color: var(--faint); text-decoration: line-through; font-weight: 500; }
.pk-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 6px; font-size: 12px; color: var(--muted); margin: 4px 0 10px; }
.pk-legend .pk { margin-left: 8px; } .pk-legend .pk:first-child { margin-left: 0; }
.pk-list { list-style: none; margin: 0; padding: 0; }
.pk-list li { display: grid; grid-template-columns: 130px minmax(0, 1fr) 74px; gap: 10px; align-items: center; padding: 12px 8px; border-top: 1px solid var(--line); }
.pk-list li:first-child { border-top: 0; }
.pk-list li.mine { background: var(--mine-tint); border-radius: 6px; }
.pk-who .n { font-weight: 700; font-size: 15px; }
.pk-who .m, .pk-board th .m { font-size: 11.5px; color: var(--muted); }
.pk-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.pk-count { text-align: center; }
.pk-count .v { font: 800 28px/1 var(--display); }
.pk-count .v.up { color: var(--good); } .pk-count .v.down { color: var(--warn); }
.pk-count .of { font: 700 10px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.pk-count .st { font-size: 11px; font-weight: 700; margin-top: 2px; }
.pk-count .st.ok { color: var(--good); } .pk-count .st.bad { color: var(--bad); }
@media (max-width: 600px) {
  .pk-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .pk-list .pk-chips { grid-column: 1 / -1; grid-row: 2; }
  .pk-count { text-align: right; }
}
table.pk-board { border-collapse: separate; border-spacing: 3px; width: 100%; min-width: 640px; }
table.pk-board thead th { font: 700 11px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0 4px 6px; text-align: left; }
table.pk-board thead th.c { text-align: center; }
table.pk-board tbody th { text-align: left; background: var(--surface2); border-radius: 6px 0 0 6px; padding: 7px 10px; white-space: nowrap; font-weight: 400; }
table.pk-board td { background: var(--surface2); text-align: center; padding: 3px; height: 40px; }
table.pk-board td:last-child { border-radius: 0 6px 6px 0; }
table.pk-board tr.mine th, table.pk-board tr.mine td { background: var(--mine-row); }
table.pk-board .slot { display: inline-block; width: 22px; font: 800 18px/1 var(--display); color: var(--faint); vertical-align: middle; }
table.pk-board th .n { font-weight: 700; font-size: 14px; margin-right: 6px; }
table.pk-board .dot { color: var(--faint); }
table.pk-board .cell { display: block; background: var(--gold); color: var(--ink); border-radius: 5px; padding: 9px 4px; font-weight: 700; font-size: 12.5px; }
table.pk-board .tot { font: 800 20px/1 var(--display); }
.pk-ledger { list-style: none; margin: 0; padding: 0; }
.pk-ledger li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.pk-ledger li:first-child { border-top: 0; }
.pk-ledger p { margin: 0 0 3px; }
.pk-ledger .d { font: 700 12px/1.3 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--gold-text); }
.pk-ledger .m { font-size: 11.5px; color: var(--muted); }
table.pk-board tbody th { position: sticky; left: 0; z-index: 2; }
@media (max-width: 600px) {
  table.pk-board { min-width: 560px; }
  table.pk-board th .m { display: none; }
  table.pk-board tbody th { box-shadow: 4px 0 6px -4px rgba(0, 0, 0, .35); }
}
table.compact.wk { table-layout: auto; width: max-content; min-width: 100%; }
table.compact.wk td { padding-right: 14px; }

/* Playoff scenarios: tap a team in the playoff race to open what it needs */
table.data tr.xrow { cursor: pointer; }
table.data tr.xrow, table.data tr.xrow:focus, table.data tr.xrow:focus-visible { outline: none; -webkit-tap-highlight-color: transparent; }
table.data tr.xrow:focus-visible td { background: color-mix(in srgb, var(--text) 8%, var(--surface2)); }
table.data tr.xrow:hover td { background: color-mix(in srgb, var(--text) 5%, var(--surface2)); }
table.data tr.xrow td.stick > span:first-child { text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }

/* Pop-up sheet */
html.sheet-open { overflow: hidden; }
dialog.sheet { box-sizing: border-box; width: min(560px, calc(100vw - 32px)); max-height: min(86vh, 760px); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); color: var(--text); box-shadow: 0 20px 60px var(--shadow); display: flex; flex-direction: column; }
dialog.sheet:not([open]) { display: none; }
dialog.sheet::backdrop { background: rgba(5, 8, 13, .6); }
.sheet-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.sheet-top h2 { margin: 2px 0 0; font: 800 22px/1.1 var(--display); text-transform: none; letter-spacing: .01em; }
.sheet-top .kicker { font: 700 11px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sheet-x { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface2); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 16px 18px; overscroll-behavior: contain; }
@media (max-width: 599px) {
  dialog.sheet { width: 100vw; max-width: 100vw; max-height: 88vh; margin: auto 0 0; border-radius: 16px 16px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
}
.scn { font-weight: 500; font-size: 14px; line-height: 1.5; }
.scn p { margin: 0; }
.scn-head { font-weight: 700; font-size: 15.5px; padding-left: 9px; border-left: 3px solid var(--line); }
.scn-head.in { border-color: var(--good); }
.scn-head.help { border-color: var(--warn); }
.scn-head.out { border-color: var(--faint); color: var(--muted); }
.scn-sub { color: var(--muted); font-size: 12.5px; margin-top: 4px !important; }
.scn-label { margin-top: 10px !important; font: 700 10.5px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.scn ul { list-style: none; margin: 5px 0 0; padding: 0; }
.scn-recs li { display: grid; grid-template-columns: 4.2em 1fr; gap: 10px; align-items: center; padding: 4px 0; border-top: 1px solid var(--line); }
.scn-recs li:first-child { border-top: 0; }
.scn-rec { font-weight: 700; font-variant-numeric: tabular-nums; }
.scn-pct b { font-variant-numeric: tabular-nums; }
.scn-why { color: var(--faint); font-size: 11.5px; margin-left: 6px; }
.scn-recs .scn-why { margin-left: 8px; }
.scn-ways li { padding: 3px 0; }
.scn-ways li i { color: var(--muted); font-style: normal; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; margin-right: 2px; }
.scn-foot { margin-top: 10px !important; font-size: 11px; color: var(--faint); }
.scn-seeds li { display: grid; grid-template-columns: 2.6em 1fr 3.4em; gap: 10px; align-items: center; padding: 4px 0; }
.scn-seeds li b { text-align: right; font-variant-numeric: tabular-nums; }
.scn-seeds li.none { color: var(--faint); }
.seedbar { display: block; height: 10px; border-radius: 5px; background: var(--surface2); overflow: hidden; }
.seedbar i { display: block; height: 100%; background: var(--good); border-radius: 5px; }

/* ---- Home screen web app (iPhone "Add to Home Screen") ------------------------------- */
/* The page draws under the status bar (viewport-fit=cover + black-translucent), so the masthead
   makes room for it, and a fixed strip keeps the clock and battery readable once the page scrolls.
   In a normal browser tab safe-area-inset-top is 0, so none of this changes the regular site. */
/* The network bar sits above the masthead, so it is the one that makes room for the status bar. */
body::before { content: ''; position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: env(safe-area-inset-top);
  background: var(--n-bg); pointer-events: none; }
html { scroll-padding-top: calc(120px + env(safe-area-inset-top)); }
@media (display-mode: standalone) {
  /* Pulling past the top shows the dark masthead color, not a light band above it. */
  html { background: var(--n-bg); }
  body { min-height: 100vh; min-height: 100dvh; }
  /* Feel like an app: no grey tap flash, and no copy/share popup when holding a tab or the logo. */
  a, button, select, summary { -webkit-tap-highlight-color: transparent; }
  .bottomnav, .mast-top, .ticker { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
  .bottomnav { -webkit-backdrop-filter: blur(8px); }
}

/* =====================================================================================
   COLD FRONT: DaveBomb Network design (cyan palette). Layout, type and component skin.
   Desktop: network bar on top, league masthead and tabs in a left rail. Phones: floating tab bar.
   ===================================================================================== */
body { font-family: var(--body); font-size: 14.5px; }
:focus-visible { outline-color: var(--brand); }

/* Network bar */
.netbar { display: flex; align-items: center; gap: 14px; background: var(--n-bg); color: var(--n-text); border-bottom: 1px solid var(--line); box-shadow: inset 0 -2px 0 var(--n-rule);
  padding: calc(20px + env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) 20px max(24px, env(safe-area-inset-left)); min-height: 84px; position: relative; z-index: 20; }
.nb-mark { display: flex; align-items: center; gap: 8px; flex: none; }
.nb-mark img { display: block; height: 44px; width: auto; }
.nb-mark .nb-lock-c, .nb-mark .nb-mini, .nb-mark .nb-mini-c { display: none; }
:root[data-theme="light"] .nb-mark .nb-lock { display: none; }
:root[data-theme="light"] .nb-mark .nb-lock-c { display: block; }
.nb-mark::after { content: ''; width: 1px; align-self: stretch; margin: 2px 0 2px 6px; background: var(--line); }
.nb-leagues { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.nb-leagues::-webkit-scrollbar { display: none; }
.nb-leagues a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 11px 16px; border-radius: 99px; color: var(--n-muted);
  font: 600 14px/1 var(--display); }
.nb-leagues a:hover { color: var(--n-text); }
.nb-leagues a.on { background: color-mix(in srgb, var(--n-rule) 16%, transparent); color: var(--n-text); }
.nb-leagues .mini { width: 22px; height: 22px; flex: none; display: grid; place-items: center; }
.nb-leagues .mini img { width: 22px; height: 22px; object-fit: cover; border-radius: 50%; }
.nb-leagues .plat { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--n-muted); }
.nb-leagues a.on .plat { color: var(--n-rule); }
.lg-badge { width: 100%; height: 100%; border-radius: 50%; background: #121212; color: #f7f1e6; display: grid; place-items: center;
  font: 500 7.5px/1 'Oswald', 'Arial Narrow', sans-serif; letter-spacing: .04em; box-shadow: inset 0 0 0 1.5px var(--n-rule); }
.nb-air { margin-left: auto; flex: none; display: inline-flex; }
.nb-air[hidden] { display: none; }
.nb-air img { height: 20px; width: auto; display: block; animation: nbpulse 2.4s ease-in-out infinite; }
@keyframes nbpulse { 50% { opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .nb-air img { animation: none; } }
header.mast { padding-top: 0; }

/* Masthead + tabs */
header.mast { background: var(--rail-bg); border-bottom: 1px solid var(--line); color: var(--mast-text); }
.mast-top { padding-top: 12px; padding-bottom: 10px; }
.logo { background: var(--surface2); border-radius: 14px; box-shadow: none; padding: 4px; object-fit: contain; }
.mast-title b { font: 700 24px/1.1 var(--display); text-transform: none; letter-spacing: -.01em; margin-top: 0; }
.mast-title .kicker { margin-top: 4px; font: 600 12px/1.2 var(--body); letter-spacing: 0; text-transform: none; color: var(--mast-muted); }
.mast-meta #updated { font: 700 11px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.me-pick { color: var(--mast-muted); }
.me-pick select { background: var(--mast-field); color: var(--mast-text); border: 1px solid transparent; border-radius: 10px; padding: 6px 8px; }
.theme-toggle { border-radius: 10px; background: var(--mast-field); border-color: transparent; color: var(--mast-text); }
.theme-toggle:hover { border-color: var(--brand); }
nav.mainnav { padding: 0 max(16px, env(safe-area-inset-left)); gap: 4px; }
nav.mainnav a { display: flex; align-items: center; gap: 10px; font: 700 14px/1 var(--body); letter-spacing: 0; text-transform: none; color: var(--mast-muted);
  padding: 10px 12px; border: 0; margin: 0 0 8px; border-radius: 12px; }
nav.mainnav a svg { display: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
nav.mainnav a:hover { color: var(--mast-text); background: var(--surface2); }
nav.mainnav a.on { color: var(--brand); background: color-mix(in srgb, var(--brand) 13%, transparent); }

/* Desktop: left rail */
@media (min-width: 960px) {
  .shell { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); align-items: start; }
  header.mast { position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: none; border-bottom: 0; border-right: 1px solid var(--line); }
  .mast-top { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 18px 12px; }
  .mast-top .logo { width: 52px; height: 52px; }
  .mast-title b { white-space: normal; font-size: 19px; }
  .mast-meta { align-items: stretch; text-align: left; width: 100%; gap: 8px; }
  .mast-controls { width: 100%; }
  .me-pick { flex: 1; min-width: 0; }
  .me-pick select { width: 100%; max-width: none; min-height: 36px; }
  nav.mainnav { flex-direction: column; padding: 4px 12px 24px; overflow: visible; }
  nav.mainnav a { margin: 0; padding: 11px 12px; }
  nav.mainnav a svg { display: block; }
  .content { min-width: 0; }
  .content .wrap { max-width: 1120px; margin: 0; padding-left: 28px; padding-right: 28px; }
  .ticker { padding: 0 28px; }
  .content .scorestrip .wrap { max-width: none; }
}
@media (min-width: 1280px) { .mast-title b { font-size: 20px; } }

/* Ticker: pills */
.ticker { background: transparent; border: 0; height: auto; padding: 14px 16px 0; gap: 8px; align-items: center; }
.ticker-label { clip-path: none; border-radius: 99px; padding: 8px 12px; font: 700 11px/1 var(--display); letter-spacing: .12em;
  background: var(--tk-red); color: var(--tk-on); }
.ticker-viewport { mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%);
  background: var(--tk-band); border-radius: 99px; padding: 4px 0; }
.ticker-track > span { gap: 8px; padding-right: 8px; }
.ticker-item { border: 1px solid var(--tk-pill-line); background: var(--tk-pill); border-radius: 99px; padding: 7px 14px; font-size: 12.5px; height: auto; color: var(--text); }
.ticker-item b { font: 700 11px/1 var(--display); letter-spacing: .08em; color: var(--tk-kick); }

/* Score strip */
.scorestrip { background: transparent; border: 0; }
.scorestrip .wrap { padding-top: 12px; padding-bottom: 4px; gap: 10px; }
.ss-head { border-right: 0; padding-right: 8px; }
.ss-head b { font: 700 16px/1.1 var(--display); text-transform: none; }
.ss-head span { font: 700 10.5px/1.2 var(--display); }
.ss-game { border-radius: 16px; padding: 9px 12px; width: 204px; }
.ss-game:hover { border-color: var(--brand); }
.ss-status { font: 600 11px/1 var(--body); letter-spacing: 0; text-transform: none; }
.ss-status.live { color: var(--brand); font-weight: 800; }

/* Page furniture */
h1 { font: 700 32px/1.08 var(--display); text-transform: none; letter-spacing: -.02em; margin: 26px 0 6px; }
h2 { font: 700 17px/1.2 var(--display); text-transform: none; letter-spacing: -.01em; margin: 0 0 6px; }
h2::before { display: none; }
.card { border-radius: var(--radius); padding: 18px 20px; }
.kicker { font: 700 11px/1.2 var(--display); letter-spacing: .12em; color: var(--brand); }
.more { font: 700 13px/1 var(--body); letter-spacing: 0; text-transform: none; color: var(--brand); }
.btn-primary { border-radius: 99px; font: 700 14px/1 var(--body); letter-spacing: 0; text-transform: none; padding: 11px 18px; }
.btn-primary:hover { background: var(--brand-dark); }
nav.sub { background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 4px; gap: 2px; display: inline-flex; flex-wrap: wrap; margin: 6px 0 6px; }
nav.sub a { border: 0; background: transparent; border-radius: 99px; font: 600 13px/1 var(--body); letter-spacing: 0; text-transform: none; color: var(--muted); padding: 9px 14px; }
nav.sub a:hover { color: var(--text); }
nav.sub a.on { background: var(--brand); color: var(--on-brand); border: 0; }
nav.sub.seasons .lbl { padding: 0 6px 0 10px; }
select, button.btn, a.btn { border-radius: 10px; }

/* Lead story: cyan to graphite gradient card */
.lead, a.report-lead { display: block; position: relative; overflow: hidden; background: var(--grad); border: 0; border-radius: 24px; padding: 26px 26px 24px; color: #fff; margin: 18px 0; }
.lead::after, a.report-lead::after { content: ''; position: absolute; right: -40px; bottom: -60px; top: auto; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .08); }
.lead > *, a.report-lead > * { position: relative; z-index: 1; }
.lead .kicker, a.report-lead .kicker { color: #d4f6fc; }
.lead h3 { font: 700 clamp(26px, 3.6vw, 34px)/1.1 var(--display); text-transform: none; letter-spacing: -.02em; color: #fff; }
.lead p { color: rgba(255, 255, 255, .86); }
.lead .byline, a.report-lead .m { color: rgba(255, 255, 255, .78); margin-top: 10px; }
.lead .more, a.report-lead .more { display: inline-flex; margin-top: 14px; background: #fff; color: #0a6f86; padding: 10px 16px; border-radius: 99px; }
a.report-lead .t { font: 700 clamp(22px, 3vw, 30px)/1.15 var(--display); text-transform: none; letter-spacing: -.02em; color: #fff; margin-top: 8px; max-width: 30ch; }
a.report-lead .x { margin: 10px 0 0; color: rgba(255, 255, 255, .86); font-size: 14.5px; max-width: 70ch; }
a.report-lead:hover .t { text-decoration: none; }

/* Slim earlier reports */
h2.earlier-h { margin: 22px 0 10px; }
.report-slim { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.report-slim a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.report-slim a:hover { border-color: var(--brand); }
.report-slim .wk { font: 700 22px/1 var(--display); color: var(--brand); text-align: center; letter-spacing: -.02em; }
.report-slim .tx { display: grid; gap: 2px; min-width: 0; }
.report-slim .t { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.report-slim .m { font-size: 12px; color: var(--muted); }
.report-slim .ar { color: var(--brand); font-weight: 700; }

/* Tiles */
.tile { border-top: 0; border-radius: 14px; padding: 12px 14px; }
.tile .k { font: 700 10.5px/1.2 var(--display); letter-spacing: .1em; }
.tile .v { font: 700 20px/1.15 var(--display); text-transform: none; letter-spacing: -.01em; }
.tiles.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin: 16px 0; }
.luck-tiles .tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.luck-tiles .tile .v { font-size: 28px; }

/* Lists, tables */
.hl .t { font-size: 14.5px; }
table.compact th { font: 700 10.5px/1 var(--display); letter-spacing: .08em; }
table.compact td { border-top: 0; padding: 8px 6px; }
table.compact tbody tr td:first-child { border-radius: 10px 0 0 10px; }
table.compact tbody tr td:last-child { border-radius: 0 10px 10px 0; }
table.compact tr.cut td, table.data tr.cut td { border-top: 2px dashed var(--brand); }
table.data td { border-radius: 0; }
table.data td:first-child { border-radius: 10px 0 0 10px; }
table.data td:last-child { border-radius: 0 10px 10px 0; }
.mv { font-family: var(--display); }

/* Games */
.game { border-radius: var(--radius); }
.game-status { font: 600 12px/1 var(--body); letter-spacing: 0; text-transform: none; background: transparent; border-bottom: 1px solid var(--line); }
.game-team { border-top: 0; }
.game-team + .game-team { border-top: 1px solid var(--line); }
.game-team .sc { font: 700 26px/1 var(--display); letter-spacing: -.02em; }
.game-team .sc.win-pct { font-size: 24px; color: var(--text); }
.game-team.me .sc.win-pct { color: var(--me); }
.game-team .rec .projn { color: var(--text); font-weight: 700; }
.game-team:not(.lose):first-of-type { background: transparent; }
.game-foot { background: transparent; }
.rest li i { font: 700 11px/1 var(--display); color: var(--brand); }

/* Matchup to watch */
.mw .kicker { font: 700 11px/1.2 var(--display); color: var(--brand); }
.mw-board { border-radius: 16px; }
.mw-name { font: 700 20px/1.15 var(--display); letter-spacing: -.01em; }
.mw-num { font: 700 32px/1 var(--display); letter-spacing: -.02em; }
.mw-side.me .mw-name { color: var(--me); }

/* Bracket, playoffs */
.bk-head { border-bottom-color: var(--brand); }
.bk-head b { font: 700 13px/1 var(--display); letter-spacing: .02em; text-transform: none; }
.bk-game { border-radius: 14px; }
.bk-team .sd, .bk-team .pt { font-family: var(--display); font-weight: 700; }
.champ { border-radius: var(--radius); background: var(--grad); color: #fff; }
.champ b { font: 700 28px/1.1 var(--display); }
.pbadge { font: 700 10.5px/1 var(--body); letter-spacing: .02em; text-transform: none; border-radius: 99px; padding: 5px 9px; }
.pbadge.in { background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); }
.pbadge.maybe { border: 0; background: color-mix(in srgb, var(--brand) 15%, transparent); color: var(--brand); }
.pbadge.out { background: var(--surface2); color: var(--muted); }
.odds i { background: var(--brand); }
.cmark { font-family: var(--display); border-radius: 5px; }
.rtag { font: 700 10px/1 var(--body); letter-spacing: .02em; text-transform: none; border-radius: 6px; padding: 3px 6px; }
.clinch-note, .releg-note { border-radius: 0 12px 12px 0; }

/* Power */
.ptier { font: 700 11px/1.2 var(--display); color: var(--brand); }
.prk, .pscore { font-family: var(--display); font-weight: 700; }
.prow { border-radius: 12px; }

/* Draft picks */
.pk.got, table.pk-board .cell { background: color-mix(in srgb, var(--brand) 22%, var(--surface2)); color: var(--text); }
.pk-count .v, table.pk-board .tot { font-family: var(--display); font-weight: 700; }
.pk-ledger .d { font: 700 12.5px/1.3 var(--display); letter-spacing: 0; text-transform: none; color: var(--brand); }
table.pk-board thead th { font: 700 10.5px/1 var(--display); letter-spacing: .06em; }
.rb-h { font: 700 13px/1.2 var(--display); letter-spacing: .04em; text-transform: none; }

/* Articles */
.article h1 { font-size: clamp(28px, 4.2vw, 40px); }
.prose h2, .prose h3, .prose h4 { font-family: var(--display); text-transform: none; letter-spacing: -.01em; }
.prose h2 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.prose h3 { font-size: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.prose blockquote { border-left-color: var(--brand); }

/* Heat grid cells: rounder */
.grid td { border-radius: 6px; }
.grid td.diag { outline-color: var(--brand); }

/* Pop-up sheet */
dialog.sheet { border-radius: 20px; }
.sheet-top h2 { font: 700 21px/1.15 var(--display); }

/* Footer: network sign-off */
.site-foot { border-top: 0; }
.site-foot .wrap { align-items: center; }
.netfoot img { height: 32px; width: auto; display: block; }
.netfoot .end-r { display: none; }
:root[data-theme="dark"] .netfoot .end-c { display: none; }
:root[data-theme="dark"] .netfoot .end-r { display: block; }

/* Tablets: masthead on top, tabs as a pill row */
@media (min-width: 760px) and (max-width: 959px) {
  nav.mainnav a svg { display: none; }
}

/* Phones */
@media (max-width: 759px) {
  .netbar { gap: 10px; min-height: 58px; padding: calc(12px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 12px max(12px, env(safe-area-inset-left)); }
  .nb-mark .nb-lock, :root[data-theme="light"] .nb-mark .nb-lock-c { display: none; }
  .nb-mark .nb-mini { display: block; height: 26px; }
  :root[data-theme="light"] .nb-mark .nb-mini { display: none; }
  :root[data-theme="light"] .nb-mark .nb-mini-c { display: block; height: 26px; }
  .nb-leagues a { padding: 8px 11px; font-size: 12px; }
  .nb-leagues .plat, .nb-air { display: none; }
  .ticker { border-top: 0; padding: 10px 12px 0; height: auto; }
  .mast-top .logo { border-radius: 11px; }
  .mast-title b { font-size: 20px; }
  h1 { font-size: 27px; margin-top: 18px; }
  .card { padding: 16px 14px; border-radius: 18px; }
  .lead, a.report-lead { padding: 22px 18px 20px; border-radius: 20px; }
  .bottomnav { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); border-radius: 22px; border: 1px solid var(--line);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .25); padding: 6px 4px; }
  body { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .bottomnav a { font: 700 10px/1 var(--body); letter-spacing: 0; text-transform: none; min-height: 50px; }
  .bottomnav a.on { color: var(--brand); }
  .bottomnav a.on svg { stroke: var(--brand); background: color-mix(in srgb, var(--brand) 15%, transparent); border-radius: 99px; padding: 3px 10px; width: 40px; height: 28px; }
  .odds .track { display: none; }
  table.data td.stick { white-space: normal; min-width: 118px; max-width: 150px; line-height: 1.25; }
  table.data td.stick .pbadge { margin-top: 3px; }
  .report-slim a { padding: 10px 14px; }
  nav.sub { border-radius: 18px; gap: 2px; }
  nav.sub a { padding: 9px 10px; font-size: 12.5px; }
  .luck-tiles .tile .v { font-size: 24px; }
}
@media print { .netbar, .site-foot .netfoot { display: none !important; } }
@media (min-width: 960px) {
  .shell { background: linear-gradient(90deg, var(--rail-bg) calc(var(--rail-w) - 1px), var(--line) calc(var(--rail-w) - 1px), var(--line) var(--rail-w), transparent var(--rail-w)); }
}
.lead h3 { font-size: clamp(24px, 3vw, 30px); }
.tile .v { font-size: 17px; }

/* League logos are full square images (white background for Fayetteville's Finest): show them edge to edge. */
.mast-top .logo { padding: 0; background: #fff; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.nb-leagues .mini img { background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }

/* Team names in tables: one line, cut short with an ellipsis when too long, so a long name never runs
   into the W-L / score columns. The full name is on the element's title (tooltip). */
table .tn { display: inline-block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
table.compact td.nm .tn { display: inline; max-width: none; } /* the .nm cell already does the cutting */
@media (max-width: 600px) {
  table .tn { max-width: 132px; }
}
.grid th.colh div { max-height: 80px; overflow: hidden; text-overflow: ellipsis; }
