:root {
  /* Colors - Light Theme */
  --color-primary: #1A2B4C;
  --color-secondary: #00D4AA;
  --color-accent: #FFB930;
  --color-text: #4A5568;
  --color-text-secondary: #6B7280;
  --color-bg: #F7F9FC;
  --color-surface: #FFFFFF;
  --color-border: #E2E8F0;
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;

  /* Typography */
  --font-body: 'Inter', 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Inter', 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Sizes */
  --h1-size: clamp(32px, 5vw, 48px);
  --h2-size: clamp(24px, 4vw, 32px);
  --h3-size: clamp(20px, 3vw, 24px);
  --body-size: clamp(16px, 2.5vw, 18px);
  --small-size: 14px;

  /* Spacing */
  --section-gap: 4rem;
  --content-max-width: 820px;
  --sidebar-width: 240px;

  /* Line heights */
  --line-height-body: 1.7;
  --line-height-headings: 1.3;

    /* --- AUTO-FORCED DARK THEME --- */
    --color-primary: #A8C5FF;
    --color-secondary: #00D4AA;
    --color-accent: #FFB930;
    --color-text: #E2E8F0;
    --color-text-secondary: #A0AEC0;
    --color-bg: #0F172A;
    --color-surface: #1E293B;
    --color-border: #334155;
    --color-success: #34D399;
    --color-warning: #FBBF24;
    --color-error: #F87171;
}



/* 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-size);
  line-height: var(--line-height-body);
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--line-height-headings);
  color: var(--color-primary);
  text-align: left;
}

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

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

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

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

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

a:hover {
  opacity: 0.8;
}

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

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

em {
  font-style: italic;
}

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

li {
  margin-bottom: 0.5rem;
}

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

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: var(--small-size);
  text-align: left;
}

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

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

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

/* Header */
header {
  position: relative;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 1.5rem;
  max-width: calc(var(--content-max-width) + var(--sidebar-width) + 4rem);
  margin: 0 auto;
}

