/* ============================================
           1. CSS VARIABLES & RESET
           ============================================ */
        :root {
            /* Colors from design spec */
            --color-primary: #1A6B3C;
            --color-primary-dark: #0E4425;
            --color-accent: #C8A84E;
            --color-neutral: #F7F4EE;
            --color-text: #2B2B2B;
            --color-bg: #FFFFFF;
            --color-danger: #B83230;
            --color-info: #3A6EA5;
            --color-success: #1A6B3C;
            
            /* Derived colors */
            --color-text-secondary: #5A5A5A;
            --color-border: #D9D5CC;
            --color-surface: #FAF9F6;
            
            /* Typography */
            --font-display: 'Playfair Display', Georgia, serif;
            --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            
            /* Spacing */
            --section-gap: clamp(3rem, 6vw, 5rem);
            --content-max-width: 800px;
            --content-padding: clamp(1rem, 4vw, 2rem);
            
            /* Transitions */
            --transition-base: 0.2s ease;
            --transition-slow: 0.4s ease;
        
    /* --- AUTO-FORCED DARK THEME --- */
    --color-primary: #2D9B5A;
                --color-primary-dark: #1A6B3C;
                --color-accent: #D4B85E;
                --color-neutral: #1A1A1A;
                --color-text: #E8E6E3;
                --color-bg: #121212;
                --color-danger: #E05550;
                --color-info: #5A9ED6;
                --color-text-secondary: #A0A0A0;
                --color-border: #333333;
                --color-surface: #1E1E1E;
}

        

        *,
        *::before,
        *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: var(--font-body);
            font-size: clamp(1rem, 1vw + 0.5rem, 1.125rem);
            line-height: 1.7;
            color: var(--color-text);
            background-color: var(--color-bg);
        }

        /* ============================================
           2. GENERAL TYPOGRAPHY
           ============================================ */
        h1 {
            font-family: var(--font-display);
            font-size: clamp(1.875rem, 2.5vw + 1rem, 3rem);
            font-weight: 700;
            line-height: 1.25;
            letter-spacing: -0.02em;
        }

        h2 {
            font-family: var(--font-display);
            font-size: clamp(1.5rem, 2vw + 0.75rem, 2.25rem);
            font-weight: 600;
            line-height: 1.25;
            margin-bottom: 1.25rem;
            color: var(--color-text);
            text-align: left;
            scroll-margin-top: 2rem;
        }

        h3 {
            font-family: var(--font-body);
            font-size: clamp(1.125rem, 1.5vw + 0.5rem, 1.5rem);
            font-weight: 600;
            line-height: 1.3;
            margin-bottom: 1rem;
            color: var(--color-text);
            text-align: left;
            scroll-margin-top: 2rem;
        }

        p {
            margin-bottom: 1.25rem;
            text-align: left;
        }

        a {
            color: var(--color-info);
            text-decoration: underline;
            text-underline-offset: 2px;
            transition: color var(--transition-base);
        }

        a:hover {
            color: var(--color-primary);
        }

        a:focus {
            outline: 2px solid var(--color-accent);
            outline-offset: 2px;
        }

        ul, ol {
            margin-bottom: 1.25rem;
            padding-left: 1.5rem;
            text-align: left;
        }

        li {
            margin-bottom: 0.5rem;
            text-align: left;
        }

        strong {
            font-weight: 600;
        }

        blockquote {
            border-left: 3px solid var(--color-accent);
            padding-left: 1.5rem;
            margin: 1.5rem 0;
            font-style: italic;
            color: var(--color-text-secondary);
            text-align: left;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
            font-size: clamp(0.8rem, 0.8vw + 0.4rem, 0.875rem);
        }

        th, td {
            padding: 0.75rem 1rem;
            text-align: left;
            border-bottom: 1px solid var(--color-border);
        }

        th {
            font-weight: 600;
            background-color: var(--color-surface);
        }

        tbody tr:hover {
            background-color: var(--color-surface);
        }

        figure {
            margin: 2rem 0;
            max-width: 100%;
        }

        figcaption {
            font-size: clamp(0.8rem, 0.8vw + 0.4rem, 0.875rem);
            color: var(--color-text-secondary);
            text-align: center;
            margin-top: 0.75rem;
        }

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

        /* ============================================
           3. LAYOUT - DATA-CONTENT SECTIONS
           ============================================ */
        header {
            position: relative;
        }

        main {
            width: 100%;
        }

        [data-content] {
            max-width: var(--content-max-width);
            margin-left: auto;
            margin-right: auto;
            padding-left: var(--content-padding);
            padding-right: var(--content-padding);
            padding-top: var(--section-gap);
            padding-bottom: var(--section-gap);
        }

        [data-content="hero"] {
            max-width: none;
            padding: 0;
        }

        [data-content="toc"] {
            padding-top: calc(var(--section-gap) * 0.75);
            padding-bottom: calc(var(--section-gap) * 0.75);
        }

        [data-content="faq"] {
            background-color: var(--color-surface);
            max-width: none;
            padding-left: 0;
            padding-right: 0;
        }

        [data-content="faq"] > * {
            max-width: var(--content-max-width);
            margin-left: auto;
            margin-right: auto;
            padding-left: var(--content-padding);
            padding-right: var(--content-padding);
        }

        [data-content="related-guides"],
        [data-content="author-box"],
        [data-content="disclaimer"] {
            border-top: 1px solid var(--color-border);
        }

        /* ============================================
           4. COMPONENTS
           ============================================ */
        
        /* Info Box */
        .info-box {
            background-color: rgba(58, 110, 165, 0.08);
            border-left: 4px solid var(--color-info);
            padding: 1.5rem;
            margin: 2rem 0;
            border-radius: 0 8px 8px 0;
        }

        .info-box p {
            margin-bottom: 1rem;
            text-align: left;
        }

        .info-box p:last-child {
            margin-bottom: 0;
        }

        /* Callout Tip */
        .callout-tip {
            background-color: rgba(200, 168, 78, 0.1);
            border-left: 4px solid var(--color-accent);
            padding: 1.5rem;
            margin: 2rem 0;
            border-radius: 0 8px 8px 0;
        }

        .callout-tip p {
            margin-bottom: 0;
            text-align: left;
        }

        /* Callout Risk */
        .callout-risk {
            background-color: rgba(184, 50, 48, 0.08);
            border-left: 4px solid var(--color-danger);
            padding: 1.5rem;
            margin: 2rem 0;
            border-radius: 0 8px 8px 0;
        }

        .callout-risk p {
            margin-bottom: 0;
            text-align: left;
        }

        /* Key Takeaway */
        .key-takeaway {
            border-top: 2px solid var(--color-accent);
            padding-top: 1.5rem;
            margin: 2.5rem 0;
        }

        .key-takeaway p {
            font-family: var(--font-display);
            font-size: clamp(1.125rem, 1.25vw + 0.5rem, 1.375rem);
            font-weight: 600;
            line-height: 1.5;
            color: var(--color-text);
            margin-bottom: 0;
            text-align: left;
        }

        /* Fun Fact */
        .fun-fact {
            position: relative;
            padding-left: 1.5rem;
            margin: 2rem 0;
        }

        .fun-fact::before {
            content: '\2014';
            position: absolute;
            left: 0;
            top: 0;
            color: var(--color-accent);
            font-weight: 700;
        }

        .fun-fact p {
            font-style: italic;
            color: var(--color-text-secondary);
            margin-bottom: 0;
            text-align: left;
        }

        /* Stat Card */
        .stat-card {
            background-color: var(--color-surface);
            border: 1px solid var(--color-border);
            padding: 1.5rem;
            margin: 2rem 0;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        }

        .stat-card p {
            text-align: left;
        }

        .stat-card ul {
            margin-bottom: 1rem;
        }

        .stat-card ul:last-child {
            margin-bottom: 0;
        }

        /* Draw Heatmap */
        .draw-heatmap {
            background-color: var(--color-surface);
            border: 1px solid var(--color-border);
            padding: 1.5rem;
            margin: 2rem 0;
            border-radius: 8px;
            overflow-x: auto;
        }

        .draw-heatmap p {
            font-weight: 600;
            margin-bottom: 1rem;
            text-align: left;
        }

        /* Race Spotlight */
        .race-spotlight {
            background-color: var(--color-surface);
            border: 1px solid var(--color-border);
            padding: 1.5rem;
            margin: 2rem 0;
            border-radius: 8px;
        }

        .race-spotlight p {
            text-align: left;
        }

        /* Worked Example */
        .worked-example {
            background-color: var(--color-surface);
            padding: 2rem;
            margin: 2rem 0;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        }

        .worked-example p {
            font-family: var(--font-body);
            text-align: left;
        }

        .worked-example p:first-child {
            font-weight: 600;
            color: var(--color-primary);
            margin-bottom: 1rem;
        }

        .worked-example p:last-child {
            margin-bottom: 0;
        }

        /* Comparison Table */
        .comparison-table {
            margin: 2rem 0;
            overflow-x: auto;
        }

        .comparison-table table {
            min-width: 100%;
        }

        .comparison-table tbody tr:nth-child(even) {
            background-color: var(--color-surface);
        }

        /* TL;DR */
        .tldr {
            background-color: var(--color-surface);
            border-left: 4px solid var(--color-primary);
            padding: 2rem;
            margin: 0;
            border-radius: 0 8px 8px 0;
        }

        .tldr h2 {
            font-family: var(--font-display);
            font-size: clamp(1.125rem, 1.25vw + 0.5rem, 1.25rem);
            font-weight: 600;
            margin-bottom: 1.25rem;
            color: var(--color-primary);
        }

        .tldr h2:target {
            scroll-margin-top: 2rem;
        }

        .tldr ul {
            margin-bottom: 0;
        }

        .tldr li {
            margin-bottom: 0.75rem;
        }

        .tldr li:last-child {
            margin-bottom: 0;
        }

        /* Glossary Term */
        .glossary-term {
            display: flex;
            align-items: baseline;
            gap: 12px;
            margin: 1.25rem 0;
        }

        .glossary-term .term {
            font-family: monospace;
            color: var(--color-accent);
            text-decoration: underline;
            text-underline-offset: 3px;
            flex-shrink: 0;
        }

        .glossary-term .definition {
            color: var(--color-text-secondary);
        }

        @media (max-width: 480px) {
            .glossary-term {
                flex-direction: column;
                gap: 4px;
            }
        }

        /* Dos and Don'ts */
        .dos-donts {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
            margin: 2rem 0;
        }

        .dos-donts .do-col {
            border-left: 4px solid var(--color-success);
            padding-left: 1rem;
        }

        .dos-donts .dont-col {
            border-left: 4px solid var(--color-danger);
            padding-left: 1rem;
        }

        .dos-donts h4 {
            font-weight: 600;
            margin-bottom: 0.75rem;
        }

        .dos-donts .do-col h4 {
            color: var(--color-success);
        }

        .dos-donts .dont-col h4 {
            color: var(--color-danger);
        }

        .dos-donts ul {
            margin-bottom: 0;
            padding-left: 1.25rem;
        }

        @media (max-width: 600px) {
            .dos-donts {
                grid-template-columns: 1fr;
            }
        }

        /* Pre-bet Checklist */
        .pre-bet-checklist {
            margin: 2rem 0;
        }

        .pre-bet-checklist h4 {
            font-family: var(--font-display);
            font-size: 0.875rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--color-accent);
            margin-bottom: 1rem;
        }

        .pre-bet-checklist ul {
            border-left: 2px solid var(--color-border);
            padding-left: 1.5rem;
            margin-bottom: 0;
            list-style: none;
        }

        .pre-bet-checklist li {
            position: relative;
            padding-left: 0.5rem;
            margin-bottom: 0.75rem;
        }

        .pre-bet-checklist li::before {
            content: '\2610';
            position: absolute;
            left: -1.5rem;
            color: var(--color-accent);
            background-color: var(--color-bg);
            padding: 0 2px;
        }

        /* At a Glance */
        .at-a-glance {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 1px;
            background-color: var(--color-border);
            border: 1px solid var(--color-border);
            border-radius: 8px;
            overflow: hidden;
            margin: 2rem 0;
        }

        .at-a-glance .glance-item {
            background-color: var(--color-bg);
            padding: 1.5rem;
            text-align: center;
        }

        .at-a-glance .glance-item h4 {
            font-family: var(--font-display);
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--color-primary);
        }

        .at-a-glance .glance-item p {
            font-size: 0.875rem;
            color: var(--color-text-secondary);
            margin-bottom: 0;
            text-align: center;
        }

        /* Section Bridge */
        .section-bridge {
            text-align: center;
            font-style: italic;
            color: var(--color-accent);
            margin: 2.5rem 0;
            position: relative;
        }

        .section-bridge::before,
        .section-bridge::after {
            content: '\2014\2014';
            color: var(--color-border);
            margin: 0 0.75rem;
        }

        /* Card Grid */
        .card-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
            margin: 2rem 0;
        }

        .card-grid .card {
            background-color: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: 8px;
            padding: 1.5rem;
            transition: box-shadow var(--transition-base), transform var(--transition-base);
        }

        .card-grid .card:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            transform: translateY(-2px);
        }

        .card-grid .card h4 {
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--color-primary);
        }

        .card-grid .card p {
            font-size: 0.9375rem;
            color: var(--color-text-secondary);
            margin-bottom: 0;
            text-align: left;
        }

        /* Comparison */
        .comparison {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
            margin: 2rem 0;
        }

        .comparison .option {
            background-color: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: 8px;
            padding: 1.5rem;
        }

        .comparison .option h4 {
            font-weight: 600;
            margin-bottom: 0.75rem;
            color: var(--color-primary);
        }

        .comparison .option p {
            font-size: 0.9375rem;
            margin-bottom: 0;
            text-align: left;
        }

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

        /* ============================================
           5. HERO SECTION
           ============================================ */
        [data-content="hero"] {
            position: relative;
            width: 100vw;
            margin-left: calc(50% - 50vw);
            background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
            color: #FFFFFF;
            overflow: hidden;
        }

        [data-content="hero"]::before {
            content: '';
            position: absolute;
            inset: 0;
            background-image: 
                repeating-linear-gradient(
                    90deg,
                    transparent,
                    transparent 40px,
                    rgba(255, 255, 255, 0.03) 40px,
                    rgba(255, 255, 255, 0.03) 41px
                ),
                repeating-linear-gradient(
                    0deg,
                    transparent,
                    transparent 40px,
                    rgba(255, 255, 255, 0.03) 40px,
                    rgba(255, 255, 255, 0.03) 41px
                );
            pointer-events: none;
        }

        .hero-inner {
            position: relative;
            max-width: var(--content-max-width);
            margin: 0 auto;
            padding: clamp(3rem, 8vw, 5rem) var(--content-padding);
            text-align: center;
        }

        .hero-meta {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 1rem;
            flex-wrap: wrap;
            margin-bottom: 2rem;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            background-color: rgba(255, 255, 255, 0.15);
            padding: 0.375rem 0.875rem;
            border-radius: 100px;
            font-size: clamp(0.7rem, 0.75vw + 0.35rem, 0.8125rem);
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: rgba(255, 255, 255, 0.9);
        }

        .hero-trust {
            font-size: clamp(0.7rem, 0.75vw + 0.35rem, 0.8125rem);
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: rgba(255, 255, 255, 0.7);
        }

        [data-content="hero"] h1 {
            color: #FFFFFF;
            margin-bottom: 1.25rem;
        }

        .hero-subtitle {
            font-size: clamp(0.875rem, 1vw + 0.4rem, 1.125rem);
            color: var(--color-accent);
            letter-spacing: 0.04em;
            margin-bottom: 2rem;
        }

        .hero-image-wrap {
            margin-top: 2.5rem;
            position: relative;
        }

        .hero-image {
            width: 100%;
            max-width: 800px;
            height: auto;
            margin: 0 auto;
            border-radius: 8px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
        }

        .hero-image-caption {
            font-size: clamp(0.75rem, 0.8vw + 0.35rem, 0.8125rem);
            color: rgba(255, 255, 255, 0.6);
            text-align: center;
            margin-top: 1rem;
        }

        .hero-cta {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background-color: var(--color-accent);
            color: var(--color-primary-dark);
            padding: 0.875rem 1.75rem;
            border-radius: 100px;
            font-weight: 600;
            text-decoration: none;
            transition: background-color var(--transition-base), transform var(--transition-base);
            margin-top: 2rem;
        }

        .hero-cta:hover {
            background-color: #D9B85E;
            color: var(--color-primary-dark);
            transform: translateY(-2px);
        }

        .hero-cta::after {
            content: '\2193';
        }

        /* ============================================
           6. TABLE OF CONTENTS (Horizontal)
           ============================================ */
        [data-content="toc"] {
            border-top: 1px solid var(--color-border);
            border-bottom: 1px solid var(--color-border);
            background-color: var(--color-surface);
            max-width: none;
            padding-left: 0;
            padding-right: 0;
        }

        .toc-inner {
            max-width: var(--content-max-width);
            margin: 0 auto;
            padding: 0 var(--content-padding);
        }

        .toc-nav {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 0.5rem 1.25rem;
        }

        .toc-nav a {
            display: inline-block;
            font-size: clamp(0.8rem, 0.8vw + 0.4rem, 0.875rem);
            font-weight: 500;
            color: var(--color-text-secondary);
            text-decoration: none;
            padding: 0.375rem 0;
            border-bottom: 2px solid transparent;
            transition: color var(--transition-base), border-color var(--transition-base);
        }

        .toc-nav a:hover {
            color: var(--color-primary);
            border-bottom-color: var(--color-primary);
        }

        /* ============================================
           7. FAQ ACCORDION
           ============================================ */
        details {
            border-bottom: 1px solid var(--color-border);
            interpolate-size: allow-keywords;
        }

        details:first-of-type {
            border-top: 1px solid var(--color-border);
        }

        summary {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.25rem 0;
            cursor: pointer;
            font-weight: 600;
            font-size: 1rem;
            list-style: none;
            color: var(--color-text);
            transition: color var(--transition-base);
        }

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

        summary::after {
            content: '+';
            font-size: 1.25rem;
            font-weight: 400;
            color: var(--color-accent);
            transition: transform var(--transition-base);
            flex-shrink: 0;
            margin-left: 1rem;
        }

        details[open] summary::after {
            transform: rotate(45deg);
        }

        summary:hover {
            color: var(--color-primary);
        }

        ::details-content {
            opacity: 0;
            block-size: 0;
            overflow: hidden;
            transition: 
                opacity var(--transition-slow),
                block-size var(--transition-slow),
                content-visibility var(--transition-slow) allow-discrete;
        }

        details[open]::details-content {
            opacity: 1;
            block-size: auto;
        }

        details > div {
            padding-bottom: 1.5rem;
        }

        details > div > p {
            color: var(--color-text-secondary);
            line-height: 1.7;
        }

        @supports not selector(::details-content) {
            details[open] > *:not(summary) {
                animation: fade-in 0.3s ease forwards;
            }

            @keyframes fade-in {
                from {
                    opacity: 0;
                    transform: translateY(-8px);
                }
                to {
                    opacity: 1;
                    transform: translateY(0);
                }
            }
        }


        /* ============================================
           9. UTILITY: BACK TO TOP
           ============================================ */
        .back-to-top {
            display: inline-flex;
            align-items: center;
            gap: 0.375rem;
            font-size: 0.875rem;
            color: var(--color-text-secondary);
            text-decoration: none;
            padding: 0.5rem 0;
            transition: color var(--transition-base);
            margin-top: 2rem;
        }

        .back-to-top:hover {
            color: var(--color-primary);
        }

        .back-to-top::before {
            content: '\2191';
        }

        /* ============================================
           10. MEDIA QUERIES
           ============================================ */
        @media (max-width: 768px) {
            [data-content] {
                padding-top: calc(var(--section-gap) * 0.75);
                padding-bottom: calc(var(--section-gap) * 0.75);
            }

            .hero-inner {
                padding-top: clamp(2rem, 6vw, 3rem);
                padding-bottom: clamp(2rem, 6vw, 3rem);
            }

            .at-a-glance {
                grid-template-columns: 1fr 1fr;
            }

            .toc-nav {
                gap: 0.375rem 1rem;
            }
        }

        @media (max-width: 480px) {
            .at-a-glance {
                grid-template-columns: 1fr;
            }

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

            .hero-meta {
                flex-direction: column;
                gap: 0.5rem;
            }
        }

