/* App-only styles layered over h2h.css (the design-system stylesheet,
 * canonical copy in design/h2h.css — edit there and run design/build.rb).
 */

.h2h-flash {
  max-width: 46rem;
  width: calc(100% - 2.5rem);
  margin: 1.5rem auto 0;
}

.h2h-header nav form { margin: 0; display: inline; }
.h2h-header nav .h2h-btn--quiet { padding: 0.25rem 0.25rem; font-size: inherit; }

/* Pre-launch / maintenance splash */
.h2h-splash-body { margin: 0; background: var(--navy-deep); }
.h2h-splash { min-height: 100vh; display: grid; place-items: center; padding: var(--sp-5); }
.h2h-splash__card {
  max-width: 34rem; text-align: center; background: var(--card);
  border-radius: var(--radius-lg); border-top: 4px solid var(--gold);
  box-shadow: var(--shadow-lift); padding: var(--sp-7) var(--sp-6);
}
.h2h-splash__logo { height: 64px; width: auto; margin-bottom: var(--sp-5); }
.h2h-splash__heading { font-size: var(--text-2xl); margin: 0 0 var(--sp-4); }
.h2h-splash__body { color: var(--ink-soft); margin: 0 0 var(--sp-5); }
.h2h-splash__foot { font-size: var(--text-sm); color: var(--ink-soft); margin: var(--sp-5) 0 0; }

/* Global footer (matches the design's landing/library footer). */
.h2h-footer { background: var(--navy-deep); color: #c7d2e2; margin-top: var(--sp-8); }
.h2h-footer__inner { max-width: 82rem; margin: 0 auto; padding: var(--sp-6); display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); flex-wrap: wrap; font-size: var(--text-sm); }
.h2h-footer strong { color: #fff; font-family: var(--font-serif); }
.h2h-footer a { color: var(--gold-soft); text-decoration: none; }
.h2h-footer a:hover { color: #fff; text-decoration: underline; }

/* Admin is a workbench, not a reading column — use the desktop width. */
.h2h-shell.h2h-admin { max-width: 80rem; }

/* Fix: an input wrapped in a .h2h-field column inside a .h2h-inline-form
 * otherwise inherits the row rule `.h2h-inline-form .h2h-input { flex:1 1 16rem }`,
 * where 16rem becomes a vertical flex-basis and balloons the field to ~256px
 * tall. Field-column inputs should size to content. */
.h2h-inline-form .h2h-field .h2h-input { flex: 0 1 auto; }

/* Top-level nav */
.h2h-nav { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.h2h-nav__link { font-size: var(--text-sm); font-weight: 600; color: var(--ink); text-decoration: none; }
.h2h-nav__link:hover { color: var(--navy); }
.h2h-nav__sep { width: 1px; align-self: stretch; background: var(--gold-soft); margin: 0 var(--sp-1); }
@media (max-width: 480px) { .h2h-nav__sep { display: none; } }

/* Search result cards */
.sr-list { display: grid; gap: var(--sp-4); }
.sr-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-4); border-left: 3px solid var(--line); }
.sr-card--feature { border-left: 4px solid var(--crimson); background: linear-gradient(90deg, var(--crimson-wash) 0%, var(--card) 6%); }
.sr-card__title { font-size: var(--text-lg); margin: 0 0 var(--sp-1); line-height: 1.3; }
.sr-card__title a { text-decoration: none; color: var(--ink); }
.sr-card__title a:hover { color: var(--navy); }
.sr-card__byline { font-family: var(--font-sans); font-size: var(--text-sm); font-weight: 700; margin: 0 0 var(--sp-2); }
.sr-card__byline a { color: var(--crimson); text-decoration: none; }
.sr-card__byline a:hover { text-decoration: underline; }
.sr-card__meta { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; margin: 0 0 var(--sp-2); }
.sr-badge { display: inline-flex; align-items: center; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--navy-wash); color: var(--navy); }
.sr-card__series { font-size: var(--text-sm); color: var(--ink-soft); }
.sr-card__lead { font-size: var(--text-sm); color: var(--ink-soft); margin: 0; line-height: 1.5; }

