/* ========================================
       1. CSS Variables and Reset
    ======================================== */
    :root {
      /* Colors - Light Theme */
      --color-primary: #1B4332;
      --color-primary-dark: #0D2818;
      --color-accent: #D4A843;
      --color-neutral: #FAF8F5;
      --color-text: #2D2D2D;
      --color-text-secondary: #5C5C5C;
      --color-burgundy: #722F37;
      --color-bg: #FAF8F5;
      --color-surface: #FFFFFF;
      --color-border: #E5E2DD;
      --color-success: #2D6A4F;
      --color-danger: #9B2C2C;
      
      /* Typography */
      --font-display: 'Playfair Display', Georgia, serif;
      --font-body: 'Inter', -apple-system, sans-serif;
      
      /* Sizes */
      --h1-size: clamp(2rem, 4vw, 3.5rem);
      --h2-size: clamp(1.5rem, 3vw, 2.25rem);
      --h3-size: clamp(1.15rem, 2vw, 1.5rem);
      --body-size: clamp(1rem, 1.5vw, 1.125rem);
      --caption-size: clamp(0.8rem, 1.2vw, 0.875rem);
      
      /* Spacing */
      --section-gap: clamp(3rem, 6vw, 5rem);
      --content-max-width: 720px;
      --sidebar-width: 240px;
      
      /* Effects */
      --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
      --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
      --transition-base: 0.25s ease;
    
    /* --- AUTO-FORCED DARK THEME --- */
    --color-bg: #1A1A1A;
        --color-neutral: #1A1A1A;
        --color-surface: #252525;
        --color-text: #E8E6E3;
        --color-text-secondary: #A8A8A8;
        --color-border: #3A3A3A;
        --color-primary: #2D7A50;
        --color-primary-dark: #1B4332;
}

    

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

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: var(--font-body);
      font-size: var(--body-size);
      line-height: 1.7;
      color: var(--color-text);
      background-color: var(--color-bg);
      -webkit-font-smoothing: antialiased;
    }

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

    h2 {
      font-size: var(--h2-size);
      color: var(--color-text);
      margin-bottom: 1.25rem;
      scroll-margin-top: 2rem;
    }

    h3 {
      font-family: var(--font-body);
      font-size: var(--h3-size);
      font-weight: 600;
      color: var(--color-text);
      margin-top: 2rem;
      margin-bottom: 0.875rem;
      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 var(--transition-base);
    }

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

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

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

    li {
      margin-bottom: 0.5rem;
    }

    strong {
      font-weight: 600;
    }

    em {
      font-style: italic;
    }

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

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

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

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

    tr:hover {
      background-color: rgba(212, 168, 67, 0.05);
    }

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

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

    img {
      max-width: 100%;
      height: auto;
      display: block;
      aspect-ratio: attr(width) / attr(height);
    }

    /* ========================================
       3. Layout - Main with Sidebar Grid
    ======================================== */
    header {
      position: relative;
    }

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

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

    [data-content]:first-of-type {
      padding-top: 0;
    }

    /* ========================================
       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 6px 6px 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;
    }

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

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

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

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

    @media (prefers-color-scheme: dark) {
      .odds-example {
        background-color: #1B4332;
        color: #FAF8F5;
      }
      .odds-example p {
        color: #FAF8F5;
      }
    }

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

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

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

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

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

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

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

    .comparison h4 {
      font-family: var(--font-body);
      font-size: 0.875rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--color-primary);
      margin-bottom: 0.75rem;
    }

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

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

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

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

    .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-family: var(--font-display);
      font-size: clamp(1.125rem, 2vw, 1.375rem);
      font-weight: 600;
      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: '\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: 0.75rem;
      margin: 1rem 0;
    }

    .glossary-term dt {
      font-family: 'SF Mono', 'Monaco', monospace;
      font-size: 0.9em;
      color: var(--color-primary);
      text-decoration: underline;
      text-underline-offset: 3px;
      flex-shrink: 0;
    }

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

    @media (max-width: 600px) {
      .glossary-term {
        flex-direction: column;
        gap: 0.25rem;
      }
    }

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

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

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

    .dos-donts h4 {
      font-family: var(--font-body);
      font-size: 0.875rem;
      font-weight: 600;
      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;
    }

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

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

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

    .pre-bet-checklist h4 {
      font-family: var(--font-display);
      font-size: 0.875rem;
      font-weight: 600;
      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;
      list-style: none;
      margin-bottom: 0;
    }

    .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.25rem;
      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: 8px;
      overflow: hidden;
    }

    .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 h4 {
      font-family: var(--font-display);
      font-size: 1.25rem;
      font-weight: 600;
      color: var(--color-primary);
      margin-bottom: 0.5rem;
    }

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

    @media (max-width: 600px) {
      .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);
      padding: 1.5rem 2rem;
      margin: 1.5rem 0;
      border-radius: 8px;
      box-shadow: var(--shadow-sm);
    }

    .worked-example h4 {
      font-family: var(--font-body);
      font-size: 0.875rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--color-text-secondary);
      margin-bottom: 1rem;
    }

    .worked-example p {
      font-family: 'SF Mono', 'Monaco', monospace;
      font-size: 0.9em;
      color: var(--color-text);
      text-align: left;
      margin-bottom: 0.75rem;
    }

    .worked-example .result {
      font-weight: 600;
      color: var(--color-accent);
      font-size: 1.1em;
      padding-top: 0.5rem;
      border-top: 1px dashed var(--color-border);
      margin-top: 0.75rem;
    }

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

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

    /* ========================================
       5. Hero Section
    ======================================== */
    .hero-editorial {
        grid-column: 1 / -1; 
        max-width: none;   
        
        background: linear-gradient(135deg, #1b4332 0%, #081c15 100%);
        width: 100vw;
        margin-left: calc(50% - 50vw);
        padding: 5rem 1.5rem;
        position: relative;
        border-bottom: 3px solid #d4af37;
        overflow: hidden;
    }

    .hero-editorial .hero-inner {
        max-width: 1200px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }

    /* --- Left Column: Typography --- */
    .hero-editorial .hero-trust {
        display: inline-block;
        font-size: 0.85rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.15em;
        color: #d4af37; /* Gold */
        margin-bottom: 1.5rem;
        border-bottom: 1px solid rgba(212, 175, 55, 0.4);
        padding-bottom: 6px;
    }

    .hero-editorial h1 {
        font-size: clamp(2.2rem, 4vw, 3.5rem);
        color: #ffffff;
        line-height: 1.15;
        margin-bottom: 1rem;
        letter-spacing: -0.02em;
    }

    .hero-editorial .hero-subtitle {
        font-size: 1.25rem;
        font-weight: 400;
        color: #a3b18a;
        margin-bottom: 2rem;
        font-style: italic;
        border-left: 3px solid #d4af37;
        padding-left: 15px;
    }

    .hero-editorial .hero-intro p {
        font-size: 1.05rem;
        line-height: 1.7;
        color: #d8f3dc;
        margin-bottom: 1.25rem;
        opacity: 0.9;
    }

    .hero-editorial .hero-intro a {
        color: #d4af37;
        text-decoration: underline;
        text-underline-offset: 4px;
    }

    .hero-editorial .hero-intro a:hover {
        color: #f1c40f;
    }

    /* --- Call to Action Button --- */
    .hero-editorial .hero-cta {
        display: inline-block;
        margin-top: 1.5rem;
        padding: 14px 32px;
        background-color: #d4af37;
        color: #081c15;
        font-weight: 700;
        font-size: 0.95rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        text-decoration: none;
        border-radius: 4px;
        transition: all 0.3s ease;
    }

    .hero-editorial .hero-cta:hover {
        background-color: #f1c40f;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
    }

    /* --- Right Column: Image --- */
    .hero-editorial .hero-visual figure {
        margin: 0;
        position: relative;
    }

    .hero-editorial .hero-visual img {
        width: 100%;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.1);
        display: block;
    }

    .hero-editorial .hero-visual figcaption {
        text-align: right;
        font-size: 0.85rem;
        color: #a3b18a;
        margin-top: 1rem;
        font-style: italic;
    }

    /* --- Mobile Responsiveness --- */
    @media (max-width: 960px) {
        .hero-editorial .hero-inner {
            grid-template-columns: 1fr;
            gap: 3rem;
        }
        
        .hero-editorial {
            padding: 4rem 1.5rem;
        }
        
        .hero-editorial .hero-visual {
            order: -1; /* Puts image above text on mobile */
        }
    }

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

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

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

    [data-content="toc"] h2 {
      font-family: var(--font-body);
      font-size: 0.75rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--color-text-secondary);
      margin-bottom: 1rem;
    }

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

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

    [data-content="toc"] nav > ul > li > a {
      font-size: 0.9rem;
      font-weight: 500;
      color: var(--color-text);
      text-decoration: none;
      display: block;
      padding: 0.25rem 0;
      transition: color var(--transition-base);
    }

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

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

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

    [data-content="toc"] nav ul ul a {
      font-size: 0.825rem;
      font-weight: 400;
      color: var(--color-text-secondary);
      text-decoration: none;
      display: block;
      padding: 0.125rem 0;
      transition: color var(--transition-base);
    }

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

    /* ========================================
       7. FAQ Accordion
    ======================================== */
    [data-content="faq"] details {
      border-bottom: 1px solid var(--color-border);
      interpolate-size: allow-keywords;
    }

    [data-content="faq"] summary {
      padding: 1rem 0;
      cursor: pointer;
      font-weight: 500;
      color: var(--color-text);
      list-style: none;
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: color var(--transition-base);
    }

    [data-content="faq"] summary::-webkit-details-marker {
      display: none;
    }

    [data-content="faq"] summary::after {
      content: '+';
      font-size: 1.25rem;
      font-weight: 400;
      color: var(--color-accent);
      transition: transform var(--transition-base);
    }

    [data-content="faq"] details[open] summary::after {
      transform: rotate(45deg);
    }

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

    [data-content="faq"] details::details-content {
      opacity: 0;
      block-size: 0;
      overflow: hidden;
      transition: opacity 0.3s ease, block-size 0.3s ease, content-visibility 0.3s ease allow-discrete;
    }

    [data-content="faq"] details[open]::details-content {
      opacity: 1;
      block-size: auto;
    }

    [data-content="faq"] details > div {
      padding-bottom: 1rem;
    }

    [data-content="faq"] details > div p {
      color: var(--color-text-secondary);
      text-align: left;
      margin-bottom: 0;
    }

    @supports not selector(::details-content) {
      @keyframes fade-in {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
      }
      [data-content="faq"] details[open] > *:not(summary) {
        animation: fade-in 0.25s ease forwards;
      }
    }

    /* ========================================
       8. Back to Top
    ======================================== */
    .back-to-top {
      position: fixed;
      bottom: 2rem;
      right: 2rem;
      width: 44px;
      height: 44px;
      background-color: var(--color-primary);
      color: #FFFFFF;
      border: none;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.25rem;
      cursor: pointer;
      text-decoration: none;
      box-shadow: var(--shadow-md);
      transition: transform var(--transition-base), opacity var(--transition-base);
      z-index: 100;
    }

    .back-to-top:hover {
      transform: translateY(-3px);
      color: #FFFFFF;
    }

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

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

      [data-content] {
        max-width: none;
        padding-top: 2.5rem;
      }

      [data-content="hero"] {
        margin-left: -1rem;
        width: calc(100% + 2rem);
      }

      .hero-inner {
        padding: 3rem 1rem 2.5rem;
      }

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

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

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

      .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
      }
    }

    /* ========================================
       Article Image Styles
    ======================================== */
    .hero-image {
      max-width: 100%;
      height: auto;
      display: block;
      margin: 0 auto;
    }

    .article-image {
      max-width: 100%;
      height: auto;
      display: block;
      margin: 0 auto;
      border-radius: 6px;
    }

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