/* =========================================
   UNIVERSAL DESKTOP & MOBILE MENU + LOGO
   ========================================= */

/* Header Base */
.site-header {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border, #333);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Mobile defaults for navigation bar */
.top-navigation-bar {
    width: 100%;
    margin: 0 auto;
    padding: 15px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- LOGO FIXES --- */
.site-logo img {
    max-height: 85px; /* Optimal height for most logos */
    width: auto !important; /* Prevents squishing */
    display: block;
    transition: transform 0.2s ease;
}

.site-logo img:hover {
    transform: scale(1.02);
}

/* --- DESKTOP MENU --- */
.site-nav--desktop {
    display: none; /* Hidden on mobile by default */
}

/* Desktop Grid Layout: Logo left, Menu center */
@media (min-width: 1024px) {
    .top-navigation-bar {
        max-width: 100%;
        padding: 15px 40px; /* Safe padding from screen edges */
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }
    
    .site-logo {
        grid-column: 1;
        justify-self: start; /* Locks logo to the left edge */
        margin: 0;
    }

    .site-nav--desktop {
        display: block;
        grid-column: 2;
        justify-self: center; /* Locks menu perfectly in the center */
    }

    .mobile-controls {
        display: none; /* Hide burger on desktop */
    }
    
    .menu-desktop {
        display: flex;
        gap: 30px;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .menu-desktop a {
        text-decoration: none;
        color: var(--color-text);
        font-family: var(--font-body, sans-serif);
        font-weight: 500;
        font-size: 16px;
        transition: color 0.2s ease;
    }
    
    .menu-desktop a:hover {
        color: var(--color-accent);
    }
}

/* --- MOBILE BURGER BUTTON --- */
.burger {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 5px;
    z-index: 1000;
}

.burger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--color-text);
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 2px;
}

/* Burger Animation to X */
.burger.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.burger.is-active span:nth-child(2) {
    opacity: 0;
}
.burger.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- MOBILE MENU SLIDER --- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden off-screen */
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--color-bg);
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
    padding: 60px 30px;
}

