/* ========================================
           1. CSS Variables & Reset
           ======================================== */
        :root {
            /* Color Palette - Racing Green & Gold */
            --color-primary: #1B4D3E;
            --color-accent: #C9A227;
            --color-text: #3D4F5F;
            --color-text-secondary: #5A6B7A;
            --color-bg: #F8F9FA;
            --color-surface: #FFFFFF;
            --color-border: #E9ECEF;
            --color-muted: #E9ECEF;
            
            /* Semantic Colors */
            --color-success: #2D8659;
            --color-danger: #C54B4B;
            
            /* Typography */
            --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
            
            /* Sizing */
            --content-max-width: 810px;
            --sidebar-width: 240px;
            --section-gap: 4rem;
            --component-radius: 6px;
            
            /* Shadows */
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
            --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
            --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
        
    /* --- AUTO-FORCED DARK THEME --- */
    --color-primary: #3A7D6A;
                --color-accent: #D4AF37;
                --color-text: #E1E5E9;
                --color-text-secondary: #9CA8B3;
                --color-bg: #0F1419;
                --color-surface: #1A2028;
                --color-border: #2C3640;
                --color-muted: #252D35;
                --color-success: #4CAF7A;
                --color-danger: #E57373;
}

        

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

        html {
            scroll-behavior: smooth;
            font-size: 16px;
        }

        body {
            font-family: var(--font-sans);
            font-size: 1rem;
            line-height: 1.7;
            color: var(--color-text);
            background-color: var(--color-bg);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* ========================================
           2. General Typography
           ======================================== */
        h1, h2, h3, h4, h5, h6 {
            font-family: var(--font-sans);
            font-weight: 600;
            line-height: 1.25;
            color: var(--color-primary);
            text-align: left;
        }

        h1 {
            font-size: clamp(36px, 5vw, 56px);
            font-weight: 700;
            letter-spacing: -0.02em;
        }

        h2 {
            font-size: clamp(28px, 4vw, 36px);
            margin-top: 0;
            margin-bottom: 1.25rem;
            scroll-margin-top: 2rem;
        }

        h3 {
            font-size: clamp(20px, 3vw, 24px);
            margin-top: 2rem;
            margin-bottom: 1rem;
            scroll-margin-top: 2rem;
        }

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

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

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

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

        strong {
            font-weight: 600;
            color: var(--color-primary);
        }

        em {
            font-style: italic;
        }

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

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

        li {
            margin-bottom: 0.5rem;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
            font-size: 0.95rem;
        }

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

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

        tr:hover td {
            background-color: rgba(27, 77, 62, 0.03);
        }

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

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

        /* ========================================
           3. Layout - Sections
           ======================================== */
        header {
            position: relative;
        }

        main {
            width: 100%;
            display: grid;
            grid-template-columns: var(--sidebar-width) 1fr;
            gap: 3rem;
            max-width: calc(var(--sidebar-width) + var(--content-max-width) + 6rem);
            margin: 0 auto;
            padding: 2rem;
        }

        [data-content] {
            grid-column: 2;
            max-width: var(--content-max-width);
            padding: 0;
        }

        [data-content] + [data-content] {
            margin-top: var(--section-gap);
        }
        /* ========================================
           4. Components
           ======================================== */
        
        /* Info Box */
        .info-box {
            background-color: var(--color-surface);
            border-left: 4px solid var(--color-primary);
            padding: 1.25rem 1.5rem;
            margin: 1.5rem 0;
            border-radius: 0 var(--component-radius) var(--component-radius) 0;
            box-shadow: var(--shadow-sm);
        }

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

        .info-box p strong {
            color: var(--color-primary);
        }

        /* Odds Example / Stat Card */
        .odds-example,
        .stat-card {
            background-color: var(--color-primary);
            color: var(--color-bg);
            padding: 1.5rem;
            border-radius: var(--component-radius);
            text-align: center;
            margin: 1.5rem 0;
            box-shadow: var(--shadow-md);
        }

        .odds-example p,
        .stat-card p {
            text-align: center;
            margin-bottom: 0.75rem;
            color: var(--color-bg);
        }

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

        .odds-example p strong,
        .stat-card p strong {
            font-family: var(--font-mono);
            font-size: 1.5rem;
            font-weight: 500;
            color: var(--color-accent);
            display: block;
            margin-bottom: 0.25rem;
        }

        @media (prefers-color-scheme: dark) {
            .odds-example,
            .stat-card {
                background-color: #1B4D3E;
                color: #F8F9FA;
            }
            
            .odds-example p,
            .stat-card p {
                color: #F8F9FA;
            }
            
            .odds-example p strong,
            .stat-card p strong {
                color: var(--color-accent);
            }
        }

        /* Callout Warning */
        .callout,
        .callout-warning {
            background-color: var(--color-surface);
            border-left: 4px solid var(--color-danger);
            padding: 1.25rem 1.5rem;
            margin: 1.5rem 0;
            border-radius: 0 var(--component-radius) var(--component-radius) 0;
            box-shadow: var(--shadow-sm);
        }

        .callout p,
        .callout-warning p {
            margin-bottom: 0;
            text-align: left;
            color: var(--color-text);
        }

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

        .card-grid > div {
            background-color: var(--color-surface);
            padding: 1.25rem;
            border-radius: var(--component-radius);
            border: 1px solid var(--color-border);
            box-shadow: var(--shadow-sm);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .card-grid > div:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

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

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

        .comparison > div {
            background-color: var(--color-surface);
            padding: 1.25rem;
            border-radius: var(--component-radius);
            border: 1px solid var(--color-border);
            box-shadow: var(--shadow-sm);
        }

        .comparison p {
            text-align: left;
            color: var(--color-text);
            margin-bottom: 0;
        }

        .comparison h4 {
            font-size: 1rem;
            margin-bottom: 0.75rem;
            color: var(--color-primary);
        }

        /* TL;DR */
        .tldr {
            background-color: var(--color-surface);
            border-left: 4px solid var(--color-accent);
            padding: 1.5rem;
            margin: 1.5rem 0;
            border-radius: 0 var(--component-radius) var(--component-radius) 0;
            box-shadow: var(--shadow-sm);
        }

        .tldr h2 {
            font-size: clamp(18px, 2.5vw, 20px);
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--color-primary);
        }

        .tldr ul {
            margin-bottom: 0;
        }

        .tldr li {
            color: var(--color-text);
        }

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

        .key-takeaway p {
            font-size: clamp(18px, 2.5vw, 22px);
            font-weight: 600;
            line-height: 1.4;
            color: var(--color-primary);
            text-align: left;
            margin-bottom: 0;
        }

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

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

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

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

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

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

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

        .dos-donts > div {
            padding: 1.25rem;
            border-radius: var(--component-radius);
        }

        .dos-donts > div:first-child {
            background-color: rgba(45, 134, 89, 0.08);
            border: 1px solid var(--color-success);
        }

        .dos-donts > div:last-child {
            background-color: rgba(197, 75, 75, 0.08);
            border: 1px solid var(--color-danger);
        }

        .dos-donts h4 {
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 0.75rem;
        }

        .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;
            padding-left: 1.25rem;
        }

        .dos-donts li {
            color: var(--color-text);
        }

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

        .pre-bet-checklist h4 {
            font-size: 0.8rem;
            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;
            color: var(--color-text);
        }

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

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

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

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

        .at-a-glance strong {
            display: block;
            font-family: var(--font-mono);
            font-size: 1.25rem;
            color: var(--color-primary);
            margin-bottom: 0.25rem;
        }

        .at-a-glance span {
            font-size: 0.8rem;
            color: var(--color-text-secondary);
        }

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

        /* Worked Example */
        .worked-example {
            background-color: var(--color-surface);
            padding: 1.75rem;
            border-radius: var(--component-radius);
            margin: 1.5rem 0;
            box-shadow: var(--shadow-md);
            border: 1px solid var(--color-border);
        }

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

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

        .worked-example p:last-child {
            margin-bottom: 0;
            padding-top: 0.5rem;
            border-top: 1px dashed var(--color-border);
            color: var(--color-accent);
            font-weight: 500;
        }

        /* Section Bridge */
        .section-bridge {
            text-align: center;
            margin: 2.5rem 0;
            position: relative;
        }

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

        .section-bridge p {
            display: inline;
            font-style: italic;
            color: var(--color-accent);
            margin-bottom: 0;
        }

        /* ========================================
           5. Hero Section
           ======================================== */
        [data-content="hero"] {
            grid-column: 1 / -1;
            max-width: none;
            width: 100vw;
            margin-left: calc(50% - 50vw);
            padding: 0;
            position: relative;
            background: linear-gradient(135deg, var(--color-primary) 0%, #153D31 100%);
            overflow: hidden;
        }

        [data-content="hero"]::before {
            content: '';
            position: absolute;
            inset: 0;
            background: 
                radial-gradient(ellipse 80% 60% at 70% 40%, rgba(201, 162, 39, 0.06) 0%, transparent 70%);
            pointer-events: none;
        }

        .hero-inner {
            max-width: calc(var(--sidebar-width) + var(--content-max-width) + 6rem);
            margin: 0 auto;
            padding: 5rem 2rem 4rem;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            align-items: center;
            position: relative;
            z-index: 1;
        }

        .hero-content {
            color: var(--color-bg);
        }

        .hero-meta {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background-color: rgba(248, 249, 250, 0.1);
            padding: 0.375rem 0.75rem;
            border-radius: 4px;
            font-size: 0.75rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: rgba(248, 249, 250, 0.9);
        }

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

        [data-content="hero"] h1 {
            color: #FFFFFF;
            margin-bottom: 1rem;
            text-align: left;
        }

        .hero-subtitle {
            font-size: clamp(16px, 2vw, 18px);
            color: rgba(248, 249, 250, 0.8);
            margin-bottom: 1.5rem;
            max-width: 500px;
        }

        .hero-hook {
            font-size: 0.9rem;
            font-style: italic;
            color: var(--color-accent);
            letter-spacing: 0.02em;
        }

        .hero-cta {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            margin-top: 1.5rem;
            padding: 0.75rem 1.5rem;
            background-color: var(--color-accent);
            color: var(--color-primary);
            font-weight: 600;
            font-size: 0.9rem;
            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(201, 162, 39, 0.3);
            color: var(--color-primary);
        }

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

        [data-content="hero"] figure {
            margin: 0;
            border-radius: var(--component-radius);
            overflow: hidden;
            box-shadow: var(--shadow-lg);
        }

        [data-content="hero"] img {
            width: 100%;
            height: auto;
            display: block;
            aspect-ratio: 1200 / 630;
            object-fit: cover;
        }

        /* ========================================
           6. TOC - Sidebar Layout
           ======================================== */
        [data-content="toc"] {
            grid-column: 1;
            grid-row: 2 / span 20;
            position: sticky;
            top: 2rem;
            align-self: start;
            max-height: calc(100vh - 4rem);
            overflow-y: auto;
            padding-right: 1rem;
            scrollbar-width: thin;
            scrollbar-color: var(--color-border) transparent;
        }

        [data-content="toc"]::-webkit-scrollbar {
            width: 4px;
        }

        [data-content="toc"]::-webkit-scrollbar-track {
            background: transparent;
        }

        [data-content="toc"]::-webkit-scrollbar-thumb {
            background-color: var(--color-border);
            border-radius: 2px;
        }

        [data-content="toc"] h2 {
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            color: var(--color-text-secondary);
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid var(--color-border);
        }

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

        .toc-nav li {
            margin-bottom: 0;
        }

        .toc-nav > li > a {
            display: block;
            padding: 0.5rem 0;
            font-size: 0.85rem;
            font-weight: 500;
            color: var(--color-text);
            text-decoration: none;
            border-left: 2px solid transparent;
            padding-left: 0.75rem;
            margin-left: -0.75rem;
            transition: color 0.2s ease, border-color 0.2s ease;
        }

        .toc-nav > li > a:hover {
            color: var(--color-primary);
            border-left-color: var(--color-accent);
        }

        .toc-nav ul {
            list-style: none;
            padding: 0;
            margin: 0 0 0.5rem 0;
        }

        .toc-nav ul a {
            display: block;
            padding: 0.35rem 0 0.35rem 1.25rem;
            font-size: 0.8rem;
            font-weight: 400;
            color: var(--color-text-secondary);
            text-decoration: none;
            transition: color 0.2s ease;
        }

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

        /* ========================================
           7. FAQ Accordion
           ======================================== */
        details {
            margin-bottom: 0.75rem;
            border: 1px solid var(--color-border);
            border-radius: var(--component-radius);
            background-color: var(--color-surface);
            overflow: hidden;
            interpolate-size: allow-keywords;
        }

        summary {
            padding: 1rem 2.5rem 1rem 1.25rem;
            font-weight: 500;
            cursor: pointer;
            position: relative;
            list-style: none;
            transition: background-color 0.2s ease;
        }

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

        summary::after {
            content: '+';
            position: absolute;
            right: 1rem;
            top: 50%;
            transform: translateY(-50%);
            font-size: 1.25rem;
            font-weight: 300;
            color: var(--color-accent);
            transition: transform 0.3s ease;
        }

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

        summary:hover {
            background-color: var(--color-muted);
        }

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

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

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

        details > div {
            padding: 0 1.25rem 1.25rem;
        }

        details > div > p {
            color: var(--color-text);
            text-align: left;
        }

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

        /* ========================================
           8. Images
           ======================================== */
        .hero-image {
            max-width: 100%;
            height: auto;
            display: block;
        }

        .article-image {
            max-width: 100%;
            height: auto;
            display: block;
            margin: 0 auto;
            border-radius: var(--component-radius);
        }

        [data-content] figure {
            max-width: 100%;
            margin: 2rem auto;
        }

        [data-content] img {
            max-width: 100%;
            height: auto;
            display: block;
            border-radius: var(--component-radius);
        }

        /* ========================================
           9. Media Queries
           ======================================== */
        @media (max-width: 900px) {
            main {
                display: block;
                padding: 1rem;
            }

            [data-content="toc"] {
                position: static;
                max-height: none;
                overflow-y: visible;
                padding-right: 0;
                margin-bottom: 2rem;
                padding: 1.25rem;
                background-color: var(--color-surface);
                border-radius: var(--component-radius);
                border: 1px solid var(--color-border);
            }

            [data-content] {
                max-width: 100%;
            }

            .hero-inner {
                grid-template-columns: 1fr;
                padding: 3rem 1.5rem;
                text-align: center;
            }

            .hero-content {
                order: 1;
            }

            [data-content="hero"] figure {
                order: 2;
            }

            [data-content="hero"] h1 {
                text-align: center;
            }

            .hero-subtitle {
                margin-left: auto;
                margin-right: auto;
            }

            .hero-meta {
                justify-content: center;
            }

            .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;
            }

            .dos-donts,
            .comparison {
                grid-template-columns: 1fr;
            }

            .glossary-term {
                flex-direction: column;
                gap: 4px;
            }

            footer {
                max-width: 100%;
            }
        }

        @media (max-width: 480px) {
            :root {
                --section-gap: 2.5rem;
            }

            h1 {
                font-size: 2rem;
            }

            h2 {
                font-size: 1.5rem;
            }

            .hero-inner {
                padding: 2rem 1rem;
            }
        }

