/* =============================================================
   THE KING'S QUEST VBS — FAMILY HUB
   Stylesheet
   --------------------------------------------------------------
   Same brand DNA as the Leader Hub (teal/gold/parchment/red),
   but lighter, warmer, more storybook than manual:
     - Larger body type (18px base, never below 16)
     - 56px minimum touch targets
     - Cream parchment foreground, deep teal frame
     - Mobile-first single column that expands gracefully
   ============================================================= */

:root {
  /* Palette lifted from the Leader Hub */
  --teal-deep: #11434a;
  --teal: #1a5460;
  --teal-mid: #266875;
  --teal-soft: #3e8794;

  --gold-deep: #b88528;
  --gold: #d8a942;
  --gold-bright: #f0c860;
  --gold-soft: #f5dc97;

  --red: #c8302a;
  --red-deep: #9b231e;

  --parchment: #f6ead0;
  --parchment-dark: #e9d6a8;
  --cream: #fbf5e3;

  --wood: #5a3825;
  --wood-deep: #3a2415;
  --wood-light: #7a5238;

  --ink: #2b1d10;
  --ink-soft: #4a3825;
  --ink-muted: #6b5638;

  --shadow-lg: 0 20px 60px rgba(20, 12, 4, 0.32);
  --shadow-md: 0 8px 24px rgba(20, 12, 4, 0.18);
  --shadow-sm: 0 2px 8px rgba(20, 12, 4, 0.12);

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --font-display: "Cinzel", "Trajan Pro", "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-script: "IM Fell English", "Cormorant Garamond", Georgia, serif;

  /* Touch */
  --tap: 56px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--wood-deep);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;          /* larger than Leader Hub — read-aloud friendly */
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--teal); text-decoration: none; border-bottom: 1px dashed var(--gold); }
a:hover { color: var(--red); border-bottom-color: var(--red); }

/* Page background — softer than Leader Hub: warm parchment glow on teal */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(240, 200, 96, 0.10), transparent 70%),
    radial-gradient(ellipse at bottom, rgba(58, 36, 21, 0.45), transparent 70%),
    linear-gradient(180deg, #143e44 0%, #0d2c33 100%);
  z-index: -2;
}


/* ----------------- App shell ----------------- */
.app {
  max-width: 720px;        /* single-column storybook feel even on desktop */
  margin: 0 auto;
  padding: 0 16px 64px;
}


/* ----------------- Cover (hero) ----------------- */
.cover {
  position: relative;
  margin-top: 24px;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: center;
  min-height: 520px;
  isolation: isolate;
}

/* Castle scene fills the cover */
.cover-scene {
  position: absolute; inset: 0;
  background: url("assets/castle.jpg") center/cover no-repeat;
  z-index: 0;
}
.cover-scene::after {
  /* soft golden vignette so text reads cleanly without hiding the castle */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(255,240,200,0.25), transparent 60%),
    linear-gradient(180deg, rgba(17, 67, 74, 0.05) 0%, rgba(17, 67, 74, 0.55) 60%, rgba(17, 67, 74, 0.85) 100%);
}

.cover::before {
  /* inner gold flourish frame */
  content: "";
  position: absolute; inset: 8px;
  border: 1px solid rgba(255, 215, 130, 0.45);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
  z-index: 2;
}

/* Blacksmith peeking from the corner — the welcome figure */
.cover-character {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 165px;
  z-index: 3;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.4));
  pointer-events: none;
}

.cover-content {
  position: relative;
  z-index: 2;
  padding: 26px 22px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cover-year {
  font-family: var(--font-script);
  font-size: 13px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 10px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.cover-logo {
  max-width: 240px;
  margin: 0 auto 8px;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35));
}

.cover-title {
  display: none;            /* logo carries the wordmark; hidden unless logo fails to load */
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--gold-bright);
  margin: 0 0 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.cover-tagline {
  font-family: var(--font-script);
  font-size: 17px;
  color: var(--cream);
  margin: 0 0 14px;
  font-style: italic;
  text-shadow: 0 1px 4px rgba(0,0,0,0.55);
}

/* Parchment scroll holding the live message + CTAs */
.cover-scroll {
  background: linear-gradient(180deg, var(--cream), var(--parchment));
  border: 1.5px solid var(--gold-deep);
  border-radius: var(--radius-md);
  padding: 16px 18px 18px;
  margin: 8px 0 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  width: 100%;
  max-width: 440px;
}

.cover-banner {
  display: inline-block;
  background: var(--red);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 1px;
  padding: 8px 18px;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  font-size: 14px;
}

.cover-headline {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--teal-deep);
  margin: 4px 0 4px;
  line-height: 1.25;
}

.cover-countdown {
  font-family: var(--font-script);
  font-size: 19px;
  color: var(--red-deep);
  margin: 0 0 10px;
}

.cover-central-message {
  font-family: var(--font-script);
  font-style: italic;
  color: var(--gold-bright);
  font-size: 16px;
  margin: 18px 0 2px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}


