:root {
    --ink: #1c1b1d;
    --paper: #ffffff;
    --cream: #faf7f2;
    --accent: #d56f2e;
    --accent-dark: #b8571d;
    --line: #e7e3dc;
    --muted: #6b6863;
    --radius: 14px;
    --font-heading: "Libre Baskerville", Georgia, serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.15; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* Admin bar — shown only to logged-in staff, sits above the normal site header
   so it never fights the hero-overlay transparency logic below. */
.admin-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    background: #23282d; color: #fff; height: 32px; display: flex; align-items: center;
    font-size: .8rem;
}
.admin-bar-inner { padding: 0 1.2rem; width: 100%; display: flex; align-items: center; gap: 1.3rem; }
.admin-bar a { color: #fff; opacity: .82; display: inline-flex; align-items: center; gap: .35rem; }
.admin-bar a:hover { opacity: 1; text-decoration: underline; }
.admin-bar-user { margin-left: auto; opacity: .6; }
body.has-admin-bar { padding-top: 32px; }
body.has-admin-bar .site-header { top: 32px; }
@media (max-width: 640px) {
    .admin-bar-user { display: none; }
}

/* Header / nav — floats transparently over the hero, turns solid white on scroll */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 70;
    background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 100%);
    transition: background .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
    /* Plain solid background on purpose: filter/backdrop-filter here would make this element
       a positioning container for the fixed off-canvas mobile menu, breaking it while scrolled. */
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,.08);
}
.site-header-inner {
    max-width: 1400px; margin: 0 auto; padding: .25rem 2rem;
    display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.site-logo img { height: 76px; width: auto; transition: height .25s ease; }
.site-header.is-scrolled .site-logo img { height: 58px; }
.main-nav-row { display: flex; align-items: center; gap: 1.6rem; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; gap: .3rem; align-items: center; }
.main-nav > ul > li { position: relative; }
.main-nav a {
    color: #fff; font-weight: 600; font-size: .95rem; padding: .6rem .8rem; display: flex;
    align-items: center; gap: .3rem; border-radius: 6px; transition: color .15s, background .15s;
    text-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.site-header.is-scrolled .main-nav a { color: var(--ink); text-shadow: none; }
.main-nav > ul > li > a:hover, .main-nav > ul > li > a.active { color: var(--accent); }
.caret { font-size: .65rem; }
.submenu {
    display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 220px;
    border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.18); padding: .5rem; margin-top: .4rem;
}
.has-children:hover .submenu { display: block; }
.submenu a { color: var(--ink); padding: .55rem .7rem; border-radius: 6px; text-shadow: none; }
.submenu a:hover { background: var(--cream); color: var(--accent-dark); }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.site-header.is-scrolled .nav-toggle { color: var(--ink); text-shadow: none; }
.nav-cta { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 1080px) { .site-header-inner .nav-cta { display: none; } }

/* Hero */
.hero {
    position: relative; min-height: 62vh; display: flex; align-items: center;
    overflow: hidden; color: #fff;
}
.hero-home { min-height: 82vh; }
.hero-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    background-repeat: no-repeat; z-index: 0; filter: grayscale(100%);
}
.hero-home .hero-bg {
    filter: none;
    /* Bias the crop toward the top of the photo so the header logo clears the
       driver's head on shorter/wider viewports, while keeping the horses in frame. */
    background-position: center 22%;
}
@media (min-width: 861px) {
    .hero-home .hero-bg {
        /* Zoom applied as a transform on top of the normal cover-fit, not via
           background-size — that keeps the crop's aspect-ratio behaviour (and
           the horses' legs) consistent across wide/short vs. narrow/tall
           viewports, instead of the zoom amount swinging with the viewport
           shape. transform-origin left-of-centre pulls the group further left,
           out from behind the text column. */
        transform: scale(1.28);
        transform-origin: 70% 45%;
    }
}
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: rgba(20,19,21,.48);
}
.hero-home::before {
    background: linear-gradient(90deg, rgba(28,27,29,.05) 0%, rgba(28,27,29,.15) 32%, rgba(28,27,29,.62) 46%, rgba(28,27,29,.68) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 680px; padding: 3rem 1.5rem; margin: 0 auto; text-align: center; }
.hero-home .hero-content { max-width: 620px; padding: 3rem 1.5rem 3rem 0; margin: 0 0 0 47%; text-align: left; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--accent); margin-bottom: .8rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: #fff; }
.hero p { font-size: 1.05rem; color: #f0eee9; max-width: 540px; }
.hero:not(.hero-home) .hero-content p { margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: .8rem; margin-top: 1.6rem; flex-wrap: wrap; justify-content: center; }
.hero-home .hero-actions { justify-content: flex-start; }

.btn {
    display: inline-block; background: var(--accent); color: #fff; font-weight: 700; font-size: .85rem;
    letter-spacing: .04em; text-transform: uppercase; padding: .85rem 1.6rem; border-radius: 8px;
    border: none; cursor: pointer; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--ink); }
.btn-small { padding: .5rem 1.1rem; font-size: .75rem; }

/* Generic content sections */
.section { padding: 4rem 0; }
.section-cream { background: var(--cream); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-header .hero-eyebrow { color: var(--accent-dark); }

.page-content { padding: 3.5rem 0; }
.page-content .container { max-width: 860px; }
.page-content h2 { font-size: 1.6rem; margin-top: 1.6em; }
.page-content img { border-radius: var(--radius); margin: 1.5rem 0; }
.page-content ul { padding-left: 1.3rem; margin-bottom: 1.2rem; }
.page-content li { margin-bottom: .4rem; }

/* Timeline (used for the Evenement schedule) */
.timeline-day { margin: 2.5rem 0; }
.timeline-day h3 {
    font-size: 1.3rem; display: inline-flex; align-items: center; gap: .6rem;
    background: var(--ink); color: #fff; padding: .5rem 1.2rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.timeline-list { position: relative; padding-left: 1.6rem; border-left: 2px solid var(--line); }
.timeline-item { position: relative; padding: 0 0 1.3rem 1.4rem; }
.timeline-item::before {
    content: ''; position: absolute; left: -1.9rem; top: .3rem; width: 12px; height: 12px;
    border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--accent);
}
.timeline-time {
    display: inline-block; font-family: var(--font-heading); font-weight: 700; color: var(--accent-dark);
    font-size: .95rem; margin-right: .6rem;
}
.timeline-desc { color: var(--ink); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.info-card h3 { font-size: 1.15rem; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.2rem; list-style: none; padding: 0; margin: 1.5rem 0; }
.team-card { background: var(--cream); border-radius: var(--radius); padding: 1.3rem; text-align: left; }
.team-photo {
    width: 100%; aspect-ratio: 1/1; border-radius: 10px; margin-bottom: 1rem;
    background: linear-gradient(135deg, #e7e3dc 0%, #d8d3c8 100%);
    display: flex; align-items: center; justify-content: center; color: #b6b0a3; overflow: hidden;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo svg { width: 42%; height: 42%; }
.team-card .team-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; display: block; }
.team-card .team-role { color: var(--accent-dark); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }

.sponsor-list { columns: 2; gap: 2rem; margin: 1rem 0 2rem; }
.sponsor-list div { break-inside: avoid; padding: .25rem 0; border-bottom: 1px dotted var(--line); font-size: .92rem; }
.sponsor-list a { color: var(--ink); }
.sponsor-list a:hover { color: var(--accent-dark); text-decoration: underline; }
@media (max-width: 640px) { .sponsor-list { columns: 1; } }

.filter-bar { display: flex; gap: .5rem; flex-wrap: wrap; }
.filter-bar a { padding: .45rem .9rem; border-radius: 20px; font-size: .85rem; font-weight: 600; color: var(--ink); background: var(--cream); border: 1px solid var(--line); }
.filter-bar a:hover { border-color: var(--accent); color: var(--accent-dark); }
.filter-bar a.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.map-embed { border-radius: var(--radius); overflow: hidden; margin: 1.5rem 0; border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 360px; border: 0; display: block; }

/* Terrain page: text + photo stacked on the left, map stretched to match that
   combined height on the right (CSS Grid rows stretch to the tallest column). */
.terrain-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: stretch; margin-top: 1rem; }
.terrain-col { display: flex; flex-direction: column; }
.terrain-photo {
    margin-top: 1.5rem; border-radius: var(--radius); border: 1px solid var(--line);
    width: 100%; flex: 1; object-fit: cover; min-height: 220px;
}
.terrain-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.terrain-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
@media (max-width: 860px) {
    .terrain-layout { grid-template-columns: 1fr; }
    .terrain-map iframe { height: 320px; }
}

.accordion-item { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.accordion-item h2 { font-size: 1.05rem; margin: 0; }

/* News */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.8rem; }
.post-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.post-card img { width: 100%; height: 190px; object-fit: cover; display: block; }
.post-card-body { padding: 1.3rem; }
.post-date { color: var(--accent-dark); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.post-card h3 { font-size: 1.1rem; margin: .4em 0 .5em; }
.post-card p { color: var(--muted); font-size: .92rem; }

/* Sponsor carousel (home) */
.sponsor-carousel { display: flex; align-items: center; gap: 1rem; max-width: 900px; margin: 0 auto; }
.sponsor-track { flex: 1; display: flex; align-items: center; justify-content: center; gap: 1rem; min-height: 160px; }
.sponsor-slide {
    background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1rem;
    display: flex; align-items: center; justify-content: center; width: 110px; height: 80px;
    opacity: .55; transform: scale(.85); transition: all .25s ease; flex-shrink: 0;
}
.sponsor-slide img { max-width: 100%; max-height: 44px; object-fit: contain; filter: grayscale(40%); transition: filter .25s; }
.sponsor-slide.is-center {
    width: 190px; height: 140px; opacity: 1; transform: scale(1);
    box-shadow: 0 16px 40px rgba(0,0,0,.15); border-color: var(--accent);
}
.sponsor-slide.is-center img { max-height: 72px; filter: none; }
.carousel-nav {
    background: var(--ink); color: #fff; border: none; border-radius: 50%; width: 44px; height: 44px;
    font-size: 1.1rem; cursor: pointer; flex-shrink: 0; transition: background .15s;
}
.carousel-nav:hover { background: var(--accent); }
@media (max-width: 640px) {
    .sponsor-slide { width: 72px; height: 56px; padding: .6rem; }
    .sponsor-slide.is-center { width: 130px; height: 100px; }
    .sponsor-slide.is-center img { max-height: 52px; }
    .sponsor-track { gap: .5rem; min-height: 110px; }
}

/* Sponsors (Sponsoring page + fallback grid) */
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.5rem; align-items: center; }
.sponsor-grid a, .sponsor-grid div {
    background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1.2rem;
    display: flex; align-items: center; justify-content: center; height: 110px;
}
.sponsor-grid img { max-height: 60px; max-width: 100%; width: auto; object-fit: contain; }

/* Media gallery */
.gallery-filters { display: flex; gap: .6rem; justify-content: center; margin: 2rem 0 1.5rem; }
.gallery-filters button {
    background: #fff; border: 1px solid var(--line); color: var(--muted); padding: .5rem 1.3rem;
    border-radius: 999px; font-weight: 600; font-size: .9rem; cursor: pointer; transition: background .15s, color .15s;
}
.gallery-filters button.active, .gallery-filters button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; }
.gallery-grid a { display: block; border-radius: 10px; overflow: hidden; cursor: zoom-in; }
.gallery-grid img { width: 100%; border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; transition: transform .25s; }
.gallery-grid a:hover img { transform: scale(1.05); }

.photo-credit-links { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.2rem 0; }
.photo-credit-link {
    display: inline-flex; align-items: center; gap: .5rem; background: #fff;
    border: 1px solid var(--line); border-radius: 10px; padding: .7rem 1.1rem;
    font-weight: 600; font-size: .92rem; color: var(--ink); transition: border-color .15s, color .15s;
}
.photo-credit-link:hover { border-color: var(--accent); color: var(--accent-dark); }
.photo-credit-link .external-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px;
    border-radius: 50%; background: var(--cream); color: var(--accent); font-size: .8rem; flex-shrink: 0;
}

/* Lightbox */
.lightbox-overlay {
    display: none; position: fixed; inset: 0; background: rgba(10,10,11,.94); z-index: 200;
    align-items: center; justify-content: center;
}
.lightbox-overlay.open { display: flex; }
.lightbox-image { max-width: 88vw; max-height: 86vh; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute; background: rgba(255,255,255,.1); color: #fff; border: none; border-radius: 50%;
    width: 48px; height: 48px; font-size: 1.4rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.2); }
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
    .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 1.1rem; }
    .lightbox-close { width: 40px; height: 40px; top: .8rem; right: .8rem; }
}

