/* =============================================================
   THE KING'S QUEST VBS — LEADER HUB
   Stylesheet (refreshed to mirror Family Hub design language)
   --------------------------------------------------------------
   Same visual vocabulary as the Family Hub:
     - Castle-backdrop cover with parchment scroll
     - Scene-banner section headers with teal+gold ribbon titles
     - Apostle portrait cards on every day page
     - Storybook elements: drop caps, verse cards, truth cards,
       prayer cards, conversation-starter depth badges
     - Sticky pill nav
   But preserves Leader-Hub-specific UX:
     - 4-level cascading selectors (Audience → Role → Sub → Day)
     - Tab system with content panels
     - Role-specific renderings (station / crew / drama / worship / puppeteer)
     - Feedback iframe, Firebase announcements board, video thumbnails
   ============================================================= */

:root {
  --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;

  --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: 17px;
  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 — 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 {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px 64px;
}


/* ============================================================
   COVER (hero) — castle backdrop, parchment scroll, character peek
   ============================================================ */
.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: 500px;
  isolation: isolate;
}

.cover-scene {
  position: absolute; inset: 0;
  background: url("assets/castle.jpg") center/cover no-repeat;
  z-index: 0;
}
.cover-scene::after {
  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 {
  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;
}

/* Knight-girl peeking from the corner — the welcome figure for leaders */
.cover-character {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 155px;
  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 30px;
  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: 230px;
  margin: 0 auto 8px;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35));
}

.cover-title {
  display: none;
  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 4px;
  font-style: italic;
  text-shadow: 0 1px 4px rgba(0,0,0,0.55);
}

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

.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);
}


/* ============================================================
   SELECTORS — parchment scroll holding the 4 cascading dropdowns
   ============================================================ */
.selectors {
  position: relative;
  margin: 22px 0 0;
  padding: 20px 22px;
  background: linear-gradient(180deg, var(--cream), var(--parchment));
  border: 2px solid var(--gold-deep);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 14px;
}

.selectors::before {
  content: "";
  position: absolute; inset: 6px;
  border: 1px dashed rgba(184, 133, 40, 0.4);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
}

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

.selector-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.selector-row label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--teal-deep);
  text-transform: uppercase;
}

.selector-row select {
  width: 100%;
  min-height: var(--tap);
  padding: 12px 14px;
  font-size: 16px;
  font-family: var(--font-body);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gold-deep);
  background: white;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

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

.selector-row select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: rgba(255,255,255,0.6);
}

@media (max-width: 600px) {
  .selector-row { grid-template-columns: 1fr; gap: 4px; }
}


/* ============================================================
   STICKY TAB NAV (pills)
   ============================================================ */
.tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  margin: 22px -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;
  justify-content: safe center;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex-shrink: 0;
  padding: 9px 16px;
  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: 13px;
  letter-spacing: 0.5px;
  text-decoration: none;
  min-height: 38px;
  white-space: nowrap;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}
.tab:hover {
  background: rgba(246, 234, 208, 0.15);
  border-color: var(--gold-bright);
}
.tab.active {
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  color: var(--wood-deep);
  border-color: var(--gold-bright);
  font-weight: 700;
}


/* ============================================================
   SECTION FRAMES — parchment cards
   ============================================================ */
.section, .panel {
  position: relative;
  margin: 26px 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;
}

.panel + .panel { margin-top: 22px; }


/* SCENE-BANNER HEADER — image strip + teal+gold ribbon title */
.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 {
  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;
  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: 24px;
  color: var(--gold-bright) !important;
  margin: 0;
  letter-spacing: 1px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  white-space: nowrap;
  border: none !important;
  background: none !important;
  padding: 0 !important;
  display: block !important;
}
.banner-icon {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6));
}


/* ============================================================
   TYPOGRAPHY — section headings + eyebrows
   ============================================================ */
