/* Covenant theme
   Palette: royal blue + saffron gold on white.
   Type: Bricolage Grotesque (display), Atkinson Hyperlegible (body; chosen for readability at every age). */

@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 500 800; font-style: normal; font-display: swap; }
/* Digits come from Bricolage: Atkinson's slashed zero reads oddly in service times. */
@font-face { font-family: "KDC Digits"; src: url("../fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 400 800; unicode-range: U+0030-0039; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
	--ink: #141A33;
	--blue: #1E2A78;
	--blue-deep: #172063;
	--stone: #EEF0F6;
	--line: #D5D9E6;
	--muted: #4E5672;
	--paper: #FFFFFF;
	--accent: #F2B33D;
	--on-accent: #141A33;
	--ok: #1E7B4F;
	--error: #B42318;

	--display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
	--body: "KDC Digits", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--radius: 0.75rem;
	--gap: clamp(1.25rem, 3vw, 2.5rem);
	--section: clamp(3.5rem, 8vw, 6rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: 1.125rem;
	line-height: 1.6;
}

img, video, iframe { max-width: 100%; height: auto; }
img { display: block; }

a { color: var(--blue); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--accent); text-decoration-thickness: 0.18em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
	font-family: var(--display);
	line-height: 1.1;
	letter-spacing: -0.015em;
	margin: 0 0 0.6em;
}
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.375rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, 1200px); margin-inline: auto; }
.narrow { max-width: 34rem; }

.screen-reader-text,
.hp {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute; left: 1rem; top: -4rem; z-index: 100;
	background: var(--accent); color: var(--on-accent);
	padding: 0.75rem 1rem; border-radius: 0.5rem; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 0.85rem 1.5rem;
	border: 2px solid transparent; border-radius: 999px;
	font-family: var(--display); font-weight: 700; font-size: 1.0625rem; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-small { padding: 0.55rem 1.1rem; font-size: 1rem; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--ink); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--blue); color: #fff; }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--blue); }
.btn-outline { border-color: currentColor; color: inherit; }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.link-more { font-family: var(--display); font-weight: 700; color: var(--ink); }

/* ---------- Header ---------- */

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.75rem; position: relative; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.25rem; line-height: 1.15; display: block; max-width: 16ch; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.custom-logo { max-height: 3.25rem; width: auto; }

.nav-toggle {
	display: inline-flex; align-items: center; gap: 0.6rem;
	background: none; border: 2px solid var(--ink); border-radius: 999px;
	padding: 0.5rem 0.95rem; font: 700 1rem var(--display); color: var(--ink); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
	display: block; width: 1.1rem; height: 2px; background: currentColor; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.site-nav { display: none; }
.nav-open .site-nav {
	display: flex; flex-direction: column; gap: 1rem;
	position: absolute; top: 100%; left: -1.25rem; right: -1.25rem;
	background: var(--paper); border-bottom: 1px solid var(--line);
	padding: 1rem 1.25rem 1.5rem;
	max-height: calc(100vh - 5rem); overflow-y: auto;
}

.menu { list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: 0.6rem 0; font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.menu .sub-menu { list-style: none; padding-left: 1rem; margin: 0; }
.menu .sub-menu a { font-size: 1.0625rem; font-weight: 500; }
.menu .current-menu-item > a,
.menu .current_page_item > a,
.menu .current-menu-ancestor > a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 0.2em; text-underline-offset: 0.35em; }

.nav-actions { display: flex; align-items: center; gap: 1.25rem; }
.nav-members { font-weight: 700; color: var(--ink); }

@media (min-width: 75em) {
	.nav-toggle { display: none; }
	.site-nav, .nav-open .site-nav {
		display: flex; flex-direction: row; align-items: center; gap: 2rem;
		position: static; padding: 0; border: 0; max-height: none; overflow: visible; background: none;
	}
	.menu { display: flex; gap: 1.25rem; }
	.menu a, .nav-members { white-space: nowrap; }
	.site-nav, .nav-open .site-nav { gap: 1.5rem !important; }
	.menu > li { position: relative; }
	.menu a { font-size: 1rem; padding: 0.4rem 0; }
	.menu a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 0.2em; text-underline-offset: 0.35em; }
	.menu .sub-menu {
		display: none; position: absolute; top: 100%; left: -1rem; min-width: 14rem;
		background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
		padding: 0.5rem 1rem;
	}
	.menu li:hover > .sub-menu,
	.menu li:focus-within > .sub-menu { display: block; }
}

