/* West Charlotte Church at Freedom. Tokens are documented in DESIGN.md. */
:root {
  --ink: #1A1433;
  --royal: #473B77;
  --royal-deep: #352B5E;
  --lilac: #EDEBF7;
  --periwinkle: #C4C8E6;
  --marigold: #F5B82E;
  --marigold-deep: #E5A615;
  --muted: #544E72;
  --line: #6B6590;
  --hairline: #D8D5E8;
  --error: #A8231B;
  --success: #17603D;
  --white: #fff;

  --font-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(56px, 7vw, 96px);
  --inset: 12px;
  --r-l: 20px;
  --r-m: 12px;
  --header-h: 84px;
  --focus: var(--royal);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.125rem/1.6 var(--font-body); }
body.has-offset { padding-top: var(--header-h); }
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.375rem, 5.4vw, 4.5rem); line-height: 1; font-weight: 800; letter-spacing: -0.025em; text-transform: uppercase; }
h2 { font-size: clamp(1.875rem, 3.6vw, 3rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.025em; text-transform: uppercase; }
h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; max-width: 68ch; }
p + p { margin-top: 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
a { color: var(--royal); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--royal-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.on-dark { --focus: var(--marigold); color: var(--white); }
.on-dark a:not(.btn) { color: var(--white); }
.on-dark a:not(.btn):hover { color: var(--marigold); }

.wrap { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
.section { padding-block: var(--section); }
.panel { margin-inline: var(--inset); border-radius: var(--r-l); padding-block: var(--section); }
.panel-royal { background: var(--royal); }
.panel-ink { background: var(--ink); }
.panel-lilac { background: var(--lilac); }
.panel-marigold { background: var(--marigold); --focus: var(--ink); }
.panel-marigold a { color: var(--ink); }
.stack > * + * { margin-top: 24px; }
.stack-s > * + * { margin-top: 12px; }
.lead { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.45; }
.muted { color: var(--muted); }
.on-dark .muted { color: var(--periwinkle); }
.small { font-size: 1rem; line-height: 1.5; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 12px 20px; background: var(--ink); color: var(--white); border-radius: var(--r-m); font-weight: 600; }
.skip:focus { top: 16px; color: var(--white); --focus: var(--marigold); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 26px; border: 2px solid transparent; border-radius: 999px; font: 600 1.0625rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn:focus-visible { border-radius: 999px; }
.btn-primary { background: var(--royal); color: var(--white); }
.btn-primary:hover { background: var(--royal-deep); color: var(--white); }
.btn-accent { background: var(--marigold); color: var(--ink); }
.btn-accent:hover { background: var(--marigold-deep); color: var(--ink); }
.btn-outline { border-color: currentColor; background: transparent; color: var(--royal); }
.btn-outline:hover { background: var(--royal); border-color: var(--royal); color: var(--white); }
.on-dark .btn-outline { color: var(--white); }
.on-dark .btn-outline:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--royal-deep); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); background: var(--white); border-bottom: 1px solid var(--hairline); }
.header-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
.brand { display: block; flex: none; border-radius: 4px; }
.brand img { width: auto; height: 54px; }
.logo-w { display: none; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; background: none; border: 0; border-radius: 999px; color: var(--ink); font: 600 1.0625rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; }
.nav-link:hover { background: var(--lilac); color: var(--ink); }
.nav-link[aria-current="page"], .nav-link.is-current { box-shadow: inset 0 -2px 0 currentColor; border-radius: 0; }
.nav-link[aria-current="page"]:hover, .nav-link.is-current:hover { border-radius: 0; }
.chev { width: 12px; height: 12px; transition: transform .15s; }
[aria-expanded="true"] > .chev { transform: rotate(180deg); }
.nav-item { position: relative; }
.submenu { display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px; padding: 8px; background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-m); box-shadow: 0 16px 40px rgb(26 20 51 / .18); }
.submenu.is-open { display: block; }
.submenu a { display: block; padding: 11px 14px; border-radius: 8px; color: var(--ink); font-weight: 500; text-decoration: none; line-height: 1.3; }
.submenu a:hover { background: var(--lilac); color: var(--ink); }
.submenu a[aria-current="page"] { font-weight: 700; }
.nav-give { margin-left: 10px; }
.menu-toggle { display: none; }

/* Header over the home hero */
.is-over .site-header { background: transparent; border-color: transparent; }
.is-over .logo-w { display: block; }
.is-over .logo-p { display: none; }
.is-over .site-header { --focus: var(--marigold); }
.is-over .nav-list > li > .nav-link { color: var(--white); }
.is-over .nav-list > li > .nav-link:hover { background: rgb(255 255 255 / .18); }
.is-over .menu-toggle { color: var(--white); border-color: var(--white); }

