/* STATWIRE league pages (NFL, MLB, NHL): the Stat Center's own stylesheet, copied from public/index.html so the
   league Live Wires, maps, lines, rankings, playoff and draft pages look exactly like the NBA Stat Center.
   The header block is kept in step by scripts/swh-header.mjs. League additions are at the end ("league additions"). */

/* fonts and tokens: same as the Power Rankings and Playoff Map (/assets/site.css), orange Rankings accent */
@font-face{font-family:'Archivo';font-style:normal;font-weight:500 900;font-display:swap;src:url(/assets/fonts/archivo-latin.woff2) format('woff2')}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 600;font-display:swap;src:url(/assets/fonts/jetbrains-mono-latin.woff2) format('woff2')}
:root{
  --page-max:1560px; /* one page width: .wrap, the header bar (.swh-bar) and the footer */
  --bg:#F2F5EE; --panel:#ffffff; --panel2:#f8f8fb; --line:#e8e8ee; --chip:#efeff4;
  --ink:#0c0c11; --muted:#6b6b76; --accent:#c2410c; --accent2:#b4440f;
  --gold:#a8861c; --top6:#17408b; --playin:#c9082a; --good:#0f7a3d;
  --tint:#fde3d3; --head:rgba(242,245,238,.92);
  --head-bg:#E4F5C8; --head-line:#BFE08E; --head-btn:#FFFFFF; --head-nav:#55555F;
  --mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
  --sans:'Archivo',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --gutter:16px;
  /* card border, and the side padding of the card title bands; the header and footer reuse both
     so their content lines up with the content inside the cards */
  --card-border:1px; --edge-inset:16px;
  /* Stat Center aliases: live/out follow the shared good/play-in colors; injury statuses keep distinct hues */
  --up:var(--good); --down:var(--playin); --warn:#b45309; --doubt:#c2410c;
  --court:var(--panel2); --drawer:var(--panel);
  --make:#15803d; --miss:#dc2626;   /* shot chart: fixed, not team colors */
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.45;
  padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
a{color:inherit}
button{font:inherit;color:inherit;cursor:pointer}
.num{font-variant-numeric:tabular-nums}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.wrap{max-width:var(--page-max);margin:0 auto;padding:0 var(--gutter)}
/* page background: same --bg as the Power Rankings and Playoff Map (assets/site.css) */
html{background:var(--bg);min-height:100%}
body{min-height:100vh;min-height:100dvh}

@media (max-width:374px){ .pill{padding:4px 8px;font-size:10px} }
.spacer{flex:1}
.updated{order:3;flex-basis:100%;font-family:var(--mono);font-size:11px;color:var(--muted)}
.pill{font-family:var(--mono);font-size:11px;padding:5px 10px;border:1px solid var(--line);border-radius:99px;color:var(--muted);white-space:nowrap}
.pill.live{color:var(--up);border-color:var(--up)}
.pill.warn{color:var(--warn);border-color:var(--warn)}
.pill.demo{color:var(--accent2);border-color:var(--accent2)}
.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:currentColor;margin-right:6px;vertical-align:1px}
.pill.live .dot{animation:pulse 2s infinite}
@keyframes pulse{50%{opacity:.35}}



/* ---------- cards & layout ---------- */
.layout{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;padding-top:18px}
.card{background:var(--panel);border:var(--card-border) solid var(--line);border-radius:14px;padding:16px;min-width:0}
.section-h{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:0 0 10px}
.section-h h2{margin:0;font-size:13px;letter-spacing:.14em;text-transform:uppercase;font-weight:800}
.section-h .src{font-family:var(--mono);font-size:10px;color:var(--muted);margin-left:auto}
.empty{margin:0;padding:24px 2px;font-size:13px;color:var(--muted)}

