/* Truth-Revealers · God's Plan of Salvation
   One stylesheet, mobile-first. Palette taken from the stained-glass logo:
   deep night-sky navy, window gold, warm parchment and a scripture-red accent. */

:root {
  /* REPLACEABLE IMAGES
     None needed: every picture is an <img> in the HTML, and no CSS background images are used.
     To swap a picture, replace its file in assets/ (see assets/manifest.json). */

  --navy-950: #081a2c;
  --navy-900: #0c2640;
  --navy-800: #133456;
  --navy-600: #2b537a;
  --gold-600: #8a6414;
  --gold-500: #c9962b;
  --gold-400: #e1b451;
  --gold-200: #f6e2ae;
  --cream-50: #fffdf8;
  --cream-100: #faf5ea;
  --cream-200: #f2ead8;
  --line: #e2d8c3;
  --ink: #1a2a3a;
  --muted: #4d5d6c;
  --crimson: #9c2230;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.45rem, 1.2rem + 1vw, 1.8rem);
  --step-3: clamp(1.8rem, 1.4rem + 1.8vw, 2.5rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.2vw, 3.7rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: clamp(3rem, 2rem + 4vw, 5.5rem);

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(8, 26, 44, .06), 0 10px 30px -12px rgba(8, 26, 44, .22);
  --wrap: 72rem;
  --header-h: 4.25rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
html.large-text { font-size: 118.75%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream-100);
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy-900);
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-2);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { margin: 0 0 var(--space-2); }

a { color: var(--navy-600); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--crimson); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 46rem); margin-inline: auto; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy-900); color: #fff;
  padding: .7rem 1rem; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

.eyebrow {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin: 0 0 var(--space-1);
}

