/* ═══════════════════════════════════════════════════════════════
   base.css — shared by NBA and WNBA
   Everything both sites have in common: layout, structure, type
   sizing. WNBA is the blueprint. No colours are written here —
   every colour comes from the site's own tokens.css.
   Loaded first, then tokens.css, then the site's style.css.
   ═══════════════════════════════════════════════════════════════ */

/* ─── Shared values (same on both sites) ───────────────────── */
:root {
  /* Type families */
  --font-display: 'Inter Tight', system-ui, sans-serif;
  --font-body:    'Hind', system-ui, sans-serif;
  --font-mono:    'Roboto Mono', ui-monospace, monospace;
  --font-pill:    'Geist Mono', ui-monospace, monospace;
  --font-cond:    'Archivo Narrow', system-ui, sans-serif;

  /* Layout */
  --gutter:     32px;
  --radius:     2px;
  --radius-tab: 3px;

  /* Heading sizes — shrink from desktop size to phone size */
  --fs-h1: clamp(22px, 4.5vw, 30px);
  --fs-h2: clamp(18px, 3vw, 22px);
  --fs-h3: clamp(16px, 2.4vw, 18px);
  --fs-h4: clamp(14px, 2vw, 15px);
}
@media (max-width: 720px) { :root { --gutter: 16px; } }
@media (max-width: 480px) { :root { --gutter: 12px; } }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

/* ─── Headings — each level looks the same everywhere ──────── */
h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-h1);
  line-height: .95;
  letter-spacing: -1.5px;
  color: var(--ink);
  text-wrap: balance;
}
h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.5px;
  color: var(--ink);
  margin-bottom: 8px;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

/* ─── Paragraphs — one style everywhere ────────────────────── */
p {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.wrap { position: relative; }

/* Announcement banner (text driven from the Pages sheet) */
.banner {
  background: var(--accent);
  color: var(--on-accent);
  padding: 8px var(--gutter);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3px;
  text-align: center;
}

/* ─── Skip link (a11y) ─────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--chrome);
  color: var(--chrome-ink);
  padding: 8px 14px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

/* Screen-reader-only utility */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ═══ TOP BAR ═══════════════════════════════════════════════ */
.topbar {
  background: var(--chrome);
  color: var(--chrome-ink);
  padding: 8px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  letter-spacing: .5px;
}
.topbar-left { display: flex; gap: 22px; align-items: center; }
.topbar-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -.2px;
  color: var(--chrome-ink);
  text-decoration: none;
}

/* League stamp (NBA / WNBA) next to the brand name */
.league-stamp {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: var(--radius);
  background: var(--stamp-bg);
  color: var(--stamp-ink);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.4;
  vertical-align: middle;
}
.newsletter { display: flex; align-items: stretch; height: 24px; }
.newsletter input[type="email"] {
  background: var(--nl-bg);
  border: 1px solid var(--nl-line);
  border-right: none;
  color: var(--chrome-ink);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .5px;
  padding: 0 10px;
  width: 220px;
  outline: none;
  border-radius: var(--radius) 0 0 var(--radius);
}
.newsletter input::placeholder { color: var(--nl-placeholder); }
.newsletter input:focus { border-color: var(--accent); }
.newsletter button {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 0 14px;
  cursor: pointer;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.newsletter button:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--on-accent); }

.topbar-right { display: flex; gap: 10px; align-items: center; }
.btn {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3px;
  padding: 4px 12px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid var(--chrome-line);
  color: var(--chrome-text);
  background: transparent;
  cursor: pointer;
}
.btn:hover { color: var(--chrome-ink); border-color: var(--chrome-line-hover); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--on-accent); }

/* ═══ MASTHEAD ══════════════════════════════════════════════ */
.masthead {
  padding: 32px var(--gutter) 24px;
  border-bottom: 1px solid var(--masthead-rule);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
}

.masthead-status {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.masthead-status .live { color: var(--accent); font-weight: 600; }
.masthead-status .live::before {
  content: '●';
  margin-right: 4px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

/* ═══ PRIMARY NAV ═══════════════════════════════════════════ */
.nav {
  background: var(--chrome);
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  padding: 0 24px;
}
.nav a {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--chrome-text-dim);
  text-decoration: none;
  padding: 12px 16px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--chrome-ink); }
.nav a.active { color: var(--chrome-ink); border-bottom-color: var(--accent); }

