/* People-first editorial design (homepage, ministry pages, content pages, messages archive and message pages, events list, month and event pages; /design/ redirects to /). Hand-written, no build
   step, mobile first. Brand accents are used unchanged; text on them is black,
   and in light mode accent colours are never used for text on white. */

/* Theme tokens --------------------------------------------------------------
   Light is the base. Dark applies when the OS prefers dark and no override is
   saved, or when the visitor picks Dark (data-theme set before first paint). */

:root {
  --cyan: #00aeef;
  --lime: #b3d335;
  --black: #0b0b0c;
  --white: #ffffff;
  --on-accent: #000000;

  --bg: #ffffff;
  --surface: #f3f5f6;
  --ink: #0b0b0c;
  --muted: #4a5157;
  --line: #d6dbdf;
  --link: #0b0b0c;
  --link-line: var(--cyan);
  --eyebrow: #0b0b0c;
  --focus: #0b0b0c;
  --photo-edge: #ffffff;
  color-scheme: light;

  --wrap: 76rem;
  --radius: 14px;
  /* Local fonts only, one deliberate choice per platform: Apple, Windows, Android,
     then Linux (Noto Sans, close to Segoe UI and the logo's lettering) before any Arial clone. */
  --sans: "Avenir Next", Avenir, "Segoe UI", Roboto, "Noto Sans", "Adwaita Sans", Cantarell, Ubuntu, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: var(--sans);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1012;
    --surface: #171a1d;
    --ink: #f2f4f5;
    --muted: #b3bbc2;
    --line: #2d3338;
    --link: var(--cyan);
    --link-line: var(--cyan);
    --eyebrow: var(--lime);
    --focus: var(--cyan);
    --photo-edge: #0e1012;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0e1012;
  --surface: #171a1d;
  --ink: #f2f4f5;
  --muted: #b3bbc2;
  --line: #2d3338;
  --link: var(--cyan);
  --link-line: var(--cyan);
  --eyebrow: var(--lime);
  --focus: var(--cyan);
  --photo-edge: #0e1012;
  color-scheme: dark;
}

/* Base ---------------------------------------------------------------------- */

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.75rem, 9vw, 5.5rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 5vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }

a { color: var(--link); text-decoration-color: var(--link-line); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 4px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus, section:focus { outline: none; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -5rem; z-index: 50;
  padding: 0.6rem 1rem; border-radius: 8px;
  background: var(--cyan); color: var(--on-accent); font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.preview-note {
  margin: 0; padding: 0.4rem 1.25rem;
  background: var(--surface); color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem; line-height: 1.45; text-align: center; text-wrap: pretty;
}

.ext {
  font-size: 0.72em; font-weight: 600; letter-spacing: 0.02em;
  color: var(--muted); white-space: nowrap;
}
.ext::before { content: "↗ "; }

.eyebrow {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1rem;
  color: var(--eyebrow);
  font-size: 0.85rem; font-weight: 700;
}
.eyebrow::before { content: ""; width: 2.25rem; height: 4px; border-radius: 2px; background: var(--lime); flex: none; }

.button {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.7rem 1.4rem;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; text-decoration: none; line-height: 1.2;
}
.button-primary { background: var(--cyan); color: var(--on-accent); }
.button-primary .ext { color: inherit; }
.button-quiet { border-color: currentColor; color: var(--ink); }
.button:hover { text-decoration: underline; text-decoration-thickness: 2px; }

.text-link { font-weight: 700; }

.source-note { margin-top: 1.5rem; color: var(--muted); font-size: 0.9rem; }

/* Masthead: brand black in both themes (the logo wordmark is white). -------- */

.masthead {
  --focus: var(--cyan);
  background: var(--black); color: var(--white);
  position: relative; z-index: 10;
}
.masthead-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 1.5rem; padding-block: 0.75rem;
}
.logo img { width: 150px; height: auto; }

.menu-toggle {
  min-height: 2.75rem; padding: 0.5rem 1.1rem;
  border: 2px solid var(--white); border-radius: 999px;
  background: transparent; color: var(--white);
  font: inherit; font-weight: 700; cursor: pointer;
}
.menu-toggle[aria-expanded="true"] { background: var(--white); color: var(--black); }

.site-menu { flex-basis: 100%; }
.js .site-menu { display: none; }
.js .site-menu.is-open { display: block; }

.nav-list { list-style: none; margin: 0; padding: 0.5rem 0; }
.nav-list a {
  display: block; padding: 0.7rem 0;
  color: var(--white); font-weight: 700; text-decoration: none;
  border-bottom: 1px solid #2a2e32;
}
.nav-list a:hover { text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 3px; }
.nav-list .ext { color: #b9c0c6; }
.nav-list a[aria-current="page"], .nav-list summary.is-current { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 0.35em; }

/* Dropdowns from the Navigation menu (native <details>). Phones: they open in
   place, indented. Desktop: a small black panel under the item. */
.nav-list summary {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 0;
  color: var(--white); font-weight: 700; cursor: pointer; list-style: none;
  border-bottom: 1px solid #2a2e32;
}
.nav-list summary::-webkit-details-marker { display: none; }
.nav-list summary::after {
  content: ""; width: 0.45rem; height: 0.45rem; margin-top: -0.2rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.nav-list details[open] > summary::after { margin-top: 0.2rem; transform: rotate(-135deg); }
.nav-list summary:hover { text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 3px; }
.dropdown { list-style: none; margin: 0; padding: 0 0 0 1rem; }

/* Theme: a small, quiet icon button in the top-right of the logo row (on phones
   just left of Menu), opening System / Light / Dark. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.icon-sprite { position: absolute; }
.theme-control { position: relative; margin-left: auto; margin-right: -0.75rem; }
.theme-control[hidden] { display: none; }
.theme-toggle {
  display: grid; place-items: center;
  position: relative; width: 2.25rem; height: 2.25rem; padding: 0;
  border: 1px solid #2f3439; border-radius: 50%;
  background: transparent; color: #aeb5bb; cursor: pointer;
}
.theme-toggle::before { content: ""; position: absolute; inset: -5px; } /* 44px+ target, same small look */
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle:hover, .theme-toggle[aria-expanded="true"] { color: var(--white); border-color: #5c646b; }
.theme-menu {
  position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 20;
  min-width: 9.5rem; margin: 0; padding: 0.35rem; list-style: none;
  background: #17191c; border: 1px solid #3a4046; border-radius: 12px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.35);
}
.theme-menu[hidden] { display: none; }
.theme-menu button {
  display: flex; align-items: center; gap: 0.6rem; width: 100%;
  min-height: 2.5rem; padding: 0 0.75rem;
  border: 0; border-radius: 8px; background: transparent;
  color: var(--white); font: inherit; font-size: 0.92rem; font-weight: 600; text-align: left; cursor: pointer;
}
.theme-menu button:hover { background: #262a2e; }
.theme-menu button[aria-checked="true"] { color: var(--cyan); }
.theme-menu button[aria-checked="true"]::after { content: "✓"; margin-left: auto; }
.theme-menu button:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }

@media (max-width: 23.5rem) {
  /* Narrow phones: logo, theme and Menu still share one row. */
  .masthead-inner { column-gap: 0.75rem; }
  .masthead .logo img { width: 124px; }
  .theme-control { margin-right: 0; }
  .menu-toggle { padding-inline: 0.9rem; }
}

@media (min-width: 64rem) {
  /* Nav keeps its own row under the logo; the theme button ends the logo row. */
  .menu-toggle { display: none; }
  .masthead-inner { row-gap: 0.2rem; padding-block: 0.7rem 0.3rem; }
  .site-menu, .js .site-menu { display: flex; align-items: center; min-height: 2.75rem; }
  .nav-list { display: flex; gap: 1.6rem; padding: 0; }
  .nav-list a, .nav-list summary { padding: 0.5rem 0; border: 0; }
  .has-dropdown { position: relative; }
  .dropdown {
    position: absolute; left: -0.9rem; top: 100%; z-index: 20;
    min-width: 14rem; padding: 0.4rem 0.9rem;
    background: #17191c; border: 1px solid #3a4046; border-radius: 12px;
    box-shadow: 0 10px 30px rgb(0 0 0 / 0.35);
  }
  .dropdown a { padding: 0.55rem 0; white-space: nowrap; }
  .theme-control { margin-right: 0; }
  .logo img { width: 170px; }
}

/* Hero: asymmetric copy + layered photography -------------------------------- */

.hero { padding-block: clamp(2.5rem, 7vw, 6rem) clamp(3rem, 8vw, 7rem); overflow: hidden; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-copy .lede { font-size: clamp(1.15rem, 2.2vw, 1.4rem); max-width: 34rem; color: var(--ink); }
.hero-times { margin: -0.25rem 0 0; font-size: 1.1rem; font-weight: 700; }
.hero-times-label {
  display: block; margin-bottom: 0.15rem;
  font-size: 0.8rem; font-weight: 800; color: var(--muted);
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.hero-photos { position: relative; padding: 0 0 3.5rem 0; }
.hero-photos::before {
  content: ""; position: absolute; top: 1.5rem; right: -1.25rem; bottom: 5rem; left: 25%;
  background: var(--lime); border-radius: var(--radius);
}
.photo-main {
  position: relative; width: 82%; margin-left: auto;
  aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius);
}
.photo-inset {
  position: absolute; left: 0; bottom: 0; width: 42%;
  aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius);
  border: 6px solid var(--photo-edge);
}

@media (min-width: 52rem) {
  .hero-grid { grid-template-columns: 5fr 6fr; gap: 4rem; }
  .hero-grid.no-photo { grid-template-columns: 1fr; }
  .hero-photos::before { right: -3rem; }
}

/* Visit band ------------------------------------------------------------------ */

.visit { background: var(--lime); color: var(--on-accent); padding-block: 2.5rem; --focus: var(--black); }
.visit a { color: var(--on-accent); text-decoration-color: var(--on-accent); }
.visit .ext { color: inherit; }
.visit .button-primary { background: var(--black); color: var(--white); }
.visit-grid { display: grid; gap: 1.5rem; align-items: center; }
.visit-title { margin: 0; font-size: clamp(1.75rem, 4vw, 2.4rem); }
.visit-facts { display: grid; gap: 1rem; margin: 0; }
.visit-facts dt { font-size: 0.8rem; font-weight: 800; }
.visit-facts dd { margin: 0; font-size: 1.2rem; font-weight: 700; line-height: 1.35; }
.visit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }

@media (min-width: 40rem) { .visit-facts { grid-template-columns: auto auto; justify-content: start; gap: 2.5rem; } }
@media (min-width: 64rem) {
  .visit-grid { grid-template-columns: auto 1fr auto; gap: 3rem; }
  .visit-facts dd { white-space: nowrap; }
}
@media (min-width: 80rem) {
  .visit-title { white-space: nowrap; }
}

/* Story ----------------------------------------------------------------------- */

.story { padding-block: clamp(3.5rem, 9vw, 7.5rem); }
.story-grid { display: grid; gap: 3rem; align-items: center; }
.story-copy p { max-width: 36rem; font-size: 1.125rem; }
.story-photos { display: grid; grid-template-columns: repeat(6, 1fr); align-items: start; }
.photo-wide { grid-column: 1 / 6; grid-row: 1; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.photo-square {
  grid-column: 4 / 7; grid-row: 1; margin-top: 55%;
  aspect-ratio: 1; object-fit: cover; border-radius: var(--radius);
  border: 6px solid var(--photo-edge); position: relative;
}

.story-photos.single .photo-wide { grid-column: 1 / 7; }

@media (min-width: 52rem) {
  .story-grid { grid-template-columns: 6fr 5fr; gap: 5rem; }
  .story-photos { order: -1; }
}

/* Families -------------------------------------------------------------------- */

.families { background: var(--surface); padding-block: clamp(3.5rem, 8vw, 6rem); }
.families-grid { display: grid; gap: 2.5rem; }
.families-copy p { max-width: 38rem; }
.ministry-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.ministry-list li { border-top: 4px solid var(--cyan); padding-top: 1.1rem; }
.ministry-list h3 a { text-decoration: none; }
.ministry-list h3 a:hover { text-decoration: underline; }
.ministry-list p { margin: 0; color: var(--muted); }

@media (min-width: 52rem) {
  .families-grid { grid-template-columns: 6fr 5fr; gap: 5rem; align-items: end; }
}

/* Messages -------------------------------------------------------------------- */

.messages { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }
.message-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; }
.message { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; align-items: start; }
.message img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--surface); }
.message h3 { font-size: 1.05rem; line-height: 1.3; margin-bottom: 0.3rem; }
.message h3 a { text-decoration: none; }
.message h3 a:hover { text-decoration: underline; }
.meta { margin: 0; color: var(--muted); font-size: 0.9rem; }
.message-lead { grid-template-columns: 1fr; }
.message-lead h3 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); }