/* ---------- Hero (home) ---------- */

.hero { background: var(--blue); color: #fff; padding-block: clamp(3.5rem, 9vw, 7.5rem); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.hero--media .hero-grid { grid-template-columns: 1fr; }
@media (min-width: 56em) { .hero--media .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }

.hero-welcome { font-family: var(--display); font-weight: 700; font-size: 1.25rem; margin-bottom: 1.25rem; color: #DCE1F5; }

.hero-time {
	display: flex; flex-direction: column;
	font-size: clamp(3.5rem, 12.5vw, 9.5rem);
	font-weight: 800; line-height: 0.88; letter-spacing: -0.04em;
	margin: 0 0 2rem;
	padding-left: clamp(1rem, 2.5vw, 1.75rem);
	border-left: clamp(0.4rem, 1vw, 0.65rem) solid var(--accent);
}
.hero-line { display: block; }

.hero-intro { font-size: 1.25rem; max-width: 36rem; color: #fff; }
.hero-address { color: #DCE1F5; margin: 0; }

.hero-media { margin: 0; }
.hero-media img {
	width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
	border-radius: var(--radius);
	box-shadow: 1.25rem 1.25rem 0 var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
	.hero-line { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
	.hero-line + .hero-line { animation-delay: 0.12s; }
	@keyframes rise { from { opacity: 0; transform: translateY(0.35em); } to { opacity: 1; transform: none; } }
}

/* ---------- Page hero ---------- */

.page-hero { background: var(--blue); color: #fff; padding-block: clamp(3rem, 7vw, 5rem); }
.page-title {
	font-size: clamp(2.5rem, 6.5vw, 4.75rem); font-weight: 800; letter-spacing: -0.035em; line-height: 0.95;
	margin: 0; padding-left: clamp(0.85rem, 2vw, 1.25rem);
	border-left: 0.45rem solid var(--accent);
	max-width: 20ch;
}
.page-sub { margin: 1.25rem 0 0; font-size: 1.1875rem; color: #DCE1F5; max-width: 40rem; }

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section--stone { background: var(--stone); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }

.split { display: grid; gap: var(--gap); }
@media (min-width: 52em) {
	.split { grid-template-columns: 1fr 1fr; align-items: start; }
	.split--detail { grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); }
}

.empty { color: var(--muted); font-size: 1.1875rem; }
.meta { color: var(--muted); font-size: 1rem; margin-bottom: 0.4rem; }
.meta--scripture { font-weight: 700; color: var(--ink); }
.small { font-size: 0.9375rem; color: var(--muted); }

/* ---------- Prose (editor content) ---------- */

.prose { max-width: 42rem; }
.prose--lead { font-size: 1.3125rem; }
.prose--lead h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.35em; }
.prose blockquote { margin: 1.5em 0; padding-left: 1.25rem; border-left: 0.3rem solid var(--accent); font-size: 1.25rem; }
.prose img { border-radius: var(--radius); }
.prose .alignwide { max-width: none; }
.prose figure { margin: 1.5em 0; }
.lead-image { margin: 0 0 2rem; }
.lead-image img { border-radius: var(--radius); width: 100%; }

/* ---------- Thumbnails ---------- */

.thumb { display: block; border-radius: var(--radius); overflow: hidden; background: var(--blue); aspect-ratio: 16 / 9; position: relative; }
.thumb-img { width: 100%; height: 100%; object-fit: cover; }
.thumb-placeholder { position: absolute; inset: 0; display: grid; place-items: center; }
.thumb-placeholder::after {
	content: ""; width: 3.25rem; height: 3.25rem; border-radius: 50%;
	background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%23141A33'/%3E%3C/svg%3E") center / 60% no-repeat;
}

/* ---------- Sermons ---------- */

.sermon-feature { display: grid; gap: var(--gap); align-items: center; }
@media (min-width: 52em) { .sermon-feature { grid-template-columns: 1.3fr 1fr; } }
.feature-title { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; }
.feature-title a, .card-title a, .event-title a, .ministry-name a { color: var(--ink); text-decoration: none; }
.feature-title a:hover, .card-title a:hover, .event-title a:hover, .ministry-name a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 0.15em; }

.sermon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 2.5rem var(--gap); }
.sermon-card .thumb { margin-bottom: 1rem; }
.card-title { font-size: 1.3125rem; margin-bottom: 0.35rem; }

.filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.filter a {
	padding: 0.45rem 1rem; border: 2px solid var(--line); border-radius: 999px;
	font-weight: 700; font-size: 1rem; color: var(--ink); text-decoration: none;
}
.filter a:hover { border-color: var(--ink); }
.filter a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.media-frame { margin-bottom: 2rem; }
.video { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { width: 100%; height: 100%; border: 0; }
.audio { max-width: 42rem; margin-bottom: 2rem; }

/* ---------- Events ---------- */

.event-list { border-bottom: 1px solid var(--line); }
.event-row { display: grid; grid-template-columns: 5rem 1fr; gap: 1.25rem 1.5rem; padding-block: 1.5rem; border-top: 1px solid var(--line); }
.event-date {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	background: var(--blue); color: #fff; border-radius: var(--radius);
	aspect-ratio: 1; font-family: var(--display);
}
.event-day { font-size: 2.25rem; font-weight: 800; line-height: 1; }
.event-month { font-weight: 700; color: var(--accent); }
.event-title { font-size: 1.375rem; margin-bottom: 0.3rem; }
.event-excerpt { margin: 0.5rem 0 0; max-width: 40rem; }

/* ---------- Ministries ---------- */

.ministry-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); column-gap: var(--gap); }
.ministry-item { padding-block: 1.5rem; border-top: 3px solid var(--ink); }
.ministry-name { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.3rem; }
.ministry-item p:last-child { margin-bottom: 0; }

/* ---------- News ---------- */

.post-list { display: grid; gap: 2.5rem; max-width: 52rem; }
.post-row { display: grid; gap: 1.25rem; }
@media (min-width: 40em) { .post-row:has(.thumb) { grid-template-columns: 14rem 1fr; } }
.post-row .card-title { font-size: 1.5rem; }

.nav-links { display: flex; gap: 0.5rem; margin-top: 3rem; flex-wrap: wrap; }
.nav-links .page-numbers {
	min-width: 2.75rem; padding: 0.5rem 0.9rem; text-align: center;
	border: 2px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 700;
}
.nav-links .current { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Give band ---------- */

.give-band { background: var(--accent); color: var(--on-accent); padding-block: var(--section); }
.give-grid { display: grid; gap: 1.5rem var(--gap); align-items: end; }
@media (min-width: 52em) { .give-grid { grid-template-columns: 1.1fr 1fr; } }
.give-title { font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 0.98; letter-spacing: -0.03em; margin: 0; max-width: 14ch; }
.give-band p { font-size: 1.1875rem; max-width: 34rem; }
.give-band .actions { margin-top: 1.25rem; }

.give-option { padding-block: 1.25rem; border-top: 1px solid var(--line); }
.give-option h3 { margin-bottom: 0.3rem; }
.give-option p:last-child { margin-bottom: 0; }

/* ---------- Times, address, map ---------- */

.times { margin: 0 0 2rem; }
.times-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; padding-block: 0.8rem; border-bottom: 1px solid var(--line); }
.times-row:first-child { border-top: 1px solid var(--line); }
.times dt { font-weight: 700; }
.times dd { margin: 0; }

.address { font-style: normal; margin-bottom: 1rem; }

.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--stone); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-link { margin-top: 0.75rem; font-weight: 700; }

/* ---------- Boxes ---------- */

.panel { background: var(--stone); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); }
.detail-box { border-top: 0.45rem solid var(--accent); background: var(--stone); padding: 1.5rem; border-radius: 0 0 var(--radius) var(--radius); }
.detail-heading { font-size: 1.0625rem; font-weight: 700; margin: 1.25rem 0 0.25rem; }
.detail-heading:first-child { margin-top: 0; }
.detail-box .map { margin-top: 1.5rem; }

