/*
Theme Name: Vets Racing 2026
Author: Antigravity
Description: A lightweight, custom-coded high-performance theme for iRacing League.
Version: 1.0.2
*/

:root {
    /* Color Palette */
    --primary-racing-blue: #00009D;
    --primary-racing-red: #AC0511;
    --primary-racing-grey: #697171;

    --background-dark: #000000; /* Pure black for consistent backgrounds */
    --surface-dark: #1E1E1E; /* Lighter gray only for cards/boxes, NOT backgrounds */
    --text-main: #FFFFFF;

    /* Spacing & Layout */
    --header-height: auto; /* stacked logo + chip nav; avoid fixed px */
    --page-hero-padding-top: 8.5rem; /* clear sticky header on inner pages */
    --container-max-width: 1400px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-padding-top: 8.5rem; /* anchor links clear sticky header */
}

body {
    background-color: #000000; /* Pure black - consistent across all pages */
    color: var(--text-main);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    overflow-y: auto; /* Ensure vertical scrolling works - single scrollbar at viewport level */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Arial Black', 'Arial Bold', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Sticky header: centered brand row + full-width chip nav */
.site-header {
    background-color: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-racing-red);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    height: auto;
    min-height: 0;
}

.header-inner {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.header-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 0 0.35rem;
    width: 100%;
}

.site-logo {
    font-family: 'Arial Black', 'Arial Bold', Arial, sans-serif;
    font-size: 1.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    row-gap: 0.5rem;
}

.site-logo .logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-tagline {
    font-family: 'Arial', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: normal;
    text-align: left;
    max-width: min(100%, 36rem);
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    padding-left: 1.5rem;
}

.main-navigation {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 0.75rem 0.85rem;
}

/* Dash rail — matches Results/Standings chrome panel */
.main-navigation .nav-chips {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0 auto;
    padding: 0.45rem 0.55rem;
    justify-content: center;
    align-items: center;
    gap: 0.3rem 0.35rem;
    width: 100%;
    max-width: 1400px;
    background:
        linear-gradient(145deg, rgba(0, 0, 157, 0.14) 0%, rgba(0, 0, 0, 0.5) 48%, rgba(172, 5, 17, 0.08) 100%),
        rgba(8, 10, 18, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 10px 28px rgba(0, 0, 0, 0.35);
}

.main-navigation .nav-chips > li {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: none;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.main-navigation .nav-chips > li:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
    box-shadow: none;
}

.main-navigation .nav-chips > li.current-menu-item,
.main-navigation .nav-chips > li.current_page_item {
    background: var(--primary-racing-blue);
    border-color: var(--primary-racing-blue);
    box-shadow: 0 0 0 1px rgba(120, 160, 255, 0.35), 0 0 18px rgba(0, 0, 157, 0.45);
}

.main-navigation .nav-chips > li.current-menu-item:hover,
.main-navigation .nav-chips > li.current_page_item:hover {
    background: var(--primary-racing-blue);
    border-color: var(--primary-racing-blue);
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(120, 160, 255, 0.45), 0 0 22px rgba(0, 0, 157, 0.55);
}

.main-navigation .nav-chips > li > a {
    display: inline-flex;
    align-items: center;
    padding: 0.48rem 0.95rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.82);
    border: none;
    background: transparent;
    white-space: nowrap;
}

.main-navigation .nav-chips > li > a:hover {
    color: #fff;
}

.main-navigation .nav-chips > li.current-menu-item > a,
.main-navigation .nav-chips > li.current_page_item > a {
    color: #fff;
}

/* Reusable chip — standalone (outside rail) keeps a light outline */
.vets-chip-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.42rem 0.95rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.vets-chip-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Registration chip: link + OPEN/CLOSED badge inside same pill */
.main-navigation .nav-chips > li.nav-chip--registration {
    gap: 0;
    padding-right: 0.35rem;
    overflow: visible;
}

.main-navigation .nav-chips > li:has(.registration-status-inline) {
    gap: 0;
    padding-right: 0.35rem;
    overflow: visible;
}

.main-navigation .nav-chips > li > .registration-status-inline {
    flex-shrink: 0;
    margin-left: 0;
    margin-right: 0.35rem;
    border-radius: 999px;
    font-size: 0.62rem;
    padding: 0.2rem 0.5rem;
}

.main-navigation a:hover {
    color: inherit;
}

.main-navigation .nav-chips > li > a:hover {
    color: #fff;
}

/* Registration Status Indicator - Inline after Registration menu item */
.registration-status-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 0.5rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Arial', sans-serif;
    vertical-align: middle;
}

.registration-status-inline .status-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.registration-status-inline.status-open {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.registration-status-inline.status-open .status-indicator {
    background: #4CAF50;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.6);
}

.registration-status-inline.status-open .status-text {
    color: #4CAF50;
}

.registration-status-inline.status-closed {
    background: rgba(172, 5, 17, 0.15);
    border: 1px solid rgba(172, 5, 17, 0.4);
}

.registration-status-inline.status-closed .status-indicator {
    background: var(--primary-racing-red);
    box-shadow: 0 0 6px rgba(172, 5, 17, 0.6);
}

.registration-status-inline.status-closed .status-text {
    color: var(--primary-racing-red);
}

/* Alternative: Status as separate menu item (fallback if inline doesn't work) */
.registration-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Arial', sans-serif;
}