@media (min-width: 52rem) {
  .message-list { grid-template-columns: 7fr 5fr; grid-template-rows: auto auto; column-gap: 3rem; }
  .message-lead { grid-row: 1 / 3; }
  .message:not(.message-lead) { grid-template-columns: 12rem 1fr; }
}

/* Featured events (automatic, from events ticked “Feature on the home page”) -- */

.events-featured { padding-block: 0 clamp(3.5rem, 8vw, 6.5rem); }
.events-note { margin: 0.75rem 0 0; max-width: 38rem; color: var(--muted); }
.event-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
.event-card { display: grid; gap: 1rem; align-content: start; border-top: 4px solid var(--cyan); padding-top: 1.1rem; }
.event-card-photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.event-card h3 { font-size: 1.2rem; line-height: 1.3; margin-bottom: 0.4rem; overflow-wrap: anywhere; }
.event-card h3 a { text-decoration: none; }
.event-card h3 a:hover { text-decoration: underline; }
.event-card-when { margin: 0 0 0.3rem; font-weight: 700; }
.event-card-summary { margin: 0.5rem 0 0; }
.event-flag {
  display: inline-block; margin: 0 0 0.5rem; padding: 0.15rem 0.6rem; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: 0.8rem; font-weight: 800;
}
.event-card.is-cancelled .event-card-when { text-decoration: line-through; }
.events-empty { padding-top: 2rem; }

@media (min-width: 52rem) { .event-cards { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 3rem; } }

/* Happening ------------------------------------------------------------------- */

.happening { padding-block: 0 clamp(3.5rem, 8vw, 6.5rem); }
.happening-grid { display: grid; gap: 2rem; align-items: center; }
.photo-outreach { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.meta-strong { font-size: 1.2rem; font-weight: 700; }

@media (min-width: 52rem) {
  .happening-grid { grid-template-columns: 7fr 5fr; gap: 4rem; }
}

/* Next steps ------------------------------------------------------------------ */

.next-steps { border-top: 1px solid var(--line); padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.step-list { list-style: none; margin: 2rem 0 0; padding: 0; counter-reset: step; display: grid; gap: 2rem; }
.step-list li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; }
.step-list li::before {
  content: counter(step); grid-row: 1 / 3;
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--cyan); color: var(--on-accent); font-weight: 800;
}
.step-list h3 a { text-decoration: none; }
.step-list h3 a:hover { text-decoration: underline; }
.step-list p { margin: 0; color: var(--muted); }

