/* ==================== 1. CSS Variables & Reset ==================== */
    :root {
      /* Colors - Light Theme */
      --color-primary: #F7931A;
      --color-secondary: #1A1A2E;
      --color-neutral: #E5E7EB;
      --color-success: #10B981;
      --color-warning: #EF4444;
      --color-text: #111827;
      --color-text-secondary: #6B7280;
      --color-bg: #FFFFFF;
      --color-surface: #F9FAFB;
      --color-border: #E5E7EB;
      
      /* Typography */
      --font-heading: 'Inter', system-ui, sans-serif;
      --font-body: 'Inter', system-ui, sans-serif;
      --font-mono: 'JetBrains Mono', monospace;
      
      --h1: clamp(2rem, 4vw, 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, 1.25vw, 1rem);
      
      --lh-heading: 1.2;
      --lh-body: 1.7;
      
      /* Spacing */
      --section-gap: clamp(3rem, 6vw, 5rem);
      --content-max-width: 820px;
      --sidebar-width: 260px;
      
      /* Hero */
      --hero-h1: clamp(2.5rem, 5vw, 4rem);
      --hero-h1-mobile: clamp(1.75rem, 4vw, 2.5rem);
    
    /* --- AUTO-FORCED DARK THEME --- */
    --color-text: #F9FAFB;
        --color-text-secondary: #9CA3AF;
        --color-bg: #0F172A;
        --color-surface: #1E293B;
        --color-border: #334155;
        --color-neutral: #334155;
}
    
    
    
    *, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    
    html {
      scroll-behavior: smooth;
    }
    
    body {
      font-family: var(--font-body);
      font-size: var(--body);
      line-height: var(--lh-body);
      color: var(--color-text);
      background-color: var(--color-bg);
    }
    
    /* ==================== 2. General Typography ==================== */
    h1, h2, h3, h4, h5, h6 {
      font-family: var(--font-heading);
      font-weight: 700;
      line-height: var(--lh-heading);
      color: var(--color-text);
      text-align: left;
    }
    
    h1 { font-size: var(--h1); }
    h2 { 
      font-size: var(--h2); 
      margin-bottom: 1rem;
      scroll-margin-top: 2rem;
    }
    h3 { 
      font-size: var(--h3); 
      margin-bottom: 0.75rem;
      scroll-margin-top: 2rem;
    }
    
    p {
      margin-bottom: 1.25rem;
      text-align: left;
    }
    
    a {
      color: var(--color-primary);
      text-decoration: underline;
      text-underline-offset: 2px;
      transition: opacity 0.2s ease;
    }
    
    a:hover {
      opacity: 0.8;
    }
    
    a:focus {
      outline: 2px solid var(--color-primary);
      outline-offset: 2px;
    }
    
    ul, ol {
      margin-bottom: 1.25rem;
      padding-left: 1.5rem;
      text-align: left;
    }
    
    li {
      margin-bottom: 0.5rem;
    }
    
    strong {
      font-weight: 600;
    }
    
    em {
      font-style: italic;
    }
    
    blockquote {
      border-left: 3px solid var(--color-primary);
      padding-left: 1.5rem;
      margin: 1.5rem 0;
      font-style: italic;
      color: var(--color-text-secondary);
      text-align: left;
    }
    
    table {
      width: 100%;
      border-collapse: collapse;
      margin: 1.5rem 0;
      font-size: var(--small);
      text-align: left;
    }
    
    th, td {
      padding: 0.75rem 1rem;
      border: 1px solid var(--color-border);
      text-align: left;
    }
    
    th {
      background-color: var(--color-surface);
      font-weight: 600;
    }
    
    tr:nth-child(even) {
      background-color: var(--color-surface);
    }
    
    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 - Main & Sections ==================== */
    header {
      position: relative;
    }
    
    main {
      width: 100%;
      display: grid;
      grid-template-columns: var(--sidebar-width) 1fr;
      gap: 3rem;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 1.5rem;
    }
    
    [data-content] {
      max-width: var(--content-max-width);
      padding: 0;
      margin-bottom: var(--section-gap);
    }
    
    [data-content="toc"] {
      grid-column: 1;
      max-width: var(--sidebar-width);
    }
    
    [data-content]:not([data-content="toc"]):not([data-content="hero"]) {
      grid-column: 2;
    }
    
    [data-content="hero"] {
      grid-column: 1 / -1;
      max-width: none;
      width: 100vw;
      margin-left: calc(50% - 50vw);
      margin-bottom: 0;
    }
    
    /* ==================== 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: 6px;
      padding: 1.25rem 1.5rem;
      margin: 1.5rem 0;
      box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
    
    .info-box p {
      margin-bottom: 0.75rem;
      text-align: left;
      color: var(--color-text);
    }
    
    .info-box p:last-child {
      margin-bottom: 0;
    }
    
    .info-box strong {
      color: var(--color-text);
    }
    
    /* --- Callout Warning --- */
    .callout-warning {
      background-color: rgba(239, 68, 68, 0.08);
      border: 1px solid rgba(239, 68, 68, 0.2);
      border-left: 4px solid var(--color-warning);
      border-radius: 6px;
      padding: 1.25rem 1.5rem;
      margin: 1.5rem 0;
    }
    
    .callout-warning p {
      margin-bottom: 0.75rem;
      text-align: left;
      color: var(--color-text);
    }
    
    .callout-warning p:last-child {
      margin-bottom: 0;
    }
    
    .callout-warning ul {
      margin-bottom: 0;
    }
    
    @media (prefers-color-scheme: dark) {
      .callout-warning {
        background-color: rgba(239, 68, 68, 0.12);
        border-color: rgba(239, 68, 68, 0.3);
      }
    }
    
    /* --- Key Takeaway --- */
    .key-takeaway {
      border-top: 2px solid var(--color-primary);
      padding-top: 1rem;
      margin: 2rem 0;
    }
    
    .key-takeaway p {
      font-family: var(--font-heading);
      font-size: clamp(1.125rem, 2vw, 1.25rem);
      font-weight: 600;
      line-height: 1.5;
      color: var(--color-text);
      margin-bottom: 0;
      text-align: left;
    }
    
    /* --- Fun Fact --- */
    .fun-fact {
      position: relative;
      padding-left: 1.5rem;
      margin: 1.5rem 0;
      font-style: italic;
      color: var(--color-text-secondary);
    }
    
    .fun-fact::before {
      content: "—";
      position: absolute;
      left: 0;
      color: var(--color-primary);
      font-weight: 600;
    }
    
    .fun-fact p {
      margin-bottom: 0;
      color: var(--color-text-secondary);
      text-align: left;
    }
    
    /* --- Glossary Term --- */
    .glossary-term {
      display: flex;
      align-items: baseline;
      gap: 12px;
      margin: 1rem 0;
    }
    
    .glossary-term .term {
      font-family: var(--font-mono);
      color: var(--color-primary);
      text-decoration: underline;
      text-underline-offset: 3px;
      flex-shrink: 0;
    }
    
    .glossary-term .definition {
      color: var(--color-text-secondary);
    }
    
    @media (max-width: 600px) {
      .glossary-term {
        flex-direction: column;
        gap: 4px;
      }
    }
    
    /* --- Dos and Donts --- */
    .dos-donts {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.5rem;
      margin: 1.5rem 0;
    }
    
    .dos-donts .do-column,
    .dos-donts .dont-column {
      padding: 1rem;
      border-radius: 6px;
    }
    
    .dos-donts .do-column {
      background-color: rgba(16, 185, 129, 0.08);
      border: 1px solid rgba(16, 185, 129, 0.2);
    }
    
    .dos-donts .dont-column {
      background-color: rgba(239, 68, 68, 0.08);
      border: 1px solid rgba(239, 68, 68, 0.2);
    }
    
    .dos-donts h4 {
      font-size: var(--small);
      margin-bottom: 0.75rem;
    }
    
    .dos-donts .do-column h4 {
      color: var(--color-success);
    }
    
    .dos-donts .dont-column h4 {
      color: var(--color-warning);
    }
    
    .dos-donts ul {
      margin-bottom: 0;
      padding-left: 1.25rem;
    }
    
    .dos-donts li {
      font-size: var(--small);
      color: var(--color-text);
    }
    
    @media (max-width: 600px) {
      .dos-donts {
        grid-template-columns: 1fr;
      }
    }
    
    @media (prefers-color-scheme: dark) {
      .dos-donts .do-column {
        background-color: rgba(16, 185, 129, 0.12);
        border-color: rgba(16, 185, 129, 0.3);
      }
      .dos-donts .dont-column {
        background-color: rgba(239, 68, 68, 0.12);
        border-color: rgba(239, 68, 68, 0.3);
      }
    }
    
    /* --- Pre-Bet Checklist --- */
    .pre-bet-checklist {
      margin: 1.5rem 0;
    }
    
    .pre-bet-checklist h4 {
      font-family: var(--font-heading);
      font-size: var(--small);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--color-primary);
      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: 1.25rem;
      margin-bottom: 0.75rem;
      color: var(--color-text);
    }
    
    .pre-bet-checklist li::before {
      content: "\2610";
      position: absolute;
      left: -0.75rem;
      color: var(--color-primary);
      background-color: var(--color-bg);
      padding: 0 2px;
    }
    
    /* --- At a Glance --- */
    .at-a-glance {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 0;
      margin: 1.5rem 0;
      border: 1px solid var(--color-border);
      border-radius: 6px;
      overflow: hidden;
    }
    
    .at-a-glance .glance-item {
      padding: 1.25rem;
      border-right: 1px solid var(--color-border);
      text-align: center;
    }
    
    .at-a-glance .glance-item:last-child {
      border-right: none;
    }
    
    .at-a-glance h4 {
      font-family: var(--font-heading);
      font-size: clamp(1.25rem, 2.5vw, 1.5rem);
      font-weight: 700;
      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;
    }
    
    @media (max-width: 600px) {
      .at-a-glance {
        grid-template-columns: 1fr;
      }
      .at-a-glance .glance-item {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
      }
      .at-a-glance .glance-item:last-child {
        border-bottom: none;
      }
    }
    
    /* --- Worked Example --- */
    .worked-example {
      background-color: var(--color-surface);
      border: 1px solid var(--color-border);
      border-radius: 8px;
      padding: 1.5rem 2rem;
      margin: 1.5rem 0;
      box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    }
    
    .worked-example h4 {
      font-size: var(--body);
      margin-bottom: 1rem;
      color: var(--color-text);
    }
    
    .worked-example .step {
      margin-bottom: 1rem;
      padding-bottom: 1rem;
      border-bottom: 1px dashed var(--color-border);
    }
    
    .worked-example .step:last-of-type {
      border-bottom: none;
      margin-bottom: 0;
      padding-bottom: 0;
    }
    
    .worked-example code {
      font-family: var(--font-mono);
      font-size: 0.9em;
      background-color: var(--color-bg);
      padding: 0.15em 0.4em;
      border-radius: 3px;
    }
    
    .worked-example .result {
      font-weight: 600;
      color: var(--color-success);
      font-size: 1.1em;
    }
    
    .worked-example p {
      margin-bottom: 0.5rem;
      text-align: left;
      color: var(--color-text);
    }
    
    /* --- Section Bridge --- */
    .section-bridge {
      text-align: center;
      margin: 2rem 0;
      font-style: italic;
      color: var(--color-primary);
      font-family: var(--font-heading);
    }
    
    .section-bridge::before,
    .section-bridge::after {
      content: "—";
      margin: 0 0.75rem;
      color: var(--color-border);
    }
    
    /* --- Comparison Table --- */
    .comparison {
      margin: 1.5rem 0;
      overflow-x: auto;
    }
    
    .comparison table {
      min-width: 600px;
    }
    
    .comparison th {
      background-color: var(--color-secondary);
      color: #FFFFFF;
      font-weight: 600;
    }
    
    @media (prefers-color-scheme: dark) {
      .comparison th {
        background-color: #0F172A;
        color: #F9FAFB;
      }
    }
    
    /* --- Card Grid --- */
    .card-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1.25rem;
      margin: 1.5rem 0;
    }
    
    .card-grid .card {
      background-color: var(--color-surface);
      border: 1px solid var(--color-border);
      border-radius: 8px;
      padding: 1.25rem;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .card-grid .card:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
    
    .card-grid .card h4 {
      font-size: var(--body);
      margin-bottom: 0.5rem;
      color: var(--color-text);
    }
    
    .card-grid .card p {
      font-size: var(--small);
      color: var(--color-text-secondary);
      margin-bottom: 0;
      text-align: left;
    }
    
    /* --- Odds Example --- */
    .odds-example {
      background-color: var(--color-secondary);
      color: #FFFFFF;
      border-radius: 8px;
      padding: 1.5rem;
      margin: 1.5rem 0;
      text-align: center;
    }
    
    .odds-example h4 {
      font-size: var(--small);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 0.75rem;
      color: var(--color-primary);
      text-align: center;
    }
    
    .odds-example .value {
      font-family: var(--font-mono);
      font-size: clamp(1.5rem, 3vw, 2rem);
      font-weight: 700;
      color: #FFFFFF;
      margin-bottom: 0.5rem;
    }
    
    .odds-example p {
      font-size: var(--small);
      color: rgba(255,255,255,0.8);
      margin-bottom: 0;
      text-align: center;
    }
    
    @media (prefers-color-scheme: dark) {
      .odds-example {
        background-color: #0F172A;
        border: 1px solid var(--color-border);
      }
    }
    
    /* --- TL;DR --- */
    .tldr {
      background-color: var(--color-surface);
      border-left: 4px solid var(--color-primary);
      border-radius: 0 8px 8px 0;
      padding: 1.5rem 2rem;
      margin: 1.5rem 0;
    }
    
    .tldr h2 {
      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);
    }
    
    /* --- Step by Step --- */
    .step-by-step {
      margin: 1.5rem 0;
    }
    
    .step-by-step .step-item {
      display: flex;
      gap: 1rem;
      margin-bottom: 1.5rem;
    }
    
    .step-by-step .step-number {
      flex-shrink: 0;
      width: 2rem;
      height: 2rem;
      background-color: var(--color-primary);
      color: #FFFFFF;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      font-size: var(--small);
    }
    
    .step-by-step .step-content h4 {
      font-size: var(--body);
      margin-bottom: 0.25rem;
    }
    
    .step-by-step .step-content p {
      font-size: var(--small);
      color: var(--color-text-secondary);
      margin-bottom: 0;
      text-align: left;
    }
    
    /* --- Data Card --- */
    .data-card {
      background: linear-gradient(135deg, var(--color-secondary) 0%, #0F172A 100%);
      color: #FFFFFF;
      border-radius: 8px;
      padding: 1.5rem;
      margin: 1.5rem 0;
      text-align: center;
    }
    
    .data-card .metric {
      font-family: var(--font-mono);
      font-size: clamp(2rem, 4vw, 3rem);
      font-weight: 700;
      color: var(--color-primary);
      margin-bottom: 0.5rem;
    }
    
    .data-card .label {
      font-size: var(--small);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: rgba(255,255,255,0.8);
    }
    
    @media (prefers-color-scheme: dark) {
      .data-card {
        border: 1px solid var(--color-border);
      }
    }
    
    /* ==================== 5. Hero Section ==================== */
    [data-content="hero"] {
      background: linear-gradient(180deg, var(--color-secondary) 0%, #0F172A 100%);
      position: relative;
      overflow: hidden;
      padding: 4rem 1.5rem 3rem;
      margin-top: 0;
    }
    
    [data-content="hero"]::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image: 
        repeating-linear-gradient(
          0deg,
          transparent,
          transparent 39px,
          rgba(255,255,255,0.03) 39px,
          rgba(255,255,255,0.03) 40px
        ),
        repeating-linear-gradient(
          90deg,
          transparent,
          transparent 39px,
          rgba(255,255,255,0.03) 39px,
          rgba(255,255,255,0.03) 40px
        );
      pointer-events: none;
    }
    
    [data-content="hero"]::after {
      content: "";
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse 80% 60% at 50% 100%, transparent 0%, #0F172A 100%);
      pointer-events: none;
    }
    
    .hero-inner {
      position: relative;
      z-index: 1;
      max-width: var(--content-max-width);
      margin: 0 auto;
      text-align: center;
    }
    
    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 1.5rem;
    }
    
    .hero-date {
      font-size: 0.75rem;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: rgba(255,255,255,0.7);
      background-color: rgba(255,255,255,0.1);
      padding: 0.35rem 0.75rem;
      border-radius: 4px;
    }
    
    .hero-trust {
      font-size: 0.75rem;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--color-primary);
    }
    
    [data-content="hero"] h1 {
      font-size: var(--hero-h1);
      color: #FFFFFF;
      margin-bottom: 1rem;
      text-align: center;
    }
    
    .hero-subtitle {
      font-size: var(--small);
      color: rgba(255,255,255,0.7);
      font-style: italic;
      letter-spacing: 0.02em;
      margin-bottom: 2rem;
    }
    
    .hero-cta {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      background-color: var(--color-primary);
      color: #FFFFFF;
      font-weight: 600;
      font-size: var(--small);
      padding: 0.75rem 1.5rem;
      border-radius: 6px;
      text-decoration: none;
      transition: transform 0.2s ease, opacity 0.2s ease;
    }
    
    .hero-cta:hover {
      transform: translateY(-2px);
      opacity: 0.9;
    }
    
    .hero-cta::after {
      content: "\2193";
      font-size: 1.1em;
    }
    
    [data-content="hero"] figure {
      margin: 2rem auto 0;
      max-width: 100%;
    }
    
    [data-content="hero"] .hero-image {
      width: 100%;
      max-width: 100%;
      height: auto;
      display: block;
      margin: 0 auto;
      border-radius: 8px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    }
    
    [data-content="hero"] figcaption {
      color: rgba(255,255,255,0.6);
      margin-top: 0.75rem;
    }
    
    @media (max-width: 768px) {
      [data-content="hero"] h1 {
        font-size: var(--hero-h1-mobile);
      }
    }
    
    /* ==================== 6. TOC Sidebar ==================== */
    [data-content="toc"] {
      position: sticky;
      top: 2rem;
      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"] nav {
      padding-top: 1rem;
    }
    
    .toc-title {
      font-size: 0.75rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--color-text-secondary);
      margin-bottom: 1rem;
    }
    
    [data-content="toc"] ul {
      list-style: none;
      padding-left: 0;
      margin-bottom: 0;
    }
    
    [data-content="toc"] li {
      margin-bottom: 0.5rem;
    }
    
    [data-content="toc"] a {
      font-size: var(--small);
      color: var(--color-text-secondary);
      text-decoration: none;
      transition: color 0.2s ease;
      display: block;
      padding: 0.25rem 0;
    }
    
    [data-content="toc"] a:hover {
      color: var(--color-primary);
    }
    
    [data-content="toc"] ul ul {
      margin-top: 0.5rem;
      margin-bottom: 0.75rem;
      padding-left: 1rem;
    }
    
    [data-content="toc"] ul ul a {
      font-size: calc(var(--small) * 0.9);
      color: var(--color-text-secondary);
      opacity: 0.8;
    }
    
    [data-content="toc"] ul ul a:hover {
      opacity: 1;
      color: var(--color-primary);
    }
    
    /* ==================== 7. FAQ Accordion ==================== */
    [data-content="faq"] details {
      border-bottom: 1px solid var(--color-border);
      interpolate-size: allow-keywords;
    }
    
    [data-content="faq"] summary {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem 0;
      cursor: pointer;
      font-weight: 600;
      font-size: var(--body);
      list-style: none;
      color: var(--color-text);
    }
    
    [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-primary);
      transition: transform 0.3s ease;
    }
    
    [data-content="faq"] details[open] summary::after {
      transform: rotate(45deg);
    }
    
    [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: 0 0 1rem 0;
    }
    
    [data-content="faq"] details > div > p {
      color: var(--color-text-secondary);
      margin-bottom: 0;
      text-align: left;
    }
    
    @supports not selector(::details-content) {
      [data-content="faq"] details[open] > *:not(summary) {
        animation: fade-in 0.3s ease forwards;
      }
      
      @keyframes fade-in {
        from { opacity: 0; }
        to { opacity: 1; }
      }
    }
    
    /* ==================== 8. Images ==================== */
    .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;
    }
    
    /* ==================== 9. Back to Top & CTA ==================== */
    .back-to-top {
      position: fixed;
      bottom: 2rem;
      right: 2rem;
      width: 3rem;
      height: 3rem;
      background-color: var(--color-secondary);
      color: #FFFFFF;
      border: none;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.25rem;
      cursor: pointer;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, transform 0.3s ease;
      z-index: 100;
      text-decoration: none;
    }
    
    .back-to-top.visible {
      opacity: 1;
      visibility: visible;
    }
    
    .back-to-top:hover {
      transform: translateY(-3px);
    }
    
    @media (prefers-color-scheme: dark) {
      .back-to-top {
        background-color: var(--color-primary);
      }
    }

    /* ==================== 11. Media Queries ==================== */
    @media (max-width: 900px) {
      main {
        display: block;
        padding: 0 1rem;
      }
      
      [data-content="toc"] {
        position: static;
        max-width: 100%;
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
        margin-bottom: 2rem;
        border-bottom: 1px solid var(--color-border);
        padding-bottom: 1.5rem;
      }
      
      [data-content]:not([data-content="toc"]):not([data-content="hero"]) {
        max-width: 100%;
      }
      
      [data-content="hero"] {
        margin-left: -1rem;
        width: calc(100% + 2rem);
      }
      
      .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 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 (Bitcoin Koers Theme)
   ========================================= */
.site-footer-4col {
    background-color: #0b1120; /* Deep navy/dark blue background */
    color: #94a3b8;
    padding: 60px 20px 30px;
    margin-top: 80px;
    font-family: var(--font-body, sans-serif);
    border-top: 3px solid var(--color-accent, #f97316); /* Bitcoin Orange border */
}

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

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

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

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

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

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

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

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

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

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

.widget-list li {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #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, #f97316);
}

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

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

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

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

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

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

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

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

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

body {
  overflow-x: clip;
}



@media (max-width: 900px) {
    html, body {
        overflow-x: hidden !important; 
        width: 100%;
        max-width: 100vw;
    }

    main {
        display: block !important;
        width: 100%;
    }

    [data-content="hero"], 
    main:not(:has([data-content="toc"])) [data-content="hero"] {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
    
    .tldr, [data-content] {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}