/* =============================================
   1. CSS VARIABLES & RESET
   ============================================= */
:root {
  /* Colours — Light */
  --color-accent: #1B7A4E;
  --color-accent-hover: #145F3B;
  --color-bg: #F8F7F4;
  --color-bg-hero: #EFF3ED;
  --color-text: #1A1A1A;
  --color-text-secondary: #5A5A5A;
  --color-border: #D4D4D4;
  --color-component-bg: #F0EFEC;
  --color-success: #1B7A4E;
  --color-danger: #C0392B;

  /* Typography */
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Sizes */
  --content-width: 790px;
  --component-width: 800px;
  --section-gap: clamp(64px, 8vw, 120px);

  /* Transitions */
  --transition-base: 0.25s ease;

    /* --- AUTO-FORCED DARK THEME --- */
    --color-bg: #141413;
    --color-bg-hero: #1A1F18;
    --color-text: #E8E6E1;
    --color-text-secondary: #9A9A9A;
    --color-border: #333331;
    --color-component-bg: #1E1E1C;
    --color-accent: #2EA866;
    --color-accent-hover: #3CC07A;
    --color-success: #2EA866;
    --color-danger: #E05545;
}



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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  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(32px, 5vw, 48px);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text);
}

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

h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.35;
  color: var(--color-text);
  margin-top: 2em;
  margin-bottom: 0.4em;
  text-align: left;
  scroll-margin-top: 2rem;
}

p {
  margin-bottom: 1.2em;
  text-align: left;
}

ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}

li {
  margin-bottom: 0.4em;
  text-align: left;
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

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

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-base);
}

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

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

figure {
  margin: 2em 0;
}

figcaption {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-top: 0.75em;
  text-align: center;
  line-height: 1.5;
}

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

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

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

th {
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
}

/* =============================================
   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 20px;
  margin-bottom: var(--section-gap);
}

[data-content] h2:first-child {
  margin-top: 0;
}

/* Images */
.hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
}

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

[data-content] figure {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================
   4. COMPONENTS
   ============================================= */

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

.info-box p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0.8em;
  background: transparent;
}

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

.info-box p strong {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
}

/* --- calc-example --- */
.calc-example {
  background: var(--color-component-bg);
  border: 1px solid var(--color-border);
  padding: 28px 32px;
  margin: 2em 0;
  max-width: var(--component-width);
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.calc-example p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  text-align: left;
  margin-bottom: 0.6em;
  background: transparent;
}

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

.calc-example p strong {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 18px;
  color: var(--color-accent);
}

/* --- callout --- */
.callout {
  background: transparent;
  border: 2px solid var(--color-accent);
  padding: 20px 24px;
  margin: 2em 0;
  max-width: var(--component-width);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.callout p {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0.8em;
  background: transparent;
}

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

/* --- glossary-term --- */
.glossary-term {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 1em 0;
  max-width: var(--component-width);
}

.glossary-term p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  text-align: left;
  margin-bottom: 0;
  background: transparent;
}

.glossary-term p strong {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 15px;
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--color-accent);
}

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

/* --- fun-fact --- */
.fun-fact {
  position: relative;
  border: none;
  background: none;
  border-left: 3px solid var(--color-border);
  padding-left: 16px;
  margin: 1.5em 0;
  max-width: 600px;
  box-shadow: none;
}

.fun-fact p {
  font-family: var(--font-body);
  font-weight: 400;
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  text-align: left;
  margin-bottom: 0;
  background: transparent;
}

/* --- worked-example --- */
.worked-example {
  background: var(--color-component-bg);
  border: 1px solid var(--color-border);
  padding: 28px 32px;
  margin: 2em 0;
  max-width: var(--component-width);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.worked-example p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0.8em;
  background: transparent;
}

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

.worked-example p strong:first-child {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 20px;
  color: var(--color-accent);
}

.worked-example p + p::before {
  content: none;
}