.section h2, .panel h2 {
  font-family: var(--font-display);
  color: var(--teal-deep);
  font-size: 26px;
  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 */
.section:not(:has(.scene-banner)) h2,
.panel: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, .panel h3 {
  font-family: var(--font-display);
  color: var(--teal-deep);
  font-size: 19px;
  font-weight: 700;
  margin: 20px 0 8px;
  letter-spacing: 0.3px;
}

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

.section-eyebrow, .block-label {
  font-family: var(--font-script);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--ink-muted);
  margin: 18px 0 8px;
  font-weight: 600;
}
.block-label.light { color: var(--gold-soft); }

.muted { color: var(--ink-muted); }
.center { text-align: center; }
.hidden { display: none !important; }


/* ============================================================
   DAY BANNER — the "this is what day you're seeing" header
   ============================================================ */
.day-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, var(--teal-deep), var(--teal-mid));
  color: var(--gold-bright);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.day-banner::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 200, 96, 0.18), transparent 70%);
  pointer-events: none;
}

.day-num {
  flex: 0 0 auto;
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--wood-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  border: 3px solid var(--gold-bright);
  box-shadow: inset 0 -4px 8px rgba(0,0,0,0.2);
}
.day-num .label { font-size: 9px; letter-spacing: 1.5px; }
.day-num .number { font-size: 28px; line-height: 1; }

.day-title h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: 1px;
  line-height: 1.1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--gold-bright);
}
.day-title .day-subtitle-main {
  font-family: var(--font-display);
  color: var(--gold-bright);
  font-size: 15px;
  letter-spacing: 0.5px;
  margin-top: 6px;
  text-transform: uppercase;
  opacity: 0.92;
}
.day-title .day-subtitle {
  font-family: var(--font-script);
  font-style: italic;
  color: var(--gold-soft);
  font-size: 14px;
  margin-top: 4px;
}

.audience-tag {
  display: inline-block;
  background: rgba(216, 169, 66, 0.22);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--gold-deep);
  text-transform: uppercase;
  vertical-align: middle;
}

.draft-tag {
  display: inline-block;
  background: var(--red-deep);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 6px;
  text-transform: uppercase;
  vertical-align: middle;
}

.placeholder-warning {
  background: rgba(200, 48, 42, 0.1);
  border: 1px dashed var(--red);
  color: var(--red-deep);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 13px;
}
.placeholder-warning strong { color: var(--red-deep); }


/* ============================================================
   ROLE CHIP — small label that appears on every role-specific panel
   ============================================================ */
.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--wood-deep);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}


/* ============================================================
   STORYBOOK ELEMENTS — drop caps, verse, truth, prayer cards
   ============================================================ */

/* Storybook paragraph + illuminated drop cap */
.storybook {
  font-family: var(--font-script);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 8px;
}
.drop-cap {
  font-family: var(--font-display);
  font-size: 56px;
  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: 18px 0;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.verse-card .block-label { margin-top: 0; }
.verse-card .quote {
  font-family: var(--font-script);
  font-size: 20px;
  line-height: 1.45;
  color: var(--cream);
  font-style: italic;
  margin: 8px 0 10px;
}
.verse-card .ref {
  font-family: var(--font-display);
  font-size: 14px;
  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: 18px 0;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.truth-card .label, .truth-card .block-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold-bright);
  text-transform: uppercase;
  margin: 0 0 6px;
}
.truth-card .body, .truth-card .truth-text {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  color: var(--cream);
  margin: 0;
  letter-spacing: 0.4px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  font-style: normal;
}

/* Mission card — gold accent for the day's mission moment */
.mission-card {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--wood-deep);
  border: 2px solid var(--gold-deep);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin: 18px 0;
}
.mission-card .label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
  color: var(--wood-deep);
}
.mission-card .body {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  color: var(--teal-deep);
}

