/* ===========================================================================
   The Bible & the Virgin Mary — site styles
   Ported from the approved mockup (mockups/variant-b.html).
   Sections: 1) tokens  2) base  3) components  4) home  5) lesson  6) footer
   =========================================================================== */

/* ---- 1. Design tokens ---------------------------------------------------- */
:root {
  --surface: #FFFFFF;
  --surface-tint: #EAF2F8;     /* cool band/panel tint */
  --marian: #2471A3;           /* cooler blue primary */
  --marian-soft: #D4E6F1;      /* soft fill for "soon" chips */
  --gold: #C29B2E;
  --gold-text: #8A6E12;        /* dark gold for small text (AA-safe) */
  --ink: #1A252C;              /* body text + dark scenario/footer */
  --muted: #4A5568;
  --line: #CFDDE8;
  --line-strong: #9CB7CC;
  --radius: 6px;
  --radius-sm: 4px;
  --maxw: 1160px;
}

/* ---- 2. Base ------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 .4em;
}
p { margin: 0 0 1em; }
a { color: var(--marian); text-underline-offset: 2px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Cross-document view transitions, guarded for reduced motion. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
}

/* ---- 3. Components ------------------------------------------------------- */

/* Mono briefing eyebrow with gold dash */
.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--marian); font-weight: 600; margin: 0 0 .65em;
  display: inline-flex; align-items: center; gap: .55em;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--gold);
  display: inline-block; flex: none;
}
.eyebrow.on-dark { color: var(--marian); }
.eyebrow.on-dark::before { background: var(--gold); }
.meta-mono {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px; letter-spacing: .06em; color: var(--muted);
}

/* Pill chips */
.pill {
  display: inline-flex; align-items: center; gap: .45em;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 13px; border-radius: 100px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--marian);
}
.pill.gold { color: var(--gold-text); border-color: #EBD79C; background: var(--surface); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  padding: 12px 20px; border-radius: var(--radius); cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}
.btn-primary { background: var(--marian); color: #fff; }
.btn-primary:hover { background: #1d5d88; transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #241c02; }
.btn-gold:hover { background: #b18f29; transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--marian); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: var(--surface-tint); transform: translateY(-1px); }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: "Fraunces", serif; font-weight: 600; font-size: 18px;
  color: var(--ink); text-decoration: none;
}
.brand .mark {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--marian);
  color: #fff; font-size: 16px; font-weight: 700; font-family: "Fraunces", serif; flex: none;
}
.nav { display: none; gap: 26px; align-items: center; }
.nav a { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a.active { color: var(--marian); }
.nav .offline-badge {
  font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; padding: .25em .6em; border-radius: 999px;
  background: var(--marian-soft); color: var(--marian); border: 1px solid var(--line-strong);
  display: none;
}
.nav .offline-badge.show { display: inline-flex; }
@media (min-width: 720px) { .nav { display: flex; } }

/* ---- 4. Home ------------------------------------------------------------- */
.hero { padding: 60px 0 40px; }
.hero .wrap { display: grid; gap: 34px; align-items: center; }
@media (min-width: 760px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; gap: 54px; } }
.hero h1 { font-size: clamp(2.1rem, 5vw, 50px); font-weight: 600; margin-bottom: .25em; }
.hero .lede { font-size: 19px; color: var(--muted); max-width: 30em; margin-bottom: 0; }
.hero .lede .kicker { font-weight: 600; color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }

/* Hero figure (public-domain art with caption below the image) */
.hero-art { position: relative; margin: 0; }
.hero-art img {
  width: 100%; height: auto; display: block; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: 0 18px 40px -22px rgba(26, 37, 44, .45);
}
.hero-art figcaption {
  font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--muted);
  margin-top: 10px; letter-spacing: .03em; line-height: 1.4;
}
.hero-art figcaption b { color: var(--ink); font-weight: 600; }

/* Three pillars strip — Warrior / Protector / Disciple */
.pillars { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.pillars .wrap { display: grid; gap: 20px; padding: 32px 24px; }
@media (min-width: 760px) { .pillars .wrap { grid-template-columns: repeat(3, 1fr); gap: 34px; } }
.pillar { display: flex; gap: .85em; align-items: flex-start; }
.pillar .dot {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  background: var(--surface-tint); display: grid; place-items: center; color: var(--marian);
}
.pillar .dot .ico { width: 22px; height: 22px; display: block; }
.pillar h4 { margin: .05em 0 .25em; font-size: 1.06rem; color: var(--marian); font-weight: 600; }
.pillar p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.5; }

/* This-week verse card (gold left border) */
.band {
  background: var(--surface-tint);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 46px 0;
}
.section-head { margin-bottom: 30px; max-width: 42em; }
.section-head h2 { font-size: 30px; font-weight: 600; }
.verse-card {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 30px 34px;
}
.verse-card .eyebrow { margin-bottom: .4em; }
.verse-quote {
  margin: 0; font-family: "Fraunces", serif; font-size: 25px; line-height: 1.4;
  font-weight: 500; color: var(--ink);
}
.verse-ref {
  display: block; margin-top: 14px; font-style: normal; font-weight: 600;
  color: var(--marian); font-size: 15px;
}
.verse-companion {
  margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-strong);
  font-size: 15px; color: var(--muted);
}
.verse-companion p { margin: 0; }
.verse-companion .lead { color: var(--ink); font-weight: 600; }

