
/* ============================================
   1. CSS Variables & Reset
   ============================================ */
:root {
  --color-bg: #F5F3EF;
  --color-text: #1A1A1A;
  --color-text-secondary: #5A5A5A;
  --color-accent: #00875A;
  --color-accent-hover: #006644;
  --color-hero-bg: #1C1C20;
  --color-surface: #EEEBE5;
  --color-border: #D4D0C8;
  --color-red: #C0392B;
  --color-green: #27AE60;

  --font-display: 'Oswald', sans-serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;

  --content-width: 770px;
  --section-gap: clamp(3rem, 6vw, 5rem);
  --body-size: clamp(1rem, 1.05vw + 0.5rem, 1.175rem);
  --h1-size: clamp(2.4rem, 4vw + 1rem, 4rem);
  --h2-size: clamp(1.6rem, 2.5vw + 0.5rem, 2.4rem);
  --h3-size: clamp(1.15rem, 1.5vw + 0.3rem, 1.5rem);

    /* --- AUTO-FORCED DARK THEME --- */
    --color-bg: #141416;
    --color-text: #E8E6E1;
    --color-text-secondary: #9A9A9A;
    --color-accent: #2ECC71;
    --color-accent-hover: #58D68D;
    --color-hero-bg: #0A0A0C;
    --color-surface: #1E1E22;
    --color-border: #3A3A3E;
    --color-red: #E74C3C;
    --color-green: #2ECC71;
}



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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* ============================================
   2. General Typography
   ============================================ */
h1 {
  font-family: var(--font-display);
  font-size: var(--h1-size);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h2 {
  font-family: var(--font-display);
  font-size: var(--h2-size);
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  margin-top: clamp(2.5rem, 4vw, 4rem);
  margin-bottom: 1.25rem;
  scroll-margin-top: 2rem;
}

h3 {
  font-family: var(--font-body);
  font-size: var(--h3-size);
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: 2rem;
}

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

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

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

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

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

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

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

li {
  text-align: left;
  margin-bottom: 0.5rem;
}

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

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

th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
}

td {
  font-family: var(--font-body);
}

figure {
  margin: 1.5rem auto;
  max-width: 100%;
}

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

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

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

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

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

main {
  width: 100%;
}

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

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

/* --- info-box --- */
.info-box {
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.info-box p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  line-height: 1.65;
}

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

.info-box p strong:first-child {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}

/* --- calc-example --- */
.calc-example {
  background: #1A1A1A;
  color: #F5F3EF;
  padding: 2rem;
  margin: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

@media (prefers-color-scheme: dark) {
  .calc-example {
    background: #0A0A0C;
    color: #E8E6E1;
    border: 1px solid var(--color-border);
  }
}

.calc-example p {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  text-align: left;
  color: #F5F3EF;
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

@media (prefers-color-scheme: dark) {
  .calc-example p {
    color: #E8E6E1;
  }
}

.calc-example p strong:first-child {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.75rem;
}

.calc-example p:last-child {
  margin-bottom: 0;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(245,243,239,0.15);
  font-weight: 700;
  color: var(--color-accent);
}

/* --- callout --- */
.callout {
  background: transparent;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.callout.callout--warning {
  border-left-color: var(--color-red);
}

.callout p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  line-height: 1.65;
}

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

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

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

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

.card-grid > div p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

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

.card-grid > div p strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  display: block;
  margin-bottom: 0.25rem;
}

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

/* --- comparison --- */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 1.5rem 0;
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.comparison > div {
  padding: 1.5rem;
}

.comparison > div:first-child {
  border-right: 1px solid var(--color-border);
}

.comparison > div p {
  font-family: var(--font-body);
  font-size: 0.92rem;
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.comparison > div p strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

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

.key-takeaway p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 1.5vw + 0.5rem, 1.5rem);
  text-align: left;
  color: var(--color-text);
  line-height: 1.35;
  margin-bottom: 0;
}