/* Prayer card — cream parchment, italic script */
.prayer-card,
.devotional .prayer {
  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: 18px 0 0;
  position: relative;
}
.prayer-card::before {
  content: "";
  position: absolute;
  left: 18px; right: 18px;
  top: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
}
.prayer-line {
  font-family: var(--font-script);
  font-style: italic;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  margin: 6px 0;
  text-align: center;
}


/* ============================================================
   APOSTLE PORTRAIT CARD — Meet the Apostle on every day page
   ============================================================ */
.apostle-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: start;
  margin: 18px 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; }

.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: 24px;
  font-weight: 700;
  color: var(--teal-deep);
  margin: 2px 0;
  letter-spacing: 0.4px;
}
.apostle-role {
  font-family: var(--font-script);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-muted);
  margin: 0 0 8px;
}
.apostle-blurb {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}

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


/* ============================================================
   CONVERSATION STARTERS — depth-coded cards (for discussion roles)
   ============================================================ */
.starters {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
.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: 10px;
  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: 16px;
  line-height: 1.4;
  color: var(--ink);
}


/* ============================================================
   LISTS — supplies, watch-outs, prep
   ============================================================ */
.bullets {
  list-style: none;
  padding-left: 0;
  margin: 8px 0;
}

.bullets li {
  position: relative;
  padding: 6px 0 6px 28px;
  border-bottom: 1px dashed rgba(180, 130, 60, 0.25);
  color: var(--ink-soft);
}

.bullets li::before {
  content: "♦";
  position: absolute;
  left: 6px;
  top: 6px;
  color: var(--gold-deep);
  font-size: 14px;
}

.bullets li:last-child { border-bottom: none; }

.supplies-list li::before { content: "✦"; }
.watchouts-list li::before { content: "⚠"; color: var(--red-deep); }
.prep-list li::before { content: "▣"; color: var(--teal); }


/* ============================================================
   SCHEDULE GRID
   ============================================================ */
.schedule-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 8px;
}

.schedule-item {
  display: grid;
  grid-template-columns: 230px 80px 1fr;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.7);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--gold);
  font-size: 14px;
}

.schedule-item .step { font-family: var(--font-display); font-weight: 700; color: var(--teal-deep); }
.schedule-item .length { color: var(--red-deep); font-weight: 600; font-size: 13px; }
.schedule-item .note { color: var(--ink-soft); }

@media (max-width: 700px) {
  .schedule-item { grid-template-columns: 1fr; gap: 4px; }
  .schedule-item .length { font-size: 12px; }
}


/* ============================================================
   DEVOTIONAL — adult leader devotional, prayer styling
   ============================================================ */
.devotional {
  background:
    radial-gradient(circle at 8% 12%, rgba(216, 169, 66, 0.15), transparent 50%),
    var(--cream);
  border: 2px solid var(--gold-deep);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-top: 18px;
  position: relative;
}

.devotional .label-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.devotional .label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--red-deep);
  text-transform: uppercase;
}

.devotional h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 14px;
  font-size: 21px;
  border-bottom: none;
  background: none;
  padding-bottom: 0;
}

.devotional p {
  margin: 0 0 12px;
  color: var(--ink);
  line-height: 1.65;
  font-size: 15.5px;
}

.devotional .prayer {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--teal-deep);
  color: var(--gold-soft);
  border-radius: var(--radius-sm);
  font-style: italic;
  font-family: var(--font-script);
  line-height: 1.55;
  font-size: 16px;
  border: none;
}
.devotional .prayer::before { display: none; }
.devotional .prayer .prayer-label {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold-bright);
  display: block;
  margin-bottom: 4px;
}


/* ============================================================
   DRAMA — character arc list + portraits
   ============================================================ */
.arc-list-numbered {
  counter-reset: arc;
  list-style: none;
  padding: 0;
  margin: 8px 0;
}

.arc-list-numbered li {
  counter-increment: arc;
  position: relative;
  padding: 12px 14px 12px 50px;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.7);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
}

