/*
Theme Name: Monarch Butterfly Facts
Theme URI: https://monarchbutterflyfacts.com/
Author: Monarch Butterfly Facts
Author URI: https://monarchbutterflyfacts.com/
Description: A polished, educational one-page WordPress theme about monarch butterflies. Features sections on anatomy, life cycle, migration, defenses, conservation, surprising facts, interactive quiz, FAQ, glossary, and sources. Designed for secondary school students and curious adults.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: monarch-butterfly-facts
Tags: one-page, educational, nature, butterfly, responsive, custom-theme
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sage: #E8EDE4;
  --sage-light: #F0F4EC;
  --cream: #FFF8ED;
  --teal: #2A7C6F;
  --teal-dark: #1A5C52;
  --amber: #D4872C;
  --amber-light: #E8A84C;
  --rose: #C45B5B;
  --foreground: #2C2416;
  --muted-fg: #6B7280;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 0.65rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--foreground);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 135, 44, 0.4); }
  50% { box-shadow: 0 0 20px 6px rgba(212, 135, 44, 0.15); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes slideDown {
  from { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; }
  to { opacity: 1; max-height: 500px; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-pulse-glow { animation: pulseGlow 2s ease-in-out infinite; }
.animate-bounce { animation: bounce 1.5s ease-in-out infinite; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: all 0.5s ease;
  padding: 1rem 0;
}
.navbar.scrolled {
  background: rgba(255, 248, 237, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  padding: 0.5rem 0;
}
.navbar .nav-inner { display: flex; align-items: center; justify-content: space-between; }
.navbar .brand { display: flex; align-items: center; gap: 0.5rem; }
.navbar .brand-text {
  font-size: 1.125rem; font-weight: 700; font-family: var(--font-display);
  color: white; transition: color 0.3s;
}
.navbar.scrolled .brand-text { color: var(--teal-dark); }
.navbar .nav-links { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 768px) { .navbar .nav-links { display: flex; } }
.navbar .nav-links a {
  padding: 0.5rem 0.75rem; border-radius: 0.5rem; font-size: 0.875rem;
  font-weight: 600; transition: all 0.3s; color: rgba(255,255,255,0.9);
}
.navbar .nav-links a:hover { background: rgba(212,135,44,0.15); color: white; }
.navbar.scrolled .nav-links a { color: var(--teal-dark); }
.navbar.scrolled .nav-links a:hover { color: var(--amber); }

/* Mobile hamburger */
.hamburger { display: block; padding: 0.5rem; background: none; border: none; cursor: pointer; }
@media (min-width: 768px) { .hamburger { display: none; } }
.hamburger span {
  display: block; width: 1.5rem; height: 2px; background: white;
  transition: all 0.3s; margin: 5px 0;
}
.navbar.scrolled .hamburger span { background: var(--teal-dark); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none; background: rgba(255,248,237,0.95); backdrop-filter: blur(12px);
  border-top: 1px solid var(--sage); margin-top: 0.5rem; padding: 1rem;
}
.mobile-menu.open { display: block; animation: fadeIn 0.3s ease; }
.mobile-menu a {
  display: block; padding: 0.75rem 1rem; border-radius: 0.5rem;
  color: var(--teal-dark); font-weight: 600; transition: background 0.2s;
}
.mobile-menu a:hover { background: rgba(212,135,44,0.1); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  justify-content: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.2), rgba(0,0,0,0.6));
}
.hero-content {
  position: relative; z-index: 10; text-align: center; padding: 0 1rem; max-width: 56rem; margin: 0 auto;
  animation: fadeInUp 1s ease 0.3s both;
}
.hero-content .subtitle {
  text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.875rem;
  font-weight: 600; color: var(--amber-light); margin-bottom: 1rem;
}
.hero-content h1 {
  font-size: clamp(2.5rem, 8vw, 5rem); font-weight: 700; color: white;
  line-height: 1.1; margin-bottom: 1.5rem;
}
.hero-content h1 .accent { color: var(--amber-light); }
.hero-content .desc {
  font-size: clamp(1rem, 2.5vw, 1.25rem); color: rgba(255,255,255,0.85);
  max-width: 42rem; margin: 0 auto 2.5rem; line-height: 1.6;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(212,135,44,0.9); color: white; font-weight: 700;
  padding: 1rem 2rem; border-radius: 9999px; transition: all 0.3s;
  animation: fadeIn 0.8s ease 1.2s both;
}
.hero-cta:hover { background: var(--amber); transform: scale(1.05); }
.hero-cta svg { animation: bounce 1.5s ease-in-out infinite; }
.hero-bottom-gradient {
  position: absolute; bottom: 0; left: 0; right: 0; height: 8rem;
  background: linear-gradient(to top, var(--sage), transparent);
}

