/* ===========================
   HARDLOOPUITSLAGEN.NL
   Custom styles — Red brand theme
   =========================== */

/* ===========================
   CUSTOM PROPERTIES
   =========================== */
:root {
    --brand-red: #DC2626;
    --brand-red-dark: #B91C1C;
    --brand-dark: #17192B;
}

.is-hidden {
    display: none !important;
}

.tabular-nums {
    font-variant-numeric: tabular-nums;
}

.touch-scroll {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.touch-scroll::-webkit-scrollbar {
    display: none;
}

.snap-x {
    scroll-snap-type: x mandatory;
}

.scroll-snap-align-start {
    scroll-snap-align: start;
}

.tracking-pixel {
    border: 0;
}

.bg-dark {
    background-color: var(--brand-dark);
}

.text-shadow-hero {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.text-shadow-hero-soft {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.text-shadow-hero-strong {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* ===========================
   BASE RESETS
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* ===========================
   TYPOGRAPHY OVERRIDES
   =========================== */
.font-display {
    font-family: 'Space Grotesk', sans-serif;
}

.font-body {
    font-family: 'Inter', sans-serif;
}

/* Heading styles */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

/* Stats nummers - monospace feel */
.font-display.text-4xl,
.font-display.text-3xl.font-bold {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
}

/* ===========================
   SKIP LINK
   =========================== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10000;
    padding: 8px 16px;
    background: var(--brand-red);
    color: #fff;
    font-weight: 600;
    border-radius: 0 0 8px 8px;
    transition: top 0.2s ease;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* ===========================
   NAVIGATION
   =========================== */
.nav-link {
    position: relative;
    color: #555;
    font-weight: 500;
    transition: color 0.15s;
}

.nav-link:hover {
    color: #161616;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-red);
    transition: width 0.2s;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--brand-red);
    color: white;
}

.btn-primary:hover {
    background: var(--brand-red-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    color: #161616;
    border: 2px solid #d1d5db;
}

.btn-secondary:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
}

.btn-ghost {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ===========================
   SEARCH
   =========================== */
.search-box {
    display: flex;
    gap: 0.75rem;
    background: white;
    padding: 0.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}

.search-box input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: none;
    font-size: 1.125rem;
    font-family: 'Inter', sans-serif;
    background: transparent;
}

.search-box input:focus {
    outline: none;
}

.search-box button {
    padding: 1rem 2rem;
    background: var(--brand-red);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search-box button:hover {
    background: var(--brand-red-dark);
}

/* ===========================
   STATS
   =========================== */
.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* ===========================
   RESULT CARDS
   =========================== */
.result-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.2s;
}

.result-card:hover {
    border-color: var(--brand-red);
    box-shadow: 0 10px 30px -10px rgba(220, 38, 38, 0.12);
}

/* ===========================
   FEATURE ICON
   =========================== */
.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 38, 38, 0.06);
    border-radius: 0.75rem;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ===========================
   FAQ ACCORDION
   =========================== */
.faq-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.faq-question {
    padding: 1.25rem 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: #444;
    line-height: 1.7;
}

/* Details/summary FAQ styling */
details summary {
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary .group-open\:rotate-180 {
    transition: transform 0.2s ease;
}

/* ===========================
   PRICING CARDS
   =========================== */
.pricing-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 2rem;
    transition: all 0.2s;
}

.pricing-card.featured {
    border: 2px solid var(--brand-red);
    box-shadow: 0 20px 40px -15px rgba(220, 38, 38, 0.12);
}

.pricing-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--brand-red);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.5rem;
}

/* ===========================
   FORM ELEMENTS
   =========================== */
.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.15s;
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-red);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #161616;
}

/* ===========================
   BREADCRUMB
   =========================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.15s;
}

.breadcrumb a:hover {
    color: #161616;
}

/* ===========================
   STATUS BADGES
   =========================== */
.badge {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.5rem;
}

.badge-live {
    background: #dcfce7;
    color: #166534;
}

.badge-completed {
    background: #f3f4f6;
    color: #374151;
}

/* ===========================
   EVENT CARDS (uitslagen)
   =========================== */
.event-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.event-card:hover {
    border-color: var(--brand-red);
    box-shadow: 0 4px 16px -4px rgba(220, 38, 38, 0.14);
}

.event-card:active {
    transform: scale(0.98);
}

.event-card-logo {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    object-fit: contain;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    flex-shrink: 0;
}

.event-card-body {
    flex: 1;
    min-width: 0;
}

.event-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: #6b7280;
    margin-top: 0.125rem;
}

.event-card-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #9ca3af;
    display: inline-block;
    margin: 0 0.2rem;
}

.event-card-chevron {
    width: 20px;
    height: 20px;
    color: #9ca3af;
    flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
}

.event-card:hover .event-card-chevron {
    color: var(--brand-red);
    transform: translateX(2px);
}

/* Desktop: slightly more spacious */
@media (min-width: 768px) {
    .event-card {
        padding: 1.125rem 1.5rem;
        gap: 1.25rem;
    }

    .event-card-logo {
        width: 56px;
        height: 56px;
    }
}

/* ===========================
   HERO FULL-BLEED
   Used by service/contact pages
   =========================== */
.hero-fullbleed {
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    min-height: 500px;
}

.hero-fullbleed.hero-compact {
    min-height: 400px;
}

.hero-fullbleed.hero-tall {
    min-height: 520px;
}

.hero-fullbleed.hero-expanded {
    min-height: clamp(500px, 70vh, 800px);
}

.hero-fullbleed>img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(23, 25, 43, 0.75) 0%, rgba(23, 25, 43, 0.4) 50%, rgba(23, 25, 43, 0.15) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
}

.hero-fullbleed.hero-photo-split {
    isolation: isolate;
    overflow: hidden;
    background: #17192B;
    clip-path: polygon(
        0 0,
        100% 0,
        100% calc(100% - 14px),
        88% calc(100% - 10px),
        76% calc(100% - 4px),
        64% calc(100% - 1px),
        50% 100%,
        36% calc(100% - 1px),
        24% calc(100% - 4px),
        12% calc(100% - 10px),
        0 calc(100% - 14px)
    );
}

.hero-fullbleed.hero-photo-split.hero-compact {
    min-height: 340px;
}

.hero-fullbleed.hero-photo-split>img {
    inset: 0 0 0 auto;
    width: min(64vw, 1180px);
    z-index: 0;
}

.hero-fullbleed.hero-photo-split .hero-overlay {
    z-index: 1;
    background:
        linear-gradient(90deg, #17192B 0%, #17192B 40%, rgba(23, 25, 43, 0.96) 48%, rgba(23, 25, 43, 0.72) 58%, rgba(23, 25, 43, 0.14) 72%, rgba(23, 25, 43, 0) 84%),
        linear-gradient(90deg, rgba(220, 38, 38, 0) 76%, rgba(220, 38, 38, 0.2) 100%);
}

.hero-fullbleed.hero-photo-split .hero-blur {
    display: none;
}

.hero-fullbleed.hero-photo-split .hero-content {
    z-index: 2;
}

.hero-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 42rem;
    margin: -1rem 0 2rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.45;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.28);
}