.worked-example hr {
  border: none;
  text-align: center;
  margin: 1em 0;
  color: var(--color-border);
  font-family: var(--font-mono);
  font-size: 18px;
}

.worked-example hr::after {
  content: "\2193";
  color: var(--color-border);
  font-family: var(--font-mono);
  font-size: 18px;
}

/* --- comparison --- */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 2em 0;
  max-width: var(--component-width);
}

.comparison > div {
  border-top: 3px solid var(--color-accent);
  padding-top: 16px;
}

.comparison > div:nth-child(2) {
  border-top-color: var(--color-border);
}

.comparison > div:nth-child(3) {
  border-top-color: var(--color-text-secondary);
}

.comparison > div p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0.6em;
  background: transparent;
}

.comparison > div p strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--color-text);
}

.comparison > div ul {
  padding-left: 0;
  list-style: none;
}

.comparison > div li {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  text-align: left;
  padding: 4px 0;
  border-bottom: 1px solid var(--color-border);
}

.comparison > div li:last-child {
  border-bottom: none;
}

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

/* --- dos-donts --- */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 2em 0;
  max-width: var(--component-width);
}

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

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

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

.dos-donts > div p {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0.8em;
  background: transparent;
}

.dos-donts > div ul {
  padding-left: 0;
  list-style: none;
}

.dos-donts > div:first-child li {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  text-align: left;
  padding: 6px 0 6px 24px;
  position: relative;
}

.dos-donts > div:first-child li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 600;
}

.dos-donts > div:last-child li {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  text-align: left;
  padding: 6px 0 6px 24px;
  position: relative;
}

.dos-donts > div:last-child li::before {
  content: "\2717";
  position: absolute;
  left: 0;
  color: var(--color-danger);
  font-weight: 600;
}

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

/* --- card-grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 2em 0;
  max-width: var(--component-width);
}

.card-grid > div {
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  padding: 20px;
  border-radius: 4px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.card-grid > div p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  text-align: left;
  margin-bottom: 0.5em;
  background: transparent;
}

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

.card-grid > div p strong {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-text);
  display: block;
  margin-bottom: 6px;
}

@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* --- key-takeaway --- */
.key-takeaway {
  border: none;
  background: none;
  box-shadow: none;
  border-top: 2px solid var(--color-accent);
  padding-top: 16px;
  margin: 2em 0;
  max-width: var(--component-width);
}

.key-takeaway p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.35;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0;
  background: transparent;
}

/* --- pre-game-checklist --- */
.pre-game-checklist {
  margin: 2em 0;
  max-width: var(--component-width);
  background: none;
  box-shadow: none;
}

.pre-game-checklist p strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
}

.pre-game-checklist p {
  text-align: left;
  color: var(--color-text);
  background: transparent;
  margin-bottom: 0.8em;
}

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

.pre-game-checklist li {
  position: relative;
  padding-left: 8px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 8px;
}

.pre-game-checklist li::before {
  content: "\2610";
  position: absolute;
  left: -26px;
  color: var(--color-accent);
  font-size: 16px;
  background: 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: 2em 0;
  max-width: var(--component-width);
}

.at-a-glance > div {
  padding: 16px 20px;
  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: clamp(18px, 2vw, 22px);
  color: var(--color-text);
  text-align: center;
  margin-bottom: 6px;
  background: transparent;
}

.at-a-glance > div p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: 4px;
  background: transparent;
}