.date-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trust-marker {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Main Layout - Sidebar Grid */
main {
  width: 100%;
  max-width: calc(var(--content-max-width) + var(--sidebar-width) + 4rem);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  gap: 3rem;
}

/* Content Sections */
[data-content] {
  max-width: var(--content-max-width);
  padding: var(--section-gap) 0;
  grid-column: 2;
}

[data-content="hero"] {
  grid-column: 1 / -1;
  max-width: 100%;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0;
}

[data-content="toc"] {
  grid-column: 1;
  grid-row: 2 / 20;
  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;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1A2B4C 0%, #2D3E5F 100%);
  padding: 4rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero-content {
  max-width: calc(var(--content-max-width) + var(--sidebar-width) + 4rem);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: #FFFFFF;
  margin-bottom: 1rem;
  text-align: center;
}

.hero-subtitle {
  color: var(--color-secondary);
  font-size: var(--small-size);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 2rem;
}

.hero figure {
  max-width: 800px;
  margin: 2rem auto 0;
}

.hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.hero figcaption {
  text-align: center;
  font-size: var(--small-size);
  color: rgba(255,255,255,0.6);
  margin-top: 1rem;
}

/* TOC Styles */
.toc-nav {
  padding-top: 2rem;
}

.toc-title {
  font-size: var(--small-size);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

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

.toc-list li {
  margin-bottom: 0.5rem;
}

.toc-list a {
  font-size: var(--small-size);
  color: var(--color-text-secondary);
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.toc-list a:hover {
  color: var(--color-secondary);
}

.toc-list ul {
  padding-left: 1rem;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.toc-list ul a {
  font-size: 13px;
  color: var(--color-text-secondary);
  opacity: 0.8;
}

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

.tldr h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.tldr ul {
  margin-bottom: 0;
}

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

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

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

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

/* Warning Box */
.warning-box {
  background-color: rgba(245, 158, 11, 0.1);
  border-left: 4px solid var(--color-warning);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

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

@media (prefers-color-scheme: dark) {
  .warning-box {
    background-color: rgba(245, 158, 11, 0.15);
  }
}

/* Calc Example */
.calc-example {
  background-color: var(--color-primary);
  color: #FFFFFF;
  padding: 2rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.calc-example p {
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 0.5rem;
}

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

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

@media (prefers-color-scheme: dark) {
  .calc-example {
    background-color: #1A2B4C;
  }
  
  .calc-example p {
    color: #FFFFFF;
  }
  
  .calc-example strong {
    color: var(--color-accent);
  }
}

/* Callout */
.callout {
  border-left: 4px solid var(--color-secondary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background-color: rgba(0, 212, 170, 0.05);
  border-radius: 0 8px 8px 0;
}

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

@media (prefers-color-scheme: dark) {
  .callout {
    background-color: rgba(0, 212, 170, 0.1);
  }
}

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

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

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

.card-grid .card h4 {
  font-size: 18px;
  margin-bottom: 0.5rem;
}

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

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

.comparison .comparison-col {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.comparison .comparison-col h4 {
  font-size: 16px;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-secondary);
}

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

.comparison .comparison-col ul {
  margin-bottom: 0;
}

.comparison .comparison-col li {
  font-size: var(--small-size);
  color: var(--color-text);
}

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

.key-takeaway p {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.4;
  margin-bottom: 0;
  text-align: left;
}

/* 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-secondary);
  font-weight: 600;
}

.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 .term {
  font-family: monospace;
  color: var(--color-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.glossary-term .definition {
  color: var(--color-text-secondary);
  font-size: var(--small-size);
}

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

.dos-donts .dos {
  background-color: rgba(16, 185, 129, 0.05);
  border: 1px solid var(--color-success);
  border-radius: 8px;
  padding: 1.5rem;
}

.dos-donts .donts {
  background-color: rgba(239, 68, 68, 0.05);
  border: 1px solid var(--color-error);
  border-radius: 8px;
  padding: 1.5rem;
}

.dos-donts h4 {
  font-size: 16px;
  margin-bottom: 1rem;
}

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

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

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

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

@media (prefers-color-scheme: dark) {
  .dos-donts .dos {
    background-color: rgba(16, 185, 129, 0.1);
  }
  .dos-donts .donts {
    background-color: rgba(239, 68, 68, 0.1);
  }
}

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

.pre-game-checklist h4 {
  font-family: var(--font-display);
  font-size: var(--small-size);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

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

.pre-game-checklist li {
  position: relative;
  padding-left: 0.5rem;
  font-size: var(--small-size);
  color: var(--color-text);
}

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

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

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

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

.at-a-glance .glance-item h4 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  text-align: center;
}

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

/* Worked Example */
.worked-example {
  background-color: var(--color-surface);
  padding: 2rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.worked-example h4 {
  font-size: 18px;
  margin-bottom: 1.5rem;
}

.worked-example .step {
  font-family: monospace;
  font-size: var(--small-size);
  color: var(--color-text);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--color-border);
  text-align: left;
}

.worked-example .step:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.worked-example .result {
  font-weight: 600;
  color: var(--color-secondary);
  font-size: 18px;
  text-align: left;
}

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

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

/* FAQ Section */
details {
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0;
  interpolate-size: allow-keywords;
}

details:last-of-type {
  border-bottom: none;
}

summary {
  padding: 1.25rem 2rem 1.25rem 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-primary);
  position: relative;
  list-style: none;
  transition: color 0.2s ease;
}

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

summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-secondary);
  transition: transform 0.3s ease;
}

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

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

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

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

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

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

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

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

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

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

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

img[loading="lazy"] {
  max-width: 100%;
  height: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-secondary);
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--small-size);
  text-decoration: none;
  border-radius: 6px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.btn:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn-secondary:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 100;
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.back-to-top::before {
  content: '\2191';
  font-size: 18px;
  color: var(--color-primary);
}


/* Mobile Responsive */
@media (max-width: 900px) {
  main {
    display: block;
    padding: 0 1rem;
  }
  
  [data-content] {
    max-width: 100%;
    padding: var(--section-gap) 0;
  }
  
  [data-content="toc"] {
    position: static;
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
    margin-bottom: 2rem;
  }
  
  [data-content="hero"] {
    margin-left: calc(-1rem);
    width: calc(100% + 2rem);
  }
  
  .hero {
    padding: 3rem 1rem 4rem;
  }
  
  .header-meta {
    padding: 0.75rem 1rem;
  }
  
  .comparison {
    grid-template-columns: 1fr;
  }
  
  .dos-donts {
    grid-template-columns: 1fr;
  }
  
  .at-a-glance {
    grid-template-columns: 1fr 1fr;
  }
  
  .at-a-glance .glance-item {
    border-bottom: 1px solid var(--color-border);
  }
  
  .at-a-glance .glance-item:nth-child(2n) {
    border-right: none;
  }
  
  .at-a-glance .glance-item:nth-last-child(-n+2) {
    border-bottom: none;
  }
  
  .glossary-term {
    flex-direction: column;
    gap: 4px;
  }
  
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
  }
}

@media (max-width: 600px) {
  :root {
    --section-gap: 3rem;
  }
  
  .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;
  }
}

/* =========================================
   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 (Top Sweepstakes US)
   ========================================= */
.site-footer-4col {
    background-color: #0f172a; /* Deep blue/slate background */
    color: #94a3b8;
    padding: 60px 20px 30px;
    margin-top: 80px;
    font-family: var(--font-body, sans-serif);
    border-top: 3px solid var(--color-accent, #06b6d4); /* Bright Cyan accent 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, #06b6d4);
    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;
    }
}

/* Cyan Titles */
.widget-title {
    color: var(--color-accent, #06b6d4); 
    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, #06b6d4);
}

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

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

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

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

    main {
        display: block !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

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

/* =========================================
   FINAL HERO FIX (Paste at the very bottom!)
   ========================================= */
@media (min-width: 901px) {
    /* 1. Disable full viewport stretch and keep it inside the grid */
    main [data-content="hero"] {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        margin-left: 0 !important; /* Remove negative margin */
    }

    /* 2. Turn the blue block into a neat centered card */
    main [data-content="hero"] .hero {
        max-width: 950px !important; /* Card width */
        margin: 0 auto 3rem auto !important; /* Centering */
        border-radius: 20px !important; /* Rounded corners */
        padding: 4rem 3rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    /* 3. Center text and meta data */
    main [data-content="hero"] h1,
    main [data-content="hero"] .hero-meta {
        text-align: center !important;
        justify-content: center !important;
        width: 100% !important;
    }

    main [data-content="hero"] figure {
        margin: 2rem auto 0 !important;
    }
}


main:not(:has([data-content="toc"])) {
    display: block !important; 
}

main:not(:has([data-content="toc"])) article,
main:not(:has([data-content="toc"])) [data-content] {
    width: 100% !important;
    max-width: var(--content-max-width, 850px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

main:not(:has([data-content="toc"])) h1 {
    text-align: center !important;
    margin-bottom: 2rem !important;
}