.hero-benefits li {
    display: grid;
    grid-template-columns: 1.125rem 1fr;
    align-items: start;
    column-gap: 0.625rem;
}

.hero-benefits li::before {
    content: "";
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.15em;
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='9' cy='9' r='9' fill='%23DC2626'/%3E%3Cpath d='M5.25 9.2L7.65 11.6L12.9 6.35' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    filter: drop-shadow(0 6px 12px rgba(220, 38, 38, 0.24));
}

.hero-fullbleed.hero-photo-split.hero-compact .hero-benefits {
    margin-bottom: 0;
}

/* Blur layer over hero image for text readability */
.hero-blur {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    mask-image: radial-gradient(ellipse 70% 80% at 35% 55%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 35% 55%, black 0%, transparent 70%);
}

@media (max-width: 1023px) {
    .hero-fullbleed.hero-photo-split {
        align-items: flex-start;
        min-height: 520px;
    }

    .hero-fullbleed.hero-photo-split.hero-compact {
        min-height: 320px;
    }

    .hero-fullbleed.hero-photo-split.hero-expanded {
        min-height: 600px;
    }

    .hero-fullbleed.hero-photo-split>img {
        inset: auto 0 0;
        width: 100%;
        height: 66%;
        opacity: 1;
        object-position: center bottom;
    }

    .hero-fullbleed.hero-photo-split .hero-content {
        padding-top: clamp(1.5rem, 5vw, 2.25rem);
        padding-bottom: 13rem;
    }

    .hero-fullbleed.hero-photo-split.hero-compact .hero-content {
        padding-bottom: 3rem;
    }

    .hero-fullbleed.hero-photo-split h1 {
        font-size: clamp(1.875rem, 7vw, 2.25rem);
        line-height: 1.08;
    }

    .hero-fullbleed.hero-photo-split .hero-content>p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .hero-benefits {
        gap: 0.375rem;
        margin: -0.625rem 0 1.375rem;
        font-size: 0.875rem;
    }

    .hero-benefits li::before {
        width: 1rem;
        height: 1rem;
    }

    .hero-fullbleed.hero-photo-split .hero-overlay {
        background:
            linear-gradient(180deg, #17192B 0%, #17192B 38%, rgba(23, 25, 43, 0.96) 54%, rgba(23, 25, 43, 0.76) 76%, rgba(23, 25, 43, 0.58) 100%),
            linear-gradient(90deg, rgba(23, 25, 43, 0.44) 0%, rgba(23, 25, 43, 0.16) 58%, rgba(220, 38, 38, 0.24) 100%);
    }
}

@media (max-width: 639px) {
    .hero-fullbleed.hero-photo-split {
        min-height: 460px;
    }

    .hero-fullbleed.hero-photo-split.hero-compact {
        min-height: 300px;
    }

    .hero-fullbleed.hero-photo-split>img {
        height: 58%;
    }

    .hero-fullbleed.hero-photo-split .hero-content {
        padding-bottom: 9rem;
    }

    .hero-fullbleed.hero-photo-split.hero-compact .hero-content {
        padding-bottom: 4.5rem;
    }

    .trusted-logos {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .trusted-logos-label {
        margin-bottom: 1rem;
        font-size: 0.5rem;
        line-height: 1.45;
        letter-spacing: 0.02em;
        white-space: nowrap;
    }

    .trusted-logos-list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: center;
        justify-items: center;
        gap: 0.75rem 1rem;
        max-width: 18rem;
        margin-left: auto;
        margin-right: auto;
    }

    .trusted-logos-list img {
        height: 2.5rem;
        max-width: 4.75rem;
    }

    .trusted-logos-list img:nth-last-child(-n+2) {
        display: none;
    }
}

.hero-fullbleed.hero-photo-split>img.contact-hero-image {
    object-position: center top;
}

@media (min-width: 1024px) {
    .hero-fullbleed.hero-photo-split>img.contact-hero-image {
        transform: translateY(3rem);
    }
}

@media (max-width: 1023px) {
    .hero-fullbleed.hero-photo-split>img.contact-hero-image {
        object-position: center 12%;
    }
}

.hero-fullbleed.hero-photo-split>img.over-ons-hero-image {
    object-position: center top;
}

@media (min-width: 1024px) {
    .hero-fullbleed.hero-photo-split>img.over-ons-hero-image {
        transform: translate(12rem, 2.75rem);
    }

    .hero-fullbleed.hero-photo-split.over-ons-hero .hero-overlay {
        background:
            linear-gradient(90deg, #17192B 0%, #17192B 44%, rgba(23, 25, 43, 0.96) 50%, rgba(23, 25, 43, 0.54) 58%, rgba(23, 25, 43, 0.12) 67%, rgba(23, 25, 43, 0) 76%),
            linear-gradient(90deg, rgba(220, 38, 38, 0) 82%, rgba(220, 38, 38, 0.16) 100%);
    }
}

@media (max-width: 1023px) {
    .hero-fullbleed.hero-photo-split>img.over-ons-hero-image {
        object-position: center 12%;
    }
}

@media (max-width: 639px) {
    .hero-fullbleed.hero-photo-split>img.over-ons-hero-image {
        height: 66%;
        object-position: 54% center;
    }
}

.home-hero-vignette {
    background: radial-gradient(circle 900px at 50% 45%, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.15) 100%);
}

.home-hero-blur {
    -webkit-mask-image: radial-gradient(circle 900px at 50% 45%, black 0%, black 40%, transparent 80%);
    mask-image: radial-gradient(circle 900px at 50% 45%, black 0%, black 40%, transparent 80%);
}

.contact-section {
    background: #FAFAFA;
    border-top: 1px solid #E5E7EB;
}

.contact-form-panel {
    position: relative;
    overflow: hidden;
    padding: 1rem;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.contact-form-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--brand-red) 0%, #EF4444 52%, #17192B 100%);
}

.contact-form-heading {
    padding: 0.5rem 0.25rem 1rem;
    border-bottom: 1px solid #E5E7EB;
}

.contact-form-kicker {
    display: inline-flex;
    margin-bottom: 0.625rem;
    color: var(--brand-red);
    font-size: 0.8125rem;
    font-weight: 800;
    line-height: 1.2;
}

.contact-form-heading h2,
.contact-side-card h3 {
    margin: 0;
    color: #161616;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.375rem;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.contact-form-heading p {
    max-width: 34rem;
    margin-top: 0.625rem;
    color: #6B7280;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.contact-form,
.contact-form-block,
.contact-details {
    display: grid;
    gap: 1.5rem;
}

.contact-form {
    margin-top: 1.25rem;
}

.contact-form-block {
    min-width: 0;
    border: 0;
}

.contact-form-block[hidden] {
    display: none;
}

.contact-form-section-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.875rem;
    color: #161616;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.contact-form-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    color: #fff;
    background: var(--brand-red);
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.18);
}

