/* ==========================================================================
   CHURCH BLOCKS · template `church/v1` — PRODUCTION CSS BUNDLE
   --------------------------------------------------------------------------
   Mechanical merge of the church design artifact (ngo-templating/churches/):
     (a) skins.css   :root + [data-skin] / [data-accent] tokens   (verbatim)
     (b) base.css    base primitives + component classes          (verbatim)
     (c) blocks.css  per-block component rules                    (verbatim)
   The template renders INSIDE the platform public/base.html chrome, wrapped
   in <main>; <html> carries the class `.church-template` plus data-skin /
   data-accent. Bare element / reset rules from the artifact are namespaced
   under `.church-template` (additive/defensive only — no visual change).
   :root / [data-skin] / [data-accent] token rules are left verbatim: they
   set inherited custom properties on <html>, which carries the attributes.
   Component classes (band-*, display, chnav, footcol, …) are collision-free
   and left untouched.
   ========================================================================== */

/* ============================================================
   CHURCH BLOCK LIBRARY — SKIN TOKENS
   Five directions spanning contemporary → liturgical. Each ships
   its own type pairing + neutral palette. Accent is switchable.
   Sanctuary models the reference (warm editorial, espresso bands,
   teal brand cards, orange accent, serif-with-italic).
   ============================================================ */

:root {
  --maxw: 1240px;
  --pad: clamp(20px, 4vw, 56px);

  --font-display: "Spectral", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --bg: #f4eee2;
  --surface: #fbf7ee;
  --surface-2: #ece3d2;
  --ink: #221c15;
  --ink-2: #453b2e;
  --muted: #786c5b;
  --faint: #a89a85;
  --border: #ddd1bb;
  --border-strong: #c8b99c;

  --display-weight: 500;
  --display-tracking: -0.015em;
  --display-leading: 1.0;
  --body-leading: 1.58;

  --label-transform: uppercase;
  --label-tracking: 0.18em;
  --label-weight: 500;

/* CDL-855d — squarer, blockier component vocabulary across ALL skins (owner,
   2026-07-31). The soft-radius/pill register reads as provisional; a church's
   credibility rests on having been there before the visitor and continuing
   after. Buttons and cards key off `--radius`, so tightening the per-skin scale
   squares both at once. `--radius-pill` replaces the hardcoded `999px` on tags,
   chips and the giving toggle — the SaaS-shaped controls. Genuinely circular
   things (avatar, play buttons, tag dots, map pin) keep `999px`: they are
   circles, not pills. */
  --radius: 3px;
  --radius-sm: 2px;
  --radius-lg: 4px;
  --radius-pill: 3px;
  --shadow: 0 1px 2px rgba(40,30,15,.06), 0 20px 44px -24px rgba(40,30,15,.30);
  --shadow-soft: 0 1px 0 rgba(40,30,15,.05);

  /* feature band (espresso in Sanctuary) + brand surface (teal cards) */
  --feature: #2b2018;
  --on-feature: #f2e9dc;
  --brand: oklch(0.62 0.09 190);
  --on-brand: #f3fbf9;

  --accent: oklch(0.63 0.15 45);
  --on-accent: #fff3ea;
}

/* ---------- 1. SANCTUARY — warm editorial, espresso, teal+orange ---------- */
[data-skin="sanctuary"] {
  --font-display: "Spectral", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --bg: #f4eee2;
  --surface: #fbf7ef;
  --surface-2: #ece2d0;
  --ink: #221c15;
  --ink-2: #453b2e;
  --muted: #786c5b;
  --faint: #a89a85;
  --border: #ddd0b9;
  --border-strong: #c8b89a;

  --display-weight: 500;
  --display-tracking: -0.018em;
  --display-leading: 0.98;
  --label-transform: uppercase;
  --label-tracking: 0.2em;
  --label-weight: 500;

  --feature: #2b2018;
  --on-feature: #f1e8db;
  --brand: oklch(0.60 0.085 188);
  --on-brand: #f2fbf9;

  --accent: oklch(0.63 0.16 46);
  --on-accent: #fff3ea;

  --radius: 3px; --radius-sm: 2px; --radius-lg: 4px; --radius-pill: 3px;
}

/* ---------- 2. CONTEMPORARY — bright, rounded, modern ---------- */
[data-skin="contemporary"] {
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --font-mono: "Space Mono", monospace;

  --bg: #f6f5f3;
  --surface: #ffffff;
  --surface-2: #eeecf5;
  --ink: #17151f;
  --ink-2: #38344a;
  --muted: #6a6580;
  --faint: #9a95ac;
  --border: #e6e3ee;
  --border-strong: #cfc9db;

  --display-weight: 800;
  --display-tracking: -0.03em;
  --display-leading: 0.96;
  --label-transform: uppercase;
  --label-tracking: 0.12em;
  --label-weight: 700;

  --feature: #241f3b;
  --on-feature: #f6f5f3;
  --brand: oklch(0.58 0.19 275);
  --on-brand: #f2f0ff;

  --accent: oklch(0.62 0.20 300);
  --on-accent: #f9f2ff;

  --radius: 4px; --radius-sm: 3px; --radius-lg: 6px; --radius-pill: 4px;
  --shadow: 0 2px 4px rgba(30,20,60,.06), 0 20px 44px -22px rgba(30,20,60,.32);
}

/* ---------- 3. PARISH — traditional, liturgical, stone + deep colour ---------- */
[data-skin="parish"] {
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Public Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --bg: #f1efe8;
  --surface: #f9f7f1;
  --surface-2: #e4e0d3;
  --ink: #1e1c1a;
  --ink-2: #3e3a34;
  --muted: #64604f;  /* muted slightly cooler */
  --faint: #94907f;
  --border: #ddd8c9;
  --border-strong: #c6c0ad;

  --display-weight: 500;
  --display-tracking: 0em;
  --display-leading: 1.0;
  --label-transform: uppercase;
  --label-tracking: 0.24em;
  --label-weight: 500;

  --feature: #33261f;      /* deep oxblood-brown */
  --on-feature: #f1efe8;
  --brand: oklch(0.42 0.09 25);   /* deep liturgical red */
  --on-brand: #f7ece9;

  --accent: oklch(0.45 0.10 25);
  --on-accent: #f7ece9;

  --radius: 2px; --radius-sm: 1px; --radius-lg: 3px; --radius-pill: 2px;
  --shadow: 0 1px 2px rgba(30,25,20,.07), 0 18px 40px -26px rgba(30,25,20,.34);
}

/* ---------- 4. SENDING — bold, high-contrast, campaign/outreach ---------- */
[data-skin="sending"] {
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "Space Mono", monospace;

  --bg: #14130f;
  --surface: #1d1c16;
  --surface-2: #29271f;
  --ink: #f3efe4;
  --ink-2: #d0cabb;
  --muted: #948d7d;
  --faint: #68624f;
  --border: #322f26;
  --border-strong: #494537;

  --display-weight: 700;
  --display-tracking: -0.035em;
  --display-leading: 0.94;
  --label-transform: uppercase;
  --label-tracking: 0.14em;
  --label-weight: 700;

  --feature: #0d0c09;
  --on-feature: #f3efe4;
  --brand: oklch(0.72 0.18 65);
  --on-brand: #221603;

  --accent: oklch(0.72 0.19 62);
  --on-accent: #221603;

  --radius: 2px; --radius-sm: 2px; --radius-lg: 4px; --radius-pill: 2px;
  --shadow: 0 2px 4px rgba(0,0,0,.4), 0 26px 54px -26px rgba(0,0,0,.72);
}

/* ---------- 5. QUIET — restrained, reading/archive, library-like ---------- */
[data-skin="quiet"] {
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Public Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --bg: #f8f6f1;
  --surface: #ffffff;
  --surface-2: #eeebe3;
  --ink: #1b1a17;
  --ink-2: #3a3833;
  --muted: #635f57;
  --faint: #948f85;
  --border: #e4e0d6;
  --border-strong: #d0cabc;

  --display-weight: 500;
  --display-tracking: -0.005em;
  --display-leading: 1.06;
  --label-transform: uppercase;
  --label-tracking: 0.16em;
  --label-weight: 600;

  --feature: #23211c;
  --on-feature: #f8f6f1;
  --brand: oklch(0.52 0.07 200);
  --on-brand: #eef6f6;

  --accent: oklch(0.52 0.08 200);
  --on-accent: #eef6f6;

  --radius: 2px; --radius-sm: 2px; --radius-lg: 3px; --radius-pill: 2px;
  --shadow: 0 1px 0 rgba(27,26,23,.05), 0 1px 2px rgba(27,26,23,.05);
}

/* ============================================================
   ACCENT TOKENS — switchable action color. Sanctuary defaults
   to terracotta; each skin has a natural default set in JS.
   ============================================================ */