@media (min-width: 52rem) { .step-list { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }

/* Homepage composition (.home only) -------------------------------------------
   Front door (one welcome, one action, one photo, the lime band), then a few
   quiet photo-and-sentence sections; only the messages change ground. Photos never
   cover each other. See docs/design/homepage-simplification.md. ----------------------------- */

.home { --edge: 140rem; --gutter: max(1.25rem, calc((min(100%, var(--edge)) - var(--wrap)) / 2)); }
.home h1, .home h2, .home h3 { text-wrap: balance; }
.home p { text-wrap: pretty; }
.home h3 a { color: inherit; }
.home .eyebrow { display: block; margin-bottom: 0.75rem; color: var(--muted); font-size: 1rem; font-weight: 600; letter-spacing: 0; text-transform: none; text-wrap: balance; }
.home .eyebrow::before { content: none; }
.home .button:hover { text-decoration: none; }
.home .button-primary:hover { background: var(--ink); color: var(--bg); }
.home .button-quiet:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* Front door */
.home .hero { padding-block: 0; }
.home .hero-grid { width: 100%; gap: 0; }
.home .hero-copy { padding: clamp(1.5rem, 5vw, 2.5rem) 1.25rem clamp(1.75rem, 5vw, 2.5rem); }
.home .hero .eyebrow { margin-bottom: 0.6rem; font-size: 0.95rem; color: var(--ink); }
.home h1 { margin-bottom: 0.3em; font-size: clamp(2.9rem, 13.5vw, 5.25rem); line-height: 1.05; letter-spacing: -0.03em; }
.home .hero-copy .lede { margin-bottom: 1.1rem; line-height: 1.45; }
.home .hero-times { margin: 0; line-height: 1.4; }
.home .hero-times-label { display: inline; margin: 0 0.35rem 0 0; font-size: inherit; font-weight: 500; letter-spacing: 0; text-transform: none; }
.home .actions { margin-top: 1.4rem; }
.home .hero-photos { padding: 0; aspect-ratio: 39 / 32; }
.home .hero-photos::before { content: none; }
.home .hero-photos img { position: absolute; top: 0; width: 57%; height: 100%; margin: 0; aspect-ratio: auto; object-fit: cover; object-position: 50% 35%; border: 0; border-radius: 0; }
.home .hero-photos .photo-main { left: 0; }
.home .hero-photos .photo-inset { left: auto; right: 0; width: calc(43% - 6px); object-position: 62% 35%; }
.home .hero-photos.single { aspect-ratio: 1; }
.home .hero-photos.single .photo-main { width: 100%; }

@media (min-width: 40rem) { .home .hero-photos { aspect-ratio: 16 / 9; } }
@media (min-width: 64rem) {
  .home .hero-grid { width: min(100%, var(--edge)); padding-left: var(--gutter); grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: 3rem; }
  .home .hero-grid.no-photo { grid-template-columns: minmax(0, 1fr); }
  .home .hero-copy { padding: 2rem 0; }
  .home h1 { font-size: clamp(3.5rem, 5.8vw, 5.75rem); }
  .home .hero-photos { align-self: stretch; aspect-ratio: auto; min-height: clamp(25rem, calc(100svh - 21rem), 42rem); }
  /* One portrait: whole, as tall as the first screen allows */
  .home .hero-grid:has(.single) { grid-template-columns: minmax(0, 1fr) auto; }
  .home .hero-photos.single { aspect-ratio: 4 / 5; height: clamp(27rem, calc(100svh - 19rem), 44rem); min-height: 0; }
}

@media (max-width: 23.5rem) { .home .hero-times-label { display: block; } }

/* Lime band, flush under the photos */
.home .visit { padding-block: 2rem; }
.home .visit-title { line-height: 1; }
.home .visit-facts dt { font-size: 0.95rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.home .visit-facts dd { font-size: 1.25rem; line-height: 1.3; }
.home .visit .button-primary:hover { background: var(--white); color: var(--black); }
@media (min-width: 64rem) {
  .home .visit { padding-block: 1.5rem; }
  .home .visit-actions { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
}

/* The one loud statement */
.home .story { padding-block: clamp(4rem, 9vw, 8rem); }
.home .story-grid { gap: clamp(2rem, 4vw, 3rem); grid-template-columns: minmax(0, 1fr); }
.home .story-copy { display: grid; gap: 1rem clamp(2rem, 5vw, 5rem); }
.home .story h2 { margin: 0; font-size: clamp(2.6rem, 11vw, 4rem); line-height: 1.05; letter-spacing: -0.03em; }
.home .story-body { max-width: 38rem; }
.home .story-body > :last-child { margin-bottom: 0; }
.home .story-photos { order: 0; gap: 0.75rem; grid-template-columns: minmax(0, 1fr); }
.home .story-photos img { grid-column: auto; grid-row: auto; width: 100%; margin: 0; border: 0; }
.home .story-photos .photo-square { aspect-ratio: 4 / 3; }
@media (min-width: 40rem) {
  .home .story-photos:not(.single) { grid-template-columns: minmax(0, 4fr) minmax(0, 3fr); gap: 1rem; }
  .home .story-photos .photo-square { aspect-ratio: 1; }
}
@media (min-width: 52rem) {
  .home .story-copy { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; }
  .home .story h2 { font-size: clamp(3.25rem, 5.8vw, 5rem); }
  .home .story-grid.single { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; }
  .home .story-grid.single .story-copy { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
}

/* Families: cyan ground, ministries as large ruled rows (the whole row is the link) */
.home .families { background: color-mix(in srgb, var(--cyan) 13%, var(--bg)); }
.home .families h2 { margin-bottom: 0.4em; font-size: clamp(1.9rem, 4vw, 2.75rem); }
.home .families-copy > :last-child { margin-bottom: 0; }
.home .ministry-list { gap: 0; }
.home .ministry-list li { position: relative; padding: 1.25rem 2.75rem 1.35rem 0; border-top: 2px solid var(--ink); }
.home .ministry-list li:last-child { border-bottom: 2px solid var(--ink); }
.home .ministry-list h3 { margin-bottom: 0.2em; font-size: clamp(1.5rem, 3vw, 1.9rem); }
.home .ministry-list .item-link::after, .home .message h3 a::after { content: ""; position: absolute; inset: 0; }
.home .ministry-list li:has(.item-link)::after { content: "→" / ""; position: absolute; top: 1.15rem; right: 0; font-size: 1.6rem; font-weight: 700; line-height: 1.3; }
.home .ministry-list p { color: var(--ink); }
@media (min-width: 52rem) { .home .families-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; } }

/* Messages: brand black in light mode, raised surface in dark */
.home .messages {
  --bg: #0b0b0c; --surface: #1d2125; --ink: #ffffff; --muted: #b9c0c6; --line: #34393f;
  --link: #ffffff; --focus: var(--cyan);
  background: var(--bg); color: var(--ink);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .home .messages { --bg: #1a1e22; --surface: #262b30; } }
:root[data-theme="dark"] .home .messages { --bg: #1a1e22; --surface: #262b30; }
.home .messages h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
.home .messages .meta { font-size: 1rem; }
.home .messages-more { position: relative; z-index: 1; width: fit-content; margin: 1.5rem 0 0; }
.home .message { position: relative; }
.home .message h3 { text-wrap: pretty; }
.home .message h3 a:hover { text-decoration: underline; }
@media (min-width: 52rem) {
  .home .message-list { grid-template: none; }
  .home .message-lead { grid-row: auto; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
  .home .message-lead h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
}

/* Featured events and the feature: photo out to the left edge, echoing the front door */
.home .events-featured { padding-top: clamp(3.5rem, 8vw, 6rem); }
.home .happening { padding-block: 0 clamp(2.75rem, 7vw, 5rem); overflow: hidden; }
.home .happening-grid { width: 100%; gap: 1.75rem; }
.home .photo-outreach { border-radius: 0; }
.home .happening.portrait .photo-outreach { aspect-ratio: 3 / 4; }
.home .happening-copy { padding-inline: 1.25rem; }
.home .happening h2 { margin-bottom: 0.35em; font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1; }
.home .meta-strong { display: table; margin-bottom: 1rem; padding: 0.25rem 0.7rem; background: var(--lime); color: var(--on-accent); line-height: 1.35; }
.home .happening-copy > :last-child { margin-bottom: 0; }
@media (min-width: 52rem) {
  .home .happening { padding-block: clamp(3.5rem, 8vw, 6rem); }
  .home .happening-grid { width: min(100%, var(--edge)); padding-right: var(--gutter); grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); }
  .home .photo-outreach { border-radius: 0 var(--radius) var(--radius) 0; }
  .home .happening-copy { padding-inline: 0; }
  /* A portrait stays whole: inside the page edge, beside its words */
  .home .happening.portrait { padding-top: 0; }
  .home .happening.portrait .happening-grid { width: min(100% - 2.5rem, var(--wrap)); padding: 0; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .home .happening.portrait .photo-outreach { border-radius: var(--radius); }
}

/* Next steps: ruled, numbered columns */
.home .next-steps { border-top: 0; background: var(--surface); }
.home .next-steps h2 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.75rem); }
.home .step-list { gap: 1.75rem; }
.home .step-list li { grid-template-columns: 2.75rem minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 0.75rem; padding-top: 1.1rem; border-top: 2px solid var(--ink); }
.home .step-list li::before { place-items: start; width: auto; height: auto; border-radius: 0; background: none; color: var(--ink); font-family: var(--display); font-size: 2rem; line-height: 1; letter-spacing: -0.03em; }
.home .step-list h3 { margin: 0.2rem 0 0.4em; }
.home .step-list h3 a { text-decoration: underline; text-decoration-color: var(--link-line); text-decoration-thickness: 2px; }
.home .step-list h3 a:hover { text-decoration-thickness: 4px; }
@media (min-width: 52rem) { .home .step-list { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2.5rem; } }

/* Ministry pages (Wagtail MinistryPage): hero, then staff-ordered sections.
   Everything is scoped to .ministry so the homepage concept is unaffected. -- */

.crumbs { margin-bottom: 1.5rem; color: var(--muted); font-size: 0.9rem; }
.crumbs a { color: var(--muted); font-weight: 600; }

.page-hero { padding-block: clamp(2rem, 6vw, 5rem) clamp(2.5rem, 7vw, 5.5rem); overflow: hidden; }
.page-hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.page-hero-copy .lede { font-size: clamp(1.15rem, 2.2vw, 1.4rem); max-width: 36rem; }
.page-hero-photo { position: relative; padding: 0 0 1.5rem 1.5rem; }
.page-hero-photo::before {
  content: ""; position: absolute; left: 0; bottom: 0; width: 70%; height: 70%;
  background: var(--lime); border-radius: var(--radius);
}
.page-hero-photo img {
  position: relative; width: 100%; max-width: 30rem; margin-left: auto;
  aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius);
}
/* “Whole photo” (staff choice): the photo's own shape, nothing trimmed. */
.page-hero-photo.is-whole img { aspect-ratio: auto; height: auto; }
@media (min-width: 52rem) {
  .page-hero-grid { grid-template-columns: 7fr 5fr; gap: 4rem; }
  .page-hero-grid.no-photo { grid-template-columns: 1fr; }
}

.ministry-sections > .section, .content-sections > .section { padding-block: clamp(2.75rem, 7vw, 5rem); }
.ministry-sections > .section + .section:not(.section-next-step):not(.section-cta),
.content-sections > .section + .section:not(.section-cta):not(.section-service) { border-top: 1px solid var(--line); }
.ministry .narrow, .content-page .narrow { max-width: 46rem; margin-inline: auto; }
.ministry .wrap.narrow, .content-page .wrap.narrow { width: min(100% - 2.5rem, 46rem); }
.ministry .prose, .content-page .prose { font-size: 1.125rem; }
.ministry .prose > :last-child, .content-page .prose > :last-child { margin-bottom: 0; }
.ministry .prose ul, .ministry .prose ol, .content-page .prose ul, .content-page .prose ol { padding-left: 1.25rem; }

/* Key facts: a scannable row of label/value pairs on the surface tone. */
.ministry-sections > .section-facts { background: var(--surface); }
.section-facts h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 1.75rem; }
.fact-list { display: grid; gap: 1.25rem 2.5rem; margin: 0; }
.fact-list > div { border-top: 4px solid var(--cyan); padding-top: 0.9rem; }
.fact-list dt { font-size: 0.8rem; font-weight: 800; color: var(--muted); }
.fact-list dd { margin: 0.25rem 0 0; font-size: 1.1rem; font-weight: 700; line-height: 1.4; }
@media (min-width: 40rem) { .fact-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .fact-list { grid-template-columns: repeat(3, 1fr); } }

/* Photo and text (shared block markup). */
.photo-text-grid { display: grid; gap: 2rem; align-items: center; }
.section-photo-text .photo img { width: 100%; height: auto; border-radius: var(--radius); }
.photo-copy h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
@media (min-width: 52rem) {
  .photo-text-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .image-right .photo { order: 2; }
}

/* Leadership: each group is one centred row of people (portraits with name and
   role, or names and roles alone) that wraps on narrow screens. */
.section-leadership { text-align: center; }
.section-leadership .eyebrow { justify-content: center; }
.section-leadership h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.leader-group + .leader-group { margin-top: clamp(2rem, 5vw, 3rem); }
.leader-group-title { margin: 0 0 1.25rem; font-size: clamp(1.25rem, 3vw, 1.6rem); }
.leader-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 2rem; margin: 0; padding: 0; list-style: none; }
.leader { flex: 0 1 10rem; min-width: 0; overflow-wrap: break-word; }
.leader-list.with-photos { gap: 2rem clamp(1rem, 3vw, 2.5rem); }
.leader-list.with-photos .leader { flex-basis: 15rem; }
.leader-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 0.9rem; border-radius: var(--radius); background: var(--surface); }
.leader-name { margin: 0; font-size: 1.15rem; font-weight: 800; line-height: 1.3; }
.leader-role { margin: 0.2rem 0 0; color: var(--muted); }
@media (max-width: 40rem) {
  .leader-list.with-photos .leader { flex-basis: calc(50% - 0.75rem); }
  .leader-list.with-photos { gap: 1.75rem 1.5rem; }
  .leader { flex-basis: calc(50% - 1rem); }
}

/* Call to action (shared block, links a prototype page) and next step (current website). */
.ministry-sections > .section-cta { background: var(--surface); text-align: left; }
.section-cta h2, .section-next-step h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.section-cta .button { background: var(--cyan); color: var(--on-accent); }
.ministry-sections > .section-next-step { background: var(--lime); color: var(--on-accent); --focus: var(--black); }
.section-next-step p { margin: 0; max-width: 36rem; font-size: 1.1rem; }
.section-next-step .button-primary { background: var(--black); color: var(--white); }
.next-step-grid { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 52rem) { .next-step-grid { grid-template-columns: 1fr auto; gap: 3rem; } }

/* Content pages (Wagtail ContentPage): Decide/Learn pages staff build from the
   shared sections. A plain head (title, intro) whose size follows the advanced
   presentation variant, then the sections. Scoped to .content-page; the
   section rules above are shared with ministry pages. ---------------------- */

.content-head { padding-block: clamp(2rem, 5vw, 4rem) clamp(1.75rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.content-head h1 { font-size: clamp(2.25rem, 6vw, 4rem); max-width: 20ch; overflow-wrap: break-word; }
.content-head .lede { max-width: 40rem; margin: 0; font-size: clamp(1.1rem, 2vw, 1.3rem); }
.content-head .crumbs { overflow-wrap: anywhere; }
.on-this-page { margin-top: 1.5rem; }
.on-this-page-title { margin: 0 0 0.4rem; color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.on-this-page ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.on-this-page a { font-weight: 600; }
.variant-feature .on-this-page-title, .variant-feature .on-this-page a { color: var(--on-accent); }
.section[id] { scroll-margin-top: 1rem; }
.variant-compact .content-head { padding-block: 1.5rem 1.25rem; }
.variant-compact .content-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); }
.variant-feature .content-head { background: var(--cyan); color: var(--on-accent); border-bottom: 0; --focus: var(--black); }
.variant-feature .content-head h1 { font-size: clamp(2.5rem, 8vw, 5rem); }
.variant-feature .content-head .crumbs, .variant-feature .content-head .crumbs a { color: var(--on-accent); }
.content-page h2 { overflow-wrap: break-word; }
.content-page .prose h3 { margin-top: 1.5em; }
.content-page .prose a { font-weight: 600; }

/* Call to action: “Warm accent” is a cyan band, “Calm neutral” the surface tone. */
.content-sections > .section-cta.tone-accent { background: var(--cyan); color: var(--on-accent); --focus: var(--black); }
.content-sections > .section-cta.tone-accent .button { background: var(--black); color: var(--white); }
.content-sections > .section-cta.tone-calm { background: var(--surface); }
.content-sections > .section-cta p { max-width: 36rem; font-size: 1.1rem; }

/* Call to action alignment (staff choice): heading, text and button move together
   inside the section's own width; the band and page layout stay as they are. */
.section-cta .cta-inner > * { max-width: 100%; overflow-wrap: break-word; }
.section-cta.cta-align-center .cta-inner { text-align: center; justify-content: center; }
.section-cta.cta-align-right .cta-inner { text-align: right; justify-content: flex-end; }
.section-cta.cta-align-center .cta-inner p { margin-inline: auto; }
.section-cta.cta-align-right .cta-inner p { margin-inline: auto 0; }
/* In the side-by-side (flex) calls to action, auto margins would beat justify-content. */
.page-plan-a-visit .section-cta.tone-calm .cta-inner p, .page-growth-track .section-cta.tone-calm .cta-inner p { margin-inline: 0; }

/* Service information (shared record). */
.content-sections > .section-service { background: var(--surface); }
.section-service h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 1.5rem; }
.content-page .service-card { border-top: 4px solid var(--cyan); padding-top: 1rem; }
.content-page .service-name { margin: 0 0 1rem; font-size: 1.25rem; font-weight: 800; }
.content-page .service-card dl { display: grid; gap: 1rem 2.5rem; margin: 0; }
.content-page .service-card dt { font-size: 0.8rem; font-weight: 800; color: var(--muted); }
.content-page .service-card dd { margin: 0.25rem 0 0; font-size: 1.1rem; font-weight: 700; line-height: 1.4; }
.content-page .service-notes { margin: 1.25rem 0 0; color: var(--muted); }
@media (min-width: 40rem) { .content-page .service-card dl { grid-template-columns: repeat(2, 1fr); } }

/* Plan a Visit and About Reality: the quiet homepage direction on two visitor
   pages. Hooked on `page-<slug>` (content_page.html); a renamed slug falls back
   to the generic content page above. Presentation only: same blocks, same
   order, same words. No hairlines; edges align with the page title; long text
   sections put the heading beside the text on wide screens. ---------------- */

.page-plan-a-visit .content-head, .page-about-us .content-head { border-bottom: 0; padding-bottom: clamp(1.25rem, 3vw, 2rem); }
.page-plan-a-visit .content-sections > .section, .page-about-us .content-sections > .section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-plan-a-visit .content-sections > .section + .section:not(.section-cta):not(.section-service),
.page-about-us .content-sections > .section + .section:not(.section-cta):not(.section-service) { border-top: 0; }
/* Leadership follows the same left edge; the rows stay horizontal. */
.page-about-us .section-leadership { text-align: left; }
.page-about-us .section-leadership .eyebrow { justify-content: flex-start; }
.page-about-us .leader-list { justify-content: flex-start; }
.page-plan-a-visit .wrap.narrow, .page-about-us .wrap.narrow { width: min(100% - 2.5rem, var(--wrap)); max-width: var(--wrap); }
.page-plan-a-visit .prose, .page-about-us .prose { max-width: 42rem; }

/* Visit opening: the service facts as the homepage's lime band. */
.page-plan-a-visit .content-sections > .section-service { background: var(--lime); color: var(--on-accent); --focus: var(--black); }
.page-plan-a-visit .section-service a { color: var(--on-accent); text-decoration-color: var(--on-accent); }
.page-plan-a-visit .section-service .ext { color: inherit; }
.page-plan-a-visit .section-service h2 { margin: 0 0 1.25rem; }
.page-plan-a-visit .service-card { border-top: 0; padding-top: 0; }
.page-plan-a-visit .service-card dt { color: inherit; font-size: 0.95rem; font-weight: 600; }
.page-plan-a-visit .service-card dd { font-size: 1.25rem; line-height: 1.35; }
/* When/Where: small dark labels on the lime band so the values scan apart (labels only; values stay plain). */
.page-plan-a-visit .section-service .service-card dt { width: fit-content; padding: 0.1rem 0.5rem; border-radius: 4px; background: var(--black); color: var(--white); font-size: 0.85rem; font-weight: 700; line-height: 1.4; letter-spacing: 0.02em; }
.page-plan-a-visit .section-service .service-card dd { margin-top: 0.4rem; }
@media (min-width: 52rem) {
  .page-plan-a-visit .section-service .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 4rem; align-items: start; }
  .page-plan-a-visit .section-service .wrap > :not(h2) { grid-column: 2; }
  .page-plan-a-visit .section-service h2 { grid-row: 1 / span 3; margin: 0; }
}
/* “For Families” continues the RealKidz section instead of a separate band. */
.page-plan-a-visit .content-sections > .section-cta.tone-calm { background: none; padding-top: 0; }
.page-plan-a-visit .section-cta.tone-calm .cta-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.page-plan-a-visit .section-cta.tone-calm h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 1.6rem); }