.contact-choice {
    position: relative;
    display: flex;
    min-height: 6.125rem;
    height: 100%;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem 2.75rem 1rem 1rem;
    color: #161616;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 0.625rem;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.contact-choice:hover {
    background: #fff;
    border-color: #D1D5DB;
    box-shadow: 0 12px 26px rgba(17, 24, 39, 0.06);
    transform: translateY(-1px);
}

.contact-choice-input:focus-visible + .contact-choice {
    outline: 2px solid var(--brand-red);
    outline-offset: 3px;
}

.contact-choice-input:checked + .contact-choice {
    background: #fff;
    border-color: var(--brand-red);
    box-shadow: inset 0 0 0 1px var(--brand-red), 0 14px 28px rgba(220, 38, 38, 0.1);
}

.contact-choice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    color: var(--brand-red);
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.contact-choice-input:checked + .contact-choice .contact-choice-icon {
    color: #fff;
    background: var(--brand-red);
    border-color: var(--brand-red);
}

.contact-choice-copy {
    min-width: 0;
}

.contact-choice-title {
    display: block;
    color: #161616;
    font-size: 0.9375rem;
    font-weight: 800;
    line-height: 1.2;
}

.contact-choice-text {
    display: block;
    margin-top: 0.375rem;
    color: #6B7280;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.contact-choice-check {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    color: #fff;
    background: var(--brand-red);
    border-radius: 9999px;
    opacity: 0;
    transform: scale(0.84);
    transition: opacity 160ms ease, transform 160ms ease;
}

.contact-choice-input:checked + .contact-choice .contact-choice-check {
    opacity: 1;
    transform: scale(1);
}

.contact-field {
    min-width: 0;
}

.contact-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 700;
}

.contact-form-control {
    width: 100%;
    min-height: 3.25rem;
    padding: 0.875rem 1rem;
    color: #161616;
    background: #F9FAFB;
    border: 1px solid #D1D5DB;
    border-radius: 0.5rem;
    outline: none;
    font: inherit;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

select.contact-form-control {
    color: #374151;
}

.contact-form-control:focus {
    background: #fff;
    border-color: var(--brand-red);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.contact-form-control::placeholder {
    color: #9CA3AF;
}

.contact-form-control--message {
    min-height: 10rem;
    resize: vertical;
}

.contact-details[hidden] {
    display: none;
}

.contact-selected-subject {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 0.625rem;
}

.contact-selected-label {
    color: #4B5563;
    font-size: 0.875rem;
}

.contact-selected-label strong {
    color: #161616;
}

.contact-change-subject {
    align-self: flex-start;
    color: var(--brand-red);
    font-size: 0.875rem;
    font-weight: 800;
}

.contact-change-subject:hover,
.contact-change-subject:focus-visible {
    color: var(--brand-red-dark);
    text-decoration: underline;
}

.contact-subpanel {
    padding: 1rem;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 0.625rem;
}

.contact-submit-row {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    padding-top: 0.25rem;
}

.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    min-height: 3.5rem;
    padding: 0.95rem 1.35rem;
    color: #fff;
    background: var(--brand-red);
    border-radius: 0.5rem;
    font-weight: 800;
    transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.contact-submit-btn:hover,
.contact-submit-btn:focus-visible {
    background: var(--brand-red-dark);
    box-shadow: 0 16px 34px rgba(220, 38, 38, 0.22);
    transform: translateY(-1px);
}

.contact-submit-note {
    color: #6B7280;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.contact-sidebar {
    display: grid;
    gap: 1rem;
    width: 100%;
    max-width: 22rem;
    margin: 0 auto;
}

.contact-side-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.contact-people-card {
    padding: 1.25rem;
}

.contact-people-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-person-avatars {
    display: flex;
    flex-shrink: 0;
}

.contact-person-avatars img {
    width: 3rem;
    height: 3rem;
    object-fit: cover;
    border: 2px solid #fff;
    border-radius: 9999px;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.14);
}

.contact-person-avatars img + img {
    margin-left: -0.8rem;
}

.contact-side-eyebrow {
    margin-bottom: 0.2rem;
    color: var(--brand-red);
    font-size: 0.75rem;
    font-weight: 800;
}

.contact-people-card p {
    color: #6B7280;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.contact-stat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.contact-stat-list span {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.375rem 0.75rem;
    color: #4B5563;
    background: #F3F4F6;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 700;
}

.contact-direct-links {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.contact-direct-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.875rem;
    color: #161616;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 0.625rem;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.contact-direct-link:hover,
.contact-direct-link:focus-visible {
    background: #fff;
    border-color: var(--brand-red);
    transform: translateY(-1px);
}

.contact-direct-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    color: var(--brand-red);
    background: #FEE2E2;
    border-radius: 0.5rem;
}

.contact-direct-link strong,
.contact-direct-link small {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.contact-direct-link strong {
    color: #161616;
    font-size: 0.9rem;
    line-height: 1.25;
}

.contact-direct-link small {
    margin-top: 0.125rem;
    color: #6B7280;
    font-size: 0.75rem;
}

.contact-map-marker {
    width: 16px;
    height: 16px;
    background: var(--brand-red);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.25), 0 2px 8px rgba(0, 0, 0, 0.2);
}

#contact-map-wrapper {
    position: relative;
}

#contact-map-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(23, 25, 43, 0.08);
    pointer-events: none;
    z-index: 401;
}

#contact-map .leaflet-tile-pane {
    filter: grayscale(100%) brightness(1.05);
}

.contact-map {
    width: 100%;
    height: 11rem;
}

.contact-location-body {
    padding: 1.25rem;
}

.contact-location-body h3 {
    margin-bottom: 0.875rem;
    font-size: 1rem;
}

.contact-location-body div {
    color: #6B7280;
    font-size: 0.9rem;
    line-height: 1.65;
}

.contact-map-link {
    display: inline-flex;
    margin-top: 1rem;
    color: var(--brand-red);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.contact-map-link:hover,
.contact-map-link:focus-visible {
    color: var(--brand-red-dark);
    text-decoration: underline;
}

/* ===========================
   GUIDE DOWNLOAD
   =========================== */
.guide-download-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--brand-dark);
}

.guide-download-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guide-download-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(23, 25, 43, 0.92) 0%, rgba(23, 25, 43, 0.74) 48%, rgba(23, 25, 43, 0.54) 100%);
}

.guide-download-inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 2rem;
    width: 100%;
    min-width: 0;
    max-width: 1280px;
    min-height: calc(100vh - 72px);
    margin: 0 auto;
    padding: 3rem 1rem;
    align-items: center;
}

.guide-download-copy {
    min-width: 0;
    max-width: 44rem;
}

.guide-download-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.875rem;
}

.guide-download-breadcrumb a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}

.guide-download-breadcrumb a:hover,
.guide-download-breadcrumb a:focus-visible {
    color: #fff;
}

.guide-download-kicker,
.guide-section-kicker {
    margin-bottom: 0.875rem;
    color: #FCA5A5;
    font-size: 0.8125rem;
    font-weight: 800;
    line-height: 1.2;
}

.guide-download-copy h1 {
    max-width: 42rem;
    margin: 0;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1.05;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
    word-break: normal;
}

