:root {
    --fp-bg: #0b0b0f;
    --fp-surface: #15151c;
    --fp-surface-2: #1f1f29;
    --fp-text: #f5f5f7;
    --fp-muted: #a1a1aa;
    --fp-red: #e10600;
    --fp-border: #2a2a35;
    --fp-public-header-sticky-height: 4.5625rem;
    --fp-session-switcher-sticky-height: 4.75rem;
}

/* Season results comparison: both views share the same sticky data grid. */
.season-results-card {
    overflow: hidden;
}

.season-results-scroll {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    overscroll-behavior-inline: contain;
}

.season-results-scroll-top {
    height: 1rem;
    margin-bottom: 0.25rem;
}

.season-results-scroll-spacer {
    height: 1px;
    min-width: 100%;
}

.season-results-scroll:focus-visible {
    outline: 2px solid var(--fp-red);
    outline-offset: -2px;
}

.season-results-table {
    --season-position-width: 3.35rem;
    --season-driver-width: 14rem;
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.season-results-table > :not(caption) > * > * {
    border-right: 1px solid var(--fp-border);
    border-bottom: 1px solid var(--fp-border);
    vertical-align: middle;
}

.season-results-table thead th {
    position: sticky;
    top: 0;
    z-index: 4;
    background: var(--fp-surface-2);
    text-align: center;
}

.season-results-table .season-position-column,
.season-results-table .season-driver-column,
.season-results-table .season-points-column {
    position: sticky;
    background: var(--fp-surface);
}

.season-results-table .season-position-column {
    left: 0;
    z-index: 3;
    width: var(--season-position-width);
    min-width: var(--season-position-width);
    text-align: center;
}

.season-results-table .season-driver-column {
    left: var(--season-position-width);
    z-index: 3;
    width: var(--season-driver-width);
    min-width: var(--season-driver-width);
    text-align: left;
    box-shadow: 0.5rem 0 0.8rem rgba(0, 0, 0, 0.18);
}

.season-results-table .season-points-column {
    right: 0;
    z-index: 3;
    min-width: 4.5rem;
    box-shadow: -0.5rem 0 0.8rem rgba(0, 0, 0, 0.18);
}

.season-results-table thead .season-position-column,
.season-results-table thead .season-driver-column,
.season-results-table thead .season-points-column {
    z-index: 6;
    background: var(--fp-surface-2);
}

.season-results-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.season-results-toolbar .season-results-mode-switcher {
    margin-bottom: 0;
}

.season-event-round,
.season-event-state {
    display: block;
    color: var(--fp-muted);
    font-size: 0.63rem;
    letter-spacing: 0.04em;
}

.season-event-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.2rem;
    color: var(--fp-text);
    font-size: 0.72rem;
    line-height: 1.15;
    text-transform: none;
}

.season-event-title img,
.season-wiki-flag {
    width: 1.15rem;
    height: 0.82rem;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 0.12rem;
}

