/*
Theme Name: Glengarry Cornerstone
Theme URI: https://glengarrycornerstone.ca
Author: Glengarry Cornerstone Church
Author URI: https://glengarrycornerstone.ca
Description: A custom WordPress block theme for Glengarry Cornerstone Church, Alexandria, Ontario. Features a municipal-modern design with a green civic palette, Public Sans + Work Sans typography, and accessible, structured layouts.
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.0.48
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: glengarry-cornerstone
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, wide-blocks, block-styles, accessibility-ready
*/

/* ─── Custom properties beyond theme.json ─── */
:root {
	--gc-radius-sm: 4px;
	--gc-radius-md: 8px;
	--gc-radius-lg: 12px;
	--gc-shadow-sm: 0 1px 3px rgba(18,72,45,0.06);
	--gc-shadow-md: 0 4px 16px rgba(18,72,45,0.08);
	--gc-transition: 0.2s ease;
}

/* ─── Link styles ─── */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: 0.15em;
	transition: color var(--gc-transition);
}

/* ─── Focus styles ─── */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
	outline-offset: 2px;
	outline-color: var(--wp--preset--color--primary-container);
}

/* ─── Text wrap ─── */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption {
	text-wrap: balance;
}
p {
	text-wrap: pretty;
}

/* ─── Label utility ─── */
.gc-label {
	font-family: var(--wp--preset--font-family--public-sans);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--primary-container);
}

/* ─── Card styles ─── */
.gc-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--outline-variant);
	border-radius: var(--gc-radius-md);
	overflow: hidden;
	transition: box-shadow var(--gc-transition), transform var(--gc-transition);
}
.gc-contact-card {
	width: 100%;
}
/* ─── Contact page: map + stacked info cards row ───
   Map on the left, the three info cards stacked on the right instead
   of the previous 3-across row (which made the map's own 16:9 frame
   read as oversized next to three short cards). align-items:stretch
   overrides wp:columns' own default (align-items:normal) so the map
   column always matches the stacked cards' combined height rather
   than falling back to its normal 16:9 aspect ratio, which read too
   tall in a narrower ~55%-width column. */
.gc-contact-map-row.wp-block-columns {
	align-items: stretch !important;
}
.gc-contact-map-row .gc-map-frame {
	aspect-ratio: auto;
	height: 100%;
	min-height: 320px;
}
.gc-contact-service-cards {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
	height: 100%;
}
@media (max-width: 781px) {
	/* Columns stack on mobile (WP core's own responsive rule), so
	   there's no sibling height left to match — fall back to a normal
	   aspect ratio instead of the height:100% used for the side-by-side
	   desktop layout. */
	.gc-contact-map-row .gc-map-frame {
		aspect-ratio: 16 / 9;
		height: auto;
		min-height: 0;
	}
}
/* Long unbroken email addresses in a narrow card would otherwise
   overflow past the card edge and get clipped by overflow:hidden. */
.gc-card p,
.gc-director-info p {
	overflow-wrap: anywhere;
}
.gc-card:hover {
	box-shadow: var(--gc-shadow-md);
	transform: translateY(-3px);
}

/* ─── Information Callout ─── */
.gc-callout {
	background: var(--wp--preset--color--green-pale);
	border-radius: var(--gc-radius-md);
	box-shadow: var(--gc-shadow-sm);
	padding: var(--wp--preset--spacing--40);
}

/* ─── Events callout (Home teaser + Ministries full list) ───
   The section's one dark region: the theme's forest-depth gradient against the pale-mint event list. */
.gc-events-callout {
	background: var(--wp--preset--gradient--forest-depth);
	box-shadow: var(--gc-shadow-md);
	border: 0;
	color: var(--wp--preset--color--green-mist);
}
.gc-events-callout a:not(.wp-element-button) {
	color: var(--wp--preset--color--white);
}
.gc-events-callout a:not(.wp-element-button):hover {
	color: var(--wp--preset--color--secondary-container);
}
.gc-events-callout .wp-block-button__link:hover,
.gc-events-callout .wp-block-button__link:focus-visible {
	background-color: var(--wp--preset--color--secondary-container) !important;
	color: var(--wp--preset--color--primary) !important;
}
.gc-events-callout :focus-visible {
	outline-color: var(--wp--preset--color--white);
}

/* ─── Notice Banner ─── */
.gc-notice {
	background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--on-secondary);
	border-radius: var(--gc-radius-md);
	padding: var(--wp--preset--spacing--40);
}
.gc-notice a,
.gc-notice .wp-element-button {
	color: var(--wp--preset--color--secondary);
	background: var(--wp--preset--color--on-secondary);
}

/* ─── Service Banner ─── */
.gc-service-banner {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--on-primary);
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--50);
}
.gc-service-banner strong {
	font-family: var(--wp--preset--font-family--public-sans);
}

/* ─── Hero section (photo/video background + directional scrim) ─── */
/* The "hero-scrim" gradient (theme.json) is dark on the left, where the
   text sits, and fades to transparent on the right so the photo/video
   shows through. On narrow viewports the text column spans nearly the
   full width, so the directional fade no longer protects it — force a
   uniform, fully-covering scrim instead. Also shrink the hero itself:
   its 86vh height was authored for a desktop first-impression viewport
   and was never adapted for mobile, where vh includes the browser's
   address-bar chrome and 86% of that is most/all of the visible screen.
   svh (small viewport height, excludes retracting browser UI) is the
   correct unit here; the vh line first is a fallback for older engines
   that don't parse svh, overridden by the svh line right after it in
   browsers that do. min-height is a floor, not a cap — if the real
   copy needs more room than 52svh on a given phone, the box still
   grows to fit it; this only removes the desktop minimum (64vh) that
   would otherwise apply unconditionally down to phone widths.
   !important is required throughout: overriding inline styles the
   Cover block writes on the element. */
@media (max-width: 781px) {
	.gc-hero-photo.wp-block-cover {
		min-height: 52vh !important;
		min-height: 52svh !important;
		padding-top: var(--wp--preset--spacing--40) !important;
		padding-bottom: var(--wp--preset--spacing--40) !important;
	}
	.gc-hero-photo .wp-block-cover__background {
		background: rgba(10, 35, 24, 0.88) !important;
	}
}

