:root {
  --color-primary: #1A1F2E;
  --color-accent: #FFD700;
  --color-secondary: #00D4AA;
  --color-surface: #F5F7FA;
  --color-text: #2D3748;
  --color-text-secondary: #64748B;
  --color-danger: #E53E3E;
  --color-success: #38A169;
  --color-bg: #FFFFFF;
  --color-border: #E2E8F0;
  --font-heading: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --section-gap: clamp(3rem, 6vw, 5rem);
  --content-max-width: 860px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(26, 31, 46, 0.08);
  --shadow-md: 0 4px 12px rgba(26, 31, 46, 0.1);
  --shadow-lg: 0 8px 24px rgba(26, 31, 46, 0.12);

    /* --- AUTO-FORCED DARK THEME --- */
    --color-primary: #0F1219;
    --color-surface: #1A1F2E;
    --color-text: #E2E8F0;
    --color-text-secondary: #94A3B8;
    --color-bg: #0B0E14;
    --color-border: #2D3748;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}



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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  text-align: left;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1rem;
  scroll-margin-top: 2rem;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: 2rem;
}

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

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

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

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

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

li {
  margin-bottom: 0.5rem;
}

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

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

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

thead {
  background-color: var(--color-primary);
  color: var(--color-bg);
}

@media (prefers-color-scheme: dark) {
  thead {
    background-color: var(--color-surface);
    color: var(--color-text);
  }
}

th {
  text-align: left;
  padding: 0.875rem 1rem;
  font-weight: 600;
}

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

tbody tr:nth-child(even) {
  background-color: var(--color-surface);
}

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

main {
  width: 100%;
}

[data-content] {
  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
  padding: var(--section-gap) 1.5rem;
}

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

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

.hero-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) 1.5rem clamp(3rem, 8vw, 5rem);
  position: relative;
  z-index: 1;
}

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

.hero-subtitle {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

[data-content="hero"] p {
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1rem, 2vw, 1.125rem);
}

.hero-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trust-marker {
  font-size: 0.75rem;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.hero-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2rem auto 0;
  border-radius: var(--radius-md);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.875rem 1.75rem;
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
  color: var(--color-primary);
}

/* TOC - Vertical Style */
[data-content="toc"] {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: calc(var(--section-gap) * -0.5);
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-md);
}

.toc-title {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  margin-bottom: 1.25rem;
}

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

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

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

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

[data-content="toc"] nav ul ul {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
  border-left: 1px solid var(--color-border);
}

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

[data-content="toc"] nav ul ul a {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

.tldr h2 {
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.tldr ul {
  margin-bottom: 0;
}

.tldr li {
  margin-bottom: 0.75rem;
}

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

/* Component Styles */

/* Info Box */
.info-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}

.info-box p {
  margin-bottom: 0.75rem;
  text-align: left;
}

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

/* Calc Example */
.calc-example {
  background: var(--color-primary);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 2rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-md);
}

@media (prefers-color-scheme: dark) {
  .calc-example {
    background: #2D3748;
    color: #FFFFFF;
  }
}

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

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

.calc-example .calc-result {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-accent);
  text-align: center;
  margin-top: 1rem;
}

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

.callout p {
  margin-bottom: 0;
  text-align: left;
}

.callout-warning {
  border-left-color: var(--color-danger);
  background: rgba(229, 62, 62, 0.05);
}

.callout-tip {
  border-left-color: var(--color-success);
  background: rgba(56, 161, 105, 0.05);
}

/* 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: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-grid .card h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card-grid .card p {
  font-size: 0.9375rem;
  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;
}

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

.comparison .option {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.comparison .option h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-accent);
}

.comparison .option p {
  font-size: 0.9375rem;
  text-align: left;
  margin-bottom: 0;
}

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

.key-takeaway p {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 600;
  line-height: 1.4;
  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: 700;
}

.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: 0.75rem;
  margin: 1rem 0;
}

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

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

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

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

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

.dos-donts .dos {
  border-top: 3px solid var(--color-success);
  padding-top: 1rem;
}

.dos-donts .donts {
  border-top: 3px solid var(--color-danger);
  padding-top: 1rem;
}

.dos-donts h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

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

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

.dos-donts ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dos-donts li {
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
  padding-left: 1.25rem;
  position: relative;
}

.dos-donts .dos li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

.dos-donts .donts li::before {
  content: '\2717';
  position: absolute;
  left: 0;
  color: var(--color-danger);
  font-weight: 700;
}

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

.pre-game-checklist h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

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

.pre-game-checklist li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.pre-game-checklist li::before {
  content: '\2610';
  position: absolute;
  left: -0.875rem;
  color: var(--color-accent);
  background: var(--color-bg);
  font-size: 1rem;
}

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

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

.at-a-glance .stat-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 0.25rem;
}

.at-a-glance .stat-label {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.worked-example h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.worked-example .step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.worked-example .step-number {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--color-primary);
  color: var(--color-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  .worked-example .step-number {
    background: var(--color-accent);
    color: var(--color-primary);
  }
}

.worked-example .step-content {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  text-align: left;
}

.worked-example .result {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--color-accent);
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-accent);
  text-align: left;
}

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

.section-bridge::before,
.section-bridge::after {
  content: '\2014\2014';
  color: var(--color-border);
  letter-spacing: 0.25em;
}

.section-bridge p {
  display: inline;
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--color-secondary);
  margin: 0 0.75rem;
}

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

[data-content="faq-accordion"] details summary {
  cursor: pointer;
  padding: 1.25rem 2.5rem 1.25rem 0;
  font-weight: 500;
  font-size: 1.0625rem;
  position: relative;
  list-style: none;
  transition: color 0.2s ease;
}

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

[data-content="faq-accordion"] details summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-accent);
  transition: transform 0.3s ease;
}

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

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

[data-content="faq-accordion"] details summary:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

[data-content="faq-accordion"] 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-accordion"] details[open]::details-content {
  opacity: 1;
  block-size: auto;
}

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

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

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

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

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

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


/* Accessibility */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  [data-content] {
    padding: calc(var(--section-gap) * 0.75) 1rem;
  }
  
  .hero-inner {
    padding: clamp(3rem, 8vw, 5rem) 1rem clamp(2rem, 6vw, 4rem);
  }
  
  [data-content="toc"] {
    padding: 1.5rem;
  }
  
  .at-a-glance {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .at-a-glance {
    grid-template-columns: 1fr;
  }
  
  .hero-meta {
    flex-direction: column;
    gap: 0.75rem;
  }
}

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

/* Header Base */
.site-header {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border, #333);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Mobile defaults for navigation bar */
.top-navigation-bar {
    width: 100%;
    margin: 0 auto;
    padding: 15px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- LOGO FIXES --- */
.site-logo img {
    max-height: 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 (US Sweepstakes Casinos)
   ========================================= */
.site-footer-4col {
    background-color: #0d1117; /* Dark background matching the screenshot */
    color: #9ca3af;
    padding: 60px 20px 30px;
    margin-top: 80px;
    font-family: var(--font-body, sans-serif);
    border-top: 3px solid var(--color-accent, #14b8a6); /* Teal accent border */
}

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

/* Legal Disclaimers Block */
.footer-disclaimers {
    font-size: 0.85rem;
    color: #6b7280;
    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, #14b8a6);
    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;
    }
}

/* Teal Titles */
.widget-title {
    color: var(--color-accent, #14b8a6); 
    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: #9ca3af;
    line-height: 1.5;
}

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

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

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

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

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