@media (max-width: 1039px) {
  :root { --header-h: 72px; }
  .brand img { height: 42px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px; background: none; border: 2px solid var(--royal); border-radius: 999px; color: var(--royal); font: 600 1rem/1 var(--font-body); cursor: pointer; }
  .menu-toggle svg { width: 18px; height: 18px; }
  .site-nav { display: none; position: fixed; inset: var(--header-h) 0 0; overflow-y: auto; overscroll-behavior: contain; background: var(--white); padding: 16px var(--gutter) 48px; }
  .menu-open .site-nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--hairline); }
  .nav-list > li:last-child { border-bottom: 0; padding-top: 24px; }
  .nav-link { width: 100%; justify-content: space-between; min-height: 60px; padding: 8px 4px; border-radius: 0; font: 700 1.5rem/1.2 var(--font-display); }
  .nav-link:hover { background: none; color: var(--royal); }
  .nav-link[aria-current="page"], .nav-link.is-current { box-shadow: none; color: var(--royal); }
  .chev { width: 16px; height: 16px; }
  .submenu { position: static; min-width: 0; padding: 0 0 16px; border: 0; box-shadow: none; }
  .submenu a { padding: 11px 4px; font-size: 1.125rem; }
  .nav-give { margin: 0; width: 100%; }
  .menu-open .site-header, .is-over.menu-open .site-header { background: var(--white); border-color: var(--hairline); top: 0; left: 0; right: 0; --focus: var(--royal); }
  .is-over.menu-open .logo-w { display: none; }
  .is-over.menu-open .logo-p { display: block; }
  .is-over.menu-open .menu-toggle { color: var(--royal); border-color: var(--royal); }
  .is-over.menu-open .nav-list > li > .nav-link { color: var(--ink); }
  .menu-open { overflow: hidden; }
}
@media (max-width: 640px) {
  :root { --inset: 8px; }
  .header-in { gap: 8px; }
  .menu-toggle { padding: 8px 12px; gap: 6px; }
  .play-word { display: none; }
  .video-play { padding: 14px; }
}
@media (max-width: 359px) {
  .menu-toggle [data-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

/* Home hero */
.hero { position: relative; display: flex; align-items: flex-end; min-height: 100svh; overflow: hidden; background: var(--ink); }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgb(26 20 51 / .84) 0, rgb(26 20 51 / 0) 200px), linear-gradient(to top, rgb(26 20 51 / .88) 0%, rgb(26 20 51 / .64) 48%, rgb(26 20 51 / .05) 88%); }
.hero-body { position: relative; z-index: 2; padding-block: calc(var(--header-h) + 32px) clamp(40px, 6vw, 72px); }
.hero h1 { max-width: 15em; font-size: clamp(2.25rem, min(5.4vw, 9.5vh), 4.75rem); line-height: 1; }
.hero-sub { margin-top: 14px; font-size: clamp(1.125rem, 1.6vw, 1.375rem); font-weight: 500; }
.video-toggle { position: absolute; z-index: 3; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; background: rgb(26 20 51 / .85); border: 1px solid rgb(255 255 255 / .55); border-radius: 999px; color: var(--white); font: 500 1rem/1 var(--font-body); cursor: pointer; }
.video-toggle:hover { background: var(--ink); }
.video-toggle:focus-visible { border-radius: 999px; }
.video-toggle svg { width: 13px; height: 13px; fill: currentColor; }
@media (max-width: 640px) { .video-toggle { top: calc(var(--header-h) + 4px); bottom: auto; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-body > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-sub { animation-delay: .12s; }
  .hero-body .cta { animation-delay: .22s; }
  @keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
}

/* Main action with arrow: text stays white in every state */
.cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; text-decoration: none; border-radius: 999px; }
.cta, .cta:hover, .on-dark a.cta, .on-dark a.cta:hover { color: var(--white); }
.cta:focus-visible { border-radius: 999px; }
.cta-label { display: inline-flex; align-items: center; min-height: 52px; padding: 10px 28px; background: #5B4BA0; border-radius: 999px; font-weight: 700; font-size: 1.0625rem; transition: background-color .2s; }
.cta-dot { display: grid; place-items: center; width: 52px; height: 52px; background: #5B4BA0; border-radius: 50%; transition: background-color .2s, color .2s, transform .25s cubic-bezier(.2, .7, .2, 1); }
.cta-dot svg { width: 18px; height: 18px; transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.cta:hover .cta-label, .cta:focus-visible .cta-label { background: #6C5BB8; }
.cta:hover .cta-dot, .cta:focus-visible .cta-dot { background: var(--marigold); color: var(--ink); transform: translateX(4px); }
.cta:hover .cta-dot svg, .cta:focus-visible .cta-dot svg { transform: translateX(2px); }

/* Moving text band, paused by the motion button */
.marquee { overflow: hidden; padding-block: clamp(18px, 3vw, 32px); background: var(--lilac); }
.marquee-track { display: flex; width: max-content; animation: slide 48s linear infinite; }
.is-paused .marquee-track { animation-play-state: paused; }
.marquee span { padding-inline: clamp(16px, 2.4vw, 32px); font: 800 clamp(2rem, 4.6vw, 3.75rem)/1 var(--font-display); letter-spacing: -0.02em; text-transform: uppercase; white-space: nowrap; }
.mq-solid { color: var(--royal); }
.mq-line { color: var(--lilac); -webkit-text-stroke: 3px var(--royal); paint-order: stroke fill; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* Home sections */
.tint { padding-block: var(--section); background: var(--lilac); }
.visit-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.facts { display: flex; flex-wrap: wrap; gap: 16px 48px; }
.facts p + p { margin-top: 0; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.trio img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: top; border-radius: var(--r-m); }
.trio img:nth-child(2) { transform: translateY(24px); }
.center { padding-block: var(--section); text-align: center; }
.center > * + * { margin-top: 16px; margin-inline: auto; }
.center-flush { padding-block: 0; }
.center .lead { max-width: 36em; }
.center-video { width: min(100%, 620px); margin-top: 28px; text-align: left; }
.btn-row-center { justify-content: center; }
.center .btn-row { margin-top: 24px; }
.center .inline-form { max-width: 480px; margin-top: 24px; text-align: left; }
.connect-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.rounds { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 16px; }
.rounds a { display: grid; justify-items: center; gap: 12px; font: 700 1.125rem/1.2 var(--font-display); text-align: center; text-decoration: none; }
.rounds a:hover { text-decoration: underline; text-underline-offset: .2em; }
.rounds img { width: min(100%, 140px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.tint + .panel { margin-top: var(--section); }
@media (max-width: 860px) {
  .visit-grid { grid-template-columns: minmax(0, 1fr); }
  .rounds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trio img:nth-child(2) { transform: none; }
}
/* Section heads */
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; margin-bottom: clamp(32px, 4vw, 56px); }
.head > p { flex: 1 1 320px; }

/* Sermon feature */
.sermon-feature { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.series-label { color: var(--periwinkle); }
@media (max-width: 900px) { .sermon-feature { grid-template-columns: 1fr; } }
.video { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-m); background: var(--ink); }
.video:focus-visible { border-radius: var(--r-m); }
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-play { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; background: var(--white); border-radius: 999px; color: var(--ink); font-weight: 600; font-size: 1rem; line-height: 1.2; }
.video-play svg { width: 13px; height: 13px; fill: currentColor; }
.video:hover .video-play { background: var(--marigold); }

/* Directory */
.directory { border-top: 1px solid var(--ink); }
.directory li { border-bottom: 1px solid var(--hairline); }
.directory a { display: grid; grid-template-columns: 112px minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: clamp(16px, 3vw, 40px); padding: 16px 12px 16px 0; color: var(--ink); text-decoration: none; transition: background-color .15s, padding .15s; }
.directory a:hover { background: var(--lilac); padding-left: 16px; color: var(--ink); }
.directory a:focus-visible { outline-offset: -3px; }
.directory img { width: 112px; height: 84px; object-fit: cover; object-position: top; border-radius: 8px; }
.directory-name { font: 700 clamp(1.75rem, 4vw, 3.25rem)/1.05 var(--font-display); letter-spacing: -0.025em; }
.directory-desc { color: var(--muted); font-size: 1.0625rem; line-height: 1.45; }
@media (max-width: 760px) {
  .directory a { grid-template-columns: 72px 1fr; column-gap: 16px; row-gap: 4px; }
  .directory img { width: 72px; height: 72px; grid-row: span 2; }
}

/* Newsletter band */
.band { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } }
.inline-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.inline-form .field { flex: 1 1 240px; }

/* Forms */
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 1.0625rem; }
.field .req { font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-m); color: var(--ink); font: inherit; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field-error { color: var(--error); font-size: 1rem; font-weight: 600; }
.field-error:empty { display: none; }
.panel-marigold .field input { border-color: var(--ink); }
.panel-marigold .field-error { color: #6E110B; }
.form { display: grid; gap: 20px; }
.form-status { padding: 14px 18px; border-radius: var(--r-m); background: #E3F2EA; color: var(--success); font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { background: #FBEAE8; color: var(--error); }

/* Footer */
.site-footer { padding-block: 48px 32px; background: var(--ink); }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 40px; }
.foot-card { display: grid; gap: 4px; padding: 20px 22px; border: 1px solid rgb(255 255 255 / .3); border-radius: var(--r-m); text-decoration: none; overflow-wrap: anywhere; }
.foot-card:hover { border-color: var(--marigold); }
.foot-card:focus-visible { border-radius: var(--r-m); }
.foot-card strong { font: 700 1.375rem/1.2 var(--font-display); }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 40px; }
.foot-logo { width: auto; height: 54px; }
.foot-social { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; margin-left: -10px; }
.foot-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.foot-social a:hover { background: rgb(255 255 255 / .14); }
.foot-social a:focus-visible { border-radius: 50%; }
.foot-social svg { width: 22px; height: 22px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot-links a { display: inline-block; padding-block: 8px; }
.foot-note { max-width: none; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .25); color: var(--periwinkle); font-size: 1rem; }
@media (max-width: 860px) { .foot-cols { grid-template-columns: minmax(0, 1fr); } }

/* Inner pages */
.page-head { padding-block: clamp(40px, 6vw, 88px) clamp(32px, 4vw, 56px); }
.page-head .lead { margin-top: 20px; max-width: 46ch; }
.page-head h1 { max-width: 16ch; }
.page-head-photo { display: block; width: calc(100% - 2 * var(--inset)); margin-inline: var(--inset); height: clamp(280px, 48vw, 620px); object-fit: cover; border-radius: var(--r-l); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1.5px solid var(--royal); border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; }
.jump a:hover { background: var(--royal); color: var(--white); }
.split { display: grid; grid-template-columns: 4fr 8fr; gap: 24px clamp(32px, 6vw, 96px); align-items: start; }
.split > h2 { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split > h2 { position: static; } }
.rows > * { padding-block: clamp(20px, 2.5vw, 32px); border-top: 1px solid var(--hairline); }
.rows > *:first-child { border-top: 1px solid var(--ink); }
.rows h3 { margin-bottom: 8px; }
.on-dark .rows > * { border-color: rgb(255 255 255 / .3); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 4vw, 64px); }
.two-col > *:nth-child(2) { border-top: 1px solid var(--ink); }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } .two-col > *:nth-child(2) { border-top: 1px solid var(--hairline); } }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.feature + .feature { margin-top: clamp(48px, 6vw, 88px); }
.feature:nth-child(even) > img { order: 2; }
.feature > img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: top; border-radius: var(--r-m); }
.feature h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 12px; line-height: 1.1; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } .feature:nth-child(even) > img { order: 0; } }