/* The theme's global blockGap (theme.json) auto-inserts a 24px
   margin-top between every top-level sibling block. Every page section
   in this theme already carries its own explicit, deliberate padding
   (that's the real spacing system throughout this build) — blockGap
   was an unaccounted-for extra 24px stacking on top of it between
   EVERY section on EVERY page, producing inconsistent, accidental
   gaps rather than a controlled rhythm (first surfaced on the Home
   hero, but it affects every page — e.g. Team's intro → heading →
   directors-grid → heading → leaders-grid chain). Neutralize it at
   its actual sources instead of patching each affected transition one
   at a time: the gap above <main> (a sibling of the header
   template-part), the gaps between <main>'s own direct children, and
   — on page templates, where the "Post Content" block inserts its own
   is-layout-flow wrapper (.wp-block-post-content) one level inside
   <main> — the gaps between THAT wrapper's direct children too (this
   is what was producing the 36px gap between the Directors intro text
   and the card grid: the two full-bleed band groups are children of
   .wp-block-post-content, not of <main> itself, so the original rule
   never reached them). Nested gaps — button rows, card grids, columns
   — sit deeper than one level and are untouched. */
main#wp--skip-link--target {
	margin-top: 0;
}
main#wp--skip-link--target > *,
main#wp--skip-link--target .wp-block-post-content > * {
	margin-top: 0;
}

/* ─── Director & leader grids ───
   A horizontal snap-scroll carousel at every viewport width — desktop
   included — rather than only below the mobile breakpoint: a 14-person
   roster never forces a multi-thousand-pixel vertical stack, and one
   row of fixed-width cards is always the full scroll cost regardless
   of screen size. Rows never stretch a short card (no shared-row
   height coupling the way the old wp:columns + array_chunk() grid did),
   and the themed scrollbar is the desktop affordance that more cards
   are one drag/scroll away — the browser default belongs to no design
   system (see craft-floor "Browser surfaces"). */
.gc-director-grid,
.gc-leader-grid {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	gap: var(--wp--preset--spacing--40);
	padding-bottom: var(--wp--preset--spacing--30);
	cursor: grab;
}
/* Mouse-drag scrolling (team-filter.js) suspends snap while dragging
   so the browser doesn't fight the manual scrollLeft updates, and
   disables selection so a drag doesn't paint the card text. Touch
   input never gets this class — native touch scrolling is untouched. */
.gc-director-grid.is-dragging,
.gc-leader-grid.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	user-select: none;
}
.gc-director-grid {
	scrollbar-color: var(--wp--preset--color--green-light) transparent;
}
.gc-leader-grid {
	gap: var(--wp--preset--spacing--30);
	scrollbar-color: var(--wp--preset--color--outline-variant) transparent;
}
.gc-director-grid::-webkit-scrollbar,
.gc-leader-grid::-webkit-scrollbar {
	height: 6px;
}
.gc-director-grid::-webkit-scrollbar-track,
.gc-leader-grid::-webkit-scrollbar-track {
	background: transparent;
}
.gc-director-grid::-webkit-scrollbar-thumb {
	background: var(--wp--preset--color--green-light);
	border-radius: 3px;
}
.gc-leader-grid::-webkit-scrollbar-thumb {
	background: var(--wp--preset--color--outline-variant);
	border-radius: 3px;
}
.gc-director-grid > .gc-director-card {
	flex: 0 0 280px;
	scroll-snap-align: start;
}
.gc-leader-grid > .gc-card {
	flex: 0 0 300px;
	scroll-snap-align: start;
}
@media (max-width: 781px) {
	.gc-director-grid,
	.gc-leader-grid {
		margin-left: calc(var(--wp--preset--spacing--50) * -1);
		margin-right: calc(var(--wp--preset--spacing--50) * -1);
		padding-left: var(--wp--preset--spacing--50);
		padding-right: var(--wp--preset--spacing--50);
	}
	.gc-director-grid > .gc-director-card {
		flex: 0 0 78%;
	}
	.gc-leader-grid > .gc-card {
		flex: 0 0 72%;
	}
}

/* ─── Director card (photo flush to the card edge, white info panel
   below) — sits inside the dark forest-depth band from team-elders.php,
   so the card itself stays light for text contrast, the same pairing
   the scriptura.ca reference uses. Grid's default align-items:stretch
   equalizes card height per row; the info panel's flex-grow absorbs
   any leftover space so a short bio never produces a jagged bottom. */
.gc-director-card {
	background: var(--wp--preset--color--white);
	border-radius: var(--gc-radius-md);
	box-shadow: var(--gc-shadow-md);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.gc-director-photo {
	width: 100%;
	aspect-ratio: 1 / 1;
	background: var(--wp--preset--color--green-pale);
	border-bottom: 1px dashed var(--wp--preset--color--outline-variant);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--wp--preset--font-family--public-sans);
	font-size: 12px;
	font-weight: 600;
	color: var(--wp--preset--color--on-surface-variant);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}
.gc-director-photo-img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}
.gc-director-info {
	padding: var(--wp--preset--spacing--40);
	text-align: left;
	flex-grow: 1;
}

/* The band's heading + intro paragraph sit in an is-layout-constrained
   group, which gives every non-full/wide child max-width:1200px plus
   margin-left/right:auto !important, centering each one within the
   group's available width (1321px on a 1400px viewport here) — so the
   heading (untouched) lands 60.5px in from the group's own padding
   edge: (1321 - 1200) / 2. Narrowing the paragraph via its own
   max-width (65ch, for readable line length — P2 from the /impeccable
   critique) is fine on its own, but WP's margin-left:auto would then
   center the NARROWER box instead of matching the heading's edge, and
   forcing it back to margin-left:0 (an earlier attempt) anchors it to
   the group's raw padding edge instead — flush left of the heading,
   not under it. Replicating WP's own centering formula with the fixed
   1200px swapped in for this box's real max-width is what lines the
   two up: margin-left again needs !important to beat the theme's. */
.gc-band-intro {
	max-width: 65ch;
	margin-left: max(0px, calc((100% - 1200px) / 2)) !important;
}

/* ─── Leader ministry filter ─── */
.gc-ministry-filter {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
	margin-bottom: var(--wp--preset--spacing--40);
}
.gc-ministry-filter label {
	font-family: var(--wp--preset--font-family--public-sans);
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--on-surface-variant);
}
.gc-ministry-filter select {
	font-family: var(--wp--preset--font-family--work-sans);
	font-size: 15px;
	color: var(--wp--preset--color--on-surface);
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--outline-variant);
	border-radius: var(--gc-radius-sm);
	padding: 8px 32px 8px 12px;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23414942' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	cursor: pointer;
}
.gc-ministry-filter select:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary-container);
	outline-offset: 2px;
}
.gc-ministry-filter-empty {
	font-family: var(--wp--preset--font-family--work-sans);
	font-size: 15px;
	color: var(--wp--preset--color--on-surface-variant);
}

