/* ── LUNA’S ECHO ── Global Styles ── */

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

:root {
  --navy:       #0a1628;
  --deep:       #0d1f3c;
  --card:       #0f2040;
  --teal:       #2ec4b6;
  --teal-light: #4fd1c5;
  --seafoam:    #a8dadc;
  --white:      #f0f4f8;
  --muted:      #7a9ab5;
  --text:       #d8e8f0;
  --border:     rgba(46,196,182,0.15);
  --border-hover: rgba(46,196,182,0.4);
}

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  line-height: 1.2;
}

a { color: var(--teal-light); text-decoration: none; }
a:hover { color: var(--white); }

/* ── NAVIGATION ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(10,22,40,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 600;
  color: var(--teal-light);
  text-decoration: none;
}

/* ── PROGRESS BAR ── */
.progress-bar-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 3px; background: rgba(46,196,182,0.1);
  pointer-events: none;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--seafoam));
  width: 0%; transition: width 0.1s linear;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--teal); color: var(--navy);
  padding: 0.85rem 2rem; border-radius: 100px;
  font-weight: 600; font-size: 0.95rem;
  transition: all 0.2s;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.btn-primary:hover {
  background: var(--teal-light); color: var(--navy);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.btn-secondary {
  display: inline-block;
  background: transparent; color: var(--white);
  padding: 0.85rem 2rem; border-radius: 100px;
  font-weight: 500; font-size: 0.95rem;
  border: 1px solid rgba(240,244,248,0.2);
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal-light); }

/* ── SECTION LABELS ── */
.section-label {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 0.75rem;
  display: block;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 1.25rem;
}

/* ── FOOTER ── */
.footer {
  background: #060f1e;
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--muted); font-size: 0.85rem;
}
.footer span { color: var(--teal); }

/* ── ARTICLE CONTENT ── */
.article-wrap { max-width: 680px; margin: 0 auto; padding: 4rem 2rem 8rem; }

.article-wrap p {
  font-size: 1.05rem; line-height: 1.85;
  color: var(--text); margin-bottom: 1.75rem;
}
.article-wrap h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem; font-weight: 600;
  color: var(--white);
  margin: 3rem 0 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.article-wrap > p:first-of-type::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 4rem; font-weight: 700;
  float: left; line-height: 0.8;
  margin: 0.1em 0.1em 0 0;
  color: var(--teal-light);
}

/* ── PULL QUOTE ── */
.pullquote {
  margin: 2.5rem 0;
  padding: 1.75rem 2rem;
  border-left: 3px solid var(--teal);
  background: rgba(46,196,182,0.04);
  border-radius: 0 8px 8px 0;
}
.pullquote p {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem !important;
  font-style: italic;
  color: var(--seafoam) !important;
  line-height: 1.65 !important;
  margin-bottom: 0 !important;
}

/* ── AUDIO PLAYER ── */
.audio-block {
  margin: 2.5rem 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 1.5rem;
}
.audio-label {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 0.75rem;
}
.audio-title { font-size: 0.95rem; font-weight: 500; color: var(--white); margin-bottom: 1.25rem; }
.audio-player { display: flex; align-items: center; gap: 1rem; }
.play-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.2s, transform 0.15s;
}
.play-btn:hover { background: var(--teal-light); transform: scale(1.05); }
.play-icon {
  width: 0; height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid var(--navy);
  margin-left: 3px;
}
.audio-track { flex: 1; }
.audio-waveform {
  height: 32px; background: rgba(46,196,182,0.06);
  border-radius: 4px; margin-bottom: 0.4rem;
  display: flex; align-items: center; padding: 0 0.5rem; gap: 2px;
}
.wave-bar {
  flex: 1; border-radius: 2px;
  background: rgba(46,196,182,0.25);
  animation: wavePulse 1.5s ease-in-out infinite;
}
.wave-bar:nth-child(odd)  { animation-delay: 0.1s; }
.wave-bar:nth-child(3n)   { animation-delay: 0.3s; }
.wave-bar:nth-child(5n)   { animation-delay: 0.5s; }
@keyframes wavePulse { 0%,100%{transform:scaleY(0.3)} 50%{transform:scaleY(1)} }
.audio-time { font-size: 0.75rem; color: var(--muted); display: flex; justify-content: space-between; }

