/* Season round navigation; the calendar layouts retain their existing styles. */
[data-ui="calendar-rounds"] { min-width: 0; overflow-x: auto; margin-block-end: 32px; padding-block: 4px 20px; border-bottom: 1px solid var(--site-line); }
[data-ui="calendar-rounds"] .calendar-season-progress { display: none; }
[data-ui="calendar-rounds"] .calendar-rounds-list { display: flex; width: max-content; min-width: 100%; gap: 4px; list-style: none; margin: 0; padding: 4px; box-sizing: border-box; }
[data-ui="calendar-rounds"] li { flex: 1 0 38px; min-width: 38px; }
[data-ui="calendar-rounds"] .calendar-round-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 48px; min-width: 38px; padding-inline: 3px; color: var(--site-muted); text-decoration: none; box-sizing: border-box; }
[data-ui="calendar-rounds"] .calendar-round-mark { display: block; width: 100%; height: 3px; background: var(--site-line); }
[data-ui="calendar-rounds"] bdi { font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
[data-ui="calendar-rounds"] :is([data-status="finished"], [data-status="completed"], [data-status="past"], [data-status="done"]) .calendar-round-mark { background: #606065; }
[data-ui="calendar-rounds"] [aria-current="true"] { color: #ff8c85; }
[data-ui="calendar-rounds"] [aria-current="true"] .calendar-round-mark { background: var(--color-f1-red); }
[data-ui="calendar-rounds"] :is([data-status="cancelled"], [data-status="canceled"]) bdi { text-decoration: line-through; }
[data-ui="calendar-rounds"] .calendar-round-link:hover { color: var(--site-ink); }
.calendar-content [data-calendar-grand-prix] { scroll-margin-block-start: 24px; }
@media (max-width: 767px) {
    [data-ui="calendar-rounds"] { overflow: visible; padding-block: 0; margin-block-end: 24px; border-bottom: 0; }
    [data-ui="calendar-rounds"] .calendar-rounds-desktop { display: none; }
    [data-ui="calendar-rounds"] .calendar-season-progress { display: grid; grid-template-columns: minmax(0, 1fr); }
    [data-ui="calendar-rounds"] .calendar-progress-heading { grid-area: 1 / 1; align-self: start; justify-self: start; max-width: 50%; min-width: 0; padding-block-end: 30px; color: var(--site-ink); font-size: 14px; font-weight: 700; line-height: 22px; overflow-wrap: anywhere; }
    [data-ui="calendar-rounds"] [data-heading-placement="left"] .calendar-progress-heading { justify-self: end; text-align: end; }
    [data-ui="calendar-rounds"] .calendar-progress-track { grid-area: 1 / 1; align-self: end; display: flex; align-items: end; gap: 3px; height: 22px; margin-block-start: 30px; }
    [data-ui="calendar-rounds"] .calendar-progress-segment { position: relative; flex: 1 1 0; min-width: 0; height: 10px; }
    [data-ui="calendar-rounds"] .calendar-progress-shape { display: block; width: 100%; height: 100%; overflow: visible; }
    [data-ui="calendar-rounds"] .calendar-progress-shape polygon { fill: none; stroke: #62626d; stroke-width: 1; stroke-dasharray: 2 2; }
    [data-ui="calendar-rounds"] [data-status="scheduled"] .calendar-progress-shape polygon { stroke-dasharray: none; }
    [data-ui="calendar-rounds"] :is([data-status="finished"], [data-status="completed"], [data-status="past"], [data-status="done"]) .calendar-progress-shape polygon { fill: #9999a5; stroke: none; }
    [data-ui="calendar-rounds"] [data-current] .calendar-progress-shape polygon { fill: var(--color-f1-red); stroke: none; }
    [data-ui="calendar-rounds"] .calendar-progress-segment[data-current] { height: 22px; }
    [data-ui="calendar-rounds"] :is([data-status="cancelled"], [data-status="canceled"]) .calendar-progress-shape { opacity: 0.45; }
    [data-ui="calendar-rounds"] .calendar-progress-label { position: absolute; bottom: calc(100% + 6px); left: -1%; width: max-content; transform: translateX(-50%); white-space: nowrap; color: var(--site-ink); font-size: 12px; font-weight: 500; line-height: 20px; }
    [data-ui="calendar-rounds"] .calendar-progress-label bdi { font: inherit; }
    [data-ui="calendar-rounds"] .calendar-progress-segment:nth-child(-n+2) .calendar-progress-label { left: auto; right: 0; transform: none; }
    [data-ui="calendar-rounds"] .calendar-progress-segment:nth-last-child(-n+2) .calendar-progress-label { left: 0; right: auto; transform: none; }
    [data-ui="calendar-rounds"] .calendar-progress-counts { grid-area: 2 / 1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-block-start: 8px; padding-block-start: 8px; border-top: 1px solid var(--site-line); color: var(--site-muted); font-size: 11px; line-height: 18px; }
    [data-ui="calendar-rounds"] [data-heading-placement="above"] .calendar-progress-heading { max-width: 100%; padding-block-end: 0; }
    [data-ui="calendar-rounds"] [data-heading-placement="above"] .calendar-progress-track { grid-area: 2 / 1; }
    [data-ui="calendar-rounds"] [data-heading-placement="above"] .calendar-progress-counts { grid-area: 3 / 1; }
}