.arc-list-numbered li::before {
  content: counter(arc);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--wood-deep);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.character-arc {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.character-arc .row {
  background: var(--teal-deep);
  color: var(--gold-soft);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
}
.character-arc .row .name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-bright);
  font-size: 13px;
  letter-spacing: 1px;
}

@media (max-width: 600px) {
  .character-arc .row { grid-template-columns: 1fr; gap: 2px; }
}

/* Character portrait on drama pages */
.character-portrait {
  display: flex;
  justify-content: center;
  margin: 14px 0 18px;
}

.character-portrait img {
  max-height: 280px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--gold-deep);
  background: var(--cream);
}

.character-portrait figcaption {
  text-align: center;
  font-family: var(--font-script);
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 6px;
  font-size: 13px;
}


/* ============================================================
   WEEK AT A GLANCE
   ============================================================ */
.week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.week-card {
  background: var(--teal-deep);
  border: 2px solid var(--gold-deep);
  border-radius: var(--radius-md);
  padding: 16px;
  color: var(--cream);
  position: relative;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.week-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.week-card .day-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--wood-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 8px;
}

.week-card h3 {
  color: var(--gold-bright);
  margin: 6px 0 8px;
  font-size: 18px;
  border: none;
  background: none;
  padding: 0;
}

.week-card .apostle {
  font-family: var(--font-script);
  font-style: italic;
  color: var(--gold-soft);
  font-size: 13px;
  margin-bottom: 6px;
}

.week-card .truth {
  color: var(--cream);
  font-size: 13px;
  line-height: 1.5;
  margin: 8px 0 0;
}


/* ============================================================
   SONGS — audio cards
   ============================================================ */
.song-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

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

.song-card .title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--teal-deep);
  font-size: 17px;
  margin-bottom: 2px;
}
.song-card .role {
  color: var(--ink-muted);
  font-size: 13px;
  margin-bottom: 10px;
  font-style: italic;
}

.song-card .media-slot {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(184, 133, 40, 0.3);
}

.song-card .media-label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin-bottom: 6px;
}

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


/* ============================================================
   VIDEOS — clickable thumbnails (Vimeo)
   ============================================================ */
.video-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 12px;
}

.video-card {
  background: rgba(255,255,255,0.7);
  border: 2px solid var(--gold-deep);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.video-card-info {
  padding: 12px 14px;
}

.video-card-info .title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--teal-deep);
  font-size: 15px;
  margin-bottom: 4px;
}

.video-card-info .role {
  color: var(--ink-muted);
  font-size: 13px;
}

.video-card .video-thumb {
  border: none;
  border-radius: 0;
}

.video-thumb {
  position: relative;
  display: block;
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-decoration: none;
  border: 2px solid var(--gold-deep);
  box-shadow: var(--shadow-sm);
  transition: transform 150ms ease, box-shadow 150ms ease;
  border-bottom-style: solid;
}

.video-thumb:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-bright);
}

.video-thumb-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--teal-deep);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-thumb-img.loaded { background-color: transparent; }

.video-thumb-img.fallback {
  background: linear-gradient(135deg, var(--teal-deep), var(--teal-mid));
  background-image:
    radial-gradient(circle at 30% 30%, rgba(216, 169, 66, 0.2), transparent 60%),
    linear-gradient(135deg, var(--teal-deep), var(--teal-mid));
}

.video-thumb-placeholder {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--gold-soft);
  text-transform: uppercase;
  padding: 8px 16px;
  text-align: center;
}

.video-thumb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
  transition: transform 150ms ease;
}

.video-thumb:hover .video-thumb-play {
  transform: translate(-50%, -50%) scale(1.08);
}


/* ============================================================
   DOWNLOADS — file cards
   ============================================================ */