/* --- fun-fact --- */
.fun-fact {
  position: relative;
  padding-left: 1.25rem;
  border-left: 3px dashed var(--color-accent);
  margin: 1.5rem 0;
}

.fun-fact::before {
  content: 'Fun fact';
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  margin-bottom: 0.35rem;
}

.fun-fact p {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.9rem;
  text-align: left;
  color: var(--color-text-secondary);
  margin-bottom: 0;
  line-height: 1.65;
}

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

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

.glossary-term p strong {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}

.glossary-term p:not(:first-child),
.glossary-term p:only-child {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  text-align: left;
}

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

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

.dos-donts > div {
  padding: 1.5rem;
}

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

.dos-donts > div p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  margin-bottom: 0.75rem;
}

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

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

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

.dos-donts > div li {
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-align: left;
  color: var(--color-text);
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.dos-donts > div:first-child li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--color-green);
  font-weight: 700;
}

.dos-donts > div:last-child li::before {
  content: '-';
  position: absolute;
  left: 0;
  color: var(--color-red);
  font-weight: 700;
}

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

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

.pre-game-checklist > p strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.75rem;
}

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

.pre-game-checklist li {
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-align: left;
  color: var(--color-text);
  position: relative;
  padding-left: 0.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

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

/* --- at-a-glance --- */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 1.5rem 0;
  background: var(--color-surface);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

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

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

.at-a-glance > div p {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.25rem;
  line-height: 1.5;
}

.at-a-glance > div p strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.35rem;
}

.at-a-glance > div p:not(:first-child) {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

@media (max-width: 700px) {
  .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;
  }
}

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

.worked-example p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  line-height: 1.65;
}

.worked-example p strong {
  font-family: var(--font-display);
  font-weight: 700;
}

.worked-example p code,
.worked-example span {
  font-family: var(--font-mono);
  font-weight: 700;
}

.worked-example hr {
  border: none;
  border-top: 1px dashed var(--color-border);
  margin: 1rem 0;
}

.worked-example p:last-child {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--color-accent);
  font-size: 1rem;
}

/* --- section-bridge --- */
.section-bridge {
  text-align: center;
  margin: 1.5rem 0;
  color: var(--color-accent);
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1rem;
  position: relative;
  padding: 0 2rem;
}

.section-bridge::before,
.section-bridge::after {
  content: '---';
  font-style: normal;
  color: var(--color-border);
  letter-spacing: 0.3em;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.section-bridge::before {
  left: 0;
}

.section-bridge::after {
  right: 0;
}

.section-bridge p {
  text-align: center;
  margin-bottom: 0;
  color: var(--color-accent);
}

/* ============================================
   5. Hero Section
   ============================================ */
[data-content="hero"] {
  max-width: none;
  padding: 0;
  margin-bottom: var(--section-gap);
  background: radial-gradient(ellipse at 50% 60%, rgba(0,135,90,0.15) 0%, rgba(28,28,32,0) 70%), var(--color-hero-bg);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(3rem, 8vw, 6rem) 1.5rem clamp(2rem, 5vw, 4rem);
  text-align: center;
  position: relative;
}

[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__label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
  display: block;
}

[data-content="hero"] h1 {
  color: #FFFFFF;
  max-width: 800px;
  margin-bottom: 1.25rem;
}

@media (prefers-color-scheme: dark) {
  [data-content="hero"] h1 {
    color: #E8E6E1;
  }
}

.hero__subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1rem, 1.2vw + 0.4rem, 1.25rem);
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

@media (prefers-color-scheme: dark) {
  .hero__subtitle {
    color: rgba(232,230,225,0.75);
  }
}

.hero__divider {
  width: 60px;
  border: none;
  border-bottom: 2px solid var(--color-accent);
  margin: 0 auto 1.25rem;
}