[data-accent="terracotta"] { --accent: oklch(0.63 0.16 46);  --on-accent: #fff3ea; }
[data-accent="teal"]       { --accent: oklch(0.58 0.09 190); --on-accent: #f1fbf9; }
[data-accent="gold"]       { --accent: oklch(0.74 0.13 80);  --on-accent: #241c05; }
[data-accent="oxblood"]    { --accent: oklch(0.45 0.11 25);  --on-accent: #f7ece9; }
[data-accent="violet"]     { --accent: oklch(0.58 0.19 295); --on-accent: #f7f0ff; }
[data-accent="blue"]       { --accent: oklch(0.55 0.15 250); --on-accent: #eef4ff; }
[data-accent="green"]      { --accent: oklch(0.60 0.12 155); --on-accent: #04231a; }
[data-accent="ink"]        { --accent: var(--ink); --on-accent: var(--surface); }


/* ============================================================
   NGO BLOCK LIBRARY — BASE / PRIMITIVES
   Skin-agnostic. Reads tokens from skins.css. Every block is
   built from these classes so a skin/accent swap re-clothes all.
   ============================================================ */

.church-template *, .church-template *::before, .church-template *::after { box-sizing: border-box; }

html.church-template { -webkit-text-size-adjust: 100%; }

.church-template body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: var(--body-leading);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* derived accent tints — adapt to active surface */
[data-skin] {
  --accent-soft: color-mix(in oklab, var(--accent) 14%, var(--surface));
  --accent-quiet: color-mix(in oklab, var(--accent) 30%, var(--border));
  --accent-line: color-mix(in oklab, var(--accent) 55%, transparent);
}

.church-template img { max-width: 100%; display: block; }
.church-template a { color: inherit; text-decoration: none; }
.church-template button { font: inherit; color: inherit; cursor: pointer; }

/* ---------- layout ---------- */
.skin-surface { background: var(--bg); color: var(--ink); font-family: var(--font-body); }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.band { padding-block: clamp(40px, 6vw, 88px); }
.band-tight { padding-block: clamp(28px, 4vw, 52px); }
.band-alt { background: var(--surface-2); }
/* W3-item2 — band-rhythm run separation. The composer's band-rhythm pass tints
   the middle of a run of >=3 flat neutral sections to the quiet alternate ground
   (surface-2) so a page never shows three consecutive sections with no visual
   separation. Applied at the section wrapper so it needs no per-block edit; the
   :not() guards keep it to plain neutral bands (spotlight/alt bands own theirs). */
.site-section--band-alt > .ax-section > .band:not(.band-alt):not(.band-feature):not(.band-accent):not(.band-brand):not(.band-ink) { background: var(--surface-2); }
.band-ink { background: var(--ink); color: var(--surface); }
.band-ink * { border-color: color-mix(in oklab, var(--surface) 18%, transparent); }
.band-accent { background: var(--accent); color: var(--on-accent); }
.band-feature { background: var(--feature); color: var(--on-feature); }
.band-feature .lede, .band-feature .body { color: color-mix(in oklab, var(--on-feature) 78%, transparent); }
.band-feature .label { color: color-mix(in oklab, var(--on-feature) 72%, transparent); }
.band-feature .hr, .band-feature * { border-color: color-mix(in oklab, var(--on-feature) 20%, transparent); }
.band-brand { background: var(--brand); color: var(--on-brand); }
.band-brand .lede, .band-brand .body { color: color-mix(in oklab, var(--on-brand) 82%, transparent); }
.band-brand .label { color: color-mix(in oklab, var(--on-brand) 76%, transparent); }
.band-brand * { border-color: color-mix(in oklab, var(--on-brand) 22%, transparent); }

.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.gap-5 { gap: 24px; } .gap-6 { gap: 32px; } .gap-8 { gap: 48px; }
.wrapflex { flex-wrap: wrap; }
.between { justify-content: space-between; }
.center { justify-content: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.grow { flex: 1 1 auto; }

.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 900px) {
  .g3, .g4, .g6 { grid-template-columns: repeat(2, 1fr); }
  .g2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .g3, .g4, .g6 { grid-template-columns: 1fr; }
}

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: var(--display-leading);
  margin: 0;
}
.d-xl { font-size: clamp(40px, 6.5vw, 84px); }
.d-lg { font-size: clamp(32px, 4.6vw, 60px); }
.d-md { font-size: clamp(26px, 3.2vw, 40px); }
.d-sm { font-size: clamp(21px, 2.2vw, 28px); }

.lede { font-size: clamp(15px, 1.15vw, 16.5px); color: var(--ink-2); line-height: 1.55; margin: 0; max-width: 60ch; }
.body { color: var(--ink-2); margin: 0; }
.muted { color: var(--muted); }
p.body, .prose p { margin: 0 0 1em; text-wrap: pretty; }

.label {
  font-family: var(--font-mono);
  text-transform: var(--label-transform);
  letter-spacing: var(--label-tracking);
  font-weight: var(--label-weight);
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.label-accent { color: var(--accent); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 12px 20px; border-radius: var(--radius);
  border: 1px solid transparent; line-height: 1; white-space: nowrap;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { filter: brightness(1.06); }
.btn-solid { background: var(--ink); color: var(--surface); }
.btn-solid:hover { filter: brightness(1.12); }
.btn-outline { border-color: var(--border-strong); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
/* The page-level anchor reset `.church-template a { color: inherit }` is
   specificity (0,1,1); the button colour rules above are (0,1,0). Every CTA in
   this template is an anchor, so every one of them lost its on-colour and
   inherited body ink instead — measured on a live generated site, "Plan a
   visit" rendered rgb(30,28,26) on oklch(0.45 0.11 25): a contrast ratio of
   1.22:1, effectively unreadable. The contrast contract this file declares
   further down was never reaching a button at all. Same hazard as CDL-608-D,
   and the same cure: restate the rule at matching specificity. */
.church-template a.btn-accent  { color: var(--on-accent); }
.church-template a.btn-solid   { color: var(--surface); }
.church-template a.btn-outline { color: var(--ink); }
.church-template a.btn-ghost   { color: var(--ink); }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-sm { padding: 9px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-pad { padding: clamp(18px, 2vw, 26px); }
.card-hover { transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card-flat { border-radius: var(--radius); }
/* A card that IS the link (owner ruling, 4 Aug 2026 — giving methods). The
   whole card is the target rather than a small link inside it, so the hit area
   matches what the card looks like. Colour is inherited so the card doesn't
   turn into link-blue text on a surface. */
a.card-linked {
  display: block; text-decoration: none; color: inherit;
  transition: border-color .16s ease, box-shadow .16s ease;
}
a.card-linked:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
a.card-linked:hover .arrow { transform: translateX(3px); }
a.card-linked .arrow { display: inline-block; transition: transform .16s ease; }

/* ---------- badges / tags / chips ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; font-weight: 600;
  padding: 4px 9px; border-radius: var(--radius-pill, 3px);
  background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--border);
}
.tag-accent { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-quiet); }
.tag-dot::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: var(--radius-pill, 3px); font-size: 14px; font-weight: 500;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink);
  transition: border-color .14s, background .14s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--accent); color: var(--on-accent); border-color: transparent; }

/* citation / source badge */
.cite {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em;
  color: var(--muted); padding: 3px 0;
}
.cite::before { content: "›"; color: var(--accent); font-weight: 700; }

/* ---------- stats ---------- */
.stat-num { font-family: var(--font-display); font-weight: var(--display-weight); line-height: 1; letter-spacing: -0.03em; }
.stat-xl { font-size: clamp(38px, 5vw, 64px); }
.stat-lg { font-size: clamp(30px, 3.4vw, 46px); }

/* ---------- divider ---------- */
.hr { height: 1px; background: var(--border); border: 0; margin: 0; }
.vr { width: 1px; align-self: stretch; background: var(--border); }

/* ---------- image placeholders (real images drop in cleanly) ---------- */
.ph {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg,
      color-mix(in oklab, var(--ink) 7%, var(--surface)) 0 2px,
      transparent 2px 11px),
    var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  display: grid; place-items: center;
}
.ph::after {
  content: attr(data-ph);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  background: var(--surface); padding: 5px 10px; border-radius: 3px;
  border: 1px solid var(--border); max-width: 80%; text-align: center;
}
.ph-img { /* when a real <img> is dropped inside, it covers the stripes */ }
.ph-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ratio-16x9 { aspect-ratio: 16/9; }
.ratio-4x3 { aspect-ratio: 4/3; }
.ratio-1x1 { aspect-ratio: 1/1; }
.ratio-3x4 { aspect-ratio: 3/4; }
.ratio-21x9 { aspect-ratio: 21/9; }

/* avatar placeholder */
.avatar {
  width: 44px; height: 44px; border-radius: var(--radius-pill, 3px); flex: none;
  background:
    repeating-linear-gradient(135deg, color-mix(in oklab, var(--ink) 10%, var(--surface)) 0 2px, transparent 2px 8px),
    var(--surface-2);
  border: 1px solid var(--border);
}

/* ---------- inputs ---------- */
.field {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border-strong); background: var(--surface);
  border-radius: var(--radius); padding: 11px 14px;
}
.field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input { border: 0; background: transparent; outline: 0; font: inherit; color: var(--ink); width: 100%; }
.field input::placeholder { color: var(--faint); }

/* ---------- misc ---------- */
.flag { width: 18px; height: 13px; border-radius: 2px; flex: none; background: var(--surface-2); border: 1px solid var(--border); }
.logo-mark {
  width: 30px; height: 30px; border-radius: 7px; flex: none;
  background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; font-family: var(--font-display);
  font-weight: 800; font-size: 17px; letter-spacing: -.04em;
}
[data-skin="parish"] .logo-mark, [data-skin="quiet"] .logo-mark, [data-skin="sending"] .logo-mark { border-radius: 2px; }
[data-skin="contemporary"] .logo-mark { border-radius: var(--radius); }
.brandname { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }


/* ============================================================
   CHURCH LIBRARY — BLOCK COMPONENTS
   Skin-token driven. Covers hero, visit, service times, starting
   points, watch/listen, sermon archive, themes, next steps, groups,
   stories, giving, events, prayer, team, faq, location, footer.
   Brand surface (--brand) = the teal card colour from the reference.
   ============================================================ */

/* ---------- navigation ---------- */
.chnav { background: color-mix(in oklab, var(--surface) 90%, transparent); border-bottom: 1px solid var(--border); }
.navlinks { display: flex; gap: clamp(14px,1.8vw,26px); align-items: center; }
.navlink { font-family: var(--font-body); font-size: 14.5px; font-weight: 500; color: var(--ink-2); position: relative; white-space: nowrap; padding: 6px 0; }
.navlink:hover { color: var(--ink); }
.navlink.has-menu { display: inline-flex; align-items: center; gap: 5px; }
.navlink.is-active { color: var(--ink); }
.navlink.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .5; }
/* CDL-812 · nested nav dropdown (default / campus_language / live_now_bar). A
   CSS :hover / :focus-within disclosure — no JS, keyboard reachable. */
.chnav-item { position: relative; display: inline-flex; align-items: center; }
.chnav-item > .navlink.has-menu { cursor: default; }
.chnav-sub { position: absolute; left: 0; top: calc(100% + 10px); z-index: 60; min-width: 248px; max-width: 320px; padding: 8px; display: none; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 18px 40px -24px rgba(0,0,0,.4); }
/* invisible hover bridge across the 10px offset — without it the pointer loses
   :hover mid-crossing and the open panel snaps shut before it can be reached */
.chnav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.chnav-has-sub:hover > .chnav-sub, .chnav-has-sub:focus-within > .chnav-sub { display: flex; }
.chnav-has-sub:hover > .navlink.has-menu .caret, .chnav-has-sub:focus-within > .navlink.has-menu .caret { transform: rotate(225deg) translateY(0); opacity: .9; }
.chnav-sub-link { display: block; padding: 8px 10px; border-radius: var(--radius); }
.chnav-sub-link:hover, .chnav-sub-link:focus-visible { background: color-mix(in oklab, var(--accent) 8%, transparent); }
.chnav-sub-link b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.chnav-sub-link:hover b { color: var(--accent); }
.chnav-sub-desc { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.chnav-mobile-sub { padding-left: 22px !important; font-size: 14px !important; color: var(--ink-2); }
.brandname { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; line-height: 1; }
.brandname small { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-top: 3px; }
.utillink { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.utillink:hover { color: var(--ink); }
.iconbtn { width: 38px; height: 38px; border-radius: var(--radius); border: 1px solid var(--border-strong); background: transparent; display: grid; place-items: center; color: var(--ink-2); }
.iconbtn:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- display type ---------- */
.display { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); line-height: var(--display-leading); margin: 0; }
.d-xl { font-size: clamp(42px, 6.6vw, 84px); }
.d-lg { font-size: clamp(33px, 4.8vw, 62px); }
.d-md { font-size: clamp(26px, 3.3vw, 42px); }
.d-sm { font-size: clamp(20px, 2.1vw, 28px); }
.italic { font-style: italic; }
[data-skin="contemporary"] .italic, [data-skin="sending"] .italic { font-style: normal; color: var(--accent); }
/* Contrast contract: text on an accent GROUND must use --on-accent, never
   --accent. The skin rule above tints .italic emphasis with --accent, which
   turns invisible inside an accent-background band (e.g. closing/cta_times_footer
   → "…a seat." vanishing on the gold band). Inside .band-accent, emphasis
   inherits the band's --on-accent foreground instead. */
.band-accent .italic { color: inherit; }
.lede { font-size: clamp(15px, 1.15vw, 16.5px); color: var(--ink-2); line-height: 1.55; margin: 0; max-width: 60ch; }
.body { color: var(--ink-2); margin: 0; }
.muted { color: var(--muted); }
p.body { margin: 0 0 1em; text-wrap: pretty; }
.label { font-family: var(--font-mono); text-transform: var(--label-transform); letter-spacing: var(--label-tracking); font-weight: var(--label-weight); font-size: 12px; color: var(--muted); margin: 0; }
.label-accent { color: var(--accent); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); }
.verse { font-family: var(--font-display); font-style: italic; font-weight: var(--display-weight); }

/* ---------- hero ---------- */
/* CDL-874 — vertical alignment is a TENANT CHOICE, not a constant. The base is
   `center`; `data-content-align="bottom"` opts into the old bottom anchor. The
   attribute is always emitted by the two heroes that carry the axis, so the
   default is expressed in one place (blocks.json) and honoured here.

   The base flipped from `flex-end` to `center`: a stored section with no
   `content_align` key resolves to the default, which is what the owner asked
   for on the generated site. Choosing "bottom" restores the previous render
   exactly. */
.ch-hero-full { position: relative; min-height: 540px; display: flex; align-items: center; color: #fff; }
.ch-hero-full[data-content-align="bottom"] { align-items: flex-end; }
.ch-hero-full .ph { position: absolute; inset: 0; border: 0; border-radius: 0; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,14,9,.86) 0%, rgba(20,14,9,.4) 44%, rgba(20,14,9,.16) 100%); }
.ch-hero-full .hero-inner { position: relative; z-index: 2; width: 100%; }
.on-dark { color: #fff; } .on-dark .lede, .on-dark .body { color: rgba(255,255,255,.85); }
.on-dark .label { color: rgba(255,255,255,.8); }
.visit-strip { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.visit-strip .vi { display: flex; flex-direction: column; gap: 3px; }
.visit-strip .vi .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .72; }
.visit-strip .vi .v { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 20px; letter-spacing: -.01em; }
.visit-strip .divider { width: 1px; align-self: stretch; background: currentColor; opacity: .25; }
/* The visit CTA is its own row under the facts (owner ruling, 4 Aug 2026), not
   a third peer in the strip's flex row. It follows FROM the times and place, so
   it reads as the next step rather than a sibling fact. */
.visit-strip-action { margin-top: 22px; }

/* ---------- starting points / brand cards (the teal cards) ---------- */
.startgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(14px,2vw,22px); }
@media (max-width: 820px){ .startgrid { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 540px){ .startgrid { grid-template-columns: 1fr;} }
.startcard { display: flex; flex-direction: column; gap: 14px; }
.brandtile { aspect-ratio: 4/3; border-radius: var(--radius-lg); background: var(--brand); color: var(--on-brand); display: grid; place-items: center; position: relative; overflow: hidden; }
.brandtile .bt-word { font-family: var(--font-display); font-style: italic; font-weight: var(--display-weight); font-size: clamp(26px,3.4vw,40px); }
.brandtile .bt-sub { position: absolute; left: 18px; bottom: 16px; font-family: var(--font-display); font-weight: 700; font-size: clamp(20px,2.4vw,30px); letter-spacing: .02em; }
.brandtile.ph-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.startcard .sc-title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(18px,1.9vw,22px); letter-spacing: var(--display-tracking); margin: 0; }
.startcard .sc-link { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }

/* ---------- themes / topic index grid ---------- */
.themegrid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; border-top: 1px solid var(--border); }
@media (max-width: 900px){ .themegrid { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 520px){ .themegrid { grid-template-columns: 1fr;} }
/* CDL-608-D: these card-style anchors previously relied solely on the
   page-level `.church-template a { color: inherit; text-decoration: none; }`
   reset (base.html adds that class to <html> at runtime) for their own base
   link color/underline. Any render context that doesn't provide that
   ancestor class — e.g. the (retiring) `/api/site-editor/block-render`
   single-block preview shell — fell through to the UA default blue/purple
   underlined link. Declaring the same reset on the block's own class makes
   it correct regardless of context; matches `.church-template a` exactly so
   there is no visual change on already-provisioned live pages. */
.theme { padding: 22px clamp(14px,1.6vw,22px) 20px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; min-height: 150px; transition: background .14s; color: inherit; text-decoration: none; }
.theme:hover { background: color-mix(in oklab, var(--accent) 7%, transparent); }
.theme h4 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(17px,1.8vw,20px); letter-spacing: var(--display-tracking); margin: 0; }
.theme p { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.5; flex: 1; }
.theme .th-link { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.theme .th-link::before { content: ""; width: 14px; height: 2px; background: var(--accent); }
.edition { color: inherit; text-decoration: none; }

/* ---------- watch & listen / media ---------- */
.mediafeature { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
@media (max-width: 720px){ .mediafeature { grid-template-columns: 1fr; } }
.media-thumb { position: relative; background: var(--surface-2); min-height: 260px; }
.media-thumb .playbtn { position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; border-radius: 999px; background: color-mix(in oklab, var(--ink) 55%, transparent); border: 1.5px solid rgba(255,255,255,.7); display: grid; place-items: center; }
.media-thumb .playbtn::after { content: ""; border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.media-badge { position: absolute; top: 14px; left: 14px; z-index: 2; }
.mediacard { display: flex; flex-direction: column; gap: 10px; }
.mediacard .brandtile { aspect-ratio: 16/10; }
.mediacard .playdot { position: absolute; left: 14px; bottom: 14px; width: 34px; height: 34px; border-radius: 999px; background: color-mix(in oklab, var(--ink) 45%, transparent); border: 1px solid rgba(255,255,255,.6); display: grid; place-items: center; }
.mediacard .playdot::after { content: ""; border-left: 9px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
.mediacard h4 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 17px; letter-spacing: var(--display-tracking); margin: 0; }
.mediacard .mc-meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; }

/* ---------- sermon archive rows ---------- */
.sermon-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 18px; align-items: center; padding: 18px 4px; border-top: 1px solid var(--border); }
.sermon-row:last-child { border-bottom: 1px solid var(--border); }
.sermon-row:hover h4 { color: var(--accent); }
.sermon-row .s-date { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.sermon-row h4 { margin: 0 0 2px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(17px,1.9vw,22px); letter-spacing: var(--display-tracking); transition: color .14s; }
.sermon-row .s-ref { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.sermon-row .s-speaker { font-size: 13px; color: var(--muted); }

/* ---------- next steps action grid ---------- */
.stepgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
@media (max-width: 820px){ .stepgrid { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 520px){ .stepgrid { grid-template-columns: 1fr;} }
.step-cell { padding: 24px clamp(16px,2vw,26px); border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; transition: background .14s; }
.step-cell:hover { background: color-mix(in oklab, var(--accent) 7%, transparent); }
.step-cell h4 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(18px,1.9vw,22px); letter-spacing: var(--display-tracking); margin: 0; }
.step-cell p { font-size: 13px; color: var(--muted); margin: 0; flex: 1; line-height: 1.5; }
.step-cell .st-link { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

/* ---------- groups / life stage ---------- */
.groupcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform .15s, box-shadow .15s, border-color .15s; }
.groupcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.groupcard .gc-body { padding: 18px; }
.groupcard h4 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 20px; letter-spacing: var(--display-tracking); margin: 0 0 4px; }
.meeting { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }

/* ---------- stories / testimonies ---------- */
.story { border-left: 3px solid var(--accent); padding-left: 22px; }
.story p { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(18px,2vw,26px); line-height: 1.34; letter-spacing: var(--display-tracking); margin: 0 0 14px; color: var(--ink); }
.story .attr { display: flex; align-items: center; gap: 12px; }
.story cite { font-style: normal; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }

/* ---------- giving ---------- */
.give { display: flex; flex-direction: column; gap: 16px; }
.amt-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.amt { border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 14px 8px; font-family: var(--font-display); font-weight: 600; font-size: clamp(16px,2vw,20px); letter-spacing: -.02em; text-align: center; transition: border-color .12s, background .12s, color .12s; }
.amt:hover { border-color: var(--ink); }
.amt.is-on { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.amt small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11px; opacity: .7; letter-spacing: 0; margin-top: 2px; }
.freq-toggle { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-pill, 3px); padding: 3px; gap: 2px; flex-wrap: wrap; }
.freq { border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 13px; padding: 8px 16px; border-radius: var(--radius-pill, 3px); }
.freq.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-soft); border: 1px solid var(--border); }
.give-total { display: flex; align-items: baseline; justify-content: space-between; padding-top: 4px; }
.give-total b { font-family: var(--font-display); font-size: clamp(26px,3vw,38px); font-weight: var(--display-weight); letter-spacing: -.03em; }
.impact-line { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.fund-goal { display: flex; flex-direction: column; gap: 8px; }
.usebar { display: flex; height: 14px; border-radius: var(--radius-pill, 3px); overflow: hidden; border: 1px solid var(--border); }
.usebar span { display: block; height: 100%; }
.uselegend { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.uselegend .ul { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); }
.uselegend .ul i { width: 10px; height: 10px; border-radius: 3px; display: block; }

/* ---------- events / calendar ---------- */
.event-list .event { display: grid; grid-template-columns: 66px 1fr auto; gap: 20px; align-items: center; padding: 18px 4px; border-top: 1px solid var(--border); }
.event-list .event:last-child { border-bottom: 1px solid var(--border); }
.event-list .event:hover h4 { color: var(--accent); }
.ev-date { text-align: center; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 4px; }
.ev-date .m { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); display: block; }
.ev-date .d { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 24px; line-height: 1.05; }
.event h4 { margin: 0 0 4px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(17px,1.9vw,22px); letter-spacing: var(--display-tracking); transition: color .14s; }
.ev-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- prayer / care ---------- */
.prayercard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(20px,2.5vw,30px); }
.care-opt { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 15px 0; border-top: 1px solid var(--border); }
.care-opt:last-child { border-bottom: 1px solid var(--border); }
.care-opt .ci { width: 36px; height: 36px; border-radius: var(--radius); background: color-mix(in oklab, var(--accent) 12%, var(--surface)); border: 1px solid color-mix(in oklab,var(--accent) 30%, var(--border)); display: grid; place-items: center; color: var(--accent); }
.care-opt h5 { margin: 0 0 2px; font-size: 15px; font-weight: 600; }
.care-opt p { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- team ---------- */
.teamgrid { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(14px,2vw,22px); }
@media (max-width: 820px){ .teamgrid { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 460px){ .teamgrid { grid-template-columns: 1fr;} }
.person { display: flex; flex-direction: column; gap: 12px; }
.person .ph { border-radius: var(--radius-lg); }
.person .p-name { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 19px; letter-spacing: var(--display-tracking); margin: 0; }
.person .p-role { font-family: var(--font-mono); font-size: 12px; color: var(--accent); margin: 3px 0 0; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(16px,1.8vw,21px); color: var(--ink); letter-spacing: var(--display-tracking); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 22px; height: 22px; flex: none; position: relative; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; }
.faq summary .pm::before { left: 0; right: 0; top: 10px; height: 2px; }
.faq summary .pm::after { top: 0; bottom: 0; left: 10px; width: 2px; transition: transform .18s ease; }
.faq details[open] summary .pm::after { transform: scaleY(0); }
.faq .faq-body { padding: 0 0 20px; color: var(--ink-2); font-size: 15px; line-height: 1.6; max-width: 72ch; }
/* dark faq grid (reference "made for teens") */
.faqcard { border: 1px solid color-mix(in oklab, var(--on-feature) 16%, transparent); border-radius: var(--radius); padding: 18px; color: inherit; text-decoration: none; }
.faqcard h5 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 17px; margin: 0 0 8px; }
.faqcard p { margin: 0; font-size: 12.5px; color: color-mix(in oklab, var(--on-feature) 65%, transparent); }

/* ---------- location / map ---------- */
.mapfield { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background:
  radial-gradient(circle at 52% 46%, color-mix(in oklab, var(--accent) 30%, transparent) 0 10px, transparent 11px),
  repeating-linear-gradient(0deg, var(--border) 0 1px, transparent 1px 40px),
  repeating-linear-gradient(90deg, var(--border) 0 1px, transparent 1px 40px),
  var(--surface-2); }
.mappin { position: absolute; left: 52%; top: 46%; width: 16px; height: 16px; border-radius: 999px 999px 999px 0; background: var(--accent); transform: translate(-50%,-100%) rotate(-45deg); }
.getting { display: flex; flex-direction: column; }
.getting .g-row { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); align-items: start; }
.getting .g-row .gi { width: 34px; height: 34px; border-radius: var(--radius); background: color-mix(in oklab, var(--accent) 12%, var(--surface)); border: 1px solid color-mix(in oklab,var(--accent) 30%, var(--border)); display: grid; place-items: center; color: var(--accent); }
.getting .g-row h5 { margin: 0 0 2px; font-size: 14.5px; font-weight: 600; }
.getting .g-row p { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- footer ---------- */
.footcol h5 { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; color: var(--muted); margin: 0 0 14px; font-weight: 600; }
.footcol a { display: block; padding: 5px 0; font-size: 14px; color: var(--ink-2); }
.footcol a:hover { color: var(--accent); }

/* ---------- shared bits ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; padding: 4px 9px; border-radius: var(--radius-pill, 3px); background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--border); }
.tag-accent { background: color-mix(in oklab, var(--accent) 14%, var(--surface)); color: var(--accent); border-color: color-mix(in oklab, var(--accent) 30%, var(--border)); }
.tag-dot::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: var(--radius-pill, 3px); font-size: 14px; font-weight: 500; border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); transition: border-color .14s, background .14s; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.field { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border-strong); background: var(--surface); border-radius: var(--radius); padding: 11px 14px; }
.field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent); }
.field input, .field textarea { border: 0; background: transparent; outline: 0; font: inherit; color: var(--ink); width: 100%; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.input { border: 1px solid var(--border-strong); background: var(--surface); border-radius: var(--radius); padding: 12px 14px; font: inherit; color: var(--ink); width: 100%; }
.input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent); }
textarea.input { resize: vertical; min-height: 96px; }
.avatar { width: 44px; height: 44px; border-radius: 999px; flex: none; background: repeating-linear-gradient(135deg, color-mix(in oklab, var(--ink) 10%, var(--surface)) 0 2px, transparent 2px 8px), var(--surface-2); border: 1px solid var(--border); }
.hr { height: 1px; background: var(--border); border: 0; margin: 0; }
.vr { width: 1px; align-self: stretch; background: var(--border); }
.bar-track { height: 12px; border-radius: var(--radius-pill, 3px); background: var(--surface-2); overflow: hidden; border: 1px solid var(--border); }
.bar-fill { height: 100%; background: var(--accent); border-radius: var(--radius-pill, 3px); }
.logo-mark { width: 32px; height: 32px; border-radius: 8px; flex: none; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -.02em; }
.stat-num { font-family: var(--font-display); font-weight: var(--display-weight); line-height: 1; letter-spacing: -0.02em; }
.stat-xl { font-size: clamp(40px,5.5vw,72px); }
.stat-lg { font-size: clamp(28px,3.4vw,46px); }

/* CDL-853: a stat "number" is not always a numeral. `stats[].num` legitimately
   carries a WORD — "Weekly", "Monthly" — and at 46px display those overflowed a
   fixed-width card and were clipped mid-letter. Sized against the CARD rather
   than the viewport, so the slot shrinks to fit its own content: a numeral never
   reaches the floor and is unchanged, a long word steps down until it fits.
   Declared after the base rules above so nothing later re-overrides it. */
.card-pad:has(.stat-num) { container-type: inline-size; }
.stat-num { min-width: 0; max-width: 100%; overflow-wrap: anywhere; hyphens: none; }
@container (min-width: 1px) {
  .stat-lg { font-size: clamp(20px, 26cqw, 46px); }
  .stat-xl { font-size: clamp(26px, 32cqw, 72px); }
}
.cite { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--muted); }
.cite::before { content: "›"; color: var(--accent); font-weight: 700; }
.pubtype { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); border: 1px solid color-mix(in oklab, var(--accent) 35%, var(--border)); background: color-mix(in oklab, var(--accent) 12%, var(--surface)); border-radius: 4px; padding: 4px 8px; white-space: nowrap; }


/* ============================================================
   CDL-104: config-axes (ax-*) — per-section presentation config
   ------------------------------------------------------------
   CDL-105 wraps every church section in a <div> that always carries
   `ax-section` plus the deterministic `render.axes_css` class string
   (CDL-102): `ax-<axis>-<value>`, e.g.
     ax-tone-feature ax-density-compact ax-columns-3 …
   The rules below are DESCENDANT selectors from those wrapper classes,
   so with NO wrapper present (today's default render, and every other
   template) they match nothing and are inert — zero change to existing
   rules, default render byte-identical (I5). They read ONLY the existing
   skin tokens (--pad / --surface-2 / --feature / --brand / --accent /
   spacing scale), so they hold under all 5 skins × any accent.

   The neutral value of each axis (tone=inherit, density=regular,
   alignment=start, layout_mode=grid) intentionally has NO rule: the
   section keeps whatever the block partial baked in. Only the
   non-neutral choices override. Because a rule only exists for a
   non-neutral value, a variant that does not declare an axis (no
   `ax-<axis>-*` class is ever emitted for it) is never touched.
   ============================================================ */

/* ---------- density: scale band vertical padding + internal grid gap ----
   base .band = clamp(40px, 6vw, 88px); compact ≈ 0.6×, spacious ≈ 1.5×.
   regular emits `ax-density-regular` but gets no rule (= base). Overrides
   only fire on sections that DECLARE density and resolve to compact/spacious,
   so band-tight / hero-band sections without the axis keep their padding. */
.church-template .ax-density-compact .band { padding-block: clamp(24px, 3.6vw, 54px); }
.church-template .ax-density-spacious .band { padding-block: clamp(60px, 9vw, 132px); }
.church-template .ax-density-compact .grid { gap: clamp(10px, 1.2vw, 18px); }
.church-template .ax-density-spacious .grid { gap: clamp(24px, 3vw, 42px); }

/* ---------- tone: override the band surface a partial bakes in ----------
   Maps onto the same palette the baked band-* classes use (--surface-2,
   --feature, --brand, --accent). `inherit` = no rule. Child colour rules
   mirror the existing .band-feature / .band-brand sets so on-dark text keeps
   contrast even when the underlying partial is a plain `.band`. neutral_alt
   also resets on-light text so it stays legible if it ever overrides a baked
   dark band. */
.church-template .ax-tone-neutral_alt .band { background: var(--surface-2); color: var(--ink); }
.church-template .ax-tone-neutral_alt .band .lede,
.church-template .ax-tone-neutral_alt .band .body { color: var(--ink-2); }
.church-template .ax-tone-neutral_alt .band .label { color: var(--muted); }

.church-template .ax-tone-feature .band { background: var(--feature); color: var(--on-feature); }
.church-template .ax-tone-feature .band .lede,
.church-template .ax-tone-feature .band .body { color: color-mix(in oklab, var(--on-feature) 78%, transparent); }
.church-template .ax-tone-feature .band .label { color: color-mix(in oklab, var(--on-feature) 72%, transparent); }
.church-template .ax-tone-feature .band .hr,
.church-template .ax-tone-feature .band * { border-color: color-mix(in oklab, var(--on-feature) 20%, transparent); }

.church-template .ax-tone-brand .band { background: var(--brand); color: var(--on-brand); }
.church-template .ax-tone-brand .band .lede,
.church-template .ax-tone-brand .band .body { color: color-mix(in oklab, var(--on-brand) 82%, transparent); }
.church-template .ax-tone-brand .band .label { color: color-mix(in oklab, var(--on-brand) 76%, transparent); }
.church-template .ax-tone-brand .band * { border-color: color-mix(in oklab, var(--on-brand) 22%, transparent); }

.church-template .ax-tone-accent .band { background: var(--accent); color: var(--on-accent); }
.church-template .ax-tone-accent .band .lede,
.church-template .ax-tone-accent .band .body { color: color-mix(in oklab, var(--on-accent) 82%, transparent); }
.church-template .ax-tone-accent .band .label { color: color-mix(in oklab, var(--on-accent) 76%, transparent); }
.church-template .ax-tone-accent .band * { border-color: color-mix(in oklab, var(--on-accent) 22%, transparent); }

/* ---------- alignment: start = default (no rule); center centres text,
   constrained content (max-width'd .lede/.body/.wrap children) and CTA rows.
   `.row.between` is left alone so split header/footer rows keep their layout. */
.church-template .ax-alignment-center .wrap { text-align: center; }
.church-template .ax-alignment-center .wrap > .lede,
.church-template .ax-alignment-center .wrap > .body,
.church-template .ax-alignment-center .wrap .stack > .lede,
.church-template .ax-alignment-center .wrap .stack > .body { margin-inline: auto; }
.church-template .ax-alignment-center .eyebrow,
.church-template .ax-alignment-center .row:not(.between) { justify-content: center; }

/* ---------- media_ratio: aspect-ratio on the standard media surfaces -----
   Targets the placeholder / thumb / brand-tile boxes. The full-bleed hero
   (.ch-hero-full .ph) is position:absolute; inset:0, so aspect-ratio is
   ignored there — heroes are unaffected by design. */
.church-template .ax-media_ratio-1x1 .ph,
.church-template .ax-media_ratio-1x1 .brandtile,
.church-template .ax-media_ratio-1x1 .media-thumb { aspect-ratio: 1 / 1; min-height: 0; }
.church-template .ax-media_ratio-3x4 .ph,
.church-template .ax-media_ratio-3x4 .brandtile,
.church-template .ax-media_ratio-3x4 .media-thumb { aspect-ratio: 3 / 4; min-height: 0; }
.church-template .ax-media_ratio-16x9 .ph,
.church-template .ax-media_ratio-16x9 .brandtile,
.church-template .ax-media_ratio-16x9 .media-thumb { aspect-ratio: 16 / 9; min-height: 0; }

/* ---------- columns: desktop-only grid-column override for the card
   families. Base grids already collapse ≤900px, so overriding above 900px
   leaves the mobile/tablet collapse intact (no cramped 4-up on phones). ---- */
@media (min-width: 901px) {
  .church-template .ax-columns-2 .grid.g2,
  .church-template .ax-columns-2 .grid.g3,
  .church-template .ax-columns-2 .grid.g4,
  .church-template .ax-columns-2 .startgrid,
  .church-template .ax-columns-2 .teamgrid,
  .church-template .ax-columns-2 .stepgrid,
  .church-template .ax-columns-2 .themegrid { grid-template-columns: repeat(2, 1fr); }

  .church-template .ax-columns-3 .grid.g2,
  .church-template .ax-columns-3 .grid.g3,
  .church-template .ax-columns-3 .grid.g4,
  .church-template .ax-columns-3 .startgrid,
  .church-template .ax-columns-3 .teamgrid,
  .church-template .ax-columns-3 .stepgrid,
  .church-template .ax-columns-3 .themegrid { grid-template-columns: repeat(3, 1fr); }

  .church-template .ax-columns-4 .grid.g2,
  .church-template .ax-columns-4 .grid.g3,
  .church-template .ax-columns-4 .grid.g4,
  .church-template .ax-columns-4 .startgrid,
  .church-template .ax-columns-4 .teamgrid,
  .church-template .ax-columns-4 .stepgrid,
  .church-template .ax-columns-4 .themegrid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- layout_mode ---------------------------------------------------
   grid = default (no rule). list = single-column stack of the card families
   (reads as a list at every width) + a row-oriented media card where the
   markup supports it (media box left, text right). Declared LAST so `list`
   wins over a `columns` choice on the same grid. carousel / tabs are runtime
   behaviours (Phase 2 blocks-runtime.js) — no CSS is emitted for them here. */
.church-template .ax-layout_mode-list .grid,
.church-template .ax-layout_mode-list .startgrid,
.church-template .ax-layout_mode-list .teamgrid,
.church-template .ax-layout_mode-list .stepgrid,
.church-template .ax-layout_mode-list .themegrid { grid-template-columns: 1fr; }
.church-template .ax-layout_mode-list .mediacard { flex-direction: row; align-items: center; gap: clamp(14px, 2vw, 22px); }
.church-template .ax-layout_mode-list .mediacard > .brandtile,
.church-template .ax-layout_mode-list .mediacard > .ph,
.church-template .ax-layout_mode-list .mediacard > .media-thumb { flex: 0 0 clamp(140px, 34%, 260px); aspect-ratio: 16 / 10; }

/* ===================================================================   CDL-401 · Navigation chrome postures (C27)
   Eight per-site nav postures selected via chrome.nav_variant. Token-driven so
   every rule re-clothes under all five skins × eight accents. Ported from the
   gallery wireframe (block-templating-zip/churches/07-navigation.html); the base
   .chnav / .navlink / .logo-mark / .brandname / .btn* classes already ship above.
   Mobile: each posture collapses to a native <details> menu (no-JS safe, I6).
   ========================================================================== */

/* --- shared: utility meta strip + optional language/theme toggles ---------- */
.chutil { background: color-mix(in oklab, var(--ink) 5%, var(--surface)); border-bottom: 1px solid var(--border); font-size: 12.5px; }
.chutil .utillink { color: var(--muted); }
.chutil .utillink:hover { color: var(--ink); }
.chrome-toggles { display: inline-flex; align-items: center; gap: 8px; }
.chrome-toggles .lang-switch { display: inline-flex; gap: 2px; align-items: center; }
.chrome-toggles .lang-switch a { padding: 3px 9px; border-radius: 6px; font-size: 12px; color: var(--muted); line-height: 1; }
.chrome-toggles .lang-switch a:hover { color: var(--ink); }
.chrome-toggles .lang-switch a.on { color: var(--accent); font-weight: 600; background: var(--accent-soft); }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 26px; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-pill, 3px); background: transparent; color: var(--ink-2); cursor: pointer; }
.theme-toggle:hover { color: var(--ink); border-color: var(--accent-quiet); }
.theme-toggle .ic-light { display: none; }

/* --- shared: hamburger glyph + mobile <details> menu ----------------------- */
.chmenu-btn { display: inline-flex; flex-direction: column; gap: 3px; justify-content: center; }
.chmenu-btn i { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.chnav-mobile { display: none; position: relative; }
.chnav-mobile > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14px; color: var(--ink); padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: transparent; }
.chnav-mobile > summary::-webkit-details-marker { display: none; }
.chnav-mobile[open] > summary { border-color: var(--accent); }
.chnav-mobile-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: min(88vw, 320px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.chnav-mobile-links { display: flex; flex-direction: column; gap: 2px; }
.chnav-mobile-links .navlink { padding: 9px 8px; font-size: 15px; }
.chnav-mobile-cta { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; border-top: 1px solid var(--border); }
.chnav-mobile-cta .btn { justify-content: center; }
.chnav-mobile-panel .chrome-toggles { padding-top: 6px; border-top: 1px solid var(--border); justify-content: space-between; }

/* --- posture A · utility bar ---------------------------------------------- */
.chnav-utility .chutil-meta { min-width: 0; overflow: hidden; }
.chnav-utility .chutil-meta .utillink { white-space: nowrap; }

/* --- posture B · mega-menu (details-driven, real page children) ------------ */
.chmega-nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 26px); }
.chmega-item { position: relative; }
.chmega-item > summary { list-style: none; cursor: pointer; }
.chmega-item > summary::-webkit-details-marker { display: none; }
.chmega-item[open] > summary .caret { transform: rotate(225deg) translateY(0); opacity: .9; }
.chmega { position: absolute; left: 50%; top: calc(100% + 12px); transform: translateX(-50%); z-index: 60; width: min(92vw, 720px); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 18px 40px -24px rgba(0,0,0,.4); }
.chmega-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: clamp(10px, 2vw, 22px); }
.chmega-cols a { display: block; padding: 7px 0; }
.chmega-cols a b { display: block; font-size: 14px; color: var(--ink); font-weight: 600; }
.chmega-cols a:hover b { color: var(--accent); }

