:root {
    --bg: #ffffff;
    --bg-soft: #f4f7fb;
    --panel: #ffffff;
    --panel-2: #f7f9fc;
    --line: #d5dde7;
    --text: #0f1720;
    --text-muted: #4a5b6d;
    --accent: #2f8fd3;
    --accent-strong: #1f6fae;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 14px 32px rgba(11, 17, 24, 0.1);
    --container: min(1120px, 92vw);
    --font-title: 'Bebas Neue', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --header-height: 74px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

/* Slim themed scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #2f8fd3 #eef3f9;
}

*::-webkit-scrollbar {
    width: 9px;
}

*::-webkit-scrollbar-track {
    background: #eef3f9;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1f6fae 0%, #2f8fd3 55%, #1f6fae 100%);
    border-radius: 999px;
    border: 2px solid #eef3f9;
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2b80bf 0%, #3f9cdc 55%, #2b80bf 100%);
}

body {
    margin: 0;
    color: var(--text);
    background: radial-gradient(circle at 10% -10%, #f2f7fd 0%, var(--bg) 45%, #ffffff 100%);
    font-family: var(--font-body);
    letter-spacing: 0.2px;
    overflow-x: hidden;
    padding-top: var(--header-height);
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video {
    max-width: 100%;
    display: block;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.section {
    padding: 84px 0;
}

.section.alt {
    background: linear-gradient(180deg, #f8fbff 0%, #f3f7fc 100%);
    border-top: 1px solid #e1e7ef;
    border-bottom: 1px solid #e1e7ef;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.82rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    line-height: 1.06;
}

.page-title,
.section-title,
.hero-title {
    font-family: var(--font-title);
    letter-spacing: 1.2px;
}

.page-title {
    font-size: clamp(2.8rem, 6vw, 4.6rem);
}

.section-title {
    font-size: clamp(2.1rem, 4.7vw, 3.4rem);
}

.lead {
    color: var(--text-muted);
    max-width: 64ch;
    font-size: 1.1rem;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
    border: 1px solid transparent;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(120deg, var(--accent), var(--accent-strong));
    color: #071420;
    box-shadow: 0 12px 26px rgba(47, 143, 211, 0.35);
}

.btn-outline {
    border-color: #a2b2c4;
    color: var(--text);
    background: #ffffff;
}

.btn-outline:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 22px rgba(47, 143, 211, 0.18);
}

.chip {
    display: inline-flex;
    padding: 6px 12px;
    background: rgba(47, 143, 211, 0.12);
    color: var(--accent);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.panel {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
    border: 1px solid #e0e8f0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #dfe6ef;
}

.top-sponsors-bar {
    border-bottom: 1px solid #dce6f0;
    background: #ffffff;
    padding: 10px 0;
}

.top-sponsors-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.top-sponsors-row a {
    height: 34px;
    min-width: 120px;
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid #dde6f0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-sponsors-row img {
    max-height: 22px;
    max-width: 110px;
    object-fit: contain;
}

.topbar {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.top-sponsors-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    margin: 0 10px;
}

.top-sponsors-inline a {
    height: 34px;
    min-width: 92px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.top-sponsors-inline a:hover {
    transform: translateY(-1px);
    opacity: 0.88;
}

.top-sponsors-inline img {
    max-height: 20px;
    max-width: 88px;
    width: auto;
    object-fit: contain;
}

.site-header .topbar {
    width: min(1600px, 98vw);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin-left: clamp(72px, 9vw, 190px);
}

.brand-mark {
    width: auto;
    height: 24px;
    border-radius: 0;
    max-width: 78px;
    max-height: 24px;
    object-fit: contain;
    border: none;
}

.brand-name {
    font-family: var(--font-body);
    font-style: italic;
    font-weight: 700;
    letter-spacing: 1.2px;
    font-size: 1.52rem;
    line-height: 1;
}

.brand-sub {
    color: var(--text-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav a {
    position: relative;
    padding: 10px 12px 13px;
    color: #4d5e71;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.86rem;
    transition: color 0.2s ease;
}

.site-nav a::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px;
    height: 2px;
    background: linear-gradient(90deg, #1f6fae 0%, #2f8fd3 55%, #1f6fae 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.48s ease;
}

.site-nav a:hover {
    color: #0f1720;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
    transform: scaleX(1);
}

.site-nav a.is-active {
    color: #0f1720;
}

.nav-powered {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
    padding-left: 14px;
    border-left: 1px solid #d8e1ec;
    color: #5a6c80;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
}

.nav-powered a {
    padding: 0 !important;
}

.nav-powered a::after {
    display: none !important;
}

.nav-powered img {
    width: 92px;
    height: auto;
    object-fit: contain;
    opacity: 0.95;
}

.nav-socials {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

.nav-socials a {
    padding: 0 !important;
}

.nav-socials a::after {
    display: none !important;
}

.nav-socials img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    opacity: 0.95;
    filter: brightness(0) saturate(100%) invert(23%) sepia(67%) saturate(1130%) hue-rotate(184deg) brightness(90%) contrast(96%);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-socials a:hover img {
    transform: translateY(-1px);
    opacity: 1;
}

.nav-toggle {
    display: none;
    width: auto;
    height: auto;
    padding: 2px 0 2px 8px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-toggle .material-symbols-outlined {
    font-size: 2.05rem;
    line-height: 1;
    letter-spacing: -1px;
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
    color: #0f1720;
    text-shadow: none;
}

.nav-close {
    display: none;
}

.hero {
    min-height: min(88vh, 860px);
    position: relative;
    isolation: isolate;
}

.hero-home {
    clip-path: polygon(0 0, 100% 0, 100% 89%, 0 100%);
    overflow: hidden;
}

.hero-home::after {
    content: '';
    position: absolute;
    right: -4vw;
    bottom: -3vh;
    width: min(42vw, 540px);
    height: min(28vh, 260px);
    background: radial-gradient(circle at 50% 50%, rgba(6, 12, 18, 0.92) 0%, rgba(6, 12, 18, 0.78) 48%, rgba(6, 12, 18, 0) 100%);
    z-index: -1;
    pointer-events: none;
}

.hero.hero-compact {
    min-height: 64vh;
}

.hero-sponsors-corner {
    position: absolute;
    right: clamp(14px, 4vw, 68px);
    bottom: -24px;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #dbe5ef;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 32, 0.12);
}

.hero-sponsors-corner a {
    height: 42px;
    min-width: 120px;
    padding: 8px 10px;
    border: 1px solid #dde6f0;
    border-radius: 10px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-sponsors-corner img {
    max-height: 22px;
    max-width: 96px;
    object-fit: contain;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-media video,
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, rgba(4, 8, 12, 0.84) 15%, rgba(9, 20, 32, 0.55) 55%, rgba(11, 17, 24, 0.9) 100%);
}

.hero-content {
    min-height: inherit;
    display: grid;
    align-content: center;
    gap: 22px;
    padding: 120px 0 90px;
    color: #ffffff;
}

.hero-title {
    font-size: clamp(3.2rem, 8.7vw, 7.1rem);
    max-width: 14ch;
}

.hero-home .hero-title {
    font-family: var(--font-body);
    font-style: italic;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.hero-copy {
    max-width: 60ch;
    color: #e4edf6;
    font-size: 1.13rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 10px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    min-height: 156px;
    border-radius: var(--radius-sm);
    background: rgba(9, 19, 29, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-value {
    font-family: var(--font-title);
    font-size: 2rem;
}

.stat-label {
    font-size: 0.86rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.9px;
}

.hero .stat-value,
.hero .stat-label {
    color: #ffffff;
}

.stat-logo-wrap {
    display: flex;
    flex: 1;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-height: 0;
}

.stat-logo {
    width: auto;
    height: 30px;
    max-width: 160px;
    object-fit: contain;
}

.video-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-weight: 700;
}

.video-toggle:hover {
    border-color: var(--accent);
}

.card {
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid #dde6f0;
    background: linear-gradient(180deg, #ffffff, #f9fbff);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.03rem;
}

.calendar-preview {
    display: grid;
    gap: 10px;
}

.calendar-series-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid #d4e0ec;
    border-radius: 999px;
    background: #ffffff;
    margin-bottom: 10px;
}

.calendar-series-btn {
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.calendar-series-btn.is-active,
.calendar-series-btn:hover {
    color: #0f1720;
    border-color: rgba(47, 143, 211, 0.8);
    background: rgba(47, 143, 211, 0.12);
}

.calendar-series-label {
    margin: 0 0 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.home-calendar-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
    align-items: stretch;
}

.home-race-map-shell {
    position: relative;
    height: 560px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #dbe5ef;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.home-calendar-layout > .event-switcher {
    grid-column: 1 / -1;
}

#homeRaceMap {
    width: 100%;
    height: 100%;
}

.pulse-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #2f8fd3;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 0 rgba(47, 143, 211, 0.6);
    animation: heartbeatPulse 1.25s ease-out infinite;
}

.pulse-marker.is-featured {
    width: 22px;
    height: 22px;
    background: #1f6fae;
    box-shadow: 0 0 0 0 rgba(31, 111, 174, 0.66);
}

.pulse-marker.is-active {
    background: #14578f;
    box-shadow: 0 0 0 0 rgba(20, 87, 143, 0.66);
}

@keyframes heartbeatPulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(47, 143, 211, 0.55);
    }
    45% {
        transform: scale(1.18);
        box-shadow: 0 0 0 9px rgba(47, 143, 211, 0.18);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(47, 143, 211, 0.05);
    }
}

.calendar-item {
    display: grid;
    grid-template-columns: 110px 1fr 170px;
    gap: 14px;
    align-items: center;
    padding: 13px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #dde6f0;
}

.calendar-date {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.86rem;
}

.calendar-track {
    font-weight: 700;
    font-size: 1.08rem;
}

.calendar-country {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.calendar-item img {
    width: 158px;
    max-height: 96px;
    object-fit: contain;
    opacity: 0.85;
    justify-self: end;
}

.store-banner {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 24px;
    overflow: hidden;
}

.store-banner-media {
    min-height: 280px;
}

.store-banner-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-banner-copy {
    padding: 34px;
}

.store-state {
    font-family: var(--font-title);
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    color: var(--accent);
}

.sponsors-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.sponsor-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 104px;
    padding: 14px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #dde6f0;
    transition: transform 0.2s, border-color 0.2s;
}

.sponsor-card:hover {
    transform: translateY(-2px);
    border-color: rgba(47, 143, 211, 0.55);
}

.sponsor-card img {
    width: auto;
    max-height: 44px;
    object-fit: contain;
}

.sponsor-marquee-section {
    padding: 30px 0 10px;
}

.sponsor-marquee-section .container {
    width: 100%;
    max-width: none;
    margin: 0;
}

.sponsor-marquee-wrap {
    border-top: 1px solid #dce6f0;
    border-bottom: 1px solid #dce6f0;
    overflow: hidden;
    background: #ffffff;
}

.sponsor-marquee-track {
    display: flex;
    align-items: center;
    gap: 16px;
    width: max-content;
    min-width: 200%;
    padding: 16px 8px;
    animation: sponsorMarquee 28s linear infinite;
}

.sponsor-marquee-wrap:hover .sponsor-marquee-track {
    animation-play-state: paused;
}

.sponsor-marquee-item {
    min-width: 180px;
    height: 76px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #dde6f0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.sponsor-marquee-item:hover {
    transform: translateY(-2px);
    border-color: rgba(47, 143, 211, 0.55);
}

.sponsor-marquee-item img {
    max-width: 140px;
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.sponsor-marquee-item img.marquee-pivot {
    filter: brightness(0) saturate(100%);
}

@keyframes sponsorMarquee {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}

.split-media {
    display: grid;
    grid-template-columns: 1.12fr 1fr;
    gap: 24px;
    align-items: center;
}

.media-frame {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #dde6f0;
    box-shadow: var(--shadow);
    background: #ffffff;
}

.media-frame img,
.media-frame video {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}

.list-clean {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.list-clean li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.list-clean .material-symbols-outlined {
    color: var(--accent);
    font-size: 1.2rem;
}

.timeline {
    display: grid;
    gap: 12px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 14px;
    align-items: stretch;
}

.timeline-year {
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(47, 143, 211, 0.15);
    color: var(--accent);
    font-weight: 700;
    font-size: 1.08rem;
}

.timeline-content {
    border-radius: 12px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #dde6f0;
}

.timeline-content p {
    margin: 0;
    color: var(--text-muted);
}

.milestones-feature-section {
    padding-top: 70px;
}

.milestone-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    align-items: stretch;
    margin-bottom: 34px;
}

.milestone-feature:last-child {
    margin-bottom: 0;
}

.milestone-feature-reverse .milestone-media {
    order: 2;
}

.milestone-feature-reverse .milestone-copy {
    order: 1;
}

.milestone-media {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #dde6f0;
    background: #0e1721;
    min-height: 340px;
}

.milestone-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.milestone-copy {
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid #dde6f0;
    border-radius: 16px;
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.milestone-year {
    font-family: var(--font-title);
    font-size: clamp(2.1rem, 5vw, 3.5rem);
    color: #97a8bb;
    letter-spacing: 1.2px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

.milestone-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(47, 143, 211, 0.18);
    flex-shrink: 0;
}

.milestone-title {
    font-size: clamp(1.5rem, 3.3vw, 2.2rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.milestone-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    color: var(--text-muted);
    font-size: 1.03rem;
}

.art-section {
    background: linear-gradient(90deg, #f9fcff 0%, #f1f6fc 48%, #edf4fb 100%);
}

.art-layout {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 0;
    border: none;
    border-radius: 0;
    overflow: hidden;
    min-height: 500px;
}

.art-image-frame {
    min-height: 500px;
}

.art-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.art-content-area {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(244, 249, 255, 0.9) 100%);
}

.art-card {
    width: 100%;
    max-width: 560px;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 8px 4px 8px 0;
}

.art-title {
    font-family: var(--font-title);
    font-size: clamp(2rem, 4.8vw, 3.2rem);
    line-height: 0.95;
    letter-spacing: 1px;
    margin: 8px 0 14px;
    text-transform: uppercase;
}

.art-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
    color: #30465c;
    font-size: 1.02rem;
    line-height: 1.5;
}

.art-list strong {
    color: #0f1720;
}

.career-map-shell {
    position: relative;
    height: 560px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #dbe5ef;
    box-shadow: var(--shadow);
    background: #ffffff;
}

.home-race-map-shell .leaflet-top,
.career-map-shell .leaflet-top {
    z-index: 560;
}

.home-race-map-shell .leaflet-right .leaflet-control,
.career-map-shell .leaflet-right .leaflet-control {
    margin-right: 12px;
}

.home-race-map-shell .leaflet-top .leaflet-control,
.career-map-shell .leaflet-top .leaflet-control {
    margin-top: 12px;
}

.career-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
    align-items: stretch;
}

#careerMap {
    width: 100%;
    height: 100%;
}

.map-panel {
    position: absolute;
    left: auto;
    right: 18px;
    bottom: 18px;
    z-index: 500;
    width: min(460px, calc(100% - 36px));
    max-width: 460px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #d7e3ef;
    box-shadow: 0 12px 26px rgba(15, 23, 32, 0.16);
    display: none;
    overflow: hidden;
}

.map-panel.is-visible {
    display: block;
}

.map-panel-header {
    padding: 16px 18px 10px;
}

.map-panel-title {
    font-size: 1.7rem;
    font-family: var(--font-title);
}

.map-panel-sub {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.map-panel-grid {
    display: grid;
    grid-template-columns: 1fr 104px;
    gap: 10px;
    padding: 0 18px 18px;
}

.map-track-thumb {
    display: grid;
    place-items: center;
    background: #f4f8fd;
    border-radius: 10px;
    min-height: 110px;
    padding: 8px;
}

.map-track-thumb img {
    max-height: 90px;
    object-fit: contain;
}

.map-metrics {
    display: grid;
    gap: 8px;
}

.metric {
    padding: 8px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #dce6f0;
    text-align: center;
}

.metric strong {
    display: block;
    font-size: 1.05rem;
}

.metric span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.map-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    color: #0f1720;
    cursor: pointer;
}

.next-stop-ticket {
    padding: 18px;
    border-radius: 14px;
    background: linear-gradient(140deg, #ffffff 0%, #f4f9ff 100%);
    border: 1px solid rgba(47, 143, 211, 0.35);
    box-shadow: 0 12px 26px rgba(15, 23, 32, 0.12);
    min-height: 560px;
    height: 560px;
    display: grid;
    grid-template-rows: auto auto auto auto 1fr auto;
    align-content: start;
}

.next-stop-ticket h3 {
    font-size: 1.8rem;
    margin: 4px 0;
}

.next-stop-meta {
    margin: 0;
    color: var(--text-muted);
}

.event-live-pill {
    width: fit-content;
    margin: 2px 0 0;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(20, 87, 143, 0.35);
    background: rgba(20, 87, 143, 0.08);
    color: #14578f;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.74rem;
    font-weight: 700;
}

.time-missing-line {
    margin-top: 8px;
    font-family: var(--font-title);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: #0f1720;
    line-height: 1;
}

.time-sep {
    opacity: 0.55;
    padding: 0 6px;
}

.time-missing-label {
    margin: 4px 0 0;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    font-size: 0.78rem;
}

.next-stop-layout-thumb {
    margin-top: 12px;
    border-radius: 12px;
    border: 1px solid #dce6f0;
    background: #f6f9fd;
    min-height: 170px;
    display: grid;
    place-items: center;
    padding: 12px;
}

.next-stop-layout-thumb img {
    max-height: 142px;
    object-fit: contain;
}

.next-stop-metrics {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.countdown-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.countdown-box {
    padding: 10px 8px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #dce6f0;
    text-align: center;
}

.countdown-box strong {
    display: block;
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: #0f1720;
}

.countdown-box span {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.event-switcher {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.event-chip {
    border: 1px solid #cdd9e6;
    color: var(--text-muted);
    background: #ffffff;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    cursor: pointer;
}

.event-chip.is-active,
.event-chip:hover {
    background: rgba(47, 143, 211, 0.14);
    border-color: rgba(47, 143, 211, 0.8);
    color: #0f1720;
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.sponsor-feature {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 18px;
    align-items: center;
    padding: 20px;
}

.sponsor-feature-logo {
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    min-height: 92px;
}

.sponsor-feature-logo img {
    max-width: 120px;
    max-height: 48px;
    object-fit: contain;
}

.sponsor-feature p {
    margin: 7px 0 12px;
    color: var(--text-muted);
}

.sponsor-feature-link {
    color: inherit;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.sponsor-feature-link:hover {
    border-color: rgba(47, 143, 211, 0.55);
    box-shadow: 0 20px 34px rgba(0, 0, 0, 0.32);
}

.sponsor-link-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--accent);
}

.sponsors-minimal {
    background: #ececec;
    color: #0d0f12;
}

.sponsors-label {
    margin: 0 0 18px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
    color: #14578f;
}

.sponsors-list-minimal {
    border-top: 1px solid #b8b8b8;
    border-bottom: 1px solid #b8b8b8;
}

.sponsor-row {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: center;
    padding: 26px 0;
    border-top: 1px solid #b8b8b8;
}

.sponsor-row:first-child {
    border-top: none;
}

.sponsor-row:nth-child(even) {
    grid-template-columns: 1.35fr 0.65fr;
}

.sponsor-row-logo {
    min-height: 90px;
    display: grid;
    place-items: center;
    padding: 0 16px;
}

.sponsor-row-logo img {
    max-width: 220px;
    max-height: 90px;
    object-fit: contain;
}

.sponsor-row-content h3 {
    margin: 0 0 8px;
    font-size: clamp(1.6rem, 2.7vw, 2.25rem);
    letter-spacing: 0.2px;
    color: #090a0c;
}

.sponsor-row-content p {
    margin: 0 0 14px;
    color: #1f252d;
    font-size: 1.03rem;
    max-width: 88ch;
}

.sponsor-visit {
    display: inline-block;
    background: linear-gradient(130deg, #14578f, #1f6fae);
    color: #ffffff;
    font-weight: 700;
    padding: 10px 22px;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.sponsor-visit:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.contact-wrap {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 22px;
}

.contact-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.contact-list a {
    color: var(--accent);
    font-weight: 700;
}

.contact-form {
    display: grid;
    gap: 12px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

label {
    display: grid;
    gap: 6px;
    font-weight: 600;
    color: var(--text-muted);
}

input,
textarea,
select {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #cfdbe8;
    background: #ffffff;
    color: #0f1720;
    padding: 12px;
    font-family: inherit;
    font-size: 1rem;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid rgba(47, 143, 211, 0.6);
    outline-offset: 1px;
    border-color: rgba(47, 143, 211, 0.8);
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: none;
    place-items: center;
    background: rgba(2, 8, 13, 0.72);
    padding: 18px;
}

.modal.is-visible {
    display: grid;
}

.modal-card {
    width: min(460px, 100%);
    padding: 24px;
}

.modal-card h3 {
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.footer {
    border-top: 1px solid #dbe5ef;
    background: #f8fbff;
    padding: 26px 0;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer a {
    color: var(--text-muted);
}

.footer a:hover {
    color: var(--accent);
}

.footer-powered {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5a6c80;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
}

.footer-powered img {
    width: 90px;
    height: auto;
    object-fit: contain;
    opacity: 0.96;
    filter: brightness(0) saturate(100%);
}

.footer-socials {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-socials img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    opacity: 0.95;
    filter: brightness(0) saturate(100%) invert(23%) sepia(67%) saturate(1130%) hue-rotate(184deg) brightness(90%) contrast(96%);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-socials a:hover img {
    transform: translateY(-1px);
    opacity: 1;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.mt-12 {
    margin-top: 12px;
}

.mt-14 {
    margin-top: 14px;
}

.mt-16 {
    margin-top: 16px;
}

@media (max-width: 1080px) {
    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .store-banner,
    .split-media,
    .contact-wrap {
        grid-template-columns: 1fr;
    }

    body[data-page="about"] .split-media > article.card {
        order: -1;
    }

    body[data-page="about"] .split-media > .media-frame {
        order: 1;
    }

    body[data-page="about"] .art-layout > .art-content-area {
        order: -1;
    }

    body[data-page="about"] .art-layout > .art-image-frame {
        order: 1;
    }
}

@media (max-width: 900px) {
    .top-sponsors-inline {
        display: none;
    }

    .brand {
        margin-left: 0;
    }

    .site-nav {
        position: fixed;
        inset: 0;
        width: 100%;
        max-width: 100%;
        height: 100dvh;
        min-height: 100dvh;
        max-height: 100dvh;
        background: rgba(248, 252, 255, 0.98);
        border: none;
        border-radius: 0;
        padding: 96px 26px 28px 54px;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s, transform 0.2s;
        overflow-y: auto;
        overscroll-behavior: contain;
        z-index: 2200;
    }

    .nav-close {
        display: inline-flex;
        position: absolute;
        top: 18px;
        right: 18px;
        border: none;
        background: transparent;
        color: #0f1720;
        cursor: pointer;
        padding: 4px;
        align-items: center;
        justify-content: center;
    }

    .nav-close .material-symbols-outlined {
        font-size: 2rem;
        line-height: 1;
        font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
    }

    .site-nav::before {
        content: '';
        position: absolute;
        left: 26px;
        top: 78px;
        bottom: 28px;
        width: 1px;
        background: linear-gradient(180deg, rgba(47, 143, 211, 0.85) 0%, rgba(31, 111, 174, 0.4) 100%);
    }

    .site-nav::after {
        content: '';
        position: absolute;
        left: 24px;
        top: var(--nav-dot-y, 140px);
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: radial-gradient(circle, #5ba6d8 0%, #2f8fd3 40%, rgba(47, 143, 211, 0.2) 100%);
        box-shadow: 0 0 0 8px rgba(47, 143, 211, 0.12);
        transition: top 0.28s ease;
    }

    .site-nav a::after {
        display: none;
    }

    .site-nav a {
        padding: 9px 0 11px;
        font-size: 1.15rem;
        letter-spacing: 1.6px;
        width: fit-content;
    }

    .nav-powered {
        margin: 18px 0 0 0;
        padding-left: 0;
        border-left: none;
        font-size: 0.8rem;
    }

    .nav-powered img {
        width: 110px;
    }

    .nav-socials {
        margin: 14px 0 0 0;
        gap: 12px;
    }

    .nav-socials img {
        width: 22px;
        height: 22px;
    }

    .footer-powered {
        width: 100%;
        justify-content: flex-start;
    }

    .site-nav a:hover,
    .site-nav a.is-active {
        background: transparent;
        border-radius: 0;
    }

    .site-nav.is-open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .home-calendar-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 76vh;
    }

    .hero-content {
        padding-top: 96px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-sponsors-corner {
        right: 12px;
        bottom: -16px;
        padding: 6px;
        gap: 8px;
    }

    .hero-sponsors-corner a {
        min-width: 92px;
        height: 36px;
        padding: 6px 8px;
    }

    .hero-sponsors-corner img {
        max-height: 18px;
        max-width: 76px;
    }

    .career-map-shell {
        height: 470px;
    }

    .home-race-map-shell {
        height: 470px;
    }

    .career-map-layout {
        grid-template-columns: 1fr;
    }

    .next-stop-ticket {
        min-height: auto;
        height: auto;
        grid-template-rows: none;
    }

    .map-panel {
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
    }

    .map-panel-grid {
        grid-template-columns: 1fr;
    }

    .countdown-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sponsors-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sponsor-marquee-item {
        min-width: 150px;
        height: 68px;
    }

    .sponsor-marquee-item img {
        max-width: 116px;
        max-height: 34px;
    }

    .top-sponsors-row {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .top-sponsors-row a {
        min-width: 110px;
    }

    .sponsor-grid {
        grid-template-columns: 1fr;
    }

    .sponsor-feature {
        grid-template-columns: 1fr;
    }

    .sponsor-row,
    .sponsor-row:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sponsor-row-logo {
        min-height: 74px;
        padding: 0;
        order: 1;
        justify-items: center;
    }

    .sponsor-row-logo img {
        max-width: 170px;
        max-height: 70px;
    }

    .sponsor-row-content {
        order: 2;
        width: 100%;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .timeline-year {
        width: fit-content;
        min-width: 90px;
        padding: 8px 12px;
    }

    .milestone-feature,
    .milestone-feature-reverse {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .milestone-feature-reverse .milestone-media,
    .milestone-feature-reverse .milestone-copy {
        order: initial;
    }

    .milestone-media {
        min-height: 240px;
    }

    .art-layout {
        grid-template-columns: 1fr;
    }

    .art-image-frame {
        min-height: 300px;
    }

    .art-content-area {
        padding: 18px;
    }
}

@media (max-width: 640px) {
    :root {
        --header-height: 66px;
    }

    .section {
        padding: 68px 0;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .calendar-item {
        grid-template-columns: 95px 1fr 132px;
        gap: 10px;
    }

    .calendar-item img {
        width: 124px;
        max-height: 78px;
        justify-self: end;
    }

    .countdown-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-title {
        font-size: clamp(2.6rem, 16vw, 4.3rem);
    }

    .hero-home {
        clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
    }

    .topbar {
        min-height: 66px;
    }

    .site-nav {
        padding-top: 86px;
    }
}