/* About opening: the welcome and John 6:37 read as the page's lede. */
.page-about-us .content-sections > .section-text:first-child .prose { font-size: clamp(1.2rem, 2.2vw, 1.4rem); line-height: 1.55; }

/* Story: dates as a column beside each step. */
.page-about-us #story .prose > h3 { color: var(--muted); }
@media (min-width: 40rem) {
  .page-about-us #story .prose { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 1.5rem 1.5rem; }
  .page-about-us #story .prose > h3 { margin: 0; padding-top: 0.15em; font-size: 1.125rem; }
  .page-about-us #story .prose > p { margin: 0; }
}

/* Beliefs: the introduction leads; more air between the twelve statements. */
.page-about-us .section-text[id] .prose > p:first-child { font-size: 1.25rem; }
.page-about-us #beliefs .prose > p + p { margin-top: 1.5em; }

/* Values: six short pairs in two columns, read down each column. */
@media (min-width: 40rem) {
  .page-about-us #values .prose { columns: 2; column-gap: 3rem; }
  .page-about-us #values .prose > h3 { break-after: avoid; }
  .page-about-us #values .prose > p { break-inside: avoid; }
  .page-about-us #values .prose > :first-child { margin-top: 0; }
}

/* Heading beside text (About story/beliefs/values, Visit questions). */
@media (min-width: 64rem) {
  .page-about-us .section-text[id] .wrap, .page-plan-a-visit .section-text[id] .wrap {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; gap: 0 4rem;
  }
  .page-about-us .section-text[id] .eyebrow, .page-plan-a-visit .section-text[id] .eyebrow { grid-column: 1; grid-row: 1; }
  .page-about-us .section-text[id] h2, .page-plan-a-visit .section-text[id] h2 {
    grid-column: 1; grid-row: 2; align-self: start; position: sticky; top: 1.5rem; margin: 0;
  }
  .page-about-us .section-text[id] .prose, .page-plan-a-visit .section-text[id] .prose { grid-column: 2; grid-row: 1 / span 2; }
  .page-about-us .section-text[id] .prose > :first-child, .page-plan-a-visit .section-text[id] .prose > :first-child { margin-top: 0; }
}