/* --- posture C · centered crest ------------------------------------------- */
.crest { width: 44px; height: 44px; border-radius: var(--radius-pill, 3px); border: 1.5px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 18px; background: color-mix(in oklab, var(--accent) 6%, transparent); }
.chnav-crest-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(16px, 3vw, 32px); }
.chnav-crest-brand { text-decoration: none; }

/* --- posture D · minimal --------------------------------------------------- */
.chnav-minimal .chnav-accent-rule { height: 3px; background: var(--accent); }
.chnav-minimal .chnav-mobile { display: inline-block; }

/* --- posture E · live-now bar ---------------------------------------------- */
.chlive { background: var(--feature); color: var(--on-feature); font-size: 13px; }
.chlive a { color: var(--on-feature); }
.pulse { width: 8px; height: 8px; border-radius: var(--radius-pill, 3px); background: var(--accent); flex: none; animation: chpulse 1.8s infinite; }
@keyframes chpulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 55%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

/* --- posture F · search-forward -------------------------------------------- */
.chsearch { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-pill, 3px); padding: 10px 16px; }
.chsearch input { border: 0; background: none; outline: none; width: 100%; font: inherit; color: var(--ink); }
.chsearch input::placeholder { color: var(--muted); }
.chnav-search-row { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(16px, 3vw, 32px); align-items: center; }