/* ===== WAVE DIVIDER ===== */
.wave-divider { width: 100%; overflow: hidden; line-height: 0; }
.wave-divider svg { width: 100%; height: 60px; }
@media (min-width: 640px) { .wave-divider svg { height: 80px; } }
@media (min-width: 1024px) { .wave-divider svg { height: 100px; } }

/* ===== SECTION STYLES ===== */
.section { padding: 5rem 0; }
@media (min-width: 640px) { .section { padding: 7rem 0; } }
.section.bg-sage { background: var(--sage); }
.section.bg-cream { background: var(--cream); }

.section-heading { text-align: center; margin-bottom: 2.5rem; }
@media (min-width: 640px) { .section-heading { margin-bottom: 3.5rem; } }
.section-heading .icon-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; border-radius: 9999px;
  background: rgba(212,135,44,0.15); color: var(--amber); margin-bottom: 1rem;
}
.section-heading h2 {
  font-size: clamp(1.875rem, 5vw, 3rem); font-weight: 700;
  color: var(--teal-dark); letter-spacing: -0.025em; margin-bottom: 0.75rem;
}
.section-heading p {
  font-size: clamp(1rem, 2.5vw, 1.25rem); color: var(--muted-fg);
  max-width: 42rem; margin: 0 auto; line-height: 1.6;
}

/* ===== CARDS ===== */
.card {
  border-radius: 1rem; padding: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid rgba(232,237,228,0.5);
}
.card.bg-cream { background: var(--cream); }
.card.bg-sage-light { background: var(--sage-light); }
.card-hover { transition: all 0.3s; }
.card-hover:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); transform: translateY(-4px); }

/* ===== STAT BOXES ===== */
.stat-box { text-align: center; background: var(--cream); border-radius: 1rem; padding: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.stat-box .value { font-size: clamp(1.25rem, 3vw, 1.5rem); font-weight: 700; color: var(--amber); font-family: var(--font-display); }
.stat-box .label { font-size: 0.75rem; color: var(--teal); margin-top: 0.25rem; font-weight: 500; }

.stat-counter { text-align: center; }
.stat-counter .value { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; color: var(--amber); font-family: var(--font-display); }
.stat-counter .label { font-size: clamp(0.75rem, 1.5vw, 1rem); color: var(--teal); margin-top: 0.5rem; font-weight: 500; }

/* ===== FEATURE CARDS (Anatomy) ===== */
.feature-row { display: flex; flex-direction: column; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .feature-row { flex-direction: row; } .feature-row.reverse { flex-direction: row-reverse; } }
.feature-row .image-col, .feature-row .text-col { width: 100%; }
@media (min-width: 1024px) { .feature-row .image-col, .feature-row .text-col { width: 50%; } }
.feature-row .image-col img {
  width: 100%; height: 16rem; object-fit: cover; border-radius: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: transform 0.7s;
}
@media (min-width: 640px) { .feature-row .image-col img { height: 20rem; } }
.feature-row .image-col img:hover { transform: scale(1.05); }
.feature-row .text-col h3 { font-size: clamp(1.25rem, 3vw, 1.875rem); font-weight: 700; color: var(--teal-dark); margin-bottom: 1rem; }
.feature-row .text-col p { font-size: clamp(0.875rem, 2vw, 1.125rem); color: rgba(44,36,22,0.8); line-height: 1.6; }

/* ===== DID YOU KNOW BOX ===== */
.did-you-know {
  background: var(--cream); border-radius: 1.5rem; padding: 1.5rem 2rem;
  max-width: 48rem; margin: 3.5rem auto 0; box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid var(--sage);
}
.did-you-know .title { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; color: var(--teal-dark); margin-bottom: 0.5rem; }
.did-you-know p { color: rgba(44,36,22,0.8); line-height: 1.6; }

/* ===== GRID LAYOUTS ===== */
.grid-2 { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.grid-3 { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ===== HERO IMAGE OVERLAY CARDS ===== */
.hero-image-card {
  position: relative; border-radius: 1.5rem; overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15); margin-bottom: 4rem; max-width: 64rem; margin-left: auto; margin-right: auto;
}
.hero-image-card img { width: 100%; height: 16rem; object-fit: cover; }
@media (min-width: 640px) { .hero-image-card img { height: 24rem; } }
.hero-image-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}
.hero-image-card .overlay-content {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem 2rem;
}
@media (min-width: 640px) { .hero-image-card .overlay-content { padding: 2rem 2.5rem; } }
.hero-image-card .overlay-content h3 {
  color: white; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.125rem, 3vw, 1.5rem); margin-bottom: 0.25rem;
}
.hero-image-card .overlay-content p { color: rgba(255,255,255,0.8); font-size: clamp(0.75rem, 2vw, 1rem); }