/* Lesson grid */
.grid-section { padding: 56px 0 64px; }
.lesson-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 620px) { .lesson-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 880px) { .lesson-grid { grid-template-columns: repeat(3, 1fr); } }
.lcard {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 18px;
  background: var(--surface);
  display: flex; flex-direction: column; gap: 10px; min-height: 172px;
  text-decoration: none; color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.lcard.active { border-color: var(--marian); box-shadow: 0 0 0 1px var(--marian); }
.lcard.active:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -18px rgba(36, 113, 163, .6); }
.lcard.soon { background: var(--surface-tint); border-style: dashed; cursor: default; }
.lnum {
  font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .08em;
  color: var(--muted); font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
}
.lcard.active .lnum { color: var(--marian); }
.lcard h3 { font-size: 19px; font-weight: 600; margin: 0; }
.lcard.soon h3 { color: var(--muted); }
.lcard .ldesc { font-size: 14px; color: var(--muted); margin: 0; }
.lcard .go {
  margin-top: auto; font-family: "IBM Plex Mono", monospace; font-weight: 600;
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold);
}
.soon-tag {
  font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: auto;
}
/* "Active"/"Coming soon" inline tags on the lesson cards */
.tag {
  font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 100px; font-weight: 600;
}
.tag-active { background: var(--marian); color: #fff; }
.tag-soon { background: var(--marian-soft); color: var(--marian); }
/* Progress-complete marker, toggled by app.js via localStorage */
.lcard .done-tag {
  font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: #2f6b3f;
}

/* ---- 5. Lesson page ------------------------------------------------------ */
/* Lesson hero: image with a WHITE-to-transparent overlay (not a dark scrim). */
.lesson-hero { position: relative; border-bottom: 1px solid var(--line); }
.lesson-hero img {
  width: 100%; height: 240px; object-fit: cover; object-position: center 28%;
  display: block; filter: saturate(1.02);
}
.lesson-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, .96) 0%,
    rgba(255, 255, 255, .86) 42%,
    rgba(255, 255, 255, .18) 100%);
}
.lesson-hero .wrap {
  position: relative; z-index: 2;
  padding-top: 0; padding-bottom: 0;
  height: 240px; display: flex; flex-direction: column; justify-content: center;
}
.lesson-hero .crumb { font-size: .82rem; color: var(--muted); margin: 0 0 1em; }
.lesson-hero .crumb a { color: var(--marian); text-decoration: none; }
.lesson-hero h1 {
  color: var(--ink); font-size: clamp(1.7rem, 4.4vw, 38px);
  font-weight: 600; margin-bottom: .15em; max-width: 14em;
}
.lesson-hero .sub { color: var(--muted); font-size: 1.02rem; max-width: 40em; margin-bottom: 0; }
.lesson-hero .tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.lesson-hero .pill { background: rgba(255, 255, 255, .7); }

.lesson-body { padding: 46px 0 80px; }
.lesson-layout { display: grid; gap: 34px; }
@media (min-width: 980px) { .lesson-layout { grid-template-columns: 1fr 332px; gap: 48px; align-items: start; } }
.lesson-main section { margin-bottom: 42px; scroll-margin-top: 80px; }
.lesson-main h2 { font-size: 25px; font-weight: 600; margin-bottom: .5em; }
.lesson-main h3 { font-size: 18px; font-weight: 600; margin: 1.4em 0 .4em; }