.guide-title-line {
    display: inline;
}

.guide-download-intro {
    max-width: 38rem;
    margin-top: 1.25rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.0625rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.guide-download-panel {
    width: 100%;
    min-width: 0;
    max-width: 32rem;
    padding: 1rem;
    color: #161616;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.5rem;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.guide-download-panel .contact-form-heading h2,
.article-download-cta h2,
.guide-inline-cta h2,
.guide-section-cta h2 {
    letter-spacing: -0.025em;
}

.guide-cta-eyebrow {
    margin: 0 0 0.45rem;
    color: #DC2626;
    font-size: 0.8125rem;
    font-weight: 800;
    line-height: 1.2;
}

.guide-inline-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin: 2.5rem 0 0;
    padding: 1.25rem;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 0.5rem;
}

.guide-inline-cta-copy {
    min-width: 0;
}

.guide-inline-cta h2,
.guide-section-cta h2 {
    margin: 0 0 0.5rem;
    color: #161616;
    font-family: var(--font-display, "Space Grotesk", sans-serif);
    font-weight: 800;
    line-height: 1.12;
}

.guide-inline-cta h2 {
    font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
}

.guide-inline-cta p,
.guide-section-cta p {
    color: #4B5563;
    line-height: 1.6;
}

.guide-inline-cta p {
    margin: 0;
    font-size: 0.98rem;
}

.guide-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 0.45rem;
    min-height: 2.75rem;
    padding: 0.75rem 1rem;
    color: #fff;
    background: #DC2626;
    border-radius: 0.5rem;
    font-weight: 800;
    text-decoration: none;
    transition: background-color 160ms ease, transform 160ms ease;
}

.guide-cta-button:hover {
    color: #fff;
    background: #B91C1C;
    text-decoration: none;
    transform: translateY(-1px);
}

.guide-section-cta {
    padding: 4rem 1.5rem;
    background: #FAFAFA;
    border-top: 1px solid #E5E7EB;
}

.guide-section-cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18rem;
    gap: 2rem;
    align-items: center;
    max-width: 64rem;
    margin: 0 auto;
}

.guide-section-cta-copy {
    max-width: 38rem;
}

.guide-section-cta h2 {
    font-size: clamp(1.75rem, 1.45rem + 1vw, 2.5rem);
}

.guide-section-cta p {
    max-width: 34rem;
    margin: 0 0 1.25rem;
    font-size: 1.08rem;
}

.guide-section-cta-media {
    position: relative;
    display: block;
    min-width: 0;
    overflow: hidden;
    border-radius: 0.5rem;
    aspect-ratio: 3 / 2;
    background: #E5E7EB;
}

.guide-section-cta-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.guide-section-cta-media:hover img {
    transform: scale(1.04);
}

.guide-section-cta-media span {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    min-height: 1.9rem;
    max-width: calc(100% - 1.5rem);
    padding: 0.35rem 0.65rem;
    color: #fff;
    background: rgba(22, 22, 22, 0.86);
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 800;
}

@media (max-width: 767px) {
    .guide-inline-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .guide-cta-button {
        width: 100%;
    }

    .guide-section-cta {
        padding: 3rem 1rem;
    }

    .guide-section-cta-inner {
        grid-template-columns: 1fr;
    }

    .guide-section-cta-media {
        order: -1;
    }
}

.guide-form-error {
    display: grid;
    gap: 0.25rem;
    margin: 1rem 0 0;
    padding: 0.875rem 1rem;
    color: #991B1B;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.45;
}

.guide-call-option {
    display: flex;
    gap: 0.875rem;
    padding: 1rem;
    color: #161616;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    cursor: pointer;
}

.guide-call-option input {
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
    accent-color: var(--brand-red);
}

.guide-call-option strong,
.guide-call-option small {
    display: block;
}

.guide-call-option strong {
    font-size: 0.9375rem;
    line-height: 1.35;
}

.guide-call-option small {
    margin-top: 0.25rem;
    color: #6B7280;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.guide-submit-row {
    padding-top: 0;
}

.guide-privacy-note {
    color: #6B7280;
    font-size: 0.8125rem;
    line-height: 1.55;
}

.guide-privacy-note a {
    color: var(--brand-red);
    font-weight: 700;
    text-decoration: none;
}

.guide-privacy-note a:hover,
.guide-privacy-note a:focus-visible {
    color: var(--brand-red-dark);
    text-decoration: underline;
}

.guide-success {
    display: grid;
    gap: 1rem;
}

.guide-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    color: #fff;
    background: #16A34A;
    border-radius: 9999px;
}

.guide-success-icon svg {
    width: 1.45rem;
    height: 1.45rem;
}

