/* Championship Drought — Ledger design */
:root {
  --bg: #0B0D10;
  --panel: #12161B;
  --tile: #07090B;
  --line: #1F242C;
  --line-strong: #2A313B;
  --text: #E8EAED;
  --text-2: #C9CFD8;
  --muted: #A3ABB7;
  --accent: #F5A524;
  --accent-ink: #0B0D10;
  --accent-hover: #FFC35C;
  --focus: #F5A524;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F6F7F9; --panel: #FFFFFF; --tile: #F0F2F5; --line: #E3E6EB; --line-strong: #CDD2D9;
  --text: #12161B; --text-2: #2E353F; --muted: #5A6372; --accent: #B45309; --accent-ink: #FFFFFF;
  --accent-hover: #92400E; --focus: #B45309; color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.5; font-variant-numeric: tabular-nums;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); font-weight: 800; font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; }
.brand:hover { color: var(--text); text-decoration: none; }
.brand-mark { width: 9px; height: 20px; background: var(--accent); border-radius: 2px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: 14px; font-weight: 500; }
.nav a { color: var(--text-2); display: inline-flex; align-items: center; min-height: 44px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.theme-btn { width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }

.proto-bar { background: var(--panel); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.proto-bar .wrap { padding-top: 8px; padding-bottom: 8px; }

main { padding: 40px 0 48px; }
@media (min-width: 720px) { main { padding-top: 56px; } }

.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
h1 { margin: 0 0 12px; font-size: clamp(32px, 6vw, 48px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.lede { margin: 0 0 32px; max-width: 640px; font-size: 18px; color: var(--muted); }
h2.section { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Panels and spotlight */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.spotlight { padding: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 16px; border-top-width: 4px; }
@media (min-width: 720px) { .spotlight { padding: 32px; } }
.spotlight-text { flex: 999 1 340px; min-width: 0; }
.spotlight h2 { margin: 0; font-size: clamp(30px, 5vw, 44px); line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; }
.spotlight h2 a { color: var(--text); }
.spotlight p { margin: 12px 0 0; font-size: 17px; color: var(--text-2); }
.more-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 6px; font-weight: 600; }

.digits { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 0 0 auto; }
.digit-row { display: flex; gap: 8px; }
.digit { width: 84px; height: 116px; background: var(--tile); border: 1px solid var(--line-strong); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 92px; font-weight: 900; letter-spacing: -0.04em; color: var(--accent); line-height: 1; }
@media (min-width: 720px) { .digit { width: 104px; height: 140px; font-size: 112px; } }
.digit-label { font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.digits.small .digit { width: 72px; height: 98px; font-size: 78px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 40px; }
.card { padding: 18px 20px; }
.card-label { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.card-big { font-size: 18px; font-weight: 700; line-height: 1.3; }
.league-best { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; font-size: 15px; }
.league-best a { color: var(--text); }

/* Controls */
.controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); font: 600 14px Inter, system-ui, sans-serif; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.search { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel); width: 300px; max-width: 100%; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 400 15px Inter, system-ui, sans-serif; }

/* Tables */
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table.list { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }
table.list th { background: var(--panel); color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; text-align: left; padding: 0 16px; height: 48px; white-space: nowrap; }
table.list th button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
table.list th button:focus-visible { outline: 2px solid var(--focus); }
table.list th.num, table.list td.num { text-align: right; }
table.list td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
table.list td.rank { color: var(--muted); width: 56px; }
table.list td.lg { color: var(--muted); font-size: 13px; font-weight: 600; width: 72px; }
table.list td.last { color: var(--text-2); }
table.list td.years { font-size: 22px; font-weight: 800; width: 110px; }
.team-link { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; color: var(--text); min-height: 32px; }
.team-link:hover { color: var(--accent); text-decoration: none; }
.bar { width: 4px; height: 24px; border-radius: 2px; flex: 0 0 auto; }
.dagger { color: var(--accent); font-weight: 600; margin-left: 2px; }
.champ { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: 3px 8px; border-radius: 999px; }
.live { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent); margin-left: 8px; }
.footnote { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.empty { padding: 32px 16px; text-align: center; color: var(--muted); }
.league-cells { display: flex; gap: 6px; flex-wrap: wrap; }
.lc { font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--tile); border: 1px solid var(--line); color: var(--text-2); white-space: nowrap; }
.lc b { color: var(--muted); font-weight: 600; margin-right: 4px; }

/* Team page */
.team-head { padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.team-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.team-grid { display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: flex-start; }
.team-main { flex: 999 1 420px; min-width: 0; }
.team-side { flex: 1 1 300px; min-width: 0; }
.story { margin: 16px 0 0; font-size: 18px; color: var(--text); }
.subline { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.callout { margin-top: 18px; padding: 14px 16px; font-size: 15px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 10px; border: 0; background: var(--accent); color: var(--accent-ink); font: 700 15px Inter, system-ui, sans-serif; cursor: pointer; }
.btn:hover { background: var(--accent-hover); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; align-items: center; }
.toast { font-size: 14px; color: var(--muted); }
.stat-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.stat-label { font-weight: 600; }
.stat-detail { font-size: 13px; color: var(--muted); margin-top: 2px; }
.stat-val { font-weight: 800; font-size: 17px; white-space: nowrap; }
.title-list { display: flex; flex-wrap: wrap; gap: 8px; }
.title-chip { font-size: 13px; padding: 6px 10px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); }
.title-chip b { font-weight: 800; }
.history { font-size: 15px; }
.history div { padding: 6px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; }
.history span.y { color: var(--muted); min-width: 108px; }
.block { margin-bottom: 32px; }
.prose p { color: var(--text-2); max-width: 720px; }
.prose h2 { font-size: 22px; margin: 32px 0 8px; }
.prose li { color: var(--text-2); margin-bottom: 6px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.site-footer .wrap { padding-top: 24px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Footer links */
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* Report form */
.report-form { padding: 24px; display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea {
  font: 400 16px Inter, system-ui, sans-serif; color: var(--text); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; min-height: 44px; width: 100%;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