/* --- posture G · vertical rail (fixed left; offsets sibling body on desktop) */
.chnav-rail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chnav-rail-links { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.rail-link { display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; border-radius: 8px; font-size: 14.5px; color: var(--ink-2); }
.rail-link:hover { background: color-mix(in oklab, var(--accent) 8%, transparent); color: var(--ink); }
.rail-link.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.chnav-rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 16px; }
.chnav-rail-mobiletoggle { display: none; }
@media (min-width: 900px) {
  .chnav-rail { position: fixed; left: 0; top: 0; bottom: 0; width: 232px; display: flex; flex-direction: column; padding: 22px 20px; border-right: 1px solid var(--border); border-bottom: 0; background: color-mix(in oklab, var(--ink) 4%, var(--surface)); overflow-y: auto; z-index: 50; }
  .chnav-rail ~ #church-main, .chnav-rail ~ [data-kms-chrome="footer"] { margin-left: 232px; }
}

/* --- posture H · campus & language ----------------------------------------- */
.campus-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill, 3px); padding: 5px 12px; font-size: 12.5px; color: var(--ink); background: var(--surface); }
.campus-pill .cp-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); flex: none; }

/* --- responsive: collapse horizontal nav → mobile <details> ---------------- */
@media (max-width: 860px) {
  .chnav .navlinks, .chnav .chmega-nav, .chnav .chnav-actions,
  .chnav-crest-left, .chnav-crest-right { display: none; }
  .chnav .chnav-mobile { display: inline-block; }
  .chnav-bar, .chnav-search-row, .chnav-crest-row { display: flex; align-items: center; justify-content: space-between; }
  .chnav-crest-row { grid-template-columns: none; }
  .chnav-search .chsearch { display: none; }
  .chnav-utility .chutil-meta { display: none; }
}
@media (max-width: 899px) {
  .chnav-rail { border-bottom: 1px solid var(--border); }
  .chnav-rail-links, .chnav-rail-foot { display: none; }
  .chnav-rail-head { padding-block: 6px; }
  .chnav-rail-mobiletoggle { display: inline-block; }
}
/* CDL-401 end ============================================================== */
/* ------------------------------------------------------------------ */
/* Livestream / countdown family (CDL-403). Ported from gallery 06's   */
/* wireframe-local helpers — token-driven + skin-agnostic. count-grid  */
/* drives the schedule countdown; video-embed frames the live-now /    */
/* offline-holding cards. New family classes (no existing church block */
/* references them, so no provisioned page renders differently).       */
/* ------------------------------------------------------------------ */
.count-grid { display: flex; gap: clamp(8px, 1.5vw, 16px); flex-wrap: wrap; }
.count-cell { min-width: 74px; text-align: center; border-radius: var(--radius-lg, 14px); padding: 16px 14px 12px; background: var(--surface); border: 1px solid var(--border); }
.count-cell .cc-num { font-family: var(--ui-mono, ui-monospace, monospace); font-variant-numeric: tabular-nums; font-weight: 700; font-size: clamp(26px, 4vw, 40px); line-height: 1; color: var(--accent); }
.count-cell .cc-lab { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 8px; display: block; }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg, 14px); overflow: hidden; background: var(--ink); display: grid; place-items: center; }
.video-embed .playbtn { z-index: 2; }

/* ==========================================================================
   CDL-404: sacraments & rites family (C21)
   --------------------------------------------------------------------------
   Classes the original 01–05 gallery merge predates: `.sacr-tile` / `.tl-rail`
   come from 06-missing-families.html's wireframe-local helpers, `.number-*`
   from the newer assets/blocks.css. Ported verbatim with token names aligned
   to this bundle (--font-mono / --font-display). Purely additive — no existing
   selector is modified; the bare `.st-link` / `.s-ref` rules mirror the
   already-shipped `.step-cell .st-link` / `.sermon-row .s-ref` declarations
   so existing scoped usage renders identically.
   ========================================================================== */
.sacr-tile { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.sacr-tile .st-idx { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--accent); }
.st-link { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.s-ref { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.number-list { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.number-row { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--border); align-items: start; }
.number-row .num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--accent); }
.number-row h4 { margin: 0 0 4px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(18px, 1.8vw, 22px); letter-spacing: var(--display-tracking); }
.number-row p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.tl-rail { display: flex; gap: 0; overflow: auto; padding-bottom: 8px; }
.tl-rail .tlr-node { flex: 0 0 210px; padding: 0 22px; border-left: 2px solid var(--border); position: relative; }
.tl-rail .tlr-node::before { content: ""; position: absolute; left: -7px; top: 2px; width: 12px; height: 12px; border-radius: var(--radius-pill, 3px); background: var(--accent); }
.care-opt > .tag-dot { width: 8px; height: 8px; border-radius: var(--radius-pill, 3px); }
/* CDL-404 end ============================================================== */

/* ============================================================
   CDL-405 · Bulletins / documents family
   Document rows + type badges (gallery 06-missing-families C22).
   ============================================================ */
.doc-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 14px 4px; border-top: 1px solid var(--border); }
.doc-row:last-child { border-bottom: 1px solid var(--border); }
.doc-ic { width: 38px; height: 44px; border-radius: 6px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-quiet); color: var(--accent); font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .06em; flex: none; }
.doc-ic-lg { width: 64px; height: 76px; font-size: 13px; border-radius: 9px; }
.doc-note { margin: 0; font-size: 12.5px; color: var(--ink-2); }
.liturgy-row { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--border); }
.liturgy-row:first-child { border-top: 0; }
.liturgy-row .s-ref { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }

/* CDL-410-A: tabs behavior on ported/collapsed variants (C02.E quick_q_amp_a,
   C03.E sunday_midweek). The shared runtime (blocks/runtime.js) injects a
   `.brt-tabbar` of `.brt-tab` buttons before the panels and shows one panel at
   a time; no-JS renders every panel stacked with its own heading. These rules
   only style the JS-injected chrome — purely additive, token-driven, any-skin.
   ========================================================================== */