.guide-success h2 {
    margin: 0;
    color: #161616;
    font-size: 1.75rem;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.guide-success p {
    color: #6B7280;
    line-height: 1.6;
}

.guide-download-button {
    width: 100%;
    text-decoration: none;
}

.guide-download-content {
    padding: 4rem 0;
    color: #161616;
    background: #fff;
    border-top: 1px solid #E5E7EB;
}

.guide-download-content-inner {
    display: grid;
    gap: 2rem;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.guide-download-content h2 {
    max-width: 36rem;
    margin: 0;
    font-size: 2rem;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.guide-download-content p {
    max-width: 38rem;
    margin-top: 1rem;
    color: #6B7280;
    line-height: 1.7;
}

.guide-topic-grid {
    display: grid;
    gap: 1rem;
}

.guide-topic-grid div {
    padding: 1.125rem;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
}

.guide-topic-grid span {
    display: inline-flex;
    margin-bottom: 0.75rem;
    color: var(--brand-red);
    font-size: 0.8125rem;
    font-weight: 800;
}

.guide-topic-grid strong {
    display: block;
    color: #161616;
    font-size: 1rem;
    line-height: 1.3;
}

.guide-topic-grid p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (min-width: 640px) {
    .guide-download-inner {
        padding: 4rem 1.5rem;
    }

    .guide-download-panel {
        padding: 1.5rem;
    }

    .guide-download-content-inner {
        padding: 0 1.5rem;
    }
}

@media (min-width: 768px) {
    .guide-download-copy h1 {
        font-size: 3.5rem;
    }

    .guide-download-intro {
        font-size: 1.125rem;
    }

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

@media (min-width: 1024px) {
    .guide-download-inner {
        grid-template-columns: minmax(0, 1fr) minmax(24rem, 32rem);
        gap: 4rem;
        padding: 4.5rem 1.5rem;
    }

    .guide-download-copy h1 {
        font-size: 4.25rem;
    }

    .guide-download-panel {
        justify-self: end;
    }

    .guide-download-content {
        padding: 5rem 0;
    }

    .guide-download-content-inner {
        grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
        align-items: start;
    }
}

@media (max-width: 767px) {
    .guide-download-hero {
        overflow-x: hidden;
    }

    .guide-download-hero-overlay {
        background: rgba(23, 25, 43, 0.86);
    }

    .guide-download-inner {
        width: 100%;
        max-width: 100%;
    }

    .guide-download-copy,
    .guide-download-panel {
        width: 100%;
        max-width: 22.25rem;
    }

    .guide-download-copy h1 {
        max-width: 100%;
        font-size: 2.15rem;
        line-height: 1.12;
        word-break: break-word;
    }

    .guide-title-line {
        display: block;
    }

    .guide-download-intro {
        max-width: 100%;
    }

}

@media (min-width: 640px) {
    .contact-form-panel {
        padding: 1.5rem;
    }

    .contact-form-heading {
        padding-bottom: 1.25rem;
    }

    .contact-submit-row {
        flex-direction: row;
        align-items: center;
    }

    .contact-selected-subject {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .contact-sidebar {
        max-width: none;
    }
}

@media (min-width: 1024px) {
    .contact-sidebar {
        position: sticky;
        top: 6rem;
    }
}

@media (max-width: 639px) {
    .contact-form-panel,
    .contact-sidebar {
        max-width: calc(100vw - 2rem);
    }

    .contact-choice {
        min-height: auto;
    }

    .contact-direct-link {
        align-items: flex-start;
    }
}

.share-canvas {
    width: 100%;
    height: auto;
}

.device-result-panel {
    background: linear-gradient(135deg, #17192B 0%, #1e2235 100%);
}

.device-running-bg {
    background: url('https://images.unsplash.com/photo-1552674605-db6ffd4facb5?w=600&q=60') center/cover;
}

.device-running-bg-sm {
    background: url('https://images.unsplash.com/photo-1552674605-db6ffd4facb5?w=400&q=40') center/cover;
}

/* ===========================
   ARTICLE HERO
   =========================== */
.article-hero {
    background: #F9FAFB;
    border-bottom: 1px solid #E5E7EB;
}

.article-hero-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem 2.5rem;
    display: grid;
    gap: 2rem;
}

.article-hero-copy {
    max-width: 720px;
}

.article-hero-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #6B7280;
}

.article-hero-breadcrumb a {
    color: #6B7280;
    text-decoration: none;
    transition: color 0.15s ease;
}

.article-hero-breadcrumb a:hover,
.article-hero-breadcrumb a:focus-visible {
    color: var(--brand-red);
}

.article-hero-breadcrumb span[aria-current="page"] {
    color: #161616;
    font-weight: 500;
}

.article-hero-labels {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1rem;
}

.article-hero-labels span {
    display: inline-flex;
    align-items: center;
    color: var(--brand-red-dark);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
}

.article-hero h1 {
    max-width: 42rem;
    margin: 0;
    color: #161616;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.article-hero-intro {
    max-width: 680px;
    margin-top: 1.125rem;
    color: #4B5563;
    font-size: 1.125rem;
    line-height: 1.65;
}

.article-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem;
    margin-top: 1.5rem;
    color: #6B7280;
    font-size: 0.9375rem;
    line-height: 1.4;
}

.article-hero-meta span {
    display: inline-flex;
    align-items: center;
}

.article-hero-meta span+span::before {
    content: "";
    width: 4px;
    height: 4px;
    margin-right: 0.625rem;
    border-radius: 999px;
    background: #D1D5DB;
}

.article-hero-media {
    width: 100%;
    margin: 0;
    overflow: hidden;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #E5E7EB;
    box-shadow: 0 24px 60px -36px rgba(15, 23, 42, 0.55);
}

.article-hero-media img {
    display: block;
    width: 100%;
    height: 16rem;
    object-fit: cover;
}

@media (min-width: 768px) {
    .article-hero-inner {
        padding: 3rem 2rem 3.25rem;
    }

    .article-hero h1 {
        font-size: 3rem;
    }

    .article-hero-intro {
        font-size: 1.1875rem;
    }

    .article-hero-media img {
        height: 22rem;
    }
}

@media (min-width: 1024px) {
    .article-hero-inner {
        grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.75fr);
        align-items: center;
        gap: 3rem;
        padding: 4rem 1.5rem 4rem;
    }

    .article-hero h1 {
        font-size: 3.5rem;
    }

    .article-hero-media img {
        height: 25rem;
    }
}

/* ===========================
   ARTICLE CONTENT
   =========================== */
.article-content {
    color: #374151;
}

.article-content>p,
.article-content>.mb-12>p,
.article-content section>p,
.article-content>ul,
.article-content>ol,
.article-content section>ul,
.article-content section>ol {
    color: #374151;
    font-size: 1.0625rem;
    line-height: 1.78;
}

.article-content>p,
.article-content section>p,
.article-content>.mb-12>p {
    margin-bottom: 1.5rem;
}

.article-content>p:first-child,
.article-content>.mb-12>p:first-child {
    color: #374151;
    font-size: 1.1875rem;
    line-height: 1.72;
    margin-bottom: 1.75rem;
}

.article-content>h2 {
    margin-top: 3.75rem;
    margin-bottom: 1.25rem;
    font-size: 1.75rem;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.article-content>h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.375rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.article-content section>h2 {
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.article-content section>h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.375rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.article-content>ul>li,
.article-content>ol>li,
.article-content section>ul>li,
.article-content section>ol>li {
    line-height: 1.72;
    margin-top: 0.45rem;
}

.article-content a {
    text-underline-offset: 0.16em;
}

.article-content :is(.rounded-xl, .rounded-2xl, .bg-white, .bg-gray-50, .bg-red-50, .bg-amber-50, .bg-green-50, .bg-blue-50)[class*="border"],
.article-content .border-l-4 {
    font-size: 1rem;
    line-height: 1.62;
}

.article-content :is(.rounded-xl, .rounded-2xl, .bg-white, .bg-gray-50, .bg-red-50, .bg-amber-50, .bg-green-50, .bg-blue-50)[class*="border"] :where(p, li, td),
.article-content .border-l-4 :where(p, li) {
    line-height: 1.62;
}

.article-content :is(.rounded-xl, .rounded-2xl, .bg-white, .bg-gray-50, .bg-red-50, .bg-amber-50, .bg-green-50, .bg-blue-50)[class*="border"] :where(p, li, td):not([class*="text-xs"]):not([class*="text-lg"]):not([class*="text-xl"]):not([class*="text-2xl"]):not([class*="text-3xl"]),
.article-content .border-l-4 :where(p, li):not([class*="text-xs"]):not([class*="text-lg"]):not([class*="text-xl"]):not([class*="text-2xl"]):not([class*="text-3xl"]) {
    font-size: 1rem;
}

.article-content :is(.rounded-xl, .rounded-2xl, .bg-white, .bg-gray-50, .bg-red-50, .bg-amber-50, .bg-green-50, .bg-blue-50)[class*="border"] :where(p.text-sm, ul.text-sm, ol.text-sm, li.text-sm, div.text-sm, td.text-sm),
.article-content .border-l-4 :where(p.text-sm, ul.text-sm, ol.text-sm, li.text-sm, div.text-sm) {
    font-size: 1rem;
    line-height: 1.62;
}

.article-content :is(.rounded-xl, .rounded-2xl, .bg-white, .bg-gray-50, .bg-red-50, .bg-amber-50, .bg-green-50, .bg-blue-50)[class*="border"] :where(.text-xs),
.article-content .border-l-4 :where(.text-xs) {
    font-size: 0.75rem;
    line-height: 1.35;
}

.article-content :is(.rounded-xl, .rounded-2xl, .bg-white, .bg-gray-50, .bg-red-50, .bg-amber-50, .bg-green-50, .bg-blue-50)[class*="border"] :where(h3, h4) {
    font-size: 1.0625rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.article-content :is(.rounded-xl, .rounded-2xl, .bg-white, .bg-gray-50, .bg-red-50, .bg-amber-50, .bg-green-50, .bg-blue-50)[class*="border"] :where(ul, ol) {
    line-height: 1.62;
}

.article-content :is(.rounded-xl, .rounded-2xl, .bg-white, .bg-gray-50, .bg-red-50, .bg-amber-50, .bg-green-50, .bg-blue-50)[class*="border"] table {
    font-size: 0.9375rem;
    line-height: 1.55;
}

@media (min-width: 768px) {

    .article-content>p,
    .article-content>.mb-12>p,
    .article-content section>p,
    .article-content>ul,
    .article-content>ol,
    .article-content section>ul,
    .article-content section>ol {
        font-size: 1.125rem;
    }

    .article-content>p:first-child,
    .article-content>.mb-12>p:first-child {
        font-size: 1.25rem;
    }

    .article-content>h2,
    .article-content section>h2 {
        font-size: 2rem;
    }

    .article-content>h3,
    .article-content section>h3 {
        font-size: 1.5rem;
    }
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: #17192B;
    color: white;
}

.footer a {
    color: #E0E0E0;
    text-decoration: none;
    transition: color 0.15s;
}

.footer a:hover {
    color: white;
}

.footer h4 {
    color: #9CA3AF;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.5s ease-out forwards;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}

/* ===========================
   UTILITIES
   =========================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.text-gradient {
    background: linear-gradient(135deg, #DC2626, #EF4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Link with arrow */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-red);
    font-weight: 600;
    text-decoration: none;
}

.link-arrow:hover {
    text-decoration: underline;
}

/* ===========================
   ACCESSIBILITY
   =========================== */
/* Screen reader only - visually hidden but accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* When focused, make visible (for skip links) */
.sr-only:focus,
.focus\:not-sr-only:focus {
    position: absolute;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* ===========================
   SCROLL MARGIN FOR ANCHORS
   =========================== */
[id] {
    scroll-margin-top: 5rem;
}

/* ===========================
   FOCUS STATES
   =========================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--brand-red);
    outline-offset: 2px;
}

/* Zoekbalk hero: geen dubbele rand */
.search-input:focus-visible {
    outline: none;
}

/* ===========================
   RESPONSIVE UTILITIES
   =========================== */
@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }

    .section {
        padding: 3rem 0;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* ===========================
   SCROLL REVEAL
   =========================== */
[data-reveal] {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   REDUCED MOTION
   =========================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }

}

/* ===========================
   MOBILE BOTTOM NAV
   =========================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 70;
    display: flex;
    align-items: stretch;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.04);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 64px;
    padding: 8px 4px;
    color: #6b7280;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
}

.bottom-nav-item svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.75;
}

.bottom-nav-item:active {
    transform: scale(0.94);
}

.bottom-nav-item[aria-current="page"],
.bottom-nav-item.is-active {
    color: var(--brand-red);
}

.bottom-nav-item[aria-current="page"] svg,
.bottom-nav-item.is-active svg {
    stroke-width: 2.25;
}

@media (min-width: 1024px) {
    .bottom-nav {
        display: none;
    }
}

/* Reserveer ruimte onder de body zodat de bottom nav geen content (footer/CTA) afdekt */
@media (max-width: 1023px) {
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0));
    }
}

/* ===========================
   SHEET (search modal + menu)
   =========================== */
.sheet {
    position: fixed;
    inset: 0;
    z-index: 60;
    visibility: hidden;
    pointer-events: none;
}

.sheet.is-open {
    visibility: visible;
    pointer-events: auto;
}

.sheet-backdrop {
    position: absolute;
    inset: 0;
    background: transparent;
}

.sheet-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(64px + env(safe-area-inset-bottom, 0));
    top: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    border-bottom: 1px solid #e5e7eb;
}

