/* ============================================================
   NeurodiverseTherapist.org — Global Stylesheet
   Palette: deep teal + warm gold + warm neutrals
   Fonts: Lora (headings) + Inter (body), loaded via Google Fonts
   Edit CSS variables below to retheme the entire site.
   ============================================================ */

:root {
  /* Brand colors */
  --primary: #0e7570;        /* calm indigo — links, accents */
  --primary-dark: #0a5854;   /* headings on light, hover states */
  --primary-deep: #083f3c;   /* footer, dark sections */
  --seafoam: #5fb3aa;     /* soft accent */
  --tint: #dff0ed;       /* tinted section backgrounds */
  --tint-soft: #f2f8f7;  /* lighter tint */
  --accent: #c98a1e;         /* warm terracotta — primary CTA only */
  --accent-dark: #a76f11;

  /* Neutrals */
  --bg: #fbfaf6;             /* warm off-white page background */
  --ink: #1c2b29;            /* near-black indigo for headings */
  --text: #3d504d;           /* body text */
  --text-soft: #647d79;      /* secondary text */
  --line: #e0eae7;           /* borders */
  --white: #ffffff;

  /* Type */
  --font-head: "Lora", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --maxw: 1140px;
  --maxw-narrow: 760px;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(8, 63, 60, 0.10);
  --shadow-soft: 0 2px 10px rgba(8, 63, 60, 0.06);
}

/* ---------- Reset & base ---------- */
*, *::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(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.25;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 24px; }

section { padding: 72px 0; }
.section-tint { background: var(--tint-soft); }
.section-dark { background: var(--primary-deep); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: #cfe6e2; }

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.section-intro { max-width: 640px; margin-bottom: 40px; }
.section-intro p { margin-top: 12px; color: var(--text-soft); }
.center { text-align: center; }
.center .section-intro { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: var(--font-body);
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); transform: translateY(-1px); }
.btn-secondary { background: var(--primary); color: var(--white); }
.btn-secondary:hover { background: var(--primary-dark); color: var(--white); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-light { background: var(--white); color: var(--primary-dark); }
.btn-light:hover { background: var(--tint); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 246, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 74px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 40px; width: auto; }
.logo-text { font-family: var(--font-head); font-size: 1.42rem; font-weight: 600; color: var(--primary-deep); letter-spacing: -0.01em; white-space: nowrap; line-height: 1; }
.logo-text span { color: var(--primary); }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: 2px; }
.main-nav a {
  display: block;
  padding: 10px 9px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: 8px;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); background: var(--tint-soft); }
.main-nav .nav-cta { margin-left: 10px; }
.main-nav .nav-cta a {
  background: var(--accent);
  color: var(--white);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
}
.main-nav .nav-cta a:hover { background: var(--accent-dark); }

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a::after { content: " ▾"; font-size: 0.7em; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown { display: flex; }
.dropdown a { padding: 10px 14px; font-weight: 500; white-space: nowrap; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.25s;
}

@media (max-width: 1120px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: calc(100vh - 74px);
    overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 16px 20px; }
  .main-nav a { padding: 13px 12px; font-size: 1.05rem; white-space: normal; }
  .dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    background: var(--tint-soft);
    border-radius: 10px;
    margin: 2px 0 6px;
  }
  .has-dropdown.open .dropdown { display: flex; }
  .has-dropdown:hover .dropdown { display: none; }   /* disable hover on mobile */
  .has-dropdown.open:hover .dropdown { display: flex; }
  .main-nav .nav-cta { margin: 10px 0 0; }
  .main-nav .nav-cta a { text-align: center; }
}

/* ---------- Hero ---------- */
.hero { padding: 84px 0; background: linear-gradient(160deg, var(--tint) 0%, var(--bg) 65%); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin: 16px 0 20px; }
.hero p.lead { font-size: 1.15rem; color: var(--text-soft); margin-bottom: 30px; max-width: 540px; }
.hero-img img { border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; width: 100%; aspect-ratio: 5 / 4; }
.hero-note { margin-top: 16px; font-size: 0.88rem; color: var(--text-soft); }