/* ── DIG DEEPER ── */
.dig-deeper {
  margin: 3rem 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 2rem;
}
.dig-deeper-label {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 0.75rem;
}
.dig-deeper p {
  font-size: 0.92rem !important; color: var(--muted) !important;
  line-height: 1.7 !important; margin-bottom: 1rem !important;
}
.dig-deeper p:last-child { margin-bottom: 0 !important; }

/* ── REFLECTION ── */
.reflection {
  margin: 3rem 0; padding: 2rem;
  border-radius: 12px;
  background: rgba(168,218,220,0.05);
  border: 1px solid rgba(168,218,220,0.2);
}
.reflection-label {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--seafoam); margin-bottom: 1rem;
}
.reflection p {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem !important; font-style: italic;
  color: var(--white) !important;
  line-height: 1.7 !important; margin-bottom: 0 !important;
}

/* ── CONSERVATION CONNECTION ── */
.conservation {
  margin: 3rem 0 0; padding: 1.5rem 2rem;
  border-radius: 0; border-left: 3px solid var(--teal);
  background: linear-gradient(135deg, rgba(46,196,182,0.08), rgba(46,196,182,0.03));
  border-radius: 0 8px 8px 0;
}
.conservation-label {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 0.6rem;
}
.conservation p { font-size: 0.92rem !important; color: var(--muted) !important; margin-bottom: 0 !important; line-height: 1.7 !important; }

/* ── LESSON NAV ── */
.lesson-nav {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  max-width: 680px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
}
.lesson-nav-btn {
  display: flex; flex-direction: column; gap: 0.3rem;
  text-decoration: none; padding: 1rem 1.5rem;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--card); transition: border-color 0.2s;
  max-width: 260px;
}
.lesson-nav-btn:hover { border-color: var(--border-hover); }
.lesson-nav-btn.next { text-align: right; }
.lesson-nav-label {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal);
}
.lesson-nav-title { font-size: 0.9rem; font-weight: 500; color: var(--white); }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .nav { padding: 1rem 1.25rem; }
  
  .article-wrap { padding: 3rem 1.25rem 6rem; }
  .lesson-nav { padding: 2rem 1.25rem; }
}

/* ══════════════════════════════════════════════
   OPEN TYPOGRAPHIC REFLECTION
   ══════════════════════════════════════════════ */

.reflection {
  margin: 4.5rem 0 3rem;
  padding: 0 0 0 2rem;
  background: none !important;
  border: none !important;
  border-left: 2px solid rgba(46,196,182,0.22) !important;
  border-radius: 0 !important;
}
.reflection-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.25rem;
}
.reflection p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem) !important;
  font-style: italic;
  color: var(--seafoam) !important;
  line-height: 1.65 !important;
  margin-bottom: 0 !important;
  font-weight: 400;
  max-width: 560px;
}

/* ─────────────────────────────────────────── */
/* ── PROGRESS TRACKING (added by Claude) ── */
/* ─────────────────────────────────────────── */

/* "Mark as complete" badge at the end of a lesson */
.lesson-complete-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 3rem auto 2rem;
  padding: 0.85rem 1.6rem;
  background: rgba(46,196,182,0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.lesson-complete-badge:hover {
  border-color: var(--border-hover);
  color: var(--teal-light);
}
.lesson-complete-badge .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  color: transparent;
  transition: all 0.25s;
}
.lesson-complete-badge.is-complete {
  background: rgba(46,196,182,0.12);
  border-color: var(--teal);
  color: var(--teal-light);
  cursor: default;
}
.lesson-complete-badge.is-complete .check {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--navy);
}
.lesson-complete-wrap {
  text-align: center;
  margin: 2rem auto 0;
  max-width: 760px;
  padding: 0 2rem;
}