.downloads-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.7);
  border: 2px solid var(--gold-deep);
  border-radius: var(--radius-sm);
  color: var(--ink) !important;
  text-decoration: none !important;
  border-bottom-style: solid;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.download-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-bright);
  box-shadow: var(--shadow-sm);
}

.download-icon {
  font-size: 22px;
  color: var(--gold-deep);
  flex: 0 0 auto;
}

.download-label {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--teal-deep);
  font-size: 14px;
}


/* ============================================================
   NOTIFY MODAL — first-visit popup nudging push opt-in
   Matches Family Hub's pattern. Auto-shows after 8s on first
   visit; dismissible with Maybe Later or X (saves to localStorage).
   ============================================================ */
.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: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: notifyModalIn 0.25s ease;
}
.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; }
}

.btn-primary {
  background: var(--teal-deep);
  color: var(--gold-bright);
  border-color: var(--gold);
}
.btn-secondary {
  background: var(--cream);
  color: var(--teal-deep);
  border-color: var(--teal);
}

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


/* ============================================================
   ADMIN CARD — hidden family-updates composer (only at #admin)
   ============================================================ */
.admin-card {
  margin: 0 0 18px;
  padding: 22px 24px 24px;
  background:
    radial-gradient(ellipse at top right, rgba(216, 169, 66, 0.14), transparent 60%),
    linear-gradient(180deg, var(--cream), var(--parchment));
  border: 2px solid var(--gold-deep);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.admin-flag {
  display: inline-block;
  background: var(--teal-deep);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
  border: 1.5px solid var(--gold-bright);
  margin-bottom: 14px;
}

.admin-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--teal-deep);
  margin: 0 0 6px;
  letter-spacing: 0.3px;
  border: none;
  background: none;
  padding: 0;
}

.admin-help {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 14px;
  line-height: 1.5;
}
.admin-help code {
  background: rgba(184, 133, 40, 0.15);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 13px;
}

.admin-form { display: grid; gap: 12px; }

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

.admin-form label {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--teal-deep);
  text-transform: uppercase;
}

.admin-form input[type="text"],
.admin-form textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  font-family: var(--font-body);
  border: 1.5px solid var(--gold-deep);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--ink);
}
.admin-form textarea { resize: vertical; min-height: 90px; }

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

.admin-form .btn {
  justify-self: start;
  padding: 12px 24px;
}

.admin-status {
  margin-top: 6px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: none;
}
.admin-status.success {
  display: block;
  background: rgba(62, 135, 148, 0.16);
  border-left: 4px solid var(--teal);
  color: var(--teal-deep);
}
.admin-status.error {
  display: block;
  background: rgba(200, 48, 42, 0.1);
  border-left: 4px solid var(--red);
  color: var(--red-deep);
}

.admin-recent { display: grid; gap: 10px; }

.admin-recent-item {
  background: rgba(255, 255, 255, 0.75);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.admin-recent-meta {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.admin-recent-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--teal-deep);
  margin-bottom: 4px;
}

.admin-recent-body {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  white-space: pre-wrap;
}


/* ============================================================
   NOTIFY CARD — push opt-in (lives at top of Announcements tab)
   ============================================================ */
.notify-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  padding: 14px 16px;
  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-icon {
  font-size: 28px;
  text-align: center;
}

.notify-text {
  min-width: 0;
}

.notify-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--teal-deep);
  margin-bottom: 2px;
}

.notify-meta {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.notify-btn {
  padding: 10px 18px;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.notify-status {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--red-deep);
  font-style: italic;
}
.notify-status:empty { display: none; }

@media (max-width: 480px) {
  .notify-card { grid-template-columns: 36px 1fr; gap: 12px; }
  .notify-btn { grid-column: 1 / -1; justify-self: stretch; }
}


/* ============================================================
   ANNOUNCEMENTS — composer + feed
   ============================================================ */
.announce-composer {
  background: rgba(255,255,255,0.85);
  border: 2px solid var(--gold-deep);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  display: grid;
  gap: 10px;
}

.announce-composer input[type="text"],
.announce-composer textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  font-family: var(--font-body);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gold-deep);
  background: white;
  color: var(--ink);
}