.sr-when { margin-top: var(--sp-6); border-top: 1px solid var(--gold-soft); padding-top: var(--sp-5); }
.sr-when__list { list-style: none; margin: 0; padding: 0; }
.sr-when__list li { display: flex; gap: var(--sp-3); align-items: baseline; flex-wrap: wrap; padding: var(--sp-2) 0; border-bottom: 1px solid var(--mist); font-size: var(--text-sm); }
.sr-when__date { font-weight: 700; color: var(--gold-deep); min-width: 9rem; }
.sr-when__name { color: var(--ink); flex: 1; min-width: 12rem; }
.sr-when__cite { color: var(--ink-soft); }

/* Breadcrumbs */
.h2h-crumbs { max-width: 82rem; margin: 0 auto; padding: var(--sp-3) var(--sp-5); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.h2h-crumbs__trail { list-style: none; display: flex; align-items: center; gap: var(--sp-2); margin: 0; padding: 0; font-size: var(--text-sm); flex-wrap: wrap; }
.h2h-crumbs__trail a { color: var(--navy); text-decoration: none; }
.h2h-crumbs__trail a:hover { text-decoration: underline; }
.h2h-crumbs__trail [aria-current="page"] { color: var(--ink-soft); }
.h2h-crumbs__sep { color: var(--gold); }
.h2h-crumbs__back { font-size: var(--text-sm); font-weight: 600; color: var(--ink-soft); text-decoration: none; }
.h2h-crumbs__back:hover { color: var(--navy); }

/* Layout utilities */
.h2h-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
@media (max-width: 560px) { .h2h-grid-4 { grid-template-columns: repeat(2, 1fr); } }

/* Front-end copy editing (admins only) */
.h2h-copy-toggle { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 50; }
.h2h-copy-toggle .h2h-btn { background: var(--card); box-shadow: var(--shadow-lift); }
.h2h-copy-editing [data-copy-key] { outline: 1px dashed var(--gold); outline-offset: 3px; cursor: text; border-radius: 3px; }
.h2h-copy-editing [data-copy-key]:hover { outline-color: var(--navy); background: var(--navy-wash); }
.h2h-editable--saved { outline: 2px solid var(--ok) !important; }

/* Admin tables */
.h2h-admin table { border-collapse: collapse; width: 100%; }
.h2h-admin th, .h2h-admin td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); }
.h2h-admin th { font-size: var(--text-sm); color: var(--ink-soft); font-weight: 600; }
.h2h-admin dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.h2h-admin dt { font-size: var(--text-sm); color: var(--ink-soft); }
.h2h-admin dd { margin: 0; font-family: var(--font-serif); font-size: var(--text-xl); font-weight: 700; }

/* ---------- Admin: a program's parts ----------
 *
 * A program can hold hundreds of parts across several years. Rendering every
 * edit form at once gave a wall of identical white boxes with no way to tell
 * where you were, so parts are collapsed to a scannable row and opened one at
 * a time. Controls are small and grouped: in admin, density beats presence.
 */
.ap-parts { margin-top: var(--sp-7); }
.ap-parts__head { display: flex; align-items: baseline; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.ap-parts__head h2 { margin: 0; }

.ap-filters {
  display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap;
  padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-4);
  background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius);
}
.ap-chips { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.ap-chip {
  font-size: var(--text-sm); text-decoration: none; color: var(--ink-soft);
  border: 1px solid var(--line); background: var(--card);
  border-radius: 999px; padding: .2rem .7rem;
}
.ap-chip:hover { border-color: var(--navy); color: var(--navy); }
.ap-chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.ap-search { display: flex; align-items: center; gap: var(--sp-2); margin-left: auto; }
.ap-search .h2h-input { max-width: 18rem; padding: .4rem .6rem; font-size: var(--text-sm); }

/* One part: a row you scan, a form you open. The open state gets a coloured
 * edge so it's obvious which one you're editing. */
.ap-part {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); margin-bottom: var(--sp-2);
}
.ap-part[open] { border-color: var(--navy); box-shadow: var(--shadow); }
.ap-part__summary {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4); cursor: pointer; list-style: none;
}
.ap-part__summary::-webkit-details-marker { display: none; }
.ap-part__summary:hover { background: var(--navy-wash); }
.ap-part[open] .ap-part__summary { background: var(--navy-wash); border-bottom: 1px solid var(--line); }
/* Where a part sits in its own edition, which is the number that means
 * something. Fixed width so titles line up down the list. */