@media (max-width: 600px) {
  .at-a-glance {
    grid-template-columns: 1fr;
  }
  .at-a-glance > div {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  .at-a-glance > div:last-child {
    border-bottom: none;
  }
}

/* --- section-bridge --- */
.section-bridge {
  text-align: center;
  margin: 2em 0;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
}

.section-bridge::before,
.section-bridge::after {
  content: " \2014 ";
  color: var(--color-border);
}

/* =============================================
   5. HERO SECTION
   ============================================= */
[data-content="hero"] {
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background-color: var(--color-bg-hero);
  padding: clamp(48px, 8vw, 96px) 20px clamp(40px, 6vw, 72px);
  margin-bottom: 0;
  text-align: center;
}

[data-content="hero"] .hero-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.hero-rubric {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 20px;
  text-align: center;
}

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

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

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

.hero-meta {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  text-align: center;
}

.hero-meta time {
  margin-right: 12px;
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  padding: 3px 10px;
  border-radius: 2px;
}

[data-content="hero"] figure {
  max-width: var(--component-width);
  margin: 0 auto;
}

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

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

/* =============================================
   6. TABLE OF CONTENTS — Grid 2 columns
   ============================================= */
[data-content="toc"] {
  max-width: var(--component-width);
  margin-bottom: var(--section-gap);
  padding-top: clamp(32px, 5vw, 56px);
}

.toc-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

[data-content="toc"] nav {
  column-count: 2;
  column-gap: 40px;
}

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

[data-content="toc"] nav > ul > li {
  break-inside: avoid;
  margin-bottom: 16px;
}

[data-content="toc"] nav > ul > li > a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-base);
  display: block;
  padding: 4px 0;
}

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

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

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

[data-content="toc"] nav > ul > li > ul > li > a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-base);
}

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

@media (max-width: 600px) {
  [data-content="toc"] nav {
    column-count: 1;
  }
}

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

[data-content="faq"] summary {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  color: var(--color-text);
  padding: 20px 40px 20px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color var(--transition-base);
  text-align: left;
}

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

[data-content="faq"] summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text-secondary);
  transition: transform var(--transition-base);
}

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

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

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

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

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

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

[data-content="faq"] details div {
  padding-bottom: 20px;
}

[data-content="faq"] details div p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  text-align: left;
  background: transparent;
}

/* =============================================
   8. BACK TO TOP
   ============================================= */
.back-to-top {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  transition: color var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
  text-align: center;
  margin: 0 auto;
  display: block;
  max-width: 160px;
}

.back-to-top:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-1px);
}


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

  [data-content="hero"] {
    padding: clamp(32px, 6vw, 64px) 16px clamp(28px, 4vw, 48px);
  }

  h2 {
    margin-top: 1.8em;
  }

  h3 {
    margin-top: 1.4em;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .hero-subtitle {
    font-size: 16px;
  }
}

/* =========================================
   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 (Editorial Style & Emerald Accent)
   ========================================= */
.site-footer {
    background-color: #0d0d0d; /* Very deep dark gray */
    color: #9ca3af; /* Soft gray text */
    padding: 0 20px 30px;
    font-family: inherit;
    border-top: 1px solid #1f2937;
    margin-top: 60px;
}

/* Back to Top Button Styling */
.footer-top-action {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.back-to-top-btn {
    background: transparent;
    border: 1px solid #374151;
    color: #9ca3af;
    padding: 10px 24px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.back-to-top-btn:hover {
    border-color: #059669; /* Emerald green */
    color: #059669;
}

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

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

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

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

/* New Heading Style: Capitalized with bottom border */
.footer-title {
    color: #e5e7eb;
    font-size: 1.1rem;
    margin-bottom: 20px;
    margin-top: 0;
    font-weight: 500;
    padding-bottom: 12px;
    border-bottom: 1px solid #1f2937; /* Thin dividing line */
}

/* Clean list without bullets */
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Base link style */
.footer-list a {
    color: #059669; /* Emerald Green */
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s ease;
}

/* Elegant underline hover effect */
.footer-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #10b981; /* Lighter emerald for hover */
    transition: width 0.3s ease;
}

.footer-list a:hover {
    color: #10b981;
}

.footer-list a:hover::after {
    width: 100%;
}

.footer-bottom {
    border-top: 1px solid #1f2937;
    padding-top: 25px;
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
}

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

body {
  overflow-x: clip;
}