.church-template .brt-tabbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.church-template .brt-tab { appearance: none; cursor: pointer; border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); border-radius: var(--radius-pill, 3px); padding: 8px 16px; font-size: 14px; font-weight: 500; font-family: inherit; transition: border-color .14s, background .14s, color .14s; }
.church-template .brt-tab:hover { border-color: var(--ink); }
.church-template .brt-tab.is-on { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.church-template .ax-tone-feature .brt-tabbar, .church-template .ax-tone-brand .brt-tabbar { border-color: color-mix(in oklab, var(--on-feature) 22%, transparent); }
.church-template .ax-tone-feature .brt-tab, .church-template .ax-tone-brand .brt-tab { background: color-mix(in oklab, var(--on-feature) 8%, transparent); color: var(--on-feature); border-color: color-mix(in oklab, var(--on-feature) 30%, transparent); }
/* CDL-410-A end =========================================================== */
/* ==========================================================================
   CDL-410-C · C13–C18 ports + config-collapses (BATCH C)
   --------------------------------------------------------------------------
   BATCH C reuses the existing church component library wholesale (band /
   card / care-opt / teamgrid / event-list / getting / freq-toggle / field /
   chip / avatar / ph). The only genuinely new selector is `.cdl410c-form` —
   the stacked no-JS capture form shared by stories/share_your_story and
   events/registration_feature (the _core/news/subscribe_latest.html POST
   pattern). Token-driven + skin-agnostic; purely additive (no existing
   selector is modified).
   ========================================================================== */
.church-template .cdl410c-form { display: flex; flex-direction: column; gap: 12px; max-width: 480px; }
.church-template .cdl410c-form .field { align-items: stretch; }
.church-template .cdl410c-form textarea { min-height: 96px; }
.church-template .cdl410c-form .btn { align-self: flex-start; }
/* CDL-410-C end ============================================================ */
/* ===================================================================   CDL-410-B · Batch B collapse-axis support (families C07-C12)
   Only ONE new rule is needed for the whole batch: the C07.G "categorized
   index · columns" collapse promotes the `themes/big_type_list` editorial
   `.agenda` stack into a multi-column list when the `columns` axis is set.
   Every other Batch-B collapse (use_of_funds impact list, connect/serve/
   group forms, prayer-times schedule, care-options grid, life-stage tabs,
   bordered-action-grid filter/media, primary-step list) reuses classes and
   axis rules that already ship above — no CSS added for those. Descendant
   selectors from the always-present `.ax-section` wrapper; the neutral
   `columns=2` value simply reads as the base single/paired stack, so an
   unset section is visually unchanged (I5). Church-scoped file — I1 N/A.
   ========================================================================== */
@media (min-width: 901px) {
  .church-template .ax-columns-2 .agenda { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 32px; }
  .church-template .ax-columns-3 .agenda { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 28px; }
  .church-template .ax-columns-4 .agenda { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 24px; }
}
/* CDL-410-B end */

/* ===== CDL-820 on-accent contrast system ===== */
/* Root cause: several of the 8 built-in accents shipped a near-white
   --on-accent that fails WCAG AA (≥4.5:1) on the accent GROUND — so every
   filled control that reads var(--on-accent) (.btn-accent, .band-accent,
   .chip.is-on, .amt.is-on, .brt-tab.is-on, .logo-mark, seasonal_ribbon
   --_ink, …) rendered low-contrast labels. Fix is token-level: give each
   accent the on-colour that maximises contrast, computed from the accent's
   sRGB relative luminance (crossover ≈ 0.18; light accents → near-black
   text, dark accents → white). Dark text is #101010 (a hair darker than the
   base.html custom-accent #141414 heuristic so the mid-tone teal accent —
   which sits almost exactly on the black/white crossover — still clears
   4.5:1). Appended last so it wins over the verbatim skins.css block; only
   --on-accent is set, never --accent (brand colour is untouched).

   Measured contrast of on-accent text vs accent ground (all ≥4.5:1):
     terracotta #d46423 / #101010 = 5.12    oxblood #883835 / #fff = 7.88
     teal       #258b86 / #101010 = 4.64    violet  #855bdc / #fff = 4.64
     gold       #d5a13c / #101010 = 8.15    blue    #0f74c5 / #fff = 4.86
     green      #389560 / #101010 = 5.11    ink     (var(--surface))  ~17
*/
[data-accent="terracotta"] { --on-accent: #101010; }
[data-accent="teal"]       { --on-accent: #101010; }
[data-accent="gold"]       { --on-accent: #101010; }
[data-accent="green"]      { --on-accent: #101010; }
[data-accent="oxblood"]    { --on-accent: #ffffff; }
[data-accent="violet"]     { --on-accent: #ffffff; }
[data-accent="blue"]       { --on-accent: #ffffff; }
/* ink keeps --on-accent: var(--surface) — white/near-white on the dark ink
   ground already clears contrast; nothing to override. */

/* Filled/outline/ghost buttons INSIDE an accent/brand/feature/ink GROUND.
   The base .btn-solid (ink bg + surface text), .btn-outline and .btn-ghost
   (ink text + neutral border) assume a light neutral band; dropped onto a
   tinted or dark band (tone axis or a *-accent band class) they collide with
   the ground and vanish. Re-clothe them against the band's on-colour so the
   solid CTA inverts to the on-colour chip and outline/ghost keep a legible
   border+text. Mirrors the inline pattern already used by
   closing/cta_times_footer + big_invite_social. */
.church-template .band-accent .btn-solid,
.church-template .ax-tone-accent .band .btn-solid { background: var(--on-accent); color: var(--accent); }
.church-template .band-accent .btn-outline,
.church-template .band-accent .btn-ghost,
.church-template .ax-tone-accent .band .btn-outline,
.church-template .ax-tone-accent .band .btn-ghost {
  color: var(--on-accent); background: transparent;
  border-color: color-mix(in oklab, var(--on-accent) 55%, transparent);
}
.church-template .band-accent .btn-outline:hover,
.church-template .band-accent .btn-ghost:hover,
.church-template .ax-tone-accent .band .btn-outline:hover,
.church-template .ax-tone-accent .band .btn-ghost:hover {
  border-color: var(--on-accent); background: color-mix(in oklab, var(--on-accent) 12%, transparent);
}

.church-template .band-brand .btn-solid,
.church-template .ax-tone-brand .band .btn-solid { background: var(--on-brand); color: var(--brand); }
.church-template .band-brand .btn-outline,
.church-template .band-brand .btn-ghost,
.church-template .ax-tone-brand .band .btn-outline,
.church-template .ax-tone-brand .band .btn-ghost {
  color: var(--on-brand); background: transparent;
  border-color: color-mix(in oklab, var(--on-brand) 55%, transparent);
}

.church-template .band-feature .btn-solid,
.church-template .ax-tone-feature .band .btn-solid { background: var(--on-feature); color: var(--feature); }
.church-template .band-feature .btn-outline,
.church-template .band-feature .btn-ghost,
.church-template .ax-tone-feature .band .btn-outline,
.church-template .ax-tone-feature .band .btn-ghost {
  color: var(--on-feature); background: transparent;
  border-color: color-mix(in oklab, var(--on-feature) 55%, transparent);
}

/* Ink band already flips text to --surface; make solid CTAs the light chip
   and outline/ghost read against the dark ground. */
.church-template .band-ink .btn-solid { background: var(--surface); color: var(--ink); }
.church-template .band-ink .btn-outline,
.church-template .band-ink .btn-ghost {
  color: var(--surface); background: transparent;
  border-color: color-mix(in oklab, var(--surface) 55%, transparent);
}
/* ===== CDL-820 end ===== */
/* ===== CDL-823 responsive wave B ===== */
/* Human block-review rulings (CDL-816 walk). Each rule is scoped to its block's
   data-kms-variant so it can't leak into sibling blocks. !important is used only
   to override a partial's inline grid-template-columns for the mobile collapse
   those blocks were missing (the inline value is the correct DESKTOP layout;
   only the phone breakpoint was absent). Church-scoped file — I1 N/A. */

/* #1 sacraments/devotions_schedule + #2 sacraments/single_rite_detail — the
   inline grid-template-columns on the .grid.g2 blocked the platform's own 900px
   collapse, so the two-column split stayed cramped on phones. */
@media (max-width: 900px) {
  section[data-kms-variant="devotions_schedule"] .grid.g2,
  section[data-kms-variant="single_rite_detail"] .grid.g2 { grid-template-columns: 1fr !important; }
}

/* #3 sacraments/prepare_pathway — on mobile the 54px number column + 18px gap
   left a large void between the step number and its title. Tighten it once the
   list stacks full-width. */
@media (max-width: 560px) {
  section[data-kms-variant="prepare_pathway"] .number-row { grid-template-columns: 28px 1fr; gap: 10px; }
}

/* #4 sacraments/liturgical_season — the feast titles were bare <h5> (browser
   default size), rendering markedly smaller than the sibling event/name lists
   (.event h4 / .person .p-name). Align the feast title to the shared event-title
   scale and nudge the date label up to match. */
section[data-kms-variant="liturgical_season"] .event h5 {
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: clamp(16px, 1.8vw, 20px); letter-spacing: var(--display-tracking);
  line-height: 1.15;
}
section[data-kms-variant="liturgical_season"] .event .stat-num { font-size: 17px !important; }

/* #5 starting/stage_stepper — inline grid-template-columns:repeat(4,1fr)
   overrode the base .stepgrid collapse, so four cells stayed jammed on phones.
   Restore the platform stepgrid breakpoints. */
@media (max-width: 820px) {
  section[data-kms-variant="stage_stepper"] .stepgrid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 520px) {
  section[data-kms-variant="stage_stepper"] .stepgrid { grid-template-columns: 1fr !important; }
}

/* #6 _core timeline/anniversary_feature — CTAs were left-aligned by the block's
   default (alignment=start), reading off-centre on the sending / parish / quiet
   skins, and stayed left even after the block stacks + centres its text on
   mobile. Centre the actions on those skins, and always once stacked. */
[data-skin="sending"] .cx-ann .cx-actions,
[data-skin="parish"] .cx-ann .cx-actions,
[data-skin="quiet"] .cx-ann .cx-actions { justify-content: center; }
@media (max-width: 720px) { .cx-ann .cx-actions { justify-content: center; } }

/* #7 team/elders_amp_trustees — the leadership names (.care-opt h5, 15px) read
   too small for a roster on the feature band. Bump the name; leave the role. */
section[data-kms-variant="elders_amp_trustees"] .care-opt h5 { font-size: 17px; }

/* #8 watch/live_now_banner — the slim banner sat tight, especially at the mobile
   padding floor (40px). Raise the vertical padding floor and give the row more
   breathing room between copy and CTA. */
section[data-kms-variant="live_now_banner"] { padding-block: clamp(56px, 7vw, 96px); }
section[data-kms-variant="live_now_banner"] .row.between { gap: clamp(20px, 3vw, 32px); }

/* #10 times/service_languages — with no meta the language name now sits alone,
   so drop the residual bottom margin when the title is the row's only line, so
   the language code chip and the name centre cleanly. */
section[data-kms-variant="service_languages"] .event > div > h4:last-child { margin-bottom: 0; }

/* #11 closing/rich_sitemap_footer — the inline 4-column grid (1.6fr 1fr 1fr 1fr)
   never collapsed, so four columns stayed crushed on phones; the nav links also
   lacked hover feedback and rhythm. Collapse responsively and polish the items. */
footer[data-kms-variant="rich_sitemap_footer"] .footcol a {
  font-size: 13.5px; line-height: 1.3; padding: 6px 0; font-weight: 500;
  transition: color .14s ease;
}
@media (max-width: 760px) {
  footer[data-kms-variant="rich_sitemap_footer"] > .wrap > .grid { grid-template-columns: repeat(2, 1fr) !important; }
  footer[data-kms-variant="rich_sitemap_footer"] > .wrap > .grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  footer[data-kms-variant="rich_sitemap_footer"] > .wrap > .grid { grid-template-columns: 1fr !important; }
}
/* ===== CDL-823 end ===== */
/* ===== CDL-825 structure + customizability ===== */
/* archive/series_covers card_shape=square (church). The cover tile already
   ships square (inline aspect-ratio on the partial); this modifier lets a
   tenant explicitly pin a strict 1:1 cover so it stays square under any skin
   override. Default (no .cards-square) is untouched — byte-identical. */
.band.cards-square .mediacard .brandtile { aspect-ratio: 1 / 1 !important; }
/* ===== CDL-825 end ===== */
/* ===== CDL-826 design picks: block kicker styles + numbered-path step styles =====
   Owner-selected from the design-alternatives round (2026-07-20).
   .blk-kick: editorial kicker label replacing the filled chip on
   groups/featured_group (rule = accent dash + spaced caps, default; tick =
   accent left bar). .np-*: four step arrangements for starting/numbered_path
   via the step_style config field; stepper is the default. */
.blk-kick { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.blk-kick--rule { gap: 10px; }
.blk-kick--rule::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.blk-kick--tick { color: var(--ink-2); border-left: 3px solid var(--accent); padding-left: 10px; }

.np-steps { display: flex; flex-direction: column; }
.np-step { position: relative; }
.np-step h4 { margin: 0; font-size: 17px; }
.np-who { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; }

/* stepper (default): filled dot + connector line — reads as a path */
.np--stepper .np-step { padding: 0 0 22px 40px; }
.np--stepper .np-step::before { content: ""; position: absolute; left: 13px; top: 26px; bottom: -2px; width: 2px; background: var(--border); }
.np--stepper .np-step:last-child { padding-bottom: 0; }
.np--stepper .np-step:last-child::before { display: none; }
.np--stepper .np-num { position: absolute; left: 0; top: 0; width: 27px; height: 27px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 11.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.np--stepper .np-body h4 { padding-top: 2px; }

/* baseline: serif numeral shares the title's baseline; sub indents with title */
.np--baseline .np-step { display: grid; grid-template-columns: 46px 1fr; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--border); }
.np--baseline .np-step:last-child { border-bottom: 0; }
.np--baseline .np-num { font-family: var(--font-display); font-size: 25px; color: var(--accent); font-variant-numeric: tabular-nums; }

/* ghost: oversized low-opacity numeral behind the row */
.np--ghost .np-step { padding: 15px 0 15px 72px; border-bottom: 1px solid var(--border); overflow: hidden; }
.np--ghost .np-step:last-child { border-bottom: 0; }
.np--ghost .np-num { position: absolute; left: 0; top: 50%; transform: translateY(-52%); font-family: var(--font-display); font-size: 56px; font-weight: 700; line-height: 1; color: color-mix(in oklab, var(--accent) 18%, transparent); }

/* stack: small spaced numeral above the title */
.np--stack .np-step { padding: 13px 0; border-bottom: 1px solid var(--border); }
.np--stack .np-step:last-child { border-bottom: 0; }
.np--stack .np-num { display: block; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .18em; margin-bottom: 5px; }
/* ===== CDL-822 responsive wave A ===== *//*
   Mobile (~390px) passes for a batch of church/v1 blocks flagged in the human
   block review. Each fix is scoped to its block via [data-kms-variant]; the
   only reason for !important is to override an INLINE grid-template-columns /
   columns value the block sets for its desktop layout (a media query cannot
   otherwise beat an inline declaration). Contrast/on-accent colour issues are
   out of scope here (owned by the on-accent agent) and only noted.           */

/* 1. bulletins/latest_and_archive — the asymmetric 2-up feature grid keeps an
      inline `grid-template-columns:1fr 1.2fr`, so it never collapsed and the
      whole block overflowed on a phone. Collapse to one column. */
@media (max-width: 900px) {
  [data-kms-variant="latest_and_archive"] .grid.g2 { grid-template-columns: 1fr !important; }
}

/* 2. bulletins/annual_report_feature — same inline asymmetric grid
      (`1fr 1.3fr`) never collapsed; additionally the 3/4 portrait cover went
      full-bleed and dwarfed the copy. Collapse + cap the cover width. */
@media (max-width: 900px) {
  [data-kms-variant="annual_report_feature"] .grid.g2 { grid-template-columns: 1fr !important; }
  [data-kms-variant="annual_report_feature"] .ph-img { max-width: 280px; justify-self: center; }
}

/* 3. events/rhythm_of_the_week — the `.themegrid` had an inline
      `grid-template-columns:repeat(4,1fr)` that overrode the shared themegrid
      breakpoints, so eight day-cells stayed 4-across and were unreadable on a
      phone. Restore the 2-then-1 column collapse for this block. */
@media (max-width: 900px) {
  [data-kms-variant="rhythm_of_the_week"] .themegrid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 520px) {
  [data-kms-variant="rhythm_of_the_week"] .themegrid { grid-template-columns: 1fr !important; }
}

/* 4. livestream/upcoming_streams — each `.event` row is an inline
      `96px 1fr auto` grid; on a phone the 96px day rail + squeezed "Notify me"
      button broke the row. Drop the day rail to auto and float the button onto
      its own full-width line. */
@media (max-width: 640px) {
  [data-kms-variant="upcoming_streams"] .event-list .event {
    grid-template-columns: auto 1fr !important;
    gap: 6px 14px !important;
    align-items: start !important;
  }
  [data-kms-variant="upcoming_streams"] .event-list .event > button {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 6px;
  }
}

/* 5. archive/compact_recent_list — owner flagged the type as too small/hard to
      read and the mobile layout as too tightly packed. Bump the row type at all
      widths; on a phone drop the inline `columns:2` to a single column and give
      the rows more vertical breathing room. (The scripture-ref colour sits on
      the on-feature dark band — a contrast concern owned by the on-accent
      agent, not touched here.) */
[data-kms-variant="compact_recent_list"] .wrap a.row > span:first-child { font-size: 15px !important; }
[data-kms-variant="compact_recent_list"] .wrap a.row > span:last-child { font-size: 12px !important; }
@media (max-width: 640px) {
  [data-kms-variant="compact_recent_list"] .wrap > div:last-child { columns: 1 !important; }
  [data-kms-variant="compact_recent_list"] .wrap a.row { padding: 14px 0 !important; }
}

/* 6. archive/scripture_index — mobile-density only (the block's generalisation
      is owned elsewhere): the book chips wrapped too tightly. Loosen the chip
      gap on a phone. */
@media (max-width: 640px) {
  [data-kms-variant="scripture_index"] .row.gap-2 { gap: 11px !important; }
}

/* 7. archive/search_browse_by — the sermon rows are a 4-column
      `auto 1fr auto auto` grid that overflowed on a phone. Stack each row's
      fields vertically and let the search field fill the width. (The filter
      chips were removed from the markup per the same owner ruling.) */
@media (max-width: 640px) {
  [data-kms-variant="search_browse_by"] .sermon-row {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 2px;
  }
  [data-kms-variant="search_browse_by"] .field { max-width: 100% !important; }
}

/* 8. visit/quick_q_amp_a — SUPERSEDED BY CDL-856 (see below). The grid-area
      machinery this rule carried existed to hold the CTA under the intro
      column of a 50/50 grid; that grid is gone, the block is one column, and
      "last DOM child" now lands the CTA at the end of the block at every
      width — which is what the CDL-822 ruling asked for in the first place.
      The mobile centring survives, re-pointed at the new structure. */
/* CDL-822 end ============================================================== */

/* ===== CDL-856 visit/quick_q_amp_a — the answer-first register ==============
   Owner ruling (Proposal A, applied in place). The block used to set its
   QUESTIONS in the display face at the skin's display weight — the same
   register as the section heading — and its ANSWERS at 13.5px body. The part a
   reader scans past shouted and the part they came for whispered, so four
   pairs in a narrow column read as four competing titles. Here the answer
   takes the display face and the question becomes a numbered monospace label
   above it; hairline rules, not cards, do the separating.
   ========================================================================== */

/* Full-width header: heading and lede sit side by side, so the block no longer
   spends half its width on three lines of intro. */
[data-kms-variant="quick_q_amp_a"] .qqa-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 72px);
  align-items: end;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border-strong);
}
[data-kms-variant="quick_q_amp_a"] .qqa-head--solo { grid-template-columns: minmax(0, 1fr); }
/* No questions bound → the header is the whole block, so it keeps no rule. */
[data-kms-variant="quick_q_amp_a"] .qqa-head--only { padding-bottom: 0; border-bottom: 0; }
[data-kms-variant="quick_q_amp_a"] .qqa-head h3 { max-width: 16ch; }

[data-kms-variant="quick_q_amp_a"] .qqa-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(28px, 5vw, 80px);
}
/* CDL-860 — an ODD number of questions left one empty cell bottom-right, so
   the register looked like it had lost a row. The last row of an odd list
   spans both columns instead: its answer keeps its own measure, so it does not
   stretch into a long line, and the rules terminate evenly across the width. */
[data-kms-variant="quick_q_amp_a"] .qqa-row:nth-child(odd):last-child {
  grid-column: 1 / -1;
}
[data-kms-variant="quick_q_amp_a"] .qqa-row {
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--border);
}
/* CDL-867 — owner ruling 2026-08-01, propagating CDL-864 from `faq/two_column`
   so the site carries ONE Q&A register rather than two settings of it. The
   question goes 12px → 18px (it was, in the owner's words, practically
   unreadable) and the numbered index is removed: it read as "four things, in
   order", and a tenant's questions are not a sequence. The answer still leads —
   on face, weight and colour rather than on size. */
[data-kms-variant="quick_q_amp_a"] .qqa-q {
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1.38;
  letter-spacing: -.01em;
  color: var(--muted);
  margin: 0 0 10px;
  max-width: 30ch;
  text-wrap: pretty;
}
[data-kms-variant="quick_q_amp_a"] .qqa-a {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 19px;
  line-height: 1.32;
  letter-spacing: -.012em;
  color: var(--ink);
  margin: 0;
  max-width: 34ch;
  text-wrap: pretty;
}
[data-kms-variant="quick_q_amp_a"] .qqa-cta { margin-top: 26px; }
[data-kms-variant="quick_q_amp_a"] .qqa-tabs { margin-top: 26px; }

@media (max-width: 860px) {
  [data-kms-variant="quick_q_amp_a"] .qqa-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 14px;
  }
  [data-kms-variant="quick_q_amp_a"] .qqa-head h3 { max-width: none; }
  [data-kms-variant="quick_q_amp_a"] .qqa-list { grid-template-columns: minmax(0, 1fr); }
  [data-kms-variant="quick_q_amp_a"] .qqa-q,
  [data-kms-variant="quick_q_amp_a"] .qqa-a { max-width: none; }
}
@media (max-width: 640px) {
  [data-kms-variant="quick_q_amp_a"] .qqa-cta { display: block; text-align: center; }
}
/* CDL-856 end ============================================================== */
/* ===== CDL-821 hero family — placeholder-label leak, full-height toggle, mobile passes ===== */

/* (1) Placeholder-label leak (shared-source fix). `.ph::after` paints
   `content: attr(data-ph)` as a white caption band — an authoring hint for an
   EMPTY image slot. When a real/demo image is present it is set as an inline
   `background-image` on the same `.ph` element, and the hint band then leaks on
   top of the photo on the rendered/public output. Suppress the band whenever an
   image is present; the attribute selector out-specifies the base `.ph::after`
   so this is order-independent, and genuinely-empty slots keep their guidance.
   Fixes hero.discipleship_promise, hero.live_online, hero.quiet_statement,
   hero.service_times_visit, next.primary_step_feature,
   starting.guided_plan_feature, watch.featured_recent, visit.for_your_kids. */
.ph[style*="background-image"]::after { display: none; }

/* (2) Full-height toggle. The hero `full_height` boolean (default false → no
   class) makes a hero fill one viewport. `svh` dodges the mobile URL-bar jump
   with a `vh` fallback. Default render is byte-identical when the flag is off. */
/* CDL-847 R1: the nav is an in-flow band above the hero, so a raw 100vh hero
   pushes its centred content below the visible centre by the chrome height.
   Subtract `--chrome-h` (the nav's approximate height) so nav + hero == one
   viewport and the content lands SMACK in the centre, desktop + mobile. */
.church-template { --chrome-h: 96px; }
.church-template .is-full-height {
  min-height: calc(100vh - var(--chrome-h));
  min-height: calc(100svh - var(--chrome-h));
}
/* `.band` heroes are padded flow sections — vertically center content when tall
   (`.ch-hero-full` already flexes to its foot, so only the min-height applies). */
.church-template .band.is-full-height { display: flex; flex-direction: column; justify-content: center; }

/* (3–6) Mobile passes — make each flagged hero read deliberately, not cramped.
   Desktop rendering is untouched (all rules are scoped to a mobile breakpoint
   and a single variant). */
@media (max-width: 560px) {
  /* (3) hero.campaign — the progress bar and the "of 50,000 …" label were
     squeezed onto one wrapping row. Stack them: bar on its own line, label
     below, left-aligned and full size. */
  [data-kms-variant="campaign"] .row:has(> .bar-track) { flex-direction: column; align-items: stretch; gap: 12px; }
  [data-kms-variant="campaign"] .row:has(> .bar-track) > .label { text-align: left; }

  /* (4) hero.multilingual_welcome — the centered greeting bunched against the
     top edge. Give the band real vertical presence and open the headline→lede
     rhythm so it reads as a composed statement. */
  [data-kms-variant="multilingual_welcome"].band { padding-block: clamp(48px, 13vw, 76px); }
  [data-kms-variant="multilingual_welcome"] h2.display { margin-bottom: 18px; }

  /* (5) hero.live_online — the two CTAs wrapped raggedly at their content
     widths. Let them read as full-width, stacked actions. */
  [data-kms-variant="live_online"] .row.wrapflex .btn { flex: 1 1 100%; }
}

/* (6) hero.service_times_visit — "Plan your visit" floated below Sundays/Where
   via margin-left:auto and wrapped awkwardly. A wider breakpoint catches the
   wrap zone before it breaks. Stack the strip into a column, drop the vertical
   divider, and make the CTA a deliberate full-width action. */
@media (max-width: 640px) {
  [data-kms-variant="service_times_visit"] .visit-strip { flex-direction: column; align-items: stretch; gap: 16px; }
  [data-kms-variant="service_times_visit"] .visit-strip .vi { align-items: flex-start; }
  [data-kms-variant="service_times_visit"] .visit-strip .divider { display: none; }
  [data-kms-variant="service_times_visit"] .visit-strip-action .btn { display: flex; justify-content: center; }
}

/* ===== CDL-830: content detail pages ===== */
/* Article / video / audio / publication detail leaves. Token-driven so they
   re-clothe under all five skins + the accent switch. Layout only — chrome
   (nav/footer) and breadcrumbs come from _browse_base + browse.css macros. */
.cdl-detail-measure { max-width: 72ch; }

/* Byline / meta strip (author · date · duration). */
.cdl-byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em;
  color: var(--muted); margin: 0 0 26px;
}
.cdl-byline > span + span::before { content: "·"; margin-right: 10px; color: var(--faint); }
.cdl-byline .cdl-byline-author { color: var(--ink-2); }

/* Reading prose for content body_html (headings, lists, quotes, media). */
.cdl-detail-prose { font-size: clamp(16px, 1.15vw, 18px); line-height: 1.72; color: var(--ink-2); }
.cdl-detail-prose > :first-child { margin-top: 0; }
.cdl-detail-prose p { margin: 0 0 1.15em; text-wrap: pretty; }
.cdl-detail-prose h2, .cdl-detail-prose h3, .cdl-detail-prose h4 {
  font-family: var(--font-display); color: var(--ink);
  line-height: 1.25; margin: 1.8em 0 .5em;
}
.cdl-detail-prose h2 { font-size: clamp(22px, 2vw, 28px); }
.cdl-detail-prose h3 { font-size: clamp(19px, 1.6vw, 22px); }
.cdl-detail-prose ul, .cdl-detail-prose ol { margin: 0 0 1.15em; padding-left: 1.4em; }
.cdl-detail-prose li { margin: 0 0 .4em; }
.cdl-detail-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cdl-detail-prose blockquote {
  margin: 1.4em 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent); color: var(--ink);
  font-family: var(--font-display); font-size: 1.15em; font-style: italic;
}
.cdl-detail-prose img { max-width: 100%; height: auto; border-radius: var(--radius); }

/* Tag chips + primary actions. */
.cdl-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.cdl-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }

/* ---- Video detail: Plyr-managed player, church-themed ---- */
/* Plyr chrome derives entirely from the church accent token — no literals.
 * The aspect-ratio + object-fit live on the <video> ELEMENT (not a wrapper)
 * so portrait clips letterbox inside Plyr's frame with the play-large control
 * visible; a parent-container ratio/overflow would fight Plyr and hide it. */
.ct-video { --plyr-color-main: var(--accent); }
.ct-video .plyr--video { border-radius: var(--radius-lg); overflow: hidden; }
.ct-video .plyr__video-wrapper video {
  width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: var(--ink);
}
.ct-video .plyr--full-ui input[type=range] { color: var(--accent); }
.ct-video .plyr__control--overlaid { background: color-mix(in oklab, var(--accent) 90%, transparent); }
.ct-video .plyr__control--overlaid:hover { background: var(--accent); }
.ct-video .plyr__menu__container
  .plyr__control[role=menuitemradio][aria-checked=true]::before { background: var(--accent); }
.ct-video-empty {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
}
.ct-video-empty img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ct-video-empty .label { position: relative; color: var(--muted); }

/* ---- Audio listen page: transport band (Abide-standard, church-skinned) ---- */
/* Cover-in-player + transport, driven by shared/transcript_audio_player.js. */
.ct-player {
  display: grid; grid-template-columns: 180px 1fr; align-items: stretch;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); overflow: hidden;
}
.ct-cover { position: relative; min-height: 180px; background: var(--surface-2); }
.ct-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ct-cover-empty {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.ct-transport { padding: 22px 26px 20px; display: flex; flex-direction: column; justify-content: center; }
.ct-controls { display: flex; align-items: center; gap: 15px; margin-bottom: 18px; }
/* Play pill — the focal element. INK fill + surface glyph (mirrors Abide's
 * var(--ink)/var(--paper)): --ink is the highest-contrast foreground token on
 * every church skin surface, so the pill can never sink into a warm/dark band
 * whatever accent the tenant picked (an accent fill fails on parish/oxblood
 * and any dark accent on a dark band). Accent stays where it works: the scrub
 * progress, the active language chip, the active cue highlight. */
/* `button.ct-play` (not bare `.ct-play`): .church-template button { color:
 * inherit } at (0,1,1) otherwise beats the class selector and the glyph
 * inherits ink — ink-on-ink, invisible. Same specificity + later in file wins. */
button.ct-play {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  background: var(--ink); color: var(--surface); border: none;
  transition: filter .14s ease, transform .12s ease;
}
.ct-play:hover { filter: brightness(1.06); }
.ct-play:active { transform: translateY(1px); }
.ct-glyph-pause { display: none; }
.ct-play[aria-pressed="true"] .ct-glyph-play { display: none; }
.ct-play[aria-pressed="true"] .ct-glyph-pause { display: inline; }
.ct-skip {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  background: transparent; color: var(--muted); border: 1px solid var(--border-strong);
  transition: color .14s ease, border-color .14s ease;
}
.ct-skip:hover { color: var(--ink); border-color: var(--ink); }
.ct-now { margin-left: 6px; min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.ct-now-title {
  font-family: var(--font-display); font-size: 18px; line-height: 1.2;
  color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ct-track { position: relative; height: 5px; border-radius: 4px; background: var(--surface-2); cursor: pointer; }
.ct-progress { position: absolute; inset: 0; width: 0%; border-radius: 4px; background: var(--accent); }
.ct-time-row { margin-top: 11px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.ct-time { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .05em; color: var(--muted); font-variant-numeric: tabular-nums; }
/* Download — quiet text link, never a competing pill. */
.ct-download {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--border-strong); padding-bottom: 2px;
}
.ct-download:hover { color: var(--accent); border-color: var(--accent); }

/* ---- Audio listen page: transcript (sticky rail + synced cue card) ---- */
.ct-tx { display: grid; grid-template-columns: 0.5fr 1.5fr; gap: clamp(28px, 4vw, 64px); align-items: start; margin-top: clamp(32px, 4vw, 56px); }
.ct-tx-rail { position: sticky; top: 120px; }
.ct-tx-eyebrow { margin: 0 0 16px; }
.ct-tx-lang-label { display: block; margin-bottom: 10px; color: var(--faint); }
.ct-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ct-chip {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--radius-pill, 3px); cursor: pointer;
  background: var(--surface); color: var(--ink-2); border: 1px solid var(--border-strong);
  transition: color .14s ease, border-color .14s ease, background .14s ease;
}
.ct-chip:hover { border-color: var(--ink); }
.ct-chip.is-active { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.ct-card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.ct-card-head { padding: 15px 24px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.ct-cues { list-style: none; margin: 0; padding: 6px 0; max-height: 640px; overflow-y: auto; scroll-behavior: smooth; }
.ct-cue {
  display: grid; grid-template-columns: 66px 1fr auto; gap: 20px; align-items: start;
  padding: 15px 24px; cursor: pointer; border-left: 2px solid transparent;
  transition: background .12s ease, border-color .12s ease;
}
.ct-cue:hover { background: var(--surface-2); }
.ct-cue.is-active { background: var(--accent-soft); border-left-color: var(--accent); }
.ct-cue-time { font-family: var(--font-mono); font-size: 11px; color: var(--muted); padding-top: 4px; font-variant-numeric: tabular-nums; }
.ct-cue.is-active .ct-cue-time { color: var(--accent); }
.ct-cue-text { font-family: var(--font-display); font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.ct-cue.is-active .ct-cue-text { color: var(--ink); }
.ct-cue-jump {
  width: 26px; height: 26px; border-radius: 50%; margin-top: 3px; padding: 0; flex-shrink: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--faint); border: 1px solid var(--border-strong);
}
.ct-cue.is-active .ct-cue-jump { color: var(--accent); border-color: var(--accent); }
.ct-cue-empty { padding: 18px 24px; font-size: 13px; }

/* Publication cover + actions. */
.cdl-pub {
  display: grid; grid-template-columns: 260px 1fr;
  gap: clamp(28px, 3vw, 56px); align-items: start;
}
.cdl-pub-cover {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border);
}
.cdl-pub-cover img { width: 100%; height: auto; display: block; }
.cdl-pub-placeholder { aspect-ratio: 3 / 4; }

@media (max-width: 860px) {
  .ct-tx { grid-template-columns: 1fr; }
  .ct-tx-rail { position: static; }
}
@media (max-width: 640px) {
  .cdl-pub { grid-template-columns: 1fr; }
  .cdl-pub-cover { max-width: 220px; }
  /* Player collapses: cover becomes a 200px band above the transport. */
  .ct-player { grid-template-columns: 1fr; }
  .ct-cover { min-height: 0; aspect-ratio: 16 / 9; }
  .ct-cue { grid-template-columns: 52px 1fr auto; gap: 14px; }
}

/* ===== CDL-844: home polish (owner rulings) ===== */

/* (R3) starting.brand_tile_grid — the "Pick a path…" lede competed with the
   heading. Drop its size (block-scoped; the global .lede is untouched). */
[data-kms-variant="brand_tile_grid"] .lede {
  font-size: clamp(14px, 1.05vw, 15.5px);
  color: var(--muted);
}

/* (R5) events.category_filtered — the date column was too narrow, so a bound
   event's month/day wrapped over multiple lines beside empty whitespace. Give
   the date a single-line month + a wider, no-wrap column; the flexible content
   column shifts right accordingly. */
[data-kms-variant="category_filtered"] .event-list .event { grid-template-columns: 78px 1fr auto; }
[data-kms-variant="category_filtered"] .ev-date { padding-inline: 6px; }
[data-kms-variant="category_filtered"] .ev-date .m { white-space: nowrap; }
[data-kms-variant="category_filtered"] .ev-date .d { white-space: nowrap; }
@media (max-width: 560px) {
  [data-kms-variant="category_filtered"] .event-list .event { grid-template-columns: 64px 1fr; }
}

/* (R8) Detail-page field parity with Abide: the speaker bio line under the
   byline, and the excerpt rendered as its own meta paragraph (only when it
   differs from the hero deck). */
.cdl-byline-note {
  font-size: 14px; color: var(--muted); line-height: 1.5;
  margin: -14px 0 22px; max-width: 60ch;
}
.cdl-detail-excerpt {
  font-family: var(--font-display); font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5; color: var(--ink-2); margin: 0 0 24px; max-width: 60ch;
}

/* (R7) campus_language nav — inline "Sunday Gathering · 10:30 · 12:30" times
   strip (Kindness style), the config-driven alternative to the pill. Plain
   text, quiet weight; the toggles stay right (margin-left:auto on their row). */
.chnav-campus .times-strip {
  display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em;
  color: var(--muted);
}
.chnav-campus .times-strip .ts-label { color: var(--ink-2); }
.chnav-campus .times-strip .ts-sep { color: var(--faint); }

/* ===== CDL-847: visual round 4 (owner rulings) ===== */

/* (R3) The global `.lede` was reduced to the paths-block scale everywhere
   (see the two base `.lede` rules). The HERO lede keeps one step more presence
   so the above-the-fold hierarchy still reads — but well below the old size. */
[data-kms-section="hero"] .lede { font-size: clamp(16px, 1.35vw, 18.5px); }

/* (R2) starting.brand_tile_grid — dp empty-thumb standard. The loud brand-word
   tile is retired. Scoped to the variant so the shared `.brandtile` (mediacards
   etc.) is untouched. Image present → clean thumbnail, no overlay. Image absent
   → a quiet washed hatch scaffold with a small mono slot label (the content
   word), not decorative art. Title + PATH kicker render below the tile. */
[data-kms-variant="brand_tile_grid"] .brandtile.bt-scaffold {
  background: var(--surface-2); color: var(--muted);
  place-items: center; aspect-ratio: 4 / 3;
}
[data-kms-variant="brand_tile_grid"] .bt-scaffold:not(.has-img) {
  background:
    repeating-linear-gradient(135deg,
      color-mix(in oklab, var(--ink) 4%, transparent) 0 10px, transparent 10px 20px),
    var(--surface-2);
  border: 1px solid var(--border);
}
[data-kms-variant="brand_tile_grid"] .bt-slot {
  color: var(--muted); text-align: center; padding-inline: 14px;
}
[data-kms-variant="brand_tile_grid"] .bt-scaffold.has-img { background: none; border: 0; }
[data-kms-variant="brand_tile_grid"] .bt-scaffold.has-img .bt-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
[data-kms-variant="brand_tile_grid"] .startcard .sc-kicker { color: var(--accent); margin-bottom: -6px; }

/* ---------------------------------------------------------------------------
   PR6 · CompositionFrames — arrange adjacent blocks inside one shared band.
   Inert until the church hydration pass emits a `.church-frame` wrapper (a
   page with no `_frame` markers never gets one), and scoped to
   `.church-template` so no other template is affected. Members lose their outer
   band padding — the frame owns the vertical rhythm — so grouped blocks read as
   one band rather than isolated full-width sections with excessive padding.
   --------------------------------------------------------------------------- */
.church-template .church-frame { display: block; }
.church-template .church-frame .site-section--framed .band {
  padding-block: clamp(20px, 3vw, 40px);
}

/* Two members side by side (a compact intro next to a checklist; media + text). */
.church-template .church-frame--split_opener,
.church-template .church-frame--feature_split {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 0;
}
.church-template .church-frame--split_opener > .site-section,
.church-template .church-frame--feature_split > .site-section { min-width: 0; }
@media (max-width: 860px) {
  .church-template .church-frame--split_opener,
  .church-template .church-frame--feature_split { grid-template-columns: 1fr; }
}

/* A responsive strip / grid of compact members. */
.church-template .church-frame--proof_strip,
.church-template .church-frame--card_grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0;
}
.church-template .church-frame--proof_strip > .site-section .band,
.church-template .church-frame--card_grid > .site-section .band {
  padding-block: clamp(16px, 2.4vw, 32px);
}

/* Stacked members with tight seams (opener stack, dense archive, closing band). */
.church-template .church-frame--compact_stacked_opener .site-section--framed .band,
.church-template .church-frame--dense_archive .site-section--framed .band {
  padding-block: clamp(14px, 2vw, 28px);
}
.church-template .church-frame--closing_action_band { display: block; }

/* ==========================================================================
   H1 · Inner-page header hand-off shapes (page_header family)
   --------------------------------------------------------------------------
   An interior header must always hand off to the body, never float above a
   dead gap. `render.header_variant` (resolved in services.page_header_variants
   from the site-level chrome default + the per-section header_variant axis)
   stamps one of four shapes onto the page_header wrapper. Unset → the section
   keeps its plain `.band .band-tight` treatment (byte-identical legacy render).
   ========================================================================== */

/* V1 · Anchored split — title anchors left, the orientation reads right, and a
   full-width hairline draws the base so the first section begins ON the rule. */
.ph-hv--anchored_split { border-bottom: 1px solid var(--border-strong); }
.ph-hv--anchored_split .ph-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: end;
}
.ph-hv--anchored_split .ph-split--solo {
  grid-template-columns: minmax(0, 720px);
}
.ph-hv--anchored_split .ph-split-aside { padding-bottom: 6px; }
@media (max-width: 720px) {
  .ph-hv--anchored_split .ph-split { grid-template-columns: 1fr; gap: 18px; align-items: start; }
}

/* V2 · Attached functional bar — the header's bottom edge does a job. The band
   trims its own bottom padding and the facts bar becomes the hard edge, carrying
   a hairline top + bottom; the first section flushes beneath it. Facts are
   blank-not-sample (the template drops any item with no value). */
.ph-hv--attached_bar { padding-bottom: 0; }
.ph-facts-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.ph-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
}
.ph-fact { padding: 16px 22px; }
.ph-fact + .ph-fact { border-left: 1px solid var(--border); }
.ph-fact-k { margin-bottom: 6px; color: var(--accent); }
.ph-fact-v {
  font-family: var(--font-display, inherit);
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
}
@media (max-width: 640px) {
  .ph-facts { grid-template-columns: 1fr; }
  .ph-fact + .ph-fact { border-left: 0; border-top: 1px solid var(--border); }
}