/* Cookie banner */
.cookie-banner {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    background: var(--ink); color: #e9e6e1; box-shadow: 0 -10px 30px rgba(0,0,0,.25);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
    max-width: 1100px; margin: 0 auto; padding: 1.1rem 1.5rem;
    display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.cookie-banner-inner p { margin: 0; font-size: .88rem; color: #cfccc8; flex: 1 1 380px; }
.cookie-banner-inner a { color: var(--accent); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: .6rem; flex-shrink: 0; }

/* Share buttons */
.share-bar { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: 2.5rem 0; padding: 1.2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share-label { font-weight: 700; font-size: .9rem; margin-right: .3rem; }
.share-btn {
    display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1rem; border-radius: 999px;
    font-size: .85rem; font-weight: 600; color: #fff; border: none; cursor: pointer; font-family: inherit;
    transition: opacity .15s;
}
.share-btn:hover { opacity: .85; }
.share-whatsapp { background: #25D366; }
.share-facebook { background: #1877F2; }
.share-email { background: var(--muted); }
.share-copy { background: var(--ink); }
.share-copy.copied { background: var(--success, #2e7d32); }

/* Contact form */
.contact-form { max-width: 640px; }
.contact-form label { display: block; font-weight: 600; font-size: .9rem; margin: 1rem 0 .35rem; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 8px;
    font-family: inherit; font-size: .95rem;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.alert { padding: .9rem 1.1rem; border-radius: 8px; margin-bottom: 1.2rem; font-size: .92rem; }
.alert-success { background: #eaf5ea; color: #2e7d32; }
.alert-error { background: #fbeaea; color: #b3261e; }

/* Footer */
.site-footer {
    background:
        linear-gradient(180deg, rgba(15,14,16,.88) 0%, rgba(15,14,16,.94) 100%),
        url('../img/footer-texture.webp') center/cover no-repeat;
    color: #cfccc8; padding: 3.5rem 0 0;
}
.site-footer-inner { max-width: 1400px; margin: 0 auto; padding: 0 2rem; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-logo { height: 128px; margin-bottom: 1rem; }
.footer-brand p { color: #a9a6a1; font-size: .9rem; }
.social-links { display: flex; gap: .5rem; }
.social-icon {
    width: 30px; height: 30px; border-radius: 6px; background: var(--accent); color: #fff;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    transition: background .15s;
}
.social-icon svg { width: 16px; height: 16px; }
.social-icon:hover { background: var(--accent-dark); }
.footer-col-contact { display: flex; flex-direction: column; }
.footer-col-contact .social-links { margin-top: 1rem; }
.footer-legal { margin-top: auto; padding-top: 1.5rem; }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.footer-col a { color: #cfccc8; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid #333; margin-top: 2.5rem; padding: 1.2rem 1.5rem; font-size: .8rem; color: #8a8782;
    display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap;
}
.footer-credit { display: inline-flex; align-items: center; gap: .5rem; color: #8a8782; }
.footer-credit:hover { color: #cfccc8; }
.footer-credit img { height: 16px; width: auto; }

/* Date banner (below home hero) */
.date-banner {
    display: flex; flex-wrap: wrap; max-width: 1200px; margin: -60px auto 0; position: relative; z-index: 5;
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
@media (max-width: 640px) { .date-banner { margin-top: 0; } }
.date-banner-label {
    background: var(--accent); color: #fff; font-family: var(--font-heading); font-size: 1.3rem;
    display: flex; align-items: center; justify-content: center; padding: 1.5rem 2rem; flex: 1 1 240px;
}
.date-banner-day { background: #fff; flex: 1 1 120px; text-align: center; padding: 1.2rem; border-left: 1px solid var(--line); }
.date-banner-day .num { display: block; font-family: var(--font-heading); font-size: 2.2rem; color: var(--accent); line-height: 1; }
.date-banner-day .month { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }

/* Impressie / aftermovie section */
.impressie-section {
    background:
        linear-gradient(180deg, rgba(250,247,242,.55) 0%, rgba(28,27,29,.06) 100%),
        url('../img/background-site.webp') center/cover no-repeat;
    padding: 4.5rem 0;
}
.impressie-section h2, .impressie-section p { color: var(--ink); }
.impressie-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.impressie-grid video { width: 100%; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.2); }
@media (max-width: 860px) { .impressie-grid { grid-template-columns: 1fr; } }

/* Breadcrumb-ish page header for interior pages */
.page-hero {
    background: var(--ink); color: #fff; padding: 8.5rem 0 3rem; text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 0; }

.notfound-hero { padding: 4.5rem 0; }
.notfound-code {
    font-family: var(--font-heading); font-weight: 700; font-size: clamp(4rem, 12vw, 7rem);
    color: var(--accent); line-height: 1; margin-bottom: .3rem;
}
.notfound-hero h1 { margin-bottom: .6rem; }
.notfound-hero p { color: #d8d5cf; max-width: 480px; margin: 0 auto; }

@media (max-width: 860px) {
    .site-footer-inner { grid-template-columns: 1fr; }
    /* The nav links are already one tap away via the hamburger menu, so drop the duplicate footer column to keep things compact. */
    .footer-col-nav { display: none; }
    .nav-toggle { display: block; position: relative; z-index: 61; }
    body.nav-open { overflow: hidden; }

    /* Off-canvas panel sliding in from the right, white background. */
    .main-nav > ul {
        display: flex; position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
        width: min(320px, 85vw); background: #fff; box-shadow: -10px 0 40px rgba(0,0,0,.25);
        flex-direction: column; align-items: stretch; padding: 5.5rem 1.5rem 2rem; overflow-y: auto;
        transform: translateX(100%); transition: transform .3s ease;
    }
    .main-nav.open > ul { transform: translateX(0); }

    .nav-backdrop {
        display: none; position: fixed; inset: 0; z-index: 55; background: rgba(15,14,16,.55);
    }
    .nav-backdrop.open { display: block; }

    /* White panel: black text by default, orange for the active page and on hover/tap. */
    .main-nav > ul > li > a, .site-header.is-scrolled .main-nav > ul > li > a {
        color: var(--ink); text-shadow: none; padding: .8rem .4rem; font-size: 1.05rem;
        border-bottom: 1px solid var(--line);
    }
    .main-nav > ul > li > a:hover, .main-nav > ul > li > a.active { color: var(--accent); }
    .main-nav > ul > li > a { justify-content: space-between; }
    .caret {
        color: var(--accent); font-size: .9rem; padding: .6rem 1rem; margin: -0.6rem -0.4rem -0.6rem 0;
    }

    .submenu {
        position: static; box-shadow: none; background: transparent; margin-top: 0;
        padding-left: .8rem; border-radius: 0;
    }
    .submenu a { color: var(--muted); padding: .6rem .4rem; }
    .submenu a:hover { background: transparent; color: var(--accent); }
    .has-children:hover .submenu { display: none; }
    .has-children.open .submenu { display: block; }

    .site-header-inner { position: relative; }
    .hero-content { margin-left: 0; }
    .date-banner-label { flex-basis: 100%; }
}