/* ─── Ministries: index + stage (patterns/community-ministries.php) ───
   Accordion markup (a heading button + a panel per ministry) laid out
   two ways. From 782px: the names run down the left as an index and
   every panel is stacked in one sticky grid cell on the right, with a
   white chip (the marker) behind the chosen name. The column widths,
   the quiet link type and the chip's white/border/shadow treatment are
   the Beliefs page's sidebar (.gc-beliefs-nav), so the two pages read
   as one system; the stage sits in the same white card as a Beliefs
   doctrine card. The extra 1fr row after the name rows soaks up the
   stage's height, so a tall panel never stretches the rows.
   assets/js/ministries.js moves the marker and wipes panels in. Below
   782px it is an ordinary accordion. */
.gc-ministries {
	scroll-margin-top: 96px;
}
.gc-ministries__list {
	position: relative;
}
.gc-ministries__marker {
	display: none;
}
.gc-ministry__heading {
	margin: 0;
	font-size: inherit;
	line-height: inherit;
}
.gc-ministry__trigger {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--30);
	width: 100%;
	margin: 0;
	border: 0;
	border-radius: var(--gc-radius-md);
	background: transparent;
	color: var(--wp--preset--color--on-surface-variant);
	font-family: var(--wp--preset--font-family--public-sans);
	font-weight: 500;
	line-height: 1.25;
	text-align: left;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: color 250ms ease, background-color 250ms ease;
}
.gc-ministry__trigger:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary-container);
	outline-offset: 2px;
}
.gc-ministry__heading.is-active .gc-ministry__trigger {
	color: var(--wp--preset--color--primary);
}
.gc-ministry__chevron {
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1), opacity 250ms ease;
}
.gc-ministry__panel[hidden] {
	display: none;
}
/* Same frame as a Beliefs card. */
.gc-ministry__inner {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--outline-variant);
	border-radius: var(--gc-radius-md);
	padding: var(--wp--preset--spacing--40);
}
.gc-ministry__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	border-radius: var(--gc-radius-sm);
	background: var(--wp--preset--color--green-mist);
}
.gc-ministry__img,
.gc-ministry__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* Placeholder stonework: see gc_ministry_placeholder_svg(). */
.gc-stone-mortar {
	fill: var(--wp--preset--color--green-mist);
}
.gc-stone-a {
	fill: var(--wp--preset--color--green-pale);
}
.gc-stone-b {
	fill: #E4ECE7;
	fill: color-mix(in srgb, var(--wp--preset--color--green-pale) 65%, var(--wp--preset--color--green-mist));
}
.gc-stone-c {
	fill: var(--wp--preset--color--white);
}
.gc-stone-corner {
	fill: var(--wp--preset--color--primary-container);
}
.gc-stone-inscription {
	fill: none;
	stroke: var(--wp--preset--color--on-primary-container);
	stroke-width: 1.5;
	stroke-linecap: round;
	opacity: 0.6;
}
.gc-ministry__placeholder-label {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px 6px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: var(--gc-shadow-sm);
	color: var(--wp--preset--color--on-surface-variant);
	font-family: var(--wp--preset--font-family--public-sans);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
}
.gc-ministry__placeholder-label svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
	stroke-linejoin: round;
}
.gc-ministry__body {
	max-width: 62ch;
	padding-top: var(--wp--preset--spacing--40);
}
/* Matches a Beliefs card's heading: x-large, primary-container, 8px under. */
.gc-ministry__name {
	margin: 0 0 8px;
	font-family: var(--wp--preset--font-family--public-sans);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	line-height: 1.3;
	color: var(--wp--preset--color--primary-container);
	text-wrap: balance;
}
.gc-ministry__desc {
	color: var(--wp--preset--color--on-surface-variant);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.6;
}
.gc-ministry__desc > * {
	margin: 0 0 var(--wp--preset--spacing--30);
}
.gc-ministry__desc > :last-child {
	margin-bottom: 0;
}
.gc-ministry__leaders {
	margin: var(--wp--preset--spacing--40) 0 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--on-surface-variant);
}
.gc-ministry__leaders strong {
	font-family: var(--wp--preset--font-family--public-sans);
	font-weight: 600;
	color: var(--wp--preset--color--on-surface);
}
.gc-ministry__contact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--30) 20px;
	margin: var(--wp--preset--spacing--40) 0 0;
}
.gc-ministry__address {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--on-surface-variant);
	overflow-wrap: anywhere;
}