.ap-part__pos { flex: none; min-width: 9rem; display: flex; flex-direction: column; gap: 2px; }
.ap-part__edition {
  font-size: .72rem; font-weight: 600; letter-spacing: .02em;
  color: var(--gold-deep); background: var(--gold-soft);
  border-radius: 999px; padding: .15rem .5rem; text-align: center; white-space: nowrap;
}
.ap-part__edition--none { background: var(--mist); color: var(--ink-soft); font-weight: 400; }
/* The global position: how big the series is, and little else. */
.ap-part__global { font-size: .72rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.ap-part__title { font-family: var(--font-serif); font-weight: 700; flex: 1; min-width: 0; }
.ap-part__meta { display: flex; gap: var(--sp-2); flex-wrap: wrap; justify-content: flex-end; }
.ap-tag {
  font-size: .72rem; padding: .15rem .5rem; border-radius: 999px;
  background: var(--mist); color: var(--ink-soft); white-space: nowrap;
}
.ap-tag--ref { background: var(--navy-wash); color: var(--navy); }
.ap-tag--media { background: var(--ok-wash); color: var(--ok); }
.ap-tag--warn { background: var(--warn-wash); color: var(--warn); }

.ap-part__body { padding: var(--sp-4); }
/* Sections inside an open part. A hairline wasn't enough separation — these
 * are distinct jobs, so each gets a panel of its own with a titled header. */
.ap-section {
  margin-top: var(--sp-4); border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--mist); overflow: hidden;
}
.ap-section__label {
  margin: 0; padding: .45rem var(--sp-4);
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft); background: rgba(43, 35, 32, 0.05);
  border-bottom: 1px solid var(--line);
}
/* Everything after the header sits inside the panel's padding. */
.ap-section > *:not(.ap-section__label) { margin-left: var(--sp-4); margin-right: var(--sp-4); }
.ap-section > *:last-child { margin-bottom: var(--sp-4); }
.ap-section > *:nth-child(2) { margin-top: var(--sp-3); }

/* One labelled row of controls: the label says what the row does, so every
 * button can just say "Add" and the placeholders stop carrying the meaning. */
.ap-form-rows { display: flex; flex-direction: column; gap: var(--sp-2); }
.ap-form-row { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; margin: 0; }
.ap-form-row__fields { display: flex; align-items: center; gap: var(--sp-2); flex: 1; margin: 0; min-width: 0; }
.ap-form-row__label {
  flex: none; min-width: 5.5rem; font-size: var(--text-sm); font-weight: 600;
  color: var(--ink-soft); text-transform: lowercase;
}

/* A chip carries its own remove button, rather than leaving a row of loose
 * ✕ marks you have to count along. */