/* Completed lesson rows on module index pages */
.lesson-row.is-complete {
  border-color: rgba(46,196,182,0.25);
  background: linear-gradient(90deg, rgba(46,196,182,0.04) 0%, var(--card) 60%);
}
.lesson-row.is-complete::before { opacity: 0.5; }
.lesson-complete-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem; height: 2.2rem;
  background: var(--teal);
  color: var(--navy);
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
}

/* Module-level progress strip (above lesson list on module index) */
.module-progress-strip {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.mps-text {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  min-width: 150px;
}
.mps-count {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
}
.mps-label {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.mps-bar {
  flex: 1;
  height: 6px;
  background: rgba(46,196,182,0.08);
  border-radius: 100px;
  overflow: hidden;
}
.mps-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--seafoam));
  border-radius: 100px;
  transition: width 0.4s ease;
  box-shadow: 0 0 8px rgba(46,196,182,0.4);
}
@media (max-width: 520px) {
  .module-progress-strip { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .mps-bar { width: 100%; }
}

/* Per-module progress on landing page module cards */
.module-card-progress {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.mcp-bar {
  height: 4px;
  background: rgba(46,196,182,0.08);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.mcp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--seafoam));
  border-radius: 100px;
  transition: width 0.4s ease;
}
.mcp-text {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.module-card.locked .module-card-progress { display: none; }

/* ─────────────────────────────────────────── */
/* ── SITE PAGES: landing, lessons, sources ── */
/* ─────────────────────────────────────────── */

/* Top navigation with the two main buttons */
.site-nav { padding: 0.9rem 2.5rem; transition: background 0.3s, border-color 0.3s; }
.site-nav.is-transparent { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.site-nav .nav-logo { font-size: 1.05rem; color: var(--white); letter-spacing: 0.01em; }
.site-nav .nav-logo em { font-style: italic; font-weight: 400; color: var(--seafoam); }
.site-nav-links { display: flex; align-items: center; gap: 0.6rem; }
.site-nav-btn {
  display: inline-flex; align-items: center;
  padding: 0.5rem 1.25rem; border-radius: 100px;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.02em;
  color: var(--white); border: 1px solid rgba(240,244,248,0.22);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.site-nav-btn:hover { border-color: var(--teal); color: var(--teal-light); }
.site-nav-btn[aria-current="page"] { background: var(--teal); border-color: var(--teal); color: var(--navy); }
.site-nav-btn[aria-current="page"]:hover { color: var(--navy); background: var(--teal-light); }
@media (max-width: 700px) {
  .site-nav { padding: 0.75rem 1rem; }
  .site-nav .nav-logo { font-size: 0.95rem; }
  .site-nav-btn { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
}
/* Three buttons + logo on one line on small phones */
.site-nav .nav-logo, .site-nav-btn { white-space: nowrap; }
@media (max-width: 480px) {
  .site-nav { padding: 0.7rem 0.85rem; gap: 0.5rem; }
  .site-nav-links { gap: 0.35rem; }
  .site-nav-btn { padding: 0.35rem 0.7rem; font-size: 0.75rem; letter-spacing: 0; }
}
@media (max-width: 360px) {
  .site-nav-links { gap: 0.25rem; }
  .site-nav-btn { padding: 0.3rem 0.5rem; font-size: 0.72rem; }
  .site-nav .nav-logo { font-size: 0.84rem; }
}

/* Header used at the top of Lessons and Sources */
.page-header {
  padding: 10rem 2rem 4.5rem; text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(46,196,182,0.10), transparent 60%), #060f1e;
  border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 600; margin-bottom: 1rem; letter-spacing: -0.01em; }
.page-header p { max-width: 560px; margin: 0 auto; color: var(--muted); font-size: 1.05rem; font-weight: 300; }
@media (max-width: 700px) { .page-header { padding: 7.5rem 1rem 3rem; } }

/* Small ornamental divider (three dots) */
.ornament { display: flex; justify-content: center; gap: 0.5rem; margin: 0 auto 1.5rem; }
.ornament span { width: 4px; height: 4px; border-radius: 50%; background: var(--teal); opacity: 0.6; }

/* Shared site footer */
.site-footer {
  background: #060f1e; border-top: 1px solid var(--border);
  padding: 3.5rem 2rem 2.5rem; color: var(--muted); font-size: 0.85rem;
}
.site-footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap;
}
.site-footer .nav-logo { font-size: 1.1rem; color: var(--white); display: inline-block; margin-bottom: 0.5rem; }
.site-footer .nav-logo em { font-style: italic; font-weight: 400; color: var(--seafoam); }
.site-footer-links { display: flex; gap: 1.75rem; }
.site-footer-links a { color: var(--muted); }
.site-footer-links a:hover { color: var(--teal-light); }
.site-footer-small { max-width: 1100px; margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 0.75rem; opacity: 0.8; }

/* Text you still need to write yourself. Remove the class once it's filled in. */
.draft {
  outline: 1px dashed rgba(255,180,50,0.55); outline-offset: 6px;
  border-radius: 4px; color: #ffcf7a !important;
}

/* ─────────────────────────────────────────── */
/* ── MODULE OVERVIEW PAGES (module index.html files) ── */
/* ─────────────────────────────────────────── */
/* ── MODULE HERO ── */
.module-hero {
  padding: 9rem 2rem 5rem;
  text-align: center;
  background: linear-gradient(180deg, #060f1e 0%, var(--navy) 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.module-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
}
.module-tag-hero {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 1.25rem;
  background: rgba(46,196,182,0.08);
  border: 1px solid var(--border);
  padding: 0.35rem 1rem; border-radius: 100px;
}
.module-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700; color: var(--white);
  line-height: 1.15; max-width: 680px;
  margin: 0 auto 1.25rem;
}
.module-hero-desc {
  font-size: 1.05rem; font-weight: 300;
  color: var(--muted); max-width: 520px;
  margin: 0 auto 2.5rem; line-height: 1.7;
}
.module-meta-row {
  display: flex; align-items: center; justify-content: center;
  gap: 2rem; flex-wrap: wrap;
  color: var(--muted); font-size: 0.82rem;
}
.module-meta-row span { display: flex; align-items: center; gap: 0.35rem; }

/* ── LESSON LIST ── */
.lessons-section {
  max-width: 760px; margin: 0 auto;
  padding: 4rem 2rem 8rem;
}
.lessons-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; color: var(--white);
  margin-bottom: 0.5rem;
}
.lessons-intro {
  font-size: 0.92rem; color: var(--muted);
  margin-bottom: 2.5rem; line-height: 1.7;
}
.lesson-list { display: flex; flex-direction: column; gap: 1rem; }
.lesson-row {
  display: flex; align-items: center; gap: 1.5rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.5rem 1.75rem;
  text-decoration: none; transition: border-color 0.2s, transform 0.2s;
  position: relative;
}
.lesson-row:hover { border-color: var(--border-hover); transform: translateX(4px); }
.lesson-row::before {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--teal), var(--seafoam));
  border-radius: 14px 0 0 14px;
  opacity: 0; transition: opacity 0.2s;
}
.lesson-row:hover::before { opacity: 1; }
.lesson-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700;
  color: rgba(46,196,182,0.25);
  flex-shrink: 0; width: 2.5rem; text-align: center;
}
.lesson-info { flex: 1; }
.lesson-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 600;
  color: var(--white); margin-bottom: 0.35rem;
}
.lesson-info p {
  font-size: 0.87rem; color: var(--muted);
  line-height: 1.5; margin: 0;
}
.lesson-chips {
  display: flex; gap: 0.5rem; margin-top: 0.6rem; flex-wrap: wrap;
}
.chip {
  font-size: 0.7rem; font-weight: 500;
  color: var(--teal-light);
  background: rgba(46,196,182,0.07);
  padding: 0.2rem 0.6rem; border-radius: 100px;
}
.lesson-arrow { color: var(--muted); font-size: 1.1rem; flex-shrink: 0; }

