/*
Theme Name: COTHKREM
Theme URI: https://cityonthehillkingdomrestorationministry.com
Author: Built for City on the Hill Kingdom Restoration Ministry
Description: Block theme for City on the Hill Kingdom Restoration Ministry (COTHKREM), Tottenham. Built from the approved design handoff.
Version: 1.2.2
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cothkrem
Tags: block-theme, church, one-column, custom-colors, custom-menu, full-site-editing
*/

/* ==========================================================================
   0. FONTS
   Self-hosted, so the site makes no third-party request and no visitor IP
   reaches Google. Variable weight axes only — the design uses one optical
   size, so the opsz axis would cost ~80KB for no visible gain. Figtree
   italic is not shipped because nothing on the site uses it.
   ========================================================================== */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/figtree-latin.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/figtree-latin-ext.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url("assets/fonts/newsreader-italic-latin.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url("assets/fonts/newsreader-italic-latin-ext.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ==========================================================================
   1. DESIGN TOKENS
   Carried over verbatim from the design handoff. Do not lighten --o, --l or
   --s: each was darkened deliberately to clear 4.5:1 for small text.
   ========================================================================== */

:root {
  /* Default palette — royal purple + warm tangerine/amber */
  --bg: #ffffff;
  --ink: #1b1330;
  --ink2: #5d5675;
  --line: #e7e3f1;
  --p: #4f2fb0;
  --pdeep: #331f6e;
  --pt: #f4f1fd;
  --o: #b8480d;
  --ot: #fdf1e9;
  --odeep: #993a06;
  --s: #3a1f8f;
  --st: #ece5fb;
  --l: #87590a;
  --lt: #fdf5e4;
  --onp: #ffffff;
  --onpmuted: #cfc3ef;

  /* Fixed companions to the tokens */
  --accent-on-dark: #ffd9a8;   /* accent words + eyebrows on dark/purple only */
  --body-on-purple: #e5dcfa;
  --body-on-ink: #cfcada;
  --muted-on-ink: #9a93ad;

  /* Type */
  --disp: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --body: var(--disp);
  --quote: "Newsreader", ui-serif, Georgia, "Times New Roman", serif;

  /* Layout */
  --wrap: 1340px;
  --gutter: clamp(18px, 4vw, 56px);
  --section: clamp(60px, 7vw, 118px);
  --r: 26px;
  --rs: 18px;

  /* Gaps */
  --gap-tight: clamp(12px, 1.4vw, 18px);
  --gap-card: clamp(14px, 1.8vw, 24px);
  --gap-wide: clamp(26px, 3.6vw, 64px);

  /* Grid tokens — the whole responsive system lives here.
     There are no per-component media queries by design. */
  --two: 1fr 1fr;
  --ed: 1.25fr 1fr;
  --three: repeat(3, 1fr);
  --four: repeat(4, 1fr);
  --nav: flex;
  --burger: none;

  /* Motion */
  --ease: cubic-bezier(.16, 1, .3, 1);

  /* Shadows */
  --sh-btn: 0 10px 24px -12px color-mix(in srgb, var(--p) 70%, transparent);
  --sh-card: 0 20px 40px -24px rgba(27, 19, 48, .35);
  --sh-hero-btn: 0 14px 30px -14px rgba(14, 8, 32, .6);
}

@media (max-width: 1040px) {
  :root { --two: 1fr; --ed: 1fr; --three: repeat(2, 1fr); --four: repeat(2, 1fr); --nav: none; --burger: inline-flex; }
}
@media (max-width: 640px) {
  :root { --three: 1fr; --four: 1fr; --r: 20px; }
}

/* Alternate palettes — set data-palette on <html> (see functions.php) */
[data-palette="ink"] {
  --ink: #101a2e; --ink2: #4f5a70; --line: #e2e6ef;
  --p: #1f4b9b; --pdeep: #14315f; --pt: #eef3fb;
  --o: #c8425f; --ot: #fdeef1; --odeep: #a32a45;
  --s: #163a78; --st: #e6edf9; --l: #9a5a2a; --lt: #f9efe8;
  --onpmuted: #bdcfe9;
}
[data-palette="forest"] {
  --ink: #17201a; --ink2: #4f5c53; --line: #e2e8e2;
  --p: #1f5c3c; --pdeep: #123a26; --pt: #ecf4ef;
  --o: #c2610f; --ot: #fdf2e6; --odeep: #9a4a06;
  --s: #154429; --st: #e6efe9; --l: #8a5f0d; --lt: #faf3e2;
  --onpmuted: #b9d4c4;
}

/* ==========================================================================
   2. BASE
   ========================================================================== */

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15.5px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--disp);
  font-weight: 800;
  margin: 0;
  letter-spacing: -.035em;
  line-height: 1.02;
  text-wrap: balance;
}

