/* =========================================================================
   CCRN Zonal Website — Design System
   Palette: night violet (prayer), Pentecost flame, sanctuary gold, linen.
   Type: Cinzel (proclamation), Cormorant Garamond (scripture), Source Sans 3 (body)
   ========================================================================= */

:root {
  --ink: #120a1c;
  --ink-2: #1d1230;
  --ink-3: #2a1b42;
  --flame: #d23a1e;
  --flame-2: #f0702a;
  --gold: #d9a441;
  --gold-2: #f3d58a;
  --linen: #faf5ec;
  --paper: #ffffff;
  --text: #2a2233;
  --muted: #6c6377;
  --line: #e9e1d3;
  --ok: #1f7a4d;
  --err: #b42318;

  --f-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --f-script: "Cormorant Garamond", Georgia, serif;
  --f-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 18px 50px -20px rgba(18, 10, 28, .35);
  --shadow-sm: 0 6px 20px -10px rgba(18, 10, 28, .3);
  --max: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--linen);
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--flame); text-decoration: none; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: .02em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--dark { background: var(--ink); color: #e8e1f0; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--paper { background: var(--paper); }
.section--tight { padding: 56px 0; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Section headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-size: .78rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--flame); margin-bottom: 14px; font-weight: 600;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section--dark .eyebrow { color: var(--gold); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.section--dark .lead { color: #bdb2cc; }
.center .lead { margin-inline: auto; }
.center .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; }
.head { margin-bottom: 48px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--f-body); font-weight: 700; font-size: .95rem; letter-spacing: .06em;
  text-transform: uppercase; cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--flame { background: linear-gradient(135deg, var(--flame), var(--flame-2)); color: #fff; box-shadow: 0 12px 30px -12px rgba(210, 58, 30, .7); }
.btn--flame:hover { color: #fff; box-shadow: 0 16px 34px -12px rgba(210, 58, 30, .9); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-2); color: var(--ink); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--sm { padding: 9px 18px; font-size: .8rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.topbar { background: var(--ink); color: #b9aecb; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
.topbar a { color: #e3dbef; }
.topbar a:hover { color: var(--gold); }
.topbar__social { display: flex; gap: 14px; }
.topbar__social a { display: inline-flex; }
.topbar__social svg { width: 16px; height: 16px; fill: currentColor; }

.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(18, 10, 28, .92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217, 164, 65, .18);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand:hover { color: #fff; }
.brand__mark { width: 46px; height: 46px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--f-display); font-weight: 700; font-size: 1.02rem; letter-spacing: .06em; }
.brand__sub { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: #e6def0; padding: 10px 14px; border-radius: 8px; font-weight: 600; font-size: .92rem;
  letter-spacing: .04em; position: relative;
}
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:hover, .nav a.is-active { color: #fff; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav .btn { margin-left: 10px; padding: 10px 20px; }
.nav .btn::after { display: none; }

.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--ink); padding: 16px; gap: 2px; border-bottom: 1px solid rgba(217,164,65,.25);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
    max-height: calc(100vh - var(--header-h)); overflow: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .topbar { display: none; }
  .nav a { padding: 14px; }
  .nav .btn { margin: 10px 0 0; }
  .topbar__contact span:not(:first-child) { display: none; }
}

/* ---------- Hero slider ---------- */
.hero { position: relative; height: min(92vh, 860px); min-height: 560px; overflow: hidden; background: var(--ink); color: #fff; }
.hero__slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 1.2s var(--ease), visibility 1.2s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.08); transition: transform 7s linear;
}
.hero__slide.is-active .hero__bg { transform: scale(1); }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(240,112,42,.28), transparent 55%),
    linear-gradient(100deg, rgba(18,10,28,.94) 0%, rgba(18,10,28,.78) 45%, rgba(18,10,28,.35) 100%);
}
.hero__content {
  position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center;
  max-width: 780px; padding-bottom: 110px;
}
.hero__kicker {
  font-family: var(--f-display); letter-spacing: .32em; text-transform: uppercase; font-size: .82rem; color: var(--gold);
  margin-bottom: 18px; display: flex; align-items: center; gap: 12px;
}
.hero__kicker::before { content: ""; width: 40px; height: 2px; background: var(--gold); }
.hero h1, .hero h2.hero__title {
  color: #fff; font-size: clamp(2.3rem, 6vw, 4.8rem); font-weight: 700; margin-bottom: 18px;
  text-shadow: 0 4px 30px rgba(0,0,0,.4); letter-spacing: .01em;
}
.hero__title em { font-style: normal; background: linear-gradient(90deg, var(--gold-2), var(--flame-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__text { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #ddd3ea; max-width: 620px; margin-bottom: 32px; }
.hero__slide .hero__content > * { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.hero__slide.is-active .hero__content > * { opacity: 1; transform: none; }
.hero__slide.is-active .hero__content > *:nth-child(2) { transition-delay: .15s; }
.hero__slide.is-active .hero__content > *:nth-child(3) { transition-delay: .3s; }
.hero__slide.is-active .hero__content > *:nth-child(4) { transition-delay: .45s; }

.hero__controls { position: absolute; z-index: 5; bottom: 104px; left: 0; right: 0; }
.hero__controls .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero__dots { display: flex; gap: 10px; }
.hero__dot { width: 34px; height: 4px; border-radius: 4px; border: 0; background: rgba(255,255,255,.35); cursor: pointer; padding: 0; transition: background .3s, width .3s; }
.hero__dot.is-active { background: var(--gold); width: 56px; }
.hero__arrows { display: flex; gap: 10px; }
.hero__arrow {
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(18,10,28,.4);
  color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .25s, border-color .25s;
}
.hero__arrow:hover { background: var(--flame); border-color: var(--flame); }
.hero__arrow svg { width: 20px; height: 20px; }

/* Page hero (inner pages) */
.page-hero {
  position: relative; padding: clamp(90px, 13vw, 160px) 0 clamp(60px, 8vw, 100px); color: #fff; overflow: hidden;
  background: var(--ink);
}
.page-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .55; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 0%, rgba(240,112,42,.35), transparent 55%), linear-gradient(180deg, rgba(18,10,28,.55), rgba(18,10,28,.95));
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.8rem); }
.page-hero p { color: #d6cbe5; max-width: 680px; font-size: 1.15rem; }
.crumbs { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.crumbs a { color: #e0d6ec; }
.crumbs a:hover { color: var(--gold); }

/* Image placeholder: shows a styled panel until a real photo is dropped in */
.ph {
  position: relative; overflow: hidden; background-color: var(--ink-3);
  background-image:
    radial-gradient(circle at 30% 20%, rgba(240,112,42,.35), transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(217,164,65,.3), transparent 45%),
    linear-gradient(135deg, var(--ink-2), var(--ink-3));
  background-size: cover; background-position: center;
}
.ph[data-label]::before {
  content: attr(data-label); position: absolute; inset: auto 12px 12px auto; z-index: 1;
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55);
}
.ph.has-img::before { display: none; }
/* Full-bleed slots must stay absolutely positioned (the generic .ph rule above would collapse them) */
.ph.hero__bg, .ph.page-hero__bg { position: absolute; inset: 0; }

/* ---------- Countdown ---------- */
.countdown-band {
  position: relative; z-index: 6; margin-top: -70px;
}
.countdown-card {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1.1fr 1.4fr auto; gap: 28px; align-items: center; padding: 28px 34px;
  border-top: 4px solid var(--flame);
}
.countdown-card__label { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--flame); font-weight: 700; }
.countdown-card__title { font-family: var(--f-display); font-size: 1.35rem; color: var(--ink); margin: 4px 0; }
.countdown-card__date { color: var(--muted); font-size: .95rem; }
.timer { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.timer__unit { background: var(--ink); color: #fff; border-radius: 10px; text-align: center; padding: 14px 6px; }
.timer__num { font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; line-height: 1; display: block; font-variant-numeric: tabular-nums; }
.timer__lbl { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-top: 6px; display: block; }
.timer--light .timer__unit { background: rgba(255,255,255,.08); border: 1px solid rgba(217,164,65,.3); }
@media (max-width: 900px) {
  .countdown-card { grid-template-columns: 1fr; text-align: center; }
}

/* Event countdown tiles (all four events) */
.event-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.event-tile {
  background: var(--ink-2); border: 1px solid rgba(217,164,65,.2); border-radius: var(--radius);
  padding: 26px; color: #ddd3ea; position: relative; overflow: hidden;
}
.event-tile::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--flame), var(--gold)); }
.event-tile h3 { color: #fff; font-size: 1.1rem; margin-bottom: 4px; }
.event-tile .meta { font-size: .85rem; color: var(--gold); margin-bottom: 18px; }
.event-tile .timer { gap: 8px; }
.event-tile .timer__unit { padding: 10px 4px; }
.event-tile .timer__num { font-size: 1.4rem; }
.event-tile .timer__lbl { font-size: .6rem; }
.event-tile p { font-size: .92rem; margin: 16px 0 0; color: #b9aecb; }
.badge { display: inline-block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(217,164,65,.15); color: var(--gold); font-weight: 700; }
.badge--live { background: var(--flame); color: #fff; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .55; } }

/* ---------- About / welcome ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }

.portrait { position: relative; }
.portrait__frame { aspect-ratio: 4/5; border-radius: var(--radius); box-shadow: var(--shadow); }
.portrait::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 2px solid var(--gold); border-radius: var(--radius); z-index: -1;
}
.portrait__tag {
  position: absolute; left: -16px; bottom: 30px; background: var(--flame); color: #fff; padding: 14px 22px; border-radius: 10px;
  box-shadow: var(--shadow-sm);
}
.portrait__tag strong { display: block; font-family: var(--f-display); font-size: 1.05rem; }
.portrait__tag span { font-size: .82rem; opacity: .9; }

.signature { font-family: var(--f-script); font-style: italic; font-size: 1.6rem; color: var(--ink); margin: 18px 0 0; }
.signature small { display: block; font-family: var(--f-body); font-style: normal; font-size: .85rem; color: var(--muted); letter-spacing: .06em; }

.quote {
  font-family: var(--f-script); font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.45; font-style: italic;
  color: var(--ink); border-left: 4px solid var(--flame); padding: 6px 0 6px 24px; margin: 26px 0;
}
.section--dark .quote { color: #fff; }

.speech p:first-of-type::first-letter {
  font-family: var(--f-display); float: left; font-size: 3.6rem; line-height: .85; padding: 6px 10px 0 0; color: var(--flame);
}

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: rgba(217,164,65,.25); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--ink-2); padding: 30px 20px; text-align: center; }
.stat__num { font-family: var(--f-display); font-size: clamp(2rem, 4vw, 3rem); color: var(--gold); font-weight: 700; line-height: 1; }
.stat__lbl { color: #cfc4de; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; margin-top: 10px; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.card {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  border: 1px solid var(--line);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 16/10; }
.card__body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__body p { color: var(--muted); font-size: .97rem; margin: 0; }
.card__foot { margin-top: auto; padding-top: 14px; }
.card__kicker { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--flame); font-weight: 700; }

.icon-card {
  background: var(--paper); border-radius: var(--radius); padding: 30px 26px; border: 1px solid var(--line);
  position: relative; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s;
}
.icon-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.icon-card__icon {
  width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--flame), var(--flame-2)); color: #fff;
}
.icon-card__icon svg { width: 28px; height: 28px; }
.icon-card p { color: var(--muted); font-size: .97rem; }
.icon-card .num { position: absolute; right: 18px; top: 10px; font-family: var(--f-display); font-size: 3.4rem; color: rgba(18,10,28,.06); font-weight: 700; }

.section--dark .icon-card { background: var(--ink-2); border-color: rgba(217,164,65,.18); }
.section--dark .icon-card p { color: #bdb2cc; }
.section--dark .icon-card .num { color: rgba(255,255,255,.06); }

/* Gateway (hidden pages) */
.gateway {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 360px; display: flex; align-items: flex-end;
  color: #fff; box-shadow: var(--shadow);
}
.gateway .ph { position: absolute; inset: 0; transition: transform .8s var(--ease); }
.gateway:hover .ph { transform: scale(1.05); }
.gateway::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,10,28,.1), rgba(18,10,28,.92)); }
.gateway__body { position: relative; z-index: 2; padding: 34px; }
.gateway h3 { color: #fff; font-size: 1.8rem; }
.gateway p { color: #ddd3ea; max-width: 460px; }

/* ---------- Timeline (history) ---------- */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--flame), var(--gold)); transform: translateX(-50%); }
.timeline li { position: relative; width: 50%; padding: 0 44px 44px 0; }
.timeline li:nth-child(even) { margin-left: 50%; padding: 0 0 44px 44px; }
.timeline li::before {
  content: ""; position: absolute; top: 6px; right: -9px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--paper); border: 4px solid var(--flame);
}
.timeline li:nth-child(even)::before { left: -9px; right: auto; }
.timeline__year { font-family: var(--f-display); font-size: 1.6rem; color: var(--flame); font-weight: 700; }
.timeline__card { background: var(--paper); border-radius: var(--radius-sm); padding: 20px 22px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); margin-top: 8px; }
.timeline__card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.timeline__card p { margin: 0; color: var(--muted); font-size: .97rem; }
.timeline li:nth-child(odd) { text-align: right; }
@media (max-width: 760px) {
  .timeline::before { left: 9px; }
  .timeline li, .timeline li:nth-child(even) { width: 100%; margin: 0; padding: 0 0 36px 40px; text-align: left; }
  .timeline li::before, .timeline li:nth-child(even)::before { left: 0; right: auto; }
}