/* First Time Guest: the body starts on the page-heading edge at reading width
   and the two next steps read as a short list of links. Same words, links and
   order; header (and its staff preset) untouched. */
.page-first-time-guest .wrap.narrow { width: min(100% - 2.5rem, var(--wrap)); max-width: var(--wrap); }
.page-first-time-guest .prose { max-width: 42rem; }
.page-first-time-guest .prose ul { list-style: none; padding-left: 0; margin: 0; display: grid; gap: 0.75rem; }
.page-first-time-guest .prose li { margin: 0; }
.page-first-time-guest .prose li a {
  display: flex; align-items: center; min-height: 3rem; padding: 0.75rem 1rem;
  border-left: 4px solid var(--cyan); background: var(--surface); font-size: 1.25rem; overflow-wrap: anywhere;
}

/* Ministries overview and RealKidz: the same quiet direction as Plan a Visit
   and About. Hooked on `page-<slug>` (content_page.html, ministry_page.html);
   Real Youth and the other ministry pages are untouched, and a renamed slug
   falls back to the shared layout. Presentation only: same blocks, order,
   words, links and photo crops. No hairlines or decorative blocks. -------- */

.page-ministries .content-head { border-bottom: 0; padding-bottom: clamp(1rem, 2.5vw, 1.5rem); }
.page-ministries .content-sections > .section { padding-block: clamp(2rem, 5vw, 3.5rem); }
.page-ministries .content-sections > .section + .section:not(.section-cta):not(.section-service) { border-top: 0; }
.page-ministries .photo-copy { max-width: 32rem; }
.page-ministries .photo-copy h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); }
@media (min-width: 52rem) {
  .page-ministries .photo-text-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2.5rem, 5vw, 4.5rem); }
  .page-ministries .image-right .photo-text-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}