/* ----------------- Primary CTAs (registration etc) ----------------- */
.cta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 22px 0 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.5px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-primary {
  background: var(--teal-deep);
  color: var(--gold-bright);
  border-color: var(--gold);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-secondary {
  background: var(--cream);
  color: var(--teal-deep);
  border-color: var(--teal);
}
.btn-secondary:hover { background: var(--parchment); }

.btn-ghost {
  background: transparent;
  color: var(--gold-bright);
  border-color: var(--gold);
}


/* ----------------- Section frame (parchment cards) ----------------- */
.section {
  position: relative;
  margin: 32px 0 0;
  background: linear-gradient(180deg, var(--cream), var(--parchment));
  border: 2px solid var(--gold-deep);
  border-radius: var(--radius-lg);
  padding: 22px 22px 26px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* Scene banner header — image strip with section title on a solid ribbon */
.scene-banner {
  position: relative;
  height: 180px;
  margin: -22px -22px 22px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-bottom: 3px solid var(--gold);
  overflow: hidden;
}
.scene-banner::before {
  /* darken the bottom of the image so the ribbon sits cleanly */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(17, 67, 74, 0.0) 50%, rgba(17, 67, 74, 0.75) 100%);
}
.scene-banner-title {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px 10px 18px;
  margin-bottom: -1px;   /* tuck the ribbon into the gold border */
  background: linear-gradient(180deg, #11434a 0%, #0d343a 100%);
  border: 1.5px solid var(--gold-bright);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -4px 14px rgba(0,0,0,0.35);
}
.scene-banner-title h2 {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--gold-bright) !important;
  margin: 0;
  letter-spacing: 1px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  line-height: 1.15;
  text-align: center;
  /* No nowrap — let long titles wrap on narrow phones */
}
.banner-icon {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6));
}

/* Welcome greeting section — blacksmith side-by-side */
.greeter-grid {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  align-items: center;
}
.greeter-figure {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25));
}
.greeter-text .section-eyebrow { margin-bottom: 2px; }
.greeter-text h2 { margin-top: 4px; }
.greeter-text .signed {
  font-family: var(--font-script);
  font-style: italic;
  color: var(--ink-muted);
  margin-top: 10px;
  font-size: 16px;
}

/* (Knight-greeter pattern removed — scene banners + apostle portraits carry character) */

/* Icon accent next to a section title (sword / crown / cross) */
.icon-accent {
  display: inline-block;
  width: 28px;
  height: 28px;
  vertical-align: middle;
  margin-right: 8px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}

/* Decorative divider with a centered icon */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 18px;
  color: var(--gold-deep);
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
}
.divider img { width: 26px; height: 26px; opacity: 0.85; }

.section-eyebrow {
  font-family: var(--font-script);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.section h2 {
  font-family: var(--font-display);
  color: var(--teal-deep);
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 14px;
  line-height: 1.2;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Decorative underline accent below non-banner h2s for visual punch */
.section:not(:has(.scene-banner)) h2 {
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold) 60px, transparent 60px) no-repeat;
  background-position: 0 100%;
  background-size: 100% 2px;
}

.section h3 {
  font-family: var(--font-display);
  color: var(--teal-deep);
  font-size: 21px;
  font-weight: 700;
  margin: 22px 0 8px;
  letter-spacing: 0.3px;
}

.section p { margin: 8px 0; color: var(--ink); }


/* ----------------- Five-day arc preview (Pre-VBS) ----------------- */
.arc-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}

.arc-item {
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(184, 133, 40, 0.35);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.arc-item:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--gold-deep);
  transform: translateY(-1px);
}
.arc-item-anchor {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  color: inherit;
  text-decoration: none;
  border-bottom: none;
}
.arc-item-anchor:hover { color: inherit; border-bottom: none; }
.arc-day-arrow {
  font-size: 22px;
  color: var(--gold-deep);
  padding-left: 8px;
}

.arc-day-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal-deep);
  color: var(--gold-bright);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}

.arc-day-meta { line-height: 1.3; }
.arc-day-meta .arc-day-name {
  font-family: var(--font-script);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.arc-day-meta .arc-day-title {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--teal-deep);
}
.arc-day-meta .arc-day-hook {
  font-size: 15px;
  color: var(--ink-soft);
}


/* ----------------- Knight's Guide — info blocks ----------------- */
.info-block {
  border-left: 4px solid var(--gold);
  padding: 4px 0 4px 14px;
  margin: 12px 0;
}
.info-block strong { color: var(--teal-deep); }

.address-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--teal-deep);
  margin: 2px 0 2px;
  letter-spacing: 0.3px;
}
.address-line {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--ink-soft);
  margin: 2px 0;
}

.guide-list {
  margin: 8px 0 14px 0;
  padding-left: 22px;
}
.guide-list li { margin: 6px 0; }


/* ===========================================================
   NOTIFY POPUP MODAL — first-visit nudge
   =========================================================== */

.notify-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.notify-modal[hidden] { display: none; }

.notify-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 4, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.notify-modal-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, var(--cream), var(--parchment));
  border: 2px solid var(--gold-bright);
  border-radius: var(--radius-lg);
  padding: 28px 22px 22px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: notifyModalIn 0.25s ease;
}