/* Nav icons (Material Symbols) */
.nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav .material-symbols-rounded {
  font-size: 1.4em;
  line-height: 1;
  font-weight: 400;
}
/* Hamburger toggle — hidden on desktop, shown under 720px */
.nav-toggle {
  display: none;
  width: 100%;
  background: var(--chrome);
  color: var(--chrome-ink);
  border: none;
  border-top: 1px solid var(--chrome-divider);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: left;
  padding: 14px var(--gutter);
  cursor: pointer;
}
.nav-toggle::after { content: ' ▾'; }
.nav-toggle[aria-expanded="true"]::after { content: ' ▴'; }

/* Nav dropdown */
.nav-dropdown { position: relative; display: flex; }
.nav-dropdown > a::after { content: ' ▾'; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--chrome);
  flex-direction: column;
  border-top: 2px solid var(--accent);
  z-index: 50;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a { white-space: nowrap; border-bottom: none; }

/* Nav bar wrapper + link to the other site (NBA ↔ WNBA) */
.nav-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  background: var(--chrome);
}
.nav-bar .nav { flex: 1; }
.nav-other {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius);
  padding: 8px 16px;
  margin-right: 24px;
}
.nav-other:hover { background: var(--accent-2); color: var(--on-accent); }

/* ═══ FOOTER ════════════════════════════════════════════════ */
.foot {
  margin-top: 40px;
  border-top: 1px solid var(--foot-rule);
  padding: 20px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .5px;
  text-transform: uppercase;
}
.foot a { color: var(--muted); text-decoration: none; margin: 0 6px; }
.foot a:hover { color: var(--accent); }

/* ═══ CONTAINER ═════════════════════════════════════════════ */
.container { padding: 28px var(--gutter) 0; }
.container:last-of-type { padding-bottom: 48px; }

.no-results { color: var(--muted); font-size: 13px; padding: 14px; }

/* ═══ SECTION LABEL (scoreboard tab) ════════════════════════ */
.sl {
  display: flex;
  align-items: flex-end;
  margin: 8px 0 0;
}
.sl-tab {
  background: var(--chrome);
  color: var(--chrome-ink);
  padding: 8px 18px 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-tab) var(--radius-tab) 0 0;
  position: relative;
  z-index: 2;
  margin-bottom: -1px;
}
.sl-tab::before {
  content: '';
  width: 4px;
  height: 12px;
  background: var(--accent);
}
.sl-sub {
  padding: 0 14px 6px;
  font-family: var(--font-cond);
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  display: flex;
  align-items: flex-end;
}

/* ═══ TABLE PRIMITIVES ══════════════════════════════════════ */
.tw {
  background: var(--paper);
  border: 1px solid var(--rule);
  overflow-x: auto;
  margin-bottom: 24px;
}
.dt { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.dt thead th {
  background: var(--paper-2);
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 9px 10px;
  border-bottom: 1px solid var(--rule);
  text-align: center;
  white-space: nowrap;
}
.dt thead th.matchup-hd { color: var(--ink); }
.dt tbody tr { border-bottom: 1px solid var(--rule-soft); transition: transform .12s ease, box-shadow .12s ease; }
.dt tbody tr:last-child { border-bottom: none; }
.dt tbody tr:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-row);
  position: relative;
  z-index: 1;
}
.dt tbody td {
  padding: 9px 10px;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
}
.dt td.num {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum';
  font-size: 12px;
  font-weight: 500;
}
.dt td.name { font-family: var(--font-body); font-weight: 600; font-size: 12.5px; }
.dt td.matchup-cell {
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 7px 14px;
}
.at { color: var(--muted); font-size: 10px; margin: 0 6px; font-family: var(--font-mono); }
.dt td.heat { font-family: var(--font-mono); font-weight: 700; font-size: 12px; }

/* Sort indicators */
.dt thead th.sh { cursor: pointer; user-select: none; }
.dt thead th.sort-asc::after  { content: ' ▲'; font-size: 9px; opacity: .7; }
.dt thead th.sort-desc::after { content: ' ▼'; font-size: 9px; opacity: .7; }

/* ═══ PILLS (team colours set in each site's style.css) ═════ */
.pill {
  display: inline-block;
  min-width: 42px;
  padding: 3px 8px;
  border-radius: var(--radius);
  font-family: var(--font-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .4px;
  text-align: center;
  line-height: 1.5;
  vertical-align: middle;
  background: var(--pill-bg);
  color: var(--pill-ink);
}
.pill-link { text-decoration: none; }

/* ═══ POSITION BADGE / PLAYER LINK / DASH ═══════════════════ */
.pos-badge {
  display: inline-block;
  background: var(--pos-bg);
  color: var(--pos-ink);
  border: 1px solid var(--pos-line);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius);
  letter-spacing: .5px;
}
.player-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dotted var(--rule);
}
.player-link:hover { color: var(--accent); border-bottom-color: var(--accent); }
.dash { color: var(--muted-2); }