/* RealKidz hero: the photo on its own, without the lime offset block. */
.page-realkidz .page-hero { padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.page-realkidz .page-hero-photo { padding: 0; }
.page-realkidz .page-hero-photo::before { content: none; }
.page-realkidz .ministry-sections > .section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-realkidz .ministry-sections > .section + .section:not(.section-next-step):not(.section-cta) { border-top: 0; }
/* Family facts: plain label/value pairs, no grey band or rules. */
.page-realkidz .ministry-sections > .section-facts { background: none; padding-top: clamp(1rem, 3vw, 1.5rem); }
.page-realkidz .section-facts h2 { margin-bottom: 1.25rem; }
.page-realkidz .fact-list { gap: 1.5rem 3rem; }
.page-realkidz .fact-list > div { border-top: 0; padding-top: 0; }
.page-realkidz .fact-list dt { font-size: 0.95rem; font-weight: 600; }
.page-realkidz .fact-list dd { font-size: 1.2rem; font-weight: 600; line-height: 1.4; max-width: 30rem; }
.page-realkidz .wrap.narrow { width: min(100% - 2.5rem, var(--wrap)); max-width: var(--wrap); }
.page-realkidz .prose { max-width: 42rem; }
@media (min-width: 64rem) {
  .page-realkidz .section-facts .wrap, .page-realkidz .section-text .wrap {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 4rem; align-items: start;
  }
  .page-realkidz .section-facts h2, .page-realkidz .section-text h2 { grid-column: 1; margin: 0; }
  .page-realkidz .fact-list, .page-realkidz .section-text .prose { grid-column: 2; grid-row: 1 / span 2; }
  .page-realkidz .fact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Real Youth and Life Groups: the RealKidz direction on two more ministry
   pages. Hooked on `page-<slug>` (ministry_page.html); a renamed slug falls
   back to the shared ministry layout. Presentation only: same blocks, order,
   words, groups, links and photos. No lime offset block, grey bands or cyan
   rules; Life Groups' five groups read as one quiet list. ---------------- */

.page-real-youth .page-hero, .page-life-groups .page-hero { padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.page-real-youth .page-hero-photo, .page-life-groups .page-hero-photo { padding: 0; }
.page-real-youth .page-hero-photo::before, .page-life-groups .page-hero-photo::before { content: none; }
.page-real-youth .ministry-sections > .section, .page-life-groups .ministry-sections > .section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-real-youth .ministry-sections > .section + .section:not(.section-next-step):not(.section-cta),
.page-life-groups .ministry-sections > .section + .section:not(.section-next-step):not(.section-cta) { border-top: 0; }
.page-real-youth .ministry-sections > .section-facts, .page-life-groups .ministry-sections > .section-facts { background: none; }
.page-real-youth .fact-list > div, .page-life-groups .fact-list > div { border-top: 0; padding-top: 0; }
.page-real-youth .fact-list dt, .page-life-groups .fact-list dt { font-size: 0.95rem; font-weight: 600; }
.page-real-youth .fact-list dd, .page-life-groups .fact-list dd { font-weight: 600; line-height: 1.4; max-width: 30rem; }
.page-real-youth .fact-list dd { font-size: 1.2rem; }
.page-real-youth .ministry-sections > .section-facts { padding-top: clamp(1rem, 3vw, 1.5rem); }
.page-real-youth .section-facts h2 { margin-bottom: 1.25rem; }
.page-real-youth .fact-list { gap: 1.5rem 3rem; }
/* Life Groups: the note and the sign-up line up with the title at a readable width. */
.page-real-youth .wrap.narrow, .page-life-groups .wrap.narrow { width: min(100% - 2.5rem, var(--wrap)); max-width: var(--wrap); }
.page-life-groups .prose { max-width: 42rem; }
.page-life-groups .ministry-sections > .section-text:first-child { padding-top: clamp(1rem, 3vw, 1.5rem); }
/* Five groups: one list, held together by spacing; each day/time leads its facts. */
.page-life-groups .ministry-sections > .section-facts { padding-block: clamp(1.25rem, 3vw, 1.75rem); }
.page-life-groups .ministry-sections > .section-facts + .section-text { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.page-life-groups .section-facts h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin-bottom: 0.75rem; }
.page-life-groups .fact-list { gap: 0.75rem 2.5rem; }
.page-life-groups .fact-list dd { font-size: 1.125rem; margin-top: 0.1rem; }
@media (min-width: 64rem) {
  .page-real-youth .section-facts .wrap,
  .page-life-groups .section-facts .wrap, .page-life-groups .section-text:has(h2) .wrap {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 4rem; align-items: start;
  }
  .page-real-youth .section-facts h2, .page-life-groups .section-facts h2, .page-life-groups .section-text h2 { grid-column: 1; margin: 0; }
  .page-real-youth .fact-list, .page-life-groups .fact-list, .page-life-groups .section-text:has(h2) .prose { grid-column: 2; grid-row: 1 / span 2; }
  .page-real-youth .fact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-life-groups .fact-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Serve on a Team and Helping Hands Sunday: the same direction on two more
   ministry pages, hooked on `page-<slug>`; a renamed slug falls back to the
   shared ministry layout. Presentation only: same blocks, order, words, teams,
   facts, links and photos. No lime offset block, grey facts band or cyan
   rules; Helping Hands' two closing links share one band. ---------------- */

.page-serve-on-a-team .page-hero, .page-outreach-helping-hands .page-hero { padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.page-serve-on-a-team .page-hero-photo, .page-outreach-helping-hands .page-hero-photo { padding: 0; }
.page-serve-on-a-team .page-hero-photo::before, .page-outreach-helping-hands .page-hero-photo::before { content: none; }
.page-serve-on-a-team .ministry-sections > .section, .page-outreach-helping-hands .ministry-sections > .section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-serve-on-a-team .ministry-sections > .section + .section:not(.section-next-step):not(.section-cta),
.page-outreach-helping-hands .ministry-sections > .section + .section:not(.section-next-step):not(.section-cta) { border-top: 0; }
.page-serve-on-a-team .wrap.narrow, .page-outreach-helping-hands .wrap.narrow { width: min(100% - 2.5rem, var(--wrap)); max-width: var(--wrap); }
.page-serve-on-a-team .prose, .page-outreach-helping-hands .prose { max-width: 42rem; }
.page-serve-on-a-team .ministry-sections > .section-text:first-child,
.page-outreach-helping-hands .ministry-sections > .section-text:first-child { padding-top: clamp(1rem, 3vw, 1.5rem); }
/* Serve: the commitment leads; each team is its own spaced line. */
.page-serve-on-a-team .section-text .prose > p:first-child { font-size: 1.25rem; font-weight: 600; }
.page-serve-on-a-team .section-text .prose li + li { margin-top: 0.75rem; }
/* Helping Hands: the body note, then the five facts without band or rules. */
.page-outreach-helping-hands .section-text .prose { font-size: 1.2rem; line-height: 1.55; }
.page-outreach-helping-hands .ministry-sections > .section-facts { background: none; padding-top: 0; }
.page-outreach-helping-hands .section-facts h2 { margin-bottom: 1.25rem; }
.page-outreach-helping-hands .fact-list { gap: 1.5rem 3rem; }
.page-outreach-helping-hands .fact-list > div { border-top: 0; padding-top: 0; }
.page-outreach-helping-hands .fact-list dt { font-size: 0.95rem; font-weight: 600; }
.page-outreach-helping-hands .fact-list dd { font-size: 1.2rem; font-weight: 600; line-height: 1.4; max-width: 30rem; }
.page-outreach-helping-hands .ministry-sections > .section-cta + .section-cta { padding-top: 0; }
@media (min-width: 64rem) {
  .page-serve-on-a-team .section-text:has(h2) .wrap, .page-outreach-helping-hands .section-facts .wrap {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 4rem; align-items: start;
  }
  .page-serve-on-a-team .section-text h2, .page-outreach-helping-hands .section-facts h2 { grid-column: 1; margin: 0; }
  .page-serve-on-a-team .section-text:has(h2) .prose, .page-outreach-helping-hands .fact-list { grid-column: 2; grid-row: 1 / span 2; }
  .page-outreach-helping-hands .fact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Growth Track and Contact: the Plan a Visit direction on two more visitor
   pages, hooked on `page-<slug>` (content_page.html); a renamed slug falls back
   to the generic content page. Presentation only: same blocks, order, words,
   steps, links and photos (shown whole). No hairlines or cyan rule; edges align
   with the title. Contact: phone and email read as one group (each photo
   on its saved image_position side, links larger), then Location beside its facts. ------------------ */

.page-growth-track .content-head, .page-contact-us .content-head { border-bottom: 0; padding-bottom: clamp(1.25rem, 3vw, 2rem); }
.page-growth-track .content-sections > .section, .page-contact-us .content-sections > .section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-growth-track .content-sections > .section + .section:not(.section-cta):not(.section-service),
.page-contact-us .content-sections > .section + .section:not(.section-cta):not(.section-service) { border-top: 0; }
.page-growth-track .wrap.narrow, .page-contact-us .wrap.narrow { width: min(100% - 2.5rem, var(--wrap)); max-width: var(--wrap); }
.page-growth-track .content-sections > .section:first-child, .page-contact-us .content-sections > .section:first-child { padding-top: clamp(1rem, 3vw, 1.5rem); }
/* Growth Track: the purpose leads; the three steps are spaced, each label above its line. */
.page-growth-track .photo-copy .prose { max-width: 36rem; }
.page-growth-track .photo-copy .prose > h3 { margin: 1.75rem 0 0.35rem; font-size: 1.25rem; }
.page-growth-track .photo-copy .prose > h3:first-child { margin-top: 1.5rem; }
.page-growth-track .photo-copy .prose > p { margin: 0; font-size: 1.1rem; }
/* The questions line and its button on one row, without a separate grey band. */
.page-growth-track .content-sections > .section-cta.tone-calm { background: none; padding-top: 0; }
.page-growth-track .section-cta.tone-calm .cta-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.page-growth-track .section-cta.tone-calm h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 1.6rem); }
/* Contact: the two ways to reach the church sit together. */
.page-contact-us .content-sections > .section-photo-text + .section-photo-text { padding-top: clamp(1rem, 3vw, 1.5rem); }
.page-contact-us .photo-copy h2 { font-size: clamp(1.35rem, 3vw, 1.6rem); margin-bottom: 0.5rem; }
.page-contact-us .photo-copy .prose { font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-weight: 700; overflow-wrap: anywhere; }
.page-contact-us .photo-copy .prose p { margin: 0; }
@media (min-width: 52rem) {
  .page-contact-us .photo-text-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; }
  .page-contact-us .image-right .photo-text-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
/* Location: no grey band or cyan rule; heading beside the shared facts on wide screens. */
.page-contact-us .content-sections > .section-service { background: none; }
.page-contact-us .section-service h2 { margin: 0 0 1.25rem; }
.page-contact-us .service-card { border-top: 0; padding-top: 0; }
.page-contact-us .service-card dt { font-size: 0.95rem; font-weight: 600; }
.page-contact-us .service-card dd { font-size: 1.2rem; line-height: 1.4; }
@media (min-width: 52rem) {
  .page-contact-us .section-service .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 4rem; align-items: start; }
  .page-contact-us .section-service .wrap > :not(h2) { grid-column: 2; }
  .page-contact-us .section-service h2 { grid-row: 1 / span 3; margin: 0; }
}

/* Messages archive (Explore) and message pages. Scoped to .sermons. --------- */

.sermons h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); }
.explore-head { padding-block: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2rem); }
.explore-head .lede { max-width: 40rem; font-size: clamp(1.05rem, 2vw, 1.25rem); margin: 0; }
.explore-head h1 { margin-bottom: 0.3em; }
.crumbs [aria-current="page"] { font-weight: 600; }

.explore-filters { background: var(--surface); border-block: 1px solid var(--line); padding-block: 1.25rem; }
.sermon-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem 1.25rem; margin: 0; }
.sermon-filters .field { display: flex; flex-direction: column; gap: 0.3rem; flex: 1 1 12rem; min-width: 0; }
.sermon-filters .field-search { flex: 3 1 16rem; }
.sermon-filters label { font-size: 0.8rem; font-weight: 800; }
.sermon-filters input, .sermon-filters select {
  width: 100%; height: 3rem; padding: 0.45rem 0.9rem;
  border: 2px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink); font: inherit;
}
.sermon-filters input:hover, .sermon-filters select:hover { border-color: var(--muted); }
.sermon-filters input:focus-visible, .sermon-filters select:focus-visible { border-color: var(--ink); outline-offset: 2px; }
.filter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.sermon-filters .button { cursor: pointer; font: inherit; font-weight: 700; }