/* Markdown-rendered body: framing/intro blockquotes stay light. */
.lesson-main blockquote {
  background: var(--surface-tint); border-left: 3px solid var(--marian);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px; margin: 0 0 1.4em; font-size: 15.5px; color: var(--muted);
}
.lesson-main blockquote strong { color: var(--ink); }
.lesson-main blockquote p:last-child { margin-bottom: 0; }
.lesson-main ul, .lesson-main ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.lesson-main li { margin-bottom: .5em; }
.lesson-main hr { border: none; border-top: 1px solid var(--line); margin: 2em 0; }

/* Dark in-world "situation" panel (scenario dialogue, tagged by the bridge). */
.lesson-main blockquote.dialogue {
  background: var(--ink); border: 0; border-radius: var(--radius);
  padding: 20px 22px; margin: 1.2em 0 1.5em; color: #EAF2F8;
}
.lesson-main blockquote.dialogue p { color: #EAF2F8; margin: 0; }
.lesson-main blockquote.dialogue p:first-child {
  font-family: "Fraunces", Georgia, serif; font-size: 21px; line-height: 1.4;
  font-weight: 500; color: #fff;
}
.lesson-main blockquote.dialogue strong { color: var(--gold); font-weight: 600; }

/* Divided discussion rows: bordered container, mono 01/02 numbers, lines between. */
#discussion ol {
  list-style: none; counter-reset: dq; padding: 0; margin: 0 0 1.6em;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface);
}
#discussion ol > li {
  counter-increment: dq; position: relative; margin: 0;
  padding: 15px 18px 15px 52px; border-bottom: 1px solid var(--line); font-size: 15.5px;
}
#discussion ol > li:last-child { border-bottom: none; }
#discussion ol > li::before {
  content: counter(dq, decimal-leading-zero);
  position: absolute; left: 18px; top: 15px;
  font-family: "IBM Plex Mono", monospace; font-weight: 600; color: var(--marian); font-size: 14px;
}
#discussion ol > li strong { color: var(--ink); }

/* "Briefing" numbered steps (optional pre-watch styling, nice-to-have). */
ol.briefing { margin: 0 0 1em; padding-left: 0; list-style: none; counter-reset: step; }
ol.briefing li { position: relative; padding: 12px 0 12px 46px; border-bottom: 1px solid var(--line); }
ol.briefing li:last-child { border-bottom: none; }
ol.briefing li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 11px; width: 28px; height: 28px; border-radius: var(--radius-sm);
  background: var(--marian-soft); color: var(--marian);
  font-family: "IBM Plex Mono", monospace; font-weight: 600;
  display: grid; place-items: center; font-size: 13px;
}

.callout {
  background: var(--surface-tint); border-left: 3px solid var(--marian);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px; margin: 0 0 1.4em; font-size: 15.5px; color: var(--muted);
}
.callout.gold { background: var(--surface-tint); border-left-color: var(--gold); }
.callout strong { color: var(--ink); }
.callout p:last-child { margin-bottom: 0; }