/* start CTA */
.start-cta {
  margin-top: 3rem; padding-top: 3rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
}
.start-cta p { color: var(--muted); font-size: 0.9rem; max-width: 380px; line-height: 1.6; }

@media(max-width: 600px) {
  .lesson-num { display: none; }
}

/* ─────────────────────────────────────────── */
/* ── MODULE & LESSON PAGES: shared site nav ── */
/* ─────────────────────────────────────────── */
.nav-left { display: flex; align-items: center; gap: 1.25rem; min-width: 0; }
.nav-crumb {
  font-size: 0.8rem; color: var(--muted); white-space: nowrap;
  padding-left: 1.25rem; border-left: 1px solid var(--border);
}
.nav-crumb a { color: var(--seafoam); }
.nav-crumb a:hover { color: var(--white); }
@media (max-width: 600px) { .nav-crumb { display: none; } }

/* Quiet dot separators instead of emoji in meta rows */
 .module-meta-row { gap: 0 !important; }

.module-meta-row span + span::before { content: '·'; color: var(--teal); margin: 0 0.9rem; }

/* ─────────────────────────────────────────── */
/* ── SHARED BITS MOVED OUT OF INLINE STYLES ── */
/* ─────────────────────────────────────────── */
.site-footer .heart { color: var(--teal); }