/* V3 · Banded — the header sits on a quiet tinted band; the tone change IS the
   seam. Body flushes on the surface below, so nothing floats. The safe default. */
.ph-hv--banded {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

/* V4 · Fused — on a text-first header this degrades to a full tinted band that
   carries the title (real media fusion lives in the image_strip variant). */
.ph-hv--fused { background: var(--surface-2); }

/* ==========================================================================
   V2-FM9A · Page-function visual refinement
   --------------------------------------------------------------------------
   These rules implement the first structural pass ratified for Visit, Give,
   and listing pages. They are deliberately scoped by section type + variant:
   no content is hidden, and no fact is invented to make a layout work.
   ========================================================================== */

/* Visit: once a real facts bar closes the header, the complete schedule reads
   as a compact register rather than a second oversized hero. Every hydrated
   row remains present; only the arrangement changes. */
.site-section[data-section-type="page_header"]
  + .site-section[data-section-type="times"][data-section-variant="service_languages"]
  > .ax-section > .band {
  padding-block: clamp(34px, 4.2vw, 58px);
}
.site-section[data-section-type="page_header"]
  + .site-section[data-section-type="times"][data-section-variant="service_languages"]
  .event-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.site-section[data-section-type="page_header"]
  + .site-section[data-section-type="times"][data-section-variant="service_languages"]
  .event {
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 126px;
  padding: 18px;
  border-top: 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.site-section[data-section-type="page_header"]
  + .site-section[data-section-type="times"][data-section-variant="service_languages"]
  .event .tag {
  grid-column: 2;
  justify-self: start;
}
.site-section[data-section-type="page_header"]
  + .site-section[data-section-type="times"][data-section-variant="service_languages"]
  .ev-date {
  min-width: 0;
}
@media (max-width: 960px) {
  .site-section[data-section-type="page_header"]
    + .site-section[data-section-type="times"][data-section-variant="service_languages"]
    .event-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .site-section[data-section-type="page_header"]
    + .site-section[data-section-type="times"][data-section-variant="service_languages"]
    .event-list {
    grid-template-columns: 1fr;
  }
  .site-section[data-section-type="page_header"]
    + .site-section[data-section-type="times"][data-section-variant="service_languages"]
    .event {
    min-height: 0;
    padding: 15px;
  }
}

/* Give: the first block begins close to its anchored header. On small screens
   the actual giving control precedes the explanatory allocation copy, keeping
   the page's primary task within reach without dropping the trust content. */
.site-section[data-section-type="page_header"]
  + .site-section[data-section-type="give"][data-section-variant="use_of_funds"]
  > .ax-section > .band {
  padding-block: clamp(42px, 4.5vw, 64px);
}
@media (max-width: 900px) {
  .site-section[data-section-type="page_header"]
    + .site-section[data-section-type="give"][data-section-variant="use_of_funds"]
    > .ax-section > .band > .wrap > .grid.g2 > .card[data-give] {
    order: -1;
  }
}

/* Listing archetype: preserve the fixed intro → toolbar → register → close
   skeleton, while letting each part collapse intentionally instead of squeezing
   a desktop grid into a phone. */
.ch-listing-intro { padding: 40px 0 30px; }
/* CDL-855b: the rule under the listing head is REMOVED (owner, 2026-07-31).
   Two problems, one line. It was drawn on `.wrap`, whose border-box includes
   `padding-inline: var(--pad)` — so the rule started ~51px LEFT of the header's
   wordmark and read as a band that did not line up with the chrome. And a
   composed listing page always carries a `listing_toolbar` directly beneath it:
   the filter bar already separates the head from the register, so the rule was
   a second divider doing the same job. Padding is kept so the head still
   breathes. (The standalone browse routes keep their own `.br-head` rule.) */
.ch-listing-intro > .wrap { padding-bottom: 30px; }
.ch-li-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: end;
}
.ch-listing-grid-band { padding: 34px 0 60px; }
.ch-listing-cards {
  display: grid;
  gap: 34px 30px;
}
.ch-listing-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ch-listing-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ch-listing-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 13px;
  color: inherit;
  text-decoration: none;
}
.ch-listing-card-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-2);
}
.ch-listing-card-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}
.ch-listing-card-body--note {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.ch-listing-register {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.ch-listing-register-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto auto;
  gap: 22px;
  align-items: center;
  padding: 17px 4px;
  border-bottom: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
}
.ch-listing-register-date,
.ch-listing-register-metric {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.ch-listing-register-speaker {
  font-size: 13px;
  color: var(--muted);
}
.ch-listing-closing {
  padding: 96px 0;
  color: var(--on-feature, #f2e9dc);
  background: var(--feature, #2b2018);
}
.ch-listing-closing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 64px;
  align-items: end;
}
.ch-listing-closing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  padding-bottom: 6px;
}
@media (max-width: 900px) {
  .ch-listing-cards--3,
  .ch-listing-cards--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ch-listing-register-row {
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 16px;
  }
  .ch-listing-register-metric { display: none; }
}
@media (max-width: 720px) {
  .ch-listing-intro { padding: 30px 0 24px; }
  .ch-li-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }
  .ch-listing-grid-band { padding: 24px 0 44px; }
  .ch-listing-closing { padding: 64px 0; }
  .ch-listing-closing-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }
  .ch-listing-closing-actions { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .ch-listing-cards--3,
  .ch-listing-cards--4 {
    grid-template-columns: 1fr;
  }
  .ch-listing-register-row {
    grid-template-columns: 1fr auto;
    gap: 5px 14px;
    align-items: start;
    padding-block: 16px;
  }
  .ch-listing-register-title { grid-column: 1 / -1; grid-row: 1; }
  .ch-listing-register-date { grid-column: 1; grid-row: 2; }
  .ch-listing-register-speaker { grid-column: 2; grid-row: 2; }
}

/* ============================================================
   CDL D7 — full-bleed closings
   ------------------------------------------------------------
   Four closing variants whose CONTENT CONTAINER IS THE BAND, so the
   measured `content / band` ratio is 1.000 and the render profile
   classifies them `full_bleed`. Before D7 every church/v1 closing put its
   content inside `.wrap` and therefore measured 0.900 — the shared gutter,
   not a design choice — leaving the template with no wide closing at all
   and every page ending on the same measure it had held throughout.

   Two mechanisms earn the band, both already present in this template:
     A. the content container is the band itself (split_seam / edge_rail /
        deep_close carry no `.wrap`);
     B. a painted full-width sibling the gutter-bound wrapper cannot
        contain (image_bleed — the route hero/quiet_statement,
        hero/discipleship_promise and page_header/image_strip already take).

   Each variant keeps `.band` on its outer <section> so the CDL-104 tone
   axis (`.ax-tone-* .band`) still repaints the ground — that is what makes
   the ground tenant-switchable — but neutralises `.band`'s own
   padding-block, because a full-bleed closing owns its padding internally.
   `.ch-close-*.band` is (0,2,0) and later in the file than
   `.ax-density-* .band`, so it wins that tie deliberately; the density axis
   is re-expressed against each variant's own inner padding below.

   Horizontal insets use `--pad` — the same token `.wrap` uses — so text
   still lands on the page's gutter line while the BAND reaches the edges.
   ============================================================ */

.ch-close-split.band,
.ch-close-rail.band,
.ch-close-deep.band,
.ch-close-image.band { padding-block: 0; }

/* ---------- A · split seam ------------------------------------------
   Two tonal panels meeting on a vertical seam that runs edge to edge. The
   seam is the design: inside a gutter the panels stop dividing the page and
   become a card floating on it. The copy pane is transparent so it inherits
   whatever ground the tone axis resolves; the action pane is the fixed
   `--feature` counterweight that makes the seam read. */
.ch-close-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
}
.ch-close-split-pane {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: clamp(38px, 5vw, 64px) var(--pad);
}
.ch-close-split-pane--copy { background: transparent; }
.ch-close-split-pane--act {
  background: var(--feature);
  color: var(--on-feature);
  align-items: flex-start;
  gap: 12px;
}
.ch-close-split-title { max-width: 16ch; }
.ch-close-split-body { max-width: 46ch; }

/* ---------- B · edge rail -------------------------------------------
   The closing collapsed to a single edge-to-edge bar: hairline above and
   below, one internal vertical hairline, copy left, actions right. A rail
   is page furniture, not a page section — its hairlines read as a boundary
   of the page, and a boundary that stops short of the edge is not one. */
.ch-close-rail {
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}
.ch-close-rail-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.ch-close-rail-cell {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: clamp(22px, 3vw, 34px) var(--pad);
}
.ch-close-rail-cell + .ch-close-rail-cell { border-left: 1px solid currentColor; }
.ch-close-rail-title { max-width: 24ch; }

/* ---------- C · deep close ------------------------------------------
   One display line at the full band measure, a band-width rule, a baseline
   row, and a solid accent edge on the band's bottom. That edge is the
   load-bearing element: the chrome footer beneath every closing paints
   `var(--feature)`, so a dark closing dissolves into it — and a rule that
   stops short of the edges cannot separate two full-bleed surfaces. */
.ch-close-deep {
  border-bottom: 5px solid var(--accent);
  padding-top: clamp(52px, 6.5vw, 92px);
}
.ch-close-deep-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-inline: var(--pad);
}
.ch-close-deep-rule {
  height: 1px;
  background: currentColor;
  opacity: .28;
  margin-top: clamp(32px, 4vw, 54px);
}
.ch-close-deep-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px var(--pad) clamp(24px, 3vw, 34px);
}
.ch-close-deep-body { max-width: 34ch; }