.faq details { border-top: 1px solid var(--hairline); }
.faq details:first-child { border-top: 1px solid var(--ink); }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 64px; padding-block: 16px; font: 700 clamp(1.25rem, 2vw, 1.625rem)/1.2 var(--font-display); letter-spacing: -0.01em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--royal); }
.faq summary svg { flex: none; width: 18px; height: 18px; transition: transform .15s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details > div { padding-bottom: 24px; }

/* Leadership */
.team-group + .team-group { margin-top: clamp(48px, 6vw, 80px); }
.team-group h3 { margin-bottom: 24px; font-size: clamp(1.625rem, 2.6vw, 2.25rem); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 32px 16px; }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr 1fr; } }
.person { display: block; width: 100%; padding: 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; }
button.person { cursor: pointer; }
button.person:focus-visible { border-radius: var(--r-m); }
.person img, .person-blank { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-m); }
.person-blank { display: grid; place-items: center; background: var(--lilac); color: var(--royal); font: 700 3rem/1 var(--font-display); }
.person-name { display: block; margin-top: 12px; font: 700 1.25rem/1.2 var(--font-display); }
button.person:hover .person-name { color: var(--royal); text-decoration: underline; text-underline-offset: .15em; }
.person-role { display: block; margin-top: 2px; color: var(--muted); font-size: 1rem; line-height: 1.35; }
dialog { width: min(100% - 32px, 760px); max-height: min(100dvh - 32px, 860px); padding: 0; border: 0; border-radius: var(--r-l); color: var(--ink); }
dialog::backdrop { background: rgb(26 20 51 / .72); }
.bio { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 28px; }
.bio img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-m); }
.bio h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); padding-right: 56px; }
.bio-close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; background: var(--lilac); border: 0; border-radius: 50%; color: var(--ink); cursor: pointer; }
.bio-close:hover { background: var(--hairline); }
.bio-close svg { width: 16px; height: 16px; }
@media (max-width: 640px) { .bio { grid-template-columns: 1fr; } .bio img { width: 140px; } }

