/*
 * Living Springs stylesheet: tokens, type, components and the layout system
 * (docs/design-system.md). Mobile first. Budget: <= 50 KB (playbook section 9).
 *
 *  1 Fonts   2 Tokens   3 Base   4 Helpers   5 Layout primitives   6 Buttons
 *  7 Header + mobile menu   8 Hero   9 Hero with form   10 Page header + sections
 *  11 Text, verbatim, links   12 Columns, team, cards   13 FAQ   14 Forms
 *  15 Facades + map   16 Closing band   17 Thank-you + 404   18 Footer
 */

/* ================================================================== 1 Fonts (self-hosted, Latin, WOFF2) */
@font-face {
	font-family: "Fraunces";
	src: url("../fonts/fraunces-800-soft100-opsz144-latin.woff2") format("woff2");
	font-weight: 800; /* Static instance at SOFT 100, opsz 144, weight 800. */
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Raleway";
	src: url("../fonts/raleway-500-700-latin.woff2") format("woff2");
	font-weight: 500 700;
	font-style: normal;
	font-display: swap;
}

/* ================================================================== 2 Tokens */
:root {
	/* Color: design-system section 3, verbatim. Navy, blue and white only. */
	--ls-deep:  #002655;
	--ls-navy:  #003468;
	--ls-blue:  #015092;
	--ls-sky:   #8FB4DA;
	--ls-mist:  #BCD3EA;
	--ls-water: #E8F1F9;
	--ls-white: #FFFFFF;
	--ls-muted: #3D5878;
	--ls-field: #6F8FB3;
	--ls-line:  #C5D6E8;
	--ls-error: #B3261E;

	--font-display: Fraunces, "Cooper Black", Georgia, serif;
	--font-body: Raleway, "Segoe UI", system-ui, sans-serif;

	/* Fluid between 390px and 1280px viewports. */
	--fs-h1:    clamp(2.25rem, 1.3736rem + 3.5955vw, 4.25rem);
	--fs-h2:    clamp(1.75rem, 1.3118rem + 1.7978vw, 2.75rem);
	--fs-h3:    clamp(1.25rem, 1.1404rem + 0.4494vw, 1.5rem);
	--fs-lead:  clamp(1.1875rem, 1.1327rem + 0.2247vw, 1.3125rem);
	--fs-body:  clamp(1.0625rem, 1.0351rem + 0.1124vw, 1.125rem);
	--fs-large: clamp(1.375rem, 1.2107rem + 0.6742vw, 1.75rem); /* "set large" verbatim lines */
	--fs-small: 0.9375rem;
	--fs-ui:    1.0625rem;
	--measure:  37em; /* ~68 characters of Raleway. (68ch measured the wide "0" glyph and let lines run ~90.) */

	--space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px; --space-5: 24px;
	--space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;

	--container-max: 1160px;
	--gutter: 20px;
	--section-pad: 56px;
	--arc-h: 24px;
	--radius: 6px;
	--control-min: 52px;
	--edge: 5px;
	--press: 120ms;
}
@media (min-width: 48em) { :root { --gutter: 32px; } }
@media (min-width: 64em) { :root { --gutter: 64px; --section-pad: 96px; --arc-h: 48px; } }

/* ================================================================== 3 Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
html.menu-open { overflow: hidden; }
body {
	margin: 0;
	background: var(--ls-white);
	color: var(--ls-deep);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	font-weight: 500;
	line-height: 1.65;
	font-feature-settings: "lnum" 1;
}
button, input, select, textarea { font-family: inherit; font-feature-settings: inherit; }
img, svg, video { display: block; max-width: 100%; height: auto; }
/* No height here: Subsplash's embed script sizes its iframes with the height attribute
   (1000, then the form's real height by postMessage). A CSS height would override it. */
iframe { display: block; max-width: 100%; border: 0; }
p, ul, ol, dl, address { margin: 0 0 var(--space-4); }
address { font-style: normal; }
figure { margin: 0; }
h1, h2 {
	font-family: var(--font-display);
	font-weight: 800;
	letter-spacing: -0.015em;
	color: var(--ls-navy);
	margin: 0 0 var(--space-5);
	max-width: 22ch;
	text-wrap: balance; /* Design fix 6 */
}
h1 { font-size: var(--fs-h1); line-height: 1.05; }
h2 { font-size: var(--fs-h2); line-height: 1.1; }
h3, h4 { font-family: var(--font-body); font-weight: 700; font-size: var(--fs-h3); line-height: 1.25; color: var(--ls-navy); margin: 0 0 var(--space-3); }
p, li, dd, address { max-width: var(--measure); }
.lead { font-size: var(--fs-lead); line-height: 1.55; }
a { color: var(--ls-blue); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ls-blue); outline-offset: 2px; }
.muted { color: var(--ls-muted); }

