/* ============================================================
   "The Talk You Haven't Had Yet" — A Parent's Guide
   Shared stylesheet for all pages
   ============================================================ */

:root {
  --navy: #1b3a5c;
  --navy-dark: #12293f;
  --teal: #2e7d8c;
  --orange: #e07b39;
  --orange-dark: #c9611f;
  --cream: #faf7f2;
  --paper: #ffffff;
  --ink: #2b3440;
  --ink-soft: #5a6675;
  --line: #e4ddd2;
  --green: #3e8e5a;
  --red: #c0392b;
  --red-bg: #fdecea;
  --gold-bg: #fdf3e3;
  --blue-bg: #eaf3f6;
  --green-bg: #eaf5ee;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(27, 58, 92, 0.08);
  --shadow-lg: 0 10px 34px rgba(27, 58, 92, 0.14);
  --font-head: "Merriweather", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Tahoma, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.06rem;
}

img { max-width: 100%; }

/* ---------- Progress bar ---------- */
.progress-track {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: rgba(27, 58, 92, 0.12);
  z-index: 60;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--teal), var(--orange));
  transition: width 0.4s ease;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.7rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.brand .brand-mark {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--orange);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.brand .brand-logo {
  width: 44px; height: 44px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}
.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.72rem;
  opacity: 0.75;
  letter-spacing: 0.4px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 8px;
  color: #fff;
  font-size: 1.3rem;
  padding: 0.2rem 0.6rem;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 0.15rem;
  flex-wrap: wrap;
}
.site-nav a {
  display: block;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.site-nav a:hover { background: rgba(255,255,255,0.12); color: #fff; }
.site-nav a.active {
  background: var(--orange);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(160deg, rgba(18,41,63,0.92) 0%, rgba(27,58,92,0.82) 55%, rgba(18,41,63,0.9) 100%),
    url("../img/hero.jpg") center 32% / cover no-repeat;
  color: #fff;
  padding: 5rem 1.2rem 5.4rem;
  text-align: center;
}
.hero .eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.3rem 0.95rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 1.3rem;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.15;
  max-width: 820px;
  margin: 0 auto 1.1rem;
}
.hero .subhead {
  max-width: 720px;
  margin: 0 auto 2rem;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.88);
}
.hero .subhead strong { color: #ffd9b8; }

/* Small page hero (interior pages) */
.page-hero {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 2.7rem 1.2rem 2.9rem;
  text-align: center;
}
.page-hero .eyebrow {
  display: inline-block;
  color: #ffc899;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  max-width: 800px;
  margin: 0 auto;
}
.page-hero p.lede {
  max-width: 700px;
  margin: 0.9rem auto 0;
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
}

/* ---------- Photos ---------- */
.photo-figure {
  margin: 1.8rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.photo-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.photo-figure figcaption {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  padding: 0.65rem 1.1rem;
}

/* Text + image split section */
.split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2rem;
  align-items: center;
}
.split .photo-figure { margin: 0; }
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8rem 1.7rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(224,123,57,0.35);
}
.btn:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn.btn-ghost {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.55);
  box-shadow: none;
}
.btn.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn.btn-navy {
  background: var(--navy);
  box-shadow: 0 4px 14px rgba(27,58,92,0.3);
}
.btn.btn-navy:hover { background: var(--navy-dark); }

/* ---------- Layout ---------- */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.2rem;
}
.container.wide { max-width: 1060px; }

section + section { margin-top: 2.6rem; }

h2.section-title {
  font-family: var(--font-head);
  color: var(--navy);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin-bottom: 0.9rem;
}
h3 {
  font-family: var(--font-head);
  color: var(--navy);
  font-size: 1.18rem;
  margin-bottom: 0.5rem;
}
p + p { margin-top: 0.9rem; }
.muted { color: var(--ink-soft); }