/* ---------- People ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 22px; }
.person { text-align: center; background: var(--paper); border-radius: var(--radius); padding: 22px 16px 24px; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.person__photo { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 14px; border: 4px solid var(--linen); box-shadow: 0 0 0 2px var(--gold); }
.person__name { font-family: var(--f-display); font-size: 1rem; color: var(--ink); margin: 0; }
.person__role { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--flame); font-weight: 700; margin-top: 4px; }
.person__meta { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.person--lead { grid-column: 1 / -1; display: grid; grid-template-columns: 180px 1fr; gap: 28px; text-align: left; align-items: center; padding: 28px; border-top: 4px solid var(--flame); }
.person--lead .person__photo { width: 170px; height: 170px; margin: 0; }
.person--lead .person__name { font-size: 1.4rem; }
@media (max-width: 700px) { .portrait::before { inset: 14px -10px -14px 14px; } .portrait__tag { left: -6px; } }
@media (max-width: 600px) { .person--lead { grid-template-columns: 1fr; text-align: center; } .person--lead .person__photo { margin: 0 auto; } }
.section--dark .person { background: var(--ink-2); border-color: rgba(217,164,65,.18); }
.section--dark .person__name { color: #fff; }
.section--dark .person__meta { color: #b9aecb; }
.section--dark .person__photo { border-color: var(--ink); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-sm); }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 640px; }
table.data th { background: var(--ink); color: var(--gold-2); text-align: left; padding: 14px 16px; font-family: var(--f-display); font-weight: 600; letter-spacing: .06em; font-size: .82rem; text-transform: uppercase; }
table.data td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: top; }
table.data tr:nth-child(even) td { background: #fcf9f3; }
table.data td.term { font-weight: 600; color: var(--ink); white-space: nowrap; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; }
.tag--current { background: #e5f4ec; color: var(--ok); }
.tag--past { background: #f1edf6; color: var(--muted); }

/* ---------- Tabs / filters ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.center .tabs, .tabs.center { justify-content: center; }
.tab {
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 10px 20px; border-radius: 999px;
  font-weight: 700; font-size: .85rem; letter-spacing: .06em; cursor: pointer; transition: all .25s;
}
.tab:hover { border-color: var(--flame); color: var(--flame); }
.tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.section--dark .tab { background: transparent; border-color: rgba(255,255,255,.2); color: #e6def0; }
.section--dark .tab.is-active { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* ---------- Event gallery ---------- */
.event-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.event-card__media { position: relative; aspect-ratio: 16/10; cursor: pointer; }
.event-card__media .ph { position: absolute; inset: 0; }
.event-card__play {
  position: absolute; inset: 0; margin: auto; width: 66px; height: 66px; border-radius: 50%; z-index: 2;
  background: rgba(210,58,30,.92); color: #fff; display: grid; place-items: center; border: 0; cursor: pointer;
  box-shadow: 0 0 0 10px rgba(210,58,30,.25); transition: transform .3s;
}
.event-card__play:hover { transform: scale(1.1); }
.event-card__play svg { width: 26px; height: 26px; margin-left: 4px; }
.event-card__status { position: absolute; top: 14px; left: 14px; z-index: 2; }
.event-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.event-card__date { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--flame); font-weight: 700; }
.event-card__title { font-family: var(--f-display); font-size: 1.15rem; color: var(--ink); margin: 0; }
.event-card__topic { font-family: var(--f-script); font-style: italic; font-size: 1.2rem; color: var(--ink-3); margin: 4px 0; }
.event-card__speaker { display: flex; gap: 10px; align-items: center; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .9rem; }
.event-card__speaker .ph { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.event-card__speaker small { display: block; color: var(--muted); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.event-card__speaker strong { color: var(--ink); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,5,16,.93); display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.is-open { display: flex; }
.lightbox__inner { width: min(1000px, 100%); }
.lightbox__frame { aspect-ratio: 16/9; background: #000; border-radius: 10px; overflow: hidden; }
.lightbox__frame iframe, .lightbox__frame video { width: 100%; height: 100%; border: 0; }
.lightbox__frame img { width: 100%; height: 100%; object-fit: contain; }
.lightbox__caption { color: #ddd3ea; margin-top: 14px; text-align: center; }
.lightbox__close { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; }
.lightbox__empty { height: 100%; display: grid; place-items: center; text-align: center; color: #b9aecb; padding: 30px; }

/* ---------- Livestream ---------- */
.stream { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.stream__player { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); position: relative; }
.stream__player iframe { width: 100%; height: 100%; border: 0; }
.stream__offline { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: #cfc4de; }
.stream__offline svg { width: 54px; height: 54px; margin: 0 auto 12px; color: var(--gold); }
.channels { display: grid; gap: 12px; }
.channel {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 12px;
  background: var(--ink-2); border: 1px solid rgba(217,164,65,.18); color: #fff; transition: transform .25s, border-color .25s;
}
.channel:hover { transform: translateX(6px); border-color: var(--gold); color: #fff; }
.channel__icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.channel__icon svg { width: 22px; height: 22px; fill: #fff; }
.channel strong { display: block; font-size: 1rem; }
.channel small { color: #b9aecb; font-size: .82rem; }
.channel .arrow { margin-left: auto; color: var(--gold); }
@media (max-width: 900px) { .stream { grid-template-columns: 1fr; } }

/* ---------- Devotion ---------- */
.devotion {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.25fr;
}
.devotion__verse {
  background: linear-gradient(160deg, var(--ink), var(--ink-3)); color: #fff; padding: clamp(30px, 5vw, 56px);
  position: relative; display: flex; flex-direction: column; justify-content: center;
}
.devotion__verse::before { content: "\201C"; position: absolute; top: -10px; left: 20px; font-family: var(--f-script); font-size: 10rem; color: rgba(217,164,65,.18); line-height: 1; }
.devotion__date { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; font-weight: 700; position: relative; }
.devotion__text { font-family: var(--f-script); font-size: clamp(1.4rem, 2.5vw, 1.9rem); line-height: 1.4; font-style: italic; position: relative; }
.devotion__ref { margin-top: 18px; font-family: var(--f-display); color: var(--gold-2); letter-spacing: .1em; position: relative; }
.devotion__body { padding: clamp(30px, 5vw, 56px); }
.devotion__body h3 { font-size: 1.4rem; }
.devotion__prayer { background: var(--linen); border-left: 4px solid var(--gold); padding: 16px 20px; border-radius: 0 10px 10px 0; font-style: italic; color: var(--ink-3); margin-top: 18px; }
.devotion__nav { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
@media (max-width: 900px) { .devotion { grid-template-columns: 1fr; } }

/* ---------- Schedule ---------- */
.schedule { display: grid; gap: 12px; }
.schedule__row { display: grid; grid-template-columns: 130px 1fr auto; gap: 16px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.schedule__day { font-family: var(--f-display); font-weight: 700; color: var(--flame); letter-spacing: .06em; }
.schedule__what strong { display: block; color: var(--ink); }
.schedule__what span { color: var(--muted); font-size: .92rem; }
.schedule__time { font-weight: 700; color: var(--ink); white-space: nowrap; }
@media (max-width: 600px) { .schedule__row { grid-template-columns: 1fr; gap: 4px; } }

/* Info list */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.fact { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.fact small { display: block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.fact strong { font-family: var(--f-display); color: var(--ink); font-size: 1.1rem; }

/* Probation path */
.path { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
.path__step { position: relative; padding: 0 16px; text-align: center; }
.path__step::before {
  counter-increment: step; content: counter(step); display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 50%; background: var(--ink); color: var(--gold); font-family: var(--f-display); font-size: 1.5rem; font-weight: 700;
  border: 3px solid var(--gold); position: relative; z-index: 2;
}
.path__step:last-child::before { content: "\2726"; background: var(--flame); color: #fff; border-color: var(--flame); }
.path__step::after { content: ""; position: absolute; top: 32px; left: 50%; width: 100%; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 14px); z-index: 1; }
.path__step:last-child::after { display: none; }
.path__step h3 { font-size: 1.05rem; }
.path__step p { font-size: .94rem; color: var(--muted); }
.section--dark .path__step p { color: #bdb2cc; }
@media (max-width: 820px) {
  .path { grid-template-columns: 1fr; gap: 28px; }
  .path__step::after { display: none; }
}

/* Directory list (communities index) */
.dir-card { display: grid; grid-template-columns: 140px 1fr; background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.dir-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.dir-card .ph { min-height: 100%; }
.dir-card__body { padding: 22px 24px; }
.dir-card__body h3 { margin-bottom: 4px; }
.dir-card__meta { color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
@media (max-width: 520px) { .dir-card { grid-template-columns: 1fr; } .dir-card .ph { aspect-ratio: 16/8; } }

/* ---------- CTA ---------- */
.cta {
  position: relative; border-radius: calc(var(--radius) * 1.5); overflow: hidden; padding: clamp(40px, 7vw, 80px);
  background: linear-gradient(120deg, var(--flame), #a3240f 60%, var(--ink)); color: #fff;
  display: grid; grid-template-columns: 1.4fr auto; gap: 30px; align-items: center;
}
.cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px; border-radius: 50%; border: 50px solid rgba(255,255,255,.07); }
.cta h2 { color: #fff; }
.cta p { color: #ffe3d6; margin: 0; font-size: 1.1rem; }
.cta .btn-row { position: relative; z-index: 2; }
@media (max-width: 800px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #0b0612; color: #aea3bd; padding: 80px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #cfc4de; }
.site-footer a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); transition: background .25s; }
.footer-social a:hover { background: var(--flame); }
.footer-social svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 60px; padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--flame); color: #fff; cursor: pointer; box-shadow: var(--shadow-sm); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; display: grid; place-items: center; }
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Forms (registration portal) ---------- */
.form-shell { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }
@media (max-width: 960px) { .form-shell { grid-template-columns: 1fr; } }
.form-aside { position: sticky; top: calc(var(--header-h) + 20px); background: var(--ink); color: #d6cbe5; border-radius: var(--radius); padding: 28px; }
.form-aside h3 { color: #fff; font-size: 1.1rem; }
.form-aside ol { padding-left: 20px; margin: 0; display: grid; gap: 10px; font-size: .95rem; }
.form-aside a { color: var(--gold-2); }
@media (max-width: 960px) { .form-aside { position: static; } }
.form-card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); padding: clamp(22px, 4vw, 40px); }
.fieldset { border: 0; padding: 0; margin: 0 0 34px; }
.fieldset legend { font-family: var(--f-display); font-size: 1.15rem; color: var(--ink); padding: 0; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; width: 100%; }
.fieldset legend span { width: 32px; height: 32px; border-radius: 50%; background: var(--flame); color: #fff; display: grid; place-items: center; font-size: .9rem; flex: none; }
.fieldset legend::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 20px; }
.fields--3 { grid-template-columns: repeat(3, 1fr); }
.field--full { grid-column: 1 / -1; }
@media (max-width: 700px) { .fields, .fields--3 { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: .88rem; color: var(--ink); margin-bottom: 6px; }
.field label .req { color: var(--flame); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: 1rem;
  background: #fdfbf7; color: var(--text); transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--flame); background: #fff; box-shadow: 0 0 0 4px rgba(210,58,30,.12); }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 5px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--err); }
.field .error { color: var(--err); font-size: .82rem; margin-top: 5px; font-weight: 600; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; margin: 0; background: #fdfbf7; }
.radio-row input { width: auto; accent-color: var(--flame); }
.radio-row label:has(input:checked) { border-color: var(--flame); background: #fff1ec; color: var(--flame); }

.passport { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.passport__preview { width: 140px; height: 170px; border-radius: 10px; border: 2px dashed var(--line); background: #fdfbf7 center/cover no-repeat; display: grid; place-items: center; color: var(--muted); font-size: .8rem; text-align: center; padding: 10px; flex: none; }
.passport__preview.has-img { border-style: solid; border-color: var(--gold); color: transparent; }

.consent { display: flex; gap: 12px; align-items: flex-start; background: var(--linen); padding: 16px 18px; border-radius: 10px; font-size: .95rem; }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--flame); flex: none; }

.alert { padding: 16px 20px; border-radius: 10px; margin-bottom: 24px; font-weight: 600; }
.alert--error { background: #fdecea; color: var(--err); border: 1px solid #f5c2bd; }
.alert--ok { background: #e7f5ee; color: var(--ok); border: 1px solid #b7e0c9; }
.alert ul { margin: 8px 0 0; padding-left: 20px; font-weight: 400; }
.hp { position: absolute; left: -9999px; }

/* Membership slip */
.slip { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; max-width: 760px; margin: 0 auto; border: 1px solid var(--line); }
.slip__head { background: var(--ink); color: #fff; padding: 24px 30px; display: flex; align-items: center; gap: 16px; }
.slip__head h2 { color: #fff; font-size: 1.3rem; margin: 0; }
.slip__head small { color: var(--gold); letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; }
.slip__body { padding: 30px; display: grid; grid-template-columns: 150px 1fr; gap: 26px; }
.slip__photo { width: 150px; height: 180px; object-fit: cover; border-radius: 10px; border: 3px solid var(--gold); }
.slip dl { display: grid; grid-template-columns: 160px 1fr; gap: 8px 14px; margin: 0; font-size: .95rem; }
.slip dt { color: var(--muted); font-weight: 600; }
.slip dd { margin: 0; color: var(--ink); font-weight: 600; }
.slip__id { font-family: var(--f-display); font-size: 1.4rem; color: var(--flame); letter-spacing: .06em; }
@media (max-width: 620px) { .slip__body { grid-template-columns: 1fr; } .slip dl { grid-template-columns: 1fr; } .slip dt { margin-top: 6px; } }
@media print {
  .site-header, .topbar, .site-footer, .no-print, .to-top, .page-hero { display: none !important; }
  body { background: #fff; }
  .slip { box-shadow: none; }
}

.note { font-size: .9rem; color: var(--muted); background: #fff8e6; border: 1px dashed var(--gold); border-radius: 10px; padding: 12px 16px; }

/* ---------- Image slots: custom logo, livestream poster, ?showimages finder ---------- */
.brand__mark--img { object-fit: contain; border-radius: 50%; }
.stream__poster { position: absolute; inset: 0; opacity: .45; }
.stream__offline { z-index: 1; }
.show-image-keys .ph { outline: 2px dashed var(--gold); outline-offset: -2px; }
.show-image-keys .ph[data-label]:not([data-label=""])::before,
.show-image-keys .ph.has-img::before {
  display: block; content: attr(data-label); position: absolute; inset: 8px auto auto 8px; z-index: 30;
  max-width: calc(100% - 16px); background: rgba(10, 5, 16, .88); color: var(--gold-2); border: 1px solid var(--gold);
  font: 600 11px/1.35 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0; text-transform: none;
  padding: 5px 8px; border-radius: 6px; white-space: normal; word-break: break-all; pointer-events: none;
}
.show-image-keys .person__photo::before { inset: auto auto -6px 50%; transform: translateX(-50%); width: 200px; max-width: none; text-align: center; }
.show-image-keys .person__photo { overflow: visible; }
/* In finder mode, lift banner/hero photos above their dark overlay so the slot label can be read */
.show-image-keys .hero__bg, .show-image-keys .page-hero__bg { z-index: 1; }
.show-image-keys .gateway .ph { z-index: 1; }
.show-image-keys .gateway__body { z-index: 3; }

/* ---------- Welcome letter (shown after registration) ---------- */
.welcome-letter {
  position: relative; max-width: 760px; margin: 0 auto 34px; background: var(--paper); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--line); border-top: 5px solid var(--gold);
  padding: clamp(28px, 5vw, 52px); overflow: hidden;
}
.welcome-letter::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,112,42,.14), transparent 70%); pointer-events: none;
}
.welcome-letter__dove { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--flame), var(--flame-2)); color: #fff; }
.welcome-letter__dove svg { width: 28px; height: 28px; }
.welcome-letter h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.welcome-letter p { font-size: 1.06rem; }
.welcome-letter .quote small { font-style: normal; font-family: var(--f-display); font-size: .85rem; color: var(--flame); }
.welcome-letter__blessing { font-weight: 600; color: var(--ink); }
.welcome-letter__next { background: var(--linen); border: 1px dashed var(--gold); border-radius: 10px; padding: 16px 20px; margin-top: 24px; font-size: .97rem; }
.welcome-letter__next ul { margin: 8px 0 0; padding-left: 20px; }
.welcome-letter__sent { max-width: 760px; margin: -18px auto 30px; text-align: center; color: var(--ok); font-weight: 600; }
@media print { .welcome-letter { box-shadow: none; break-after: page; } }

/* =========================================================================
   Statutory bodies, media & drama
   ========================================================================= */
/* Hub cards */
.body-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 26px; }
.body-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 200px 1fr; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; }
.body-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.body-card__media { min-height: 100%; }
.body-card__body { padding: 26px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.body-card__body h3 { margin: 6px 0 0; font-size: 1.35rem; }
.body-card__body p { margin: 0; color: var(--muted); font-size: .96rem; }
.body-card__tag { font-family: var(--f-script); font-style: italic; font-size: 1.2rem !important; color: var(--ink-3) !important; }
.body-card__next { width: 100%; background: var(--ink); color: #ddd3ea; border-radius: 12px; padding: 14px; margin: 8px 0 6px; }
.body-card__next small { display: block; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.body-card__next strong { display: block; color: #fff; font-family: var(--f-display); font-size: 1rem; }
.body-card__next > span { font-size: .85rem; color: #b9aecb; }
.body-card__next .timer { margin-top: 10px; gap: 6px; }
.body-card__next .timer__unit { background: rgba(255,255,255,.07); padding: 8px 2px; }
.body-card__next .timer__num { font-size: 1.25rem; }
.body-card__next .timer__lbl { font-size: .58rem; letter-spacing: .1em; }
@media (max-width: 640px) { .body-card { grid-template-columns: 1fr; } .body-card__media { aspect-ratio: 16/8; } }

/* Community leaderboard */
.cboard { text-align: left; }
.cboard__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cboard__head h3 { margin: 0; }
#body-cboard .tabs { justify-content: center; }

/* Contacts */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-grid h3 { margin-bottom: 18px; }
.contacts { display: grid; gap: 12px; }
.contact { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 12px; background: var(--ink-2); border: 1px solid rgba(217,164,65,.18); color: #fff; transition: border-color .25s, transform .25s; }
a.contact:hover { border-color: var(--gold); transform: translateX(6px); color: #fff; }
.contact__icon { width: 42px; height: 42px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--flame); color: #fff; }
.contact__icon svg { width: 21px; height: 21px; }
.contact small { display: block; color: var(--gold); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.contact strong { display: block; font-size: 1rem; word-break: break-word; }
.contact em { display: block; font-style: normal; color: #b9aecb; font-size: .86rem; }
.contact .contact__icon[style] svg { fill: #fff; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Video theatre */
.theatre { display: grid; grid-template-columns: 1.7fr 1fr; gap: 24px; align-items: start; }
.theatre__stage { background: var(--ink-2); border: 1px solid rgba(217,164,65,.2); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.theatre__screen { position: relative; aspect-ratio: 16/9; background: #000; }
.theatre__screen iframe, .theatre__screen video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ph.theatre__poster { position: absolute; inset: 0; }
.theatre__screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(18,10,28,.6)); pointer-events: none; }
.theatre__screen:has(iframe)::after, .theatre__screen:has(video)::after { display: none; }
.theatre__play { position: absolute; inset: 0; margin: auto; z-index: 2; width: 86px; height: 86px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(210,58,30,.95); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 14px rgba(210,58,30,.25); transition: transform .3s; }
.theatre__play:hover { transform: scale(1.08); }
.theatre__play svg { width: 34px; height: 34px; margin-left: 5px; }
.theatre__soon { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; color: #cfc4de; padding: 20px; }
.theatre__soon svg { width: 48px; height: 48px; color: var(--gold); margin-bottom: 4px; }
.theatre__soon strong { color: #fff; font-size: 1.1rem; }
.theatre__soon span { font-size: .9rem; }
.theatre__info { padding: 22px 26px 26px; color: #cfc4de; }
.theatre__info h3 { color: #fff; margin: 6px 0 6px; }
.theatre__info p { margin: 0 0 6px; }
.theatre__meta { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.theatre__people { color: #fff; }
.theatre__list { display: grid; gap: 10px; max-height: 620px; overflow: auto; padding-right: 4px; }
.theatre__item { display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: center; text-align: left; width: 100%; padding: 10px; border-radius: 12px;
  background: var(--ink-2); border: 1px solid rgba(217,164,65,.15); color: #fff; cursor: pointer; font: inherit; transition: border-color .25s, background .25s; }
.theatre__item:hover { border-color: rgba(217,164,65,.5); }
.theatre__item.is-active { border-color: var(--gold); background: var(--ink-3); }
.theatre__thumb { position: relative; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; display: block; }
.theatre__thumb .ph { position: absolute; inset: 0; }
.theatre__mini { position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; border-radius: 50%; background: rgba(210,58,30,.9); display: grid; place-items: center; z-index: 2; }
.theatre__mini svg { width: 14px; height: 14px; margin-left: 2px; }
.theatre__text strong { display: block; font-size: .95rem; line-height: 1.3; }
.theatre__text small { display: block; color: #b9aecb; font-size: .78rem; margin-top: 4px; }
@media (max-width: 900px) { .theatre { grid-template-columns: 1fr; } .theatre__list { max-height: none; } }

/* Photo gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); grid-auto-rows: 220px; gap: 14px; }
.gallery__item { position: relative; border: 0; padding: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--ink-3); }
.gallery__item:nth-child(6n + 1) { grid-row: span 2; }
.gallery__item .ph { position: absolute; inset: 0; transition: transform .6s var(--ease); }
.gallery__item:hover .ph { transform: scale(1.06); }
.gallery__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 30px 14px 12px; text-align: left; color: #fff; font-weight: 600; font-size: .92rem;
  background: linear-gradient(180deg, transparent, rgba(18,10,28,.88)); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.gallery__cap small { display: block; color: var(--gold); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.gallery__item:hover .gallery__cap, .gallery__item:focus-visible .gallery__cap { opacity: 1; transform: none; }
@media (hover: none) { .gallery__cap { opacity: 1; transform: none; } }
@media (max-width: 560px) { .gallery { grid-auto-rows: 180px; grid-template-columns: 1fr 1fr; } .gallery__item:nth-child(6n + 1) { grid-row: span 1; grid-column: span 2; } }

/* Lightbox arrows (photo gallery only) */
.lightbox__nav { display: none; position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35); background: rgba(18,10,28,.6); color: #fff; cursor: pointer; place-items: center; }
.lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__nav:hover { background: var(--flame); border-color: var(--flame); }
.lightbox__nav--prev { left: 18px; } .lightbox__nav--next { right: 18px; }
.lightbox.is-gallery .lightbox__nav { display: grid; }
.lightbox.is-gallery .lightbox__frame { background: transparent; aspect-ratio: auto; height: min(78vh, 760px); }
.lightbox__empty svg { width: 52px; height: 52px; margin: 0 auto 12px; color: var(--gold); }
@media (max-width: 600px) { .lightbox__nav { top: auto; bottom: 18px; transform: none; } }

/* Home: four gateways + split gateway buttons */
.gateway--split .btn-row { position: relative; z-index: 2; }
/* Leave room for an overlapping countdown card under an inner-page banner */
.page-hero:has(+ .countdown-band) { padding-bottom: calc(clamp(60px, 8vw, 100px) + 60px); }

/* ---------- Home: one card per wing / team ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 20px; }
.quick-card {
  background: var(--ink-2); border: 1px solid rgba(217,164,65,.2); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.quick-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.quick-card__media { position: relative; display: block; aspect-ratio: 16/10; }
.quick-card__media .ph { position: absolute; inset: 0; transition: transform .7s var(--ease); }
.quick-card:hover .quick-card__media .ph { transform: scale(1.06); }
.quick-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(29,18,48,.95)); }
.quick-card__icon {
  position: absolute; left: 16px; bottom: -20px; z-index: 2; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--flame), var(--flame-2)); color: #fff; box-shadow: 0 8px 18px -8px rgba(210,58,30,.8);
}
.quick-card__icon svg { width: 24px; height: 24px; }
.quick-card__body { padding: 30px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.quick-card__body .badge { align-self: flex-start; }
.quick-card__body h3 { color: #fff; font-size: 1.12rem; margin: 2px 0 0; }
.quick-card__body > p { color: #b9aecb; font-size: .9rem; margin: 0; }
.quick-card__next { margin-top: 6px; padding-top: 12px; border-top: 1px dashed rgba(217,164,65,.3); }
.quick-card__next small { display: block; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.quick-card__next strong { display: block; color: #fff; font-size: .9rem; line-height: 1.3; margin-top: 2px; }
.quick-card__next > span { display: block; color: #b9aecb; font-size: .8rem; margin-bottom: 8px; }
.quick-card__next .timer { gap: 5px; }
.quick-card__next .timer__unit { padding: 7px 2px; border-radius: 7px; }
.quick-card__next .timer__num { font-size: 1.05rem; }
.quick-card__next .timer__lbl { font-size: .52rem; letter-spacing: .08em; margin-top: 3px; }
.quick-card__body .btn { margin-top: auto; align-self: flex-start; }
.quick-card__next + .btn { margin-top: 14px; }

/* ---------- Sisters' Wing page: the two arms ---------- */
.arm-card { display: grid; grid-template-columns: 170px 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.arm-card__media { min-height: 100%; }
.arm-card__body { padding: 22px 24px; }
.arm-card__body h3 { margin-bottom: 6px; }
.arm-card__body > p { color: var(--muted); font-size: .95rem; }
.arm-card__next { background: var(--linen); border-radius: 10px; padding: 12px 14px; margin: 4px 0 14px; }
.arm-card__next small { display: block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--flame); font-weight: 700; }
.arm-card__next strong { display: block; color: var(--ink); }
.arm-card__next > span { display: block; color: var(--muted); font-size: .85rem; margin-bottom: 8px; }
.arm-card__next .timer { gap: 6px; }
.arm-card__next .timer__unit { padding: 8px 2px; }
.arm-card__next .timer__num { font-size: 1.2rem; }
.arm-card__next .timer__lbl { font-size: .55rem; }
@media (max-width: 560px) { .arm-card { grid-template-columns: 1fr; } .arm-card__media { aspect-ratio: 16/8; } }
.arm-panel[hidden] { display: none; }

/* Statutory bodies hub: featured link to the combined Sisters' Wing page */
.sisters-banner {
  position: relative; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; min-height: 150px;
  border-radius: var(--radius); overflow: hidden; padding: 28px 30px; margin-bottom: 28px; color: #fff; box-shadow: var(--shadow-sm);
}
.sisters-banner > .ph { position: absolute; inset: 0; }
.sisters-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,10,28,.95), rgba(18,10,28,.55)); }
.sisters-banner__body, .sisters-banner .btn { position: relative; z-index: 2; }
.sisters-banner__body { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 4px; }
.sisters-banner__body strong { font-family: var(--f-display); font-size: 1.6rem; }
.sisters-banner__body > span:last-child { color: #ddd3ea; }
.sisters-banner:hover { color: #fff; }

/* ---------- Real <img> tags inside image frames ---------- */
.ph > img {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: center; border: 0;
  opacity: 0; transition: opacity .5s ease;
}
.ph.has-img > img { opacity: 1; }
.person__photo > img { border-radius: 50%; }
@media print { .ph > img { opacity: 1; } }

/* ---------- Video players written in the HTML ---------- */
.video-frame { position: relative; aspect-ratio: 16/9; max-width: 980px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video-frame > iframe, .video-frame > video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.video-frame.is-empty > iframe { display: none; }
.video-frame__soon {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px;
  color: #cfc4de; background: radial-gradient(circle at 30% 20%, rgba(240,112,42,.3), transparent 55%), linear-gradient(135deg, var(--ink-2), var(--ink-3));
}
.video-frame__soon svg { width: 52px; height: 52px; color: var(--gold); }
.video-frame__soon strong { color: #fff; font-size: 1.15rem; }
.video-frame__soon span { font-size: .9rem; max-width: 420px; }
.stream__player > iframe:not([src]), .stream__player > iframe[src=""] { display: none; }
.theatre__screen > iframe, .theatre__screen > video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.theatre__screen:has(> iframe)::after, .theatre__screen:has(> video)::after { display: none; }

/* ---------- Contact cards (Media & Drama): every item visible and tappable ---------- */
.contact-board { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.contact-board h3 { font-size: 1.15rem; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.ccards { display: grid; gap: 12px; }
.ccard {
  display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); box-shadow: var(--shadow-sm); transition: border-color .25s, transform .25s, box-shadow .25s;
}
.ccard:hover, .ccard:focus-visible { border-color: var(--flame); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--text); }
.ccard__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.ccard__icon svg { width: 22px; height: 22px; }
.ccard__icon svg:not([fill]), .cstrip__icon svg:not([fill]) { fill: currentColor; }
.ccard__text { min-width: 0; }
.ccard__text small { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.ccard__text strong { display: block; color: var(--ink); font-size: 1rem; line-height: 1.35; overflow-wrap: anywhere; }
.ccard__text em { display: block; font-style: normal; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.ccard__go { font-size: .8rem; font-weight: 700; color: var(--flame); white-space: nowrap; }
.ccard__go b { display: inline-block; transition: transform .25s; }
.ccard:hover .ccard__go b { transform: translateX(4px); }
@media (max-width: 860px) { .contact-board { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .ccard { grid-template-columns: 42px 1fr; } .ccard__go { grid-column: 2; } .ccard__icon { width: 42px; height: 42px; } }

/* Quick contact strip */
.cstrip-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.cstrip-wrap__label { display: block; font-family: var(--f-display); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--flame); font-weight: 700; margin-bottom: 12px; }
.cstrip { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.cstrip__item {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; border-radius: 999px;
  background: var(--linen); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .9rem; transition: border-color .2s, background .2s;
}
.cstrip__item:hover { border-color: var(--flame); background: #fff; color: var(--ink); }
.cstrip__icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.cstrip__icon svg { width: 16px; height: 16px; }

/* Section menu (sticky under the header) */
.subnav { position: sticky; top: var(--header-h); z-index: 30; background: rgba(250,245,236,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); margin-top: 36px; }
.subnav .container { display: flex; gap: 10px; overflow-x: auto; padding: 12px 0; scrollbar-width: thin; }
.subnav a {
  flex: none; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
  color: var(--ink); font-weight: 700; font-size: .85rem; letter-spacing: .03em; white-space: nowrap; transition: all .2s;
}
.subnav a:hover, .subnav a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
html:has(.subnav) { scroll-padding-top: calc(var(--header-h) + 80px); }

/* ---------- Statutory bodies page: grouped layout & evenly spaced buttons ---------- */
.jump-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; margin: 0 auto 56px; }
.body-group { margin-bottom: 72px; scroll-margin-top: calc(var(--header-h) + 20px); }
.body-group:last-child { margin-bottom: 0; }
.body-anchor { scroll-margin-top: calc(var(--header-h) + 20px); display: flex; }
.body-anchor > .body-card { flex: 1; }
.body-group__title { text-align: center; margin-bottom: 28px; }
.body-group__title .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; }
.body-group__title h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.body-group__head {
  display: grid; grid-template-columns: 300px 1fr; background: var(--ink); color: #ddd3ea; border-radius: var(--radius);
  overflow: hidden; margin-bottom: 24px; box-shadow: var(--shadow);
}
.body-group__img { min-height: 220px; }
.body-group__intro { padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.body-group__intro h2 { color: #fff; margin: 4px 0 0; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.body-group__intro p { margin: 0; color: #cfc4de; max-width: 620px; }
@media (max-width: 760px) { .body-group__head { grid-template-columns: 1fr; } .body-group__img { aspect-ratio: 16/8; min-height: 0; } }

.body-cards--pair { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 24px; align-items: stretch; }
.body-card__body { gap: 10px; }
.body-card__body .badge { margin-bottom: 2px; }
.body-card__next { margin: 6px 0 4px; }
.body-card__actions { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: auto; padding-top: 14px; width: 100%; }
.body-card__actions .btn { min-width: 132px; }
.body-group__intro .body-card__actions { margin-top: 6px; padding-top: 6px; }

.team-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.team-link { position: relative; display: flex; align-items: flex-end; min-height: 240px; border-radius: var(--radius); overflow: hidden; color: #fff; box-shadow: var(--shadow-sm); }
.team-link > .ph { position: absolute; inset: 0; transition: transform .7s var(--ease); }
.team-link:hover > .ph { transform: scale(1.05); }
.team-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,10,28,.15), rgba(18,10,28,.92)); }
.team-link__body { position: relative; z-index: 2; padding: 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.team-link__body strong { font-family: var(--f-display); font-size: 1.5rem; }
.team-link__body > span:not(.btn) { color: #ddd3ea; }
.team-link__body .btn { margin-top: 8px; }
.team-link:hover { color: #fff; }

/* Wing pages: spacing for buttons in banners, community board and "other wings" cards */
.page-hero .btn-row { gap: 12px 14px; }
.cboard__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.tabs { gap: 10px 12px; }
.arm-card__body .btn { margin-top: 4px; }
.ph > img.is-missing { display: none; }

/* =====================================================================
   LIFE IN THE SPIRIT SEMINAR
   ===================================================================== */
/* Home card */
.sem-home { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--paper); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.3); overflow: hidden; box-shadow: var(--shadow); }
.sem-home__img { min-height: 340px; }
.sem-home__body { padding: clamp(26px, 4vw, 48px); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.sem-home__body h2 { margin: 0; }
.sem-home__body > p { color: var(--muted); margin: 0; }
.sem-home__status { width: 100%; background: var(--ink); color: #ddd3ea; border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.sem-home__status:empty { display: none; }
.sem-home__status strong { color: #fff; font-family: var(--f-display); font-size: 1.05rem; }
.sem-home__status > span:not(.badge) { color: #b9aecb; font-size: .9rem; }
.sem-home__status .timer { width: 100%; margin-top: 10px; gap: 8px; }
.sem-home__status .timer__unit { background: rgba(255,255,255,.07); padding: 9px 2px; }
.sem-home__status .timer__num { font-size: 1.35rem; }
.sem-home__status .timer__lbl { font-size: .58rem; }
.sem-home .btn-row { gap: 12px 14px; margin-top: 4px; }
@media (max-width: 860px) { .sem-home { grid-template-columns: 1fr; } .sem-home__img { min-height: 0; aspect-ratio: 16/9; } }

/* "This week" notice bar */
.sem-notice { margin-top: 22px; position: relative; z-index: 5; }
.sem-notice__inner {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 20px; border-radius: 12px;
  background: linear-gradient(90deg, var(--ink), var(--ink-3)); color: #e6def0; border: 1px solid rgba(217,164,65,.35); box-shadow: var(--shadow-sm);
}
.sem-notice__inner:hover { color: #fff; border-color: var(--gold); }
.sem-notice__text { flex: 1; min-width: 220px; }
.sem-notice__text strong { color: #fff; }
.sem-notice__go { color: var(--gold-2); font-weight: 700; font-size: .9rem; white-space: nowrap; }

/* Pop-up */
.sem-pop { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(10,5,16,0); transition: background .3s; }
.sem-pop.is-open { background: rgba(10,5,16,.72); }
.sem-pop__card {
  position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--paper); border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); transform: translateY(24px) scale(.97); opacity: 0; transition: transform .35s var(--ease), opacity .35s;
}
.sem-pop.is-open .sem-pop__card { transform: none; opacity: 1; }
.sem-pop__x { position: absolute; top: 10px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.sem-pop__x:hover { background: var(--flame); }
.sem-pop__head { display: flex; gap: 14px; align-items: center; padding: 24px 56px 22px 24px; background: linear-gradient(120deg, var(--flame), #a3240f 55%, var(--ink)); color: #fff; }
.sem-pop__dove { width: 50px; height: 50px; flex: none; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.15); }
.sem-pop__dove svg { width: 28px; height: 28px; }
.sem-pop__kicker { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #ffe3d6; font-weight: 700; }
.sem-pop__head h2 { color: #fff; font-size: clamp(1.25rem, 3.6vw, 1.6rem); margin: 4px 0 0; }
.sem-pop__body { padding: 20px 24px 6px; }
.sem-pop__topic { font-family: var(--f-display); font-size: 1.2rem; color: var(--ink); margin: 0 0 8px; }
.sem-pop__body blockquote { margin: 0 0 16px; font-family: var(--f-script); font-style: italic; font-size: 1.12rem; color: var(--ink-3); border-left: 3px solid var(--flame); padding-left: 14px; }
.sem-pop__body blockquote small { font-style: normal; font-family: var(--f-body); font-size: .8rem; color: var(--flame); font-weight: 700; }
.sem-pop__next { background: var(--ink); color: #ddd3ea; border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; }
.sem-pop__next small { display: block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.sem-pop__next strong { display: block; color: #fff; }
.sem-pop__next > span { display: block; font-size: .86rem; color: #b9aecb; }
.sem-pop__next .timer { margin-top: 10px; gap: 6px; }
.sem-pop__next .timer__unit { background: rgba(255,255,255,.08); padding: 8px 2px; }
.sem-pop__next .timer__num { font-size: 1.25rem; }
.sem-pop__next .timer__lbl { font-size: .56rem; }
.sem-pop__label { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0 0 8px; }
.sem-pop__list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sem-pop__row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 9px 14px; font-size: .9rem; border-top: 1px solid var(--line); }
.sem-pop__row:first-child { border-top: 0; }
.sem-pop__c { font-weight: 700; color: var(--ink); }
.sem-pop__d { color: var(--muted); white-space: nowrap; }
.sem-pop__t { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: #f1edf6; color: var(--muted); }
.sem-pop__row.is-live .sem-pop__t { background: var(--flame); color: #fff; }
.sem-pop__row.is-upcoming .sem-pop__t { background: #fff3dc; color: #9a6a12; }
.sem-pop__row.is-done { opacity: .6; }
.sem-pop__foot { display: flex; gap: 12px; flex-wrap: wrap; padding: 18px 24px 24px; }
@media (max-width: 480px) { .sem-pop__row { grid-template-columns: 1fr auto; } .sem-pop__d { grid-column: 1; grid-row: 2; font-size: .82rem; } .sem-pop__t { grid-row: 1 / span 2; grid-column: 2; } }

/* Seminar page: feature picture */
.sem-figure { margin: 0; }
.sem-figure__img { aspect-ratio: 4/5; border-radius: var(--radius); box-shadow: var(--shadow); }
.sem-figure figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; font-style: italic; }
#seminar-page ~ .sem-figure { display: none; } /* until it is moved into the page */

/* Seminar page: 8 weeks */
.sem-weeks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr)); gap: 18px; }
.sem-week { display: grid; grid-template-columns: 76px 1fr; gap: 0; background: var(--ink-2); border: 1px solid rgba(217,164,65,.18); border-radius: var(--radius); overflow: hidden; }
.sem-week__num { display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(217,164,65,.1); color: var(--gold); font-family: var(--f-display); font-size: 2rem; font-weight: 700; line-height: 1; }
.sem-week__num small { font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; font-family: var(--f-body); margin-bottom: 6px; color: #b9aecb; }
.sem-week__body { padding: 18px 20px; }
.sem-week__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .8rem; color: #b9aecb; margin-bottom: 6px; }
.sem-week h3 { color: #fff; font-size: 1.12rem; margin-bottom: 6px; }
.sem-week p { color: #cfc4de; font-size: .93rem; margin: 0 0 10px; }
.sem-week blockquote { margin: 0; font-family: var(--f-script); font-style: italic; font-size: 1.02rem; color: #e6def0; border-left: 3px solid var(--flame); padding-left: 12px; }
.sem-week blockquote small { font-style: normal; font-family: var(--f-body); font-size: .76rem; color: var(--gold); font-weight: 700; }
.sem-week.is-current { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(217,164,65,.35); }
.sem-week.is-current .sem-week__num { background: var(--flame); color: #fff; }
.sem-week.is-current .sem-week__num small { color: #ffe3d6; }
.sem-week.is-done { opacity: .62; }

/* Seminar page: community cards */
.sem-comms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 20px; }
.sem-comm { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-sm); }
.sem-comm header h3 { font-size: 1.05rem; margin: 0 0 4px; }
.sem-comm__day { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--flame); }
.sem-comm__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; }
.sem-comm__facts span { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.sem-comm__next { background: var(--ink); color: #ddd3ea; border-radius: 12px; padding: 12px 14px; }
.sem-comm__next small { display: block; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.sem-comm__next strong { display: block; color: #fff; font-size: .95rem; line-height: 1.3; margin: 2px 0; }
.sem-comm__next > span { display: block; font-size: .82rem; color: #b9aecb; }
.sem-comm__next .timer { margin-top: 10px; gap: 5px; }
.sem-comm__next .timer__unit { background: rgba(255,255,255,.08); padding: 7px 2px; border-radius: 7px; }
.sem-comm__next .timer__num { font-size: 1.1rem; }
.sem-comm__next .timer__lbl { font-size: .52rem; letter-spacing: .08em; }
.sem-comm__next.is-live { background: var(--flame); }
.sem-comm__next.is-live small { color: #fff; }
.sem-comm .btn { align-self: flex-start; margin-top: auto; }

/* Community page strip */
.sem-strip { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 22px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.sem-strip h3 { margin: 4px 0 6px; }
.sem-strip p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .sem-strip { grid-template-columns: 1fr; } .sem-strip .btn { justify-self: start; } }
/* Pop-up: keep the buttons visible at the bottom while the list scrolls */
.sem-pop__card { display: flex; flex-direction: column; overflow: hidden; }
.sem-pop__body { overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.sem-pop__head, .sem-pop__foot { flex: none; }
.sem-pop__foot { background: var(--paper); border-top: 1px solid var(--line); padding: 14px 24px 18px; }
.sem-pop__row { padding: 8px 14px; }

/* =====================================================================
   DAILY CATHOLIC — pop-up slider, "Today" button, page, marquee
   ===================================================================== */
.lit-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); vertical-align: middle; }
.chasuble { display: block; filter: drop-shadow(0 10px 18px rgba(18,10,28,.25)); }

/* Pop-up */
.dp { position: fixed; inset: 0; z-index: 320; display: grid; place-items: center; padding: 14px; background: rgba(10,5,16,0); transition: background .3s; }
.dp.is-open { background: rgba(10,5,16,.74); }
.dp__card {
  width: min(640px, 100%); max-height: calc(100vh - 28px); display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .35s, transform .35s var(--ease);
}
.dp.is-open .dp__card { opacity: 1; transform: none; }
.dp__head { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 16px; background: linear-gradient(135deg, var(--ink), var(--ink-3)); color: #e6def0; }
.dp__date { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.dp__head h2 { color: #fff; font-size: clamp(1.25rem, 3.4vw, 1.55rem); margin: 4px 0 6px; }
.dp__lit { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: #ddd3ea; }
.dp__x { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.dp__x:hover { background: var(--flame); }
.dp__tabs { flex: none; display: flex; gap: 6px; overflow-x: auto; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--linen); scrollbar-width: none; }
.dp__tabs::-webkit-scrollbar { display: none; }
.dp__tab { flex: none; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 7px 14px; font: 700 .78rem var(--f-body); letter-spacing: .03em; cursor: pointer; white-space: nowrap; }
.dp__tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.dp__viewport { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.dp__track { display: flex; height: 100%; transition: transform .55s var(--ease); }
.dp__slide { flex: 0 0 100%; min-width: 0; overflow-y: auto; padding: 18px 22px 20px; max-height: min(56vh, 460px); }
.dp__eyebrow { display: block; font-family: var(--f-display); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--flame); font-weight: 700; margin-bottom: 8px; }
.dp__slide h4 { font-family: var(--f-display); font-size: 1.12rem; color: var(--ink); margin: 0 0 6px; }
.dp__slide p { font-size: .96rem; margin: 0 0 10px; }
.dp-verse { margin: 0 0 14px; font-family: var(--f-script); font-style: italic; font-size: 1.22rem; line-height: 1.45; color: var(--ink); border-left: 4px solid var(--flame); padding-left: 14px; }
.dp-verse small { display: block; font-style: normal; font-family: var(--f-body); font-size: .8rem; font-weight: 700; color: var(--flame); margin-top: 4px; }
.dp-prayer { background: var(--linen); border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0; padding: 12px 14px; font-style: italic; color: var(--ink-3); }
.dp-meta { color: var(--muted); font-size: .88rem !important; }
.dp-days, .dp-saints { list-style: none; margin: 8px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.dp-days li { display: grid; grid-template-columns: 14px 86px 1fr; gap: 10px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--line); font-size: .88rem; }
.dp-days li:first-child { border-top: 0; }
.dp-days li.is-today { background: #fff6e6; font-weight: 700; }
.dp-days__d { color: var(--muted); font-weight: 700; white-space: nowrap; }
.dp-days__t { color: var(--ink); }
.dp-saints li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-top: 1px solid var(--line); }
.dp-saints li:first-child { border-top: 0; }
.dp-saints .lit-dot { margin-top: 5px; }
.dp-saints strong { display: block; color: var(--ink); font-size: .95rem; }
.dp-saints span { font-size: .8rem; color: var(--muted); }
.dp-vest { display: flex; gap: 20px; align-items: center; }
@media (max-width: 480px) { .dp-vest { flex-direction: column; align-items: flex-start; } }
.dp__foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 18px 16px; border-top: 1px solid var(--line); background: var(--paper); }
.dp__nav { display: flex; align-items: center; gap: 8px; }
.dp__arrow { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.dp__arrow:hover { background: var(--ink); color: #fff; }
.dp__arrow svg { width: 16px; height: 16px; }
.dp__dots { display: flex; gap: 6px; }
.dp__dot { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: width .3s, background .3s; }
.dp__dot.is-active { width: 22px; border-radius: 6px; background: var(--flame); }
.dp__actions { display: flex; gap: 10px; }

/* Floating "Today" button on the home page */
.dp-fab {
  position: fixed; left: 18px; bottom: 18px; z-index: 45; display: flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 12px; border-radius: 999px; border: 1px solid rgba(217,164,65,.5); cursor: pointer;
  background: var(--ink); color: #fff; box-shadow: var(--shadow); font: 600 .86rem var(--f-body); text-align: left;
}
.dp-fab:hover { background: var(--ink-3); }
.dp-fab small { display: block; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.dp-fab .lit-dot { width: 16px; height: 16px; box-shadow: 0 0 0 2px var(--gold); }
@media print { .dp-fab, .dp { display: none !important; } }

/* Marquee */
.mq { position: relative; display: flex; align-items: stretch; margin: 26px auto 0; width: min(var(--max), 100% - 32px); background: var(--ink); border-radius: 999px; overflow: hidden; border: 1px solid rgba(217,164,65,.3); box-shadow: var(--shadow-sm); }
.mq:empty { display: none; }
.mq__label { flex: none; display: flex; align-items: center; padding: 0 18px; background: linear-gradient(135deg, var(--flame), var(--flame-2)); color: #fff; font-family: var(--f-display); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; position: relative; z-index: 2; }
.mq__viewport { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.mq__track { display: flex; width: max-content; animation: mq-scroll 90s linear infinite; }
.mq:hover .mq__track, .mq:focus-within .mq__track { animation-play-state: paused; }
.mq__group { display: flex; align-items: center; flex: none; }
.mq__item { display: inline-flex; align-items: center; gap: 8px; padding: 12px 6px; color: #e6def0; white-space: nowrap; font-size: .92rem; }
a.mq__item:hover { color: #fff; }
a.mq__item:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.mq__icon { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(217,164,65,.16); color: var(--gold); flex: none; }
.mq__icon svg { width: 15px; height: 15px; }
.mq__kind { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.mq__item strong { color: #fff; font-weight: 700; }
.mq__text { color: #b9aecb; }
.mq__sep { color: var(--flame-2); padding: 0 18px; font-size: .8rem; }
@keyframes mq-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mq__track { animation: none; } .mq__viewport { overflow-x: auto; } }
@media (max-width: 600px) { .mq { border-radius: 14px; } .mq__label { padding: 0 12px; font-size: .68rem; } }

/* Daily Catholic page */
.narrow-wide { width: min(980px, 100% - 32px); margin-inline: auto; }
.daily-nav { align-items: center; }
.daily-pick input { height: 38px; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); background: rgba(18,10,28,.4); color: #fff; padding: 0 14px; font: 600 .85rem var(--f-body); color-scheme: dark; }
.lit-summary { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--gold); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow-sm); }
.lit-summary h2 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); margin: 4px 0 6px; }
.lit-summary p { margin: 0; color: var(--muted); }
.lit-summary__colour { text-align: right; }
.lit-summary__colour small { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.lit-summary__colour strong { font-family: var(--f-display); font-size: 1.3rem; color: var(--ink); }
.lit-summary__colour span { display: block; font-size: .82rem; color: var(--muted); }
@media (max-width: 760px) { .lit-summary { grid-template-columns: auto 1fr; } .lit-summary__colour { grid-column: 1 / -1; text-align: left; } }
.lit-readings { display: grid; gap: 18px; }
.lit-reading { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.lit-reading__label { display: block; font-family: var(--f-display); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--flame); font-weight: 700; }
.lit-reading h4 { font-family: var(--f-display); font-size: 1.1rem; color: var(--ink); margin: 6px 0 4px; }
.lit-reading__head { font-style: italic; color: var(--muted); margin: 0 0 10px; }
.lit-reading__text { font-size: 1.04rem; line-height: 1.75; }
.lit-reading__text p { margin: 0 0 .7em; }
.lit-refs { list-style: none; margin: 0 0 12px; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper); }
.lit-refs li { display: grid; grid-template-columns: 150px 1fr; gap: 4px 12px; padding: 9px 14px; border-top: 1px solid var(--line); font-size: .92rem; }
.lit-refs li:first-child { border-top: 0; }
.lit-refs span { color: var(--muted); font-weight: 700; font-size: .8rem; letter-spacing: .04em; }
.lit-refs strong { color: var(--ink); }
.lit-refs em { grid-column: 2; color: var(--muted); font-size: .85rem; }
@media (max-width: 480px) { .lit-refs li { grid-template-columns: 1fr; } .lit-refs em { grid-column: 1; } }
.lit-loading { color: var(--muted); font-style: italic; }
.lit-note { color: var(--muted); font-size: .92rem; }
.lit-copy { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.lit-rosary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow-sm); }
.lit-rosary ol { margin: 10px 0 14px; padding-left: 22px; display: grid; gap: 6px; font-weight: 600; color: var(--ink); }
.lit-vest { display: grid; place-items: center; }
.lit-legend { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; font-size: .93rem; }
.lit-legend li { display: flex; gap: 10px; align-items: flex-start; }
.lit-legend .lit-dot { margin-top: 5px; width: 14px; height: 14px; }
.lit-saints { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.lit-saint { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.lit-saint .lit-dot { width: 16px; height: 16px; margin-top: 4px; }
.lit-saint h3 { font-size: 1.02rem; margin: 0 0 4px; }
.lit-saint p { margin: 0; color: var(--muted); font-size: .88rem; }
.lit-status { display: inline-block; font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: #f1edf6; color: var(--muted); padding: 2px 8px; border-radius: 999px; margin-left: 6px; }

/* Church calendar month grid */
.cal { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.cal__head strong { font-family: var(--f-display); font-size: 1.15rem; color: var(--ink); }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal__wd { text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 4px 0; }
.cal__cell { min-height: 92px; display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: #fdfbf7; color: var(--text); overflow: hidden; transition: border-color .2s, transform .2s; }
a.cal__cell:hover { border-color: var(--flame); transform: translateY(-2px); color: var(--text); }
.cal__cell.is-blank { border: 0; background: transparent; }
.cal__n { font-family: var(--f-display); font-weight: 700; color: var(--ink); }
.cal__bar { height: 5px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.cal__t { font-size: .72rem; line-height: 1.3; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cal__cell.is-sunday .cal__n { color: var(--flame); }
.cal__cell.is-solemnity .cal__t, .cal__cell.is-feast .cal__t { color: var(--ink); font-weight: 700; }
.cal__cell.is-today { border: 2px solid var(--gold); }
.cal__cell.is-selected { background: #fff3dc; }
@media (max-width: 700px) { .cal { padding: 10px; } .cal__grid { gap: 3px; } .cal__cell { min-height: 54px; padding: 5px; } .cal__t { display: none; } .cal__wd { font-size: .6rem; letter-spacing: 0; } }
.dp-vest .chasuble, .lit-summary .chasuble, .lit-vest .chasuble { flex: none; max-width: none; }

/* Lives of the saints links & Nigerian-calendar note */
.dp-lives { margin: 12px 0 0; }
.dp-lives__link { font-weight: 700; color: var(--flame); font-size: .92rem; }
.dp-lives__link:hover { color: var(--ink); }
.lit-lives { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: 22px; padding: 18px 22px; border-radius: var(--radius); background: var(--ink); color: #ddd3ea; }
.lit-lives strong { display: block; color: #fff; font-family: var(--f-display); font-size: 1.05rem; }
.lit-lives span { font-size: .92rem; }
.lit-status--ng { background: #e5f4ec; color: var(--ok); }
.lit-natnote { background: #fff6e6; border: 1px solid #f0d49a; border-left: 4px solid var(--gold); border-radius: 10px; padding: 12px 14px; font-size: .92rem; margin: 0 0 14px; color: var(--ink); }
.brand__mark--img { border-radius: 0 !important; object-fit: contain; background: transparent; }

/* ===== Children Ministry upgrade: zonal + community ministry heads, history videos ===== */
.mh { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.mh__top { display: flex; align-items: center; gap: 14px; }
.mh__top .icon-card__icon { margin: 0; flex: none; }
.mh__top h3 { margin: 0; }
.mh .btn { align-self: flex-start; margin-top: auto; }
.mh__person { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.035); }
.mh__person + .mh__person { border-left: 3px solid var(--flame); }
.mh__photo { width: 58px; height: 58px; flex: none; border-radius: 50%; overflow: hidden; }
.mh__photo > img { width: 100%; height: 100%; object-fit: cover; }
.mh__person > div:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.mh__person strong { color: var(--ink); font-size: .98rem; }
.mh__person small { color: var(--muted, #6b6b6b); font-size: .8rem; }
.mh__tag { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--flame); }
.mh-zonal { max-width: 460px; margin: 0 0 22px; }
.mh-zonal .mh__person { background: var(--ink, #1b1b2f); padding: 16px 18px; }
.mh-zonal .mh__person strong { color: #fff; font-size: 1.08rem; }
.mh-zonal .mh__person small { color: rgba(255,255,255,.7); }
.mh-zonal .mh__tag { color: var(--gold); }
.mh-zonal .mh__photo { width: 76px; height: 76px; }
.mh-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.mh-comm { display: block; text-decoration: none; color: inherit; border-radius: 12px; transition: transform .2s, box-shadow .2s; }
.mh-comm .mh__person { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.06); border-left: 3px solid var(--flame); height: 100%; }
.mh-comm:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.1); }
.history-video { margin: 22px 0 6px; }
.history-video .video-frame { max-width: none; }
.history-video .video-frame__soon code { font-size: .78rem; color: var(--gold); word-break: break-word; }
.section--paper .split > .history-video { margin: 0; align-self: center; }
.history-video-block { margin-top: 48px; }
.history-video-block .head { margin-bottom: 20px; }

/* ===== Registration: passport upload + "Take a photo now" camera window ===== */
.passport__controls { flex: 1; min-width: 220px; position: relative; }
.passport__buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 8px; }
.passport__btn { cursor: pointer; }
.passport__btn[hidden] { display: none !important; }
.passport__file { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.passport__status { font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.passport__status.is-error { color: #b42318; }
body.cam-open { overflow: hidden; }
.cam-modal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(12, 6, 20, .82); }
.cam-modal.is-open { display: flex; }
.cam-modal__box { width: 100%; max-width: 440px; max-height: 100%; overflow: auto; background: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.cam-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cam-modal__head strong { font-family: var(--f-display); font-size: 1.05rem; color: var(--ink); }
.cam-modal__x { border: 0; background: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--ink); padding: 0 4px; }
.cam-modal__stage { position: relative; width: 100%; max-height: 62vh; aspect-ratio: 4/5; margin: 0 auto; border-radius: 12px; overflow: hidden; background: #1b1026; }
.cam-modal__stage video, .cam-modal__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-modal__stage [hidden] { display: none !important; }
.cam-modal__stage video.is-mirrored { transform: scaleX(-1); }
.cam-modal__guide { position: absolute; left: 50%; top: 46%; width: 58%; height: 66%; transform: translate(-50%, -50%); border: 3px dashed rgba(255,255,255,.85); border-radius: 50%; box-shadow: 0 0 0 999px rgba(0,0,0,.28); pointer-events: none; }
.cam-modal__msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: #fff; background: #1b1026; font-weight: 600; }
.cam-modal__tip { font-size: .85rem; color: var(--muted, #666); margin: 10px 0 12px; text-align: center; }
.cam-modal__bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.cam-modal__bar[hidden] { display: none; }

/* ===== Correcting registration details (member-update.php, admin/edit.php, admin/view.php) ===== */
.correct-box { margin-top: 22px; padding: 16px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); display: grid; gap: 6px; }
.correct-box strong { color: #fff; }
.correct-box span { font-size: .9rem; }
.correct-box .btn { justify-self: start; margin-top: 6px; color: #fff; border-color: rgba(255,255,255,.5); }
.edit-who { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 22px; border-radius: 12px; background: #f6f1e8; border: 1px solid var(--line); }
.edit-who > div { display: grid; line-height: 1.35; }
.edit-who small { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.edit-who strong { color: var(--ink); font-size: 1.05rem; }
.edit-who span { color: var(--muted); font-size: .88rem; }
.history-item { padding: 12px 0; border-top: 1px solid var(--line); }
.history-item:first-of-type { border-top: 0; }
.history-item__when { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.history-item__when span { color: var(--muted); font-size: .85rem; }
.history-item ul { margin: 6px 0 0; padding-left: 20px; font-size: .93rem; }
.recent-fixes { display: grid; gap: 6px; margin: 0 0 22px; padding: 14px 16px; border-radius: 12px; background: #fff8ec; border: 1px solid #f0d9a8; }
.recent-fixes a { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; color: var(--ink); text-decoration: none; }
.recent-fixes a:hover span { text-decoration: underline; }
.recent-fixes small { color: var(--muted); }
@media print { .history-card { break-inside: avoid; } }

/* Logo tag written in each page's HTML (replaced by the full header when the page loads) */
#site-header > img.site-logo { display: block; width: 46px; height: 46px; object-fit: contain; margin: 12px 16px; }

/* Prayer communities: parish under the name, and the mother community of the Divine Love communities */
.dir-card__parish { font-weight: 700; color: var(--flame); font-size: .92rem; margin: -2px 0 6px; }
.dir-card__mother { font-size: .82rem; color: var(--muted); font-style: italic; margin-bottom: 6px; }
.comm-family { background: #f6f1e8; border-left: 3px solid var(--gold); padding: 10px 14px; border-radius: 8px; }

/* ===== Safer "Correct my details": steps, and admin correction requests ===== */
.steps-bar { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 22px; flex-wrap: wrap; }
.steps-bar li { flex: 1; min-width: 110px; text-align: center; padding: 8px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; background: #f1ece4; color: var(--muted); }
.steps-bar li.is-on { background: var(--flame); color: #fff; }
.steps-bar li.is-done { background: #e6f2e9; color: #1f7a3a; }
.request-card { margin-bottom: 18px; }
.request-card__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.request-card__head > div { display: grid; }
.request-card__head span { color: var(--muted); font-size: .88rem; }
.request-card__changes { margin: 12px 0; padding-left: 20px; }
.request-card__photos { display: flex; gap: 14px; margin: 0 0 12px; }
.request-card__photos figure { margin: 0; text-align: center; font-size: .8rem; color: var(--muted); }
.request-card__photos img { width: 90px; height: 110px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.request-card__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.request-card__actions input { flex: 1; min-width: 220px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }

/* ===== General Zonal Programme (home countdown + zonal-programme.html) ===== */
.zp-section { background: linear-gradient(180deg, #fff8ec, var(--paper, #fbf7f0)); }
.zp-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; padding: clamp(22px, 4vw, 36px);
  border-radius: var(--radius, 16px); color: #fff; box-shadow: var(--shadow);
  background: radial-gradient(circle at 15% 15%, rgba(240,112,42,.35), transparent 55%), linear-gradient(135deg, var(--ink, #1b1026), var(--ink-2, #2b1840)); }
.zp-card h3 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 8px 0 6px; }
.zp-badge { font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold, #d9a441); font-weight: 700; }
.zp-theme { font-family: var(--f-serif, serif); font-style: italic; font-size: 1.15rem; color: #f3dfb7; margin: 0 0 12px; }
.zp-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.zp-facts li { color: #e6def0; }
.zp-facts strong { display: inline-block; min-width: 108px; color: var(--gold, #d9a441); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.zp-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; justify-content: center; }
.zp-card .btn--outline { color: #fff; border-color: rgba(255,255,255,.55); }
.zp-live { font-size: 1.15rem; font-weight: 700; text-align: center; }
.zp-card--tba { display: block; text-align: center; }
.zp-card--tba p { color: #e6def0; margin: 0; }
.zp-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.zp-chip { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.zp-chip small { font-weight: 600; color: var(--muted); margin-left: 4px; }
.zp-chip--past { opacity: .6; text-decoration: line-through; }
.zp-chip--upcoming small, .zp-chip--live small { color: var(--flame); }
.zp-item { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: start; padding: 18px; margin-bottom: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.zp-item--past { opacity: .75; }
.zp-item__date { width: 74px; text-align: center; border-radius: 12px; background: var(--ink, #1b1026); color: #fff; padding: 10px 6px; }
.zp-item__date span { display: block; font-family: var(--f-display); font-size: 1.8rem; font-weight: 700; line-height: 1; }
.zp-item__date small { color: var(--gold, #d9a441); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.zp-item h3 { margin: 0 0 4px; font-size: 1.1rem; }
.zp-item p { margin: 4px 0; }
.zp-item__when { color: var(--muted); font-size: .92rem; }
.zp-item .zp-theme { color: var(--flame); font-size: 1rem; }
.zp-item .timer { margin-top: 10px; gap: 6px; max-width: 360px; }
.zp-item .timer__unit { padding: 8px 2px; }
.zp-item .timer__num { font-size: 1.25rem; }
@media (max-width: 800px) {
  .zp-card { grid-template-columns: 1fr; text-align: center; }
  .zp-facts strong { display: block; min-width: 0; }
  .zp-item { grid-template-columns: auto 1fr; }
  .zp-item__tag { grid-column: 2; }
}
#zonal-programme-page .split > div, .zp-item__body { min-width: 0; }
.zp-card .timer, .zp-item .timer { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.zp-item .timer__lbl, .zp-card .timer__lbl { letter-spacing: .06em; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) { .zp-item { padding: 14px; gap: 12px; } .zp-item__date { width: 60px; } }

/* ===== Next programme alert: floating button + pop-up (assets/js/programme-alert.js) ===== */
.pa-fab { position: fixed; right: 18px; bottom: 80px; z-index: 46; display: flex; align-items: center; gap: 10px; max-width: min(340px, calc(100vw - 36px));
  padding: 10px 16px 10px 12px; border: 2px solid #fff; border-radius: 999px; cursor: pointer; text-align: left; color: #fff;
  background: linear-gradient(135deg, var(--flame, #e0531f), #f39a2b); box-shadow: 0 10px 28px rgba(224,83,31,.45), 0 2px 6px rgba(0,0,0,.2);
  font: 700 .86rem var(--f-body); transition: transform .2s; }
.pa-fab:hover, .pa-fab:focus-visible { transform: translateY(-3px); outline: 3px solid var(--gold, #d9a441); outline-offset: 2px; }
.pa-fab svg { width: 26px; height: 26px; flex: none; position: relative; z-index: 1; }
.pa-fab__text { display: block; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; z-index: 1; }
.pa-fab__text small { display: block; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; opacity: .9; }
.pa-fab__text em { font-style: normal; font-weight: 600; opacity: .95; }
.pa-fab__pulse { position: absolute; inset: -2px; border-radius: inherit; box-shadow: 0 0 0 0 rgba(243,154,43,.7); animation: pa-pulse 2.2s infinite; }
@keyframes pa-pulse { 0% { box-shadow: 0 0 0 0 rgba(243,154,43,.65); } 70% { box-shadow: 0 0 0 16px rgba(243,154,43,0); } 100% { box-shadow: 0 0 0 0 rgba(243,154,43,0); } }
@media (prefers-reduced-motion: reduce) { .pa-fab__pulse { animation: none; } }
@media (max-width: 560px) {
  .pa-fab { right: 12px; bottom: 76px; padding: 9px 14px 9px 10px; max-width: calc(100vw - 24px); font-size: .8rem; }
  .pa-fab__text { max-width: 170px; }
}
.pa-pop { position: fixed; inset: 0; z-index: 220; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(12,6,20,.72); }
.pa-pop.is-open { display: flex; animation: pa-fade .25s ease; }
@keyframes pa-fade { from { opacity: 0; } to { opacity: 1; } }
.pa-pop__card { position: relative; width: min(480px, 100%); max-height: 100%; overflow: auto; text-align: center; color: #fff;
  border-radius: 18px; padding: 30px 24px 24px; box-shadow: 0 24px 60px rgba(0,0,0,.45); border-top: 5px solid var(--gold, #d9a441);
  background: radial-gradient(circle at 20% 0%, rgba(240,112,42,.45), transparent 60%), linear-gradient(160deg, var(--ink-2, #2b1840), var(--ink, #1b1026)); }
.pa-pop__x { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.pa-pop__kicker { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold, #d9a441); font-weight: 700; }
.pa-pop h2 { color: #fff; margin: 10px 0 6px; font-size: clamp(1.4rem, 5vw, 1.9rem); }
.pa-pop__theme { font-style: italic; color: #f3dfb7; margin: 0 0 8px; font-size: 1.05rem; }
.pa-pop__when { color: #e6def0; margin: 0 0 16px; }
.pa-pop__timer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; }
.pa-pop__timer div { background: rgba(255,255,255,.08); border: 1px solid rgba(217,164,65,.35); border-radius: 10px; padding: 10px 2px; }
.pa-pop__timer span { display: block; font-family: var(--f-display); font-size: clamp(1.4rem, 6vw, 2rem); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.pa-pop__timer small { display: block; margin-top: 4px; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold, #d9a441); }
.pa-pop__live { font-weight: 700; margin: 0 0 16px; }
.pa-pop__blurb { color: #d6cbe5; font-size: .92rem; margin: 0 0 16px; }
.pa-pop__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pa-pop__actions .btn--outline, .pa-pop__actions .btn--outline:hover, .pa-pop__actions .btn--outline:focus { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
@media print { .pa-fab, .pa-pop { display: none !important; } }

/* ===== Photo gallery (gallery.html + home "Pictures from our family") — assets/js/gallery-view.js ===== */
.pg-intro { max-width: 720px; margin: 0 auto 22px; }
.pg-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 18px; }
.pg-tab { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 9px 16px; font: 700 .86rem var(--f-body); cursor: pointer; }
.pg-tab span { display: inline-block; min-width: 22px; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: #f1ece4; color: var(--muted); font-size: .75rem; }
.pg-tab.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pg-tab.is-active span { background: var(--flame); color: #fff; }
.pg-album-head { text-align: center; margin-bottom: 18px; }
.pg-album-head h2 { margin: 0 0 4px; font-size: 1.5rem; }
.pg-album-head p { margin: 0; color: var(--muted); }
.pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pg-grid--home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pg-tile { position: relative; display: block; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: #e9e2d6; aspect-ratio: 4 / 3; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.pg-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.pg-tile:hover img, .pg-tile:focus-visible img { transform: scale(1.06); }
.pg-tile:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.pg-tile__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; text-align: left; color: #fff; font: 600 .85rem/1.3 var(--f-body);
  background: linear-gradient(transparent, rgba(12,6,20,.85)); opacity: 0; transform: translateY(6px); transition: .25s; }
.pg-tile__cap small { color: var(--gold); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.pg-tile:hover .pg-tile__cap, .pg-tile:focus-visible .pg-tile__cap { opacity: 1; transform: none; }
@media (hover: none) { .pg-tile__cap { opacity: 1; transform: none; padding-top: 16px; } }
.pg-tile.is-missing::after { content: "Photo not found"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .85rem; }
@media (max-width: 900px) { .pg-grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .pg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .pg-tile__cap { font-size: .75rem; } }
body.pg-open { overflow: hidden; }
.pg-viewer { position: fixed; inset: 0; z-index: 230; display: none; align-items: center; justify-content: center; background: rgba(8,4,14,.94); padding: 56px 64px; }
.pg-viewer.is-open { display: flex; }
.pg-viewer__fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.pg-viewer__fig img { max-width: 100%; max-height: calc(100vh - 170px); object-fit: contain; border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.pg-viewer__fig figcaption { color: #e6def0; text-align: center; margin-top: 12px; font-size: .95rem; display: grid; gap: 2px; }
.pg-viewer__fig figcaption span { color: #b9aecb; font-size: .82rem; }
.pg-viewer__x { position: absolute; top: 12px; right: 18px; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; }
.pg-viewer__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.pg-viewer__nav:hover { background: var(--flame); }
.pg-viewer__nav--prev { left: 10px; } .pg-viewer__nav--next { right: 10px; }
.pg-viewer--single .pg-viewer__nav { display: none; }
@media (max-width: 600px) { .pg-viewer { padding: 54px 8px 20px; } .pg-viewer__nav { top: auto; bottom: 14px; transform: none; } }
@media print { .pg-viewer { display: none !important; } }

/* ===== Admin > Website (dates, pictures, videos) ===== */
.admin-bar nav { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: flex-end; }
.ws-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.ws-tabs a { padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; color: var(--ink); text-decoration: none; }
.ws-tabs a.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.ws-card { margin-bottom: 22px; }
.ws-card h2 { font-size: 1.3rem; margin-top: 0; }
.ws-help { color: var(--muted); max-width: 860px; }
.ws-table { min-width: 860px; }
.ws-table input, .ws-table select { width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.ws-check { display: flex; gap: 8px; align-items: center; font-weight: 700; margin: 6px 0 12px; }
.ws-zp { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; background: #fdfbf7; }
.ws-zp .fields { margin-bottom: 10px; }
.ws-folders { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.ws-folders a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-size: .86rem; font-weight: 600; }
.ws-folders a span { color: var(--muted); font-weight: 400; }
.ws-folders a b { color: var(--flame); font-size: .76rem; }
.ws-folders a.is-on { background: var(--ink); color: #fff; } .ws-folders a.is-on span { color: #ccc; }
.ws-search { width: 100%; max-width: 360px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 14px; font: inherit; }
.ws-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.ws-pic { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.ws-pic.is-changed { border-color: #1f8a3b; box-shadow: 0 0 0 2px rgba(31,138,59,.15); }
.ws-pic__img { display: block; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; background: #eee; }
.ws-pic__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ws-pic__name { font-weight: 700; font-size: .85rem; word-break: break-all; }
.ws-pic__path { color: var(--muted); font-size: .72rem; word-break: break-all; }
.ws-pic details summary { list-style: none; cursor: pointer; display: inline-flex; }
.ws-pic details summary::-webkit-details-marker { display: none; }
.ws-pic details form { display: grid; gap: 6px; margin-top: 8px; }
.ws-pic details input { font: inherit; font-size: .8rem; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; width: 100%; }
.ws-reset { background: #fdecea; color: var(--err, #b42318); }

/* ===== Church leadership (About) ===== */
.people--church { justify-content: center; }
.people--church .person { border-top: 4px solid var(--gold, #d9a441); }

/* ===== Prayers, Hymns & Scripture (prayers.html) ===== */
.pr-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin-bottom: 16px; }
.pr-langs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pr-langs button { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 9px 16px; font: 700 .9rem var(--f-body); cursor: pointer; }
.pr-langs button.is-on { background: var(--flame); border-color: var(--flame); color: #fff; }
.pr-second { font-weight: 600; font-size: .9rem; display: flex; gap: 8px; align-items: center; }
.pr-second select, .pr-search { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.pr-search { min-width: 240px; }
.pr-jump { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 26px; }
.pr-jump a { font-size: .85rem; font-weight: 700; color: var(--flame); text-decoration: none; padding: 4px 10px; border-bottom: 2px solid transparent; }
.pr-jump a:hover { border-color: var(--flame); }
.pr-cat { margin-bottom: 36px; scroll-margin-top: calc(var(--header-h, 76px) + 16px); }
.pr-cat > h2 { font-size: 1.5rem; border-bottom: 2px solid var(--gold, #d9a441); padding-bottom: 8px; }
.pr-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin-bottom: 16px; }
.pr-card header { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; }
.pr-card h3 { margin: 0; font-size: 1.2rem; }
.pr-sub { font-style: italic; color: var(--muted); }
.pr-cols--two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pr-text p { margin: 0 0 10px; line-height: 1.75; font-size: 1.04rem; }
.pr-text--second { border-left: 3px solid var(--gold, #d9a441); padding-left: 16px; color: #3d3350; }
.pr-lang { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--flame); font-weight: 700; margin-bottom: 6px; }
.pr-check { display: inline-block; margin-top: 2px; font-size: .78rem; color: #8a5a00; background: #fff4d6; border-radius: 6px; padding: 2px 8px; }
.pr-missing { font-size: .85rem; color: var(--muted); font-style: italic; margin: 0 0 8px; }
.pr-note { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.pr-avail { font-size: .75rem; color: var(--muted); margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 8px; }
.pr-scripture { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.pr-link { display: grid; gap: 4px; padding: 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .2s; }
.pr-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.pr-link__lang { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--flame); font-weight: 700; }
.pr-link small { color: var(--muted); }
@media (max-width: 760px) { .pr-cols--two { grid-template-columns: 1fr; } .pr-search { min-width: 0; width: 100%; } }

/* ===== Community page: next-programme pop-up + countdown card (community-programme.js) ===== */
.cp-card { display: grid; gap: 4px; padding: 16px 18px; margin: 0 0 16px; border-radius: 14px; color: #fff;
  background: linear-gradient(135deg, var(--ink, #1b1026), var(--ink-2, #2b1840)); border-left: 4px solid var(--flame); }
.cp-card strong { font-size: 1.1rem; }
.cp-card .cp-when { color: #e6def0; font-size: .9rem; }
.cp-card .btn--outline { justify-self: start; color: #fff; border-color: rgba(255,255,255,.5); background: transparent; margin-top: 6px; }
.cp-kicker { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold, #d9a441); font-weight: 700; }
.cp-timer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.cp-timer div { background: rgba(255,255,255,.08); border: 1px solid rgba(217,164,65,.35); border-radius: 10px; padding: 10px 2px; text-align: center; }
.cp-timer span { display: block; font-family: var(--f-display); font-size: clamp(1.3rem, 5vw, 1.9rem); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.cp-timer small { display: block; margin-top: 4px; font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold, #d9a441); }
.cp-timer--small span { font-size: 1.2rem; }
.cp-timer--small div { padding: 7px 2px; }
.cp-pop { position: fixed; inset: 0; z-index: 225; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(12,6,20,.72); }
.cp-pop.is-open { display: flex; }
.cp-pop__card { position: relative; width: min(470px, 100%); max-height: 100%; overflow: auto; text-align: center; color: #fff; border-radius: 18px; padding: 28px 22px 22px;
  border-top: 5px solid var(--flame); box-shadow: 0 24px 60px rgba(0,0,0,.45);
  background: radial-gradient(circle at 80% 0%, rgba(217,164,65,.35), transparent 60%), linear-gradient(160deg, var(--ink-2, #2b1840), var(--ink, #1b1026)); }
.cp-pop__x { position: absolute; top: 8px; right: 14px; background: none; border: 0; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.cp-pop h2 { color: #fff; margin: 8px 0 6px; font-size: clamp(1.35rem, 5vw, 1.8rem); }
.cp-detail { color: #f3dfb7; margin: 0 0 8px; }
.cp-pop .cp-when { color: #e6def0; margin: 0 0 8px; }
.cp-pop .cp-when small { color: var(--gold, #d9a441); }
.cp-live { font-weight: 700; }
.cp-after { text-align: left; background: rgba(255,255,255,.06); border-radius: 12px; padding: 10px 14px; margin: 6px 0 14px; }
.cp-after > small { color: var(--gold, #d9a441); text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; font-weight: 700; }
.cp-next { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.cp-next li { display: grid; font-size: .88rem; }
.cp-next span { color: #cfc4de; font-size: .8rem; }
.cp-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cp-actions .btn--outline { color: #fff; border-color: rgba(255,255,255,.6); background: transparent; }
@media print { .cp-pop { display: none !important; } }

/* ---------- admin > Website > Communities & wings ---------- */
.ws-sub { font-size: 1.15rem; margin: 22px 0 10px; }
.ws-group { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: #fff; }
.ws-group > summary { cursor: pointer; padding: 12px 16px; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.ws-group > summary::-webkit-details-marker { display: none; }
.ws-group > summary::before { content: "▸"; color: var(--muted); }
.ws-group[open] > summary::before { content: "▾"; }
.ws-group > summary span { color: var(--muted); font-size: .9rem; }
.ws-group > form, .ws-group > .ws-reset-form { padding: 0 16px 14px; }
.ws-group h4 { margin: 16px 0 6px; font-size: 1rem; }
.ws-rows:empty { display: none; }

/* ---------- Hymn book (prayers.html, assets/js/hymnbook-view.js) ---------- */
.hb-jump { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding-top: 22px; }
.hb-jump a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .9rem; color: inherit; background: #fff; }
.hb-plan { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: #fdfbf7; margin: 0 0 26px; }
.hb-plan__head h3 { margin: 0 0 4px; font-size: 1.15rem; }
.hb-plan__head p { margin: 0 0 12px; color: var(--muted); font-size: .92rem; }
.hb-plan__slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.hb-slot { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .85rem; min-width: 0; }
.hb-slot select { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-weight: 400; background: #fff; }
.hb-plan__actions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 12px; }
.hb-plan__msg { font-size: .88rem; color: var(--muted); }
.hb-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 8px; margin-bottom: 18px; }
.hb-cats button { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; text-align: left; min-width: 0; color: inherit; }
.hb-cats button strong { font-size: .9rem; overflow-wrap: anywhere; }
.hb-cats button span { flex: none; min-width: 26px; padding: 1px 7px; border-radius: 999px; background: var(--linen); font-size: .8rem; font-weight: 700; text-align: center; }
.hb-cats button.is-on { background: #120a1c; color: #fff; border-color: #120a1c; }
.hb-cats button.is-on span { background: rgba(255,255,255,.18); }
.hb-cats button.is-empty { opacity: .55; }
.hb-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.hb-search { flex: 1 1 240px; min-width: 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; }
.hb-langs { display: flex; flex-wrap: wrap; gap: 6px; }
.hb-langs button { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: inherit; font-size: .88rem; color: inherit; }
.hb-langs button.is-on { background: #120a1c; color: #fff; border-color: #120a1c; }
.hb-title { font-size: 1.1rem; margin: 18px 0 8px; scroll-margin-top: 90px; }
.hb-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hb-list li { border-bottom: 1px solid var(--line); }
.hb-item { display: flex; gap: 14px; align-items: baseline; width: 100%; padding: 12px 4px; background: none; border: 0; cursor: pointer; font: inherit; text-align: left; color: inherit; }
.hb-item:hover .hb-name, .hb-item:focus-visible .hb-name { text-decoration: underline; }
.hb-no { flex: none; min-width: 46px; font-weight: 700; color: var(--flame, #c2410c); }
.hb-name { display: flex; flex-direction: column; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.hb-name small { font-weight: 400; color: var(--muted); font-size: .8rem; }
.hb-none { padding: 16px 4px; color: var(--muted); }
.hb-reader { position: fixed; inset: 0; z-index: 1200; background: rgba(18,10,28,.7); display: none; align-items: center; justify-content: center; padding: 16px; }
.hb-reader.is-open { display: flex; }
body.hb-open { overflow: hidden; }
.hb-reader__card { background: #fff; color: #1d1626; border-radius: 18px; width: min(680px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; overflow: hidden; }
.hb-reader__top { display: flex; gap: 6px; padding: 10px; border-bottom: 1px solid var(--line); background: #fdfbf7; }
.hb-r-btn { min-width: 42px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: inherit; font-weight: 700; color: inherit; }
.hb-r-x { margin-left: auto; font-size: 1.4rem; }
.hb-reader__body { padding: 18px 22px 26px; overflow-y: auto; line-height: 1.6; }
.hb-reader__body h2 { margin: 2px 0 4px; font-size: 1.5em; }
.hb-r-no { font-size: .75em; font-weight: 700; color: var(--flame, #c2410c); text-transform: uppercase; letter-spacing: .05em; }
.hb-r-author { margin: 0 0 14px; color: var(--muted); font-size: .8em; font-style: italic; }
.hb-part { display: grid; grid-template-columns: 2.2em 1fr; gap: 6px; margin: 0 0 14px; }
.hb-part p { margin: 0; }
.hb-part__label { font-weight: 700; color: var(--muted); font-size: .85em; padding-top: .1em; }
.hb-part--chorus { grid-template-columns: 1fr; padding: 10px 14px; border-left: 3px solid var(--flame, #c2410c); background: #fdfbf7; border-radius: 0 10px 10px 0; font-style: italic; }
.hb-part--chorus .hb-part__label { font-style: normal; text-transform: uppercase; font-size: .7em; letter-spacing: .06em; }
.hb-r-cats { margin-top: 18px; font-size: .78em; color: var(--muted); }
.hb-tag { font-style: normal; padding: 0 6px; border-radius: 6px; background: var(--linen); font-size: .75rem; }
.hb-find { margin: 6px 0 16px; padding: 14px 16px; border-radius: 12px; background: var(--linen); font-size: .9em; }
.hb-find p { margin: 0 0 10px; }
.hb-r-links { margin-top: 10px; }

/* ---------- admin: groups, batches, follow-up notes ---------- */
.batch-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.batch-bar p { margin: 0; color: var(--muted); }
.gtable td, .gtable th { text-align: center; white-space: nowrap; }
.gtable td.term, .gtable th:first-child { text-align: left; white-space: normal; min-width: 200px; }
.gtable th small { font-weight: 400; color: var(--muted); }
.gtable .gtotal td { background: var(--linen); font-weight: 700; }
.gempty { opacity: .55; }
.gnum { font-weight: 700; } .gnum--zero { color: var(--muted); font-weight: 400; }
.gtools { font-size: .82rem; white-space: nowrap; }
.gcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.gcard { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; background: #fff; }
.gcard small { color: var(--muted); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; }
.gcard strong { font-family: var(--f-display); font-size: 1.7rem; }
.gcard span { color: var(--muted); font-size: .88rem; }
.note-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.note-form textarea { flex: 1 1 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.note-form label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; }
.note-form input { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.note-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.note-meta form { margin: 0; }

/* ---------- admin > Hymns ---------- */
.hy-head { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.hy-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.hy-filters input, .hy-filters select { flex: 1 1 200px; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.hy-cats { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 14px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 6px 12px; }
.hy-cats legend { font-weight: 700; padding: 0 6px; }
.hy-cats label { font-size: .92rem; display: flex; gap: 6px; align-items: center; }
.hy-editor textarea { width: 100%; font: inherit; line-height: 1.5; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.hy-table td { vertical-align: top; }
.hy-flash { animation: hyflash 2.5s ease; }
@keyframes hyflash { from { background: #fff3c4; } to { background: transparent; } }

/* ---------- Media & Drama: one card, and the switch between the two unit pages ---------- */
.team-links--single { grid-template-columns: minmax(0, 1fr) !important; max-width: 760px; margin-left: auto; margin-right: auto; }
.unit-switch { padding-top: 18px; padding-bottom: 0; }
.unit-switch__box { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--linen); }
.unit-switch__now { display: flex; flex-direction: column; }
.unit-switch__now small { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.unit-switch__now strong { font-family: var(--f-display); font-size: 1.15rem; }
.unit-switch .btn { white-space: normal; text-align: center; }

/* ---------- header drop-down menu (Devotion → Daily Meditation, Daily Catholic, Hymns, Prayers) ---------- */
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop > a { padding-right: 4px; }
.nav-drop__btn { background: none; border: 0; color: #e6def0; padding: 8px 6px; cursor: pointer; display: inline-flex; border-radius: 6px; }
.nav-drop__btn:hover, .nav-drop.is-open .nav-drop__btn { color: var(--gold); }
.nav-drop.is-open .nav-drop__btn svg { transform: rotate(180deg); }
.nav-drop__menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px; background: var(--ink); border: 1px solid rgba(217,164,65,.3);
  border-radius: 12px; padding: 8px; box-shadow: var(--shadow); display: none; flex-direction: column; z-index: 60; }
.nav-drop__menu a { padding: 10px 12px; font-weight: 600; white-space: nowrap; }
.nav-drop__menu a::after { display: none; }
.nav-drop__menu a:hover { background: rgba(255,255,255,.06); }
.nav-drop.is-open .nav-drop__menu { display: flex; }
@media (hover: hover) and (min-width: 981px) { .nav-drop:hover .nav-drop__menu, .nav-drop:focus-within .nav-drop__menu { display: flex; } }
@media (max-width: 980px) {
  .nav-drop { flex-wrap: wrap; }
  .nav-drop > a { flex: 1; }
  .nav-drop__btn { padding: 12px 14px; }
  .nav-drop__btn { display: none; }
  .nav-drop__menu { display: flex; position: static; min-width: 0; width: 100%; box-shadow: none; border: 0; border-left: 2px solid rgba(217,164,65,.4); border-radius: 0; margin: 0 0 6px 14px; padding: 0 0 0 6px; background: transparent; }
  .nav-drop__menu a { white-space: normal; padding: 11px 12px; font-size: .9rem; }
}

/* ---------- "Hymn book" button (home, Devotion and Daily Catholic pages) ---------- */
.btn--hymns { gap: 8px; }

/* ---------- admin > Leaders ---------- */
.ld-body { padding: 0 16px 16px; }
.ld-person { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 10px 0; background: #fdfbf7; }
.ld-person__head { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ld-tools { display: flex; gap: 6px; }
.ld-wide { grid-column: 1 / -1; }
.ld-wide textarea { width: 100%; font: inherit; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.ld-pair { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; }
.ld-photo { grid-column: span 2; }
.ld-photo__row { display: flex; gap: 12px; align-items: flex-start; }
.ld-photo__row img { width: 64px; height: 76px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #eee; flex: none; }
.ld-photo__row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ld-photo__row small { color: var(--muted); }
@media (max-width: 700px) { .ld-photo { grid-column: auto; } .ld-pair { grid-template-columns: 1fr; } }

/* ---------- leader contact buttons (Call / WhatsApp) and the Media head's social handles ---------- */
.lcta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lcta { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: .82rem;
  letter-spacing: .03em; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); transition: transform .2s var(--ease), box-shadow .2s; }
.lcta:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.lcta svg { width: 16px; height: 16px; flex: none; }
.lcta--call { background: var(--flame); border-color: var(--flame); color: #fff; }
.lcta--call svg { stroke: #fff; }
.lcta--wa { background: #25d366; border-color: #25d366; color: #fff; }
.lcta--wa svg { fill: #fff; }
.lcta-row--small { margin-top: 6px; gap: 6px; }
.lcta-row--small .lcta { padding: 5px 10px; font-size: .75rem; }
.lcta-row--small .lcta svg { width: 13px; height: 13px; }
.person--lead .lcta-row { justify-content: inherit; }
.speech + .lcta-row { margin: 4px 0 18px; }
.lsocial { margin-top: 18px; }
.lsocial__label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.lsocial__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 10px; }
.lsocial__item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  text-decoration: none; color: var(--ink); min-width: 0; transition: transform .2s var(--ease), box-shadow .2s; }
.lsocial__item:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.lsocial__icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #fff; }
.lsocial__icon svg { width: 18px; height: 18px; fill: #fff; stroke: none; }
.lsocial__icon svg[stroke], .lsocial__icon svg[fill="none"] { fill: none; stroke: #fff; }
.lsocial__item strong { display: block; font-size: .9rem; }
.lsocial__item small { display: block; color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lsocial__item > span:last-child { min-width: 0; }

/* ---------- registration code box (register.php) ---------- */
.reg-gate { max-width: 560px; margin: 0 auto; text-align: center; }
.reg-gate .field { text-align: left; }
.reg-gate__icon { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 18px; display: grid; place-items: center; background: var(--linen); color: var(--flame); }
.reg-gate__icon svg { width: 32px; height: 32px; }
.reg-gate h2 { margin: 0 0 8px; }
.reg-gate p { color: var(--muted); }
.reg-gate input[name=reg_code_entry] { text-align: center; font-size: 1.25rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.reg-gate__more { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 18px; font-size: .9rem; color: var(--muted); }
.reg-code-ok { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: space-between; align-items: center; padding: 12px 16px; margin-bottom: 18px;
  border-radius: 12px; background: #eaf7ee; border: 1px solid #b7e1c3; color: #1d5c32; font-size: .92rem; }
.reg-code-ok small { color: #3d6e4c; }
.reg-code-ok a { font-weight: 700; color: #1d5c32; }

/* ---------- Prayer Hours (prayer-hours.html) ---------- */
.ph-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .ph-top { grid-template-columns: minmax(0, 1fr); } }
.ph-now { background: var(--ink); color: #f4eefa; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.ph-now h2 { color: #fff; margin: 6px 0 6px; }
.ph-now p { color: #d9cfe6; margin: 0 0 16px; }
.ph-now.is-now { background: linear-gradient(135deg, #3a1530, #120a1c); outline: 2px solid var(--gold); }
.ph-count { display: flex; gap: 10px; margin-bottom: 18px; }
.ph-count div { flex: 1; text-align: center; padding: 10px 6px; border: 1px solid rgba(217,164,65,.35); border-radius: 12px; }
.ph-count span { display: block; font-family: var(--f-display); font-size: 1.8rem; color: #fff; }
.ph-count small { color: var(--gold); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.ph-remind { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.ph-remind h3 { margin: 0 0 6px; }
.ph-remind p { color: var(--muted); }
.ph-choose { display: grid; gap: 6px; margin: 10px 0 14px; }
.ph-choose label { display: flex; gap: 8px; align-items: baseline; font-size: .95rem; }
.ph-choose b { min-width: 56px; }
.ph-status { margin: 10px 0 0; font-weight: 600; color: #1d5c32 !important; }
.ph-status.is-bad { color: var(--flame) !important; }
.ph-status:empty { display: none; }
.ph-hint { font-size: .9rem; border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 14px; }
.ph-list { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.ph-hour { background: #fff; border: 1px solid var(--line); border-radius: 14px; scroll-margin-top: 90px; }
.ph-hour.is-next { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(217,164,65,.25); }
.ph-hour > summary { list-style: none; cursor: pointer; display: flex; gap: 14px; align-items: center; padding: 14px 18px; }
.ph-hour > summary::-webkit-details-marker { display: none; }
.ph-time { flex: none; min-width: 72px; font-family: var(--f-display); font-size: 1.25rem; color: var(--flame); }
.ph-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ph-name small { color: var(--muted); }
.ph-open { flex: none; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--linen); }
.ph-hour[open] .ph-open { background: var(--ink); color: #fff; }
.ph-body { padding: 4px 22px 20px; border-top: 1px solid var(--line); }
.ph-prayer h4 { margin: 18px 0 6px; font-size: 1.1rem; }
.ph-prayer p { margin: 0 0 10px; line-height: 1.65; }
.ph-intro, .ph-say { color: var(--muted); font-style: italic; }
.ph-vr span { display: block; }
.ph-vr b { color: var(--flame); }
.ph-today { background: #fff8e6; border-radius: 8px; padding: 8px 10px; }
@media (max-width: 520px) { .ph-hour > summary { flex-wrap: wrap; } .ph-time { min-width: 0; } .ph-open { display: none; } }

/* "It is time to pray" box (assets/js/prayer-alarm.js) */
.pray-toast { position: fixed; left: 16px; bottom: 16px; z-index: 1100; display: flex; gap: 12px; align-items: center; max-width: calc(100vw - 32px);
  padding: 12px 14px; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: var(--shadow); border: 1px solid rgba(217,164,65,.4);
  transform: translateY(140%); transition: transform .45s var(--ease); }
.pray-toast.is-in { transform: none; }
.pray-toast__time { flex: none; font-family: var(--f-display); color: var(--gold); font-size: 1.1rem; }
.pray-toast div { min-width: 0; display: flex; flex-direction: column; }
.pray-toast small { color: #d9cfe6; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.pray-toast strong { overflow: hidden; text-overflow: ellipsis; }
.pray-toast > button { background: none; border: 0; color: #fff; font-size: 1.4rem; cursor: pointer; padding: 0 4px; }
@media (max-width: 520px) { .pray-toast { flex-wrap: wrap; right: 16px; } }
.ws-code { background: var(--ink); color: #f3d58a; padding: 12px 14px; border-radius: 10px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; font-size: .85rem; margin: 8px 0; }

/* ---------- My Prayer Plan (prayer-plan.html) ---------- */
.pp-setup { max-width: 920px; margin: 0 auto; display: grid; gap: 18px; }
.pp-setup fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 20px; background: #fff; min-width: 0; }
.pp-setup legend { font-weight: 700; font-size: 1.05rem; padding: 0 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.pp-setup legend > span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--flame); color: #fff; font-size: .9rem; }
.pp-setup legend small { font-weight: 400; color: var(--muted); font-size: .85rem; }
.pp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.pp-plan { position: relative; cursor: pointer; }
.pp-plan input { position: absolute; opacity: 0; }
.pp-plan > span { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px; border: 2px solid var(--line); border-radius: 14px; transition: border-color .2s, box-shadow .2s; }
.pp-plan small { color: var(--flame); font-weight: 700; font-size: .8rem; }
.pp-plan em { font-style: normal; color: var(--muted); font-size: .88rem; }
.pp-plan input:checked + span { border-color: var(--flame); box-shadow: 0 0 0 3px rgba(210,58,30,.12); background: #fffaf6; }
.pp-plan input:focus-visible + span, .pp-chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.pp-focus { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-chip { cursor: pointer; }
.pp-chip input { position: absolute; opacity: 0; }
.pp-chip span { display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; background: #fff; }
.pp-chip i { font-style: normal; }
.pp-chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pp-time { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pp-time input { font: inherit; font-size: 1.3rem; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; }
.pp-quick { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--linen); cursor: pointer; font: inherit; font-size: .85rem; color: inherit; }
.pp-small { color: var(--muted); font-size: .88rem; }
.pp-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.pp-head h2 { margin: 4px 0; }
.pp-head p { margin: 0 0 10px; color: var(--muted); }
.pp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-tag { padding: 4px 10px; border-radius: 999px; background: var(--linen); font-size: .82rem; font-weight: 600; }
.pp-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.pp-next { text-align: right; }
.pp-next small { display: block; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.pp-next b { font-family: var(--f-display); font-size: 1.5rem; color: var(--flame); }
.pp-streak { font-weight: 700; font-size: .9rem; }
.pp-progress { height: 8px; border-radius: 99px; background: var(--linen); overflow: hidden; margin-bottom: 16px; }
.pp-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--flame), var(--gold)); }
.pp-reminder { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 14px 18px; border-radius: 14px; background: var(--ink); color: #f4eefa; margin-bottom: 18px; }
.pp-reminder > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 280px; }
.pp-reminder span { color: #d9cfe6; font-size: .9rem; }
.pp-reminder .ph-status { color: #9fe3b4 !important; }
.pp-reminder .ph-status.is-bad { color: #ffb4a3 !important; }
.pp-reminder .btn--outline { color: #fff; border-color: rgba(255,255,255,.5); background: transparent; }
.pp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pp-step { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: opacity .2s; }
.pp-step.is-done { opacity: .62; }
.pp-step__head { display: flex; gap: 12px; align-items: center; padding: 12px 16px; background: #fdfbf7; border-bottom: 1px solid var(--line); }
.pp-step__head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pp-step__head small { color: var(--flame); font-weight: 700; font-size: .78rem; }
.pp-num { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; font-size: .85rem; }
.pp-tick { flex: none; display: flex; gap: 6px; align-items: center; font-size: .82rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.pp-tick input { width: 18px; height: 18px; accent-color: var(--flame); }
.pp-step__body { padding: 12px 18px 16px; line-height: 1.65; }
.pp-step__body p { margin: 0 0 10px; }
.pp-ref { display: inline-flex; gap: 8px; align-items: center; margin: 4px 8px 4px 0; padding: 8px 14px; border-radius: 10px; background: var(--linen); font-weight: 700; text-decoration: none; color: var(--ink); }
.pp-ref span { color: var(--flame); font-size: .82rem; }
.pp-lectio { margin: 0 0 10px; padding-left: 20px; color: var(--muted); }
.pp-q { background: #fff8e6; border-radius: 10px; padding: 10px 12px; }
.pp-mysteries { margin: 0 0 8px; padding-left: 20px; }
.pp-mysteries li { margin-bottom: 6px; }
.pp-mysteries small { display: block; color: var(--muted); }
.pp-finish { text-align: center; margin-top: 22px; }
.pp-done { font-weight: 700; color: #1d5c32; font-size: 1.1rem; }
@media (max-width: 600px) { .pp-side { align-items: flex-start; } .pp-next { text-align: left; } .pp-step__head { flex-wrap: wrap; } }

/* ===================== LIVE UPDATES (assets/js/live-updates.js) ===================== */
.lu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.lu-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; align-items: start; }
.lu-col { display: grid; gap: 16px; }
.lu-col__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--gold); padding-bottom: 8px; }
.lu-col__head h3 { margin: 0; font-size: 1.05rem; }
.lu-col__head a { font-weight: 700; font-size: .9rem; white-space: nowrap; }
.lu-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.lu-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.lu-item__img { display: block; aspect-ratio: 16 / 9; background: var(--ink-3); overflow: hidden; }
.lu-item__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lu-col .lu-item__img { aspect-ratio: 21 / 9; }
.lu-item__body { padding: 16px 18px 18px; display: grid; gap: 6px; }
.lu-item__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.lu-item__src { color: var(--flame); font-weight: 700; }
.lu-item__title { font-family: var(--f-body); font-size: 1.08rem; line-height: 1.35; letter-spacing: 0; margin: 0; }
.lu-item__title a { color: var(--ink); }
.lu-item__title a:hover { color: var(--flame); }
.lu-item__sum { margin: 0; font-size: .93rem; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lu-foot { margin: 18px 0 0; font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.lu-foot a { font-weight: 600; }
.lu-dot { width: 8px; height: 8px; border-radius: 50%; background: #1f9d55; box-shadow: 0 0 0 0 rgba(31, 157, 85, .6); animation: lu-pulse 2s infinite; }
@keyframes lu-pulse { 70% { box-shadow: 0 0 0 8px rgba(31, 157, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 157, 85, 0); } }
.lu-loading, .lu-empty { color: var(--muted); text-align: center; margin: 10px 0; }
.section--dark .lu-foot, .section--dark .lu-loading, .section--dark .lu-empty { color: #c9bdd8; }
.lu-toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 30px); opacity: 0; z-index: 9990; max-width: min(560px, calc(100vw - 32px));
  background: var(--ink); color: #fff; border: 1px solid rgba(217, 164, 65, .5); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow); transition: .35s ease; font-size: .95rem; }
.lu-toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.lu-toast strong { color: var(--gold-2); }
.lu-bar { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); z-index: 9991; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px);
  background: var(--ink); color: #fff; border: 1px solid rgba(217, 164, 65, .55); border-radius: 999px; padding: 8px 8px 8px 18px; box-shadow: var(--shadow); font-weight: 600; }
@media (max-width: 560px) { .lu-grid, .lu-cols { grid-template-columns: 1fr; } .lu-bar { top: auto; bottom: 86px; } }
@media (prefers-reduced-motion: reduce) { .lu-dot { animation: none; } .lu-item, .lu-toast { transition: none; } }

/* ===================== HOLY BIBLE reading window (assets/js/bible.js) ===================== */
html.bb-lock, html.bb-lock body { overflow: hidden; }
.bb { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 14px; background: rgba(10, 5, 16, 0); transition: background .25s; }
.bb.is-open { background: rgba(10, 5, 16, .72); }
.bb__card { width: min(760px, 100%); max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); display: flex; flex-direction: column; background: var(--linen); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); transform: translateY(18px) scale(.98); opacity: 0; transition: .25s ease; }
.bb.is-open .bb__card { transform: none; opacity: 1; }
.bb__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 22px 14px; background: var(--ink); color: #fff; }
.bb__head h2 { color: #fff; margin: 2px 0 0; font-size: 1.35rem; }
.bb__eyebrow { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); font-weight: 700; }
.bb__x { background: transparent; border: 2px solid var(--gold); color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; flex: none; }
.bb__body { overflow: auto; padding: 18px 24px 8px; -webkit-overflow-scrolling: touch; outline: none; }
.bb__foot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--paper); }
.bb-h { font-size: 1.05rem; margin: 6px 0 8px; }
.bb-h small { font-family: var(--f-body); font-size: .78rem; color: var(--muted); letter-spacing: 0; font-weight: 400; }
.bb-text { font-family: var(--f-script); font-size: 1.22rem; line-height: 1.65; color: var(--text); margin: 0 0 14px; }
.bb-v { font-family: var(--f-body); font-size: .62em; font-weight: 700; color: var(--flame); margin: 0 3px 0 6px; }
.bb-note, .bb-loading { font-size: .88rem; color: var(--muted); margin: 0 0 8px; }
.bb-ver { font-size: .78rem; color: var(--muted); text-align: right; margin: 4px 0 10px; }
.bb-link { font-weight: 700; }
@media (max-width: 560px) { .bb { padding: 0; place-items: end center; } .bb__card { border-radius: 18px 18px 0 0; max-height: 92vh; max-height: 92dvh; } .bb__body { padding: 14px 16px 6px; } .bb-text { font-size: 1.15rem; } }

/* ===================== READING WINDOW & PRAYER BOOK (assets/js/reader.js) ===================== */
.rd .bb__card { width: min(780px, 100%); }
.rd-sub { margin: 4px 0 0; color: #d9cfe6; font-size: .92rem; font-style: italic; }
.rd-body { font-family: var(--f-script); font-size: 1em; color: var(--text); }
.rd-body p { font-size: 1.2rem; line-height: 1.65; margin: 0 0 12px; }
.rd-intro { font-family: var(--f-body); font-size: .95rem !important; color: var(--muted); border-left: 3px solid var(--gold); padding-left: 12px; }
.rd-h { font-size: 1.05rem; color: var(--flame); margin: 18px 0 8px; letter-spacing: .04em; }
.rd-say { font-family: var(--f-body); font-style: italic; color: #8a2a15; font-size: .98rem !important; }
.rd-vr b { color: var(--flame); font-family: var(--f-body); }
.rd-t { margin: 0 0 4px; }
.rd-la { background: #f3ecdf; border-radius: 10px; padding: 10px 14px 2px; margin: 0 0 14px; }
.rd-la > span { display: block; font-family: var(--f-body); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.rd-la p { font-style: italic; }
.rd-more { margin: 8px 0 14px; font-family: var(--f-body); }
.rd-more summary { cursor: pointer; font-weight: 700; color: var(--flame); margin-bottom: 8px; }
.rd-size { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.rd-size button { background: var(--paper); border: 0; padding: 6px 12px; font-weight: 700; cursor: pointer; color: var(--ink); }
.rd-size button + button { border-left: 1px solid var(--line); }
.rd .bb__foot button[disabled] { opacity: .4; cursor: default; }
.rd-copy { font-family: var(--f-body); font-size: .78rem !important; color: var(--muted); }
.rd-saint { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; }
.rd-saint:last-child { border-bottom: 0; }
.rd-saint h3 { font-size: 1.15rem; margin: 0 0 4px; }
.rd-saint .rd-rank { font-family: var(--f-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px !important; }
.rd-saint img { float: right; width: 110px; height: 130px; object-fit: cover; border-radius: 10px; margin: 0 0 8px 12px; }
.rd-reading { margin: 0 0 18px; }
.rd-reading .rd-h { margin-top: 6px; }
.rd-reading h4.rd-src { font-family: var(--f-body); font-size: 1rem; color: var(--ink); margin: 0 0 6px; }
.rd-reading .lit-reading__text p, .rd-reading .lit-reading__text { font-size: 1.15rem; line-height: 1.65; }
/* prayer book on a page */
.rd-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 22px; }
.rd-tabs button { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 8px 16px; font-weight: 700; cursor: pointer; font-family: var(--f-body); }
.rd-tabs button.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.rd-panel__intro { text-align: center; color: var(--muted); margin: -8px 0 18px; }
.rd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.rd-card { text-align: left; display: grid; gap: 4px; align-content: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; cursor: pointer; font-family: var(--f-body); box-shadow: var(--shadow-sm); transition: transform .15s ease, border-color .15s ease; color: var(--text); }
.rd-card:hover, .rd-card:focus-visible { transform: translateY(-2px); border-color: var(--gold); }
.rd-card strong { font-family: var(--f-display); font-size: 1rem; color: var(--ink); letter-spacing: .02em; }
.rd-card small { color: var(--muted); font-size: .86rem; }
.rd-card__go { color: var(--flame); font-weight: 700; font-size: .88rem; margin-top: 4px; }
.dp-readbtns { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
@media (max-width: 560px) { .rd-body p { font-size: 1.12rem; } .rd-saint img { width: 84px; height: 100px; } .rd .bb__foot { gap: 6px; } }
.dp-pray { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-top: 8px; }
.dp-pray__b { text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: 600 .92rem var(--f-body); color: var(--ink); cursor: pointer; }
.dp-pray__b:hover, .dp-pray__b:focus-visible { border-color: var(--gold); color: var(--flame); }
.dp-pray__b::after { content: " ›"; color: var(--flame); }
button.dp-lives__link { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
span.bb-link[data-bible] { cursor: pointer; text-decoration: underline; text-decoration-color: rgba(210, 58, 30, .45); text-underline-offset: 3px; }
/* Bible version choice (assets/js/bible.js) */
.bb-pick { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font: 600 .78rem var(--f-body); color: #d9cfe6; text-transform: uppercase; letter-spacing: .08em; }
.bb-pick select { font: 600 .9rem var(--f-body); text-transform: none; letter-spacing: 0; border-radius: 8px; border: 1px solid rgba(217, 164, 65, .6); background: #241534; color: #fff; padding: 5px 8px; max-width: min(62vw, 360px); }
.bb-api .v, .bb-api sup, .bb-api span.v { font-size: .7em; vertical-align: super; color: var(--flame); font-weight: 700; margin-right: 2px; }
.bb-api p { margin: 0 0 10px; }
.bb-api .q1, .bb-api .q2, .bb-api .q { padding-left: 1.2em; }
.bb-api .s1, .bb-api .s, .bb-api h3 { font-family: var(--f-body); font-size: .95rem; font-weight: 700; color: var(--ink); margin: 12px 0 6px; }
.pp-bible { width: 100%; max-width: 520px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); font: 600 1rem var(--f-body); background: var(--paper); }
/* long text pages (privacy.html) */
.prose h2 { font-size: 1.35rem; margin: 30px 0 10px; }
.prose p, .prose li { line-height: 1.7; }
.prose ul { padding-left: 20px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }

/* ---- Hymn reader: words in other languages, the song, reading aloud (assets/js/hymnbook-view.js) ---- */
.hb-r-langs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.hb-r-langs button { border: 1px solid var(--line); background: #faf6ef; color: var(--ink); border-radius: 999px; padding: 6px 14px; font: 600 .88rem/1.2 var(--f-body, inherit); cursor: pointer; }
.hb-r-langs button.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.hb-listen { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 4px 0 18px; padding: 12px 14px; background: #faf6ef; border: 1px solid var(--line); border-radius: 14px; }
.hb-song { display: flex; flex-direction: column; gap: 8px; flex: 1 1 260px; min-width: 0; }
.hb-song__label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hb-song audio { width: 100%; max-width: 420px; height: 40px; }
.hb-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.hb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hb-say-note { flex-basis: 100%; color: var(--muted); font-size: .85rem; }
/* Prayer in the visitor's own language (written by the zone, not machine-translated) — assets/js/reader.js */
.rd-own { border-left: 3px solid var(--gold, #d9a441); padding-left: 14px; margin-bottom: 14px; }
.rd-own__l { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--flame, #c2410c); margin-bottom: 4px; }

/* ---- Programme outline: topics day by day (assets/js/programme-plan.js) ---- */
.po-section { background: var(--cream, #faf6ef); }
.po-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.po-card { background: #fff; border: 1px solid var(--line, #e6dccd); border-radius: 18px; padding: 20px 20px 14px; box-shadow: 0 8px 24px rgba(18, 10, 28, .05); }
.po-card header h3 { margin: 2px 0 4px; font-size: 1.2rem; }
.po-kind { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--flame, #c2410c); }
.po-when { margin: 0 0 6px; color: var(--muted); font-size: .92rem; }
.po-live { margin: 4px 0 8px; font-weight: 700; }
.po-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; max-height: 460px; overflow: auto; }
.po-list li { display: grid; grid-template-columns: 92px 1fr auto; gap: 10px; align-items: start; padding: 9px 8px; border-top: 1px solid var(--line, #eee6d8); border-radius: 8px; }
.po-list li:first-child { border-top: 0; }
.po-list li.is-today { background: #fff4dc; border-color: transparent; }
.po-list li.is-past { opacity: .6; }
.po-day { font-size: .82rem; color: var(--muted); line-height: 1.3; }
.po-day b { display: block; color: var(--ink); font-size: .86rem; }
.po-topic strong { display: block; line-height: 1.35; }
.po-topic small { display: block; color: var(--muted); }
.po-topic em { display: block; color: var(--muted); font-size: .88rem; }
.po-tba { color: var(--muted); font-style: italic; font-size: .9rem; }
.po-now { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--flame, #c2410c); color: #fff; border-radius: 999px; padding: 3px 8px; }
.po-pop-today { margin: 6px 0 10px; padding: 8px 12px; border-radius: 10px; background: #fff4dc; color: var(--ink); font-size: .95rem; }
.po-win { position: fixed; inset: 0; z-index: 2147483000; display: none; align-items: flex-start; justify-content: center; padding: 60px 16px 16px; background: rgba(15, 10, 25, .6); overflow: auto; }
.po-win.is-open { display: flex; }
.po-win__card { position: relative; width: min(640px, 100%); background: #fff; border-radius: 20px; padding: 22px 20px 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.po-win__card .po-card { border: 0; box-shadow: none; padding: 0; }
.po-win__card .po-list { max-height: none; }
.po-win__k { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.po-win__x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #f1ece4; font-size: 1.4rem; line-height: 1; cursor: pointer; }
@media (max-width: 520px) { .po-list li { grid-template-columns: 74px 1fr; } .po-now { grid-column: 2; justify-self: start; } }
