@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/geist-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/geist-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ffffff;
  --page: #f2f5f9;
  --navy: #1d3557;
  --navy-2: #2b5086;
  --zebra: #eef3f9;
  --hover: #ffe8d4;
  --ink: #15171a;
  --muted: #566070;
  --faint: #9aa0a8;
  --line: #e6e8eb;
  --line-strong: #cfd3d8;
  --wash: #f6f7f8;
  --brand: #e8590c;
  --brand-wash: #fff4ec;
  --accent: #1f5fd1;
  --accent-ink: #174aa5;
  --win: #178043;
  --loss: #c0392b;
  --top: 56px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1, "cv11" 1;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
button, input, select { font: inherit; color: inherit; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.88em; background: var(--wash); padding: 1px 5px; border-radius: 4px; }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--top);
  padding: 0 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--line-strong);
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); white-space: nowrap; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand-logo { display: block; flex: none; }
.brand-mark { font-weight: 750; letter-spacing: 0.02em; color: var(--navy); }
.brand-text { color: var(--muted); }
.nav { display: flex; gap: 2px; align-self: stretch; align-items: stretch; }
.nav-split { align-self: center; width: 1px; height: 16px; margin: 0 8px; background: var(--line-strong); }
.topnav { position: relative; color: #2b3645; font-weight: 500; padding: 18px 10px; }
.topnav:hover { color: var(--brand); text-decoration: none; }
.topnav[aria-current="page"] { color: var(--ink); font-weight: 600; }
.topnav[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; background: var(--brand); }
.search { position: relative; flex: 1; max-width: 380px; margin-left: auto; }
.search input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 7px 11px;
  background: var(--bg);
}
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: transparent; }
.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  overflow: auto;
  max-height: 360px;
}
.search-results a { display: block; padding: 8px 12px; color: var(--ink); }
.search-results a:hover { background: var(--wash); text-decoration: none; }
.search-results small { display: block; color: var(--muted); }