.season-driver-native {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.season-driver-name-mobile {
    display: none;
}

.season-driver-team-logo {
    display: inline-flex;
    flex: 0 0 auto;
}

.season-driver-copy {
    display: grid;
    min-width: 0;
    line-height: 1.15;
}

.season-driver-copy a,
.season-results-wiki-table .season-driver-column a {
    overflow: hidden;
    color: var(--fp-text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.season-driver-copy > span {
    margin-top: 0.2rem;
    overflow: hidden;
    color: var(--fp-muted);
    font-size: 0.72rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.season-result-cell {
    min-width: 4rem;
    padding: 0.42rem !important;
    text-align: center;
}

.season-result-cell.is-future,
.season-result-cell.is-missing,
.season-result-cell.is-cancelled {
    color: var(--fp-muted);
}

.season-result-cell.is-future {
    background: rgba(161, 161, 170, 0.035);
}

.season-result-cell.is-cancelled,
.season-event-column.is-cancelled {
    background: repeating-linear-gradient(135deg, rgba(161, 161, 170, 0.08), rgba(161, 161, 170, 0.08) 0.35rem, transparent 0.35rem, transparent 0.7rem);
}

.season-result-stack {
    display: grid;
    justify-items: center;
    gap: 0.18rem;
}

.season-result-value {
    display: inline-flex;
    min-width: 2rem;
    align-items: center;
    justify-content: center;
    gap: 0.22rem;
    border-radius: 0.42rem;
    padding: 0.22rem 0.35rem;
    color: var(--fp-text);
    font-size: 0.84rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

a.season-result-value:hover,
a.season-result-value:focus-visible {
    color: #fff;
    background: rgba(225, 6, 0, 0.2);
    outline: none;
}

.season-result-value.is-sprint {
    color: #d4d4d8;
    left: calc(var(--season-position-width) + 0.5rem);
    font-size: 0.72rem;
}

.season-result-kind {
    color: var(--fp-muted);
    font-size: 0.58rem;
    font-weight: 800;
}

.season-result-dnf,
.season-result-dns,
.season-result-dsq {
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.season-result-dnf {
    color: #a1a1aa;
}

.season-result-dns {
    color: #a1a1aa;
}

.season-result-dsq {
    color: #ff8a84;
}

.season-result-empty {
    color: var(--fp-muted);
    font-weight: 700;
}

.season-results-wiki-table {
    --season-position-width: 1.9rem;
    --season-driver-width: 11.5rem;
    font-size: 0.78rem;
}

.season-results-wiki-table > :not(caption) > * > * {
    padding: 0.38rem 0.32rem;
}

.season-results-wiki-table .season-event-column {
    width: 3.85rem;
    min-width: 3.85rem;
}

.season-wiki-event-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.season-wiki-event-link:hover,
.season-wiki-event-link:focus-visible {
    color: #fff;
    text-decoration: none;
    outline: none;
}

.season-wiki-event-marker {
    display: block;
    color: inherit;
}

.season-wiki-event-label {
    display: block;
    color: var(--fp-text);
    font-size: 0.65rem;
    letter-spacing: 0.025em;
}

.season-results-wiki-table .season-wiki-flag {
    display: block;
    margin: 0.18rem auto 0;
}

.season-results-wiki-table .season-result-cell {
    min-width: 3.85rem;
}

.season-results-wiki-table .season-result-value {
    padding: 0.16rem 0.2rem;
    font-size: 0.76rem;
}

.season-result-sprint {
    margin-left: 0.1rem;
    font-size: 0.58em;
    font-weight: 900;
    line-height: 0;
    vertical-align: super;
}

.season-driver-wiki {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.season-results-wiki-table .season-driver-column a {
    text-decoration: none;
}

.season-results-wiki-table .season-driver-wiki .season-driver-team-logo .team-badge {
    min-width: 2.25rem;
    height: 1.15rem;
}

.season-results-wiki-table .season-result-value.season-result-first,
.season-results-wiki-table .season-result-sprint.season-result-first {
    color: #ffd166;
}

.season-results-wiki-table .season-result-value.season-result-first {
    background: rgba(255, 209, 102, 0.3);
    border: 1px solid rgba(255, 209, 102, 0.82);
}

.season-results-wiki-table .season-result-value.season-result-second,
.season-results-wiki-table .season-result-sprint.season-result-second {
    color: #d7dde7;
}

.season-results-wiki-table .season-result-value.season-result-second {
    background: rgba(215, 221, 231, 0.26);
    border: 1px solid rgba(215, 221, 231, 0.72);
}

.season-results-wiki-table .season-result-value.season-result-third,
.season-results-wiki-table .season-result-sprint.season-result-third {
    color: #d9925b;
}

.season-results-wiki-table .season-result-value.season-result-third {
    background: rgba(217, 146, 91, 0.3);
    border: 1px solid rgba(217, 146, 91, 0.82);
}

.season-results-wiki-table .season-result-value.season-result-points,
.season-results-wiki-table .season-result-sprint.season-result-points {
    color: #8bd5a8;
}

.season-results-wiki-table .season-result-value.season-result-points {
    background: rgba(139, 213, 168, 0.28);
    border: 1px solid rgba(139, 213, 168, 0.75);
}

.season-results-wiki-table .season-result-value.season-result-outside-points,
.season-results-wiki-table .season-result-sprint.season-result-outside-points {
    color: #858b99;
}

.season-results-wiki-table .season-result-value.season-result-outside-points {
    background: rgba(133, 139, 153, 0.22);
    border: 1px solid rgba(133, 139, 153, 0.58);
}

.season-results-wiki-table .season-result-value.season-result-dnf,
.season-results-wiki-table .season-result-sprint.season-result-dnf {
    color: #a1a1aa;
}

.season-results-wiki-table .season-result-value.season-result-dns,
.season-results-wiki-table .season-result-sprint.season-result-dns {
    color: #a1a1aa;
}

.season-results-wiki-table .season-result-value.season-result-dsq,
.season-results-wiki-table .season-result-sprint.season-result-dsq {
    color: #ff8a84;
}

.season-results-mode-switcher {
    display: inline-flex;
    gap: 0.2rem;
    margin-bottom: 1rem;
    padding: 0.2rem;
    border: 1px solid var(--fp-border);
    border-radius: 0.65rem;
    background: var(--fp-surface-2);
}

.season-results-mode-link {
    display: inline-block;
    border-radius: 0.45rem;
    padding: 0.35rem 0.75rem;
    color: var(--fp-muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
}

.season-results-mode-link:hover,
.season-results-mode-link:focus-visible {
    color: var(--fp-text);
    text-decoration: none;
}

.season-results-mode-link.is-active {
    color: #fff;
    background: var(--fp-red);
}

.season-results-table-sticky-header {
    position: fixed;
    top: var(--fp-public-header-sticky-height);
    z-index: 1010;
    overflow: visible;
    background: var(--fp-surface);
    box-shadow: 0 1px 0 var(--fp-border);
    visibility: hidden;
    pointer-events: none;
}

.season-results-table-sticky-header.is-visible {
    visibility: visible;
}

.season-results-table-sticky-header .season-results-table {
    margin-bottom: 0;
    transform: translateX(0);
}

.season-results-sticky-header-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.season-results-sticky-header-scroll::-webkit-scrollbar {
    display: none;
}

@media (max-width: 767.98px) {
    .season-results-card {
        margin-inline: -0.2rem;
    }

    .season-results-table {
        --season-position-width: 2.65rem;
        --season-driver-width: 7rem;
    }

    .season-results-table .season-position-column {
        padding-inline: 0.25rem !important;
    }

    .season-results-table .season-driver-column {
        padding-inline: 0.5rem !important;
    }

    /* Keep the position and points anchors fixed, but let the wide driver
       label move with the horizontally scrolling season grid. */
    .season-results-table tbody .season-driver-column {
        position: static;
        left: auto;
        box-shadow: none;
        z-index: 1;
    }

    .season-results-table thead .season-driver-column {
        left: auto;
    }

    .season-driver-copy a {
        font-size: 0.78rem;
    }

    .season-driver-copy > span {
        font-size: 0.64rem;
    }

    .season-results-wiki-table {
        --season-position-width: 1.75rem;
    }

    .season-results-wiki-table .season-driver-column {
        width: max-content;
        min-width: max-content;
        padding-inline: 0.15rem !important;
        font-size: 0.72rem;
    }

    .season-results-wiki-table .season-driver-column .driver-name-badge {
        width: max-content;
        min-width: max-content;
    }

    .season-results-wiki-table .season-points-column {
        width: 3.5rem;
        min-width: 3.5rem;
        padding-inline: 0.25rem !important;
        display: table-cell !important;
    }

    .season-driver-name-desktop {
        display: none;
    }

    .season-driver-name-mobile {
        display: inline;
    }
}

.public-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(225, 6, 0, 0.16), transparent 34rem),
        linear-gradient(180deg, #0b0b0f 0%, #101017 48%, #0b0b0f 100%);
    color: var(--fp-text);
}

.public-navbar {
    background: #0b0b0f;
    border-bottom: 1px solid var(--fp-border);
}

.public-header {
    background: #0b0b0f;
    z-index: 1030;
    box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, 0.24);
}

.brand-mark {
    display: inline-flex;
    width: 2.35rem;
    height: 2.35rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 0.2rem rgba(225, 6, 0, 0.12);
}

.brand-mark-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.brand-text {
    color: var(--fp-text);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.public-navbar .nav-link {
    color: #e4e4ea;
    border-radius: 999px;
    padding-inline: 1rem;
    font-weight: 800;
    line-height: 1.1;
    transition:
        color 160ms ease,
        background-color 160ms ease,
        opacity 160ms ease;
}

.public-navbar .nav-link:hover,
.public-navbar .nav-link.active {
    color: #fff;
    background: rgba(225, 6, 0, 0.16);
}

.public-navbar .nav-link:focus-visible {
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(225, 6, 0, 0.22);
    outline: none;
}

.public-main a:not(.btn):not(.nav-link) {
    color: #fff;
}

.news-article-layout {
    max-width: 52rem;
    --news-text-measure: 80%;
}

.news-article-text-measure {
    width: 100%;
    max-width: var(--news-text-measure);
    margin-inline: auto;
}

.news-article-hero {
    display: grid;
    gap: 1rem;
}

.news-article-meta {
    font-weight: 700;
}

.news-article-title {
    max-width: 14ch;
}

.news-article-cover img {
    display: block;
    width: 100%;
    max-height: 34rem;
    object-fit: cover;
    border-radius: 1rem;
}

.news-article-cover,
.news-media-block,
.news-media-carousel,
.news-article-body {
    width: 100%;
    max-width: 100%;
}

.news-media-block {
    margin: 1.75rem 0;
}

.news-media-block img,
.news-media-block video {
    display: block;
    width: 100%;
    max-height: 42rem;
    object-fit: contain;
    border-radius: 0.85rem;
}

.news-media-block figcaption {
    padding: 0.85rem 1rem;
    color: var(--fp-muted);
    font-size: 0.92rem;
}

.news-media-carousel {
    display: grid;
    gap: 0.9rem;
    margin: 1.75rem 0;
}

.news-media-carousel-frame {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.news-media-carousel-track {
    display: flex;
    gap: 0;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.news-media-carousel .news-media-block {
    margin: 0;
    flex: 0 0 100%;
    min-width: 100%;
    width: 100%;
    scroll-snap-align: start;
}

.news-media-carousel-button {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: clamp(3rem, 7vw, 4.25rem);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: linear-gradient(90deg, rgba(8, 8, 12, 0.72), rgba(8, 8, 12, 0));
    color: var(--fp-text);
    font-size: 1.5rem;
    line-height: 1;
}

.news-media-carousel-button--prev {
    left: 0;
}

.news-media-carousel-button--next {
    right: 0;
    background: linear-gradient(270deg, rgba(8, 8, 12, 0.72), rgba(8, 8, 12, 0));
}

.news-media-carousel-button:hover {
    color: #fff;
}

.news-media-carousel-indicator {
    position: absolute;
    right: 0.9rem;
    bottom: 0.9rem;
    z-index: 2;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(6, 6, 10, 0.9);
    box-shadow: 0 0.5rem 1.2rem rgba(0, 0, 0, 0.28);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-media-carousel-caption {
    color: var(--fp-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.news-media-carousel-track::-webkit-scrollbar {
    display: none;
}

@media (max-width: 767.98px) {
    .news-media-carousel-button {
        width: 2.75rem;
    }

    .news-article-text-measure,
    .news-article-body > p,
    .news-article-body > h2,
    .news-article-body > h3,
    .news-article-body > h4,
    .news-article-body > ul,
    .news-article-body > ol,
    .news-article-body > blockquote,
    .news-article-body > pre {
        max-width: 100%;
    }
}

.news-article-body > p:first-child {
    font-size: 1.18rem;
    line-height: 1.85;
    color: #fafafc;
}

.news-article-body > p,
.news-article-body > h2,
.news-article-body > h3,
.news-article-body > h4,
.news-article-body > ul,
.news-article-body > ol,
.news-article-body > blockquote,
.news-article-body > pre {
    max-width: var(--news-text-measure);
    margin-inline: auto;
}

.news-article-body > h2,
.news-article-body > h3,
.news-article-body > h4 {
    color: #fff;
    font-weight: 850;
    letter-spacing: -0.03em;
}

.news-article-body > h2 {
    margin-top: 2.6rem;
    margin-bottom: 1rem;
    font-size: clamp(1.5rem, 2vw, 1.9rem);
}

.news-article-body > h3 {
    margin-top: 2.1rem;
    margin-bottom: 0.85rem;
    font-size: clamp(1.2rem, 1.6vw, 1.45rem);
}

.news-article-body > h4 {
    margin-top: 2.1rem;
    margin-bottom: 0.85rem;
    font-size: clamp(1.2rem, 1.6vw, 1.45rem);
}

.news-article-body > p {
    line-height: 1.8;
    color: #ececf2;
}

.news-article-body > p + p,
.news-article-body > h2 + p,
.news-article-body > h3 + p,
.news-article-body > h4 + p,
.news-article-body > .news-media-block + p,
.news-article-body > .news-media-carousel + p {
    margin-top: 1.1rem;
}

.public-card,
.hero-card,
.featured-card {
    background: linear-gradient(145deg, var(--fp-surface), #121219);
    border: 1px solid var(--fp-border);
    border-radius: 1.35rem;
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.22);
}

.hero-card {
    position: relative;
    overflow: hidden;
}


.featured-card,
.card-highlight {
    position: relative;
    border-color: rgba(225, 6, 0, 0.72);
}

.card-highlight {
    background:
        radial-gradient(circle at top right, rgba(225, 6, 0, 0.26), transparent 56%),
        linear-gradient(145deg, rgba(50, 17, 17, 0.98), #15151d);
}

.public-card-soft {
    background: var(--fp-surface-2);
    border: 1px solid var(--fp-border);
    border-radius: 1rem;
}

.text-muted-public {
    color: var(--fp-muted) !important;
}

.section-kicker {
    color: var(--fp-red);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-kicker-link {
    display: inline-block;
    text-decoration: none;
}

.section-kicker-link:hover {
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
}

.display-title {
    color: var(--fp-text);
    font-weight: 900;
    letter-spacing: -0.055em;
}

.public-event-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.public-event-title-flag {
    display: inline-flex;
    width: min(0.9em, 2.5rem);
    height: min(0.6em, 1.7rem);
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0.16em;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.public-event-title-flag img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-event-title-flag-emoji {
    line-height: 1;
}

.event-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.event-navigation-link {
    display: flex;
    min-width: 0;
    max-width: 48%;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.8rem;
    text-align: left;
}

.event-navigation-link-next {
    margin-left: auto;
    text-align: right;
}

.event-navigation-copy {
    display: flex;
    min-width: 0;
}

.event-navigation-name {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    flex-wrap: wrap;
    line-height: 1.25;
}

.event-navigation-flag {
    width: 1em;
    max-width: 1em;
    height: 0.7em;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 0.12rem;
    vertical-align: -0.05em;
}

.event-navigation-flag-emoji {
    flex: 0 0 auto;
    line-height: 1;
}

.event-navigation-arrow {
    flex: 0 0 auto;
    font-size: 1.1rem;
}

.event-schedule-results {
    width: 1%;
    white-space: nowrap;
    text-align: left;
    padding-right: 3rem !important;
}

/*
 * The auto-layout table shrink-wraps this 1% column to its button, so changing
 * text-align or trailing padding cannot move the button itself. Shift only the
 * action content while keeping the semantic column order and table geometry.
 */
.event-schedule-results > .btn,
.event-schedule-results > .text-muted-public {
    position: relative;
    left: -1rem;
}

.event-schedule-results .btn {
    width: max-content;
    white-space: nowrap;
}

.schedule-line {
    color: var(--fp-muted);
    line-height: 1.8;
}

.home-countdown-strip {
    padding-block: 0.16rem;
    border-radius: 0;
    background:
        radial-gradient(circle at top left, rgba(225, 6, 0, 0.34), transparent 24rem),
        linear-gradient(90deg, #1a1a22, #101017 72%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.home-countdown-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.9fr);
    gap: 0.45rem;
    align-items: center;
}

.home-countdown-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.home-countdown-link:hover {
    color: inherit;
    text-decoration: none;
}

.home-countdown-link:hover .home-countdown-strip {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 1.2rem 2.8rem rgba(0, 0, 0, 0.24);
    filter: brightness(0.98);
}

.home-countdown-link:hover .home-countdown-title {
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.14em;
}

.home-countdown-copy {
    min-width: 0;
}

.home-countdown-event-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.04rem;
}

.home-countdown-title {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: clamp(0.82rem, 0.45vw + 0.72rem, 1.05rem);
    font-weight: 900;
    letter-spacing: -0.045em;
}

.home-countdown-flag {
    width: 1em;
    max-width: 1em;
    height: 0.7em;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 0.12rem;
}

.home-countdown-flag-emoji {
    flex: 0 0 auto;
    line-height: 1;
}

.home-countdown-timer {
    display: grid;
    grid-template-columns: repeat(4, minmax(2.6rem, 1fr));
    justify-content: end;
    gap: 0.2rem;
}

.home-countdown-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 1.7rem;
    min-width: 2.6rem;
    padding: 0.1rem 0.18rem;
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.home-countdown-value {
    font-size: clamp(0.72rem, 0.4vw + 0.66rem, 0.95rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
}

.home-countdown-label {
    margin-top: 0.02rem;
    color: var(--fp-muted);
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-countdown-label-short {
    display: none;
}

.home-news-card {
    background:
        radial-gradient(circle at top right, rgba(225, 6, 0, 0.14), transparent 48%),
        linear-gradient(145deg, rgba(32, 32, 42, 0.98), #14141b);
}

.home-news-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-news-category {
    display: inline-flex;
    align-items: center;
    min-height: 1.7rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: rgba(225, 6, 0, 0.14);
    color: #ffd1cf;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-news-title {
    line-height: 1.16;
}

.home-standings-shell {
    background:
        radial-gradient(circle at top right, rgba(225, 6, 0, 0.16), transparent 34%),
        linear-gradient(145deg, rgba(26, 26, 34, 0.98), #121219);
}

.public-main-home {
    padding-top: 1.5rem !important;
}

.public-main-results {
    padding-top: 0.75rem !important;
}

.public-main-compact-heading {
    padding-top: 1rem !important;
}

.calendar-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 11.5rem;
}

.calendar-featured-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.15rem;
    min-height: 100%;
    width: 100%;
    min-width: 0;
    position: relative;
    container-type: inline-size;
    container-name: calendar-card;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(255, 70, 56, 0.2), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 18px 40px rgba(0, 0, 0, 0.18);
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        filter 180ms ease;
}

.calendar-featured-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0) 55%),
        repeating-linear-gradient(
            -32deg,
            rgba(255, 255, 255, 0.04) 0 1px,
            rgba(255, 255, 255, 0) 1px 22px
        );
    opacity: 0.9;
    pointer-events: none;
}

.calendar-featured-link {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.calendar-featured-link:hover {
    color: inherit;
    text-decoration: none;
}

.calendar-featured-link:hover .calendar-featured-card,
.calendar-card:hover {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 20px 44px rgba(0, 0, 0, 0.26);
    filter: brightness(0.96);
}

.calendar-card.card-highlight {
    border-color: rgba(225, 6, 0, 0.8);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(225, 6, 0, 0.24),
        0 18px 42px rgba(60, 8, 8, 0.28);
}

.calendar-card:hover.card-highlight,
.calendar-card.card-highlight:hover {
    border-color: rgba(255, 70, 56, 0.98);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(225, 6, 0, 0.34),
        0 22px 48px rgba(60, 8, 8, 0.36);
    filter: brightness(0.98);
}

.calendar-featured-link:hover .display-title,
.calendar-card:hover .calendar-card-title {
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.14em;
}

.calendar-featured-link:hover .calendar-featured-card.card-highlight {
    border-color: rgba(255, 70, 56, 0.96);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(225, 6, 0, 0.34),
        0 22px 48px rgba(60, 8, 8, 0.34);
    filter: brightness(0.97);
}

.calendar-featured-card.card-highlight {
    border-color: rgba(225, 6, 0, 0.8);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(225, 6, 0, 0.24),
        0 18px 42px rgba(60, 8, 8, 0.28);
}

.calendar-featured-card .display-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.calendar-featured-flag-badge {
    width: 2rem;
    height: 1.28rem;
    flex: 0 0 auto;
}

.calendar-featured-grid > [class*="col"] {
    display: flex;
    min-width: 0;
}

.calendar-featured-grid .featured-card {
    width: 100%;
}

.calendar-main-section {
    position: relative;
    margin-top: 1.15rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015) 20%, rgba(255, 255, 255, 0));
    border-radius: 1rem 1rem 0 0;
}

.calendar-main-section::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -0.2rem;
    height: 0.22rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 70, 56, 0), rgba(255, 70, 56, 0.92) 18%, rgba(255, 140, 120, 0.9) 50%, rgba(255, 70, 56, 0.92) 82%, rgba(255, 70, 56, 0));
    box-shadow: 0 0 22px rgba(255, 70, 56, 0.28);
}

.calendar-main-grid {
    margin-top: 0;
}

.calendar-card-meta {
    letter-spacing: 0.02em;
}

.calendar-card-title {
    font-weight: 800;
    line-height: 1.2;
    transition: text-decoration-color 140ms ease;
}

.calendar-card {
    position: relative;
    container-type: inline-size;
    container-name: calendar-card;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        filter 180ms ease;
}

.calendar-card-flag {
    font-size: 1.2em;
    vertical-align: -0.08em;
    font-family: "Twemoji Mozilla", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.calendar-card-flag-badge {
    display: inline-flex;
    width: 1.65rem;
    height: 1.12rem;
    margin-right: 0.3rem;
    vertical-align: -0.18rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0.35rem;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.calendar-card-flag-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.calendar-card-date {
    font-size: clamp(1.15rem, 1vw + 0.95rem, 1.55rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--fp-text);
}

.calendar-card-podium {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--fp-text);
}

.calendar-podium-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.2rem;
}

.calendar-podium-row-featured {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.45rem;
    width: fit-content;
    max-width: 100%;
}

.calendar-podium-pill {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.38rem;
    width: fit-content;
    min-width: 0;
    padding: 0.34rem 0.58rem 0.34rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.calendar-podium-position {
    color: var(--fp-muted);
    flex: 0 0 auto;
    margin-right: 0.05rem;
}

.calendar-featured-bottom-row {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-top: 0.1rem;
    min-height: 0;
    justify-content: flex-start;
    position: relative;
    z-index: 1;
}

.calendar-featured-date-strong {
    font-size: clamp(1.2rem, 1.05vw + 0.98rem, 1.55rem);
    font-weight: 900;
    line-height: 1.08;
    color: var(--fp-text);
}

.calendar-featured-date-muted {
    font-size: clamp(1rem, 0.92vw + 0.78rem, 1.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--fp-text);
}

.calendar-completed-date-flag {
    margin-right: 0.18rem;
}

.calendar-featured-card .section-kicker,
.calendar-featured-card .calendar-featured-meta,
.calendar-featured-card .calendar-podium-row-featured,
.calendar-featured-card .calendar-card-podium {
    position: relative;
    z-index: 1;
}

.calendar-podium-code {
    color: var(--fp-text);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

@container calendar-card (max-width: 21rem) {
    .calendar-podium-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .calendar-podium-row-featured {
        flex-direction: column;
        align-items: flex-start;
        flex-wrap: nowrap;
        gap: 0.35rem;
        width: 100%;
    }
}

.btn-fp-red {
    --bs-btn-bg: var(--fp-red);
    --bs-btn-border-color: var(--fp-red);
    --bs-btn-hover-bg: #ff201a;
    --bs-btn-hover-border-color: #ff201a;
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    border-radius: 999px;
    font-weight: 800;
}

.btn-fp-outline {
    --bs-btn-color: var(--fp-text);
    --bs-btn-border-color: var(--fp-border);
    --bs-btn-hover-bg: var(--fp-surface-2);
    --bs-btn-hover-border-color: var(--fp-red);
    --bs-btn-hover-color: #fff;
    border-radius: 999px;
    font-weight: 700;
}

.calendar-season-dropdown .dropdown-toggle {
    min-width: 11rem;
    justify-content: space-between;
    display: inline-flex;
    align-items: center;
}

.public-table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--fp-text);
    --bs-table-border-color: var(--fp-border);
    margin-bottom: 0;
}

.session-results-table {
    min-width: 38rem;
}

.session-results-table[data-qualification-table] {
    min-width: 58rem;
}

.driver-standings-table {
    min-width: 38rem;
}

.constructor-standings-table {
    min-width: 32rem;
}

.results-mobile-competitor-cell,
.qualification-mobile-phase-cell,
.qualification-mobile-gap-cell,
.session-label-mobile {
    display: none;
}

.results-mobile-competitor {
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.results-mobile-team-logo,
.results-mobile-driver-name {
    display: inline-flex;
    align-items: center;
}

.results-mobile-driver-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.session-results-table .results-mobile-driver-name,
.session-results-table .results-desktop-driver-cell .driver-name-badge > a:not(.driver-name-badge-logo),
.driver-standings-table .results-mobile-driver-name,
.driver-standings-table .results-desktop-driver-cell .driver-name-badge > a:not(.driver-name-badge-logo) {
    text-decoration: none;
}

.qualification-mobile-phase-buttons {
    align-items: center;
    gap: 0.42rem;
    white-space: nowrap;
}

.dedicated-session-switcher {
    box-shadow: 0 0.75rem 1.25rem rgba(0, 0, 0, 0.18);
}

.dedicated-results-table thead th {
    background: var(--fp-surface);
    box-shadow: 0 1px 0 var(--fp-border);
}

.dedicated-results-table-sticky-header {
    position: fixed;
    top: calc(var(--fp-public-header-sticky-height) + var(--fp-session-switcher-sticky-height));
    z-index: 1010;
    overflow: hidden;
    background: var(--fp-surface);
    box-shadow: 0 1px 0 var(--fp-border);
    visibility: hidden;
    pointer-events: none;
}

.dedicated-results-table-sticky-header.is-visible {
    visibility: visible;
    pointer-events: auto;
}

.dedicated-results-table-sticky-header .dedicated-results-table {
    margin-bottom: 0;
    transform: translateX(0);
}

.dedicated-results-table > tbody > tr > * {
    padding-block: 0.46rem;
}

.result-timing-cell {
    white-space: nowrap;
}

.results-gap-column,
.results-interval-column,
.results-gap-cell,
.results-interval-cell {
    white-space: nowrap;
}

.result-timing-primary,
.result-timing-interval {
    display: block;
}

.result-timing-primary {
    font-weight: 700;
}

.result-timing-interval {
    margin-top: 0.15rem;
    color: var(--fp-muted);
    font-size: 0.78rem;
}

.results-interval-cell .result-timing-interval {
    margin-top: 0;
}

.result-status-hint {
    position: relative;
    appearance: none;
    border: 0;
    border-bottom: 1px dashed currentColor;
    padding: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    font-weight: 800;
    line-height: inherit;
    cursor: help;
}

.result-status-hint:hover,
.result-status-hint:focus,
.result-status-hint:focus-visible {
    color: var(--fp-red);
    border-bottom-style: solid;
    outline: none;
}

.result-status-hint::after {
    content: attr(data-status-hint);
    position: absolute;
    z-index: 30;
    left: 50%;
    bottom: calc(100% + 0.35rem);
    width: max-content;
    max-width: 14rem;
    padding: 0.32rem 0.5rem;
    border: 1px solid var(--fp-border);
    border-radius: 0.35rem;
    color: var(--fp-text);
    background: var(--fp-surface);
    box-shadow: 0 0.25rem 0.75rem rgb(0 0 0 / 16%);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%);
    transition: opacity 120ms ease;
}

.result-status-hint:hover::after,
.result-status-hint:focus::after,
.result-status-hint:focus-visible::after {
    opacity: 1;
    visibility: visible;
}

.home-podium-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    height: 100%;
}

.home-podium-driver {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.home-podium-driver-code {
    display: block;
    font-size: 0.95rem;
    font-weight: 900;
}

.event-schedule-mobile {
    display: none;
}

.event-schedule-table {
    min-width: 38rem;
}

.public-table thead th {
    color: var(--fp-muted);
    border-bottom-color: var(--fp-border);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.qualification-sort-button {
    padding: 0;
    border: 0;
    border-bottom: 1px dashed currentColor;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}

.qualification-sort-button:hover,
.qualification-sort-button[aria-pressed="true"] {
    color: var(--fp-text);
    border-bottom-style: solid;
}

.public-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.035);
}

.position-pill {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--fp-surface-2);
    border: 1px solid var(--fp-border);
    font-weight: 900;
}

.results-position-value {
    display: inline-block;
    min-width: 1.5rem;
    color: var(--fp-text);
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 1rem;
}

.stats-grid strong {
    display: block;
    color: var(--fp-text);
    font-size: 1.55rem;
    line-height: 1.2;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid var(--fp-border);
    padding: 0.32rem 0.68rem;
    font-size: 0.78rem;
    font-weight: 800;
}

.status-current,
.status-next {
    color: #fff;
    background: rgba(225, 6, 0, 0.22);
    border-color: rgba(225, 6, 0, 0.72);
}

.status-completed {
    color: #d4d4d8;
    background: rgba(255, 255, 255, 0.07);
}

.status-scheduled {
    color: var(--fp-muted);
    background: rgba(161, 161, 170, 0.08);
}

.results-tabs .nav-link {
    color: var(--fp-muted);
    border-radius: 999px;
    font-weight: 800;
}

.results-tabs .nav-link.active {
    background: var(--fp-red);
    color: #fff;
}

.session-switcher {
    overflow-x: auto;
    scrollbar-width: thin;
}

.session-switcher .nav {
    min-width: max-content;
    flex-wrap: nowrap;
}

.session-switcher .nav-link {
    color: var(--fp-muted);
    border: 1px solid var(--fp-border);
    border-radius: 999px;
    font-weight: 800;
    white-space: nowrap;
}

.session-switcher .nav-link:hover:not(.disabled),
.session-switcher .nav-link:focus-visible {
    color: #fff;
    border-color: rgba(225, 6, 0, 0.72);
}

.session-switcher .nav-link.active {
    background: var(--fp-red);
    border-color: var(--fp-red);
    color: #fff;
}

.session-switcher .nav-link.disabled {
    color: var(--fp-muted);
    opacity: 0.48;
}

.form-select.public-select {
    color: var(--fp-text);
    background-color: var(--fp-surface-2);
    border-color: var(--fp-border);
}

.public-empty-state {
    background-image: radial-gradient(circle at top right, rgba(225, 6, 0, 0.12), transparent 24rem);
}

.results-page-heading,
.results-header-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.results-page-heading {
    position: relative;
    z-index: 1025;
}

.results-control-dropdown .dropdown-toggle {
    min-height: 2.75rem;
    justify-content: space-between;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 800;
}

.results-control-dropdown .dropdown-menu {
    min-width: 100%;
    max-height: min(26rem, 70vh);
    overflow-y: auto;
    padding: 0.45rem;
    border-color: var(--fp-border);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.32);
}

.results-control-dropdown .dropdown-item {
    border-radius: 0.55rem;
    font-weight: 700;
}

.results-control-dropdown .dropdown-item.active {
    background: var(--fp-red);
}

.results-season-dropdown .dropdown-toggle {
    min-width: 0;
    width: max-content;
    max-width: 100%;
}

.results-event-dropdown .dropdown-toggle {
    min-width: 0;
    width: max-content;
    max-width: 100%;
    display: grid !important;
    grid-template-columns: auto minmax(0, max-content) auto;
    justify-content: start !important;
    column-gap: 0.35rem;
}

.results-event-dropdown .dropdown-toggle::after {
    margin-left: 0;
}

.results-event-dropdown .results-dropdown-label {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.results-event-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.results-dropdown-flag {
    width: 1.4rem;
    height: 1rem;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 0.15rem;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.results-dropdown-flag-emoji {
    width: 1.4rem;
    flex: 0 0 auto;
    text-align: center;
    font-family: "Twemoji Mozilla", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.results-session-toolbar {
    position: sticky;
    top: var(--fp-public-header-sticky-height);
    z-index: 1020;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.results-session-switcher {
    flex: 0 1 auto;
    min-width: 0;
    width: max-content;
    max-width: 100%;
    margin: 0;
}

.results-session-switcher .nav-link {
    padding: 0.35rem 0.7rem;
    font-size: 0.82rem;
}

.results-team-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: inherit;
    text-decoration: none;
}

.results-team-link:hover {
    text-decoration: underline;
}

.team-profile-header-drivers {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.55rem;
}

.team-profile-header-driver-list {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
}

.team-profile-header-driver {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    color: inherit;
    text-decoration: none;
}

.team-profile-header-driver:hover,
.team-profile-header-driver:focus-visible {
    color: inherit;
    text-decoration: none;
}

.team-profile-header-driver strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-profile-header-driver-code {
    color: var(--fp-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.profile-results-table > :not(caption) > * > * {
    border-left: 1px solid var(--fp-border);
}

.profile-results-table > :not(caption) > * > :first-child {
    border-left: 0;
}

.profile-event-link {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    color: inherit;
    text-decoration: none;
}

.profile-event-link:hover,
.profile-event-link:focus-visible {
    color: inherit;
    text-decoration: none;
}

.profile-event-title {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    line-height: 1.2;
}

.profile-event-round {
    color: var(--fp-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.profile-event-flag {
    width: 1em;
    max-width: 1em;
    height: 0.7em;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 0.12rem;
}

.profile-event-flag-emoji {
    flex: 0 0 auto;
    line-height: 1;
}

.profile-result-stack {
    display: flex;
    min-height: 1.25rem;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
}

.team-badge {
    --team-badge-color: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.12rem 0.18rem;
    min-width: 2.6rem;
    height: 1.35rem;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 0.42rem;
    background: var(--team-badge-color);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    line-height: 0;
}

.team-badge.is-light {
    box-shadow: inset 0 0 0 1px rgba(11, 11, 15, 0.18);
}

.driver-name-badge,
.team-name-badge {
    --team-badge-color: rgba(255, 255, 255, 0.08);
    display: flex;
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;
    align-items: center;
    gap: 0.55rem;
    min-height: 1.35rem;
    padding-inline: 0.18rem;
    border-radius: 0.42rem;
    background: var(--team-badge-color);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    color: var(--fp-text);
    white-space: nowrap;
}

/* Keep a little breathing room after the longest team-coloured label on every
   Results tab, including the responsive session table. */
.public-main-results .driver-name-badge,
.public-main-results .team-name-badge {
    padding-inline-end: calc(0.18rem + 15px);
}

.driver-name-badge.is-light,
.team-name-badge.is-light {
    box-shadow: inset 0 0 0 1px rgba(11, 11, 15, 0.18);
    color: #111;
}

.public-main .driver-name-badge.is-light > a:not(.btn):not(.nav-link),
.public-main a.team-name-badge.is-light:not(.btn):not(.nav-link) {
    color: #111;
}

.driver-name-badge-logo {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    color: inherit;
}

.driver-name-badge .team-badge,
.team-name-badge .team-badge {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.driver-name-badge > a:not(.driver-name-badge-logo),
.driver-name-badge > span:last-child,
.team-name-badge > span:last-child {
    min-width: 0;
}

.driver-name-badge > a:not(.driver-name-badge-logo),
.team-name-badge strong {
    font-weight: 800;
}

.team-name-badge {
    text-decoration: none;
}

.team-badge-center {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    height: 100%;
    flex: 0 0 auto;
    min-width: 0;
}

.team-badge img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.team-badge-fallback {
    width: 1rem;
    height: 1rem;
    display: block;
    border-radius: 0.22rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.22));
}

@media (min-width: 768px) {
    .session-results-table,
    .session-results-table[data-qualification-table],
    .driver-standings-table,
    .constructor-standings-table {
        width: 100%;
    }

    .season-results-wiki-table {
        width: 100%;
        min-width: max-content;
    }

    .season-results-wiki-table .season-driver-column {
        width: max-content;
        min-width: max-content;
    }

    .driver-name-badge {
        width: max-content;
        min-width: max-content;
    }

    .team-name-badge {
        width: max-content;
        min-width: max-content;
    }
}

@media (max-width: 767.98px) {
    .home-countdown-inner {
        grid-template-columns: minmax(0, 1fr) max-content;
        gap: 0.7rem;
        align-items: center;
    }

    .home-countdown-session {
        display: none;
    }

    .team-badge {
        padding-inline: 0.22rem;
        min-width: 3rem;
        height: 1.5rem;
        border-radius: 0.5rem;
    }

    .team-badge-center {
        width: 100%;
    }

    .team-profile-header-drivers {
        align-items: flex-start;
    }

    .team-profile-header-driver-list {
        align-items: flex-start;
    }

    .team-profile-header-driver {
        justify-content: flex-start;
    }

    .results-mobile-competitor-cell,
    .qualification-mobile-phase-cell,
    .qualification-mobile-gap-cell {
        display: table-cell;
    }

    .results-mobile-competitor,
    .qualification-mobile-phase-buttons,
    .session-label-mobile {
        display: inline-flex;
    }

    .results-mobile-competitor.driver-name-badge {
        display: flex;
    }

    .results-desktop-driver-cell,
    .results-desktop-team-cell,
    .qualification-desktop-phase-cell,
    .session-label-desktop {
        display: none !important;
    }

    .session-switcher {
        overflow-x: visible;
    }

    .session-switcher .nav {
        min-width: 0;
        flex-wrap: wrap;
    }

    .session-switcher .nav-link {
        padding: 0.42rem 0.7rem;
        font-size: 0.78rem;
    }

    .session-results-table,
    .session-results-table[data-qualification-table],
    .driver-standings-table,
    .constructor-standings-table {
        width: 100%;
        min-width: 0;
    }

    .public-table > :not(caption) > * > * {
        padding: 0.42rem 0.32rem;
    }

    .session-results-table thead th {
        font-size: 0.66rem;
        letter-spacing: 0.025em;
    }

    .session-results-table .position-pill,
    .driver-standings-table .position-pill,
    .constructor-standings-table .position-pill {
        width: 1.7rem;
        height: 1.7rem;
        font-size: 0.78rem;
    }

    .public-table > :not(caption) > * > * {
        padding: 0.38rem 0.32rem;
    }

    .public-table .position-pill {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.78rem;
    }

    .results-mobile-competitor-cell {
        width: max-content;
        max-width: max-content;
    }

    .results-mobile-competitor .team-badge {
        min-width: 2.15rem;
        width: 2.15rem;
        height: 1.35rem;
    }

    .session-results-table .results-mobile-driver-name {
        width: max-content;
        max-width: max-content;
        justify-content: flex-start;
        overflow: visible;
        text-overflow: clip;
        font-size: 0.8rem;
        font-weight: 800;
        text-align: left;
    }

    .session-results-table .results-interval-column,
    .session-results-table .results-interval-cell,
    .session-results-table .qualification-laps-cell {
        display: none !important;
    }

    .results-mobile-competitor.driver-name-badge,
    .season-results-wiki-table .season-driver-wiki.driver-name-badge {
        width: max-content;
        min-width: max-content;
        justify-content: flex-start;
        gap: 0.25rem;
    }

    .team-name-badge {
        width: max-content;
        min-width: max-content;
    }

    .season-driver-name-mobile {
        display: inline-block;
        font-weight: 800;
        text-align: left;
    }

    .qualification-mobile-phase-cell {
        white-space: nowrap;
    }

    .qualification-mobile-phase-buttons {
        gap: 0.25rem;
    }

    .qualification-mobile-phase-buttons .qualification-sort-button {
        font-size: 0.62rem;
        letter-spacing: 0;
    }

    .qualification-mobile-gap-cell {
        width: 3.5rem;
        white-space: nowrap;
        font-size: 0.72rem;
    }

    .standings-secondary-stat {
        display: none;
    }

    .event-schedule-desktop {
        display: none;
    }

    .event-schedule-mobile {
        display: grid;
        gap: 0.65rem;
    }

    .event-session-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.65rem;
        padding: 0.8rem;
    }

    .event-session-main {
        min-width: 0;
    }

    .event-navigation {
        align-items: stretch;
    }

    .event-navigation-link {
        max-width: none;
        flex: 1 1 0;
    }

    .event-session-name {
        display: flex;
        min-width: 0;
        align-items: baseline;
        gap: 0.45rem;
        color: var(--fp-text);
        font-weight: 800;
        white-space: nowrap;
    }

    .event-session-title {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .event-session-time {
        flex: 0 0 auto;
        margin-top: 0;
        color: var(--fp-muted);
        font-size: 0.78rem;
        font-weight: 400;
        white-space: nowrap;
    }

    .event-session-action {
        min-width: 0;
        justify-self: end;
        text-align: right;
    }

    .event-session-action .small {
        white-space: nowrap;
    }

    .event-session-action .btn {
        width: max-content;
    }

}

.public-footer {
    border-color: var(--fp-border) !important;
    color: var(--fp-text);
    background: rgba(11, 11, 15, 0.68);
}

@media (max-width: 991.98px) {
    .home-countdown-timer {
        grid-template-columns: repeat(4, minmax(0, max-content));
        gap: 0.24rem;
    }

    .home-countdown-item {
        min-height: 1.45rem;
        min-width: 2.2rem;
        padding: 0.08rem 0.08rem;
        border-radius: 0.4rem;
    }

    .home-countdown-value {
        font-size: 0.7rem;
    }

    .home-countdown-label {
        margin-top: 0.02rem;
        font-size: 0.625rem;
        letter-spacing: 0.04em;
    }

    .home-countdown-label-full {
        display: none;
    }

    .home-countdown-label-short {
        display: inline;
    }
}

@media (max-width: 575.98px) {
    .home-countdown-strip {
        padding-block: 0.14rem;
    }

    .home-countdown-inner {
        grid-template-columns: minmax(0, 1fr) max-content;
        gap: 0.45rem;
    }

    .home-countdown-event-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-countdown-timer {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.12rem;
        width: auto;
    }

    .home-countdown-item {
        flex-direction: row;
        gap: 0.16rem;
        min-height: 1.3rem;
        min-width: 2rem;
        padding: 0.06rem 0.03rem;
        border-radius: 0.3rem;
    }

    .home-countdown-value {
        font-size: clamp(0.84rem, 3.6vw, 1.02rem);
    }

    .home-countdown-label {
        margin-top: 0;
        font-size: 0.56rem;
        letter-spacing: 0.03em;
    }

    .home-countdown-label-short {
        text-transform: none;
    }

    .public-card,
    .hero-card,
    .featured-card {
        border-radius: 1rem;
    }

    .table-responsive {
        border-radius: 0.9rem;
    }

    .public-main {
        padding-inline: 0.85rem;
    }

    .results-page-heading {
        align-items: stretch;
    }

    .public-main-compact-heading {
        padding-top: 0.75rem !important;
    }

    .results-page-heading > h1,
    .results-header-controls {
        width: 100%;
    }

    .results-header-controls {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .results-control-dropdown .dropdown-toggle {
        min-height: 2.5rem;
        padding-inline: 0.6rem;
    }

    .results-season-dropdown {
        flex: 0 0 auto;
    }

    .results-event-dropdown {
        flex: 0 1 auto;
        min-width: 0;
        width: max-content;
        max-width: 100%;
    }

    .results-event-dropdown .dropdown-toggle {
        width: max-content;
        max-width: 100%;
        column-gap: 0.25rem;
    }

    .results-tabs {
        overflow-x: visible;
        flex-wrap: wrap;
        padding-bottom: 0;
    }

    .results-tabs .nav-link {
        white-space: nowrap;
    }

    .results-session-switcher {
        width: 100%;
    }

    .results-session-switcher .nav-link {
        padding: 0.35rem 0.6rem;
        font-size: 0.74rem;
    }

    .results-table-card,
    .standings-table-card {
        padding: 0.65rem !important;
    }

    .calendar-featured-grid,
    .calendar-main-grid,
    .home-news-grid {
        --bs-gutter-y: 0.8rem;
    }

    .calendar-featured-card,
    .calendar-card,
    .home-news-card {
        padding: 1rem !important;
    }

    .home-hero-content {
        align-items: stretch !important;
        flex-direction: column;
    }

    .home-schedule-button {
        width: 100%;
        text-align: center;
    }

    .home-latest-result,
    .event-schedule-card {
        padding: 1rem !important;
    }

    .home-podium-row {
        padding: 0.7rem !important;
    }
}