/* ═══ HEAT CLASSES ══════════════════════════════════════════ */
.h0 { background: var(--h0); color: var(--h0-ink); }
.h1 { background: var(--h1); color: var(--h1-ink); }
.h2 { background: var(--h2); color: var(--h2-ink); }
.h3 { background: var(--h3); color: var(--h3-ink); }
.h4 { background: var(--h4); color: var(--h4-ink); }
.h5 { background: var(--h5); color: var(--h5-ink); }

/* ═══ PAGE SUMMARY (editorial block, authored in spreadsheet) ═ */
.page-summary { padding: 24px 0 4px; }

.page-summary p { max-width: 80ch; }
@media (max-width: 720px) {
  .page-summary p,
  .page-summary-slot,
  .intro-links li {
    font-size: clamp(11px, 3.2vw, 14.5px);
  }
}
.page-summary-updated {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 12px;
  letter-spacing: .3px;
}

/* ═══ HOME — INTRO STRIP (blurb + yesterday's results) ══════ */
.intro-strip {
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  gap: 32px;
  padding: 24px var(--gutter);
  background: var(--paper);
  align-items: start;
}
.intro-left { padding-right: 16px; }
.intro-heading {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.15;
}
.intro-copy { max-width: 56ch; margin-bottom: 12px; }
.intro-links { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.intro-links a { color: var(--accent); text-decoration: none; font-weight: 600; }
.intro-links a:hover { color: var(--accent-2); }
.intro-right { display: flex; flex-direction: column; min-width: 0; }

/* ═══ HOME — NAV CARDS ══════════════════════════════════════ */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.card {
  background: var(--paper);
  border-right: 1px solid var(--rule);
  padding: 20px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:last-child { border-right: none; }
.card:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px var(--accent), var(--shadow-card);
  position: relative;
  z-index: 1;
}
.card-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .3px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-arrow { color: var(--accent); }
.card p { flex: 1; }
.card-more {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
.card:hover .card-more { color: var(--accent-2); }

/* ═══ SEASON SELECTOR ═══════════════════════════════════════ */
.season-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px var(--gutter);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
}
.season-nav-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}
.season-nav a {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  padding: 4px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
}
.season-nav a:hover { color: var(--accent); border-color: var(--accent); }
.season-nav a.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ═══ LIST PAGES — SEARCH BOX ═══════════════════════════════ */
.table-search { margin-bottom: 12px; }
.table-search input {
  width: 100%;
  max-width: 320px;
  font-family: var(--font-body);
  font-size: 13px;
  padding: 8px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  outline: none;
}
.table-search input:focus { border-color: var(--accent); }

/* ═══ TEAM PAGE ═════════════════════════════════════════════ */
.team-head-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}


.summary-boxes-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.summary-box {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  margin-bottom: 24px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
}
.summary-box strong { color: var(--ink); }
.summary-val {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}
.summary-lbl {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.2;
}
.summary-box.heat .summary-val,
.summary-box.heat .summary-lbl { color: inherit; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.team-grid.team-grid-2col { grid-template-columns: repeat(2, 1fr); }
.team-grid-cell { min-width: 0; }
.team-grid-cell .sl { margin-top: 0; margin-bottom: 6px; }

.last10-cell { font-weight: 800; }
.last10-cell.won  { background: var(--last10-won-bg);  color: var(--last10-won-ink); }
.last10-cell.lost { background: var(--last10-lost-bg); color: var(--last10-lost-ink); }

/* Game log YES / NO cells (team + player pages) */
.yn-yes { color: var(--win);  font-weight: 700; }
.yn-no  { color: var(--loss); font-weight: 700; }

/* ═══ PLAYER PAGE ═══════════════════════════════════════════ */
.player-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.player-season {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .5px;
  text-transform: uppercase;
}
.multi-team-note {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--muted);
}
.multi-team-note strong { color: var(--ink); }