/* Sermons */
.sermon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 40px 20px; }
.sermon-grid h3 { margin-top: 14px; font-size: 1.375rem; }
.sermon-grid .small { margin-top: 2px; }

/* Give */
.fees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fee { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1.5px solid var(--hairline); border-radius: var(--r-m); background: var(--white); }
.fee-best { background: var(--royal); border-color: var(--royal); }
.fee h3 { font-size: 1.375rem; }
.fee-num { font: 800 clamp(2.5rem, 4.4vw, 3.5rem)/1 var(--font-display); letter-spacing: -0.03em; }
.fee-num small { font-size: 1.125rem; font-weight: 600; letter-spacing: 0; }
.fee-tag { align-self: flex-start; padding: 4px 12px; background: var(--marigold); border-radius: 999px; color: var(--ink); font-weight: 700; font-size: 1rem; }
@media (max-width: 860px) { .fees { grid-template-columns: 1fr; } }
blockquote { margin: 0; }
.verse { font: 700 clamp(1.5rem, 3.2vw, 2.75rem)/1.15 var(--font-display); letter-spacing: -0.02em; max-width: 28ch; }
.verse cite { display: block; margin-top: 16px; font: 500 1.125rem/1.4 var(--font-body); letter-spacing: 0; color: var(--periwinkle); }

