/* 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 */
/* Search results: small content cards, two across, each with its still.
 *
 * They were full-width rows a paragraph deep, so four results pushed the rest
 * of the page off the screen and the list read as prose to be worked through.
 * Two columns of recognisable cards is a set of things to choose between, which
 * is what a search result is for. */
.sr-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); align-items: start; }
.sr-card { display: flex; gap: var(--sp-4); background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: var(--sp-4);
  margin: 0; 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__thumb { flex: none; width: 7.5rem; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden;
  background: var(--mist); border: 1px solid var(--line); }
.sr-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sr-card__body { min-width: 0; }

.sr-card__title { font-family: var(--font-serif); font-size: var(--text-base); font-weight: 700;
  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; }
.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-1); }

@media (max-width: 820px) { .sr-list { grid-template-columns: minmax(0, 1fr); } }
.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); }
/* What sort of thing this is, as against which passage it touches. Warm rather
 * than navy so the two badges beside each other read as different questions —
 * a Homily is a category, Luke 15:1-32 is a reference. */
.sr-badge--kind { background: var(--gold-wash); color: var(--gold-deep); box-shadow: inset 0 0 0 1px var(--gold-soft); }
.sr-card__series { font-size: var(--text-sm); color: var(--ink-soft); margin: 0 0 var(--sp-1); }
.sr-card__series a { color: var(--ink-soft); text-decoration: none; }
.sr-card__series a:hover { color: var(--navy); text-decoration: underline; }
/* Clamped: in a card the lead-in is a hint at the content, not the content. A
 * loose paragraph is what made these rows a screen deep. */
.sr-card__lead { font-size: var(--text-sm); color: var(--ink-soft); margin: 0; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.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; }
/* Sized to be recognisable at a glance and no bigger — the list is the point,
   not the pictures. Reserves its box whether or not a still exists, so rows
   don't jump as thumbnails load. */
.ap-part__thumb { flex: none; width: 5.5rem; aspect-ratio: 16/9; border-radius: var(--radius);
  overflow: hidden; background: var(--page); border: 1px solid var(--line); }
.ap-part__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.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; }

/* Days to review. One card per day, because the decision needs the other
   readings in view — the gospel alone doesn't tell you which Mass this is. */
.ld-filters { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; margin-bottom: var(--sp-4); }
.ld-day { margin-bottom: var(--sp-3); }
.ld-day__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-3); }
.ld-day__date { margin: 0; font-size: var(--text-sm); color: var(--ink-soft); }
.ld-day__name { margin: 0; font-family: var(--font-serif); font-weight: 700; font-size: var(--text-lg); }
.ld-day__readings { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); margin: var(--sp-3) 0 0; font-size: var(--text-sm); }
.ld-reading b { color: var(--ink-soft); font-weight: 600; margin-right: .25rem; }
.ld-day__form { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); flex-wrap: wrap; }
.ld-day__form .h2h-input { flex: 1 1 16rem; }


/* ---------- Admin chrome ----------
 *
 * These lived in h2h.css, which design/build.rb generates from
 * design/h2h.css — so every rule added here by hand was overwriting a
 * build artefact and would vanish the next time anyone ran it. None of
 * them are design-system primitives: they are admin screens and app
 * furniture. The one thing in that drift that WAS a primitive — the wide
 * shell at 84rem — went upstream instead. */

/* Admin is tables and rows of controls; it wants the whole window. */
.h2h-admin.h2h-shell, .h2h-admin.h2h-shell--wide { max-width: 96rem; }

/* Site copy, grouped by the part of the site it appears on. The jump row is
 * the whole reason the page is usable at a hundred blocks. */
.ac-jump { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-5) 0 var(--sp-6);
  position: sticky; top: 0; background: var(--page); padding: var(--sp-3) 0; z-index: 2; }
.ac-jump a { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem;
  border: 1px solid var(--line); border-radius: 999px; font-size: var(--text-sm);
  text-decoration: none; color: var(--ink); }