/* ---------- Forms ---------- */

.form { display: grid; gap: 0.25rem; }
.form-grid { display: grid; gap: 0 1rem; }
@media (min-width: 36em) {
	.form-grid { grid-template-columns: 1fr 1fr; }
	.form-grid--names { grid-template-columns: 5.5rem 1fr 1fr; }
}
.field { margin: 0 0 1rem; border: 0; padding: 0; min-width: 0; }
.field label, .field legend, .login-username label, .login-password label { display: block; font-weight: 700; margin-bottom: 0.35rem; }

.form input[type="text"], .form input:not([type]), .form input[type="email"], .form input[type="number"],
.form textarea, .panel input[type="text"], .panel input[type="password"], .search-form input[type="search"] {
	width: 100%; padding: 0.75rem 0.9rem;
	font: inherit; color: var(--ink); background: var(--paper);
	border: 2px solid var(--line); border-radius: 0.5rem;
}
.form input:focus, .form textarea:focus, .panel input:focus { border-color: var(--blue); outline: 3px solid var(--accent); outline-offset: 1px; }

.choice { display: flex; gap: 0.65rem; align-items: flex-start; margin-bottom: 0.6rem; font-weight: 400; }
.choice input { margin-top: 0.35rem; width: 1.15rem; height: 1.15rem; accent-color: var(--blue); flex: none; }
.choice--declare { background: var(--paper); border: 2px solid var(--line); border-radius: 0.5rem; padding: 1rem; margin-block: 0.5rem 1rem; }
.choice--declare label { font-weight: 400; }