/* Calendar */
.cal { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .cal { grid-template-columns: 1fr; } }
.cal-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 24px; }
table { width: 100%; border-collapse: collapse; font-size: 1.0625rem; line-height: 1.35; }
caption { margin-bottom: 8px; font: 700 1.25rem/1.2 var(--font-display); text-align: left; }
th, td { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--hairline); text-align: left; vertical-align: top; }
thead th { font-weight: 600; color: var(--muted); }
tbody th { font-weight: 600; width: 48px; }
.is-off { color: var(--muted); }
.is-event { font-weight: 700; color: var(--royal); }
.placeholder { display: inline-block; padding: 2px 10px; background: var(--lilac); border: 1px dashed var(--line); border-radius: 6px; color: var(--muted); font-size: 1rem; }
.quote { font: 600 clamp(1.25rem, 2vw, 1.625rem)/1.35 var(--font-display); letter-spacing: -0.01em; }
.groups-day + .groups-day { margin-top: 40px; }
.notfound { min-height: 50vh; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media print {
  .site-header, .video-toggle, .skip { display: none; }
  body.has-offset { padding-top: 0; }
  .hero { min-height: 0; color: #000; }
}
.side-photo { width: 100%; max-width: 400px; aspect-ratio: 5 / 4; object-fit: cover; object-position: top; border-radius: var(--r-m); }

/* Version A applied to inner pages: centered titles, smaller photos, collapsible detail */
main > :last-child:not(.section):not(.center) { margin-bottom: var(--section); }
.page-head { text-align: center; }
.page-head h1 { max-width: 18em; margin-inline: auto; }
.page-head .lead { margin-inline: auto; max-width: 40em; }
.page-head-photo { width: min(100% - 2 * var(--gutter), 720px); margin-inline: auto; height: clamp(180px, 24vw, 280px); border-radius: var(--r-m); }
.feature { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); max-width: 900px; margin-inline: auto; gap: clamp(20px, 4vw, 48px); }
.feature:nth-child(even) > img { order: 0; }
.feature + .feature { margin-top: 32px; }
@media (max-width: 640px) { .feature { grid-template-columns: minmax(0, 1fr); } .feature > img { max-width: 320px; } }
.team-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); max-width: 1000px; }
.person-blank { font-size: 2.25rem; }
dialog h2 { text-transform: none; }
.rows:has(> .acc) { align-items: start; }
.rows > .acc { padding-block: 0; }
.acc > summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding-block: 14px; cursor: pointer; list-style: none; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary h2, .acc > summary h3 { margin: 0; font: 700 clamp(1.25rem, 1.8vw, 1.5rem)/1.2 var(--font-display); letter-spacing: -0.01em; text-transform: none; }
.acc > summary:hover h2, .acc > summary:hover h3 { text-decoration: underline; text-underline-offset: .2em; }
.acc > summary svg { flex: none; width: 18px; height: 18px; transition: transform .15s; }
.acc[open] > summary svg { transform: rotate(180deg); }
.acc-body { padding-bottom: 20px; }
.acc-body > * + * { margin-top: 12px; }
.expect-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }
.expect-cards img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: top; border-radius: var(--r-m); }
@media (max-width: 860px) { .expect-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .expect-cards { grid-template-columns: minmax(0, 1fr); } .expect-cards img { max-width: 240px; } }
.cal-toggle { border-block: 1px solid var(--line); }
.cal-toggle .cal { padding-top: 8px; }

/* Finding information: independent columns, sticky jump bar, site search */
html { scroll-padding-top: calc(var(--header-h) + 72px); }
.two-col { align-items: start; }
.two-col > .rows { border-top: 0; }
.jump-bar { position: sticky; top: var(--header-h); z-index: 20; background: var(--white); border-bottom: 1px solid var(--hairline); margin-bottom: clamp(24px, 3vw, 40px); }
.jump { display: flex; gap: 8px; margin: 0 auto; padding: 10px var(--gutter); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.jump a { flex: none; }
.jump a[aria-current="true"] { background: var(--royal); color: var(--white); }
.page-head { padding-bottom: clamp(20px, 2.5vw, 32px); }
.search-btn { display: grid; place-items: center; flex: none; width: 44px; height: 44px; background: none; border: 0; border-radius: 50%; color: var(--ink); cursor: pointer; }
.search-btn:hover { background: var(--lilac); }
.search-btn:focus-visible { border-radius: 50%; }
.search-btn svg { width: 20px; height: 20px; }
.brand { margin-right: auto; }
.is-over .search-btn { color: var(--white); }
.is-over .search-btn:hover { background: rgb(255 255 255 / .18); }
.header-in { gap: 8px; }
dialog.search { width: min(100% - 24px, 680px); max-height: min(100dvh - 48px, 640px); margin-top: 24px; padding: 8px 20px 20px; }
.search-top { display: flex; align-items: center; gap: 10px; border-bottom: 2px solid var(--royal); }
.search-top > svg { flex: none; width: 20px; height: 20px; color: var(--royal); }
.search-top input { flex: 1; min-width: 0; min-height: 56px; padding: 0; background: none; border: 0; color: var(--ink); font: 500 1.25rem/1.2 var(--font-body); outline: 0; }
.search-top input::placeholder { color: var(--muted); opacity: 1; }
.search-top:focus-within { box-shadow: 0 2px 0 var(--royal); }
.search-close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; background: none; border: 0; border-radius: 50%; color: var(--ink); cursor: pointer; }
.search-close:hover { background: var(--lilac); }
.search-close svg { width: 16px; height: 16px; }
.search-count { margin-top: 12px; color: var(--muted); font-size: 1rem; }
.search-count:empty { display: none; }
.search-results a { display: grid; gap: 2px; padding: 12px 10px; margin-inline: -10px; border-bottom: 1px solid var(--hairline); color: var(--ink); text-decoration: none; }
.search-results a:hover { background: var(--lilac); }
.search-results strong { font: 700 1.1875rem/1.25 var(--font-display); }
.search-page { color: var(--muted); font-size: 1rem; }
.search-snippet { color: var(--muted); font-size: 1rem; line-height: 1.4; }
.search-results mark { background: #FBE7B2; color: var(--ink); border-radius: 2px; }
@media (max-width: 359px) { .brand img { height: 36px; } }
@media (max-width: 1039px) {
  .is-over.menu-open .search-btn { color: var(--ink); }
  .header-in { gap: 4px; }
}

/* Page header banner: title over a photo, matching the home hero */
.banner { position: relative; display: flex; align-items: flex-end; margin: var(--inset) var(--inset) 0; min-height: clamp(280px, 32vw, 400px); overflow: hidden; border-radius: var(--r-l); background: var(--ink); }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(26 20 51 / .9) 0%, rgb(26 20 51 / .74) 58%, rgb(26 20 51 / .42) 100%); }
.banner-in { position: relative; z-index: 1; padding-block: clamp(40px, 5vw, 64px) clamp(28px, 4vw, 48px); }
.banner h1 { max-width: 18em; }
.banner .lead { max-width: 38em; margin-top: 12px; }
.banner + :not(.jump-bar) { margin-top: var(--section); }
.banner + .panel { margin-top: var(--inset); }
.jump-bar { margin-top: 8px; }
@media (max-width: 640px) {
  .banner::after { background: linear-gradient(to top, rgb(26 20 51 / .92) 0%, rgb(26 20 51 / .78) 60%, rgb(26 20 51 / .55) 100%); }
}
.banner + .section { margin-top: 0; }
.jump { flex-wrap: nowrap; margin-top: 0; }