/* Navy context (hero, closing band, footer, mobile menu). */
.on-navy { background: var(--ls-deep); color: var(--ls-white); }
.on-navy h1, .on-navy h2, .on-navy h3 { color: var(--ls-white); }
.on-navy a:not(.button) { color: var(--ls-white); }
.on-navy :focus-visible { outline-color: var(--ls-sky); }
.on-navy .muted { color: var(--ls-mist); }
/* White panels inside navy areas return to the light rules. */
.on-light { background: var(--ls-white); color: var(--ls-deep); }
.on-navy .on-light h2, .on-navy .on-light h3 { color: var(--ls-navy); }
.on-navy .on-light a:not(.button) { color: var(--ls-blue); }
.on-navy .on-light :focus-visible { outline-color: var(--ls-blue); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ================================================================== 4 Helpers */
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: var(--space-2); top: -100px; z-index: 100; padding: var(--space-3) var(--space-4); background: var(--ls-deep); color: var(--ls-white); font-weight: 700; }
.skip-link:focus { top: var(--space-2); outline-color: var(--ls-sky); }
.site-main:focus { outline: none; }
.config-notice { font-size: var(--fs-small); background: var(--ls-water); border-left: 4px solid var(--ls-blue); padding: var(--space-2) var(--space-3); }

/* ================================================================== 5 Layout primitives */
.container { width: 100%; max-width: calc(var(--container-max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-pad); }
.section--white { background: var(--ls-white); }
.section--water { background: var(--ls-water); }
/* Design fix 2: no media and under ~60 words. */
.section--short, .section--tight { padding-block: 40px; }
@media (min-width: 64em) { .section--short, .section--tight { padding-block: 64px; } }
/* Two sections of the same colour in a row read as one: don't double the padding. */
.section--white + .section--white, .section--water + .section--water { padding-top: 0; }
.prose > * { max-width: var(--measure); }
.split { display: grid; gap: var(--space-7); }
.split > * { min-width: 0; }
@media (min-width: 64em) {
	.split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-8); align-items: center; }
	.split--media-left { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
	.split--media-left .split__media { order: -1; }
	.split--form { grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); align-items: start; }
}
/* Design fix 1: text-only sections. h2 (+ lead/subheading) left third, body right two thirds. */
.split-head__body > * { max-width: var(--measure); }
.split-head__head > :last-child { margin-bottom: var(--space-5); }
@media (min-width: 62.5em) {
	.split-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-8); align-items: start; }
	.split-head__head > :last-child { margin-bottom: 0; }
	.split-head__body > :first-child { margin-top: 0; }
}
.split__media img, .photo--rounded { width: 100%; height: auto; border-radius: var(--radius); }
figcaption { margin-top: var(--space-2); font-size: var(--fs-small); color: var(--ls-muted); }
.photo-empty { width: 100%; background: var(--ls-water); border-radius: var(--radius); }
.section--water .photo-empty { background: var(--ls-white); }