.explore-results { padding-block: 1.5rem clamp(3rem, 7vw, 5rem); }
.sermon-count { margin: 0 0 1.5rem; color: var(--muted); font-weight: 600; }
.sermon-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem 1.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.sermon-item { display: grid; gap: 0.85rem; align-content: start; min-width: 0; }
.sermon-thumb {
  display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line);
}
.sermon-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sermon-title { font-size: 1.15rem; line-height: 1.3; margin: 0 0 0.35rem; overflow-wrap: anywhere; }
.sermon-title a { text-decoration: none; }
.sermon-title a:hover, .sermon-title a:focus-visible { text-decoration: underline; }
.sermon-date, .sermon-series { margin: 0; color: var(--muted); font-size: 0.92rem; }
.sermon-date-label { font-weight: 700; }
.sermon-empty { padding: 2rem; border: 1px dashed var(--line); border-radius: var(--radius); }
.sermon-empty p { margin: 0; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.5rem; margin-top: 3rem; }
.pager span { color: var(--muted); font-weight: 600; }
.sermon-coverage { margin: 3rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); max-width: 52rem; color: var(--muted); font-size: 0.9rem; }

.sermon-head { padding-block: clamp(1.5rem, 4vw, 2.75rem) 1.5rem; }
.sermon-head .wrap, .sermon-detail { max-width: 64rem; }
.sermon-head h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: 0.4em; overflow-wrap: anywhere; }
.back-link { font-weight: 700; }
.sermon-head .crumb { margin-bottom: 1.25rem; }
.sermon-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.sermon-meta p { font-size: 1rem; }
.sermon-detail { padding-bottom: clamp(3rem, 7vw, 5rem); }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--black); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.watch-note { margin: 1rem 0 0; color: var(--muted); font-size: 0.95rem; }
.watch-note a { font-weight: 700; }

/* Sermon archive and detail refinement: no grey filter band or hairlines,
   three larger thumbnails per row on wide screens, edges in line with the
   title, and a shorter detail title so the video sits higher. Presentation
   only, scoped to .sermons (the homepage's latest-sermon cards are separate). */

.sermons .explore-head { padding-block: clamp(1.75rem, 4vw, 3rem) 1.5rem; }
.sermons .explore-filters { background: none; border: 0; padding-block: 0; }
.sermons .sermon-filters { max-width: 48rem; }
.sermons .sermon-filters label { font-size: 0.9rem; }
.sermons .explore-results { padding-block: 2.5rem clamp(3rem, 7vw, 5rem); }
.sermons .sermon-count { margin-bottom: 1.25rem; }
.sermons .sermon-grid { gap: 2.75rem 2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.sermons .sermon-item { gap: 1rem; }
.sermons .sermon-thumb { border: 0; }
.sermons .sermon-title { font-size: 1.2rem; }
.sermons .sermon-date, .sermons .sermon-series { font-size: 0.95rem; }
.sermons .pager { justify-content: flex-start; margin-top: 3.5rem; }
.sermons .sermon-coverage { border-top: 0; padding-top: 0; margin-top: 3.5rem; max-width: 44rem; }

.sermons .sermon-head { padding-block: clamp(1.5rem, 4vw, 2.5rem) 1.5rem; }
.sermons .sermon-head h1 { font-size: clamp(1.85rem, 4vw, 2.75rem); line-height: 1.15; }
.sermons .sermon-meta p { font-size: 1.05rem; }
.sermons .watch-note { font-size: 1rem; }

/* Events: list (Explore), month view and event / date pages. Scoped to .events.
   The month table is a seven-column grid from 52rem; narrower, the same table
   is restyled as a list of the days that have events (no tiny cells). ------- */

.events h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); }
.events-bar { padding-block: 1rem; }
.events-views { display: inline-flex; padding: 0.25rem; gap: 0.25rem; border: 2px solid var(--line); border-radius: 999px; background: var(--bg); }
.events-views a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.4rem 1.4rem;
  border-radius: 999px; color: var(--ink); font-weight: 700; text-decoration: none;
}
.events-views a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.events-views a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.events-window { margin: 0; color: var(--muted); font-size: 0.95rem; }
.events-empty-state { margin-top: 1.5rem; padding: 2rem; border: 1px dashed var(--line); border-radius: var(--radius); }
.events-empty-state p { margin: 0; }

.events-list { padding-block: 1.5rem clamp(3rem, 7vw, 5rem); }
.event-day { margin-top: 2.25rem; }
.event-day-heading { font-size: clamp(1.35rem, 3vw, 1.75rem); margin: 0 0 0.25rem; padding-bottom: 0.6rem; border-bottom: 4px solid var(--cyan); }
.event-list { list-style: none; margin: 0; padding: 0; }
.event-item {
  display: grid; gap: 0.35rem 1.25rem; padding-block: 1.25rem; border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(0, 1fr); grid-template-areas: "when" "copy";
}
.event-item.has-image { grid-template-columns: minmax(0, 1fr) 6rem; grid-template-areas: "when image" "copy image"; }
.event-when { grid-area: when; margin: 0; font-weight: 800; font-size: 1.05rem; }
.event-copy { grid-area: copy; min-width: 0; }
.event-copy > * { margin: 0 0 0.3rem; }
.event-copy > :last-child { margin-bottom: 0; }
.event-image { grid-area: image; }
.event-image img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--surface); }
.event-title { font-size: 1.25rem; line-height: 1.3; overflow-wrap: anywhere; }
.event-title a { text-decoration: none; }
.event-title a:hover, .event-title a:focus-visible { text-decoration: underline; }
.event-where { font-weight: 600; }
.event-summary { max-width: 42rem; }
.event-note { color: var(--muted); font-style: italic; }
.event-status {
  display: inline-block; padding: 0.1rem 0.65rem; border-radius: 999px; border: 2px solid var(--ink);
  font-size: 0.85rem; font-weight: 800; line-height: 1.5;
}
.status-cancelled.event-status { background: var(--ink); color: var(--bg); }
.status-moved.event-status { background: var(--bg); color: var(--ink); }
.event-item.is-cancelled .event-time, .event-item.is-cancelled .event-title a,
.month-grid li.is-cancelled a, .event-head-when.is-cancelled { text-decoration: line-through; text-decoration-thickness: 2px; }
@media (min-width: 52rem) {
  .event-item { grid-template-columns: 11rem minmax(0, 1fr); grid-template-areas: "when copy"; padding-block: 1.5rem; }
  .event-item.has-image { grid-template-columns: 11rem minmax(0, 1fr) 12rem; grid-template-areas: "when copy image"; }
  .event-image img { aspect-ratio: 3 / 2; }
}

