/* DFCCI website — calm, open and accessible (design pass 5).
   Colours come from the DFCCI logo: the wordmark's navy for text, links and
   buttons; its sky blue as soft backgrounds; its red, deepened to pass contrast,
   for small accents only; its gold as a thin decorative line. Poppins matches
   the wordmark. Fonts are self-hosted from the preserved uploads. */
@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url(/assets/fonts/poppins-400.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url(/assets/fonts/poppins-600.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url(/assets/fonts/poppins-700.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 800; font-display: swap; src: url(/assets/fonts/poppins-800.woff2) format("woff2"); }

:root {
  /* Logo colours (sampled from DFCCI-LOGO-V2) */
  --navy: #0b4892;       /* wordmark: headings, links, buttons (8.9:1 on white) */
  --navy-dark: #083a78;  /* hover, footer */
  --sky: #64c1f8;        /* emblem circle: decoration and icon tiles, never text */
  --sky-50: #f2f9ff;     /* section tint */
  --sky-100: #e1f2fd;    /* chips, hovers */
  --red: #d0101a;        /* the cross, deepened to 5.6:1: small accents only */
  --gold: #e8961e;       /* window frame: thin decorative lines only */
  /* Roles (older names kept so every component follows) */
  --ink: var(--navy);
  --ink-2: var(--navy-dark);
  --royal: var(--navy);
  --flame: var(--red);
  --flame-dark: #a80d15;
  --paper: var(--sky-50);
  --mist: var(--sky-100);
  --line: #d9e4ef;
  --text: #14213d;       /* 16:1 on white */
  --muted: #4a5568;      /* 7.5:1 on white, 7:1 on the tint */
  --ok: #17663a;
  --warn: #8a5300;
  --focus: #0b4892;
  /* Type scale (1.25) and spacing scale (4px base) */
  --fs-sm: .875rem; --fs-base: 1rem; --fs-md: 1.125rem; --fs-lg: 1.25rem; --fs-xl: 1.563rem; --fs-2xl: 1.953rem; --fs-3xl: 2.441rem; --fs-4xl: 3.052rem;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --shadow-lift: 0 12px 30px -16px rgba(11, 72, 146, .28);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; font: 400 var(--fs-base)/1.7 Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--text); margin: 0 0 .5em; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, var(--fs-4xl)); line-height: 1.12; }
