/* Standings component. */
[data-ui="standings"] .standings-surface { overflow: hidden; border: 1px solid var(--site-line); border-radius: 8px; }
[data-ui="standings"] .standings-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
[data-ui="standings"] .standing-rank-column { width: 48px; }
[data-ui="standings"] .standing-points-column { width: 76px; }
[data-ui="standings"] .standing-gap-column { width: 88px; }
[data-ui="standings"] .standings-table th, [data-ui="standings"] .standings-table td { padding: 12px 14px; vertical-align: middle; text-align: start; }
[data-ui="standings"] .standings-table thead { background: var(--site-soft); color: var(--site-muted); }
[data-ui="standings"] .standings-table thead th { padding-block: 10px; font-size: 10px; line-height: 1.6; font-weight: 500; border-bottom: 1px solid var(--site-line); }
[data-ui="standings"] .standings-table tbody tr + tr { border-top: 1px solid var(--site-line); }
[data-ui="standings"] .standings-table tbody tr:first-child { background: var(--site-panel); }
[data-ui="standings"] .standings-table .standing-rank { padding-inline: 8px; text-align: center; }
[data-ui="standings"] .standing-position { display: inline-block; font-size: 13px; font-weight: 600; line-height: 1.6; color: var(--site-muted); }
[data-ui="standings"] .standings-table tbody tr:first-child .standing-position { color: #ff6862; }
[data-ui="standings"] .standing-driver { min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: start; }
[data-ui="standings"] .standing-driver > bdi { font-size: 13px; line-height: 1.6; font-weight: 700; }
[data-ui="standings"] .standing-driver small { font-size: 10px; line-height: 1.5; color: var(--site-muted); font-weight: 400; }
[data-ui="standings"] .standings-table .standing-points, [data-ui="standings"] .standings-table .standing-gap { text-align: center; }
[data-ui="standings"] .standings-table .standing-points strong { font-size: 22px; font-weight: 700; line-height: 1.3; }
[data-ui="standings"] .standings-table tbody .standing-gap { font-size: 13px; color: var(--site-muted); }
[data-ui="standings"] .standings-table .standing-points bdi, [data-ui="standings"] .standings-table .standing-gap > bdi { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 950px) {
[data-ui="standings"] .standing-rank-column { width: 32px; }
[data-ui="standings"] .standing-points-column { width: 58px; }
[data-ui="standings"] .standing-gap-column { width: 72px; }
[data-ui="standings"] .standings-table th, [data-ui="standings"] .standings-table td { padding-inline: 8px; }
[data-ui="standings"] .standings-table thead th { font-size: 9px; }
[data-ui="standings"] .standings-table .standing-rank { padding-inline: 4px; }
[data-ui="standings"] .standing-position, [data-ui="standings"] .standing-driver > bdi { font-size: 12px; }
[data-ui="standings"] .standings-table .standing-points strong { font-size: 20px; }
}
@media (max-width: 600px) {
[data-ui="standings"] .standing-driver > bdi { font-size: 13px; }
[data-ui="standings"] .standings-table th, [data-ui="standings"] .standings-table td { padding-block: 11px; }
}

/* Championship panel in the post-race editorial row. */
[data-ui="standings"].standings-race-review { padding: 28px; background: var(--site-panel); border: 1px solid var(--site-line); }
[data-ui="standings"] .standings-review-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
[data-ui="standings"] .standings-review-heading h2 { font-size: 27px; font-weight: 800; margin-top: 7px; }
[data-ui="standings"] .standings-review-period, [data-ui="standings"] .standings-review-count { color: var(--site-muted); font-size: 11px; }
[data-ui="standings"] .standings-review-count { flex-shrink: 0; }
[data-ui="standings"].standings-race-review .standings-surface { border: 0; border-radius: 0; }
[data-ui="standings"].standings-race-review .standings-table thead { background: transparent; }
[data-ui="standings"].standings-race-review .standings-table th, [data-ui="standings"].standings-race-review .standings-table td { padding-block: 17px; }
[data-ui="standings"].standings-race-review .standing-driver > bdi { font-size: 16px; }
[data-ui="standings"].standings-race-review .standing-driver small { font-size: 11px; }
[data-ui="standings"].standings-race-review .standings-table tbody tr:first-child th { border-inline-start: 3px solid var(--color-f1-red); }
[data-ui="standings"] .standings-review-link { margin-top: 24px; }
[data-ui="standings"] a:focus-visible { outline: 2px solid var(--color-f1-red); outline-offset: 5px; }
@media (max-width: 760px) {
    [data-ui="standings"].standings-race-review { padding: 22px 18px; }
    [data-ui="standings"] .standings-review-heading { gap: 10px; }
    [data-ui="standings"] .standings-review-heading h2 { font-size: 24px; }
    [data-ui="standings"] .standings-review-period, [data-ui="standings"] .standings-review-count { font-size: 10px; }
    [data-ui="standings"].standings-race-review .standing-driver > bdi { font-size: 14px; }
}

/* End-of-season tables retain each table's own authoritative snapshot. */
.homepage-season-standings { background: var(--site-soft); padding-block: 48px; }
.homepage-season-standings .season-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.homepage-season-standings .season-section-heading h2 { font-size: 30px; font-weight: 800; }
.homepage-season-standings .season-section-heading p { font-size: 13px; color: var(--site-muted); margin-top: 6px; }
.homepage-season-standings .season-section-heading > bdi { font-size: 12px; color: var(--site-muted); flex: none; }
[data-ui="standings"].standings-season-review h3 { font-size: 22px; font-weight: 700; }
[data-ui="standings"].standings-season-review .homepage-section-meta { color: var(--site-muted); font-size: 12px; margin-block: 6px 16px; }
[data-ui="standings"].standings-season-review .standings-surface { border: 0; border-radius: 0; }
[data-ui="standings"].standings-season-review .standings-table thead { background: transparent; }
[data-ui="standings"].standings-season-review .standings-table tbody tr:first-child { background: transparent; }
[data-ui="standings"].standings-season-review .standings-table tbody tr:first-child th { border-inline-start: 3px solid var(--color-f1-red); }
[data-ui="standings"].standings-season-review .standings-table th, [data-ui="standings"].standings-season-review .standings-table td { padding-block: 17px; }
[data-ui="standings"].standings-season-review .standings-table tbody tr { height: 76px; }
[data-ui="standings"].standings-season-review .standing-driver > bdi { font-size: 15px; }
@media (max-width: 760px) {
    .homepage-season-standings { padding-block: 32px; }
    .homepage-season-standings .season-section-heading { align-items: start; gap: 14px; }
    .homepage-season-standings .season-section-heading h2 { font-size: 25px; }
    .homepage-season-standings .season-section-heading p { font-size: 11px; }
    .homepage-season-standings .season-section-heading > bdi { font-size: 11px; }
    [data-ui="standings"].standings-season-review .standing-driver > bdi { font-size: 13px; }
}