@media (min-width: 782px) {
	/* The Beliefs page's own column rhythm: a 220px index against the
	   800px reading column, both pinned to the 1200px site grid. */
	.gc-ministries__list {
		display: grid;
		grid-template-columns: 220px minmax(0, 800px);
		grid-template-rows: repeat(var(--gc-ministry-count, 1), auto) 1fr;
		justify-content: space-between;
		column-gap: var(--wp--preset--spacing--60);
		align-items: start;
	}
	.gc-ministry__heading {
		grid-column: 1;
	}
	.gc-ministry__trigger {
		min-height: 36px;
		padding: 6px 12px;
		font-size: var(--wp--preset--font-size--medium);
	}
	.gc-ministry__chevron {
		display: none;
	}
	.gc-ministry__panel {
		grid-column: 2;
		grid-row: 1 / -1;
		position: sticky;
		top: 112px;
		z-index: 0;
	}
	.gc-ministry__panel.is-current {
		z-index: 1;
	}
	.gc-ministries.is-enhanced .gc-ministries__marker {
		display: block;
		box-sizing: border-box;
		position: absolute;
		top: 0;
		left: 0;
		width: var(--gc-marker-w, 0);
		height: var(--gc-marker-h, 0);
		transform: translateY(var(--gc-marker-y, 0));
		border: 1px solid var(--wp--preset--color--outline-variant);
		border-radius: var(--gc-radius-md);
		background: var(--wp--preset--color--white);
		box-shadow: var(--gc-shadow-sm);
		pointer-events: none;
	}
	.gc-ministries.is-marker-live .gc-ministries__marker {
		transition: transform 560ms cubic-bezier(0.16, 1, 0.3, 1);
	}
	/* Until the script has positioned the marker, the active row carries its own chip. */
	.gc-ministries:not(.is-enhanced) .gc-ministry__heading.is-active .gc-ministry__trigger {
		border: 1px solid var(--wp--preset--color--outline-variant);
		background: var(--wp--preset--color--white);
		box-shadow: var(--gc-shadow-sm);
	}
}
@media (min-width: 782px) and (hover: hover) {
	.gc-ministry__heading:not(.is-active) .gc-ministry__trigger:hover {
		background: var(--wp--preset--color--green-pale);
		color: var(--wp--preset--color--primary);
	}
}
@media (max-width: 781px) {
	.gc-ministries__list {
		border-bottom: 1px solid var(--wp--preset--color--outline-variant);
	}
	.gc-ministry__heading {
		border-top: 1px solid var(--wp--preset--color--outline-variant);
		scroll-margin-top: 80px;
	}
	.gc-ministry__trigger {
		min-height: 56px;
		padding: 12px 4px;
		border-radius: 0;
		font-size: var(--wp--preset--font-size--large);
		font-weight: 600;
	}
	.gc-ministry__trigger:focus-visible {
		outline-offset: -2px;
	}
	.gc-ministry__chevron {
		opacity: 0.7;
		transform: rotate(90deg);
	}
	.gc-ministry__heading.is-active .gc-ministry__chevron {
		opacity: 1;
		transform: rotate(-90deg);
	}
	.gc-ministry__panel {
		padding-bottom: var(--wp--preset--spacing--40);
	}
	.gc-ministry__inner {
		padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
	}
	.gc-ministry__media {
		aspect-ratio: 16 / 10;
	}
	.gc-ministry__name {
		display: none;
	}
	.gc-ministry__body {
		padding-top: var(--wp--preset--spacing--30);
	}
}
@media (prefers-reduced-motion: reduce) {
	.gc-ministries.is-marker-live .gc-ministries__marker,
	.gc-ministry__chevron {
		transition: none;
	}
}

/* ─── Event row ─── */
.gc-event-row {
	display: flex;
	gap: var(--wp--preset--spacing--40);
	align-items: flex-start;
	padding: var(--wp--preset--spacing--40) 0;
	border-bottom: 1px solid var(--wp--preset--color--outline-variant);
}
.gc-event-row:last-child {
	border-bottom: none;
}
/* Solid date tile: dark green for a one-time date, pale mint for a recurring series, so the two read differently at a glance. */
.gc-event-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	box-sizing: border-box;
	width: 68px;
	min-height: 76px;
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--10);
	flex-shrink: 0;
	border-radius: var(--gc-radius-md);
	background: var(--wp--preset--color--primary-container);
	font-family: var(--wp--preset--font-family--public-sans);
	text-align: center;
}
.gc-event-date p {
	margin: 0;
}
.gc-event-date .day {
	font-size: 28px;
	font-weight: 700;
	line-height: 1;
	color: var(--wp--preset--color--white);
}
.gc-event-date .month {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--on-primary-container);
}
.gc-event-date.is-recurring {
	background: var(--wp--preset--color--secondary-container);
}
.gc-event-date.is-recurring .day {
	font-size: 20px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--primary);
}
.gc-event-date.is-recurring .month {
	color: var(--wp--preset--color--primary-container);
}
.gc-event-row > .wp-block-group:last-child {
	flex: 1 1 0;
	min-width: 0;
}
.gc-event-row h3 {
	margin-top: 0;
}
.gc-event-when {
	margin: 0 0 4px;
	font-family: var(--wp--preset--font-family--public-sans);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	color: var(--wp--preset--color--primary-container);
}
.gc-event-details {
	margin: 0;
}

/* ─── Sermon list ─── */
.gc-sermon-item {
	display: flex;
	gap: var(--wp--preset--spacing--30);
	align-items: center;
	padding: var(--wp--preset--spacing--30) 0;
	border-bottom: 1px solid var(--wp--preset--color--outline-variant);
}
.gc-sermon-item:last-child {
	border-bottom: none;
}
.gc-sermon-thumb {
	width: 80px;
	height: 56px;
	border-radius: var(--gc-radius-sm);
	object-fit: cover;
	flex-shrink: 0;
}
@media (max-width: 640px) {
	.gc-sermon-thumb {
		width: 60px;
		height: 42px;
	}
}

/* ─── Sermon featured ─── */
.gc-sermon-featured {
	position: relative;
	border-radius: var(--gc-radius-lg);
	overflow: hidden;
	aspect-ratio: 16/9;
}
.gc-sermon-featured img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.gc-sermon-featured-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(18,72,45,0.85) 0%, transparent 60%);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: var(--wp--preset--spacing--40);
	color: #fff;
}

/* ─── Form styles ─── */
.gc-form input[type="text"],
.gc-form input[type="email"],
.gc-form textarea,
.gc-form select {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--wp--preset--color--outline-variant);
	border-radius: var(--gc-radius-sm);
	font-family: var(--wp--preset--font-family--work-sans);
	font-size: 16px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--on-surface);
	transition: border-color var(--gc-transition);
}
.gc-form input:focus,
.gc-form textarea:focus {
	border-color: var(--wp--preset--color--primary-container);
	outline: 2px solid var(--wp--preset--color--primary-container);
	outline-offset: -2px;
}
.gc-form label {
	display: block;
	font-family: var(--wp--preset--font-family--public-sans);
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 6px;
	color: var(--wp--preset--color--on-surface);
}

/* ─── Map frame ─── */
.gc-map-frame {
	width: 100%;
	aspect-ratio: 16/9;
	border-radius: var(--gc-radius-md);
	overflow: hidden;
	position: relative;
	border: 1px solid var(--wp--preset--color--outline-variant);
	background: var(--wp--preset--color--surface-container);
}
.gc-map-frame img,
.gc-map-frame iframe {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border: 0;
}

/* ─── Buttons ─── */
.wp-element-button,
.wp-block-button__link {
	transition: background-color var(--gc-transition), color var(--gc-transition),
		transform var(--gc-transition), box-shadow var(--gc-transition);
}
.wp-element-button:hover,
.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: var(--gc-shadow-sm);
}
.is-style-outline .wp-block-button__link {
	border: 2px solid var(--wp--preset--color--primary-container);
	color: var(--wp--preset--color--primary-container);
	background: transparent;
}
.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--primary-container);
	color: var(--wp--preset--color--on-primary);
}