.sheet.is-open .sheet-panel {
    transform: translateY(0);
}

.sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    flex-shrink: 0;
}

.sheet-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #161616;
    letter-spacing: -0.02em;
}

.sheet-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    color: #6b7280;
    background: #f3f4f6;
    border: 0;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.sheet-close:hover,
.sheet-close:focus-visible {
    background: #e5e7eb;
    color: #161616;
}

.sheet-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
}

/* ===========================
   SEARCH MODAL (sheet variant)
   =========================== */
.search-toggle {
    display: inline-flex;
    background: #f3f4f6;
    border-radius: 9999px;
    padding: 4px;
}

/* Modal-variant: gecentreerd en full-width tot 320px */
.sheet .search-toggle {
    display: flex;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 20px;
}

.search-toggle button {
    padding: 9px 22px;
    border-radius: 9999px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.sheet .search-toggle button {
    flex: 1;
}

.search-toggle button[aria-pressed="true"] {
    background: var(--brand-red);
    color: #fff;
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.3);
}

.search-modal-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 12px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.search-modal-input-wrap:focus-within {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.search-modal-input-wrap svg.search-icon {
    position: absolute;
    left: 14px;
    width: 20px;
    height: 20px;
    color: #9ca3af;
    pointer-events: none;
}

.search-modal-input-wrap input {
    flex: 1;
    width: 100%;
    padding: 14px 14px 14px 44px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #161616;
    background: transparent;
    border: 0;
    outline: none;
}

.search-modal-input-wrap input::placeholder {
    color: #9ca3af;
}

.search-modal-results {
    margin-top: 16px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: #161616;
    transition: background 0.15s;
    cursor: pointer;
}

.search-result-item:hover,
.search-result-item:focus-visible,
.search-result-item.is-highlighted {
    background: #f9fafb;
    outline: none;
}

.search-result-item .result-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fef2f2;
    color: var(--brand-red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-result-item .result-icon svg {
    width: 20px;
    height: 20px;
}

.search-result-item .result-body {
    flex: 1;
    min-width: 0;
}

.search-result-item .result-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #161616;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-item .result-meta {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-empty,
.search-loading {
    text-align: center;
    padding: 32px 16px;
    color: #9ca3af;
    font-size: 14px;
}

.search-loading svg {
    width: 24px;
    height: 24px;
    margin: 0 auto 8px;
    color: var(--brand-red);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===========================
   MENU SHEET
   =========================== */

/* Section label (kopjes tussen groepen) */
.menu-section-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin: 16px 4px 4px;
}

.menu-section-label:first-child {
    margin-top: 0;
}

/* Standard menu row — klassiek patroon: icoon links, label, chevron rechts */
.menu-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 4px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #161616;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
    transition: color 0.15s, background 0.15s;
    min-height: 52px;
}

.menu-row:hover,
.menu-row:focus-visible {
    color: var(--brand-red);
    outline: none;
}

.menu-row:active {
    background: #f9fafb;
}

.menu-row>svg:first-child {
    width: 22px;
    height: 22px;
    color: #6b7280;
    flex-shrink: 0;
    stroke-width: 1.75;
    transition: color 0.15s;
}

.menu-row:hover>svg:first-child,
.menu-row:focus-visible>svg:first-child {
    color: var(--brand-red);
}

.menu-row>span {
    flex: 1;
    min-width: 0;
}

.menu-row>.menu-row-chevron {
    width: 16px;
    height: 16px;
    color: #d1d5db;
    flex-shrink: 0;
}

/* Collapsible sectie (Kennisbank) */
.menu-details {
    border-bottom: 1px solid #f3f4f6;
}

.menu-details>summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 4px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #161616;
    cursor: pointer;
    list-style: none;
    min-height: 52px;
    transition: color 0.15s;
}

