:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --ink: #1b1f24;
  --muted: #5d6671;
  --line: #e3e1dc;
  --brand: #13233b;
  --brand-ink: #ffffff;
  --accent: #d9622b;
  --accent-soft: #fbeee6;
  --lean: #2f5d9e;
  --lean-soft: #e9f0fa;
  --pos: #1f7a4d;
  --neg: #b3362c;
  --notice: #fff4d6;
  --notice-ink: #5b4a12;
  --radius: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1318;
    --surface: #171c23;
    --ink: #e8eaed;
    --muted: #9aa4b0;
    --line: #2a313b;
    --brand: #0b1624;
    --accent: #f08a50;
    --accent-soft: #2b1e16;
    --lean: #86aee8;
    --lean-soft: #172234;
    --pos: #5fd199;
    --neg: #ff8a80;
    --notice: #2a2412;
    --notice-ink: #f1dd9b;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -.02em; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; margin-top: 1.75rem; }
p { margin: 0 0 .75rem; }
.wrap { max-width: 1100px; margin: 0 auto; padding-inline: 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }

/* ── Chrome ─────────────────────────────────────────────────────────────── */
.notice {
  background: var(--notice); color: var(--notice-ink);
  font-size: .85rem; text-align: center; padding: .45rem 16px;
}
.notice a { color: inherit; font-weight: 600; }
.masthead { background: var(--brand); color: var(--brand-ink); }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: .9rem; }
.brand { color: inherit; text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; display: flex; align-items: center; gap: .55rem; }
.ball { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); box-shadow: inset -4px -3px 0 rgba(0,0,0,.18); }
nav { display: flex; gap: .25rem; flex-wrap: wrap; }
nav a { color: rgba(255,255,255,.78); text-decoration: none; padding: .4rem .7rem; border-radius: 8px; font-size: .95rem; }
nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.14); }
main { padding-block: 2rem 3rem; }
.footer { border-top: 1px solid var(--line); padding-block: 1.5rem 2.5rem; font-size: .875rem; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.page-head { margin-bottom: 1.5rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .35rem; }
.block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-top: 1.25rem; }
.two-col { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.two-col > .block { margin-top: 0; }
.three-col { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.three-col > .block { margin-top: 0; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.5rem; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.25rem; }
.prose h2:first-child { margin-top: 0; }

/* ── Picks ──────────────────────────────────────────────────────────────── */
.picks { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.pick {
  background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent);
  border-radius: var(--radius); padding: 1.25rem 1.35rem;
}
.pick-lean { border-top-color: var(--lean); }
.pick-empty { border-top-color: var(--line); }
.pick-kind { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--accent); margin-bottom: .4rem; }
.pick-lean .pick-kind { color: var(--lean); }
.pick-empty .pick-kind { color: var(--muted); }
.pick h2 { font-size: 1.6rem; margin-bottom: .15rem; }
.pick-line { color: var(--muted); margin-bottom: 1rem; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 0 0 1rem; }
.facts div { background: var(--bg); border-radius: 8px; padding: .55rem .7rem; }
.facts dt { font-size: .75rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.evidence { background: var(--accent-soft); border-radius: 8px; padding: .65rem .8rem; font-size: .92rem; }
.pick-lean .evidence { background: var(--lean-soft); }
.caveat { font-size: .82rem; color: var(--muted); margin: 0; }

/* ── Stats ──────────────────────────────────────────────────────────────── */
.snapshot { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: .75rem 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .85rem 1rem; }
.block .stat { background: var(--bg); border-color: transparent; }
.stat-label { font-size: .78rem; color: var(--muted); margin-bottom: .2rem; }
.stat-champ { border-left: 4px solid var(--accent); }
.stat-value { font-size: 1.35rem; font-weight: 800; margin-bottom: .1rem; letter-spacing: -.01em; }
.stat p:last-child { margin: 0; font-size: .88rem; }

.bars { display: grid; gap: .5rem; margin: .5rem 0 1rem; }
.bar-row { display: grid; grid-template-columns: 6.5rem 1fr 7.5rem; gap: .75rem; align-items: center; }
.bar { height: 12px; background: var(--bg); border-radius: 6px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.bar-label, .bar-value { font-size: .9rem; font-variant-numeric: tabular-nums; }

/* ── Tables ─────────────────────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: .5rem .55rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
table.standings tr.cut td { border-bottom: 2px solid var(--muted); }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; padding: 0 .4rem; border-radius: 4px; background: var(--bg); color: var(--muted); vertical-align: middle; }
.result { font-size: .75rem; font-weight: 700; text-transform: uppercase; padding: .1rem .45rem; border-radius: 4px; background: var(--bg); color: var(--muted); }
.result-won { background: color-mix(in srgb, var(--pos) 15%, transparent); color: var(--pos); }
.result-lost { background: color-mix(in srgb, var(--neg) 15%, transparent); color: var(--neg); }
ol.plain { padding-left: 1.2rem; margin: 0; }
ul.results { list-style: none; padding: 0; margin: 0; }
ul.results li { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .5rem 0; border-bottom: 1px solid var(--line); }

@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .bar-row { grid-template-columns: 5rem 1fr 6.5rem; gap: .5rem; }
  nav a { padding: .35rem .5rem; font-size: .9rem; }
}

/* ── Fixtures & tabs ───────────────────────────────────────────────────────── */
.tabs { display: flex; gap: .4rem; margin: .5rem 0 .75rem; flex-wrap: wrap; }
.tabs a { padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .9rem; }
.tabs a[aria-current="page"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.team-filter { display: flex; align-items: center; gap: .6rem; margin: .75rem 0 .35rem; flex-wrap: wrap; }
.team-filter select { font: inherit; padding: .4rem .6rem; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); max-width: 100%; }
.week-nav { display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap; }
table.fixtures td.win { font-weight: 700; }
table.fixtures .score { font-variant-numeric: tabular-nums; margin-left: .35rem; }
table.fixtures td.at { width: 1.5rem; text-align: center; }
.tag-live { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
table.fixtures td { white-space: normal; vertical-align: top; }
table.fixtures td.when { width: 6.5rem; white-space: nowrap; }
table.fixtures td.matchup { min-width: 11rem; }
table.fixtures .side { display: flex; justify-content: space-between; gap: .75rem; }
table.fixtures .side.win { font-weight: 700; }
table.fixtures td.info { width: 40%; }
table.fixtures .model { color: var(--ink); margin-top: .25rem; }
@media (max-width: 560px) {
  table.fixtures td.info { display: none; }   /* venue/TV hidden on phones; matchup + time stay */
}