/* Page hero (interior pages) */
.page-hero { padding: 64px 0 48px; background: linear-gradient(160deg, var(--tint) 0%, var(--bg) 70%); }
.page-hero p.lead { font-size: 1.12rem; color: var(--text-soft); max-width: 640px; margin-top: 16px; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--primary); }
.card-body p { font-size: 0.95rem; color: var(--text-soft); flex: 1; }
.card-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}
.card-link { font-weight: 600; font-size: 0.92rem; }
.card-link::after { content: " →"; }

/* Icon feature cards (no image) */
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-soft); }
.feature .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--tint);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.feature h3 { margin-bottom: 10px; }
.feature p { font-size: 0.95rem; color: var(--text-soft); }

/* ---------- Two-column content ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; width: 100%; aspect-ratio: 4 / 3; }
.split h2 { margin-bottom: 18px; }
.split ul { margin: 18px 0 26px 20px; }
.split li { margin-bottom: 10px; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.4rem; color: var(--primary-dark); }
.section-dark .stat strong { color: var(--white); }
.stat span { font-size: 0.92rem; color: var(--text-soft); }
.section-dark .stat span { color: #a9cfc9; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--primary-deep), var(--primary-dark));
  border-radius: var(--radius);
  padding: 56px 48px;
  text-align: center;
  color: var(--white);
}
.cta-banner h2 { color: var(--white); margin-bottom: 14px; }
.cta-banner p { color: #cfe6e2; max-width: 560px; margin: 0 auto 28px; }

/* ---------- Article pages ---------- */
.article-hero { padding: 56px 0 32px; background: linear-gradient(160deg, var(--tint) 0%, var(--bg) 70%); }
.article-meta { display: flex; gap: 16px; align-items: center; font-size: 0.88rem; color: var(--text-soft); margin-top: 18px; flex-wrap: wrap; }
.article-hero-img { max-width: var(--maxw-narrow); margin: 36px auto 0; padding: 0 24px; }
.article-hero-img img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 16 / 8; object-fit: cover; width: 100%; }
.article-hero-img figcaption { font-size: 0.78rem; color: var(--text-soft); margin-top: 8px; }