/* ===== TIMELINE (Life Cycle) ===== */
.timeline { position: relative; max-width: 56rem; margin: 0 auto; }
@media (min-width: 1024px) {
  .timeline::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
    width: 2px; background: var(--sage); transform: translateX(-50%);
  }
}
.timeline-item { display: flex; flex-direction: column; gap: 1.5rem; align-items: center; margin-bottom: 3rem; }
@media (min-width: 1024px) { .timeline-item { flex-direction: row; } .timeline-item.reverse { flex-direction: row-reverse; } }
.timeline-item .content-side, .timeline-item .image-side { width: 100%; }
@media (min-width: 1024px) { .timeline-item .content-side, .timeline-item .image-side { width: 45%; } }
.timeline-item .dot-side {
  display: none; width: 10%; align-items: center; justify-content: center;
}
@media (min-width: 1024px) { .timeline-item .dot-side { display: flex; } }
.timeline-item .dot {
  width: 1rem; height: 1rem; border-radius: 9999px; background: var(--amber);
  border: 4px solid var(--cream); box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.timeline-item .image-side img {
  width: 100%; height: 12rem; object-fit: cover; border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); transition: transform 0.7s;
}
@media (min-width: 640px) { .timeline-item .image-side img { height: 14rem; } }
.timeline-item .image-side img:hover { transform: scale(1.05); }
.stage-card { border-radius: 1rem; padding: 1.5rem; border: 1px solid rgba(232,237,228,0.5); }
.stage-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.stage-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 9999px;
  background: var(--amber); color: white; font-weight: 700; font-size: 0.875rem;
}
.stage-header h3 { font-size: 1.25rem; font-weight: 700; color: var(--teal-dark); }
.stage-header .duration { font-size: 0.75rem; color: var(--amber); font-weight: 600; }
.stage-card p { color: rgba(44,36,22,0.8); line-height: 1.6; font-size: clamp(0.8125rem, 1.5vw, 1rem); }

/* ===== NAVIGATION BOX (Migration) ===== */
.nav-box {
  background: var(--cream); border-radius: 1.5rem; padding: 1.5rem 2rem;
  max-width: 56rem; margin: 0 auto; box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid rgba(232,237,228,0.5);
}
.nav-box h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--teal-dark); margin-bottom: 1rem; }
.nav-box h4 { font-weight: 700; color: var(--amber); margin-bottom: 0.5rem; }
.nav-box p { color: rgba(44,36,22,0.8); font-size: 0.875rem; line-height: 1.6; }

/* ===== DEFENSE CARDS ===== */
.defense-card .icon-circle {
  width: 3rem; height: 3rem; border-radius: 9999px;
  background: rgba(212,135,44,0.15); display: flex; align-items: center;
  justify-content: center; margin-bottom: 1rem; color: var(--amber);
}
.defense-card h3 { font-size: 1.125rem; font-weight: 700; color: var(--teal-dark); margin-bottom: 0.75rem; }
.defense-card .phonetic { font-size: 0.75rem; font-style: italic; color: rgba(212,135,44,0.9); font-weight: 500; margin-bottom: 0.75rem; line-height: 1.4; }
.defense-card .phonetic .word { font-weight: 600; font-style: normal; letter-spacing: 0.05em; }
.defense-card p { color: rgba(44,36,22,0.8); font-size: 0.875rem; line-height: 1.6; }

/* ===== CONSERVATION STATUS CARDS ===== */
.status-card { text-align: center; }
.status-card .big-num { font-size: 2.5rem; font-weight: 700; font-family: var(--font-display); margin-bottom: 0.5rem; }
.status-card .big-num.danger { color: var(--rose); }
.status-card .big-num.warning { color: var(--amber); }
.status-card p { font-size: 0.875rem; color: rgba(44,36,22,0.8); }

