/*
Theme Name: 702 Racing
Theme URI:
Author: 702 Racing
Description: Custom theme for 702 Racing — classic and professional layout with custom logo, background, and navigation.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: seven02-racing
*/

/* ===========================
   CUSTOM FONTS
=========================== */
@font-face {
    font-family: 'Racing Sans One';
    src: url('fonts/RacingSansOne-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Anton';
    src: url('fonts/Anton-Regular.ttf') format('truetype');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

/* ===========================
   THEME TOKENS
=========================== */
:root {
    --pink: #ff2e8b;
    --cyan: #22a6e0;
    --bg: #0d0d0d;
    --bg-elev: #151517;
    --line: #26262b;
    --text: #e6e6e8;
    --muted: #9a9aa2;
    --font-display: 'Anton', 'Racing Sans One', 'Arial Black', sans-serif;
}

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    overflow-x: hidden;
    background-color: #0d0d0d;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--text);
    background-color: var(--bg) !important;
    background-image: none !important;
    line-height: 1.7;
}

a {
    color: var(--cyan);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===========================
   SITE WRAPPER
=========================== */
#page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#content {
    flex: 1;
}

/* ===========================
   HEADER
=========================== */
#masthead {
    background-color: #0a0a0b;
    position: relative;
}

.masthead-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Thin pink→cyan accent bar under the header */
.masthead-accent {
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--pink), var(--cyan));
}

/* Text logo — SEVEN(white) 02(pink) RACING(cyan) */
.site-logo-text {
    font-family: var(--font-display);
    font-size: 1.9rem;
    line-height: 1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.site-logo-text:hover { text-decoration: none; }

/* Image logo in the header */
.site-logo-link {
    display: inline-flex;
    align-items: center;
}
.site-logo-img {
    height: 62px;
    width: auto;
    display: block;
}

.logo-seven  { color: #ffffff; }
.logo-02     { color: var(--pink); }
.logo-racing { color: var(--cyan); }

/* ===========================
   PRIMARY NAVIGATION
=========================== */
#site-navigation {
    position: relative;
}

/* Hamburger button — hidden on desktop */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.hamburger-bar {
    display: block;
    width: 26px;
    height: 3px;
    background-color: #dddddd;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

/* Animate to X when open */
.menu-toggle.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.is-active .hamburger-bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

#site-navigation .nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

#site-navigation .nav-menu li {
    position: relative;
}

#site-navigation .nav-menu li a {
    display: block;
    padding: 10px 16px;
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s;
}

#site-navigation .nav-menu li a:hover,
#site-navigation .nav-menu li.current-menu-item > a,
#site-navigation .nav-menu li.current-page-ancestor > a {
    color: #ffffff;
    text-decoration: none;
}

/* Dropdown sub-menus */
#site-navigation .nav-menu ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #0a0a0b;
    min-width: 200px;
    z-index: 999;
    border-top: 3px solid var(--pink);
    list-style: none;
    padding: 0;
}

#site-navigation .nav-menu li:hover > ul {
    display: block;
}

#site-navigation .nav-menu ul li a {
    padding: 12px 20px;
    border-bottom: 1px solid #26262b;
}

/* ===========================
   MAIN CONTENT AREA
=========================== */
.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 40px;
    background-color: transparent;
}

/* ===========================
   PAGE / POST
=========================== */
/* Branded full-bleed page-title band (interior pages) */
.entry-header {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 44px;
    padding: 36px 0 30px;
    background: linear-gradient(180deg, #17171a 0%, #0d0d0d 100%);
    border-bottom: 1px solid var(--line);
    position: relative;
}

.entry-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, var(--pink), var(--cyan));
}

.entry-title {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.05;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.entry-title a { color: inherit; }
.entry-title a:hover { color: var(--cyan); text-decoration: none; }

.entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #dddddd;
}

.entry-content p {
    margin-bottom: 1.4em;
}

.entry-content h2,
.entry-content h3 {
    font-family: var(--font-display);
    margin-top: 1.6em;
    margin-bottom: 0.6em;
    color: #ffffff;
}

