:root { color-scheme: light; --ink: #17211d; --muted: #5f6e66; --paper: #fbfcf8; --panel: #fff; --line: #d9e0da; --green: #136f4a; --green-soft: #e6f4ec; --green-deep: #0b5136; --red: #a22f2f; --gold: #9b6500; --scoring-allowed: #a04e20; --chart-actual: #0b5136; --chart-expected: #9061c5; --hypo: #5b3f96; --hypo-soft: #f1ecfb; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.5 system-ui, sans-serif; }
a { color: var(--green); }
.site-header, .site-footer { padding: 1rem max(1.25rem, calc((100vw - 72rem)/2)); background: var(--ink); color: white; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { color: white; font-weight: 800; text-decoration: none; }
.site-nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .2rem; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: block; padding: .35rem .55rem; border-radius: .3rem; color: #cbd4ce; font-size: .875rem; font-weight: 700; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: white; background: rgb(255 255 255 / 12%); }
.site-nav a[aria-current="page"] { color: var(--ink); background: white; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 4rem; color: #cbd4ce; font-size: .875rem; }
.github-link { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: .35rem; color: white; }
.github-link:hover { color: white; background: rgb(255 255 255 / 12%); }
.github-link:focus-visible { outline: 3px solid white; outline-offset: 2px; }
.github-link svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.page { width: min(72rem, calc(100% - 2.5rem)); margin: 2.5rem auto; }
.title-row { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.title-actions { display: flex; align-items: center; gap: 1rem; }
.season-context { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem; }
.season-selector { display: inline-flex; align-items: center; gap: .3rem; }
.season-selector select { padding: .15rem 1.5rem .15rem .35rem; border: 1px solid var(--line); border-radius: .3rem; color: var(--green); background: white; font: inherit; font-weight: 800; letter-spacing: normal; }
.season-context noscript { font-size: .8rem; letter-spacing: normal; text-transform: none; }
.seasons-title { max-width: 44rem; margin-bottom: 2rem; }
.seasons-title .note { margin-bottom: 0; }
.history-title { width: auto; max-width: 50rem; min-width: 0; margin-bottom: 1.5rem; }
.history-title .note, .history-context p:last-child { margin-bottom: 0; }
.history-context, .history-selected, .history-empty { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--panel); }
.history-context h2, .history-selected h2 { margin: 0 0 .35rem; font-size: 1.25rem; }
.history-context p, .history-context li { margin: .5rem 0 0; overflow-wrap: anywhere; }
.history-exclusions-label { margin-bottom: .15rem !important; }.history-exclusions { margin: .15rem 0 0; padding-left: 1.25rem; color: var(--muted); }.history-exclusions li + li { margin-top: .2rem; }
.history-selector { display: flex; align-items: end; flex-wrap: wrap; gap: .65rem; margin: 1.25rem 0; }
.history-selector label { display: grid; gap: .25rem; color: var(--muted); font-size: .875rem; font-weight: 700; }
.history-selector select { min-height: 44px; padding: .35rem .55rem; border: 1px solid var(--line); border-radius: .35rem; background: white; font: inherit; }
.history-metric-choice { box-sizing: border-box; display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; width: fit-content; max-width: 100%; margin: 1.25rem 0 .5rem; padding: .35rem .5rem .45rem; border: 1px solid var(--line); border-radius: .45rem; background: var(--panel); }
.history-metric-choice legend { padding: 0 .25rem; color: var(--muted); font-size: .875rem; font-weight: 700; }
.history-metric-link { display: inline-flex; min-height: 44px; align-items: center; padding: .35rem .7rem; border-radius: .3rem; font-weight: 800; text-decoration: none; }
.history-metric-link:hover, .history-metric-link:focus-visible { background: var(--green-soft); }
.history-metric-link-selected { color: var(--ink); background: var(--green-soft); }
.history-selected { margin-bottom: 1.5rem; }
.history-selected dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem 1rem; margin: .75rem 0 0; }
.history-selected dt { color: var(--muted); font-size: .8rem; font-weight: 700; }.history-selected dd { margin: .1rem 0 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.history-chart-section { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; margin: 1.5rem 0 0; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--panel); }
.history-chart-section h2 { margin: 0 0 .35rem; font-size: 1.25rem; }.history-chart-status, .history-chart-empty { margin: .4rem 0 .75rem; color: var(--muted); }
.history-chart-wrap { width: 100%; overflow-x: auto; }.history-chart { display: block; width: 100%; min-width: 600px; height: auto; overflow: visible; }
.history-chart-selected-label { margin: .6rem 0 0 3rem; color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }.history-chart-active-status { margin: .35rem 0 0 3rem; color: var(--muted); font-size: .875rem; }
.history-chart-scroll-hint { display: none; margin: .35rem 0 0; color: var(--muted); font-size: .8rem; }
.history-chart-exclusions { margin-top: .75rem; padding-top: .65rem; border-top: 1px solid var(--line); }
.history-chart-grid line { stroke: var(--line); stroke-width: 1; }.history-chart-axes line { stroke: var(--muted); stroke-width: 1.25; }.history-chart-axes text { fill: var(--muted); font: 12px system-ui, sans-serif; }.history-chart-axis-title { fill: var(--ink) !important; font-weight: 700 !important; }
.history-chart-segment { stroke: var(--ink); stroke-width: 2; fill: none; }.history-chart-segment-unverified { stroke: var(--muted); stroke-width: 2; stroke-dasharray: 7 5; fill: none; }
.history-chart-mark { fill: var(--ink); stroke: var(--ink); stroke-width: 1.5; }.history-chart-mark-unverified { fill: var(--paper); }.history-chart-mark-active { fill: var(--ink); }.history-chart-mark-active-unverified { fill: var(--paper); stroke-dasharray: 3 2; }.history-chart-mark-selected { stroke: var(--gold); stroke-width: 3; }.history-chart-hit { fill: transparent; stroke: transparent; }
.history-chart-point-link { outline: none; }.history-chart-point-link:focus .history-chart-hit { stroke: var(--gold); stroke-width: 3; stroke-dasharray: 5 3; }.history-chart-key { display: flex; flex-wrap: wrap; gap: .45rem 1.1rem; margin: .5rem 0 0 3rem; color: var(--muted); font-size: .875rem; }.history-chart-key span { display: inline-flex; align-items: center; gap: .4rem; }.history-chart-key i { display: inline-block; flex: 0 0 auto; }.history-chart-key-circle { width: .75rem; height: .75rem; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--ink); }.history-chart-key-circle-hollow { background: var(--paper); }.history-chart-key-diamond { width: .7rem; height: .7rem; border: 1.5px solid var(--ink); background: var(--ink); transform: rotate(45deg); }.history-chart-key-series { width: .9rem; height: .9rem; border: 3px solid #3c6ea8; border-radius: 50%; background: var(--paper); }
.history-data { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; margin-top: 2rem; overflow: hidden; }.history-data .table-scroll { max-width: 100%; min-width: 0; }.history-data summary { cursor: pointer; color: var(--green); font-weight: 800; }.history-data[open] summary { margin-bottom: .6rem; }
.history-table { min-width: 98rem; font-size: .875rem; }.history-table th:first-child, .history-table td:first-child { text-align: left; }.history-table th:nth-child(n + 2), .history-table td:nth-child(n + 2):nth-child(-n + 8) { text-align: right; }.history-table td:nth-child(n + 9) { white-space: normal; text-align: left; }.history-row-selected { background: #fffaf0; box-shadow: inset 3px 0 var(--gold); }
.history-distribution { box-sizing: border-box; width: 100%; max-width: 58rem; min-width: 0; margin-top: 1.5rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--panel); }.history-distribution h2 { margin: 0 0 .35rem; font-size: 1.25rem; }.history-distribution p { margin: .35rem 0 .75rem; overflow-wrap: anywhere; }
.history-distribution-legend { display: flex; flex-wrap: wrap; gap: .45rem 1rem; margin-bottom: .85rem; color: var(--muted); font-size: .875rem; }.history-distribution-legend span { display: inline-flex; align-items: center; gap: .35rem; }.history-distribution-swatch { display: inline-block; width: .8rem; height: .8rem; border: 1px solid var(--ink); border-radius: .12rem; }.history-distribution-swatch-0, .history-distribution-segment-0 { background: #dbe8e0; }.history-distribution-swatch-1, .history-distribution-segment-1 { background: #a9d0b8; }.history-distribution-swatch-2, .history-distribution-segment-2 { background: #72b38e; }.history-distribution-swatch-3, .history-distribution-segment-3 { background: #3d9165; }.history-distribution-swatch-4, .history-distribution-segment-4 { background: #146f48; }
.history-distribution-bars { display: grid; gap: .65rem; }.history-distribution-row { display: grid; grid-template-columns: 4rem minmax(10rem, 1fr) 6rem; align-items: center; gap: .65rem; min-width: 0; }.history-distribution-row > a { font-weight: 800; }.history-distribution-bar { display: block; width: 100%; min-width: 0; height: 1.6rem; overflow: hidden; border: 1px solid var(--ink); border-radius: .2rem; background: var(--paper); }.history-distribution-segment { stroke: var(--paper); stroke-width: .6; vector-effect: non-scaling-stroke; }.history-distribution-segment-0 { fill: #dbe8e0; }.history-distribution-segment-1 { fill: #a9d0b8; }.history-distribution-segment-2 { fill: #72b38e; }.history-distribution-segment-3 { fill: #3d9165; }.history-distribution-segment-4 { fill: #146f48; }.history-distribution-total { color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.history-distribution-scale { display: grid; grid-template-columns: 4rem minmax(10rem, 1fr) 6rem; gap: .65rem; margin-bottom: .25rem; color: var(--muted); font-size: .75rem; }.history-distribution-scale > div { grid-column: 2; position: relative; display: flex; justify-content: space-between; }.history-distribution-scale span { width: 0; display: flex; justify-content: center; }.history-distribution-bar-wrap { position: relative; min-width: 0; }.history-distribution-bar-wrap::after { position: absolute; top: 0; right: 0; left: 0; height: 1.6rem; pointer-events: none; content: ""; background: repeating-linear-gradient(to right, transparent 0, transparent calc(25% - .5px), rgb(23 33 29 / 22%) 25%, transparent calc(25% + .5px)); }.history-distribution-row-selected { padding: .3rem .4rem; margin: -.3rem -.4rem; box-shadow: inset 3px 0 var(--gold); border-radius: .3rem; background: #fffaf0; }.history-distribution-detail { margin-top: .2rem; font-size: .8rem; }.history-distribution-detail summary { display: inline-block; color: var(--green); cursor: pointer; font-weight: 700; }.history-distribution-detail summary:focus-visible, .history-completeness summary:focus-visible, .history-context summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--green) 45%, white); outline-offset: 2px; }.history-distribution-detail ul { display: flex; flex-wrap: wrap; gap: .15rem .8rem; margin: .25rem 0 0; padding-left: 1rem; color: var(--muted); }
.history-distribution-table { min-width: 42rem; margin-top: 1rem; font-size: .875rem; }.history-distribution-table th:first-child, .history-distribution-table td:first-child { text-align: left; }.history-distribution-table th:not(:first-child), .history-distribution-table td:not(:first-child) { text-align: right; white-space: nowrap; }
.history-completeness { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--line); }.history-completeness summary, .history-context summary { color: var(--green); cursor: pointer; font-weight: 800; }.history-completeness[open] summary, .history-context[open] summary { margin-bottom: .6rem; }.history-completeness dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem 1rem; margin: 0; }.history-completeness p { margin-bottom: 0; }
.history-context { box-sizing: border-box; width: 100%; max-width: 100%; margin-top: 2rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--panel); }.history-context h2 { margin: 0 0 .35rem; font-size: 1.25rem; }
.history-visible-exclusions { margin-top: 1.25rem; padding: .75rem 1rem; border-left: 4px solid var(--gold); background: #fffaf0; }.history-visible-exclusions .history-exclusions { margin-bottom: 0; }
/* History comparison and keyboard affordances. */
.history-chart-segment.history-chart-segment-secondary { stroke: #28649c; stroke-width: 2.5; }
.history-chart-segment-secondary.history-chart-segment-unverified { stroke-dasharray: 7 5; }
.history-chart-mark.history-chart-mark-secondary { stroke: #28649c; stroke-width: 3; r: 5; }
.history-chart-mark-secondary:not(.history-chart-mark-unverified):not(.history-chart-mark-active-unverified) { fill: #28649c; }
.history-chart-mark-secondary.history-chart-mark-unverified, .history-chart-mark-secondary.history-chart-mark-active-unverified { fill: var(--paper); }
.history-chart-mark-secondary.history-chart-mark-selected { stroke: var(--gold); stroke-width: 3; }
.history-chart-key-goals { width: .75rem; height: .75rem; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--paper); }
.history-chart-key-series { width: .6rem; height: .6rem; }
.history-chart-wrap:focus { outline: 3px solid var(--gold); outline-offset: 2px; }
.history-primary-metrics dd { font-size: 1.75rem; font-weight: 800; line-height: 1.3; }
.history-difference { margin: 1rem 0 .5rem; font-size: .875rem; }
.history-selected-status { margin: .5rem 0; color: var(--muted); }
.history-distribution-detail summary { min-height: 24px; padding: .2rem 0; }
.history-distribution-row > a { display: inline-flex; min-height: 32px; align-items: center; }
.history-chart-exclusions { margin-top: .75rem; padding: .5rem .75rem; border-left: 3px solid var(--gold); background: #fffaf0; }
.history-distribution-detail .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.season-archive { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.season-archive-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-width: 0; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--panel); }
.season-archive-card-current { border-color: var(--green); box-shadow: inset 4px 0 0 var(--green); }
.season-archive-card h2 { margin: 0; font-size: 1.6rem; }
.season-archive-card .eyebrow { margin-bottom: .1rem; }
.season-archive-card nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem .75rem; margin: 0; padding: 0; list-style: none; }
.season-archive-card nav a { font-weight: 700; white-space: nowrap; }
.season-archive-stages { display: grid; gap: .85rem; min-width: 0; flex: 1; }
.season-archive-stage { padding: .65rem .8rem; border: 1px solid var(--line); border-radius: .4rem; }
.season-archive-stage h3 { margin: 0; font-size: 1rem; }
.season-archive-stage .eyebrow { margin: .2rem 0 .35rem; }
.season-upcoming { max-width: 42rem; margin-top: 2rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--panel); }
.season-upcoming h2 { margin: 0 0 .35rem; }
.season-upcoming p { margin: 0; }
.forecast-title { margin-bottom: 1rem; }
.forecast-title-content { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.forecast-title-content .note { margin: .3rem 0 0; }
.button.scenario-copy { display: inline-grid; flex: 0 0 auto; white-space: nowrap; text-align: center; }
.scenario-copy > [data-copy-scenario-label], .scenario-copy::after { grid-area: 1 / 1; }
.scenario-copy::after { content: "Copy link"; visibility: hidden; }
h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.03em; }
h2 { margin-top: 3rem; }
.eyebrow { margin: 0 0 .3rem; color: var(--green); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.note, .choice-date { color: var(--muted); }
.button { display: inline-block; border: 0; border-radius: .35rem; padding: .7rem 1rem; color: white; background: var(--green); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.button-secondary { color: var(--green); border: 1px solid var(--green); background: white; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: .5rem; background: var(--panel); }
.standings-toolbar { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .65rem 1rem; margin: 0 0 .55rem; }
.standings-toolbar-group { display: flex; align-items: center; gap: .65rem; }
.standings-view-label { margin: 0; color: var(--muted); font-size: .875rem; font-weight: 700; }
.standings-toggle { display: inline-flex; padding: .2rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--panel); }
.standings-toggle-button { border: 0; border-radius: .3rem; padding: .35rem .6rem; color: var(--muted); background: transparent; font: inherit; font-size: .875rem; font-weight: 700; cursor: pointer; }
.standings-toggle-button[aria-pressed="true"] { color: white; background: var(--green); }
.standings-toggle-button:focus-visible { outline: 3px solid color-mix(in srgb, var(--green) 45%, white); outline-offset: 1px; }
[data-standings-value] { transition: opacity .12s ease, transform .12s ease; }
.standings-display.is-switching [data-standings-value] { opacity: .35; transform: translateY(1px); }
[data-standings-stat="goals"] [data-standings-stat-column="xg"], [data-standings-stat="xg"] [data-standings-stat-column="goals"] { display: none; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.standings { min-width: 47rem; table-layout: auto; font-size: .875rem; }
.standings :is(th, td):first-child { width: 4rem; }
.standings :is(th, td):nth-child(2) { width: 28%; }
.standings :is(th, td):last-child { width: 5.25rem; }
.standings :is(th, td):nth-child(n + 3):nth-child(-n + 6) { min-width: 2.5rem; }
.standings :is(th, td):nth-child(7), .standings :is(th, td):nth-child(9) { min-width: 5.25rem; }
.standings :is(th, td):nth-child(8), .standings :is(th, td):nth-child(10) { min-width: 3.75rem; }
.standings :is(th, td):nth-child(11) { min-width: 3.25rem; }
.standings th:nth-child(2) .standings-team-cell { display: inline-flex; align-items: center; gap: .2rem; max-width: 100%; min-width: 0; }
.standings th:nth-child(2) .team-name { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.standings th:nth-child(2) .team-name > span:last-child { overflow: hidden; text-overflow: ellipsis; }
caption { padding: .75rem; text-align: left; font-weight: 800; }
th, td { padding: .55rem .6rem; border-top: 1px solid var(--line); text-align: right; white-space: nowrap; }
th:nth-child(2) { text-align: left; }
.team-name { display: inline-flex; align-items: center; gap: .45rem; }
.team-logo { width: 1.5rem; height: 1.5rem; flex: 0 0 1.5rem; object-fit: contain; vertical-align: middle; }
.playoff-line td, .playoff-line th { border-bottom: 3px solid var(--green); }
.badge { padding: .15rem .35rem; border-radius: 1rem; color: var(--green); background: var(--green-soft); font-size: .7rem; }
.qualification-badge { font-weight: 800; }
.standings-status { display: inline-grid; flex: 0 0 auto; place-items: center; width: 1em; height: 1em; font-size: 1em; font-weight: 900; line-height: 1; }
.elimination-status { color: var(--red); }
.standings-status-key { display: inline-flex; align-items: center; gap: .2rem; margin: .55rem 0 0; color: var(--muted); font-size: .75rem; font-weight: 700; }
.warning { color: var(--gold); }
.fixtures { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: .5rem; background: var(--panel); }
.fixtures li { display: grid; grid-template-columns: minmax(10rem, 1.4fr) minmax(0, 1fr) 7rem minmax(0, 1fr) 6rem; align-items: center; gap: 1rem; padding: .8rem 1rem; border-top: 1px solid var(--line); }
.fixtures li[hidden], .fixture-group[hidden] { display: none !important; }
.fixture-view-toggle { display: inline-flex; gap: .2rem; margin-top: 1.5rem; padding: .2rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--panel); }
.fixture-view-button { border: 0; border-radius: .3rem; padding: .35rem .6rem; color: var(--muted); background: transparent; font: inherit; font-size: .875rem; font-weight: 700; cursor: pointer; }
.fixture-view-button[aria-pressed="true"] { color: white; background: var(--green); }
.fixture-view-button:focus-visible { outline: 3px solid color-mix(in srgb, var(--green) 45%, white); outline-offset: 1px; }
.fixture-group-status { display: inline-block; margin-left: .4rem; padding: .1rem .4rem; border-radius: 1rem; color: var(--green); background: var(--green-soft); vertical-align: middle; font-size: .7rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.fixtures li:first-child { border-top: 0; }.fixtures li > .team-name:nth-of-type(2) { text-align: right; }.fixture-result { display: grid; justify-items: center; line-height: 1.2; }.fixture-xg { margin-top: .2rem; color: var(--muted); font-size: .75rem; font-weight: 700; white-space: nowrap; }.scheduled { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem; color: var(--muted); font-size: .8rem; text-align: right; }.scheduled:empty { visibility: hidden; }.fixture-meta-tag, .bracket-meta-tag { display: inline-block; padding: .1rem .35rem; border-radius: 1rem; color: var(--muted); background: var(--paper); font-size: .7rem; font-weight: 800; line-height: 1.35; white-space: nowrap; }
.fixture-outlook-note { margin: .65rem 0 0; }
.fixture-outlook { display: grid; grid-column: 2 / 5; gap: .25rem; min-width: 0; padding-top: .1rem; }
.fixture-outlook-model { color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.fixture-outcome-labels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; color: var(--muted); font-size: .75rem; line-height: 1.2; }
.fixture-outcome-labels strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.fixture-outcome-home { text-align: left; }.fixture-outcome-draw { text-align: center; }.fixture-outcome-away { text-align: right; }
.fixture-outcome-bar { display: flex; overflow: hidden; height: .5rem; border-radius: 999px; background: var(--line); }
.fixture-outcome-segment { flex: var(--fixture-outcome-share) 1 0; min-width: 0; }.fixture-outcome-bar .fixture-outcome-home { background: var(--green); }.fixture-outcome-bar .fixture-outcome-draw { background: #aab4ae; }.fixture-outcome-bar .fixture-outcome-away { background: var(--green-deep); }
.data-warning { padding: .8rem 1rem; border-left: 4px solid var(--gold); background: #fff6dc; }
.clinching-opportunity + .clinching-opportunity { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.clinching-category { margin-top: 2rem; }
.clinching-status-group { margin-top: 1.25rem; padding: .7rem .9rem; border-left: 4px solid var(--green); border-radius: .4rem; background: var(--green-soft); }
.clinching-status-group h2 { margin: 0; font-size: 1.1rem; }
.clinching-status-group-eliminated { border-left-color: var(--red); background: #f8eeee; }
.clinching-status-list { display: flex; flex-wrap: wrap; gap: .1rem 1rem; margin: .35rem 0 0; padding: 0; list-style: none; }
.clinching-status-item { display: flex; align-items: center; gap: .4rem; min-width: 0; min-height: 2rem; padding: .15rem 0; }
.clinching-team-identity { display: inline-flex; align-items: center; min-width: 0; }
.clinching-team-identity .team-name { min-width: 0; font-size: .9rem; font-weight: 800; }
.clinching-team-identity .team-logo { width: 1.65rem; height: 1.65rem; flex-basis: 1.65rem; padding: .12rem; border: 1px solid var(--line); border-radius: .3rem; background: white; }
.clinching-status-badge { display: inline-flex; flex: 0 0 auto; align-items: center; max-width: 100%; padding: .3rem .55rem; border-radius: 999px; color: var(--green-deep); background: white; font-size: .75rem; font-weight: 800; line-height: 1.25; }
.clinching-status-badge-at-risk { color: #725000; background: #fff9e9; }
.clinching-opportunity { margin: 1rem 0 0; padding: 1rem 1.1rem; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: .55rem; background: var(--panel); }
.clinching-opportunity + .clinching-opportunity { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.clinching-opportunity-elimination { border-left-color: var(--red); }
.clinching-opportunity-heading { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .75rem; margin: 0; font-size: 1.15rem; }
.clinching-opportunity-heading .clinching-team-identity .team-logo { width: 2.4rem; height: 2.4rem; flex-basis: 2.4rem; }
.clinching-opportunity-heading .clinching-status-badge { font-size: .8rem; }
.clinching-opportunity-elimination .clinching-status-badge { color: #772020; }
.clinching-opportunity-elimination .clinching-status-badge-at-risk { color: #725000; }
.clinching-result-group { margin: 1rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--panel); }
.clinching-result-group h4 { margin: 0; color: var(--green); font-size: 1.05rem; }
.clinching-result-group > p { margin: .55rem 0 0; }
.clinching-summary { margin-top: .55rem; }
.clinching-summary-expression .clinching-combination { margin: .3rem 0; }
.clinching-summary-alternatives { margin: .45rem 0 0 .4rem; padding-left: .85rem; border-left: 2px solid var(--green-soft); }
.clinching-summary-alternatives > strong { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.clinching-summary-alternatives ul { margin: .25rem 0 0; padding: 0; list-style: none; }
.clinching-summary-alternatives li { display: grid; grid-template-columns: .7rem minmax(0, 1fr); gap: .35rem; }
.clinching-summary-alternatives li::before { grid-column: 1; padding-top: .3rem; content: "•"; }
.clinching-summary-alternatives li > .clinching-summary-expression { grid-column: 2; min-width: 0; }
.clinching-summary-alternatives li + li { margin-top: .25rem; }
.clinching-exact-paths { margin-top: .75rem; }
.clinching-exact-paths > summary { cursor: pointer; color: var(--green); font-weight: 700; font-size: .875rem; }
.clinching-exact-paths > summary:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.clinching-combination { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem; margin: .9rem 0; }
.clinching-condition { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .2rem; white-space: nowrap; }
.clinching-condition + .clinching-condition::before { margin-right: .2rem; color: var(--muted); content: "+"; font-weight: 800; }
.clinching-team-token { display: inline-flex; align-items: center; gap: .18rem; color: var(--green-deep); font-size: .85rem; font-weight: 800; letter-spacing: .03em; white-space: nowrap; }
.clinching-path-logo { display: block; width: 1.2rem; height: 1.2rem; object-fit: contain; }
.clinching-path-options { display: grid; gap: 1.25rem; margin: .9rem 0 0; padding: 0; list-style: none; }
.clinching-path-option { min-width: 0; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: .4rem; background: var(--paper); }
.clinching-path-option .clinching-combination { margin: 0; }
.clinching-path-option + .clinching-path-option { position: relative; }
.clinching-path-option + .clinching-path-option::before { position: absolute; top: -.9rem; left: .9rem; padding: 0 .3rem; color: var(--green); background: var(--panel); content: "OR"; font-size: .7rem; font-weight: 800; letter-spacing: .04em; line-height: 1; }
.clinching-more { margin: 1rem 0; }
.clinching-more > summary { cursor: pointer; color: var(--green); font-weight: 700; padding: .5rem 0; }
.clinching-more > summary:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.clinching-statement { margin: 1rem 0; }
.clinching-statement summary { cursor: pointer; font-size: 1.1rem; }
.clinching-statement summary::-webkit-details-marker { display: none; }
.clinching-statement summary::marker { content: ""; }
.clinching-statement summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--green) 45%, white); outline-offset: 3px; }
.clinching-disclosure { color: var(--green); font-weight: 800; white-space: nowrap; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: .2em; }
.clinching-disclosure::after { content: " ▾"; font-size: .8em; }
.clinching-statement[open] .clinching-disclosure::after { content: " ▴"; }
.clinching-fixture-list { margin-top: .75rem; padding: .8rem 1rem; border-left: 3px solid var(--green); background: var(--green-soft); }
.fixture-filter { display: flex; align-items: center; gap: .75rem; margin: 1.5rem 0 .25rem; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--panel); }
.fixture-filter label { color: var(--muted); font-size: .875rem; font-weight: 700; }
.fixture-filter select { min-width: 12rem; padding: .45rem .55rem; font: inherit; }
.fixture-filter-summary { margin-top: 0; }
.clinching-section-heading h2 { margin-bottom: .35rem; }
.clinching-section-heading .note { margin-top: 0; }
.clinching-team-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; margin-top: 1rem; }
.clinching-team-card { padding: 1rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--panel); }
.clinching-team-card h3 { margin: 0; font-size: 1.1rem; }
.clinching-paths { margin: .65rem 0 0; padding: 0; list-style: none; }
.clinching-paths li + li { border-top: 1px solid var(--line); }
.clinching-paths .clinching-statement { margin: 0; padding: .75rem 0; }
.clinching-paths .clinching-fixture-list { margin-top: .65rem; }
.forecast-intro { max-width: 52rem; margin: .3rem 0 0; color: var(--muted); }
.forecast-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .75rem 1rem; margin-top: 1.25rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--panel); }
.forecast-controls h2, .forecast-results h2, .forecast-comparison h2, .forecast-scenario h2, .forecast-builder h2 { margin-top: 0; }
.forecast-controls form { min-width: 0; }
.forecast-control-fields { display: grid; grid-template-columns: minmax(12rem, 25rem); gap: .75rem; }
.forecast-control-fields label { min-width: 0; }
.forecast-control-fields label > span, .forecast-comparison-control label > span, .forecast-add > label > span { display: block; margin-bottom: .25rem; color: var(--muted); font-size: .8rem; font-weight: 800; }
.forecast-control-fields select, .forecast-comparison-control select, .forecast-add select { width: 100%; min-width: 0; padding: .55rem; border: 1px solid var(--line); border-radius: .3rem; color: var(--ink); background: white; font: inherit; }
.forecast-comparison-control { max-width: 25rem; margin-top: .7rem; }
.forecast-comparison-control summary { cursor: pointer; color: var(--green); font-size: .875rem; font-weight: 800; }
.forecast-comparison-control[open] summary { margin-bottom: .5rem; }
.forecast-control-status { margin: .4rem 0 0; font-size: .8rem; }
.forecast-model-detail { margin: 0; }
.forecast-model-detail summary { cursor: pointer; color: var(--green); font-size: .875rem; font-weight: 800; white-space: nowrap; }
.forecast-model-detail p { max-width: 48rem; margin: .5rem 0 0; color: var(--muted); font-size: .875rem; }
.forecast-evaluation-link { grid-column: 1 / -1; margin: -.25rem 0 0; font-size: .875rem; }
.forecast-xg-coverage { grid-column: 1 / -1; margin: 0; font-size: .875rem; }
.forecast-meta { display: flex; flex-wrap: wrap; gap: 0; margin: .9rem 0 0; color: var(--muted); font-size: .825rem; }
.forecast-meta div { display: flex; align-items: baseline; gap: .35rem; padding: 0 .85rem; border-left: 1px solid var(--line); }.forecast-meta div:first-child { padding-left: 0; border-left: 0; }.forecast-meta dt { font-weight: 700; }.forecast-meta dd { margin: 0; color: var(--ink); font-weight: 800; }
.forecast-results, .forecast-comparison, .forecast-scenario, .forecast-builder { margin-top: 2.25rem; }
.forecast-cutline { margin: 0 0 .35rem; padding: .3rem .55rem; border-radius: .3rem; color: var(--green); background: var(--green-soft); font-size: .875rem; }
.forecast-table { min-width: 0; table-layout: auto; }
.forecast-scroll-hint { display: none; }
.forecast-table .forecast-rank { width: 3rem; color: var(--muted); text-align: center; }
.forecast-table thead th { white-space: normal; }
.forecast-table th:nth-child(2) { width: 26%; min-width: 10rem; }
.forecast-table th:nth-child(3) { min-width: 6rem; }
.forecast-table :is(th, td):nth-child(n+4) { min-width: calc(6ch + 1.2rem); }
.forecast-table td:nth-child(3), .forecast-table td:nth-child(4), .forecast-table td:nth-child(5) { width: 16%; }
.forecast-table th:nth-child(2) { text-align: left; }
.forecast-table-with-championship th:nth-child(2) { width: 22%; }
.forecast-table-with-championship td:nth-child(3), .forecast-table-with-championship td:nth-child(4), .forecast-table-with-championship td:nth-child(5) { width: 14%; }
.forecast-playoff-line th, .forecast-playoff-line td { border-bottom: 3px solid var(--green); }
.forecast-team { display: grid; gap: .3rem; min-width: 0; }
.forecast-team .team-name { max-width: 100%; overflow: hidden; }
.forecast-team .team-name > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.forecast-range { display: block; color: var(--muted); font-size: .8rem; }
.forecast-probability-track { display: block; width: 100%; height: .35rem; margin-top: .35rem; overflow: hidden; border-radius: 1rem; background: #e7ece8; }
.forecast-table .forecast-probability-track { width: clamp(6ch, 8vw, 7rem); margin-left: auto; }
.forecast-probability-track > span { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.forecast-distribution summary, .forecast-method summary { cursor: pointer; color: var(--green); font-size: .85rem; font-weight: 700; }
.forecast-distribution-range { margin: .4rem 0 .25rem; color: var(--muted); font-size: .75rem; font-weight: 700; }
.forecast-distribution-scale, .forecast-distribution ul li { display: grid; grid-template-columns: 1.2rem minmax(0, 1fr) 2.75rem; align-items: center; column-gap: .35rem; }
.forecast-distribution-scale { color: var(--muted); font-size: .6875rem; line-height: 1; }
.forecast-distribution-scale-labels { display: flex; grid-column: 2; justify-content: space-between; }
.forecast-distribution ul { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: .15rem 0 0; padding: 0; color: var(--muted); font-size: .75rem; line-height: 1; list-style: none; text-align: left; white-space: normal; }
.forecast-distribution ul li { min-height: 1.25rem; }
.forecast-position-rank { font-variant-numeric: tabular-nums; text-align: right; }
.forecast-position-track { display: block; width: 100%; height: .5rem; overflow: hidden; border-radius: 1rem; background: #e7ece8; }
.forecast-position-track > span { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.forecast-position-probability { font-variant-numeric: tabular-nums; font-weight: 500; text-align: right; }
.forecast-comparison { padding: 1rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--green-soft); }
.forecast-comparison .eyebrow { margin-bottom: .15rem; }
.forecast-comparison-direction { max-width: 50rem; margin: 0; color: var(--ink); }
.forecast-comparison .table-scroll { margin-top: 1rem; background: var(--panel); }
.forecast-comparison-table { min-width: 62rem; }
.forecast-comparison-with-championship { min-width: 69rem; table-layout: fixed; }
.forecast-comparison-with-championship th:last-child { white-space: normal; }
.forecast-comparison-with-championship .forecast-comparison-values { white-space: normal; }
.forecast-comparison-table th:first-child { width: 30%; text-align: left; }
.forecast-comparison-table td { vertical-align: top; white-space: normal; }
.forecast-comparison-values { display: block; margin-top: .15rem; color: var(--muted); font-size: .8rem; white-space: nowrap; }
.comparison-better { color: var(--green); font-weight: 800; }
.comparison-worse { color: #a33a28; font-weight: 800; }
.comparison-neutral { color: var(--muted); }
.forecast-assumptions { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: .5rem; background: var(--panel); }
.forecast-assumptions li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; border-top: 1px solid var(--line); }.forecast-assumptions li:first-child { border-top: 0; }
.forecast-add { display: grid; grid-template-columns: minmax(12rem, .7fr) minmax(16rem, 1.3fr); align-items: end; gap: .75rem; margin-top: .75rem; padding: 1rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--panel); }
.forecast-add > label { min-width: 0; }
.forecast-outcomes { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; border: 0; }
.forecast-outcomes legend { width: 100%; margin-bottom: .1rem; color: var(--muted); font-size: .875rem; font-weight: 700; }
.forecast-outcomes label { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: .3rem; background: white; font-size: .9rem; }
.forecast-outcomes input { accent-color: var(--green); }
.forecast-pending { margin-top: 1rem; }.forecast-pending h3 { margin-bottom: .25rem; }.forecast-pending p { margin-top: 0; }.forecast-pending .button { margin-top: 1rem; }
.forecast-method { margin-top: 3rem; padding: 1rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--panel); }.forecast-method[open] summary { margin-bottom: .75rem; }
.evaluation-intro { max-width: 52rem; margin: .3rem 0 0; color: var(--muted); font-size: 1.1rem; }
.evaluation-chart-panel { margin-top: 1.5rem; padding: 1rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--panel); }
.evaluation-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.evaluation-controls label > span { display: block; margin-bottom: .25rem; color: var(--muted); font-size: .8rem; font-weight: 800; }
.evaluation-controls select { width: 100%; padding: .55rem; border: 1px solid var(--line); border-radius: .3rem; color: var(--ink); background: white; font: inherit; }
.evaluation-chart-summary { margin: 1rem 0 .4rem; color: var(--muted); font-size: .9rem; }
.evaluation-chart-wrap { overflow-x: auto; }
.evaluation-chart { display: block; width: 100%; min-width: 38rem; height: auto; }
.evaluation-grid { stroke: var(--line); stroke-width: 1; }
.evaluation-axis { stroke: var(--muted); stroke-width: 1; }
.evaluation-axis-label { fill: var(--muted); font: 12px system-ui, sans-serif; }
.evaluation-axis-title { fill: var(--ink); font: 700 12px system-ui, sans-serif; }
.evaluation-baseline-line { stroke: var(--muted); stroke-width: 1.25; stroke-dasharray: 5 4; }
.evaluation-baseline-path { stroke-dasharray: 7 4; }
.evaluation-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: .35rem 0 0 3.3rem; font-size: .875rem; }
.evaluation-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.evaluation-legend i { width: 1rem; height: .25rem; border-radius: 1rem; }
.evaluation-explainer { max-width: 62rem; }
.evaluation-explainer h2 { margin-bottom: .5rem; }
.evaluation-explainer p { margin: .55rem 0; }
.evaluation-details { max-width: 62rem; margin-top: 2rem; padding: 1rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--panel); }
.evaluation-details summary { cursor: pointer; color: var(--green); font-weight: 800; }
.evaluation-details[open] summary { margin-bottom: .75rem; }
.evaluation-details p { max-width: 55rem; }
.error-card { max-width: 40rem; padding: 2rem; border: 1px solid var(--line); background: white; }
@media (prefers-reduced-motion: reduce) { [data-standings-value] { transition: none; } }
@media (max-width: 700px) { .site-header { align-items: start; flex-direction: column; gap: .75rem; }.site-footer { align-items: flex-start; }.site-nav ul { justify-content: flex-start; }.title-row, .forecast-title-content { align-items: start; flex-direction: column; }.season-archive { grid-template-columns: 1fr; }.season-archive-card { align-items: flex-start; flex-direction: column; }.season-archive-card nav ul { justify-content: flex-start; }.title-actions { align-items: stretch; width: 100%; }.title-actions .button { text-align: center; }.standings-toolbar { justify-content: space-between; }.standings-toolbar-group { justify-content: space-between; width: 100%; }.fixtures li { grid-template-columns: 1fr auto 1fr; }.fixtures time, .scheduled, .fixture-outlook { grid-column: 1/-1; }.fixtures .scheduled:empty { display: none; }.fixture-outlook { margin-top: .05rem; }.forecast-controls, .forecast-control-fields, .forecast-add, .evaluation-controls { grid-template-columns: 1fr; }.forecast-model-detail summary { white-space: normal; }.forecast-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem .75rem; }.forecast-meta div, .forecast-meta div:first-child { display: block; padding: 0; border: 0; }.forecast-outcomes { grid-column: auto; align-items: stretch; flex-direction: column; }.forecast-outcomes label { width: 100%; }.forecast-scroll-hint { display: block; margin: .65rem 0 .35rem; color: var(--muted); font-size: .8rem; font-weight: 700; }.forecast-table-scroll { overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }.forecast-table { min-width: 42rem; font-size: .875rem; }.forecast-table .forecast-rank { width: 2rem; }.forecast-table td:nth-child(3), .forecast-table td:nth-child(4), .forecast-table td:nth-child(5) { width: auto; }.forecast-table th:nth-child(2) { width: 38%; }.forecast-table th, .forecast-table td { padding: .5rem .35rem; }.forecast-table .forecast-range { display: none; }.forecast-team .team-name { white-space: normal; }.forecast-distribution summary { white-space: normal; }.forecast-distribution ul { grid-template-columns: 1fr; }.forecast-assumptions li { align-items: start; flex-direction: column; }.clinching-team-list { grid-template-columns: 1fr; }.evaluation-chart-panel { padding: .8rem; }.evaluation-legend { margin-left: 0; } }
@media (max-width: 700px) { .history-selected dl { grid-template-columns: 1fr 1fr; }.history-chart-section { padding: .8rem; }.history-chart-axes text { font-size: 16px; }.history-chart-gap-note { font-size: 16px !important; }.history-chart-axis-title { font-size: 16px !important; }.history-chart-label-optional { display: inline; }.history-chart-key, .history-chart-selected-label, .history-chart-active-status { margin-left: 0; }.history-chart-scroll-hint { display: block; }.history-distribution-scale { grid-template-columns: 3rem minmax(0, 1fr); }.history-distribution-row { grid-template-columns: 3rem minmax(0, 1fr); }.history-distribution-total { grid-column: 2; }.history-distribution-bar { height: 2rem; }.history-distribution-bar-wrap::after { height: 2rem; } }
@media (max-width: 700px) { .clinching-status-item { min-height: 2.3rem; }.clinching-opportunity { padding: .85rem; }.clinching-opportunity-heading { align-items: flex-start; flex-direction: column; gap: .4rem; }.clinching-opportunity-heading .clinching-status-badge { margin-left: 2.9rem; } }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.section-heading h2 { margin-bottom: .35rem; }
.schedule-summary { margin: 2rem 0 1rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--panel); }
.schedule-summary h2 { margin-top: 0; }
.schedule-callouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.schedule-callout { padding: 1rem; border: 1px solid var(--line); border-radius: .45rem; background: var(--paper); }
.schedule-callout h3 { margin: 0 0 .35rem; }
.schedule-callout p { margin: .35rem 0; }
.schedule-delta { color: var(--muted); }
.schedule-cell { position: relative; display: inline-block; min-width: 4.5rem; }
.schedule-cell summary, .comparison-disclosure summary, .team-schedule-detail summary { cursor: pointer; color: var(--green); font-weight: 700; }
.schedule-cell summary { list-style: none; }
.schedule-cell summary::-webkit-details-marker { display: none; }
.schedule-cell summary:focus-visible, .comparison-disclosure summary:focus-visible, .team-schedule-detail summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--green) 45%, white); outline-offset: 2px; }
.schedule-mini-track { position: relative; display: inline-block; width: 4.25rem; height: .9rem; vertical-align: middle; }
.schedule-mini-baseline { position: absolute; top: 0; left: 50%; height: .9rem; border-left: 1px dashed var(--gold); }
.schedule-mini-marker { position: absolute; top: .2rem; width: .5rem; height: .5rem; border: 2px solid currentColor; border-radius: 50%; background: currentColor; opacity: var(--schedule-opacity); transform: translateX(-50%) scale(var(--schedule-scale)); }
.schedule-marker-easier { color: var(--green); }
.schedule-marker-harder { color: var(--gold); border-radius: .15rem; }
.schedule-marker-average { color: var(--muted); }
.schedule-cell[open] .schedule-explanation { position: absolute; z-index: 5; top: calc(100% + .35rem); right: 0; width: min(18rem, calc(100vw - 2rem)); box-shadow: 0 .35rem 1rem rgb(23 33 29 / 16%); }
.standings tbody tr:nth-last-child(-n+2) .schedule-cell[open] .schedule-explanation { top: auto; bottom: calc(100% + .35rem); }
.schedule-explanation { padding: .55rem .75rem; border: 1px solid var(--line); border-radius: .35rem; background: var(--paper); color: var(--muted); font-size: .875rem; text-align: left; white-space: normal; }
.schedule-explanation p { margin: .15rem 0; }
.schedule-unavailable { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.schedule-plot { margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--panel); }
.schedule-axis { position: relative; display: flex; justify-content: space-between; margin: 0 0 .8rem 10rem; color: var(--muted); font-size: .8rem; }
.schedule-axis-baseline { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.schedule-plot-row { display: grid; grid-template-columns: 9rem minmax(12rem, 1fr) 12rem; align-items: center; gap: 1rem; padding: .65rem 0; border-top: 1px solid var(--line); }
.schedule-plot-team { min-width: 0; }
.schedule-track { position: relative; height: 1.5rem; border-top: 2px solid var(--line); }
.schedule-baseline { position: absolute; top: -.55rem; height: 2.5rem; border-left: 2px dashed var(--gold); }
.schedule-dot { position: absolute; top: -.55rem; width: 1rem; height: 1rem; border: 2px solid var(--green); border-radius: 50%; background: var(--green-soft); transform: translateX(-50%); }
.schedule-dot-raw { border-color: var(--hypo); background: var(--hypo-soft); }
.schedule-plot-value { display: flex; flex-direction: column; align-items: end; font-variant-numeric: tabular-nums; }
.schedule-plot-value span { color: var(--muted); font-size: .85rem; }
.comparison-disclosure { margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--panel); }
.schedule-details { display: grid; gap: .7rem; }
.team-schedule-detail { padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--panel); }
.team-schedule-detail summary { display: flex; justify-content: space-between; gap: 1rem; }
.team-schedule-detail summary > span:last-child { color: var(--muted); font-size: .9rem; font-weight: 400; text-align: right; }
.team-schedule-detail[open] summary { margin-bottom: .8rem; }
.fixture-detail { min-width: 35rem; }
.fixture-detail th, .fixture-detail td { text-align: right; }
.fixture-detail th:first-child { text-align: left; }
@media (max-width: 700px) { .section-heading { align-items: start; flex-direction: column; }.schedule-callouts { grid-template-columns: 1fr; }.schedule-axis { margin-left: 0; }.schedule-plot-row { grid-template-columns: 1fr; gap: .35rem; }.schedule-plot-value { align-items: start; }.team-schedule-detail summary { align-items: start; flex-direction: column; }.team-schedule-detail summary > span:last-child { text-align: left; } }
.bracket { display: grid; grid-auto-columns: minmax(14rem, 1fr); grid-auto-flow: column; gap: 1rem; overflow-x: auto; padding: .25rem; }
.bracket-round { min-width: 0; }
.bracket-round h2 { margin: 1rem 0 .65rem; font-size: 1.1rem; }
.bracket-round-slots { display: grid; gap: 1rem; }
.bracket-slot { position: relative; min-height: 8rem; padding: .75rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--panel); }
.bracket-slot::after { position: absolute; top: 50%; left: calc(100% + .5rem); width: .5rem; border-top: 1px solid var(--line); content: ""; }
.bracket-round:last-child .bracket-slot::after { display: none; }
.bracket-seeds, .bracket-kickoff, .bracket-facts, .bracket-advances { margin: 0 0 .35rem; color: var(--muted); font-size: .75rem; }
.bracket-match { display: grid; grid-template-columns: minmax(0, 1fr) 4.6rem minmax(0, 1fr); align-items: center; gap: .4rem; margin-top: .45rem; }
.bracket-match-team { min-width: 0; }.bracket-match-team:last-child { text-align: right; }.bracket-match-team .team-name { max-width: 100%; }.bracket-match-team .team-name > span:last-child { overflow: hidden; text-overflow: ellipsis; }.bracket-match-team:last-child .team-name { flex-direction: row-reverse; }.bracket-match .fixture-result { font-size: .95rem; }.bracket-match .fixture-xg { font-size: .68rem; }
.bracket-winner { margin: .5rem 0 0; color: var(--green); font-size: .8rem; font-weight: 800; }
.bracket-facts { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .45rem; }.bracket-meta-tag { color: var(--green-deep); background: var(--green-soft); }
.bracket-advances { margin-top: .7rem; color: var(--green); font-weight: 700; }
.bracket-diagnostics { color: var(--muted); }
@media (max-width: 700px) { .bracket { display: block; overflow: visible; padding: 0; }.bracket-round + .bracket-round { margin-top: 1.5rem; }.bracket-slot::after { display: none; }.bracket-match { grid-template-columns: minmax(0, 1fr) 4.2rem minmax(0, 1fr); }.bracket-match-team .team-name { white-space: normal; } }