.menu-details>summary::-webkit-details-marker {
    display: none;
}

.menu-details>summary>svg:first-child {
    width: 22px;
    height: 22px;
    color: #6b7280;
    flex-shrink: 0;
    stroke-width: 1.75;
}

.menu-details>summary>span {
    flex: 1;
}

.menu-details>summary>.menu-details-chevron {
    width: 16px;
    height: 16px;
    color: #9ca3af;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.menu-details[open]>summary>.menu-details-chevron {
    transform: rotate(180deg);
}

.menu-details-body {
    padding: 2px 4px 8px 40px;
    display: flex;
    flex-direction: column;
}

.menu-details-body a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 4px;
    font-size: 14px;
    color: #4b5563;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
    transition: color 0.15s;
    min-height: 44px;
}

.menu-details-body a:last-child {
    border-bottom: 0;
}

.menu-details-body a>span {
    flex: 1;
    min-width: 0;
}

.menu-details-body a>svg {
    width: 14px;
    height: 14px;
    color: #d1d5db;
    flex-shrink: 0;
    transition: color 0.15s;
}

.menu-details-body a:hover,
.menu-details-body a:focus-visible {
    color: var(--brand-red);
    outline: none;
}

.menu-details-body a:hover>svg,
.menu-details-body a:focus-visible>svg {
    color: var(--brand-red);
}


/* Voorkom body-scroll als sheet open staat */
body.sheet-open {
    overflow: hidden;
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {

    .sheet-panel,
    .sheet-backdrop,
    .bottom-nav-item {
        transition: none !important;
    }
}

/* ===========================
   EVENT DETAIL PAGE
   =========================== */
.medal-gold {
    color: #CA8A04;
}

.medal-silver {
    color: #94A3B8;
}

.medal-bronze {
    color: #B45309;
}

.sub-cat-table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f9fafb;
}

.result-row {
    position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.result-row::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: background 0.15s ease;
    border-radius: 0 2px 2px 0;
}

@media (hover: hover) and (pointer: fine) {
    .result-row:hover {
        background: rgb(254 242 242 / 0.5);
    }

    .result-row:hover::after {
        background: #DC2626;
    }
}

.result-row td:first-child {
    padding-left: calc(1rem + 3px);
}

.result-row a {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.runner-transition {
    position: fixed;
    inset: 0;
    z-index: 45;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease;
    overflow: hidden;
}

.runner-transition.visible {
    opacity: 1;
    pointer-events: auto;
}

.runner-transition-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 54px;
    display: flex;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 1rem;
}