/* Sticky sidebar / panels */
.lesson-aside { display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 980px) { .lesson-aside { position: sticky; top: 84px; } }
.panel {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  overflow: hidden;
}
.panel-head {
  background: var(--surface-tint); border-bottom: 1px solid var(--line); padding: 11px 16px;
  font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--marian); font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
}
.panel-body { padding: 16px; }
.verse-mini blockquote {
  margin: 0; font-family: "Fraunces", serif; font-size: 16.5px; line-height: 1.42;
  font-weight: 500; color: var(--ink); border: none; background: none; padding: 0;
}
.verse-mini cite { display: block; margin-top: 9px; font-style: normal; font-weight: 600; color: var(--marian); font-size: 13px; }
.verse-mini .comp { margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--line-strong); font-size: 13.5px; color: var(--muted); }
.verse-mini .comp em { color: var(--ink); font-style: italic; }
.copybtn {
  margin-top: 14px; width: 100%; justify-content: center; font-size: 13px; padding: 9px 12px;
  background: var(--surface); color: var(--marian); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); font-weight: 600; font-family: "Inter", sans-serif;
  cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
}
.copybtn:hover { background: var(--surface-tint); }
.copybtn.copied { background: var(--marian); color: #fff; border-color: var(--marian); }

/* Reference matrix */
.refmatrix { width: 100%; border-collapse: collapse; font-size: 14px; }
.refmatrix th {
  text-align: left; font-family: "IBM Plex Mono", monospace; font-size: 10px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600;
  padding: 8px 0; border-bottom: 1px solid var(--line); width: 38%; vertical-align: top;
}
.refmatrix td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.refmatrix tr:last-child th, .refmatrix tr:last-child td { border-bottom: none; }
.refmatrix a { text-decoration: none; font-weight: 500; }
.refmatrix a:hover { text-decoration: underline; }
.reflist { display: flex; flex-direction: column; gap: 6px; }

/* Watch card */
.watch-card .panel-body p { margin-bottom: .6em; }
.watch-card .presenters { list-style: none; padding: 0; margin: .2em 0 1em; }
.watch-card .presenters li { font-size: .82rem; margin-bottom: .25em; color: var(--muted); }
.watch-card .presenters b { color: var(--ink); }
.watch-card .btn { width: 100%; justify-content: center; }
.watch-card .small { font-size: 12px; color: var(--muted); margin: .8em 0 0; text-align: center; }

/* Progress toggle button in sidebar */
.progress-btn {
  width: 100%; justify-content: center; font-size: 14px; padding: 10px 12px;
  font-family: "Inter", sans-serif; cursor: pointer;
}
.progress-btn.done { background: #2f6b3f; color: #fff; border-color: #2f6b3f; }
.progress-btn.done:hover { background: #285c36; }

/* Generic page (resources / about / 404) */
.page-body { padding: 46px 0 70px; }
.page-body .prose { max-width: 72ch; }
.page-body table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: .94rem; }
.page-body th, .page-body td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.page-body th { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.page-body blockquote {
  background: var(--surface-tint); border-left: 3px solid var(--marian);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 18px; margin: 0 0 1.4em;
}
.page-body blockquote p:last-child { margin-bottom: 0; }

/* ---- 5b. Printable pages ------------------------------------------------- */
/* Toolbar above each printable: back-link on the left, print button right. */
.printable-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-bottom: 18px;
}
.print-btn { font-size: 14px; padding: 9px 16px; }

/* Readable, reverent body for the participant printables. */
.printable-prose { max-width: 74ch; }
.printable-prose h2 {
  font-size: 24px; font-weight: 600; margin: 1.6em 0 .5em;
  padding-top: 1.1em; border-top: 1px solid var(--line);
}
.printable-prose h2:first-of-type { border-top: none; padding-top: 0; }
.printable-prose h3 { font-size: 18px; font-weight: 600; margin: 1.4em 0 .4em; color: var(--marian); }
.printable-prose ul, .printable-prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.printable-prose li { margin-bottom: .5em; }
.printable-prose hr { border: none; border-top: 2px solid var(--line-strong); margin: 2.4em 0; }
.printable-prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.6em; font-size: .95rem; }
.printable-prose th, .printable-prose td {
  text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line);
}
.printable-prose th {
  font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); font-weight: 600;
}

/* Framing/Scripture blockquotes — light, gold-edged for the reverent ones. */
.printable-prose blockquote {
  background: var(--surface-tint); border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px; margin: 0 0 1.4em;
  font-family: "Fraunces", Georgia, serif; font-size: 18px; line-height: 1.45; color: var(--ink);
}
.printable-prose blockquote p:last-child { margin-bottom: 0; }
.printable-prose blockquote strong { font-family: "Inter", sans-serif; }