@keyframes notifyModalIn {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.notify-modal-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  font-size: 26px;
  color: var(--ink-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.notify-modal-close:hover { color: var(--ink); }

.notify-modal-icon {
  font-size: 44px;
  margin-bottom: 6px;
  line-height: 1;
}

.notify-modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--teal-deep);
  margin: 4px 0 10px;
  letter-spacing: 0.3px;
}

.notify-modal-body {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 18px;
}

.notify-modal-actions {
  display: flex;
  gap: 10px;
  flex-direction: column;
}
@media (min-width: 480px) {
  .notify-modal-actions { flex-direction: row; }
  .notify-modal-actions .btn { flex: 1; min-width: 0; }
}


/* ===========================================================
   NOTIFICATIONS OPT-IN CARD (OneSignal)
   =========================================================== */

.notify-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 16px;
  margin: 14px 0 10px;
  padding: 16px 18px;
  background: linear-gradient(180deg, var(--cream), var(--parchment));
  border: 1.5px solid var(--gold-deep);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.notify-card-icon {
  font-size: 36px;
  line-height: 1;
  text-align: center;
}
.notify-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.notify-card-title {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--teal-deep);
  font-weight: 700;
  letter-spacing: 0.3px;
}
.notify-card-meta {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.notify-card-btn {
  flex-shrink: 0;
  min-width: 180px;
}
.notify-card-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Subscribed = teal-accented card */
.notify-card-subscribed {
  background: linear-gradient(180deg, rgba(62,135,148,0.18), rgba(62,135,148,0.10));
  border-color: var(--teal);
}
.notify-card-subscribed .notify-card-title { color: var(--teal-deep); }

/* Denied = muted red-accent */
.notify-card-denied {
  background: linear-gradient(180deg, rgba(200,48,42,0.08), rgba(200,48,42,0.04));
  border-color: var(--red);
}
.notify-card-denied .notify-card-title { color: var(--red-deep); }

.notify-ios-hint {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-muted);
}

@media (max-width: 580px) {
  .notify-card { grid-template-columns: 44px 1fr; }
  .notify-card-icon { font-size: 28px; }
  .notify-card-btn { grid-column: 1 / -1; min-width: 0; width: 100%; }
}


/* ===========================================================
   MISSION PROJECT — NACS tally board
   =========================================================== */

.mission-bring {
  margin: 10px 0 18px;
  padding: 12px 16px;
  background: rgba(216, 169, 66, 0.16);
  border-left: 4px solid var(--gold-deep);
  border-radius: var(--radius-sm);
  font-style: italic;
  color: var(--ink-soft);
}

.tally-board {
  margin-top: 14px;
  padding: 18px 18px 20px;
  background:
    radial-gradient(ellipse at top left, rgba(216,169,66,0.10), transparent 70%),
    linear-gradient(180deg, var(--teal-deep), #0a2c33);
  border: 2px solid var(--gold-bright);
  border-radius: var(--radius-lg);
  color: var(--cream);
  box-shadow: var(--shadow-md);
}

.tally-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.tally-eyebrow {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.tally-updated {
  font-family: var(--font-script);
  font-style: italic;
  font-size: 14px;
  color: var(--gold-soft);
  margin-top: 2px;
}
.tally-total {
  text-align: right;
}
.tally-total-amount {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1;
}
.tally-total-goal {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--gold-soft);
  margin-top: 4px;
}

/* Overall progress bar — total raised vs goal */
.tally-progress {
  height: 8px;
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}
.tally-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* Grouped sub-boards (Elementary / Castle Cadets / Royal Guard) */
.tally-groups {
  display: grid;
  gap: 22px;
}
.tally-group {
  padding-top: 4px;
}
.tally-group-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(240,200,96,0.25);
}
.tally-group-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.tally-group-total {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--cream);
}

/* One row per team */
.tally-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.tally-row {
  padding: 10px 12px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
}
.tally-row.is-leader {
  background: rgba(240, 200, 96, 0.12);
  border-color: var(--gold-bright);
  box-shadow: 0 2px 12px rgba(240,200,96,0.15);
}
.tally-row-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.tally-rank {
  width: 26px; height: 26px;
  background: rgba(216,169,66,0.25);
  border: 1px solid var(--gold-deep);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.tally-team {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--cream);
  font-weight: 600;
  letter-spacing: 0.3px;
}
.tally-leader {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 1.5px;
  background: var(--gold-bright);
  color: var(--teal-deep);
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 700;
}
.tally-amount {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--gold-bright);
}
.tally-bar {
  height: 14px;
  background: rgba(255,255,255,0.10);
  border-radius: 999px;
  overflow: hidden;
}
.tally-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.15);
}


/* ===========================================================
   NIGHTLY MENU — Knight's Guide week view + per-chapter tonight
   =========================================================== */

.menu-week {
  list-style: none;
  padding: 0;
  margin: 10px 0 14px;
  display: grid;
  gap: 8px;
}
.menu-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: start;
  padding: 12px 14px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(184,133,40,0.35);
  border-radius: var(--radius-sm);
}
.menu-day {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.menu-day-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--teal-deep);
}
.menu-day-date {
  font-family: var(--font-script);
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 1px;
}
.menu-detail {
  line-height: 1.45;
}
.menu-entree {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--teal-deep);
}
.menu-tbd {
  font-style: italic;
  color: var(--ink-muted);
  font-weight: 400;
  font-family: var(--font-script);
  font-size: 17px;
}
.menu-sides {
  font-size: 15px;
  color: var(--ink-soft);
  margin-top: 4px;
}
.menu-allergens {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 6px;
  font-style: italic;
}
.menu-veg {
  font-size: 13px;
  color: var(--teal);
  margin-top: 4px;
}