/* ─── Header nav active indicator ─── */
.gc-nav-active {
	border-bottom: 3px solid var(--wp--preset--color--primary-container);
	padding-bottom: 2px;
}

/* ─── Interior page hero (full-bleed photo + frosted glass title card) ───
   Shared treatment for Beliefs/Team/Ministries/Events/Contact: a real
   photo banner with a moderate overlay dim (set via the Cover block's
   own overlayColor/dimRatio, not here) plus a dedicated glass panel
   wrapping just the title/description, so legibility never depends on
   which part of a given photo happens to sit behind the text. The
   panel is intentionally dark-tinted rather than the more usual light
   frosted-glass look — these photos vary from bright autumn woods to
   dim indoor gatherings, and a dark panel with white text holds
   4.5:1+ contrast regardless of which photo sits behind it; a light
   panel would not. min-height is set on the block itself (px, so it
   doesn't need the vh/svh mobile-chrome fix the taller Home hero
   does); the mobile override below only shortens it further so a
   short title doesn't force a needlessly tall banner on small screens.
   !important overrides the Cover block's own inline min-height. */
.gc-page-hero.wp-block-cover {
	min-height: 380px;
}
@media (max-width: 781px) {
	.gc-page-hero.wp-block-cover {
		min-height: 280px !important;
	}
}
.gc-glass-panel {
	background: rgba(10, 35, 24, 0.55);
	backdrop-filter: blur(16px) saturate(140%);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: var(--gc-radius-lg);
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60);
	box-shadow: var(--gc-shadow-md);
}
@media (max-width: 600px) {
	.gc-glass-panel {
		padding: var(--wp--preset--spacing--40);
	}
}

/* ─── Beliefs page: scripture citation popovers ───
   Each recognizable reference inside a citation line (assets/js/
   verse-popover.js) becomes a real <button>, reset with all:unset so
   it still inherits the citation's own italic/color instead of
   looking like a normal button, then given back just a dotted
   underline as the "there's more here" affordance. One shared
   .gc-verse-popover node (appended to <body> by the same script) is
   repositioned and repopulated per trigger rather than building N
   popovers up front. */
.gc-verse-ref {
	all: unset;
	cursor: pointer;
	font: inherit;
	color: inherit;
	text-decoration: underline;
	text-decoration-style: dotted;
	text-decoration-color: var(--wp--preset--color--outline);
	text-underline-offset: 0.2em;
	border-radius: 2px;
}
.gc-verse-ref:hover,
.gc-verse-ref:focus-visible {
	color: var(--wp--preset--color--primary-container);
	text-decoration-style: solid;
	text-decoration-color: currentColor;
}
.gc-verse-ref:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary-container);
	outline-offset: 2px;
}
.gc-verse-popover {
	position: fixed;
	z-index: 200;
	width: max-content;
	max-width: 320px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--outline-variant);
	border-radius: var(--gc-radius-md);
	box-shadow: var(--gc-shadow-md);
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
}
.gc-verse-popover[hidden] {
	display: none;
}
.gc-verse-popover::before {
	content: "";
	position: absolute;
	left: var(--gc-arrow-left, 50%);
	bottom: -7px;
	width: 12px;
	height: 12px;
	background: var(--wp--preset--color--white);
	border-right: 1px solid var(--wp--preset--color--outline-variant);
	border-bottom: 1px solid var(--wp--preset--color--outline-variant);
	transform: translateX(-50%) rotate(45deg);
}
.gc-verse-popover--below::before {
	bottom: auto;
	top: -7px;
	border-right: none;
	border-bottom: none;
	border-left: 1px solid var(--wp--preset--color--outline-variant);
	border-top: 1px solid var(--wp--preset--color--outline-variant);
}
.gc-verse-popover-ref {
	margin: 0 0 4px;
	font-family: var(--wp--preset--font-family--public-sans);
	font-size: 13px;
	font-weight: 700;
	color: var(--wp--preset--color--primary-container);
}
.gc-verse-popover-text {
	margin: 0;
	font-family: var(--wp--preset--font-family--work-sans);
	font-size: 14px;
	line-height: 1.5;
	color: var(--wp--preset--color--on-surface);
}
.gc-verse-popover-credit {
	margin: 6px 0 0;
	font-family: var(--wp--preset--font-family--work-sans);
	font-size: 11px;
	color: var(--wp--preset--color--outline);
}
.gc-verse-popover-loading,
.gc-verse-popover-error {
	margin: 0;
	font-family: var(--wp--preset--font-family--work-sans);
	font-size: 13px;
	color: var(--wp--preset--color--on-surface-variant);
}
@media (max-width: 480px) {
	.gc-verse-popover {
		max-width: calc(100vw - 32px);
	}
}

/* ─── Interior page hero: entrance ───
   Same rise-in used for Home's hero (@keyframes gc-rise-in, defined
   further down), kept here because .gc-glass-panel is this component's
   own selector — but shorter and with less travel: these are Read-
   mode pages (Beliefs and its four siblings), where the visitor's job
   is reading dense content as soon as possible, not being drawn into
   a moment the way Home's Persuade-mode hero earns. This is the only
   motion this page's content gets — the 14 doctrine cards below
   deliberately do NOT get a scroll-reveal each; stalling a reader's
   scroll behind a fade-in on every card is exactly the "page-load
   choreography" a Read surface should avoid, not a moment worth
   authoring. Card hover feedback already exists sitewide (.gc-card,
   declared earlier) and needs nothing added here. */