.ac-jump a:hover { border-color: var(--crimson); color: var(--crimson); }
.ac-jump__count { color: var(--ink-soft); font-size: .8rem; }
.ac-section { scroll-margin-top: 9rem; margin-bottom: var(--sp-6); }
.ac-section__head { border-top: 2px solid var(--line); padding-top: var(--sp-3); margin-bottom: var(--sp-4); }
.ac-section__head h2 { margin: 0 0 var(--sp-1); }
.ac-section__head p { margin: 0; max-width: 60rem; }
.ac-section__top { text-align: right; font-size: var(--text-sm); }
.ac-block__hint { margin-bottom: var(--sp-2); }
/* The gathering-copy map. */
.gc-list { margin: 0; padding-left: 1.1rem; }
.gc-list li { margin-bottom: .25rem; }
.gc-list code { font-size: var(--text-sm); }
.gc-passage__head { display: flex; justify-content: space-between; align-items: flex-start;
  gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-3); }
.gc-passage__head p { margin: .15rem 0 0; }
.gc-passage__body { border-left: 3px solid var(--line); padding-left: var(--sp-4);
  color: var(--ink-soft); font-size: var(--text-sm); }
.gc-passage__body p { margin: 0 0 .5rem; }
.gc-tier-label { margin: var(--sp-3) 0 var(--sp-1); font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; }
.gc-block { align-items: flex-start; }
.gc-block__lock { display: flex; align-items: center; gap: .4rem; margin-top: .35rem; }
.gc-passage__override { margin-top: var(--sp-4); border-top: 1px solid var(--line); padding-top: var(--sp-3); }
.gc-passage__override summary { cursor: pointer; color: var(--ink-soft); }
.gc-passage__override[open] summary { color: var(--warn); font-weight: 600; }

.ac-block__flag { display: inline-block; margin-left: var(--sp-2); padding: .1rem .5rem;
  border-radius: 999px; background: var(--warn-wash); color: var(--warn);
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }



/* A badge that is also the switch. It reads as state first — that column is
   scanned far more often than it is clicked — and only shows it is pressable
   on hover. */
.h2h-toggle {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.h2h-toggle--on { background: var(--ok-wash); color: var(--ok); }
.h2h-toggle--off { background: var(--page); color: var(--ink-soft); border-color: var(--line); }
.h2h-toggle:hover { border-color: currentColor; }

/* ---- Socials ---------------------------------------------------------------
 * Links out to where the ministry already is: a menu under the nav, and a rail
 * of marks in the footer. Both are absent unless at least one URL is set — a
 * network without one is never a dead icon. */
.soc { display: flex; align-items: center; gap: var(--sp-3); }
.soc__link { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: inherit; }
.soc__i { width: 1.25rem; height: 1.25rem; flex: none; }
.soc__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Footer rail — marks only, on the footer's dark ground. */
.soc--rail { margin-top: var(--sp-3); gap: var(--sp-4); }
.soc--rail .soc__link { color: rgba(255,255,255,.72); }
.soc--rail .soc__link:hover { color: var(--gold-soft); }

/* Nav menu — the same links with their names, in a panel under "Follow". */
.h2h-socials { position: relative; }
.h2h-socials__panel { position: absolute; top: calc(100% + var(--sp-3)); right: 0; z-index: 40;
  min-width: 12rem; display: flex; flex-direction: column; gap: var(--sp-1);
  background: var(--card); border: 1px solid var(--gold-soft); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift); padding: var(--sp-3); }
.h2h-socials__panel[hidden] { display: none; }
.h2h-socials__panel .soc__link { padding: .45rem .6rem; border-radius: var(--radius); color: var(--ink);
  font-family: var(--font-sans); font-size: var(--text-sm); font-weight: 600; }
.h2h-socials__panel .soc__link:hover { background: var(--mist); color: var(--navy); }
.h2h-socials[data-open] .h2h-nav__link { color: var(--navy); }

/* ---- Share page ------------------------------------------------------------
 * Reached from a link in a broadcast. Stripped on purpose: the teaching and
 * the form, nothing else — what people pass on is the video, not the email. */