.ap-chiprow { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.ap-item {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: .2rem .3rem .2rem .6rem; font-size: var(--text-sm);
}
.ap-item--ref { background: var(--navy-wash); border-color: #cddbec; color: var(--navy); }
.ap-item--person { background: var(--ok-wash); border-color: #cfe0cf; color: var(--ok); }
.ap-item__kind { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.ap-item__form { display: inline; margin: 0; }
.ap-item__x {
  border: 0; background: transparent; cursor: pointer; line-height: 1;
  color: var(--ink-soft); font-size: .8rem; padding: .1rem .3rem; border-radius: 50%;
}
.ap-item__x:hover { background: var(--alert); color: #fff; }

/* Adding is rarer than editing, so it folds away. */
.ap-add { margin-top: var(--sp-3); }
.ap-add__summary {
  display: inline-block; cursor: pointer; font-size: var(--text-sm); font-weight: 600;
  color: var(--navy); padding: .25rem 0;
}
.ap-add[open] .ap-add__summary { margin-bottom: var(--sp-2); }
/* Grouped controls: each group holds together, groups stay apart. */
.ap-actions { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.ap-actions__group { display: flex; align-items: center; gap: var(--sp-2); margin: 0; }
.ap-pager { display: flex; align-items: center; gap: var(--sp-4); margin-top: var(--sp-4); }

/* Admin controls run smaller than participant ones — there are dozens per
 * screen and they're used by people who know what they do. */
.h2h-admin .h2h-btn--sm { padding: .4rem .8rem; font-size: var(--text-sm); }
.h2h-admin .h2h-input--sm { padding: .4rem .6rem; font-size: var(--text-sm); }
.h2h-admin .h2h-btn--danger { background: transparent; color: var(--alert); border: 1px solid var(--alert); }
.h2h-admin .h2h-btn--danger:hover { background: var(--alert); color: #fff; }

/* ---------- Admin: the small formatting editor ---------- */
.rt { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.rt-toolbar {
  display: flex; gap: var(--sp-1); padding: .35rem .5rem;
  border-bottom: 1px solid var(--line); background: var(--mist);
  border-radius: var(--radius) var(--radius) 0 0;
}
.rt-btn {
  min-width: 2rem; padding: .2rem .5rem; font-size: var(--text-sm);
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  color: var(--ink); cursor: pointer; line-height: 1.4;
}
.rt-btn:hover { background: var(--navy-wash); border-color: var(--navy); }
.rt-btn:active { background: var(--navy); color: #fff; }
/* Room to actually write in — these fields hold a paragraph, not a label. */
.rt-editor {
  min-height: 8rem; padding: var(--sp-3); font-size: var(--text-base);
  line-height: var(--leading); overflow-y: auto; max-height: 24rem;
}
.rt-editor:focus { outline: 2px solid var(--navy); outline-offset: -2px; }
.rt-editor u { text-decoration: underline; }
/* The textarea still posts the value; it just stops being what you type into
 * once the editor is live. Without JS it stays visible and works as before. */
.rt-hidden { display: none; }

/* ---------- Admin: the Vimeo picker ----------
 * Episodes on the left, the library on the right. You aim at an episode and
 * click the video you can see — no matching, no identifiers to transcribe. */
.vp { display: grid; grid-template-columns: 22rem 1fr; gap: var(--sp-5); align-items: start; }
@media (max-width: 60rem) { .vp { grid-template-columns: 1fr; } }

.vp-list { position: sticky; top: var(--sp-4); display: flex; flex-direction: column; gap: 2px; }
.vp-ep {
  display: flex; gap: var(--sp-3); align-items: baseline; text-decoration: none;
  padding: var(--sp-2) var(--sp-3); border: 1px solid transparent; border-radius: var(--radius);
  color: var(--ink); background: var(--card);
}
.vp-ep:hover { background: var(--navy-wash); }
.vp-ep.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.vp-ep.is-on .vp-ep__state, .vp-ep.is-on .vp-ep__pos { color: rgba(255,255,255,.75); }
.vp-ep__pos { flex: none; font-variant-numeric: tabular-nums; color: var(--ink-soft); font-size: var(--text-sm); }
.vp-ep__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.vp-ep__title { font-family: var(--font-serif); font-weight: 700; font-size: var(--text-sm); }
.vp-ep__state { font-size: .72rem; }
.vp-ep__state--set { color: var(--ok); }
.vp-ep__state--unset { color: var(--warn); }

.vp-lib__bar {
  display: flex; flex-direction: column; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-3);
  background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius);
}
.vp-aim { margin: 0; display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.vp-aim--idle { color: var(--ink-soft); }

.vp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: var(--sp-4); }
.vp-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  overflow: hidden; display: flex; flex-direction: column;
}
.vp-card:hover { border-color: var(--navy); box-shadow: var(--shadow); }
/* Dimmed, not hidden: a video used twice is legitimate (a shared story across
 * editions), it just shouldn't be the obvious click. */
.vp-card.is-taken { opacity: .62; }
.vp-card.is-taken:hover { opacity: 1; }
.vp-card__thumb { position: relative; aspect-ratio: 16 / 9; background: var(--navy-deep); }
.vp-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vp-card__time {
  position: absolute; right: .4rem; bottom: .4rem; font-size: .7rem;
  background: rgba(0,0,0,.78); color: #fff; padding: .1rem .35rem; border-radius: 4px;
  font-variant-numeric: tabular-nums;
}
.vp-card__body { padding: var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.vp-card__title { margin: 0; font-family: var(--font-serif); font-weight: 700; font-size: var(--text-sm); line-height: 1.35; }
.vp-card__meta { margin: 0; display: flex; align-items: center; gap: var(--sp-2); font-size: .72rem; color: var(--ink-soft); }
.vp-card__taken { margin: 0; font-size: .72rem; color: var(--warn); }
.vp-card__actions { margin-top: auto; display: flex; align-items: center; gap: var(--sp-3); }

/* ---------- The reader ----------
 * Three places, nothing stacked: the episode on the left, one section in the
 * middle, your journal on the right. A practice is a unit you can finish —
 * the endless feeling came from stacking five of them in a column. */
.rd2 {
  display: grid; gap: var(--sp-5); align-items: start;
  grid-template-columns: minmax(16rem, 21rem) minmax(0, 42rem) minmax(15rem, 22rem);
  max-width: 92rem; margin: 0 auto; padding: var(--sp-5) var(--sp-5) var(--sp-8);
}
.rd2--no-journal { grid-template-columns: minmax(16rem, 21rem) minmax(0, 46rem); }
.rd2--no-video { grid-template-columns: minmax(0, 44rem) minmax(15rem, 22rem); }
.rd2--no-video.rd2--no-journal { grid-template-columns: minmax(0, 44rem); justify-content: center; }
/* One column on anything narrow: rails become blocks in reading order. */
@media (max-width: 78rem) {
  .rd2, .rd2--no-journal, .rd2--no-video { grid-template-columns: minmax(0, 46rem); justify-content: center; }
  .rd2__video, .rd2__journal { position: static !important; }
}

.rd2__video { position: sticky; top: var(--sp-4); }
.rd2__player { aspect-ratio: 16 / 9; background: var(--navy-deep); border-radius: var(--radius); overflow: hidden; }
.rd2__player iframe { width: 100%; height: 100%; border: 0; display: block; }
.rd2__video-title { margin: var(--sp-2) 0 0; font-family: var(--font-serif); font-weight: 700; font-size: var(--text-sm); }
.rd2__video-note { margin: .15rem 0 0; font-size: .72rem; color: var(--ink-soft); }

.rd2__head { margin-bottom: var(--sp-5); }
.rd2__crumbs { margin: 0 0 var(--sp-2); font-size: var(--text-sm); color: var(--ink-soft); }
.rd2__crumbs a { color: inherit; }
.rd2__sep { margin: 0 .35rem; opacity: .55; }
.rd2__title { margin: 0; font-size: var(--text-2xl); line-height: 1.2; }
.rd2__where { margin: var(--sp-2) 0 var(--sp-2); font-size: .78rem; color: var(--ink-soft); }
/* How much of the guide is behind you — the antidote to not knowing how far
 * a scroll goes. */
.rd2__bar { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.rd2__bar i { display: block; height: 100%; background: var(--gold); }

.rd2__step {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4);
  margin-top: var(--sp-7); border-top: 1px solid var(--line); padding-top: var(--sp-5);
}
.rd2__step-link { text-decoration: none; display: block; }
.rd2__step-link--next { text-align: right; }
.rd2__step-dir { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.rd2__step-title { font-family: var(--font-serif); font-weight: 700; color: var(--navy); }
.rd2__step-link:hover .rd2__step-title { color: var(--crimson); }

/* The journal has one home and stays in it. One section on screen means one
 * entry — no guessing which box belongs to what you just read. */
.rd2__journal {
  position: sticky; top: var(--sp-4);
  background: var(--mist); border: 1px solid var(--line);
  border-left: 3px solid var(--gold); border-radius: var(--radius); padding: var(--sp-4);
}
.rd2__journal-head { display: flex; align-items: baseline; justify-content: space-between; }
.rd2__journal-label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); }
.rd2__journal-status { font-size: .72rem; color: var(--ink-soft); }
.rd2__journal-status.is-error { color: var(--alert); }
.rd2__journal-for { margin: .15rem 0 var(--sp-2); font-family: var(--font-serif); font-size: var(--text-sm); color: var(--ink-soft); }
.rd2__journal-body {
  width: 100%; min-height: 16rem; resize: vertical;
  font-family: var(--font-serif); font-size: 1.0625rem; line-height: 1.7; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-3);
}
.rd2__journal-body:focus { outline: 2px solid var(--gold); outline-offset: -2px; }
.rd2__journal-note { margin: var(--sp-2) 0 0; font-size: .72rem; color: var(--ink-soft); }
.rd2__journal-all { margin: var(--sp-3) 0 0; font-size: .78rem; }

/* Reading text, set to follow the printed guide: a section banner, bulleted
 * prompt headings with their body indented beneath, questions as a hanging
 * list, and scripture given its own weight. The InDesign export carries these
 * as classes; this is where they finally mean something. */
.rd__prose { font-family: var(--font-serif); font-size: 1.125rem; line-height: 1.7; color: var(--ink); }
.rd__prose p { margin: 0 0 1em; }

/* "PRACTICE 2" — the banner that opens a section in print. */
.rd__prose h2 {
  font-family: var(--font-sans); font-size: 1rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; text-align: center;
  color: #fff; background: var(--navy); margin: 0 0 var(--sp-5);
  padding: .55rem var(--sp-4); border-radius: var(--radius);
}
.rd__prose h3, .rd__prose h4 {
  font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 700;
  color: var(--ink); margin: var(--sp-5) 0 var(--sp-2);
}

/* "● Opening Prayer" — a bulleted prompt heading, its body indented under it
 * exactly as the printed page sets it. */
.rd__prose .prompt-title {
  position: relative; font-family: var(--font-sans); font-size: 1.0625rem;
  font-weight: 700; color: var(--ink);
  margin: var(--sp-6) 0 var(--sp-2); padding-left: 1.35rem;
}
.rd__prose .prompt-title::before {
  content: ""; position: absolute; left: .15rem; top: .55em;
  width: .45rem; height: .45rem; border-radius: 50%; background: var(--gold-deep);
}
/* Body copy sits under its heading, indented to the same measure. */
.rd__prose .prompt-title ~ p { padding-left: 1.35rem; }

/* The reflection questions: a hanging list, quieter than the body. */
.rd__prose .question {
  position: relative; padding-left: 2.6rem; margin-bottom: .6em;
  color: var(--ink-soft);
}
.rd__prose .question::before {
  content: "·"; position: absolute; left: 1.6rem; font-weight: 700; color: var(--gold-deep);
}

/* "Slowly read this scripture and the accompanying prayer." */
.rd__prose .note {
  font-style: italic; font-size: .95rem; color: var(--ink-soft);
  padding-left: 1.35rem; margin-bottom: .8em;
}

/* Scripture, given the weight it has in print. */
.rd__prose .scripture {
  font-size: 1.25rem; line-height: 1.55; font-style: italic; color: var(--ink);
  padding-left: 1.35rem; margin: var(--sp-4) 0 .3em;
}
.rd__prose .scripture-reference {
  text-align: right; font-family: var(--font-sans); font-size: .9rem;
  color: var(--ink-soft); margin: 0 0 var(--sp-4);
}

.rd__prose blockquote {
  margin: var(--sp-5) 0; padding-left: var(--sp-4);
  border-left: 3px solid var(--gold-soft); font-style: italic; color: var(--ink-soft);
}
.rd__prose ul, .rd__prose ol { margin: 0 0 1.15em; padding-left: 1.3em; }
.rd__prose li { margin-bottom: .5em; }
.rd__prose img { max-width: 100%; height: auto; border-radius: var(--radius); }

/* The journal, in the flow. Warm ground so it reads as your page inside
 * their book, rather than a form. */
.rd__journal {
  margin-top: var(--sp-5); padding: var(--sp-4);
  background: var(--mist); border: 1px solid var(--line);
  border-left: 3px solid var(--gold); border-radius: var(--radius);
}
.rd__journal-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--sp-2); }
.rd__journal-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold-deep);
}
.rd__journal-status { font-size: .72rem; color: var(--ink-soft); }
.rd__journal-status.is-error { color: var(--alert); }
.rd__journal-body {
  width: 100%; min-height: 7.5rem; resize: none; overflow: hidden;
  font-family: var(--font-serif); font-size: 1.0625rem; line-height: 1.7;
  color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-3);
}
.rd__journal-body:focus { outline: 2px solid var(--gold); outline-offset: -2px; }
.rd__journal-note { margin: var(--sp-2) 0 0; font-size: .72rem; color: var(--ink-soft); }

