/* ============================================================
   Églises du Grand Ottawa — responsive stylesheet
   Mobile-first · light/dark themes · accessible
   ============================================================ */

:root {
  --bg: #f6f7f3;
  --surface: #ffffff;
  --surface-2: #f0f4f0;
  --surface-3: #e8efe9;
  --ink: #172a23;
  --ink-soft: #3c5148;
  --muted: #6b7d74;
  --line: #dde6de;
  --primary: #176b52;
  --primary-dark: #0f4c3a;
  --primary-soft: #e4f2ea;
  --accent: #e3a84e;
  --accent-soft: #fdf3e2;
  --danger: #b4463c;
  --shadow-sm: 0 1px 2px rgba(15, 55, 40, .06), 0 2px 8px rgba(15, 55, 40, .04);
  --shadow-md: 0 4px 12px rgba(15, 55, 40, .07), 0 16px 40px rgba(15, 55, 40, .08);
  --shadow-lg: 0 24px 70px rgba(8, 35, 26, .28);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

[data-theme="dark"] {
  --bg: #0e1915;
  --surface: #16251f;
  --surface-2: #1c2e26;
  --surface-3: #243a30;
  --ink: #eef5f0;
  --ink-soft: #cbdcd2;
  --muted: #9bb3a7;
  --line: #2c4438;
  --primary: #62c69b;
  --primary-dark: #8fdcb9;
  --primary-soft: #1c3a2d;
  --accent: #f0bd6a;
  --accent-soft: #3a3020;
  --danger: #ef8b83;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .25);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, .32);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, .55);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.015em; margin: 0; }
p { margin: 0; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }

.icon { flex: none; vertical-align: middle; }

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

.skip-link {
  position: fixed; top: -100px; left: 12px; z-index: 200;
  background: var(--ink); color: var(--surface); padding: 10px 16px;
  border-radius: 0 0 10px 10px; text-decoration: none;
}
.skip-link:focus { top: 0; color: var(--surface); }

:where(a, button, input, select, [tabindex]):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.shell { width: min(100% - 2rem, 1200px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 18px; border-radius: 999px; border: 1px solid transparent;
  font-size: .9rem; font-weight: 650; line-height: 1.1; text-decoration: none;
  transition: transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 14px; font-size: .82rem; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: var(--surface-2); color: var(--ink-soft); }
.btn-ghost:hover { background: var(--surface-3); color: var(--ink); }
.btn-accent { background: var(--accent); color: #2a1e09; font-weight: 700; box-shadow: 0 8px 20px rgba(227, 168, 78, .28); }
.btn-accent:hover { background: #edb961; color: #2a1e09; }
.btn-outline-light { border-color: rgba(255, 255, 255, .4); color: #fff; background: rgba(255, 255, 255, .06); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  color: var(--ink-soft); transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.icon-btn:hover { background: var(--surface-2); color: var(--primary); border-color: var(--primary); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: linear-gradient(145deg, var(--primary), var(--primary-dark)); color: #fff;
  box-shadow: 0 5px 14px rgba(23, 107, 82, .25);
}
.brand-mark svg { width: 25px; height: 25px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-size: .98rem; letter-spacing: -.015em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { font-size: .68rem; color: var(--muted); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main-nav { display: none; align-items: center; gap: 4px; }
.main-nav a {
  padding: 9px 14px; border-radius: 999px; text-decoration: none;
  color: var(--ink-soft); font-size: .88rem; font-weight: 600; transition: background .15s, color .15s;
}
.main-nav a:hover { background: var(--surface-2); color: var(--primary); }
.main-nav a.active { background: var(--primary-soft); color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: inline; }
.menu-toggle { display: inline-grid; }

@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .main-nav { display: flex; }
}

body.nav-open .main-nav {
  display: flex; flex-direction: column; align-items: stretch; gap: 4px;
  position: absolute; top: var(--header-h); left: 0; right: 0;
  padding: 12px 1rem 18px; background: var(--surface);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
}
body.nav-open .main-nav a { padding: 13px 16px; border-radius: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1100px 520px at 78% -10%, #266b55 0%, transparent 60%),
              linear-gradient(135deg, #0f4535 0%, #123f33 48%, #0d3329 100%);
  padding: clamp(56px, 10vw, 100px) 0 clamp(72px, 11vw, 116px);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .32;
  background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent, #000 65%);
}
.hero-glow {
  position: absolute; width: 460px; height: 460px; right: -120px; bottom: -230px;
  border-radius: 50%; background: radial-gradient(circle, rgba(227,168,78,.28), transparent 68%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; gap: 44px; }
.hero-copy { max-width: 720px; }
.eyebrow {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-size: .72rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow-line { width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow-dark { color: var(--primary); }
.hero h1 { font-size: clamp(2.35rem, 6.4vw, 4.15rem); font-weight: 600; letter-spacing: -.035em; }
.hero h1 em { color: var(--accent); font-style: italic; }
.hero-text { margin-top: 20px; max-width: 640px; font-size: clamp(1rem, 2.1vw, 1.16rem); color: rgba(255,255,255,.82); line-height: 1.75; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); overflow: hidden; backdrop-filter: blur(4px);
}
.hero-stats > div { background: rgba(9, 44, 34, .42); padding: 20px 22px; display: flex; flex-direction: column; gap: 2px; }
.hero-stats strong { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1; color: var(--accent); }
.hero-stats span { font-size: .78rem; color: rgba(255,255,255,.75); }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); align-items: center; gap: 56px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Directory heading & toolbar ---------- */
.directory { padding-block: clamp(44px, 7vw, 76px) 72px; }
.section-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.section-heading h2 { font-size: clamp(1.8rem, 3.4vw, 2.55rem); font-weight: 600; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-subtitle { margin-top: 10px; color: var(--muted); max-width: 600px; }

.toolbar {
  display: flex; flex-direction: column; gap: 12px; padding: 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.search-field { position: relative; display: flex; align-items: center; }
.search-field > .icon { position: absolute; left: 15px; color: var(--muted); pointer-events: none; }
.search-field input {
  width: 100%; padding: 13px 44px 13px 44px; border: 1px solid var(--line);
  border-radius: 11px; background: var(--surface-2); color: var(--ink); outline: none;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.search-field input::placeholder { color: var(--muted); }
.search-field input:focus { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 4px var(--primary-soft); }
.search-clear {
  position: absolute; right: 10px; display: grid; place-items: center;
  width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--surface-3); color: var(--ink-soft);
}
.toolbar-right { display: flex; gap: 10px; }
.select-wrap { position: relative; display: flex; align-items: center; flex: 1; }
.select-wrap > .icon:first-child { position: absolute; left: 13px; color: var(--muted); pointer-events: none; }
.select-wrap > .icon:last-child { position: absolute; right: 12px; color: var(--muted); pointer-events: none; }
.select-wrap select {
  width: 100%; appearance: none; -webkit-appearance: none; padding: 12px 36px 12px 38px;
  border: 1px solid var(--line); border-radius: 11px; background: var(--surface);
  color: var(--ink-soft); font-size: .86rem; font-weight: 600; cursor: pointer;
}
.btn-filter { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.btn-filter:hover { background: var(--primary); color: #fff; }
.filter-count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--primary); color: #fff; font-size: .7rem;
}
.btn-filter:hover .filter-count { background: var(--accent); color: #2a1e09; }
@media (min-width: 760px) {
  .toolbar { flex-direction: row; align-items: center; padding: 10px; }
  .search-field { flex: 1; }
  .toolbar-right { flex: none; }
  .select-wrap { flex: none; width: 210px; }
}

/* ---------- Layout & filters ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.filters-overlay { position: fixed; inset: 0; z-index: 58; background: rgba(8, 28, 21, .55); backdrop-filter: blur(2px); }
.filters {
  position: fixed; inset: 0 auto 0 0; z-index: 59; width: min(88vw, 350px);
  background: var(--surface); padding: 18px 18px 30px; overflow-y: auto;
  transform: translateX(-105%); transition: transform .25s ease; box-shadow: var(--shadow-lg);
}
.filters.open { transform: translateX(0); }
.filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.filters-head h2 { font-family: var(--font-body); font-size: 1rem; display: flex; align-items: center; gap: 9px; }
.filters-close { display: inline-grid; }
.filter-group { padding: 18px 0; border-top: 1px solid var(--line); }
.filter-group legend { font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: 12px; }
.check-list { display: flex; flex-direction: column; gap: 2px; }
.check-list-scroll { max-height: 220px; overflow-y: auto; padding-right: 4px; }
.check {
  display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 9px;
  font-size: .87rem; color: var(--ink-soft); cursor: pointer; transition: background .14s;
}
.check:hover { background: var(--surface-2); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box, .check .radio {
  width: 17px; height: 17px; flex: none; border: 1.5px solid var(--line);
  background: var(--surface); transition: background .14s, border-color .14s;
}
.check .box { border-radius: 5px; }
.check .radio { border-radius: 50%; }
.check input:checked + .box, .check input:checked + .radio { background: var(--primary); border-color: var(--primary); }
.check input:checked + .box::after {
  content: ""; display: block; width: 9px; height: 5px; margin: 3px auto 0;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}
.check input:checked + .radio::after {
  content: ""; display: block; width: 6px; height: 6px; margin: 3.5px auto; border-radius: 50%; background: #fff;
}
.check input:focus-visible + .box, .check input:focus-visible + .radio { outline: 3px solid var(--accent); outline-offset: 2px; }
.check .label { flex: 1; }
.check .count { font-size: .7rem; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 1px 7px; }
.reset-btn { width: 100%; margin-top: 6px; font-size: .84rem; }

@media (min-width: 1040px) {
  .filters-overlay { display: none !important; }
  .layout { grid-template-columns: 264px minmax(0, 1fr); gap: 30px; }
  .filters {
    position: sticky; top: calc(var(--header-h) + 18px); inset: auto; width: auto;
    max-height: calc(100vh - var(--header-h) - 36px); transform: none;
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
    padding: 18px 18px 22px; background: var(--surface);
  }
  .filters-head h2 { font-family: var(--font-display); font-size: 1.15rem; }
  .filters-close { display: none; }
}

/* ---------- Results ---------- */
.results-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 16px; min-height: 34px; }
.results-bar p { color: var(--ink-soft); font-size: .9rem; }
.results-bar p strong { color: var(--primary); font-size: 1.02rem; }
.active-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.active-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 6px 4px 11px;
  border-radius: 999px; background: var(--primary-soft); color: var(--primary);
  font-size: .74rem; font-weight: 650; border: 0;
}
.active-chip:hover { background: var(--primary); color: #fff; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.cards[hidden] { display: none; }
@media (min-width: 760px) { .cards { gap: 20px; } }

.church-card {
  display: flex; flex-direction: column; gap: 13px; padding: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  content-visibility: auto; contain-intrinsic-size: 480px;
}
.church-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
.church-card[hidden] { display: none; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ref { font-size: .7rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; font-size: .68rem; font-weight: 700; white-space: nowrap; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-verified { background: var(--primary-soft); color: var(--primary); }
.status-partial { background: var(--accent-soft); color: #9a6414; }
[data-theme="dark"] .status-partial { color: var(--accent); }
.status-unverified { background: var(--surface-2); color: var(--muted); }
.card-title { font-size: 1.32rem; font-weight: 600; line-height: 1.22; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 7px; font-size: .72rem; font-weight: 600; }
.tag-denom { background: var(--primary-soft); color: var(--primary); }
.tag-city { background: var(--surface-2); color: var(--ink-soft); }
.card-info { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.card-info li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.card-info li > .icon { color: var(--primary); margin-top: 3px; opacity: .85; }
.card-info li > div { min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.card-info li span { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; }
.card-info li strong, .card-info li a { font-size: .83rem; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; text-decoration: none; }
.card-info li a:hover { color: var(--primary); text-decoration: underline; }
.card-info li .missing, .missing { color: var(--muted); font-weight: 500; font-style: italic; }
.card-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 2px; }
.langs-label { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; color: var(--muted); font-weight: 650; }
.lang-chip { padding: 3px 8px; border: 1px dashed var(--line); border-radius: 6px; font-size: .71rem; color: var(--ink-soft); background: var(--surface-2); }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.card-actions .btn { flex: 1 1 auto; }

.empty-state { text-align: center; padding: 70px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-icon { width: 64px; height: 64px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 20px; background: var(--primary-soft); color: var(--primary); }
.empty-state h3 { font-size: 1.45rem; }
.empty-state p { max-width: 420px; margin: 10px auto 22px; color: var(--muted); }
.load-more-wrap { text-align: center; margin-top: 32px; }
.load-more-wrap p { margin-top: 10px; font-size: .78rem; color: var(--muted); }

.dir-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 34px; padding: 16px 18px; border-radius: var(--radius); background: var(--accent-soft); color: var(--ink-soft); font-size: .85rem; }
.dir-note > .icon { color: #b07a22; margin-top: 2px; }
[data-theme="dark"] .dir-note > .icon { color: var(--accent); }
.dir-note a { font-weight: 650; }

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(44px, 7vw, 70px) 0; background: var(--surface-2); border-top: 1px solid var(--line); }
.cta-inner { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; justify-content: space-between; }
.cta-inner h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 600; margin-bottom: 10px; }
.cta-inner > div > p:last-child { color: var(--muted); max-width: 660px; }
@media (min-width: 860px) { .cta-inner { flex-direction: row; align-items: center; } }

/* ---------- Modal ---------- */
.detail-modal {
  width: min(94vw, 720px); max-height: min(90vh, 860px); padding: 0; border: 1px solid var(--line);
  border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
  overflow: auto; overscroll-behavior: contain;
}
.detail-modal::backdrop { background: rgba(7, 26, 19, .68); backdrop-filter: blur(4px); }
.modal-inner { position: relative; padding: clamp(22px, 4vw, 36px); }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 2; }
.modal-head { padding-right: 52px; border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 20px; }
.modal-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.modal-head h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); font-weight: 600; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 0 26px; }
.detail-item { padding: 13px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.detail-item .k { display: flex; align-items: center; gap: 8px; font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 750; color: var(--muted); margin-bottom: 5px; }
.detail-item .k .icon { color: var(--primary); }
.detail-item .v { font-size: .94rem; font-weight: 550; overflow-wrap: anywhere; }
.detail-item .v a { font-weight: 600; }
.detail-langs { display: flex; flex-wrap: wrap; gap: 6px; }
.detail-langs .lang-chip { font-size: .78rem; padding: 4px 10px; }
.modal-footer { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.source-note { font-size: .76rem; color: var(--muted); margin-top: 16px; }
.source-note a { overflow-wrap: anywhere; }
@media (min-width: 600px) { .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Simple content pages ---------- */
.page-hero { padding: clamp(46px, 8vw, 80px) 0 36px; border-bottom: 1px solid var(--line); background: var(--surface); }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 600; max-width: 800px; }
.page-hero p { margin-top: 16px; max-width: 720px; color: var(--muted); font-size: 1.05rem; }
.prose { padding-block: clamp(40px, 6vw, 70px); max-width: 800px; }
.prose h2 { font-size: 1.7rem; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-soft); line-height: 1.8; }
.prose ul { list-style: disc; padding-left: 22px; margin-top: 12px; }
.prose li { margin-bottom: 8px; }
.prose a { font-weight: 600; }
.info-box { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--primary-soft); color: var(--ink-soft); margin: 24px 0; }
.info-box .icon { color: var(--primary); margin-top: 2px; }
.criteria-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; margin-top: 22px; }
.criterion { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.criterion .criterion-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 14px; }
.criterion h3 { font-family: var(--font-body); font-size: .98rem; margin-bottom: 6px; }
.criterion p { font-size: .85rem; color: var(--muted); }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat-card h3 { font-family: var(--font-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.stat-card p { margin-top: 8px; font-size: .9rem; color: var(--ink-soft); }
.status-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.status-legend > span { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--ink-soft); padding: 8px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }

.form-card { padding: clamp(22px, 4vw, 34px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.steps { counter-reset: step; display: grid; gap: 16px; margin-top: 24px; }
.step { position: relative; padding-left: 52px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 750; font-size: .9rem; }
.step h3 { font-family: var(--font-body); font-size: 1rem; }
.step p { font-size: .88rem; color: var(--muted); margin-top: 3px; }
.required-list { display: grid; gap: 8px; margin: 22px 0; }
.required-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.required-list .icon { color: var(--primary); margin-top: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: #0e3329; color: rgba(255,255,255,.72); padding-top: clamp(44px, 6vw, 66px); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 34px; padding-bottom: 42px; }
.footer-about { grid-column: 1 / -1; }
@media (min-width: 800px) { .footer-about { grid-column: span 2; } }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 1.05rem; margin-bottom: 12px; }
.footer-brand .icon { color: var(--accent); }
.footer-about p { font-size: .86rem; max-width: 460px; line-height: 1.75; }
.footer-note { margin-top: 10px; font-style: italic; opacity: .8; }
.footer-col { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.footer-col h2 { font-family: var(--font-body); font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 6px; }
.footer-col a { color: rgba(255,255,255,.78); text-decoration: none; font-size: .85rem; display: inline-flex; gap: 6px; align-items: center; overflow-wrap: anywhere; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-small { font-size: .78rem; opacity: .65; line-height: 1.6; margin-top: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-block: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: .76rem; opacity: .75; }
.footer-bottom .icon { color: var(--accent); }

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  .site-header, .hero, .toolbar, .filters, .load-more-wrap, .cta-band, .site-footer, .card-actions { display: none !important; }
  body { background: #fff; }
  .cards { display: block; }
  .church-card { break-inside: avoid; box-shadow: none; margin-bottom: 12px; }
}