/* ---------- Cards & callouts ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow);
}

.callout {
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem 1.25rem 1.2rem;
  margin: 1.6rem 0;
  border-left: 6px solid;
  box-shadow: var(--shadow);
}
.callout .callout-label {
  display: block;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
}
.callout.info      { background: var(--blue-bg);  border-color: var(--teal); }
.callout.info .callout-label { color: var(--teal); }
.callout.key       { background: var(--gold-bg);  border-color: var(--orange); }
.callout.key .callout-label { color: var(--orange-dark); }
.callout.danger    { background: var(--red-bg);   border-color: var(--red); }
.callout.danger .callout-label { color: var(--red); }
.callout.positive  { background: var(--green-bg); border-color: var(--green); }
.callout.positive .callout-label { color: var(--green); }

/* Myth vs Fact */
.myth-fact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin: 1.8rem 0;
}
.myth-fact .mf {
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow);
}
.myth-fact .myth { background: var(--red-bg); border-top: 5px solid var(--red); }
.myth-fact .fact { background: var(--green-bg); border-top: 5px solid var(--green); }
.myth-fact .tag {
  display: inline-block;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 1.4px;
  padding: 0.15rem 0.7rem;
  border-radius: 100px;
  color: #fff;
  margin-bottom: 0.6rem;
}
.myth-fact .myth .tag { background: var(--red); }
.myth-fact .fact .tag { background: var(--green); }
.myth-fact .myth p:first-of-type { font-style: italic; }

/* ---------- Stage / definition cards ---------- */
.stage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
  margin: 1.6rem 0;
}
.stage-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem;
  box-shadow: var(--shadow);
  position: relative;
  border-top: 5px solid var(--teal);
  transition: transform 0.18s, box-shadow 0.18s;
}
.stage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stage-card .stage-num {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
}
.stage-card.escalate-1 { border-top-color: #4a9aa8; }
.stage-card.escalate-2 { border-top-color: #d9a441; }
.stage-card.escalate-2 .stage-num { background: #d9a441; }
.stage-card.escalate-3 { border-top-color: var(--orange); }
.stage-card.escalate-3 .stage-num { background: var(--orange); }
.stage-card.escalate-4 { border-top-color: var(--red); }
.stage-card.escalate-4 .stage-num { background: var(--red); }
.stage-card h3 { font-size: 1.05rem; }
.stage-card p { font-size: 0.96rem; color: var(--ink-soft); }

/* ---------- Timeline (Page 3) ---------- */
.timeline { position: relative; margin: 2.2rem 0; padding-left: 2.4rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 15px; top: 8px; bottom: 8px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #4a9aa8, #d9a441, var(--orange), var(--red));
}
.tl-step { position: relative; padding-bottom: 1.9rem; }
.tl-step:last-child { padding-bottom: 0; }
.tl-step .dot {
  position: absolute;
  left: -2.4rem;
  top: 2px;
  width: 34px; height: 34px;
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 0 0 5px var(--cream);
}
.tl-step:nth-child(1) .dot { background: #4a9aa8; }
.tl-step:nth-child(2) .dot { background: #d9a441; }
.tl-step:nth-child(3) .dot { background: var(--orange); }
.tl-step:nth-child(4) .dot { background: var(--red); }
.tl-step .tl-body {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem;
  box-shadow: var(--shadow);
}
.tl-step h3 { font-size: 1.08rem; }
.tl-step p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Drink equivalence (Page 4) ---------- */
.drinks-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 0.7rem;
  text-align: center;
}
.drink-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.drink-card .drink-icon { font-size: 2.4rem; }
.drink-card h3 { margin-top: 0.4rem; font-size: 1rem; }
.drink-card .abv { color: var(--ink-soft); font-size: 0.9rem; }
.drink-card .equals {
  margin-top: 0.6rem;
  display: inline-block;
  background: var(--gold-bg);
  color: var(--orange-dark);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.2rem 0.75rem;
  border-radius: 100px;
}

/* ---------- Definition grid (Page 4) ---------- */
.def-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
  margin: 1.6rem 0;
}
.def-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 6px solid var(--teal);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow);
}
.def-card h3 { font-size: 1.02rem; }
.def-card p { font-size: 0.95rem; color: var(--ink-soft); }
.def-card.warn { border-left-color: var(--orange); }
.def-card.alert { border-left-color: var(--red); }

/* ---------- Stat tiles ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.1rem;
  margin: 1.8rem 0;
}
.stat-tile {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1.3rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-tile .stat-num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffc899;
  line-height: 1.1;
}
.stat-tile p { font-size: 0.92rem; color: rgba(255,255,255,0.85); margin-top: 0.45rem; }

/* ---------- Emergency box ---------- */
.emergency-box {
  background: var(--red-bg);
  border: 2px solid var(--red);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.4rem;
  margin: 2rem 0;
  box-shadow: var(--shadow);
}
.emergency-box .em-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--red);
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.emergency-box ul { list-style: none; }
.emergency-box li {
  padding: 0.45rem 0 0.45rem 2rem;
  position: relative;
  border-bottom: 1px dashed rgba(192,57,43,0.25);
  font-weight: 600;
}
.emergency-box li:last-child { border-bottom: none; }
.emergency-box li::before {
  content: "⚠";
  position: absolute;
  left: 0.2rem;
  color: var(--red);
}
.emergency-box .em-cta {
  margin-top: 1rem;
  background: var(--red);
  color: #fff;
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  font-weight: 700;
  text-align: center;
}