.rd__nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4);
  border-top: 1px solid var(--line); padding-top: var(--sp-5);
}
.rd__nav-link { text-decoration: none; display: block; }
.rd__nav-dir { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.rd__nav-title { font-family: var(--font-serif); font-weight: 700; color: var(--navy); }
.rd__nav-link:hover .rd__nav-title { color: var(--crimson); }

/* The episode, with its chapter. Not sticky: a video pinned over the column
 * covers the very text you're reading, and the cue controller already brings
 * the player back into view when a timestamp is clicked from further down. */
.rd__player {
  aspect-ratio: 16 / 9; margin-bottom: var(--sp-6);
  background: var(--navy-deep); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow);
}
.rd__player iframe { width: 100%; height: 100%; display: block; border: 0; }

/* A timestamp written into the text. Reads as part of the sentence, not as a
 * button bolted beside it. */
.rd-cue {
  display: inline-flex; align-items: baseline; gap: .2rem;
  font-family: var(--font-sans); font-size: .8em; font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--crimson); background: var(--crimson-wash);
  border: 1px solid transparent; border-radius: 999px;
  padding: .05rem .5rem; margin: 0 .1rem; cursor: pointer; line-height: 1.5;
}
.rd-cue::before { content: "▸"; font-size: .9em; }
.rd-cue:hover { background: var(--crimson); color: #fff; }
.rd-cue--plain { cursor: default; color: var(--ink-soft); background: var(--mist); }
.rd-cue--plain:hover { background: var(--mist); color: var(--ink-soft); }

/* ---------- Admin: the section editor ----------
 * Episode on the left, text on the right, so writing a timestamp is a matter
 * of watching until the moment and pressing a button. */
.se { display: grid; grid-template-columns: minmax(20rem, 26rem) 1fr; gap: var(--sp-5); align-items: start; }
@media (max-width: 66rem) { .se { grid-template-columns: 1fr; } }
.se__side { position: sticky; top: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); }
.se__player { aspect-ratio: 16 / 9; background: var(--navy-deep); border-radius: var(--radius); overflow: hidden; }
.se__player iframe { width: 100%; height: 100%; border: 0; display: block; }
.se__capture { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.se__preview {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  padding: var(--sp-4); max-height: 26rem; overflow-y: auto;
}
.se__preview .rd__prose { font-size: 1rem; }
/* The source: monospace, because it's HTML and a stray tag should be visible. */
.se__source {
  width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem; line-height: 1.6; padding: var(--sp-3);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  color: var(--ink); resize: vertical;
}
.se__source:focus { outline: 2px solid var(--navy); outline-offset: -2px; }

/* A display rule beats the hidden attribute, and any component that sets
 * display on a hideable element quietly stops being hideable. That has caught
 * us twice — the game's clue overlay, then every movement of a gathering
 * showing at once — so say it once, here. */
[hidden] { display: none !important; }