/* ---------- the empty-image placeholder ------------------------------
   Ported from the Abide prototype's `<Photo>` primitive (ui.jsx +
   shared.css `.photo`) at its original geometry: a 135deg hatch on a
   12px stripe / 24px period over a two-stop 180deg ground, with a
   lowercase mono caption pinned bottom-left — drawn ONLY when no image is
   bound. It is deliberately NOT church's own `.ph` (2px/11px hatch,
   centred uppercase chip): `.ph` is an authoring hint sized for a slot
   inside a band, and this is a full-bleed surface a visitor sees last.
   Kept as its own primitive so any church block taking an image can use
   it. `--ch-photo-hatch` is the one knob the tone rules below turn. */
.ch-photo {
  position: relative;
  overflow: hidden;
  --ch-photo-hatch: rgba(34, 28, 21, .04);
  background:
    repeating-linear-gradient(135deg, var(--ch-photo-hatch) 0 12px, transparent 12px 24px),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  color: var(--muted);
}
.ch-photo > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ch-photo-label {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: lowercase;
  color: var(--faint);
}
.ch-photo--ink {
  --ch-photo-hatch: rgba(255, 255, 255, .04);
  background:
    repeating-linear-gradient(135deg, var(--ch-photo-hatch) 0 12px, transparent 12px 24px),
    linear-gradient(180deg, color-mix(in oklab, var(--on-feature) 12%, var(--feature)), var(--feature));
  color: color-mix(in oklab, var(--on-feature) 62%, transparent);
}
.ch-photo--ink .ch-photo-label { color: color-mix(in oklab, var(--on-feature) 46%, transparent); }

/* ---------- D · image bleed ------------------------------------------ */
.ch-close-image {
  position: relative;
  isolation: isolate;
  border-bottom: 5px solid var(--accent);
}
.ch-close-image .ch-photo { position: absolute; inset: 0; z-index: 0; }
.ch-close-image-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(24, 18, 13, .20) 0%, rgba(24, 18, 13, .72) 78%);
}
.ch-close-image-copy {
  position: relative; z-index: 2;
  color: var(--on-feature);
  padding: clamp(60px, 8vw, 120px) var(--pad) clamp(28px, 3.5vw, 44px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.ch-close-image-lhs { display: flex; flex-direction: column; gap: 18px; }
.ch-close-image-title { max-width: 18ch; }

/* Shared action row for all four. */
.ch-close-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- density axis, re-expressed against the inner padding ------
   `.band`'s padding-block is zeroed above, so `.ax-density-* .band` has
   nothing left to scale. These restate the same compact ≈ 0.6x /
   spacious ≈ 1.5x intent against each variant's own box. */
.church-template .ax-density-compact .ch-close-split-pane { padding-block: clamp(24px, 3.2vw, 40px); }
.church-template .ax-density-spacious .ch-close-split-pane { padding-block: clamp(56px, 7.5vw, 96px); }
.church-template .ax-density-compact .ch-close-rail-cell { padding-block: clamp(14px, 1.9vw, 21px); }
.church-template .ax-density-spacious .ch-close-rail-cell { padding-block: clamp(33px, 4.5vw, 51px); }
.church-template .ax-density-compact .ch-close-deep { padding-top: clamp(32px, 4vw, 56px); }
.church-template .ax-density-spacious .ch-close-deep { padding-top: clamp(78px, 9.8vw, 138px); }
.church-template .ax-density-compact .ch-close-image-copy { padding-top: clamp(36px, 4.8vw, 72px); }
.church-template .ax-density-spacious .ch-close-image-copy { padding-top: clamp(90px, 12vw, 180px); }

/* The image placeholder follows the resolved ground: an inverse closing
   gets the ink panel (its default, set on the element), a neutral_alt one
   the light panel. */
.church-template .ax-tone-neutral_alt .ch-close-image .ch-photo--ink {
  --ch-photo-hatch: rgba(34, 28, 21, .04);
  background:
    repeating-linear-gradient(135deg, var(--ch-photo-hatch) 0 12px, transparent 12px 24px),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}

@media (max-width: 760px) {
  .ch-close-split { grid-template-columns: 1fr; }
  .ch-close-rail-inner { grid-template-columns: 1fr; }
  .ch-close-rail-cell + .ch-close-rail-cell {
    border-left: 0;
    border-top: 1px solid currentColor;
  }
  .ch-close-image-copy { align-items: flex-start; flex-direction: column; }
}

/* Eyebrow + body on an inverted ground.
   `.label` resolves to `--muted` and `.body` to `--ink-2` — both chosen for a
   light band. `.band-feature` already restates them, but `.band-accent` never
   did, and `image_bleed` sits on a photograph rather than on any band-* class,
   so all three need the ground's own on-colour. Inheriting (rather than naming
   a token) is what keeps this correct when the tone axis repaints the band:
   the `.ax-tone-* .band .label` rules are (0,3,0) and still win where they
   apply, so the axis stays authoritative and these only cover the default. */
.ch-close-split-pane .label,
.ch-close-rail-cell .label,
.ch-close-deep .label,
.ch-close-image-copy .label { color: inherit; opacity: .72; }

.ch-close-split-pane .body,
.ch-close-rail-cell .body,
.ch-close-deep .body,
.ch-close-image-copy .body { color: inherit; opacity: .82; }


/* ===== CDL-862 · the composed listing's empty state = Variant A ===========
   One empty state on the site, not two. Mirrors `.br-empty*` in browse.css
   exactly (the browse targets are adopting this chrome, so the two must not
   drift): no box, message on the wrap edge, the accent mono label carries the
   state name and the sentence is quiet body copy — an empty state is an aside,
   not a headline, so it must not compete with the page title.
   ========================================================================= */
.ch-listing-empty { padding: clamp(40px, 5vw, 64px) 0 clamp(28px, 3vw, 40px); }
.ch-listing-empty-label { margin: 0 0 12px; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); }
.ch-listing-empty-line { margin: 0; max-width: 52ch; color: var(--muted);
  font-size: 16px; line-height: 1.6; text-wrap: pretty; }
/* CDL-862 end ============================================================= */


/* ===== CDL-863 · breadcrumb seat on the composed listing frame ============
   The exhaustive browse adopts this chrome but keeps its breadcrumb: it is
   wayfinding for a page the reader drilled down to, and the composed front
   door (which nobody drills down to) simply never needed one. The trail sits
   ABOVE the intro band on the same wrap edge, and the band's own top padding
   is reduced so the two read as one head rather than two stacked bands.
   ========================================================================= */
.ch-listing-crumbs { padding: 30px 0 0; }
.ch-listing-crumbs .br-crumbs { margin: 0; }
.ch-listing-crumbs + .ch-listing-intro { padding-top: 18px; }
@media (max-width: 700px) {
  .ch-listing-crumbs { padding-top: 22px; }
  .ch-listing-crumbs + .ch-listing-intro { padding-top: 14px; }
}
/* CDL-863 end ============================================================= */


/* ===== CDL-864 · faq/two_column — the ruled answer-first register ========
   Owner ruling 2026-08-01 (deck R1, Option A). The question was up to 28px in
   the display face against a 14px answer; it now reads question-quiet /
   answer-loud, the register ruled for `quick_q_amp_a` on 31 July.

   Two owner amendments to that register, both deliberate:
     * no index — a tenant's questions are not a sequence, so numbering them
       was decoration rather than structure;
     * the question is 18px, 50% up on the register's 12px, which the owner
       found practically unreadable at that size. The answer still leads on
       face, weight and colour rather than on size alone.
   ========================================================================= */
[data-kms-variant="two_column"] .fq2-head { margin-bottom: 22px; }
[data-kms-variant="two_column"] .fq2-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(28px, 5vw, 80px);
}
/* An odd count would leave one empty cell bottom-right and read as a lost row
   — the same fix CDL-860 shipped for `quick_q_amp_a`. The answer keeps its own
   measure, so a spanned row does not stretch into a long line. */
[data-kms-variant="two_column"] .fq2-row:nth-child(odd):last-child {
  grid-column: 1 / -1;
}
[data-kms-variant="two_column"] .fq2-row {
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--border);
}
[data-kms-variant="two_column"] .fq2-q {
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1.38;
  letter-spacing: -.01em;
  color: var(--muted);
  margin: 0 0 10px;
  max-width: 30ch;
  text-wrap: pretty;
}
[data-kms-variant="two_column"] .fq2-a {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 19px;
  line-height: 1.32;
  letter-spacing: -.012em;
  color: var(--ink);
  margin: 0;
  max-width: 34ch;
  text-wrap: pretty;
}
@media (max-width: 760px) {
  [data-kms-variant="two_column"] .fq2-list { grid-template-columns: minmax(0, 1fr); }
  [data-kms-variant="two_column"] .fq2-q,
  [data-kms-variant="two_column"] .fq2-a { max-width: none; }
}
/* CDL-864 end ============================================================= */


/* ===== CDL-864 · faq/dark_register — the ruled register on the dark band ==
   Owner ruling 2026-08-01 (deck R2, Option D), shipped ALONGSIDE
   `dark_card_grid`, not instead of it. Hairlines take the place of card
   borders: a row occupies no grid slot, so the orphan the card grid produces
   at any non-multiple-of-three count cannot occur here. Same answer-first type
   as `two_column`, same two amendments (no index, question set larger).
   ========================================================================= */
[data-kms-variant="dark_register"] .fqd-head { margin-bottom: 22px; }
[data-kms-variant="dark_register"] .fqd-cta {
  color: color-mix(in oklab, var(--on-feature) 70%, transparent);
}
[data-kms-variant="dark_register"] .fqd-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(28px, 5vw, 80px);
  border-top: 1px solid color-mix(in oklab, var(--on-feature) 18%, transparent);
}
[data-kms-variant="dark_register"] .fqd-row:nth-child(odd):last-child {
  grid-column: 1 / -1;
}
[data-kms-variant="dark_register"] .fqd-row {
  padding: 22px 0 24px;
  border-bottom: 1px solid color-mix(in oklab, var(--on-feature) 18%, transparent);
}
[data-kms-variant="dark_register"] .fqd-q {
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1.38;
  letter-spacing: -.01em;
  color: color-mix(in oklab, var(--on-feature) 62%, transparent);
  margin: 0 0 10px;
  max-width: 30ch;
  text-wrap: pretty;
}
[data-kms-variant="dark_register"] .fqd-a {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 19px;
  line-height: 1.32;
  letter-spacing: -.012em;
  color: var(--on-feature);
  margin: 0;
  max-width: 34ch;
  text-wrap: pretty;
}
@media (max-width: 760px) {
  [data-kms-variant="dark_register"] .fqd-list { grid-template-columns: minmax(0, 1fr); }
  [data-kms-variant="dark_register"] .fqd-q,
  [data-kms-variant="dark_register"] .fqd-a { max-width: none; }
}
/* CDL-864 dark_register end =============================================== */


/* ===== CDL-865 · the empty listing keeps ONE rule ========================
   Owner ruling 2026-08-01 (deck R3, Option E). Withholding the controls over an
   empty collection also removed the only divider between the page head and the
   content area — title, then a void, then a message with no visible relation to
   either. The rule sits on the grid container, NOT on `.wrap`: `.wrap`'s
   border-box includes `padding-inline: var(--pad)`, so a rule drawn there
   starts ~51px outside the content edge and reads as a band that does not line
   up with anything (the fault CDL-855b removed from the listing head). Drawn
   here it lands exactly where the toolbar's top border sits on a full listing,
   so full and empty share one rhythm.

   Alignment is PINNED. On the composed front door the section carries
   `ax-alignment-center`, whose `.wrap { text-align:center }` was inherited
   straight into the empty state — so `/sermon-notes` centred what
   `/sermon-notes/all` left-aligned, silently overriding the ruled "message on
   the wrap edge". `start` rather than `left` so a future RTL locale still
   reads correctly.
   ========================================================================= */
.ch-listing-grid-band--empty { padding-top: 0; }
.ch-listing-grid-band--empty [data-listing-grid] {
  border-top: 1px solid var(--border);
}
.ch-listing-empty {
  padding: 44px 0 clamp(48px, 5vw, 72px);
  text-align: start;
}
.ch-listing-empty-label,
.ch-listing-empty-line { text-align: start; }
/* CDL-865 end ============================================================= */

/* CDL-880 — `times/big_times_band`: one service time, one line ==============
   Owner, 2026-08-03: the service times read too bold, and each one should sit
   on a single line — "Sunday · 10:00 am" is short enough to fit, but at the
   shared `.stat-xl` size (up to 72px) "First Saturday · 9:30 am" wrapped mid
   phrase, breaking a time across two lines.

   Scoped to the variant, NOT to `.stat-xl`, which the stats blocks share and
   which is doing the right thing there. Only the size and weight move; the
   band, the accent colour and the layout are untouched. `text-wrap: nowrap`
   holds the line at desktop; the clamp's lower bound keeps it readable when
   the column narrows, and `overflow-wrap` remains the mobile safety valve
   inherited from `.stat-num`. */
section[data-kms-variant="big_times_band"] .stat-num.stat-xl {
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: nowrap;
}
@media (max-width: 720px) {
  section[data-kms-variant="big_times_band"] .stat-num.stat-xl {
    text-wrap: wrap;
  }
}
/* CDL-880 end ============================================================= */

/* CDL-881 — an event row with no date chip collapses to two columns ========
   `.event-list .event` is a 3-column grid (66px chip · content · label). When
   the chip is bind-or-blanked away (no day/month supplied), the content slid
   into the 66px track and every title and meta line wrapped to pieces. The
   `:has()` form keeps this in CSS where the layout already lives — the same
   pattern `.card-pad:has(.stat-num)` already uses in this stylesheet. */
.event-list .event:not(:has(.ev-date)) { grid-template-columns: 1fr auto; }
/* CDL-881 end ============================================================= */

/* Review 2026-08-10 (rec 6) — an empty image slot's label ("Kids ministry in
   action", "Portrait", "Sermon video still") is authoring guidance. It stays
   in the editor, where the wrapper carries .is-editor; a visitor sees the
   slot's tinted panel and no caption naming the photo that is not there. */
.site-section:not(.is-editor) .ph::after { content: ""; }

/* Owner ruling 2026-09-02 (deck Decision 1 → A + C) — after the no-collection
   state, the facts the site holds, on the wrap edge like everything else on a
   listing page. */
.ch-listing-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, max-content)); gap: 18px 44px; align-items: end;
  padding: 0 0 clamp(36px, 4vw, 56px); border-top: 1px solid var(--border); padding-top: 26px; }
.ch-listing-facts-label { margin: 0 0 4px; font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--label-tracking); text-transform: var(--label-transform); color: var(--muted); }
.ch-listing-facts-line { margin: 0; font-size: 15px; color: var(--ink); }
.ch-listing-facts-cta { align-self: center; }

/* Decision 2, Block 1 — the one-item feature: a split that collapses to one
   column when the record carries no image. */
.ch-feature--text { grid-template-columns: 1fr; }

/* Decision 2, Block 3 — the humanize strip: one photograph, edge to edge. */
.ch-photo-strip { padding: 0; }
.ch-photo-strip-img { aspect-ratio: 21 / 9; min-height: 240px; background-size: cover; background-position: center; }
.ch-photo-strip-row { padding: 14px 0 18px; }
@media (max-width: 720px) { .ch-photo-strip-img { aspect-ratio: 4 / 3; } }
