/* STATWIRE shared stylesheet: Power Rankings (/nba/rankings) and Playoff Map (/nba/playoff-map). Same patterns as STATWIRE. */
@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;
}
:root[data-view="map"]{ --accent:#a8861c; --accent2:#8a6d10; --tint:#f7ecc7 }
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;background:var(--bg);min-height:100%}
body{margin:0;min-height:100dvh;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}
.wrap{max-width:var(--page-max);margin:0 auto;padding:0 var(--gutter)}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* cards (scroll-margin clears the two-tier sticky header: ~140px on phones, ~98px above 680px) */
.layout{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.card{scroll-margin-top: 130px;background:var(--panel);border:var(--card-border) solid var(--line);border-radius:14px;padding:16px;min-width:0}
@media (min-width:769px){.card{scroll-margin-top: 74px}}
.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}
.tools{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 10px}
.btn{min-height:44px;padding:0 14px;border:1px solid var(--line);border-radius:99px;background:var(--panel2);font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;display:inline-flex;align-items:center;gap:6px}
.btn svg{width:15px;height:15px}
.note{font-family:var(--mono);font-size:11px;color:var(--muted);margin:0 2px 10px}
.note:empty{display:none}
.note.warn{color:var(--playin)}

/* charts */
.chart{width:100%;overflow-x:auto;overscroll-behavior-x:contain;border-radius:10px}
.chart svg{display:block;width:100%;height:auto}
.chart.big svg{width:780px;max-width:none}
.chart .empty{margin:0;padding:48px 12px;text-align:center;font-size:13px;color:var(--muted)}
.chart svg text{font-family:var(--sans)}
.chart svg text.lbl{paint-order:stroke;stroke:#fff;stroke-width:5px;stroke-linejoin:round}
.mk{cursor:pointer;outline:none}
.mk circle.dot{stroke:#fff;stroke-width:1.5;transition:stroke .15s}
.mk:hover circle.dot,.mk:focus-visible circle.dot{stroke:#0c0c11;stroke-width:2}
.mk text{pointer-events:none;font-weight:800;letter-spacing:.03em}
.mk circle.seedb{fill:#fff;stroke:#c9cbd6;stroke-width:1}
.mk text.seedt{font-size:7.6px;font-weight:800;fill:#0c0c11;pointer-events:none;letter-spacing:0}
.mk text.seedt.pi{fill:#c9082a} .mk text.seedt.lot{fill:#6b6b76}
.mk circle.ring1{stroke:#c9a227;stroke-width:2;fill:none}
.mk.hl circle.dot{stroke:var(--accent);stroke-width:4;animation:hl 1.1s ease-in-out 3}
@keyframes hl{50%{stroke-width:7}}
.center-ball{cursor:pointer;outline:none}
.center-ball .pb-hit{fill:transparent}
.center-ball .pb-ring{fill:none;stroke:#c9a227;stroke-width:2.4;transform-box:fill-box;transform-origin:center;animation:pulse 2.6s ease-out infinite}
.center-ball .pb-focus{fill:none;stroke:transparent}
.center-ball:focus-visible .pb-focus{stroke:#0c0c11;stroke-width:2}
@keyframes pulse{0%{opacity:.9;transform:scale(1)}70%,100%{opacity:0;transform:scale(1.45)}}
.legend{display:flex;flex-wrap:wrap;gap:6px 14px;margin:10px 2px 0;font-size:12px;font-weight:600;color:var(--muted)}
.legend i{display:inline-block;width:11px;height:11px;border-radius:3px;margin-right:6px;vertical-align:-1px}
.cap{font-family:var(--mono);font-size:10px;color:var(--muted);margin:8px 2px 0}
.rank-note{font-size:12px;line-height:1.55;color:var(--muted);margin:12px 2px 0;max-width:760px;text-wrap:pretty}
.rank-note b{color:var(--ink)}

/* 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; }

/* team lists */
.seg{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;background:var(--chip);border-radius:10px;margin:0 0 10px}
.seg button{min-height:44px;border:0;border-radius:8px;background:transparent;font-size:13px;font-weight:800;letter-spacing:.06em;color:var(--muted)}
.seg button[aria-selected="true"]{background:var(--panel);color:var(--ink);box-shadow:0 1px 3px rgba(12,12,17,.12)}
.rows{list-style:none;margin:0;padding:0}
.row{display:grid;grid-template-columns:30px auto minmax(0,1fr) auto;align-items:center;gap:10px;min-height:48px;padding:6px 2px;border-bottom:1px solid var(--line);cursor:pointer}
.row:last-child{border-bottom:0}
.row:hover{background:var(--panel2)}
.row .n{font-family:var(--mono);font-size:13px;font-weight:600;color:var(--muted);text-align:right}
.row .n small{display:block;font-size:9.5px;font-weight:600;line-height:1.2}
.row .nm{font-weight:700;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.row .nm small{display:block;font-family:var(--mono);font-weight:400;font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis}
.row .val{font-family:var(--mono);font-size:13px;text-align:right;white-space:nowrap}
.row .val small{display:block;font-size:10px;color:var(--muted)}
.rows .empty{padding:24px 2px;font-size:13px;color:var(--muted);cursor:default}
.pos,.up{color:var(--good)} .neg,.down{color:var(--playin)}
.zone{display:inline-block;font-family:var(--mono);font-size:9.5px;font-weight:600;letter-spacing:.06em;padding:2px 6px;border-radius:4px;background:var(--chip)}
.zone.z6{color:var(--top6)} .zone.zp{color:var(--playin)} .zone.zl{color:var(--muted)}
.divider{font-family:var(--mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);padding:12px 2px 4px;border-bottom:1px solid var(--line);cursor:default}



/* details sheet (same pattern as STATWIRE) */
.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)}
.sh-x:focus{outline:none} .sh-x:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.sh-stat{font-size:18px;line-height:1.5;font-weight:500;padding:2px 0 16px;border-bottom:1px solid var(--line)}
.sh-stat .v{font-family:var(--mono);color:var(--accent2)}
.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}
.sh-rows dd small{font-family:var(--mono);font-size:10px;color:var(--muted)}
.sh-rows dt:last-of-type,.sh-rows dd:last-of-type{border-bottom:0}
.sh-rows .num{font-family:var(--mono)}
.sh-link{display:flex;justify-content:center;align-items:center;gap:8px;width:100%;margin-top:14px;min-height:46px;padding:12px;border-radius:12px;border:0;background:var(--ink);color:#fff;font-weight:700;font-size:14px;text-decoration:none}
.sh-link:hover{background:var(--accent)}
/* bracket inside the sheet */
.br{display:flex;flex-direction:column;gap:8px}
.br h4{margin:10px 0 2px;font-family:var(--mono);font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.mu{border:1px solid var(--line);border-radius:10px;overflow:hidden}
.mu div{display:grid;grid-template-columns:22px auto minmax(0,1fr) auto;gap:8px;align-items:center;padding:8px 10px;font-size:14px}
.mu div+div{border-top:1px solid var(--line)}
.mu .s{font-family:var(--mono);font-size:12px;font-weight:600;color:var(--muted);text-align:right}
.mu .r{font-family:var(--mono);font-size:12px;color:var(--muted)}
.mu .tbd{color:var(--muted);font-style:italic}

/* tablet */
@media (min-width:720px){
  :root{--gutter:24px;--edge-inset:18px}
  .layout{grid-template-columns:repeat(12,minmax(0,1fr));gap:16px}
  .c8,.c4{grid-column:span 12}
  .card{padding:18px}
  .hide-md{display:none}
  .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:1100px){
  .c8{grid-column:span 8} .c4{grid-column:span 4}
  /* the list card matches the chart/map card's height: the header, note and tabs stay put and the list scrolls in the space left below them */
  .c4{display:flex;flex-direction:column}
  .c4>:not(.rows){flex:0 0 auto}
  .c4 .rows{flex:1 1 auto;height:0;min-height:360px;max-height:none;overflow-y:auto}
}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* content starts one gutter below the header, matching the side gutters */
.layout { padding-top: var(--gutter); }
.layout { padding-bottom: 14px; }

/* ======================= 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 ======================== */

/* 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, .card .row .nm small, .card .note, .card .cap { text-transform: uppercase; }

/* Playoff Map Standings Card: remove internal scrollbar, fit all 15 teams & fill card space */
html[data-view="map"] .c4 .rows {
  height: auto;
  min-height: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 auto;
}

@media (min-width: 1100px) {
  html[data-view="map"] .c4 .rows {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  html[data-view="map"] .c4 .row {
    flex: 1 1 0%;
    min-height: 36px;
    padding: 3px 2px;
  }
  html[data-view="map"] .c4 .divider {
    flex: 0 0 auto;
    padding: 8px 2px 3px;
  }
  html[data-view="map"] .c4 .divider:first-child {
    padding-top: 2px;
  }
  html[data-view="map"] .c8 {
    display: flex;
    flex-direction: column;
  }
  html[data-view="map"] .c8 .chart {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
  }
}

/* ===== 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; }
}

/* 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; }
}

/* 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 */

/* Power Rankings (Nov 2026): the chart's ENLARGE / FIT TO SCREEN toggle sits in the card header band below 720px
   (it is hidden from 720px up, as before). The band may wrap to a second line on narrow phones. */
@media (max-width: 719px) {
  #rankChartCard[data-tone] > .section-h {
    flex-wrap: wrap; gap: 6px 8px; height: auto; min-height: 48px; padding-block: 8px; overflow: visible;
  }
  #rankChartCard > .section-h > h2 { flex: 0 1 auto; white-space: nowrap; }
  #rankChartCard > .section-h > .rk-zoom {
    display: inline-flex; align-items: center; gap: 5px; margin-left: auto;
    height: 26px; min-height: 26px; padding: 0 9px; border-radius: 999px;
    font-family: inherit; font-size: 9.5px; font-weight: 800; letter-spacing: 0.05em; line-height: 1;
    text-transform: uppercase; white-space: nowrap; flex: 0 0 auto; cursor: pointer;
  }
  #rankChartCard > .section-h > .rk-zoom svg { width: 11px; height: 11px; flex: 0 0 auto; }
  #rankChartCard > .section-h > .rk-zoom:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
}
@media (min-width: 720px) { #rankChartCard > .section-h > .rk-zoom { display: none; } }

/* ---- Madden NFL rating pill (assets/madden-badge.js; same block in site.css and nfl.css). Contrast: t99 #FACC15 on
   #0C0C11 12.9:1, t90 white on #146C34 6.9:1, t80 white on #1E293B 14.6:1, t70 #0D1B21 on #F5F8F1 16.4:1 ---- */
.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.mdn-t99{background:#0C0C11;color:#FACC15;border:1px solid #CA8A04}
.mdn-pill.mdn-t90{background:#146C34;color:#FFFFFF;border:1px solid #0F5528}
.mdn-pill.mdn-t80{background:#1E293B;color:#FFFFFF;border:1px solid #0F172A}
.mdn-pill.mdn-t70{background:#F5F8F1;color:#0D1B21;border:1px solid #CEDBC0}
.mdn-slot[hidden]{display:none}