/* ---------- Checklists ---------- */
ul.check-list { list-style: none; margin: 1rem 0; }
ul.check-list li {
  padding: 0.4rem 0 0.4rem 1.9rem;
  position: relative;
}
ul.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0.2rem;
  color: var(--teal);
  font-weight: 800;
}
ul.x-list { list-style: none; margin: 1rem 0; }
ul.x-list li {
  padding: 0.4rem 0 0.4rem 1.9rem;
  position: relative;
}
ul.x-list li::before {
  content: "•";
  position: absolute;
  left: 0.5rem;
  color: var(--orange);
  font-weight: 800;
}

/* Interactive closing checklist */
.self-check { margin: 1.4rem 0; }
.self-check label {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.7rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  box-shadow: var(--shadow);
  font-weight: 600;
}
.self-check input { margin-top: 0.3rem; width: 19px; height: 19px; accent-color: var(--teal); cursor: pointer; }
.self-check label.done {
  background: var(--green-bg);
  border-color: var(--green);
}
#check-progress { font-weight: 700; color: var(--teal); margin-top: 0.4rem; }

/* ---------- Flip cards (warning signs) ---------- */
.flip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.1rem;
  margin: 1.8rem 0;
}
.flip-card { perspective: 1100px; min-height: 250px; cursor: pointer; }
.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 250px;
  transition: transform 0.55s;
  transform-style: preserve-3d;
}
.flip-card.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.flip-front {
  background: var(--navy);
  color: #fff;
  text-align: center;
  align-items: center;
  gap: 0.6rem;
}
.flip-front .flip-icon { font-size: 2.3rem; }
.flip-front h3 { color: #fff; font-size: 1.12rem; }
.flip-front .hint { font-size: 0.8rem; color: #ffc899; letter-spacing: 0.8px; text-transform: uppercase; font-weight: 700; }
.flip-back {
  background: var(--paper);
  border: 1px solid var(--line);
  transform: rotateY(180deg);
  justify-content: flex-start;
}
.flip-back ul { list-style: none; margin-top: 0.5rem; }
.flip-back li {
  font-size: 0.92rem;
  padding: 0.3rem 0 0.3rem 1.5rem;
  position: relative;
  color: var(--ink-soft);
}
.flip-back li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

/* ---------- Quiz ---------- */
.quiz-wrap { max-width: 760px; margin: 0 auto; }
.quiz-status {
  text-align: center;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
  letter-spacing: 0.4px;
}
.quiz-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.9rem 1.8rem;
}
.quiz-q {
  font-family: var(--font-head);
  color: var(--navy);
  font-size: 1.18rem;
  margin-bottom: 1.2rem;
  line-height: 1.45;
}
.quiz-options { display: grid; gap: 0.7rem; }
.quiz-option {
  text-align: left;
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.12s;
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
}
.quiz-option:hover:not(:disabled) { border-color: var(--teal); transform: translateX(3px); }
.quiz-option .opt-letter {
  font-weight: 800;
  color: var(--teal);
  flex-shrink: 0;
}
.quiz-option.correct {
  background: var(--green-bg);
  border-color: var(--green);
}
.quiz-option.incorrect {
  background: var(--red-bg);
  border-color: var(--red);
}
.quiz-option:disabled { cursor: default; opacity: 0.92; }
.quiz-feedback {
  margin-top: 1.2rem;
  border-radius: 12px;
  padding: 1.05rem 1.2rem;
  display: none;
  font-size: 0.98rem;
}
.quiz-feedback.show { display: block; animation: fadeUp 0.35s ease; }
.quiz-feedback.good { background: var(--green-bg); border-left: 5px solid var(--green); }
.quiz-feedback.bad  { background: var(--gold-bg); border-left: 5px solid var(--orange); }
.quiz-feedback strong { display: block; margin-bottom: 0.25rem; }
.quiz-next { margin-top: 1.3rem; text-align: right; }
.quiz-result { text-align: center; padding: 1.5rem 0.5rem; }
.quiz-result .score-ring {
  width: 130px; height: 130px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 1.2rem;
  background: conic-gradient(var(--teal) calc(var(--pct) * 1%), #e4ddd2 0);
}
.quiz-result .score-ring > div {
  width: 102px; height: 102px;
  background: var(--paper);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Conversation steps (Page 8) ---------- */
.convo-steps { counter-reset: convo; margin: 1.8rem 0; }
.convo-step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.4rem 1.35rem 4.4rem;
  margin-bottom: 1rem;
  position: relative;
  counter-increment: convo;
  transition: transform 0.18s, box-shadow 0.18s;
}
.convo-step:hover { transform: translateX(5px); box-shadow: var(--shadow-lg); }
.convo-step::before {
  content: counter(convo);
  position: absolute;
  left: 1.2rem;
  top: 1.3rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
}
.convo-step h3 { font-size: 1.08rem; }
.convo-step p { color: var(--ink-soft); font-size: 0.98rem; }
.convo-step .say {
  margin-top: 0.6rem;
  background: var(--blue-bg);
  border-radius: 10px;
  padding: 0.65rem 0.95rem;
  font-style: italic;
  font-size: 0.94rem;
  color: var(--navy);
}

/* ---------- Resource cards (Page 9) ---------- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.1rem;
  margin: 1.6rem 0;
}
.resource-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--teal);
  transition: transform 0.18s, box-shadow 0.18s;
}
.resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.resource-card .res-icon { font-size: 1.9rem; margin-bottom: 0.5rem; }
.resource-card h3 { font-size: 1.04rem; }
.resource-card .res-phone {
  display: inline-block;
  margin-top: 0.55rem;
  font-weight: 800;
  color: var(--orange-dark);
  font-size: 1.08rem;
  text-decoration: none;
}
.resource-card .res-phone:hover { text-decoration: underline; }
.resource-card p.res-note { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.4rem; }

/* ---------- Topic cards on home ---------- */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.15rem;
  margin-top: 1.8rem;
}
.topic-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.4rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.topic-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}
.topic-card .topic-num {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: var(--orange-dark);
  text-transform: uppercase;
}
.topic-card h3 { font-size: 1.08rem; }
.topic-card p { font-size: 0.93rem; color: var(--ink-soft); flex-grow: 1; }
.topic-card .go { color: var(--teal); font-weight: 800; font-size: 0.9rem; }

/* ---------- Prev / Next pager ---------- */
.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3.2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.pager a {
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1.25rem;
  color: var(--navy);
  box-shadow: var(--shadow);
  max-width: 46%;
  transition: transform 0.15s, box-shadow 0.15s;
}
.pager a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pager a span {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 0.15rem;
}
.pager a strong { font-size: 0.96rem; }
.pager .next { margin-left: auto; text-align: right; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 3.5rem;
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 2.3rem 1.2rem;
  text-align: center;
  font-size: 0.9rem;
}
.site-footer strong { color: #fff; }
.site-footer .foot-crisis {
  display: inline-block;
  margin-top: 0.8rem;
  background: rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 0.45rem 1.2rem;
  color: #ffc899;
  font-weight: 700;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy-dark);
    padding: 0.6rem 1rem 1rem;
    box-shadow: var(--shadow-lg);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.2rem; }
  .site-nav a { font-size: 0.98rem; padding: 0.65rem 0.8rem; }
  .myth-fact { grid-template-columns: 1fr; }
  .pager a { max-width: 48%; }
}

@media (max-width: 520px) {
  .pager { flex-direction: column; }
  .pager a { max-width: 100%; }
  .pager .next { margin-left: 0; text-align: left; }
}
