/* ========================================
           1. CSS VARIABLES & RESET
           ======================================== */
        :root {
            /* Colors - Light Theme */
            --color-primary: #1B4D3E;
            --color-primary-light: #2A6B56;
            --color-secondary: #C9A227;
            --color-accent: #D32F2F;
            --color-text: #2D2D2D;
            --color-text-secondary: #5A5A5A;
            --color-bg: #F8F6F3;
            --color-surface: #FFFFFF;
            --color-border: #E8E4DF;
            --color-success: #2E7D32;
            --color-danger: #C62828;

            /* Spacing */
            --space-xs: 0.25rem;
            --space-sm: 0.5rem;
            --space-md: 1rem;
            --space-lg: 1.5rem;
            --space-xl: 2rem;
            --space-2xl: 3rem;
            --space-3xl: 4rem;
            --section-gap: clamp(3rem, 8vw, 6rem);

            /* Typography */
            --font-display: 'Playfair Display', Georgia, serif;
            --font-body: 'Inter', system-ui, -apple-system, sans-serif;
            --font-mono: 'SF Mono', 'Monaco', 'Consolas', monospace;

            /* Sizing */
            --content-width: 840px;
            --wide-width: 900px;

            /* Breakpoints for reference */
            --bp-mobile: 480px;
            --bp-tablet: 768px;
            --bp-desktop: 1024px;
            --bp-wide: 1280px;
        
    /* --- AUTO-FORCED DARK THEME --- */
    --color-primary: #3D8B6E;
                --color-primary-light: #4FA882;
                --color-secondary: #D4B441;
                --color-accent: #EF5350;
                --color-text: #E8E4DF;
                --color-text-secondary: #A8A4A0;
                --color-bg: #1A1A1A;
                --color-surface: #2D2D2D;
                --color-border: #3D3D3D;
                --color-success: #4CAF50;
                --color-danger: #EF5350;
}

        /* Dark Theme */
        

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

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: var(--font-body);
            font-size: clamp(1rem, 1.5vw, 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(2rem, 5vw, 3rem);
            font-weight: 700;
            line-height: 1.2;
            color: var(--color-surface);
        }

        h2 {
            font-family: var(--font-body);
            font-size: clamp(1.5rem, 3vw, 2rem);
            font-weight: 600;
            line-height: 1.3;
            color: var(--color-text);
            margin-bottom: var(--space-lg);
            scroll-margin-top: 2rem;
        }

        h3 {
            font-family: var(--font-body);
            font-size: clamp(1.25rem, 2.5vw, 1.5rem);
            font-weight: 600;
            line-height: 1.4;
            color: var(--color-text);
            margin-top: var(--space-xl);
            margin-bottom: var(--space-md);
            scroll-margin-top: 2rem;
        }

        p {
            text-align: left;
            margin-bottom: var(--space-md);
        }

        a {
            color: var(--color-primary);
            text-decoration: underline;
            text-underline-offset: 2px;
            transition: color 0.2s ease;
        }

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

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

        ul, ol {
            text-align: left;
            margin-bottom: var(--space-md);
            padding-left: var(--space-lg);
        }

        li {
            margin-bottom: var(--space-sm);
        }

        strong {
            font-weight: 600;
        }

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

        table {
            width: 100%;
            border-collapse: collapse;
            margin: var(--space-xl) 0;
            font-size: 0.9rem;
            font-variant-numeric: tabular-nums;
        }

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

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

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

        figure {
            margin: var(--space-xl) auto;
            max-width: 100%;
        }

        figcaption {
            text-align: center;
            font-size: 0.875rem;
            color: var(--color-text-secondary);
            margin-top: var(--space-sm);
        }

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

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

        main {
            width: 100%;
        }

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

        /* ========================================
           4. COMPONENTS
           ======================================== */
        
        /* Info Box */
        .info-box {
            background-color: var(--color-surface);
            border: 1px solid var(--color-border);
            border-left: 4px solid var(--color-primary);
            border-radius: 4px;
            padding: var(--space-lg);
            margin: var(--space-xl) 0;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        }

        .info-box p {
            text-align: left;
            margin-bottom: var(--space-sm);
        }

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

        /* Odds Example */
        .odds-example {
            background-color: var(--color-text);
            color: var(--color-bg);
            border-radius: 6px;
            padding: var(--space-lg) var(--space-xl);
            margin: var(--space-xl) 0;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        @media (prefers-color-scheme: dark) {
            .odds-example {
                background-color: #1A1A1A;
                color: #E8E4DF;
                border: 1px solid var(--color-border);
            }
        }

        .odds-example p {
            text-align: center;
            color: inherit;
            margin-bottom: var(--space-sm);
        }

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

        .odds-example strong {
            color: var(--color-secondary);
        }

        /* Callout */
        .callout {
            background-color: transparent;
            border-left: 4px solid var(--color-secondary);
            padding: var(--space-md) var(--space-lg);
            margin: var(--space-xl) 0;
        }

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

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

        .card-grid > div {
            background-color: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: 6px;
            padding: var(--space-lg);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

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

        .card-grid p {
            text-align: left;
            margin-bottom: var(--space-sm);
        }

        .card-grid p:last-child {
            margin-bottom: 0;
        }

        /* Comparison */
        .comparison {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: var(--space-md);
            margin: var(--space-xl) 0;
        }

        .comparison > div {
            background-color: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: 6px;
            padding: var(--space-lg);
        }

        .comparison > div:first-child {
            border-top: 3px solid var(--color-primary);
        }

        .comparison > div:last-child {
            border-top: 3px solid var(--color-secondary);
        }

        .comparison p {
            text-align: left;
        }

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

        /* TL;DR */
        .tldr {
            background-color: var(--color-surface);
            border-left: 4px solid var(--color-primary);
            padding: var(--space-lg) var(--space-xl);
            margin: var(--space-xl) 0;
        }

        .tldr h2 {
            font-size: clamp(1.125rem, 2vw, 1.25rem);
            font-weight: 600;
            margin-bottom: var(--space-md);
            color: var(--color-text);
        }

        .tldr ul {
            margin-bottom: 0;
        }

        .tldr li {
            margin-bottom: var(--space-sm);
        }

        /* Key Takeaway */
        .key-takeaway {
            border-top: 2px solid var(--color-secondary);
            padding-top: var(--space-lg);
            margin: var(--space-xl) 0;
        }

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

        /* Fun Fact */
        .fun-fact {
            position: relative;
            padding-left: var(--space-lg);
            margin: var(--space-lg) 0;
        }

        .fun-fact::before {
            content: '—';
            position: absolute;
            left: 0;
            color: var(--color-secondary);
            font-weight: 600;
        }

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

        /* Glossary Term */
        .glossary-term {
            display: flex;
            align-items: baseline;
            gap: var(--space-md);
            margin: var(--space-md) 0;
        }

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

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

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

        /* Dos and Donts */
        .dos-donts {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: var(--space-md);
            margin: var(--space-xl) 0;
        }

        .dos-donts > div {
            padding: var(--space-lg);
        }

        .dos-donts > div:first-child {
            border-left: 3px solid var(--color-success);
        }

        .dos-donts > div:last-child {
            border-left: 3px solid var(--color-danger);
        }

        .dos-donts h4 {
            font-size: 0.875rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: var(--space-md);
        }

        .dos-donts > div:first-child h4 {
            color: var(--color-success);
        }

        .dos-donts > div:last-child h4 {
            color: var(--color-danger);
        }

        .dos-donts ul {
            margin-bottom: 0;
        }

        .dos-donts p {
            text-align: left;
        }

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

        /* Pre-Bet Checklist */
        .pre-bet-checklist {
            margin: var(--space-xl) 0;
        }

        .pre-bet-checklist p:first-child {
            font-family: var(--font-body);
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--color-secondary);
            margin-bottom: var(--space-md);
        }

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

        .pre-bet-checklist li {
            position: relative;
            padding-left: var(--space-sm);
        }

        .pre-bet-checklist li::before {
            content: '☐';
            position: absolute;
            left: calc(-1 * var(--space-xl) - 1px);
            color: var(--color-secondary);
            background-color: var(--color-bg);
            padding: 0 var(--space-xs);
        }

        /* At a Glance */
        .at-a-glance {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0;
            margin: var(--space-xl) 0;
            border: 1px solid var(--color-border);
            border-radius: 6px;
            overflow: hidden;
        }

        .at-a-glance > div {
            padding: var(--space-lg);
            text-align: center;
            border-right: 1px solid var(--color-border);
        }

        .at-a-glance > div:last-child {
            border-right: none;
        }

        .at-a-glance p {
            text-align: center;
            margin-bottom: var(--space-xs);
        }

        .at-a-glance p:first-child {
            font-family: var(--font-display);
            font-size: 1.125rem;
            font-weight: 700;
            color: var(--color-text);
        }

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

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

            .at-a-glance > div {
                border-right: none;
                border-bottom: 1px solid var(--color-border);
            }

            .at-a-glance > div:last-child {
                border-bottom: none;
            }
        }

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

        .worked-example p {
            text-align: left;
            font-family: var(--font-mono);
            font-size: 0.9rem;
            margin-bottom: var(--space-md);
        }

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

        .worked-example hr {
            border: none;
            border-top: 1px dashed var(--color-border);
            margin: var(--space-md) 0;
        }

        /* Section Bridge */
        .section-bridge {
            text-align: center;
            margin: var(--space-xl) 0;
            color: var(--color-secondary);
            font-style: italic;
        }

        .section-bridge::before,
        .section-bridge::after {
            content: '—';
            margin: 0 var(--space-sm);
            opacity: 0.5;
        }

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

        .hero-inner {
            max-width: var(--content-width);
            margin: 0 auto;
            padding: var(--space-3xl) var(--space-lg);
            text-align: center;
            position: relative;
            z-index: 1;
        }

        [data-content="hero"] h1 {
            color: var(--color-surface);
            margin-bottom: var(--space-lg);
        }

        .hero-subtitle {
            font-size: clamp(1rem, 2vw, 1.25rem);
            font-weight: 400;
            color: rgba(255, 255, 255, 0.85);
            margin-bottom: var(--space-xl);
            text-align: center;
        }

        .hero-meta {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: var(--space-lg);
            flex-wrap: wrap;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: var(--space-sm);
            font-size: 0.75rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: rgba(255, 255, 255, 0.9);
            background-color: rgba(255, 255, 255, 0.1);
            padding: var(--space-xs) var(--space-md);
            border-radius: 4px;
        }

        .hero-trust {
            font-size: 0.75rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: rgba(255, 255, 255, 0.7);
        }

        .hero-image {
            max-width: 100%;
            height: auto;
            display: block;
            margin: var(--space-xl) auto 0;
            border-radius: 8px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
        }

        .hero-cta {
            display: inline-block;
            margin-top: var(--space-xl);
            padding: var(--space-md) var(--space-xl);
            background-color: var(--color-secondary);
            color: var(--color-text);
            font-weight: 600;
            text-decoration: none;
            border-radius: 4px;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .hero-cta:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            color: var(--color-text);
        }

        /* ========================================
           6. TOC - Vertical Style
           ======================================== */
        [data-content="toc"] {
            background-color: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: 6px;
            padding: var(--space-xl);
            margin-top: calc(var(--section-gap) * -0.5);
        }

        [data-content="toc"] nav > p {
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--color-text-secondary);
            margin-bottom: var(--space-md);
        }

        [data-content="toc"] ol {
            list-style: none;
            padding-left: 0;
            margin-bottom: 0;
        }

        [data-content="toc"] > nav > ol > li {
            margin-bottom: var(--space-sm);
        }

        [data-content="toc"] a {
            color: var(--color-text);
            text-decoration: none;
            font-weight: 500;
            transition: color 0.2s ease;
        }

        [data-content="toc"] a:hover {
            color: var(--color-primary);
        }

        [data-content="toc"] ol ol {
            margin-top: var(--space-sm);
            padding-left: var(--space-lg);
        }

        [data-content="toc"] ol ol li {
            margin-bottom: var(--space-xs);
        }

        [data-content="toc"] ol ol a {
            font-weight: 400;
            font-size: 0.9em;
            color: var(--color-text-secondary);
        }

        [data-content="toc"] ol ol a:hover {
            color: var(--color-primary);
        }

        /* ========================================
           7. FAQ Accordion
           ======================================== */
        details {
            border-bottom: 1px solid var(--color-border);
            padding: var(--space-md) 0;
            text-align: left;
        }

        summary {
            cursor: pointer;
            font-weight: 600;
            color: var(--color-text);
            list-style: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-right: var(--space-md);
            transition: color 0.2s ease;
        }

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

        summary::after {
            content: '+';
            font-size: 1.25rem;
            font-weight: 400;
            color: var(--color-text-secondary);
            transition: transform 0.3s ease;
        }

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

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

        summary:focus {
            outline: 2px solid var(--color-primary);
            outline-offset: 2px;
        }

        /* Modern accordion animation */
        details {
            interpolate-size: allow-keywords;
        }

        details::details-content {
            block-size: 0;
            overflow: hidden;
            opacity: 0;
            transition: 
                block-size 0.3s ease,
                opacity 0.3s ease,
                content-visibility 0.3s ease allow-discrete;
        }

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

        details > div {
            padding-top: var(--space-md);
        }

        details > div p {
            text-align: left;
        }

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

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


        /* ========================================
           9. UTILITY CLASSES
           ======================================== */
        .back-to-top {
            display: inline-block;
            margin-top: var(--space-xl);
            padding: var(--space-sm) var(--space-md);
            font-size: 0.875rem;
            font-weight: 500;
            color: var(--color-text-secondary);
            text-decoration: none;
            border: 1px solid var(--color-border);
            border-radius: 4px;
            transition: all 0.2s ease;
        }

        .back-to-top:hover {
            color: var(--color-text);
            border-color: var(--color-text-secondary);
        }

        /* ========================================
           10. MEDIA QUERIES
           ======================================== */
        @media (max-width: 768px) {
            [data-content] {
                padding: var(--space-xl) var(--space-md);
            }

            .hero-inner {
                padding: var(--space-2xl) var(--space-md);
            }

            table {
                font-size: 0.8rem;
            }

            th, td {
                padding: var(--space-xs) var(--space-sm);
            }
        }

        @media (max-width: 480px) {
            h1 {
                font-size: 1.75rem;
            }

            h2 {
                font-size: 1.375rem;
            }

            h3 {
                font-size: 1.125rem;
            }

            [data-content="toc"] {
                padding: var(--space-lg);
            }
        }

