/* ==========================================================================
   1. CSS Variables & Reset
   ========================================================================== */
:root {
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --color-bg: #FAFAFA;
  --color-bg-hero: #F0FDF9;
  --color-text: #111827;
  --color-text-secondary: #6B7280;
  --color-accent: #10B981;
  --color-border: #E5E7EB;
  --color-card-bg: #FFFFFF;
  --color-table-header: #F9FAFB;
  --color-callout-bg: #FEF3C7;
  --color-callout-border: #F59E0B;
  --color-info-bg: #EFF6FF;
  --color-info-border: #3B82F6;
  --color-surface: #F3F4F6;
  --color-success: #059669;
  --color-danger: #DC2626;

  --content-width: 780px;
  --section-gap: clamp(60px, 8vw, 120px);
  --body-size: 18px;
  --body-lh: 1.7;

    /* --- AUTO-FORCED DARK THEME --- */
    --color-bg: #111827;
    --color-bg-hero: #0f1f1a;
    --color-text: #E5E7EB;
    --color-text-secondary: #9CA3AF;
    --color-accent: #34D399;
    --color-border: #374151;
    --color-card-bg: #1F2937;
    --color-table-header: #1F2937;
    --color-callout-bg: #451a03;
    --color-callout-border: #D97706;
    --color-info-bg: #1e293b;
    --color-info-border: #60A5FA;
    --color-surface: #1F2937;
    --color-success: #34D399;
    --color-danger: #F87171;
}



*, *::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(--body-lh);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   2. General Typography
   ========================================================================== */
h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-text);
  text-align: center;
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.5vw, 36px);
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 24px;
  scroll-margin-top: 2rem;
}

h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(20px, 2.5vw, 24px);
  line-height: 1.3;
  color: var(--color-text);
  text-align: left;
  margin-top: 32px;
  margin-bottom: 16px;
  scroll-margin-top: 2rem;
}

p {
  text-align: left;
  margin-bottom: 16px;
  color: var(--color-text);
}

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

a:hover {
  opacity: 0.8;
}

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

strong {
  font-weight: 600;
}

ul, ol {
  text-align: left;
  padding-left: 1.5em;
  margin-bottom: 16px;
}

li {
  margin-bottom: 8px;
  text-align: left;
}

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

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 32px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

thead {
  background-color: var(--color-table-header);
}

th {
  font-family: var(--font-body);
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--color-border);
  color: var(--color-text);
  white-space: nowrap;
}

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

figure {
  margin: 24px auto;
  max-width: 100%;
}

figcaption {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-top: 8px;
}

/* ==========================================================================
   3. Layout — Sections
   ========================================================================== */
header {
  padding: 0;
  margin: 0;
}

main {
  width: 100%;
}

[data-content] {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
  margin-bottom: var(--section-gap);
}

[data-content] + [data-content] {
  /* Consistent rhythm between sections */
}

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

.hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Table overflow wrapper */
[data-content] .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   4. Components
   ========================================================================== */

