/* ========================================
           1. CSS VARIABLES & RESET
           ======================================== */
        :root {
            /* Colors - Light Theme */
            --color-primary: #1B4D3E;
            --color-primary-dark: #0F2D24;
            --color-accent: #D4AF37;
            --color-accent-muted: rgba(212, 175, 55, 0.15);
            --color-text: #334155;
            --color-text-secondary: #94A3B8;
            --color-bg: #FAFAFA;
            --color-surface: #FFFFFF;
            --color-border: #E2E8F0;
            --color-success: #166534;
            --color-danger: #991B1B;

            /* Typography */
            --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
            --font-mono: 'JetBrains Mono', monospace;

            /* Sizes */
            --h1: clamp(2rem, 5vw, 3rem);
            --h2: clamp(1.5rem, 3vw, 2rem);
            --h3: clamp(1.25rem, 2.5vw, 1.5rem);
            --body: clamp(1rem, 1.5vw, 1.125rem);
            --small: clamp(0.875rem, 1vw, 1rem);

            /* Weights */
            --weight-regular: 400;
            --weight-medium: 500;
            --weight-semibold: 600;
            --weight-bold: 700;
            --weight-black: 900;

            /* Spacing */
            --section-gap: clamp(2rem, 4vw, 3rem);
            --content-max-width: 720px;
            --sidebar-width: 240px;

            /* Transitions */
            --transition-fast: 150ms ease;
            --transition-base: 250ms ease;
            --transition-slow: 400ms ease;

            /* Shadows */
            --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
        
    /* --- AUTO-FORCED DARK THEME --- */
    --color-primary: #2D7A65;
                --color-primary-dark: #1B4D3E;
                --color-text: #E2E8F0;
                --color-text-secondary: #94A3B8;
                --color-bg: #0F172A;
                --color-surface: #1E293B;
                --color-border: #334155;
                --color-success: #22C55E;
                --color-danger: #EF4444;
}

        /* 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: var(--body);
            font-weight: var(--weight-regular);
            line-height: 1.7;
            color: var(--color-text);
            background-color: var(--color-bg);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

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

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

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

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

        /* ========================================
           2. GENERAL TYPOGRAPHY
           ======================================== */
        h1, h2, h3, h4, h5, h6 {
            font-family: var(--font-heading);
            font-weight: var(--weight-bold);
            line-height: 1.2;
            color: var(--color-text);
            text-align: left;
        }

        h1 {
            font-size: var(--h1);
            font-weight: var(--weight-black);
        }

        h2 {
            font-size: var(--h2);
            margin-top: 2.5rem;
            margin-bottom: 1rem;
            scroll-margin-top: 2rem;
        }

        h3 {
            font-size: var(--h3);
            margin-top: 2rem;
            margin-bottom: 0.75rem;
            scroll-margin-top: 2rem;
        }

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

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

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

        strong {
            font-weight: var(--weight-semibold);
        }

        em {
            font-style: italic;
        }

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

        table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
            font-size: var(--small);
        }

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

        th {
            font-family: var(--font-heading);
            font-weight: var(--weight-semibold);
            background-color: var(--color-surface);
        }

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

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

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

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

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

        [data-content] {
            max-width: var(--content-max-width);
            margin-top: var(--section-gap);
            grid-column: 2;
        }

        [data-content="tldr"] {
            margin-top: 2rem;
        }

        [data-content="tldr"] + [data-content="intro"] {
            margin-top: 0.25rem;
        }

        [data-content="hero"] {
            grid-column: 1 / -1;
            grid-row: 1;
            max-width: none;
            width: 100vw;
            position: relative;
            left: 50%;
            right: 50%;
            margin-left: -50vw;
            margin-right: -50vw;
            padding: 0;
        }

        [data-content="toc"] {
            grid-column: 1;
            grid-row: 2 / -1;
            position: sticky;
            top: 2rem;
            align-self: start;
            max-height: calc(100vh - 4rem);
            overflow-y: auto;
            margin-top: 2rem;
            padding: 0;
            max-width: none;
            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;
        }
    

        /* ========================================
           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: 1.5rem;
            margin: 1.5rem 0;
            box-shadow: var(--shadow-sm);
        }

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

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

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

        /* Stat Card */
        .stat-card {
            background-color: var(--color-surface);
            border-top: 3px solid var(--color-accent);
            border-radius: 4px;
            padding: 1.5rem;
            margin: 1.5rem 0;
            box-shadow: var(--shadow-md);
        }

        .stat-card p {
            text-align: left;
            color: var(--color-text);
        }

        .stat-card strong {
            font-family: var(--font-heading);
            color: var(--color-text);
        }

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

        .stat-card 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-family: var(--font-heading);
            font-size: clamp(1.125rem, 2vw, 1.375rem);
            font-weight: var(--weight-semibold);
            line-height: 1.4;
            color: var(--color-text);
            text-align: left;
            margin-bottom: 0;
        }

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

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

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

        /* Glossary Term */
        .glossary-term {
            display: flex;
            align-items: baseline;
            gap: 12px;
            margin: 1rem 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);
        }

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

        .dos-donts > div {
            padding: 1.25rem;
            border-radius: 4px;
        }

        .dos-donts .do {
            background-color: rgba(22, 101, 52, 0.08);
            border-left: 3px solid var(--color-success);
        }

        .dos-donts .dont {
            background-color: rgba(153, 27, 27, 0.08);
            border-left: 3px solid var(--color-danger);
        }

        .dos-donts h4 {
            font-size: var(--small);
            font-weight: var(--weight-semibold);
            margin-bottom: 0.75rem;
        }

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

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

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

        .dos-donts li {
            font-size: var(--small);
            color: var(--color-text);
            text-align: left;
        }

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

        .pre-bet-checklist h4 {
            font-family: var(--font-heading);
            font-size: var(--small);
            font-weight: var(--weight-semibold);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            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;
            color: var(--color-text);
            text-align: left;
        }

        .pre-bet-checklist li::before {
            content: '☐';
            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: 2rem 0;
            border: 1px solid var(--color-border);
            border-radius: 4px;
            overflow: hidden;
        }

        .at-a-glance > div {
            padding: 1.25rem;
            text-align: center;
            background-color: var(--color-surface);
        }

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

        .at-a-glance h4 {
            font-family: var(--font-heading);
            font-size: clamp(1.25rem, 2.5vw, 1.5rem);
            font-weight: var(--weight-bold);
            color: var(--color-primary);
            margin-bottom: 0.5rem;
            text-align: center;
        }

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

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

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

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

        .worked-example strong {
            color: var(--color-text);
        }

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

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

        .section-bridge::before,
        .section-bridge::after {
            content: '—';
            margin: 0 0.75rem;
            color: var(--color-text-secondary);
        }

        /* Odds Example */
        .odds-example {
            background-color: var(--color-primary);
            color: var(--color-bg);
            padding: 1.5rem;
            border-radius: 4px;
            margin: 1.5rem 0;
            text-align: center;
        }

        @media (prefers-color-scheme: dark) {
            .odds-example {
                background-color: #1B4D3E;
                color: #FAFAFA;
            }
        }

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

        @media (prefers-color-scheme: dark) {
            .odds-example p {
                color: #FAFAFA;
            }
        }

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

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

        /* Callout */
        .callout {
            background-color: rgba(212, 175, 55, 0.1);
            border-left: 4px solid var(--color-accent);
            padding: 1.25rem 1.5rem;
            margin: 1.5rem 0;
            border-radius: 0 4px 4px 0;
        }

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

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

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

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

        .card-grid h4 {
            font-size: var(--body);
            margin-bottom: 0.5rem;
            color: var(--color-text);
        }

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

        /* Comparison */
        .comparison {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0;
            margin: 1.5rem 0;
            border: 1px solid var(--color-border);
            border-radius: 4px;
            overflow: hidden;
        }

        .comparison > div {
            padding: 1.5rem;
            background-color: var(--color-surface);
        }

        .comparison > div:first-child {
            border-right: 1px solid var(--color-border);
        }

        .comparison h4 {
            font-size: var(--small);
            font-weight: var(--weight-semibold);
            text-transform: uppercase;
            letter-spacing: 0.03em;
            margin-bottom: 1rem;
            padding-bottom: 0.75rem;
            border-bottom: 2px solid var(--color-accent);
            color: var(--color-text);
        }

        .comparison p,
        .comparison li {
            font-size: var(--small);
            color: var(--color-text);
            text-align: left;
        }

        .comparison ul {
            margin-bottom: 0;
        }

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

        [data-content="tldr"] h2 {
            font-size: clamp(1.125rem, 2vw, 1.25rem);
            margin-top: 0;
            margin-bottom: 1rem;
        }

        .tldr ul {
            margin-bottom: 0;
        }

        .tldr li {
            margin-bottom: 0.75rem;
            color: var(--color-text);
            text-align: left;
        }

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

        /* ========================================
           5. HERO SECTION
           ======================================== */
        [data-content="hero"] {
            background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
            min-height: 55vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: clamp(3rem, 10vw, 6rem) clamp(1.5rem, 5vw, 3rem);
            text-align: center;
            position: relative;
        }

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

        [data-content="hero"] .hero-content {
            position: relative;
            z-index: 1;
            max-width: 800px;
        }

        [data-content="hero"] .hero-meta {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
        }

        [data-content="hero"] .date-badge {
            font-family: var(--font-heading);
            font-size: 0.75rem;
            font-weight: var(--weight-medium);
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: rgba(255, 255, 255, 0.8);
            background-color: rgba(255, 255, 255, 0.1);
            padding: 0.375rem 0.75rem;
            border-radius: 2px;
        }

        [data-content="hero"] .trust-marker {
            font-family: var(--font-heading);
            font-size: 0.6875rem;
            font-weight: var(--weight-medium);
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--color-accent);
        }

        [data-content="hero"] h1 {
            font-size: clamp(2.5rem, 6vw, 4.5rem);
            font-weight: var(--weight-black);
            color: #FFFFFF;
            line-height: 1.1;
            margin-bottom: 1.5rem;
            text-align: center;
        }

        [data-content="hero"] .hero-description {
            font-size: clamp(1rem, 2vw, 1.25rem);
            color: rgba(255, 255, 255, 0.85);
            line-height: 1.6;
            max-width: 600px;
            margin: 0 auto 2rem;
            text-align: center;
        }

        [data-content="hero"] .hero-cta {
            display: inline-block;
            font-family: var(--font-heading);
            font-size: var(--small);
            font-weight: var(--weight-semibold);
            color: var(--color-primary-dark);
            background-color: var(--color-accent);
            padding: 0.875rem 2rem;
            border-radius: 4px;
            text-decoration: none;
            transition: transform var(--transition-fast), box-shadow var(--transition-fast);
        }

        [data-content="hero"] .hero-cta:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
            color: var(--color-primary-dark);
        }

        [data-content="hero"] .hero-cta:focus {
            outline: 2px solid #FFFFFF;
            outline-offset: 2px;
        }

        [data-content="hero"] figure {
            margin-top: 2.5rem;
            max-width: 100%;
        }

        [data-content="hero"] .hero-image {
            max-width: 100%;
            height: auto;
            border-radius: 4px;
            box-shadow: var(--shadow-lg);
        }

        [data-content="hero"] figcaption {
            color: rgba(255, 255, 255, 0.6);
            margin-top: 1rem;
        }

        /* ========================================
           6. TABLE OF CONTENTS (Sticky Sidebar)
           ======================================== */
        [data-content="toc"] h2 {
            font-size: 0.75rem;
            font-weight: var(--weight-semibold);
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--color-text-secondary);
            margin-bottom: 1.25rem;
            margin-top: 0;
        }

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

        [data-content="toc"] nav > ul > li {
            margin-bottom: 0.75rem;
        }

        [data-content="toc"] nav a {
            font-size: 0.875rem;
            color: var(--color-text);
            text-decoration: none;
            display: block;
            padding: 0.25rem 0;
            transition: color var(--transition-fast);
        }

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

        [data-content="toc"] nav > ul > li > a {
            font-weight: var(--weight-medium);
        }

        [data-content="toc"] nav ul ul {
            padding-left: 1rem;
            margin-top: 0.5rem;
        }

        [data-content="toc"] nav ul ul li {
            margin-bottom: 0.375rem;
        }

        [data-content="toc"] nav ul ul a {
            font-size: 0.8125rem;
            font-weight: var(--weight-regular);
            color: var(--color-text-secondary);
        }

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

        /* ========================================
           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 {
            font-family: var(--font-heading);
            font-size: var(--body);
            font-weight: var(--weight-medium);
            padding: 1.25rem 2rem 1.25rem 0;
            cursor: pointer;
            position: relative;
            list-style: none;
            color: var(--color-text);
        }

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

        summary::after {
            content: '+';
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            font-size: 1.25rem;
            font-weight: var(--weight-regular);
            color: var(--color-accent);
            transition: transform var(--transition-base);
        }

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

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

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

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

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

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

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

        /* Fallback for browsers without ::details-content */
        @supports not selector(::details-content) {
            @keyframes fade-in {
                from { opacity: 0; }
                to { opacity: 1; }
            }
            details[open] > *:not(summary) {
                animation: fade-in var(--transition-base) ease forwards;
            }
        }

        /* ========================================
           8. IMAGES
           ======================================== */
        .article-image {
            max-width: 100%;
            height: auto;
            display: block;
            margin: 0 auto;
            border-radius: 4px;
        }

        /* ========================================
           9. NAVIGATION BUTTONS
           ======================================== */
        .back-to-top {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            font-family: var(--font-heading);
            font-size: 0.75rem;
            font-weight: var(--weight-medium);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--color-surface);
            background-color: var(--color-primary);
            padding: 0.75rem 1rem;
            border-radius: 4px;
            text-decoration: none;
            box-shadow: var(--shadow-md);
            transition: background-color var(--transition-fast), transform var(--transition-fast);
            z-index: 100;
        }

        .back-to-top:hover {
            background-color: var(--color-primary-dark);
            transform: translateY(-2px);
            color: var(--color-surface);
        }

        .back-to-top:focus {
            outline: 2px solid var(--color-accent);
            outline-offset: 2px;
        }

        /* ========================================
           10. MEDIA QUERIES
           ======================================== */
        @media (max-width: 900px) {
            main {
                display: block;
                padding: 0 1rem;
            }

            [data-content] {
                max-width: 100%;
                padding: calc(var(--section-gap) * 0.7) 0;
            }

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

            [data-content="hero"] {
                min-height: 45vh;
            }

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

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

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

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

            .comparison > div:first-child {
                border-right: none;
                border-bottom: 1px solid var(--color-border);
            }

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

            .back-to-top {
                bottom: 1rem;
                right: 1rem;
                padding: 0.625rem 0.875rem;
            }
        }

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

            [data-content="hero"] h1 {
                font-size: clamp(2rem, 8vw, 2.5rem);
            }

            table {
                font-size: 0.8125rem;
            }

            th, td {
                padding: 0.5rem 0.75rem;
            }
        }

/* =========================================
   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: 95px; /* 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 (King George Theme)
   ========================================= */
.site-footer-4col {
    background-color: #0b1120; /* Deep navy background */
    color: #94a3b8;
    padding: 70px 20px 30px;
    margin-top: 80px;
    font-family: var(--font-body, sans-serif);
    border-top: 3px solid var(--color-accent, #38bdf8); /* Sky blue / Cyan 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;
    }
}

/* Cyan/Sky Blue 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);
}

/* Cyan 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);
}