.registration-status .status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.registration-status.status-open {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.registration-status.status-open .status-indicator {
    background: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
}

.registration-status.status-open .status-text {
    color: #4CAF50;
}

.registration-status.status-closed {
    background: rgba(172, 5, 17, 0.15);
    border: 1px solid rgba(172, 5, 17, 0.4);
}

.registration-status.status-closed .status-indicator {
    background: var(--primary-racing-red);
    box-shadow: 0 0 8px rgba(172, 5, 17, 0.6);
}

.registration-status.status-closed .status-text {
    color: var(--primary-racing-red);
}

/* Ethnocentric Font - Add font files to assets/fonts/ folder */
/* Font will be loaded via functions.php if files exist */


/* Hero Carousel Section */
.hero-carousel-section {
    position: relative;
    width: 100%;
    background-color: #000;
    overflow: hidden;
    padding-top: 1rem;
    margin: 0;
    margin-bottom: calc(-56.25vw * 0.32); /* Pull up by 32% of container height (56.25vw is 16:9 height) */
}

.hero-carousel-container {
    position: relative;
    width: 100%;
    background-color: #000;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    max-width: 100vw;
    margin: 0 auto;
    transform: scale(0.68); /* Scale visually to 68% */
    transform-origin: top center;
}

.hero-carousel {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden; /* Contain the carousel track */
}

/* Fallback for older browsers */
@supports not (aspect-ratio: 16 / 9) {
    .hero-carousel-container {
        height: 0;
        padding-bottom: 56.25%;
        position: relative;
    }
}


.carousel-track {
    display: flex;
    width: auto;
    height: 100%;
    will-change: transform;
    flex-shrink: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-image-container {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    aspect-ratio: 16 / 9;
    width: 100vw;
    min-width: 100vw;
    opacity: 1;
    transition: opacity 1.5s ease-in-out;
}

.carousel-image-container.fade-out {
    opacity: 0;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Show full image without cropping */
    object-position: center;
    display: block;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Season Display Section */
.season-display-section {
    background-color: #000;
    padding: 0.5rem 2rem;
    text-align: center;
    margin-top: 0.5rem; /* Small gap from carousel */
    position: relative;
    z-index: 2;
}

.season-container {
    max-width: 1400px;
    margin: 0 auto;
}

.season-title {
    font-family: 'Ethnocentric', 'Ethnocentric Italic', sans-serif;
    font-style: italic;
    font-size: 6rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 2rem 0; /* Increased bottom margin to add gap before info boxes */
    display: inline-block;
}

.season-word {
    color: #25AAE1;
    -webkit-text-stroke: 3px #000;
    text-stroke: 3px #000;
    text-shadow: 
        -3px -3px 0 #000,
        3px -3px 0 #000,
        -3px 3px 0 #000,
        3px 3px 0 #000,
        0 0 20px rgba(37, 170, 225, 0.5);
}

.season-number {
    color: #fff;
    -webkit-text-stroke: 3px #000;
    text-stroke: 3px #000;
    text-shadow: 
        -3px -3px 0 #000,
        3px -3px 0 #000,
        -3px 3px 0 #000,
        3px 3px 0 #000;
    margin-left: 1rem;
}

.season-partner {
    margin: -1rem 0 0.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.season-partner__label {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.season-partner__link {
    font-size: 0.8rem;
}

/* Info Graphics Section */
.info-graphics-section {
    background-color: #000;
    padding: 1.5rem 2rem 2rem 2rem; /* Increased top padding to ensure boxes aren't cut off */
    margin-top: 0; /* Reset margin to use padding for spacing */
}

.info-graphics-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.info-graphic-box {
    width: 100%;
    aspect-ratio: 400 / 100; /* Changed from 350/180 to 400/100 for wider, shorter boxes */
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.info-graphic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.info-placeholder {
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    font-size: 0.9rem;
    padding: 1rem;
    line-height: 1.6;
}

/* Legacy Hero Section (for other pages) */
.hero-section {
    position: relative;
    width: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    max-height: 90vh;
    overflow: visible; /* Ensure no inner scrollbar - let body scroll instead */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, var(--background-dark) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.glass-box {
    position: relative;
    z-index: 2;
    padding: 3rem 4rem;
    max-width: 800px;
    /* Slanted background via pseudo-element to prevent blurry text */
}

.glass-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: skew(-5deg);
    z-index: -1;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-box-content {
    /* No transform needed - keeps text sharp */
    text-align: center;
}

.hero-title {
    font-family: "Exo 2", sans-serif;
    font-style: italic;
    font-weight: 800;
    font-size: 4rem;
    line-height: 1.15;
    margin-bottom: 0;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    /* Silver gradient + bold black edge (approved news header look) */
    background-image: linear-gradient(180deg, #ffffff 0%, #e8e8f0 48%, #c4c4d0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    -webkit-text-stroke: 0;
    filter:
        drop-shadow(1.5px 0 0 #000)
        drop-shadow(-1.5px 0 0 #000)
        drop-shadow(0 1.5px 0 #000)
        drop-shadow(0 -1.5px 0 #000)
        drop-shadow(1px 1px 0 #000)
        drop-shadow(-1px 1px 0 #000)
        drop-shadow(1px -1px 0 #000)
        drop-shadow(-1px -1px 0 #000);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0);
}

/* Driver profile name: keep readable solid fill (spans / mixed case) */
.hero-title.driver-header__name {
    background-image: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    filter: none;
    -webkit-text-stroke: 1.5px #000;
    paint-order: stroke fill;
    text-shadow:
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000;
    text-transform: none;
    letter-spacing: 0.02em;
}

/* Subtle silver sweep effect for selected page headings */
.vets-silver-sweep-title {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
}

.vets-silver-sweep-title::after {
    content: '';
    position: absolute;
    top: -35%;
    left: -35%;
    width: 18%;
    height: 170%;
    pointer-events: none;
    background: linear-gradient(
        110deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(214, 219, 225, 0.08) 35%,
        rgba(255, 255, 255, 0.42) 50%,
        rgba(214, 219, 225, 0.08) 65%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(-220%) skewX(-24deg);
    animation: vets-silver-sweep 8.8s ease-in-out infinite;
}

@keyframes vets-silver-sweep {
    0% {
        transform: translateX(-220%) skewX(-24deg);
    }
    24% {
        transform: translateX(-220%) skewX(-24deg);
    }
    52% {
        transform: translateX(520%) skewX(-24deg);
    }
    100% {
        transform: translateX(520%) skewX(-24deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .vets-silver-sweep-title::after {
        content: none;
    }
}

/* Fix blurry title on paint submission page - REDUCE FONT SIZE */
.paint-submission-page .hero-title {
    font-size: 3rem !important; /* Reduced from 4rem to fix blur at large sizes */
    transform: none !important; /* Remove transform to prevent blur */
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
    will-change: auto !important;
    backface-visibility: visible !important;
}

/* Ensure all text in paint submission is crisp - INCLUDING HEADERS */
.paint-submission-page h1,
.paint-submission-page h2,
.paint-submission-page h3,
.paint-submission-page h4,
.paint-submission-page .hero-title,
.paint-submission-content .fluentform h2,
.paint-submission-content .fluentform h3,
.paint-submission-content .fluentform h4 {
    transform: none !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
    will-change: auto !important;
    backface-visibility: visible !important;
    filter: none !important;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-racing-red);
    margin-top: 1rem;
    display: block;
}

/* Multimedia Hub */
.multimedia-hub {
    padding: 4rem 2rem;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.hub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.racing-monitor {
    background: var(--surface-dark);
    padding: 1rem;
    border: 1px solid #333;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(0, 0, 157, 0.2);
    /* Subtle blue glow base */
    transition: box-shadow 0.3s ease;
    position: relative;
}

/* Glow Border Effect specifically requested */
.racing-monitor::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 4px;
    padding: 2px;
    background: linear-gradient(45deg, var(--primary-racing-blue), var(--primary-racing-red));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

.racing-monitor:hover {
    box-shadow: 0 0 25px rgba(172, 5, 17, 0.4);
}

.monitor-content {
    background: #000;
    aspect-ratio: 16 / 9;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    position: relative;
    z-index: 2;
}

.monitor-label {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--primary-racing-grey);
    display: inline-block;
    padding-bottom: 0.25rem;
}

/* Sponsor Marquee */
.sponsor-footer {
    background-color: #000;
    padding: 2rem 0;
    overflow: hidden;
    border-top: 2px solid var(--primary-racing-blue);
}

.marquee-track {
    display: flex;
    width: calc(200px * 10);
    /* Estimate width */
    animation: scroll 20s linear infinite;
    gap: 4rem;
}

.sponsor-logo {
    height: 80px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sponsor-footer:hover .marquee-track {
    animation-play-state: paused;
}

.sponsor-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-150px * 5 - 20rem));
    }

    /* Adjust based on content */
}

/* Footer Bottom */
.site-footer-bottom {
    background-color: #000000; /* Pure black to match page background */
    padding: 1rem 2rem;
    font-size: 0.9rem;
    color: #888;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
}

/* Extra spacing before footer on results page */
.site-main {
    margin-bottom: 0;
}

/* Add spacing when main contains results */
.site-main:has(.results-section) {
    padding-bottom: 15rem;
    margin-bottom: 5rem;
}

/* Fallback for browsers without :has() support */
.site-main.results-main {
    padding-bottom: 15rem;
    margin-bottom: 5rem;
}

.site-footer {
    margin-top: 0;
    position: relative;
    z-index: 1;
    clear: both;
    background-color: #000000; /* Match page background */
}

/* Fix footer positioning for paint submission - SIMPLE APPROACH */
/* Use WordPress body class that gets added: page-template-page-paint-submission-php */
body.page-template-page-paint-submission-php,
body:has(.paint-submission-main) {
    position: relative;
}

/* Main content area - ensure it expands to full content height */
body.page-template-page-paint-submission-php #primary.site-main,
body.page-template-page-paint-submission-php .site-main.paint-submission-main,
body:has(.paint-submission-main) #primary.site-main,
body:has(.paint-submission-main) .site-main.paint-submission-main {
    min-height: auto !important;
    height: auto !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    overflow: visible !important;
}

/* Section - ensure full content height */
body.page-template-page-paint-submission-php .paint-submission-page,
body:has(.paint-submission-main) .paint-submission-page {
    min-height: auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 10rem !important; /* Large padding to push footer down */
}

/* Form container - no height constraints */
body.page-template-page-paint-submission-php .paint-form-container.glass-box,
body:has(.paint-submission-main) .paint-form-container.glass-box {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Hide any sponsor marquee that appears in the wrong place (inside form content) */
.paint-submission-content .sponsor-footer,
.paint-submission-content .marquee-container,
.paint-submission-content .marquee-track,
.paint-submission-page .sponsor-footer:not(.site-footer .sponsor-footer) {
    display: none !important;
}

/* Ensure footer appears at bottom - PAINT SUBMISSION SPECIFIC */
body.page-template-page-paint-submission-php .site-footer,
body:has(.paint-submission-main) .site-footer {
    margin-top: 0 !important;
    position: relative !important; /* Not absolute/fixed */
    clear: both !important;
    display: block !important;
}

.site-footer-legal {
    margin: 0;
}

.site-footer-admin-login {
    color: #b8bcc4;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-footer-admin-login:hover,
.site-footer-admin-login:focus {
    color: #fff;
}

.site-footer-legal-sep {
    color: #666;
}

.footer-credits {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-credits img {
    height: 30px;
    width: auto;
}

/* Inner Page Hero Section (Non-Fixed Height) */
.hero-section-page {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important; /* Remove max-height constraint from base .hero-section */
    overflow: visible !important; /* Ensure no inner scrollbar - let body scroll */
    display: block !important;
    align-items: normal !important;
    justify-content: normal !important;
    background-color: #000000 !important; /* Ensure consistent black background */
}

/* Paint submission page - remove ALL height constraints from .hero-section */
.hero-section.paint-submission-page,
.hero-section.hero-section-page.paint-submission-page,
body.page-template-page-paint-submission-php .hero-section.paint-submission-page,
body:has(.paint-submission-main) .hero-section.paint-submission-page {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important; /* Remove 16:9 aspect ratio constraint */
    overflow: visible !important;
    display: block !important; /* Remove flex from .hero-section */
    align-items: normal !important;
    justify-content: normal !important;
}

/* Rule consolidated above - removed duplicate */

/* Calendar Page — Option B: round banner (top) + season poster (bottom) */
.calendar-page-section {
    padding: var(--page-hero-padding-top) 2rem 4rem 2rem;
}

.calendar-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.calendar-container .hero-title {
    text-align: center;
    margin-bottom: 2rem;
}

.calendar-stacked-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

/* Calendar graphic mounts — horizontal regs-style rails + strong border */
.calendar-mount {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0.85rem 0.75rem;
    border-radius: 16px;
    border: 1px solid rgba(160, 190, 255, 0.38);
    background:
        linear-gradient(155deg, rgba(18, 24, 48, 0.92) 0%, rgba(6, 8, 14, 0.96) 45%, rgba(22, 10, 14, 0.92) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -1px 0 rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(0, 0, 0, 0.55),
        0 18px 48px rgba(0, 0, 0, 0.55),
        0 0 36px rgba(0, 0, 157, 0.22),
        0 0 28px rgba(172, 5, 17, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.calendar-mount-rail {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 10px;
    flex-shrink: 0;
    border-radius: 999px;
    background:
        linear-gradient(180deg, #3a3f4d 0%, #c5cad6 35%, #8b93a3 55%, #2a2e3a 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 -1px 0 rgba(0, 0, 0, 0.55),
        0 0 10px rgba(0, 0, 0, 0.45);
}

.calendar-mount-rail::before,
.calendar-mount-rail::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    transform: translateY(-50%);
    background:
        radial-gradient(circle at 35% 30%, #eee 0%, #8a909c 45%, #2a2e36 100%);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55);
}

.calendar-mount-rail::before {
    left: 8px;
}

.calendar-mount-rail::after {
    right: 8px;
}

.calendar-mount-rail--top {
    margin-bottom: 0.55rem;
}

.calendar-mount-rail--bottom {
    margin-top: 0.55rem;
}

.calendar-mount__inner,
.calendar-round-banner__inner,
.calendar-season-poster__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0;
    padding: 0.4rem;
    box-sizing: border-box;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(180, 200, 240, 0.28);
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 20px rgba(0, 0, 157, 0.12);
}

.calendar-round-banner img,
.calendar-season-poster img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 4px;
}

.calendar-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    border: 1px dashed rgba(160, 180, 220, 0.28);
    border-radius: 6px;
    padding: 1.5rem;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.03);
}

.calendar-image-placeholder--banner {
    min-height: 5rem;
    aspect-ratio: 1400 / 180;
    max-height: 12rem;
}

.calendar-image-placeholder--poster {
    min-height: 12rem;
    aspect-ratio: 1400 / 788;
}

/* Calendar round pills — Results/Standings chrome language */
.calendar-chrome {
    width: 100%;
    max-width: 100%;
    margin: 0 0 1.75rem;
    padding: 1.1rem 1.2rem 1.15rem;
    background:
        linear-gradient(145deg, rgba(0, 0, 157, 0.22) 0%, rgba(0, 0, 0, 0.42) 45%, rgba(172, 5, 17, 0.12) 100%),
        rgba(8, 10, 18, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 12px 32px rgba(0, 0, 0, 0.35);
}

.calendar-chrome__label {
    margin: 0 0 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
}

.calendar-round-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
}

.calendar-round-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.65rem 1.05rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.calendar-round-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
    color: #fff;
}

.calendar-round-pill.is-active {
    background: var(--primary-racing-blue);
    border-color: var(--primary-racing-blue);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(120, 160, 255, 0.35), 0 0 18px rgba(0, 0, 157, 0.45);
}

.calendar-image-wrapper,
/* Removed duplicate - using more specific selector above */

.round-dropdown-wrapper label {
    display: block;
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 700;
}

.round-dropdown-wrapper select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--primary-racing-blue);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px;
}

.round-dropdown-wrapper select option {
    background: #1E1E1E;
    color: #fff;
    padding: 10px;
}

.round-dropdown-wrapper select option:hover,
.round-dropdown-wrapper select option:focus {
    background: var(--primary-racing-blue);
    color: #fff;
}

.round-dropdown-wrapper select:hover {
    border-color: var(--primary-racing-red);
    background-color: rgba(255, 255, 255, 0.15);
}

.round-dropdown-wrapper select:focus {
    outline: none;
    border-color: var(--primary-racing-red);
    box-shadow: 0 0 10px rgba(172, 5, 17, 0.3);
}

/* Regulations Page — magazine stage + modal PDF (books deferred) */
.regulations-section {
    position: relative;
    isolation: isolate;
    padding: var(--page-hero-padding-top, 3rem) 1.25rem 4rem;
    overflow: hidden;
}

.regulations-atmosphere {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 45% at 12% 18%, rgba(0, 40, 180, 0.38), transparent 70%),
        radial-gradient(ellipse 50% 40% at 88% 22%, rgba(172, 5, 17, 0.32), transparent 68%),
        radial-gradient(ellipse 80% 55% at 50% 100%, rgba(0, 0, 80, 0.45), transparent 70%),
        linear-gradient(180deg, #05060a 0%, #000 55%, #050508 100%);
}

.regulations-atmosphere::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

.regulations-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

.regulations-main {
    padding-bottom: 4rem;
}

.regs-subtitle {
    margin: 0 0 2rem;
    text-align: center;
    color: rgba(200, 210, 255, 0.55);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.regs-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.9fr) minmax(0, 1.15fr);
    gap: 1.25rem 1.35rem;
    align-items: stretch;
}

.regs-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.25rem 1.15rem 1.3rem;
    background:
        linear-gradient(155deg, rgba(18, 24, 48, 0.88) 0%, rgba(6, 8, 14, 0.94) 45%, rgba(20, 10, 14, 0.9) 100%);
    border: 1px solid rgba(140, 170, 255, 0.22);
    border-radius: 16px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.45),
        0 18px 48px rgba(0, 0, 0, 0.55),
        0 0 40px rgba(0, 0, 157, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.regs-stage__main,
.regs-stage__selected {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.45),
        0 18px 48px rgba(0, 0, 0, 0.55),
        -8px 0 28px rgba(0, 0, 157, 0.12),
        8px 0 28px rgba(172, 5, 17, 0.1);
}

.regs-stage__pills {
    justify-content: flex-start;
    padding-left: 1.65rem;
    padding-right: 1.65rem;
    border-color: rgba(180, 190, 210, 0.28);
    background:
        linear-gradient(180deg, rgba(28, 32, 44, 0.95) 0%, rgba(8, 10, 16, 0.98) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5),
        0 18px 48px rgba(0, 0, 0, 0.6),
        0 0 36px rgba(120, 140, 180, 0.08);
}

.regs-rail {
    position: absolute;
    inset: 0.85rem 0.55rem;
    pointer-events: none;
    z-index: 0;
}

.regs-rail__bar {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 10px;
    border-radius: 999px;
    background:
        linear-gradient(90deg, #3a3f4d 0%, #c5cad6 35%, #8b93a3 55%, #2a2e3a 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 -1px 0 rgba(0, 0, 0, 0.55),
        0 0 10px rgba(0, 0, 0, 0.45);
}

.regs-rail__bar::before,
.regs-rail__bar::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    transform: translateX(-50%);
    background:
        radial-gradient(circle at 35% 30%, #eee 0%, #8a909c 45%, #2a2e36 100%);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55);
}

.regs-rail__bar::before {
    top: 8px;
}

.regs-rail__bar::after {
    bottom: 8px;
}

.regs-rail__bar--left {
    left: 0;
}

.regs-rail__bar--right {
    right: 0;
}

.regs-stage__label {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1rem;
    color: rgba(220, 225, 240, 0.65);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
    justify-content: center;
}

.regs-stage__label::before,
.regs-stage__label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 210, 230, 0.35), transparent);
}

.regs-round-pills {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    flex: 1;
    align-content: center;
}

.regs-round-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.78rem 0.5rem;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(180, 190, 210, 0.28);
    border-radius: 10px;
    color: rgba(230, 235, 245, 0.88);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.regs-round-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(160, 190, 255, 0.45);
    transform: translateY(-1px);
    color: #fff;
}

.regs-round-pill.is-active {
    background: linear-gradient(180deg, #1a1aff 0%, var(--primary-racing-blue) 55%, #000070 100%);
    border-color: #7eb0ff;
    color: #fff;
    box-shadow:
        0 0 0 1px rgba(140, 190, 255, 0.55),
        0 0 18px rgba(60, 120, 255, 0.75),
        0 0 36px rgba(0, 0, 157, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.regs-round-pill.is-missing:not(.is-active) {
    opacity: 0.42;
}

.regs-stage__foot {
    margin: 1.35rem auto 0;
    max-width: 36rem;
    padding: 0.55rem 1rem;
    text-align: center;
    color: rgba(210, 220, 240, 0.55);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.reg-cover {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    color: inherit;
}

.reg-cover__frame {
    position: relative;
    display: block;
    width: auto;
    max-width: 100%;
    height: min(560px, 70vh);
    aspect-ratio: 3 / 4;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(160, 180, 220, 0.28);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.55),
        0 0 24px rgba(0, 0, 157, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.reg-cover:hover .reg-cover__frame,
.reg-cover:focus-visible .reg-cover__frame {
    transform: translateY(-3px);
    border-color: rgba(140, 180, 255, 0.55);
    box-shadow:
        0 22px 48px rgba(0, 0, 0, 0.6),
        0 0 32px rgba(0, 80, 255, 0.28);
    outline: none;
}

.reg-cover__plate {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(0, 0, 157, 0.5), transparent 55%),
        radial-gradient(ellipse at 80% 90%, rgba(172, 5, 17, 0.4), transparent 50%),
        linear-gradient(160deg, #12141e 0%, #07080d 55%, #0a0c14 100%);
    z-index: 0;
}

.reg-cover--main .reg-cover__plate {
    background:
        radial-gradient(ellipse at 25% 15%, rgba(0, 0, 157, 0.58), transparent 50%),
        radial-gradient(ellipse at 85% 85%, rgba(172, 5, 17, 0.45), transparent 48%),
        linear-gradient(155deg, #151828 0%, #08090f 60%, #0c1018 100%);
}

.reg-cover__art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    z-index: 1;
    background: #050508;
}

.reg-cover__art[hidden] {
    display: none;
}

.reg-cover__shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, transparent 45%, rgba(0, 0, 0, 0.28) 100%);
    pointer-events: none;
}

.reg-cover__meta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    margin-top: auto;
}

.reg-cover__badge {
    align-self: flex-start;
    display: inline-flex;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.reg-cover__title {
    font-family: "Exo 2", sans-serif;
    font-style: italic;
    font-weight: 800;
    font-size: clamp(1.1rem, 1.9vw, 1.45rem);
    line-height: 1.15;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.reg-cover__hint {
    color: rgba(200, 210, 230, 0.5);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.reg-cover__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.72rem 1.1rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #2a2aff 0%, var(--primary-racing-blue) 55%, #000080 100%);
    border: 1px solid #8eb6ff;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow:
        0 0 0 1px rgba(120, 170, 255, 0.35),
        0 0 22px rgba(0, 60, 255, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.reg-cover:hover .reg-cover__cta {
    box-shadow:
        0 0 0 1px rgba(160, 200, 255, 0.5),
        0 0 30px rgba(40, 100, 255, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.reg-cover.is-missing .reg-cover__cta {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
    color: rgba(255, 255, 255, 0.75);
}

body.regs-modal-open {
    overflow: hidden;
}

.regs-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.regs-modal.is-hidden,
.regs-modal[hidden] {
    display: none !important;
}

.regs-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
}

.regs-modal__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(1100px, 100%);
    height: min(90vh, 920px);
    background: #0a0c14;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
}

.regs-modal__chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background:
        linear-gradient(145deg, rgba(0, 0, 157, 0.22) 0%, rgba(0, 0, 0, 0.5) 55%, rgba(172, 5, 17, 0.12) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.regs-modal__title {
    margin: 0;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.regs-modal__actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.regs-modal__download {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

.regs-modal__download:hover {
    background: var(--primary-racing-blue);
    border-color: var(--primary-racing-blue);
}

.regs-modal__close {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.regs-modal__close:hover {
    background: rgba(172, 5, 17, 0.75);
    border-color: var(--primary-racing-red);
}

.regs-modal__body {
    position: relative;
    flex: 1;
    min-height: 0;
    background: #050508;
}

.regs-modal__frame {
    width: 100%;
    height: 100%;
    border: none;
    background: #111;
}

.regs-modal__loading,
.regs-modal__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    text-align: center;
    z-index: 2;
}

.regs-modal__placeholder h3 {
    margin: 0;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-racing-red);
}

.regs-modal__placeholder p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.regs-modal__loading[hidden],
.regs-modal__placeholder[hidden] {
    display: none !important;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary-racing-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Results Page Layout */
.results-layout {
    display: block;
    margin-bottom: 4rem;
}

.results-history-note {
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 auto 1.5rem;
    max-width: 640px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Stage: controls left + poster carousel right */
.results-stage {
    display: grid;
    grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
    gap: 1rem 1.35rem;
    align-items: start;
    margin: 0 0 1.35rem;
    max-width: 100%;
}

.results-stage--history {
    grid-template-columns: minmax(210px, 320px);
    justify-content: start;
}

.results-chrome {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0.9rem 1.05rem;
    background:
        linear-gradient(145deg, rgba(0, 0, 157, 0.22) 0%, rgba(0, 0, 0, 0.42) 45%, rgba(172, 5, 17, 0.12) 100%),
        rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    min-width: 0;
    align-self: start;
    height: auto;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.results-chrome__label {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.results-chrome__select {
    width: 100%;
    padding: 0.5rem 2rem 0.5rem 0.85rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 999px;
    appearance: none;
    color-scheme: dark;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.results-chrome__select:hover,
.results-chrome__select:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    outline: none;
}

.results-chrome__select option {
    background-color: #1a1a22;
    color: #f2f2f2;
}

.results-chrome__select option:checked,
.results-chrome__select option:hover,
.results-chrome__select option:focus {
    background-color: var(--primary-racing-blue, #00009d);
    color: #fff;
}

.results-chrome__select--season {
    font-size: 0.72rem;
}

.results-chrome__select--round {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    text-align: center;
    text-align-last: center;
    padding-left: 0.55rem;
    padding-right: 1.75rem;
    background-color: var(--primary-racing-blue);
    border-color: var(--primary-racing-blue);
    box-shadow: 0 0 0 1px rgba(120, 160, 255, 0.35), 0 0 18px rgba(0, 0, 157, 0.45);
    background-position: right 10px center;
}

.results-chrome__select--round:hover,
.results-chrome__select--round:focus {
    background-color: var(--primary-racing-blue);
    border-color: rgba(120, 160, 255, 0.7);
}

.results-chrome__round {
    position: relative;
}

.results-round-nav {
    display: grid;
    grid-template-columns: 2.35rem minmax(0, 1fr) 2.35rem;
    gap: 0.4rem;
    align-items: stretch;
}

.results-round-nav__btn {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-radius: 999px;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.results-round-nav__btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

.results-round-nav__btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.results-chrome .results-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
}

.results-chrome .results-tab-btn {
    padding: 0.5rem 0.2rem;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.results-chrome .results-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

.results-chrome .results-tab-btn.active {
    background: var(--primary-racing-blue);
    border-color: var(--primary-racing-blue);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(120, 160, 255, 0.35), 0 0 18px rgba(0, 0, 157, 0.45);
}

.results-stage__art {
    min-width: 0;
    position: relative;
}

/* Mockup board: P1 | P2/P3 stack | DOTD — full graphic visible (contain) */
.results-poster-board {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr) minmax(0, 1.1fr);
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.45rem 0.55rem;
    width: 100%;
    max-height: min(420px, 48vh);
    min-height: 270px;
    height: min(420px, 48vh);
}

.results-poster-board[hidden] {
    display: none !important;
}

.results-poster-board__tile {
    margin: 0;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    overflow: hidden;
    padding: 0.3rem 0.3rem 0.35rem;
}

.results-poster-board__tile--p1 {
    grid-column: 1;
    grid-row: 1 / -1;
}

.results-poster-board__tile--p2 {
    grid-column: 2;
    grid-row: 1;
}

.results-poster-board__tile--p3 {
    grid-column: 2;
    grid-row: 2;
}

.results-poster-board__tile--dotd {
    grid-column: 3;
    grid-row: 1 / -1;
}

.results-poster-board__tile--dotd.has-secondary {
    display: grid;
    grid-template-rows: 1fr 1fr auto;
    gap: 0.25rem;
}

.results-poster-board__tile--dotd.has-secondary .results-poster-board__cap {
    grid-column: 1;
}

.results-poster-board__tile .results-poster-frame {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    aspect-ratio: auto;
    border-radius: 6px;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    overflow: hidden;
    position: relative;
}

.results-poster-board__tile .results-poster-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    cursor: pointer;
}

.results-poster-board__cap {
    margin: 0;
    flex: 0 0 auto;
    text-align: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.2;
    padding: 0.1rem 0.15rem 0;
}

.results-poster-board__tile--blank .results-poster-frame--blank {
    width: 100%;
    height: 100%;
    min-height: 4rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

@media (max-width: 860px) {
    .results-stage {
        grid-template-columns: 1fr;
    }

    .results-chrome {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-end;
    }

    .results-chrome__season,
    .results-chrome__round,
    .results-chrome__splits {
        flex: 1 1 140px;
    }

    .results-poster-board {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        height: auto;
        max-height: none;
        min-height: 0;
    }

    .results-poster-board__tile--p1 {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 210px;
    }

    .results-poster-board__tile--p2,
    .results-poster-board__tile--p3 {
        grid-column: auto;
        grid-row: auto;
        min-height: 150px;
    }

    .results-poster-board__tile--dotd {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 180px;
    }
}

/* Stacked layout: CTA → full-width results */
.results-split-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    max-width: 100%;
}

.results-split-stack--history .results-data-column {
    width: min(100%, 1280px);
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.results-data-column {
    min-width: 0;
    width: 100%;
}

.results-split-heading {
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 1rem;
}

/* Legacy toolbar kept for other pages that reuse classes */
.results-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem 1.5rem;
    max-width: 640px;
    margin: 0 auto 1.5rem;
}

.results-toolbar__field {
    flex: 1 1 200px;
    min-width: 160px;
    max-width: 280px;
}

.results-toolbar__label {
    display: block;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.results-toolbar__select {
    width: 100%;
    padding: 0.5rem 2rem 0.5rem 0.65rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 6px;
    appearance: none;
    color-scheme: dark;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.results-toolbar__select:hover,
.results-toolbar__select:focus {
    border-color: rgba(0, 0, 157, 0.7);
    background-color: rgba(255, 255, 255, 0.09);
    outline: none;
}

.results-toolbar__select option {
    background-color: #1a1a22;
    color: #f2f2f2;
}

.results-tabs-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.results-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    justify-content: center;
}

.results-tab-btn {
    padding: 0.55rem 1.25rem;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.results-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
}

.results-tab-btn.active {
    background: var(--primary-racing-blue);
    border-color: var(--primary-racing-blue);
    color: #fff;
}

/* Heat / Overall toggle (only when 2+ heats exist for the round/split) */
.results-heat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.6rem;
    justify-content: center;
    margin: 0 0 1rem;
}

.results-heat-tabs[hidden] {
    display: none;
}

.results-heat-btn {
    padding: 0.4rem 0.95rem;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.results-heat-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
}

.results-heat-btn.active {
    background: rgba(37, 170, 225, 0.25);
    border-color: var(--primary-racing-blue);
    color: #fff;
}

/* Poster strip: up to 5 tiles, centred */
.results-poster-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 0.75rem 1rem;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0.35rem 0 0.5rem;
}

.results-poster-tile {
    flex: 0 1 auto;
    width: clamp(140px, 22vw, 280px);
    max-width: 280px;
    margin: 0;
    text-align: center;
}

.results-poster-tile.result-box-dotd {
    position: relative;
}

.results-poster-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 2480 / 1756;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    overflow: hidden;
}

.results-poster-frame--blank {
    background: rgba(255, 255, 255, 0.02);
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.08);
}

.results-poster-frame--dotd {
    position: relative;
}

.results-poster-frame--dotd .result-image-primary,
.results-poster-frame--dotd .result-image-secondary {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.results-poster-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.results-poster-caption {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

/* Podium / DOTD tiles: hover lift + click affordance */
.results-poster-tile:not(.results-poster-tile--blank) {
    transition: transform 0.2s ease;
}

.results-poster-tile:not(.results-poster-tile--blank) .results-poster-frame {
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.results-poster-tile:not(.results-poster-tile--blank):hover {
    transform: translateY(-6px) scale(1.05);
    z-index: 3;
}

.results-poster-tile:not(.results-poster-tile--blank):hover .results-poster-frame {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
    border-color: rgba(255, 255, 255, 0.3);
}

.results-poster-img,
.result-box-dotd .result-image {
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    .results-poster-tile:not(.results-poster-tile--blank),
    .results-poster-tile:not(.results-poster-tile--blank):hover {
        transition: none;
        transform: none;
    }
}

/* Poster lightbox modal */
.vets-poster-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.vets-poster-modal[hidden] {
    display: none;
}

.vets-poster-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.vets-poster-modal__dialog {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: vets-poster-modal-in 0.2s ease;
}

@keyframes vets-poster-modal-in {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}

.vets-poster-modal__img {
    max-width: 90vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.3);
}

.vets-poster-modal__caption {
    margin-top: 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.vets-poster-modal__close {
    position: absolute;
    top: -0.75rem;
    right: -0.75rem;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    border: 2px solid #fff;
    background: rgba(172, 5, 17, 0.95);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    transition: background 0.2s ease, transform 0.2s ease;
}

.vets-poster-modal__close:hover {
    background: rgba(172, 5, 17, 1);
    transform: scale(1.08);
}

@media (max-width: 600px) {
    .vets-poster-modal__close {
        top: 0.4rem;
        right: 0.4rem;
    }
}

body.vets-modal-open {
    overflow: hidden;
}

.results-container {
    padding-bottom: 8rem;
}

.results-column {
    display: flex;
    flex-direction: column;
}

.results-column h3 {
    text-align: center;
    color: #fff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Legacy vertical stack (unused in new layout; kept for admin previews) */
.results-boxes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: fit-content;
    margin-bottom: 1rem;
}

/* Driver of the Day box with cycling support */
.result-box-dotd {
    position: relative;
    overflow: hidden;
}

.result-box-dotd .result-image-primary {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.result-box-dotd .result-image-secondary {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
}

/* Cycle indicator - asterisk in top right corner */
.cycle-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(172, 5, 17, 0.9);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    z-index: 10;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.result-box {
    width: 100%;
    aspect-ratio: 2480 / 1756; /* Match p1-3 image ratio */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-box-blank {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.result-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Shared data tables (race results + standings) */
.vets-table-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    padding: 2.5rem 1rem;
    margin: 0;
    font-size: 0.95rem;
}

.vets-table-empty--error {
    color: rgba(255, 130, 130, 0.95);
}

.vets-race-card__header {
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.vets-race-card__track {
    color: #fff;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 0.35rem;
}

.vets-race-card__meta {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
    margin: 0;
}

.vets-table-wrap {
    overflow-x: auto;
    margin: 0;
    padding: 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
}

.vets-data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: inherit, Arial, sans-serif;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.92);
    background: transparent;
}

.vets-data-table thead tr {
    background: linear-gradient(180deg, rgba(0, 0, 157, 0.35) 0%, rgba(20, 20, 40, 0.6) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.vets-data-table th {
    padding: 0.65rem 0.45rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    white-space: nowrap;
}

.vets-data-table th.vets-col-driver {
    text-align: left;
    padding-left: 0.65rem;
}

.vets-data-table td {
    padding: 0.55rem 0.4rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

.vets-data-table tbody tr:last-child td {
    border-bottom: none;
}

.vets-data-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.02);
}

/* Podium: colour position numbers only (no row gradient) */
.vets-col-pos {
    font-weight: 800;
    font-size: 1.05rem;
    width: 2.5rem;
    color: rgba(255, 255, 255, 0.92);
}

.vets-col-pos--rank-1 {
    color: #e6c200;
}

.vets-col-pos--rank-2 {
    color: #c8d0d8;
}

.vets-col-pos--rank-3 {
    color: #cd853f;
}

.vets-data-table--race .vets-col-num,
.vets-data-table--standings .vets-col-num,
.vets-table-wrap--standings .vets-col-num {
    width: 4rem;
    min-width: 4rem;
    max-width: 4rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    vertical-align: middle;
}

.vets-data-table--race .vets-col-carimg,
.vets-data-table--standings .vets-col-carimg,
.vets-table-wrap--standings .vets-col-carimg {
    width: 6.5rem;
    min-width: 6.5rem;
    max-width: 6.5rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    vertical-align: middle;
}

.vets-car-image-wrap {
    height: 2.35rem;
    min-height: 2.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.vets-car-image {
    display: block;
    height: 2.35rem;
    max-height: 2.35rem;
    width: auto;
    max-width: 6rem;
    object-fit: contain;
}

/* Same width for 1–3 digit numbers (badge fills cell) */
.vets-car-number:not(.vets-car-number--empty) {
    width: 3.5rem;
    min-width: 3.5rem;
    max-width: 3.5rem;
}

.vets-car-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    padding: 0.2rem 0.25rem;
    font-weight: 800;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: #fff;
    border: 1px solid transparent;
    border-radius: 10px;
    box-sizing: border-box;
}

.vets-car-number--ford {
    background: #135099;
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 2px 8px rgba(19, 80, 153, 0.45);
}

.vets-car-number--chevy {
    background: #b8860b;
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.4);
}

.vets-car-number--neutral {
    background: rgba(30, 30, 36, 0.95);
    border-color: rgba(255, 255, 255, 0.18);
}

.vets-car-number--empty {
    font-weight: 600;
    font-size: 0.95rem;
    min-height: 2.35rem;
    width: 3.5rem;
    min-width: 3.5rem;
    max-width: 3.5rem;
    padding: 0.15rem 0.25rem;
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.35);
    box-shadow: none;
}

/* Driver directory / profile — NASCAR-style race number on photo */
.vets-driver-photo-wrap {
    position: relative;
    display: inline-block;
    vertical-align: top;
}

.vets-driver-photo-number {
    position: absolute;
    right: -0.15rem;
    bottom: 0.15rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    padding: 0.2rem 0.45rem 0.25rem;
    font-family: var(--font-heading, inherit);
    font-weight: 900;
    font-style: italic;
    line-height: 1;
    letter-spacing: 0.03em;
    color: #fff;
    border: 3px solid #fff;
    border-radius: 5px;
    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transform: skewX(-10deg);
    pointer-events: none;
}

.vets-driver-photo-number__inner {
    display: block;
    transform: skewX(10deg);
}

.vets-driver-photo-number--card {
    font-size: 1.35rem;
    min-width: 2.1rem;
    padding: 0.15rem 0.4rem 0.2rem;
    border-width: 2px;
}

.vets-driver-photo-number--profile {
    font-size: 1.85rem;
    min-width: 2.75rem;
    padding: 0.22rem 0.55rem 0.28rem;
    right: -0.25rem;
    bottom: 0.25rem;
}

.vets-driver-photo-number.vets-car-number--ford {
    background: linear-gradient(165deg, #1a5fad 0%, #135099 45%, #0d3a73 100%);
    border-color: #fff;
}

.vets-driver-photo-number.vets-car-number--chevy {
    background: linear-gradient(165deg, #d4a017 0%, #b8860b 45%, #8b6914 100%);
    border-color: #fff;
    color: #1a1200;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.vets-driver-photo-number.vets-car-number--neutral {
    background: linear-gradient(165deg, #3a3a44 0%, #1e1e24 55%, #121218 100%);
    border-color: rgba(255, 255, 255, 0.92);
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.85);
}

.vets-driver-photo-number.vets-car-number--ford .vets-driver-photo-number__inner,
.vets-driver-photo-number.vets-car-number--neutral .vets-driver-photo-number__inner {
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.85);
}

/* Driver profile split badge (same family as photo race number). */
.vets-driver-split-badge {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading, inherit);
    font-weight: 900;
    font-style: italic;
    line-height: 1;
    letter-spacing: 0.035em;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 999px;
    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.62),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: skewX(-10deg);
    pointer-events: none;
    text-transform: uppercase;
}

.vets-driver-split-badge__inner {
    display: block;
    transform: skewX(10deg);
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
}

.vets-driver-split-badge--profile {
    top: -0.45rem;
    left: 50%;
    transform: translateX(-50%) skewX(-10deg);
    font-size: 0.92rem;
    padding: 0.24rem 0.72rem 0.28rem;
    min-width: 6.2rem;
}

.vets-driver-split-badge--season {
    position: static;
    flex: 0 0 auto;
    align-self: center;
    margin-left: auto;
    margin: 0;
    font-size: 0.74rem;
    padding: 0.17rem 0.56rem 0.2rem;
    min-width: 4.9rem;
    border-width: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.42);
}

.vets-driver-split-badge--card {
    top: -0.45rem;
    left: 50%;
    transform: translateX(-50%) skewX(-10deg);
    font-size: 0.78rem;
    padding: 0.2rem 0.6rem 0.24rem;
    min-width: 5.2rem;
}

.vets-driver-split-badge--split-1 {
    background: linear-gradient(165deg, #5a95ff 0%, #4382ff 45%, #2a61cd 100%);
}

.vets-driver-split-badge--split-2 {
    background: linear-gradient(165deg, #fff14a 0%, #ffe200 45%, #d5bb00 100%);
}

.vets-driver-split-badge--split-3 {
    background: linear-gradient(165deg, #ff3b3d 0%, #ec1d1f 48%, #b80c0d 100%);
}

.vets-driver-split-badge--split-4 {
    background: linear-gradient(165deg, #ff8b4f 0%, #ff6b1f 48%, #cf4d0e 100%);
}

/* Driver profile — car banner (uploads WebP + legacy theme drop-in) */
.driver-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2rem 3rem;
    margin-bottom: 4rem;
    align-items: start;
}

.driver-header--has-banner {
    grid-template-columns: auto minmax(0, 1fr) 38%;
}

.driver-header__photo {
    text-align: center;
}

.driver-header__info {
    min-width: 0;
}

.driver-header__identity {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.driver-header__name {
    min-width: 0;
    flex: 1 1 12rem;
}

.driver-header__edit {
    margin-top: 0.35rem;
    flex: 0 0 auto;
}

.driver-header-banner {
    align-self: start;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
}

.driver-header-banner__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1024 / 388;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.driver-header-banner__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
    aspect-ratio: 1024 / 388;
    padding: 1rem 1.15rem;
    box-sizing: border-box;
    text-align: center;
    border-radius: 8px;
    border: 2px dashed rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
}

.driver-header-banner__hint {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0.02em;
}

.driver-header-banner__hint a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.driver-header-banner__hint a:hover {
    color: #7ec8ff;
}

@media (max-width: 960px) {
    .driver-header--has-banner {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .driver-header-banner {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .driver-header,
    .driver-header--has-banner {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
        margin-bottom: 2.5rem;
    }

    .driver-header-banner {
        grid-column: 1 / -1;
        order: 3;
    }

    .driver-header__photo {
        justify-self: center;
    }

    .driver-header__photo .vets-driver-photo--profile,
    .driver-header__photo .vets-driver-photo--placeholder {
        width: 140px !important;
        height: 140px !important;
    }

    .driver-header__identity {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .driver-header__name {
        margin-bottom: 0 !important;
    }

    .driver-header__name span:first-child {
        font-size: 1.45rem !important;
    }

    .driver-header__name span:last-child {
        font-size: 2rem !important;
    }

    .driver-header__edit {
        margin-top: 0;
        align-self: flex-start;
    }

    .driver-header__bio {
        padding: 1rem !important;
        margin-top: 1.25rem !important;
    }
}

.vets-col-driver {
    text-align: left !important;
    padding-left: 0.65rem !important;
    max-width: 14rem;
}

/* Shared driver column: results + standings */
.vets-data-table .vets-col-driver .vets-driver-name {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.03em;
    line-height: 1.3;
    color: #fff;
}

.vets-data-table .vets-col-driver .vets-driver-car {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.48);
    line-height: 1.25;
}

.vets-col-start {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.vets-col-chg {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.vets-chg--up {
    color: #5fcf7a;
}

.vets-chg--down {
    color: #ff6b6b;
}

.vets-chg--same {
    color: rgba(255, 255, 255, 0.25);
}

.vets-col-points {
    font-weight: 800;
    color: #6eb3ff;
    font-variant-numeric: tabular-nums;
}

.vets-col-time {
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
}

.vets-col-gap {
    font-size: 0.82rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.82);
}

.vets-col-inc {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.vets-col-inc--clean {
    color: #5fcf7a;
}

.vets-col-inc--high {
    color: #ff6b6b;
    font-weight: 700;
}

.vets-col-status {
    font-size: 0.8rem;
}

.vets-data-table .vets-col-gap--leader {
    color: #e6c200;
    font-weight: 700;
}

.vets-standings-panel {
    display: block;
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 1rem 2rem;
    min-height: 320px;
    background: transparent;
    border: none;
}

.vets-standings-heading {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 1.25rem;
}

.standings-drop-mode-btn {
    padding: 0.65rem 1.15rem;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.standings-drop-mode-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

.standings-drop-mode-btn.active {
    background: var(--primary-racing-blue);
    border-color: var(--primary-racing-blue);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(120, 160, 255, 0.35), 0 0 18px rgba(0, 0, 157, 0.45);
}

.vets-public-season-notice {
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 auto 1.5rem;
    max-width: 42rem;
    line-height: 1.55;
    font-size: 0.95rem;
}

.vets-public-season-notice--fallback {
    color: rgba(255, 215, 140, 0.95);
}

/* Standings chrome — same language as Results filters, full content width */
.standings-chrome {
    width: 100%;
    max-width: 100%;
    margin: 0 0 1.75rem;
    padding: 1.25rem 1.35rem 1.15rem;
    background:
        linear-gradient(145deg, rgba(0, 0, 157, 0.22) 0%, rgba(0, 0, 0, 0.42) 45%, rgba(172, 5, 17, 0.12) 100%),
        rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.standings-chrome__grid {
    display: grid;
    grid-template-columns: minmax(200px, 0.9fr) minmax(0, 1.2fr) minmax(0, 1.4fr);
    gap: 1.25rem 1.75rem;
    align-items: start;
}

.standings-chrome__label {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}

.standings-chrome__select {
    width: 100%;
    padding: 0.65rem 2.1rem 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 999px;
    appearance: none;
    color-scheme: dark;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.standings-chrome__select:hover,
.standings-chrome__select:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    outline: none;
}

.standings-chrome__select option {
    background-color: #1a1a22;
    color: #f2f2f2;
}

.standings-chrome__select option:checked,
.standings-chrome__select option:hover,
.standings-chrome__select option:focus {
    background-color: var(--primary-racing-blue, #00009d);
    color: #fff;
}

.standings-chrome .standings-tabs,
.standings-chrome .standings-drop-mode {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.standings-chrome .standings-tab-btn {
    padding: 0.65rem 1.15rem;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.standings-chrome .standings-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

.standings-chrome .standings-tab-btn.active {
    background: var(--primary-racing-blue);
    border-color: var(--primary-racing-blue);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(120, 160, 255, 0.35), 0 0 18px rgba(0, 0, 157, 0.45);
}

.standings-drop-mode-hint {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    line-height: 1.45;
    margin: 1rem 0 0;
    max-width: 52rem;
}

@media (max-width: 900px) {
    .standings-chrome__grid {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }
}

.standings-toolbar {
    margin-bottom: 2rem;
}

/* ============================================
   STANDINGS PAGE STYLES
   ============================================ */

/* Use body class selector for maximum specificity (WordPress adds this automatically) */
/* Standings Section - Add MORE footer spacing to prevent overlap */
body.page-template-page-standings-php .standings-section,
body:has(.standings-main) .standings-section,
.standings-section {
    padding-bottom: 40rem !important; /* MUCH MORE space before footer to prevent overlap */
    margin-bottom: 5rem !important; /* Extra margin below section */
    min-height: auto !important;
    background-color: #000000 !important;
    display: block !important;
    position: relative !important;
}

/* Main content area - ensure it expands to full content height (like paint submission) */
body.page-template-page-standings-php #primary.site-main,
body:has(.standings-main) #primary.site-main,
body.page-template-page-standings-php .site-main.standings-main,
body:has(.standings-main) .site-main.standings-main {
    min-height: auto !important;
    height: auto !important;
    padding-bottom: 10rem !important; /* Extra padding at bottom of main */
    margin-bottom: 5rem !important; /* Extra margin below main */
    overflow: visible !important;
}

/* Add LARGER spacer element to prevent footer overlap */
body.page-template-page-standings-php .standings-section::after,
body:has(.standings-main) .standings-section::after,
.standings-section::after {
    content: '';
    display: block;
    height: 400px !important; /* MUCH LARGER spacer to ensure footer doesn't overlap Split 3 & 4 */
    width: 100%;
    clear: both;
}

/* Ensure footer appears at bottom - STANDINGS PAGE SPECIFIC */
body.page-template-page-standings-php .site-footer,
body:has(.standings-main) .site-footer {
    margin-top: 10rem !important; /* Extra margin above footer to create gap */
    position: relative !important;
    clear: both !important;
    display: block !important;
    z-index: 1 !important;
    top: auto !important;
    bottom: auto !important;
}

/* Prevent footer from overlapping content */
body.page-template-page-standings-php .standings-window,
body:has(.standings-main) .standings-window {
    position: relative !important;
    z-index: 2 !important; /* Ensure windows are above footer */
}

/* ============================================
   REGISTRATION PAGE — lanyard ID badges
   ============================================ */

.registration-section {
    position: relative;
    overflow: hidden;
    padding: var(--page-hero-padding-top, 6rem) 1.5rem 6rem;
    margin-bottom: 0;
    background: #050507;
    min-height: auto;
}

.registration-atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 70% 45% at 50% 18%, rgba(0, 0, 157, 0.18), transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 80%, rgba(172, 5, 17, 0.1), transparent 55%),
        repeating-linear-gradient(
            -32deg,
            transparent 0 18px,
            rgba(255, 255, 255, 0.015) 18px 19px,
            transparent 19px 36px,
            rgba(255, 255, 255, 0.01) 36px 37px
        );
    opacity: 0.9;
}

.registration-container {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

.registration-container:has(.reg-badges-row) {
    max-width: 1120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.registration-container .hero-title {
    text-align: center;
    align-self: stretch;
    width: 100%;
    margin-bottom: 1.25rem;
}

.reg-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin: 0 0 2.75rem;
    padding: 0.45rem 1.15rem;
    border-radius: 999px;
    font-family: "Exo 2", sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    width: fit-content;
    max-width: 100%;
}

.reg-status-pill.is-closed {
    color: #ff6b6b;
    border: 1px solid rgba(172, 5, 17, 0.85);
    background: rgba(172, 5, 17, 0.12);
    box-shadow: 0 0 18px rgba(172, 5, 17, 0.25);
}

.reg-status-pill.is-open {
    color: #7dff9a;
    border: 1px solid rgba(46, 160, 80, 0.85);
    background: rgba(46, 160, 80, 0.12);
    box-shadow: 0 0 18px rgba(46, 160, 80, 0.25);
}

.reg-badges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.75rem 4rem;
    align-items: start;
    justify-items: center;
    margin: 0 auto 3.5rem;
    max-width: 780px;
    padding-top: 0.25rem;
}

.reg-badges-row {
    display: grid;
    grid-template-columns: 168px 280px 280px 168px;
    column-gap: 2rem;
    row-gap: 1.5rem;
    align-items: start;
    justify-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 3.5rem;
    padding-top: 0.25rem;
}

.reg-badges-row > .link-mini--rego {
    grid-column: 1;
}

.reg-badges-row > .link-mini--wait {
    grid-column: 4;
}

.reg-badges-row .reg-badges {
    grid-column: 2 / span 2;
    display: grid;
    grid-template-columns: repeat(2, 280px);
    gap: 2.75rem 2rem;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-top: 0;
}

/* Registration page — mini credential list links (Option A) */
.link-mini {
    display: block;
    width: 168px;
    text-decoration: none;
    color: inherit;
    filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.5));
    transition: transform 0.25s ease, filter 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.link-mini__frame {
    position: relative;
    aspect-ratio: 773 / 1224;
    width: 100%;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 40%, transparent 70%);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 6px;
    box-sizing: border-box;
}

.link-mini__inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #ececec;
    border-radius: 4px;
    overflow: hidden;
}

.link-mini__brand {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.38rem 0.5rem 0.28rem;
    background: #050505;
    color: #fff;
    font-family: "Exo 2", sans-serif;
    font-size: 0.4375rem;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: left;
    flex-shrink: 0;
}

.link-mini__brand-marks {
    display: inline-block;
    width: 10px;
    height: 7px;
    flex-shrink: 0;
    background:
        linear-gradient(118deg, transparent 28%, #fff 28%, #fff 40%, transparent 40%),
        linear-gradient(118deg, transparent 44%, #fff 44%, #fff 56%, transparent 56%),
        linear-gradient(118deg, transparent 60%, #fff 60%, #fff 72%, transparent 72%);
}

.link-mini__accent {
    display: block;
    height: 2px;
    flex-shrink: 0;
}

.link-mini--rego .link-mini__accent {
    background: #2ea050;
    box-shadow: 0 0 8px rgba(46, 160, 80, 0.55);
}

.link-mini--wait .link-mini__accent {
    background: #ffb347;
    box-shadow: 0 0 8px rgba(255, 179, 71, 0.5);
}

.link-mini__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.5rem;
    text-align: center;
    gap: 0.35rem;
}

.link-mini__label {
    font-family: "Exo 2", sans-serif;
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.35;
    color: #333;
}

.link-mini__count {
    font-family: "Exo 2", sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.link-mini--rego .link-mini__count {
    color: #1a7a3a;
}

.link-mini--wait .link-mini__count {
    color: #c47a20;
}

.link-mini__status {
    font-family: "Exo 2", sans-serif;
    font-size: 0.4375rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #888;
}

.link-mini.is-unpublished {
    filter: grayscale(0.85) brightness(0.75) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
    pointer-events: none;
    cursor: not-allowed;
}

.link-mini.is-unpublished .link-mini__count {
    color: #999;
}

a.link-mini:hover,
a.link-mini:focus-visible {
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.55));
    outline: none;
    color: inherit;
}

a.link-mini--rego:hover,
a.link-mini--rego:focus-visible {
    transform: translateY(4px) rotate(-1deg);
}

a.link-mini--wait:hover,
a.link-mini--wait:focus-visible {
    transform: translateY(4px) rotate(1deg);
}

.reg-badge {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(100%, 300px);
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: center;
    color: inherit;
    font: inherit;
    transform-origin: 50% 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.25, 0.64, 1), filter 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.55));
}

.reg-badge.is-live:hover,
.reg-badge.is-live:focus-visible {
    transform: rotate(-1.6deg) translateY(5px);
    outline: none;
    filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.65));
}

.reg-badge--waitlist.is-live:hover,
.reg-badge--waitlist.is-live:focus-visible {
    transform: rotate(1.6deg) translateY(5px);
}

.reg-badge.is-selected {
    transform: translateY(8px);
}

.reg-badge.is-locked {
    cursor: not-allowed;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.45)) saturate(0.5) brightness(0.9);
}

.reg-badge.is-locked:hover {
    transform: none;
}

/* Photoreal strap + clasp */
.reg-badge__hardware {
    position: relative;
    z-index: 4;
    display: block;
    width: 72px;
    height: auto;
    margin: 0 0 -22px;
    pointer-events: none;
    user-select: none;
    object-fit: contain;
}

/* Plastic sleeve + card insert */
.reg-badge__holder {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 773 / 1224;
}

.reg-badge__sleeve {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.reg-badge__card {
    position: absolute;
    z-index: 1;
    left: 7.5%;
    right: 7.5%;
    top: 14.5%;
    bottom: 6.5%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(180deg, #fbfbfc 0%, #eef0f4 55%, #dde2e9 100%);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.reg-badge--returning.is-locked .reg-badge__card {
    background: linear-gradient(180deg, #d8dbe1 0%, #b9bfc8 52%, #9aa2ae 100%);
}

.reg-badge--returning.is-live .reg-badge__card {
    background: linear-gradient(180deg, #fbfbfc 0%, #f0f1f4 55%, #e2e5eb 100%);
}

.reg-badge--waitlist .reg-badge__card {
    background: linear-gradient(180deg, #ffffff 0%, #f5f7fa 58%, #e8ecf3 100%);
}

.reg-badge__brand {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 0.85rem;
    background: #050505;
    color: #fff;
    font-family: "Exo 2", sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: left;
    flex-shrink: 0;
}

.reg-badge__brand-marks {
    display: inline-block;
    width: 18px;
    height: 12px;
    flex-shrink: 0;
    background:
        linear-gradient(118deg, transparent 28%, #fff 28%, #fff 40%, transparent 40%),
        linear-gradient(118deg, transparent 44%, #fff 44%, #fff 56%, transparent 56%),
        linear-gradient(118deg, transparent 60%, #fff 60%, #fff 72%, transparent 72%);
}

.reg-badge__accent {
    display: block;
    height: 3px;
    flex-shrink: 0;
    background: linear-gradient(90deg, #1a4dff 0%, var(--primary-racing-blue) 45%, #7eb0ff 100%);
    box-shadow: 0 0 14px rgba(60, 120, 255, 0.8);
}

.reg-badge--returning.is-live .reg-badge__accent {
    background: linear-gradient(90deg, #ff3b4a 0%, var(--primary-racing-red) 50%, #ff8a94 100%);
    box-shadow: 0 0 14px rgba(172, 5, 17, 0.7);
}

.reg-badge__body {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.15rem 0.85rem 1.35rem;
    gap: 0.65rem;
}

.reg-badge__title {
    display: block;
    position: relative;
    z-index: 3;
    font-family: "Exo 2", sans-serif;
    font-size: clamp(1.15rem, 2.6vw, 1.45rem);
    font-weight: 900;
    font-style: italic;
    letter-spacing: 0.01em;
    line-height: 1.12;
    text-transform: none;
    color: #2a2f38;
    max-width: none;
}

.reg-badge__title--stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.08em;
    font-size: clamp(1.35rem, 3.2vw, 1.75rem);
    line-height: 1.05;
}

.reg-badge__title-line {
    display: block;
}

.reg-badge--waitlist .reg-badge__title {
    color: #00009d;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    max-width: 10ch;
    font-size: clamp(1.25rem, 2.8vw, 1.55rem);
}

.reg-badge--returning.is-live .reg-badge__title {
    color: #7a0610;
}

.reg-badge--returning.is-locked .reg-badge__title {
    color: #2e3440;
}

.reg-badge__sub {
    display: block;
    position: relative;
    z-index: 3;
    margin-top: 0.15rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #3d4654;
    letter-spacing: 0.04em;
    text-transform: none;
}

.reg-badge--returning.is-locked .reg-badge__sub {
    color: #2f3744;
}

.reg-badge--waitlist .reg-badge__sub {
    font-weight: 600;
    color: #5a6575;
}

.reg-badge__stamp {
    position: absolute;
    left: 50%;
    top: auto;
    bottom: 14%;
    width: 90%;
    padding: 0.5rem 0.4rem;
    transform: translateX(-50%) rotate(-16deg);
    border: 2px solid rgba(70, 78, 92, 0.5);
    border-radius: 3px;
    box-shadow: inset 0 0 0 1px rgba(70, 78, 92, 0.28);
    background: rgba(255, 255, 255, 0.22);
    pointer-events: none;
    z-index: 1;
}

.reg-badge__stamp-text {
    display: block;
    font-family: "Exo 2", sans-serif;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(55, 62, 74, 0.7);
    line-height: 1.25;
}

.reg-badge__footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 48px;
    pointer-events: none;
    background:
        repeating-conic-gradient(#c5cad3 0% 25%, #eceff3 0% 50%) 0 0 / 9px 9px;
    opacity: 0.22;
    mask-image: linear-gradient(180deg, transparent, #000 75%);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 75%);
}

.reg-badge__slashes {
    position: absolute;
    right: 10px;
    bottom: 12px;
    width: 56px;
    height: 42px;
    z-index: 3;
    pointer-events: none;
    background:
        linear-gradient(118deg, transparent 40%, #00009d 40%, #00009d 48%, transparent 48%),
        linear-gradient(118deg, transparent 50%, #00009d 50%, #00009d 58%, transparent 58%),
        linear-gradient(118deg, transparent 60%, #00009d 60%, #00009d 68%, transparent 68%);
}

@media (max-width: 1100px) {
    .reg-badges-row {
        grid-template-columns: 1fr 1fr;
        width: 100%;
        max-width: 720px;
        gap: 1.25rem 1.5rem;
    }

    .reg-badges-row .reg-badges {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 560px;
        margin: 0 auto;
    }

    .reg-badges-row > .link-mini--rego {
        grid-column: 1;
        justify-self: end;
    }

    .reg-badges-row > .link-mini--wait {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 720px) {
    .reg-badges {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 280px;
    }

    .reg-badges-row {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 300px;
        gap: 1.25rem;
    }

    .reg-badges-row .reg-badges {
        grid-column: 1;
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 0 auto;
    }

    .reg-badges-row > .link-mini--rego,
    .reg-badges-row > .link-mini--wait {
        grid-column: 1;
        justify-self: center;
    }

    .reg-badge {
        width: min(100%, 260px);
    }

    .reg-badge__hardware {
        width: 62px;
        margin-bottom: -18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reg-badge,
    .reg-badge.is-live:hover,
    .reg-badge.is-live:focus-visible {
        transition: none;
        transform: none;
    }
}

/* Form mount panel */
.registration-form-container.calendar-mount {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.registration-form-container[hidden] {
    display: none !important;
}

.registration-form-chrome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 0 0 0.85rem;
    padding: 0 0.15rem;
}

.registration-form-title {
    margin: 0;
    color: #fff;
    font-family: "Exo 2", sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.registration-form-close {
    margin: 0;
    padding: 0.45rem 0.9rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.registration-form-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.registration-form-content {
    color: #fff;
}

.registration-form-loading,
.registration-form-placeholder {
    text-align: center;
    padding: 2rem 1rem;
    color: rgba(255, 255, 255, 0.65);
}

.registration-form-hidden[hidden] {
    display: none !important;
}

/* Confirmation CTAs (Fluent success) */
.vets-registration-confirmation-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.vets-registration-confirmation-actions__lead {
    margin: 0 0 1.25rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

.vets-registration-confirmation-actions__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.vets-registration-confirmation-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: 2px solid var(--primary-racing-blue, #00009d);
    color: var(--primary-racing-blue, #00009d);
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease;
}

.vets-registration-confirmation-btn:hover {
    background: var(--primary-racing-blue, #00009d);
    color: #fff;
}

.vets-registration-confirmation-btn--primary {
    background: var(--primary-racing-blue, #00009d);
    color: #fff;
}

.vets-registration-confirmation-btn--primary:hover {
    background: #00007a;
    border-color: #00007a;
    color: #fff;
}

.registration-form-container .fluentform {
    color: #fff;
}

.registration-form-container .fluentform label {
    color: #fff;
}

.registration-form-container .fluentform input[type="text"],
.registration-form-container .fluentform input[type="email"],
.registration-form-container .fluentform input[type="number"],
.registration-form-container .fluentform input[type="tel"],
.registration-form-container .fluentform select,
.registration-form-container .fluentform textarea,
.registration-form-container .fluentform .ff-el-input,
.registration-form-container .fluentform .ff-el-form-control {
    color: #111 !important;
    background: #fff !important;
}

.registration-form-container .fluentform input::placeholder,
.registration-form-container .fluentform textarea::placeholder {
    color: #666 !important;
}

.registration-form-container .fluentform input:focus,
.registration-form-container .fluentform select:focus,
.registration-form-container .fluentform textarea:focus,
.registration-form-container .fluentform .ff-el-input:focus,
.registration-form-container .fluentform .ff-el-form-control:focus {
    color: #111 !important;
    border-color: rgba(172, 5, 17, 0.6) !important;
    box-shadow: 0 0 0 2px rgba(172, 5, 17, 0.2) !important;
}

.standings-container {
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 20rem !important; /* Extra bottom padding for container */
    margin-bottom: 10rem !important; /* Extra margin to push footer down */
    position: relative !important;
}

/* 2x2 Grid Layout - Force with !important to override any conflicting styles */
body.page-template-page-standings-php #standings-layout,
body:has(.standings-main) #standings-layout,
body.page-template-page-standings-php .standings-section .standings-layout,
body:has(.standings-main) .standings-section .standings-layout,
body.page-template-page-standings-php .standings-container .standings-layout,
body:has(.standings-main) .standings-container .standings-layout,
.standings-section .standings-layout,
#standings-layout,
.standings-container .standings-layout {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 3rem !important;
    margin-bottom: 10rem !important; /* Much more margin below grid to prevent footer overlap */
    padding-bottom: 5rem !important; /* Extra padding below grid */
    width: 100% !important;
    max-width: none !important;
}

/* Standings Window/Container - Ensure visible containers with maximum specificity and lighter background */
body.page-template-page-standings-php .standings-window,
body:has(.standings-main) .standings-window,
body.page-template-page-standings-php .standings-section .standings-window,
body:has(.standings-main) .standings-section .standings-window,
.standings-section .standings-window,
.standings-window {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 2px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 8px !important;
    padding: 2rem !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 500px !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    box-sizing: border-box !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

.standings-window-title {
    text-align: center;
    color: #fff;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1rem;
}

/* Standings Content Area */
.standings-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    min-height: 300px;
}

.standings-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.standings-placeholder-text {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.95rem !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-weight: 600 !important;
}

.standings-table-placeholder {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.standings-table-placeholder p {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.9rem !important;
    padding: 2rem !important;
    text-align: center !important;
    margin: 0 !important;
}

/* Standings iframe styling */
.standings-content .standings-iframe,
.standings-content iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 500px !important;
    max-height: 800px !important;
    border: none !important;
    border-radius: 4px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    display: block !important;
    flex: 1 !important;
}

/* Ensure iframe container takes full height */
.standings-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    min-height: 500px;
    overflow: hidden; /* Prevent iframe overflow */
}

.standings-content table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
}

.standings-content table th,
.standings-content table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.standings-content table th {
    background: rgba(255, 255, 255, 0.05);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.standings-content table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Standings Button (matching Full Results button style) - Force visibility */
.standings-section .standings-btn-wrapper,
.standings-btn-wrapper {
    text-align: center !important;
    margin-top: auto !important;
    padding-top: 1.5rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: block !important;
}

.standings-section .standings-btn,
.standings-btn {
    display: inline-block !important;
    padding: 12px 30px !important;
    background: var(--primary-racing-blue) !important;
    color: #fff !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    border: 2px solid var(--primary-racing-blue) !important;
    font-size: 1rem !important;
    letter-spacing: 1px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.standings-btn:hover {
    background: var(--primary-racing-red) !important;
    border-color: var(--primary-racing-red) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(172, 5, 17, 0.3) !important;
}

/* Extra spacing for results columns to prevent footer overlap */
.results-column {
    padding-bottom: 3rem;
}

/* Results section spacing */
.results-section {
    padding-bottom: 15rem !important;
    margin-bottom: 0 !important;
    min-height: auto;
}

/* Results Dropdown (same styling as calendar dropdown) */
.results-dropdown-wrapper {
    max-width: 500px;
    margin: 0 auto 3rem auto;
}

.results-dropdown-wrapper label {
    display: block;
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    text-align: center;
    font-weight: 700;
}

.results-dropdown-wrapper select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--primary-racing-blue);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px;
}

.results-dropdown-wrapper select:hover {
    border-color: var(--primary-racing-red);
    background-color: rgba(255, 255, 255, 0.15);
}

.results-dropdown-wrapper select:focus {
    outline: none;
    border-color: var(--primary-racing-red);
    box-shadow: 0 0 10px rgba(172, 5, 17, 0.3);
}

.results-dropdown-wrapper select option {
    background: #1E1E1E;
    color: #fff;
    padding: 10px;
}

.results-dropdown-wrapper select option:hover,
.results-dropdown-wrapper select option:focus,
.results-dropdown-wrapper select option:checked {
    background: var(--primary-racing-blue);
    color: #fff;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .site-header {
        padding: 0;
    }

    .header-inner {
        padding: 0 0.75rem;
    }

    .header-brand {
        padding: 0.55rem 0 0.2rem;
    }

    .site-logo {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
    }

    .site-tagline {
        font-size: 0.7rem;
        padding-left: 0;
        border-left: none;
        border-top: 2px solid rgba(255, 255, 255, 0.2);
        padding-top: 0.5rem;
        margin-top: 0.25rem;
        text-align: center;
        max-width: 100%;
    }

    .main-navigation {
        padding: 0 0.65rem 0.65rem;
    }

    .main-navigation .nav-chips {
        gap: 0.28rem 0.3rem;
        padding: 0.4rem 0.4rem;
        border-radius: 12px;
    }

    .main-navigation .nav-chips > li > a {
        font-size: 0.65rem;
        padding: 0.4rem 0.75rem;
    }

    .registration-status {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }

    .hub-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .glass-box {
        margin: 0 1rem;
        transform: skew(0deg);
    }

    .glass-box-content {
        transform: skew(0deg);
    }

    .hero-section-page {
        padding: var(--page-hero-padding-top) 1rem 2rem 1rem !important;
    }

    .calendar-stacked-layout {
        gap: 1.5rem;
    }

    .results-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .standings-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .standings-window {
        min-height: 400px;
    }

    .regs-stage {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .regs-stage__pills {
        order: -1;
    }

    .regs-round-pills {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.4rem;
    }

    .reg-cover__frame {
        height: min(480px, 62vh);
    }

    .season-title {
        font-size: 3.5rem;
    }

    .season-word,
    .season-number {
        -webkit-text-stroke: 2px #000;
        text-stroke: 2px #000;
    }

    .info-graphics-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .info-graphic-box {
        aspect-ratio: 350 / 180;
        max-width: 100%;
    }
}

/* ============================================
   PAINT SUBMISSION PAGE STYLES
   ============================================
   These styles enhance the visual appearance while
   preserving all functionality (IDs, classes, structure)
   ============================================ */

/* Paint Submission Page Container - FIX FOOTER POSITIONING */
.paint-submission-page {
    padding: var(--page-hero-padding-top) 2rem 4rem 2rem;
    padding-bottom: 15rem !important; /* Very large padding to push footer down */
    position: relative;
    min-height: auto; /* Let content determine height */
    width: 100%;
    display: block !important; /* Normal flow, not flex */
    overflow: visible !important; /* Ensure content isn't clipped */
}

/* Add spacer after form content to push footer down */
.paint-submission-page::after {
    content: '';
    display: block;
    height: 20rem; /* Large spacer */
    width: 100%;
}

/* Fix glass-box for paint submission - WIDTH RESTORED FOR 2-COLUMN + 1-COLUMN LAYOUT */
.paint-form-container.glass-box {
    max-width: 1200px !important; /* Wider to accommodate 2-column section at top */
    overflow: visible !important; /* Allow content to flow naturally */
    position: relative;
    padding: 3rem 4rem !important; /* Restored padding */
    min-height: auto !important;
    height: auto !important; /* Let content determine height */
    width: 100%;
    box-sizing: border-box;
}

/* REMOVE SKEW TRANSFORM and BACKDROP BLUR for paint submission to fix blurry text and background alignment */
.paint-form-container.glass-box::before {
    transform: none !important; /* NO SKEW - causes blurry text and misaligned background */
    backdrop-filter: none !important; /* REMOVE BLUR - causes text to appear blurry */
    -webkit-backdrop-filter: none !important;
    border-radius: 8px; /* Add rounded corners instead */
    width: 100% !important; /* Full width */
    height: 100% !important; /* Full height */
    left: 0 !important;
    top: 0 !important;
    background: rgba(255, 255, 255, 0.05) !important; /* Solid background without blur */
}

/* Ensure glass-box-content text is sharp */
.paint-form-container .glass-box-content {
    text-align: left !important; /* Form content should be left-aligned, not center */
    position: relative;
    z-index: 2; /* Ensure content is above background */
    transform: none !important; /* No transforms on content */
}

.paint-submission-content {
    text-align: left;
    color: #fff;
    margin-top: 2rem;
    display: block !important; /* Normal flow */
}

/* Fluent Forms Container Styling - RESTORED TO SUPPORT FLUENT FORMS' BUILT-IN COLUMNS */
.paint-submission-content .fluentform,
.paint-submission-content .fluentform form,
.paint-submission-content .fluentform form fieldset {
    width: 100% !important;
    max-width: 100% !important;
}

/* Allow Fluent Forms' own column system to work naturally */
.paint-submission-content .fluentform .ff-el-group {
    box-sizing: border-box !important;
}

/* Let Fluent Forms handle its own column layout - no forced overrides */

/* Fluent Forms Labels - Professional Typography (catch all label variations) */
.paint-submission-content .fluentform label,
.paint-submission-content .fluentform label.ff-el-form-label,
.paint-submission-content .fluentform .ff-el-form-label {
    display: block;
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Required Field Indicator (various possible selectors) */
.paint-submission-content .fluentform label .ff-el-form-required,
.paint-submission-content .fluentform label .required,
.paint-submission-content .fluentform label .asterisk {
    color: var(--primary-racing-red) !important;
    margin-left: 4px;
}

/* Fluent Forms Input Prefix Groups (for color code field with #) - Multiple selector patterns */
.paint-submission-content .fluentform .ff_input_prefix,
.paint-submission-content .fluentform .ff-el-input-group,
.paint-submission-content .fluentform .input-group,
.paint-submission-content .fluentform [class*="input-group"],
.paint-submission-content .fluentform [class*="prefix"] {
    display: flex !important;
    align-items: stretch !important; /* Stretch to match input height */
    width: 100% !important;
    flex-wrap: nowrap !important;
}

/* Prefix label/text styling - TIGHT WIDTH, just enough for the symbol */
.paint-submission-content .fluentform .ff_input_prefix .ff_input_prefix_label,
.paint-submission-content .fluentform .ff-el-input-group .input-group-prepend,
.paint-submission-content .fluentform .input-group .input-group-text,
.paint-submission-content .fluentform [class*="input-group"] [class*="prepend"],
.paint-submission-content .fluentform [class*="prefix"] span,
.paint-submission-content .fluentform [class*="prefix"] label,
.paint-submission-content .fluentform [class*="prefix"]:before {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 12px !important; /* Tight padding, just enough for # */
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-right: none !important;
    border-radius: 4px 0 0 4px !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    width: auto !important; /* Auto width based on content */
    min-width: auto !important; /* No minimum width */
    max-width: fit-content !important; /* Only as wide as needed */
    flex: 0 0 auto !important; /* Don't grow or shrink, just be content size */
    height: 100% !important;
}

/* Input in prefix group */
.paint-submission-content .fluentform .ff_input_prefix input,
.paint-submission-content .fluentform .ff-el-input-group input,
.paint-submission-content .fluentform .input-group input,
.paint-submission-content .fluentform [class*="input-group"] input[type="text"],
.paint-submission-content .fluentform [class*="prefix"] input {
    border-radius: 0 4px 4px 0 !important;
    border-left: none !important;
    flex: 1 1 auto !important;
    min-width: 0 !important; /* Allow flex shrinking */
}

/* Fluent Forms Text Inputs - Professional Styling (catch all input types) */
.paint-submission-content .fluentform input[type="text"],
.paint-submission-content .fluentform input[type="email"],
.paint-submission-content .fluentform input[type="number"],
.paint-submission-content .fluentform input[type="tel"],
.paint-submission-content .fluentform .ff-el-input,
.paint-submission-content .fluentform .ff-el-form-control {
    width: 100% !important;
    padding: 12px 16px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    font-family: 'Arial', sans-serif !important;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Fix inputs that are part of input groups (remove left border radius if in group) */
.paint-submission-content .fluentform .ff_input_prefix input[type="text"],
.paint-submission-content .fluentform .ff-el-input-group input[type="text"],
.paint-submission-content .fluentform .input-group input[type="text"] {
    border-left: none !important;
    border-radius: 0 4px 4px 0 !important;
}

.paint-submission-content .fluentform input[type="text"]:focus,
.paint-submission-content .fluentform input[type="email"]:focus,
.paint-submission-content .fluentform input[type="number"]:focus,
.paint-submission-content .fluentform input[type="tel"]:focus,
.paint-submission-content .fluentform .ff-el-input:focus,
.paint-submission-content .fluentform .ff-el-form-control:focus {
    outline: none !important;
    border-color: var(--primary-racing-blue) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 0 10px rgba(0, 0, 170, 0.3) !important;
}

/* Fix focus state for input groups - update prefix border too */
.paint-submission-content .fluentform .ff_input_prefix:focus-within .ff_input_prefix_label,
.paint-submission-content .fluentform .ff-el-input-group:focus-within .input-group-prepend,
.paint-submission-content .fluentform .input-group:focus-within .input-group-text {
    border-color: var(--primary-racing-blue) !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

.paint-submission-content .fluentform .ff_input_prefix:focus-within input,
.paint-submission-content .fluentform .ff-el-input-group:focus-within input,
.paint-submission-content .fluentform .input-group:focus-within input {
    border-color: var(--primary-racing-blue) !important;
    border-left: 2px solid var(--primary-racing-blue) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 0 10px rgba(0, 0, 170, 0.3) !important;
}

.paint-submission-content .fluentform input[type="text"]::placeholder,
.paint-submission-content .fluentform input[type="email"]::placeholder,
.paint-submission-content .fluentform input[type="number"]::placeholder,
.paint-submission-content .fluentform input[type="tel"]::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Fluent Forms Select Dropdowns (catch all variations) */
.paint-submission-content .fluentform select,
.paint-submission-content .fluentform .ff-el-select select {
    width: 100% !important;
    padding: 12px 16px !important;
    padding-right: 40px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 12px !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    font-family: 'Arial', sans-serif !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.paint-submission-content .fluentform select:hover {
    border-color: var(--primary-racing-blue) !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
}

.paint-submission-content .fluentform select:focus {
    outline: none !important;
    border-color: var(--primary-racing-blue) !important;
    box-shadow: 0 0 10px rgba(0, 0, 170, 0.3) !important;
}

.paint-submission-content .fluentform select option {
    background: #1E1E1E !important;
    color: #ffffff !important;
    padding: 10px !important;
}

/* Section Headers - Style any H2/H3/H4 in form as section headers - FIX BLURRY */
.paint-submission-content .fluentform h2,
.paint-submission-content .fluentform h3,
.paint-submission-content .fluentform h4,
.paint-submission-content .fluentform .section-header {
    color: #ffffff !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin: 2.5rem 0 1rem 0 !important;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    font-family: 'Arial Black', 'Arial Bold', Arial, sans-serif;
    /* AGGRESSIVE FIX FOR BLURRY HEADERS - REMOVE ALL BLUR SOURCES */
    transform: none !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
    will-change: auto !important;
    backface-visibility: visible !important;
    filter: none !important;
    text-shadow: none !important;
    /* Remove any glow effects */
    box-shadow: none !important;
    /* Force crisp rendering */
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
}

.paint-submission-content .fluentform h2:first-child,
.paint-submission-content .fluentform h3:first-child {
    margin-top: 1rem !important;
}

/* Section Instructions/Notes */
.paint-submission-content .fluentform p,
.paint-submission-content .fluentform .ff-el-help,
.paint-submission-content .fluentform .instruction-text {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1rem !important;
}

/* Section Dividers / Custom HTML Fields */
.paint-submission-content .fluentform hr,
.paint-submission-content .fluentform .ff-el-custom_html hr {
    border: none !important;
    border-top: 2px solid rgba(255, 255, 255, 0.1) !important;
    margin: 2.5rem 0 1.5rem 0 !important;
}

/* Custom Upload Zones - CHANGE COLORS HERE */
#drop-zone-main,
#drop-zone-spec {
    border: 2px dashed var(--primary-racing-blue) !important; /* Blue border instead of white */
    padding: 2rem !important;
    text-align: center !important;
    background: rgba(0, 0, 157, 0.1) !important; /* Blue tinted background */
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    position: relative !important;
    min-height: 140px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 1.5rem 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 157, 0.2) !important; /* Blue shadow */
}

#drop-zone-main:hover,
#drop-zone-spec:hover {
    border-color: var(--primary-racing-blue) !important;
    background: rgba(0, 0, 157, 0.15) !important; /* Slightly brighter blue on hover */
    box-shadow: 0 4px 12px rgba(0, 0, 157, 0.3) !important;
}

/* Drag Over State */
#drop-zone-main.dragover,
#drop-zone-spec.dragover {
    border-color: var(--primary-racing-blue);
    background: rgba(0, 0, 157, 0.1);
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(0, 0, 157, 0.3);
}

/* Uploading State */
#drop-zone-main.uploading,
#drop-zone-spec.uploading {
    border-color: var(--primary-racing-blue);
    background: rgba(0, 0, 157, 0.15);
}

#drop-zone-main.uploading::before,
#drop-zone-spec.uploading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--primary-racing-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success State */
#drop-zone-main.success,
#drop-zone-spec.success {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

/* Error State */
#drop-zone-main.error,
#drop-zone-spec.error {
    border-color: var(--primary-racing-red);
    background: rgba(172, 5, 17, 0.1);
}

/* Upload Zone Text */
#drop-zone-main p,
#drop-zone-spec p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 1rem 0;
    font-size: 1rem;
}

/* Browse Button Styling - FIXED TO LOOK BETTER */
#drop-zone-main .btn-browse,
#drop-zone-spec .btn-browse {
    padding: 12px 28px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-family: 'Arial', sans-serif !important;
    margin-top: 0.5rem !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

#drop-zone-main .btn-browse:hover,
#drop-zone-spec .btn-browse:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: var(--primary-racing-blue) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 157, 0.3) !important;
}

/* Upload Status Messages */
#drop-zone-main .upload-status,
#drop-zone-spec .upload-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    min-height: 20px;
}

#drop-zone-main.success .upload-status,
#drop-zone-spec.success .upload-status {
    color: #4CAF50;
    font-weight: 600;
}

#drop-zone-main.error .upload-status,
#drop-zone-spec.error .upload-status {
    color: var(--primary-racing-red);
    font-weight: 600;
}

/* Fluent Forms Checkbox Styling (catch all variations) */
.paint-submission-content .fluentform input[type="checkbox"],
.paint-submission-content .fluentform input[type="radio"] {
    width: 20px !important;
    height: 20px !important;
    margin-right: 10px !important;
    cursor: pointer !important;
    accent-color: var(--primary-racing-blue) !important;
    flex-shrink: 0;
}

.paint-submission-content .fluentform .ff-checkable-label,
.paint-submission-content .fluentform label[for*="checkbox"],
.paint-submission-content .fluentform label[for*="radio"] {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    display: flex !important;
    align-items: flex-start !important;
    cursor: pointer !important;
    text-transform: none !important; /* Override uppercase for checkbox labels */
    letter-spacing: normal !important;
    font-weight: 400 !important;
}

/* Fluent Forms Submit Button (catch all button variations) - FIX BLURRY TEXT */
.paint-submission-content .fluentform .ff-btn-submit,
.paint-submission-content .fluentform button[type="submit"],
.paint-submission-content .fluentform .ff_submit_btn,
.paint-submission-content .fluentform input[type="submit"],
.paint-submission-content .fluentform .ff-btn {
    width: 100% !important;
    padding: 16px 32px !important;
    background: linear-gradient(135deg, var(--primary-racing-red) 0%, #8B0000 100%) !important;
    border: 2px solid var(--primary-racing-red) !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: all 0.3s ease;
    font-family: 'Arial Black', 'Arial Bold', Arial, sans-serif !important;
    margin-top: 2rem !important;
    box-sizing: border-box;
    /* AGGRESSIVE FIX FOR BLURRY SUBMIT BUTTON TEXT */
    transform: none !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
    will-change: auto !important;
    backface-visibility: visible !important;
    text-shadow: none !important;
    /* Remove any glow effects */
    filter: none !important;
    box-shadow: none !important;
    /* Force crisp rendering */
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
}

.paint-submission-content .fluentform .ff-btn-submit:hover,
.paint-submission-content .fluentform button[type="submit"]:hover,
.paint-submission-content .fluentform .ff_submit_btn:hover,
.paint-submission-content .fluentform input[type="submit"]:hover {
    background: linear-gradient(135deg, #CC0511 0%, var(--primary-racing-red) 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(172, 5, 17, 0.4) !important;
}

.paint-submission-content .fluentform .ff-btn-submit:active,
.paint-submission-content .fluentform button[type="submit"]:active,
.paint-submission-content .fluentform .ff_submit_btn:active,
.paint-submission-content .fluentform input[type="submit"]:active {
    transform: translateY(0);
}

/* Fluent Forms Textarea (catch all variations) */
.paint-submission-content .fluentform textarea,
.paint-submission-content .fluentform .ff-el-textarea textarea {
    width: 100% !important;
    padding: 12px 16px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    font-family: 'Arial', sans-serif !important;
    min-height: 120px;
    resize: vertical;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.paint-submission-content .fluentform textarea:focus,
.paint-submission-content .fluentform .ff-el-textarea textarea:focus {
    outline: none !important;
    border-color: var(--primary-racing-blue) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 0 10px rgba(0, 0, 170, 0.3) !important;
}

.paint-submission-content .fluentform textarea::placeholder,
.paint-submission-content .fluentform .ff-el-textarea textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Fluent Forms Error Messages */
.paint-submission-content .fluentform .ff-el-is-error .ff-el-form-control {
    border-color: var(--primary-racing-red) !important;
}

.paint-submission-content .fluentform .text-danger,
.paint-submission-content .fluentform .ff-error {
    color: var(--primary-racing-red);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
}

/* Help Text / Descriptions */
.paint-submission-content .fluentform .ff-el-help {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Responsive Design for Paint Submission */
@media (max-width: 768px) {
    .paint-form-container {
        padding: 2rem 1.5rem;
        max-width: 100% !important;
    }
    
    .paint-submission-page {
        padding: var(--page-hero-padding-top) 1rem 2rem 1rem;
    }
    
    #drop-zone-main,
    #drop-zone-spec {
        padding: 1.5rem;
        min-height: 120px;
    }
    
    .paint-submission-content .fluentform input[type="text"],
    .paint-submission-content .fluentform input[type="email"],
    .paint-submission-content .fluentform input[type="number"],
    .paint-submission-content .fluentform select,
    .paint-submission-content .fluentform textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Smaller title on mobile */
    .paint-submission-page .hero-title {
        font-size: 2.5rem !important;
    }
}

/* ============================================
   PAINT / LOGO — twin deck panels + logo drop
   ============================================ */

.paint-logo-page {
    position: relative;
    overflow: visible;
}

.paint-logo-atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 65% 40% at 50% 12%, rgba(0, 0, 157, 0.16), transparent 60%),
        radial-gradient(ellipse 45% 35% at 85% 75%, rgba(172, 5, 17, 0.1), transparent 55%);
    overflow: hidden;
}

.paint-logo-shell {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem 4rem;
}

.paint-logo-shell .hero-title {
    text-align: center;
    margin-bottom: 0.75rem;
}

.paint-logo-lead {
    margin: 0 0 2rem;
    text-align: center;
    color: rgba(220, 225, 240, 0.55);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.pl-decks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 2.5rem;
    margin: 0 auto 2.5rem;
    max-width: 1240px;
    align-items: stretch;
    overflow: visible;
}

.pl-deck {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 0.35rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
    text-align: center;
    aspect-ratio: 1400 / 788;
    transform-origin: 50% 60%;
    transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1), filter 0.3s ease;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.55));
    -webkit-tap-highlight-color: transparent;
    overflow: visible;
}

.pl-deck:hover,
.pl-deck:focus-visible {
    transform: translateY(-5px) scale(1.02);
    outline: none;
    filter: drop-shadow(0 26px 36px rgba(0, 0, 0, 0.65));
}

.pl-deck.is-selected {
    transform: translateY(-2px) scale(1.015);
    filter: drop-shadow(0 22px 34px rgba(0, 0, 157, 0.45));
}

.pl-deck--logo.is-selected {
    filter: drop-shadow(0 22px 34px rgba(172, 5, 17, 0.35));
}

.pl-deck__art {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    pointer-events: none;
    user-select: none;
}

/* Identical type on both decks — only the photo differs */
.pl-deck__copy {
    position: absolute;
    inset: 18% 6% 18% 6%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
    pointer-events: none;
    z-index: 1;
    text-align: center;
}

.pl-deck__title {
    margin: 0;
    font-family: "Exo 2", sans-serif;
    font-weight: 800;
    font-style: italic;
    font-size: clamp(1.65rem, 3.4vw, 2.85rem);
    line-height: 0.95;
    letter-spacing: 0.04em;
    color: #fff;
    text-transform: uppercase;
    text-shadow:
        0 2px 0 rgba(0, 0, 0, 0.55),
        0 8px 18px rgba(0, 0, 0, 0.65);
}

.pl-deck__sub {
    margin: 0;
    font-family: "Exo 2", sans-serif;
    font-weight: 500;
    font-style: italic;
    font-size: clamp(0.72rem, 1.15vw, 0.95rem);
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75);
}

.pl-path {
    margin: 0 auto 2rem;
    max-width: 1000px;
}

.pl-path[hidden] {
    display: none !important;
}

.pl-path__chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 0.85rem;
    padding: 0 0.15rem;
}

.pl-path__title {
    margin: 0;
    color: #fff;
    font-family: "Exo 2", sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pl-path__close {
    margin: 0;
    padding: 0.45rem 0.9rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.pl-path__close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.pl-path__body {
    padding: 1rem 1rem 1.25rem !important;
}

.pl-path--paint .paint-form-container.glass-box {
    margin: 0 !important;
    max-width: none !important;
    width: 100%;
}

.pl-logo-hint {
    margin: 0 0 1rem;
    color: rgba(210, 220, 240, 0.6);
    font-size: 0.82rem;
    text-align: center;
}

.pl-logo-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 10rem;
    padding: 1.5rem;
    border: 2px dashed rgba(160, 190, 255, 0.4);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.pl-logo-drop:hover,
.pl-logo-drop:focus-visible,
.pl-logo-drop.is-dragover {
    border-color: rgba(126, 176, 255, 0.85);
    background: rgba(0, 0, 157, 0.18);
    outline: none;
}

.pl-logo-drop__title {
    font-family: "Exo 2", sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
}

.pl-logo-drop__sub {
    color: rgba(200, 210, 230, 0.55);
    font-size: 0.8rem;
}

.pl-logo-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.pl-logo-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(235, 240, 255, 0.9);
    font-size: 0.85rem;
}

.pl-logo-list__remove {
    margin: 0;
    padding: 0.25rem 0.55rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.pl-logo-captcha {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    margin: 1.15rem 0;
}

.pl-logo-captcha__warn {
    margin: 0;
    max-width: 28rem;
    text-align: center;
    color: #ffb4b4;
    font-size: 0.8rem;
}

.pl-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.pl-logo-submit {
    display: block;
    margin: 0 auto;
    padding: 0.85rem 1.75rem;
    background: linear-gradient(180deg, #1a1aff 0%, var(--primary-racing-blue) 55%, #000070 100%);
    border: 1px solid #7eb0ff;
    border-radius: 8px;
    color: #fff;
    font-family: "Exo 2", sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(0, 0, 157, 0.45);
}

.pl-logo-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.pl-logo-submit:not(:disabled):hover {
    filter: brightness(1.08);
}

.pl-logo-status {
    margin: 0.85rem 0 0;
    text-align: center;
    font-size: 0.88rem;
    color: rgba(220, 225, 240, 0.75);
    min-height: 1.25em;
}

.pl-logo-status.is-ok {
    color: #7dff9a;
}

.pl-logo-status.is-error {
    color: #ff8a8a;
}

.pl-logo-status.is-pending {
    color: #9ec0ff;
}

@media (max-width: 720px) {
    .pl-decks {
        grid-template-columns: 1fr;
        max-width: 560px;
        gap: 2rem;
    }
}

/* ============================================
   NEWS PAGE — magazine feed (image + story rows)
   Page H1 uses site-wide .hero-title (Exo 2 + silver edge)
   ============================================ */

.news-section {
    padding: var(--page-hero-padding-top, 3rem) 1.25rem 4rem;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
}

.news-main .news-page-title {
    text-align: center;
    margin: 0 0 2.5rem;
}

.news-feed {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.news-story {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    background:
        linear-gradient(145deg, rgba(0, 0, 157, 0.16) 0%, rgba(0, 0, 0, 0.45) 48%, rgba(172, 5, 17, 0.1) 100%),
        rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.news-story:hover {
    border-color: rgba(120, 160, 255, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    transform: translateY(-2px);
}

.news-story--flip .news-story__media {
    order: 2;
}

.news-story--flip .news-story__body {
    order: 1;
}

.news-story__media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 220px;
    background: #050508;
}

.news-story__media-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 220px;
    max-height: 320px;
}

.news-story__img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    max-height: 320px;
    object-fit: contain;
    object-position: center;
}

.news-story__media-link--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
}

.news-story--flip .news-story__media-link--empty {
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.news-story__placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-story__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.65rem;
    padding: 1.5rem 1.6rem 1.6rem;
    min-width: 0;
}

.news-story__title {
    margin: 0;
    font-family: "Exo 2", sans-serif;
    font-style: italic;
    font-weight: 800;
    font-size: clamp(1.15rem, 2.2vw, 1.55rem);
    line-height: 1.25;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.news-story__title a {
    color: #fff;
    -webkit-text-fill-color: #fff;
    background-image: none;
    text-decoration: none;
    -webkit-text-stroke: 1.5px #000;
    paint-order: stroke fill;
    text-shadow:
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000;
}

.news-story__title a:hover {
    color: #c8d4ff;
    -webkit-text-fill-color: #c8d4ff;
}

.news-story__date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.news-story__excerpt {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    line-height: 1.55;
}

.news-story__cta {
    align-self: flex-start;
    margin-top: 0.35rem;
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.15rem;
    background: var(--primary-racing-blue);
    border: 1px solid var(--primary-racing-blue);
    border-radius: 999px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 0 0 1px rgba(120, 160, 255, 0.3), 0 0 16px rgba(0, 0, 157, 0.4);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.news-story__cta:hover {
    background: #1a1aff;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(120, 160, 255, 0.45), 0 0 22px rgba(0, 0, 157, 0.55);
}

.news-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
}

.news-empty p {
    margin: 0;
    font-size: 1.1rem;
}

.news-pagination {
    margin-top: 2.5rem;
    text-align: center;
}

.news-pagination ul {
    list-style: none;
    display: inline-flex;
    gap: 0.45rem;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.news-pagination li {
    margin: 0;
}

.news-pagination a,
.news-pagination span {
    display: inline-block;
    padding: 0.5rem 0.95rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.news-pagination a:hover {
    background: var(--primary-racing-blue);
    border-color: var(--primary-racing-blue);
    color: #fff;
}

.news-pagination .current {
    background: var(--primary-racing-blue);
    border-color: var(--primary-racing-blue);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(120, 160, 255, 0.35), 0 0 14px rgba(0, 0, 157, 0.4);
}

@media (max-width: 860px) {
    .news-story,
    .news-story--flip {
        grid-template-columns: 1fr;
    }

    .news-story--flip .news-story__media,
    .news-story--flip .news-story__body {
        order: initial;
    }

    .news-story__media {
        min-height: 180px;
    }

    .news-story__img,
    .news-story__media-link {
        min-height: 180px;
        max-height: 240px;
    }

    .news-story__body {
        padding: 1.2rem 1.15rem 1.35rem;
    }
}

/* Single article title — readable white + black edge */
.news-single-title {
    font-family: "Exo 2", sans-serif;
    font-style: italic;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    -webkit-text-fill-color: #fff;
    background-image: none;
    -webkit-text-stroke: 2px #000;
    paint-order: stroke fill;
    text-shadow:
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000;
}

/* Legacy hooks (single article / old classes) */
.news-article-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-title a:hover {
    color: var(--primary-racing-blue) !important;
}

@media (max-width: 768px) {
    .news-single-title {
        font-size: 1.8rem !important;
    }
}

/* ============================================
   MEDIA PAGE — broadcast chrome + featured stage
   (MEDIA page title uses site-wide .hero-title — do not override)
   ============================================ */

.media-section {
    padding: var(--page-hero-padding-top, 3rem) 1.25rem 4rem;
}

.media-container {
    max-width: 1400px;
    margin: 0 auto;
}

.media-chrome {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem 1.35rem;
    margin: 0 0 1.75rem;
    padding: 1rem 1.1rem 1.1rem;
    background:
        linear-gradient(145deg, rgba(0, 0, 157, 0.28) 0%, rgba(0, 0, 0, 0.55) 42%, rgba(172, 5, 17, 0.14) 100%),
        rgba(6, 8, 14, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 14px 36px rgba(0, 0, 0, 0.45);
}

.media-chrome__channels {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.55rem;
    min-width: 0;
    flex: 1 1 32rem;
}

.media-channel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.55rem 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.88);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.media-channel--all {
    min-width: 4.25rem;
    border-radius: 999px;
    align-self: center;
}

.media-channel--broadcast {
    flex: 0 0 13.125rem;
    flex-direction: column;
    gap: 0.35rem;
    width: 13.125rem;
    min-width: 13.125rem;
    max-width: 13.125rem;
    min-height: 6.35rem;
    padding: 0.55rem 0.65rem 0.5rem;
    box-sizing: border-box;
}

.media-channel:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.media-channel.is-active {
    background: rgba(0, 0, 157, 0.55);
    border-color: rgba(120, 160, 255, 0.75);
    color: #fff;
    box-shadow:
        0 0 0 1px rgba(120, 160, 255, 0.45),
        0 0 22px rgba(0, 0, 157, 0.55);
}

.media-channel__logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 3.15rem;
    min-height: 3.15rem;
    padding: 0.2rem 0.3rem;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 8px;
    box-sizing: border-box;
}

.media-channel__logo {
    display: block;
    height: 100%;
    width: 100%;
    max-height: 2.75rem;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    filter: brightness(1.08) contrast(1.05);
}

.media-channel.is-active .media-channel__logo {
    filter: brightness(1.15) contrast(1.05);
}

.media-channel__logo-fallback {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.media-channel__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    gap: 0.12rem;
}

.media-channel--all .media-channel__name {
    font-size: 0.78rem;
}

.media-channel__name {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.media-channel__split {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(168, 196, 255, 0.75);
}

.media-channel.is-active .media-channel__split {
    color: rgba(200, 220, 255, 0.95);
}

.media-chrome__tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.65rem;
    flex: 0 1 auto;
    align-self: center;
}

.media-chrome__label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.media-chrome__select {
    min-width: 9.5rem;
    padding: 0.48rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.media-chrome__select:hover,
.media-chrome__select:focus {
    border-color: rgba(120, 160, 255, 0.45);
    outline: none;
}

.media-chrome__select option {
    background: #0a0c14;
    color: #fff;
}

.media-chrome__clear {
    padding: 0.48rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.media-chrome__clear:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
}

.media-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 0.85rem 1rem;
    align-items: stretch;
    margin-bottom: 2rem;
}

.media-stage--grid-only,
.media-stage--feature-only {
    grid-template-columns: 1fr;
}

.media-feature {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background:
        linear-gradient(160deg, rgba(0, 0, 157, 0.16) 0%, rgba(0, 0, 0, 0.4) 55%, rgba(172, 5, 17, 0.1) 100%),
        rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.media-feature:hover,
.media-feature:focus-visible {
    border-color: rgba(120, 160, 255, 0.4);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
    transform: translateY(-2px);
    outline: none;
}

.media-feature__media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #050508;
    overflow: hidden;
}

.media-feature__media .media-tile__img,
.media-feature__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-feature__body {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem 1rem 1.15rem;
}

.media-feature__cta {
    margin: 0.45rem 0 0;
    align-self: flex-start;
    padding: 0.5rem 1.05rem;
    border-radius: 999px;
    background: var(--primary-racing-blue);
    border: 1px solid var(--primary-racing-blue);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 0 0 1px rgba(120, 160, 255, 0.3), 0 0 14px rgba(0, 0, 157, 0.4);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    align-content: start;
    min-width: 0;
}

.media-stage--grid-only .media-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.85rem;
}

.media-tile {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.media-tile:hover,
.media-tile:focus-visible {
    border-color: rgba(120, 160, 255, 0.35);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
    outline: none;
}

.media-tile__media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #050508;
    overflow: hidden;
}

.media-tile__img,
.media-tile__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-tile__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.media-tile__play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    transform: translate(-50%, -50%);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.media-tile__play--feature {
    width: 4rem;
    height: 4rem;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    color: #0a0c14;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.media-feature:hover .media-tile__play--feature,
.media-feature:focus-visible .media-tile__play--feature {
    background: #fff;
    transform: translate(-50%, -50%) scale(1.06);
    box-shadow: 0 10px 28px rgba(0, 0, 157, 0.35);
}

.media-tile:hover .media-tile__play:not(.media-tile__play--feature),
.media-tile:focus-visible .media-tile__play:not(.media-tile__play--feature) {
    background: var(--primary-racing-blue);
    border-color: var(--primary-racing-blue);
    transform: translate(-50%, -50%) scale(1.06);
}

.media-tile__body {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem 0.65rem 0.75rem;
}

.media-tile__copy {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.media-tile__meta {
    margin: 0;
    color: rgba(168, 196, 255, 0.75);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.media-feature .media-tile__meta {
    color: rgba(168, 196, 255, 0.85);
    font-size: 0.72rem;
}

.media-tile__track {
    margin: 0;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
}

.media-feature .media-tile__track {
    font-size: clamp(1.25rem, 2.1vw, 1.65rem);
}

/* Race-style split number — in track/round bar, not on thumbnail */
.media-tile__number {
    flex: 0 0 auto;
    position: static;
    font-family: "Exo 2", sans-serif;
    font-style: italic;
    font-weight: 800;
    font-size: clamp(2.2rem, 4vw, 2.85rem);
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: #fff;
    -webkit-text-stroke: 2px #000;
    paint-order: stroke fill;
    text-shadow:
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        0 2px 8px rgba(0, 0, 0, 0.45);
    pointer-events: none;
    user-select: none;
}

.media-feature .media-tile__number {
    font-size: clamp(3rem, 5vw, 4rem);
    -webkit-text-stroke: 2.5px #000;
}

.media-empty {
    text-align: center;
    padding: 3.5rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
}

.media-empty p {
    margin: 0;
    font-size: 1.05rem;
}

.media-empty__action {
    margin-top: 1rem !important;
}

.media-empty__action a {
    color: #fff;
    text-decoration: underline;
}

.media-pagination {
    margin-top: 1.5rem;
    text-align: center;
}

.media-pagination ul {
    list-style: none;
    display: inline-flex;
    gap: 0.45rem;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.media-pagination li {
    margin: 0;
}

.media-pagination a,
.media-pagination span {
    display: inline-block;
    padding: 0.5rem 0.95rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.media-pagination a:hover {
    background: var(--primary-racing-blue);
    border-color: var(--primary-racing-blue);
    color: #fff;
}

.media-pagination .current {
    background: var(--primary-racing-blue);
    border-color: var(--primary-racing-blue);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(120, 160, 255, 0.35), 0 0 14px rgba(0, 0, 157, 0.4);
}

@media (max-width: 980px) {
    .media-stage {
        grid-template-columns: 1fr;
    }

    .media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .media-chrome {
        padding: 0.65rem;
    }

    .media-chrome__channels {
        flex: 1 1 100%;
    }

    .media-channel--broadcast {
        flex: 1 1 calc(50% - 0.55rem);
        width: auto;
        min-width: calc(50% - 0.55rem);
        max-width: none;
    }

    .media-grid,
    .media-stage--grid-only .media-grid {
        grid-template-columns: 1fr;
    }
}

/* Drivers directory — Standings-style chrome */
.drivers-chrome {
    width: 100%;
    max-width: 100%;
    margin: 0 0 2rem;
    padding: 1.25rem 1.35rem 1.2rem;
    background:
        linear-gradient(145deg, rgba(0, 0, 157, 0.22) 0%, rgba(0, 0, 0, 0.42) 45%, rgba(172, 5, 17, 0.12) 100%),
        rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.vets-drivers-directory-tools {
    max-width: none;
    margin: 0 0 1.15rem;
    text-align: left;
}

.vets-driver-search {
    width: 100%;
    max-width: none;
    padding: 0.7rem 1.1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    box-sizing: border-box;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.vets-driver-search::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.vets-driver-search:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(120, 160, 255, 0.45);
    box-shadow: 0 0 0 1px rgba(120, 160, 255, 0.25);
}

.vets-driver-search-hint {
    margin: 0.65rem 0 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

.vets-driver-search-empty {
    margin: 0.75rem 0 0;
    color: #f0ad4e;
    font-weight: 600;
}

.drivers-chrome__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
    gap: 1rem 1.35rem;
    align-items: end;
    margin-bottom: 1.15rem;
}

.drivers-chrome__label {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}

.drivers-chrome__label--inline {
    margin: 0 0 0.45rem;
}

.drivers-chrome__select {
    width: 100%;
    padding: 0.65rem 2.1rem 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 999px;
    appearance: none;
    color-scheme: dark;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.drivers-chrome__select:hover,
.drivers-chrome__select:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    outline: none;
}

.drivers-chrome__select option {
    background-color: #1a1a22;
    color: #f2f2f2;
}

.drivers-chrome__select option:checked,
.drivers-chrome__select option:hover,
.drivers-chrome__select option:focus {
    background-color: var(--primary-racing-blue, #00009d);
    color: #fff;
}

.drivers-chrome__actions {
    display: flex;
    align-items: flex-end;
    padding-bottom: 0.05rem;
}

.drivers-chrome__clear,
.vets-clear-filters {
    padding: 0.65rem 1.15rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.drivers-chrome__clear:hover,
.drivers-chrome__clear:focus,
.vets-clear-filters:hover,
.vets-clear-filters:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    outline: none;
    transform: translateY(-1px);
}

.drivers-chrome__clear.is-hidden,
.vets-clear-filters.is-hidden {
    visibility: hidden;
    pointer-events: none;
}

.vets-drivers-alpha {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
}

.vets-drivers-alpha__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.vets-drivers-alpha__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.15rem;
    height: 2.15rem;
    padding: 0 0.55rem;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.vets-drivers-alpha__link--all {
    min-width: 3.25rem;
    padding: 0 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.vets-drivers-alpha__link:hover,
.vets-drivers-alpha__link:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    transform: translateY(-1px);
    outline: none;
}

.vets-drivers-alpha__link.is-active {
    background: var(--primary-racing-blue, #00009D);
    border-color: var(--primary-racing-blue, #00009D);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(120, 160, 255, 0.35), 0 0 18px rgba(0, 0, 157, 0.45);
}

@media (max-width: 780px) {
    .drivers-chrome__grid {
        grid-template-columns: 1fr;
    }

    .drivers-chrome__actions {
        justify-content: flex-start;
    }
}

/* Legacy hook — keep if referenced elsewhere */
.vets-drivers-toolbar.results-toolbar {
    max-width: none;
    margin-bottom: 0;
}

.vets-drivers-toolbar__actions {
    flex: 0 0 auto;
    align-self: flex-end;
    min-width: 7rem;
}

/* Drivers directory — profile cards */
.driver-card {
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.driver-card-flip-scene {
    perspective: 1100px;
}

.driver-card-flip {
    position: relative;
}

.driver-card-flip-inner {
    position: relative;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

.driver-card-flip-inner.is-flip-spinning {
    animation: vets-driver-card-spin-y 1s ease-in-out forwards;
}

@keyframes vets-driver-card-spin-y {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(360deg);
    }
}

.driver-card-face {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.driver-card-face--front {
    position: relative;
    z-index: 1;
}

.driver-card-face--back {
    position: absolute;
    inset: 0;
    z-index: 0;
    transform: rotateY(180deg);
    background-image: var(--vets-card-art);
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    border-radius: 6px 6px 0 0;
    overflow: hidden;
}

.driver-card-back-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 12, 26, 0.35) 0%, rgba(6, 8, 18, 0.55) 100%);
    pointer-events: none;
}

.driver-card-link {
    display: block;
    padding: 0;
    text-decoration: none;
    color: #fff;
}

.driver-card-watermark {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background-image: var(--vets-card-art);
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    opacity: 0.28;
    pointer-events: none;
}

.driver-card-shade {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(10, 12, 26, 0.88) 0%, rgba(10, 12, 26, 0.78) 45%, rgba(6, 8, 18, 0.9) 100%);
    pointer-events: none;
}

.driver-card-inner {
    position: relative;
    z-index: 2;
    display: block;
    padding: 2rem;
}

.driver-card.is-flip-spinning {
    z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
    .driver-card.is-hover:not(.is-compare-selected),
    .driver-card.is-compare-selected {
        transform: translateY(-5px);
    }
}

.driver-card.is-hover:not(.is-compare-selected),
.driver-card.is-compare-selected {
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

@media (prefers-reduced-motion: reduce) {
    .driver-card-flip-inner.is-flip-spinning {
        animation: none;
    }
}

.driver-card.is-search-hidden {
    display: none !important;
}

.driver-card.is-compare-selected {
    border-color: var(--primary-racing-blue, #00009D) !important;
    box-shadow: 0 0 0 1px var(--primary-racing-blue, #00009D), 0 8px 24px rgba(0, 0, 157, 0.35);
}

.driver-card-toolbar {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding: 0 1rem 1rem;
    position: relative;
    z-index: 3;
}

.vets-driver-compare-btn,
.driver-card-view-link {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.vets-driver-compare-btn:hover,
.driver-card-view-link:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.driver-card.is-compare-selected .vets-driver-compare-btn {
    background: var(--primary-racing-blue, #00009D);
    border-color: var(--primary-racing-blue, #00009D);
    color: #fff;
}

.vets-compare-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 720px;
    margin: 0 auto 0;
    padding: 0 16px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    background: rgba(8, 10, 22, 0.96);
    border: 2px solid transparent;
    border-radius: 8px;
    box-shadow: none;
    transition: max-height 0.25s ease, opacity 0.25s ease, margin 0.25s ease, padding 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.vets-compare-bar.is-visible {
    max-height: 80px;
    opacity: 1;
    pointer-events: auto;
    margin-bottom: 1.25rem;
    padding: 12px 20px;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.vets-compare-count {
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.vets-compare-bar-actions {
    display: flex;
    gap: 8px;
}

.vets-compare-run-btn,
.vets-compare-clear-btn,
.vets-compare-close-btn {
    padding: 8px 16px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
}

.vets-compare-run-btn {
    background: var(--primary-racing-blue, #00009D);
    color: #fff;
    border-color: var(--primary-racing-blue, #00009D);
}

.vets-compare-run-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.vets-compare-clear-btn,
.vets-compare-close-btn {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

.vets-compare-toast {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-12px);
    z-index: 99991;
    padding: 10px 16px;
    background: rgba(180, 40, 40, 0.95);
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
}

.vets-compare-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 600px) {
    .vets-compare-bar.is-visible {
        max-height: 120px;
    }
}

/* Compare modal */
body.vets-compare-modal-open {
    overflow: hidden;
}

.vets-compare-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

.vets-compare-modal.is-hidden {
    display: none;
}

.vets-compare-modal-backdrop {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.78);
    cursor: pointer;
}

.vets-compare-modal-panel {
    position: relative;
    z-index: 1;
    width: min(1200px, 100%);
    height: calc(100dvh - 20px);
    max-height: calc(100vh - 20px);
    margin: auto 0;
    display: flex;
    flex-direction: column;
    background: rgba(8, 10, 22, 0.98);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
    overflow: hidden;
}

.vets-compare-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vets-compare-modal-title {
    margin: 0;
    color: #fff;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.vets-compare-modal-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 0.65rem 1rem 0.85rem;
    -webkit-overflow-scrolling: touch;
}

.vets-compare-loading,
.vets-compare-error {
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.85);
}

.vets-compare-error {
    color: #f87171;
    font-weight: 600;
}

.vets-compare-grid-host {
    overflow-x: auto;
}

.vets-compare-grid {
    display: grid;
    gap: 0;
    align-items: stretch;
    width: 100%;
}

.vets-compare-section-title {
    grid-column: 1 / -1;
    margin: 0.5rem 0 0.15rem;
    padding: 0.35rem 0 0.2rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.vets-compare-section-title:first-of-type {
    margin-top: 0;
}

.vets-compare-cell {
    padding: 6px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}

.vets-compare-cell--corner {
    background: rgba(8, 10, 22, 0.98);
    border-bottom-color: rgba(255, 255, 255, 0.12);
    position: sticky;
    top: 0;
    z-index: 4;
}

.vets-compare-cell--driver {
    padding: 6px;
    vertical-align: top;
    background: rgba(8, 10, 22, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    position: sticky;
    top: 0;
    z-index: 3;
}

.vets-compare-cell--label {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(0, 0, 0, 0.35);
    position: sticky;
    left: 0;
    z-index: 2;
}

.vets-compare-cell--val {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.vets-compare-cell--gold {
    color: #ffd700;
}

.vets-compare-cell--best {
    background: rgba(0, 0, 157, 0.28);
    box-shadow: inset 0 0 0 1px rgba(100, 140, 255, 0.4);
}

.vets-compare-driver-card {
    text-align: center;
    padding: 8px 4px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    height: 100%;
    box-sizing: border-box;
}

.vets-compare-photo {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin: 0 auto 8px;
    display: block;
}

.vets-compare-photo--helmet {
    object-fit: contain;
    background: rgba(255, 255, 255, 0.06);
    padding: 6px;
}

.vets-compare-photo--initial {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
}

.vets-compare-name-first {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.vets-compare-name-last {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}

.vets-compare-loc {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 4px;
}

.vets-compare-profile-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-racing-blue, #6b9fff);
    text-decoration: none;
}

.vets-compare-profile-link:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .vets-compare-modal {
        padding: 6px;
    }

    .vets-compare-modal-panel {
        height: calc(100dvh - 12px);
        max-height: calc(100vh - 12px);
    }

    .vets-compare-photo {
        width: 56px;
        height: 56px;
    }

    .driver-card-toolbar {
        flex-direction: column;
    }
}

/* ============================================
   HONOUR BOARD — black glass + gold (milestones)
   ============================================ */

.honour-board-section {
    padding: var(--page-hero-padding-top, 3rem) 1.25rem 6rem;
}

.honour-board-container {
    max-width: 1400px;
    margin: 0 auto;
}

.honour-board-page-title {
    text-align: center;
    margin-bottom: 2rem;
}

.vets-honour-board {
    --honour-glass: rgba(8, 10, 18, 0.92);
    --honour-glass-edge: rgba(255, 255, 255, 0.08);
    --honour-gold: #c9a227;
    --honour-gold-bright: #f0d875;
    --honour-gold-deep: #8a7020;
    --honour-cream: #ebe3cf;
}

.vets-honour-board__frame {
    position: relative;
    overflow: hidden;
    padding: clamp(1.25rem, 2.5vw, 2rem);
    border-radius: 12px;
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.07) 0%, transparent 42%),
        linear-gradient(180deg, rgba(18, 22, 34, 0.98) 0%, rgba(6, 8, 14, 0.99) 100%);
    border: 1px solid rgba(201, 162, 39, 0.55);
    box-shadow:
        inset 0 1px 0 var(--honour-glass-edge),
        inset 0 -24px 48px rgba(0, 0, 0, 0.45),
        0 24px 56px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.vets-honour-board__frame::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 8px;
    pointer-events: none;
}

.vets-honour-board__frame::after {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    pointer-events: none;
}

.vets-honour-board__header {
    text-align: center;
    margin-bottom: 1.75rem;
    position: relative;
    z-index: 1;
}

.vets-honour-board__logo {
    display: block;
    width: auto;
    max-width: 140px;
    max-height: 56px;
    margin: 0 auto 0.85rem;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.vets-honour-board__eyebrow {
    margin: 0 0 0.4rem;
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(240, 216, 117, 0.55);
}

.vets-honour-board__title {
    margin: 0;
    font-size: clamp(1.2rem, 2.2vw, 1.65rem);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: linear-gradient(180deg, var(--honour-gold-bright) 0%, var(--honour-gold) 55%, var(--honour-gold-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.85));
}

.vets-honour-milestone-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(0.5rem, 1vw, 0.75rem);
    position: relative;
    z-index: 1;
}

.vets-honour-milestone-col {
    min-height: 14rem;
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    overflow: visible;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(201, 162, 39, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.vets-honour-milestone-col__head {
    margin: 0;
    padding: 0.65rem 0.5rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(201, 162, 39, 0.22) 0%, rgba(201, 162, 39, 0.08) 100%);
    border-bottom: 1px solid rgba(201, 162, 39, 0.35);
}

.vets-honour-milestone-col__value {
    display: block;
    font-size: clamp(1.25rem, 1.8vw, 1.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.04em;
    color: var(--honour-gold-bright);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.vets-honour-milestone-col__label {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(240, 216, 117, 0.75);
}

.vets-honour-milestone-col__empty {
    margin: auto;
    padding: 1rem;
    text-align: center;
    color: rgba(201, 162, 39, 0.35);
    font-size: 1.25rem;
}

.vets-honour-milestone-col__list {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0.55rem 0.65rem;
    flex: 1;
}

.vets-honour-milestone-col__item {
    padding: 0.32rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.vets-honour-milestone-col__item:last-child {
    border-bottom: none;
}

.vets-honour-milestone-col__item--current-season {
    position: relative;
    padding-left: 0.55rem;
}

.vets-honour-milestone-col__item--current-season::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.28rem;
    bottom: 0.28rem;
    width: 2px;
    border-radius: 1px;
    background: linear-gradient(180deg, var(--honour-gold-bright) 0%, var(--honour-gold) 55%, var(--honour-gold-deep) 100%);
    box-shadow: 0 0 8px rgba(201, 162, 39, 0.45);
}

.vets-honour-milestone-line {
    display: block;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.02em;
    color: var(--honour-cream);
    text-decoration: none;
}

.vets-honour-milestone-line:hover,
.vets-honour-milestone-line:focus {
    color: var(--honour-gold-bright);
    outline: none;
}

.vets-honour-milestone-line--current-season .vets-honour-milestone-line__season {
    color: var(--honour-gold-bright);
    text-shadow: 0 0 10px rgba(240, 216, 117, 0.35);
}

.vets-honour-milestone-line--current-season .vets-honour-milestone-line__name {
    color: var(--honour-cream);
}

.vets-honour-milestone-line--current-season:hover .vets-honour-milestone-line__name,
.vets-honour-milestone-line--current-season:focus .vets-honour-milestone-line__name {
    color: var(--honour-gold-bright);
}

.vets-honour-board .vets-driver-profile-link {
    cursor: pointer;
}

@media (max-width: 1100px) {
    .vets-honour-milestone-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .vets-honour-milestone-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .vets-honour-milestone-grid {
        grid-template-columns: 1fr;
    }
}

/* Honour board — tab switch */
.vets-honour-board-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto 1.75rem;
    max-width: 640px;
}

.vets-honour-board-tabs__link {
    flex: 1;
    text-align: center;
    padding: 0.65rem 1rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(235, 227, 207, 0.72);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(201, 162, 39, 0.28);
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.vets-honour-board-tabs__link:hover,
.vets-honour-board-tabs__link:focus {
    color: var(--honour-gold-bright, #f0d875);
    border-color: rgba(201, 162, 39, 0.55);
    outline: none;
}

.vets-honour-board-tabs__link.is-active {
    color: #101018;
    background: linear-gradient(180deg, var(--honour-gold-bright, #f0d875) 0%, var(--honour-gold, #c9a227) 100%);
    border-color: rgba(201, 162, 39, 0.85);
    box-shadow: 0 2px 12px rgba(201, 162, 39, 0.25);
}

/* Honour board — split champions table */
.vets-honour-champions-wrap {
    overflow-x: auto;
    position: relative;
    z-index: 1;
}

.vets-honour-champions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.vets-honour-champions-table thead th {
    padding: 0.65rem 0.5rem;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--honour-gold-bright, #f0d875);
    border-bottom: 1px solid rgba(201, 162, 39, 0.35);
}

.vets-honour-champions-table__season-col,
.vets-honour-champions-table__season {
    text-align: left;
    padding-left: 0.65rem;
    color: var(--honour-gold-bright, #f0d875);
    font-weight: 700;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.vets-honour-champions-table tbody td,
.vets-honour-champions-table tbody th {
    padding: 0.55rem 0.45rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
    text-align: center;
}

.vets-honour-champions-table__row--current .vets-honour-champions-table__season {
    text-shadow: 0 0 10px rgba(240, 216, 117, 0.35);
}

.vets-honour-champion-label {
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--honour-cream, #ebe3cf);
    text-decoration: none;
}

.vets-honour-champion-label--tba {
    color: rgba(240, 216, 117, 0.55);
    font-style: italic;
    letter-spacing: 0.1em;
}

.vets-honour-champion-label--empty {
    color: rgba(255, 255, 255, 0.22);
}

.vets-honour-board--champions .vets-driver-profile-link:hover,
.vets-honour-board--champions .vets-driver-profile-link:focus {
    color: var(--honour-gold-bright, #f0d875);
    outline: none;
}

.vets-honour-champions-table__empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    padding: 2rem 1rem;
}

@media (max-width: 640px) {
    .vets-honour-champions-table {
        font-size: 0.72rem;
    }

    .vets-honour-champions-table thead th,
    .vets-honour-champions-table tbody td,
    .vets-honour-champions-table tbody th {
        padding: 0.45rem 0.3rem;
    }
}

/* Driver profile: tabs (pills) */
.driver-profile-tabs-wrap {
    text-align: center;
    margin: 0 0 1.75rem;
    max-width: 100%;
    min-width: 0;
}

.driver-profile-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    justify-content: center;
}

.driver-profile-tab-btn {
    padding: 0.55rem 1.1rem;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.driver-profile-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

.driver-profile-tab-btn.active {
    background: var(--primary-racing-blue);
    border-color: var(--primary-racing-blue);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(120, 160, 255, 0.35), 0 0 18px rgba(0, 0, 157, 0.45);
}

.driver-profile-tab-divider {
    height: 1px;
    max-width: 900px;
    margin: 1.1rem auto 0;
    background: rgba(255, 255, 255, 0.12);
}

.driver-profile-panel[hidden] {
    display: none !important;
}

/* Driver profile — race weekend dashboard panels (mockup fidelity pass) */
.driver-dash {
    background:
        linear-gradient(145deg, rgba(0, 0, 157, 0.2) 0%, rgba(0, 0, 0, 0.42) 45%, rgba(172, 5, 17, 0.14) 100%),
        rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 1.6rem 1.4rem 1.85rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    max-width: 100%;
    min-width: 0;
}

.driver-dash__band {
    margin-bottom: 1.85rem;
}

.driver-dash__band:last-child {
    margin-bottom: 0;
}

.driver-dash__band-title {
    margin: 0 0 0.95rem;
    color: #fff;
    font-size: 1rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 800;
    font-style: italic;
}

.driver-dash__band-title span {
    color: var(--primary-racing-red);
    margin-right: 0.4rem;
    font-style: normal;
}

.driver-dash__hint {
    margin: 0 0 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
}

.driver-stat-grid {
    display: grid;
    gap: 0.85rem;
}

.driver-stat-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.driver-stat {
    position: relative;
    text-align: center;
    padding: 1.05rem 0.75rem 1.1rem;
    background: rgba(0, 0, 0, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    overflow: hidden;
}

.driver-stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(255, 255, 255, 0.22);
}

.driver-stat--accent-blue::before {
    background: var(--primary-racing-blue);
    box-shadow: 0 0 12px rgba(0, 0, 157, 0.6);
}

.driver-stat--gain::before { background: #4caf50; }
.driver-stat--loss::before { background: #f44336; }

.driver-stat__label {
    display: block;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}

.driver-stat__value {
    display: block;
    font-size: clamp(1.55rem, 2.4vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.driver-stat--gain .driver-stat__value,
.driver-stat--gain .driver-stat__arrow { color: #4caf50; }
.driver-stat--loss .driver-stat__value,
.driver-stat--loss .driver-stat__arrow { color: #f44336; }

.driver-stat__value--inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.driver-stat__arrow { font-size: 1.15rem; }

.driver-glory {
    display: grid;
    grid-template-columns: minmax(160px, 0.9fr) 2.4fr;
    gap: 1.1rem;
    align-items: stretch;
}

.driver-wins-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.2rem 0.85rem 1.35rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 215, 0, 0.45);
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 215, 0, 0.22), transparent 55%),
        linear-gradient(165deg, rgba(255, 215, 0, 0.12), rgba(0, 0, 0, 0.45));
    box-shadow: inset 0 0 30px rgba(255, 215, 0, 0.08);
}

.driver-wins-hero__label {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 215, 0, 0.9);
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.driver-wins-hero__wreath {
    position: relative;
    width: 140px;
    height: 140px;
    display: grid;
    place-items: center;
}

.driver-wins-hero__wreath-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.45));
}

.driver-wins-hero__value {
    position: relative;
    z-index: 1;
    font-size: 3.4rem;
    font-weight: 900;
    color: #ffd700;
    line-height: 1;
    text-shadow: 0 0 24px rgba(255, 215, 0, 0.5);
}

.driver-wins-hero__meta {
    margin-top: 0.55rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.62);
}

.driver-gauge-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.driver-tach {
    text-align: center;
    padding: 0.85rem 0.5rem 0.95rem;
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.35);
}

.driver-tach__svg {
    width: min(100%, 180px);
    height: auto;
    display: block;
    margin: 0 auto;
}

.driver-tach__track { stroke: rgba(255, 255, 255, 0.14); }
.driver-tach__arc { filter: drop-shadow(0 0 6px rgba(255, 180, 0, 0.55)); }
.driver-tach__ticks line {
    stroke: rgba(255, 255, 255, 0.45);
    stroke-width: 1.5;
}
.driver-tach__scale {
    fill: rgba(255, 255, 255, 0.45);
    font-size: 10px;
}
.driver-tach__scale--mid { text-anchor: middle; }
.driver-tach__needle line {
    stroke: #fff;
    stroke-width: 3;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
}
.driver-tach__needle circle {
    fill: #ffd700;
    stroke: #fff;
    stroke-width: 1.5;
}

.driver-tach__value {
    display: block;
    margin-top: -0.15rem;
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffd700;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.35);
}

.driver-tach--blue .driver-tach__value {
    color: #8eb0ff;
    text-shadow: 0 0 12px rgba(77, 124, 255, 0.4);
}
.driver-tach--red .driver-tach__value {
    color: #ff8a90;
    text-shadow: 0 0 12px rgba(226, 59, 69, 0.4);
}

.driver-tach__label {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.58);
    font-weight: 700;
}

.driver-track-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.driver-track-window {
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 1.2rem 1.1rem 1.05rem;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.08), transparent 55%),
        linear-gradient(160deg, rgba(20, 20, 32, 0.95), rgba(0, 0, 0, 0.88));
}

.driver-track-window__photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.driver-track-window__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(1) brightness(0.55) contrast(1.05);
    opacity: 0.55;
}

.driver-track-window.has-photo {
    background: linear-gradient(180deg, rgba(8, 8, 14, 0.55) 0%, rgba(0, 0, 0, 0.88) 100%);
}

.driver-track-window.has-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.72) 55%, rgba(0, 0, 0, 0.92) 100%);
    pointer-events: none;
}

.driver-track-window__glow {
    position: absolute;
    inset: -20% -10% auto;
    height: 55%;
    pointer-events: none;
    opacity: 0.55;
    z-index: 1;
}

.driver-track-window--rank-1 {
    border-color: rgba(255, 215, 0, 0.55);
    box-shadow: 0 0 28px rgba(255, 215, 0, 0.12);
}
.driver-track-window--rank-1 .driver-track-window__glow {
    background: radial-gradient(circle, rgba(255, 215, 0, 0.35), transparent 70%);
}
.driver-track-window--rank-2 {
    border-color: rgba(192, 192, 192, 0.45);
}
.driver-track-window--rank-2 .driver-track-window__glow {
    background: radial-gradient(circle, rgba(200, 200, 210, 0.28), transparent 70%);
}
.driver-track-window--rank-3 {
    border-color: rgba(205, 127, 50, 0.5);
}
.driver-track-window--rank-3 .driver-track-window__glow {
    background: radial-gradient(circle, rgba(205, 127, 50, 0.32), transparent 70%);
}

.driver-track-window__rank-badge {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 215, 0, 0.7);
    background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.45));
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.35);
}

.driver-track-window--rank-2 .driver-track-window__rank-badge {
    border-color: rgba(210, 210, 220, 0.75);
    box-shadow: 0 0 16px rgba(180, 180, 190, 0.3);
}
.driver-track-window--rank-3 .driver-track-window__rank-badge {
    border-color: rgba(224, 160, 96, 0.8);
    box-shadow: 0 0 16px rgba(205, 127, 50, 0.35);
}

.driver-track-window__rank-num {
    font-size: 1.85rem;
    font-weight: 900;
    color: #ffd700;
    line-height: 1;
}
.driver-track-window--rank-2 .driver-track-window__rank-num { color: #e8e8ee; }
.driver-track-window--rank-3 .driver-track-window__rank-num { color: #e0a060; }

.driver-track-window__logo {
    position: relative;
    z-index: 2;
    flex: 0 0 76px;
    width: min(90%, 200px);
    height: 76px;
    margin: 0 auto 0.75rem;
    padding: 0.4rem 0.6rem;
    border-radius: 12px;
    background: linear-gradient(180deg, #f4f4f6 0%, #e4e4ea 100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: grid;
    place-items: center;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.driver-track-window__logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.driver-track-window__name {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    margin: 0;
    padding: 0 0.35rem 0.5rem;
    min-height: 0;
    text-align: center;
    color: #fff;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.25;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
}

.driver-track-window__footer {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    text-align: center;
}

.driver-track-window__k {
    display: block;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.15rem;
}

.driver-track-window__v {
    display: block;
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
}

.driver-track-window__footer div:first-child .driver-track-window__v {
    color: #ffd700;
}

.driver-record-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.85rem;
    margin-top: 0.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.driver-record {
    text-align: center;
    padding: 1.1rem 0.9rem;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.driver-record--highlight {
    border-color: rgba(76, 175, 80, 0.4);
    background: linear-gradient(160deg, rgba(76, 175, 80, 0.14), rgba(0, 0, 0, 0.3));
}

.driver-record__label {
    display: block;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.driver-record__value {
    display: block;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.driver-record__value--green,
.driver-record--highlight .driver-record__value { color: #4caf50; }

.driver-record__meta {
    display: block;
    margin-top: 0.4rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
    line-height: 1.35;
}

.driver-dash-table__chip {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    vertical-align: middle;
}

.driver-dash-table__chip--accent {
    margin-left: 0;
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.35);
    background: rgba(255, 215, 0, 0.1);
}

.driver-dash--seasons {
    padding: 1.35rem 1.2rem 1.5rem;
}

.driver-season-list {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.driver-season-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(150px, 0.8fr) minmax(280px, 2.2fr) minmax(110px, 0.6fr);
    gap: 1.15rem 1.35rem;
    align-items: center;
    width: 100%;
    text-align: left;
    cursor: pointer;
    color: inherit;
    font: inherit;
    padding: 1.35rem 1.35rem 1.35rem 1.45rem;
    background:
        linear-gradient(110deg, rgba(14, 16, 28, 0.98), rgba(6, 6, 12, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.driver-season-card::before,
.driver-season-card::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 3px;
    background: var(--primary-racing-red);
    box-shadow: 0 0 10px rgba(172, 5, 17, 0.55);
}
.driver-season-card::before { top: 12px; left: 12px; }
.driver-season-card::after { bottom: 12px; right: 12px; }

.driver-season-card:hover {
    border-color: rgba(255, 160, 40, 0.45);
    background: linear-gradient(110deg, rgba(24, 20, 12, 0.98), rgba(8, 8, 16, 0.95));
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.driver-season-card__head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    width: 100%;
}

.driver-season-card__races-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
}

.driver-season-card__title {
    display: inline-block;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
    font-size: clamp(1.35rem, 2.2vw, 1.65rem);
    line-height: 1;
    transform: scaleY(1.45);
    transform-origin: left center;
    margin-bottom: 0.15rem;
}

.driver-season-card__races {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.04em;
}

.driver-season-card__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem 1.1rem;
}

.driver-season-metric__top {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.5rem;
}

.driver-season-metric__icon {
    width: 18px;
    height: 18px;
    color: #ffb300;
    flex: 0 0 auto;
    filter: drop-shadow(0 0 4px rgba(255, 179, 0, 0.45));
}

.driver-season-metric__name {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
    font-weight: 700;
    font-style: italic;
    transform: scaleY(1.35);
    transform-origin: left center;
}

.driver-season-metric__value {
    display: inline-block;
    margin-left: auto;
    color: #ffb300;
    font-size: clamp(1.55rem, 2.6vw, 2rem);
    font-weight: 900;
    font-style: italic;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-shadow: 0 0 14px rgba(255, 179, 0, 0.35);
    transform: scaleY(1.4);
    transform-origin: right center;
}

.driver-season-metric__track {
    display: block;
    height: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.35);
}

.driver-season-metric__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ffe566 0%, #ffb300 55%, #ff7a18 100%);
    box-shadow: 0 0 14px rgba(255, 160, 0, 0.65);
    min-width: 0;
    width: 0;
}

.driver-season-metric__fill.has-fill {
    min-width: 8px;
}

.driver-season-metric__pct {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    font-style: italic;
    transform: scaleY(1.25);
    transform-origin: left center;
}

.driver-season-card__avg {
    position: relative;
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.5rem 0.35rem 0.5rem 0.95rem;
    min-height: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.driver-season-card__avg::before {
    content: "";
    position: absolute;
    inset: 8% 12% 8% 22%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-bottom-color: transparent;
    border-left-color: rgba(255, 179, 0, 0.25);
    pointer-events: none;
}

.driver-season-card__avg-label {
    display: inline-block;
    position: relative;
    z-index: 1;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.4rem;
    font-weight: 700;
    font-style: italic;
    transform: scaleY(1.3);
    transform-origin: center;
}

.driver-season-card__avg-value {
    display: inline-block;
    position: relative;
    z-index: 1;
    font-size: clamp(2.1rem, 3.4vw, 2.6rem);
    font-weight: 900;
    font-style: italic;
    color: #fff;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    transform: scaleY(1.35);
    transform-origin: center;
}

.driver-race-feed {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.driver-dash--recent {
    padding: 1.25rem 1.1rem 1.4rem;
}

.driver-race-card {
    position: relative;
    display: grid;
    grid-template-columns: 110px minmax(220px, 1.6fr) minmax(200px, 1.2fr) 92px;
    gap: 0.75rem 1.15rem;
    align-items: center;
    min-height: 108px;
    padding: 1.1rem 1.15rem;
    overflow: hidden;
    background:
        linear-gradient(105deg, rgba(12, 14, 28, 0.98) 0%, rgba(8, 8, 16, 0.92) 55%, rgba(18, 22, 40, 0.88) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.driver-race-card__atmosphere {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 48%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 28%, #000 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 28%, #000 100%);
}

.driver-race-card__atmosphere img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(1) brightness(0.65) contrast(1.05);
    opacity: 0.42;
}

.driver-race-card.has-photo {
    background:
        linear-gradient(105deg, rgba(12, 14, 28, 0.98) 0%, rgba(8, 8, 16, 0.94) 42%, rgba(8, 8, 16, 0.72) 100%);
}

.driver-race-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    pointer-events: none;
    z-index: 1;
}

.driver-race-card.is-p1 {
    border-color: rgba(255, 215, 0, 0.65);
    background:
        linear-gradient(105deg, rgba(60, 45, 0, 0.55) 0%, rgba(8, 8, 16, 0.95) 42%, rgba(18, 22, 40, 0.9) 100%);
    box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.2), 0 12px 36px rgba(255, 180, 0, 0.18);
}

.driver-race-card.is-p1.has-photo {
    background:
        linear-gradient(105deg, rgba(60, 45, 0, 0.6) 0%, rgba(8, 8, 16, 0.92) 40%, rgba(8, 8, 16, 0.7) 100%);
}

.driver-race-card.is-p2 {
    border-color: rgba(192, 192, 192, 0.45);
}
.driver-race-card.is-p3 {
    border-color: rgba(205, 127, 50, 0.5);
}

.driver-race-card__finish {
    text-align: center;
    z-index: 1;
}

.driver-race-card__pos {
    display: block;
    font-size: clamp(2rem, 3.2vw, 2.55rem);
    font-weight: 900;
    font-style: italic;
    color: #fff;
    line-height: 0.95;
    letter-spacing: -0.02em;
}

.driver-race-card__finish.is-p1 .driver-race-card__pos {
    color: #ffd700;
    text-shadow: 0 0 22px rgba(255, 215, 0, 0.55);
}
.driver-race-card__finish.is-p2 .driver-race-card__pos { color: #e4e4ea; }
.driver-race-card__finish.is-p3 .driver-race-card__pos { color: #e0a060; }

.driver-race-card__tag {
    display: inline-block;
    margin-top: 0.4rem;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
    font-weight: 700;
}

.driver-race-card__finish.is-p1 .driver-race-card__tag {
    color: #ffd700;
}

.driver-race-card__track-block {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    z-index: 1;
}

.driver-race-card__logo {
    flex: 0 0 132px;
    width: 132px;
    height: 70px;
    border-radius: 10px;
    background: linear-gradient(180deg, #f4f4f6 0%, #e4e4ea 100%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    display: grid;
    place-items: center;
    padding: 0.45rem 0.6rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.driver-race-card__logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.driver-race-card__track-text {
    min-width: 0;
}

.driver-race-card__track {
    margin: 0 0 0.28rem;
    color: #fff;
    font-size: clamp(0.95rem, 1.5vw, 1.2rem);
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.driver-race-card__meta {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.driver-race-card__movement {
    z-index: 1;
    min-width: 0;
}

.driver-race-card__run {
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
}

.driver-race-card__arrow {
    margin: 0 0.45rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.4);
}

.driver-race-card__arrow.is-gain {
    color: #4caf50;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.55);
}

.driver-race-card__arrow.is-loss {
    color: #f44336;
    text-shadow: 0 0 10px rgba(244, 67, 54, 0.55);
}

.driver-race-card__delta {
    margin: 0;
    display: inline-flex;
}

.driver-race-card__delta span {
    display: inline-block;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.driver-race-card__delta.is-gain span {
    color: #7dff8a;
    background: rgba(76, 175, 80, 0.18);
    border-color: rgba(76, 175, 80, 0.35);
    box-shadow: 0 0 14px rgba(76, 175, 80, 0.15);
}

.driver-race-card__delta.is-loss span {
    color: #ff8a80;
    background: rgba(244, 67, 54, 0.18);
    border-color: rgba(244, 67, 54, 0.35);
    box-shadow: 0 0 14px rgba(244, 67, 54, 0.15);
}

.driver-race-card__pts {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0.75rem 0.5rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.04);
}

.driver-race-card__pts span {
    display: block;
    font-size: 1.35rem;
    font-weight: 900;
    color: #fff;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.driver-race-card__pts small {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
}

.driver-season-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.driver-season-modal[hidden] { display: none !important; }

.driver-season-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.driver-season-modal__panel {
    position: relative;
    z-index: 1;
    width: min(820px, 100%);
    max-height: min(82vh, 860px);
    display: flex;
    flex-direction: column;
    background: #0b0b14;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.driver-season-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 157, 0.22);
}

.driver-season-modal__head h3 {
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.driver-season-modal__close {
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.driver-season-modal__close:hover {
    background: rgba(172, 5, 17, 0.55);
    border-color: var(--primary-racing-red);
}

.driver-season-modal__body {
    padding: 0.95rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.driver-season-races-data[hidden] { display: none !important; }

@media (max-width: 900px) {
    .driver-stat-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .driver-glory { grid-template-columns: 1fr; }
    .driver-track-grid { grid-template-columns: 1fr; }
    .driver-track-window { min-height: 220px; }
    .driver-season-card { grid-template-columns: 1fr; }
    .driver-season-card__metrics {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .driver-season-card__avg {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0.85rem 0 0;
        text-align: left;
        flex-direction: row;
        align-items: baseline;
        justify-content: flex-start;
        gap: 0.75rem;
        min-height: 0;
    }
    .driver-season-card__avg::before { display: none; }

    .driver-race-card {
        grid-template-columns: 90px minmax(0, 1fr) 84px;
        grid-template-areas:
            "finish track pts"
            "finish move pts";
    }
    .driver-race-card__finish { grid-area: finish; }
    .driver-race-card__track-block { grid-area: track; }
    .driver-race-card__movement { grid-area: move; }
    .driver-race-card__pts { grid-area: pts; }
    .driver-race-card__logo {
        flex: 0 0 108px;
        width: 108px;
        height: 56px;
        padding: 0.35rem 0.45rem;
    }
    .driver-race-card__atmosphere {
        width: 56%;
        opacity: 0.9;
    }
}

@media (max-width: 640px) {
    .driver-dash { padding: 1.1rem 0.85rem 1.25rem; }
    .driver-gauge-row { grid-template-columns: 1fr; }
    .driver-race-card {
        grid-template-columns: 78px minmax(0, 1fr);
        grid-template-areas:
            "finish track"
            "finish move"
            "pts pts";
        min-height: 0;
        padding: 0.95rem;
    }
    .driver-race-card__pts {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.55rem 0.75rem;
    }
    .driver-race-card__pts span,
    .driver-race-card__pts small { display: inline; }
    .driver-race-card__pts small { margin-top: 0; margin-left: 0.35rem; }
    .driver-race-card__track { white-space: normal; }
    .driver-stat__value { font-size: 1.45rem; }
    .driver-record-grid { grid-template-columns: 1fr; }
    .driver-track-window__footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Driver profile — Statistics (1x3) + Track by Track */
.driver-dash--charts {
    padding: 1.25rem 1.1rem 1.4rem;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    position: relative;
}

.driver-charts-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    max-width: 100%;
    min-width: 0;
}

.driver-chart-panel {
    background: rgba(0, 0, 0, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 1.1rem 1rem 1.15rem;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.driver-chart-panel:first-child .driver-donut-wrap {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 0.5rem;
}

.driver-chart-panel:first-child .driver-donut-legend {
    width: auto;
    min-width: 240px;
}

.driver-chart-panel__title {
    margin: 0;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.driver-chart-panel__sub {
    margin: 0.25rem 0 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.75rem;
}

.driver-donut-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.driver-donut-svg {
    width: 160px;
    height: 160px;
    flex: 0 0 auto;
}

.driver-donut-svg__track {
    stroke: rgba(255, 255, 255, 0.1);
}

.driver-donut-svg__seg {
    stroke-linecap: butt;
}

.driver-donut-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.driver-donut-legend li {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) 3.4rem 2.4rem;
    align-items: center;
    column-gap: 0.5rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.78rem;
}

.driver-donut-legend__label {
    min-width: 0;
}

.driver-donut-legend__pct {
    margin-left: 0;
    text-align: right;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.driver-donut-legend__n {
    text-align: right;
    color: rgba(255, 255, 255, 0.55);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.driver-donut-legend .swatch {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex: 0 0 auto;
}
.swatch--wins { background: #4d7cff; }
.swatch--podium { background: #4caf50; }
.swatch--top5 { background: #ff9800; }
.swatch--top10 { background: #9c6bff; }
.swatch--outside { background: #c62828; }

.driver-bar-chart-scroll {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
}

.driver-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 200px;
    width: max-content;
    min-width: 100%;
    margin: 0;
    padding: 0.35rem 0.15rem 0;
}

.driver-bar-chart.is-dense .driver-bar-chart__col {
    flex: 0 0 8px;
    min-width: 8px;
}

.driver-bar-chart__col {
    flex: 0 0 22px;
    min-width: 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.15rem;
    cursor: crosshair;
}

.driver-bar-chart__val {
    font-size: 0.58rem;
    color: rgba(255, 255, 255, 0.55);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.driver-bar-chart__val.is-gain { color: #7dff8a; }
.driver-bar-chart__val.is-loss { color: #ff8a80; }

.driver-bar-chart__bar {
    width: 100%;
    max-width: 14px;
    border-radius: 3px 3px 1px 1px;
    background: #e23b45;
    box-shadow: 0 0 8px rgba(226, 59, 69, 0.3);
}

.driver-bar-chart.is-dense .driver-bar-chart__bar {
    max-width: 6px;
    border-radius: 2px 2px 0 0;
    box-shadow: none;
}

.driver-bar-chart__bar--inc {
    background: linear-gradient(180deg, #ff6a6a, #c62828);
}

.driver-bar-chart__bar.is-gain {
    background: linear-gradient(180deg, #7dff8a, #2e7d32);
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
}

.driver-bar-chart__bar.is-loss {
    background: linear-gradient(180deg, #ff8a80, #c62828);
    box-shadow: 0 0 8px rgba(244, 67, 54, 0.3);
}

.driver-bar-chart__bar.is-flat {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: none;
}

.driver-bar-chart__label {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    line-height: 1.1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.driver-bar-chart__col.is-tip-active .driver-bar-chart__bar {
    filter: brightness(1.25);
    outline: 1px solid rgba(255, 255, 255, 0.45);
}

.driver-chart-tip {
    position: fixed;
    z-index: 1200;
    pointer-events: none;
    max-width: 240px;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    background: rgba(8, 10, 18, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 0.75rem;
    line-height: 1.35;
    white-space: pre-line;
}

.driver-chart-tip[hidden] {
    display: none !important;
}

.driver-dash--tracks {
    padding: 1.25rem 1.1rem 1.4rem;
}

.driver-track-book-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.driver-track-book-toolbar .driver-dash__hint {
    margin: 0;
    text-align: left;
}

.driver-track-sort {
    display: inline-flex;
    gap: 0.4rem;
}

.driver-track-sort__btn {
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.driver-track-sort__btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.driver-track-sort__btn.active {
    background: var(--primary-racing-blue);
    border-color: var(--primary-racing-blue);
    color: #fff;
}

.driver-track-book {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.driver-track-book-card {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) minmax(0, 2fr);
    gap: 0.85rem 1.2rem;
    align-items: center;
    padding: 1rem 1.15rem;
    background: rgba(0, 0, 0, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
}

.driver-track-book-card__name {
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.2;
}

.driver-track-book-card__stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.55rem;
    text-align: center;
}

.driver-track-book-card__k {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.48);
    margin-bottom: 0.2rem;
}

.driver-track-book-card__v {
    display: block;
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
}

.driver-track-book-card__v--best {
    color: #ffd700;
}

.driver-track-book-card__v--time {
    font-size: 0.95rem;
    color: #8eb0ff;
}

@media (max-width: 900px) {
    .driver-chart-panel:first-child .driver-donut-wrap {
        flex-direction: column;
    }
    .driver-track-book-card {
        grid-template-columns: 1fr;
    }
    .driver-track-book-card__stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .driver-track-book-card__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Honour board — Track History */
.vets-track-history-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.vets-track-history-list__empty {
    text-align: center;
    color: rgba(235, 227, 207, 0.55);
    padding: 1.5rem;
}

.vets-track-history-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.85rem;
    width: 100%;
    min-height: 88px;
    margin: 0;
    padding: 0.55rem 0.35rem 0.55rem 0.1rem;
    overflow: hidden;
    border: 0;
    border-bottom: 1px solid rgba(201, 162, 39, 0.18);
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.vets-track-history-row:hover,
.vets-track-history-row:focus-visible {
    background: rgba(201, 162, 39, 0.08);
    outline: none;
}

.vets-track-history-row__logo {
    flex: 0 0 118px;
    width: 118px;
    height: 62px;
    z-index: 1;
    border-radius: 10px;
    background: linear-gradient(180deg, #f4f4f6 0%, #e4e4ea 100%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    display: grid;
    place-items: center;
    padding: 0.4rem 0.5rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
}

.vets-track-history-row__logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.vets-track-history-row__name {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    padding-right: 7.5rem;
    z-index: 1;
    color: #fff;
    font-size: clamp(0.9rem, 1.5vw, 1.12rem);
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vets-track-history-row__atmosphere {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 28%, #000 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 28%, #000 100%);
}

.vets-track-history-row__atmosphere img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(1) brightness(0.65) contrast(1.05);
    opacity: 0.42;
}

.vets-track-history-row__meta {
    flex: 0 0 auto;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-left: auto;
    z-index: 1;
    color: var(--honour-gold-bright, #f0d875);
}

.vets-track-history-row__count {
    font-size: 1.15rem;
    font-weight: 800;
    font-style: italic;
}

.vets-track-history-row__label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.85;
}

.vets-track-history-row__chevron {
    width: 0.45rem;
    height: 0.45rem;
    margin-left: 0.35rem;
    border-right: 2px solid var(--honour-gold, #c9a227);
    border-bottom: 2px solid var(--honour-gold, #c9a227);
    transform: rotate(-45deg);
}

body.vets-track-history-modal-open {
    overflow: hidden;
}

.vets-track-history-modal[hidden] {
    display: none !important;
}

.vets-track-history-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.vets-track-history-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
}

.vets-track-history-modal__panel {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: min(90dvh, calc(100vh - 2rem));
    overflow: auto;
    margin: 0;
    padding: 1.35rem 1.25rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(201, 162, 39, 0.6);
    background: linear-gradient(180deg, rgba(18, 22, 34, 0.98) 0%, rgba(6, 8, 14, 0.99) 100%);
}

.vets-track-history-modal__close {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(201, 162, 39, 0.4);
    border-radius: 4px;
    background: transparent;
    color: var(--honour-gold-bright, #f0d875);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.vets-track-history-dossier__title {
    margin: 0 2rem 0.85rem 0;
    color: var(--honour-gold-bright, #f0d875);
    font-size: clamp(1.15rem, 2.2vw, 1.55rem);
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
}

.vets-track-history-dossier__photo {
    width: 100%;
    height: 180px;
    margin: 0 0 0.85rem;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0a0a12;
}

.vets-track-history-dossier__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) brightness(0.7) contrast(1.05);
}

.vets-track-history-dossier__stats {
    margin: 0 0 1.1rem;
    text-align: center;
    color: rgba(235, 227, 207, 0.85);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.vets-track-history-dossier__h {
    margin: 0 0 0.55rem;
    color: var(--honour-gold, #c9a227);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.vets-track-history-dossier__h--layouts,
.vets-track-history-dossier__h--winners {
    text-align: center;
}

.vets-track-history-maps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
}

.vets-track-history-maps__item {
    flex: 0 0 calc((100% - 3.25rem) / 6);
    max-width: 140px;
    box-sizing: border-box;
}

.vets-track-history-maps__tile {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 96px;
    padding: 0.35rem;
    box-sizing: border-box;
    border-radius: 6px;
    border: 1px dashed rgba(201, 162, 39, 0.4);
    background:
        repeating-linear-gradient(
            -45deg,
            rgba(255, 255, 255, 0.03),
            rgba(255, 255, 255, 0.03) 6px,
            transparent 6px,
            transparent 12px
        );
}

.vets-track-history-maps__tile.has-map {
    border-style: solid;
    border-color: rgba(201, 162, 39, 0.28);
    background: #000;
}

.vets-track-history-maps__stage {
    display: block;
    width: 100%;
    height: 100%;
    background: #000;
}

.vets-track-history-maps__tile.needs-css-invert .vets-track-history-maps__stage {
    background: #fff;
    filter: invert(1) grayscale(1) contrast(1.25);
}

.vets-track-history-maps__tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
}

.vets-track-history-maps__caption {
    display: block;
    margin-top: 0.3rem;
    text-align: center;
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    color: rgba(235, 227, 207, 0.65);
}

.vets-track-history-winners-wrap {
    overflow-x: auto;
    width: 100%;
    display: flex;
    justify-content: center;
}

.vets-track-history-winners {
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.vets-track-history-winners th,
.vets-track-history-winners td {
    text-align: left;
}

.vets-track-history-winners th {
    padding: 0.45rem 1.1rem 0.45rem 0.4rem;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--honour-gold-bright, #f0d875);
    border-bottom: 1px solid rgba(201, 162, 39, 0.35);
    white-space: nowrap;
}

.vets-track-history-winners td {
    padding: 0.45rem 1.1rem 0.45rem 0.4rem;
    color: rgba(235, 227, 207, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
}

.vets-track-history-winners a,
.vets-track-history-winners__link {
    color: inherit;
    text-decoration: none;
}

.vets-track-history-winners a:hover,
.vets-track-history-winners a:focus,
.vets-track-history-winners__link:hover,
.vets-track-history-winners__link:focus {
    color: var(--honour-gold-bright, #f0d875);
    text-decoration: underline;
}

@media (max-width: 640px) {
    .vets-honour-board-tabs {
        flex-wrap: wrap;
        max-width: 100%;
    }
    .vets-track-history-row {
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.5rem 0.65rem;
        min-height: 76px;
    }
    .vets-track-history-row__logo {
        flex: 0 0 96px;
        width: 96px;
        height: 50px;
    }
    .vets-track-history-row__name {
        max-width: none;
        padding-right: 0.5rem;
        flex: 1 1 auto;
    }
    .vets-track-history-row__atmosphere {
        width: 40%;
    }
    .vets-track-history-maps__item {
        flex-basis: calc((100% - 1.3rem) / 3);
    }
}

/* ============================================
   Form Lists Hub (waitlist + registration visuals)
   ============================================ */

.form-lists-main {
    min-height: 60vh;
}

.form-lists-hero {
    padding: var(--page-hero-padding-top, 100px) 2rem 4rem;
}

.form-lists-container {
    max-width: 1200px;
    margin: 0 auto;
}

.form-lists-preview-banner {
    background: rgba(172, 5, 17, 0.25);
    border: 1px solid rgba(172, 5, 17, 0.55);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    text-align: center;
}

.form-lists-intro {
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    margin: 0.75rem auto 1.5rem;
    max-width: 640px;
    font-size: 1.05rem;
    line-height: 1.45;
}

.form-lists-view-title + .form-lists-intro {
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
}

.form-lists-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.form-lists-summary__item--waitlist {
    color: #ffb347;
}

.form-lists-summary__item--registration {
    color: #7dffb3;
}

.form-lists-summary__ready {
    color: #7dffb3;
}

.form-lists-summary__pending {
    color: #f5c400;
}

.form-lists-hub-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.form-lists-hub-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.form-lists-hub-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(255, 255, 255, 0.2);
}

.form-lists-hub-card--waitlist::before {
    background: #ffb347;
    box-shadow: 0 0 16px rgba(255, 179, 71, 0.45);
}

.form-lists-hub-card--registration::before {
    background: #4caf50;
    box-shadow: 0 0 16px rgba(76, 175, 80, 0.45);
}

.form-lists-hub-card:hover,
.form-lists-hub-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    color: #fff;
}

.form-lists-hub-card__label {
    font-family: var(--font-heading, "Exo 2", sans-serif);
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-lists-hub-card__count {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}

.form-lists-hub-card__desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    flex: 1;
}

.form-lists-hub-card__cta {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.85);
}

.form-lists-hub-card--compact {
    padding: 1.15rem 0.85rem;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.form-lists-hub-card--compact .form-lists-hub-card__label {
    font-size: 0.7rem;
    line-height: 1.35;
    min-height: 2.7em;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.form-lists-hub-card--compact .form-lists-hub-card__count {
    font-size: 2.25rem;
    flex: 0 0 auto;
}

.form-lists-hub-card--compact .form-lists-hub-card__cta {
    font-size: 0.68rem;
    margin-top: 0.15rem;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0.02em;
    font-weight: 600;
}

.form-lists-hub-card.is-unpublished {
    cursor: not-allowed;
    opacity: 0.58;
    filter: grayscale(0.4) saturate(0.6);
    pointer-events: none;
}

.form-lists-hub-card.is-unpublished::before {
    opacity: 0.4;
    box-shadow: none;
}

.form-lists-hub-card.is-unpublished:hover,
.form-lists-hub-card.is-unpublished:focus-visible {
    transform: none;
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: none;
}

.form-lists-hub-card.is-unpublished .form-lists-hub-card__cta {
    color: rgba(255, 255, 255, 0.5);
}

.form-lists-breadcrumb {
    margin-bottom: 1rem;
}

.form-lists-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
}

.form-lists-breadcrumb a:hover {
    color: #fff;
}

.form-lists-view-title {
    margin-bottom: 0.25rem;
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.15;
}

.form-lists-summary--list-view {
    margin-top: 0;
    margin-bottom: 1.5rem;
    justify-content: center;
    text-align: center;
}

.form-lists-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 0.65rem 1rem;
    margin: 0 auto 1.75rem;
    max-width: min(100%, 720px);
}

.form-lists-sort {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 0.65rem 1rem;
    margin: 0;
}

.form-lists-sort__label {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-lists-sort__select {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    padding: 0.45rem 0.65rem;
    font-size: 0.9rem;
}

.form-lists-sort__search-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1 1 180px;
    min-width: 160px;
    max-width: 240px;
}

.form-lists-sort__search {
    width: 100%;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    padding: 0.45rem 0.65rem;
    font-size: 0.9rem;
}

.form-lists-sort__search::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.form-lists-sort__search:focus {
    border-color: rgba(255, 255, 255, 0.45);
    outline: none;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.form-lists-driver-card.is-search-hidden {
    display: none;
}

.form-lists-search-empty {
    display: none;
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}

.form-lists-search-empty.is-visible {
    display: block;
}

.form-lists-empty {
    max-width: 480px;
    margin: 2rem auto;
    text-align: center;
}

.form-lists-panel {
    max-width: 1280px;
    margin: 0 auto;
}

.form-lists-driver-cards {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

/* Form lists — broadcast driver rows (parity with .driver-race-card) */
.form-lists-driver-card {
    grid-template-columns: 110px minmax(220px, 1.6fr) minmax(200px, 1.2fr);
}

.form-lists-driver-card.has-flag-photo {
    background: linear-gradient(105deg, rgba(12, 14, 28, 0.98) 0%, rgba(8, 8, 16, 0.94) 42%, rgba(8, 8, 16, 0.72) 100%);
}

.form-lists-driver-card--pending {
    border-color: rgba(245, 196, 0, 0.32);
    box-shadow: 0 0 0 1px rgba(245, 196, 0, 0.07), 0 10px 28px rgba(0, 0, 0, 0.28);
}

.form-lists-driver-card--waitlist {
    border-color: rgba(45, 111, 255, 0.26);
}

/* Waving flag watermark — same stack as .driver-race-card__atmosphere (track photo) */
.form-lists-driver-card__atmosphere {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 52%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 28%, #000 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 28%, #000 100%);
}

.form-lists-driver-card__atmosphere img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    filter: grayscale(1) brightness(0.65) contrast(1.05);
    opacity: 0.42;
}

.form-lists-driver-card--pending .form-lists-driver-card__atmosphere img {
    filter: grayscale(0.25) brightness(0.68) contrast(1.05) saturate(1.15);
    opacity: 0.4;
}

.form-lists-driver-card--waitlist .form-lists-driver-card__atmosphere img {
    filter: grayscale(0.35) brightness(0.64) contrast(1.05) saturate(1.2);
    opacity: 0.4;
}

.form-lists-driver-card__identity .driver-race-card__track {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.55rem;
}

.form-lists-driver-card__new {
    display: inline-block;
    flex: 0 0 auto;
    padding: 0.12rem 0.45rem;
    border-radius: 4px;
    font-size: 0.58rem;
    font-weight: 800;
    font-style: normal;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.2;
    color: #111;
    background: linear-gradient(180deg, #ffe566 0%, #f5c400 100%);
    border: 1px solid rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 10px rgba(245, 196, 0, 0.35);
    vertical-align: middle;
}

.vets-form-lists-new-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1d2327;
    background: #f5c400;
    border: 1px solid #c9a000;
    vertical-align: middle;
}

.form-lists-driver-card__car {
    z-index: 1;
    text-align: center;
    padding: 0.45rem 0.35rem 0.5rem;
    border-radius: 10px;
    background: rgba(30, 30, 36, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.18);
    align-self: center;
}

.form-lists-driver-card__num {
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: none;
}

.form-lists-driver-card__num--empty {
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    color: rgba(255, 255, 255, 0.35);
}

.form-lists-driver-card__identity,
.form-lists-driver-card__team {
    z-index: 1;
}

.form-lists-view--waitlist .form-lists-driver-card--waitlist {
    border-color: rgba(255, 179, 71, 0.18);
}

.form-lists-view--registration .form-lists-driver-card--ready {
    border-color: rgba(255, 255, 255, 0.18);
}

@media (max-width: 900px) {
    .form-lists-driver-card {
        grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "car identity"
            "car team";
    }

    .form-lists-driver-card__car {
        grid-area: car;
    }

    .form-lists-driver-card__identity {
        grid-area: identity;
    }

    .form-lists-driver-card__team {
        grid-area: team;
    }

    .form-lists-driver-card__atmosphere {
        width: 56%;
        opacity: 0.9;
    }
}

@media (max-width: 640px) {
    .form-lists-driver-card {
        grid-template-columns: 78px minmax(0, 1fr);
        grid-template-areas:
            "car identity"
            "car team";
        min-height: 0;
        padding: 0.95rem;
    }

    .form-lists-driver-card .driver-race-card__track {
        white-space: normal;
    }
}

.form-lists-view--waitlist .vets-table-wrap--form-lists {
    border-color: rgba(255, 179, 71, 0.22);
}

.form-lists-view--registration .vets-table-wrap--form-lists {
    border-color: rgba(76, 175, 80, 0.22);
}

.vets-data-table--form-lists .vets-col-driver {
    text-align: left;
    padding-left: 0.65rem;
    white-space: nowrap;
}

.vets-data-table--form-lists .vets-col-form-team,
.vets-data-table--form-lists .vets-col-form-location {
    text-align: left;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
    white-space: nowrap;
}

.vets-data-table--form-lists th.vets-col-form-team,
.vets-data-table--form-lists th.vets-col-form-location {
    text-align: left;
    padding-left: 0.65rem;
}

.vets-data-table--form-lists .vets-col-form-team {
    min-width: 8rem;
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vets-data-table--form-lists .vets-col-form-location {
    min-width: 7rem;
}

.vets-data-table--form-lists .vets-col-form-status {
    width: 5.5rem;
    min-width: 5.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.form-lists-status--paid {
    color: #5fcf7a;
}

.form-lists-status--pending {
    color: #ffb347;
}

.form-lists-status--na {
    color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 720px) {
    .vets-data-table--form-lists .vets-col-form-team,
    .vets-data-table--form-lists .vets-col-form-location,
    .vets-data-table--form-lists .vets-col-driver {
        white-space: normal;
    }
}

@media (max-width: 600px) {
    .form-lists-hub-card__count {
        font-size: 2rem;
    }
}