/* --- info-box --- */
.info-box {
  background-color: var(--color-info-bg);
  border-left: 4px solid var(--color-info-border);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.info-box p {
  text-align: left;
  color: var(--color-text);
  font-size: 16px;
  margin-bottom: 12px;
}

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

.info-box strong {
  font-family: var(--font-body);
  font-weight: 500;
}

/* --- calc-example --- */
.calc-example {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 24px;
  margin: 24px 0;
  border-radius: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.calc-example p {
  text-align: left;
  color: var(--color-text);
  font-size: 16px;
  margin-bottom: 10px;
}

.calc-example p:first-child {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

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

.calc-example strong {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-text);
}

/* --- callout --- */
.callout {
  background-color: var(--color-callout-bg);
  border-left: 4px solid var(--color-callout-border);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.callout p {
  text-align: left;
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 12px;
}

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

/* --- card-grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.card-grid > div {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  padding: 24px;
  border-radius: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card-grid > div:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.card-grid > div p {
  text-align: left;
  color: var(--color-text);
  font-size: 15px;
  margin-bottom: 8px;
}

.card-grid > div p:first-child {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 12px;
}

.card-grid > div p:last-child {
  margin-bottom: 0;
}

/* --- comparison --- */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.comparison > div {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.comparison > div p {
  text-align: left;
  color: var(--color-text);
  font-size: 15px;
  margin-bottom: 8px;
}

.comparison > div p:first-child {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--color-text);
}

.comparison > div p:last-child {
  margin-bottom: 0;
}

/* --- key-takeaway --- */
.key-takeaway {
  border-top: 2px solid var(--color-text);
  padding-top: 16px;
  margin: 32px 0;
}

.key-takeaway p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2.5vw, 24px);
  line-height: 1.3;
  color: var(--color-text);
  text-align: left;
}

/* --- fun-fact --- */
.fun-fact {
  position: relative;
  padding-left: 20px;
  margin: 24px 0;
}

.fun-fact::before {
  content: "\2014";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.7;
}

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

/* --- glossary-term --- */
.glossary-term {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 20px 0;
}

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

.glossary-term strong {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--color-accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.glossary-term p {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text-secondary);
}

/* --- dos-donts --- */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 24px 0;
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.dos-donts > div {
  padding: 24px;
}

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

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

.dos-donts > div p:first-child {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 12px;
  text-align: left;
}

.dos-donts > div:first-child p:first-child {
  color: var(--color-success);
}

.dos-donts > div:last-child p:first-child {
  color: var(--color-danger);
}

.dos-donts ul {
  padding-left: 1.2em;
}

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

/* --- pre-game-checklist --- */
.pre-game-checklist {
  margin: 32px 0;
}

.pre-game-checklist p:first-child {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 16px;
  text-align: left;
}

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

.pre-game-checklist li {
  position: relative;
  padding-left: 8px;
  margin-bottom: 12px;
  font-size: 16px;
  color: var(--color-text);
  text-align: left;
}

.pre-game-checklist li::before {
  content: "\2610";
  position: absolute;
  left: -22px;
  color: var(--color-accent);
  font-size: 16px;
  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: 24px 0;
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

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

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

.at-a-glance > div p:first-child {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 8px;
}

.at-a-glance > div p:not(:first-child) {
  font-size: 14px;
  color: var(--color-text-secondary);
  text-align: center;
}

/* --- worked-example --- */
.worked-example {
  background-color: var(--color-surface);
  padding: 28px 24px;
  margin: 24px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.worked-example p {
  text-align: left;
  color: var(--color-text);
  font-size: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--color-border);
}

.worked-example p:first-child {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 20px;
}

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

.worked-example strong {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text);
}

.worked-example p:last-child strong {
  color: var(--color-accent);
}

/* --- section-bridge --- */
.section-bridge {
  text-align: center;
  margin: 40px auto;
  max-width: 600px;
  position: relative;
  padding: 20px 0;
}

.section-bridge::before,
.section-bridge::after {
  content: "";
  display: block;
  width: 40%;
  height: 0;
  border-top: 1px solid var(--color-border);
  margin: 0 auto 20px;
}

.section-bridge::after {
  margin: 20px auto 0;
}

.section-bridge p {
  font-style: italic;
  font-size: 16px;
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: 0;
  font-family: var(--font-body);
}

/* ==========================================================================
   5. Hero Section
   ========================================================================== */
[data-content="hero"] {
  max-width: 100%;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0;
  margin-bottom: var(--section-gap);
  background-color: var(--color-bg-hero);
  background-image: radial-gradient(ellipse at 40% 30%, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
  position: relative;
}

@media (prefers-color-scheme: dark) {
  [data-content="hero"] {
    background-image: radial-gradient(ellipse at 40% 30%, rgba(52, 211, 153, 0.08) 0%, transparent 70%);
  }
}

[data-content="hero"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
  pointer-events: none;
}

.hero-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) 24px clamp(48px, 6vw, 80px);
  text-align: center;
}

.rubric {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
}

[data-content="hero"] h1 {
  margin-bottom: 20px;
}

.subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

.hero-divider {
  width: 60px;
  border: none;
  border-top: 3px solid var(--color-accent);
  margin: 0 auto 24px;
}