.sh-wrap { max-width: 44rem; margin: 0 auto; padding: var(--sp-7) var(--sp-5) var(--sp-8); }
.sh-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: var(--sp-6); }
.sh-subject { display: flex; gap: var(--sp-4); align-items: center; margin: var(--sp-4) 0 var(--sp-6);
  padding-bottom: var(--sp-5); border-bottom: 1px solid var(--line); }
.sh-subject__thumb { flex: none; width: 10rem; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden;
  background: var(--mist); border: 1px solid var(--line); }
.sh-subject__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-subject h1 { font-size: var(--text-xl); margin: 0 0 var(--sp-1); }
.sh-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 620px) {
  .sh-subject { flex-direction: column; align-items: flex-start; }
  .sh-form__row { grid-template-columns: 1fr; }
}

/* The Kit share link, for admins, on the page they'd be looking at. */
.sl { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap;
  margin: var(--sp-4) 0; padding: var(--sp-3) var(--sp-4);
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, var(--mist) 0 10px, #fff 10px 20px); }
.sl__label { font-family: var(--font-sans); font-size: .7rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-soft); }
.sl__url { flex: 1 1 22rem; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .82rem; padding: .35rem .55rem; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; color: var(--ink); }
.sl__off { font-size: var(--text-sm); color: var(--warn); font-style: italic; }

/* The day's reading, on a session page. Set apart from the summary above it:
 * one is Fr. Michael writing about the teaching, the other is Scripture. */
.rd-passage { margin: var(--sp-5) 0; padding: var(--sp-5); border-left: 3px solid var(--gold);
  background: var(--gold-wash); border-radius: 0 var(--radius) var(--radius) 0; }
/* Label and citation together at the left, not pushed to opposite ends:
 * the block is wider than its longest line, so a citation at the far right
 * hung in empty space, attached to nothing. */
.rd-passage__head { display: flex; align-items: baseline; justify-content: flex-start;
  gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-3); }
.rd-passage__label { font-family: var(--font-sans); font-size: .7rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.rd-passage__cite { font-family: var(--font-serif); font-style: italic; font-size: var(--text-lg);
  color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--gold-soft); }
.rd-passage__cite:hover { border-color: var(--navy); }
/* Sense-lined (Design, 2026-09-10): the lectionary's line breaks are units
 * of meaning, so the body is capped at a measure the longest line fits and
 * never justified; a turnover hangs further in than any indent the
 * lectionary itself uses, so a wrap can't be mistaken for an authored break.
 * Design measured 34rem against a 63-character line; Matthew 18:21-35 runs
 * to 71 characters ("…not seven times but seventy-seven times.") and wrapped
 * at that width, which is the one thing the rule forbids. 46rem clears the
 * longest lines the lectionary sets, hanging indent included. */
.rd-passage__body { font-family: var(--font-serif); font-size: 1.0625rem; line-height: 1.55; color: var(--ink); max-width: 46rem; }
.rd-passage__body p { margin: 0; padding-left: 1.6rem; text-indent: -1.6rem; }
.rd-passage__body p.rd-passage__blank { height: .6em; padding: 0; }
/* Long passages fold: about fourteen lines, a fade, and a control. The
 * controller adds is-overflowing only when there is more to read. */
.rd-passage:not(.is-expanded) .rd-passage__body { max-height: 22em; overflow: hidden; position: relative; }
.rd-passage.is-overflowing:not(.is-expanded) .rd-passage__body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4em;
  background: linear-gradient(180deg, rgba(253, 247, 234, 0), var(--gold-wash)); }
.rd-passage__more { margin-top: var(--sp-3); background: none; border: 0; padding: 0; font-family: var(--font-sans);
  font-size: var(--text-sm); font-weight: 600; color: var(--navy); cursor: pointer; }
.rd-passage__more:hover { text-decoration: underline; }
.rd-passage__count { margin-left: .5rem; font-weight: 400; color: var(--ink-soft); }