h2 { font-size: clamp(1.6rem, 3vw, var(--fs-3xl)); line-height: 1.18; }
h3, .h3 { font-size: var(--fs-lg); line-height: 1.35; font-weight: 600; letter-spacing: 0; }
.h4 { font-size: var(--fs-md); }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: var(--fs-md); color: var(--muted); max-width: 62ch; }
.lead p:last-child { margin-bottom: 0; }
.kicker { font-weight: 600; color: var(--text); margin-bottom: .25em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -80px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }
.preview-banner { background: #fff4d6; color: #4d3900; font-size: .82rem; text-align: center; padding: 6px var(--gutter); }
.flash-wrap { padding-top: 16px; }

/* ---------- Header: plain white bar, sticky ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.header-bar { max-width: var(--wrap); width: min(100% - 2 * var(--gutter), var(--wrap)); margin: 0 auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 72px; padding: 10px 0; }
.brand img { width: 132px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a { display: block; padding: 8px 14px; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--text); }
.site-nav a:hover { background: var(--sky-50); color: var(--navy); }
.site-nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--sky); border-radius: 0; }
.nav-toggle { margin-left: auto; display: none; align-items: center; gap: 10px; min-height: 44px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 14px; font: 600 .95rem Poppins, sans-serif; color: var(--navy); cursor: pointer; }
.nav-toggle-icon, .nav-toggle-icon::before, .nav-toggle-icon::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.nav-toggle-icon::before, .nav-toggle-icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle-icon::before { top: -5px; }
.nav-toggle-icon::after { top: 5px; }
@media (max-width: 1060px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; order: 4; width: 100%; margin: 4px 0 8px; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 2px; }
  .js .site-nav a { padding: 12px 14px; border-radius: var(--r-sm); }
  .js .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--sky); background: var(--sky-50); }
  .header-cta { order: 3; }
}
@media (max-width: 520px) { .header-bar .header-cta { display: none; } .brand img { width: 112px; } }

/* ---------- Buttons: navy, calm ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; background: var(--navy); color: #fff; border: 2px solid var(--navy);
  border-radius: 999px; padding: 10px 24px; font: 600 .98rem/1.2 Poppins, system-ui, sans-serif; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.button:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; text-decoration: none; }
.button--small { min-height: 40px; padding: 7px 18px; font-size: .9rem; }
.button--secondary, .button--ghost { background: #fff; color: var(--navy); border-color: var(--navy); }
.button--secondary:hover, .button--ghost:hover { background: var(--sky-50); color: var(--navy-dark); border-color: var(--navy-dark); }
/* "ghost-light": white outline on photos and dark areas, navy outline elsewhere */
.button--ghost-light { background: #fff; color: var(--navy); border-color: var(--navy); }
.button--ghost-light:hover { background: var(--sky-50); color: var(--navy-dark); }
.hero--home .button--ghost-light, .site-footer .button--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.hero--home .button--ghost-light:hover, .site-footer .button--ghost-light:hover { background: rgba(255, 255, 255, .14); color: #fff; border-color: #fff; }
.button--light { background: #fff; color: var(--navy); border-color: #fff; }
.button--light:hover { background: var(--sky-100); color: var(--navy-dark); border-color: var(--sky-100); }
.button--danger { background: #fff; color: var(--flame-dark); border-color: var(--flame-dark); }
.button--danger:hover { background: var(--flame-dark); color: #fff; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.text-link { display: inline-block; font-weight: 600; margin-top: 8px; }
.text-link--light { color: var(--navy); }

/* No more door arches: plain rounded corners */
.arch { border-radius: var(--r-lg); overflow: hidden; margin: 0; background: var(--sky-50); }
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero ---------- */
/* Home: one large rounded photograph with a short welcome and the church search. */
.hero { position: relative; isolation: isolate; }
.hero--home { width: min(100% - 2 * var(--gutter), 1320px); margin: var(--sp-5) auto 0; border-radius: var(--r-lg); overflow: hidden; color: #fff; background: var(--navy);
  min-height: clamp(520px, 74svh, 720px); display: flex; align-items: flex-end; padding: var(--sp-8) 0 var(--sp-7); }
.hero--home .hero-media { position: absolute; inset: 0; z-index: -2; }
.hero--home .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero--home::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(8, 35, 72, .92) 0%, rgba(8, 35, 72, .62) 45%, rgba(8, 35, 72, .18) 100%); }
.hero--home .hero-body { width: min(100% - 2 * clamp(20px, 5vw, 64px), 1180px); }
.hero--home .hero-title { color: #fff; }
.hero--home .hero-lead { color: #eef4fb; }
.hero--home .chips { display: none; }   /* districts stay on the Locations page */
/* Inner pages: a calm tinted header with the title, a line of text and one rounded photo. */
.hero:not(.hero--home) { background: var(--sky-50); border-bottom: 1px solid var(--line); padding: clamp(36px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); color: var(--text); }
.hero:not(.hero--home) .hero-media { display: none; }
@media (min-width: 960px) {
  .hero:not(.hero--home):not(.hero--compact) .hero-media { display: block; position: absolute; top: clamp(36px, 6vw, 72px); bottom: clamp(32px, 5vw, 56px);
    right: max(var(--gutter), calc((100% - var(--wrap)) / 2)); width: min(34%, 400px); border-radius: var(--r-lg); overflow: hidden; }
  .hero:not(.hero--home):not(.hero--compact) .hero-media img { width: 100%; height: 100%; object-fit: cover; }
  .hero:not(.hero--home):not(.hero--compact) .hero-body { padding-right: min(38%, 440px); min-height: 260px; display: flex; flex-direction: column; justify-content: center; }
}
.hero-body { position: relative; z-index: 2; }
.hero-title { font-size: clamp(2.1rem, 4.6vw, var(--fs-4xl)); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .35em; max-width: 18ch; text-wrap: balance; }
.hero--home .hero-title { font-size: clamp(2.3rem, 5.4vw, 3.8rem); max-width: 16ch; }
.hero-line { display: inline; }
.hero-line > span { display: inline; }
.hero-line:last-child > span { font-weight: 800; }
.hero--home .hero-line:last-child > span { color: #fff; box-shadow: inset 0 -.14em 0 rgba(100, 193, 248, .75); }
.hero:not(.hero--home) .hero-line:last-child > span { color: var(--navy); }
.hero-lead { font-size: clamp(1.02rem, 1.5vw, var(--fs-lg)); line-height: 1.6; color: var(--muted); max-width: 52ch; margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--sp-5); }
.hero-extra { margin-top: var(--sp-5); max-width: 760px; }
.hero-backword { display: none; }
.hero + .section, .hero + .section--tight { padding-top: clamp(32px, 5vw, 56px); }
.hero--home + .section { padding-top: clamp(48px, 7vw, 88px); }
@media (prefers-reduced-motion: no-preference) {
  .hero-body > * { animation: rise .6s ease-out both; }
  .hero-body > :nth-child(2) { animation-delay: .06s; }
  .hero-body > :nth-child(n+3) { animation-delay: .12s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Home search on the photo */
.hero-search { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px; max-width: 600px; border-radius: 999px; background: #fff; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45); }
.hero-search:focus-within { outline: 3px solid #fff; outline-offset: 3px; }
.hero-search-icon { flex: none; margin-left: 14px; width: 22px; height: 22px; color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; min-height: 48px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 1.02rem; padding: 0 6px; }
.hero-search input::placeholder { color: #6b7280; }
.hero-search input:focus { outline: none; }
.hero-note { margin: 12px 0 0; color: #dfeaf6; font-size: .92rem; font-weight: 600; }

/* District chips (Locations header) */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 8px 6px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9rem;
  color: var(--navy); background: #fff; border: 1px solid var(--line); transition: background-color .15s, border-color .15s; }
.chip-link .icon { width: 15px; height: 15px; color: var(--navy); }
.chip-link:hover { background: var(--sky-100); border-color: var(--sky); color: var(--navy); text-decoration: none; }
.chip-link[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip-link[aria-pressed="true"] .icon { color: #fff; }
.chip-link[aria-pressed="true"] .chip-count { background: #fff; color: var(--navy); }
.chip-count { min-width: 24px; padding: 1px 7px; border-radius: 999px; background: var(--sky-100); color: var(--navy); font-size: .78rem; text-align: center; }

/* Locations header search */
.hero .search { position: static; margin: 0 0 18px; padding: 0; border: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; max-width: 720px; }
.hero .search label { color: var(--text); font-size: var(--fs-md); }
.hero .search-row { position: relative; }
.hero .search-icon { position: absolute; left: 18px; top: 15px; width: 22px; height: 22px; color: var(--muted); pointer-events: none; z-index: 1; }
.hero .search input[type="search"] { padding-left: 50px; }
.hero .result-count { color: var(--muted); }

/* Giving steps (numbered: a real sequence) */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.steps li { counter-increment: step; position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--r-md);
  background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: .95rem; line-height: 1.45; }
.steps li::before { content: counter(step); position: absolute; top: 10px; right: 14px; font-weight: 700; font-size: 1.3rem; color: var(--sky); }
.steps strong { color: var(--text); display: block; }
.step-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--sky-100); color: var(--navy); }
.step-icon .icon { width: 20px; height: 20px; }

/* Contact shortcuts and the Resources feature card (light, on the tinted header) */
.shortcuts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.shortcut { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 16px; border-radius: var(--r-md); text-decoration: none; font-weight: 600; color: var(--text);
  background: #fff; border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.shortcut .icon { width: 22px; height: 22px; color: var(--navy); flex: none; }
.shortcut:hover { border-color: var(--navy); box-shadow: var(--shadow-lift); color: var(--text); text-decoration: none; }
.feature-card { display: flex; align-items: center; gap: 16px; max-width: 560px; padding: 16px 18px; border-radius: var(--r-md); text-decoration: none; color: var(--text);
  background: #fff; border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.feature-card:hover { border-color: var(--navy); box-shadow: var(--shadow-lift); color: var(--text); text-decoration: none; }
.feature-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--sky-100); color: var(--navy); }
.feature-icon .icon { width: 24px; height: 24px; }
.feature-body { display: grid; gap: 2px; flex: 1; }
.feature-title { font-weight: 700; font-size: var(--fs-md); }
.feature-meta { color: var(--muted); font-size: .9rem; }
.feature-arrow { width: 22px; height: 22px; flex: none; color: var(--navy); transition: transform .2s; }
.feature-card:hover .feature-arrow { transform: translateX(3px); }

/* Icons */
.icon { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.icon--xs { width: 14px; height: 14px; vertical-align: -2px; }

/* Lists fade in once when scrolled into view (off under reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-stagger] > * { opacity: 0; transform: translateY(10px); transition: opacity .45s ease-out, transform .45s ease-out; }
  .js [data-stagger].is-in > * { opacity: 1; transform: none; }
}

.finder { display: flex; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px; }
.finder input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; padding: 8px 16px; color: var(--text); }
.finder input:focus { outline: none; }
.finder:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- Sections: white and soft sky tint, alternating ---------- */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--paper { background: var(--sky-50); }
.section--ink { background: var(--sky-50); color: var(--text); }
.section-head { max-width: 720px; margin-bottom: clamp(24px, 4vw, 40px); }
.section-head h2::after, .events-head h2::after, .faith-head h2::after { content: ""; display: block; width: 48px; height: 4px; margin-top: 14px; border-radius: 4px; background: var(--gold); }
.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; } .split--top { align-items: start; } }
.split-media { width: 100%; border-radius: var(--r-lg); }
.split-media--arch { border-radius: var(--r-lg); aspect-ratio: 4 / 5; object-fit: cover; }
.prose-col h2 { max-width: 20ch; }
.beliefs { display: grid; gap: 16px; margin: 24px 0 8px; }
@media (min-width: 640px) { .beliefs { grid-template-columns: 1fr 1fr; } }
.belief { background: var(--sky-50); border-radius: var(--r-md); padding: 16px 18px; }
.belief h3 { color: var(--navy); }
.belief p { font-size: .95rem; color: var(--muted); }
.prose { max-width: 70ch; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .55em; }
.prose blockquote { margin: 1.2em 0; padding: .8em 1.2em; border-left: 4px solid var(--sky); background: var(--sky-50); border-radius: 0 var(--r-sm) var(--r-sm) 0; }

/* About: vision, mission and values */
.creed-row { display: grid; gap: 8px 40px; padding: clamp(20px, 3vw, 32px) 0; border-top: 1px solid var(--line); }
.creed-row:first-child { border-top: 0; padding-top: 0; }
.creed-row h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.1; margin: 0; color: var(--navy); }
.creed-text { font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.5; color: var(--text); font-weight: 500; }
.creed-text p { margin: 0 0 .2em; }
.creed-text strong { color: var(--navy); }
@media (min-width: 900px) { .creed-row { grid-template-columns: 4fr 8fr; align-items: baseline; } }

/* ---------- People ---------- */
.people { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 24px 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 148px), 1fr)); }
@media (min-width: 900px) { .people { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }
.person-photo { aspect-ratio: 4 / 5; margin-bottom: 12px; background: var(--sky-100); }
.person-photo img { object-position: top; }
.person-name { font-weight: 600; margin: 0; line-height: 1.3; color: var(--text); }
.person-role { font-size: .88rem; margin: 2px 0 0; color: var(--muted); }
.people--compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.person--text { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; }
.person--text .person-name { font-size: .95rem; }
.person-initials { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--sky-100); color: var(--navy); font-weight: 700; }

/* ---------- Quick links on the home page (plain cards with an icon tile) ---------- */
.bento { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.tile { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; transition: border-color .15s, box-shadow .15s; }
.tile p { color: var(--muted); font-size: .95rem; }
.tile .kicker { color: var(--text); }
.tile h3 a { color: var(--text); text-decoration: none; }
.tile h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tile:hover { border-color: var(--navy); box-shadow: var(--shadow-lift); }
.tile:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.tile-page { margin: auto 0 0; padding-top: 10px; font-weight: 600; font-size: .88rem; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; }
.tile--plain { background: transparent; border-style: dashed; }
.tile--plain:hover { box-shadow: none; border-color: var(--line); }

/* ---------- Call to action band ---------- */
.cta-band { background: var(--sky-50); color: var(--text); padding: clamp(40px, 6vw, 64px) 0; border-top: 1px solid var(--line); }
.cta-band h2 { color: var(--text); }
.cta-band p { margin: 0 0 .3em; color: var(--muted); }
.cta-band .button--light { background: var(--navy); color: #fff; border-color: var(--navy); }
.cta-band .button--light:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-inner > div { max-width: 720px; }

/* ---------- Video ---------- */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lift); background: var(--ink); }
.video iframe { width: 100%; height: 100%; border: 0; }
.video-play { display: block; height: 100%; color: #fff; text-decoration: none;
  background: radial-gradient(circle at 75% 20%, rgba(23, 71, 181, .9), transparent 55%), linear-gradient(135deg, var(--ink), #1d3f8a); }
.video-play:hover { color: #fff; }
.video-title { position: absolute; left: 28px; right: 28px; top: 24px; font-weight: 700; font-size: clamp(1rem, 2.2vw, 1.4rem); letter-spacing: -.01em; max-width: 30ch; }
.video-label { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); padding: 14px 26px; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.video-label::before { content: ""; width: 0; height: 0; border-left: 12px solid var(--flame); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.video-play:hover .video-label { background: var(--mist); }
.video-note { position: absolute; left: 28px; right: 28px; bottom: 20px; font-size: .8rem; color: #b9c6e4; }
@media (max-width: 520px) { .video-note { display: none; } .video-title { left: 18px; top: 16px; font-size: .95rem; } }

/* ---------- Accordion ---------- */
.accordion { margin-top: 28px; display: grid; gap: 10px; }
.accordion details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); }
.accordion details[open] { border-color: var(--ink); }
.accordion summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-weight: 700; color: var(--flame); font-size: 1.2rem; line-height: 1; }
.accordion details[open] summary::after { content: "–"; }
.accordion .prose { padding: 0 20px 16px; color: var(--muted); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; margin: 16px 0; background: #fff; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--paper); color: var(--ink); font-size: .9rem; }
.table tbody th { font-weight: 600; color: var(--ink); }

/* ---------- Directory ---------- */
.search { position: sticky; top: 92px; z-index: 5; margin: 28px 0 10px; padding: 16px; border-radius: var(--r-md); background: rgba(245, 247, 251, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); }
.search label { font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.search .hint { margin-bottom: 10px; }
.search-row { display: flex; flex-wrap: wrap; gap: 10px; }
.search input[type="search"] { flex: 1 1 260px; min-height: 52px; font: inherit; font-size: 1.05rem; padding: 12px 18px; border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--text); }
.search input[type="search"]:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 4px rgba(242, 179, 61, .45); }
@media (max-width: 899px) { .search { position: static; } }
.result-count { font-weight: 600; color: var(--muted); margin: 10px 2px 0; }
.church-cards { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.church-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.church-card:hover { border-color: var(--ink); box-shadow: var(--shadow-lift); }
.church-card:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.church-card h3 { font-size: 1.08rem; margin-bottom: .35em; }
.church-card h3 a { color: var(--ink); text-decoration: none; }
.church-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.church-card p { margin: 0 0 .3em; font-size: .92rem; }
.church-card .card-link { margin-top: auto; padding-top: 10px; color: var(--royal); font-weight: 600; font-size: .88rem; }
.chip { display: inline-block; align-self: flex-start; font-size: .78rem; font-weight: 600; color: var(--ink); background: var(--mist); border-radius: 999px; padding: 3px 12px; margin-bottom: 10px; }
.church-code, .church-address { color: var(--muted); }
.church-where { color: var(--flame-dark); font-weight: 600; }
.empty { border: 2px dashed var(--line); border-radius: var(--r-md); padding: 32px 24px; text-align: center; margin-top: 16px; background: var(--paper); }
.empty h3 { font-size: 1.4rem; }
[hidden] { display: none !important; }

/* Church page */
.church-page { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .church-page { grid-template-columns: 1.4fr .9fr; align-items: start; } }
.church-title { font-size: clamp(2rem, 5vw, 3.4rem); }
.details { display: grid; grid-template-columns: minmax(110px, 170px) 1fr; gap: 14px 24px; margin: 0; }
.details dt { font-weight: 600; color: var(--ink); }
.details dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .details { grid-template-columns: 1fr; gap: 2px; } .details dd { margin-bottom: 12px; } }
.visit-card { background: var(--ink); color: #d7e0f3; border-radius: var(--r-lg); padding: 28px; overflow-wrap: anywhere; }
@media (min-width: 900px) { .visit-card { position: sticky; top: 100px; } }
.visit-card h2 { color: #fff; font-size: 1.4rem; }
.visit-card p { margin-bottom: .6em; }
.visit-card .button { width: 100%; margin-top: 10px; }
.visit-card a:not(.button) { color: #fff; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li + li { margin-top: 6px; }
.breadcrumb { margin-bottom: 12px; font-weight: 600; }
.page-pad { padding-top: clamp(28px, 5vw, 56px); }

/* Resources */
.downloads { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.downloads li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; background: var(--mist); color: var(--ink); border-radius: 999px; padding: 2px 10px; }
.ministry-img { margin: 0 auto 16px; max-width: min(100%, 480px); border-radius: var(--r-md); }

/* ---------- Forms ---------- */
.form { margin-top: 24px; }
.form-narrow { max-width: 520px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow-lift); }
fieldset { border: 0; border-top: 1px solid var(--line); padding: 18px 0 4px; margin: 0; min-width: 0; }
fieldset:first-of-type { border-top: 0; padding-top: 0; }
legend { font-weight: 700; color: var(--ink); padding: 0; margin-bottom: 10px; font-size: 1.05rem; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea, .decide input, .inline-form select {
  width: 100%; min-height: 50px; font: inherit; padding: 11px 14px; border: 1.5px solid #b9c3d6; border-radius: var(--r-sm); background: #fff; color: var(--text); }
.field textarea { min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus, .decide input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 4px rgba(242, 179, 61, .45); }
.field input:disabled { background: var(--paper); color: var(--muted); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--flame); border-width: 2px; }
.hint { font-size: .86rem; color: var(--muted); margin: 0 0 8px; }
.error { color: var(--flame-dark); font-weight: 600; font-size: .9rem; margin: 6px 0 0; }
.req { color: var(--flame); }
.optional { font-weight: 400; color: var(--muted); font-size: .85rem; }
.row { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .row { grid-template-columns: 1fr 1fr; } }
.choice { display: flex; align-items: center; gap: 12px; margin: 10px 0; }
.choice input { width: 22px; height: 22px; accent-color: var(--ink); }
.choice label { font-weight: 600; margin: 0; }
.choice-panel { margin: 6px 0 14px 34px; }
.hp { position: absolute; left: -9999px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.inline-form select { width: auto; }

/* ---------- Notices and status ---------- */
.notice { border-radius: var(--r-md); padding: 14px 18px; margin: 16px 0; border: 1px solid; }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.notice--success { background: #eaf6ee; border-color: #9fd1b0; color: #0f4527; }
.notice--error { background: #fdecee; border-color: #f0a7b1; color: #6d0a18; }
.notice--info { background: #eef3fb; border-color: #c4d3ee; color: #142c57; }
.status { display: inline-block; font-size: .8rem; font-weight: 600; border-radius: 999px; padding: 2px 10px; background: var(--paper); }
.status--approved { background: #e3f3e8; color: var(--ok); }
.status--pending { background: #fff3d6; color: var(--warn); }
.status--rejected { background: #fde3e6; color: var(--flame-dark); }
.status--unlisted { background: #eceff4; color: var(--muted); }

/* ---------- Admin ---------- */
.admin-nav ul { list-style: none; padding: 4px; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 4px; background: var(--paper); border-radius: var(--r-md); border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.admin-nav a { display: block; padding: 8px 16px; text-decoration: none; font-weight: 600; color: var(--text); border-radius: 999px; }
.admin-nav a:hover { background: var(--mist); }
.admin-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.stats { list-style: none; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stats li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; }
.stat { display: block; font-size: 2.2rem; font-weight: 800; color: var(--ink); line-height: 1.1; letter-spacing: -.02em; }
.panel { border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; margin: 16px 0; background: #fff; }
.requests { list-style: none; padding: 0; }
.decide { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.decide label { width: 100%; font-weight: 600; }
.decide input { flex: 1 1 240px; width: auto; }
.history { padding-left: 1.1em; font-size: .9rem; }
.history ul { color: var(--muted); }


/* ---------- New sections ---------- */
.section--tight { padding-top: clamp(28px, 4vw, 48px); }
.timeline { list-style: none; counter-reset: ev; margin: 28px 0 0; padding: 0 0 0 30px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--flame), var(--royal)); border-radius: 2px; }
.timeline li { counter-increment: ev; position: relative; padding: 0 0 22px 18px; color: var(--text); }
.timeline li::before { content: counter(ev); position: absolute; left: -30px; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--flame);
  color: var(--flame); font-size: .7rem; font-weight: 800; display: grid; place-items: center; }
.timeline li:first-child { font-weight: 600; }
.resource-grid { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.resource-tile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.resource-tile:hover { border-color: var(--ink); box-shadow: var(--shadow-lift); }
.resource-tile h3 { margin: 6px 0 0; padding-right: 36px; }
.resource-tile h3 a { color: var(--ink); text-decoration: none; }
.resource-tile h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.resource-tile .tag { align-self: flex-start; }
.resource-tile p { margin: 0; font-size: .9rem; }
.resource-icon { position: absolute; top: 20px; right: 20px; color: var(--flame); }
.resource-tile:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.register-band { margin-top: clamp(40px, 6vw, 72px); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
  padding: clamp(24px, 4vw, 40px); border-radius: var(--r-lg); background: linear-gradient(120deg, var(--ink), #1d3f8a); color: #d7e0f3; }
.register-band h2 { color: #fff; }
.register-band p { margin: 0; max-width: 60ch; }
.chip .icon { margin-right: 4px; }
.card-link .icon { transition: transform .2s; }
.church-card:hover .card-link .icon { transform: translateX(3px); }


/* ---------- Third pass: sections below the heroes ---------- */
/* Compact heroes (a church, registration, sign-in) */
.hero--compact { min-height: 0; padding-bottom: clamp(80px, 8vw, 110px); }
.hero--compact .hero-title { font-size: clamp(2.4rem, 6.4vw, 4.8rem); max-width: 18ch; }
.hero-place { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .24); color: #fff; }
.hero-place .icon { color: var(--focus); }
.icon--flip { transform: scaleX(-1); }

/* Home: the community collage sits on an arched mist panel, so its baked-in grey shape blends in */
.collage { position: relative; padding: clamp(18px, 3vw, 36px); border-radius: var(--arch); background: linear-gradient(160deg, var(--mist), #fff 70%); }
.collage::before { content: ""; position: absolute; inset: 14px; border-radius: inherit; border: 2px dashed rgba(23, 71, 181, .18); pointer-events: none; }
.collage img { position: relative; width: 100%; }

/* Home: tiles with icons; the large tile carries the church photograph */
.tile-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 14px; background: var(--mist); color: var(--ink); }
.tile-icon .icon { width: 22px; height: 22px; }
.tile:hover .tile-icon { background: var(--ink); color: #fff; }
.tile--lg { isolation: isolate; min-height: 360px; }
.tile--lg::after { content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit;
  background: url(/media-web/media/2025/04/0d80b92c-3063-4713-bb9b-056b012fb73e.webp) center / cover no-repeat; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.tile--lg::before { z-index: -1; inset: 0; right: 0; top: 0; width: auto; height: auto; border: 0; border-radius: inherit;
  background: linear-gradient(0deg, rgba(11, 31, 77, .97) 15%, rgba(11, 31, 77, .55) 60%, rgba(11, 31, 77, .25)); }
.tile--lg { overflow: hidden; }
.tile--lg .tile-icon { background: var(--flame); color: #fff; }
.tile--lg:hover .tile-icon { background: #fff; color: var(--flame); }
.tile-stat { margin: 6px 0 0; font-weight: 700; color: #ffd27a !important; }
@media (prefers-reduced-motion: no-preference) { .tile--lg:hover::after { transform: scale(1.05); } }
.tile-page { display: inline-flex; align-items: center; gap: 6px; }
.tile-page .icon { transition: transform .2s; }
.tile:hover .tile-page .icon { transform: translateX(3px); }
.tile-page--muted { color: var(--muted); font-weight: 500; }
.tile--bar { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 18px; padding: 16px 20px; }
.tile--bar .tile-icon { margin: 0; }
.tile--bar h3 { margin: 0; }
.tile--bar p { margin: 0; }
.tile--bar .tile-page { margin-left: auto; padding-top: 0; }

/* Home: video in a dark band with a soft glow */
.section--video { position: relative; overflow: hidden; background: #fff; padding: clamp(56px, 8vw, 96px) 0; margin-top: 0; }
.video-glow { position: absolute; left: 50%; top: 50%; width: min(1100px, 120vw); aspect-ratio: 2; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(215, 38, 46, .18), rgba(23, 71, 181, .14) 55%, transparent); filter: blur(10px); pointer-events: none; }
.section--video .video { box-shadow: 0 40px 90px -40px rgba(11, 31, 77, .75); }
.video-play::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 280px; height: 360px; border-radius: 50% 50% 0 0 / 40% 40% 0 0; border: 30px solid rgba(255, 255, 255, .06); }
.section--ink + .section--video { border-top: 1px solid rgba(255, 255, 255, .08); }
.section--video .wrap { position: relative; }

/* Find-a-church band with a large arch outline */
.cta-band--arch { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(115deg, var(--flame-dark), var(--flame) 55%, #e8513a); }
.cta-band--arch::before, .cta-band--arch::after { content: ""; position: absolute; z-index: -1; border-radius: 50% 50% 0 0 / 40% 40% 0 0; border: 34px solid rgba(255, 255, 255, .1); }
.cta-band--arch::before { right: 4%; bottom: -60px; width: 300px; height: 380px; }
.cta-band--arch::after { right: calc(4% + 70px); bottom: -60px; width: 160px; height: 240px; border-width: 22px; border-color: rgba(255, 255, 255, .14); }
.cta-band--arch h2 { font-size: clamp(1.9rem, 4vw, 3rem); }

/* About: the statement of faith as a numbered grid (the source numbers them) */
.faith-head { display: grid; gap: 8px 48px; margin-bottom: clamp(28px, 4vw, 44px); }
@media (min-width: 900px) { .faith-head { grid-template-columns: 1fr 1.1fr; align-items: end; } .faith-head h2 { margin: 0; } }
.faith-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); align-items: start; }
.faith-item { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; transition: border-color .2s, box-shadow .2s; }
.faith-item:hover { border-color: var(--ink); }
.faith-item[open] { border-color: var(--ink); box-shadow: var(--shadow-lift); }
.faith-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 16px 18px; min-height: 64px; }
.faith-item summary::-webkit-details-marker { display: none; }
.faith-item summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; line-height: 1; font-weight: 700; color: var(--flame); transition: transform .2s; }
.faith-item[open] summary::after { transform: rotate(45deg); }
.faith-num { font-weight: 800; font-size: 1.5rem; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1.5px var(--royal); min-width: 2ch; }
.faith-item[open] .faith-num { color: var(--flame); -webkit-text-stroke: 0; }
.faith-title { font-weight: 700; color: var(--ink); }
.faith-item .prose { padding: 0 18px 18px 66px; color: var(--muted); }
@media (max-width: 520px) { .faith-item .prose { padding-left: 18px; } }

/* About: department coordinators as cards */
.dept-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.dept { display: grid; gap: 4px; padding: 18px 20px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--flame); }
.dept-name { font-size: .85rem; font-weight: 600; color: var(--muted); }
.dept-person { font-weight: 700; color: var(--ink); }

/* Church page */
.visit-line { display: flex; align-items: center; gap: 10px; }
.visit-line .icon { color: var(--focus); }
.church-page h2 { font-size: 1.5rem; }



/* ---------- Fourth pass: account icon, events, social ---------- */
/* Header: sign-in icon (dashboard icon once signed in) */
.account-button { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; color: var(--ink); background: var(--paper); border: 1px solid var(--line); transition: background-color .2s, color .2s, border-color .2s; }
.account-button .icon { width: 20px; height: 20px; }
.account-button:hover, .account-button[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.account-button--in { background: var(--ink); color: #fff; border-color: var(--ink); }
.account-button--in:hover { background: var(--flame); border-color: var(--flame); color: #fff; }
@media (max-width: 1060px) { .account-button { order: 2; margin-left: auto; } .js .nav-toggle { margin-left: 8px; order: 3; } }
@media (min-width: 1061px) { .site-nav { margin-left: auto; margin-right: 8px; } }

/* Events */
.events-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 28px; }
.events-head h2 { margin-bottom: .25em; }
.events-head .lead { margin: 0; }
.event-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.event-card { position: relative; display: flex; gap: 18px; padding: 20px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.event-card:hover { border-color: var(--ink); box-shadow: var(--shadow-lift); }
.event-card h3 { margin: 0 0 6px; }
.event-card h3 a { color: var(--ink); text-decoration: none; }
.event-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.event-card:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.event-date { flex: none; display: grid; place-items: center; align-content: center; width: 64px; height: 72px; margin: 0; border-radius: 50% 50% 12px 12px / 38% 38% 12px 12px; background: var(--ink); color: #fff; line-height: 1; }
.event-month { font-size: .75rem; font-weight: 700; color: var(--focus); }
.event-day { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; margin-top: 2px; }
.event-meta { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: .9rem; color: var(--muted); }
.event-desc { margin: 8px 0 0; font-size: .92rem; color: var(--text); }
.event-link { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0; font-weight: 600; font-size: .85rem; color: var(--royal); }
.event-list--past .event-date { background: var(--mist); color: var(--muted); }
.event-list--past .event-month { color: var(--muted); }
.empty--left { text-align: left; }
.events-home { background: #fff; }

/* Facebook: a link pill in the hero and a click-to-load embed */
.fb-pill { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 18px; border-radius: 999px; text-decoration: none; font-weight: 700; color: #fff;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.fb-pill:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.fb-pill .icon:first-child { color: var(--focus); }
.fb-embed { display: grid; justify-items: start; gap: 10px; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); min-height: 260px; align-content: center; }
.fb-embed p { margin: 0; max-width: 46ch; }
.fb-embed-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--ink); color: #fff; }
.fb-embed iframe { width: 100%; max-width: 500px; height: 640px; border: 0; border-radius: var(--r-md); background: #fff; }
.fb-embed.is-loaded { justify-items: center; padding: 12px; }

/* Contact: other ways to reach DFCCI beside the form */
.contact-layout { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .contact-layout { grid-template-columns: 320px minmax(0, 1fr); align-items: start; } .reach-card { position: sticky; top: 100px; } }
.reach-card { padding: 24px; border-radius: var(--r-lg); background: var(--ink); color: #d7e0f3; }
.reach-card h2 { color: #fff; }
.reach-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.reach-list a { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); overflow-wrap: anywhere; }
.reach-list a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.reach-list .icon { width: 22px; height: 22px; color: var(--focus); }
.reach-list span { display: grid; font-size: .85rem; color: #b9c6e4; }
.reach-list strong { color: #fff; font-size: .98rem; }
.shortcut--out .shortcut-out { margin-left: auto; width: 14px; height: 14px; color: #cfd9f2; }


/* Events: badges, years, sync */
.event-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.event-badge { font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--mist); color: var(--muted); }
.event-badge--canceled { background: #fde3e6; color: var(--flame-dark); }
.year-nav ul { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.year-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; font-weight: 700; color: var(--ink); }
.year-nav a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.year-group + .year-group { margin-top: 36px; }
.year-title { display: flex; align-items: baseline; gap: 12px; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.03em; padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 16px; scroll-margin-top: 110px; }
.year-count { font-size: .9rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.sync-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.sync-panel p { margin: 0 0 6px; max-width: 70ch; }


/* ---------- Video gallery: featured player + preview strip ---------- */
.vg { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 1040px; margin: 0 auto; }
.vg-video .video-play { all: unset; box-sizing: border-box; position: relative; display: block; width: 100%; height: 100%; cursor: pointer; color: #fff;
  background: radial-gradient(circle at 75% 20%, rgba(23, 71, 181, .9), transparent 55%), linear-gradient(135deg, var(--ink), #1d3f8a); }
.vg-video .video-play:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.vg-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.vg-video.is-playing { background: #000; }
.vg-video--external .video-label .icon { width: 18px; height: 18px; }
.vg-video--external .video-label::before { display: none; }
.vg-source { margin: -6px 0 0; text-align: right; font-size: .85rem; }
.vg-source a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; }
.vg-source a:hover { color: var(--ink); }
.vg-source .icon { width: 14px; height: 14px; }
.vg-stage { display: grid; gap: 12px; }
.vg-rail li { display: grid; }
.vg-video video, .vg-video iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.vg-rail { list-style: none; margin: 0; padding: 4px 2px 8px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; }
.vg-rail li { scroll-snap-align: start; }
.vg-thumb { display: grid; gap: 6px; height: 100%; padding: 8px; border-radius: var(--r-md); text-decoration: none; color: var(--text); background: #fff; border: 2px solid var(--line); transition: border-color .2s, transform .2s, box-shadow .2s; }
.vg-thumb:hover { border-color: var(--ink); transform: translateY(-2px); color: var(--text); }
.vg-thumb[aria-current="true"] { border-color: var(--flame); box-shadow: 0 10px 24px -14px rgba(215, 38, 46, .7); }
.vg-art { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--ink), #2a55b8); }
.vg-art--facebook { background: linear-gradient(135deg, #0b1f4d, #1877f2); }
.vg-art--youtube { background: linear-gradient(135deg, #0b1f4d, #c8102e); }
.vg-art--vimeo { background: linear-gradient(135deg, #0b1f4d, #13a1c9); }
.vg-art .icon { width: 28px; height: 28px; }
.vg-art img { width: 100%; height: 100%; object-fit: cover; }
.vg-thumb[aria-current="true"] .vg-art::after { content: "Now showing"; position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px; font-size: .7rem; font-weight: 700; background: var(--flame); color: #fff; }
.vg-thumb-title { font-weight: 700; font-size: .85rem; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vg-thumb-source { font-size: .75rem; font-weight: 600; color: var(--muted); }
@media (min-width: 900px) { .vg-rail { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); overflow: visible; } }

/* Admin: videos */
.video-admin { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.video-admin li { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.video-admin .vg-art { width: 120px; }
.video-admin .meta { min-width: 0; overflow-wrap: anywhere; }
.video-admin .meta p { margin: 0; font-size: .85rem; color: var(--muted); }
.video-admin .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.icon-btn:disabled { opacity: .4; cursor: not-allowed; background: #fff; color: var(--ink); }
@media (max-width: 640px) { .video-admin li { grid-template-columns: 90px minmax(0, 1fr); } .video-admin .vg-art { width: 90px; } .video-admin .actions { grid-column: 1 / -1; justify-content: flex-start; } }

/* Footer: Connect column */
.social { display: grid; gap: 8px; }
.social a { display: inline-flex; align-items: center; gap: 10px; }
.social .icon { width: 18px; height: 18px; color: var(--focus); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9c6e4; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ffb3b6; }
.footer-finder { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 40px; align-items: center; padding: clamp(40px, 6vw, 64px) 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-finder h2 { color: #fff; margin: 0; }
.footer-finder .finder { box-shadow: none; }
@media (min-width: 900px) { .footer-finder { grid-template-columns: 1fr minmax(380px, 1fr); } }
.footer-inner { display: grid; gap: 32px; padding: 48px 0 32px; }
@media (min-width: 820px) { .footer-inner { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-about img { width: 140px; margin-bottom: 14px; background: #fff; border-radius: var(--r-sm); padding: 8px 12px; box-sizing: content-box; }
.footer-about p { max-width: 44ch; }
.site-footer h2 { font-size: 1rem; color: #fff; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.copyright { margin: 0; padding: 16px 0; font-size: .86rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.copyright .wrap { display: block; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }


/* ---------- Ministries: home cards and the Ministry page ---------- */
.ministry-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.ministry-cards > li { display: grid; }
.ministry-card { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-md); overflow: hidden; background: #fff; border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.ministry-card:hover { border-color: var(--ink); box-shadow: var(--shadow-lift); transform: translateY(-2px); color: var(--text); }
.ministry-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ministry-card-cover { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ministry-cover--blank { display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 75% 20%, rgba(23, 71, 181, .9), transparent 55%), linear-gradient(135deg, var(--ink), #1d3f8a); }
.ministry-cover--blank .icon { width: 36px; height: 36px; }
.ministry-card-body { display: grid; align-content: start; gap: 8px; padding: 16px 18px 18px; }
.ministry-card-name { font-weight: 700; font-size: 1.1rem; color: var(--ink); line-height: 1.3; }
.ministry-card-text { font-size: .92rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ministry-card-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--royal, var(--ink)); margin-top: 4px; }
.ministry-card-more .icon { width: 16px; height: 16px; }
.ministry-jump { margin-bottom: 28px; }
.ministry-list { display: grid; gap: 40px; }
.ministry { display: grid; gap: 24px 40px; align-items: start; scroll-margin-top: 110px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.ministry:last-child { border-bottom: 0; padding-bottom: 0; }
.ministry-cover { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-md); }
.ministry-body h2 { margin-top: 0; }
.ministry-text p { max-width: 68ch; }
.ministry-contacts { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.ministry-contacts li { display: flex; gap: 10px; align-items: flex-start; overflow-wrap: anywhere; }
.ministry-contacts .icon { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--muted); }
.ministry:target .ministry-body h2 { color: var(--flame); }
@media (min-width: 860px) { .ministry { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.ministry-admin-cover { display: block; width: 240px; max-width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; margin-bottom: 10px; }
.ministry-admin .vg-art img, .ministry-admin img.vg-art { width: 120px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }

.ministries-home { background: var(--mist); }
.ministry-cover.ministry-cover--blank, .ministry-card-cover.ministry-cover--blank { display: grid; place-items: center; }
.ministry-cover.ministry-cover--blank .icon { width: 56px; height: 56px; }


/* ---------- Design pass 5: calm overrides for components built for dark headers ---------- */
/* Church page: the place pill and the visit card on light backgrounds */
.hero-place { background: #fff; border: 1px solid var(--line); color: var(--text); }
.hero-place .icon, .visit-line .icon { color: var(--navy); }
.visit-card { background: var(--sky-50); color: var(--text); border: 1px solid var(--line); }
.visit-card h2 { color: var(--text); }
.visit-card a:not(.button) { color: var(--navy); }
/* Home: the community photo without the arch and dashed frame */
.collage { padding: 0; border-radius: var(--r-lg); background: none; overflow: hidden; }
.collage::before { display: none; }
/* Home quick links: every card the same, the large one included */
.tile--lg { background: #fff; border-color: var(--line); padding: 22px; min-height: 0; justify-content: flex-start; isolation: auto; }
.tile--lg::before, .tile--lg::after { display: none; }
.tile--lg h3 { font-size: var(--fs-lg); }
.tile--lg h3 a, .tile--lg .kicker { color: var(--text); }
.tile--lg p { color: var(--muted); font-size: .95rem; }
.tile--lg .tile-page { color: var(--navy); }
.tile--lg .tile-icon, .tile-icon { background: var(--sky-100); color: var(--navy); }
.tile:hover .tile-icon, .tile--lg:hover .tile-icon { background: var(--navy); color: #fff; }
.tile-stat { color: var(--navy) !important; }
@media (min-width: 900px) { .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; } .tile--lg, .tile--md { grid-column: auto; grid-row: auto; } }
/* Video section: no glow; the player is a plain rounded frame */
.video-glow { display: none; }
.section--video { background: #fff; }
.section--video .video, .video { box-shadow: var(--shadow-lift); }
.video-play::after { display: none; }
.video-play, .vg-video .video-play { background: linear-gradient(135deg, var(--navy), #1565b8); }
.video-label::before { border-left-color: var(--navy); }
.vg-thumb[aria-current="true"] { border-color: var(--navy); box-shadow: var(--shadow-lift); }
.vg-thumb[aria-current="true"] .vg-art::after { background: var(--navy); }
.vg-art { background: linear-gradient(135deg, var(--navy), #1565b8); }
/* Find-a-church band: no arch outlines */
.cta-band--arch { background: var(--sky-50); }
.cta-band--arch::before, .cta-band--arch::after { display: none; }
.cta-band--arch h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
/* About */
.faith-num { color: var(--navy); -webkit-text-stroke: 0; font-weight: 700; font-size: 1.2rem; }
.faith-item[open] .faith-num { color: var(--navy); }
.faith-item summary::after, .accordion summary::after { color: var(--navy); }
.dept { border-left-color: var(--sky); background: #fff; }
.timeline::before { background: var(--sky); }
.timeline li::before { border-color: var(--navy); color: var(--navy); }
/* Register band and contact card: light */
.register-band { background: var(--sky-50); color: var(--text); border: 1px solid var(--line); }
.register-band h2 { color: var(--text); }
.reach-card { background: var(--sky-50); color: var(--text); border: 1px solid var(--line); }
.reach-card h2 { color: var(--text); }
.reach-list a { color: var(--text); background: #fff; border-color: var(--line); }
.reach-list a:hover { border-color: var(--navy); background: #fff; color: var(--text); }
.reach-list .icon { color: var(--navy); }
.reach-list span { color: var(--muted); }
.reach-list strong { color: var(--text); }
.shortcut--out .shortcut-out { color: var(--muted); }
/* Facebook pill on the Events header */
.fb-pill { color: var(--navy); background: #fff; border: 1px solid var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; }
.fb-pill:hover { color: var(--navy); border-color: var(--navy); background: #fff; }
.fb-pill .icon:first-child { color: var(--navy); }
.fb-embed-icon { background: var(--sky-100); color: var(--navy); }
/* Events: the date as a simple rounded square */
.event-date { border-radius: 14px; background: var(--sky-100); color: var(--navy); }
.event-month { color: var(--navy); }
.events-home { background: #fff; }
/* Directory */
.search { top: 84px; background: rgba(242, 249, 255, .96); }
.search input[type="search"]:focus, .field input:focus, .field select:focus, .field textarea:focus, .decide input:focus { box-shadow: 0 0 0 4px rgba(100, 193, 248, .45); }
.church-where { color: var(--navy); }
.resource-icon { color: var(--navy); }
.req { color: var(--red); }
.ministry:target .ministry-body h2 { color: var(--navy); }
.ministry-cover--blank { background: linear-gradient(135deg, var(--navy), #1565b8); }
.ministries-home { background: var(--sky-50); }
/* Footer: deep logo navy */
.site-footer { background: var(--navy-dark); color: #d6e3f3; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--sky-100); }
.social .icon { color: var(--sky); }
.footer-about img { border-radius: var(--r-sm); }
.site-footer :focus-visible { outline-color: #fff; }
/* Pass 5 refinements after the first look */
.collage { background: var(--sky-50); padding: clamp(14px, 2.5vw, 28px); }
.vg { max-width: 900px; }
@media (min-width: 1100px) { .bento { grid-template-columns: repeat(4, 1fr); } }
.cta-band, .cta-band--arch { background: #fff; }
.steps li { padding-right: 40px; }

/* Pass 5b: eight menu items and a labelled sign-in button */
.site-nav a { padding: 8px 11px; font-size: .92rem; }
.account-button { display: inline-flex; align-items: center; gap: 8px; width: auto; height: auto; min-height: 44px; padding: 8px 16px 8px 12px; border-radius: 999px;
  background: #fff; color: var(--navy); border: 1.5px solid var(--navy); font-weight: 600; font-size: .92rem; text-decoration: none; }
.account-button .icon { width: 22px; height: 22px; }
.account-button:hover, .account-button[aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); text-decoration: none; }
.account-button--in { background: var(--navy); color: #fff; }
.account-button--in:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
@media (max-width: 1180px) {
  .js .nav-toggle { display: inline-flex; margin-left: 8px; order: 3; }
  .js .site-nav { display: none; order: 4; width: 100%; margin: 4px 0 8px; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 2px; }
  .js .site-nav a { padding: 12px 14px; border-radius: var(--r-sm); font-size: .95rem; }
  .js .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--sky); background: var(--sky-50); }
  .account-button { order: 2; margin-left: auto; }
}
@media (min-width: 1181px) { .site-nav { margin-left: auto; margin-right: 10px; } }
@media (max-width: 420px) { .account-button span:not(.visually-hidden) { display: none; } .account-button { padding: 8px 10px; } }

/* Resources: one card per collection; the collection page lists its items */
.group-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.group-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.group-card:hover { border-color: var(--navy); box-shadow: var(--shadow-lift); }
.group-card:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.group-card h3 { margin: 8px 0 0; }
.group-card h3 a { color: var(--text); text-decoration: none; }
.group-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.group-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.group-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--sky-100); color: var(--navy); }
.group-icon .icon { width: 24px; height: 24px; }
.group-meta { font-weight: 600; color: var(--text) !important; font-size: .88rem !important; }
.group-open { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--navy); }
.resource-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.resource-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.resource-row:hover { border-color: var(--navy); box-shadow: var(--shadow-lift); color: var(--text); text-decoration: none; }
.resource-row-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--sky-100); color: var(--navy); }
.resource-row-body { display: grid; flex: 1; min-width: 0; }
.resource-row-name { font-weight: 600; overflow-wrap: anywhere; }
.resource-row-meta { font-size: .85rem; color: var(--muted); }
.resource-row-action { flex: none; padding: 6px 14px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 600; font-size: .85rem; }
.resource-row--off { opacity: .7; }
@media (max-width: 480px) { .resource-row-action { display: none; } }

/* Pass 5b: equal home cards, obvious links */
.bento { grid-auto-rows: 1fr; }
.tile p:not(.tile-page):not(.tile-stat):not(.kicker) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile .kicker { margin-bottom: .2em; }
.tile-page { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; margin-top: auto; padding: 6px 14px; border-radius: 999px; background: var(--sky-100); color: var(--navy); font-size: .88rem; }
.tile:hover .tile-page { background: var(--navy); color: #fff; }
.tile-stat { font-size: .88rem; margin-top: 4px !important; }
/* Text links read as buttons: an outlined pill with an arrow */
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 16px; padding: 8px 18px; border-radius: 999px;
  border: 1.5px solid var(--navy); background: #fff; color: var(--navy); font-weight: 600; text-decoration: none; transition: background-color .15s, color .15s; }
.text-link::after { content: "\2192"; font-weight: 700; transition: transform .15s; }
.text-link:hover { background: var(--navy); color: #fff; text-decoration: none; }
.text-link:hover::after { transform: translateX(3px); }
/* Buttons: a touch more weight so they read clearly as buttons */
.button { box-shadow: 0 2px 0 rgba(8, 58, 120, .25); }
.button--secondary, .button--ghost, .button--ghost-light { box-shadow: none; }
.button::after { content: none; }
.events-head .button, .cta-band .button { padding-inline: 26px; }

/* Pass 5b: inner-page hero photos larger, 4:3, framed, focused on the people */
@media (min-width: 960px) {
  .hero:not(.hero--home):not(.hero--compact) .hero-media { top: 50%; bottom: auto; transform: translateY(-50%); width: min(42%, 500px); aspect-ratio: 4 / 3; overflow: visible; border-radius: var(--r-lg); }
  .hero:not(.hero--home):not(.hero--compact) .hero-media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: var(--r-lg); background: var(--sky-100); z-index: -1; }
  .hero:not(.hero--home):not(.hero--compact) .hero-media img { position: relative; border-radius: var(--r-lg); box-shadow: 0 18px 40px -22px rgba(8, 35, 72, .45); }
  .hero:not(.hero--home):not(.hero--compact) .hero-body { padding-right: min(48%, 560px); min-height: 380px; }
  .hero:not(.hero--home):not(.hero--compact) { padding-block: clamp(48px, 6vw, 80px); }
}
/* Phones and tablets: the photo shows too, as a wide band under the text */
@media (max-width: 959px) {
  .hero:not(.hero--home):not(.hero--compact) { display: flex; flex-direction: column-reverse; }
  .hero:not(.hero--home):not(.hero--compact) .hero-media { display: block; width: min(100% - 2 * var(--gutter), var(--wrap)); margin: var(--sp-5) auto 0; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; }
  .hero:not(.hero--home):not(.hero--compact) .hero-media img { width: 100%; height: 100%; object-fit: cover; }
}
/* Focal points per page so faces aren't cut */
.hero--about .hero-media img { object-position: 50% 60%; }
.hero--locations .hero-media img { object-position: 45% 55%; }
.hero--events .hero-media img { object-position: 40% 45%; }
.hero--resources .hero-media img { object-position: 45% 30%; }
.hero--ministry .hero-media img { object-position: 25% 60%; }
.hero--giving .hero-media img { object-position: 50% 45%; }
.hero--contact .hero-media img { object-position: 50% 40%; }

/* =====================================================================
   Pass 6: ultramodern, still a church site. Inspired by the Owner's
   reference: a deep navy hero built on the emblem's own symbols, a bold
   italic headline with a red band, a red-and-white wave, quick links that
   overlap the hero, red for actions. Contrast kept above 4.5:1.
   ===================================================================== */
:root { --deep: #061a3a; --deep-2: #0a2c63; }
/* Buttons: red for the main action (white on #D0101A is 5.6:1) */
.button { background: var(--red); border-color: var(--red); box-shadow: 0 8px 20px -10px rgba(208, 16, 26, .7); }
.button:hover { background: var(--flame-dark); border-color: var(--flame-dark); }
.button--secondary, .button--ghost { background: #fff; color: var(--navy); border-color: var(--navy); box-shadow: none; }
.cta-band .button--light { background: var(--red); border-color: var(--red); }
/* Header: deep navy, emblem with the church's name */
.site-header { background: linear-gradient(90deg, var(--deep), var(--deep-2)); border-bottom: 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; margin: 0; }
.brand img { width: 52px; height: 52px; }
.brand-name { font-weight: 700; font-size: .86rem; line-height: 1.15; color: #fff; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .35); }
.site-nav a { color: #e8eef8; }
.site-nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--red); background: none; }
.account-button { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.account-button:hover, .account-button[aria-current="page"], .account-button--in { background: #fff; color: var(--navy); border-color: #fff; }
.nav-toggle { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.site-header :focus-visible { outline-color: #fff; }
@media (max-width: 1180px) {
  .js .site-nav a { color: #fff; }
  .js .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--red); background: rgba(255, 255, 255, .08); }
}
@media (max-width: 420px) { .brand-name { font-size: .74rem; } .brand img { width: 44px; height: 44px; } }

/* Heroes: deep navy with soft light, white type, a red band, the wave */
.hero, .hero:not(.hero--home) { position: relative; isolation: isolate; color: #fff; overflow: hidden; border: 0; border-radius: 0; width: auto; margin: 0;
  background: radial-gradient(80% 90% at 75% 30%, rgba(100, 193, 248, .28), transparent 60%), radial-gradient(60% 70% at 10% 100%, rgba(208, 16, 26, .18), transparent 60%), linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 55%, var(--navy) 100%); }
.hero::before { display: none; }
.hero-title, .hero:not(.hero--home) .hero-title { color: #fff; }
.hero-lead, .hero:not(.hero--home) .hero-lead { color: #dbe6f5; }
.hero-kicker { margin: 0 0 14px; font-weight: 600; font-size: .82rem; letter-spacing: .32em; text-transform: uppercase; color: #bfe6ff; }
.hero-swoosh { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(40px, 7vw, 96px); color: #fff; z-index: 3; pointer-events: none; }
.hero-swoosh svg { width: 100%; height: 100%; display: block; }
/* Home hero */
.hero--home { min-height: clamp(560px, 82svh, 760px); padding: clamp(56px, 8vw, 96px) 0 clamp(120px, 14vw, 170px); display: flex; align-items: center; }
.hero--home .hero-media { position: absolute; inset: 0; z-index: -2; opacity: .16; mix-blend-mode: luminosity; }
.hero--home .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero--home .hero-body { width: min(100% - 2 * var(--gutter), var(--wrap)); }
.hero--home .hero-title { font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: .98; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: -.01em; max-width: 12ch; }
.hero--home .hero-line { display: block; }
.hero--home .hero-line:last-child > span { display: inline-block; margin-top: .12em; padding: .02em .35em .06em; background: var(--red); color: #fff; box-shadow: 0 14px 30px -14px rgba(208, 16, 26, .9); clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%); }
.hero--home .hero-lead { max-width: 46ch; margin-top: 18px; }
.hero-verse { margin: 18px 0 0; padding-left: 16px; border-left: 3px solid var(--red); max-width: 46ch; }
.hero-verse p { margin: 0; font-style: italic; color: #eef4fb; }
.hero-verse cite { display: block; margin-top: 4px; font-style: normal; font-weight: 700; color: #ffd27a; }
.hero-art { display: none; }
@media (min-width: 960px) {
  .hero--home .hero-body { padding-right: 46%; }
  .hero-art { display: block; position: absolute; right: max(var(--gutter), calc((100% - var(--wrap)) / 2 - 20px)); top: 50%; transform: translateY(-54%); width: min(46%, 560px); z-index: 1; }
  .hero-art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
}
@media (prefers-reduced-motion: no-preference) {
  .ha-glow { animation: ha-pulse 6s ease-in-out infinite alternate; transform-origin: 300px 190px; }
  .ha-rays { animation: ha-rays 6s ease-in-out infinite alternate; }
}
@keyframes ha-pulse { from { opacity: .75; transform: scale(.97); } to { opacity: 1; transform: scale(1.03); } }
@keyframes ha-rays { from { opacity: .55; } to { opacity: 1; } }
/* Quick links overlapping the bottom of the home hero */
.quick-strip { position: relative; z-index: 4; margin-top: clamp(-64px, -6vw, -40px); }
.quick-strip ul { list-style: none; padding: 0; margin: 0 auto; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.quick-strip a { display: flex; align-items: center; gap: 14px; height: 100%; padding: 18px; border-radius: var(--r-md); background: #fff; color: var(--text); text-decoration: none;
  border: 1px solid var(--line); box-shadow: 0 18px 40px -22px rgba(6, 26, 58, .45); transition: transform .15s, box-shadow .15s, border-color .15s; }
.quick-strip a:hover { transform: translateY(-3px); border-color: var(--red); color: var(--text); text-decoration: none; }
.qs-icon { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: #fde8ea; color: var(--red); }
.qs-icon .icon { width: 26px; height: 26px; }
.qs-text { display: grid; flex: 1; line-height: 1.3; }
.qs-text strong { font-size: 1rem; color: var(--navy); }
.qs-text span { font-size: .86rem; color: var(--muted); }
.qs-arrow { color: var(--red); }
.quick-strip + .section { padding-top: clamp(48px, 7vw, 80px); }
/* Inner page headers: same navy, title with a red underline, framed photo, the wave */
.hero:not(.hero--home) { padding: clamp(44px, 6vw, 76px) 0 clamp(80px, 9vw, 120px); }
.hero:not(.hero--home) .hero-title::after { content: ""; display: block; width: 64px; height: 5px; margin-top: 14px; border-radius: 5px; background: var(--red); }
.hero:not(.hero--home) .hero-line:last-child > span { color: #fff; }
@media (min-width: 960px) {
  .hero:not(.hero--home):not(.hero--compact) .hero-media { transform: translateY(-58%); z-index: 2; }
  .hero:not(.hero--home):not(.hero--compact) .hero-media::before { background: var(--red); opacity: .9; }
}
/* Components that sit in the navy headers */
.hero .button--ghost-light, .hero .button--secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .8); }
.hero .button--ghost-light:hover, .hero .button--secondary:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.hero .search label, .hero .hint, .hero .result-count { color: #e3ecf8; }
.hero .chip-link { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .28); }
.hero .chip-link .icon { color: #ffd27a; }
.hero .chip-link:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.hero .chip-link[aria-pressed="true"] { background: #fff; color: var(--navy); }
.hero .chip-count { background: rgba(255, 255, 255, .2); color: #fff; }
.hero .chip-link[aria-pressed="true"] .chip-count { background: var(--navy); color: #fff; }
.hero .fb-pill { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .35); }
.hero .fb-pill .icon:first-child { color: #ffd27a; }
.hero .hero-place { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); color: #fff; }
.hero .hero-place .icon { color: #ffd27a; }
.hero .shortcut .icon { color: var(--red); }
.hero .step-icon, .hero .feature-icon { background: #fde8ea; color: var(--red); }
.hero-body { z-index: 4; }
/* Section headings: a short red underline */
.section-head h2::after, .events-head h2::after, .faith-head h2::after { background: var(--red); width: 56px; }
/* Events: compact rows with a red calendar tile */
.event-card { align-items: center; padding: 14px 16px; }
.event-date { width: 58px; height: 62px; border-radius: 14px; background: #fde8ea; color: var(--red); }
.event-month { color: var(--red); }
/* Welcome highlights */
.belief { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red); }
.belief h3 { color: var(--navy); }
/* Home cards: red icon tiles */
.tile-icon, .tile--lg .tile-icon { background: #fde8ea; color: var(--red); }
.tile:hover .tile-icon, .tile--lg:hover .tile-icon { background: var(--red); color: #fff; }
.tile:hover { border-color: var(--red); }
/* Find-a-church band with the search */
.cta-band, .cta-band--arch { background: linear-gradient(160deg, var(--deep), var(--deep-2)); color: #dbe6f5; border: 0; }
.cta-band h2 { color: #fff; }
.cta-band p, .cta-band li { color: #dbe6f5; }
.cta-search { flex: 1 1 380px; max-width: 560px; }
.cta-search .hero-note { color: #bfe6ff; }
.cta-search .chips { display: none; }
/* Footer: deep navy with the red wave on top */
.site-footer { position: relative; background: var(--deep); padding-top: clamp(30px, 5vw, 60px); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: clamp(24px, 4vw, 52px); }
.brand--footer { margin-bottom: 14px; }

/* Pass 6 refinements */
.site-footer::before { height: clamp(14px, 2.4vw, 28px); background: url("../img/footer-wave.svg") center / 100% 100% no-repeat; }
.brand--footer img { width: 52px; height: 52px; background: none; padding: 0; margin: 0; border-radius: 0; box-sizing: border-box; }
.cta-band { padding-bottom: clamp(48px, 7vw, 80px); }
@media (max-width: 959px) {
  .hero--home { min-height: 0; padding-bottom: 110px; }
  .hero--home .hero-title { font-size: clamp(2.4rem, 11vw, 3.4rem); }
}

@media (max-width: 480px) {
  .nav-toggle { font-size: 0; gap: 0; padding: 0; width: 44px; justify-content: center; margin-left: 6px; }
  .header-bar { flex-wrap: nowrap; }
  .js .site-nav { position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: 8px var(--gutter) 14px; background: var(--deep-2); width: auto; }
  .site-header { position: sticky; }
  .header-bar { position: relative; }
}

/* Pass 6d (Owner review): separated sections, hero without the illustration, distinct footer bands */
/* Home: Ministries tinted, "What You'll Find" white */
.ministries-home { background: var(--sky-50); }
.section--explore { background: #fff; border-top: 1px solid var(--line); }
/* Home hero without the illustration: text column wider, the photo a little stronger */
.hero--home .hero-body { padding-right: 0; }
.hero--home .hero-body > * { max-width: 720px; }
.hero--home .hero-title { max-width: 14ch; }
.hero--home .hero-lead, .hero-verse { max-width: 56ch; }
.hero--home .hero-media { opacity: .26; }
.hero--home .hero-kicker { letter-spacing: .24em; }
/* Find-a-church band: light, so it separates from the footer */
.cta-band, .cta-band--arch { background: var(--sky-50); color: var(--text); border-top: 1px solid var(--line); }
.cta-band h2 { color: var(--text); }
.cta-band p, .cta-band li { color: var(--muted); }
.cta-search .hero-note { color: var(--muted); }
.cta-search .hero-search { border: 1px solid var(--line); box-shadow: 0 10px 30px -18px rgba(6, 26, 58, .35); }
/* Footer: three bands, three tones */
.site-footer { background: var(--deep); padding-top: 0; }
.site-footer::before { z-index: 1; }
.footer-finder-band { background: var(--navy); padding-top: clamp(14px, 2.4vw, 28px); }
.footer-finder-band .footer-finder { border-bottom: 0; }
.footer-finder-band + .footer-inner, .site-footer > .footer-inner:first-child { padding-top: 48px; }
.site-footer > .wrap.footer-inner { padding-top: clamp(56px, 6vw, 72px); }
.copyright { background: #020b1c; border-top: 0; color: #b9c6e4; }

/* Logos: the white-wordmark lockup on the dark header and footer */
.brand img { width: 150px; height: auto; }
.brand--footer img { width: 170px; height: auto; }
@media (max-width: 420px) { .brand img { width: 128px; } }

/* Hero copy pass: verse above the buttons, a row of figures below */
.hero--home .hero-title { font-size: clamp(2.5rem, 6vw, 4.8rem); max-width: 13ch; }
.hero--home .hero-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); letter-spacing: .16em; font-size: .76rem; color: #fff; }
.hero--home .hero-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(208, 16, 26, .3); }
.hero--home .hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.hero-verse { margin-top: 20px; }
.hero-verse p { font-size: 1.02rem; }
.hero-stats { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 12px 36px; }
.hero-stats li { display: grid; line-height: 1.15; padding-left: 14px; border-left: 2px solid rgba(255, 255, 255, .28); }
.hero-stats strong { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; color: #fff; }
.hero-stats span { font-size: .85rem; color: #cfdcef; }

/* Home hero, stepped headline (Owner reference): a large first line, a smaller second, the third on the red band */
.hero--home .hero-title { max-width: none; font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: .95; margin-bottom: .2em; }
.hero--home .hero-line { display: block; }
.hero--home .hero-line--1 > span { font-size: 1em; text-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.hero--home .hero-line--2 > span { font-size: .56em; letter-spacing: .01em; text-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.hero--home .hero-line--3 > span { font-size: .52em; margin-top: .22em; padding: .12em .5em .14em; letter-spacing: .01em; }
.hero--home .hero-line:last-child > span { font-weight: 800; }
.hero--home .hero-lead { margin-top: 20px; }
.hero-verse p { max-width: 58ch; line-height: 1.55; }
/* Find-a-church band: room between the search bar and the church count */
.cta-search .hero-note, .hero-search + .hero-note { margin-top: 16px; }

/* Home hero photo: framed lower so more of the congregation shows and less ceiling */
.hero--home .hero-media img { object-position: 50% 88%; }
.hero--home .hero-media img { position: absolute; left: 0; bottom: 0; width: 100%; height: 140%; object-fit: cover; object-position: 50% 100%; }
/* Hero headline: "Knowing Christ" and "Building Disciples" the same size; roomier red band */
.hero--home .hero-title { font-size: clamp(2.3rem, 5.6vw, 4.4rem); line-height: 1.04; }
.hero--home .hero-line--1 > span, .hero--home .hero-line--2 > span { font-size: 1em; letter-spacing: -.005em; }
.hero--home .hero-line--2 { margin-top: .04em; }
.hero--home .hero-line--3 { margin-top: .32em; }
.hero--home .hero-line--3 > span { font-size: .64em; margin-top: 0; padding: .2em .9em .24em .75em; line-height: 1.1; clip-path: polygon(3% 0, 100% 0, 97% 100%, 0 100%); }
.hero--home .hero-line--3 > span { padding: .34em 1.15em .38em .95em; }
.hero--home .hero-title { margin-bottom: .45em; }
/* Red band: match the :last-child rule above so this padding wins */
.hero--home .hero-line--3:last-child > span { padding: .3em 1.1em .34em .95em; line-height: 1.1; clip-path: polygon(3% 0, 100% 0, 97% 100%, 0 100%); }
@media (max-width: 480px) { .hero--home .hero-line--3:last-child > span { font-size: .56em; white-space: nowrap; padding: .3em .8em .34em .7em; } }
/* Home hero, balanced height (Owner, 25 Nov): no forced tall minimum, content sets the height */
.hero--home { min-height: 0; padding: clamp(48px, 6vw, 76px) 0 clamp(104px, 11vw, 136px); }
/* Even space around the red band: about 18px of visible gap above and below */
.hero--home .hero-line--3 { margin-top: 0; }
.hero--home .hero-title { margin-bottom: 0; }
.hero--home .hero-lead { margin-top: 18px; }
/* Leaders (Owner, 25 Nov): framed portrait cards, home and About.
   The photos are white-background cut-outs, so multiply lets a soft brand backdrop show
   through the white while faces stay near-neutral (the backdrop is lightest behind the face). */
.people { gap: clamp(16px, 2vw, 24px); }
.person:not(.person--text) { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid #dbe7f3; border-radius: 22px; padding: 10px 10px 18px; box-shadow: 0 18px 36px -26px rgba(11, 72, 146, .45); transition: transform .25s ease, box-shadow .25s ease; }
.person:not(.person--text):hover { transform: translateY(-4px); box-shadow: 0 26px 44px -26px rgba(11, 72, 146, .55); }
.person-photo { position: relative; aspect-ratio: 4 / 5; margin: 0 0 14px; border-radius: 16px; overflow: hidden;
  background: radial-gradient(120% 85% at 50% 32%, #fbfdff 0 34%, #d9edfc 66%, #a9d6f7 100%); }
.person-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--red) 0 34%, var(--navy) 34% 100%); }
.person-photo img { mix-blend-mode: multiply; object-position: 50% 12%; transition: transform .4s ease; }
.person:not(.person--text):hover .person-photo img { transform: scale(1.03); }
.person:not(.person--text) > div:last-child { padding: 0 8px; }
.person:not(.person--text) .person-name { font-size: 1.02rem; font-weight: 700; color: var(--deep); }
.person:not(.person--text) .person-role { margin-top: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
@media (prefers-reduced-motion: reduce) { .person:not(.person--text), .person-photo img { transition: none; } .person:not(.person--text):hover { transform: none; } .person:not(.person--text):hover .person-photo img { transform: none; } }
/* Videos (Owner, 25 Nov): a deep-navy band, set apart from the white Church Events below,
   and the previews in one row, paged four at a time on wide screens (swipe on phones). */
.section--video { background: radial-gradient(70% 90% at 85% 0%, rgba(100, 193, 248, .16), transparent 60%), var(--deep); color: #fff; }
.section--video .vg { max-width: 1040px; }
.section--video .vg-source a { color: #cfe3f7; }
.section--video .vg-source a:hover { color: #fff; }
.vg-rail-wrap { display: grid; gap: 12px; margin-top: 8px; }
.vg-rail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vg-rail-title { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--deep); }
.section--video .vg-rail-title { color: #fff; }
.vg-pager { display: flex; align-items: center; gap: 10px; }
.vg-pager[hidden] { display: none; }
.vg-page { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .55); background: transparent; color: #fff; cursor: pointer; transition: background .2s, border-color .2s; }
.vg-page:hover:not(:disabled) { background: rgba(255, 255, 255, .14); border-color: #fff; }
.vg-page:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.vg-page:disabled { opacity: .35; cursor: default; }
.vg-page .icon { width: 20px; height: 20px; }
.vg-page-count { min-width: 3.5em; text-align: center; font-size: .9rem; font-weight: 700; color: #cfe3f7; font-variant-numeric: tabular-nums; }
.vg-rail, .section--video .vg-rail { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - 12px) / 1.6); gap: 12px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 8px; }
.vg-rail::-webkit-scrollbar { display: none; }
.vg-rail:focus-visible { outline: 3px solid var(--sky); outline-offset: 4px; border-radius: var(--r-md); }
@media (min-width: 600px) { .vg-rail, .section--video .vg-rail { grid-auto-columns: calc((100% - 24px) / 3); } }
@media (min-width: 900px) { .vg-rail, .section--video .vg-rail { grid-auto-flow: column; grid-auto-columns: calc((100% - 36px) / 4); overflow-x: auto; } }
.section--video .vg-thumb { border-color: transparent; }
.section--video .vg-thumb:hover { border-color: var(--sky); }
.section--video .vg-thumb[aria-current="true"] { border-color: var(--red); box-shadow: 0 12px 28px -14px rgba(208, 16, 26, .8); }
.section--video .vg-thumb[aria-current="true"] .vg-art::after { background: var(--red); }
.vg-rail, .section--video .vg-rail { scroll-snap-type: x proximity; }
/* Home ministries: five across when there is room, so the samples fill one row */
@media (min-width: 1000px) { .ministries-home .ministry-cards { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
/* Signed out: the account button is the icon alone, a 44px circle */
.account-button--icon { width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center; }

/* Home ministries as a photo mosaic (Owner, 25 Nov 2026): a navy intro tile, a wide
   feature tile, then square photo tiles; more ministries flow into further rows. */
.ministry-mosaic { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; grid-auto-flow: dense; }
.mm-intro { grid-column: 1 / -1; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 22px; border-radius: 22px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(90% 80% at 100% 0%, rgba(100, 193, 248, .35), transparent 60%), linear-gradient(150deg, var(--navy), var(--deep)); }
.mm-intro::before { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 18px solid rgba(208, 16, 26, .85); }
.mm-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #cfe3f7; }
.mm-count { font-size: clamp(3rem, 7vw, 4.6rem); line-height: 1; font-weight: 800; }
.mm-count-label { font-weight: 600; color: #e6eefa; max-width: 16ch; }
.mm-tile a { position: relative; display: block; height: 100%; border-radius: 22px; overflow: hidden; color: #fff; text-decoration: none; background: var(--deep); box-shadow: 0 18px 36px -24px rgba(6, 26, 58, .6); }
.mm-tile--wide { grid-column: 1 / -1; }
.mm-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mm-img--blank { display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--deep)); }
.mm-img--blank .icon { width: 40px; height: 40px; opacity: .7; }
.mm-tile a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 26, 58, 0) 35%, rgba(6, 26, 58, .88) 100%); transition: background .3s ease; }
.mm-num { position: absolute; z-index: 1; top: 12px; left: 12px; padding: 3px 10px; border-radius: 999px; background: var(--red); font-size: .75rem; font-weight: 800; letter-spacing: .06em; }
.mm-body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: grid; gap: 4px; padding: 16px 18px; }
.mm-name { font-size: 1.12rem; font-weight: 800; line-height: 1.2; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.mm-tile--wide .mm-name { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.mm-text { font-size: .92rem; color: #e6eefa; max-width: 48ch; }
.mm-more { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; color: #cfe3f7; }
.mm-more .icon { width: 16px; height: 16px; transition: transform .25s ease; }
.mm-tile a:hover .mm-img, .mm-tile a:focus-visible .mm-img { transform: scale(1.06); }
.mm-tile a:hover .mm-more .icon, .mm-tile a:focus-visible .mm-more .icon { transform: translateX(4px); }
.mm-tile a:hover::after { background: linear-gradient(180deg, rgba(6, 26, 58, .05) 20%, rgba(11, 72, 146, .9) 100%); }
.mm-tile a:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
@media (min-width: 900px) {
  .ministry-mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; }
  .mm-intro { grid-column: 1; grid-row: span 2; padding: 26px; }
  .mm-tile--wide { grid-column: span 2; }
}
@media (prefers-reduced-motion: reduce) { .mm-img, .mm-more .icon { transition: none; } .mm-tile a:hover .mm-img { transform: none; } }
/* Copyright strip with the developer credit on the right */
.copyright .copyright-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.copyright-inner p { margin: 0; }
.credit a, .copyright-owner a { color: inherit; font-weight: inherit; text-decoration: none; }
.credit a:hover, .credit a:focus-visible, .copyright-owner a:hover, .copyright-owner a:focus-visible { color: var(--sky); }

/* Cards moved out of the Giving and Contact heroes, centred just under them (Owner, 25 Nov) */
.under-hero { padding: clamp(28px, 4vw, 48px) 0 0; }
.under-hero .steps, .under-hero .shortcuts { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 0 auto; max-width: 1040px; }
.under-hero .steps li { flex: 0 1 230px; box-shadow: 0 16px 34px -26px rgba(11, 72, 146, .55); }
.under-hero .shortcuts li { flex: 0 1 190px; display: grid; }
.under-hero .shortcut { box-shadow: 0 16px 34px -26px rgba(11, 72, 146, .55); }
.under-hero .shortcut .icon { color: var(--red); }
.under-hero + .section { padding-top: clamp(28px, 4vw, 48px); }

/* Contact: "Other ways to reach DFCCI" stands out in logo navy */
.reach-card { background: radial-gradient(90% 70% at 100% 0%, rgba(100, 193, 248, .28), transparent 60%), linear-gradient(160deg, var(--navy), var(--deep)); color: #dbe6f5; border: 0; box-shadow: 0 24px 48px -28px rgba(6, 26, 58, .7); }
.reach-card h2 { color: #fff; }
.reach-card h2::after { content: ""; display: block; width: 48px; height: 4px; margin-top: 10px; border-radius: 4px; background: var(--red); }
.reach-list a { color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); }
.reach-list a:hover { background: rgba(255, 255, 255, .16); border-color: #fff; color: #fff; }
.reach-list .icon { color: var(--sky); }
.reach-list span { color: #cfe3f7; }
.reach-list strong { color: #fff; }
.reach-list a:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* Home ministries intro tile: just the line, large */
.mm-intro { justify-content: flex-end; }
.mm-intro-text { position: relative; font-size: clamp(1.6rem, 2.6vw, 2.25rem); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; color: #fff; }

/* Glossy header (Owner, 25 Nov 2026): frosted glass over the page that turns dark over
   dark sections and light over light ones (the script sets .is-on-light as you scroll).
   Each page's hero slides up under it, so the glass shows the hero through it. */
:root { --header-h: 72px; }
.site-header { background: rgba(6, 26, 58, .55); background-image: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03) 55%, rgba(255, 255, 255, 0));
  -webkit-backdrop-filter: saturate(170%) blur(18px); backdrop-filter: saturate(170%) blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 30px -18px rgba(0, 0, 0, .55);
  transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease; }
main > .hero:first-child { margin-top: calc(-1 * var(--header-h)); border-top: var(--header-h) solid transparent; }
.brand .brand-on-light { display: none; }
.site-header.is-on-light { background-color: rgba(255, 255, 255, .68); background-image: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .2));
  border-bottom-color: rgba(11, 72, 146, .12); box-shadow: inset 0 1px 0 #fff, 0 10px 30px -20px rgba(11, 72, 146, .45); }
.site-header.is-on-light .brand-on-dark { display: none; }
.site-header.is-on-light .brand-on-light { display: block; }
.site-header.is-on-light .site-nav a { color: var(--deep); }
.site-header.is-on-light .site-nav a:hover { background: rgba(11, 72, 146, .08); color: var(--navy); }
.site-header.is-on-light .site-nav a[aria-current="page"] { color: var(--navy); }
.site-header.is-on-light .account-button { color: var(--navy); border-color: rgba(11, 72, 146, .5); }
.site-header.is-on-light .account-button:hover, .site-header.is-on-light .account-button[aria-current="page"], .site-header.is-on-light .account-button--in { background: var(--navy); color: #fff; border-color: var(--navy); }
.site-header.is-on-light .nav-toggle { color: var(--navy); border-color: rgba(11, 72, 146, .45); }
.site-header.is-on-light :focus-visible { outline-color: var(--navy); }
/* An open phone menu gets a solid panel so its links stay easy to read */
.site-header:has(.site-nav.is-open) { background-color: var(--deep-2); }
.site-header.is-on-light:has(.site-nav.is-open) { background-color: #fff; }
@media (max-width: 1180px) {
  .site-header.is-on-light .js .site-nav a, .js .site-header.is-on-light .site-nav a { color: var(--deep); }
  .js .site-header.is-on-light .site-nav a[aria-current="page"] { background: var(--sky-50); }
}
@media (max-width: 480px) { .js .site-header.is-on-light .site-nav { background: #fff; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background-color: rgba(6, 26, 58, .94); }
  .site-header.is-on-light { background-color: rgba(255, 255, 255, .96); }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background-color: var(--deep-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header.is-on-light { background-color: #fff; }
}

/* Admins page */
.admin-people { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.admin-people li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; overflow-wrap: anywhere; }
.admin-people .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-people p { margin: 4px 0 0; }
.small { font-size: .85rem; }
.tag--warn { background: #fff1d6; color: #6b4a00; }
.readonly-value { margin: 4px 0 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--sky-50); border: 1px solid var(--line); font-weight: 600; overflow-wrap: anywhere; }

/* Giving form: parts appear one after another */
.steps-hint { margin: 0 0 12px; font-size: .9rem; color: var(--muted); }
[data-step].is-revealed { animation: step-in .35s ease both; }
@keyframes step-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { [data-step].is-revealed { animation: none; } }
.method-note { margin-top: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--sky-50); border: 1px solid var(--sky-100); border-left: 4px solid var(--navy); }
.method-note p { margin: 0; }
.method-note-title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); margin-bottom: 4px !important; }
.method-note-title .icon { width: 18px; height: 18px; }

/* Admin: lists with add and remove */
.giving-admin h2 { margin-top: 32px; }
.list-editor { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; background: #fff; }
.list-editor legend { padding: 0 6px; font-weight: 700; }
.le-rows { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; counter-reset: le; }
.le-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px; border-radius: var(--r-sm); background: var(--sky-50); counter-increment: le; }
.le-row::before { content: counter(le); flex: none; width: 26px; height: 26px; margin-top: 26px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid var(--line); font-size: .8rem; font-weight: 700; color: var(--navy); }
.le-cell { flex: 1 1 0; min-width: 0; display: grid; gap: 4px; }
.le-cell--instructions, .le-cell--text, .le-cell--label { flex-grow: 2; }
.le-cell--code { flex: 0 0 90px; }
.le-label { font-size: .78rem; font-weight: 600; color: var(--muted); }
.le-cell input, .le-cell textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); font: inherit; background: #fff; }
.le-remove { flex: none; margin-top: 22px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--red); cursor: pointer; }
.le-remove:hover { border-color: var(--red); background: #fff5f5; }
.le-remove .icon { width: 18px; height: 18px; }
.le-add { display: inline-flex; align-items: center; gap: 6px; }
.le-add[hidden], .le-remove[hidden] { display: none; }
.le-add .icon { width: 18px; height: 18px; }
@media (max-width: 640px) { .le-row { flex-wrap: wrap; } .le-row::before { margin-top: 0; } .le-cell { flex-basis: 100%; } .le-remove { margin-top: 0; margin-left: auto; } }

/* Style guide page (design evidence; not linked from the menu) */
.sg h2 { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.sg-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin: 0 0 8px; }
.sg-logos { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.sg-logo { margin: 0; padding: 24px; border-radius: var(--r-md); border: 1px solid var(--line); display: grid; gap: 12px; place-items: center; text-align: center; }
.sg-logo img { max-width: 100%; height: auto; max-height: 90px; width: auto; }
.sg-logo--dark { background: var(--deep); color: #cfe3f7; border-color: var(--deep); }
.sg-logo figcaption { font-size: .85rem; }
.sg-colours { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.sg-colours li { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.sg-swatch { height: 72px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, .08); }
.sg-colours code, .sg code { font-size: .8rem; color: var(--muted); }
.sg-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.sg-table th, .sg-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.sg-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sg-sample { display: inline-block; padding: 4px 12px; border-radius: 8px; font-weight: 600; border: 1px solid var(--line); }
.sg-type-row { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 4px 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sg-type-row code { grid-column: 2; }
.sg-type-tag { font-size: .78rem; font-weight: 700; color: var(--navy); text-transform: uppercase; }
.sg-type-sample { margin: 0; }
.sg-hero-sample { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; font-style: italic; text-transform: uppercase; line-height: 1; color: var(--deep); }
.sg-space { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.sg-space li { display: grid; gap: 6px; justify-items: center; }
.sg-space span { display: block; background: var(--sky); border-radius: 3px; }
.sg-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.sg-dark { padding: 18px; border-radius: var(--r-md); background: var(--deep); }
.sg-focus { outline: 3px solid var(--navy); outline-offset: 3px; }
.sg-forms { display: grid; gap: 4px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); max-width: 820px; }
.sg-focus-field input { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(11, 72, 146, .25); outline: none; }
.sg-cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); align-items: start; }
.sg-cards .people { grid-template-columns: 1fr; max-width: 240px; }
.sg-list li { margin-bottom: 6px; }

/* Style guide swatches as classes (the site's CSP allows no inline styles) */
.sg-bg-0b4892 { background: #0b4892; }
.sg-bg-061a3a { background: #061a3a; }
.sg-bg-d0101a { background: #d0101a; }
.sg-bg-64c1f8 { background: #64c1f8; }
.sg-bg-f2f9ff { background: #f2f9ff; }
.sg-bg-e8961e { background: #e8961e; }
.sg-bg-14213d { background: #14213d; }
.sg-bg-4a5568 { background: #4a5568; }
.sg-bg-ffffff { background: #ffffff; }
.sg-bg-cfe3f7 { background: #cfe3f7; }
.sg-fg-0b4892 { color: #0b4892; }
.sg-fg-061a3a { color: #061a3a; }
.sg-fg-d0101a { color: #d0101a; }
.sg-fg-64c1f8 { color: #64c1f8; }
.sg-fg-f2f9ff { color: #f2f9ff; }
.sg-fg-e8961e { color: #e8961e; }
.sg-fg-14213d { color: #14213d; }
.sg-fg-4a5568 { color: #4a5568; }
.sg-fg-ffffff { color: #ffffff; }
.sg-fg-cfe3f7 { color: #cfe3f7; }
.sg-space .sg-s-4 { width: 4px; height: 4px; }
.sg-space .sg-s-8 { width: 8px; height: 8px; }
.sg-space .sg-s-12 { width: 12px; height: 12px; }
.sg-space .sg-s-16 { width: 16px; height: 16px; }
.sg-space .sg-s-24 { width: 24px; height: 24px; }
.sg-space .sg-s-32 { width: 32px; height: 32px; }
.sg-space .sg-s-48 { width: 48px; height: 48px; }
.sg-space .sg-s-64 { width: 64px; height: 64px; }
.sg-space .sg-s-96 { width: 96px; height: 96px; }

/* Ministry contact people (refinement of CR-1): round photo, name, role, a pill per way to reach them */
.mc-heading { margin: 22px 0 12px; font-size: 1rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--navy); }
.mc-people { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.mc-person { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; box-shadow: 0 12px 26px -22px rgba(11, 72, 146, .5); }
.mc-photo { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--sky-100), 0 6px 14px -8px rgba(6, 26, 58, .5); }
.mc-photo--initials { display: grid; place-items: center; background: linear-gradient(150deg, var(--navy), var(--deep)); color: #fff; font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; }
.mc-photo--admin { display: block; margin: 6px 0 10px; }
.mc-info { min-width: 0; }
.mc-name { margin: 2px 0 0; font-weight: 700; color: var(--deep); line-height: 1.3; }
.mc-role { margin: 2px 0 0; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.mc-methods { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mc-method { --mc: var(--navy); display: inline-flex; align-items: center; gap: 7px; min-height: 36px; max-width: 100%; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--sky-50); color: var(--text); font-size: .82rem; font-weight: 600; text-decoration: none; transition: border-color .2s, background .2s; }
.mc-method .icon { flex: none; width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--mc); color: #fff; }
.mc-method-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-method:hover { border-color: var(--mc); background: #fff; color: var(--text); text-decoration: none; }
.mc-method:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.mc-method--email { --mc: #0b4892; }
.mc-method--phone { --mc: #17663a; }
.mc-method--viber { --mc: #6f4fd8; }
.mc-method--whatsapp { --mc: #128c4a; }
.mc-method--messenger { --mc: #0a6ee0; }
.mc-method--facebook { --mc: #1660cc; }
.mc-method--instagram { --mc: #b8287a; }
.mc-method--youtube { --mc: #c4161c; }
.mc-method--tiktok { --mc: #111827; }
.mc-method--website { --mc: #4a5568; }
.mc-admin-person { display: flex; gap: 12px; align-items: center; min-width: 0; }
.mc-admin-person .mc-photo { width: 48px; height: 48px; font-size: .95rem; }
.mc-admin-kinds { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mc-admin-kinds .icon { width: 18px; height: 18px; color: var(--navy); }
.le-cell--kind { flex: 0 0 150px; }
.le-cell select { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); font: inherit; background: #fff; }

/* People and groups (CR-4) */
.people-group + .people-group { margin-top: clamp(40px, 6vw, 72px); }
.person--text { align-items: flex-start; }
.person-avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.person-avatar.mc-photo--initials { display: grid; place-items: center; background: var(--sky-100); color: var(--navy); font-weight: 700; font-size: .95rem; }
.person-photo--initials { display: grid; place-items: center; background: linear-gradient(150deg, var(--navy), var(--deep)); }
.person-photo--initials span { color: #fff; font-size: 2.6rem; font-weight: 800; }
.person-photo--initials::after { display: none; }
.mc-methods--icons { margin-top: 8px; gap: 6px; }
.mc-methods--icons .mc-method { padding: 0; min-height: 0; border: 0; background: none; }
.mc-methods--icons .mc-method .icon { width: 30px; height: 30px; padding: 7px; }
.mc-methods--icons .mc-method:hover .icon { filter: brightness(1.15); }
.dept { position: relative; }
.dept .mc-methods { margin-top: 6px; }
.people-admin-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0 16px; }
.people-filter { flex: 1 1 240px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font: inherit; }
.group-chips { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.group-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 14px; border-radius: 999px; background: var(--sky-50); border: 1px solid var(--sky-100); color: var(--navy); font-weight: 600; font-size: .88rem; text-decoration: none; }
.group-chips a span { min-width: 24px; padding: 1px 8px; border-radius: 999px; background: var(--navy); color: #fff; font-size: .78rem; text-align: center; }
.people-admin-name { font-weight: 700; color: var(--deep); }
.people-admin-list li[hidden] { display: none; }
.group-picker { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; background: #fff; }
.group-pick { padding: 8px 0; border-bottom: 1px solid var(--line); }
.group-pick:last-of-type { border-bottom: 0; }
.group-role { margin: 6px 0 4px 32px; display: grid; gap: 4px; }
.group-role label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.group-role input { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); font: inherit; max-width: 420px; }
.js .group-role[hidden] { display: none; }
.danger-zone { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
/* Small round photos: aim at the face; white cut-out backgrounds blend into a sky tint */
img.mc-photo, img.person-avatar { object-position: 50% 30%; background: radial-gradient(circle at 50% 35%, #fff 0 30%, #cfe8fb 100%); }
.mc-person img.mc-photo, .people-admin-list img.mc-photo, img.person-avatar { mix-blend-mode: multiply; }

/* Church search on phones (Owner, 25 Nov): the search block may shrink to its container, so the button stays fully visible */
.cta-search, .hero-search, .search-row { min-width: 0; max-width: 100%; box-sizing: border-box; }
.cta-inner > * { min-width: 0; }
.hero-search input { width: 100%; min-width: 0; }
.hero-search .button { flex: none; }
@media (max-width: 480px) {
  .hero-search { gap: 4px; padding: 5px; }
  .hero-search-icon { margin-left: 10px; width: 20px; height: 20px; }
  .hero-search input { font-size: 1rem; padding: 0 4px; }
  .hero-search .button { padding: 10px 16px; min-height: 44px; }
}

/* Footer, Owner review 30 Nov 2026: no underlined links; Connect as icon
   buttons with the office emails below; Local churches as two action buttons. */
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer h2 { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--sky); margin: 0 0 18px; }
@media (min-width: 820px) { .footer-inner { grid-template-columns: 1.35fr .9fr 1.2fr 1.15fr; gap: 40px; } }

.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 2px 32px; }
.site-footer .footer-links li { margin: 0; }
.footer-links a { display: inline-flex; align-items: center; gap: 0; min-height: 36px; color: #d6e3f3; font-weight: 500; transition: color .15s, gap .15s; }
.footer-links-arrow { width: 0; height: 14px; opacity: 0; color: var(--sky); transition: width .15s, opacity .15s; }
.footer-links a:hover, .footer-links a:focus-visible, .footer-links a[aria-current="page"] { color: #fff; gap: 8px; }
.footer-links a:hover .footer-links-arrow, .footer-links a:focus-visible .footer-links-arrow, .footer-links a[aria-current="page"] .footer-links-arrow { width: 14px; opacity: 1; }

.icon-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer .icon-buttons li { margin: 0; }
.icon-button { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #fff; transition: background .15s, border-color .15s, transform .15s; }
.icon-button .icon { width: 20px; height: 20px; }
.icon-button:hover, .icon-button:focus-visible { background: var(--red); border-color: var(--red); transform: translateY(-2px); }
.footer-label { margin: 22px 0 8px; font-size: .82rem; color: #9fb3d6; }
.footer-emails { display: grid; gap: 6px; }
.site-footer .footer-emails li { margin: 0; }
.footer-emails a { display: inline-flex; align-items: center; gap: 10px; color: #fff; overflow-wrap: anywhere; }
.footer-emails .icon { flex: none; width: 16px; height: 16px; color: var(--sky); }
.footer-emails a:hover span, .footer-emails a:focus-visible span { color: var(--sky); }

.footer-note { margin: 0 0 16px; font-size: .92rem; max-width: 30ch; }
.footer-actions { display: grid; gap: 6px; justify-items: start; }
.footer-actions form { margin: 0; }
.footer-action { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 0; border: 0; background: none; color: #fff; font: inherit; font-weight: 500; cursor: pointer; text-align: left; }
.footer-action .icon { flex: none; width: 18px; height: 18px; color: var(--sky); }
.footer-action:hover span, .footer-action:focus-visible span { color: var(--sky); }
@media (prefers-reduced-motion: reduce) { .icon-button, .footer-links a, .footer-links-arrow { transition: none; } .icon-button:hover { transform: none; } }
.site-footer .credit a:hover, .site-footer .credit a:focus-visible, .site-footer .copyright-owner a:hover, .site-footer .copyright-owner a:focus-visible { color: var(--sky); }

/* Cards under the hero (Giving steps, Contact shortcuts), Owner review 30 Nov
   2026: one design with the home page's quick links: white card lifted onto the
   hero's edge, red icon tile, navy title, an arrow or step number; a full-width
   grid (one card per row on phones) instead of narrow centred boxes. */
.under-hero { position: relative; z-index: 4; padding: 0; margin-top: clamp(-56px, -5vw, -32px); }
.under-hero .steps, .under-hero .shortcuts { display: grid; gap: 14px; max-width: 1100px; margin: 0 auto; justify-content: stretch; }
.under-hero .steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.under-hero .shortcuts { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.under-hero .steps li { flex: none; display: flex; }
.under-hero .shortcuts li { flex: none; display: grid; }
.under-hero .steps li, .shortcut, .steps li { align-items: center; gap: 14px; padding: 18px 44px 18px 18px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line);
  box-shadow: 0 18px 40px -22px rgba(6, 26, 58, .45); }
.under-hero .steps li::before, .steps li::before { top: 50%; transform: translateY(-50%); right: 16px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%;
  background: var(--sky-50, #eef7fe); color: var(--navy); font-size: .85rem; }
.step-icon, .shortcut-icon, .hero .step-icon { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: #fde8ea; color: var(--red); }
.step-icon .icon, .shortcut-icon .icon, .under-hero .shortcut .shortcut-icon .icon { width: 24px; height: 24px; color: var(--red); }
.step-text { display: grid; line-height: 1.3; }
.step-text strong { font-size: 1rem; color: var(--navy); }
.step-text span { font-size: .88rem; color: var(--muted); }
.shortcut { position: relative; display: flex; min-height: 0; height: 100%; padding-right: 18px; color: var(--navy); font-weight: 700; line-height: 1.3; transition: transform .15s, border-color .15s; }
.shortcut-label { flex: 1; }
.shortcut .shortcut-arrow, .under-hero .shortcut .shortcut-arrow { flex: none; width: 18px; height: 18px; color: var(--red); }
.shortcut:hover, .shortcut:focus-visible { transform: translateY(-3px); border-color: var(--red); box-shadow: 0 18px 40px -22px rgba(6, 26, 58, .45); color: var(--navy); }
.under-hero + .section { padding-top: clamp(40px, 6vw, 72px); }
@media (max-width: 599px) {
  .under-hero { margin-top: -28px; }
  .under-hero .steps li, .shortcut, .quick-strip a { padding-top: 16px; padding-bottom: 16px; box-shadow: 0 14px 30px -18px rgba(6, 26, 58, .5); border-left: 4px solid var(--red); }
}
@media (min-width: 600px) {
  .under-hero .shortcuts { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .under-hero .shortcut { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; }
  .under-hero .shortcut .shortcut-arrow { position: absolute; top: 18px; right: 18px; }
  .under-hero .shortcut-label { flex: none; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .under-hero .shortcut { padding: 14px; font-size: .9rem; }
  .under-hero .shortcut .shortcut-icon { width: 42px; height: 42px; }
  .under-hero .shortcut .shortcut-arrow { top: 14px; right: 14px; width: 16px; height: 16px; }
}
@media (prefers-reduced-motion: reduce) { .shortcut { transition: none; } .shortcut:hover { transform: none; } }

/* Inner-page hero photos, Owner review 30 Nov 2026: an editorial panel instead
   of a framed card. Desktop: full height, bleeding off the right edge, slanted
   left edge with a thin red stripe, a navy fade into the text side, a sky dot
   pattern and a slow settle-in zoom. Phones and tablets: edge to edge under the
   text with a slanted top, running down into the wave. */
@keyframes hero-settle { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero:not(.hero--home):not(.hero--compact) .hero-media img { animation: hero-settle 12s ease-out both; }
@media (min-width: 960px) {
  .hero:not(.hero--home):not(.hero--compact) .hero-media { top: 0; bottom: 0; right: 0; left: auto; width: 54%; transform: none; aspect-ratio: auto; border-radius: 0; overflow: hidden; z-index: 1;
    clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
  .hero:not(.hero--home):not(.hero--compact) .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; box-shadow: none; z-index: 0; }
  .hero:not(.hero--home):not(.hero--compact) .hero-media::before { inset: 0; border-radius: 0; opacity: 1; z-index: 1;
    background: linear-gradient(90deg, rgba(6, 26, 58, .7) 0%, rgba(6, 26, 58, .15) 32%, rgba(6, 26, 58, 0) 55%), linear-gradient(0deg, rgba(6, 26, 58, .45) 0%, rgba(6, 26, 58, 0) 35%); }
  .hero:not(.hero--home):not(.hero--compact) .hero-media::after { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--red);
    clip-path: polygon(22% 0, 23.2% 0, 1.2% 100%, 0 100%); }
  .hero:not(.hero--home):not(.hero--compact)::after { content: ""; position: absolute; z-index: 2; top: clamp(28px, 4vw, 48px); left: 44%; width: 112px; height: 84px; pointer-events: none;
    background-image: radial-gradient(rgba(100, 193, 248, .55) 1.6px, transparent 1.8px); background-size: 14px 14px; }
  .hero:not(.hero--home):not(.hero--compact) .hero-body { padding-right: min(54%, 660px); min-height: 400px; }
}
@media (max-width: 959px) {
  .hero:not(.hero--home):not(.hero--compact) .hero-media { position: relative; width: 100%; margin: var(--sp-5) 0 calc(-1 * clamp(80px, 9vw, 120px)); aspect-ratio: 16 / 11; border-radius: 0; overflow: hidden;
    clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%); }
  .hero:not(.hero--home):not(.hero--compact) .hero-media::after { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--red); clip-path: polygon(0 12%, 100% 0, 100% 1.6%, 0 13.6%); }
}
@media (prefers-reduced-motion: reduce) { .hero:not(.hero--home):not(.hero--compact) .hero-media img { animation: none; } }
/* Locations: keep the church's sign and roof in view (Owner review, 30 Nov 2026) */
.hero--locations .hero-media img { object-position: 45% 12%; }

/* Admin: page text editor (Build the pages) */
.admin-page-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.admin-page-list li { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.admin-page-link { flex: 1; display: grid; gap: 2px; text-decoration: none; color: var(--navy); }
.admin-page-link span { font-size: .88rem; color: var(--muted); }
.admin-page-link:hover strong { text-decoration: underline; }
.admin-page-view { font-size: .9rem; white-space: nowrap; }
.page-block { margin: 0 0 18px; }
.page-block legend { font-weight: 700; color: var(--navy); padding: 0 6px; }
.page-field-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.page-field-head label { margin: 0; }
.form-actions { position: sticky; bottom: 0; padding: 12px 0; background: #fff; border-top: 1px solid var(--line); z-index: 2; }
.report { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 18px; }
.report dt { font-weight: 600; }
.report dd { margin: 0; overflow-wrap: anywhere; }

/* Locations: flip cards (Owner request, 30 Nov 2026). Front: district, code, name
   and address with a church watermark. Back (on hover, keyboard focus on its
   buttons, or the Photo button on touch screens): the church's photo with a
   centred Visit button and View details. */
.church-cards { gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.church-card { display: block; padding: 0; border: 0; background: none; perspective: 1200px; box-shadow: none; }
.church-card:hover { box-shadow: none; }
.church-card:focus-within { outline: none; }
.cc-inner { position: relative; display: grid; min-height: 240px; transition: transform .6s cubic-bezier(.2, .7, .2, 1); transform-style: preserve-3d; }
.cc-face { grid-area: 1 / 1; position: relative; display: flex; flex-direction: column; border-radius: var(--r-md); overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.cc-front { padding: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 30px -24px rgba(6, 26, 58, .5); }
.cc-front::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--red), var(--navy)); transform: scaleX(.18); transform-origin: left; transition: transform .35s ease; }
.church-card:hover .cc-front::before { transform: scaleX(1); }
.cc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.cc-code { font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); background: var(--sky-50, #eef7fe); padding: 3px 9px; border-radius: 999px; }
.church-card h3 { font-size: 1.12rem; line-height: 1.3; margin: 0 0 8px; padding-right: 8px; }
.church-card h3 a { color: var(--navy); }
.church-card h3 a::after { display: none; }
.church-card .church-address { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.45; }
.church-card .church-address .icon { flex: none; margin-top: 3px; color: var(--red); }
.cc-foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; }
.cc-foot .card-link { margin: 0; padding: 0; color: var(--navy); font-weight: 600; font-size: .88rem; text-decoration: none; }
.cc-flip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.cc-flip:hover, .cc-flip:focus-visible { border-color: var(--navy); }
.cc-mark { position: absolute; right: -14px; bottom: -18px; color: var(--sky-50, #eef7fe); pointer-events: none; }
.cc-mark .icon { width: 120px; height: 120px; stroke-width: 1.4; color: #e8f1fb; }
.cc-back { transform: rotateY(180deg); background: var(--deep); color: #fff; box-shadow: 0 18px 40px -22px rgba(6, 26, 58, .6); }
.cc-back img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cc-back::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 26, 58, .15) 0%, rgba(6, 26, 58, .35) 45%, rgba(6, 26, 58, .88) 100%); }
.cc-back--empty { background: radial-gradient(90% 80% at 80% 10%, rgba(100, 193, 248, .3), transparent 60%), linear-gradient(150deg, var(--deep) 0%, var(--navy) 100%); }
.cc-back--empty::after { display: none; }
.cc-placeholder { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .16); }
.cc-placeholder .icon { width: 96px; height: 96px; stroke-width: 1.3; }
.cc-back-body { position: relative; z-index: 1; flex: 1; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; align-items: center; gap: 8px; padding: 18px 18px 16px; text-align: center; }
.cc-back-name { grid-row: 3; margin: 0; font-weight: 700; font-size: 1rem; line-height: 1.3; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.cc-back-note { position: absolute; top: 16px; left: 18px; margin: 0; font-size: .78rem; color: #bfe6ff; }
.cc-visit { grid-row: 2; display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; font-size: 1rem; text-decoration: none;
  box-shadow: 0 0 0 6px rgba(208, 16, 26, .25), 0 12px 24px -10px rgba(0, 0, 0, .6); transition: transform .15s, box-shadow .15s; }
.cc-visit:hover, .cc-visit:focus-visible { color: #fff; transform: scale(1.05); box-shadow: 0 0 0 9px rgba(208, 16, 26, .3), 0 12px 24px -10px rgba(0, 0, 0, .6); }
.cc-visit:focus-visible, .cc-details:focus-visible, .cc-unflip:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.cc-details { grid-row: 4; display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .55); color: #fff; font-size: .86rem; font-weight: 600; text-decoration: none; background: rgba(6, 26, 58, .35); backdrop-filter: blur(4px); }
.cc-details:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.cc-unflip { position: absolute; z-index: 2; top: 12px; right: 12px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: rgba(6, 26, 58, .4); color: #fff; cursor: pointer; }
/* Flipping: hover on devices that hover; the Photo button or focus on the back everywhere. */
@media (hover: hover) and (pointer: fine) {
  .church-card:hover .cc-inner { transform: rotateY(180deg); }
  .cc-flip { display: none; }
  .cc-unflip { display: none; }
}
.church-card.is-flipped .cc-inner { transform: rotateY(180deg); }
@media (prefers-reduced-motion: reduce) {
  .cc-inner { transition: none; transform: none !important; }
  .cc-face { backface-visibility: visible; transition: opacity .2s; }
  .cc-back { transform: none; opacity: 0; pointer-events: none; }
  .church-card.is-flipped .cc-back { opacity: 1; pointer-events: auto; }
  .church-card.is-flipped .cc-front { opacity: 0; }
  @media (hover: hover) and (pointer: fine) { .church-card:hover .cc-back { opacity: 1; pointer-events: auto; } .church-card:hover .cc-front { opacity: 0; } }
}
.church-photo-current { display: block; width: 320px; max-width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-sm); margin: 6px 0 10px; }
/* Only the face in view takes clicks. */
.cc-back { pointer-events: none; }
.church-card.is-flipped .cc-back { pointer-events: auto; }
.church-card.is-flipped .cc-front { pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .church-card:hover .cc-back { pointer-events: auto; }
  .church-card:hover .cc-front { pointer-events: none; }
}
/* Flip cards: the watermark sits behind the text; Visit in the middle of the back. */
.cc-front > * { position: relative; z-index: 1; }
.cc-front > .cc-mark { position: absolute; z-index: 0; right: -18px; bottom: -22px; }
.cc-mark .icon { width: 110px; height: 110px; color: #eef4fb; }
.cc-back-body { grid-template-rows: 1fr auto 1fr auto auto; gap: 6px; }
.cc-visit { grid-row: 2; }
.cc-back-name { grid-row: 4; margin-top: 4px; }
.cc-details { grid-row: 5; margin-top: 6px; }
/* Front without its own View details (it's on the back): the Photo button sits on the right. */
.cc-foot { justify-content: flex-end; min-height: 34px; }
/* Church details: the church's photo heads the visit card; buttons stack evenly. */
.visit-card { display: flex; flex-direction: column; gap: 10px; }
.visit-card h2, .visit-card p { margin: 0; }
.visit-card h2 { margin-bottom: 4px; }
.visit-card .button { width: 100%; justify-content: center; }
.visit-photo { display: block; width: calc(100% + 56px); max-width: none; margin: -28px -28px 14px; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.visit-card .button--ghost-light { background: #fff; color: var(--navy); border-color: #fff; box-shadow: none; }
.visit-card .button--ghost-light:hover { background: var(--sky-50, #eef7fe); color: var(--navy); }
.visit-card .button--secondary { background: #fff; color: var(--navy); border-color: var(--navy); box-shadow: none; }
.visit-card .button--secondary:hover { background: var(--sky-50, #eef7fe); color: var(--navy); }
/* Card back (Owner review): the photo stays clear; View details, then Visit, at the bottom. */
.cc-back-body { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 10px; padding: 16px; }
.cc-back::after { background: linear-gradient(180deg, rgba(6, 26, 58, 0) 0%, rgba(6, 26, 58, 0) 45%, rgba(6, 26, 58, .78) 100%); }
.cc-back-name { margin: auto 0 4px; }
.cc-back--empty .cc-back-body { justify-content: flex-end; }
.cc-details, .cc-visit { margin: 0; }
.cc-details { padding: 7px 18px; }
.cc-visit { padding: 11px 30px; box-shadow: 0 0 0 5px rgba(208, 16, 26, .22), 0 10px 22px -10px rgba(0, 0, 0, .6); }
/* Card back (Owner review): two equal buttons, Details on the left and Visit on the right. */
.cc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.cc-actions .cc-details, .cc-actions .cc-visit { justify-content: center; min-height: 44px; padding: 0 12px; border-radius: 999px; font-size: .92rem; font-weight: 700; transform: none; }
.cc-actions .cc-details { border: 1.5px solid rgba(255, 255, 255, .75); background: rgba(6, 26, 58, .45); }
.cc-actions .cc-visit { border: 1.5px solid var(--red); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .6); }
.cc-actions .cc-visit:hover, .cc-actions .cc-visit:focus-visible { transform: none; background: #b00d16; border-color: #b00d16; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .6); }
.cc-actions .cc-details, .cc-actions .cc-visit { grid-row: auto; grid-column: auto; width: 100%; }

/* My church: choosing among several churches (CR-5). */
.church-picker { margin: 0 0 24px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--sky-50, #eef7fe); }
.church-picker p { margin: 0 0 8px; }
.church-picker ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.church-picker a { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-weight: 600; font-size: .9rem; text-decoration: none; }
.church-picker a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
/* Admin: email previews. */
.email-tabs { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.email-tabs a { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--navy); font-weight: 600; font-size: .9rem; text-decoration: none; background: #fff; }
.email-tabs a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.email-frame { display: block; width: 100%; height: 900px; border: 1px solid var(--line); border-radius: var(--r-md); background: #eef3fa; }


/* Sign-in and forgot-password: space between the form card and the links under it (Owner review, 1 Dec 2026). */
.form-links { margin: 22px 0 0; text-align: center; font-size: .95rem; }

/* Church page: Messenger button (Messenger blue, white text: 4.6:1). */
.button--messenger { background: #0866ff; border-color: #0866ff; color: #fff; box-shadow: none; }
.button--messenger:hover, .button--messenger:focus-visible { background: #0552cc; border-color: #0552cc; color: #fff; }

/* Giving: the reference number after a gift notice is sent. */
.gift-done .gift-ref { font-family: var(--font-heading, inherit); font-size: 1.6rem; font-weight: 700; letter-spacing: .06em; margin: .25rem 0 .5rem; color: var(--navy, #0b2a5b); }

/* Giving: ways to give with icons, account number, QR code. */
.pay-badge { flex: none; width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; }
.pay-badge .icon { width: 18px; height: 18px; }
.pay-badge--gcash { background: #005ce6; }
.pay-badge--maya { background: #00804a; }
.pay-badge--ewallet { background: #5b3cc4; }
.pay-badge--bank { background: #0b4892; }
.pay-badge--cheque { background: #7a4b00; }
.pay-badge--cash, .pay-badge--person { background: #1f6f43; }
.pay-kind { font-weight: 500; font-size: .85rem; color: var(--muted, #5b6478); margin-left: 4px; }
.pay-account { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 10px 0; }
.pay-account dt { color: var(--muted, #5b6478); font-size: .9rem; }
.pay-account dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.pay-number { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.pay-copy { margin-left: 6px; padding: 2px 10px; min-height: 0; vertical-align: middle; }
.pay-qr { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-start; margin: 12px 0; }
.pay-qr img { width: 180px; height: 180px; object-fit: contain; background: #fff; padding: 8px; border-radius: var(--r-sm, 8px); border: 1px solid var(--line, #d9e6f5); }
.pay-qr-actions { flex: 1 1 200px; display: grid; gap: 8px; justify-items: start; }
.pay-qr-actions .hint { margin: 0; }
.pay-check { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px !important; font-size: .9rem; color: #5a4300; background: #fff7e0; border-radius: var(--r-sm, 8px); padding: 8px 10px; }
.pay-check .icon { flex: none; margin-top: 3px; }
#methods .le-row, #giving_methods .le-row { flex-wrap: wrap; }
#methods .le-cell, #giving_methods .le-cell { flex: 1 1 200px; }
#methods .le-cell--instructions, #giving_methods .le-cell--instructions { flex-basis: 100%; }
.le-qr { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.le-qr img { width: 56px; height: 56px; object-fit: contain; background: #fff; border: 1px solid var(--line, #d9e6f5); border-radius: 6px; }

.pay-fallback, .pay-contact { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px !important; font-size: .9rem; }
.pay-fallback { color: #1f2a44; background: #eef4ff; border-radius: var(--r-sm, 8px); padding: 8px 10px; }
.pay-contact .icon, .pay-fallback .icon { flex: none; margin-top: 3px; }
.pay-contact a { overflow-wrap: anywhere; }

/* Admin reports */
.report-tabs ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 18px 0 14px; }
.report-tabs a { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line, #d9e6f5); color: var(--navy); font-weight: 600; text-decoration: none; background: #fff; }
.report-tabs a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.report-filters { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: flex-end; padding: 14px 16px; margin: 0 0 18px; background: var(--sky-50, #f3f8fe); border-radius: var(--r-md, 12px); }
.report-filters .field { flex: 1 1 170px; margin: 0; }
.report-filter-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 4px; }
.report-table td, .report-table th { vertical-align: top; }
.report-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.report-table--compact { margin: 0; font-size: .92rem; }
.nowrap { white-space: nowrap; }
.report-actions { display: flex; gap: 6px; flex-wrap: nowrap; }
.report-actions form { margin: 0; }
.report-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 0 0 20px; }
.report-total { padding: 12px 14px; border: 1px solid var(--line, #d9e6f5); border-radius: var(--r-md, 12px); background: #fff; }
.report-total h2 { margin: 0 0 6px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: #eef2f7; color: #1f2a44; white-space: nowrap; }
.badge--approved { background: #e3f4ea; color: #145c35; }
.badge--unlisted { background: #fff1d6; color: #6b4a00; }
.badge--pending { background: #e6effc; color: #0b4892; }
.badge--rejected { background: #fde8ea; color: #8a1220; }
.gift-status { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0; }
.gift-status select { max-width: 210px; padding: 4px 8px; }

/* Testing (2 Dec 2026): the search box's white focus ring is invisible on the light 'Find a church' band. */
.cta-search .hero-search:focus-within { outline-color: var(--focus); }

/* Testing (2 Dec 2026): a scrolling table box never widens the page (grid and flex parents). */
.table-wrap { max-width: 100%; min-width: 0; }
/* Testing (2 Dec 2026): the later red .button rule overrode the outlined danger button (dark red on red). */
.button--danger { background: #fff; color: var(--flame-dark); border-color: var(--flame-dark); box-shadow: none; }
.button--danger:hover, .button--danger:focus-visible { background: var(--flame-dark); border-color: var(--flame-dark); color: #fff; }
/* Screen-reader-only text inside a scrolling table stays inside it; the box can be reached with Tab. */
.table-wrap { position: relative; }
.table-wrap:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Long web addresses in hints and notes wrap on phones. */
.hint, .muted { overflow-wrap: anywhere; }
/* The email preview frame shows where keyboard focus is. */
.email-frame:focus, .email-frame:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.email-frame-wrap { border-radius: 12px; }
.email-frame-wrap:focus-within, .email-frame-wrap.has-focus { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Speed (2 Dec 2026): sections below the hero are laid out and painted only when they come near the screen,
   so the first screen appears sooner (home lays out ~790 elements before its first paint). */
main > .hero ~ section { content-visibility: auto; contain-intrinsic-size: auto 700px; }

/* ---------- Districts (admin) ---------- */
.district-add { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 0 0 28px; }
.district-add .field { flex: 1 1 260px; margin: 0; }
.district-add .button { min-height: 50px; }
.inline-form input { min-height: 44px; min-width: 12ch; flex: 1 1 14ch; font: inherit; padding: 8px 12px; border: 1.5px solid #b9c3d6; border-radius: var(--r-sm); background: #fff; color: var(--text); }
.inline-form input:focus, .inline-form select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 4px rgba(242, 179, 61, .45); }