.form .btn { justify-self: start; margin-top: 0.5rem; }

.notice { padding: 1rem 1.25rem; border-left: 0.4rem solid var(--blue); background: var(--stone); border-radius: 0 0.5rem 0.5rem 0; font-weight: 700; }
.notice--ok { border-color: var(--ok); }
.notice--error { border-color: var(--error); }
.panel .notice { background: var(--paper); }

#loginform p { margin-bottom: 1rem; }
#loginform .login-remember label { display: flex; gap: 0.5rem; align-items: center; font-weight: 400; }
#loginform .button-primary {
	padding: 0.85rem 1.5rem; border: 0; border-radius: 999px;
	background: var(--ink); color: #fff; font: 700 1.0625rem var(--display); cursor: pointer;
}
#loginform .button-primary:hover { background: var(--blue); }

.search-form { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.search-form label { flex: 1; }
.search-submit { padding: 0.75rem 1.25rem; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 700 1rem var(--display); cursor: pointer; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #D9DDEB; padding-top: var(--section); font-size: 1rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 2.5rem var(--gap); }
@media (min-width: 52em) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-name { font-family: var(--display); font-weight: 800; font-size: 1.75rem; color: #fff; line-height: 1.1; }
.footer-heading { font-size: 1.125rem; color: #fff; }
.site-footer .times-row { border-color: rgba(255, 255, 255, 0.15); }
.site-footer .times { margin-bottom: 0; }
.site-footer .small { color: #B9BFD6; }
.footer-list, .footer-menu { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.footer-list li, .footer-menu li { margin-bottom: 0.4rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 3rem; padding-block: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.footer-bottom p { margin: 0; }

/* ---------- Block editor alignment ---------- */

.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }
.wp-block-button__link { border-radius: 999px; font-family: var(--display); font-weight: 700; }
.wp-element-caption, figcaption { font-size: 0.9375rem; color: var(--muted); margin-top: 0.5rem; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Polish */
.field .choice { display: flex; font-weight: 400; margin-bottom: 0.6rem; }
.prose + h2 { margin-top: 2.5rem; }

/* ---------- KDC additions ---------- */

.form select,
.form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
	width: 100%; padding: 0.75rem 0.9rem;
	font: inherit; color: var(--ink); background: var(--paper);
	border: 2px solid var(--line); border-radius: 0.5rem;
}
.form select:focus, .form input:focus { border-color: var(--blue); outline: 3px solid var(--accent); outline-offset: 1px; }
.help { display: block; font-size: 0.9375rem; color: var(--muted); margin: -0.15rem 0 0.4rem; }
.field-title { font-weight: 700; margin: 0.5rem 0 0.35rem; }
.actions--tight { margin: 0.75rem 0 1.5rem; }
.section-title { margin-top: 3rem; }
.panel--white { background: var(--paper); }

/* Mission statements on the homepage */
.mission-list { list-style: none; padding: 0 !important; margin: 2rem 0 0; display: grid; gap: 1rem; }
.mission-list li {
	margin: 0; padding: 1rem 0 1rem 1.25rem;
	border-left: 0.35rem solid var(--accent);
	font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.25;
}

/* Photo strip */
.photo-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(16rem, 1fr); overflow-x: auto; gap: 0.5rem; scroll-snap-type: x mandatory; }
.strip-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: start; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.75rem; margin: 1.5rem 0; }
.photo-grid figure { margin: 0; }
.photo-grid img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

/* Accordions (About page) */
.wp-block-details { border-top: 3px solid var(--ink); margin: 0; padding: 0; }
.wp-block-details:last-of-type { border-bottom: 3px solid var(--ink); }
.wp-block-details summary {
	cursor: pointer; list-style: none;
	display: flex; justify-content: space-between; align-items: center; gap: 1rem;
	padding: 1.25rem 0; font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 3vw, 1.9rem);
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; font-size: 1.6em; line-height: 1; color: var(--blue); }
.wp-block-details[open] summary::after { content: "–"; }
.wp-block-details > *:last-child { margin-bottom: 1.75rem; }
.prose .wp-block-details:first-of-type { margin-top: 2.5rem; }

/* Leaders */
.leaders { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 1.5rem; margin: 0.5rem 0 2rem; }
.leader-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); display: block; background: var(--stone); }
.leader-name { font-size: 1.2rem; margin: 0.85rem 0 0.15rem; }
.leader-role { color: var(--muted); margin: 0; font-size: 1rem; }

/* Members area */
.members { display: grid; gap: var(--gap); }
@media (min-width: 56em) { .members { grid-template-columns: 14rem minmax(0, 1fr); align-items: start; } }
.members-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
@media (min-width: 56em) { .members-nav ul { flex-direction: column; position: sticky; top: 6rem; } }
.members-nav a {
	display: block; padding: 0.6rem 1rem; border-radius: 999px;
	font-family: var(--display); font-weight: 700; color: var(--ink); text-decoration: none; border: 2px solid var(--line);
}
@media (min-width: 56em) { .members-nav a { border-radius: 0.5rem; border-color: transparent; } }
.members-nav a:hover { border-color: var(--ink); }
.members-nav a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.prose--wide { max-width: 50rem; }
.members-main > h2:first-child { margin-top: 0; }

.table-wrap { overflow-x: auto; margin: 0.75rem 0 1rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.data-table th, .data-table td { text-align: left; padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table th { font-family: var(--display); }
.ga-status { padding: 0.75rem 1rem; background: var(--stone); border-radius: 0.5rem; }

.resource-list { display: grid; gap: 1rem; }
.resource { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.resource-more summary { cursor: pointer; font-weight: 700; margin-bottom: 0.75rem; }

/* Give */
.give-qr { width: 11rem; height: auto; border-radius: 0.5rem; background: #fff; padding: 0.5rem; border: 1px solid var(--line); }
.event-book { margin: 0.75rem 0 0; }

/* Calendar */
.calendar { margin-bottom: 1rem; }
.calendar-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.calendar-title { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); min-width: 10ch; }
.calendar-nav {
	display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%;
	border: 2px solid var(--line); color: var(--ink); text-decoration: none; font-size: 1.5rem; line-height: 1;
}
.calendar-nav:hover { border-color: var(--ink); }
.calendar-grid { width: 100%; min-width: 40rem; border-collapse: collapse; table-layout: fixed; }
.calendar-grid th { font-family: var(--display); font-size: 0.9375rem; text-align: left; padding: 0.4rem 0.5rem; color: var(--muted); }
.calendar-grid td { vertical-align: top; height: 6.5rem; padding: 0.4rem; border: 1px solid var(--line); }
.calendar-grid td.is-empty { background: var(--stone); }
.calendar-grid td.is-today { box-shadow: inset 0 0 0 3px var(--accent); }
.calendar-day { display: block; font-weight: 700; font-size: 0.9375rem; margin-bottom: 0.25rem; }
.calendar-event {
	display: block; margin-bottom: 0.25rem; padding: 0.2rem 0.4rem; border-radius: 0.35rem;
	background: var(--blue); color: #fff; font-size: 0.8125rem; line-height: 1.3; text-decoration: none;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.calendar-event:hover { background: var(--ink); color: #fff; }
.calendar-time { font-weight: 700; color: var(--accent); }

.footer-tagline { font-family: var(--display); font-weight: 700; color: var(--accent); margin-top: -0.5rem; }

/* Click-to-load map */
.map-load {
	width: 100%; height: 100%; border: 0; cursor: pointer;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem;
	background: var(--stone); color: var(--ink); font: 700 1.125rem var(--display);
	background-image: radial-gradient(circle at 1px 1px, rgba(30, 42, 120, 0.14) 1px, transparent 0);
	background-size: 18px 18px;
}
.map-pin { width: 2.25rem; height: 2.25rem; border-radius: 50% 50% 50% 0; background: var(--blue); transform: rotate(-45deg); box-shadow: inset 0 0 0 0.6rem var(--blue), inset 0 0 0 2rem var(--accent); transition: transform 0.15s; margin-bottom: 0.4rem; }
.map-note { font: 400 0.875rem var(--body); color: var(--muted); }

.map-load:hover .map-pin { transform: rotate(-45deg) translate(2px, -2px); }
.add-cal { font-size: 1rem; display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; align-items: baseline; }
.add-cal-label { font-weight: 700; }
.section--stone .map, .section--stone .map-load { background-color: var(--paper); }

/* ---------- Teams (members area) ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.team-card {
	display: flex; flex-direction: column; gap: 0.35rem;
	padding: 1.25rem 1.25rem 1.1rem; border-radius: var(--radius);
	border-top: 0.4rem solid var(--blue); border-radius: 0 0 var(--radius) var(--radius); background: var(--stone);
	color: var(--ink); text-decoration: none;
}
.team-card:hover { border-top-color: var(--accent); }
.team-card:hover .team-name { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 0.15em; }
.team-name { font-family: var(--display); font-weight: 800; font-size: 1.4rem; line-height: 1.1; }
.team-blurb { font-size: 1rem; }
.team-meta { font-size: 0.875rem; color: var(--muted); margin-top: auto; padding-top: 0.5rem; }
.badge { align-self: flex-start; font-size: 0.8125rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.badge--on { background: var(--blue); color: #fff; border-color: var(--blue); }
.badge--lead { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

.back-link { margin-bottom: 0.5rem; font-weight: 700; }
.back-link a::before { content: "‹ "; }
.team-facts { display: flex; flex-wrap: wrap; gap: 0.5rem 2.5rem; margin: 0 0 1.25rem; }
.team-facts dt { font-size: 0.875rem; color: var(--muted); }
.team-facts dd { margin: 0; font-weight: 700; }
.team-join { margin: 1.5rem 0 2rem; padding: 1.25rem; border-radius: var(--radius); background: var(--stone); }
.team-join p { margin-bottom: 0.5rem; }
.team-join .field { margin-bottom: 0.75rem; }
.team-join textarea { width: 100%; padding: 0.75rem 0.9rem; font: inherit; border: 2px solid var(--line); border-radius: 0.5rem; background: var(--paper); }
.team-action { margin: 0; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--blue); text-decoration: underline; cursor: pointer; }

.leader-tools { margin: 2rem 0; padding: 1.5rem; border: 2px solid var(--accent); border-radius: var(--radius); }
.leader-tools h3 { margin-top: 0; }
.leader-tools h4 { font-family: var(--display); margin: 1.25rem 0 0.5rem; }
.team-requests { list-style: none; padding: 0 !important; margin: 0; }
.team-requests li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; padding: 0.9rem 0; border-top: 1px solid var(--line); }
.team-request-actions { display: flex; gap: 0.5rem; align-items: flex-start; }
.team-note { margin: 0.4rem 0 0; font-style: italic; }

.team-updates { display: grid; gap: 0; }
.team-update { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.team-update h4 { font-family: var(--display); font-size: 1.2rem; margin: 0 0 0.2rem; }
.team-update .prose { margin-top: 0.5rem; }

.team-members { list-style: none; padding: 0 !important; columns: 2 14rem; }
.team-members li { break-inside: avoid; padding: 0.4rem 0; display: flex; flex-direction: column; }
.team-member-name { font-weight: 700; }
.team-resources { padding-left: 1.1rem; }
.team-resources li { margin-bottom: 0.75rem; }

.prayer-list { display: grid; gap: 0.75rem; }
.prayer-item { margin: 0 !important; padding: 1rem 1.25rem !important; background: var(--stone); border-left: 0.3rem solid var(--accent); border-radius: 0 0.5rem 0.5rem 0; font-size: 1.0625rem !important; }
.prayer-item p { margin-bottom: 0.4rem; }
.prayer-item cite { font-style: normal; font-size: 0.875rem; color: var(--muted); }

.members-main h3 { margin-top: 2.25rem; }
.members-main .leader-tools h3 { margin-top: 0; }