.announce-composer input[type="text"]:focus,
.announce-composer textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 48, 42, 0.18);
}

.announce-composer textarea {
  resize: vertical;
  min-height: 70px;
}

.announce-composer .btn {
  justify-self: end;
}

.announce-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.announce-post {
  background: rgba(255,255,255,0.85);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
}

.announce-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  font-size: 12px;
}

.announce-author {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--teal-deep);
  letter-spacing: 0.5px;
}

.announce-time {
  color: var(--ink-muted);
  font-size: 11px;
}

.announce-text {
  color: var(--ink);
  line-height: 1.55;
  white-space: pre-wrap;
}

.announce-reactions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.reaction-btn {
  background: white;
  border: 1px solid var(--gold-deep);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: transform 100ms ease, background 100ms ease;
}

.reaction-btn:hover {
  background: var(--gold-soft);
  transform: scale(1.05);
}


/* ============================================================
   FEEDBACK FORM — Google Form iframe
   ============================================================ */
.feedback {
  background: linear-gradient(135deg, var(--teal-deep), var(--teal-mid));
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: var(--cream);
  margin-top: 22px;
  box-shadow: var(--shadow-md);
}

.feedback h2 {
  color: var(--gold-bright);
  font-family: var(--font-display);
  margin: 0 0 6px;
  border: none;
  background: none;
  padding: 0;
}

.feedback p { color: var(--gold-soft); margin: 0 0 14px; }

.feedback iframe {
  width: 100%;
  min-height: 700px;
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius-sm);
  background: var(--cream);
}

.feedback .form-setup {
  background: var(--cream);
  color: var(--ink);
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--red);
}

.feedback .form-setup h3 {
  color: var(--teal-deep);
  margin-top: 0;
  border: none;
  background: none;
  padding: 0;
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-decoration: none;
  border: 2px solid var(--gold-bright);
  background: var(--gold);
  color: var(--wood-deep);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  border-bottom-style: solid;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}


/* ============================================================
   TRAINING LIST
   ============================================================ */
.training-list li {
  padding: 8px 0 8px 28px;
}


/* ============================================================
   TRAINING LIBRARY — PDF download cards below the Compliance card.
   Three richly-styled tiles, each linking to a printable PDF.
   ============================================================ */
.training-library {
  margin: 24px 0 28px;
  padding: 22px 22px 24px;
  background:
    radial-gradient(ellipse at top left, rgba(216, 169, 66, 0.12), transparent 65%),
    linear-gradient(180deg, var(--cream), var(--parchment));
  border: 2px solid var(--gold-deep);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.training-library-header {
  margin: 0 0 16px;
}
.training-library-title {
  font-family: var(--font-display);
  color: var(--teal-deep);
  font-size: 22px;
  margin: 0 0 6px;
  letter-spacing: 0.3px;
}
.training-library-desc {
  margin: 0;
  color: var(--ink-muted);
  font-size: 15px;
}
.training-library-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 760px) {
  .training-library-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Each training card is a clickable anchor that downloads the PDF */
.training-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px 18px;
  background: #ffffff;
  border: 2px solid var(--gold-deep);
  border-radius: var(--radius-md);
  text-decoration: none !important;
  color: var(--ink) !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
@media (min-width: 760px) {
  .training-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
.training-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-bright);
  box-shadow: var(--shadow-md);
}
.training-card:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}
.training-card-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
}
.training-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.training-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}
.training-card-pages {
  display: inline-block;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(17, 67, 74, 0.08);
  color: var(--teal-deep);
  border-radius: 999px;
}
.training-card-required {
  display: inline-block;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--red, #8B2C2C);
  color: #ffffff;
  border-radius: 999px;
}
.training-card-title {
  font-family: var(--font-display);
  color: var(--teal-deep);
  font-size: 17px;
  margin: 0 0 6px;
  line-height: 1.25;
}
.training-card-desc {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}
.training-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: var(--gold-deep);
  color: #ffffff;
  border-radius: var(--radius-sm);
  align-self: flex-start;
}
.training-card:hover .training-card-cta {
  background: var(--gold-bright);
  color: var(--teal-deep);
}