.runner-transition-topbar-inner {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.runner-transition-topbar-logo {
    height: 1.75rem;
    width: auto;
    display: block;
}

.runner-transition-topbar-icon {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
}

.runner-transition-shell {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: calc(54px + 1rem) 1rem 2rem;
}

.runner-transition .skeleton {
    background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 38%, #fef2f2 50%, #e5e7eb 62%, #f3f4f6 100%);
    background-size: 240% 100%;
    animation: runner-transition-shimmer 1.7s ease-in-out infinite, runner-transition-pulse 2.4s ease-in-out infinite;
}

@keyframes runner-transition-shimmer {
    0% {
        background-position: 180% 0;
    }

    100% {
        background-position: -80% 0;
    }
}

@keyframes runner-transition-pulse {

    0%,
    100% {
        opacity: 0.78;
    }

    50% {
        opacity: 1;
    }
}

@media (max-width: 1023px) {
    .runner-transition {
        bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }
}

@media (min-width: 1024px) {
    .runner-transition-topbar {
        height: 72px;
        padding: 0 1.5rem;
    }

    .runner-transition-topbar-logo {
        height: 2rem;
    }

    .runner-transition-shell {
        padding: calc(72px + 1.5rem) 1.5rem 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .runner-transition {
        transition: none;
    }

    .runner-transition .skeleton {
        animation: none;
        opacity: 1;
    }
}

.scrollbar-hide {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.event-cover-fallback {
    background: linear-gradient(135deg, #111827 0%, #374151 55%, #DC2626 100%);
}

.event-title-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    min-width: 0;
}

.event-title-line h1 {
    display: block;
    flex: 1 1 auto;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
    white-space: normal;
    word-break: normal;
}

.event-verified {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    margin-left: 0.5rem;
    vertical-align: 0.15em;
}

.event-verified-button {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-height: 1.75rem;
    padding: 0.25rem 0.625rem 0.25rem 0.45rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 9999px;
    background: #eff6ff;
    color: #2563eb;
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.event-verified-button:hover,
.event-verified-button:focus-visible {
    background: #dbeafe;
    border-color: rgba(37, 99, 235, 0.32);
    color: #1d4ed8;
}

.event-verified-button:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.28);
    outline-offset: 2px;
}

.event-verified-icon {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
}

.event-verified-tooltip {
    letter-spacing: 0;
    position: absolute;
    z-index: 40;
    top: calc(100% + 0.5rem);
    left: 50%;
    width: max-content;
    max-width: min(18rem, calc(100vw - 2rem));
    transform: translate(-50%, -0.25rem);
    border-radius: 0.5rem;
    background: #fff;
    color: var(--brand-dark) padding: 0.55rem 0.7rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.35;
    text-align: center;
    text-shadow: none;
    padding: 10px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.24);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.event-verified-tooltip::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -0.3rem;
    width: 0.6rem;
    height: 0.6rem;
    transform: translateX(-50%) rotate(45deg);
    background: #fff;
}

.event-verified.is-open .event-verified-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

@media (hover: hover) and (pointer: fine) {
    .event-verified:hover .event-verified-tooltip {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
    }

    .event-verified-button:hover {
        transform: translateY(-1px);
    }
}

@media (max-width: 639px) {
    .cat-view .overflow-x-auto {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .event-title-line {
        align-items: flex-start;
        gap: 0.375rem;
    }

    .event-verified {
        margin-left: 0.375rem;
        margin-top: 0;
        vertical-align: middle;
    }

    .event-verified-button {
        width: 1.25rem;
        height: 1.25rem;
        min-height: 0;
        border-color: transparent;
        background: transparent;
        box-shadow: none;
        justify-content: center;
        padding: 0;
    }

    .event-verified-icon {
        width: 1.25rem;
        height: 1.25rem;
    }

    .event-verified-text {
        display: none;
    }

    .event-verified-tooltip {
        position: fixed;
        top: var(--event-verified-tooltip-top, 5rem);
        left: 1rem;
        right: 1rem;
        width: auto;
        max-width: none;
        transform: translateY(-0.25rem);
    }

    .event-verified.is-open .event-verified-tooltip {
        transform: translateY(0);
    }

    .event-verified-tooltip::before {
        left: var(--event-verified-arrow-x, 1.25rem);
        right: auto;
        transform: translateX(-50%) rotate(45deg);
    }
}

/* Skeleton animation */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.5rem;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ===========================
   RUNNER DETAIL PAGE
   =========================== */
.medal-gold {
    color: #CA8A04;
}

.medal-silver {
    color: #94A3B8;
}

.medal-bronze {
    color: #B45309;
}

.gauge-needle {
    transform-box: view-box;
    transform-origin: 100px 90px;
    transform: rotate(-90deg);
}

.gauge-needle.anim {
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (prefers-reduced-motion: reduce) {
    .gauge-needle.anim {
        transition: none;
    }
}

.anchor-link {
    position: relative;
}

.anchor-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 1.5px;
    background: transparent;
    transition: background 0.2s;
    border-radius: 999px;
}

.anchor-link.active {
    color: #DC2626;
}

.anchor-link.active::after {
    background: #DC2626;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.5rem;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.runner-transition {
    position: fixed;
    inset: 0;
    z-index: 45;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease;
    overflow: hidden;
}

.runner-transition.visible {
    opacity: 1;
    pointer-events: auto;
}

.runner-transition-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 54px;
    display: flex;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 1rem;
}

.runner-transition-topbar-inner {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.runner-transition-topbar-logo {
    height: 1.75rem;
    width: auto;
    display: block;
}

.runner-transition-topbar-icon {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
}

.runner-transition-shell {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: calc(54px + 1rem) 1rem 2rem;
}

.runner-transition .skeleton {
    background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 38%, #fef2f2 50%, #e5e7eb 62%, #f3f4f6 100%);
    background-size: 240% 100%;
    animation: runner-transition-shimmer 1.7s ease-in-out infinite, runner-transition-pulse 2.4s ease-in-out infinite;
}

@keyframes runner-transition-shimmer {
    0% {
        background-position: 180% 0;
    }

    100% {
        background-position: -80% 0;
    }
}

@keyframes runner-transition-pulse {

    0%,
    100% {
        opacity: 0.78;
    }

    50% {
        opacity: 1;
    }
}

@media (max-width: 1023px) {
    .runner-transition {
        bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }
}

@media (min-width: 1024px) {
    .runner-transition-topbar {
        height: 72px;
        padding: 0 1.5rem;
    }

    .runner-transition-topbar-logo {
        height: 2rem;
    }

    .runner-transition-shell {
        padding: calc(72px + 1.5rem) 1.5rem 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .runner-transition {
        transition: none;
    }

    .runner-transition .skeleton {
        animation: none;
        opacity: 1;
    }
}

/* Fade in for lazy loaded content */
.fade-in {
    animation: fadeIn 0.35s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Confetti */
.confetti-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    top: -20px;
    width: 10px;
    height: 10px;
    opacity: 0;
    animation: confetti-fall 2.5s ease-out forwards;
}

@keyframes confetti-fall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(105vh) rotate(720deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .confetti-piece {
        animation: none;
        display: none;
    }
}

.sticky-share {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9997;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.sticky-share.visible {
    transform: translateY(0);
}

@media (min-width: 1024px) {
    .sticky-share {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sticky-share {
        transition: none;
    }
}

/* Hero */
.result-hero {
    background: linear-gradient(135deg, #17192B 0%, #1e2235 50%, #252a3e 100%);
    position: relative;
    overflow: hidden;
}

.result-hero.has-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-photo) center/cover;
    opacity: 0.35;
}

.result-hero.has-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(23, 25, 43, 0.3) 0%, rgba(23, 25, 43, 0.6) 100%);
}

.result-hero>* {
    position: relative;
    z-index: 1;
}

body.photo-modal-open {
    overflow: hidden;
}

.photo-open-button {
    display: block;
    width: 100%;
    cursor: zoom-in;
    text-align: left;
}

.photo-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    background: rgba(17, 24, 39, 0.96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 160ms ease, visibility 160ms ease;
}

.photo-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.photo-modal-backdrop {
    position: absolute;
    inset: 0;
}

.photo-modal-toolbar,
.photo-modal-stage {
    position: relative;
    z-index: 1;
}

.photo-modal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: max(1rem, env(safe-area-inset-top, 0px)) 1rem 0.75rem;
    color: #fff;
}

.photo-modal-caption {
    max-width: min(62vw, 42rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 600;
}

.photo-modal-counter {
    margin-top: 0.125rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.58);
    font-variant-numeric: tabular-nums;
}

.photo-modal-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.photo-modal-button,
.photo-modal-download,
.photo-modal-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.photo-modal-button,
.photo-modal-nav {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
}

.photo-modal-download {
    min-height: 2.75rem;
    gap: 0.5rem;
    border-radius: 9999px;
    padding: 0 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
}

.photo-modal-button:hover,
.photo-modal-button:focus-visible,
.photo-modal-download:hover,
.photo-modal-download:focus-visible,
.photo-modal-nav:hover,
.photo-modal-nav:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.45);
    outline: none;
}

.photo-modal-button:active,
.photo-modal-download:active,
.photo-modal-nav:active {
    transform: scale(0.96);
}

.photo-modal-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 0 5rem max(1.25rem, env(safe-area-inset-bottom, 0px));
}

.photo-modal-image {
    max-width: 100%;
    max-height: calc(100vh - 7.5rem);
    object-fit: contain;
    border-radius: 0.75rem;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
    background: rgba(255, 255, 255, 0.04);
}

.photo-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.photo-modal-nav:active {
    transform: translateY(-50%) scale(0.96);
}

.photo-modal-prev {
    left: 1rem;
}

.photo-modal-next {
    right: 1rem;
}

.photo-modal[data-has-many="false"] .photo-modal-nav,
.photo-modal[data-has-many="false"] .photo-modal-counter {
    display: none;
}

@media (max-width: 640px) {
    .photo-modal-toolbar {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .photo-modal-caption {
        max-width: 46vw;
    }

    .photo-modal-download {
        width: 2.75rem;
        padding: 0;
    }

    .photo-modal-stage {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .photo-modal-image {
        max-height: calc(100vh - 7rem);
        border-radius: 0.5rem;
    }

    .photo-modal-nav {
        background: rgba(17, 24, 39, 0.62);
    }

    .photo-modal-prev {
        left: 0.75rem;
    }

    .photo-modal-next {
        right: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    .photo-modal,
    .photo-modal-button,
    .photo-modal-download,
    .photo-modal-nav {
        transition: none;
    }
}