/* ================================================================== 6 Buttons */
.button {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: var(--control-min); padding: 16px 26px;
	border: 2px solid transparent; border-radius: var(--radius);
	font-size: var(--fs-ui); font-weight: 700; line-height: 1.25; text-align: center; /* 1.25 so a long label that wraps on a phone stays readable. */
	text-decoration: none; cursor: pointer;
	transition: transform var(--press) ease-out, box-shadow var(--press) ease-out;
}
.button--primary { background: var(--ls-blue); color: var(--ls-white); box-shadow: var(--edge) var(--edge) 0 var(--ls-deep); }
.button--primary:hover, .button--primary:focus-visible { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ls-deep); }
.button--primary:active { transform: translate(var(--edge), var(--edge)); box-shadow: 0 0 0 var(--ls-deep); }
.on-navy .button--primary { background: var(--ls-white); color: var(--ls-deep); box-shadow: var(--edge) var(--edge) 0 var(--ls-sky); }
.on-navy .button--primary:hover, .on-navy .button--primary:focus-visible { box-shadow: 3px 3px 0 var(--ls-sky); }
.on-navy .button--primary:active { box-shadow: 0 0 0 var(--ls-sky); }
.on-navy .on-light .button--primary { background: var(--ls-blue); color: var(--ls-white); box-shadow: var(--edge) var(--edge) 0 var(--ls-deep); }
.on-navy .on-light .button--primary:hover, .on-navy .on-light .button--primary:focus-visible { box-shadow: 3px 3px 0 var(--ls-deep); }
.button--secondary { background: transparent; color: var(--ls-blue); border-color: var(--ls-blue); }
.button--secondary:hover { background: var(--ls-water); }
.on-navy .button--secondary { color: var(--ls-white); border-color: var(--ls-white); }
.on-navy .button--secondary:hover { background: var(--ls-navy); }
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }
.button-row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; margin-bottom: var(--space-5); }
.button-row:last-child { margin-bottom: 0; }
/* Section-ending links are secondary buttons (design-system section 6). Two or more side by
   side wrap on wide screens and stack on phones. */
.button-row--end { margin-top: var(--space-2); }
@media (max-width: 29.99em) {
	.button-row { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
}

/* ================================================================== 7 Header + mobile menu */
.site-header { position: sticky; top: 0; z-index: 50; }
.site-header__bar {
	position: relative; z-index: 2;
	display: flex; align-items: center; gap: var(--space-3);
	padding-block: var(--space-3);
	background: var(--ls-white); border-bottom: 1px solid var(--ls-line);
	max-width: none; transition: padding var(--press) ease-out;
}
.site-header__bar { padding-inline: max(var(--gutter), calc((100vw - var(--container-max)) / 2)); }
/* Phones: as large as fits beside the Plan Your Visit and menu buttons. 170px from 390px
   wide; at 360px it is 140px. (Phase 6: 260px desktop, 210px when the header shrinks.) */
.site-header__logo { display: block; flex: 0 1 auto; width: clamp(120px, calc(100vw - 220px), 170px); transition: width var(--press) ease-out; }
.site-header__logo svg { width: 100%; height: auto; }
.site-nav { display: none; }
.site-header__bar > .button--primary { margin-left: auto; min-height: 44px; padding: 12px 10px; font-size: 0.875rem; white-space: nowrap; }
@media (max-width: 29.99em) {
	/* Phones: a slightly narrower gutter and gap in the header bar only, so the logo can be 170px at 390px. */
	.site-header__bar { gap: 6px; padding-inline: 16px; }
	.site-header__bar > .button--primary { padding-inline: 8px; }
}
.menu-toggle {
	display: inline-flex; align-items: center; justify-content: center; flex: none;
	width: 44px; height: 44px; padding: 0;
	background: none; color: var(--ls-blue); border: 2px solid var(--ls-blue); border-radius: var(--radius); cursor: pointer;
}
.menu-toggle__icon, .menu-toggle__icon::before, .menu-toggle__icon::after { display: block; width: 20px; height: 2px; background: currentColor; transition: transform var(--press) ease-out; }
.menu-toggle__icon { position: relative; }
.menu-toggle__icon::before, .menu-toggle__icon::after { content: ""; position: absolute; left: 0; }
.menu-toggle__icon::before { top: -6px; }
.menu-toggle__icon::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 1; overflow-y: auto; padding: 104px 0 var(--space-7); }
.mobile-menu[hidden] { display: none; }
.mobile-menu__list { list-style: none; margin: 0 0 var(--space-6); padding: 0; }
.mobile-menu__list a { display: flex; align-items: center; min-height: 56px; font-size: var(--fs-h3); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--ls-navy); }
.mobile-menu__list a:hover { text-decoration: underline; }
.mobile-menu__details { font-size: var(--fs-lead); line-height: 1.6; color: var(--ls-mist); }
.mobile-menu__details a { font-weight: 700; }