/* ---------- Buttons: one vocabulary ----------
   .btn-begin  → start / continue a presentation
   .btn-ask    → "Ask a question" (contact) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 3rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 700 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-lg { min-height: 3.5rem; padding: 1rem 1.8rem; font-size: 1.0625rem; }
.btn-sm { min-height: 2.5rem; padding: .5rem 1rem; font-size: .9375rem; }

.btn-begin { background: var(--navy-900); color: #fff; box-shadow: 0 8px 20px -10px rgba(12, 38, 64, .7); }
.btn-begin:hover { background: var(--navy-800); color: #fff; }

.btn-ask { background: var(--gold-400); color: var(--navy-950); }
.btn-ask:hover { background: var(--gold-200); color: var(--navy-950); }

.btn-quiet { background: transparent; color: var(--navy-900); border-color: rgba(12, 38, 64, .28); }
.btn-quiet:hover { border-color: var(--navy-900); color: var(--navy-900); }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn .arrow { transition: none; }
  .btn:hover { transform: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 26, 44, .97);
  color: #fff;
  border-bottom: 1px solid rgba(225, 180, 81, .35);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(8, 26, 44, .9); backdrop-filter: blur(8px); }
}
.header-inner {
  display: flex; align-items: center; gap: var(--space-2);
  min-height: var(--header-h);
  flex-wrap: wrap;
  padding-block: .5rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .7rem;
  color: #fff; text-decoration: none; margin-right: auto;
}
.brand:hover { color: #fff; }
.brand img {
  width: 44px; height: 44px; border-radius: 9px;
  box-shadow: 0 0 0 2px rgba(225, 180, 81, .7);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font: 700 1rem/1.1 var(--sans); letter-spacing: .12em; }
.brand-text small { font: italic 400 .9375rem/1.2 var(--serif); color: var(--gold-200); }

.nav-toggle {
  display: none;
  align-items: center; gap: .45rem;
  background: transparent; color: #fff;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px;
  padding: .45rem .9rem; font: 600 .9375rem var(--sans); cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.js .nav-toggle { display: inline-flex; }

.site-nav { width: 100%; order: 3; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }
.site-nav ul {
  list-style: none; margin: 0; padding: .5rem 0 .75rem;
  display: flex; flex-direction: column; gap: .15rem;
}
.site-nav a {
  display: block; padding: .6rem .25rem;
  color: #fff; text-decoration: none; font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-400); }

.header-actions { display: flex; align-items: center; gap: .6rem; }
.header-phone { display: none; color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; }
.header-phone:hover { color: var(--gold-400); }
.header-phone small { display: block; font-weight: 400; font-size: .75rem; color: var(--gold-200); }
.text-size {
  display: none;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .35);
  font: 700 .95rem var(--serif); cursor: pointer;
}
.js .text-size { display: inline-grid; place-items: center; }
.text-size:hover { border-color: var(--gold-400); color: var(--gold-400); }

@media (min-width: 68em) {
  .js .nav-toggle { display: none; }
  .site-nav, .js .site-nav { display: block; width: auto; order: 0; }
  .site-nav ul { flex-direction: row; flex-wrap: wrap; padding: 0; gap: .25rem; }
  .site-nav a { border: 0; padding: .5rem .7rem; border-radius: 999px; font-size: .96rem; }
  .site-nav a:hover { background: rgba(255, 255, 255, .07); }
}
@media (min-width: 78em) {
  .header-phone { display: block; text-align: right; line-height: 1.2; }
}
@media (max-width: 26em) {
  .brand-text small { display: none; }
  .header-actions .btn-ask { padding-inline: .8rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: var(--space-4) var(--space-5);
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(225, 180, 81, .25), transparent 60%),
    linear-gradient(180deg, var(--cream-50), var(--cream-100));
  overflow: hidden;
}
.hero-grid { display: grid; gap: var(--space-4); align-items: center; }
.hero h1 { margin-bottom: var(--space-2); }
.hero .lede { font-size: var(--step-1); color: var(--muted); max-width: 36rem; }
.questions {
  list-style: none; padding: 0; margin: var(--space-3) 0;
  display: grid; gap: .5rem;
}
.questions li {
  display: flex; gap: .7rem; align-items: baseline;
  font: 600 var(--step-1)/1.3 var(--serif); color: var(--navy-900);
}
.questions li::before { content: "✦"; color: var(--gold-500); font-size: .85em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: var(--space-3) 0 var(--space-2); }
.hero-meta { font-size: var(--step--1); color: var(--muted); margin: 0; }
.hero-meta a { font-weight: 600; }
.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 6px solid #fff;
}
.fig-credit {
  margin-top: .6rem; font-size: .8125rem; color: var(--muted);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
@media (min-width: 60em) {
  .hero { padding-top: var(--space-5); }
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: var(--space-5); }
}

/* ---------- Sections ---------- */
.band { padding-block: var(--space-5); }
.band-white { background: var(--cream-50); border-block: 1px solid var(--line); }
.band-navy {
  background:
    radial-gradient(40rem 20rem at 10% 0%, rgba(225, 180, 81, .16), transparent 60%),
    var(--navy-900);
  color: #e9eef4;
}
.band-navy h2, .band-navy h3 { color: #fff; }
.band-navy .eyebrow { color: var(--gold-400); }
.band-navy a:not(.btn) { color: var(--gold-200); }
.band-navy a:not(.btn):hover { color: #fff; }
.section-head { max-width: 44rem; margin-bottom: var(--space-4); }
.section-head p { color: var(--muted); font-size: var(--step-1); }
.band-navy .section-head p { color: #c9d4df; }
.section-head .eyebrow { font-size: var(--step--1); color: var(--gold-600); }
.band-navy .section-head .eyebrow { color: var(--gold-400); }

/* Path cards */
.paths { display: grid; gap: var(--space-3); }
.path {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.path img { width: 100%; background: var(--cream-200); }
.path-body { padding: var(--space-3); display: flex; flex-direction: column; flex: 1; }
.path-label {
  align-self: flex-start;
  font: 700 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy-900); background: var(--gold-200);
  padding: .45rem .7rem; border-radius: 999px; margin-bottom: var(--space-2);
}
.path-meta { color: var(--muted); font-size: var(--step--1); margin-bottom: var(--space-2); }
.path ol { margin: 0 0 var(--space-3); padding-left: 1.3rem; color: var(--ink); }
.path ol li { margin-bottom: .2rem; }
.path ol a { color: inherit; text-decoration: none; }
.path ol a:hover { color: var(--crimson); text-decoration: underline; }
.path .btn { margin-top: auto; align-self: flex-start; }
@media (min-width: 52em) { .paths { grid-template-columns: 1fr 1fr; } }

/* In-Depth contents */
.toc {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .75rem;
  counter-reset: none;
}
.toc a {
  display: grid; grid-template-columns: 3rem 1fr; gap: .25rem 1rem;
  align-items: start;
  padding: 1rem 1.1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.toc a:hover { border-color: var(--gold-500); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.toc .num {
  grid-row: span 2;
  font: 700 1.5rem/1 var(--serif); color: var(--gold-500);
  padding-top: .15rem;
}
.toc .t { font: 700 1.125rem/1.3 var(--serif); color: var(--navy-900); }
.toc .m { font-size: var(--step--1); color: var(--muted); }
@media (min-width: 44em) { .toc { grid-template-columns: 1fr 1fr; } }
@media (min-width: 70em) { .toc { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce) { .toc a { transition: none; } .toc a:hover { transform: none; } }

/* About / presenters */
.about-grid { display: grid; gap: var(--space-4); align-items: center; }
.about-grid figure { margin: 0; }
.about-grid img { border-radius: var(--radius); border: 6px solid #fff; box-shadow: var(--shadow); }
.quote {
  font: italic 400 var(--step-1)/1.55 var(--serif);
  color: var(--navy-900);
  border-left: 3px solid var(--gold-500);
  padding-left: var(--space-2);
  margin: var(--space-3) 0;
}
.disclaimer {
  font-size: var(--step--1); color: var(--muted);
  background: var(--cream-200); border-radius: var(--radius-sm);
  padding: .9rem 1.1rem;
}
@media (min-width: 56em) { .about-grid { grid-template-columns: 1fr 1fr; gap: var(--space-5); } }

/* Contact band */
.contact-grid { display: grid; gap: var(--space-4); }
.contact-cards { display: grid; gap: var(--space-2); }
.contact-card {
  display: block;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease;
}
a.contact-card:hover { background: rgba(255, 255, 255, .1); border-color: var(--gold-400); }
.contact-card .k { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-400); font-weight: 700; }
.contact-card .v { display: block; font: 600 1.2rem/1.35 var(--sans); color: #fff; word-break: break-word; }
.contact-card .n { display: block; font-size: var(--step--1); color: #c9d4df; }
@media (min-width: 56em) { .contact-grid { grid-template-columns: 1.1fr 1fr; align-items: start; } }

.resource-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.resource-list a {
  display: flex; flex-direction: column;
  padding: .85rem 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--navy-900); font-weight: 600;
}
.resource-list a:hover { border-color: var(--gold-500); color: var(--crimson); }
.resource-list small { font-weight: 400; color: var(--muted); font-size: .8125rem; }
.band-navy .resource-list a { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #fff; }
.band-navy .resource-list a:hover { border-color: var(--gold-400); color: var(--gold-200); }
.band-navy .resource-list small { color: #c9d4df; }

/* ---------- Lesson pages ---------- */
.lesson-hero {
  background: linear-gradient(180deg, var(--cream-50), var(--cream-100));
  border-bottom: 1px solid var(--line);
  padding-block: var(--space-3) var(--space-4);
}
.crumbs { font-size: var(--step--1); color: var(--muted); margin-bottom: var(--space-3); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li + li::before { content: "›"; margin-right: .4rem; color: var(--gold-500); }
.crumbs a { color: var(--muted); }
.lesson-top { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: space-between; align-items: end; }
.lesson-number {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--step--1); color: var(--muted); margin-bottom: var(--space-1);
}
.lesson-number b {
  display: inline-grid; place-items: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--navy-900); color: var(--gold-400);
  font: 700 1rem var(--serif);
}
.lesson-hero h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.1rem); max-width: 50rem; }
.progress { margin-top: var(--space-2); max-width: 34rem; }
.progress-track { height: 6px; background: var(--cream-200); border-radius: 99px; overflow: hidden; }
.progress-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-500), var(--gold-400)); border-radius: inherit; }
.progress-text { font-size: .8125rem; color: var(--muted); margin-top: .35rem; }

.section-menu { position: relative; }
.section-menu summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; color: var(--navy-900);
  border: 1px solid rgba(12, 38, 64, .25); border-radius: 999px;
  padding: .55rem 1rem; background: #fff;
}
.section-menu summary::-webkit-details-marker { display: none; }
.section-menu summary svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.section-menu summary:hover { border-color: var(--navy-900); }
.section-menu ol {
  margin: .6rem 0 0; padding: .5rem; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  width: min(26rem, calc(100vw - 2.5rem));
}
@media (min-width: 48em) {
  .section-menu ol { position: absolute; right: 0; z-index: 20; }
}
.section-menu a {
  display: grid; grid-template-columns: 2rem 1fr; gap: .5rem;
  padding: .5rem .6rem; border-radius: 6px;
  text-decoration: none; color: var(--ink); font-size: .9375rem; line-height: 1.35;
}
.section-menu a span:first-child { color: var(--gold-600); font-weight: 700; }
.section-menu a:hover { background: var(--cream-100); color: var(--navy-900); }
.section-menu a[aria-current="page"] { background: var(--navy-900); color: #fff; }
.section-menu a[aria-current="page"] span:first-child { color: var(--gold-400); }

.lesson { padding-block: var(--space-4) var(--space-5); }
.lesson-grid { display: grid; gap: var(--space-4); }
.lesson-grid.is-split { align-items: start; }
@media (min-width: 60em) {
  .lesson-grid.is-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--space-5); }
  .lesson-grid.is-split .lesson-figures { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

.lesson-figures { display: grid; gap: var(--space-3); }
.figure { margin: 0; }
.figure-frame {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(.4rem, 1vw, .75rem);
  box-shadow: var(--shadow);
}
.figure-frame img { width: 100%; border-radius: calc(var(--radius) - 6px); }
a.figure-frame { cursor: zoom-in; }
a.figure-frame:hover { border-color: var(--gold-500); }
.figure figcaption {
  margin-top: .8rem;
  font: italic 400 1.0625rem/1.55 var(--serif);
  color: var(--navy-900);
  white-space: pre-line;
}
.figure figcaption .copy { display: block; font: normal 400 .8125rem/1.4 var(--sans); color: var(--muted); margin-top: .35rem; }
.figure-tools { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .5rem; font-size: .875rem; }

.transcript {
  margin-top: .75rem;
  background: var(--cream-50); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: .9375rem;
}
.transcript summary {
  cursor: pointer; padding: .7rem 1rem; font-weight: 600; color: var(--navy-800);
}
.transcript summary:hover { color: var(--crimson); }
.transcript > div { padding: 0 1rem 1rem; }
.transcript p { margin-bottom: .6rem; }
.transcript ul { margin: 0 0 .6rem; padding-left: 1.2rem; }

.lesson-text { max-width: 42rem; }
.lesson-grid:not(.is-split) .lesson-text { margin-inline: auto; }
.lesson-text > p { font-size: 1.125rem; }
.lesson-text .time { font-size: var(--step--1); color: var(--muted); margin-bottom: var(--space-2); }
.lesson-text strong { color: var(--navy-900); }

.scripture {
  margin: var(--space-3) 0;
  padding: var(--space-3);
  background: var(--navy-900);
  color: #f3f6f9;
  border-radius: var(--radius);
  position: relative;
}
.scripture .label {
  display: block;
  font: 700 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-400); margin-bottom: .6rem;
}
.scripture p { font: 400 1.1875rem/1.55 var(--serif); margin: 0; }

.thought {
  display: flex; gap: .9rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  background: #fff8e6;
  border: 1px solid #efdca8;
  margin: var(--space-3) 0;
}
.thought::before { content: "✦"; color: var(--gold-500); font-size: 1.2rem; line-height: 1.4; }
.thought p { margin: 0; font: 600 1.0625rem/1.5 var(--serif); color: var(--navy-900); }

.presenter-notes {
  margin: var(--space-3) 0;
  border: 1px dashed #cdbf9f;
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  color: var(--muted);
}
.presenter-notes summary { cursor: pointer; padding: .7rem 1rem; font-weight: 600; color: var(--navy-800); }
.presenter-notes summary:hover { color: var(--crimson); }
.presenter-notes dl { margin: 0; padding: 0 1rem .9rem; }
.presenter-notes dt { font-weight: 700; color: var(--navy-900); margin-top: .4rem; }
.presenter-notes dd { margin: 0 0 .3rem; white-space: pre-line; }

.contact-inline {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-3); margin: var(--space-3) 0; box-shadow: var(--shadow);
}
.contact-inline h2 { font-size: var(--step-2); }
.contact-inline ul { padding-left: 1.2rem; }
.contact-inline li { margin-bottom: .4rem; }
.note-caps { letter-spacing: .01em; }

.references { display: grid; gap: var(--space-3); margin-bottom: var(--space-4); }
.references section {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-3); box-shadow: var(--shadow);
}
.references h2 { font-size: var(--step-2); color: var(--crimson); }
.references p { margin-bottom: .7rem; padding-bottom: .7rem; border-bottom: 1px solid var(--cream-200); }
.references p:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.references strong { color: var(--navy-900); }
@media (min-width: 60em) { .references { grid-template-columns: 1fr 1.25fr; align-items: start; } }