.meta {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

.badge {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 4px 10px;
  margin-left: 12px;
}

[data-content="hero"] figure {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

[data-content="hero"] figure img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

[data-content="hero"] figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-top: 12px;
}

.start-reading {
  display: inline-block;
  margin-top: 24px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--color-accent);
  text-decoration: none;
  border: 1px solid var(--color-accent);
  padding: 8px 20px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.start-reading:hover {
  background-color: var(--color-accent);
  color: var(--color-bg);
  opacity: 1;
}

/* ==========================================================================
   5b. TOC — Compact Horizontal
   ========================================================================== */
[data-content="toc"] {
  max-width: 900px;
  margin-bottom: var(--section-gap);
}

.toc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.toc-nav a {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--color-border);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.toc-nav a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  opacity: 1;
}

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

/* ==========================================================================
   6. FAQ Accordion
   ========================================================================== */
details {
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0;
}

summary {
  cursor: pointer;
  padding: 20px 40px 20px 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  color: var(--color-text);
  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: 22px;
  font-weight: 400;
  color: var(--color-text-secondary);
  transition: transform 0.3s ease;
}

details[open] > summary::after {
  content: "\2212";
  transform: translateY(-50%) rotate(180deg);
}

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

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

/* Modern accordion animation */
details {
  interpolate-size: allow-keywords;
}

::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[open] > div {
  padding-bottom: 20px;
}

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

/* Fallback for browsers without ::details-content */
@supports not selector(::details-content) {
  @keyframes fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }
  details[open] > *:not(summary) {
    animation: fade-in 0.3s ease forwards;
  }
}

/* ==========================================================================
   8. Back to Top
   ========================================================================== */
.back-to-top {
  display: block;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.back-to-top:hover {
  color: var(--color-accent);
  opacity: 1;
}

/* ==========================================================================
   9. Media Queries
   ========================================================================== */
@media (max-width: 768px) {
  [data-content] {
    padding: 0 16px;
  }

  .hero-inner {
    padding: clamp(32px, 6vw, 64px) 16px clamp(32px, 4vw, 56px);
  }

  [data-content="hero"] figure {
    padding: 0 16px;
  }

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

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

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

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

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

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

  table {
    font-size: 14px;
  }

  th, td {
    padding: 8px 10px;
  }

  .toc-nav a {
    font-size: 12px;
    padding: 5px 10px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: clamp(28px, 7vw, 40px);
  }

  .meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .badge {
    margin-left: 0;
  }
}

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

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

.top-navigation-bar {
    max-width: var(--wide-width, 1100px);
    margin: 0 auto;
    padding: 15px var(--component-padding, 24px);
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Keep mobile burger on the right */
}

/* --- DESKTOP MENU --- */
.site-nav--desktop {
    display: none; /* Hidden on mobile by default */
}

@media (min-width: 769px) {
    .top-navigation-bar {
        justify-content: center; /* Center the desktop menu */
    }

    .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
   ========================================================================== */

.site-footer {
    background-color: #0f172a; /* Deep dark blue background to match your site */
    color: #94a3b8; /* Slate gray text */
    padding: 4rem 2rem 1.5rem;
    font-family: inherit;
    border-top: 1px solid #1e293b;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

/* Tablet layout */
@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop layout */
@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-heading {
    color: #f8fafc; /* Near white headers */
    font-size: 1.125rem;
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

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

.footer-list li,
.footer-menu-list li {
    margin-bottom: 0.85rem;
    position: relative;
    padding-left: 1.25rem;
    line-height: 1.4;
    font-size: 0.95rem;
}

/* Custom list markers (blue arrows instead of red dots) */
.footer-list li::before,
.footer-menu-list li::before {
    content: '▹'; 
    position: absolute;
    left: 0;
    color: #3b82f6; /* Blue accent color */
    font-size: 1.2rem;
    line-height: 1;
    top: -1px;
}

.footer-list a,
.footer-menu-list a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-list a:hover,
.footer-menu-list a:hover {
    color: #60a5fa; /* Lighter blue on hover */
}

/* Bottom copyright area */
.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
}

.footer-bottom p {
    margin: 0;
    text-align: center;
}

html, body { 
  overflow-x: hidden;
}

#crumbs {
    padding: 10px 0;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    text-align: center; 
}

#crumbs a {
    text-decoration: none;
    color: #0073aa; 
}

#crumbs a:hover {
    text-decoration: underline;
}

#crumbs .current {
    font-weight: bold;
    color: rgb(255, 255, 255);
}