/* team badges */
.team{display:inline-block;font-family:var(--mono);font-weight:700;font-size:.82em;letter-spacing:.02em;padding:1px 5px;border-radius:4px;line-height:1.35;white-space:nowrap;
/* Team badges: crisp text (palettes audited for >= 5:1 by scripts/badge-contrast.mjs) */
.team, .tb, .sb-ab { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
  width:auto;max-width:max-content;flex:0 0 auto;justify-self:start;align-self:center}

.gs-t,.bl-rk,.bl-v,.court-line,.gv,.gs-edge,.strip-v,.strip-ax,.ij-v,.log time,.cal li span,.updated,.sh-rows .num,.v{font-variant-numeric:tabular-nums}

/* facts (results) */
.fact{display:block;padding:12px 0;border-bottom:1px solid var(--line);cursor:pointer;font-size:15px}
.fact:last-child{border-bottom:0}
.fact .sub{display:block;margin-top:4px;font-family:var(--mono);font-size:11px;color:var(--muted)}
.v{font-family:var(--mono);font-size:.92em;color:var(--accent2);padding:0 2px;border-radius:3px}
@media (hover:hover){.fact:hover .v{background:var(--tint)}}

/* injuries */
.inj-team{margin:14px 0 2px;font-family:var(--mono);font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.inj-team:first-child{margin-top:0}
.inj{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:2px 10px;padding:6px 2px;border-bottom:1px solid var(--line);cursor:pointer;min-height:48px;align-items:center}
.inj:hover{background:var(--panel2)}
.inj:last-of-type{border-bottom:0}
.inj .who{font-size:14px;font-weight:700;overflow-wrap:anywhere}
.inj .what{grid-column:2/-1;font-family:var(--mono);font-size:11px;color:var(--muted)}
.status{font-family:var(--mono);font-size:10px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;padding:3px 7px;border-radius:5px;background:var(--chip);white-space:nowrap}
.status.out{color:var(--down)} .status.doubtful{color:var(--doubt)} .status.questionable{color:var(--warn)} .status.probable,.status.dtd{color:var(--accent2)}

/* transactions */
.log{font-size:13px}
.log div{min-height:48px;padding:6px 2px;border-bottom:1px solid var(--line);display:grid;grid-template-columns:62px minmax(0,1fr);align-items:center;gap:10px}
.log div:last-child{border-bottom:0}
.log time{font-family:var(--mono);font-size:11px;color:var(--muted)}

/* calendar: vertical list on phones */
.cal{list-style:none;margin:0;padding:0;position:relative}
.cal::before{content:"";position:absolute;left:6px;top:6px;bottom:6px;width:2px;background:var(--line)}
.cal li{position:relative;padding:6px 0 6px 26px;display:flex;justify-content:space-between;gap:10px;font-size:14px}
.cal li i{position:absolute;left:0;top:10px;width:14px;height:14px;border-radius:50%;background:var(--panel);border:2px solid var(--muted)}
.cal li.past i{background:#0F7A3D;border-color:#0F7A3D}
.cal li b{font-family:var(--sans);font-weight:500;text-transform:uppercase;letter-spacing:.06em;font-size:12px;line-height:1.3;overflow-wrap:normal;hyphens:none}
.cal li.past{color:var(--muted)}
.cal li.next b{color:var(--accent)}
.cal li span{font-family:var(--mono);font-size:11px;color:var(--muted);white-space:nowrap;padding-top:2px}
.cal li span span{padding-top:0}

.layout { padding-bottom: 14px; }

.ij-ppg { font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: var(--muted); }

/* source card: bottom sheet on phones, centered card on larger screens */
.scrim{position:fixed;inset:0;background:rgba(12,12,17,.32);opacity:0;pointer-events:none;transition:opacity .2s;z-index:39}
.scrim.open{opacity:1;pointer-events:auto}
.sheet{position:fixed;left:0;right:0;bottom:0;z-index:40;max-height:85vh;overflow:auto;overscroll-behavior:contain;background:var(--panel);
  border-radius:20px 20px 0 0;box-shadow:0 -12px 40px rgba(12,12,17,.18);
  padding:10px 20px calc(20px + env(safe-area-inset-bottom));
  transform:translateY(100%);visibility:hidden;transition:transform .25s ease,visibility 0s .25s}
.sheet.open{transform:none;visibility:visible;transition:transform .25s ease}
.grab{width:40px;height:4px;border-radius:2px;background:var(--line);margin:0 auto 12px}
.sh-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.sh-kind{font-family:var(--mono);font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--accent)}
.sh-x{margin-left:auto;width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:var(--panel2);
  display:grid;place-items:center;font-size:14px;color:var(--muted);flex:0 0 auto}
.sh-x:hover{color:var(--ink)}
.sh-x:focus{outline:none}
.sh-stat{font-size:18px;line-height:1.5;font-weight:500;padding:2px 0 16px;border-bottom:1px solid var(--line)}
.sh-stat b{font-weight:700}
.sh-rows{margin:0;display:grid;grid-template-columns:auto minmax(0,1fr)}
.sh-rows dt,.sh-rows dd{margin:0;padding:11px 0;border-bottom:1px solid var(--line)}
.sh-rows dt{font-family:var(--mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);padding-right:16px;padding-top:13px;white-space:nowrap}
.sh-rows dd{font-size:14px;text-align:right;overflow-wrap:anywhere}
.sh-rows dt:last-of-type,.sh-rows dd:last-of-type{border-bottom:0}
.sh-rows dd small{font-family:var(--mono);font-size:10px;color:var(--muted)}
.sh-rows .num{font-family:var(--mono)}
.sh-link{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:14px;min-height:46px;padding:12px;border-radius:12px;
  background:var(--ink);color:#FFFFFF;border:0;width:100%;text-decoration:none;font-weight:700;font-size:14px;transition:filter .15s,background-color .15s}
.sh-link:hover{background:var(--accent)}
.sh-link[data-net]{color:#FFFFFF}
.sh-link[data-net]:hover{filter:brightness(.9)}
.sh-link[data-net="yahoo"],.sh-link[data-net="yahoo"]:hover{background:#6001D2}
.sh-link[data-net="espn"],.sh-link[data-net="espn"]:hover{background:#CC0000}
.sh-link[data-net="rotowire"],.sh-link[data-net="rotowire"]:hover{background:#1D4ED8}
.sh-link[data-net="hoopsrumors"],.sh-link[data-net="hoopsrumors"]:hover{background:#C2410C}
.sh-link[data-net="cbs"],.sh-link[data-net="cbs"]:hover{background:#0046AD}
.sh-link[data-net="realgm"],.sh-link[data-net="realgm"]:hover{background:#B91C1C}
.sh-link[data-net="nba"],.sh-link[data-net="nba"]:hover{background:#1D428A}
.sh-link[data-net="hoopshype"],.sh-link[data-net="hoopshype"]:hover{background:#0284C7}
.sh-link[data-net="clutchpoints"],.sh-link[data-net="clutchpoints"]:hover{background:#881337}
.sh-link[data-net="fansided"],.sh-link[data-net="fansided"]:hover{background:#EA580C}
.sh-link[data-net="nbc"],.sh-link[data-net="nbc"]:hover{background:#1D3557}
.sh-link[data-net="athletic"],.sh-link[data-net="athletic"]:hover{background:#18181B}
.sh-link[data-net="br"],.sh-link[data-net="br"]:hover{background:#101216}
.sh-link[data-net="si"],.sh-link[data-net="si"]:hover{background:#D91C24}
.sh-link[data-net="slam"],.sh-link[data-net="slam"]:hover{background:#E85D04}
.sh-link[data-net="spotrac"],.sh-link[data-net="spotrac"]:hover{background:#0F7A3D}
.sh-link[data-net="pft"],.sh-link[data-net="pft"]:hover{background:#1D3557}
.sh-link[data-net="pfr"],.sh-link[data-net="pfr"]:hover{background:#C2410C}
.sh-link[data-net="nfltr"],.sh-link[data-net="nfltr"]:hover{background:#0F7A3D}
.sh-link[data-net="rotoballer"],.sh-link[data-net="rotoballer"]:hover{background:#B5121B}
.sh-link[data-net="fangraphs"],.sh-link[data-net="fangraphs"]:hover{background:#3B7D1F}
.sh-link[hidden]{display:none}

/* ---------- tablet ---------- */
@media (min-width:720px){
  :root{--gutter:24px;--edge-inset:18px}
  .updated{order:0;flex-basis:auto}
        .layout{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  .span2{grid-column:1/-1}
  .card{padding:18px}
  .sheet{left:50%;right:auto;top:50%;bottom:auto;width:min(480px,calc(100% - 48px));max-height:calc(100vh - 48px);
    border-radius:20px;padding:20px 24px 22px;box-shadow:0 24px 64px rgba(12,12,17,.24);
    transform:translate(-50%,-46%);opacity:0;transition:transform .2s ease,opacity .2s ease,visibility 0s .2s}
  .sheet.open{transform:translate(-50%,-50%);opacity:1;transition:transform .2s ease,opacity .2s ease}
  .grab{display:none}
}
/* ---------- desktop ---------- */
@media (min-width:1024px){
  .layout{grid-template-columns:repeat(12,minmax(0,1fr))}
  .c7{grid-column:span 7}.c6{grid-column:span 6}.c5{grid-column:span 5}.c12{grid-column:span 12}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* content starts one gutter below the header, matching the side gutters */
.layout { padding-top: var(--gutter); }
/* the two-tier header is about 98px tall above 680px and about 140px on phones */
#scoreboard, #shotCard, #injury-report, #calendar { scroll-margin-top: 130px; }

@media (min-width: 769px) {
  #scoreboard, #shotCard, #injury-report, #calendar { scroll-margin-top: 74px; }
}

/* ================= visual-first cards ================= */
.mono-m { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* best lines */
.bls { display: flex; flex-direction: column; }
.bl { display: grid; grid-template-columns: 26px minmax(0, 200px) minmax(0,1fr); align-items: center; gap: 10px;
  width: 100%; min-height: 48px; padding: 6px 2px; margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent;
  font: inherit; color: inherit; text-align: left; cursor: pointer; transition: background .15s; }
.bl:last-child { border-bottom: 0; }
.bl:hover { background: var(--panel2); }
.bl[aria-pressed="true"] { background: #EEF2F6; }
/* REB, AST and PRA rows are plain list items: shot charts belong to the PTS list */
div.bl { cursor: default; }
div.bl:hover { background: transparent; }
.bl-rk { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--muted); text-align: right; }
.bl-who { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.bl-nm { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bl-tag { font-family: var(--mono); font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bl-track { display: flex; align-items: center; gap: 8px; }
.bl-bar { height: 18px; border-radius: 4px; display: block; }
.bl-v { font-family: var(--mono); font-size: 13px; font-weight: 600; }
/* the list scrolls inside the card; a fade at the bottom shows there's more */
.bls-scroll, .card-scroll { position: relative; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.bls-scroll { max-height: 480px; }
.bls-scroll::-webkit-scrollbar, .card-scroll::-webkit-scrollbar { width: 8px; }
.bls-scroll::-webkit-scrollbar-thumb, .card-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.bls-scroll::-webkit-scrollbar-thumb:hover, .card-scroll::-webkit-scrollbar-thumb:hover { background: var(--muted); }
.bls-scroll::-webkit-scrollbar-track, .card-scroll::-webkit-scrollbar-track { background: transparent; }
.bls-scroll:focus-visible, .card-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.bls-scroll::after, .card-scroll::after { content: ''; position: sticky; bottom: 0; display: block; height: 28px; margin-top: -28px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--panel)); transition: opacity .15s; }
.bls-scroll.at-end::after, .card-scroll.at-end::after { opacity: 0; }
/* Scoreboard, Game breakdowns, Injury impact and Transactions: capped at one shared height; the title band stays, the list scrolls */
:root { --card-max: 600px; }
@media (min-width: 720px) { :root { --card-max: 540px; } }
#scoreboard, #resCard:not([hidden]), #injury-report:not([hidden]), #txCard:not([hidden]) { display: flex; flex-direction: column; max-height: var(--card-max); }
.card-scroll { flex: 1 1 auto; min-height: 0; }
@media (min-width: 720px) {
  /* the card takes the Shot Chart's height and the list fills the rest of it */
  #bestCard:not([hidden]) { display: flex; flex-direction: column; }
  .bls-scroll { flex: 1 1 auto; height: 0; max-height: none; min-height: 360px; }
}
.bl-hint { margin: 10px 0 0; font-family: var(--mono); font-size: 10px; color: var(--muted); }
/* stat pills above the list; the selected one is styled like the header's nav badge */
.bl-sort { display: flex; flex: 0 0 auto; gap: 4px; margin: -4px 0 8px; }
.bl-pill { min-height: 40px; padding: 0 12px; margin: 0; border: 0; border-radius: 8px; background: transparent; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #6b6b76; transition: background-color .15s, color .15s; }
.bl-pill:hover { color: #0c0c11; background: #f1f1f5; }
.bl-pill[aria-pressed="true"], .bl-pill[aria-pressed="true"]:hover { background: #0c0c11; color: #ffffff; }
.bl-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* six pills (NFL Live Wire): tighter on phones so the row fits down to 320px */
@media (max-width: 520px) { .bl-sort.is-6 { gap: 2px; } .bl-sort.is-6 .bl-pill { padding: 0 8px; letter-spacing: .04em; } }
@media (max-width: 380px) { .bl-sort.is-6 .bl-pill { padding: 0 6px; font-size: 11px; } }

/* shot chart */
.court-wrap { display: flex; flex-direction: column; gap: 10px; }
.court-who { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.court-svg { width: 100%; height: auto; display: block; }
.court-svg .cl { fill: none; stroke: rgb(201, 203, 214); stroke-width: 2; }
.court-svg .court-bg { fill: var(--panel2); }
.court-svg .hw-seam { fill: none; stroke: rgba(185, 180, 172, 0.30); stroke-width: 1; }
.court-svg .hw-joint { fill: none; stroke: rgba(185, 180, 172, 0.22); stroke-width: 1; }
.court-svg .hw-plank-alt { fill: rgba(215, 200, 180, 0.035); }
.court-svg .make { fill: var(--make); }
.court-svg .miss path { stroke: var(--miss); stroke-width: 2.5; stroke-linecap: round; }
.court-line { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.court-line b { color: var(--ink); font-size: 15px; }
.court-key { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; font-weight: 600; color: var(--muted); }
.court-key i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; font-style: normal; }
.court-key .k-made { background: var(--make); }
.court-key .k-miss { width: auto; height: auto; font-size: 13px; line-height: 0; color: var(--miss); }

/* game breakdowns: one stat comparison per game, mirrored like the tale of the tape */
.sbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 10px; }
.gs { border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); padding: 10px 12px; display: flex; flex-direction: column; gap: 5px; }
.gs-head { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 6px; margin-bottom: 4px; }
.gs-t { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 18px; }
.gs-t b { font-weight: 600; }
.gs-t .gs-lp { color: var(--muted); }
.gs-m { text-align: center; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.gs-row { display: grid; grid-template-columns: 34px minmax(0,1fr) 34px minmax(0,1fr) 34px; align-items: center; gap: 5px; }
.gv { font-family: var(--mono); font-size: 11px; font-weight: 600; }
.gv.r { text-align: right; }
.gv.dim { color: var(--muted); font-weight: 400; }
.gb { display: flex; height: 9px; }
.gb.l { justify-content: flex-end; }
.gb i { display: block; height: 100%; border-radius: 2px; }
.gb i.dim { opacity: .38; }
.gl { text-align: center; font-size: 10px; font-weight: 700; color: var(--muted); }
.gs-d { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: .04em; }
.team.team-x { background: #96A0A8; color: #FFFFFF; }
.stag { display: inline-block; margin-left: 6px; padding: 0 4px; border: 1px solid var(--line); border-radius: 3px; font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .04em; color: var(--muted); vertical-align: 1px; }
.gs-edge { margin-top: 3px; padding-top: 6px; border-top: 1px dashed var(--line); font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: .04em; }
.gs-edge b { color: var(--accent2); font-size: 12px; }
/* team badges are only as wide as their text, even inside grid cells (the 44px injury column stays, badge left-aligned) */
.gs .team, .ij-top .team { width: max-content; }

/* Live wire (#newsCard): cards match .gs / .sb-tile */
#newsCard:not([hidden]) { display: flex; flex-direction: column; max-height: var(--card-max); scroll-margin-top: 74px; }
/* News & Notes and Game breakdowns sit side by side under the Scoreboard at one shared height */
@media (min-width: 720px) { #newsCard:not([hidden]), #resCard:not([hidden]) { height: var(--card-max); } }
#newsCard .sb-livedot { display:inline-block; width:7px; height:7px; border-radius:4px; background:#F43F5E; margin-right:8px; vertical-align:1px; }
.nw-bar { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 4px; margin: -4px 0 10px; }
.nw-team-select { margin-left: 0; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); color: var(--ink);
  font-family: var(--mono); font-size: 11px; font-weight: 600; cursor: pointer; outline: none; }
.nw-team-select:focus { border-color: var(--ink); }
.nw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 10px; }
.nw-item { border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); padding: 11px 13px; display: flex; flex-direction: column; gap: 8px;
  cursor: pointer; transition: background-color 0.15s, border-color 0.15s; text-align: left; }
.nw-item:hover { background: var(--panel); border-color: rgb(215, 215, 224); }
.nw-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nw-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 1px; }
.nw-time { font-weight: 600; color: var(--muted); }
.nw-time.fresh { color: var(--ink); font-weight: 700; }
.nw-src-badge { padding: 1.5px 6px; border-radius: 4px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-weight: 700; font-size: 9px; letter-spacing: 0.04em; text-transform: uppercase; }
.nw-src-badge[data-net] { color: #FFFFFF; border-color: transparent; }
.nw-src-badge[data-net="yahoo"]        { background: #6001D2; }
.nw-src-badge[data-net="espn"]         { background: #CC0000; }
.nw-src-badge[data-net="rotowire"]     { background: #1D4ED8; }
.nw-src-badge[data-net="hoopsrumors"]  { background: #C2410C; }
.nw-src-badge[data-net="cbs"]          { background: #0046AD; }
.nw-src-badge[data-net="realgm"]       { background: #B91C1C; }
.nw-src-badge[data-net="nba"]          { background: #1D428A; }
.nw-src-badge[data-net="hoopshype"]    { background: #0284C7; }
.nw-src-badge[data-net="clutchpoints"] { background: #881337; }
.nw-src-badge[data-net="fansided"]     { background: #EA580C; }
.nw-src-badge[data-net="nbc"]          { background: #1D3557; }
.nw-src-badge[data-net="athletic"]     { background: #18181B; }
.nw-src-badge[data-net="br"]           { background: #101216; }
.nw-src-badge[data-net="si"]           { background: #D91C24; }
.nw-src-badge[data-net="slam"]         { background: #E85D04; }
.nw-src-badge[data-net="spotrac"]      { background: #0F7A3D; }
.nw-src-badge[data-net="pft"]          { background: #1D3557; }
.nw-src-badge[data-net="pfr"]          { background: #C2410C; }
.nw-src-badge[data-net="nfltr"]        { background: #0F7A3D; }
.nw-src-badge[data-net="rotoballer"]   { background: #B5121B; }
.nw-src-badge[data-net="fangraphs"]    { background: #3B7D1F; }
a.nw-src-badge { text-decoration: none; cursor: pointer; }
a.nw-src-badge:hover, a.nw-src-badge:focus-visible { filter: brightness(1.12); text-decoration: underline; }
.nw-cat-tag { margin-left: auto; font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.06em; padding: 2px 6px; border-radius: 5px; background: var(--chip); color: var(--muted); text-transform: uppercase; }
.nw-cat-tag.cat-injury { color: var(--down); }
.nw-cat-tag.cat-lineup { color: var(--warn); }
.nw-cat-tag.cat-odds { color: var(--good); }
.nw-cat-tag.cat-props { color: var(--accent2); }
.nw-cat-tag.cat-beat { color: var(--muted); }
.nw-title-row { font-size: 14px; font-weight: 700; line-height: 1.38; color: var(--ink); display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.nw-teams-wrap { display: inline-flex; align-items: center; gap: 5px; margin-right: 2px; }
.nw-summary { font-size: 12.5px; line-height: 1.45; color: #3F3F46; margin: 0; }
@media (max-width: 640px) { .nw-grid { grid-template-columns: 1fr; } }

/* season leaders: HTML dots, crisp at any width */
.strip { margin-top: 14px; }
.strip-lab { display: flex; justify-content: space-between; gap: 4px 8px; align-items: baseline; font-size: 12px; font-weight: 700; flex-wrap: wrap; }
.strip-v { font-family: var(--mono); font-size: 11px; color: var(--muted); font-weight: 400; }
.strip-v b { color: var(--accent2); font-size: 15px; }
.strip-plot { position: relative; height: 34px; margin: 6px 7px 0; border-bottom: 1px solid var(--line); }
.strip-plot .sd { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); opacity: .2; transform: translate(-50%,-50%); }
.strip-plot .sd.lead { top: 50%; width: 14px; height: 14px; background: var(--accent); opacity: 1; box-shadow: 0 0 0 2px var(--panel); }
.strip-ax { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: var(--muted); margin-top: 3px; }

/* injury impact */
.ij { min-height: 48px; padding: 6px 2px; border-bottom: 1px solid var(--line); }
.ij:last-child { border-bottom: 0; }
.ij-top { display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; align-items: center; gap: 8px; }
.ij-track { display: block; height: 12px; background: var(--chip); border-radius: 3px; overflow: hidden; }
.ij-fill { display: flex; height: 100%; border-radius: 3px; overflow: hidden; }
.ij-bar { display: block; height: 100%; }
/* Out vs Day-to-day key, above the scroll area */
.ij-key { display: flex; flex: 0 0 auto; align-items: center; gap: 16px; height: 20px; margin: -4px 0 8px; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.ij-key span { display: inline-flex; align-items: center; gap: 6px; }
.ij-key i { display: block; width: 14px; height: 10px; border-radius: 2px; background: #6b6b76; }
.ij-key i.dtd { background: rgba(107,107,118,.35); }
.ij-split { display: none; margin-top: 4px; font-family: var(--mono); font-size: 10px; color: var(--muted); }
@media (hover: none) { .ij-split { display: block; } }
.ij-v { font-family: var(--mono); font-size: 13px; font-weight: 600; text-align: right; }
/* injury share severity pill (Injury impact and Scoreboard): tier set by injPill() */
.inj-sev { display: inline-block; padding: 2px 6px; border-radius: 4px; line-height: 1.4; white-space: nowrap; }
.inj-sev[data-sev="low"] { background: #15803D; color: #FFFFFF; }
.inj-sev[data-sev="caution"] { background: #FACC15; color: #0C0C11; }
.inj-sev[data-sev="high"] { background: #DC2626; color: #FFFFFF; }
.ij-v .inj-sev { min-width: 44px; box-sizing: border-box; text-align: center; }
.ij-names { margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.8; }
.ij-names b { color: var(--ink); font-weight: 700; }
.ij-names .status { font-size: 9px; padding: 1px 5px; }
/* no-stats marker on the Injury impact names (Option #3 lime / obsidian) */
.ij-na { font-family: var(--mono); font-size: 9px; font-weight: 500; padding: 1px 5px; border-radius: 4px; background: #F5F8F1; color: var(--muted); border: 1px dashed #D6E0CC; white-space: nowrap; }
@media (min-width: 720px) {
  #injury-report.solo .ij-all { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); column-gap: 24px; }
  #injury-report.solo .ij-all .ij:last-child { border-bottom: 1px solid var(--line); }
}


@media (max-width: 519px) { .bl { grid-template-columns: 26px minmax(0, 150px) minmax(0,1fr); } }

/* live-data extras: leader tooltip, lone cards */
.strip-plot .sd.lead { cursor: pointer; }
.strip-plot .sd.lead:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.strip-tip { position: absolute; right: 0; bottom: calc(100% + 2px); display: none; white-space: nowrap; font-size: 12px; font-weight: 700; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; box-shadow: 0 4px 14px rgba(12,12,17,.12); z-index: 2; }
.strip-plot:hover .strip-tip, .strip.show .strip-tip, .strip-plot .sd.lead:focus + .strip-tip { display: block; }
.ij-names { color: var(--muted); }
.card.solo { grid-column: 1 / -1; }
/* Season leaders: tiered strip plots */
#leadCard:not([hidden]) { display: flex; flex-direction: column; justify-content: space-between; }
@media (min-width: 720px) { #leadCard:not([hidden]) { min-height: var(--card-max); height: 100%; } }
/* Injury impact: exactly as tall as Season leaders while the two share a row (>= 720px, both cards shown);
   contain:size keeps the 30-32 team list from setting the row height, so Season leaders sets it and the list scrolls */
#injury-report:not([hidden]) { align-self: stretch; }
#injury-report > .section-h, #injury-report > .lg-note, #injury-report > .nhl-note, #injury-report > .ij-note { flex: none; }
@media (min-width: 720px) {
  #injury-report:not([hidden]):not(.solo) { height: 100%; min-height: 420px; max-height: none; }
  #injury-report:not(.solo) > .card-scroll { flex: 1 1 0; min-height: 0; max-height: none; overflow-y: auto; contain: size; }
}
@media (max-width: 719px) {
  #injury-report:not([hidden]) { max-height: none; }
  #injury-report > .card-scroll { max-height: 520px; }
}
.lead-key { display: flex; flex: 0 0 auto; align-items: center; flex-wrap: wrap; gap: 5px; min-height: 24px; margin: -6px 0 10px; font-family: var(--mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.lk-chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 7px; border-radius: 5px; border: 1px solid var(--line); background: var(--panel2); color: var(--muted); font: 600 9.5px var(--mono); text-transform: uppercase; letter-spacing: .04em; cursor: pointer; transition: all .15s ease; }
.lk-chip:hover { border-color: #CBD5E1; color: var(--ink); background: #FFFFFF; }
.lk-chip.active, .lk-chip[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.lk-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lk-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.lk-dot.t1 { background: #0891B2; } .lk-dot.t2 { background: #2563EB; } .lk-dot.t3 { background: #7C3AED; } .lk-dot.t4 { background: #F59E0B; }
.lk-dot.lead { background: #EA580C; box-shadow: 0 0 0 1.5px #FFEDD5; }
#strips { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-between; gap: 9px; min-height: 0; }
#leadCard .strip { margin-top: 0; flex: 1 1 0%; display: flex; flex-direction: column; justify-content: space-between; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 7px; min-height: 0; transition: border-color .15s ease, box-shadow .15s ease; }
#leadCard .strip:hover { border-color: #D0D5DD; box-shadow: 0 2px 8px rgba(12,12,17,.04); }
#leadCard { container: lead / inline-size; }
#leadCard .strip-lab { display: flex; justify-content: space-between; align-items: center; gap: 6px 12px; flex-wrap: nowrap; margin-bottom: 4px; }
.strip-head-l { display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; flex: 0 1 auto; flex-wrap: wrap; }
.strip-cat { font-size: 13px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.strip-bench { font-family: var(--mono); font-size: 10px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.strip-bench b { color: #334155; font-weight: 700; }
/* leader block: fixed tracks so badge, name, score and delta line up across all four strips */
#leadCard .strip-v { display: grid; grid-template-columns: 164px 64px 88px; align-items: center; column-gap: 8px; margin-left: auto; flex: 0 0 auto; font-family: var(--mono); font-size: 11px; }
.strip-who { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; column-gap: 7px; min-width: 0; font-family: var(--sans); font-size: 12.5px; color: var(--ink); }
#leadCard .strip-who .team { width: 36px; min-width: 36px; max-width: none; height: 20px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700; line-height: 1; border-radius: 4px; box-sizing: border-box; place-self: center; }
.strip-who b { font-weight: 700; color: var(--ink) !important; font-size: 12.5px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; text-align: left; }
.strip-score { display: grid; grid-template-columns: minmax(0, 1fr) 24px; align-items: baseline; column-gap: 3px; justify-items: end; font-variant-numeric: tabular-nums; line-height: 1; }
.strip-score b { color: var(--accent); font-size: 15px; font-weight: 800; line-height: 1; }
.strip-unit { font-size: 10px; font-weight: 700; color: var(--muted); justify-self: start; line-height: 1; }
.strip-delta { font-family: var(--mono); font-size: 10px; font-weight: 600; color: #9A3412; background: #FFEDD5; border: 1px solid #FED7AA; padding: 1px 6px; border-radius: 5px; white-space: nowrap; text-align: center; justify-self: stretch; box-sizing: border-box; line-height: 1.3; }
/* narrow card: category + benchmark on row 1, the leader block full width on row 2 */
@container lead (max-width: 620px) {
  #leadCard .strip { padding: 9px 10px 8px; }
  #leadCard .strip-lab { flex-direction: column; align-items: stretch; gap: 6px; margin-bottom: 5px; }
  #leadCard .strip-head-l { width: 100%; justify-content: space-between; }
  #leadCard .strip-v { width: 100%; margin-left: 0; grid-template-columns: minmax(0, 1fr) 54px 80px; column-gap: 5px; }
  #leadCard .strip-who { grid-template-columns: 32px minmax(0, 1fr); column-gap: 5px; }
  #leadCard .strip-who .team { width: 32px; min-width: 32px; height: 18px; font-size: 9.5px; }
  #leadCard .strip-who b { font-size: 11.5px !important; }
  #leadCard .strip-score { grid-template-columns: minmax(0, 1fr) 19px; column-gap: 2px; }
  #leadCard .strip-score b { font-size: 13px; }
  #leadCard .strip-unit { font-size: 9px; }
  #leadCard .strip-delta { font-size: 9px; padding: 1px 4px; }
}
#leadCard .strip-plot { position: relative; height: 36px; margin: 2px 0; background: #FFFFFF; border: 1px solid #E4E4EE; border-radius: 7px; overflow: visible; }
.strip-grid { position: absolute; inset: 0 11px; pointer-events: none; }
.sg-tick { position: absolute; top: 0; bottom: 0; width: 1px; background: #F1F1F6; }
.sg-med { position: absolute; top: 2px; bottom: 2px; width: 0; border-left: 1.5px dashed #94A3B8; z-index: 1; }
.sg-gap { position: absolute; top: 4px; bottom: 4px; background: linear-gradient(90deg, rgba(249,115,22,.05), rgba(234,88,12,.14)); border-top: 1px dotted rgba(234,88,12,.35); border-bottom: 1px dotted rgba(234,88,12,.35); border-radius: 3px; }
.strip-canvas { position: absolute; inset: 0 11px; }
#leadCard .strip-plot .sd { position: absolute; border-radius: 50%; transform: translate(-50%,-50%); transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease; cursor: pointer; }
#leadCard .strip-plot .sd.t1 { width: 7.5px; height: 7.5px; background: rgba(8,145,178,.45); border: 1px solid rgba(14,116,144,.72); opacity: 1; z-index: 1; }
#leadCard .strip-plot .sd.t2 { width: 8.5px; height: 8.5px; background: rgba(37,99,235,.55); border: 1px solid rgba(29,78,216,.75); opacity: 1; z-index: 2; }
#leadCard .strip-plot .sd.t3 { width: 9.5px; height: 9.5px; background: rgba(124,58,237,.72); border: 1px solid rgba(109,40,217,.92); opacity: 1; z-index: 3; }
#leadCard .strip-plot .sd.t4 { width: 11px; height: 11px; background: #F59E0B; border: 1.5px solid #B45309; opacity: .95; box-shadow: 0 1px 3px rgba(180,83,9,.25); z-index: 4; }
#leadCard .strip-plot .sd.lead { top: 50%; width: 15px; height: 15px; background: #EA580C; border: 2px solid #FFFFFF; opacity: 1; box-shadow: 0 0 0 2px #EA580C, 0 2px 6px rgba(234,88,12,.45); z-index: 5; }
#leadCard .strip-plot .sd:hover { transform: translate(-50%,-50%) scale(1.45); z-index: 10 !important; opacity: 1 !important; }
#leadCard.filtered .strip-plot .sd.dimmed { opacity: .10 !important; transform: translate(-50%,-50%) scale(.8); }
#leadCard .strip-tip { right: -11px; z-index: 11; }
#leadCard .strip-ax { display: flex; justify-content: space-between; padding: 0 6px; font-family: var(--mono); font-size: 9.5px; font-weight: 500; color: var(--muted); margin-top: 1px; }

/* One color per subject, used the same way on every page */
:root {
  --tone-games: #A3E635;    --tone-games-bg: #0C0C11;    --tone-games-line: #0C0C11;
  --tone-players: #FF8A3D;  --tone-players-bg: #0C0C11;  --tone-players-line: #0C0C11;
  --tone-health: #FF5A6E;   --tone-health-bg: #0C0C11;   --tone-health-line: #0C0C11;
  --tone-league: #B98CFF;   --tone-league-bg: #0C0C11;   --tone-league-line: #0C0C11;
  --tone-calendar: #FFD24A; --tone-calendar-bg: #0C0C11; --tone-calendar-line: #0C0C11;
  --tone-ratings: #FF6EC7;  --tone-ratings-bg: #0C0C11;  --tone-ratings-line: #0C0C11;
  --tone-playoffs: #2FD4E6; --tone-playoffs-bg: #0C0C11; --tone-playoffs-line: #0C0C11;
}
.card[data-tone="games"]    { --tone: var(--tone-games);    --tone-bg: var(--tone-games-bg);    --tone-line: var(--tone-games-line); }
.card[data-tone="players"]  { --tone: var(--tone-players);  --tone-bg: var(--tone-players-bg);  --tone-line: var(--tone-players-line); }
.card[data-tone="health"]   { --tone: var(--tone-health);   --tone-bg: var(--tone-health-bg);   --tone-line: var(--tone-health-line); }
.card[data-tone="league"]   { --tone: var(--tone-league);   --tone-bg: var(--tone-league-bg);   --tone-line: var(--tone-league-line); }
.card[data-tone="calendar"] { --tone: var(--tone-calendar); --tone-bg: var(--tone-calendar-bg); --tone-line: var(--tone-calendar-line); }
.card[data-tone="ratings"]  { --tone: var(--tone-ratings);  --tone-bg: var(--tone-ratings-bg);  --tone-line: var(--tone-ratings-line); }
.card[data-tone="playoffs"] { --tone: var(--tone-playoffs); --tone-bg: var(--tone-playoffs-bg); --tone-line: var(--tone-playoffs-line); }

/* The title row becomes a tinted band across the top of the card.
   Negative margins = the card's padding (16px, 18px from 720px), so the band reaches the card's edges;
   13px top corners = the card's 14px radius minus its 1px border. */
.card[data-tone] > .section-h {
  box-sizing: border-box; height: 48px; flex-shrink: 0;
  margin: -16px -16px 14px;
  padding: 0 var(--edge-inset);
  flex-wrap: nowrap; align-items: center;
  white-space: nowrap; overflow: hidden;
  background: var(--tone-bg);
  border-bottom: 1px solid var(--tone-line);
  border-radius: 13px 13px 0 0;
}
.card[data-tone] > .section-h h2 {
  display: flex; align-items: center; gap: 10px;
  flex: 0 0 auto; white-space: nowrap;
  color: #FFFFFF;
}
.card[data-tone] > .section-h .src {
  margin-left: auto; min-width: 0; flex: 0 1 auto;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #FFFFFF;
}

@media (min-width: 720px) {
  .card[data-tone] > .section-h { height: 52px; margin: -18px -18px 16px; padding: 0 var(--edge-inset); }
}

/* Small mono descriptor text on cards reads in capitals; the source strings stay as written */
.section-h .src, .bl-tag, .bl-hint, .court-who .mono-m,
.gs-d, .gs-m, .gs-edge, .ij-key, .ij-split, .log time, .cal li span { text-transform: uppercase; }


/* ======================= BEGIN STATWIRE network header: CSS ======================= */
/* STATWIRE shared header, 2A Obsidian Command (Dec 2026; generated by scripts/swh-header.mjs, edit there).
   One 56px obsidian bar (#0C0C11, 2px #84CC16 hairline) on every page, never wrapping:
   left = Power S emblem + STATWIRE wordmark, then the nav (yellow ⚡ Lines CTA -> /lines, NFL ▾ / NBA ▾ / MLB ▾ / NHL ▾
   mega-drawer triggers, PGA and WNBA direct links); right = Dispatch ↗ (lime outline) + the StickSchool bubble.
   The bar is as wide as the page content: max-width = --swh-max (default --page-max) with --swh-pad-x (default --gutter)
   side padding, so the emblem and the bubble line up with the cards (the homepage sets 1320px / 20px).
   <= 680px viewport: the nav and Dispatch fold into the ☰ Menu button, which opens the #0F1118 mobile sheet.
   Only one nav item is ever lit: the rendered page's league (.is-current, solid league fill) or ⚡ Lines on /lines (ring). */
.swh {
  position: sticky; top: 0; z-index: 30;
  color-scheme: dark;
  margin: 0;
  padding: env(safe-area-inset-top) 0 0;
  background: #0C0C11;
  border: 0; border-bottom: 2px solid #84CC16;
  color: #FFFFFF;
  font-family: Archivo, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; font-weight: 400; line-height: 1.2; letter-spacing: normal; text-align: left; text-transform: none; text-size-adjust: 100%;
}
.swh *, .swh ::before, .swh ::after { box-sizing: border-box; }
.swh a { color: inherit; text-decoration: none; background: transparent; }
.swh button { font: inherit; color: inherit; cursor: pointer; margin: 0; }
.swh a:focus-visible, .swh button:focus-visible { outline: 2px solid #A3E635; outline-offset: 2px; }

.swh-bar {
  max-width: var(--swh-max, var(--page-max, 1560px));
  margin: 0 auto;
  padding-block: 0;
  padding-left: max(var(--swh-pad-x, var(--gutter, 16px)), env(safe-area-inset-left, 0px));
  padding-right: max(var(--swh-pad-x, var(--gutter, 16px)), env(safe-area-inset-right, 0px));
  height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.swh-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.swh .swh-logo { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; white-space: nowrap; border-radius: 7px; }
.swh-emblem { display: block; width: 28px; height: 28px; flex: 0 0 auto; border-radius: 6px; }
.swh-word { display: block; line-height: 1; font-size: 18px; font-weight: 900; letter-spacing: -0.03em; color: #FFFFFF; }
.swh .swh-wire { color: #A3E635; }

.swh-leagues { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; min-width: 0; }
.swh .swh-lg {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex: 0 0 auto;
  height: 32px; padding: 0 10px; border-radius: 6px; border: 1px solid transparent;
  background: transparent; color: #D5DCE6;
  font-size: 13px; font-weight: 700; letter-spacing: 0; line-height: 1; white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.swh .swh-lg[data-lg="nfl"]  { --lc: #146C34; }
.swh .swh-lg[data-lg="nba"]  { --lc: #5B21B6; }
.swh .swh-lg[data-lg="mlb"]  { --lc: #B03809; }
.swh .swh-lg[data-lg="nhl"]  { --lc: #0369A1; }
.swh .swh-lg[data-lg="pga"]  { --lc: #0F6A63; }
.swh .swh-lg[data-lg="wnba"] { --lc: #BE123C; }
.swh .swh-lg:hover { background: #1C202D; color: #FFFFFF; }
.swh .swh-caret { font-size: 10px; opacity: 0.8; }
/* an open mega-drawer: dark raised pill with the league's color as the border */
.swh .swh-lg[aria-expanded="true"] { background: #1C202D; color: #FFFFFF; border-color: var(--lc); }
/* the rendered page's league: solid league fill, white text (>= 5.9:1 on every league color) */
.swh .swh-lg.is-current, .swh .swh-lg.is-current:hover { background: var(--lc); color: #FFFFFF; border-color: var(--lc); }
.swh .swh-lg.is-current[aria-expanded="true"] { border-color: #A3E635; }

/* ⚡ Lines CTA: High-Voltage Yellow, black bolt (#0C0C11 on #FACC15 = 12.9:1); on /lines it gets a yellow ring */
.swh .swh-lines {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; flex: 0 0 auto;
  height: 28px; padding: 0 11px; margin-right: 4px; border-radius: 7px; border: 0;
  background: #FACC15; color: #0C0C11;
  font-size: 12px; font-weight: 900; line-height: 1; white-space: nowrap;
  transition: background-color 0.15s, box-shadow 0.15s;
}
.swh .swh-lines .swh-bolt { flex: 0 0 auto; display: block; width: 11px; height: 11px; color: #0C0C11; }
.swh .swh-lines:hover { background: #FDE047; }
.swh .swh-lines[aria-current="page"] { box-shadow: 0 0 0 2px #0C0C11, 0 0 0 4px rgba(250, 204, 21, 0.6); }

.swh-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.swh .swh-dispatch {
  display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 6px;
  background: rgba(163, 230, 53, 0.1); color: #A3E635; border: 1px solid rgba(163, 230, 53, 0.35);
  font-size: 11.5px; font-weight: 700; line-height: 1; white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s;
}
.swh .swh-dispatch:hover { background: rgba(163, 230, 53, 0.18); border-color: #A3E635; }
.swh-partners { display: flex; align-items: center; gap: 7px; --swh-btn: 30px; }
.swh .swh-partners a {
  width: var(--swh-btn); height: var(--swh-btn); border-radius: 999px;
  border: 1px solid #30374A; background: #1C202D; color: #D5DCE6;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.swh .swh-partners a:hover { background: #252B3B; border-color: #A3E635; color: #FFFFFF; }
.swh-partners svg { display: block; width: 58%; height: 58%; }
.swh .swh-menu-btn {
  display: none; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 6px;
  background: #1C202D; color: #FFFFFF; border: 1px solid #30374A;
  font-size: 12px; font-weight: 800; line-height: 1; white-space: nowrap;
}
.swh .swh-menu-btn[aria-expanded="true"] { border-color: #A3E635; color: #A3E635; }

/* Dark-band mega-drawer (one grid per league; the open league's grid shows) */
.swh-drawer[hidden], .swh-drawer-grid[hidden], .swh-sheet[hidden] { display: none; }
.swh-drawer { background: #101219; border-top: 1px solid #1C2030; box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4); }
.swh-drawer-in {
  max-width: var(--swh-max, var(--page-max, 1560px));
  margin: 0 auto;
  padding: 14px max(var(--swh-pad-x, var(--gutter, 16px)), env(safe-area-inset-right, 0px)) 18px max(var(--swh-pad-x, var(--gutter, 16px)), env(safe-area-inset-left, 0px));
}
.swh-drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 11px; padding-bottom: 8px; border-bottom: 1px solid #242938;
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #FFFFFF;
}
.swh-drawer-title { display: inline-flex; align-items: center; gap: 8px; }
.swh-drawer-title::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--drawer-lc, #84CC16); }
.swh .swh-drawer-close {
  border: 1px solid #30374A; background: #1D2230; color: #E2E8F0;
  border-radius: 6px; padding: 4px 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; text-transform: none;
}
.swh .swh-drawer-close:hover { border-color: #A3E635; color: #FFFFFF; }
.swh-drawer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 8px; }
.swh .swh-tile {
  display: flex; flex-direction: column; gap: 2px;
  padding: 9px 11px; border-radius: 7px;
  background: #171B26; border: 1px solid #272E40; border-left: 3px solid var(--drawer-lc, #84CC16); color: #FFFFFF;
  transition: background-color 0.15s, border-color 0.15s;
}
.swh .swh-tile:hover { background: #1F2536; border-color: #3A4258; border-left-color: var(--drawer-lc, #84CC16); }
.swh .swh-tile[aria-current="page"] { background: var(--drawer-lc, #146C34); border-color: var(--drawer-lc, #146C34); border-left-color: #A3E635; }
.swh-tile-t { font-size: 13px; font-weight: 800; color: #FFFFFF; }
.swh-tile-s { font-size: 11px; line-height: 1.3; color: #9AA6BA; }
.swh .swh-tile[aria-current="page"] .swh-tile-s { color: rgba(255, 255, 255, 0.9); }

/* Mobile sheet (<= 680px, opened by ☰ Menu): every league's pages as chips, then Dispatch */
.swh-sheet {
  background: #0F1118; border-top: 1px solid #1C2030;
  max-height: calc(100dvh - 58px - env(safe-area-inset-top)); overflow-y: auto; overscroll-behavior: contain;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}
.swh-sheet-in { padding: 14px max(var(--swh-pad-x, var(--gutter, 16px)), env(safe-area-inset-right, 0px)) 16px max(var(--swh-pad-x, var(--gutter, 16px)), env(safe-area-inset-left, 0px)); }
.swh-grp + .swh-grp { margin-top: 12px; }
.swh-grp-t {
  display: flex; align-items: center; gap: 7px; margin-bottom: 6px;
  font-family: var(--mono, "JetBrains Mono", ui-monospace, monospace); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #A3E635;
}
.swh-grp-t[data-lc]::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--lc); }
.swh-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.swh .swh-chip {
  display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 6px 10px; border-radius: 6px;
  background: #181C28; border: 1px solid #2A3144; border-left: 3px solid var(--lc, #2A3144); color: #E2E8F0;
  font-size: 12px; font-weight: 700; line-height: 1.1;
}
.swh .swh-chip:hover { border-color: #A3E635; color: #FFFFFF; }
.swh .swh-chip[aria-current="page"] { background: var(--lc, #146C34); border-color: var(--lc, #146C34); color: #FFFFFF; }
.swh .swh-chip.is-lines { background: #FACC15; border-color: #FACC15; color: #0C0C11; font-weight: 900; }
.swh .swh-chip.is-lines svg { width: 11px; height: 11px; }
.swh .swh-chip.is-lines[aria-current="page"] { box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.45); }
.swh .swh-chip.is-dispatch { background: rgba(163, 230, 53, 0.1); border-color: rgba(163, 230, 53, 0.35); color: #A3E635; }

/* 861-1040px: a little tighter so all seven nav items, Dispatch and the bubble stay on one 56px line */
@media (max-width: 1040px) {
  .swh-left { gap: 12px; }
  .swh-leagues { gap: 2px; }
  .swh .swh-lg { padding: 0 8px; font-size: 12.5px; }
}
/* 681-860px: tightest one-line step (sized from Archivo 700 / 900 advance widths: about 50px spare at 681px) */
@media (max-width: 860px) {
  .swh-bar { gap: 8px; }
  .swh-left { gap: 9px; }
  .swh .swh-logo { gap: 7px; }
  .swh-emblem { width: 26px; height: 26px; }
  .swh-word { font-size: 16px; }
  .swh .swh-lg { padding: 0 6px; font-size: 12px; gap: 3px; }
  .swh .swh-lines { padding: 0 9px; font-size: 11.5px; margin-right: 2px; }
  .swh .swh-dispatch { padding: 0 8px; font-size: 10.5px; }
  .swh-right { gap: 6px; }
  .swh-partners { --swh-btn: 28px; }
}
/* Phones (<= 680px): emblem + wordmark | bubble + ☰ Menu; the nav and Dispatch live in the mobile sheet */
@media (max-width: 680px) {
  .swh-leagues, .swh .swh-dispatch, .swh-drawer { display: none; }
  .swh .swh-menu-btn { display: inline-flex; }
  .swh-emblem { width: 28px; height: 28px; }
  .swh-word { font-size: 18px; }
}
@media (min-width: 681px) { .swh-sheet { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .swh .swh-lg, .swh .swh-lines, .swh .swh-tile, .swh .swh-partners a, .swh .swh-dispatch,
  .sw-foot-pair a, .sw-foot-pair a.swh-social, .sw-about-btn { transition: none; }
}
/* ======================== END STATWIRE network header: CSS ======================== */


/* ======================= BEGIN STATWIRE scoreboard: CSS ======================= */
.sb { container: sb / inline-size; }
.sb-band-lead.solo { display:none; }   /* title band, a day or more before the next tip: the countdown reads alone */
.sb .sb-livedot { display:inline-block; width:7px; height:7px; border-radius:4px; background:#F43F5E; margin-right:8px; vertical-align:1px; }
.sb-body { display:flex; flex-direction:column; gap:14px; }

/* Live tiles */
.sb-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap:12px; }  /* auto-FILL: tiles keep a fixed column width and never stretch when only 1-2 games are live */
.sb-tile { background:#f8f8fb; border:1px solid #ececf2; border-radius:12px; padding:12px 14px; display:flex; flex-direction:column; gap:10px; min-width:0; }
.sb-series { display:flex; flex-wrap:wrap; gap:2px 8px; font:11px var(--mono); letter-spacing:.06em; color:#6b6b76; text-transform:uppercase; }
.sb-series b { color:#0c0c11; font-weight:700; }
.sb-st { display:flex; align-items:center; gap:6px; min-height:22px; font:600 11px var(--mono); color:#0c0c11; min-width:0; }
.sb-st .sb-live { display:inline-flex; align-items:center; gap:5px; color:#BE123C; font-weight:700; letter-spacing:.06em; flex:0 0 auto; }
.sb-st .sb-live::before { content:""; width:6.5px; height:6.5px; border-radius:4px; background:#E11D48; }
/* right-aligned network badge group: one 22px badge, or two 19px twin pills (NBC network + Peacock) */
.sb-nets { margin-left:auto; display:inline-flex; align-items:center; justify-content:flex-end; gap:4px; flex:0 0 auto; }
.sb-nets.is-dual { gap:3.5px; }
.sb-net { display:inline-flex; align-items:center; justify-content:center; gap:4px; height:22px; padding:0 8px; border-radius:5px; font:700 11px/1 var(--sans); letter-spacing:.02em; color:#FACC15; background:#0C0C11; white-space:nowrap; flex:0 0 auto; box-sizing:border-box; }
.sb-st > .sb-net { margin-left:auto; }
.sb-nets.is-dual .sb-net { height:19px; padding:0 6px; font-size:9.5px; border-radius:4px; }
.sb-net[data-net="peacock"] { border:1px solid #2E2E3A; }
.pk-dots { display:inline-block; width:3px; height:11px; border-radius:1.5px; background:linear-gradient(180deg, #FACC15 0% 16.6%, #F97316 16.6% 33.3%, #EF4444 33.3% 50%, #A855F7 50% 66.6%, #3B82F6 66.6% 83.3%, #22C55E 83.3% 100%); flex:0 0 3px; }
.sb-nets.is-dual .pk-dots { height:10px; }
/* Quiet League Pass badge: no background fill, black text, dashed slate outline */
.sb-net[data-net="lp"] {
  background: transparent !important;
  color: rgba(12, 12, 17, 0.72) !important;
  border: 1px dashed #B8B8C6;
  font: 600 10px/1 var(--sans);
  height: 20px;
  padding: 0 6.5px;
}
.sb-teams { display:flex; flex-direction:column; gap:6px; }
.sb-tm { display:flex; align-items:center; gap:10px; height:30px; min-width:0; }
.sb-ab { flex:0 0 auto; width:44px; height:26px; border-radius:5px; display:flex; align-items:center; justify-content:center; font:700 13px var(--mono); }
.sb-nm { font-weight:600; font-size:15px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.sb-rec { font:11px var(--mono); color:#6b6b76; white-space:nowrap; }
.sb-sc { margin-left:auto; font:600 26px var(--mono); color:#8a8a96; }
.sb-tm.sb-lead .sb-sc { color:#0c0c11; }
.sb-wp-bar { height:4px; border-radius:2px; background:#e4e4ea; overflow:hidden; }
.sb-wp-bar i { display:block; height:4px; }
.sb-wp-lab { display:flex; justify-content:space-between; margin-top:6px; font:10px var(--mono); letter-spacing:.06em; color:#6b6b76; text-transform:uppercase; }
.sb-wp-lab b { color:#0c0c11; font-weight:600; }

/* On deck previews: one per upcoming game, in its day's grid */
.sb-deck { background:linear-gradient(180deg, #fbfbfd, #fff 40%); border:1px dashed #d7d7e0; }
.sb-day .sb-tile > .sb-teams + div { margin-top:auto; }   /* the live tiles' win probability sits on the bottom edge, level with the previews' */
.sb-deck-st { color:#6b6b76; letter-spacing:.06em; text-transform:uppercase; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.sb-deck .sb-nm { font-weight:700; }
.sb-deck .sb-rec { flex:none; }
.sb-chips { margin-left:auto; display:flex; gap:6px; flex:none; }
.sb-chip { font:700 10px var(--mono); padding:2px 6px; border-radius:4px; background:#efeff4; color:#0c0c11; white-space:nowrap; }
.sb-chip.w { color:#0F7A3D; } .sb-chip.l { color:#BE123C; }
.sb-deck-ft { margin-top:auto; }
.sb-deck-ft .sb-wp-lab:first-child { margin-top:0; }
.sb-deck-ft .sb-wp-bar { display:flex; margin-top:6px; }
.sb-deck-cd { justify-content:center; }
.sb-deck-cd b { margin-right:.5em; font-weight:700; }   /* "TIPS IN" in ink, the countdown muted */

/* Upcoming games: one tinted band per day, its games (live tiles first, then On deck previews) in a grid of equal cards
   4 across on desktop, 3 on narrow desktop, 2 on tablet, 1 on phones */
.sb-next { display:flex; flex-direction:column; gap:6px; }
.sb-day .sb-grid { grid-template-columns:repeat(4, minmax(0, 1fr)); grid-auto-rows:1fr; padding-bottom:10px; }
@container sb (width < 1100px) { .sb-day .sb-grid { grid-template-columns:repeat(3, minmax(0, 1fr)); } }
@container sb (width < 840px) { .sb-day .sb-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@container sb (width <= 560px) { .sb-day .sb-grid { grid-template-columns:minmax(0, 1fr); grid-auto-rows:auto; } }
/* Each day's games sit on one tinted band, headed by a day label. Same weekday = same color, always. */
.sb-day { border-radius:8px; padding:0 10px; background:var(--day-bg); }
.sb-day[data-dow="mon"] { --day-bg:#E6F4EA; --day-ink:#0F7A3D; }  /* green */
.sb-day[data-dow="tue"] { --day-bg:#F1EAFB; --day-ink:#6B3FA0; }  /* purple */
.sb-day[data-dow="wed"] { --day-bg:#E5EEFB; --day-ink:#1D4ED8; }  /* blue */
.sb-day[data-dow="thu"] { --day-bg:#FDEEDC; --day-ink:#B45309; }  /* orange */
.sb-day[data-dow="fri"] { --day-bg:#FCE7EF; --day-ink:#BE185D; }  /* pink */
.sb-day[data-dow="sat"] { --day-bg:#FAF3D2; --day-ink:#7A600A; }  /* gold */
.sb-day[data-dow="sun"] { --day-bg:#E0F3F3; --day-ink:#0E7490; }  /* teal */
/* day label: first line of each band, pinned to the top of the scroll area until the next band pushes it away */
.sb-day-lab { position:sticky; top:0; z-index:1; margin:0 -10px; padding:9px 10px 6px; border-radius:8px 8px 0 0; background:var(--day-bg);
  font:700 10px var(--mono); letter-spacing:.1em; text-transform:uppercase; color:var(--day-ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sb-day-n { margin-left:6px; font-weight:500; opacity:.8; }
/* phone: the title band shows its lead only ("No games live", "Opening night", "NBA Finals · Game 6") */
@container sb (width <= 560px) { .sb-band-cd { display:none; } .sb-band-lead.solo { display:inline; } }

/* NBA Finals: one full-width scoreboard (Finals only) */
.sb-grid-finals { grid-template-columns:minmax(0, 1fr); }
.sb-tile-finals { padding:14px 18px 16px; gap:12px; }
.sb-fin-round { font:700 11px var(--mono); letter-spacing:.08em; color:#0c0c11; text-transform:uppercase; }
.sb-fin-series { font:11px var(--mono); letter-spacing:.06em; color:#6b6b76; text-transform:uppercase; }
.sb-fin { display:grid; grid-template-columns:minmax(0, 1fr) auto minmax(0, 1fr); align-items:center; gap:16px; }
.sb-fin-team { display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center; min-width:0; }
.sb-fin-team .sb-ab { width:104px; height:60px; border-radius:8px; font-size:28px; }
.sb-fin-nm { font-weight:700; font-size:18px; }
.sb-fin-seed { font:11px var(--mono); color:#6b6b76; letter-spacing:.06em; text-transform:uppercase; }
.sb-fin-mid { display:flex; flex-direction:column; align-items:center; gap:6px; }
.sb-fin-mid .sb-st { justify-content:center; min-height:0; }
.sb-fin-score { display:flex; align-items:center; gap:18px; font:600 60px/1 var(--mono); color:#8a8a96; }
.sb-fin-score .sb-lead { color:#0c0c11; }
.sb-fin-dash { font-size:36px; color:#c9c9d2; }
.sb-fin-cd { font:400 56px/1 var(--mono); color:#0c0c11; }
.sb-fin-sub { font:11px var(--mono); letter-spacing:.1em; color:#6b6b76; text-transform:uppercase; }
.sb-fin-when { font-weight:600; font-size:15px; }

/* Season notice */
.sb-msg { display:flex; flex-direction:column; align-items:center; text-align:center; gap:10px; padding:12px 16px 16px; }
.sb-msg-k { font:11px var(--mono); letter-spacing:.1em; color:#6b6b76; text-transform:uppercase; }
.sb-msg-h { font-weight:900; font-size:26px; line-height:1.1; letter-spacing:-.01em; }
.sb-msg-p { font-size:15px; line-height:1.5; color:#4f4f5a; max-width:440px; margin:0; }
.sb-msg-pill { display:inline-flex; align-items:center; gap:8px; font:11px var(--mono); letter-spacing:.08em; background:#f1f1f5; border-radius:999px; padding:8px 14px; text-transform:uppercase; }
.sb-msg-pill::before { content:""; width:7px; height:7px; border-radius:4px; background:#F59E0B; }

/* Narrow cards (tablet / phone) */
@container (max-width: 520px) {
  .sb-grid { grid-template-columns:minmax(0, 1fr); gap:10px; }
  .sb-tile { padding:12px; gap:10px; }
  .sb-tm { height:28px; }
  .sb-ab { width:42px; height:24px; font-size:12px; }
  .sb-sc { font-size:24px; }
  .sb-msg-h { font-size:22px; }
  .sb-fin { gap:8px; }
  .sb-fin-team .sb-ab { width:64px; height:40px; font-size:18px; }
  .sb-fin-nm { font-size:14px; }
  .sb-fin-score { font-size:34px; gap:8px; }
  .sb-fin-dash { font-size:22px; }
  .sb-fin-cd { font-size:30px; }
}
/* ======================== END STATWIRE scoreboard: CSS ======================== */
/* Finals tile on phones: the top line stays on one line; the countdown and its date fit between the team blocks */
.sb-tile-finals > .sb-st { flex-wrap:nowrap; white-space:nowrap; min-width:0; }
.sb-tile-finals > .sb-st .sb-fin-series { overflow:hidden; text-overflow:ellipsis; min-width:0; }
.sb-fin-mid { min-width:0; text-align:center; }
@container (max-width: 520px) {
  .sb-tile-finals > .sb-st { gap:6px; }
  .sb-fin-round, .sb-fin-series { font-size:10px; letter-spacing:.04em; }
  .sb-fin-cd { font-size:19px; }
  .sb-fin-sub { font-size:9px; letter-spacing:.06em; }
  .sb-fin-when { font-size:11px; }
}

/* ===== page frame: docked sub-header ribbon (.sw-seo-hero) + grounded footer band (.sw-foot), full-bleed, no card =====
   body is the inline-size container, so 100cqw is the page width without the vertical scrollbar
   (100vw includes it and pushed both bands half a scrollbar left of the header and card titles). */
body { overflow-x: clip; container-type: inline-size; }
.sw-seo-hero {
  position: relative;
  width: 100cqw;
  margin: 0 calc(50% - 50cqw);
  padding: 10px max(
    calc((100cqw - var(--page-max, 1560px)) / 2 + var(--gutter) + var(--card-border) + var(--edge-inset)),
    calc(var(--gutter) + var(--card-border) + var(--edge-inset))
  );
  background: linear-gradient(180deg, #E4F5C8 0%, #ECF8D8 100%);
  border-bottom: 1px solid #BFE08E;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px 16px;
  box-sizing: border-box;
}
/* the ribbon carries only the subtitle; the 7px purple dot sits inline on its left, centered on the text */
.sw-seo-h1 { display: none !important; }
.sw-seo-sub {
  margin: 0;
  font: 500 11px/1.4 var(--mono);
  color: #1E300B;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}
.sw-seo-sub::before {
  content: "";
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4D7C0F;
}
@media (max-width: 1140px) and (min-width: 861px) {
  .sw-seo-sub { font-size: 10px; white-space: nowrap; }
}
@media (max-width: 860px) {
  .sw-seo-hero {
    gap: 8px;
    padding-block: 10px;
    padding-inline: calc(var(--gutter) + var(--card-border) + var(--edge-inset));
  }
  .sw-seo-sub { font-size: 10.5px; line-height: 1.45; text-wrap: pretty; }
}
/* first card sits one gutter below the sub-header */
.sw-seo-hero + .card { margin-top: var(--gutter); }
.wrap > .sw-foot,
.sw-foot {
  width: 100cqw;
  max-width: none;
  margin: 18px calc(50% - 50cqw) 0;
  padding-block: 14px calc(16px + env(safe-area-inset-bottom));
  padding-inline: max(
    calc((100cqw - var(--page-max, 1560px)) / 2 + var(--gutter) + var(--card-border) + var(--edge-inset)),
    calc(var(--gutter) + var(--card-border) + var(--edge-inset))
  );
  background: #FAFDF6;
  border: 0;
  border-top: 1px solid #D5E2C4;
  color: var(--ink, #0C0C11);
  color-scheme: light;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
  text-align: left;
  font: 600 11px/1.4 var(--mono);
  letter-spacing: 0;
  text-transform: none;
  box-sizing: border-box;
}
/* Two-tier footer: top row = wordmark (left) + Network/Follow bubbles (right); bottom row = centered "© 2026 STATWIRE · ABOUT". No hairline between tiers. */
.sw-foot a:focus-visible { outline: 2px solid #65A30D; outline-offset: 2px; }
.wrap > .sw-foot,
.sw-foot {
  display: block;
  min-height: 0;
  padding-block: 24px calc(14px + env(safe-area-inset-bottom));
  text-align: left;
}
.sw-footer-inner { max-width: 1474px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 18px; }
.sw-footer-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-width: 0; }
.sw-foot-word { display: inline-flex; align-items: center; font: 900 22px/1 var(--sans); letter-spacing: -0.03em; color: #FFFFFF; text-decoration: none; white-space: nowrap; padding: 6px 12px; border-radius: 10px; background: #0C0C11; border: 1px solid #1F241D; box-shadow: 0 2px 6px rgba(12, 12, 17, 0.12); }
.sw-foot-word:hover { color: #FFFFFF; text-decoration: none; }
.sw-foot-word .sw-foot-wire { color: #A3E635; }
.sw-footer-bottom { width: 100%; display: flex; align-items: center; justify-content: center; text-align: center; gap: 8px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; line-height: 1; color: #465343; white-space: nowrap; }
.sw-copyright { color: #465343; }
.sw-footer-bottom .sw-dot { color: #9AA892; user-select: none; }
.sw-about-btn { display: inline-flex; align-items: center; justify-content: center; font-family: inherit; font-size: 9.5px; font-weight: 700; line-height: 1; letter-spacing: 0.1em; text-transform: uppercase; color: #182016; background-color: #F4F7F0; border: 1px solid #D4DEC9; box-shadow: none; padding: 4px 8px; border-radius: 4px; cursor: pointer; text-decoration: none; transform: translateY(-0.5px); transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease; }
.sw-about-btn:hover { background-color: #E8F4D6; border-color: #84CC16; color: #0C0C11; text-decoration: none; }
.sw-foot .sw-about-btn:focus-visible { outline: 2px solid #65A30D; outline-offset: 2px; }
.sw-about-btn:active { transform: translateY(0px) scale(0.97); }
.sw-about-btn[aria-current="page"], .sw-about-btn[aria-current="page"]:hover { background-color: #0C0C11; border-color: #0C0C11; color: #A3E635; }
.sw-footer-bottom { flex-wrap: wrap; }
.sw-foot-groups { display: flex; align-items: center; gap: 12px; margin: 0 0 0 auto; flex: 0 0 auto; }
.sw-foot-group { position: relative; display: flex; flex-direction: row; align-items: center; gap: 0; min-width: 0; }
.sw-foot-kick { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sw-foot-rule { display: block; width: 1px; height: 18px; align-self: center; background: #D5E2C4; flex: 0 0 auto; }
.sw-foot-pair { display: flex; align-items: center; justify-content: flex-start; gap: 6px; --swh-btn: 32px; }
.sw-foot-pair a { width: var(--swh-btn); height: var(--swh-btn); flex: 0 0 auto; border: 1px solid #BFE08E; border-radius: 999px; background: #E4F5C8; display: flex; align-items: center; justify-content: center; color: #101216; text-decoration: none; transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
.sw-foot-pair a:hover { background: #D4EEAA; color: #0C0C11; border-color: #84CC16; }
.sw-foot-pair svg { display: block; width: 56%; height: 56%; }
.sw-foot-pair a.swh-social { background: #F4F7F0; border-color: #D4DEC9; color: #0C0C11; }
.sw-foot-pair a.swh-social:hover { background: #E8F4D6; border-color: #84CC16; color: #0C0C11; }
.sw-foot-pair a.swh-social svg { width: 54%; height: 54%; }
@media (max-width: 679px) {
  .wrap > .sw-foot,
  .sw-foot {
    padding-inline: calc(var(--gutter) + var(--card-border) + var(--edge-inset));
  }
  .sw-foot-word { font-size: 20px; padding: 5px 10px; border-radius: 9px; }
  .sw-foot-groups { gap: 10px; }
  .sw-foot-pair { gap: 5px; --swh-btn: 28px; }
}
@media (max-width: 640px) {
  .wrap > .sw-foot,
  .sw-foot { padding-block: 20px calc(14px + env(safe-area-inset-bottom)); }
  .sw-footer-inner { gap: 16px; }
  .sw-footer-bottom { justify-content: center; text-align: center; }
}
@media (max-width: 360px) {
  .sw-foot-word { font-size: 18px; padding: 4px 9px; }
  .sw-foot-groups { gap: 8px; }
  .sw-foot-pair { gap: 4px; --swh-btn: 26px; }
}
/* desktop: wordmark, "© STATWIRE · ABOUT" and the bubbles share one row (stacked two rows below 720px) */
@media (min-width: 720px) {
  .wrap > .sw-foot,
  .sw-foot { padding-block: 18px calc(18px + env(safe-area-inset-bottom)); }
  .sw-footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
  .sw-footer-top { display: contents; }
  .sw-foot-word { grid-column: 1; grid-row: 1; justify-self: start; }
  .sw-footer-bottom { grid-column: 2; grid-row: 1; justify-self: center; width: auto; margin: 0; }
  .sw-foot-groups { grid-column: 3; grid-row: 1; justify-self: end; margin: 0; }
}
#demoNote { display: block; margin-top: 12px; text-align: center; color: #B9B9C6; }

/* Season Calendar: always the vertical bulleted timeline, filling the card beside Transactions */
#calendar:not([hidden]) { display: flex; flex-direction: column; max-height: var(--card-max); }
#calendar .cal { list-style: none; margin: 0; padding: 2px 0; position: relative; flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-between; }
#calendar .cal::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
#calendar .cal li { position: relative; padding: 6px 0 6px 26px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; }
#calendar .cal li i { position: absolute; left: 0; top: 10px; width: 14px; height: 14px; border-radius: 50%; background: var(--panel); border: 2px solid var(--muted); }
#calendar .cal li.past i { background: rgb(15, 122, 61); border-color: rgb(15, 122, 61); }
#calendar .cal li b { font-family: var(--sans); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; line-height: 1.3; }
#calendar .cal li.past { color: var(--muted); }
#calendar .cal li.next b { color: var(--accent); font-weight: 700; }
#calendar .cal li span { font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; padding-top: 2px; }
#calendar .cal li span span { padding-top: 0; }

/* ======================= league additions (NFL / MLB / NHL pages) ======================= */
@media (min-width:1024px){ .c3{grid-column:span 3}.c4{grid-column:span 4}.c8{grid-column:span 8}.c9{grid-column:span 9} }
.card[hidden]{display:none!important}
/* toolbar row under a card's title band: pills, selects, week switcher */
.lg-bar{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:-4px 0 10px}
.lg-select{height:36px;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel2);color:var(--ink);font-family:var(--mono);font-size:11px;font-weight:600;cursor:pointer;outline:none;max-width:100%}
.lg-select:focus{border-color:var(--ink)}
.lg-note{margin:8px 0 0;font-family:var(--mono);font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.lg-note:empty{display:none}
/* sortable data table */
.lg-tbl-wrap{width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.lg-tbl{width:100%;border-collapse:collapse;font-size:13px;min-width:560px}
.lg-tbl th,.lg-tbl td{padding:8px 8px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}
.lg-tbl th{font-family:var(--mono);font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:600;position:sticky;top:0;background:var(--panel);z-index:1}
.lg-tbl th button{all:unset;cursor:pointer;display:inline-block;padding:2px 0}
.lg-tbl th button:hover,.lg-tbl th button.on{color:var(--ink)}
.lg-tbl th button:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:3px}
.lg-tbl th.r,.lg-tbl td.r{text-align:right}
.lg-tbl td.num,.lg-tbl .num{font-family:var(--mono);font-variant-numeric:tabular-nums}
.lg-tbl tbody tr:hover{background:var(--panel2)}
.lg-tbl tbody tr[data-f]{cursor:pointer}
.lg-tbl .lg-rk{color:var(--muted);font-weight:600;width:28px}
.lg-tbl td:first-child,.lg-tbl th:first-child{padding-left:2px}
.lg-tbl .lg-team{display:inline-flex;align-items:center;gap:8px;font-weight:700}
.lg-tbl .pos{color:var(--good)} .lg-tbl .neg{color:var(--down)}
.lg-tbl tr.lg-cut td{border-bottom:2px dashed #C9CBD6}
/* compact standings blocks (divisions, conferences, wild card) */
.lg-groups{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(320px,100%),1fr));gap:12px}
.lg-group{border:1px solid var(--line);border-radius:10px;background:var(--panel2);padding:10px 12px}
.lg-group h3{margin:0 0 6px;font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.lg-group .lg-tbl{min-width:0;font-size:12.5px}
.lg-group .lg-tbl th{background:var(--panel2)}
.lg-flag{display:inline-block;margin-left:6px;padding:0 4px;border-radius:3px;font:700 9px var(--mono);letter-spacing:.04em;vertical-align:1px;background:var(--chip);color:var(--muted)}
.lg-flag.in{background:#DCFCE7;color:#166534} .lg-flag.out{background:#FEE2E2;color:#991B1B} .lg-flag.div{background:#E0E7FF;color:#3730A3}
/* horizontal metric bars (map pages) */
.lg-bars{display:flex;flex-direction:column}
.lg-bar-row{display:grid;grid-template-columns:44px minmax(0,1fr) 64px;align-items:center;gap:8px;min-height:30px;border-bottom:1px solid var(--line)}
.lg-bar-row:last-child{border-bottom:0}
.lg-bar-track{display:block;height:12px;background:var(--chip);border-radius:3px;overflow:hidden}
.lg-bar-fill{display:block;height:100%;border-radius:3px}
.lg-bar-v{font-family:var(--mono);font-size:12px;font-weight:600;text-align:right}
/* field / diamond / rink SVG charts */
.lg-svg{width:100%;height:auto;display:block}
.lg-legend{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12px;font-weight:600;color:var(--muted)}
.lg-legend i{display:inline-block;width:11px;height:11px;border-radius:3px;margin-right:6px;vertical-align:-1px}
/* scoreboard extras: situation line (down & distance, outs, power play) */
.sb-sit{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font:600 10px var(--mono);letter-spacing:.06em;text-transform:uppercase;color:#6b6b76;min-height:16px}
.sb-sit b{color:#0c0c11}
.sb-sit .rz{background:#DC2626;color:#fff;border-radius:4px;padding:1px 5px}
.sb-sit .pp{background:#0284C7;color:#fff;border-radius:4px;padding:1px 5px}
.sb-poss{display:inline-block;width:6px;height:6px;border-radius:50%;background:#A16207;margin-left:4px;vertical-align:2px}
/* week / date switcher */
/* card height caps used by the league Live Wires (same rules as the Stat Center's ids) */
#txCard:not([hidden]),#impactCard:not([hidden]){display:flex;flex-direction:column;max-height:var(--card-max)}
@media (min-width:720px){ #newsCard:not([hidden]), #resCard:not([hidden]){height:var(--card-max)} }
/* unavailable state (SW.boot / SW.unavailable): a card whose data never came back */
.empty.sw-unavail{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
/* league sub-pages: metric bars header and table team cell */
.lg-bars-h{display:flex;justify-content:space-between;gap:8px;font:600 10px var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:0 0 6px}
.lg-tbl .lg-sub{color:var(--muted);font-weight:500;font-size:11.5px}
.lg-groups.two{grid-template-columns:repeat(auto-fit,minmax(min(440px,100%),1fr))}
.lg-team{display:inline-flex;align-items:center;gap:8px;font-weight:700}

/* Card header dropdowns (Nov 2026): every card <select> sits on the right of its dark .section-h band,
   styled like the /nfl obsidian-and-lime week stepper. Same block in league.css, site.css and the self-contained pages. */
.section-h .sw-hd-sel,
.band .sw-hd-sel {
  -webkit-appearance: none; appearance: none;
  box-sizing: border-box; margin: 0 0 0 auto; min-width: 0;
  height: 28px; max-width: 200px;
  padding: 0 26px 0 11px;
  border-radius: 999px; border: 1px solid #2F3A2F;
  background: #181E18 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5'%3E%3Cpath d='M0 0h8L4 5z' fill='%23A3E635'/%3E%3C/svg%3E") no-repeat right 10px center / 8px 5px;
  color: #FFFFFF; color-scheme: dark;
  font-family: var(--mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: 10.5px; font-weight: 800; line-height: 26px;
  letter-spacing: .05em; text-transform: uppercase;
  cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 0 1 auto; transition: border-color .15s;
}
.section-h .sw-hd-sel[hidden], .band .sw-hd-sel[hidden] { display: none; }
.section-h .sw-hd-sel:hover, .section-h .sw-hd-sel:focus-visible,
.band .sw-hd-sel:hover, .band .sw-hd-sel:focus-visible { border-color: #84CC16; outline: none; }
.section-h .sw-hd-sel option, .band .sw-hd-sel option { background-color: #0C0C11; color: #FFFFFF; text-transform: none; }
.section-h > h2 { min-width: 0; }
@media (max-width: 540px) {
  .section-h .sw-hd-sel, .band .sw-hd-sel { max-width: 150px; font-size: 10px; padding: 0 22px 0 9px; background-position: right 8px center; }
}
/* Card header controls (Nov 2026): every card view / category / filter selector is a .sw-hd-sel in the dark band;
   cards with two header controls group them in .sw-hd-ctrls (right-aligned). Same block in league.css, site.css and the self-contained pages. */
.section-h > h2 { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }
.section-h .sw-hd-ctrls { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; flex-wrap: nowrap; flex: 0 1 auto; min-width: 0; }
.section-h .sw-hd-ctrls[hidden] { display: none; }
.section-h .sw-hd-ctrls > * { margin: 0; min-width: 0; flex: 0 1 auto; }
.section-h .sw-hd-ctrls > .sw-hd-sel { margin: 0; }
@media (max-width: 540px) {
  .section-h .sw-hd-sel, .band .sw-hd-sel { max-width: 160px; font-size: 10px; }
  .section-h .sw-hd-ctrls .sw-hd-sel { max-width: 125px; font-size: 9.5px; padding: 0 20px 0 8px; background-position: right 7px center; }
}
/* Game breakdowns: one geometry on every league (left value | bar | label | bar | right value), nothing wraps */
.gs-row{display:grid;grid-template-columns:46px minmax(0,1fr) 48px minmax(0,1fr) 46px;align-items:center;column-gap:8px;row-gap:6px;min-height:16px}
.gs-row .gv{white-space:nowrap;font-family:var(--mono);font-variant-numeric:tabular-nums;text-align:left;line-height:1.2}
.gs-row .gv.r{text-align:right}
.gs-row .gl{white-space:nowrap;overflow:hidden;text-transform:uppercase;text-align:center;font-family:var(--mono);font-size:10.5px;font-weight:700;letter-spacing:.05em;line-height:1.2}
.gs-head{column-gap:8px}
.gs-head .gs-t{white-space:nowrap}
.gs-head .gs-m{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.gs-edge,.sb-bd-edge{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}

/* Mobile fit guard (Nov 2026): no card content may widen its card. Same block in
   league.css, site.css and the inline CSS of /, /nba, /wnba, /court, /draft, /nfl/draft. */
.card, .card > *, .card-scroll { min-width: 0; box-sizing: border-box; }
.card { max-width: 100%; }
.card-scroll, #newsScroll, #blsScroll, #ldScroll, #sbScroll { overflow-x: hidden; }
.nw-grid { width: 100%; min-width: 0; max-width: 100%; }
@media (max-width: 640px) { .nw-grid { grid-template-columns: minmax(0, 1fr); } }
.nw-item, .nw-card { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; overflow: hidden; }
.nw-item > *, .nw-card > * { min-width: 0; max-width: 100%; }
.nw-meta { min-width: 0; max-width: 100%; }
.nw-title-row, .nw-title-row > span, .nw-summary, .nw-title, .nw-sum { white-space: normal; overflow-wrap: break-word; min-width: 0; max-width: 100%; }
.nw-item .gs-edge { display: block; max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card[data-tone] > .section-h h2 { flex-shrink: 1; min-width: 0; overflow: hidden; }  /* a long title gives way before a band control is clipped */

/* BEGIN sheet-grid (generated by scripts/sheet-grid.mjs, edit it there) */
.sheet{max-width:100%;overflow-x:hidden}
.sh-sub{display:block;margin-top:3px;font-size:13px;line-height:1.35;font-weight:600;color:#465343;overflow-wrap:anywhere}
.sh-sub .team,.sh-sub .tb{vertical-align:1px}
.sh-rows.sh-grid{display:block;margin:14px 0 0;min-width:0;max-width:100%;overflow-x:clip}
.sh-rows.sh-grid dt,.sh-rows.sh-grid dd{margin:0;padding:0;border:0;min-width:0;text-align:inherit}
.sh-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 8px}
.sh-kpi{display:flex;flex-direction:column;justify-content:space-between;gap:5px;min-width:0;padding:10px 8px 9px;background:#ECF8D8;border:1px solid #BFE08E;border-radius:10px;text-align:center}
.sh-rows.sh-grid .sh-kpi dt{font:800 10px/1.2 var(--mono,"JetBrains Mono",ui-monospace,monospace);letter-spacing:.06em;text-transform:uppercase;color:#2F4A12;white-space:normal;overflow-wrap:anywhere}
.sh-rows.sh-grid .sh-kpi dd{font:800 19px/1.15 var(--mono,"JetBrains Mono",ui-monospace,monospace);color:#0C0C11;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.sh-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-flow:row dense;gap:8px}
.sh-tile{display:flex;flex-direction:column;justify-content:space-between;gap:4px;min-width:0;padding:10px 8px;background:#F5F8F1;border:1px solid #E3ECDA;border-radius:10px;text-align:center}
.sh-rows.sh-grid .sh-tile dt{font:700 10px/1.2 var(--mono,"JetBrains Mono",ui-monospace,monospace);letter-spacing:.05em;text-transform:uppercase;color:#465343;white-space:normal;overflow-wrap:anywhere}
.sh-rows.sh-grid .sh-tile dd{font:800 16px/1.2 var(--mono,"JetBrains Mono",ui-monospace,monospace);color:#0C0C11;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.sh-tile.w2{grid-column:span 2}
.sh-tile.wf{grid-column:1/-1}
.sh-rows.sh-grid .sh-tile.is-txt dd{font-family:inherit;font-size:14px;font-weight:700;line-height:1.35;white-space:normal;overflow:visible;overflow-wrap:anywhere}
.sh-tile.wf{text-align:left}
.sh-rows.sh-grid .sh-tile.wf.is-txt dd{font-size:13.5px;font-weight:500;line-height:1.45}
.sh-rows.sh-grid .sh-tile dd small,.sh-rows.sh-grid .sh-tile dd .src,.sh-rows.sh-grid .sh-tile dd .sub{display:block;margin-top:2px;font:600 10px/1.3 var(--mono,"JetBrains Mono",ui-monospace,monospace);color:#5A6657;white-space:normal}
.sh-rows.sh-grid .sh-tile dd .num{font-family:var(--mono,"JetBrains Mono",ui-monospace,monospace)}
.sh-meta{display:flex;flex-wrap:wrap;gap:2px 14px;margin-top:10px;font:600 10px/1.4 var(--mono,"JetBrains Mono",ui-monospace,monospace);color:#5A6657}
.sh-meta > div{display:flex;gap:5px;min-width:0}
.sh-rows.sh-grid .sh-meta dt{font:800 10px/1.4 var(--mono,"JetBrains Mono",ui-monospace,monospace);letter-spacing:.06em;text-transform:uppercase;color:#465343}
.sh-rows.sh-grid .sh-meta dd{font:600 10px/1.4 var(--mono,"JetBrains Mono",ui-monospace,monospace);color:#5A6657;overflow-wrap:anywhere}
@media (min-width:640px){.sh-tiles{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.sh-kpis{gap:10px;margin-bottom:10px}}
/* END sheet-grid */

/* BEGIN band-palette (generated by scripts/band-palette.mjs, edit it there) */
/* Option #1 league band colors (one solid color per league, no gradients) */
html:has(.swh[data-league="nfl"]) { --ob-bg: #146C34; --ob-ink: #FFFFFF; --ob-line: #0F5528; }  /* nfl */
html:has(.swh[data-league="nba"]) { --ob-bg: #5B21B6; --ob-ink: #FFFFFF; --ob-line: #4C1D95; }  /* nba */
html:has(.swh[data-league="mlb"]) { --ob-bg: #B03809; --ob-ink: #FFFFFF; --ob-line: #912D07; }  /* mlb */
html:has(.swh[data-league="nhl"]) { --ob-bg: #0369A1; --ob-ink: #FFFFFF; --ob-line: #075985; }  /* nhl */
html:has(.swh[data-league="pga"]) { --ob-bg: #0F6A63; --ob-ink: #FFFFFF; --ob-line: #0B524C; }  /* pga */
html:has(.swh[data-league="wnba"]) { --ob-bg: #BE123C; --ob-ink: #FFFFFF; --ob-line: #9F1239; }  /* wnba */
html:has(.swh[data-league="all"]:not([data-active])) { --ob-bg: #3F6212; --ob-ink: #FFFFFF; --ob-line: #365314; }  /* info */
html:has(.swh[data-active="lines"]) { --ob-bg: #FACC15; --ob-ink: #0C0C11; --ob-line: #EAB308; }  /* lines */
/* Controls on the white-ink bands: frosted translucent pills, white chevron */
html:has(.swh[data-league="nfl"]),
html:has(.swh[data-league="nba"]),
html:has(.swh[data-league="mlb"]),
html:has(.swh[data-league="nhl"]),
html:has(.swh[data-league="pga"]),
html:has(.swh[data-league="wnba"]),
html:has(.swh[data-league="all"]:not([data-active])) {
  --ob-ctl-bg: rgba(12, 12, 17, 0.28); --ob-ctl-ink: #FFFFFF; --ob-ctl-bd: rgba(255, 255, 255, 0.34);
  --ob-badge-bd: rgba(255, 255, 255, 0.32); --ob-ctl-hover: #FFFFFF; --ob-caret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5'%3E%3Cpath d='M0 0h8L4 5z' fill='%23FFFFFF'/%3E%3C/svg%3E");
}
/* Controls on the yellow Live Lines band: white pill, obsidian chevron */
html:has(.swh[data-active="lines"]) {
  --ob-ctl-bg: #FFFFFF; --ob-ctl-ink: #0C0C11; --ob-ctl-bd: rgba(12, 12, 17, 0.22);
  --ob-badge-bd: rgba(12, 12, 17, 0.22); --ob-ctl-hover: #0C0C11; --ob-caret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5'%3E%3Cpath d='M0 0h8L4 5z' fill='%230C0C11'/%3E%3C/svg%3E");
}
:root .card .section-h, :root .card .band, :root .t1-dos-band, :root .bk-mh {
  background: var(--ob-bg, var(--tone-bg, #0C0C11));
  color: var(--ob-ink, #FFFFFF);
  border-bottom: 1px solid var(--ob-line, var(--tone-line, #0C0C11));
}
:root .bk-mh { border: 1px solid var(--ob-line, #0C0C11); }
:root .card .section-h h2, :root .card .band h2, :root .bk-mh h2 {
  display: block; gap: 0; padding-left: 0;
  color: var(--ob-ink, #FFFFFF);
  font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase;
}
:root .card .section-h h2::before, :root .card .band h2::before, :root .bk-mh h2::before,
:root .card .section-h .t1-badge::before { content: none; display: none; }
:root .t1-dos-band { color: var(--ob-ink, #F4F4F5); font-weight: 900; letter-spacing: 0.13em; }
:root .card .section-h .src, :root .card .band .src, :root .card .section-h .cm-hd-pick .vs { color: var(--ob-ink, #FFFFFF); }
:root .card .section-h .sw-hd-sel, :root .card .band .sw-hd-sel {
  background-color: var(--ob-ctl-bg, #181E18);
  background-image: var(--ob-caret, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5'%3E%3Cpath d='M0 0h8L4 5z' fill='%23A3E635'/%3E%3C/svg%3E"));
  color: var(--ob-ctl-ink, #FFFFFF);
  border: 1px solid var(--ob-ctl-bd, #2F3A2F);
  color-scheme: light;
}
:root .card .section-h .sw-hd-sel:hover, :root .card .section-h .sw-hd-sel:focus-visible,
:root .card .band .sw-hd-sel:hover, :root .card .band .sw-hd-sel:focus-visible { border-color: var(--ob-ctl-hover, #84CC16); outline: none; }
:root .card .section-h .sw-hd-sel option, :root .card .band .sw-hd-sel option { background-color: #FFFFFF; color: #0D1B21; text-transform: none; }
:root .card .section-h .t1-badge, :root .card .section-h .sw-hd-btn, :root .bk-mh .sh-x {
  background: var(--ob-ctl-bg, #181E18);
  color: var(--ob-ctl-ink, #FFFFFF);
  border: 1px solid var(--ob-badge-bd, #2F3A2F);
}
:root .card .section-h .sw-hd-btn:hover, :root .card .section-h .sw-hd-btn:focus-visible,
:root .bk-mh .sh-x:hover, :root .bk-mh .sh-x:focus-visible { border-color: var(--ob-ctl-hover, #84CC16); outline: none; }
/* An on/off toggle in a band: the active button is a white chip with obsidian text */
:root .card .section-h [aria-pressed="true"], :root .card .section-h [aria-selected="true"], :root .card .section-h .is-on {
  background: #FFFFFF; color: #0C0C11; border-color: #FFFFFF;
}
/* END band-palette */

/* Live video game rating pills (/assets/game-ratings.js) in the Season leaders pop-ups on /mlb and /nhl: the /nfl
   Madden pill geometry (.mdn-pill, same block as site.css / nfl.css) in each league's Option #1 band color */
.mdn-pill{display:inline-flex;align-items:center;height:20px;padding:0 7px;border-radius:5px;font:800 10px/1 var(--mono);letter-spacing:.04em;text-transform:uppercase;white-space:nowrap;font-variant-numeric:tabular-nums;vertical-align:middle;box-sizing:border-box;flex:0 0 auto}
.mdn-pill.gr-nba{background:#5B21B6;color:#FFFFFF;border:1px solid #4C1D95}
.mdn-pill.gr-mlb{background:#B03809;color:#FFFFFF;border:1px solid #912D07}
.mdn-pill.gr-nhl{background:#0369A1;color:#FFFFFF;border:1px solid #075985}
.mdn-slot[hidden]{display:none}