p { margin: 0; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .35s var(--ease); }
a:hover { color: var(--p); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--p); outline-offset: 3px; border-radius: 4px; }
/* Purple on the dark overlay and the ink footer is close to invisible. */
.menu-overlay :focus-visible,
.site-footer :focus-visible { outline-color: #fff; }

/* WordPress housekeeping */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; z-index: 200; background: var(--p);
  color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 700; font-size: 14px;
}

/* ==========================================================================
   3. LAYOUT PRIMITIVES
   ========================================================================== */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }

.g-two   { display: grid; grid-template-columns: var(--two);   gap: var(--gap-wide); }
.g-ed    { display: grid; grid-template-columns: var(--ed);    gap: var(--gap-wide); }
.g-three { display: grid; grid-template-columns: var(--three); gap: var(--gap-card); }
.g-four  { display: grid; grid-template-columns: var(--four);  gap: var(--gap-card); }
.g-tight { gap: var(--gap-tight); }
.g-card  { gap: var(--gap-card); }
.stack   { display: flex; flex-direction: column; }

.block { border-radius: var(--r); overflow: hidden; }
.block--pad { padding: clamp(30px, 4vw, 68px); }
.block--pt { background: var(--pt); }
.block--ot { background: var(--ot); }
.block--st { background: var(--st); }
.block--lt { background: var(--lt); }
.block--p  { background: var(--p);  color: var(--onp); }
.block--s  { background: var(--s);  color: var(--onp); }
.block--ink { background: var(--ink); color: #fff; }

.on-dark { position: relative; overflow: hidden; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark p { color: var(--body-on-purple); }
.block--ink p { color: var(--body-on-ink); }
.on-dark .accent { color: var(--accent-on-dark); }

/* The hero sits on a dark photographic scrim but is not an .on-dark block,
   so the purple accent would fall to ~1.5:1 against it. Warm accent instead. */
.hero .accent { color: var(--accent-on-dark); }

/* Oversized logo watermark */
.mark-wm {
  position: absolute; pointer-events: none; user-select: none;
  width: clamp(280px, 40%, 560px); opacity: .055;
}
.mark-wm--light { filter: brightness(0) invert(1); opacity: .09; }
.mark-wm--tr { right: -6%; top: -14%; }
.mark-wm--tl { left: -6%; top: -12%; }
.mark-wm--br { right: -6%; bottom: -18%; }
.mark-wm--bl { left: -8%; bottom: -16%; }

/* ==========================================================================
   4. TYPE ROLES
   ========================================================================== */

.t-hero   { font-size: clamp(42px, 6.4vw, 104px); font-weight: 800; letter-spacing: -.04em;  line-height: .96; }
.t-page   { font-size: clamp(44px, 8vw, 120px);   font-weight: 800; letter-spacing: -.04em;  line-height: .97; }
.t-sec    { font-size: clamp(34px, 5vw, 72px);    font-weight: 800; letter-spacing: -.035em; line-height: 1.01; }
.t-block  { font-size: clamp(30px, 4vw, 56px);    font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.t-acc    { font-size: clamp(24px, 3vw, 40px);    font-weight: 800; letter-spacing: -.03em;  line-height: 1.04; }
.t-card   { font-size: clamp(21px, 2vw, 30px);    font-weight: 800; letter-spacing: -.025em; line-height: 1.11; }

.lede  { font-size: clamp(15px, 1.2vw, 18px); font-weight: 500; line-height: 1.66; color: var(--ink2); }
.body  { font-size: 15.5px; line-height: 1.7;  color: var(--ink2); }
.small { font-size: 14.5px; line-height: 1.66; color: var(--ink2); }

.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; line-height: 1;
}
.micro { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.accent { color: var(--p); }
.accent--o { color: var(--o); }
.accent--l { color: var(--l); }

.quote {
  font-family: var(--quote); font-style: italic; font-weight: 400;
  font-size: clamp(26px, 3.9vw, 56px); line-height: 1.2; letter-spacing: 0;
}
.quote--sm { font-size: clamp(24px, 3.4vw, 48px); }

/* Unconfirmed content, so it is impossible to ship by accident */
.todo { color: var(--o); border-bottom: 1px dashed currentColor; }
.on-dark .todo { color: var(--accent-on-dark); }

/* ==========================================================================
   5. COMPONENTS
   ========================================================================== */

/* --- Pills, badges, chips --- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.pill--pt { background: var(--pt); color: var(--p); }
.pill--ot { background: var(--ot); color: var(--odeep); }
.pill--st { background: var(--st); color: var(--s); }
.pill--lt { background: var(--lt); color: var(--l); }
.pill--glass { background: rgba(255, 255, 255, .16); color: #fff; }
.pill--solid-o { background: var(--o); color: #fff; letter-spacing: .12em; }
.pill--solid-s { background: var(--s); color: #fff; letter-spacing: .12em; }
.pill--white { background: #fff; color: var(--ink); }

.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13px; font-weight: 500; line-height: 1.4;
  padding: 8px 14px; border-radius: 999px;
  background: var(--pt); color: var(--ink2);
}
.chip--white { background: #fff; color: var(--ink); }
.chip--glass { background: rgba(255, 255, 255, .16); color: #fff; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font-size: 14px; font-weight: 700; white-space: nowrap;
  transition: transform .4s var(--ease), background .35s var(--ease), color .35s var(--ease), box-shadow .4s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn:disabled:hover, .btn[disabled]:hover { transform: none; }
.btn--p { background: var(--p); color: #fff; box-shadow: var(--sh-btn); }
.btn--p:hover { color: #fff; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { color: var(--ink); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { color: #fff; }
.btn--line { border: 1px solid var(--line); color: var(--ink); }
.btn--line:hover { border-color: var(--p); color: var(--p); }
.btn--lg { height: 54px; padding: 0 26px; font-size: 15px; }
.btn--hero { box-shadow: var(--sh-hero-btn); }
.btn svg { flex: none; }

/* --- Icon tile --- */
.icon-tile {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
}
.icon-tile--o { background: var(--o); }
.icon-tile--s { background: var(--s); }
.icon-tile--l { background: var(--l); }
.icon-tile--p { background: var(--p); }

/* --- Cards --- */
.card {
  border-radius: var(--rs); padding: clamp(22px, 2.2vw, 30px);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-card); }
.card--outline { border: 1px solid var(--line); background: var(--bg); }
.card--outline.hov-o:hover { border-color: var(--o); }
.card--outline.hov-s:hover { border-color: var(--s); }
.card--outline.hov-l:hover { border-color: var(--l); }

.card-media { border-radius: var(--rs); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card-media:hover img, .card:hover .card-media img { transform: scale(1.06); }

/* --- Ratio helpers --- */
.r-16-9 { aspect-ratio: 16 / 9; }
.r-16-10 { aspect-ratio: 16 / 10; }
.r-4-3 { aspect-ratio: 4 / 3; }
.r-3-4 { aspect-ratio: 3 / 4; }
.r-4-5 { aspect-ratio: 4 / 5; }
.shot { border-radius: var(--r); overflow: hidden; }
.shot--sm { border-radius: var(--rs); }
.shot img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   6. HEADER
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 70;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.header-bar {
  height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-tile {
  width: 50px; height: 50px; border-radius: 15px; background: var(--pt); flex: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-tile img { height: 30px; width: auto; }
/* Uppercased in CSS, not in the text itself, so screen readers still say
   "City on the Hill" rather than spelling it out letter by letter. */
.brand-name { font-size: 17.5px; font-weight: 800; letter-spacing: .01em; line-height: 1.2; text-transform: uppercase; white-space: nowrap; }
.brand-sub { font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--p); line-height: 1.25; white-space: nowrap; }

/* On a narrow phone the wordmark, the CTA and the burger cannot share one row
   without the wordmark wrapping, so the CTA moves into the menu (.menu-cta). */
@media (max-width: 520px) {
  .header-cta { display: none; }
}
@media (min-width: 521px) {
  .menu-cta { display: none; }
}

.nav { display: var(--nav); align-items: center; gap: 2px; background: var(--pt); padding: 6px; border-radius: 999px; }
.nav a {
  font-size: 13.5px; font-weight: 600; padding: 9px 16px; border-radius: 999px;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--bg); color: var(--p); }

.header-end { display: flex; align-items: center; gap: 10px; }
.burger {
  display: var(--burger); align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 16px; background: var(--pt); flex-direction: column; gap: 5px;
}
.burger span { width: 17px; height: 2px; background: var(--p); border-radius: 2px; display: block; }

/* --- Sticky info dock (Home only) --- */
.dock {
  height: 0; opacity: 0; overflow: hidden;
  transition: height .5s var(--ease), opacity .4s var(--ease);
  border-top: 1px solid var(--line);
}
.dock.is-open { height: 40px; opacity: 1; }
.dock-inner { height: 40px; display: flex; align-items: center; gap: 14px; font-size: 12.5px; }
.dock .rule { flex: 1; height: 1px; background: var(--line); }
.dock .time { font-weight: 800; color: var(--ink); }
.dock .venue { color: var(--ink2); }
@media (max-width: 640px) { .dock .venue { display: none; } }

/* --- Mobile overlay --- */
.menu-overlay {
  position: fixed; inset: 0; z-index: 90; background: var(--p); color: #fff;
  display: none; flex-direction: column; justify-content: center;
  padding: var(--gutter); overflow: hidden;
  animation: fade .4s var(--ease) both;
}
.menu-overlay.is-open { display: flex; }
.menu-overlay .mark-wm { right: -12%; bottom: -14%; width: 70%; opacity: .09; filter: brightness(0) invert(1); }
.menu-overlay nav { display: flex; flex-direction: column; gap: 2px; position: relative; }
.menu-overlay nav a {
  font-size: clamp(34px, 8.5vw, 64px); font-weight: 800; letter-spacing: -.03em; color: #fff;
  animation: rise .6s var(--ease) both;
}
.menu-overlay nav a:nth-child(1) { animation-delay: 0s; }
.menu-overlay nav a:nth-child(2) { animation-delay: .07s; }
.menu-overlay nav a:nth-child(3) { animation-delay: .14s; }
.menu-overlay nav a:nth-child(4) { animation-delay: .21s; }
.menu-overlay nav a:nth-child(5) { animation-delay: .28s; }
.menu-close {
  position: absolute; top: var(--gutter); right: var(--gutter);
  width: 48px; height: 48px; border-radius: 16px; background: rgba(255, 255, 255, .14); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
/* Gatherings intro: the lede reads as a continuation of the heading, so it sits
   under it rather than in the second column (other pages keep the split head). */
#gatherings .g-ed.mb-head { grid-template-columns: 1fr; gap: var(--gap-tight); }
#gatherings .g-ed.mb-head .lede { max-width: 62ch; }

.menu-cta { margin-top: 26px; align-self: flex-start; }
.menu-foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--gutter);
  display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between;
  color: var(--onpmuted); font-size: 12px;
}

/* ==========================================================================
   7. HERO
   ========================================================================== */

.hero {
  position: relative; overflow: hidden; border-radius: var(--r);
  min-height: clamp(480px, 74vh, 760px);
  background: var(--ink); color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(22px, 2.6vw, 34px);
  isolation: isolate;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    rgba(20, 12, 44, .64) 0%,
    rgba(20, 12, 44, .5) 28%,
    rgba(20, 12, 44, .68) 52%,
    rgba(20, 12, 44, .82) 74%,
    rgba(20, 12, 44, .92) 100%);
}
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero-band { margin-top: auto; display: grid; grid-template-columns: var(--ed); gap: var(--gap-wide); align-items: end; padding-top: clamp(40px, 6vw, 90px); }
.hero h1 { color: #fff; text-shadow: 0 2px 30px rgba(14, 8, 32, .45); }
.hero .lede { color: #fff; text-shadow: 0 1px 16px rgba(14, 8, 32, .5); max-width: 46ch; }
.hero .eyebrow { color: #fff; letter-spacing: .18em; text-shadow: 0 1px 16px rgba(14, 8, 32, .5); }
.hero-line { display: block; }

.glass {
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--rs);
  padding: clamp(20px, 2.2vw, 28px);
  display: flex; flex-direction: column; gap: 12px;
}
.glass .eyebrow { color: var(--accent-on-dark); }
.glass .time { font-size: clamp(32px, 3.2vw, 46px); font-weight: 800; letter-spacing: -.035em; line-height: 1; color: #fff; }
.glass .rule { height: 1px; background: rgba(255, 255, 255, .24); }
.glass .venue { color: #fff; font-size: 14px; line-height: 1.6; }

/* --- Giving: bank detail lines (values typed in from the editor) --- */
.give-lines { display: grid; gap: 8px; width: 100%; max-width: 440px; }
.give-line {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 4px 18px;
  padding: 12px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .15);
}
.give-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; opacity: .7;
}
.give-value { font-size: 16px; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   8. MARQUEE
   ========================================================================== */

.marquee { border-block: 1px solid var(--line); padding-block: 16px; overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marq 48s linear infinite; }

/* ==========================================================================
   9. ACCORDION
   ========================================================================== */

.acc { display: flex; flex-direction: column; gap: var(--gap-tight); }
.acc-item { border-radius: var(--rs); overflow: hidden; transition: transform .4s var(--ease); }
.acc-item:hover { transform: translateY(-3px); }
.acc-head {
  width: 100%; text-align: left; display: grid;
  grid-template-columns: 56px 1fr 48px; align-items: center; gap: 18px;
  padding: clamp(18px, 2vw, 26px) clamp(18px, 2.2vw, 30px);
}
.acc-title { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.acc-num { font-size: 13px; font-weight: 800; letter-spacing: .04em; align-self: start; padding-top: 6px; }
.acc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--ink2); }
.acc-toggle {
  width: 48px; height: 48px; border-radius: 50%; background: #fff; flex: none;
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink);
}
.acc-body { display: none; padding: 0 clamp(18px, 2.2vw, 30px) clamp(22px, 2.4vw, 30px); }
.acc-item.is-open .acc-body { display: block; animation: drop .55s var(--ease) both; }
.acc-body-grid { display: grid; grid-template-columns: var(--two); gap: var(--gap-wide); align-items: start; }
@media (max-width: 1040px) {
  .acc-head { grid-template-columns: 34px 1fr 44px; gap: 12px; }
  .acc-toggle { width: 44px; height: 44px; }
}

/* ==========================================================================
   10. FORM
   ========================================================================== */

.form-card { background: var(--pt); border-radius: var(--r); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
/* Honeypot — off-screen rather than display:none, which some bots detect. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); }
.field input, .field textarea {
  font: inherit; font-size: 15px; color: var(--ink);
  padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
  width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--p); box-shadow: 0 0 0 4px var(--pt); }
.form-note { font-size: 13px; color: var(--ink2); }
.form-error { color: var(--o); font-size: 13px; font-weight: 600; }
.form-success {
  background: var(--lt); color: var(--l); border-radius: 14px; padding: 14px 16px;
  font-size: 14.5px; font-weight: 600;
}

/* Map card */
.map-card {
  position: relative; overflow: hidden; border-radius: var(--rs);
  background: var(--pt); aspect-ratio: 16 / 9;
  display: flex; align-items: flex-end; padding: clamp(16px, 2vw, 24px);
}
.map-card .mark-wm { opacity: .14; width: 55%; right: -4%; top: 50%; transform: translateY(-50%); }
.map-card .map-meta { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.map-card .addr { font-size: 14px; font-weight: 600; line-height: 1.5; }

/* ==========================================================================
   11. FOOTER
   ========================================================================== */

.site-footer { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.site-footer .mark-wm { right: -4%; top: -16%; width: 38%; opacity: .07; filter: brightness(0) invert(1); }
/* Not var(--ed): the sign-off needs less room than the detail columns, which
   wrap mid-address if they are squeezed into a third of the width. */
.footer-main { display: grid; grid-template-columns: var(--footer-cols, 1fr 1.15fr); gap: var(--gap-wide); padding-block: var(--section); position: relative; }
.site-footer h2 { color: #fff; }
.site-footer .accent { color: var(--accent-on-dark); }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-card); }
.footer-col h3 { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-on-ink); margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; color: var(--body-on-ink); font-size: 14.5px; line-height: 1.9; }
.footer-col a:hover { color: var(--accent-on-dark); }

/* The details column groups address / times / contact / social. Lines inside a
   group sit close together; the .fl labels supply the separation between them,
   so nothing has to be read as "which of these belongs with which". */
.footer-col--info p { line-height: 1.6; }
.footer-col--info a { display: inline; }
.footer-col--info .fl {
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-on-ink); line-height: 1;
  /* padding, not margin: the block bridge zeroes margin-block inside .coth */
  padding-top: 26px; padding-bottom: 9px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .16);
  padding-block: 22px; display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; align-items: center;
  position: relative;
}
.footer-bottom p { color: var(--muted-on-ink); font-size: 13px; }
.footer-bottom .tagline { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-on-ink); }
/* Legal links drop to their own line under the copyright row. */
.footer-bottom .footer-legal { flex-basis: 100%; order: 3; }
.footer-bottom .footer-legal a { color: var(--body-on-ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom .footer-legal a:hover { color: var(--accent-on-dark); }
@media (max-width: 1040px) { :root { --footer-cols: 1fr; } }
@media (max-width: 640px) { .footer-cols { grid-template-columns: 1fr; } }

/* ==========================================================================
   12. MOTION
   ========================================================================== */

/* Reveals only hide content once JS is confirmed running (html.js is set in <head>),
   so nothing is ever invisible without the script, and nothing hides in the editor. */
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .t-hero:not(.is-split) { opacity: 0; }
.js .reveal.is-shown { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes wipe { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: none; } }

.bob { animation: bob 2.2s ease-in-out infinite; }
.hero-line { overflow: hidden; }
.hero-line > span { display: block; animation: wipe 1s var(--ease) both; }
.hero-line:nth-of-type(1) > span { animation-delay: .26s; }
.hero-line:nth-of-type(2) > span { animation-delay: .4s; }

/* The prototype had no reduced-motion handling. Closing that gap here. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .hero-line > span { animation: none; }
  .hero-img-wrap img,
  [data-par] { transform: none !important; }
}


/* Icon glyphs (generated from the icon set in functions.php) */
:root {
  --i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --i-arrow-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E");
  --i-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  --i-minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
  --i-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6-5.4-6-11a6 6 0 0 1 12 0c0 5.6-6 11-6 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
  --i-video: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='13' height='12' rx='2'/%3E%3Cpath d='M16 10l5-3v10l-5-3z'/%3E%3C/svg%3E");
  --i-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.5-7-9.5A4 4 0 0 1 12 8a4 4 0 0 1 7-2.5c0 5-7 9.5-7 9.5z'/%3E%3C/svg%3E");
  --i-book: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5.5A2.5 2.5 0 0 1 6.5 3H19v15H6.5A2.5 2.5 0 0 0 4 20.5z'/%3E%3Cpath d='M4 20.5A2.5 2.5 0 0 1 6.5 18H19v3H6.5A2.5 2.5 0 0 1 4 20.5z'/%3E%3C/svg%3E");
  --i-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4l2.3 5 5.2.6-3.9 3.6 1.1 5.2L12 15.8 7.3 18.4l1.1-5.2L4.5 9.6 9.7 9z'/%3E%3C/svg%3E");
  --i-external: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E");
}

/* ==========================================================================
   13. BLOCK BRIDGE
   The pages are built from core WordPress blocks so they can be edited in
   the block editor. This section makes those blocks sit exactly where the
   hand-built markup did. Every designed section carries the .coth class.
   ========================================================================== */

/* --- Neutralise core's automatic spacing inside designed sections.
   Our grids and stacks set their own gaps. --- */
.site-main > *,
.page-content > .coth,
.coth.is-layout-flow > *,
.coth .is-layout-flow > *,
.coth .is-layout-constrained > * { margin-block: 0; }
.coth .wp-block-image,
.coth figure { margin: 0; }
.coth .wp-block-heading { margin: 0; }
.coth :where(p, h1, h2, h3, h4, ul, ol) { margin-block: 0; }

/* A page with designed sections supplies its own heading, so the template's
   title only shows on plain pages (a privacy policy, a news post). */
.page-title { padding-top: var(--section); padding-bottom: 28px; }
body:has(.page-content > .coth) .page-title { display: none; }
.post-meta { color: var(--ink2); font-size: 14px; padding-bottom: 20px; }

/* Plain content (anything not built from the designed sections) reads as a
   comfortable column. */
.page-content > :not(.coth) {
  max-width: 760px; margin-inline: auto; padding-inline: var(--gutter);
}
.page-content > :not(.coth) + :not(.coth) { margin-top: 1.1em; }
.page-content > :not(.coth):last-child { padding-bottom: var(--section); }
.page-content > h2:not(.coth) { font-size: clamp(26px, 3vw, 38px); margin-top: 1.6em; }
.page-content > h3:not(.coth) { font-size: clamp(21px, 2.2vw, 28px); margin-top: 1.4em; }
.page-content > p:not(.coth) { color: var(--ink2); }
.page-content > :not(.coth) a { color: var(--p); text-decoration: underline; text-underline-offset: 3px; }
.post-list .wp-block-post-template { list-style: none; padding: 0; display: grid; gap: 40px; }

/* --- Spacing and alignment utilities (replace the old inline styles) --- */
.gap-6  { gap: 6px; }
.gap-10 { gap: 10px; }
.gap-14 { gap: 14px; }
.gap-16 { gap: 16px; }
.gap-18 { gap: 18px; }
.gap-20 { gap: 20px; }
.gap-22 { gap: 22px; }
.gap-26 { gap: 26px; }
.gap-tight { gap: var(--gap-tight); }
.gap-hero { gap: clamp(16px, 1.8vw, 24px); }
.start { align-items: flex-start; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }
.items-end { align-items: end; }
.self-start { align-self: flex-start; }
.self-end { align-self: end; }
.w-full { width: 100%; }
.mw-22ch { max-width: 22ch; }
.mw-24ch { max-width: 24ch; margin-inline: auto; }
.mw-30ch { max-width: 30ch; margin-inline: auto; }
.mw-60ch { max-width: 60ch; }
.mb-head { margin-bottom: clamp(26px, 3.4vw, 48px) !important; }
.mb-head-sm { margin-bottom: clamp(22px, 2.8vw, 40px) !important; }
.mt-tight { margin-top: var(--gap-tight) !important; }
.mt-section { margin-top: var(--section) !important; }
.pt-0 { padding-top: 0; }
.pt-tight { padding-top: var(--gap-tight); }
.pb-section { padding-bottom: var(--section); }
.hero-sec { padding-top: clamp(14px, 1.6vw, 22px); }

.head-center {
  display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center;
  max-width: 720px; margin-inline: auto;
}

.c-p { color: var(--p); }
.c-s { color: var(--s); }
.c-l { color: var(--l); }
.c-odeep { color: var(--odeep); }
.c-accent-dark { color: var(--accent-on-dark) !important; }
.c-mist { color: #e3f1f8 !important; }

.block--pad-lg { padding: clamp(30px, 4.4vw, 76px); }
.block--quote { padding: clamp(36px, 5.4vw, 92px) clamp(26px, 4vw, 64px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.block--quote .quote { color: #fff; }
.block--quote .cite { color: var(--accent-on-dark); order: 2; }
.block--quote .eyebrow { color: var(--accent-on-dark); }
.block--s .accent { color: #ffe9c4; }
.t-pillar { font-size: clamp(25px, 3vw, 42px); }
.shot--tall { min-height: clamp(300px, 34vw, 520px); }
.pair > :first-child { margin-top: clamp(18px, 3.4vw, 46px); }
.ng-body { padding-top: 18px; }

/* Pills are paragraphs now, so they shrink to fit inside a stack. */
p.pill { width: fit-content; }

/* --- Watermark: the logo mark, drawn by CSS rather than an <img> --- */
.has-wm { position: relative; overflow: hidden; isolation: isolate; }
.has-wm > * { position: relative; z-index: 1; }
.has-wm::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: clamp(280px, 40%, 560px); aspect-ratio: 460 / 265; /* the mark's own proportions */
  background: url(assets/img/coth-mark.svg) center / contain no-repeat;
  opacity: .055;
}
.on-dark.has-wm::after, .site-footer.has-wm::after { filter: brightness(0) invert(1); opacity: .09; }
.has-wm.wm--faint::after { opacity: .075; }
.wm--tr::after { right: -6%; top: -14%; }
.wm--tl::after { left: -6%; top: -12%; }
.wm--br::after { right: -6%; bottom: -18%; }
.wm--bl::after { left: -8%; bottom: -16%; }
.map-card.has-wm::after { opacity: .14; width: 55%; right: -4%; top: 50%; transform: translateY(-50%); }
.site-footer.has-wm::after { right: -4%; top: -16%; width: 38%; opacity: .07; }

/* --- Icons: CSS masks, so they recolour with the text --- */
.ico::before, .ico-after::after {
  content: ""; display: inline-block; flex: none; width: 22px; height: 22px;
  background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
}
.ico-arrow { --ico: var(--i-arrow); }
.ico-video { --ico: var(--i-video); }
.ico-heart { --ico: var(--i-heart); }
.ico-book  { --ico: var(--i-book); }
.ico-star  { --ico: var(--i-star); }
.ico-pin   { --ico: var(--i-pin); }
.ico-external { --ico: var(--i-external); }
.ico-after.ico-external::after { width: 14px; height: 14px; }

/* Not flex: a flex container makes the join link and the text after its <br>
   two separate columns, which on a phone reads as a broken two-column mess.
   Block + absolute icon keeps it one wrapping paragraph. */
.acc-detail { position: relative; padding-left: 30px; }
/* Links elsewhere inherit the body colour; inside a detail line the join link
   has to read as clickable, so it takes the accent and an underline. */
.acc-detail a { color: var(--p); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.acc-detail a:hover { color: var(--pdeep); }
/* The join link sits on its own line above the ID, so give it a little air. */
.acc-detail a { display: inline-block; margin-bottom: 2px; }
.acc-detail::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px;
  background: var(--o);
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
}

.pill--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--o); flex: none; }

.scroll-cue { display: inline-flex; align-items: center; gap: 8px; }
.scroll-cue::after {
  content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: var(--i-arrow-down) center / contain no-repeat; mask: var(--i-arrow-down) center / contain no-repeat;
  animation: bob 2.2s ease-in-out infinite;
}
.hero .scroll-cue { color: #fff; }

/* --- Buttons: core/button puts our classes on a wrapper <div>, so the
   styles go on the link inside it. --- */
.coth .wp-block-buttons { gap: 12px; display: flex; flex-wrap: wrap; }
.wp-block-button.btn { display: inline-flex; height: auto; padding: 0; background: none; box-shadow: none; border: 0; gap: 0; }
.wp-block-button.btn:hover { transform: none; }
.wp-block-button.btn > .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px; border-radius: 999px; border: 0;
  font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1; white-space: nowrap;
  text-decoration: none;
  transition: transform .4s var(--ease), background .35s var(--ease), color .35s var(--ease), box-shadow .4s var(--ease);
}
.wp-block-button.btn > .wp-block-button__link:hover { transform: translateY(-2px); }
.wp-block-button.btn--p > .wp-block-button__link     { background: var(--p); color: #fff; box-shadow: var(--sh-btn); }
.wp-block-button.btn--white > .wp-block-button__link { background: #fff; color: var(--ink); }
.wp-block-button.btn--ink > .wp-block-button__link   { background: var(--ink); color: #fff; }
.wp-block-button.btn--line > .wp-block-button__link  { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.wp-block-button.btn--line > .wp-block-button__link:hover { border-color: var(--p); color: var(--p); }
.wp-block-button.btn.btn--lg > .wp-block-button__link { height: 54px; padding: 0 26px; font-size: 15px; }
.wp-block-button.btn--hero > .wp-block-button__link  { box-shadow: var(--sh-hero-btn); }
.wp-block-button.btn--p > .wp-block-button__link:hover, .wp-block-button.btn--ink > .wp-block-button__link:hover { color: #fff; }
.wp-block-button.btn--white > .wp-block-button__link:hover { color: var(--ink); }

/* The arrow that follows primary buttons. */
.btn--arrow > .wp-block-button__link::after, button.btn--arrow::after {
  content: ""; width: 18px; height: 18px; flex: none; background: currentColor;
  -webkit-mask: var(--i-arrow) center / contain no-repeat; mask: var(--i-arrow) center / contain no-repeat;
}

/* A button with no link yet (e.g. Give online, before the church supplies
   one) renders dimmed and inert. It comes alive when a URL is added. */
/* In the editor the link renders as a div (no href); only dim it on the site. */
.wp-block-button.btn > a:not([href]) { opacity: .55; cursor: not-allowed; }
.wp-block-button.btn > a:not([href]):hover { transform: none; }

/* --- Chips are editable lists --- */
ul.chips { list-style: none; padding: 0; }
.chips li {
  font-size: 13px; font-weight: 500; line-height: 1.4;
  padding: 8px 14px; border-radius: 999px;
  background: var(--pt); color: var(--ink2);
}
.chips--white li { background: #fff; color: var(--ink); }
.chips--glass li { background: rgba(255, 255, 255, .16); color: #fff; }

/* --- Whole-card links: the heading's link stretches over the card --- */
.card.is-link { position: relative; }
.card.is-link h2 a, .card.is-link h3 a { color: inherit; text-decoration: none; }
.card.is-link h2 a::after, .card.is-link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card.is-link :focus-visible { outline: none; }
.card.is-link:has(:focus-visible) { outline: 3px solid var(--p); outline-offset: 3px; }

.map-card { color: var(--ink); }
.map-card .pill a { color: inherit; text-decoration: none; }
.map-card .pill a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.map-card .map-meta { position: static; }
.map-card .map-meta > * { position: relative; }
.map-card .pill { position: static; }

/* --- Hero --- */
.hero-img-wrap { position: absolute; inset: 0; margin: 0; z-index: -2; }
.hero-img-wrap img, .wp-block-image.hero-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; will-change: transform;
}
.glass .rule { min-height: 1px; }
.glass .venue br { display: block; }

/* --- Images: core/image adds its own sizing rules; ours win. --- */
.wp-block-image.shot img, .wp-block-image.card-media img {
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto;
}
.wp-block-image.shot, .wp-block-image.card-media { display: block; }

/* --- Marquee: the second copy of the set is added by site.js --- */
.marquee-set {
  display: inline-flex; align-items: center; gap: 24px; padding-right: 24px; flex: none;
  font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink2);
  white-space: nowrap;
}
.mq { display: inline-flex; align-items: center; gap: 24px; }
.mq::before { content: "●"; font-size: 14px; line-height: 1; }
.mq-o::before { color: var(--o); }
.mq-s::before { color: var(--s); }
.mq-l::before { color: var(--l); }
.mq-p::before { color: var(--p); }

/* --- Accordion. In the editor every row shows open so it can be edited;
   on the site, site.js builds the clickable header row. --- */
.acc-h { margin: 0; font: inherit; }
.acc-head .t-acc { display: block; }
.acc-head .pill { font-size: 11px; }
.acc-toggle::before {
  content: ""; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: var(--i-plus) center / contain no-repeat; mask: var(--i-plus) center / contain no-repeat;
}
.acc-item.is-open .acc-toggle::before { -webkit-mask-image: var(--i-minus); mask-image: var(--i-minus); }
.acc-body .acc-detail { font-size: 14.5px; line-height: 1.6; }

/* --- Footer as blocks --- */
.site-footer .footer-col h3 {
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-on-ink); margin-bottom: 14px;
}
.site-footer .footer-col p { margin: 0; }
.site-footer .footer-col a { display: inline; color: var(--body-on-ink); }
.site-footer .footer-col a:hover { color: var(--accent-on-dark); }
.site-footer .footer-bottom p { margin: 0; }

/* Beliefs: numbered commitment rows */
.pillar-row {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px;
  padding: clamp(24px, 2.6vw, 38px) clamp(20px, 2.4vw, 34px);
  transition: transform .4s var(--ease);
}
.pillar-row:hover { transform: translateY(-4px); }
.pillar-row .acc-num { padding-top: 10px; }
@media (max-width: 1040px) { .pillar-row { grid-template-columns: 34px 1fr; gap: 14px; } }

/* An image pair that stays two-up at every width (the "Who we are" block). */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-tight); }

/* Ministries: Next Generation items sit on the page, not in cards */
.ng-item { display: flex; flex-direction: column; }
.ng-item .card-media { border-radius: var(--rs); }

/* Page-heading sizes, lifted from the reference per page */
.t-page-about  { font-size: clamp(38px, 6.6vw, 96px);  font-weight: 800; letter-spacing: -.04em; line-height: .97; }
.t-page-min    { font-size: clamp(40px, 7vw, 104px);   font-weight: 800; letter-spacing: -.04em; line-height: .97; }
.t-teaser      { font-size: clamp(30px, 3.6vw, 50px);  font-weight: 800; letter-spacing: -.035em; line-height: 1.04; }

/* ==========================================================================
   14. EDITOR
   In the editor, content is shown plainly: no reveal animation, every
   accordion row open, and highlighted words marked so they are easy to find.
   ========================================================================== */

.editor-styles-wrapper .acc-body { display: block; }
.editor-styles-wrapper .acc-item { padding: clamp(18px, 2vw, 26px) clamp(18px, 2.2vw, 30px); display: flex; flex-direction: column; gap: 10px; }
.editor-styles-wrapper .acc-item .acc-body { padding: 10px 0 0; }
.editor-styles-wrapper .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
.editor-styles-wrapper .hero { min-height: 520px; }
.editor-styles-wrapper .card.is-link h2 a::after { display: none; }
.editor-styles-wrapper .map-card .pill a::after { display: none; }
.editor-styles-wrapper .page-title { display: none; }
.coth p:empty { display: none; }