.pager {
  display: grid; gap: .75rem;
  margin-top: var(--space-4); padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}
.pager a {
  display: flex; flex-direction: column; gap: .15rem;
  padding: 1rem 1.2rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: #fff;
  text-decoration: none; color: var(--navy-900);
}
.pager a:hover { border-color: var(--gold-500); box-shadow: var(--shadow); color: var(--navy-900); }
.pager small { font-size: .8125rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.pager span { font: 700 1.125rem/1.3 var(--serif); }
.pager .next { background: var(--navy-900); border-color: var(--navy-900); color: #fff; text-align: right; }
.pager .next small { color: var(--gold-200); }
.pager .next:hover { background: var(--navy-800); color: #fff; }
@media (min-width: 44em) { .pager { grid-template-columns: 1fr 1fr; } .pager .next:only-child { grid-column: 2; } }
.key-help { display: none; font-size: .8125rem; color: var(--muted); margin-top: var(--space-2); text-align: center; }
.js .key-help { display: block; }

.lang-note {
  font-size: var(--step--1); color: var(--muted);
  border-left: 3px solid var(--gold-500);
  padding: .4rem 0 .4rem .9rem; margin: var(--space-2) 0;
}

/* Basic page */
.basic-toc { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.basic-toc a {
  display: inline-flex; gap: .45rem; align-items: center;
  padding: .45rem .9rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: .9375rem; text-decoration: none; color: var(--navy-900);
}
.basic-toc a:hover { border-color: var(--gold-500); }
.basic-toc b { color: var(--gold-600); }
.basic-section { padding-block: var(--space-5); border-bottom: 1px solid var(--line); }
.basic-section:nth-of-type(even) { background: var(--cream-50); }
.basic-section h2 { font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.6rem); }
.basic-section .lesson-number { margin-bottom: var(--space-1); }
.basic-next { margin-top: var(--space-3); }

/* ---------- Contact form ---------- */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-3); box-shadow: var(--shadow);
}
.field { margin-bottom: var(--space-2); }
.field label { display: block; font-weight: 700; color: var(--navy-900); margin-bottom: .35rem; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .875rem; }
.field input, .field textarea {
  width: 100%;
  font: inherit; color: var(--ink);
  padding: .75rem .9rem;
  border: 1px solid #c9bda3; border-radius: var(--radius-sm);
  background: var(--cream-50);
}
.field textarea { min-height: 10rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--gold-400); outline-offset: 1px; border-color: var(--navy-600); background: #fff; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: var(--space-2) 0; min-height: 65px; }
.form-status { margin-top: var(--space-2); padding: 0; }
.form-status:not(:empty) { padding: .9rem 1.1rem; border-radius: var(--radius-sm); }
.form-status.is-ok { background: #e9f5ec; border: 1px solid #9fd0aa; color: #184d27; }
.form-status.is-error { background: #fbeceb; border: 1px solid #e5a9a4; color: #7a1f18; }
.form-note { font-size: .875rem; color: var(--muted); margin-top: var(--space-2); }
.contact-page-grid { display: grid; gap: var(--space-4); }
@media (min-width: 56em) { .contact-page-grid { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 var(--space-3); display: grid; gap: .75rem; }
.contact-list a { font-weight: 700; font-size: 1.125rem; }

/* Prose pages */
.prose { padding-block: var(--space-4) var(--space-5); }
.prose p, .prose li { font-size: 1.125rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: #c9d4df;
  padding-top: var(--space-5);
  font-size: .9375rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--gold-400); }
.site-footer .btn-ask, .site-footer .btn-ask:hover { color: var(--navy-950); }
.footer-grid { display: grid; gap: var(--space-4); padding-bottom: var(--space-4); }
.footer-grid h2 {
  font: 700 .8125rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-400); margin-bottom: var(--space-2);
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-brand { display: flex; gap: .8rem; align-items: center; margin-bottom: var(--space-2); color: #fff; text-decoration: none; }
.footer-brand img { width: 52px; height: 52px; border-radius: 10px; }
.footer-brand b { display: block; letter-spacing: .12em; }
.footer-brand small { font: italic 400 1rem var(--serif); color: var(--gold-200); }
.footer-disclaimer { font-size: .875rem; color: #aebccb; max-width: 30rem; }
.footer-contact .v { font-weight: 700; font-size: 1.0625rem; }
.footer-contact .n { color: #aebccb; font-size: .8125rem; }
.footer-contact .btn { margin-top: var(--space-2); }
.fine-print {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-block: var(--space-3);
  font-size: .8125rem; color: #97a8b9;
  display: flex; flex-direction: column; gap: .35rem;
}
.fine-print p { margin: 0; }
.fine-print a { color: #c9d4df; }
@media (min-width: 52em) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

@media print {
  .site-header, .site-footer, .pager, .section-menu, .presenter-notes, .key-help, .hero-actions { display: none !important; }
  body { background: #fff; }
  .scripture { background: #fff; color: #000; border: 1px solid #999; }
  .transcript { display: none; }
}

/* Lesson figure sizing: wide art stays centred; tall art never exceeds the screen (uncropped). */
.lesson-grid:not(.is-split) .lesson-figures { width: 100%; max-width: 60rem; margin-inline: auto; }
@media (min-width: 60em) {
  .lesson-grid.is-split .figure-frame img {
    width: auto;
    max-height: calc(100vh - var(--header-h) - 9rem);
    margin-inline: auto;
  }
}