.events-month { padding-block: 1.5rem clamp(3rem, 7vw, 5rem); }
.month-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.month-nav h2 { margin: 0; font-size: clamp(1.4rem, 4vw, 2.25rem); text-align: center; white-space: nowrap; }
.month-nav .button { padding-inline: 1rem; justify-self: start; }
.month-nav [rel="next"] { justify-self: end; }
.month-grid { width: 100%; border-collapse: collapse; table-layout: fixed; margin-bottom: 1.5rem; }
.month-grid th { padding: 0.5rem; text-align: left; color: var(--muted); font-size: 0.8rem; font-weight: 800; }
.month-grid abbr { text-decoration: none; }
.month-grid td { vertical-align: top; height: 7.5rem; padding: 0.5rem; border: 1px solid var(--line); }
.month-grid td.outside { background: var(--surface); }
.day-number { font-weight: 800; }
.month-grid .day-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.month-grid ul { list-style: none; margin: 0.35rem 0 0; padding: 0; font-size: 0.86rem; line-height: 1.35; }
.month-grid li { margin-bottom: 0.55rem; overflow-wrap: anywhere; }
.month-grid li a { text-decoration: none; font-weight: 600; }
.month-grid li a:hover, .month-grid li a:focus-visible { text-decoration: underline; }
.month-grid .event-time { display: block; color: var(--muted); font-weight: 700; font-size: 0.8rem; }
.month-grid .event-status { margin-top: 0.2rem; padding: 0 0.45rem; border-radius: 6px; font-size: 0.75rem; }
@media (max-width: 51.99rem) {
  /* Phones: the month name gets its own row; previous / next share the row below. */
  .month-nav { grid-template-columns: 1fr 1fr; grid-template-areas: "title title" "prev next"; }
  .month-nav h2 { grid-area: title; }
  .month-nav [rel="prev"], .month-nav > span:first-child { grid-area: prev; }
  .month-nav [rel="next"], .month-nav > span:last-child { grid-area: next; }
  .month-nav .button { padding-inline: 0.8rem; min-height: 2.75rem; }
  .month-grid thead { display: none; }
  .month-grid, .month-grid tbody, .month-grid tr, .month-grid td { display: block; width: 100%; }
  .month-grid td { height: auto; padding: 1rem 0; border-width: 0 0 1px; }
  .month-grid td.empty, .month-grid td.outside { display: none; }
  .month-grid .day-name { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .day-number { display: block; font-size: 1.1rem; }
  .month-grid ul { font-size: 1.05rem; }
  .month-grid li { margin: 0.6rem 0 0; }
  .month-grid li a { display: block; }
  .month-grid .event-time { font-size: 0.95rem; }
  .month-grid .event-status { font-size: 0.85rem; }
}

.event-head { padding-block: clamp(1.5rem, 4vw, 2.75rem) 1.25rem; }
.event-head .wrap, .event-detail { max-width: 52rem; }
.event-head h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: 0.4em; overflow-wrap: anywhere; }
.event-head .crumb { margin-bottom: 1.25rem; }
.event-head .lede { max-width: 40rem; font-size: clamp(1.05rem, 2vw, 1.25rem); margin: 0; }
.event-head-when { margin: 0; font-size: clamp(1.1rem, 2.4vw, 1.35rem); font-weight: 700; }
.event-detail { padding-bottom: clamp(3rem, 7vw, 5rem); }
.event-banner { margin: 0 0 1.75rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--surface); border: 2px solid var(--ink); font-size: 1.05rem; }
.event-banner.status-moved { border-color: var(--line); border-left: 8px solid var(--lime); }
.event-facts { display: grid; gap: 1.25rem 2.5rem; margin: 0 0 2rem; }
.event-facts > div { border-top: 4px solid var(--cyan); padding-top: 0.8rem; }
.event-facts dt { font-size: 0.8rem; font-weight: 800; color: var(--muted); }
.event-facts dd { margin: 0.25rem 0 0; font-size: 1.1rem; font-weight: 700; line-height: 1.4; }
.event-facts .muted { display: block; color: var(--muted); font-size: 0.9rem; font-weight: 600; }
@media (min-width: 40rem) { .event-facts { grid-template-columns: repeat(3, 1fr); } }
.event-photo { margin: 0 0 2rem; }
.event-photo img { width: 100%; border-radius: var(--radius); }
.event-summary-lead { font-size: 1.15rem; }
.event-detail .prose { font-size: 1.0625rem; }
.event-more { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.event-dates-heading { font-size: clamp(1.5rem, 4vw, 2rem); margin: 2.5rem 0 0.25rem; }

/* Events refinement: the sermon slice's quiet direction on the list, month,
   event and date pages. No grey view band, coloured rules, hairlines or dashed
   box; spacing carries the structure and small text grows a little. The month
   table keeps its cell borders on wide screens so it still reads as a
   calendar. Status labels, strike-through and notices are unchanged.
   Presentation only, scoped to .events. */

.events .explore-head { padding-block: clamp(1.75rem, 4vw, 3rem) 1.5rem; }
.events .explore-filters { background: none; border: 0; padding-block: 0; }
.events .events-window { font-size: 1rem; }
.events .events-empty-state { margin-top: 1.25rem; padding: 0; border: 0; border-radius: 0; font-size: 1.15rem; }

.events .events-list { padding-block: 2rem clamp(3rem, 7vw, 5rem); }
.events .event-day { margin-top: 2.75rem; }
.events .event-day-heading { margin-bottom: 0.5rem; padding-bottom: 0; border-bottom: 0; }
.events .event-item { padding-block: 1rem; border-bottom: 0; }

.events .events-month { padding-top: 2rem; }
@media (min-width: 52rem) {
  .events .event-item { padding-block: 1.25rem; }
  .events .month-grid th { font-size: 0.9rem; }
  .events .month-grid td.outside { background: none; }
  .events .month-grid ul { font-size: 0.9rem; }
  .events .month-grid .event-time, .events .month-grid .event-status { font-size: 0.85rem; }
}
@media (max-width: 51.99rem) {
  .events .month-grid td { padding-block: 0.85rem; border-width: 0; }
}

.events .event-head h1 { font-size: clamp(1.85rem, 4vw, 2.75rem); line-height: 1.15; }
.events .event-facts > div { padding-top: 0; border-top: 0; }
.events .event-facts dt { font-size: 0.9rem; }
.events .event-dates-heading { margin-top: 3rem; }
.events .event-more { margin-top: 2.5rem; padding-top: 0; border-top: 0; }

/* Footer: brand black in both themes, like the masthead. ---------------------- */

.site-footer { --focus: var(--cyan); background: var(--black); color: #e6e9eb; padding-block: 3rem; font-size: 1rem; }
.site-footer p { margin: 0 0 0.25rem; line-height: 1.6; }
.footer-grid { display: grid; gap: 2rem; }
.footer-logo { width: 150px; height: auto; }
.footer-identity p { margin-top: 1rem; max-width: 22rem; }
/* Copyright: start year 2013 is fixed; end year is rendered from the server clock (no yearly edits). */
.site-footer .footer-copyright { margin-top: 0.75rem; font-size: 0.9375rem; color: #b9c0c6; overflow-wrap: anywhere; }
.footer-title { font-size: 1rem; margin-bottom: 0.4rem; color: var(--lime); }
.footer-link {
  display: block; width: fit-content; min-height: 44px; padding-block: 0.6rem; line-height: 1.6; overflow-wrap: anywhere;
}
.footer-title + .footer-link, .footer-title + ul { margin-top: -0.6rem; }

/* Protected email (Contact page and footer): one "Email Us" link built by
   design.js. Without JS only the short fallback note shows. */
.email-protected { display: inline-flex; flex-wrap: wrap; align-items: center; column-gap: 1rem; max-width: 100%; }
.site-footer .email-protected { display: flex; }
.email-fallback { color: var(--muted); font-size: 0.95rem; }
.site-footer .email-fallback { color: #b9c0c6; }
.site-footer a { color: var(--cyan); }
.site-footer .footer-explore .footer-link { color: var(--white); text-decoration-color: transparent; }
.footer-explore .footer-link:hover, .footer-explore .footer-link[aria-current="page"] { text-decoration-color: var(--cyan); }
.site-footer .ext { color: #b9c0c6; }
.footer-explore ul { display: grid; grid-template-columns: repeat(2, max-content); column-gap: 2.5rem; margin-bottom: 0; padding: 0; list-style: none; }
@media (max-width: 22rem) { .footer-explore ul { column-gap: 1.5rem; } }
@media (min-width: 40rem) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 3rem; } }
@media (min-width: 64rem) { .footer-grid { grid-template-columns: minmax(150px, 1fr) auto auto auto; column-gap: clamp(2.5rem, 6vw, 5.5rem); } }

/* Motion: hover polish and in-page link scrolling, only when the visitor allows it. */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .button, .theme-menu button, .theme-toggle, .menu-toggle { transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease; }
}

/* Give page: the PayPal form (website.giving_paypal). */
.give-online { padding-block: 0 3.5rem; }
.give-online h2 { margin-top: 0; }
.give-disclosure { margin-top: 1.25rem; }
.give-disclosure > summary { cursor: pointer; list-style: none; width: fit-content; }
.give-disclosure > summary::-webkit-details-marker { display: none; }
.give-form { display: grid; gap: 1rem; max-width: 28rem; margin-top: 1.25rem; }
.give-form .field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.give-form label { font-weight: 700; }
.give-form select {
  width: 100%; height: 3rem; padding: 0.45rem 0.9rem;
  border: 2px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink); font: inherit;
}
.give-form select:hover { border-color: var(--muted); }
.give-form .button { cursor: pointer; font: inherit; font-weight: 700; width: fit-content; max-width: 100%; }
.give-hint { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* From 52rem (set in design.js): design.js moves the form into this dialog.
   The lock follows the dialog's own state, so it cannot outlive it. */
html:has(.give-dialog[open]) { overflow: hidden; }
.give-dialog {
  width: min(32rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 1.5rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); color: var(--ink);
}
.give-dialog::backdrop { background: rgb(0 0 0 / 0.65); }
.give-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.give-dialog-head h2 { margin: 0; }
.give-dialog-head .button { background: none; cursor: pointer; font: inherit; font-weight: 700; }
.give-dialog .give-form { max-width: none; }

/* Give refinement: presentation only, in the quiet direction of the other
   refined pages. A readable measure for the intro; the facts below without
   their grey band and cyan rules (as Helping Hands, Youth and RealKidz); a
   dialog heading sized for the panel. Form, hints and behaviour unchanged. */
.give-online > .wrap > p { max-width: 40rem; font-size: 1.125rem; }
.ministry:has(> .give-online) .section-facts { background: none; padding-top: 0; }
.ministry:has(> .give-online) .fact-list { gap: 1.5rem 3rem; }
.ministry:has(> .give-online) .fact-list > div { border-top: 0; padding-top: 0; }
.ministry:has(> .give-online) .fact-list dt { font-size: 0.95rem; font-weight: 600; }
.ministry:has(> .give-online) .fact-list dd { font-size: 1.2rem; font-weight: 600; line-height: 1.4; max-width: 30rem; }
.give-dialog-head h2 { font-size: 1.75rem; }