/* Regular content with occasional read more */
.more { margin-top: 10px; }
.more > summary { display: inline-block; min-height: 32px; padding-block: 4px; font-weight: 600; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; list-style: none; }
.more > summary::-webkit-details-marker { display: none; }
.more[open] > summary { font-size: 0; }
.more[open] > summary::after { content: "Read less"; font-size: 1.125rem; }
.more-body > * + * { margin-top: 12px; }
.rows > * { padding-block: clamp(16px, 2vw, 24px); }
.expect-cards h3 { margin: 14px 0 6px; font-size: 1.375rem; }
.expect-cards p { font-size: 1.0625rem; line-height: 1.5; }
.sub-h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); text-transform: none; font-weight: 700; letter-spacing: -0.015em; }
.ticks { display: grid; gap: 8px; margin-top: 8px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 12px; height: 3px; background: var(--royal); border-radius: 2px; }
.two-col-plain > *:nth-child(2) { border-top: 0; }
.two-col-plain { row-gap: 32px; }

/* Quick links */
.tint-quick { padding-top: clamp(4px, 1vw, 12px); }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: clamp(32px, 4vw, 56px); }
.quick-label { margin-right: 6px; font-weight: 700; }
.quick a, .search-open { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; background: var(--white); border: 1.5px solid var(--royal); border-radius: 999px; color: var(--royal); font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; }
.quick a:hover, .search-open:hover { background: var(--royal); color: var(--white); }
.quick a:focus-visible, .search-open:focus-visible { border-radius: 999px; }
.search-open svg { width: 15px; height: 15px; }