/* Fixed waveform shape for the audio placeholders (20 bars) */
.wave-bar:nth-child(1){height:40%} .wave-bar:nth-child(2){height:70%} .wave-bar:nth-child(3){height:55%} .wave-bar:nth-child(4){height:80%}
.wave-bar:nth-child(5){height:45%} .wave-bar:nth-child(6){height:90%} .wave-bar:nth-child(7){height:60%} .wave-bar:nth-child(8){height:75%}
.wave-bar:nth-child(9){height:50%} .wave-bar:nth-child(10){height:85%} .wave-bar:nth-child(11){height:40%} .wave-bar:nth-child(12){height:65%}
.wave-bar:nth-child(13){height:55%} .wave-bar:nth-child(14){height:78%} .wave-bar:nth-child(15){height:48%} .wave-bar:nth-child(16){height:92%}
.wave-bar:nth-child(17){height:62%} .wave-bar:nth-child(18){height:70%} .wave-bar:nth-child(19){height:44%} .wave-bar:nth-child(20){height:80%}

/* Fact box (used in lessons) */
.fact-box {
  background: rgba(46,196,182,0.06); border: 1px solid var(--border);
  border-radius: 10px; padding: 1rem 1.25rem;
  font-size: 0.92rem; color: var(--seafoam);
  margin: 1.5rem 0; line-height: 1.7;
}
.fact-box strong { color: var(--teal); font-weight: 600; }

/* ─────────────────────────────────────────── */
/* ── LESSON PAGES (photo-led header) ── */
/* ─────────────────────────────────────────── */
.lhero {
  position: relative; min-height: 78vh; min-height: 78svh;
  display: flex; align-items: flex-end;
  padding: 8rem 2.5rem 3.5rem; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 30% 0%, rgba(8,32,70,0.85) 0%, rgba(1,4,12,0) 70%),
    linear-gradient(180deg, #020610 0%, #030c1a 55%, #061522 100%);
  border-bottom: 1px solid var(--border);
}
.lhero:not(.has-photo) { min-height: 56vh; }
.lhero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.lhero.has-photo::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(3,8,18,0.92) 0%, rgba(3,8,18,0.55) 35%, rgba(3,8,18,0.05) 70%),
    linear-gradient(to bottom, rgba(3,8,18,0.55) 0%, transparent 22%);
}
.lhero-content { position: relative; z-index: 2; max-width: 1100px; width: 100%; margin: 0 auto; }
.lhero-eyebrow {
  display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--white); border: 1px solid rgba(240,244,248,0.5); padding: 0.3rem 0.7rem; margin-bottom: 1.25rem;
}
.lhero h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.02;
  max-width: 16ch; margin-bottom: 1rem; text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.lhero-meta { font-size: 0.85rem; color: rgba(240,244,248,0.75); letter-spacing: 0.02em; }