/* =========================================
   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 (Epsom Oaks Theme)
   ========================================= */
.site-footer-4col {
    background-color: #0b0f19; /* Deep dark background matching the theme */
    color: #94a3b8;
    padding: 70px 20px 30px;
    margin-top: 80px;
    font-family: var(--font-body, sans-serif);
    border-top: 3px solid var(--color-accent, #38bdf8); /* Cyan/Teal accent border */
}

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

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

@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;
    }
}

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

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

.widget-list li {
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.5;
}

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

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

/* Accent bullets */
.bullet-list li {
    position: relative;
    padding-left: 18px;
}

.bullet-list li::before {
    content: '•';
    color: var(--color-accent, #38bdf8); 
    position: absolute;
    left: 0;
    top: 0;
    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: #64748b;
    text-align: center;
}

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

/* --- Правильный фикс: центрируем статьи, а Hero растягиваем обратно --- */
main {
    display: block !important; /* Убираем старую сетку сайдбара */
    padding-top: 0 !important; /* Убираем пустоту над Hero */
}

[data-content] {
    max-width: 850px !important; /* Центрируем и сужаем текстовые блоки */
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Специфический фикс для HERO-секции */
[data-content="hero"] {
    max-width: none !important; /* Разрешаем на весь экран */
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important; /* ВОЗВРАЩАЕМ ХАК ДЛЯ РАСТЯЖКИ НА 100% ЭКРАНА */
    margin-right: calc(50% - 50vw) !important;
    margin-top: 0 !important; 
    padding: 3rem 1rem !important; /* Возвращаем адекватные внутренние отступы */
}

body {
    overflow-x: clip;
}