/* Record page (D27): the season table, then charts on the shared tokens (tokens.css, app.css). */
.season-table td:first-child { white-space: nowrap; }
.season-table tfoot td { border-block-start: 1px solid var(--line-strong); font-weight: 600; }
.charts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); gap: var(--s4); }
.chart-title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); text-transform: uppercase;
  letter-spacing: 0.04em; margin-block-end: var(--s3); }
.chart-container { position: relative; inline-size: 100%; block-size: 300px; }
.chart-tall { block-size: calc(var(--bars, 10) * 26px + 48px); }
/* the team chart scrolls inside a box the height of its neighbor, so the two cards line up */
.chart-scroll { max-block-size: 300px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.chart-scroll:focus-visible { outline: 2px solid var(--accent, currentColor); outline-offset: 2px; }   /* one readable row per team */
.chart-note { margin-block: var(--s3); color: var(--muted); font-size: var(--text-sm); max-inline-size: 75ch; }
.chart-card-wide { grid-column: 1 / -1; }
.chart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); }
.range-toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); overflow: hidden; }
.range-btn { background: transparent; color: var(--muted); border: 0; padding: var(--s2) var(--s4); font: inherit;
  font-size: var(--text-sm); cursor: pointer; min-block-size: 40px; }
.range-btn + .range-btn { border-inline-start: 1px solid var(--line-strong); }
.range-btn[aria-pressed="true"] { background: var(--surface-2); color: var(--ice); font-weight: 600; }
.range-btn:focus-visible { outline: 2px solid var(--accent-text); outline-offset: -2px; }
.range-btn[hidden] { display: none; }
.chart-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: var(--s4); }
.chart-pair .chart-container { block-size: 340px; }
.chart-lede { margin-block-start: 0; }
.chart-data .table-scroll { max-block-size: 360px; overflow-y: auto; }