.stat-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}
.stat-box {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 12px 6px;
  text-align: center;
}
.stat-val {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.stat-box.heat .stat-val,
.stat-box.heat .stat-lbl { color: inherit; }
.stat-lbl {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.2;
}
.stat-ct { opacity: .7; }

/* ═══ TODAY PAGE ════════════════════════════════════════════ */
/* Jump nav — floating dropdown */
.jumpnav {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
}
.jumpnav summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--jumpnav-ink);
  background: var(--accent);
  padding: 10px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-float);
}
.jumpnav summary::-webkit-details-marker { display: none; }
.jumpnav summary::after { content: ' ▴'; }
.jumpnav[open] summary::after { content: ' ▾'; }
.jumpnav-list {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
  padding: 8px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-float);
}
.jumpnav a {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
}
.jumpnav a:hover { color: var(--accent); border-color: var(--accent); }

/* Previous meetings blocks */
.prev-matchup-block { margin-bottom: 16px; }
.prev-matchup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper-3);
  border: 1px solid var(--rule);
  border-bottom: none;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .5px;
  text-transform: uppercase;
}
.prev-matchup-block .tw { border-top: none; margin-bottom: 0; }

/* Jumper H2H grid */
.h2h-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.h2h-grid .sl { margin-top: 16px; }
.h2h-val { color: var(--accent); font-weight: 700; }

/* Last 10 — W/L cells */
.l10 .dt td.num { padding: 6px 4px; }
.l10-cell {
  display: inline-block;
  min-width: 30px;
  padding: 3px 0;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .3px;
  border-radius: var(--radius);
}
.l10-w { background: var(--win);  color: var(--l10-ink); }
.l10-l { background: var(--loss); color: var(--l10-ink); }

/* ═══ STATS PAGE — TABS ═════════════════════════════════════ */
.stats-tabs {
  display: flex;
  gap: 4px;
  padding: 8px var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
  align-items: center;
}
.stab {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
}
.stab:hover { color: var(--ink); }
.stab.active {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

/* Tab panels — only the active one shows */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Section label on stats page: keep tab + subtitle on one line */
.tab-panel .sl {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--ink);
}
.tab-panel .sl .sl-sub {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  color: var(--muted);
}

/* Per-table search/filter row */
.tc {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
  flex-wrap: wrap;
}
.tc .ts {
  flex: 0 0 320px;
  max-width: 100%;
  font-family: var(--font-body);
  font-size: 13px;
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  outline: none;
}
.tc .ts:focus { border-color: var(--accent); }
.tc .tp {
  font-family: var(--font-body);
  font-size: 13px;
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  outline: none;
}

/* ═══ LINEUPS PAGE ══════════════════════════════════════════ */
.lineups-view-toggle {
  display: flex;
  gap: 6px;
  margin: 8px 0 16px;
  flex-wrap: wrap;
}
.lvt-btn {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  padding: 6px 14px;
  border-radius: var(--radius);
  cursor: pointer;
}
.lvt-btn:hover { color: var(--ink); }
.lvt-btn.active {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.lineups-view { display: none; }
.lineups-view.active { display: block; }

.lineup-game { margin-bottom: 24px; }
.lineup-game-header {
  background: var(--lgh-bg);
  color: var(--lgh-ink);
  padding: 10px 14px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .3px;
}
.lineup-game-header .at {
  color: var(--lgh-ink);
  opacity: .7;
  font-weight: 700;
}
.lineup-game-header .lgh-dot {
  color: var(--lgh-ink);
  opacity: .6;
  font-weight: 700;
  margin: 0 2px;
}
.lineup-game-header .lgh-name {
  color: var(--lgh-ink);
  font-weight: 800;
}

.lineup-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.lineup-side { min-width: 0; }
.lineup-side-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  padding: 4px 8px;
  margin-bottom: 4px;
  border-left: 3px solid var(--rule);
}
.lineup-side-label[data-team] { border-left-color: var(--accent); }
.lineup-side-label .lsl-mascot {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}

/* ═══ PICKS PAGE ════════════════════════════════════════════ */
.picks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.pick-game { margin-bottom: 0; }

/* Two-tone team band — full width, coloured per team */
.pick-game-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.pgh-team {
  min-width: 0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--team-bg, var(--chrome));
  color: var(--team-fg, var(--pgh-fallback-ink));
}
.pgh-team .pill { background: var(--pgh-pill-bg); color: inherit; }
.pgh-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .3px;
}
.pgh-at {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: var(--pgh-at-bg);
  color: var(--pgh-at-ink);
  font-weight: 700;
}

/* Tip win probability row */
.pick-tip-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}
.pick-tip-cell {
  padding: 8px 10px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
}
.pick-game .tw { border-top: none; margin-bottom: 0; }