/* Per-chapter Tonight's Menu — same fields, single-card layout */
.tonight-menu-card {
  background: rgba(255,255,255,0.7);
  border-left: 4px solid var(--gold-deep);
  border-radius: var(--radius-sm);
  padding: 12px 16px 14px;
  margin-top: 4px;
}
.tonight-menu-card .menu-entree { font-size: 18px; }

@media (max-width: 480px) {
  .menu-row { grid-template-columns: 90px 1fr; gap: 10px; padding: 10px 12px; }
  .menu-day-name { font-size: 15px; }
}


/* ----------------- Music & Motion ----------------- */
.song-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.song-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(184, 133, 40, 0.4);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.song-title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--teal-deep);
  margin: 0 0 2px;
}
.song-role {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0 0 10px;
  font-style: italic;
}

.song-card audio {
  width: 100%;
  min-height: 44px;
}

.music-note {
  margin-top: 18px;
  padding: 14px 16px;
  background: rgba(216, 169, 66, 0.18);
  border-left: 4px solid var(--gold-deep);
  border-radius: var(--radius-sm);
  font-style: italic;
  color: var(--ink-soft);
}


/* ----------------- Direct-call tile (above the form) ----------------- */
.contact-direct {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 16px;
  padding: 14px 16px;
  background: linear-gradient(180deg, var(--teal-deep), #0d343a);
  border: 2px solid var(--gold-bright);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--cream);
  border-bottom-style: solid;
  min-height: var(--tap);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: var(--shadow-sm);
}
.contact-direct:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: var(--cream);
  border-bottom-style: solid;
}
.contact-direct-icon {
  font-size: 26px;
  color: var(--gold-bright);
  flex-shrink: 0;
}
.contact-direct-text {
  flex: 1;
  line-height: 1.3;
  min-width: 0;
}
.contact-direct-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--gold-bright);
  letter-spacing: 0.3px;
}
.contact-direct-text small {
  font-size: 13px;
  color: var(--cream);
  opacity: 0.85;
}
.contact-direct-number {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .contact-direct { flex-wrap: wrap; padding: 12px 14px; }
  .contact-direct-number { font-size: 16px; flex-basis: 100%; text-align: center; padding-top: 4px; border-top: 1px solid rgba(240,200,96,0.25); margin-top: 8px; }
}


/* ----------------- Contact form ----------------- */
.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.field-row { display: grid; gap: 6px; }

.contact-form label {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--teal-deep);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  min-height: var(--tap);
  padding: 12px 14px;
  border: 1.5px solid var(--gold-deep);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
}
.contact-form textarea { min-height: 120px; resize: vertical; }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 48, 42, 0.18);
}

.form-status {
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  display: none;
}
.form-status.success {
  display: block;
  background: rgba(62, 135, 148, 0.16);
  border-left: 4px solid var(--teal);
  color: var(--teal-deep);
}
.form-status.error {
  display: block;
  background: rgba(200, 48, 42, 0.10);
  border-left: 4px solid var(--red);
  color: var(--red-deep);
}
.form-status.setup {
  display: block;
  background: rgba(184, 133, 40, 0.12);
  border-left: 4px solid var(--gold-deep);
  color: var(--ink-soft);
}


/* ----------------- FAQ accordion ----------------- */
.faq-list { margin-top: 14px; }

.faq-item {
  border-bottom: 1px solid rgba(184, 133, 40, 0.35);
}
.faq-item:last-child { border-bottom: none; }

.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 16px 6px;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--teal-deep);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: var(--tap);
}
.faq-q::after {
  content: "+";
  font-size: 22px;
  color: var(--gold-deep);
  transition: transform 0.2s ease;
}
.faq-item.open .faq-q::after { content: "–"; }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  color: var(--ink-soft);
  padding: 0 6px;
}
.faq-item.open .faq-a {
  max-height: 600px;
  padding: 0 6px 16px;
}


/* ----------------- Footer ----------------- */
.footer {
  margin-top: 36px;
  text-align: center;
  color: rgba(246, 234, 208, 0.7);
  font-size: 14px;
}
.footer .central-message {
  font-family: var(--font-script);
  font-style: italic;
  font-size: 16px;
  color: var(--gold-bright);
  margin-bottom: 6px;
}


/* ----------------- Nav (anchor pills) ----------------- */
.section-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  margin: 18px -16px 0;
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(13, 44, 51, 0.96), rgba(13, 44, 51, 0.78));
  backdrop-filter: blur(6px);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;                /* wrap onto multiple rows so no pill gets cut off */
  justify-content: center;
}

.section-nav a {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(246, 234, 208, 0.08);
  border: 1px solid rgba(216, 169, 66, 0.45);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.5px;
  text-decoration: none;
}
.section-nav a:hover {
  background: rgba(246, 234, 208, 0.15);
  border-color: var(--gold-bright);
}