.lhero-credit {
  position: absolute; z-index: 2; right: 2.5rem; bottom: 1.25rem;
  font-size: 0.7rem; color: rgba(240,244,248,0.55); letter-spacing: 0.03em;
}
.lhero-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 700px) {
  .lhero { padding: 7rem 1rem 3rem; min-height: 70vh; }
  .lhero-credit { right: 1rem; bottom: 0.75rem; }
}

/* Opening paragraph */
.article-wrap p.lede {
  font-family: 'Playfair Display', serif; font-size: clamp(1.25rem, 2.6vw, 1.5rem);
  line-height: 1.55; color: var(--white); margin-bottom: 2.5rem;
}
.article-wrap > p.lede:first-of-type::first-letter {
  float: none; font-size: inherit; font-weight: inherit; line-height: inherit; margin: 0; color: inherit;
}
.article-wrap h3 {
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400;
  font-size: 1.25rem; color: var(--seafoam); margin: 2.25rem 0 0.75rem;
}

/* Photos and diagrams inside a lesson */
.lesson-figure { margin: 3rem 0; }
.lesson-figure img { width: 100%; height: auto; display: block; border-radius: 4px; }
.lesson-figure figcaption {
  margin-top: 0.75rem; padding-left: 0.75rem; border-left: 2px solid var(--teal);
  font-size: 0.82rem; line-height: 1.55; color: var(--muted);
}
.lesson-figure .credit { color: rgba(122,154,181,0.75); white-space: nowrap; }
.lesson-figure .credit a { color: inherit; }
.lesson-figure.cutout img { background: #fff; padding: 1.5rem; border-radius: 12px; }
.lesson-figure.diagram img { border-radius: 12px; border: 1px solid var(--border); }
@media (min-width: 900px) {
  .lesson-figure, .feeding-compare, .table-wrap { margin-left: -6rem; margin-right: -6rem; }
}

/* Evolution timeline (Module 1, Lesson 1) */
.timeline { margin: 3rem 0; }
.timeline ol { list-style: none; position: relative; padding-left: 1.75rem; }
.timeline ol::before { content: ''; position: absolute; left: 5px; top: 0.4rem; bottom: 0.4rem; width: 1px; background: linear-gradient(var(--teal), rgba(46,196,182,0.15)); }
.timeline li { position: relative; padding-bottom: 1.6rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: calc(-1.75rem + 1px); top: 0.4rem; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(46,196,182,0.12); }
.tl-when { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.2rem; }
.tl-what { display: block; font-size: 0.92rem; color: var(--text); line-height: 1.7; }
.tl-what strong { display: block; font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 600; color: var(--white); }

/* Tables (Orca ecotypes, climate impacts) */
.table-title { font-style: normal !important; }
.table-wrap { margin: 1.5rem 0 3rem; overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.92rem; line-height: 1.55; min-width: 560px; }
.table-wrap th, .table-wrap td { padding: 0.8rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.table-wrap thead th { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); background: rgba(46,196,182,0.05); }
.table-wrap tbody th { font-family: 'Playfair Display', serif; font-weight: 600; color: var(--white); white-space: nowrap; }
.table-wrap td { color: var(--text); }
.table-wrap tbody tr:last-child th, .table-wrap tbody tr:last-child td { border-bottom: none; }

/* Lists, definitions, key-value lines */
.lesson-list { margin: 0 0 1.75rem 1.25rem; }
.lesson-list li { margin-bottom: 0.75rem; font-size: 1.05rem; line-height: 1.85; color: var(--text); }
.dig-deeper .lesson-list li, .conservation .lesson-list li { font-size: 0.92rem; line-height: 1.7; color: var(--muted); }
.lesson-list li::marker { color: var(--teal); }
.glossary {
  margin: -0.75rem 0 1.5rem; padding: 0.7rem 1rem; border-radius: 8px;
  background: rgba(168,218,220,0.05); font-size: 0.92rem; color: var(--muted); line-height: 1.7;
}
.glossary dfn { font-style: normal; font-weight: 600; color: var(--seafoam); margin-right: 0.25rem; }
.article-wrap p.kv { margin-bottom: 0.4rem; font-size: 0.95rem; }
.kv-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin-right: 0.4rem; }
.fact-box.stat strong { display: block; margin-bottom: 0.2rem; }
.fact-box strong { margin-right: 0.3rem; }