/* Search button with a visible label */
.search-btn { display: inline-flex; align-items: center; gap: 8px; width: auto; padding-inline: 12px; border-radius: 999px; font: 600 1.0625rem/1 var(--font-body); }
.search-btn:focus-visible { border-radius: 999px; }
.search-btn svg { width: 17px; height: 17px; }
@media (max-width: 1039px) {
  .search-btn { width: 44px; padding: 0; justify-content: center; }
  .search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

/* Sermon archive: the playing video spreads across the grid */
.sermon-grid { grid-auto-flow: dense; }
.sermon-grid li.is-playing { grid-column: 1 / -1; text-align: center; }
.is-playing .video { width: min(100%, calc((100svh - var(--header-h) - 200px) * 16 / 9)); margin-inline: auto; }
.is-playing p { max-width: none; }
.sermon-close { margin-top: 12px; min-height: 44px; }

/* Community Groups map */
.group-finder { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 16px clamp(20px, 3vw, 40px); align-items: stretch; }
.group-map { position: relative; z-index: 0; min-height: clamp(340px, 42vw, 480px); border-radius: var(--r-m); background: #E8E6F2; font-family: var(--font-body); }
.group-map[hidden] { display: none; }
.group-map .group-pin { display: grid; place-items: center; background: #58458E; border: 2px solid var(--white); border-radius: 50%; color: var(--white); font: 700 1.125rem/1 var(--font-display); box-shadow: 0 1px 4px rgb(26 20 51 / .35); }
.group-map .leaflet-popup-content { margin: 12px 16px; font: 400 1rem/1.45 var(--font-body); color: var(--ink); }
.group-map .leaflet-popup-content strong { font: 700 1.0625rem/1.3 var(--font-display); }
.group-map .leaflet-popup-content-wrapper { border-radius: var(--r-m); }
.group-map .leaflet-control-attribution { font-size: .75rem; }
.group-map a.leaflet-bar-part, .group-map .leaflet-control-zoom a { color: var(--ink); }
.group-list { display: grid; gap: 8px; }
.group-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: center; width: 100%; padding: 14px 16px; background: var(--white); border: 1.5px solid transparent; border-radius: var(--r-m); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.group-card:hover, .group-card[aria-current] { border-color: var(--royal); }
.group-card:focus-visible { border-radius: var(--r-m); }
.group-num { display: grid; place-items: center; width: 40px; height: 40px; background: #58458E; border-radius: 50%; color: var(--white); font: 700 1.125rem/1 var(--font-display); }
.group-info { display: grid; line-height: 1.35; font-size: 1rem; }
.group-info strong { font: 700 1.1875rem/1.25 var(--font-display); }
@media (max-width: 860px) { .group-finder { grid-template-columns: minmax(0, 1fr); } }

/* Brighter photos, with text kept readable */
.hero-media, .banner > img { filter: brightness(1.1) saturate(1.06); }
.hero::after { background: linear-gradient(to bottom, rgb(26 20 51 / .78) 0, rgb(26 20 51 / 0) 190px), linear-gradient(to top, rgb(26 20 51 / .84) 0%, rgb(26 20 51 / .56) 46%, rgb(26 20 51 / 0) 85%); }
.banner::after { background: linear-gradient(to top, rgb(26 20 51 / .84) 0%, rgb(26 20 51 / .62) 55%, rgb(26 20 51 / .22) 100%); }
.hero h1, .hero-sub, .banner h1, .banner .lead { text-shadow: 0 1px 12px rgb(26 20 51 / .55); }
@media (max-width: 640px) {
  .banner::after { background: linear-gradient(to top, rgb(26 20 51 / .88) 0%, rgb(26 20 51 / .7) 60%, rgb(26 20 51 / .42) 100%); }
}

/* Header Give menu */
.nav-item-give { position: relative; margin-left: 10px; }
.nav-give { margin-left: 0; gap: 6px; }
.submenu-right { left: auto; right: 0; min-width: 190px; }
@media (max-width: 1039px) {
  .nav-item-give { margin-left: 0; }
  .nav-list > li.nav-item-give { border-bottom: 0; padding-top: 24px; }
  .nav-item-give .nav-give { width: 100%; }
  .submenu-right a { text-align: center; }
}

/* Home */
.cta-row { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 24px; }
.cta-row .cta { margin-top: 0; }
.quick { margin-top: clamp(32px, 4vw, 56px); margin-bottom: 0; }
.rounds a { font-size: 1.0625rem; }

/* Map at the bottom of each page */
.church-map { position: relative; margin-top: var(--section); background: var(--lilac); }
.section + .church-map, .center + .church-map { margin-top: 0; }
.church-map-canvas { position: relative; z-index: 0; height: clamp(320px, 34vw, 420px); background: #E8E6F2; font-family: var(--font-body); }
.church-map-canvas[hidden] { display: none; }
.church-map-canvas .leaflet-control-attribution, .group-map .leaflet-control-attribution { padding: 0 4px; background: rgb(255 255 255 / .55); color: var(--muted); font-size: .6875rem; }
.church-map-canvas .leaflet-control-attribution a, .group-map .leaflet-control-attribution a { color: inherit; }
.church-map-canvas .leaflet-control-zoom a { color: var(--ink); }
.church-map-card { position: absolute; z-index: 1; top: 50%; left: max(var(--gutter), calc((100% - 1200px) / 2)); display: grid; justify-items: start; gap: 12px; width: min(100% - 2 * var(--gutter), 380px); padding: 24px; background: var(--white); border-radius: var(--r-l); box-shadow: 0 10px 30px rgb(26 20 51 / .16); transform: translateY(-50%); }
.church-map-card h2 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); }
@media (max-width: 760px) {
  .church-map-card { position: static; width: auto; border-radius: 0; box-shadow: none; transform: none; padding: 28px var(--gutter); }
  .church-map-canvas { height: 280px; }
}

/* What to expect: explanation appears over the photo */
.wte-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.wte { position: relative; display: grid; align-content: start; overflow: hidden; border-radius: var(--r-m); background: var(--ink); color: var(--white); outline-offset: -3px; }
.wte:focus-visible { border-radius: var(--r-m); --focus: var(--marigold); }
.wte img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; filter: brightness(1.08); }
.wte h3 { position: absolute; left: 12px; bottom: 12px; padding: 8px 16px; background: var(--white); border-radius: 999px; color: var(--ink); font-size: 1.25rem; }
.wte p { position: absolute; inset: 0; display: flex; align-items: center; max-width: none; padding: 18px; background: rgb(53 43 94 / .97); color: var(--white); font-size: 1rem; line-height: 1.45; opacity: 0; overflow-y: auto; transition: opacity .2s; }
.wte:hover p, .wte:focus p { opacity: 1; }
@media (max-width: 1099px) { .wte-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (hover: none) {
  .wte { background: var(--lilac); color: var(--ink); }
  .wte img { aspect-ratio: 4 / 3; }
  .wte h3 { position: static; margin: 12px 14px 4px; padding: 0; background: none; }
  .wte p { position: static; display: block; padding: 0 14px 16px; background: none; color: var(--ink); opacity: 1; overflow: visible; }
}
@media (max-width: 560px) { .wte-grid { grid-template-columns: minmax(0, 1fr); } }

/* Ministries grid */
.min-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 16px; }
.min-grid a { display: block; color: var(--ink); text-decoration: none; }
.min-grid a:focus-visible { border-radius: var(--r-m); }
.min-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-m); }
.min-grid h2 { margin-top: 12px; font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 700; letter-spacing: -0.015em; text-transform: none; }
.min-grid a:hover h2 { color: var(--royal); text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 760px) { .min-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Children's page */
.intro-lead { max-width: 44em; margin-bottom: clamp(32px, 4vw, 48px); }
.stories { display: grid; gap: clamp(32px, 4vw, 56px); }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: clamp(24px, 4vw, 56px); align-items: center; }
.story img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: top; border-radius: var(--r-m); }
.story > img { order: 2; }
.story:nth-child(even) { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
.story:nth-child(even) > img { order: 0; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 48px) clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 760px) {
  .story, .story:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .story > img, .story:nth-child(even) > img { order: 0; max-width: 360px; }
  .info-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Student page */
.student-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(24px, 5vw, 72px); align-items: start; }
.student-cols .cal { grid-template-columns: minmax(0, 1fr); }
.student-cols h3 { font-size: 1.375rem; }
.student-cols .rows { margin-top: 8px; }
.testimonial { max-width: 780px; margin: 0; padding: clamp(20px, 3vw, 32px); background: var(--lilac); border-radius: var(--r-m); }
.testimonial figcaption { margin-top: 12px; font-weight: 700; }
@media (max-width: 760px) { .student-cols { grid-template-columns: minmax(0, 1fr); } }