/* ============================================================
   CHAPTER PAGE  (Phase 2 storybook engine — Chapter 1 prototype)
   ============================================================ */

.preview-banner {
  background: var(--gold-deep);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 1px;
  padding: 8px 14px;
  border-radius: 4px;
  margin: -10px -10px 16px;
  text-align: center;
}

/* Locked chapter — compact teaser shown until that day unlocks */
.chapter-locked {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(246,234,208,0.55));
  border: 1.5px dashed rgba(184,133,40,0.55);
  border-radius: var(--radius-md);
  margin-top: 16px;
  opacity: 0.92;
}
.locked-icon {
  font-size: 28px;
  flex-shrink: 0;
  filter: grayscale(0.2);
}
.locked-meta {
  flex: 1;
  line-height: 1.35;
}
.locked-day {
  font-family: var(--font-script);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 2px;
}
.locked-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--teal-deep);
  letter-spacing: 0.3px;
}
.locked-unlock {
  font-family: var(--font-script);
  font-style: italic;
  color: var(--ink-muted);
  font-size: 14px;
  margin-top: 2px;
}

/* "Tonight's Chapter" badge — gold ribbon at the top of the active chapter */
.chapter-page.is-tonight {
  box-shadow: 0 0 0 2px var(--gold-bright), var(--shadow-md);
}
.tonight-badge {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--teal-deep);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 4px;
  margin: -10px -10px 16px;
  text-align: center;
}

/* Chapter header — full-bleed scene with title overlaid */
.chapter-header {
  position: relative;
  margin: -22px -22px 0;
  padding: 30px 22px 26px;
  background-size: cover;
  background-position: center;
  border-bottom: 3px solid var(--gold);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.chapter-header-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17,67,74,0.55) 0%, rgba(17,67,74,0.80) 100%);
  z-index: 0;
}
.chapter-header-content {
  position: relative;
  z-index: 1;
}
.chapter-eyebrow {
  font-family: var(--font-script);
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 14px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}
/* Title sits on a solid teal+gold ribbon for guaranteed legibility on any background */
.chapter-title-ribbon {
  display: inline-block;
  background: linear-gradient(180deg, var(--teal-deep) 0%, #0a2e34 100%);
  border: 2px solid var(--gold-bright);
  border-radius: 6px;
  padding: 10px 26px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  margin-bottom: 12px;
}
/* Higher specificity than .section h2 so the gold color wins */
.chapter-page .chapter-title-ribbon .chapter-title {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--gold-bright);
  margin: 0;
  line-height: 1.15;
  letter-spacing: 0.8px;
  border: none;
  background: none;
  padding: 0;
  display: block;          /* override .section h2 flex */
  text-shadow: 0 1px 3px rgba(0,0,0,0.55);
  font-weight: 700;
}
/* Higher specificity than .section p so the cream-on-teal styling wins */
.chapter-page .chapter-header .chapter-subtitle {
  font-family: var(--font-script);
  font-size: 18px;
  font-style: italic;
  color: var(--cream);
  margin: 0;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8), 0 0 12px rgba(0,0,0,0.5);
}

/* Chapter body wrapper — adds breathing room after the header */
.chapter-body {
  padding-top: 22px;
}

/* Block labels — small caps eyebrow before each chapter element */
.block-label {
  font-family: var(--font-script);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 22px 0 8px;
  font-weight: 600;
}
.block-label.light {
  color: var(--gold-soft);
}

/* Storybook paragraph + illuminated drop cap */
.storybook {
  font-family: var(--font-script);
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 8px;
}
.drop-cap {
  font-family: var(--font-display);
  font-size: 58px;
  line-height: 0.85;
  font-weight: 700;
  color: var(--gold-deep);
  float: left;
  padding: 6px 10px 0 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Verse — dark teal panel with gold border */
.verse-card {
  background: linear-gradient(180deg, var(--teal-deep), var(--teal));
  border: 2px solid var(--gold-bright);
  border-radius: var(--radius-md);
  padding: 18px 22px 22px;
  margin: 22px 0 0;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.verse-card .block-label { margin-top: 0; }
.verse-text {
  font-family: var(--font-script);
  font-size: 22px;
  line-height: 1.45;
  color: var(--cream);
  font-style: italic;
  margin: 8px 0 10px;
  quotes: none;
}
.verse-cite {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--gold-bright);
  font-style: normal;
}

/* Truth — red banner, the day's central headline */
.truth-card {
  background: linear-gradient(180deg, var(--red), var(--red-deep));
  border: 2px solid var(--gold-bright);
  border-radius: var(--radius-md);
  padding: 16px 20px 20px;
  margin: 22px 0 0;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.truth-card .block-label { margin-top: 0; color: var(--gold-soft); }
.truth-text {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.2;
  color: var(--cream);
  margin: 6px 0 0;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.from-knight {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--ink);
}

.hint {
  margin: 0 0 12px;
  color: var(--ink-muted);
  font-size: 15px;
  font-style: italic;
}

/* Around the Table — depth-coded conversation starters */
.starters {
  display: grid;
  gap: 12px;
}
.starter {
  position: relative;
  background: rgba(255,255,255,0.7);
  border-left: 5px solid var(--teal-soft);
  border-radius: var(--radius-sm);
  padding: 12px 16px 14px 18px;
}
.starter-easy   { border-left-color: var(--teal-soft); }
.starter-medium { border-left-color: var(--gold-deep); }
.starter-deep   { border-left-color: var(--red); }

.depth-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 6px;
  color: var(--cream);
}
.starter-easy   .depth-badge { background: var(--teal-soft); }
.starter-medium .depth-badge { background: var(--gold-deep); }
.starter-deep   .depth-badge { background: var(--red); }

.starter p {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink);
}