.gc-glass-panel > h1 {
	animation: gc-rise-in 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.gc-glass-panel > p {
	animation: gc-rise-in 500ms cubic-bezier(0.16, 1, 0.3, 1) 100ms both;
}

/* ─── Beliefs page: in-page navigation (inc/beliefs-nav.php) ─── */
/* Below 1180px: a sticky chip bar flush under the banner. */
.gc-beliefs {
	padding-top: 0 !important;
}
.gc-beliefs > .gc-beliefs-nav {
	position: sticky;
	top: var(--gc-beliefs-offset, 62px);
	z-index: 90;
	max-width: none;
	margin-left: calc(var(--wp--preset--spacing--50) * -1) !important;
	margin-right: calc(var(--wp--preset--spacing--50) * -1) !important;
	background: var(--wp--preset--color--green-pale);
	border-bottom: 1px solid var(--wp--preset--color--outline-variant);
}
.gc-beliefs-nav__list {
	position: relative;
	display: flex;
	gap: var(--wp--preset--spacing--20);
	margin: 0;
	padding: var(--wp--preset--spacing--30) max(var(--wp--preset--spacing--50), calc((100% - 800px) / 2));
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 var(--wp--preset--spacing--50), #000 calc(100% - var(--wp--preset--spacing--50)), transparent);
	mask-image: linear-gradient(to right, transparent, #000 var(--wp--preset--spacing--50), #000 calc(100% - var(--wp--preset--spacing--50)), transparent);
}
.gc-beliefs-nav__list::-webkit-scrollbar {
	display: none;
}
.gc-beliefs-nav__list > li {
	flex: none;
	margin: 0;
}
.gc-beliefs-nav__link {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--wp--preset--color--outline-variant);
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--on-surface-variant);
	font-family: var(--wp--preset--font-family--public-sans);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 1.25;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.gc-beliefs-nav__link:hover {
	border-color: var(--wp--preset--color--green-light);
	color: var(--wp--preset--color--primary);
}
.gc-beliefs-nav__link.is-active {
	border-color: var(--wp--preset--color--primary-container);
	background: var(--wp--preset--color--primary-container);
	color: var(--wp--preset--color--on-primary);
}
.gc-beliefs > .gc-beliefs__list {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--40);
	margin-block-start: var(--wp--preset--spacing--50);
}
.gc-beliefs__list > .gc-card {
	margin: 0 !important;
	scroll-margin-top: 150px;
}
.gc-beliefs__list h2:focus:not(:focus-visible) {
	outline: none;
}

/* 1180px and up: a sticky sidebar aligned to the 1200px site grid. */
@media (min-width: 1180px) {
	.gc-beliefs {
		display: grid;
		grid-template-columns: 220px minmax(0, 800px);
		justify-content: space-between;
		align-items: start;
		padding-top: var(--wp--preset--spacing--70) !important;
		padding-right: max(var(--wp--preset--spacing--50), calc((100% - 1200px) / 2)) !important;
		padding-left: max(var(--wp--preset--spacing--50), calc((100% - 1200px) / 2)) !important;
	}
	.gc-beliefs > .gc-beliefs-nav {
		top: calc(var(--gc-beliefs-offset, 95px) + var(--wp--preset--spacing--50));
		z-index: auto;
		margin: 0 !important;
		background: none;
		border-bottom: 0;
	}
	.gc-beliefs-nav__list {
		flex-direction: column;
		gap: 2px;
		max-height: calc(100vh - var(--gc-beliefs-offset, 95px) - 96px);
		padding: 0;
		overflow: auto;
		-webkit-mask-image: none;
		mask-image: none;
	}
	.gc-beliefs-nav__link {
		min-height: 36px;
		padding: 6px 12px;
		border-color: transparent;
		border-radius: var(--gc-radius-md);
		background: transparent;
		font-size: var(--wp--preset--font-size--medium);
		font-weight: 500;
		white-space: normal;
	}
	.gc-beliefs-nav__link:hover {
		border-color: transparent;
		background: rgba(255, 255, 255, 0.7);
	}
	.gc-beliefs-nav__link.is-active {
		border-color: var(--wp--preset--color--outline-variant);
		background: var(--wp--preset--color--white);
		color: var(--wp--preset--color--primary);
		box-shadow: var(--gc-shadow-sm);
	}
	.gc-beliefs > .gc-beliefs__list {
		max-width: none;
		margin: 0 !important;
	}
	.gc-beliefs__list > .gc-card {
		scroll-margin-top: 130px;
	}
}

/* ─── Home: After Service Prayer band ───
   Deliberately a different treatment from both (a) the plain light
   sections around it on the Home page and (b) the glass-panel photo
   heroes on interior pages: same full-bleed photo + dark overlay
   language for the section break, but the form itself sits in a
   fully opaque white card rather than a blurred glass one — a
   multi-field form needs reliably legible, high-contrast inputs
   regardless of what's behind it, which frosted glass can't
   guarantee the way it can for a couple of lines of title text. */
.gc-prayer-band.wp-block-cover {
	min-height: 480px;
}
.gc-prayer-form-card {
	background: var(--wp--preset--color--white);
	border-radius: var(--gc-radius-lg);
	padding: var(--wp--preset--spacing--60);
	box-shadow: var(--gc-shadow-md);
}
/* The Cover block's own core CSS defaults any heading placed inside
   it to white, for legibility directly on a photo — correct for the
   "After Service Prayer" copy on the left, wrong here: this heading
   sits inside the opaque white form card, where inherited white text
   is invisible. */
.gc-prayer-form-card h3 {
	color: var(--wp--preset--color--primary);
	margin: 0 0 4px;
}
.gc-prayer-form-intro {
	color: var(--wp--preset--color--on-surface-variant);
	font-size: 14px;
	margin: 0 0 var(--wp--preset--spacing--40);
}
.gc-prayer-form {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--40);
}
.gc-prayer-form label {
	display: block;
	font-family: var(--wp--preset--font-family--public-sans);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--on-surface-variant);
	margin-bottom: var(--wp--preset--spacing--20);
}
/* 16px text: iOS Safari zooms the page when a field under 16px is focused. */
.gc-prayer-form input[type="text"],
.gc-prayer-form input[type="email"],
.gc-prayer-form textarea {
	width: 100%;
	min-height: 48px;
	box-sizing: border-box;
	font-family: var(--wp--preset--font-family--work-sans);
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--on-surface);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--outline-variant);
	border-radius: var(--gc-radius-sm);
	padding: var(--wp--preset--spacing--30) 14px;
	transition: border-color var(--gc-transition);
}
.gc-prayer-form textarea {
	resize: vertical;
	min-height: 120px;
	font-family: var(--wp--preset--font-family--work-sans);
}
.gc-prayer-form input:focus-visible,
.gc-prayer-form textarea:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary-container);
	outline-offset: 1px;
	border-color: var(--wp--preset--color--primary-container);
}
.gc-prayer-form button {
	align-self: flex-start;
	margin-top: 4px;
}
/* Stacked columns: one 24px gutter instead of the cover's padding plus its inner container's, so the form gets the width. */
@media (max-width: 781px) {
	.gc-prayer-band.wp-block-cover {
		min-height: unset !important;
		padding-right: var(--wp--preset--spacing--40) !important;
		padding-left: var(--wp--preset--spacing--40) !important;
	}
	.gc-prayer-band > .wp-block-cover__inner-container {
		padding-right: 0;
		padding-left: 0;
	}
	.gc-prayer-form-card {
		padding: var(--wp--preset--spacing--40);
	}
	.gc-prayer-form button {
		align-self: stretch;
		min-height: 48px;
	}
	.gc-prayer-form textarea {
		min-height: 140px;
	}
}
/* Never display:none a honeypot — screen readers and some bots both
   skip fields that are invisible that way. Off-screen positioning
   still hides it visually while keeping it in the DOM/tab order for
   anything crawling the raw HTML, which is exactly what should fall
   into it. */