/* Sermons page */
.latest { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.panel-ink .sermon-grid h3 { color: var(--white); }
.panel-ink + .church-map { margin-top: var(--inset); }
@media (max-width: 860px) { .latest { grid-template-columns: minmax(0, 1fr); } }

/* Give page */
.give-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.give-top > .stack-s { flex: 1 1 420px; max-width: 760px; }
.btn-large { min-height: 56px; padding-inline: 36px; font-size: 1.1875rem; }
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.way { display: grid; align-content: start; gap: 10px; padding: clamp(20px, 2.5vw, 28px); border: 1.5px solid var(--hairline); border-radius: var(--r-m); }
.way-best { background: var(--royal); border-color: var(--royal); }
@media (max-width: 760px) { .ways { grid-template-columns: minmax(0, 1fr); } }
.panel-lilac + .church-map, .panel-royal + .church-map { margin-top: var(--inset); }
.way .fee-tag { justify-self: start; }
.leaflet-container .church-pin { background: var(--royal) url(img/logo-white.png) no-repeat 7px 7px / auto 34px; border: 2px solid var(--white); border-radius: 50%; box-shadow: 0 1px 6px rgb(26 20 51 / .4); }

/* Buttons in the style of the site's outlined and filled pills, with an arrow */
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 10px 26px; background: var(--royal); border: 2px solid var(--royal); border-radius: 999px; font: 600 1.0625rem/1.2 var(--font-body); text-decoration: none; transition: background-color .2s, border-color .2s, color .2s; }
.cta, .cta:hover, .on-dark a.cta, .on-dark a.cta:hover { color: var(--white); }
.cta:hover { background: var(--royal-deep); border-color: var(--royal-deep); }
.cta svg { flex: none; width: 17px; height: 17px; transition: transform .2s cubic-bezier(.2, .7, .2, 1); }
.cta:hover svg, .cta:focus-visible svg { transform: translateX(4px); }
.cta:focus-visible { border-radius: 999px; }
.cta-outline, .on-dark a.cta-outline { background: var(--white); color: var(--royal); }
.cta-outline:hover, .on-dark a.cta-outline:hover { background: var(--royal); border-color: var(--royal); color: var(--white); }
.cta-row { gap: 12px; }
.visit-grid .stack .cta { margin-top: 24px; }
.quick { margin-top: clamp(32px, 4vw, 48px); }

/* Space above every map */
.church-map, .panel-lilac + .church-map, .panel-royal + .church-map, .panel-ink + .church-map { margin-top: clamp(48px, 6vw, 80px); }
.section + .church-map, .center + .church-map { margin-top: clamp(24px, 3vw, 40px); }

/* Church icon centered in its circle */
.leaflet-container .church-pin { box-sizing: border-box; background: var(--royal) url(img/mark-white.png) no-repeat center / 30px 30px; }

/* Current sermon series */
.series { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.series > img { width: 100%; border-radius: var(--r-m); }
@media (max-width: 860px) { .series { grid-template-columns: minmax(0, 1fr); } }

/* Footer contact cards */
.foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .foot-cols { grid-template-columns: minmax(0, 1fr); } }

/* What to Expect: the title stays visible on top of the explanation */
@media (hover: hover) {
  .wte h3 { z-index: 2; }
  .wte p { align-items: flex-start; padding: 16px 16px 62px; }
}

/* Men's and Women's gatherings */
.activity-list { display: grid; gap: 8px; align-content: start; }
.activity-list li { padding: 16px 20px; background: var(--white); border-left: 4px solid var(--royal); border-radius: var(--r-m); font: 700 clamp(1.125rem, 1.7vw, 1.375rem)/1.25 var(--font-display); }

/* Ways to give */
.ways { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .ways { grid-template-columns: minmax(0, 1fr); } }

/* Map popups */
.group-map .leaflet-popup-content dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; margin: 8px 0; }
.group-map .leaflet-popup-content dt { font-weight: 600; color: var(--muted); }
.group-map .leaflet-popup-content dd { margin: 0; }
.group-map .leaflet-popup-content p { margin: 8px 0; font-size: .9375rem; line-height: 1.4; color: var(--muted); }
.group-map .leaflet-popup-content a { color: var(--royal); font-weight: 600; }