@media (min-width: 30em) {
	.site-header__bar > .button--primary { padding: 14px 20px; font-size: var(--fs-ui); }
	.site-header__logo { width: 190px; }
}
@media (min-width: 75em) {
	.site-header__bar { padding-block: var(--space-4); gap: var(--space-6); }
	.site-nav { display: block; margin-left: auto; }
	.site-nav__list { display: flex; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
	.site-nav__list a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ls-deep); font-size: var(--fs-ui); font-weight: 600; text-decoration: none; }
	.site-nav__list a:hover, .site-nav__list a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
	.site-header__bar > .button--primary { margin-left: 0; min-height: var(--control-min); padding: 16px 26px; }
	.menu-toggle, .mobile-menu { display: none !important; }
	.site-header__logo { width: 260px; }
	.is-scrolled .site-header__bar { padding-block: var(--space-2); }
	.is-scrolled .site-header__logo { width: 210px; }
}

/* ================================================================== 8 Hero (navy, photo with the arc) */
.hero { display: grid; }
.hero__text { padding: var(--space-7) var(--gutter) var(--space-7); }
.hero h1 { margin-bottom: var(--space-5); }
.hero__time { font-size: var(--fs-lead); font-weight: 700; margin-bottom: var(--space-1); }
.hero__address { color: var(--ls-mist); margin-bottom: var(--space-6); }
.on-navy .hero__address { color: var(--ls-mist); }
.hero__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.hero__media picture, .hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.arc { border-top-left-radius: 100% 100%; }
@media (min-width: 64em) {
	.hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(680px, 78vh); } /* Design fix 7 */
	.hero__text {
		align-self: center;
		padding-block: var(--space-9);
		padding-left: max(var(--gutter), calc((100vw - var(--container-max)) / 2));
		padding-right: var(--space-7);
	}
	/* The photo must not set the hero height (design fix 7): it fills whatever the row is. */
	.hero__media { aspect-ratio: auto; height: 100%; min-height: 100%; }
	.hero__media picture { position: absolute; inset: 0; }
	.hero__media img { object-position: 0% 40%; } /* Keep the left of the crop: the arc covers it (content/photos.php). */
}

/* ================================================================== 9 Hero with form (Plan Your Visit) */
.hero-form { padding-block: var(--space-6) var(--space-7); }
.hero-form__grid { display: grid; gap: var(--space-6); }
.hero-form__intro { max-width: 52ch; margin-bottom: 0; }
.hero-form__status { font-size: var(--fs-large); font-weight: 700; line-height: 1.35; max-width: 30ch; }
.hero-next__title { font-family: var(--font-body); font-size: var(--fs-lead); font-weight: 700; letter-spacing: 0; margin-bottom: var(--space-3); }
.hero-next__list { margin: 0; padding-left: 1.4em; }
.hero-next__list li { padding-left: var(--space-1); margin-bottom: var(--space-2); }
.hero-next__list li::marker { font-weight: 700; color: var(--ls-sky); }
.hero-form h1 { font-size: clamp(2rem, 1.2135rem + 3.2266vw, 3.5rem); max-width: 18ch; margin-bottom: var(--space-4); }
.form-panel { border-radius: var(--radius); padding: var(--space-5); }
.form-panel--outlined { border: 1px solid var(--ls-line); }
@media (min-width: 64em) {
	.hero-form { padding-block: var(--space-8) var(--space-9); }
	.hero-form__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 34rem); gap: var(--space-6) var(--space-8); align-items: start; }
	/* Design fix 10: the list sits under the intro on desktop, after the form on mobile. */
	.hero-form__grid--next { grid-template-areas: "text form" "next form"; grid-template-rows: auto 1fr; }
	.hero-form__grid--next .hero-form__text { grid-area: text; }
	.hero-form__grid--next .form-panel { grid-area: form; }
	.hero-form__grid--next .hero-next { grid-area: next; }
	.hero-form__text { padding-top: var(--space-6); }
	.form-panel { padding: var(--space-6); }
}

/* ================================================================== 10 Page header */
.page-header h1 { max-width: 18ch; }
.page-header .lead { max-width: 60ch; }

/* ================================================================== 11 Text, verbatim, links */
.verbatim--large { font-size: var(--fs-large); font-weight: 700; line-height: 1.35; color: var(--ls-navy); }
.on-navy .verbatim--large { color: var(--ls-white); }
.pull-quote { margin: var(--space-6) 0; padding-left: var(--space-5); border-left: 4px solid var(--ls-blue); }
.pull-quote p { font-size: var(--fs-lead); font-weight: 600; line-height: 1.55; color: var(--ls-navy); margin: 0; }
.nap { margin-bottom: var(--space-4); }
.next-list { list-style: none; padding: 0; }
.next-list li { padding-block: var(--space-3); border-bottom: 1px solid var(--ls-line); }
.next-list li:first-child { border-top: 1px solid var(--ls-line); }
.next-list a { font-weight: 700; }
.link-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); }
.link-list a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; font-size: var(--fs-lead); }
.statement__part + .statement__part { margin-top: var(--space-7); padding-top: var(--space-7); border-top: 1px solid var(--ls-line); }
.statement h2 { margin-bottom: var(--space-2); }
.subheading { color: var(--ls-muted); }

