/* Soft off-white surfaces with confident green, blue and red section accents. */
:root {
  --ink: #242424;
  --paper: #f8f5ef;
  --surface: #fcfaf6;
  --surface-muted: #f8f5ef;
  --surface-control: #fefcf8;
  --surface-hover: #f3efe7;
  --line: #dedede;
  --muted: #626262;
  --shell-accent: #5c5c5c;
  --pos: #3e7055;
  --neg: #984f5b;
  --card-shadow: 0 2px 6px #00000004, 0 8px 24px #00000005;
}
body {
  --active-color: #256647;
  --active-tint: #e3f1e9;
  --active-edge: #a4c8b3;
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}
body:has(#premier:not([hidden])) {--active-color: #1e4c80; --active-tint: #e2edf9; --active-edge: #a9c5e7}
body:has(#predictor:not([hidden])) {--active-color: #a03f52; --active-tint: #f8e5ea; --active-edge: #d4a4af}
header {background: var(--surface); border-top: 4px solid var(--active-color); border-bottom-color: var(--active-edge); box-shadow: 0 2px 10px #00000004}
/* Ninety Index: compact charcoal ninety lettering with a spaced INDEX signature. */
.brand {gap: 0; flex-shrink: 0; min-height: 56px; letter-spacing: 0; line-height: 1; color: var(--ink)}
.brand .brand-logo {display: block; flex: 0 0 auto; width: 108px; height: auto; fill: none; stroke: none; color: var(--active-color)}
.brand:focus-visible {outline: 3px solid var(--active-color); outline-offset: 6px; border-radius: 8px}
h1 {font-size: clamp(2rem, 4.1vw, 3.5rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.12; overflow-wrap: break-word}
h2, .section-heading h2, .view-intro h2 {font-weight: 600}
.main-tabs {background: var(--active-tint); border-color: var(--active-edge); border-radius: 12px}
.main-tabs a {border-radius: 8px}
.main-tabs a:hover:not(.active) {background: var(--surface)}
.main-tabs a.active {background: #303030; box-shadow: 0 2px 5px #00000010}
.main-tabs a[data-page="global"].active {background: #256647; box-shadow: 0 2px 5px #00000010}
.main-tabs a[data-page="premier"].active {background: #1e4c80; box-shadow: 0 2px 5px #00000010}
.main-tabs a[data-page="predictor"].active {background: #a03f52; box-shadow: 0 2px 5px #00000010}
.share {background: var(--surface); border-color: var(--active-edge); color: var(--active-color); border-radius: 8px; font-size: .875rem; font-weight: 600; min-height: 44px}
.share:hover {background: var(--active-tint)}
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible {outline-color: var(--shell-accent)}

/* Three consistent accents: green Global Ratings, blue Leagues, red Predictor. */
.page {
  --section-color: #5c5c5c;
  --section-tint: #f3f3f3;
  --section-edge: #dedede;
  --section-wash: #fafafa;
}
#global {--section-color: #256647; --section-tint: #e3f1e9; --section-edge: #a4c8b3; --section-wash: #f1f8f4}
#premier {--section-color: #1e4c80; --section-tint: #e2edf9; --section-edge: #a9c5e7; --section-wash: #f0f5fd}
#premier .intro {--section-color: #1e4c80}
#predictor {
  --section-color: #a03f52; --section-tint: #f8e5ea; --section-edge: #d4a4af; --section-wash: #fdf5f7;
}
.page .intro .eyebrow, .page .section-heading .eyebrow {color: var(--section-color)}
.snapshot {padding: 14px 18px; border: 1px solid var(--section-edge); border-radius: 10px; background: var(--section-wash); box-shadow: inset 3px 0 var(--section-color)}
.snapshot>span {color: var(--section-color); font-weight: 600}
.snapshot strong {font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; margin: 5px 0 0; font-variant-numeric: tabular-nums}
.feature-strip {background: #dcece1; border-color: var(--section-edge); border-left: 4px solid var(--section-color); border-radius: 12px; box-shadow: var(--card-shadow)}
.feature-dark {background: transparent; color: var(--ink); border-left: 0}
.feature-dark .eyebrow {color: #256647}
.feature-dark p {color: var(--muted)}
.feature-dark strong {font-weight: 500}
.feature-dark strong>span {float: none; display: inline-block; margin-left: 14px; color: #256647; font-weight: 600}
.result-card .club-badge, .feature-dark .club-badge {box-sizing: border-box; padding: 0; background: transparent; border-radius: 0}

/* The same section colour carries through navigation, frames and selected controls. */
.league-tabs {border-bottom-color: var(--section-edge)}
.league-tabs a {border-radius: 8px; background: var(--surface); border-color: var(--section-edge); color: #505050}
.league-tabs a:hover {background: var(--section-wash); border-color: var(--section-color)}
.league-tabs a.active {background: var(--section-tint); border-color: var(--section-color); color: #1e4c80; box-shadow: none}
.pl-tabs {background: var(--section-tint); border-color: var(--section-edge); border-radius: 12px}
.pl-tabs button {border-radius: 8px; background: transparent; box-shadow: none; color: #545454}
.pl-tabs button.active {color: #fff; background: var(--section-color); border-color: var(--section-color); box-shadow: 0 2px 4px #00000010}
.controls {padding: 16px; background: var(--surface); border: 1px solid var(--section-edge); border-radius: 12px; box-shadow: inset 3px 0 var(--section-color)}
.controls label, .match-inputs label {color: var(--section-color); font-size: .75rem; font-weight: 600; letter-spacing: .01em}
select, input[type=search] {background: var(--surface-control); border-radius: 8px; min-height: 48px; border-color: #d7d7d7; font-size: 1rem; font-weight: 400}
select:hover, input[type=search]:hover {border-color: #999}
select:focus-visible, input[type=search]:focus-visible {outline: 3px solid var(--shell-accent); outline-offset: 2px}
.page select, .page input[type=search] {border-color: var(--section-edge)}
.page select:hover, .page input[type=search]:hover {border-color: var(--section-color)}
.page select:focus-visible, .page input[type=search]:focus-visible {outline-color: var(--section-color)}
.view-intro h2, .section-heading h2 {color: var(--section-color)}
.view-intro p {font-size: .9375rem; line-height: 1.7; max-width: 85ch}

/* Soft section-colour headers and leading metrics give tables a clear identity. */
.table-wrap {background: var(--surface); border-color: var(--section-edge); border-top: 4px solid var(--section-color); border-radius: 12px; box-shadow: var(--card-shadow)}
/* A little section colour helps scan rows and distinguish related metrics. */
#global-table {
  --table-stripe: #f1f5ef;
  --table-primary: #eaf3ec; --table-primary-even: #e4eee6;
  --table-hover: #eaf2e9; --table-primary-hover: #dcebdd;
  --table-primary-heading: #dcece1; --table-sorted-heading: #d7eadf;
  --table-attack-heading: #e9f1eb; --table-defence-heading: #f0f4ee;
}
#pl-table {
  --table-stripe: #f0f4f8;
  --table-primary: #eaf1fa; --table-primary-even: #e2ecf7;
  --table-hover: #e9f0f8; --table-primary-hover: #dbe8f6;
  --table-primary-heading: #dce9f8; --table-sorted-heading: #d8e7f8;
  --table-attack-heading: #e8eff8; --table-defence-heading: #eff3f8;
}
th {background: var(--section-tint); color: #575757; font-weight: 600}
th small {color: var(--muted); font-weight: 400}
.sort-header:hover, th[aria-sort] .sort-header {background: var(--section-tint); color: var(--section-color)}
th[aria-sort] .sort-header {box-shadow: inset 0 -2px var(--section-color)}
th[aria-sort] .sort-arrow {color: var(--section-color)}
.table-wrap th:has([data-sort-key="overall"], [data-sort-key="score_10"], [data-sort-key="expected_points"], [data-sort-key="overall_gd"]) {background: var(--table-primary-heading, var(--section-tint))}
.table-wrap th:has([data-sort-key="attack"], [data-sort-key="attack_score_10"], [data-sort-key="attack_gf"], [data-sort-key="npxg_for"]) {background: var(--table-attack-heading, var(--section-tint))}
.table-wrap th:has([data-sort-key="defence"], [data-sort-key="defence_score_10"], [data-sort-key="defence_ga"], [data-sort-key="npxg_against"]) {background: var(--table-defence-heading, var(--section-tint))}
.table-wrap th[aria-sort] .sort-header {background: var(--table-sorted-heading, var(--section-tint))}
.table-wrap tbody tr {--row-surface: var(--surface); --score-surface: var(--table-primary, var(--section-wash)); background: var(--row-surface)}
.table-wrap tbody tr:nth-child(even) {--row-surface: var(--table-stripe, var(--surface-muted)); --score-surface: var(--table-primary-even, var(--section-wash)); background: var(--row-surface)}
.table-wrap tbody tr:hover, .table-wrap tbody tr:focus-within {--row-surface: var(--table-hover, var(--surface-hover)); --score-surface: var(--table-primary-hover, var(--section-wash))}
.table-wrap tbody tr:hover td, .table-wrap tbody tr:focus-within td {background: var(--row-surface)}
.team-name {font-weight: 600}
.team-name:hover {color: var(--section-color)}
.rank {color: var(--muted)}
.big-num {font-weight: 500}
#global-table tbody .global-rating, #pl-table tbody .goal-centre,
#premier[data-rating-view="ratings"] #pl-table tbody td:nth-child(3),
#premier:has(.pl-tabs [data-view="performance"].active) #pl-table tbody td:nth-child(3),
#premier:has(.pl-tabs [data-view="projections"].active) #pl-table tbody td:nth-child(3) {background: var(--score-surface)}
#global-table .global-rating .big-num,
#premier[data-rating-view="ratings"] #pl-table td:nth-child(3) .big-num,
#premier:has(.pl-tabs [data-view="performance"].active) #pl-table td:nth-child(3) .big-num,
#premier:has(.pl-tabs [data-view="projections"].active) #pl-table td:nth-child(3) .big-num {color: var(--section-color); font-weight: 600}
.gd-pill, .gd-pill.negative {background: var(--surface-muted); border: 1px solid #e4e4e4}
.gd-pill {color: var(--pos)}
.gd-pill.negative {color: var(--neg)}
.rank-change.rank-up {color: var(--pos)}
.rank-change.rank-down {color: var(--neg)}
.secondary {border-color: var(--section-edge); background: var(--section-tint); color: var(--section-color); border-radius: 8px; font-weight: 600; min-height: 40px}
.secondary:hover {background: var(--section-wash); border-color: var(--section-color)}
.score-guide {background: var(--surface); border: 1px solid var(--section-edge); border-radius: 10px; box-shadow: inset 3px 0 var(--section-color)}
.score-guide summary {color: var(--section-color); font-weight: 600}
.score-guide[open] {box-shadow: inset 3px 0 var(--section-color), var(--card-shadow)}
.league-grid {background: var(--surface); border-radius: 12px; border: 1px solid var(--section-edge); border-top: 3px solid var(--section-color); box-shadow: var(--card-shadow)}
.league-row .track {background: #eaf0ec; border-radius: 5px}
.league-row .track i {background: #3e8b63; border-radius: 5px}
.league-row .value {color: #256647; font-weight: 600}

/* Muted components support the stronger overall / season-score bars. */
#global-table .strength-rating-meter {--meter-fill: #3e8b63; --meter-dot: #245d42}
#global-table .strength-rating-track {background: #eaf0ec}
#global-table .strength-rating-track b {background: #8a9f92}
#pl-table .strength-rating-meter {--meter-fill: #407cbf; --meter-dot: #285d98}
#pl-table .strength-rating-track {background: #e9eef4}
#pl-table .strength-rating-track b {background: #8d9eaf}
#pl-table .metric-attack .strength-rating-meter {--meter-fill: #9fbcde; --meter-dot: #759cc8}
#pl-table .metric-defence .strength-rating-meter {--meter-fill: #c0d2e8; --meter-dot: #96b4d7}
#pl-table .season-score-meter {--meter-fill: #407cbf; --meter-dot: #285d98}
#pl-table .season-score-track {background: #e9eef4}
#pl-table .season-score-track b {background: #8d9eaf}
#pl-table .metric-attack .season-score-meter {--meter-fill: #9fbcde; --meter-dot: #759cc8}
#pl-table .metric-defence .season-score-meter {--meter-fill: #c0d2e8; --meter-dot: #96b4d7}
.goal-attack .seg-bar {--accent: #79a2cf}
.goal-defence .seg-bar {--accent: #a6c0df}
.seg-bar {background: repeating-linear-gradient(90deg, #ecf0f5 0 9px, transparent 9px 12px)}
.projection-meter {background: #e9eef4}
.projection-meter i {background: #407cbf}
.index-meter:after {background: #a3a3a3}

/* Fixtures use the league palette; scores and status labels stay neutral. */
.round-control {height: 48px; border-radius: 8px; border-color: var(--section-edge)}
.round-control button {height: 46px; width: 44px; flex-shrink: 0; color: var(--section-color); background: var(--section-tint)}
.round-control select {min-height: 46px}
.round-control button:hover:not(:disabled) {background: var(--section-wash)}
.fixture-card {background: var(--surface); border: 1px solid var(--section-edge); border-top: 3px solid var(--section-color); border-radius: 12px; box-shadow: var(--card-shadow)}
.fixture-meta {align-items: center}
.fixture-meta>span:last-child {padding: 3px 8px; border-radius: 6px; background: var(--surface-muted); color: #5a5a5a; font-weight: 500; white-space: nowrap}
.fixture-teams .club {font-weight: 500}
.score {background: #f0f5fd; border: 1px solid #dae5f2; border-radius: 8px; color: #1e4c80; font-weight: 600}
.fixture-result {background: var(--surface-muted); padding: 10px 12px; border: 1px solid #e7e7e7; border-radius: 8px}
.outcome-result {background: var(--surface-muted); color: #454545}
.prob-track {border-radius: 5px}
.fixture-card .prob-track i:first-child {background: #5285bf}
.fixture-card .prob-track i:nth-child(2) {background: #d8d8d8}
.fixture-card .prob-track i:last-child {background: #a5c1e0}

/* Prediction results use soft off-white cards, with restrained red emphasis. */
.match-inputs {background: var(--surface); border: 1px solid var(--section-edge); border-top: 3px solid var(--section-color); border-radius: 12px; box-shadow: var(--card-shadow)}
.match-inputs .eyebrow {color: var(--section-color)}
.swap {color: #626262}
.match-inputs fieldset {gap: 12px; flex-wrap: wrap}
.match-inputs fieldset label {font-weight: 400}
.match-inputs fieldset input {accent-color: #a03f52}
.primary {background: #a03f52; color: #fff; border-radius: 8px; font-weight: 600; box-shadow: none}
.primary:hover {background: #853447}
.result-card {background: var(--surface); color: var(--ink); border: 1px solid var(--section-edge); border-top: 4px solid var(--section-color); border-radius: 12px; box-shadow: var(--card-shadow)}
.result-card .eyebrow {color: var(--section-color)}
.prediction-teams .goals {color: #a03f52}
.prediction-teams small, .result-card .prob-labels, .result-card .result-note {color: var(--muted)}
.result-card .prob-labels strong {color: var(--ink)}
.result-card .prob-track i:first-child {background: #b05f72}
.result-card .prob-track i:nth-child(2) {background: #d8d8d8}
.result-card .prob-track i:last-child {background: #d9a3b0}
.result-card .result-note {line-height: 1.8}
.detail-grid article, .method-grid article {background: var(--surface)}
.detail-grid article {border: 1px solid var(--section-edge); border-top: 3px solid var(--section-edge); border-radius: 12px; box-shadow: var(--card-shadow)}
.detail-grid article .eyebrow {color: var(--section-color)}
.stat-row {border-bottom-color: #e8e8e8}
.stat-row strong {font-weight: 500}
dialog {border: 1px solid #d8d8d8; border-radius: 14px; background: var(--surface); box-shadow: 0 24px 72px #00000026}
dialog::backdrop {background: #20202070}
.close {color: var(--shell-accent); border-radius: 6px; min-width: 44px; min-height: 44px}
.dialog-club {font-weight: 600}
footer {background: var(--surface-muted); border-top: 2px solid var(--active-color); font-size: .6875rem; letter-spacing: .06em}
footer b {color: #969696}
.footer-brand {display: inline-flex; align-self: flex-start; align-items: center; min-height: 52px; color: var(--active-color); line-height: 1; text-decoration: none; border-radius: 6px}
.footer-logo {display: block; width: 96px; height: auto}
.footer-brand:focus-visible {outline: 2px solid var(--active-color); outline-offset: 4px}

/* A consistent reading scale, with clear priority for the primary metrics. */
.main-tabs a {font-size: .9375rem}
.lead {font-size: 1rem; line-height: 1.75}
.eyebrow {font-size: .6875rem; letter-spacing: .14em; color: var(--shell-accent)}
.snapshot>span {font-size: .6875rem; letter-spacing: .1em}
.snapshot small {font-size: .75rem}
h2, .view-intro h2 {font-size: 1.5rem; line-height: 1.3; letter-spacing: -.025em}
.section-heading h2 {font-size: 1.75rem; line-height: 1.25}
.section-heading {flex-wrap: wrap; gap: 12px 20px}
.feature-dark strong {font-size: 1.75rem; letter-spacing: -.02em}
.feature-dark strong>span {font-size: 2.125rem; letter-spacing: -.02em}
.feature p, .feature-dark p {font-size: .75rem}
.text-link, .small, .footnote, .rating-scale-note, .global-scale-note,
.table-caption, .table-footer, .result-card .result-note {font-size: .8125rem; line-height: 1.7}
.text-link, .footnote a {color: var(--section-color, var(--shell-accent))}
.table-caption {flex-wrap: wrap; gap: 5px 20px}
.table-footer>span {max-width: 85ch}
#global .table-footer {flex-direction: column; align-items: stretch; gap: 12px}
#global .table-footer .secondary {align-self: flex-end; margin-left: 0}
.secondary {font-size: .8125rem; min-height: 44px; flex-shrink: 0}
.score-guide {padding: 14px 16px}
.score-guide summary {font-size: .875rem}
.score-guide p, .method-grid p, .method-grid li, details p, dt, dd {font-size: .9375rem; line-height: 1.75}
.league-tabs a {font-size: .8125rem}
.pl-tabs button {font-size: .875rem; font-weight: 600; min-height: 50px}
.pl-tabs button:hover:not(.active) {background: var(--surface); border-color: #d7d7d7}

/* Aligned, evenly spaced digits make comparisons easier without enlarging bars. */
table {font-variant-numeric: lining-nums tabular-nums}
th {font-size: .75rem; line-height: 1.4}
th small {font-size: .6875rem; line-height: 1.45}
td {font-size: .9375rem; line-height: 1.5; padding: 17px 18px; border-bottom-color: #ededed; vertical-align: middle}
.rank {font-size: .8125rem}
.team-name {font-size: .9375rem; line-height: 1.45; min-height: 32px}
.club-text small {font-size: .6875rem; color: var(--muted)}
.big-num {display: inline-block; font-size: 1.5rem; line-height: 1.25; letter-spacing: -.015em; font-variant-numeric: lining-nums tabular-nums}
.table-wrap td:nth-child(n+3):not(.goal-centre) {text-align: right}
.table-wrap th:nth-child(n+3):not(.goal-attack):not(.goal-centre):not(.goal-defence) .sort-header {justify-content: flex-end; text-align: right}
.sort-header {min-height: 56px}
.sort-arrow {color: #737373; flex-shrink: 0}
.strength-rating-meter, .season-score-meter, .index-meter {margin-left: auto}
.strength-rating-labels, .season-score-labels {font-size: .625rem; line-height: 1.25; margin-top: 6px}
.range {font-size: .6875rem}
.gd-pill {font-size: .9375rem; font-weight: 600; letter-spacing: 0; min-width: 64px}
.goal-visual>.num {font-size: 1rem; font-weight: 500; min-width: 40px}
.goal-centre .gd-pill {font-size: 1.125rem; min-width: 74px}
.league-row {grid-template-columns: minmax(145px, 1.15fr) minmax(60px, 1fr) 52px; font-size: .875rem}
.league-row span small {font-size: .75rem; margin-top: 2px}
.league-row .value {font-size: 1.0625rem; letter-spacing: -.01em}

/* Match cards and profiles use the same reading scale as the tables. */
.fixture-meta {font-size: .75rem; flex-wrap: wrap; border-bottom-color: #ededed}
.fixture-teams .club {font-size: .9375rem; font-weight: 600}
.score {font-size: 1.5rem; letter-spacing: -.015em}
.score small {font-size: .875rem; color: var(--muted)}
.score-label, .prob-labels {font-size: .75rem; line-height: 1.45}
.prob-labels strong {font-size: 1.125rem; font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums}
.fixture-result {font-size: .8125rem; line-height: 1.7}
.outcome-result {font-size: .75rem}
.player-selects select {font-size: 1rem}
.match-inputs fieldset label {font-size: .875rem; line-height: 1.5}
legend {font-size: .75rem; font-weight: 600}
.primary {font-size: .9375rem; min-height: 48px}
.prediction-teams .name {font-size: 1.0625rem; line-height: 1.45; font-weight: 500}
.prediction-teams .goals {font-size: 3.25rem; font-weight: 500; letter-spacing: -.035em; font-variant-numeric: tabular-nums}
.prediction-teams small {font-size: .75rem}
.result-card .prob-labels strong {font-size: 1.625rem}
.stat-row {font-size: .875rem; line-height: 1.55; align-items: baseline}
.stat-row strong {font-size: 1rem; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums}
.dialog-club {font-size: 1.75rem; line-height: 1.3}
.dialog-index {letter-spacing: -.025em; font-variant-numeric: tabular-nums}
.dialog-index small {font-size: .8125rem}
.error, #toast {font-size: .875rem}
::selection {background: #dedede; color: #242424}

@media(max-width:800px) {
  .brand {min-height: 50px}
  .brand .brand-logo {width: 100px; height: auto}
  .main-tabs a {font-size: .875rem}
  .intro>div:first-child {min-width: 0}
  .league-tabs a {font-size: .75rem; min-height: 48px}
  .controls {padding: 14px}
  td {padding: 15px 14px}
  .league-row {grid-template-columns: minmax(135px, 1fr) minmax(55px, 1fr) 52px}
  #global-table .strength-rating-meter {width: 68px; max-width: 100%; margin-left: auto}
  #global-table .big-num {font-size: 1.5rem}
  #global-table td {padding-top: 15px; padding-bottom: 15px}
  #global-table .mobile-club-league {font-size: .6875rem; line-height: 1.5}
  #global-table .sort-header {padding-left: 8px; padding-right: 8px}
}
@media(max-width:550px) {
  h1 {font-size: clamp(2rem, 8.6vw, 2.5rem); margin-bottom: 16px}
  .section-heading h2 {font-size: 1.5rem}
  h2, .view-intro h2 {font-size: 1.375rem}
  .snapshot {padding: 12px 14px; border: 1px solid var(--section-edge); min-width: 0}
  .snapshot strong {font-size: .9375rem; margin: 0}
  .controls {padding: 12px; gap: 12px}
  .controls label {min-width: 0; flex-basis: 140px}
  .controls select, .controls input[type=search] {min-width: 0; font-size: 1rem}
  #snapshot-label {flex-basis: 100%}
  .view-intro p {font-size: .9375rem}
  .pl-tabs {grid-template-columns: 1fr 1.25fr 1.35fr 1fr 1.25fr}
  .pl-tabs button {font-size: clamp(.6875rem, 2.9vw, .75rem); min-height: 60px; padding: 10px 1px; line-height: 1.4}
  .league-grid {padding: 16px}
  .league-row {grid-template-columns: minmax(115px, 1.2fr) minmax(40px, 1fr) 48px; gap: 10px; font-size: .8125rem}
  .fixture-meta {gap: 8px}
  .fixture-card {padding: 18px}
  .fixture-teams {gap: 8px}
  .fixture-teams .club {font-size: .875rem}
  .score {font-size: 1.25rem; padding: 8px}
  .feature-dark strong {font-size: 1.5rem}
  .feature-dark strong>span {display: block; margin-left: 0; font-size: 2rem}
  .prediction-teams .name {font-size: 1rem; max-width: none}
  .prediction-teams .goals {font-size: 3rem}
  .result-card .prob-labels strong {font-size: 1.5rem}
  .table-footer {flex-wrap: wrap; gap: 12px}
  .table-footer .secondary {margin-left: auto}
}
@media(prefers-reduced-motion:reduce) {
  * {scroll-behavior: auto!important; transition: none!important}
}

/* Publication time stays close to the table or forecast it describes. */
.data-updated {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 8px;
  min-width: 0; margin: 0 0 10px; color: var(--muted);
  font-size: var(--type-note); line-height: 1.5; letter-spacing: 0;
}
.data-updated>span {color: var(--section-color); font-weight: 600}
.data-updated>strong {
  font-size: inherit; font-weight: 500; white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
}
.prediction-output {display: flex; flex-direction: column; min-width: 0}
.prediction-output>.result-card {flex: 1}
@media(max-width:800px) {
  .data-updated {margin-bottom: 8px; font-size: var(--type-label)}
}