/* Explore reuses scoring summaries while keeping one analysis on screen. */
.explore header h1 { margin-bottom: .4rem; }
.explore-views { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 2rem; border-bottom: 1px solid var(--line); padding-bottom: .75rem; }
.explore-views a { padding: .6rem .85rem; border-radius: .3rem; font-weight: 700; text-decoration: none; }
.explore-views a[aria-current] { color: var(--ink); background: var(--green-soft); box-shadow: inset 0 -3px var(--green); }
.explore-subviews { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: -1rem 0 1.5rem; }
.explore-subviews a { padding: .4rem 0; color: var(--muted); text-decoration: none; }
.explore-subviews a[aria-current] { color: var(--green-deep); font-weight: 700; text-decoration: underline; text-underline-offset: .4rem; }
.explore-table-scroll-hint { display: none; margin: .35rem 0 .5rem; color: var(--muted); font-size: .8rem; font-weight: 700; }
.explore-team-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.explore-team-controls label { display: flex; align-items: center; gap: .5rem; max-width: 100%; }
.explore-team-controls select { min-width: 0; max-width: 100%; }
.explore-actual-key { color: var(--chart-actual); }
.explore-expected-key { color: var(--chart-expected); }
:is(.explore-team-table, .explore-team-history-table, .explore-distribution-table) caption { padding: .75rem; text-align: left; font-size: .85rem; color: var(--muted); }
.explore-distribution-table { min-width: 48rem; font-size: .875rem; }
.explore-team-history-table-wrap { margin-top: 1.5rem; }
.explore-team-table { font-size: .78rem; }
.explore-table.explore-team-table :is(th, td) { padding: .5rem .18rem; }
.explore-table.explore-team-table thead th { font-size: .74rem; }
.explore-table.explore-team-table tbody th { max-width: 9rem; font-size: .8rem; white-space: normal; }
.explore-team-table .team-name { gap: .25rem; white-space: normal; }
.explore-team-table .team-logo { width: 1.1rem; height: 1.1rem; flex-basis: 1.1rem; }
.explore-table.explore-team-table thead a { padding: .3rem 0; }
.explore-table.explore-team-table thead a::after { display: none; }
.explore-table.explore-team-table [aria-sort="ascending"] a::after, .explore-table.explore-team-table [aria-sort="descending"] a::after { display: inline-block; }
:is(.explore-team-table, .explore-team-history-table) thead th[scope="colgroup"] { text-align: center; border-left: 1px solid var(--line); }
.explore-team-table thead tr:nth-child(2) th { text-align: right; }
.explore-team-table tbody :is(th, td):nth-child(3n) { border-left: 1px solid var(--line); }
.explore-team-labels { position: absolute; inset: 0 auto 0 0; width: 190px; pointer-events: none; }
.explore-team-labels > .team-name { position: absolute; left: 0; right: 12px; transform: translateY(-50%); font-size: 12px; line-height: 1.25; white-space: normal; }
.explore-team-labels .team-logo { width: 26px; height: 26px; }
.explore-data-warning { padding: .7rem .9rem; border-left: 3px solid var(--gold); background: #fffaf0; }
.explore [hidden] { display: none !important; }
.explore-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.explore-heading > :is(h2, form) { min-width: 0; max-width: 100%; }
.explore h2 { font-size: 1.3rem; margin: 0 0 .8rem; }
.explore select { font: inherit; padding: .5rem; border: 1px solid var(--line); border-radius: .3rem; background: var(--panel); }
.explore-legend { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: .75rem 0; font-size: .9rem; }
.explore-legend [data-series="goals"] { color: var(--chart-actual); }
.explore-legend [data-series="xg"] { color: var(--chart-expected); }
.explore-gap-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.explore-gap-swatch { display: inline-block; width: .8rem; height: .8rem; border-radius: .12rem; }
.explore-gap-positive { background: var(--chart-actual); }
.explore-gap-negative { background: var(--chart-expected); }
.explore-scatter-parity { display: inline-block; width: 1rem; border-top: 2px dashed var(--muted); }
.explore-chart-wrap { position: relative; max-width: 58rem; height: 390px; margin-top: 1.25rem; }
.explore-team-scatter-wrap { width: min(100%, 1200px, max(38rem, calc(100vh - 4.5rem))); max-width: 1200px; height: auto; isolation: isolate; }
.page:has([data-panel="teams"]:not([hidden]) [data-team-quadrant-plot]:not([hidden])) { width: min(1200px, calc(100% - 2.5rem)); }
.page:has([data-panel="teams"]:not([hidden]) [data-team-scatter-plot]:not([hidden])) { width: min(1200px, calc(100% - 2.5rem)); }
.explore-chart-wrap.explore-team-quadrant-wrap { width: min(100%, 1200px, max(38rem, calc(100vh - 2rem))); max-width: 1200px; height: auto; }
.explore-team-scatter-chart-area { position: relative; width: 100%; aspect-ratio: 1; }
.explore-team-scatter-wrap canvas { position: absolute; inset: 0; z-index: 1; }
.explore-team-quadrant-wrap canvas { position: absolute; inset: 0; }
.explore-in-chart-legend { position: relative; justify-content: center; gap: .35rem .65rem; margin: .25rem 0 .5rem; padding: .2rem .45rem; border: 1px solid var(--line); border-radius: .35rem; background: var(--panel); font-size: .8rem; line-height: 1.25; }
.explore-in-chart-legend span { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.explore-team-scatter-legend { gap: .3rem .55rem; font-size: .74rem; }
.explore-team-scatter-legend .explore-gap-swatch { border-radius: 50%; }
.explore-team-quadrant-legend { position: absolute; z-index: 3; top: .35rem; left: 50%; width: max-content; max-width: calc(100% - .5rem); margin: 0; transform: translateX(-50%); pointer-events: none; }
.explore-quadrant-line-key { display: inline-block; width: 1rem; border-top: 2px solid var(--muted); }
.explore-scatter-logo-layer { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.explore-scatter-logo { position: absolute; width: 22px; height: 22px; box-sizing: border-box; padding: 2px; object-fit: contain; border: 1px solid var(--line); border-radius: .25rem; background: var(--panel); pointer-events: none; }
.explore-scatter-logo-toggle { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .9rem; }
.explore-scatter-logo-toggle input { width: 1rem; height: 1rem; margin: 0; accent-color: var(--green); }
.explore-scatter-selection { max-width: 38rem; margin-top: 1rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--panel); }
.explore-scatter-selection-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.explore-scatter-selection-heading h3 { margin: 0; font-size: 1rem; }
.explore-scatter-selection-heading .button { padding: .4rem .65rem; font-size: .875rem; }
.explore-scatter-guide-values { margin: .6rem 0 0; color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.explore-scatter-selection-teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .75rem; margin-top: .65rem; }
.explore-scatter-selection-team { min-width: 0; padding: .65rem .75rem; border-radius: .35rem; background: var(--paper); font-variant-numeric: tabular-nums; }
.explore-scatter-selection-team h4 { margin: 0 0 .3rem; font-size: .95rem; }
.explore-scatter-selection-team p { margin: .12rem 0; font-size: .875rem; }
.explore-chart-wrap canvas { display: block; }
.explore-keyboard-hint { display: none; color: var(--muted); font-size: .85rem; }
.explore-chart-wrap:has(canvas:focus-visible) + .explore-keyboard-hint { display: block; }
.explore button { font: inherit; cursor: pointer; }
.explore button:focus-visible, .explore a:focus-visible, .explore canvas:focus-visible, .explore .table-scroll:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.explore-bin-legend { flex-wrap: wrap; gap: .6rem 1.25rem; margin: 1rem 0; }
.explore-bin-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.explore-bin-legend i { width: .8rem; height: .8rem; border-radius: .15rem; }
.explore-table { --line: #dfe1e3; width: 100%; font-variant-numeric: tabular-nums; border-collapse: separate; border-spacing: 0; }
.explore-table td, .explore-table th { text-align: right; white-space: nowrap; padding: .9rem 1.1rem; }
.explore-table thead th { color: var(--muted); font-size: .85rem; background: var(--green-soft); border-bottom: 2px solid var(--line); }
.explore-table th:first-child { text-align: left; }
.explore-table tbody th { font-size: 1.05rem; font-weight: 750; border-left: 3px solid var(--line); }
.explore-table tbody tr { background: #fff; }
.explore-table tbody tr:nth-child(even) { background: #fafafa; }
.explore-table tbody tr:hover { background: #eceeef; }
.explore-table button, .explore-table thead a { border: 0; background: none; color: inherit; font-weight: 700; padding: .5rem 0; text-decoration: none; display: inline-block; }
.explore-table thead :is(button, a)::after { content: '↓'; display: inline-block; width: 1em; margin-left: .25em; visibility: hidden; }
.explore-table [aria-sort="descending"] :is(button, a)::after { visibility: visible; }
.explore-table [aria-sort="ascending"] :is(button, a)::after { content: '↑'; visibility: visible; }
.explore-rate { position: relative; min-width: 9rem; }
.explore-rate::before { content: ''; position: absolute; bottom: .45rem; left: 1.1rem; width: calc((100% - 2.2rem) * var(--rate-width, 0)); height: 4px; border-radius: 2px; background: #86ada0; }
.explore-rate-xg::before { background: #a99bc2; }
.explore-rate span { position: relative; }
.explore-gap span { display: inline-block; min-width: 4rem; padding: .15rem .5rem; border-radius: .25rem; }
.explore-gap[data-direction="positive"] span { color: var(--green-deep); background: var(--green-soft); }
.explore-gap[data-direction="negative"] span { color: var(--hypo); background: var(--hypo-soft); }
@media(max-width:700px) {
 .explore-table-scroll-hint { display: block; }
 .explore-team-labels { width: 148px; }
 .explore-team-table tbody th { max-width: 10rem; white-space: normal; }
 .explore-chart-wrap { height: 320px; }
 .explore-team-scatter-wrap { width: min(100%, calc(100vw - 3.5rem)); height: auto; }
 .explore-team-scatter-legend { gap: .2rem .35rem; font-size: .68rem; }
 .explore-table td, .explore-table th { padding: .8rem .7rem; }
 .explore-table thead th:first-child { position: sticky; left: 0; z-index: 2; }
 :is(.explore-team-table, .explore-team-history-table) thead tr:nth-child(2) th:first-child { position: static; }
 .explore-table tbody th { position: sticky; left: 0; z-index: 1; background: inherit; }
 .explore-rate::before { left: .7rem; width: calc((100% - 1.4rem) * var(--rate-width, 0)); }
}

.explore-context-bar { display: inline-block; width: .65rem; height: 1rem; background: #a6bab1; border: 1px solid var(--muted); margin-right: .3rem; vertical-align: middle; }
.explore-context-heading { margin: 1.5rem 0 0; }
.explore-context-details { margin: 1.25rem 0; }
.explore-context-details summary { cursor: pointer; font-weight: 700; }
.explore-context-series h4 { margin-bottom: .5rem; }
.explore-context-series h5 { font-size: 1rem; margin-bottom: .5rem; }
.explore-context-series dl { display: grid; grid-template-columns: minmax(6rem, auto) 1fr; gap: .5rem 1rem; }
.explore-context-series dd { margin: 0; }
.explore-context-series ul { padding-left: 1.1rem; margin-top: .3rem; }

@media (max-width: 700px) {
  .forecast-table { min-width: 0; }
  .forecast-table :is(th, td):nth-child(n+4) { min-width: calc(6ch + .7rem); }
}

.explore-season-scored-key { color: var(--chart-actual); }
.explore-season-allowed-key { color: var(--scoring-allowed); }
.explore-season-raw-key { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); }
.explore-season-raw-key::before { content: ""; width: 1.4rem; border-top: 2px dotted currentColor; }
.explore-season-balance-wrap { height: 260px; }
@media (max-width: 600px) { .explore-season-balance-wrap { height: 240px; } }

.explore-rankings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.2rem 0; }
.explore-rank-card { min-width: 0; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--panel); }
.explore-rank-card h4 { margin: 0 0 .75rem; font-size: .95rem; }
.explore-rank-number { margin: 0; font-size: 1.6rem; font-weight: 750; color: var(--green-deep); }
.explore-rank-number span { font-size: .9rem; font-weight: 400; color: var(--muted); }
.explore-rank-value { margin: .4rem 0 1.2rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.explore-rank-track { position: relative; height: .4rem; border-radius: 1rem; background: var(--line); }
.explore-rank-track i { position: absolute; top: 50%; width: .8rem; height: .8rem; border: 2px solid var(--panel); border-radius: 50%; background: var(--green-deep); transform: translate(-50%, -50%); }
.explore-rank-endpoints { display: flex; justify-content: space-between; margin-top: .5rem; color: var(--muted); font-size: .75rem; }
@media (max-width: 700px) { .explore-rankings { grid-template-columns: 1fr; gap: .65rem; } .explore-rank-card { padding: .85rem 1rem; } .explore-rank-card h4 { margin-bottom: .4rem; } .explore-rank-number { font-size: 1.35rem; } .explore-rank-value { margin: .3rem 0 .9rem; } }