/* Prayer card — cream parchment, italic serif, read-aloud feel */
.prayer-card {
  background:
    radial-gradient(ellipse at top, rgba(216,169,66,0.08), transparent 70%),
    linear-gradient(180deg, var(--cream), var(--parchment));
  border: 1.5px solid var(--gold-deep);
  border-radius: var(--radius-md);
  padding: 18px 22px 20px;
  margin: 22px 0 0;
  position: relative;
}
.prayer-card .block-label { margin-top: 0; color: var(--ink-muted); }
.prayer-card::before, .prayer-card::after {
  content: "";
  position: absolute;
  left: 18px; right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
}
.prayer-card::before { top: 14px; }
.prayer-card::after  { display: none; }

.prayer-lines { margin: 4px 0 0; }
.prayer-line {
  font-family: var(--font-script);
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  margin: 6px 0;
  text-align: center;
}
.prayer-line:last-child {
  color: var(--teal-deep);
  font-weight: 600;
  margin-top: 10px;
}

/* Photos tile */
.photos-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.7);
  border: 1.5px solid var(--gold-deep);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-decoration: none;
  color: var(--ink);
  border-bottom-style: solid;
  transition: transform 0.12s ease;
  min-height: var(--tap);
}
.photos-tile:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.85);
  color: var(--ink);
}
.photos-tile.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}
.photos-tile-icon { font-size: 28px; }
.photos-tile-text { flex: 1; line-height: 1.3; }
.photos-tile-text strong {
  display: block;
  font-family: var(--font-display);
  color: var(--teal-deep);
  font-size: 17px;
}
.photos-tile-text small {
  color: var(--ink-muted);
  font-size: 14px;
}
.photos-tile-arrow {
  font-size: 22px;
  color: var(--gold-deep);
}

/* Share a Moment placeholder */
.share-moment {
  margin-top: 24px;
  padding: 14px 16px;
  background: rgba(184,133,40,0.10);
  border: 1px dashed var(--gold-deep);
  border-radius: var(--radius-sm);
}

/* Chapter navigation */
.chapter-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 28px 0 4px;
  padding-top: 18px;
  border-top: 1px solid rgba(184,133,40,0.4);
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink-muted);
}
.chapter-nav .nav-locked { opacity: 0.5; font-style: italic; }


/* Meet the Apostle — full-figure character card + bio */
.apostle-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: start;
  margin: 22px 0 0;
  padding: 18px 20px 20px;
  background:
    radial-gradient(ellipse at top left, rgba(216,169,66,0.14), transparent 70%),
    rgba(255,255,255,0.65);
  border: 1.5px solid var(--gold-deep);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.apostle-card.no-image {
  grid-template-columns: 1fr;
}
.apostle-card.no-image .apostle-portrait { display: none; }

/* Full-figure character card — taller than wide, like a hero portrait */
.apostle-portrait {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--gold-bright);
  background:
    radial-gradient(ellipse at 50% 85%, rgba(255,240,200,0.35), transparent 60%),
    linear-gradient(180deg, var(--teal-soft) 0%, var(--teal-deep) 100%);
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 4px;
}
.apostle-portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.apostle-text .block-label { margin-top: 0; }
.apostle-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--teal-deep);
  margin: 2px 0 2px;
  letter-spacing: 0.4px;
}
.apostle-role {
  font-family: var(--font-script);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-muted);
  margin: 0 0 8px;
}
.apostle-blurb {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}

@media (max-width: 480px) {
  .apostle-card { grid-template-columns: 100px 1fr; gap: 14px; }
  .apostle-name { font-size: 22px; }
}

/* Bible Story card — scriptural retelling */
.bible-story-card {
  background: rgba(246,234,208,0.55);
  border-left: 4px solid var(--wood);
  border-radius: var(--radius-sm);
  padding: 16px 18px 18px;
  margin: 6px 0 0;
}
.bible-story-card .block-label { margin-top: 0; }
.bible-story-ref {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--wood);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 4px;
}
.bible-story-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--teal-deep);
  margin: 0 0 12px;
  line-height: 1.25;
}
.bible-story-body p {
  margin: 8px 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
}

/* Verse motions — small instruction block under the verse */
.verse-motions {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(240,200,96,0.4);
}
.verse-motions-label {
  font-family: var(--font-script);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 8px;
}
.verse-motion {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 4px 0;
  color: var(--cream);
  font-size: 15px;
}
.verse-motion-phrase {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gold-bright);
  background: rgba(0,0,0,0.25);
  padding: 2px 10px;
  border-radius: 4px;
}
.verse-motion-arrow {
  color: var(--gold-soft);
}
.verse-motion-action {
  font-style: italic;
  color: var(--cream);
}