/* ===========================
   FOOTER
=========================== */
#colophon {
    background-color: #0a0a0b;
    border-top: 1px solid var(--line);
    color: #aaaaaa;
    text-align: center;
    padding: 24px 40px;
    font-family: 'Arial', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

#colophon a {
    color: #cccccc;
}

#colophon a:hover {
    color: #ffffff;
}

/* ===========================
   LIVE STREAMS
=========================== */
.streams-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.stream-block {
    background-color: #2c2c2c;
    border: none;
    border-radius: 4px;
    overflow: hidden;
}

.stream-label {
    font-family: var(--font-display);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6bb3d6;
    background-color: #2c2c2c;
    padding: 10px 16px;
    margin: 0;
    border-bottom: 1px solid #444;
}

.stream-block .video-js {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
}

.stream-source-note {
    margin-top: 16px;
    font-size: 0.82rem;
    color: #888;
    text-align: right;
}

@media (max-width: 768px) {
    .streams-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   SCHEDULES / RESULTS
=========================== */
.schedule-page {
    padding: 20px 0;
}

.schedule-season-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    margin-bottom: 28px;
}

.schedule-table-wrap {
    overflow-x: auto;
    border: 2px solid #d4789a;
    border-radius: 4px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Arial', sans-serif;
    font-size: 0.95rem;
}

.schedule-table thead tr {
    background-color: #6bb3d6;
    color: #000000;
}

.schedule-table th {
    padding: 14px 18px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
    font-weight: 800;
    color: #000000;
    border-right: 1px solid rgba(0,0,0,0.2);
}

.schedule-table th:last-child {
    border-right: none;
}

.schedule-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #d4789a;
    border-right: 1px solid #333;
    color: #dddddd;
}

.schedule-table td:last-child {
    border-right: none;
}

.schedule-table tbody tr:last-child td {
    border-bottom: none;
}

.schedule-table tbody tr {
    background-color: #1e1e1e;
    border-left: 4px solid #d4789a;
}

.schedule-table tbody tr:nth-child(even) {
    background-color: #252525;
}

.schedule-table tbody tr:hover {
    background-color: rgba(107,179,214,0.12);
}

/* Column specific colours */
.race-name {
    font-weight: 700;
    color: #ffffff;
}

.race-date {
    color: #d4789a;
    font-weight: 600;
}

.race-vehicle {
    color: #6bb3d6;
}

.race-org {
    color: #aaaaaa;
    font-size: 0.88rem;
    letter-spacing: 0.05em;
}

.race-tbd {
    color: #555555;
}

.result-first {
    color: #f5c542 !important;
    font-weight: 700;
}

.result-dnf {
    color: #f5c542 !important;
}

.schedule-footer {
    margin-top: 18px;
    text-align: center;
    color: #777777;
    font-family: 'Arial', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
}

.schedule-empty {
    color: #999;
    font-style: italic;
    text-align: center;
}

/* ===========================
   PREVIOUS RACES
=========================== */
.races-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .races-grid {
        grid-template-columns: 1fr;
    }
}

.race-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-top: 3px solid #d4789a;
    border-radius: 4px;
    overflow: hidden;
}

.race-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: #ffffff;
    background-color: #1a1a1a;
    padding: 12px 16px;
    margin: 0;
    border-bottom: 2px solid #d4789a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.race-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.race-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.races-empty {
    color: #999;
    font-style: italic;
    grid-column: 1 / -1;
}

/* ===========================
   TEAM MEMBERS
=========================== */
.team-members-portal {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.team-members-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-top: 3px solid #d4789a;
    border-radius: 4px;
    padding: 48px 40px;
    max-width: 520px;
    width: 100%;
    text-align: center;
}

.team-members-icon {
    font-size: 2.6rem;
    margin-bottom: 12px;
}

.team-members-heading {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}