/* ═══ CONTACT FORM ══════════════════════════════════════════ */
.contact-wrap { max-width: 600px; margin: 0 auto; padding: 40px 20px 80px; }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-field { display: flex; flex-direction: column; }
.form-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
  margin-bottom: 6px;
}
.form-input, .form-textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink);
  padding: 10px 12px;
  font-size: 13px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color .15s;
}
.form-textarea { resize: vertical; }
.form-input:focus, .form-textarea:focus { border-color: var(--accent); }

.form-submit {
  align-self: flex-start;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  color: var(--on-accent);
  padding: 10px 24px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .4px;
  cursor: pointer;
  font-family: var(--font-display);
  transition: opacity .15s;
}
.form-submit:hover { opacity: .85; }

.form-success {
  background: var(--paper);
  border: 1px solid var(--form-ok);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}
.form-success-icon { font-size: 24px; margin-bottom: 8px; }
.form-success-title { color: var(--form-ok); font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.form-success-text { color: var(--muted); font-size: 12px; }

.form-error {
  background: var(--form-err-bg);
  border: 1px solid var(--form-err-line);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 24px;
  font-size: 12px;
  color: var(--form-err-ink);
  font-weight: 600;
}

/* ═══ COLUMN KEY MODAL ══════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--modal-overlay);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px;
  overflow-y: auto;
}
.modal-overlay[hidden] { display: none; }
.modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
}
.modal h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--muted);
  width: 28px;
  height: 28px;
  cursor: pointer;
}
.modal-close:hover { color: var(--accent); border-color: var(--accent); }
.key-grid { display: flex; flex-direction: column; gap: 4px; }
.key-section {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 12px;
}
.key-item { display: grid; grid-template-columns: 140px 1fr; gap: 10px; font-size: 12.5px; }
.key-abbr { font-family: var(--font-mono); font-weight: 700; color: var(--ink); }
.key-desc { color: var(--muted); }
.key-scale { display: grid; grid-template-columns: repeat(6, 1fr); height: 14px; margin-top: 6px; }
.key-scale-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

/* ═══ RESPONSIVE ════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .lineup-pair { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .intro-strip { grid-template-columns: 1fr; gap: 24px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .card:nth-child(2n) { border-right: none; }
  .card:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .summary-boxes-4 { grid-template-columns: repeat(2, 1fr); }
  .h2h-grid { grid-template-columns: 1fr; }
  .picks-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .sl { flex-direction: column; align-items: flex-start; }
  .sl-sub { padding: 6px 0 4px; }

  .topbar { flex-wrap: wrap; gap: 10px 6px; }
  .topbar-left { display: contents; }
  .topbar-brand { white-space: nowrap; order: 1; }
  .league-stamp { order: 1; margin-left: 0; }
  .topbar-right { order: 2; margin-left: auto; gap: 6px; }
  /* Keep brand, stamp and buttons on one line at every phone width */
  .topbar-brand { font-size: clamp(10px, 3.33vw, 13px); }
  .league-stamp { font-size: clamp(7px, 2.31vw, 9px); }
  .topbar-right .btn { font-size: clamp(9px, 2.82vw, 11px); padding: 4px 8px; }  .newsletter { order: 3; width: 100%; }
  .newsletter input[type="email"] { flex: 1; width: auto; min-width: 0; }

  .masthead { grid-template-columns: 1fr; gap: 12px; }
  .masthead-status { text-align: left; }

  .nav-toggle { display: block; }
  .nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 12px var(--gutter);
    border-bottom: none;
    border-left: 2px solid transparent;
  }
  .nav a.active { border-bottom-color: transparent; border-left-color: var(--accent); }

  /* Dropdowns open on tap (site.js adds .open) */
  .nav-dropdown { flex-direction: column; }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu { display: none; }
  .nav-dropdown.open .nav-dropdown-menu {
    display: flex;
    position: static;
    min-width: 0;
    border-top: none;
    padding-left: 12px;
  }

  /* Nav bar: Menu button + other-site link on one row, menu below */
  .nav-toggle { width: auto; flex: 1; }
  .nav-other { margin-right: var(--gutter); }
  .nav-bar .nav { flex: 0 0 100%; order: 3; }
}

@media (max-width: 600px) {
  .team-grid,
  .team-grid.team-grid-2col { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .card { border-right: none; border-bottom: 1px solid var(--rule); }
  .card:last-child { border-bottom: none; }
}