.hero__meta {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (prefers-color-scheme: dark) {
  .hero__meta {
    color: rgba(232,230,225,0.5);
  }
}

.hero__badge {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}

[data-content="hero"] figure {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  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: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.75rem;
}

@media (prefers-color-scheme: dark) {
  [data-content="hero"] figcaption {
    color: rgba(232,230,225,0.4);
  }
}

/* ============================================
   6. Table of Contents (Vertical list)
   ============================================ */
[data-content="toc"] {
  margin-bottom: var(--section-gap);
}

.toc__title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-secondary);
  margin-bottom: 1.25rem;
}

.toc__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.toc__list > li {
  margin-bottom: 0.5rem;
}

.toc__list > li > a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-text);
  transition: color 0.2s ease;
}

.toc__list > li > a:hover {
  color: var(--color-accent);
}

.toc__sublist {
  list-style: none;
  padding-left: 1.25rem;
  margin-top: 0.35rem;
  margin-bottom: 0.25rem;
}

.toc__sublist li {
  margin-bottom: 0.3rem;
}

.toc__sublist a {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  text-decoration: none;
  color: var(--color-text-secondary);
  transition: color 0.2s ease;
}

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

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

summary {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.2vw + 0.3rem, 1.15rem);
  font-weight: 700;
  padding: 1.25rem 2rem 1.25rem 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  color: var(--color-text);
  transition: color 0.2s ease;
  text-align: left;
}

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

summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-accent);
  transition: transform 0.3s ease;
}

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

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

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

::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: clip;
  content-visibility: hidden;
}

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

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

details div {
  padding-bottom: 1.25rem;
}

details div p {
  font-size: 0.95rem;
  text-align: left;
  color: var(--color-text);
  line-height: 1.7;
}

/* ============================================
   8. Buttons
   ============================================ */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 0.6rem 1.5rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--color-accent);
  color: #FFFFFF;
  transform: translateY(-1px);
}

@media (prefers-color-scheme: dark) {
  .btn:hover {
    color: #141416;
  }
}

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

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--color-text-secondary);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 0.5rem 0.75rem;
  transition: opacity 0.2s ease, color 0.2s ease;
  z-index: 10;
  opacity: 0.7;
}

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


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

  [data-content="hero"] {
    padding: clamp(2rem, 6vw, 4rem) 1rem clamp(1.5rem, 4vw, 3rem);
  }

  .at-a-glance {
    grid-template-columns: 1fr;
  }

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

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

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

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
  }
}

/* =========================================
   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 Base Styles */
.site-footer {
    background-color: #18181b; /* Dark zinc background */
    color: #a1a1aa; /* Light zinc text */
    padding: 60px 20px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border-top: 1px solid #27272a;
}

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

/* Full-width Disclaimer */
.footer-disclaimer {
    font-size: 0.85rem;
    line-height: 1.6;
    border-bottom: 1px solid #27272a;
    padding-bottom: 30px;
    margin-bottom: 40px;
    color: #71717a;
    text-align: justify;
}

.footer-disclaimer a {
    color: #10b981; /* Emerald green accent */
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-disclaimer a:hover {
    color: #34d399;
    text-decoration: underline;
}

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

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

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

/* Headings */
.footer-heading {
    color: #f4f4f5;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase; /* Adds a bit of formal "bonus terms" structure */
}

/* Lists and Links */
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

/* Small square bullet point for list items */
.footer-list li::before {
    content: "■";
    color: #3f3f46;
    margin-right: 10px;
    font-size: 0.6rem;
}

.footer-wp-menu li::before {
    display: none;
}

.footer-column a {
    color: #a1a1aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #10b981; /* Emerald green hover */
}

/* Bottom Copyright Bar */
.footer-bottom {
    border-top: 1px solid #27272a;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #71717a;
}

.footer-bottom p {
  text-align: center;
  color: #e8f2ef;
}

/* Back to Top Button Styling */
.back-to-top {
    display: block;
    width: max-content;
    margin: 0 auto 30px;
    padding: 8px 16px;
    background-color: #27272a;
    color: #e4e4e7;
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.back-to-top:hover {
    background-color: #10b981;
    color: #ffffff;
}

html, body {
  overflow-x: hidden;
}