main { max-width: 1360px; margin: 0 auto; padding: 32px 24px 72px; }
.foot { background: var(--navy); color: rgba(255, 255, 255, 0.72); font-size: 0.86rem; margin-top: 48px; }
.foot-in { max-width: 1360px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; }
.foot-note { margin: 0; }
.foot-src { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 0; }
.foot-k { color: #fff; font-weight: 650; }
.foot-src a { color: #ffd2b0; text-decoration: none; }
.foot-src a:hover { color: #fff; }
.foot .updated { margin: 0; color: #fff; font-weight: 600; white-space: nowrap; }

/* Home hero */
.hero { padding: 24px 0 8px; }
.hero h1 { font-size: 2.6rem; max-width: 18ch; margin-bottom: 10px; }
.hero .lede { font-size: 1.05rem; margin-bottom: 20px; }
.hero-search { display: flex; align-items: stretch; gap: 8px; max-width: 640px; margin: 0 0 16px; }
.hero-search input {
  flex: 1;
  min-width: 0;
  width: auto;
  padding: 13px 16px;
  font-size: 1.05rem;
  border-radius: 8px;
  border-width: 2px;
  border-color: var(--ink);
  color: var(--ink);
  caret-color: var(--ink);
}
.hero-search input::placeholder { color: #6d7580; opacity: 1; }
.hero-search input:focus { outline: 3px solid var(--brand-wash); border-color: var(--brand); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; font-size: 0.98rem; font-weight: 650; }
body[data-page="home"] .top .search { visibility: hidden; }

/* Type */
h1, h2, h3 { font-weight: 650; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: 2.1rem; line-height: 1.15; margin: 0 0 6px; letter-spacing: -0.03em; }
h2 { font-size: 1.1rem; margin: 0 0 10px; }
h3 { font-size: 0.95rem; margin: 0 0 8px; }
.lede { margin: 0 0 8px; color: var(--muted); max-width: 64ch; }
.note { color: var(--muted); font-size: 0.86rem; }
p.note { margin: 8px 0 0; }

.section { margin-top: 40px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.section-head h2 { margin: 0; font-size: 1.15rem; }
.section-head h2, .block-title { border-left: 4px solid var(--brand); padding-left: 10px; line-height: 1.2; }
.block-title { font-size: 1.15rem; margin: 32px 0 12px; }
.section-head a { font-size: 0.9rem; }

.crumb { color: var(--muted); font-size: 0.86rem; margin-bottom: 10px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--ink); }
.title-row { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.title-row h1 { margin-bottom: 0; }

/* Status: plain text, no pills */
.pill { color: var(--muted); font-size: 0.86rem; white-space: nowrap; }
.pill::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--faint); vertical-align: 0.08em; }
.pill.done::before { background: var(--win); }
.pill:not(.done):not(.partial):not(.plain)::before { background: var(--brand); }
.pill.partial::before { background: #d4a017; }
.pill.plain::before { background: var(--line-strong); }

/* Tables: horizontal rules only */
.table-wrap { width: fit-content; max-width: 100%; overflow: hidden; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px; }
table.data { width: auto; max-width: 100%; min-width: 0; border-collapse: collapse; font-size: 0.94rem; }
table.data th, table.data td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td[rowspan] { vertical-align: top; font-weight: 650; }
table.data .emph { font-weight: 700; }
table.data th {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 0;
  white-space: normal;
  line-height: 1.25;
}
table.data td.num, table.data th.num { white-space: nowrap; }
table.data td[data-sort] { white-space: nowrap; }
table.data th.sortable:hover { color: #fff; }
table.data th[aria-sort="descending"]::after { content: " ↓"; }
table.data th[aria-sort="ascending"]::after { content: " ↑"; }
table.data tbody tr { background: var(--bg); }
table.data tbody tr:nth-child(even) { background: var(--zebra); }
table.data.by-year tbody tr:nth-child(even) { background: var(--bg); }
table.data.by-year tbody tr.band { background: var(--zebra); }
table.data tbody tr:hover,
table.data.by-year tbody tr.band:hover { background: var(--hover); }
table.data a { color: inherit; }
table.data td.team a, table.data td:first-child a { color: var(--ink); }
table.data a:hover { color: var(--accent); text-decoration: underline; }
.num, table.data td.num, table.data th.num { text-align: center; font-variant-numeric: tabular-nums; }
.team { font-weight: 550; }
.rank-1 td.team { color: var(--ink); }
.rank-1 td:first-child { font-weight: 700; color: var(--brand); }
table.data tbody tr.rank-1 { background: var(--brand-wash); }

/* Controls: views are tabs, filters are labelled fields */
.filters, .seg {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  margin: 22px 0 0;
  border-bottom: 1px solid var(--line-strong);
  overflow-x: auto;
  scrollbar-width: none;
}
.filters button, .seg button {
  flex: none;
  margin-bottom: -1px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: none;
  color: #2b3645;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.filters button:hover, .seg button:hover { color: var(--ink); background: none; }
.filters button[aria-pressed="true"], .seg button[aria-pressed="true"] {
  background: none;
  color: var(--ink);
  font-weight: 650;
  border-bottom-color: var(--brand);
}
.toolbar .seg { margin: 0; border-bottom: 0; }
.toolbar .seg button { padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 6px; margin: 0; }
.toolbar .seg button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 16px 0 14px; }
.field { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 0.78rem; font-weight: 500; }
.field select, .field input { color: var(--ink); font-size: 0.94rem; font-weight: 400; }
.page-head .field { color: rgba(255, 255, 255, 0.72); }
select, .toolbar input[type="search"] {
  border: 1px solid var(--line-strong);
  background: var(--bg);
  border-radius: 6px;
  padding: 7px 10px;
}
select { min-width: min(100%, 300px); }
.toolbar input[type="search"] { min-width: 200px; }
select:focus, .toolbar input:focus, button:focus-visible { outline: 2px solid var(--brand); outline-offset: -1px; }

/* Key figures: label on top, value, explanation underneath */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px 28px;
  margin: 18px 0 14px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
}
.stat { min-width: 0; }
.stat .k { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.stat b { display: block; margin-top: 3px; font-size: 1.55rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; overflow-wrap: anywhere; }
.stat small { display: block; margin-top: 3px; font-size: 0.8rem; color: var(--muted); }

.swatch {
  display: inline-block;
  width: 0.75em;
  height: 0.75em;
  border: 1px solid var(--ink);
  border-radius: 2px;
  vertical-align: -0.05em;
}
.swatch.w { background: #fff; }
.swatch.b { background: var(--ink); }

/* Cross table */
.cross { font-size: 0.82rem; }
.cross td, .cross th { text-align: center; padding-left: 6px; padding-right: 6px; white-space: nowrap; }
.cross td.team, .cross th.team { text-align: left; position: sticky; left: 0; background: inherit; }
.cross th.team { background: var(--navy); }
.cross .self { color: var(--faint); }
.pos { color: var(--win); font-weight: 600; }
.neg { color: var(--loss); }
.win, table.data a.win { color: var(--win); font-weight: 650; }
.loss, table.data a.loss { color: var(--loss); }
.draw { color: var(--ink); }
.pending { color: var(--faint); }

/* Result right after the teams */
.res { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 4px; background: var(--brand-wash); color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.res.pending { background: transparent; color: var(--faint); font-weight: 500; padding: 1px 4px; }
.res.win { background: #dff3e4; color: var(--win); }
.res.loss { background: #fbe1df; color: var(--loss); }
.winner { font-weight: 650; }
.round-block { margin-top: 24px; }
.round-block .block-title { margin: 0 0 8px; }

/* Side column (no panel box) */
.two { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.panel h3 { margin: 0 0 8px; font-size: 1.1rem; }
.panel ol, .panel ul { margin: 0; padding-left: 18px; }
.panel li { margin: 6px 0; }
.panel li a { color: var(--ink); }
.panel li a:hover { color: var(--accent); }
.two > .panel { border-top: 2px solid var(--ink); padding-top: 12px; }

@media (max-width: 860px) {
  .top { position: static; flex-wrap: wrap; gap: 4px 16px; padding: 8px 14px; }
  .nav { order: 2; margin-left: -10px; }
  .topnav { padding: 10px 8px; }
  .hero h1 { font-size: 1.9rem; }
  .search { order: 3; max-width: none; flex-basis: 100%; margin-bottom: 6px; }
  .two { gap: 24px; }
  h1 { font-size: 1.6rem; }
  main { padding: 20px 14px 48px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* Header band (detail pages and hero) */
.page-head, .hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  border-radius: 12px;
  padding: 22px 28px 24px;
  margin-bottom: 8px;
}
.page-head h1, .hero h1 { color: #fff; }
.page-head .crumb, .page-head .crumb a { color: rgba(255, 255, 255, 0.68); }
.page-head .crumb a:hover { color: #fff; text-decoration: underline; }
.page-head .lede, .page-head .meta { color: rgba(255, 255, 255, 0.78); margin: 6px 0 0; }
.page-head .meta .pill { color: inherit; }
.page-head a:not(.chip):not(.topnav) { color: #ffd2ad; }
.chip {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 6px;
  color: #fff;
  font-size: 0.88rem;
  white-space: nowrap;
}
.chip:hover { background: rgba(255, 255, 255, 0.12); color: #fff; text-decoration: none; }
.page-head .toolbar { margin: 18px 0 0; }
.page-head select { border-color: transparent; color: var(--ink); }
.page-head .stats {
  margin: 22px 0 0;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  border-radius: 10px;
}
.page-head .stat .k { color: rgba(255, 255, 255, 0.8); }
.page-head .stat b { color: #fff; }
.page-head .stat small { color: rgba(255, 255, 255, 0.72); }
.page-head .stat.pos b { color: #8fe3ae; }
.page-head .stat.neg b { color: #ffaaa4; }
.hero { padding: 36px 32px 32px; margin-top: 4px; }
.hero .lede { color: rgba(255, 255, 255, 0.8); }
.hero .quick a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.16);
}
.hero .quick a:hover { background: var(--brand); color: #fff; text-decoration: none; }
.hero-search input { background: #fff; border: 0; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12); color: var(--ink); caret-color: var(--ink); }
.hero-search input:focus { outline: 3px solid var(--brand); outline-offset: 0; }

/* Data-driven colour */
.pct { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; }
.pn { min-width: 3.7em; text-align: right; font-variant-numeric: tabular-nums; }
.pbar { display: inline-block; width: 44px; height: 6px; border-radius: 3px; background: #dbe3ee; overflow: hidden; }
.pbar i { display: block; height: 100%; border-radius: 3px; }
.pbar.up i { background: #2f9e5b; }
.pbar.down i { background: #d9534f; }

/* Rating chart */

/* Headings: one level per role */
h3.block-title { border-left: 0; padding-left: 0; font-size: 1rem; margin: 22px 0 8px; color: var(--navy); }
.view-title { margin: 20px 0 8px; }
.view-title + .toolbar { margin-top: 8px; }
.view-title + .note { margin-top: 0; }

/* Class strip: every class one click away */
.classnav { display: flex; gap: 12px; align-items: baseline; margin: 18px 0 0; }
.cn-label { flex: none; width: 44px; font-size: 0.78rem; font-weight: 500; color: var(--muted); }
.cn-list { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.cn-group { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.cn { min-width: 36px; padding: 5px 9px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--bg); color: var(--ink); font-size: 0.88rem; text-align: center; white-space: nowrap; }
.cn:hover { border-color: var(--navy-2); background: var(--wash); text-decoration: none; color: var(--ink); }
.cn.on { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.classnav + .seg { margin-top: 16px; }

/* Season stepper: ‹ 2025-2026 › */
.stepper { display: flex; align-items: stretch; gap: 4px; }
.stepper select { min-width: 150px; }
.step { display: inline-flex; align-items: center; justify-content: center; width: 36px; border-radius: 6px; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 1.3rem; line-height: 1; }
.step:hover { background: rgba(255, 255, 255, 0.3); color: #fff; text-decoration: none; }
.step.off { opacity: 0.3; }
.class-title { margin: 24px 0 0; font-size: 1.25rem; color: var(--ink); }
.class-title + .seg { margin-top: 8px; }
.class-title + #division-body { margin-top: 12px; }
@media (max-width: 860px) {
  .classnav { display: block; }
  .cn-label { display: block; width: auto; margin-bottom: 6px; }
  .cn-list { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .cn-group { flex-wrap: nowrap; }
}

/* Totals row */
table.data tfoot td { padding: 10px 12px; background: var(--brand-wash); border-top: 2px solid var(--navy); font-weight: 650; }

/* Chart panel: one place for all charts, tabs choose the chart */
.chart-panel { position: relative; margin: 28px 0 8px; background: #fff; border: 1px solid var(--line-strong); border-radius: 12px; padding: 16px 20px 12px; }
.chart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.chart-head .block-title { margin: 0; }
.chart-tabs { margin: 0; border-bottom: 0; }
.chart-view svg { display: block; width: 100%; height: auto; margin-top: 8px; }
.chart-view .note { margin: 4px 0 4px; }
.chart-view[hidden] { display: none; }
.chart .cg, .chart-view .cg { stroke: #e6ebf2; stroke-width: 1; }
.chart-view .cg.v { stroke: #f0f3f8; }
.chart-view .ct { fill: var(--muted); font-size: 15px; }
.chart-view .ca { fill: var(--brand); opacity: 0.12; }
.chart-view .cl { fill: none; stroke: var(--brand); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.chart-view .cd { fill: #fff; stroke: var(--navy); stroke-width: 2.5; pointer-events: none; }
.chart-view .cm { fill: var(--ink); font-size: 14px; font-weight: 700; pointer-events: none; }
.chart-view .hit { fill: transparent; }
.chart-view circle.hit:hover { fill: rgba(232, 89, 12, 0.18); }
.chart-view rect.hit:hover { fill: rgba(31, 53, 87, 0.07); }
.chart-view .bar { fill: var(--navy); opacity: 0.88; }
.chart-view .bar.up { fill: #2f8f55; }
.chart-view .bar.down { fill: #c0392b; }
.ctip { position: absolute; z-index: 5; pointer-events: none; background: var(--navy); color: #fff; font-size: 0.86rem; font-weight: 600; padding: 6px 10px; border-radius: 6px; white-space: nowrap; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2); }
.ctip[hidden] { display: none; }

/* Round-by-round result cells */
table.data td.rr { text-align: center; font-variant-numeric: tabular-nums; min-width: 34px; padding-left: 6px; padding-right: 6px; }
table.data td.rr.w { color: var(--win); font-weight: 700; }
table.data td.rr.l { color: var(--loss); }
table.data td.rr.d { color: var(--ink); }
table.data td.rr.none { color: var(--faint); }
table.data td.rr small { display: block; font-size: 0.68rem; color: var(--muted); font-weight: 500; }
table.data th.rr { text-align: center; min-width: 34px; padding-left: 6px; padding-right: 6px; }

/* Team page: in-page navigation, section heads, light stepper */
.jump { position: static; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 16px 0 0; padding: 8px 10px; background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; }
.anchor { scroll-margin-top: 72px; }
.section-head.stacked { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 10px; }
button.step { border: 0; padding: 0; cursor: pointer; font: inherit; }
.jump-label { margin: 0 8px 0 4px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.jump a { padding: 6px 12px; border-radius: 6px; color: var(--ink); font-size: 0.92rem; font-weight: 500; }
.jump a:hover { background: var(--brand-wash); color: var(--ink); text-decoration: none; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; }
.section-head .block-title { margin-bottom: 0; }
.kind-tabs { margin: 0; }
.kind-tabs .count { display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 10px; background: var(--wash); color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.kind-table[hidden] { display: none; }
.stepper.light .step { background: var(--navy); color: #fff; }
.stepper.light .step:hover { background: var(--navy-2); }
.stepper.light .step.off { opacity: 0.25; pointer-events: none; }
.pager { margin: 12px 0 4px; }
.pager span { display: inline-flex; align-items: center; padding: 0 6px; font-variant-numeric: tabular-nums; color: var(--muted); }

/* Chart extras */
.chart-view .cband { fill: #f3f6fb; }
.chart-view .gapband { fill: #eceff4; stroke: #d9dee7; stroke-dasharray: 4 4; }
.chart-view .cgap { fill: #8a93a3; font-size: 13px; font-style: italic; pointer-events: none; }
.chart-view .cl.dash { stroke-dasharray: 7 7; opacity: 0.55; stroke-width: 2.5; }
.chart-view .cd.multi { stroke: var(--brand); stroke-width: 4.5; }
.chart-view .cm.s { font-size: 13px; font-weight: 600; fill: var(--navy); }
@media (max-width: 860px) { .jump { position: static; } }

/* Team card: groups, badge, secondary lines */
.stat-groups { display: grid; gap: 10px; margin-top: 22px; }
.stat-group { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 8px 24px; padding: 14px 22px; border-radius: 10px; background: rgba(255, 255, 255, 0.1); }
.group-title { margin: 0 0 4px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); }
.stat-group .group-title { margin: 0; }
.stat-group .group-title span { display: block; margin: 3px 0 0; }
.group-title span { margin-left: 6px; letter-spacing: 0; text-transform: none; font-weight: 500; color: rgba(255, 255, 255, 0.65); }
.page-head .stat-group .stats { margin: 0; padding: 0; border: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 24px; background: none; }
.club-box { margin-top: 10px; padding: 14px 22px 16px; border-radius: 10px; background: rgba(255, 255, 255, 0.1); }
.club-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.page-head .club-links a { padding: 8px 16px; border-radius: 8px; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 1rem; font-weight: 550; }
.page-head .club-links a:hover { background: rgba(255, 255, 255, 0.26); text-decoration: none; }
.meta-k { display: inline-block; margin-right: 6px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 16px; }
.badge { display: inline-block; padding: 6px 14px; border-radius: 20px; font-size: 0.92rem; font-weight: 600; }
.badge.gold { background: #f5c451; color: #3d2b00; }
.badge.gold b { margin-left: 4px; }
.badge-years { font-size: 0.9rem; color: rgba(255, 255, 255, 0.85); }
@media (max-width: 860px) { .stat-group { grid-template-columns: 1fr; } .page-head .stat-group .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.btn { padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; color: var(--ink); font: inherit; font-size: 0.9rem; font-weight: 500; cursor: pointer; }
.btn:hover { border-color: var(--navy-2); background: var(--wash); }
.btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.view-tabs { margin: 18px 0 14px; }

#stat-tabs, #live-tabs {
  display: grid;
  width: fit-content;
  max-width: 100%;
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  justify-content: start;
  justify-items: start;
  gap: 0 4px;
  overflow: visible;
  border-bottom: 0;
  margin: 18px 0 20px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}
#stat-tabs button, #live-tabs button {
  width: max-content;
  margin: 0;
  padding: 7px 16px;
  border: 0;
  border-radius: 6px;
  text-align: left;
  background: none;
}
#stat-tabs button:hover, #live-tabs button:hover { background: var(--wash); color: var(--ink); }
#stat-tabs button[aria-pressed="true"], #live-tabs button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
  font-weight: 650;
  border-bottom-color: transparent;
}

/* Bars: games (light) with points (dark) inside */
.chart-view .bar.games { fill: #d5deee; opacity: 1; }
.chart-view .bar.pts { fill: var(--navy); opacity: 1; }
.chart-view .clegend .ct { font-size: 13px; fill: var(--muted); text-anchor: start; }

/* Player page: bigger key figures, full-width tables */
.page-head .stat-group .stats .stat b { font-size: 1.75rem; }
.page-head .stat-group .stats .stat b a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.4); }
.page-head .stat-group .stats .stat b a:hover { text-decoration: none; border-bottom-color: #fff; }
.stats.detail { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 32px; padding: 26px 30px; }
.stats.detail .stat .k { font-size: 0.76rem; }
.stats.detail .stat b { font-size: 2.1rem; margin-top: 6px; }
.stats.detail .stat small { font-size: 0.88rem; margin-top: 5px; }
@media (max-width: 860px) { .stats.detail { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.page-head .stat-group .stats .stat b { overflow-wrap: normal; }
.page-head .stat-group.solo .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 860px) { .page-head .stat-group.solo .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.page-head .stat-group.solo { grid-template-columns: 1fr; padding: 18px 24px; }
.page-head .stat-group.solo .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 1.1fr); }
.page-head .stat-group.career .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
[id^="career-"][id$="-teams"]:not(:empty) { display: block; margin-bottom: 28px; }
.roundup h4 { margin: 18px 0 8px; font-size: 0.95rem; font-weight: 650; }
.game-q { width: min(360px, 100%); padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; background: #fff; }
#p-games-competitie, [id^="p-games-"] { margin-top: 28px; margin-bottom: 8px; }
.game-count { margin: 4px 0 8px; min-height: 1.2em; }
.stats.detail .stat b { font-size: 1.9rem; white-space: nowrap; }
.team-groups .stat-group.solo .stats { grid-template-columns: 1.25fr 1.6fr 1.35fr 0.8fr 1fr; gap: 12px 16px; }
.team-groups .stat-group.solo .stats .stat b { font-size: 1.5rem; }
@media (max-width: 860px) { .team-groups .stat-group.solo .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.classnav.picker { display: flex; align-items: center; gap: 12px; margin: 16px 0 4px; }
.classnav.picker select { min-width: 220px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; background: #fff; }
#next-round { margin-top: 28px; }
#next-round:empty { display: none; }
.page-head h1 a { color: #fff; }
.page-head h1 a:hover { text-decoration: underline; }
.page-head h1 a:not(.chip):not(.topnav) { color: #fff; }

.match-groups .stat-group.solo .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.page-head h1 .res-big { display: inline-block; margin-left: 10px; padding: 2px 14px; border-radius: 10px; background: rgba(255,255,255,0.16); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.match-table td.emph { white-space: nowrap; }
table.match-table thead tr.side-names th { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; text-transform: none; color: #fff; text-align: center; padding: 12px 14px 2px; }
table.match-table thead tr.side-names th.home,
table.match-table thead tr.side-names + tr th.home,
table.match-table td.to-center { text-align: right; }
table.match-table thead tr.side-names th.away { text-align: left; }
table.match-table thead tr.side-names th.versus { padding-left: 10px; padding-right: 10px; }
table.match-table thead tr.side-names th a { color: #fff; }
table.match-table thead tr.side-names th a:hover { text-decoration: underline; }
table.match-table thead tr.side-names + tr th { padding-top: 4px; padding-bottom: 8px; font-size: 0.68rem; }

#home-board h3.block-title { margin-top: 22px; }
#home-board .note { max-width: 70ch; }

#home-board .stepper button.step { border: 0; padding: 0; cursor: pointer; }