.mobile-menu.is-open {
    right: 0; /* Slide in */
}

.mobile-menu__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 36px;
    line-height: 1;
    color: var(--color-text);
    cursor: pointer;
    transition: color 0.2s ease;
}

.mobile-menu__close:hover {
    color: var(--color-accent);
}

.menu-mobile {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.menu-mobile a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 20px;
    font-family: var(--font-display, sans-serif);
    font-weight: 600;
    display: block;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.menu-mobile a:hover {
    color: var(--color-accent);
    padding-left: 10px; /* Nice slide effect on hover */
}

/* --- OVERLAY --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px); /* Beautiful blur effect */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
    z-index: 998;
}

.mobile-menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   4-COLUMN FOOTER (Ascot Betting Theme)
   ========================================= */
.site-footer-4col {
    background-color: #0a0a0a; /* Sleek black background */
    color: #a1a1aa;
    padding: 60px 20px 30px;
    margin-top: 80px;
    font-family: var(--font-body, sans-serif);
    border-top: 3px solid var(--color-accent, #3b82f6); /* Royal Blue border */
}

.footer-4col-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Legal Disclaimers Block */
.footer-disclaimers {
    font-size: 0.85rem;
    color: #71717a;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-disclaimers p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    text-align: left;
}

.footer-disclaimers a {
    color: var(--color-accent, #3b82f6);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-disclaimers a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Grid Layout */
.footer-4col-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-4col-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-4col-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

/* Royal Blue Titles */
.widget-title {
    color: var(--color-accent, #3b82f6); 
    font-family: var(--font-display, sans-serif); 
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    margin-top: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-list li {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #a1a1aa;
    line-height: 1.5;
}

.widget-list a {
    color: #a1a1aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.widget-list a:hover {
    color: var(--color-accent, #3b82f6);
}

/* Bullets */
.bullet-list li {
    position: relative;
    padding-left: 16px;
}

.bullet-list li::before {
    content: '•';
    color: var(--color-accent, #3b82f6); 
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 1.5rem;
    line-height: 1;
}

.clean-list li {
    padding-left: 0;
    padding-bottom: 0.8rem;
}

.clean-list li::before {
    display: none;
}

.footer-4col-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
    text-align: center;
}

.footer-4col-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: #cdcddc;
    text-align: center;
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-accent, #3b82f6);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background-color: #2563eb;
    transform: translateY(-5px);
}

body {
    overflow-x: clip;
}

/* --- Жесткий фикс для блока TLDR (The Numbers) --- */
.tldr {
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 4rem !important; 
    margin-top: 2rem !important;
    max-width: 850px !important; 
}