/* Página do calendário da temporada (/calendario-AAAA/). Usa os tokens de style.css. */

.season-page {
    background: var(--soft);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Topo */
.season-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px clamp(16px, 4vw, 40px);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(8px);
}

.season-topbar__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--teal-dark);
    font-size: 18px;
    font-weight: 900;
}

.season-topbar__nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.season-topbar__nav a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--teal-dark);
    font-size: 14px;
    font-weight: 800;
}

.season-topbar__nav a:hover,
.season-topbar__nav a:focus-visible {
    background: #edf6ff;
}

.season-topbar__nav .season-topbar__cta {
    background: var(--brand);
    color: var(--white);
}

.season-topbar__nav .season-topbar__cta:hover,
.season-topbar__nav .season-topbar__cta:focus-visible {
    background: var(--teal-dark);
}

/* Cabeçalho da temporada */
.season-hero {
    padding: clamp(36px, 6vw, 72px) clamp(16px, 4vw, 40px) clamp(64px, 8vw, 96px);
    background:
        linear-gradient(120deg, rgba(3, 64, 111, .96), rgba(5, 103, 178, .86)),
        url('/banners/carrocel-ft2.jpg') center / cover;
    color: var(--white);
}

.season-hero__inner {
    width: min(1060px, 100%);
    margin: 0 auto;
}

.season-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: #cfe6ff;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.season-hero h1 {
    margin: 0;
    font-size: clamp(40px, 7vw, 72px);
    line-height: 1;
    letter-spacing: -.02em;
}

.season-hero__lede {
    max-width: 640px;
    margin: 14px 0 0;
    color: #e3f0fb;
    font-size: clamp(16px, 2vw, 19px);
}

.season-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0 0;
}

.season-stats > div {
    min-width: 92px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, .08);
}

.season-stats dt {
    color: #cfe6ff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.season-stats dd {
    margin: 0;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.season-stats > div:first-child {
    background: var(--white);
    color: var(--teal-dark);
}

.season-stats > div:first-child dt {
    color: var(--muted);
}

/* Próxima prova */
.season-next {
    display: flex;
    width: min(1060px, calc(100% - 32px));
    align-items: center;
    gap: 18px;
    margin: -44px auto 0;
    border: 1px solid #d4e5f4;
    border-radius: 12px;
    padding: 18px 20px;
    background: var(--white);
    box-shadow: var(--shadow);
    position: relative;
}

.season-next__date {
    display: flex;
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--brand);
    color: var(--white);
}

.season-next__date strong {
    font-size: 28px;
    line-height: 1;
}

.season-next__date span {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.season-next__body {
    min-width: 0;
    flex: 1;
}

.season-next__label {
    margin: 0;
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.season-next__body h2 {
    margin: 2px 0;
    font-size: clamp(22px, 3vw, 28px);
    line-height: 1.1;
}

.season-next__body p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.season-next__action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

/* Lista por mês */
.season-list {
    width: min(1060px, calc(100% - 32px));
    margin: 36px auto 0;
}

.season-month + .season-month {
    margin-top: 28px;
}

.season-month__title {
    margin: 0 0 10px;
    color: var(--teal-dark);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.season-month__list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.season-race {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 16px 12px 12px;
    background: var(--white);
}

.season-race.is-next {
    border-color: rgba(5, 103, 178, .45);
    box-shadow: inset 4px 0 0 var(--brand);
}

.season-race.is-past {
    opacity: .6;
}

.season-race.is-cancelled .season-race__body strong {
    color: var(--muted);
    text-decoration: line-through;
}

.season-race__date {
    display: flex;
    width: 56px;
    flex: 0 0 56px;
    flex-direction: column;
    align-items: center;
    border-radius: 8px;
    padding: 6px 0;
    background: #edf6ff;
}

.season-race__date strong {
    color: var(--teal);
    font-size: 22px;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.season-race__date span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.season-race__body {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.season-race__body strong {
    color: var(--ink);
    font-size: 19px;
    line-height: 1.2;
}

.season-race__body span {
    color: var(--muted);
    font-size: 13px;
}

.season-race__status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.season-race__status a {
    color: var(--brand);
    font-size: 13px;
    font-weight: 900;
}

/* Observações e rodapé */
.season-notes {
    display: flex;
    width: min(1060px, calc(100% - 32px));
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 36px auto 0;
    border-top: 1px solid var(--line);
    padding-top: 22px;
}

.season-notes > div:first-child {
    display: flex;
    max-width: 560px;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

.season-notes > div:first-child p {
    margin: 0;
}

.season-notes > div:first-child i {
    color: var(--brand);
    font-size: 18px;
}

.season-notes__links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.season-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-top: 48px;
    padding: 22px clamp(16px, 4vw, 40px);
    background: var(--teal-dark);
    color: #cfe6ff;
    font-size: 13px;
}

.season-footer a {
    color: var(--white);
    font-weight: 800;
}

@media (max-width: 640px) {
    .season-topbar__nav a:not(.season-topbar__cta) span {
        display: none;
    }

    .season-next {
        flex-wrap: wrap;
    }

    .season-next__action {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .season-race {
        flex-wrap: wrap;
        gap: 10px 12px;
    }

    .season-race__status {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-left: 68px;
    }

    .season-race__body strong {
        font-size: 17px;
    }
}

/* Provas com seção própria na landing: o card inteiro leva aos detalhes */
.season-race.has-link {
    position: relative;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.season-race.has-link:hover {
    border-color: rgba(5, 103, 178, .45);
    box-shadow: 0 10px 24px rgba(3, 64, 111, .1);
}

.season-race.has-link.is-next:hover {
    box-shadow: inset 4px 0 0 var(--brand), 0 10px 24px rgba(3, 64, 111, .1);
}

.season-race__details::after {
    position: absolute;
    inset: 0;
    content: "";
}

.season-race__details:focus-visible,
.season-next__details:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}

.season-next__details {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand);
    font-size: 14px;
    font-weight: 900;
}