.gc-prayer-form-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
/* Cloudflare Turnstile widget (inc/turnstile.php). min-height reserves
   the widget's 65px so the submit button doesn't jump when it loads. */
.gc-turnstile {
	min-height: 65px;
	margin: 4px 0 8px;
}
.gc-prayer-form-error {
	background: var(--wp--preset--color--error);
	color: var(--wp--preset--color--white);
	border-radius: var(--gc-radius-sm);
	padding: var(--wp--preset--spacing--30);
	font-size: 14px;
	margin: 0 0 var(--wp--preset--spacing--30);
}
.gc-prayer-form-error a {
	color: inherit;
	text-decoration-color: currentColor;
}
.gc-prayer-form-success h3 {
	margin: 0 0 8px;
	color: var(--wp--preset--color--primary);
}
.gc-prayer-form-success p {
	color: var(--wp--preset--color--on-surface-variant);
	margin: 0;
}

/* ─── Contact page: Send Us a Message form ───
   Same real-form architecture as the After Service Prayer form
   (inc/contact-form.php mirrors inc/prayer-request.php) — replaces
   what used to be a fully disabled, non-functional placeholder form
   shown to real visitors. Field styling reuses the theme's existing
   .gc-form input/label rules (declared above, under "Form styles")
   rather than duplicating them — those rules already target real
   input/select/textarea elements correctly; the old placeholder just
   never used real form markup, so they went unused until now. Only
   what .gc-form doesn't already cover lives here: the two-column
   name row, select's custom arrow, submit centering, and the
   error/success states. */
.gc-contact-form-card {
	background: var(--wp--preset--color--white);
	border-radius: var(--gc-radius-md);
	padding: var(--wp--preset--spacing--60);
}
.gc-contact-form {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--40);
}
.gc-contact-form-row {
	display: flex;
	gap: var(--wp--preset--spacing--30);
}
.gc-contact-form-row > div {
	flex: 1;
	min-width: 0;
}
.gc-contact-form select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23414942' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 32px;
	cursor: pointer;
}
.gc-contact-form-submit {
	display: flex;
	justify-content: center;
	margin-top: 4px;
}
.gc-contact-form-error {
	background: var(--wp--preset--color--error);
	color: var(--wp--preset--color--white);
	border-radius: var(--gc-radius-sm);
	padding: var(--wp--preset--spacing--30);
	font-size: 14px;
	margin: 0 0 var(--wp--preset--spacing--30);
}
.gc-contact-form-error a {
	color: inherit;
	text-decoration-color: currentColor;
}
.gc-contact-form-success {
	text-align: center;
}
.gc-contact-form-success h3 {
	margin: 0 0 8px;
	color: var(--wp--preset--color--primary);
}
.gc-contact-form-success p {
	color: var(--wp--preset--color--on-surface-variant);
	margin: 0;
}
@media (max-width: 600px) {
	.gc-contact-form-row {
		flex-direction: column;
		gap: var(--wp--preset--spacing--30);
	}
}

/* ─── Sticky, scroll-aware site header ───
   position:sticky lives on <header class="wp-block-template-part">
   (WordPress's own wrapper for the header template part), NOT on
   .gc-site-header itself, even though .gc-site-header is the element
   that visually looks like "the header". Confirmed by isolated
   testing: a position:sticky element loses its stickiness once
   scrolled more than its own height past its starting point when its
   immediate parent is exactly as tall as it is (no slack for the
   sticky containing-block calculation) — exactly this theme's markup,
   since <header> wraps nothing but this one group. Promoting the
   OUTER <header> tag to position:sticky instead gives it .wp-site-
   blocks (the full page height) as its containing block, which fixes
   it; .gc-site-header then just needs the hide/show transform, and
   that still works correctly nested inside a sticky ancestor.
   assets/js/site-header.js toggles the --hidden class on scroll
   direction, past a small threshold so it doesn't twitch right at the
   top of the page. transform, not top/margin, so the slide is a
   compositor-only animation rather than a layout-triggering one. */
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
	/* The wrapper stays put when the header slides away; don't let its empty box swallow taps. */
	pointer-events: none;
}
.gc-site-header {
	transition: transform 0.25s ease;
	pointer-events: auto;
}
.gc-site-header.gc-site-header--hidden {
	transform: translateY(-100%);
}

/* ─── Site footer ─── */
/* Core's root block gap left a 24px strip of page background between the last section and the footer. */
footer.wp-block-template-part {
	margin-block-start: 0;
}
.gc-site-footer a {
	color: var(--wp--preset--color--white);
	text-decoration: none;
}
.gc-site-footer a:hover,
.gc-site-footer a:focus-visible {
	color: var(--wp--preset--color--white);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}
.gc-site-footer :focus-visible,
.gc-site-footer-legal :focus-visible {
	outline-color: var(--wp--preset--color--white);
}
.gc-site-footer-legal p {
	margin: 0;
}