.audio-credit { font-size: 0.82rem !important; color: var(--muted) !important; margin: 1rem 0 0 !important; line-height: 1.55 !important; }
.audio-credit a { color: var(--seafoam); }
.lesson-sources-link { margin-top: 3rem !important; font-size: 0.92rem !important; }
.lesson-sources-link a { color: var(--seafoam); border-bottom: 1px solid rgba(168,218,220,0.3); }

/* Working audio player */
.audio-block .play-btn .play-icon { display: block; }
.audio-block.is-playing .play-icon {
  width: 12px; height: 14px; margin: 0; border: none;
  border-left: 4px solid var(--navy); border-right: 4px solid var(--navy);
}
.audio-block .wave-bar { animation-play-state: paused; transition: background 0.2s; }
.audio-block.is-playing .wave-bar { animation-play-state: running; }
.audio-block .wave-bar.is-played { background: var(--teal); }

/* Feeding style comparison (Filter feeding lesson) */
.feeding-compare { margin: 1.5rem 0 3rem; }
.fc-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.fc-tab {
  font: inherit; font-size: 0.82rem; font-weight: 500; cursor: pointer;
  padding: 0.45rem 1rem; border-radius: 100px;
  background: transparent; color: var(--muted); border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.fc-tab:hover { color: var(--white); border-color: var(--border-hover); }
.fc-tab.is-active { background: var(--teal); border-color: var(--teal); color: var(--navy); }
.fc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.fc-cards.is-single { grid-template-columns: 1fr; }
.fc-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.4rem; }
.fc-cards.is-single .fc-card { border-color: var(--border-hover); }
.fc-card h4 { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--white); margin-bottom: 0.2rem; }
.fc-species { font-size: 0.82rem !important; color: var(--muted) !important; margin-bottom: 0.6rem !important; line-height: 1.55 !important; }
.fc-tag { display: inline-block; font-size: 0.7rem; padding: 0.2rem 0.6rem; border-radius: 100px; border: 1px solid var(--border); color: var(--seafoam); margin: 0 0.3rem 0.3rem 0; }
.fc-tag-accent { background: rgba(46,196,182,0.12); color: var(--teal-light); }
.fc-card dl { margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--border); }
.fc-card dt { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin-top: 0.8rem; }
.fc-card dt:first-child { margin-top: 0; }
.fc-card dd { font-size: 0.82rem; color: var(--text); line-height: 1.55; margin-top: 0.2rem; }
.fc-pill { display: inline-block; font-size: 0.72rem; padding: 0.1rem 0.55rem; border-radius: 100px; background: rgba(46,196,182,0.07); color: var(--teal-light); margin: 0.15rem 0.25rem 0 0; }
@media (max-width: 800px) { .fc-cards { grid-template-columns: 1fr; } }

/* Optional subtitle under a lesson title */
.lhero-deck {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem); line-height: 1.4;
  color: rgba(240,244,248,0.88); max-width: 34ch; margin: -0.25rem 0 1rem;
}