.team-members-text {
    color: #bbbbbb;
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

.team-members-button {
    display: inline-block;
    background-color: #6bb3d6;
    color: #000000;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 40px;
    border-radius: 4px;
    transition: background-color 0.2s, transform 0.1s;
}

.team-members-button:hover {
    background-color: #8ccbe6;
    text-decoration: none;
    transform: translateY(-1px);
}

.team-members-note {
    margin-top: 18px;
    font-size: 0.82rem;
    color: #777777;
}

/* ===========================
   TELEMETRY
=========================== */
.telemetry-panel {
    margin-top: 24px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-top: 3px solid #d4789a;
    border-radius: 4px;
    overflow: hidden;
}

.telemetry-live,
.telemetry-offline {
    padding: 48px 40px;
    text-align: center;
}

.telemetry-live-text {
    color: #bbbbbb;
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 26px;
}

.telemetry-launch-button {
    display: inline-block;
    background-color: #6bb3d6;
    color: #000000;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 40px;
    border-radius: 4px;
    transition: background-color 0.2s, transform 0.1s;
}

.telemetry-launch-button:hover {
    background-color: #8ccbe6;
    text-decoration: none;
    transform: translateY(-1px);
}

.telemetry-offline .offline-icon {
    font-size: 2.6rem;
    color: #d4789a;
    margin-bottom: 10px;
}

.telemetry-offline .offline-text {
    font-size: 1rem;
    color: #aaaaaa;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.telemetry-note {
    margin-top: 16px;
    font-size: 0.82rem;
    color: #777777;
}

/* ===========================
   PASSWORD FORM (protected pages)
=========================== */
.telemetry-portal {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.telemetry-lock-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-top: 3px solid #d4789a;
    border-radius: 4px;
    padding: 48px 40px;
    max-width: 520px;
    width: 100%;
    text-align: center;
}

.telemetry-lock-icon {
    font-size: 2.6rem;
    margin-bottom: 12px;
}

.telemetry-lock-heading {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}

.telemetry-lock-text {
    color: #bbbbbb;
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.telemetry-lock-input {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 18px;
    padding: 12px 16px;
    background: #2c2c2c;
    border: 1px solid #444;
    border-radius: 4px;
    color: #dddddd;
    font-family: 'Arial', sans-serif;
    font-size: 1rem;
    text-align: center;
}

.telemetry-lock-input:focus {
    outline: none;
    border-color: #6bb3d6;
}

.telemetry-lock-button {
    display: inline-block;
    background-color: #6bb3d6;
    color: #000000;
    border: none;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 40px;
    border-radius: 4px;
    transition: background-color 0.2s, transform 0.1s;
}

.telemetry-lock-button:hover {
    background-color: #8ccbe6;
    transform: translateY(-1px);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ===========================
   HOMEPAGE (front-page.php)
=========================== */
/* Let the homepage go full-bleed — no centered container / padding */
body.home #main.site-main {
    max-width: none;
    padding: 0;
}

.home-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 78vh;
    padding: 80px 0 64px;
    background-color: #0d0d0d;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Darken left for text legibility + fade the bottom into the page */
.home-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8,8,10,0.5) 0%, rgba(8,8,10,0.12) 55%, rgba(8,8,10,0) 100%),
        linear-gradient(0deg, #0d0d0d 0%, rgba(13,13,13,0) 42%);
    z-index: 1;
}

.home-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

.home-hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 9vw, 8rem);
    line-height: 0.92;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

/* Image logo in the hero */
.home-hero-logo {
    width: min(700px, 88%);
    height: auto;
    display: block;
    margin-bottom: 2.2rem;
    filter: drop-shadow(0 6px 24px rgba(0,0,0,0.55));
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 26px;
    border-radius: 8px;
    background: rgba(18,18,22,0.55);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    transition: border-color 0.2s, background-color 0.2s, transform 0.1s;
}

.hero-btn:hover {
    text-decoration: none;
    border-color: var(--cyan);
    background: rgba(28,28,34,0.7);
    transform: translateY(-1px);
}

.hero-btn-primary {
    background: var(--pink);
    border-color: var(--pink);
    color: #ffffff;
}

.hero-btn-primary:hover {
    background: #ff4f9e;
    border-color: #ff4f9e;
}