/* 599px matches where core Navigation swaps to the hamburger. */
@media (max-width: 599px) {
	.gc-site-header {
		padding: 12px 16px !important;
	}
	.gc-site-header > .wp-block-group,
	.gc-site-header > .wp-block-group > .wp-block-group:last-child {
		flex-wrap: nowrap;
		gap: 12px;
	}
	.gc-site-header .wp-block-site-logo img {
		width: 132px;
		height: auto;
	}
	.gc-site-header .wp-block-navigation {
		order: 2;
	}
	.gc-site-header .wp-block-button__link {
		padding: 8px 14px !important;
		white-space: nowrap;
	}

	/* Mobile menu: 48px tap areas for the icons (negative margin keeps the header height), big full-width rows. */
	.gc-site-header .wp-block-navigation__responsive-container-open {
		padding: 12px;
		margin: -12px;
	}
	.gc-site-header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) {
		padding: 0;
		background-color: var(--wp--preset--color--white);
		color: var(--wp--preset--color--on-surface);
	}
	/* Sits exactly where the menu icon was, so opening and closing is the same tap. */
	.gc-site-header .is-menu-open .wp-block-navigation__responsive-container-close {
		top: 7px;
		right: 4px;
		padding: 12px;
	}
	.gc-site-header .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-container-content {
		padding: 80px var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
		align-items: stretch;
	}
	.gc-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
		align-items: stretch;
		gap: 0;
		border-top: 1px solid var(--wp--preset--color--outline-variant);
	}
	.gc-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item {
		align-items: stretch;
		border-bottom: 1px solid var(--wp--preset--color--outline-variant);
	}
	.gc-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
		display: flex;
		align-items: center;
		gap: var(--wp--preset--spacing--30);
		min-height: 72px;
		padding: 0 var(--wp--preset--spacing--20);
		color: var(--wp--preset--color--on-surface);
		font-family: var(--wp--preset--font-family--public-sans);
		font-size: var(--wp--preset--font-size--xx-large);
		font-weight: 700;
		line-height: 1.15;
		letter-spacing: -0.02em;
		text-decoration: none;
		-webkit-tap-highlight-color: transparent;
		transition: background-color 150ms ease, color 150ms ease;
	}
	.gc-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content:hover,
	.gc-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content:active {
		background-color: var(--wp--preset--color--green-pale);
		color: var(--wp--preset--color--primary);
	}
	/* Core focuses the first link when the menu opens; only keyboard users need that ring. */
	.gc-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content:focus:not(:focus-visible) {
		outline: none;
	}
	.gc-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .current-menu-item > .wp-block-navigation-item__content {
		color: var(--wp--preset--color--primary-container);
	}
	.gc-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .current-menu-item > .wp-block-navigation-item__content::after {
		content: "";
		flex: none;
		width: 8px;
		height: 8px;
		border-radius: 50%;
		background-color: currentColor;
	}
}

/* ─── Home page: hero entrance ───
   The one authored moment on the page — the front door settling into
   place on load. Heading, subtext, and the button row rise in with a
   short stagger; the service-info strip (the element that immediately
   follows the hero photo, keyed off adjacency rather than a class so
   no content edit was needed) continues the same beat a little
   further out, so it reads as the hero finishing its entrance rather
   than a second, unrelated animation. Selectors are scoped through
   .gc-hero-photo (already on the Cover block) rather than new classes
   on the heading/paragraph/buttons, since those live in the page's
   own post content, not a template — editing them here risked
   nothing in the database. animation-fill-mode: both holds each
   element at its 0%-opacity frame for the length of its own delay, so
   nothing flashes at full opacity before its turn. */
@keyframes gc-rise-in {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
.gc-hero-photo .wp-block-cover__inner-container > .wp-block-group > h1 {
	animation: gc-rise-in 650ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.gc-hero-photo .wp-block-cover__inner-container > .wp-block-group > p {
	animation: gc-rise-in 650ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
}
.gc-hero-photo .wp-block-cover__inner-container > .wp-block-group > .wp-block-buttons {
	animation: gc-rise-in 600ms cubic-bezier(0.16, 1, 0.3, 1) 220ms both;
}
.gc-hero-photo + .wp-block-group {
	animation: gc-rise-in 500ms cubic-bezier(0.16, 1, 0.3, 1) 420ms both;
}

/* ─── Home page: "After Service Prayer" scroll reveal ───
   The one supporting moment, not a section-by-section default: this
   band already stands apart from the rest of the page (full-bleed
   photo, its own anchor) because it's the site's actual point of
   invitation, so it's the only section that gets a reveal-on-scroll.
   assets/js/scroll-reveal.js adds .gc-reveal-on-scroll (the from-state
   below) and then .gc-in-view on first intersection — both classes
   are JS-added, so if the script never runs, the section is never
   hidden in the first place and just renders normally. */
.gc-reveal-on-scroll {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 550ms cubic-bezier(0.16, 1, 0.3, 1), transform 550ms cubic-bezier(0.16, 1, 0.3, 1);
}
.gc-reveal-on-scroll.gc-in-view {
	opacity: 1;
	transform: translateY(0);
}

/* Leader cards aren't clickable, so no hover lift; they slide in sideways once (a rise would clip in the scroll row). */
.gc-leader-grid > .gc-card:hover {
	box-shadow: none;
	transform: none;
}
.gc-leader-reveal {
	opacity: 0;
	transform: translateX(40px);
	transition: none;
}
.gc-leader-reveal.gc-in-view {
	opacity: 1;
	transform: none;
	transition: opacity 650ms cubic-bezier(0.16, 1, 0.3, 1) var(--gc-reveal-delay, 0ms), transform 650ms cubic-bezier(0.16, 1, 0.3, 1) var(--gc-reveal-delay, 0ms);
}
@media (prefers-reduced-motion: reduce) {
	.gc-leader-reveal {
		transform: none;
	}
	.gc-leader-reveal.gc-in-view {
		transition: opacity 200ms ease;
	}
}

/* ─── Home page: prayer form outcome banner ───
   Only ever present right after the visitor's own submit, so its
   entrance is feedback for an action they just took, not decoration. */
.gc-prayer-form-success,
.gc-prayer-form-error {
	animation: gc-rise-in 450ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (prefers-reduced-motion: reduce) {
	.gc-hero-photo .wp-block-cover__inner-container > .wp-block-group > h1,
	.gc-hero-photo .wp-block-cover__inner-container > .wp-block-group > p,
	.gc-hero-photo .wp-block-cover__inner-container > .wp-block-group > .wp-block-buttons,
	.gc-hero-photo + .wp-block-group,
	.gc-prayer-form-success,
	.gc-prayer-form-error,
	.gc-glass-panel > h1,
	.gc-glass-panel > p {
		animation: none;
		opacity: 1;
		transform: none;
	}
	.gc-reveal-on-scroll {
		transition: opacity 200ms ease;
		transform: none;
	}
	.wp-element-button:hover,
	.wp-block-button__link:hover,
	.gc-card:hover {
		transform: none;
	}
}