/* =========================================
   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: 75px; /* 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 (UK Horse Racing)
   ========================================= */
.site-footer-4col {
    background-color: #111827; /* Dark slate matching the UI */
    color: #9ca3af;
    padding: 60px 20px 30px;
    margin-top: 80px;
    font-family: var(--font-body, sans-serif);
    border-top: 3px solid var(--color-accent, #14b8a6); /* Teal accent border */
}

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

/* Legal Disclaimers Block */
.footer-disclaimers {
    font-size: 0.85rem;
    color: #6b7280;
    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, #14b8a6);
    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;
    }
}

/* Teal Titles (Using div for W3C Validation) */
.widget-title {
    color: var(--color-accent, #14b8a6); 
    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: #9ca3af;
    line-height: 1.5;
}

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

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

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

.bullet-list li::before {
    content: '•';
    color: var(--color-accent, #14b8a6); 
    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: #8f98a4;
    text-align: center;
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-accent, #14b8a6);
    color: #111827;
    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: #0f766e;
    transform: translateY(-5px);
}

/* =========================================
   CENTER TLDR BLOCK FIX
   ========================================= */
.tldr, [data-content="tldr"] {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: var(--content-max-width, 850px) !important; 
}

/* =========================================
   FIX TOC OVERLAP (UK Horse Racing)
   ========================================= */
[data-content="toc"] {
    margin-top: 3rem !important; 
    margin-bottom: 3rem !important; 
    position: relative !important; 
    z-index: 10 !important; 
}

/* =========================================
   FIX SUBPAGE H1 COLOR (Keep Home untouched)
   ========================================= */
body:not(.home) h1,
body:not(.home) .content-title {
    color: #ffffff !important; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.5) !important; 
}

/* =========================================
   HIDE EMPTY HERO STRIPE ON SUBPAGES
   ========================================= */
body:not(.home) .content-body [data-content="hero"] {
    display: none !important;
}

body {
    overflow-x: clip;
}