/* ============================================================
   COMPLIANCE CARD — Conference background check + safety training
   The most prominent thing in the Training tab. Red + gold accents
   so leaders immediately see "this is required, not optional."
   ============================================================ */
.compliance-card {
  position: relative;
  margin: 0 0 18px;
  padding: 22px 24px 24px;
  background:
    radial-gradient(ellipse at top right, rgba(216, 169, 66, 0.18), transparent 60%),
    linear-gradient(180deg, var(--cream), var(--parchment));
  border: 2.5px solid var(--red);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px var(--gold-deep) inset, var(--shadow-md);
}

.compliance-flag {
  display: inline-block;
  background: var(--red);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 3px;
  border: 1.5px solid var(--gold-bright);
  margin-bottom: 14px;
}

.compliance-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--teal-deep) !important;
  margin: 0 0 4px !important;
  letter-spacing: 0.3px;
  line-height: 1.2;
  border: none !important;
  background: none !important;
  padding: 0 !important;
}

.compliance-subtitle {
  font-family: var(--font-script);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-muted);
  margin: 0 0 8px;
}

.compliance-conference {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--red-deep);
  letter-spacing: 0.5px;
  margin: 4px 0 16px;
}

.compliance-body {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 14px;
}

.compliance-validity {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(216, 169, 66, 0.18);
  border-left: 4px solid var(--gold-deep);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 14px 0 18px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.5;
}

.compliance-validity-label {
  flex: 0 0 auto;
  background: var(--gold-deep);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  white-space: nowrap;
}

.compliance-h {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--teal-deep);
  margin: 16px 0 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.compliance-why {
  margin: 18px 0 14px;
}

.compliance-quote {
  margin: 4px 0 0;
  padding: 12px 16px;
  background: rgba(17, 67, 74, 0.06);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-sm);
  font-family: var(--font-script);
  font-style: italic;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
}
.compliance-quote cite {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-style: normal;
  letter-spacing: 1px;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.compliance-who p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}

.compliance-steps {
  margin: 8px 0 4px;
  padding-left: 22px;
}

.compliance-steps li {
  margin: 6px 0;
  color: var(--ink);
  line-height: 1.5;
  font-size: 14.5px;
}

/* New volunteer vs. Returning volunteer collapsible blocks */
.compliance-flows {
  margin: 22px 0 8px;
  display: grid;
  gap: 12px;
}

.compliance-flow {
  background: rgba(255, 255, 255, 0.65);
  border: 1.5px solid var(--gold-deep);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
}

.compliance-flow summary {
  cursor: pointer;
  padding: 14px 16px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--teal-deep);
  letter-spacing: 0.3px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  user-select: none;
}
.compliance-flow summary::-webkit-details-marker { display: none; }
.compliance-flow summary::after {
  content: "+";
  margin-left: auto;
  font-size: 22px;
  color: var(--gold-deep);
  transition: transform 0.2s ease;
}
.compliance-flow[open] summary::after { content: "–"; }

.compliance-flow-label {
  display: inline-block;
  background: var(--teal-deep);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  border: 1px solid var(--gold);
}

.compliance-flow-intro {
  padding: 0 16px;
  margin: 0 0 4px;
  color: var(--ink-soft);
  font-size: 14px;
  font-style: italic;
}

.compliance-flow[open] .compliance-steps {
  padding: 4px 16px 14px 38px;
  margin: 0;
}

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

.compliance-cta {
  margin: 20px 0 14px;
  text-align: center;
}