/* In-world dialogue (objection / your move) — dark situation panel. */
.printable-prose blockquote.dialogue {
  background: var(--ink); border: 0; border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 18px 22px; margin: 0 0 1.1em;
  font-family: "Inter", sans-serif; font-size: 16px; color: #EAF2F8;
}
.printable-prose blockquote.dialogue p { color: #EAF2F8; margin: 0; }
.printable-prose blockquote.dialogue strong { color: var(--gold); font-weight: 600; }

/* ---- 5c. Print stylesheet ------------------------------------------------ */
/* Clean black-on-white handout: drop chrome, flatten panels, set print margins. */
@media print {
  @page { margin: 13mm 15mm; }
  html { scroll-behavior: auto; }
  body { background: #fff; color: #000; font-size: 12pt; line-height: 1.45; }

  /* Hide site chrome and interactive controls. */
  .topbar, footer, .no-print, .printable-bar, .print-btn,
  .nav, .offline-badge { display: none !important; }

  .page-body { padding: 0; }
  .wrap { max-width: none; padding: 0; }
  .printable-prose { max-width: none; }

  /* Black-on-white text; keep headings legible, drop colored rules to grey. */
  h1, h2, h3, h4 { color: #000; }
  .eyebrow { color: #000; }
  .eyebrow::before { background: #000; }
  .printable-prose h3 { color: #000; }
  a { color: #000; text-decoration: underline; }

  /* Flatten reverent blockquotes to a simple bordered quote. */
  .printable-prose blockquote {
    background: #fff; border-left: 3px solid #000; color: #000;
    padding: 8px 14px;
  }
  /* Flatten the dark dialogue panel for B&W — bordered, not filled. */
  .printable-prose blockquote.dialogue {
    background: #fff; border: 1px solid #000; border-left: 3px solid #000; color: #000;
  }
  .printable-prose blockquote.dialogue p,
  .printable-prose blockquote.dialogue strong { color: #000; }

  /* Tables: visible borders, never split a row across a page. */
  .printable-prose table, .printable-prose th, .printable-prose td { border-color: #000; }
  .printable-prose tr, .printable-prose blockquote { break-inside: avoid; }
  .printable-prose h2, .printable-prose h3 { break-after: avoid; }

  /* The "Participant printable" eyebrow is screen-only UI — drop it from print. */
  .printable-page .eyebrow { display: none; }

  /* Apologetics cards: intro + Card 1 on page 1, then one card per page.
     Compact sizing so a full card (heading + both dialogue boxes) fits one page
     — no orphaned "YOUR MOVE" box bleeding onto the next card's page. */
  .printable-apologetics-cards .printable-prose { font-size: 10pt; line-height: 1.3; }
  .printable-apologetics-cards .printable-prose h2 {
    break-before: page; border-top: none; padding-top: 0;
    font-size: 1.3rem; margin: 0 0 .4em;
  }
  .printable-apologetics-cards .printable-prose h2:first-of-type { break-before: avoid; }
  .printable-apologetics-cards .printable-prose h3 { margin: .85em 0 .2em; }
  .printable-apologetics-cards .printable-prose p { margin: 0 0 .5em; }
  .printable-apologetics-cards .printable-prose ul,
  .printable-apologetics-cards .printable-prose ol { margin: 0 0 .5em; }
  .printable-apologetics-cards .printable-prose li { margin-bottom: .12em; }
  .printable-apologetics-cards .printable-prose blockquote { margin: .65em 0; padding: 5px 12px; }
  .printable-apologetics-cards .printable-prose hr { display: none; }

  /* Action Commitment Card: keep the whole thing on a single page. */
  .printable-action-commitment-card .printable-prose { font-size: 10.5pt; line-height: 1.35; }
  .printable-action-commitment-card .printable-prose h2 { margin: 1em 0 .3em; }
  .printable-action-commitment-card .printable-prose li { margin-bottom: .25em; }
  .printable-action-commitment-card .printable-prose blockquote { padding: 6px 12px; }
}

/* ---- 6. Footer (DARK) ---------------------------------------------------- */
footer { background: var(--ink); color: #C7D6E0; padding: 42px 0 36px; font-size: 13.5px; }
footer .wrap { display: grid; gap: 30px; align-items: start; }
@media (min-width: 720px) { footer .wrap { grid-template-columns: 1.4fr 1fr; } }
footer h4 { color: #fff; font-size: 16px; margin-bottom: .5em; }
footer p { font-size: 13.5px; color: #C7D6E0; }
footer a { color: #9FC4DE; }
footer .parish { font-family: "Fraunces", serif; color: #fff; font-weight: 600; font-size: 16px; }
.ack {
  font-size: 12px; color: #8FA4B2; line-height: 1.55;
  border-top: 1px solid #2C3A44; margin-top: 24px; padding-top: 18px;
}
.ack b { color: #C7D6E0; }
.footmono { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .08em; color: #7C92A2; margin-top: .4em; }
.footer-ack-wrap { grid-column: 1 / -1; }

@media (max-width: 760px) {
  .hero h1 { font-size: 38px; }
  .lesson-hero img, .lesson-hero .wrap { height: 200px; }
  .lesson-hero h1 { font-size: 28px; }
}