/* ================================================================== 12 Columns, team, cards */
.columns { list-style: none; margin: 0 0 var(--space-6); padding: 0; display: grid; gap: var(--space-6) var(--space-7); }
.columns__item p:last-child { margin-bottom: 0; }
.columns__item h3 a { color: inherit; }
@media (min-width: 48em) {
	.columns--2, .columns--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.columns--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 64em) { .columns--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.columns__photo { margin-top: var(--space-7); }
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-7) var(--space-5); }
@media (min-width: 64em) { .team { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.team__photo { width: 120px; height: 120px; border-radius: var(--radius); object-fit: cover; margin-bottom: var(--space-4); }
.team h3 { margin-bottom: var(--space-1); }
.cards { list-style: none; margin: 0 0 var(--space-6); padding: 0; display: grid; gap: var(--space-7) var(--space-6); }
@media (min-width: 48em) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Sermon card: whole card is one link; no border, no shadow. */
.sermon-card__link { display: block; color: inherit; text-decoration: none; }
.sermon-card__thumb { display: block; aspect-ratio: 16 / 9; background: var(--ls-water); border-radius: var(--radius); overflow: hidden; margin-bottom: var(--space-4); }
.section--water .sermon-card__thumb { background: var(--ls-white); }
.sermon-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
/* No featured image: Deep Navy tile, white spring mark, passage in white Raleway (Phase 6). */
.sermon-tile { display: grid; place-content: center; justify-items: center; gap: var(--space-3); width: 100%; height: 100%; padding: var(--space-4); background: var(--ls-deep); color: var(--ls-white); text-align: center; }
.sermon-card__thumb .sermon-tile__mark, .sermon-tile__mark { width: 40px; height: auto; object-fit: contain; }
.sermon-tile__passage { font-family: var(--font-body); font-weight: 700; font-size: var(--fs-lead); line-height: 1.25; }
.facade--tile .sermon-tile { position: absolute; inset: 0; place-content: end start; justify-items: start; text-align: left; padding: var(--space-5); }
.facade--tile .facade__play { background: var(--ls-white); }
.facade--tile .facade__play::before { border-color: transparent transparent transparent var(--ls-deep); }
.sermon-card__title { margin-bottom: var(--space-2); }
.sermon-card__link:hover .sermon-card__title, .sermon-card__link:focus-visible .sermon-card__title { text-decoration: underline; text-underline-offset: 2px; }
.sermon-card__passage, .sermon-card__date { display: block; color: var(--ls-muted); font-size: var(--fs-small); }
.event-list { list-style: none; padding: 0; }
.event-list__item + .event-list__item { margin-top: var(--space-6); }
.event__details dt { font-weight: 700; }
.event__details dd { margin: 0 0 var(--space-3); }

/* ================================================================== 13 FAQ */
.faq__list { max-width: 52rem; margin-bottom: var(--space-6); border-top: 1px solid var(--ls-line); }
.faq__item { border-bottom: 1px solid var(--ls-line); }
.faq__item summary {
	display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
	min-height: 56px; padding-block: var(--space-4);
	font-size: var(--fs-h3); font-weight: 700; line-height: 1.25; color: var(--ls-navy);
	list-style: none; cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { /* plus, drawn with two bars */
	content: ""; flex: none; width: 16px; height: 16px;
	background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
	            linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
}
.faq__item[open] summary::after { background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
.faq__answer { padding-bottom: var(--space-5); }
.faq__answer p { margin: 0; }

/* ================================================================== 14 Forms */
.form-wrap__heading { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: var(--space-5); }
.form__field { margin-bottom: var(--space-5); }
.form__field label { display: block; font-weight: 600; margin-bottom: var(--space-2); }
.form__optional, .form__help { font-weight: 500; color: var(--ls-muted); }
.form__help { font-size: var(--fs-small); line-height: 1.5; margin: var(--space-2) 0 0; }
.form input, .form select, .form textarea {
	width: 100%; min-height: var(--control-min); padding: var(--space-3) var(--space-4);
	font-size: max(16px, var(--fs-body));
	color: var(--ls-deep); background: var(--ls-white);
	border: 1.5px solid var(--ls-field); border-radius: var(--radius);
}
.form textarea { min-height: 0; resize: vertical; }
.form-panel .form .button { width: 100%; }
@media (min-width: 62.5em) {
	.form-panel .form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-4); }
	.form-panel .form > * { grid-column: 1 / -1; }
	.form-panel .form > .form__field--half { grid-column: auto; }
}
.form__field--checkbox { display: flex; gap: var(--space-3); align-items: flex-start; }
.form__field--checkbox input { width: 24px; height: 24px; min-height: 0; margin: 2px 0 0; flex: none; accent-color: var(--ls-blue); }
.form__field--checkbox label { font-weight: 500; margin: 0; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--ls-error); border-width: 2px; }
.form .button { width: 100%; margin-top: var(--space-2); }
@media (min-width: 48em) { .form .button { width: auto; } .form-panel .form .button { width: 100%; } }
.form__note { font-size: var(--fs-small); color: var(--ls-muted); margin: var(--space-4) 0 0; }
.form__error, .form-errors > p { display: flex; gap: var(--space-2); align-items: flex-start; color: var(--ls-error); font-size: var(--fs-small); line-height: 1.5; margin: var(--space-2) 0 0; }
.form__error::before, .form-errors > p::before {
	content: ""; flex: none; width: 1.1em; height: 1.1em; margin-top: 0.15em; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1 5h2v7h-2V7Zm0 9h2v2h-2v-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1 5h2v7h-2V7Zm0 9h2v2h-2v-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.form-errors { padding: var(--space-4) var(--space-5); margin-bottom: var(--space-5); border: 2px solid var(--ls-error); border-radius: var(--radius); background: var(--ls-white); color: var(--ls-deep); }
.form-errors > p { font-size: var(--fs-body); font-weight: 700; margin: 0 0 var(--space-2); }
.form-errors ul { margin: 0; padding-left: var(--space-6); }
.form-errors a { color: var(--ls-error); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ================================================================== 15 Subsplash facade + map */
.facade { position: relative; display: grid; place-items: center; background: var(--ls-water); border-radius: var(--radius); overflow: hidden; }
.facade--video { aspect-ratio: 16 / 9; }
.facade--library { min-height: 36rem; }
.facade__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.facade__play { position: relative; width: 64px; height: 64px; border: 0; border-radius: 50%; background: var(--ls-deep); cursor: pointer; }
.facade__play::before { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%); border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent var(--ls-white); }
.facade__play:focus-visible { outline-offset: 4px; }
.facade.is-loaded { display: block; place-items: normal; background: none; }
.facade__embed { width: 100%; }
/* Loaded embeds: full width. A plain iframe with no height attribute fills the 16:9 frame;
   a script-sized iframe (height attribute) keeps its own height. */
.facade--video.is-loaded:has(iframe[height]) { aspect-ratio: auto; }
.facade__embed iframe { width: 100%; }
.facade--video .facade__embed iframe:not([height]) { aspect-ratio: 16 / 9; }
/* Giving form: at most 640px wide, left-aligned with the content column; full column
   width on phones. While it loads, the box is held at 500px (about the form's settled
   height) and clips the iframe's first 1000px height; assets/js/main.js releases it
   (.is-settled) once Subsplash sets the real height, so nothing jumps and no gap is left. */
.giving-embed { max-width: 640px; height: 500px; overflow: hidden; }
.giving-embed.is-settled { height: auto; overflow: visible; }
.giving-embed iframe { width: 100%; }
.map-facade { display: grid; place-content: center; justify-items: center; gap: var(--space-4); aspect-ratio: 4 / 3; padding: var(--space-5); text-align: center; background: var(--ls-water); border-radius: var(--radius); }
.section--water .map-facade { background: var(--ls-white); }
.map-facade__address { margin: 0; font-weight: 600; }
.map-facade.is-loaded { display: block; position: relative; padding: 0; overflow: hidden; }
.map-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ================================================================== 16 Closing band (arc on the top edge) */
.closing { position: relative; margin-top: var(--arc-h); padding-block: var(--section-pad); }
.closing::before {
	content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: var(--arc-h);
	background: var(--ls-deep);
	clip-path: ellipse(75% 100% at 50% 100%); /* one shallow convex curve */
}
.closing__text { font-size: var(--fs-lead); line-height: 1.55; max-width: 52ch; margin-bottom: var(--space-6); }

/* ================================================================== 17 Thank-you + 404 */
.thank-you { min-height: calc(100vh - 200px); display: grid; align-items: center; }
.thank-you__inner { text-align: center; }
.thank-you__inner h1, .thank-you__inner p, .thank-you__inner ol { margin-inline: auto; }
.thank-you__steps { max-width: 34rem; padding: 0; list-style-position: inside; margin-bottom: var(--space-6); }
.thank-you__steps li { margin-bottom: var(--space-2); }
.thank-you .button-row { justify-content: center; }

/* ================================================================== 18 Footer */
.site-footer { padding-block: var(--space-8) var(--space-6); border-top: 1px solid var(--ls-navy); }
.site-footer__grid { display: grid; gap: var(--space-7); }
@media (min-width: 48em) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer__logo { display: inline-block; width: 220px; margin-bottom: var(--space-5); }
.site-footer__logo .logo { width: 100%; height: auto; }
.site-footer__heading { font-family: var(--font-body); font-size: var(--fs-ui); font-weight: 700; letter-spacing: 0; margin-bottom: var(--space-3); }
.site-footer__list, .site-footer__social { list-style: none; margin: 0; padding: 0; }
.site-footer__list a, .site-footer__social a { display: inline-flex; align-items: center; min-height: 40px; }
/* Footer links: no permanent underline; underline on hover and keyboard focus (the focus
   outline stays). */
.site-footer a { text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.site-footer__social { display: flex; flex-wrap: wrap; gap: var(--space-5); margin-top: var(--space-6); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--ls-navy); font-size: var(--fs-small); color: var(--ls-mist); }
.site-footer__legal p { margin: 0; }

/* ================================================================== 19 Phase 2 components */
.steps { margin: 0 0 var(--space-5); padding-left: 1.5em; }
.steps li { padding-left: var(--space-2); margin-bottom: var(--space-3); }
.steps li::marker { font-weight: 700; color: var(--ls-blue); }
.plain-list { margin: 0 0 var(--space-5); padding-left: 1.25em; }
.plain-list li { margin-bottom: var(--space-2); }
.glance { margin: 0; border-top: 1px solid var(--ls-line); }
.glance__row { display: grid; gap: var(--space-1) var(--space-5); padding-block: var(--space-3); border-bottom: 1px solid var(--ls-line); }
.glance dt { font-weight: 700; color: var(--ls-navy); }
.glance dd { margin: 0; }
@media (min-width: 40em) { .glance__row { grid-template-columns: 10rem minmax(0, 1fr); } }
.scripture { margin: var(--space-5) 0 0; padding-left: var(--space-5); border-left: 4px solid var(--ls-blue); }
.scripture p { font-size: var(--fs-lead); line-height: 1.55; color: var(--ls-navy); margin-bottom: var(--space-2); }
.scripture cite { font-style: normal; font-size: var(--fs-small); color: var(--ls-muted); }
.small-link { font-size: var(--fs-small); margin-top: var(--space-6); }
.small-link a { font-weight: 700; }
.page-header__updated { color: var(--ls-muted); font-size: var(--fs-small); }
.event__when { margin-bottom: 0; }
.sermon__player { max-width: 52rem; }
.urgent-help .split-head__body p { font-weight: 600; }
.book-index { list-style: none; margin: 0 0 var(--space-5); padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.book-index a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: var(--fs-lead); }
.prose-section h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: var(--space-7) 0 var(--space-3); }
.prose-section h2:first-child { margin-top: 0; }
/* Sermon: passage, date and speaker on separate lines (sermons deck). */
.sermon__meta { display: block; color: var(--ls-muted); }
.sermon__meta > * { display: block; }
/* The closing-band form matches the hero form column. */
@media (min-width: 64em) { .closing .split--form { grid-template-columns: minmax(0, 1fr) minmax(0, 34rem); } }
.columns__intro { max-width: var(--measure); margin-bottom: var(--space-6); }
.sermon__transcript .faq__item { max-width: 52rem; border-top: 1px solid var(--ls-line); }