/* Age-group cards — one per track */
.age-groups {
  display: grid;
  gap: 12px;
}
.age-card {
  background: rgba(255,255,255,0.78);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  border-left: 5px solid var(--teal);
}
.age-cadets       { border-left-color: var(--teal-soft); }
.age-squires      { border-left-color: var(--gold-deep); }
.age-royal-guard  { border-left-color: var(--red); }

.age-card-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.age-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--teal-deep);
}
.age-range {
  font-family: var(--font-script);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 2px 8px;
  border-radius: 3px;
  background: rgba(0,0,0,0.06);
}
.age-card p { margin: 4px 0; color: var(--ink); font-size: 15.5px; line-height: 1.5; }
.age-did strong, .age-ask strong { color: var(--teal-deep); }

/* Carry This With You — closing truth repeat */
.carry-this {
  margin: 22px 0 0;
  padding: 16px 18px 18px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border: 2px solid var(--gold-deep);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.carry-label {
  font-family: var(--font-script);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--wood-deep);
  margin-bottom: 6px;
}
.carry-truth {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--teal-deep);
  margin: 0;
  line-height: 1.3;
  letter-spacing: 0.3px;
}


/* ----------------- Wider screens ----------------- */
@media (min-width: 600px) {
  body { font-size: 18px; }
  .cover { min-height: 620px; }
  .cover-content { padding: 38px 32px 44px; }
  .cover-logo { max-width: 300px; }
  .cover-character { width: 230px; bottom: -16px; right: 4px; }
  .cover-headline { font-size: 28px; }
  .section { padding: 28px 30px 32px; }
  .section h2 { font-size: 30px; }
  .scene-banner { height: 220px; margin: -28px -30px 26px; }
  .scene-banner-title { padding: 12px 28px 12px 22px; gap: 14px; }
  .scene-banner-title h2 { font-size: 32px; }
  .banner-icon { width: 44px; height: 44px; }

  /* Chapter page at desktop width */
  .chapter-header { margin: -28px -30px 0; padding: 44px 30px 40px; }
  .chapter-title-ribbon { padding: 12px 32px; }
  .chapter-page .chapter-title-ribbon .chapter-title { font-size: 34px; }
  .chapter-page .chapter-header .chapter-subtitle { font-size: 20px; }
  .storybook { font-size: 21px; }
  .drop-cap { font-size: 72px; padding: 8px 14px 0 0; }
  .verse-text { font-size: 26px; }
  .truth-text { font-size: 28px; }
  .prayer-line { font-size: 21px; }
  .carry-truth { font-size: 24px; }
  .bible-story-body p { font-size: 17px; }
  .age-name { font-size: 20px; }
  .apostle-card { grid-template-columns: 170px 1fr; gap: 24px; padding: 22px 26px; }
  .apostle-name { font-size: 30px; }
  .apostle-blurb { font-size: 17px; }
  .greeter-grid { grid-template-columns: 180px 1fr; gap: 26px; }
  .cta-row { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .btn { flex: 1 1 auto; min-width: 200px; }
}

@media (min-width: 900px) {
  .app { max-width: 820px; }
}


/* =============================================================
   NARROW MOBILE  (iPhone SE through standard phone widths)
   --------------------------------------------------------------
   Tightens spacing, shrinks typography, stacks side-by-side
   layouts so nothing overflows on 320–480px viewports.
   ============================================================= */
@media (max-width: 480px) {

  /* Tighter shell so content has more breathing room */
  .app { padding: 0 12px 56px; }
  .section { padding: 18px 16px 22px; }

  /* COVER — shorter, smaller character, scroll fits the viewport */
  .cover { min-height: 460px; }
  .cover-content { padding: 22px 14px 28px; }
  .cover-character { width: 120px; right: -6px; bottom: -8px; }
  .cover-logo { max-width: 200px; }
  .cover-tagline { font-size: 15px; }
  .cover-scroll { padding: 14px 14px 16px; }
  .cover-banner { font-size: 13px; padding: 7px 14px; }
  .cover-headline { font-size: 20px; }
  .cover-countdown { font-size: 17px; }

  /* STICKY NAV — smaller pills for narrow screens */
  .section-nav { margin: 12px -12px 0; padding: 8px 12px; gap: 6px; }
  .section-nav a { padding: 6px 12px; font-size: 13px; letter-spacing: 0.3px; }

  /* SECTION HEADERS — smaller h2 on narrow phones */
  .section h2 { font-size: 24px; gap: 8px; }
  .section h3 { font-size: 19px; margin: 18px 0 6px; }

  /* SCENE BANNERS — shorter, smaller ribbon title */
  .scene-banner { height: 140px; margin: -18px -16px 18px; }
  .scene-banner-title { padding: 8px 14px; gap: 8px; max-width: calc(100% - 24px); }
  .scene-banner-title h2 { font-size: 19px; letter-spacing: 0.5px; }
  .banner-icon { width: 30px; height: 30px; }

  /* WELCOME GREETING — stack vertically (knight on top, text below) */
  .greeter-grid { grid-template-columns: 1fr; gap: 14px; text-align: center; }
  .greeter-figure { max-width: 130px; margin: 0 auto; }

  /* QUEST ARC LIST */
  .arc-item-anchor { grid-template-columns: 38px 1fr 18px; padding: 10px 12px; gap: 10px; }
  .arc-day-num { width: 38px; height: 38px; font-size: 15px; }
  .arc-day-meta .arc-day-title { font-size: 16px; }
  .arc-day-meta .arc-day-hook { font-size: 14px; }
  .arc-day-arrow { font-size: 18px; padding-left: 0; }

  /* CHAPTER PAGES — tighter header + body */
  .chapter-header { padding: 24px 16px 24px; }
  .chapter-eyebrow { font-size: 11px; letter-spacing: 3px; margin-bottom: 10px; }
  .chapter-title-ribbon { padding: 8px 18px; }
  .chapter-page .chapter-title-ribbon .chapter-title { font-size: 22px; letter-spacing: 0.5px; }
  .chapter-page .chapter-header .chapter-subtitle { font-size: 16px; }
  .chapter-body { padding-top: 18px; }
  .preview-banner { font-size: 12px; padding: 7px 12px; margin: -8px -6px 14px; }

  /* MEET THE APOSTLE — stack portrait above text */
  .apostle-card { grid-template-columns: 1fr; gap: 14px; padding: 14px 16px 16px; text-align: center; }
  .apostle-portrait { max-width: 150px; margin: 0 auto; aspect-ratio: 3 / 4; }
  .apostle-name { font-size: 22px; }
  .apostle-role { font-size: 15px; }
  .apostle-blurb { font-size: 14.5px; text-align: left; }

  /* STORYBOOK — smaller font and drop cap */
  .storybook { font-size: 17px; line-height: 1.6; }
  .drop-cap { font-size: 46px; padding: 4px 8px 0 0; }

  /* BIBLE STORY */
  .bible-story-card { padding: 14px 14px 16px; }
  .bible-story-title { font-size: 17px; }
  .bible-story-body p { font-size: 15px; line-height: 1.55; }

  /* VERSE / TRUTH / PRAYER cards — tighter */
  .verse-card,
  .truth-card,
  .prayer-card { padding: 14px 16px 16px; }
  .verse-text { font-size: 18px; line-height: 1.4; }
  .verse-cite { font-size: 13px; }
  .truth-text { font-size: 19px; line-height: 1.25; }
  .prayer-line { font-size: 17px; line-height: 1.5; }
  .carry-this { padding: 14px 16px 16px; }
  .carry-truth { font-size: 17px; }

  /* AGE GROUPS */
  .age-card { padding: 12px 14px; }
  .age-name { font-size: 17px; }
  .age-card p { font-size: 14.5px; }

  /* AROUND THE TABLE — smaller starters */
  .starter { padding: 10px 12px 12px 14px; }
  .starter p { font-size: 15.5px; }
  .depth-badge { font-size: 10px; padding: 2px 7px; }

  /* MENUS — tighter rows */
  .menu-row { grid-template-columns: 78px 1fr; gap: 10px; padding: 10px 12px; }
  .menu-day-name { font-size: 14px; }
  .menu-day-date { font-size: 11px; letter-spacing: 0.5px; }
  .menu-entree { font-size: 15.5px; }
  .menu-sides { font-size: 14px; }
  .tonight-menu-card { padding: 12px 14px; }

  /* MISSION TALLY — compress the team rows */
  .tally-board { padding: 14px 14px 16px; }
  .tally-total-amount { font-size: 26px; }
  .tally-team { font-size: 15px; }
  .tally-amount { font-size: 15px; }
  .tally-rank { width: 22px; height: 22px; font-size: 11px; }
  .tally-leader { font-size: 9.5px; letter-spacing: 1px; padding: 2px 6px; }
  .tally-group-name { font-size: 14px; }
  .tally-group-total { font-size: 16px; }

  /* MUSIC */
  .song-card { padding: 12px 14px; }
  .song-title { font-size: 16px; }
  .song-role { font-size: 13px; }

  /* CONTACT FORM */
  .contact-form input,
  .contact-form select,
  .contact-form textarea { padding: 11px 12px; }

  /* PHOTOS TILE */
  .photos-tile { padding: 12px 14px; gap: 10px; }
  .photos-tile-text strong { font-size: 15px; }
  .photos-tile-text small { font-size: 13px; }

  /* FAQ */
  .faq-q { font-size: 15.5px; padding: 14px 4px; }

  /* MISCELLANEOUS */
  .info-block { padding-left: 12px; }
  .address-name { font-size: 18px; }
  .address-line { font-size: 16px; }
  .guide-list li { font-size: 15.5px; }
  .footer { font-size: 13px; }
}


/* Even tighter for very small phones (iPhone SE 1st gen, etc.) */
@media (max-width: 360px) {
  .cover-character { width: 100px; }
  .cover-logo { max-width: 170px; }
  .scene-banner-title h2 { font-size: 17px; }
  .chapter-page .chapter-title-ribbon .chapter-title { font-size: 20px; }
  .section h2 { font-size: 22px; }
}