.article-body { padding: 48px 0 72px; }
.article-body h2 { margin: 44px 0 16px; }
.article-body h3 { margin: 32px 0 12px; }
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 20px 24px; }
.article-body li { margin-bottom: 10px; }
.article-body img { border-radius: var(--radius); margin: 28px 0; }
.article-body blockquote {
  border-left: 4px solid var(--seafoam);
  background: var(--tint-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px;
  margin: 28px 0;
  font-style: italic;
  color: var(--primary-dark);
}

/* Callout boxes */
.callout {
  border: 1px solid var(--line);
  border-left: 5px solid var(--primary);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  margin: 30px 0;
  box-shadow: var(--shadow-soft);
}
.callout.warm { border-left-color: var(--accent); }
.callout h4, .callout .box-title { margin-bottom: 8px; font-family: var(--font-body); font-weight: 700; font-size: 1rem; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }

/* Key takeaways */
.takeaways { background: var(--tint); border-radius: var(--radius); padding: 28px 32px; margin: 30px 0; }
.takeaways h4, .takeaways .box-title { font-family: var(--font-body); font-weight: 700; margin-bottom: 12px; color: var(--primary-dark); }
.takeaways ul { margin-left: 20px; }
.takeaways li { margin-bottom: 8px; }

/* Author / disclaimer boxes */
.article-footer-box {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding-top: 28px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* Breadcrumbs */
.breadcrumbs { font-size: 0.85rem; color: var(--text-soft); }
.breadcrumbs a { color: var(--text-soft); }
.breadcrumbs a:hover { color: var(--primary); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 40px;
  max-width: 760px;
  margin: 0 auto;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { display: block; font-weight: 600; font-size: 0.92rem; color: var(--ink); margin-bottom: 6px; }
.form-field .hint { font-weight: 400; color: var(--text-soft); font-size: 0.82rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--bg);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}
.form-field textarea { min-height: 120px; resize: vertical; }
fieldset { border: none; margin: 30px 0 10px; }
fieldset legend {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  width: 100%;
}
.check-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.check-row input { width: auto; margin-top: 5px; }
.check-row label { font-weight: 400; margin: 0; font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin-bottom: 14px; overflow: hidden; }
.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--primary); line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-answer { padding: 0 24px 22px; color: var(--text-soft); }

/* ---------- Directory ---------- */
.therapist-card { display: grid; grid-template-columns: 110px 1fr; gap: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-soft); margin-bottom: 20px; }
.therapist-card img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; }
.therapist-card .creds { font-size: 0.85rem; color: var(--text-soft); margin-bottom: 8px; }
.badge { display: inline-block; background: var(--tint); color: var(--primary-dark); font-size: 0.75rem; font-weight: 600; border-radius: 999px; padding: 4px 12px; margin: 0 6px 6px 0; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: linear-gradient(180deg, #083f3c 0%, #06302e 100%); color: #cfe6e2; padding: 34px 0 0; margin-top: 0; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; top: -140px; right: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(95,179,170,0.18), transparent 65%); pointer-events: none; }
.site-footer::after { content: ""; position: absolute; bottom: -180px; left: -140px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(201,138,30,0.12), transparent 65%); pointer-events: none; }
.site-footer .container { position: relative; z-index: 1; }
.footer-wave { display: block; width: 100%; height: 90px; margin-bottom: -1px; }
.footer-wave svg { display: block; width: 100%; height: 100%; }
.footer-tagline-band { text-align: center; padding: 6px 0 40px; }
.footer-tagline-band p { font-family: var(--font-head); font-style: italic; font-size: 1.15rem; color: #eaf6f4; max-width: 620px; margin: 0 auto; }
.footer-tagline-band .footer-infinity { width: 44px; height: auto; margin: 0 auto 12px; opacity: .9; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-grid h4, .footer-grid .footer-heading { color: var(--white); font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; letter-spacing: 0.04em; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #a9cfc9; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--white); }
.footer-brand p { font-size: 0.92rem; margin-top: 14px; max-width: 300px; }
.footer-brand img { height: 40px; }
.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding: 24px 0;
  font-size: 0.8rem;
  color: #8fb8b2;
}
.footer-disclaimer p { margin-bottom: 8px; }
.footer-disclaimer a { color: #cfe6e2; text-decoration: underline; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.notice {
  background: var(--tint-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  section { padding: 56px 0; }
  .hero { padding: 56px 0; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 36px; }
  .card-grid, .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .card-grid, .card-grid-2, .card-grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 24px; }
  .form-card { padding: 26px 20px; }
  .therapist-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* ---------- Therapist directory filters ---------- */
.filter-bar { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 32px; box-shadow: var(--shadow-soft); }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.filter-row:last-of-type { margin-bottom: 0; }
.filter-label { font-size: 0.82rem; font-weight: 600; color: var(--text-soft); margin-right: 4px; }
.filter-pill { border: 1px solid var(--line); background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; border-radius: 999px; padding: 6px 16px; cursor: pointer; transition: all .15s; }
.filter-pill:hover { border-color: var(--primary); color: var(--primary); }
.filter-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.filter-count { font-size: 0.8rem; color: var(--text-soft); margin-top: 10px; }
.state-heading { font-size: 1.35rem; color: var(--primary-dark); margin: 34px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--tint); }
.badge-accent { background: var(--accent); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.contact-row .card-link { font-size: 0.88rem; }

/* ---------- Quizzes ---------- */
.quiz-shell { max-width: 720px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; }
.quiz-progress { height: 8px; background: var(--tint); border-radius: 999px; overflow: hidden; margin-bottom: 26px; }
.quiz-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--seafoam)); transition: width .3s; }
.quiz-qnum { font-size: 0.8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 8px; }
.quiz-question { font-family: var(--font-head); font-size: 1.35rem; color: var(--ink); margin-bottom: 6px; }
.quiz-context { font-size: 0.92rem; color: var(--text-soft); margin-bottom: 20px; }
.quiz-opt { display: block; width: 100%; text-align: left; background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; font-family: var(--font-body); font-size: 0.98rem; color: var(--text); cursor: pointer; transition: all .15s; }
.quiz-opt:hover { border-color: var(--primary); background: var(--tint-soft); }
.quiz-result-band { border-radius: 12px; padding: 22px 24px; margin: 18px 0; }
.quiz-result-band h3 { margin-bottom: 8px; }
.band-a { background: var(--tint); }
.band-b { background: #faf1dd; }
.band-mix { background: #eaf3ec; }
.quiz-bars { margin: 20px 0; }
.quiz-bar-row { display: grid; grid-template-columns: 120px 1fr 44px; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 0.88rem; }
.quiz-bar-track { height: 14px; background: var(--tint-soft); border-radius: 999px; overflow: hidden; }
.quiz-bar-fill { height: 100%; border-radius: 999px; background: var(--primary); transition: width .6s; }
.quiz-bar-fill.alt { background: var(--accent); }
.quiz-disclaimer { font-size: 0.82rem; color: var(--text-soft); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 20px; }
.quiz-restart { background: none; border: none; color: var(--primary); font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; cursor: pointer; text-decoration: underline; padding: 0; }
@media (max-width: 640px) { .quiz-shell { padding: 24px 18px; } .quiz-bar-row { grid-template-columns: 90px 1fr 40px; } }

/* ---------- Courses ---------- */
.course-hero { background: linear-gradient(135deg, var(--primary-deep), var(--primary)); color: #fff; padding: 72px 0 64px; }
.course-hero .kicker { color: #e8b54a; }
.course-hero h1 { color: #fff; }
.course-hero .lead { color: #d5ebe8; max-width: 720px; }
.course-hero .breadcrumbs a { color: #a9cfc9; }
.part-label { font-size: 0.8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 44px 0 6px; }
.part-title { font-size: 1.45rem; color: var(--primary-dark); margin-bottom: 18px; }
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; }
.module-card { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-soft); transition: transform .15s, box-shadow .15s; }
.module-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.module-num { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; background: var(--tint); color: var(--primary-dark); font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.module-card h3 { font-size: 1.02rem; margin-bottom: 4px; }
.module-card h3 a { color: var(--ink); text-decoration: none; }
.module-card h3 a:hover { color: var(--primary); }
.module-card p { font-size: 0.88rem; color: var(--text-soft); margin: 0; }
.module-card .mins { display: inline-block; font-size: 0.75rem; color: var(--primary); font-weight: 600; margin-top: 8px; }
.module-card.bonus .module-num { background: #faf1dd; color: var(--accent-dark); }

/* Roadmap timeline */
.roadmap { position: relative; max-width: 780px; margin: 0 auto; padding-left: 30px; }
.roadmap::before { content: ""; position: absolute; left: 20px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: linear-gradient(180deg, var(--seafoam), var(--primary)); }
.roadmap-step { position: relative; margin-bottom: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow-soft); margin-left: 22px; }
.roadmap-step::before { content: attr(data-step); position: absolute; left: -46px; top: 22px; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; font-family: var(--font-head); font-weight: 600; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 5px var(--bg); }
.roadmap-step h3 { margin-bottom: 6px; }
.roadmap-step .stage-when { font-size: 0.8rem; font-weight: 600; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.roadmap-step ul { margin: 10px 0 0 18px; font-size: 0.93rem; }
.roadmap-step li { margin-bottom: 6px; }
@media (max-width: 640px) { .roadmap { padding-left: 18px; } .roadmap-step { margin-left: 26px; } .roadmap-step::before { left: -44px; width: 34px; height: 34px; font-size: .9rem; } }

.answer-byline { font-size: 0.85rem; color: var(--text-soft); border-left: 3px solid var(--seafoam); padding-left: 12px; margin-top: 14px; }

/* ---------- Course module navigation ---------- */
.course-nav { background: var(--tint-soft); border-top: 1px solid var(--line); padding: 34px 0; }
.course-nav .course-nav-inner { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.course-nav .course-nav-label { flex-basis: 100%; text-align: center; font-size: 0.78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 4px; }
.course-nav .course-nav-label a { color: var(--primary); }
.course-nav a.cn-prev, .course-nav a.cn-next { display: inline-block; max-width: 46%; text-decoration: none; font-size: 0.92rem; font-weight: 600; color: var(--primary-dark); background: var(--white); border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 18px; transition: all .15s; }
.course-nav a.cn-next { margin-left: auto; text-align: right; background: var(--primary); color: #fff; border-color: var(--primary); }
.course-nav a.cn-prev:hover { border-color: var(--primary); }
.course-nav a.cn-next:hover { background: var(--primary-dark); }
.course-nav .cn-small { display: block; font-size: 0.72rem; font-weight: 500; opacity: .75; margin-bottom: 3px; }
@media (max-width: 560px) { .course-nav a.cn-prev, .course-nav a.cn-next { max-width: 100%; flex: 1 1 100%; text-align: center; } }


/* ---------- Curved section dividers ---------- */
.curve-divider { display: block; width: 100%; height: 64px; margin-bottom: -1px; }
.curve-divider svg { display: block; width: 100%; height: 100%; }

/* Soft blob behind hero image */
.hero-img { position: relative; }
.hero-img::before { content: ""; position: absolute; inset: -26px -26px auto auto; width: 62%; height: 62%; border-radius: 46% 54% 60% 40% / 48% 44% 56% 52%; background: var(--tint); z-index: -1; }
.hero-img::after { content: ""; position: absolute; inset: auto auto -22px -22px; width: 46%; height: 46%; border-radius: 55% 45% 42% 58% / 50% 58% 42% 50%; background: #f5e8cc; z-index: -1; }
.hero-img img { border-radius: 26px 26px 26px 90px; }

/* Gold kicker variant on dark */
.section-dark .kicker, .cta-banner .kicker { color: #e8b54a; }

/* Pill list (trait chips) */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.chip { background: var(--tint); color: var(--primary-dark); font-size: 0.85rem; font-weight: 600; border-radius: 999px; padding: 7px 16px; }
.chip.gold { background: #faf1dd; color: var(--accent-dark); }

/* Definition cards for glossary */
.term-card { background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--seafoam); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 18px; box-shadow: var(--shadow-soft); }
.term-card h3 { margin-bottom: 6px; }
.term-card .term-aka { font-size: 0.82rem; color: var(--text-soft); font-style: italic; margin-bottom: 10px; }
.term-card p { font-size: 0.95rem; margin-bottom: 0; }
.term-card p + p { margin-top: 10px; }


/* ---------- Accessibility & semantic helpers ---------- */
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--primary-deep); color: #fff; padding: 10px 18px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { left: 12px; color: #fff; }
.box-title { margin-bottom: 8px; }
.callout .box-title { font-family: var(--font-body); font-weight: 700; font-size: 1rem; color: var(--ink); }
.takeaways .box-title { font-family: var(--font-body); font-weight: 700; color: var(--primary-dark); }
.footer-quote { margin: 0; }
.footer-quote p { font-family: var(--font-head); font-style: italic; font-size: 1.15rem; color: #eaf6f4; max-width: 620px; margin: 0 auto; }
.footer-quote cite { display: block; margin-top: 8px; font-style: normal; font-size: 0.85rem; color: #a9cfc9; }
.feature { border-top: 4px solid var(--seafoam); }
.section-dark .feature { border-top-color: var(--accent); }
.hero-tagline { font-family: var(--font-head); font-size: 1.25rem; color: var(--primary-dark); margin: 0 0 14px; font-style: italic; }
.reviewer-box { display: flex; gap: 18px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-soft); margin: 28px 0; }
.reviewer-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; margin: 0; }
.reviewer-box p { margin: 0 0 6px; font-size: 0.92rem; }
.reviewer-box .reviewer-name { font-weight: 700; color: var(--ink); font-size: 1rem; }
@media (max-width: 560px) { .reviewer-box { flex-direction: column; align-items: flex-start; } }