/* ===== HOW TO HELP ===== */
.help-item { display: flex; gap: 1rem; }
.help-item .icon-sm {
  flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: 9999px;
  background: rgba(212,135,44,0.15); display: flex; align-items: center;
  justify-content: center; color: var(--amber);
}
.help-item h4 { font-weight: 700; color: var(--teal-dark); margin-bottom: 0.25rem; }
.help-item p { font-size: 0.875rem; color: rgba(44,36,22,0.8); line-height: 1.6; }

/* ===== SURPRISING FACTS ===== */
.fact-card { padding: 1.5rem; height: 100%; }
.fact-card .emoji { font-size: 1.875rem; margin-bottom: 0.75rem; }
.fact-card h3 { font-size: 1.125rem; font-weight: 700; color: var(--teal-dark); margin-bottom: 0.5rem; }
.fact-card p { font-size: 0.875rem; color: rgba(44,36,22,0.8); line-height: 1.6; }

/* ===== QUIZ ===== */
.quiz-progress { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.quiz-progress .bar { flex: 1; height: 0.5rem; background: var(--sage-light); border-radius: 9999px; overflow: hidden; }
.quiz-progress .bar-fill { height: 100%; background: var(--amber); border-radius: 9999px; transition: width 0.5s ease; }
.quiz-progress .count { font-size: 0.875rem; font-weight: 600; color: var(--teal); flex-shrink: 0; }

.quiz-card { background: var(--cream); border-radius: 1.5rem; padding: 1.5rem 2rem; box-shadow: 0 4px 12px rgba(0,0,0,0.08); border: 1px solid rgba(232,237,228,0.5); margin-bottom: 1rem; }
@media (min-width: 640px) { .quiz-card { padding: 2rem; } }
.quiz-card .question { font-family: var(--font-display); font-size: clamp(1.125rem, 2.5vw, 1.25rem); font-weight: 700; color: var(--teal-dark); line-height: 1.4; margin-bottom: 1.5rem; }

.quiz-option {
  width: 100%; text-align: left; padding: 0.875rem 1.25rem; border-radius: 0.75rem;
  border: 2px solid rgba(232,237,228,0.5); font-weight: 500; font-size: clamp(0.8125rem, 1.5vw, 1rem);
  transition: all 0.2s; display: flex; align-items: center; gap: 0.75rem;
  background: var(--sage-light); color: var(--teal-dark); cursor: pointer; margin-bottom: 0.75rem;
  font-family: var(--font-body);
}
.quiz-option:hover:not(:disabled) { border-color: rgba(212,135,44,0.6); background: rgba(212,135,44,0.05); }
.quiz-option:disabled { cursor: default; }
.quiz-option .letter {
  flex-shrink: 0; width: 1.75rem; height: 1.75rem; border-radius: 9999px;
  border: 2px solid currentColor; display: flex; align-items: center;
  justify-content: center; font-size: 0.75rem; font-weight: 700; transition: all 0.2s;
}
.quiz-option.correct { background: #f0fdf4; border-color: #4ade80; color: #166534; }
.quiz-option.correct .letter { border-color: #22c55e; background: #22c55e; color: white; }
.quiz-option.wrong { background: #fef2f2; border-color: #f87171; color: #991b1b; }
.quiz-option.wrong .letter { border-color: #ef4444; background: #ef4444; color: white; }
.quiz-option.dimmed { background: rgba(240,244,236,0.6); border-color: rgba(232,237,228,0.3); color: rgba(44,36,22,0.5); }

.quiz-feedback {
  margin-top: 1.25rem; border-radius: 0.75rem; padding: 1rem; font-size: 0.875rem;
  line-height: 1.6; animation: fadeInUp 0.4s ease;
}
.quiz-feedback.correct { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.quiz-feedback.wrong { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.quiz-feedback .fb-title { font-weight: 700; margin-bottom: 0.25rem; }

.btn-amber {
  background: var(--amber); color: white; font-weight: 700; padding: 0.75rem 2rem;
  border-radius: 9999px; font-size: 0.875rem; border: none; cursor: pointer;
  transition: all 0.2s; box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  font-family: var(--font-body);
}
.btn-amber:hover { filter: brightness(0.95); transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,0.15); }
.btn-teal {
  background: var(--teal); color: white; font-weight: 700; padding: 0.875rem 2.5rem;
  border-radius: 9999px; font-size: 1rem; border: none; cursor: pointer;
  transition: all 0.2s; box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  font-family: var(--font-body);
}
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,0.15); }

.quiz-results { text-align: center; }
.quiz-results .score { font-size: clamp(3rem, 8vw, 4.5rem); font-weight: 700; color: var(--amber); font-family: var(--font-display); margin-bottom: 0.5rem; }
.quiz-results .message { font-size: clamp(1.125rem, 2.5vw, 1.25rem); font-weight: 700; font-family: var(--font-display); margin-bottom: 1.5rem; }
.quiz-results .message.color-amber { color: var(--amber); }
.quiz-results .message.color-teal { color: var(--teal); }
.quiz-summary-item {
  display: flex; align-items: flex-start; gap: 0.75rem; border-radius: 0.75rem;
  padding: 0.75rem 1rem; font-size: 0.875rem; text-align: left; margin-bottom: 0.5rem;
}
.quiz-summary-item.correct { background: #f0fdf4; color: #166534; }
.quiz-summary-item.wrong { background: #fef2f2; color: #991b1b; }
.quiz-summary-item .icon { flex-shrink: 0; font-weight: 700; }

/* ===== FAQ ACCORDION ===== */
.faq-item {
  background: var(--sage-light); border-radius: 0.75rem; border: 1px solid rgba(232,237,228,0.5);
  padding: 0 1.25rem; margin-bottom: 0.75rem; box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s; overflow: hidden;
}
@media (min-width: 640px) { .faq-item { padding: 0 1.5rem; } }
.faq-item:hover { box-shadow: 0 4px 8px rgba(0,0,0,0.08); }
.faq-trigger {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 1.25rem 0; background: none; border: none; cursor: pointer;
  font-size: 1rem; font-weight: 700; color: var(--teal-dark); text-align: left;
  font-family: var(--font-body); line-height: 1.4;
}
.faq-trigger svg { flex-shrink: 0; width: 1.25rem; height: 1.25rem; transition: transform 0.3s; color: var(--muted-fg); margin-left: 1rem; }
.faq-item.open .faq-trigger svg { transform: rotate(180deg); }
.faq-content {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease;
  color: rgba(44,36,22,0.8); line-height: 1.6; font-size: 0.925rem;
}
.faq-item.open .faq-content { max-height: 500px; padding-bottom: 1.25rem; }

/* ===== AFFILIATE SECTION ===== */
.affiliate-card {
  display: block; border-radius: 1rem; padding: 1.5rem;
  border: 1px solid rgba(232,237,228,0.5); background: var(--cream);
  transition: all 0.3s; height: 100%;
}
.affiliate-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); transform: translateY(-4px); }
.affiliate-card .type-badge {
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem;
}
.affiliate-card .type-badge .icon-sm {
  width: 2.5rem; height: 2.5rem; border-radius: 9999px;
  background: rgba(212,135,44,0.15); display: flex; align-items: center;
  justify-content: center; color: var(--amber);
}
.affiliate-card .type-badge span { font-size: 0.75rem; font-weight: 600; color: var(--amber); text-transform: uppercase; letter-spacing: 0.05em; }
.affiliate-card h3 { font-size: 1.125rem; font-weight: 700; color: var(--teal-dark); margin-bottom: 0.5rem; transition: color 0.3s; }
.affiliate-card:hover h3 { color: var(--amber); }
.affiliate-card .desc { font-size: 0.875rem; color: rgba(44,36,22,0.8); line-height: 1.6; margin-bottom: 1rem; }
.affiliate-card .cta { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.875rem; font-weight: 600; color: var(--amber); }
.affiliate-card .cta svg { width: 0.875rem; height: 0.875rem; }

/* ===== SOURCES ===== */
.source-item {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--cream); border-radius: 0.75rem; padding: 1rem 1.25rem;
  border: 1px solid rgba(232,237,228,0.5); scroll-margin-top: 6rem; margin-bottom: 0.75rem;
}
.source-item .num {
  flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 9999px;
  background: rgba(212,135,44,0.15); display: flex; align-items: center;
  justify-content: center; font-size: 0.75rem; font-weight: 700; color: var(--amber);
}
.source-item a { font-weight: 600; color: var(--teal-dark); transition: color 0.2s; font-size: clamp(0.8125rem, 1.5vw, 1rem); word-break: break-word; }
.source-item a:hover { color: var(--amber); }
.source-item a svg { display: inline; width: 0.875rem; height: 0.875rem; margin-left: 0.25rem; vertical-align: middle; }
.source-item .desc { font-size: clamp(0.75rem, 1.2vw, 0.875rem); color: var(--muted-fg); margin-top: 0.125rem; }

/* Inline citation */
sup.cite a {
  color: var(--amber); font-size: 0.65rem; font-weight: 700;
  text-decoration: none; margin-left: 2px;
}
sup.cite a:hover { text-decoration: underline; }

/* ===== GLOSSARY ===== */
.glossary-card {
  background: var(--sage-light); border-radius: 0.75rem; padding: 1rem 1.25rem;
  border: 1px solid rgba(232,237,228,0.5);
}
@media (min-width: 640px) { .glossary-card { padding: 1.25rem; } }
.glossary-card .term-row { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.25rem; }
.glossary-card h3 { font-weight: 700; color: var(--teal-dark); font-size: 1rem; font-family: var(--font-body); }
.glossary-card .phonetic { font-size: 0.75rem; color: rgba(212,135,44,0.8); font-style: italic; font-weight: 500; }
.glossary-card p { font-size: 0.875rem; color: rgba(44,36,22,0.75); line-height: 1.6; }

/* ===== E-E-A-T BANNER ===== */
.eeat-banner {
  max-width: 56rem; margin: 0 auto 1.5rem; display: flex; gap: 1rem; align-items: flex-start;
  background: rgba(42,124,111,0.05); border: 1px solid rgba(42,124,111,0.2);
  border-radius: 1rem; padding: 1.25rem 1.5rem;
}
.eeat-banner .icon-sm {
  flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: 9999px;
  background: rgba(42,124,111,0.1); display: flex; align-items: center;
  justify-content: center; color: var(--teal); margin-top: 2px;
}
.eeat-banner h3 { font-weight: 700; color: var(--teal-dark); font-size: 0.875rem; margin-bottom: 0.25rem; font-family: var(--font-body); }
.eeat-banner p { font-size: 0.875rem; color: rgba(44,36,22,0.75); line-height: 1.6; }
.eeat-banner a { color: var(--amber); font-weight: 600; }
.eeat-banner a:hover { text-decoration: underline; }

/* ===== ADSENSE PLACEHOLDER ===== */
.adsense-placeholder {
  margin: 2rem auto 3rem; max-width: 56rem; border: 2px dashed var(--sage);
  border-radius: 0.75rem; padding: 1.5rem; text-align: center;
  background: rgba(240,244,236,0.5);
}
.adsense-placeholder .title { font-size: 0.875rem; color: var(--muted-fg); font-weight: 500; }
.adsense-placeholder .sub { font-size: 0.75rem; color: rgba(107,114,128,0.6); margin-top: 0.25rem; }

/* ===== FOOTER ===== */
.site-footer { background: var(--teal-dark); color: rgba(255,255,255,0.8); padding: 3rem 0 4rem; }
@media (min-width: 640px) { .site-footer { padding: 4rem 0; } }
.site-footer .footer-inner { max-width: 56rem; margin: 0 auto; text-align: center; }
.site-footer .emoji { font-size: 1.875rem; margin-bottom: 1rem; }
.site-footer h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 700; color: white; margin-bottom: 1rem; }
.site-footer .desc { color: rgba(255,255,255,0.7); max-width: 32rem; margin: 0 auto 2rem; line-height: 1.6; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 2.5rem; }
.footer-links a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.1); padding: 0.625rem 1.25rem;
  border-radius: 9999px; font-size: 0.875rem; font-weight: 600;
  color: rgba(255,255,255,0.9); transition: background 0.2s;
}
.footer-links a:hover { background: rgba(255,255,255,0.2); }
.footer-links a svg { width: 0.875rem; height: 0.875rem; }
.site-footer .copyright { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; font-size: 0.75rem; color: rgba(255,255,255,0.4); }

/* ===== SVG ICONS (inline) ===== */
.icon { display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 1.75rem; height: 1.75rem; }
.icon-sm { width: 1.25rem; height: 1.25rem; }

/* ===== IMAGE CAPTION ===== */
.img-caption { text-align: center; font-size: 0.875rem; color: var(--muted-fg); margin-top: 0.75rem; font-style: italic; max-width: 32rem; margin-left: auto; margin-right: auto; }

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.max-w-2xl { max-width: 42rem; margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 56rem; margin-left: auto; margin-right: auto; }
.max-w-5xl { max-width: 64rem; margin-left: auto; margin-right: auto; }
.max-w-6xl { max-width: 72rem; margin-left: auto; margin-right: auto; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mt-12 { margin-top: 3rem; }
.overflow-hidden { overflow: hidden; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.shadow-md { box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.shadow-lg { box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
strong { font-weight: 700; }
em { font-style: italic; }