.hero-btn-icon {
    display: inline-flex;
    align-items: center;
}

.hero-btn-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* Latest Race */
.home-latest {
    max-width: 1440px;
    margin: 0 auto;
    padding: 44px 40px 64px;
}

.home-latest-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.home-latest-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.home-latest-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cyan);
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.home-latest-all svg {
    width: 18px;
    height: 18px;
}

.home-latest-all:hover {
    color: #ffffff;
    text-decoration: none;
}

.home-latest-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.home-latest-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.home-latest-caption {
    margin-top: 14px;
    color: var(--muted);
    font-family: 'Arial', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
}

@media (max-width: 768px) {
    .home-hero {
        min-height: 70vh;
        padding: 56px 0;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-btn {
        justify-content: flex-start;
    }
    .home-hero-inner,
    .home-latest {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ===========================
   INTERIOR CONTENT PAGES (Contact / Partnerships)
=========================== */
.section-lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #cfcfd4;
    max-width: 820px;
    margin-bottom: 36px;
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #ffffff;
    margin: 12px 0 20px;
}

/* Contact cards */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 40px;
}

.contact-card {
    background: #17171a;
    border: 1px solid var(--line);
    border-left: 3px solid var(--pink);
    border-radius: 6px;
    padding: 22px 24px;
}

.contact-card-label {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    color: var(--cyan);
    margin-bottom: 6px;
}

.contact-card-value {
    font-size: 1.1rem;
    color: #ffffff;
    word-break: break-word;
}

.contact-card-value:hover { color: var(--cyan); text-decoration: none; }

/* Stats row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 44px;
}

.stat-block {
    background: #17171a;
    border: 1px solid var(--line);
    border-top: 3px solid var(--cyan);
    border-radius: 6px;
    padding: 28px 20px;
    text-align: center;
}

.stat-value {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1;
    color: #ffffff;
}

.stat-label {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 8px;
}

/* Partner logos */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 44px;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    background: #131316;
    border: 1px dashed #3a3a42;
    border-radius: 6px;
    color: #6a6a72;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.9rem;
}

/* CTA band */
.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background: linear-gradient(90deg, rgba(255,46,139,0.12), rgba(34,166,224,0.12));
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px 28px;
    margin-top: 8px;
}

.cta-band-text {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 1.1rem;
    color: #ffffff;
}

.cta-band-button {
    display: inline-block;
    background: var(--pink);
    color: #ffffff;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 28px;
    border-radius: 6px;
    white-space: nowrap;
}

.cta-band-button:hover { background: #ff4f9e; text-decoration: none; }

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
    .partners-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===========================
   WORDPRESS OVERRIDES
   Kill any white/light backgrounds injected by WordPress
=========================== */
#page,
#content,
#primary,
#secondary,
.site,
.site-content,
.hentry,
.entry,
.wp-block-post,
.wp-block-post-content,
.wp-site-blocks,
.is-layout-flow,
.wp-block-group,
.wp-block-group__inner-container,
.wp-block-template-part,
.editor-styles-wrapper,
body.page,
body.home,
body.front-page,
.page-template-default,
.page-template-template-live-streams,
.page-template-template-schedules,
.page-template-template-previous-races,
.page-template-template-team-members {
    background-color: transparent !important;
    background-image: none !important;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
    .site-logo-text {
        font-size: 1.5rem;
    }

    /* Show hamburger, hide nav by default on mobile */
    .menu-toggle {
        display: flex;
    }

    #site-navigation {
        position: static;
    }

    /* Mobile menu drops below the header bar, full width */
    #site-navigation .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background-color: #0a0a0b;
        border-top: 1px solid var(--line);
        z-index: 998;
    }

    /* Show nav when toggled open */
    #site-navigation .nav-menu.nav-open {
        display: flex;
    }

    #site-navigation .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--line);
    }

    #site-navigation .nav-menu li a {
        padding: 16px 24px;
        font-size: 1.1rem;
        text-align: center;
    }

    .site-main {
        padding: 30px 20px;
    }
}