/* Header Base */
.site-header {
    background-color: var(--color-bg);
    border-bottom: none;
    position: relative;
    top: 0;
    z-index: 100;
}

.top-navigation-bar {
    max-width: 950px; /* Optimized width to keep menu centered but separated */
    margin: 0 auto;
    padding: 15px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Pushes logo left and burger/menu right */
}

/* --- 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 */
}

@media (min-width: 769px) {
    .site-nav--desktop {
        display: block;
    }
    .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;
}

/* =========================================
   FOOTER STYLES (1000 Guineas - Racing Green & Gold)
   ========================================= */
.site-footer {
    background-color: #121212; /* Deep charcoal matching your theme */
    color: #a3a3a3;
    padding: 70px 20px 30px;
    margin-top: 80px;
    font-family: var(--font-body, sans-serif);
    border-top: 3px solid #2e7d32; /* Classic British Racing Green top border */
}

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

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

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}

.footer-title {
    color: #f5f5f5;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    padding-bottom: 12px;
}

/* Elegant gold accent line under titles */
.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #d4af37; /* Gold */
}

.footer-text {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #a3a3a3;
}

.footer-text a {
    color: #d4af37; /* Gold links in text */
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-text a:hover {
    color: #f1c40f;
    text-decoration: underline;
}

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

.footer-list li {
    margin-bottom: 0.8rem;
}

.footer-list a {
    color: #2e7d32; /* Racing green for navigation */
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-list a:hover {
    color: #4caf50;
    transform: translateX(5px); /* Subtle slide effect */
}

.footer-bottom {
    border-top: 1px solid #2a2a2a;
    padding-top: 25px;
    text-align: center;
}

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

/* =========================================
   FLOATING BACK TO TOP BUTTON
   ========================================= */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #2e7d32;
    color: #ffffff;
    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.4);
    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: #d4af37; /* Turns gold on hover */
    color: #121212;
    transform: translateY(-5px);
}

body {
  overflow-x: clip;
}


/* =========================================
   FINAL FIX: GRID PRESERVATION & INNER PAGE CENTERING
   ========================================= */

/* 1. Ensure Hero block escapes the grid on the homepage */
.hero-editorial {
    grid-column: 1 / -1 !important;
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
}

/* 2. Disable grid and use block layout ONLY for inner pages */
body:not(.home) main {
    display: block !important;
}

/* 3. Center all content blocks horizontally on inner pages */
body:not(.home) [data-content] {
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}

/* 4. Hide empty TOC placeholder on inner pages (if WordPress generates it) */
body:not(.home) [data-content="toc"] {
    display: none !important;
}