.compliance-btn {
  background: var(--red);
  color: var(--gold-bright);
  border-color: var(--gold-bright);
  font-size: 15px;
  padding: 14px 28px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(155, 35, 30, 0.35);
}
.compliance-btn:hover {
  background: var(--red-deep);
  color: var(--gold-bright);
}

.compliance-btn-placeholder {
  background: rgba(184, 133, 40, 0.15);
  border: 1px dashed var(--gold-deep);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ink-muted);
  font-style: italic;
}

.compliance-deadline {
  font-size: 14.5px;
  color: var(--red-deep);
  margin: 14px 0 6px;
  padding: 10px 14px;
  background: rgba(200, 48, 42, 0.08);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

.compliance-help {
  font-size: 13.5px;
  color: var(--ink-muted);
  font-style: italic;
  margin: 6px 0 0;
  text-align: center;
}


/* ============================================================
   FOOTER NOTE
   ============================================================ */
.footer-note {
  text-align: center;
  margin-top: 30px;
  color: rgba(245, 220, 151, 0.7);
  font-size: 12px;
  font-family: var(--font-script);
  font-style: italic;
}


/* ============================================================
   WELCOME (empty state on Today tab)
   ============================================================ */
.welcome {
  text-align: center;
  padding: 36px 24px;
  background: linear-gradient(135deg, var(--teal-deep), var(--teal)) !important;
  border-color: var(--gold) !important;
}

.welcome h2 {
  font-family: var(--font-display);
  color: var(--gold-bright);
  font-size: clamp(22px, 3.2vw, 28px);
  margin: 0 0 14px;
  letter-spacing: 1px;
  border: none !important;
  background: none !important;
  padding: 0 !important;
  display: block;
}

.welcome p {
  color: var(--cream) !important;
  max-width: 640px;
  margin: 0 auto 14px;
  font-size: 16px;
  line-height: 1.6;
}

.welcome strong { color: var(--gold-bright); }

.welcome .central-message {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 24px;
  background: var(--red);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 14px;
  text-transform: uppercase;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}


/* ============================================================
   MOBILE TUNING — keep cover text clear of the character peek
   On phones the knight-girl was overlapping the tagline; this:
     - Trims her width a touch
     - Constrains tagline/central-message width so they wrap
       into clean readable lines before reaching her
   ============================================================ */
@media (max-width: 599px) {
  .cover-character {
    width: 120px;
    bottom: -6px;
    right: -6px;
  }
  .cover-tagline {
    max-width: 240px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.35;
  }
  .cover-central-message {
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.35;
  }
  .cover-banner {
    max-width: 240px;
  }
}


/* ============================================================
   WIDER SCREENS
   ============================================================ */
@media (min-width: 600px) {
  body { font-size: 17px; }
  .cover { min-height: 540px; }
  .cover-content { padding: 36px 30px 38px; }
  .cover-logo { max-width: 280px; }
  .cover-character { width: 200px; bottom: -14px; right: 4px; }
  .section, .panel { padding: 26px 28px 30px; }
  .section h2, .panel h2 { font-size: 28px; }
  .scene-banner { height: 200px; margin: -26px -28px 24px; }
  .scene-banner-title { padding: 11px 26px 11px 20px; gap: 14px; }
  .scene-banner-title h2 { font-size: 30px; }
  .banner-icon { width: 40px; height: 40px; }
  .apostle-card { grid-template-columns: 160px 1fr; gap: 24px; padding: 22px 24px; }
  .apostle-name { font-size: 28px; }
}

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


/* ============================================================
   PRINT
   ============================================================ */
@media print {
  body::before, .cover-character { display: none; }
  .tabs, .feedback, .selectors, .cover-scene { display: none !important; }
  .panel, .section { box-shadow: none; border: 1px solid #999; page-break-inside: avoid; }
  body { background: white; color: black; }
}
