/**
 * Congregate base styles. Every color, font, radius, and shadow is a
 * theme.json token (--wp--preset--* / --wp--custom--*). Variations
 * re-skin by redefining the same slugs; this file never changes per
 * variation. Structural deltas live in variation-*.css overlays.
 */

/* ---------- primitives ---------- */

body {
	margin: 0;
	-webkit-font-smoothing: antialiased;
}

.cg-skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 999;
	clip: auto;
	width: auto;
	height: auto;
	padding: 12px 20px;
	background: var(--wp--preset--color--accent);
	color: #fff;
	border-radius: var(--wp--custom--radius--button);
	text-decoration: none;
}

.cg-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: var(--wp--custom--eyebrow--tracking);
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}

.cg-eyebrow::before {
	content: "";
	width: 26px;
	height: 1px;
	background: currentColor;
}

.cg-on-band .cg-eyebrow,
.cg-hero .cg-eyebrow {
	color: var(--wp--preset--color--band-label);
}

/* ---------- header ---------- */

.cg-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--wp--preset--color--base);
	background: color-mix(in srgb, var(--wp--preset--color--base) 86%, transparent);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.cg-header-inner {
	min-height: 76px;
}

.cg-wordmark {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 22px;
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.cg-wordmark::after {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
}

.cg-header .wp-block-navigation a {
	color: var(--wp--preset--color--contrast);
	font-size: 14.5px;
	font-weight: 500;
	text-decoration: none;
}

.cg-header .wp-block-navigation a:hover,
.cg-header .wp-block-navigation .current-menu-item > a {
	color: var(--wp--preset--color--accent);
}

.cg-header .wp-block-navigation .current-menu-item > a {
	box-shadow: 0 2px 0 0 var(--wp--preset--color--accent);
}

/* ---------- surfaces & bands ---------- */

.cg-section {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}

.cg-band {
	background: var(--wp--preset--color--band);
	color: var(--wp--preset--color--on-band);
	border-radius: var(--wp--custom--radius--band);
}

.cg-band h1,
.cg-band h2,
.cg-band h3,
.cg-band h4 {
	color: var(--wp--preset--color--on-band);
}

.cg-band p {
	color: var(--wp--preset--color--on-band-muted);
}

.cg-band a:not(.wp-block-button__link) {
	color: var(--wp--preset--color--on-band);
}

.cg-surface {
	background: var(--wp--preset--color--surface);
}

.cg-tint {
	background: var(--wp--preset--color--tint);
}

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

.cg-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 86vh;
	overflow: hidden;
	border-radius: 0;
	color: #fff;
	isolation: isolate;
}

.cg-hero-media,
.cg-hero-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 30%;
	z-index: -2;
	margin: 0;
}

.cg-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(26, 12, 32, 0.52) 0%, rgba(26, 12, 32, 0.26) 34%, rgba(26, 12, 32, 0.94) 100%),
		linear-gradient(90deg, rgba(26, 12, 32, 0.68) 0%, rgba(26, 12, 32, 0.28) 46%, rgba(26, 12, 32, 0) 72%);
}

.cg-hero h1,
.cg-hero p {
	color: #fff;
}

.cg-hero .cg-hero-sub {
	color: rgba(255, 255, 255, 0.88);
	max-width: 54ch;
	margin-inline: 0;
	text-wrap: pretty;
}

/* Every direct child of the hero column aligns to one left edge. WordPress's
   constrained layout sets margin-inline:auto on children; anything narrower
   than the content width would otherwise float to the centre. */
.cg-hero-inner > * {
	margin-inline: 0;
}

.cg-hero h1 {
	max-width: 20ch;
	text-wrap: balance;
	letter-spacing: -0.015em;
	margin-inline: 0;
}

.cg-hero-inner {
	position: relative;
	width: 100%;
	padding: 120px 0 72px;
}

.cg-hero--page {
	min-height: 48vh;
	align-items: center;
}

.cg-hero-meta {
	color: rgba(255, 255, 255, 0.92);
	font-size: 14.5px;
	font-weight: 600;
}

/* ---------- cards ---------- */

.cg-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--card);
	box-shadow: var(--wp--custom--shadow--card);
	overflow: hidden;
	height: 100%;
	box-sizing: border-box;
}

.cg-card:hover {
	border-color: var(--wp--preset--color--accent);
	border-color: color-mix(in srgb, var(--wp--preset--color--accent) 50%, transparent);
	box-shadow: var(--wp--custom--shadow--hover);
}

.cg-card .cg-card-body {
	padding: 22px 24px 26px;
}

.cg-card figure,
.cg-card .wp-block-image {
	margin: 0;
}

.cg-card img {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
}

.cg-card h3 {
	margin: 0 0 8px;
	font-size: 21px;
}

.cg-card p {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: 15px;
}

.cg-panel {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--panel);
	box-shadow: var(--wp--custom--shadow--card);
	padding: 34px 36px;
	box-sizing: border-box;
}

.cg-media,
.cg-media img {
	border-radius: var(--wp--custom--radius--media);
	overflow: hidden;
}

/* ---------- chips, pills, badges ---------- */

.cg-chip {
	display: inline-block;
	padding: 6px 14px;
	font-size: 12.5px;
	font-weight: 600;
	border-radius: var(--wp--custom--radius--chip);
	background: var(--wp--preset--color--tint);
	background: color-mix(in srgb, var(--wp--preset--color--accent) 10%, var(--wp--preset--color--base));
	color: var(--wp--preset--color--accent);
	white-space: nowrap;
}

.cg-chip--filter {
	border: 1px solid var(--wp--preset--color--border);
	background: transparent;
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}

.cg-chip--filter:hover,
.cg-chip--filter.is-active {
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
}

.cg-datechip {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 58px;
	padding: 8px 10px;
	background: var(--wp--preset--color--band);
	color: var(--wp--preset--color--on-band);
	border-radius: var(--wp--custom--radius--input);
	font-weight: 700;
	line-height: 1.1;
}

.cg-datechip small {
	font-size: 11px;
	letter-spacing: 0.12em;
	font-weight: 600;
	color: var(--wp--preset--color--on-band-muted);
}

.cg-badge {
	display: inline-block;
	padding: 14px 18px;
	background: var(--wp--preset--color--accent);
	color: #fff;
	border-radius: var(--wp--custom--radius--input);
	font-weight: 700;
	line-height: 1.2;
}

/* ---------- event rows ---------- */

.cg-row {
	display: flex;
	align-items: center;
	gap: 22px;
	padding: 18px 16px;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.cg-row:hover {
	background: var(--wp--preset--color--surface);
}

.cg-row .cg-row-title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: var(--wp--custom--display--weight);
	text-transform: var(--wp--custom--display--transform);
	font-size: 20px;
	margin: 0;
}

.cg-row .cg-row-meta {
	color: var(--wp--preset--color--faint);
	font-size: 14px;
	margin: 2px 0 0;
}

.cg-row .cg-row-main {
	flex: 1;
}

/* ---------- numbered steps / beliefs ---------- */

.cg-num {
	font-family: var(--wp--preset--font-family--display);
	font-size: 15px;
	font-weight: 600;
	color: var(--wp--preset--color--accent);
	letter-spacing: 0.08em;
}

.cg-cell {
	border: 1px solid var(--wp--preset--color--border);
	padding: 30px 30px 34px;
	box-sizing: border-box;
	height: 100%;
	border-radius: var(--wp--custom--radius--card);
}

/* ---------- stats ---------- */

.cg-stat {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(38px, 4.4vw, 60px);
	font-weight: var(--wp--custom--display--weight);
	line-height: 1;
	color: var(--wp--preset--color--accent);
	margin: 0;
}

.cg-stat-label {
	color: var(--wp--preset--color--muted);
	font-size: 14.5px;
	margin: 8px 0 0;
}

/* ---------- allocation bars ---------- */

.cg-bar {
	background: var(--wp--preset--color--tint);
	background: color-mix(in srgb, var(--wp--preset--color--contrast) 8%, transparent);
	border-radius: 100px;
	height: 10px;
	overflow: hidden;
	margin-top: 8px;
}

.cg-bar > span {
	display: block;
	height: 100%;
	background: var(--wp--preset--color--band);
	border-radius: 100px;
}

.cg-bar-40 > span { width: 40%; }
.cg-bar-30 > span { width: 30%; }
.cg-bar-20 > span { width: 20%; }
.cg-bar-10 > span { width: 10%; }

/* ---------- timeline ---------- */

.cg-timeline-item {
	border-top: 1px solid var(--wp--preset--color--border);
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--on-band) 30%, transparent);
	padding-top: 18px;
	position: relative;
}

.cg-timeline-item::before {
	content: "";
	position: absolute;
	top: -5px;
	left: 0;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
}

.cg-band .cg-timeline-item::before {
	background: var(--wp--preset--color--band-label);
}

/* ---------- play button ---------- */

.cg-play {
	position: relative;
	display: block;
}

.cg-play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 64px;
	height: 64px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	box-shadow: var(--wp--custom--shadow--card);
}

.cg-play::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-38%, -50%);
	z-index: 1;
	border-style: solid;
	border-width: 10px 0 10px 16px;
	border-color: transparent transparent transparent #fff;
}

/* ---------- forms (styled here, wired by the Core plugin) ---------- */

.cg-form input[type="text"],
.cg-form input[type="email"],
.cg-form textarea,
.cg-form select {
	width: 100%;
	box-sizing: border-box;
	padding: 13px 16px;
	font: inherit;
	color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--input);
}

.cg-form input:focus,
.cg-form textarea:focus,
.cg-form select:focus {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 1px;
	border-color: var(--wp--preset--color--accent);
}

.cg-form label {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	margin: 0 0 6px;
}

.cg-form .cg-field {
	margin-bottom: 16px;
}

.cg-form button[type="submit"],
.cg-form .cg-submit {
	display: inline-block;
	padding: 15px 30px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	border: 0;
	border-radius: var(--wp--custom--radius--button);
	background: var(--wp--preset--color--accent);
	color: #fff;
}

.cg-form button[type="submit"]:hover {
	background: var(--wp--preset--color--accent-alt);
}

.cg-form .cg-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cg-notice {
	padding: 14px 18px;
	border-radius: var(--wp--custom--radius--input);
	border: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--surface);
	font-size: 14.5px;
}

.cg-notice--ok { border-color: var(--wp--preset--color--accent); border-color: color-mix(in srgb, var(--wp--preset--color--accent) 60%, transparent); }

.cg-newsletter-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"field  button"
		"note   note";
	align-items: end;
	column-gap: 12px;
	row-gap: 14px;
	max-width: 520px;
}

.cg-news-field {
	grid-area: field;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.cg-news-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: var(--wp--custom--eyebrow--tracking);
	text-transform: uppercase;
	opacity: 0.75;
}

.cg-newsletter-form > button {
	grid-area: button;
}

.cg-news-note {
	grid-area: note;
	margin: 0;
	font-size: 12.5px;
	opacity: 0.6;
}

@media (max-width: 560px) {
	.cg-newsletter-form {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"field"
			"button"
			"note";
		row-gap: 12px;
	}
}

.cg-newsletter-form input[type="email"] {
	width: 100%;
	min-width: 0;
	padding: 13px 16px;
	font: inherit;
	border: 1px solid var(--wp--preset--color--border);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--on-footer) 40%, transparent);
	border-radius: var(--wp--custom--radius--input);
	background: transparent;
	background: color-mix(in srgb, var(--wp--preset--color--on-footer) 10%, transparent);
	color: var(--wp--preset--color--on-footer);
}

/* ---------- giving panel ---------- */

.cg-amounts {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}

.cg-amounts a,
.cg-amounts span {
	display: block;
	text-align: center;
	padding: 13px 0;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--input);
	font-weight: 700;
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
}

.cg-amounts a:hover {
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
}

/* ---------- sermon/event meta strip (markup from Core plugin) ---------- */

.cg-meta-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	padding: 16px 0;
	margin-bottom: 26px;
	border-top: 1px solid var(--wp--preset--color--border);
	border-bottom: 1px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--muted);
	font-size: 14.5px;
}

.cg-meta-strip strong {
	color: var(--wp--preset--color--contrast);
}

/* ---------- footer ---------- */

.cg-footer {
	background: var(--wp--preset--color--footer);
	color: var(--wp--preset--color--on-footer);
}

.cg-footer a {
	color: var(--wp--preset--color--on-footer);
	text-decoration: none;
}

.cg-footer a:hover {
	color: #fff;
}

.cg-footer h4 {
	color: #fff;
	font-size: 15px;
	margin: 0 0 14px;
}

.cg-footer .cg-wordmark {
	color: #fff;
}

/* ---------- archives ---------- */

.cg-archive-card .wp-block-post-title {
	font-size: 21px;
}

.cg-archive-card .wp-block-post-title a {
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
}

.cg-archive-card .wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent);
}

/* ---------- motion (inside no-preference only) ---------- */

@media (prefers-reduced-motion: no-preference) {
	.cg-card,
	.cg-row,
	.cg-chip--filter,
	.cg-form button[type="submit"],
	.wp-block-button__link {
		transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.22s ease, transform 0.22s ease;
	}

	.cg-card:hover {
		transform: translateY(-3px);
	}
}

/* ---------- responsive ---------- */

@media (max-width: 781px) {
	.cg-hero {
		min-height: 64vh;
	}

	.cg-hero-inner {
		padding: 80px 0 48px;
	}


	.cg-row {
		flex-wrap: wrap;
	}

	.cg-amounts {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ---------- interaction states (rollovers, focus, dropdowns) ---------- */

/* Keyboard focus: one consistent, token-colored ring everywhere. */
:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

.cg-band :focus-visible,
.cg-hero :focus-visible,
.cg-footer :focus-visible {
	outline-color: currentColor;
}

/* Text selection carries the brand. */
::selection {
	background: var(--wp--preset--color--accent);
	color: #fff;
}

/* Headings avoid orphaned last words (progressive enhancement). */
h1, h2, h3 {
	text-wrap: balance;
}

/* Dropdown submenus (client-added child pages): token surface, not
   the core default white panel — critical on the dark variation. */
.cg-header .wp-block-navigation .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--input);
	box-shadow: var(--wp--custom--shadow--hover);
	padding: 6px;
}

.cg-header .wp-block-navigation .wp-block-navigation__submenu-container a {
	color: var(--wp--preset--color--contrast);
	border-radius: calc(var(--wp--custom--radius--input) - 4px);
}

.cg-header .wp-block-navigation .wp-block-navigation__submenu-container a:hover {
	color: var(--wp--preset--color--accent);
	background: var(--wp--preset--color--tint);
}

/* Mobile overlay close/open buttons inherit the right ink. */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--contrast);
}

/* Secondary (outline) buttons: legible in every context. */
.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 1.5px solid currentColor;
	color: var(--wp--preset--color--contrast);
}

.cg-hero .is-style-outline .wp-block-button__link {
	color: #fff;
}

.cg-band .is-style-outline .wp-block-button__link {
	color: var(--wp--preset--color--on-band);
}

.cg-footer .is-style-outline .wp-block-button__link {
	color: var(--wp--preset--color--on-footer);
}

.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
	color: #fff;
}

/* Play button rollover. */
.cg-play::after {
	transition: none;
}

.cg-play:hover::after {
	background: var(--wp--preset--color--accent-alt);
}

@media (prefers-reduced-motion: no-preference) {
	.cg-play::after {
		transition: transform 0.2s ease, background-color 0.18s ease;
	}

	.cg-play:hover::after {
		transform: translate(-50%, -50%) scale(1.08);
	}

	.wp-block-button__link:hover,
	.cg-form button[type="submit"]:hover {
		transform: translateY(-1px);
	}
}

/* ---------- blog ---------- */

.cg-blog-head {
	padding-bottom: 24px;
}

.cg-blog-intro {
	max-width: 640px;
	color: var(--wp--preset--color--muted);
}

.cg-blog-tools {
	gap: 18px;
	margin-top: 26px;
}

.cg-blog-search .wp-block-search__input {
	padding: 11px 16px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--input);
	background: var(--wp--preset--color--surface);
	font: inherit;
	color: var(--wp--preset--color--contrast);
	min-width: 240px;
}

.cg-blog-search .wp-block-search__button {
	padding: 11px 20px;
	border: 0;
	border-radius: var(--wp--custom--radius--button);
	background: var(--wp--preset--color--accent);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.cg-blog-search .wp-block-search__button:hover {
	background: var(--wp--preset--color--accent-alt);
}

/* Category list + post terms rendered as chips. */
.cg-cat-chips {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
}

.cg-cat-chips li {
	margin: 0;
}

.cg-cat-chips a {
	display: inline-block;
	padding: 6px 14px;
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--chip);
	color: var(--wp--preset--color--muted);
}

.cg-cat-chips a:hover {
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
}

.cg-terms-chips a {
	display: inline-block;
	padding: 4px 12px;
	margin: 0 6px 6px 0;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	background: var(--wp--preset--color--tint);
	border-radius: var(--wp--custom--radius--chip);
	color: var(--wp--preset--color--accent);
}

.cg-terms-chips a:hover {
	background: var(--wp--preset--color--accent);
	color: #fff;
}

.cg-terms-chips .wp-block-post-terms__separator {
	display: none;
}

.cg-featured-post {
	padding-bottom: 40px;
}

.cg-featured-inner {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--panel);
	box-shadow: var(--wp--custom--shadow--card);
	overflow: hidden;
	padding: 18px;
	gap: 30px;
}

.cg-featured-post .wp-block-post-title a,
.cg-archive-card .wp-block-post-title a {
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
}

.cg-featured-post .wp-block-post-title a:hover,
.cg-archive-card .wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent);
}

.cg-byline {
	gap: 10px;
	color: var(--wp--preset--color--muted);
	font-size: 14.5px;
}

.cg-byline .wp-block-avatar img {
	border-radius: 50%;
}

.cg-byline .wp-block-post-author-name {
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
}

.cg-readtime {
	white-space: nowrap;
}

.cg-blog-cta {
	text-align: center;
}

.cg-blog-cta .cg-newsletter-form {
	justify-content: center;
	max-width: 520px;
	margin: 18px auto 0;
}

/* article body rhythm: research-backed measure + line-height */
.cg-article .wp-block-post-content {
	font-size: 17.5px;
	line-height: 1.7;
}

.cg-article .wp-block-post-content > p {
	margin-block-start: 0;
	margin-block-end: 1.35em;
}

.cg-article .wp-block-post-content h2 {
	margin-top: 1.6em;
}

.cg-article .wp-block-post-content h3 {
	margin-top: 1.3em;
}

.cg-article .wp-block-post-content blockquote {
	border-left: 3px solid var(--wp--preset--color--accent);
	margin-left: 0;
	padding: 4px 0 4px 22px;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.15em;
	color: var(--wp--preset--color--muted);
}

.cg-author-box {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--panel);
	padding: 24px 26px;
}

.cg-author-box .wp-block-post-author__avatar img {
	border-radius: 50%;
}

.cg-author-box .wp-block-post-author__byline {
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--faint);
}

.cg-post-nav a {
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}

.cg-post-nav a:hover {
	color: var(--wp--preset--color--accent);
}

.cg-comments {
	margin-top: 52px;
	border-top: 1px solid var(--wp--preset--color--border);
	padding-top: 34px;
}

.cg-comment {
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.cg-comment .wp-block-avatar img {
	border-radius: 50%;
}

.cg-comment .wp-block-comment-author-name {
	font-weight: 700;
}

.cg-comment .wp-block-comment-date {
	color: var(--wp--preset--color--faint);
}

.cg-comment .wp-block-comment-reply-link a {
	color: var(--wp--preset--color--accent);
	text-decoration: none;
	font-weight: 600;
}

.cg-comments .comment-form input[type="text"],
.cg-comments .comment-form input[type="email"],
.cg-comments .comment-form input[type="url"],
.cg-comments .comment-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 13px 16px;
	font: inherit;
	color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--input);
}

.cg-comments .comment-form input:focus,
.cg-comments .comment-form textarea:focus {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 1px;
	border-color: var(--wp--preset--color--accent);
}

.cg-comments .form-submit .submit {
	padding: 14px 28px;
	border: 0;
	border-radius: var(--wp--custom--radius--button);
	background: var(--wp--preset--color--accent);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.cg-comments .form-submit .submit:hover {
	background: var(--wp--preset--color--accent-alt);
}

@media (max-width: 781px) {
	.cg-featured-inner {
		padding: 12px;
	}

	.cg-blog-tools {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ---------- article extras ---------- */

.cg-toc {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-left: 3px solid var(--wp--preset--color--accent);
	border-radius: var(--wp--custom--radius--input);
	padding: 18px 22px;
	margin: 0 0 30px;
	font-size: 15px;
}

.cg-toc-title {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: var(--wp--custom--eyebrow--tracking);
	text-transform: uppercase;
	color: var(--wp--preset--color--faint);
}

.cg-toc ol {
	margin: 0;
	padding-left: 18px;
}

.cg-toc li {
	margin: 4px 0;
}

.cg-toc a {
	text-decoration: none;
}

.cg-share {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 22px;
	flex-wrap: wrap;
}

.cg-share-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: var(--wp--custom--eyebrow--tracking);
	text-transform: uppercase;
	color: var(--wp--preset--color--faint);
}

.cg-share a {
	display: inline-block;
	padding: 7px 16px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--chip);
	color: var(--wp--preset--color--muted);
}

.cg-share a:hover {
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
}

/* Editorial drop cap on the opening paragraph. */
.cg-article .wp-block-post-content > p:first-of-type::first-letter {
	font-family: var(--wp--preset--font-family--display);
	font-weight: var(--wp--custom--display--weight);
	font-size: 3.3em;
	line-height: 0.85;
	float: left;
	padding: 0.04em 0.12em 0 0;
	color: var(--wp--preset--color--accent);
}

/* Smooth anchor scrolling for TOC jumps, motion-gated. */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

/* ---------- author archive / back-to-top / TOC details ---------- */

.cg-author-hero {
	gap: 20px;
	margin-bottom: 34px;
}

.cg-author-hero .wp-block-avatar img {
	border-radius: 50%;
}

.cg-backtop {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 40;
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	font-weight: 700;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--accent);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 50%;
	box-shadow: var(--wp--custom--shadow--card);
}

.cg-backtop:hover {
	background: var(--wp--preset--color--accent);
	color: #fff;
	border-color: var(--wp--preset--color--accent);
}

details.cg-toc summary.cg-toc-title {
	cursor: pointer;
	list-style: none;
	display: inline-block;
}

details.cg-toc summary.cg-toc-title::after {
	content: " \25BE";
	color: var(--wp--preset--color--accent);
}

details.cg-toc[open] summary.cg-toc-title::after {
	content: " \25B4";
}

.cg-cat-chips .cat-item {
	font-size: 12.5px;
}

.cg-cat-chips li {
	color: var(--wp--preset--color--faint);
	font-size: 11.5px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

/* ==========================================================================
   Full-bleed layer (1.2.9)
   `main` is now alignfull in every template, so `align:full` bands finally
   reach the viewport instead of stopping at the 1240px content width.
   These rules make edge-to-edge bands behave like bands rather than cards.
   ========================================================================== */

.cg-band.alignfull,
.cg-surface.alignfull {
	border-radius: 0;
	padding-left: var(--wp--preset--spacing--40);
	padding-right: var(--wp--preset--spacing--40);
}

/* A full-bleed band still needs its contents on the same optical column as
   the rest of the page. Constrained layout handles the width; this keeps the
   gutter honest on narrow viewports. */
.alignfull > .wp-block-columns,
.alignfull > .wp-block-group {
	margin-left: auto;
	margin-right: auto;
}

/* ==========================================================================
   Measure and balance (1.2.9)
   Page copy previously inherited the full 1240px column, running ~145
   characters per line. Editorial measure is 60-75.
   ========================================================================== */

.cg-section p:not(.cg-eyebrow):not(.cg-hero-sub):not(.cg-hero-meta):not(.has-small-font-size),
.cg-band p:not(.cg-eyebrow),
.cg-surface p:not(.cg-eyebrow) {
	max-width: 68ch;
	text-wrap: pretty;
	margin-inline: 0;
}

/* Deliberately centred sections keep their centring. */
.has-text-align-center,
.has-text-align-center p,
.has-text-align-center h2 {
	margin-inline: auto;
}

/* Display headings break on meaning, not on whatever the box allows. */
h1, h2, h3,
.wp-block-heading {
	text-wrap: balance;
}

h2.has-x-large-font-size,
h1.has-xx-large-font-size {
	max-width: 24ch;
	letter-spacing: -0.012em;
	margin-inline: 0;
}

/* Section markers: numeral, then label. Written into the markup as a real
   span (not a ::before on a data attribute) so it survives block editing and
   stays directly editable. */
.cg-step {
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
	font-size: 1.2em;
	letter-spacing: 0;
	margin-right: 0.8em;
	opacity: 0.9;
}

/* Accent words inside display headings. */
.wp-block-heading em,
.cg-accent {
	font-style: italic;
	font-weight: inherit;
}

/* ==========================================================================
   Footer partnerships (1.2.9)
   Both supplied marks carry a baked-in white ground (the NBC seal is a JPEG
   whose inner ring is white by design, so knocking the white out would punch
   holes in the artwork). Tiles are therefore correct here — but they are
   sized optically, not mechanically.
   ========================================================================== */

.cg-partners {
	text-align: center;
	margin-bottom: 28px;
}

.cg-partner-tiles {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 18px;
	margin-top: 18px;
}

.cg-partner-tiles a {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border-radius: var(--wp--custom--radius--media, 10px);
	padding: 16px 22px;
	min-height: 0;
	box-shadow: none;
	border: 1px solid rgba(255, 255, 255, 0.16);
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
	/* Legible fallback if a mark ever fails to load, contained to the tile. */
	color: #14161c;
	font-size: 12.5px;
	line-height: 1.35;
	text-align: center;
	overflow: hidden;
	max-width: 240px;
}

.cg-partner-tiles a:hover,
.cg-partner-tiles a:focus-visible {
	border-color: var(--wp--preset--color--accent, #c9a227);
	box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.28);
}

/* Normalise on the mark's own optical weight. A 180x65 wordmark and a square
   seal can never share a height and still read as siblings: the wordmark is
   set by width, the seal by a smaller box that matches its visual mass. */
.cg-partner-tiles img {
	display: block;
	width: auto;
	height: auto;
	object-fit: contain;
}

.cg-partner-tiles a[data-mark="wordmark"] img {
	max-width: 176px;
}

.cg-partner-tiles a[data-mark="seal"] img {
	max-width: 68px;
}

@media (prefers-reduced-motion: reduce) {
	.cg-partner-tiles a {
		transition: none;
	}
}

@media (max-width: 560px) {
	.cg-partner-tiles {
		gap: 14px;
	}

	.cg-partner-tiles a {
		padding: 13px 17px;
	}

	.cg-partner-tiles a[data-mark="wordmark"] img {
		max-width: 148px;
	}

	.cg-partner-tiles a[data-mark="seal"] img {
		max-width: 58px;
	}
}

/* ==========================================================================
   Tablet tier (920px)
   The build only had 781px (WordPress's own breakpoint) and 560px, so the
   band between tablet and desktop had nowhere to go: full-bleed bands kept
   desktop gutters while their columns were already cramped.
   ========================================================================== */

@media (max-width: 920px) {
	.cg-band.alignfull,
	.cg-surface.alignfull {
		padding-left: var(--wp--preset--spacing--30);
		padding-right: var(--wp--preset--spacing--30);
	}

	.cg-hero {
		min-height: 72vh;
	}

	.cg-hero h1 {
		max-width: 16ch;
		margin-inline: 0;
	}

	.cg-hero .cg-hero-sub {
		max-width: 46ch;
		margin-inline: 0;
	}

	/* Measure follows the column, not the viewport, once columns stack. */
	.cg-section p:not(.cg-eyebrow):not(.cg-hero-sub):not(.cg-hero-meta):not(.has-small-font-size),
	.cg-band p:not(.cg-eyebrow),
	.cg-surface p:not(.cg-eyebrow) {
		max-width: 62ch;
		margin-inline: 0;
	}

	h2.has-x-large-font-size,
	h1.has-xx-large-font-size {
		max-width: 18ch;
		margin-inline: 0;
	}
}

@media (max-width: 560px) {
	.cg-band.alignfull,
	.cg-surface.alignfull {
		padding-left: var(--wp--preset--spacing--30);
		padding-right: var(--wp--preset--spacing--30);
	}

	.cg-hero {
		min-height: 64vh;
	}

	.cg-hero h1,
	h2.has-x-large-font-size,
	h1.has-xx-large-font-size {
		max-width: none;
	}

	.cg-step {
		display: block;
		margin-right: 0;
		margin-bottom: 2px;
	}
}

/* ==========================================================================
   COMPOSITIONAL LAYER (1.2.9)
   One signature move, repeated: the numbered section marker hangs out of the
   text column into the left margin, the way a folio sits in a magazine
   gutter. It is the same gesture on every band of every page, and it only
   became possible once `main` went full-bleed and the margins opened up.
   ========================================================================== */

/* The rail only exists when there is margin to hang into: 1240px column plus
   two 110px rails. Below that the marker sits inline and nothing shifts. */
@media (min-width: 1470px) {
	.cg-eyebrow.cg-numbered {
		position: relative;
	}

	.cg-eyebrow.cg-numbered .cg-step {
		position: absolute;
		right: calc(100% + 34px);
		top: 50%;
		transform: translateY(-52%);
		margin: 0;
		font-size: 34px;
		line-height: 1;
		opacity: 0.55;
		white-space: nowrap;
	}

	/* The rule that normally precedes an eyebrow would collide with the
	   hanging folio, so it retracts when the folio is out. */
	.cg-eyebrow.cg-numbered::before {
		width: 18px;
	}
}

/* Full-bleed bands keep their own interior rail so the folio has somewhere
   to hang inside a coloured band too. */
@media (min-width: 1470px) {
	.cg-band.alignfull .cg-eyebrow.cg-numbered .cg-step,
	.cg-surface.alignfull .cg-eyebrow.cg-numbered .cg-step {
		opacity: 0.42;
	}
}

/* --------------------------------------------------------------------------
   Art direction: crops are decided here, not by whatever the source file
   happens to be. Faces sit in the upper third of a congregation photograph,
   so a centred crop cuts them; object-position pulls the frame up.
   -------------------------------------------------------------------------- */

.cg-media img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: 50% 38%;
	width: 100%;
	height: auto;
	display: block;
}

/* Portrait bands: a single figure beside a text column reads better tall than
   wide. Keyed to the media column (58% after the compositional pass), not to
   the text column, which is where this rule pointed and matched nothing. */
.wp-block-column[style*="flex-basis:58%"] .cg-media img,
.cg-portrait .cg-media img {
	aspect-ratio: 4 / 5;
	object-position: 50% 30%;
}

/* Staff headshots are already framed; do not re-crop them. */
.cg-media img[alt*="Reverend"],
.cg-media img[alt*="Deacon"],
.cg-media img[alt*="Minister"],
.cg-media img[alt*="Elder"] {
	aspect-ratio: 3 / 2;
	object-position: 50% 28%;
}

@media (max-width: 920px) {
	.cg-media img,
	.wp-block-column[style*="flex-basis:58%"] .cg-media img {
		aspect-ratio: 16 / 10;
		object-position: 50% 35%;
	}
}

/* ==========================================================================
   Events (1.2.15)
   The archive previously showed the WordPress publish date via the core
   post-date block, which for a dated event is the wrong number entirely.
   These style the plugin's event-meta block, which reads the real fields.
   ========================================================================== */

.cg-event-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5em;
	margin: 0 0 8px;
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--wp--preset--color--accent);
	max-width: none;
}

.cg-event-meta .cg-sep {
	opacity: 0.5;
}

.cg-event-meta .cg-event-loc {
	font-weight: 500;
	color: var(--wp--preset--color--muted);
}

.cg-band .cg-event-meta,
.cg-band .cg-event-meta .cg-event-loc {
	color: var(--wp--preset--color--band-label);
}

.cg-event-card .cg-card-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* Category chips on cards and singles. */
.cg-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 4px 0 0;
	font-size: 12px;
	letter-spacing: var(--wp--custom--eyebrow--tracking);
	text-transform: uppercase;
}

.cg-chips a {
	display: inline-block;
	padding: 4px 12px;
	border-radius: var(--wp--custom--radius--chip, 100px);
	border: 1px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--accent);
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.cg-chips a:hover,
.cg-chips a:focus-visible {
	background: var(--wp--preset--color--tint);
	border-color: var(--wp--preset--color--accent);
}

.cg-event-actions {
	margin: 28px 0 8px;
}

.cg-event-nav {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--wp--preset--color--border);
	gap: 16px;
	font-size: 14.5px;
}

.cg-event-nav .post-navigation-link-previous a,
.cg-event-nav .post-navigation-link-next a {
	color: var(--wp--preset--color--accent);
}

@media (max-width: 560px) {
	.cg-event-nav {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* 3. Twenty images ship as bare wp-block-image with no cg-media class, so no
   crop rule reached them at all. In a three-column card grid that means
   ragged card heights and uncontrolled face cropping. Card imagery is
   normalised here rather than by adding a class to every figure. */

.cg-card .wp-block-image img,
.cg-card-body ~ .wp-block-image img,
.wp-block-columns .wp-block-image:not(.cg-media):not(.cg-hero-media) img {
	aspect-ratio: 3 / 2;
	object-fit: cover;
	object-position: 50% 32%;
	width: 100%;
	height: auto;
}

.cg-play img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
	object-position: 50% 34%;
}

@media (max-width: 920px) {
	.wp-block-columns .wp-block-image:not(.cg-media):not(.cg-hero-media) img {
		aspect-ratio: 16 / 10;
	}
}

/* ==========================================================================
   Card media rollover (1.2.18)
   Cards lifted on hover but their imagery sat still, which reads as a static
   page with a moving box on it. Motion-gated, so it does not fire for anyone
   who has asked the OS for reduced motion.
   ========================================================================== */

.cg-card .wp-block-image,
.cg-card figure.wp-block-image,
.cg-archive-card .wp-block-post-featured-image {
	overflow: hidden;
	border-radius: var(--wp--custom--radius--media, 10px);
}

@media (prefers-reduced-motion: no-preference) {
	.cg-card .wp-block-image img,
	.cg-archive-card .wp-block-post-featured-image img {
		transition: transform 0.45s cubic-bezier(0.2, 0.6, 0.2, 1);
		will-change: transform;
	}

	.cg-card:hover .wp-block-image img,
	.cg-card:focus-within .wp-block-image img,
	.cg-archive-card:hover .wp-block-post-featured-image img,
	.cg-archive-card:focus-within .wp-block-post-featured-image img {
		transform: scale(1.045);
	}
}

/* Keyboard users get the same affordance as pointer users. */
.cg-card:focus-within {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

/* ==========================================================================
   Breadcrumbs (1.2.19)
   Orientation before content, matching the BreadcrumbList graph exactly so
   what a crawler reads and what a visitor sees never diverge.
   ========================================================================== */

.cg-breadcrumbs {
	margin: 0 0 18px;
	font-size: 13px;
	letter-spacing: 0.02em;
}

.cg-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5em;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cg-breadcrumbs li + li::before {
	content: "/";
	margin-right: 0.5em;
	opacity: 0.45;
}

.cg-breadcrumbs a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.cg-breadcrumbs a:hover,
.cg-breadcrumbs a:focus-visible {
	color: var(--wp--preset--color--accent);
	border-bottom-color: currentColor;
}

.cg-breadcrumbs [aria-current="page"] {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}

/* ==========================================================================
   Print (1.2.19)
   Churches print: bulletins, directions, event details, sermon notes. The
   screen design is bone-on-navy and full-bleed; none of that belongs on
   paper, and neither do navigation chrome or hero scrims.
   ========================================================================== */

@media print {
	.cg-header,
	.cg-footer,
	.cg-backtop,
	.cg-breadcrumbs,
	.cg-event-actions,
	.cg-event-nav,
	.wp-block-buttons,
	.cg-share,
	.cg-partners,
	form,
	iframe {
		display: none !important;
	}

	body {
		background: #fff !important;
		color: #000 !important;
		font-size: 11.5pt;
		line-height: 1.45;
	}

	.cg-hero {
		min-height: 0 !important;
		color: #000 !important;
		page-break-inside: avoid;
	}

	.cg-hero::after,
	.cg-hero-media {
		display: none !important;
	}

	.cg-hero h1,
	.cg-hero p {
		color: #000 !important;
	}

	.cg-band,
	.cg-surface {
		background: #fff !important;
		color: #000 !important;
		border: 1px solid #ccc;
		padding: 12pt !important;
	}

	.cg-band h1, .cg-band h2, .cg-band h3, .cg-band h4, .cg-band p {
		color: #000 !important;
	}

	h1, h2, h3 {
		page-break-after: avoid;
	}

	img {
		max-width: 100% !important;
		page-break-inside: avoid;
	}

	/* A printed page loses its links, so spell the destination out. */
	main a[href^="http"]::after {
		content: " (" attr(href) ")";
		font-size: 9pt;
		word-break: break-all;
	}

	.cg-event-meta {
		color: #000 !important;
		font-weight: 700;
	}
}

/* ==========================================================================
   Footer, rebuilt (1.2.20)
   The old footer was a single four-column row: identity, two short link
   lists and a signup form. The form column ran ~115px taller than its
   neighbours, so three of four columns ended in dead space, and the
   Partnerships band was centred while everything above it was left-aligned.
   Two tiers now: a wide lead row (identity + signup, the two things that
   need room) over a four-up link row that ends flush.
   ========================================================================== */

.cg-footer-lead {
	padding-bottom: 44px;
	margin-bottom: 44px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--on-footer) 16%, transparent);
}

.cg-footer .cg-wordmark {
	font-size: clamp(22px, 2vw, 28px);
	line-height: 1.2;
}

.cg-footer-blurb {
	max-width: 46ch;
	margin-inline: 0;
	opacity: 0.78;
	font-size: 15px;
}

.cg-footer-h {
	font-size: clamp(20px, 1.7vw, 24px);
	margin: 0 0 6px;
}

/* Quick actions read as a row of links, not a paragraph. */
.cg-footer-social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	margin-top: 20px;
	font-size: 14px;
}

.cg-footer-social a {
	position: relative;
	padding-bottom: 2px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.35);
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--on-footer) 35%, transparent);
}

.cg-footer-social a:hover,
.cg-footer-social a:focus-visible {
	border-bottom-color: currentColor;
}

.cg-footer-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: var(--wp--custom--eyebrow--tracking);
	text-transform: uppercase;
	opacity: 0.62;
	margin: 0 0 12px;
}

.cg-footer-nav {
	gap: 32px;
	margin-bottom: 8px;
}

.cg-footer-nav p {
	margin: 0;
	font-size: 14.5px;
	line-height: 2;
	max-width: none;
}

.cg-footer-gather p + p {
	margin-top: 14px;
}

/* Partnerships now share the page's left axis instead of centring alone,
   and the marks sit quieter than the church's own name above them. */
.cg-partners {
	text-align: left;
	margin: 48px 0 28px;
	padding-top: 40px;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--on-footer) 16%, transparent);
}

.cg-partner-tiles {
	justify-content: flex-start;
	margin-top: 16px;
}

.cg-partner-tiles a {
	opacity: 0.82;
	transition: opacity 0.18s ease, border-color 0.18s ease;
}

.cg-partner-tiles a:hover,
.cg-partner-tiles a:focus-visible {
	opacity: 1;
}

.cg-footer-base {
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--on-footer) 16%, transparent);
	gap: 12px 28px;
	font-size: 13px;
	opacity: 0.72;
}

.cg-footer-base p {
	margin: 0;
	max-width: none;
}

.cg-footer-legal {
	display: flex;
	gap: 18px;
}

@media (max-width: 920px) {
	.cg-footer-nav {
		gap: 28px;
	}
}

@media (max-width: 560px) {
	.cg-footer-lead,
	.cg-partners {
		padding-bottom: 32px;
		margin-bottom: 32px;
	}

	.cg-footer-base {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ==========================================================================
   Header call to action + scroll state (1.2.21)
   The header carried a wordmark and a nav and nothing else. On a church site
   the persistent "I'm new" and "Give" pair is the highest-converting element
   on the page, and moving those two out of the menu drops the nav from eight
   scannable items to six.
   ========================================================================== */

.cg-header-end {
	display: flex;
	align-items: center;
	gap: 22px;
	flex-wrap: nowrap;
}

.cg-header-cta {
	display: flex;
	gap: 10px;
	margin: 0;
	flex-wrap: nowrap;
}

.cg-header-cta .wp-block-button__link {
	padding: 9px 20px;
	font-size: 14px;
	white-space: nowrap;
}

/* The header sits over content, so its buttons stay compact and quiet until
   the page scrolls under them. */
.cg-header {
	transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.cg-header.is-scrolled {
	box-shadow: 0 6px 24px rgba(26, 12, 32, 0.10);
	background: var(--wp--preset--color--base);
	background: color-mix(in srgb, var(--wp--preset--color--base) 94%, transparent);
}

@media (max-width: 920px) {
	.cg-header-end {
		gap: 12px;
	}

	.cg-header-cta .wp-block-button__link {
		padding: 8px 15px;
		font-size: 13.5px;
	}
}

@media (max-width: 560px) {
	/* Both actions stay on the phone: "I'm new" is the one link a first-time
	   visitor needs, and it no longer lives in the menu. Compact padding
	   keeps the wordmark its room. */
	.cg-header-cta .wp-block-button__link {
		padding: 7px 12px;
		font-size: 12.5px;
	}
}

/* ==========================================================================
   Header search (1.2.22)
   Expand-on-click: the affordance is always visible, the field only appears
   when wanted, so the bar spends no width on an empty input.
   ========================================================================== */

.cg-header-search {
	margin: 0;
}

.cg-header-search .wp-block-search__button {
	background: transparent;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--button, 100px);
	color: var(--wp--preset--color--contrast);
	padding: 8px 10px;
	min-width: 0;
	transition: background 0.18s ease, border-color 0.18s ease;
}

.cg-header-search .wp-block-search__button:hover,
.cg-header-search .wp-block-search__button:focus-visible {
	background: var(--wp--preset--color--tint);
	border-color: var(--wp--preset--color--accent);
}

.cg-header-search .wp-block-search__button svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.cg-header-search .wp-block-search__input {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--input);
	padding: 8px 14px;
	font: inherit;
	font-size: 14px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

.cg-header-search .wp-block-search__input:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 1px;
}

/* ==========================================================================
   Sermon cards (1.2.22)
   ========================================================================== */

.cg-sermon-meta .cg-sermon-scripture,
.cg-sermon-meta .cg-sermon-date {
	font-weight: 500;
	color: var(--wp--preset--color--muted);
}

.cg-sermon-card .cg-card-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

@media (max-width: 560px) {
	.cg-header-search {
		display: none;
	}
}


/* ==========================================================================
   Dark mode (1.2.22)
   A dark counterpart to Warm Editorial that keeps the maroon-and-gold
   identity and inverts the ground. Every duty pair below was computed, not
   eyeballed, and the gate recomputes them on every release: the lowest
   measured ratio is 4.94:1 (faint on base) and the rest clear 7:1.

   Scoped away from Bold Contemporary, which is already a dark design, and
   applied only when the visitor's OS asks for it.
   ========================================================================== */

@media (prefers-color-scheme: dark) {
	body:not(.cg-var-bold-contemporary) {
	--wp--preset--color--base: #171221;
	--wp--preset--color--surface: #1E1830;
	--wp--preset--color--tint: #271F3A;
	--wp--preset--color--contrast: #F1EBF5;
	--wp--preset--color--muted: #B3A9C0;
	--wp--preset--color--faint: #8B8299;
	--wp--preset--color--accent: #CDA9E3;
	--wp--preset--color--accent-alt: #E3C382;
	--wp--preset--color--band: #130E1C;
	--wp--preset--color--on-band: #F1EBF5;
	--wp--preset--color--on-band-muted: #B5ABC2;
	--wp--preset--color--band-label: #E3C382;
	--wp--preset--color--footer: #0F0A17;
	--wp--preset--color--on-footer: #E4DAEC;
	--wp--preset--color--border: #332B46;
		color-scheme: dark;
	}

	/* Photographs carry their own light; take the edge off so they do not
	   glare against a dark ground. */
	body:not(.cg-var-bold-contemporary) .cg-media img,
	body:not(.cg-var-bold-contemporary) .cg-hero-media img {
		filter: brightness(0.92) saturate(0.96);
	}

	/* The partner marks ship on white grounds; a soft frame stops them
	   punching a hole in a dark footer. */
	body:not(.cg-var-bold-contemporary) .cg-partner-tiles a {
		opacity: 0.9;
	}
}

/* ==========================================================================
   Scroll reveal (1.2.22)
   Content is fully visible with no JavaScript and with reduced motion asked
   for: the class is only added by script, and the transition only exists
   inside a no-preference block. Nothing here can hide content.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
	.cg-reveal {
		opacity: 0;
		transform: translateY(14px);
		transition: opacity 0.6s cubic-bezier(0.2, 0.6, 0.2, 1),
			transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
	}

	.cg-reveal.is-in {
		opacity: 1;
		transform: none;
	}
}

/* ==========================================================================
   View transitions (1.2.22)
   Progressive enhancement: browsers without support navigate as before.
   ========================================================================== */

@view-transition {
	navigation: auto;
}

@media (prefers-reduced-motion: reduce) {
	::view-transition-group(*),
	::view-transition-old(*),
	::view-transition-new(*) {
		animation: none !important;
	}
}

/* ==========================================================================
   Container queries (1.2.22)
   Cards respond to the column they are in rather than to the viewport, so a
   card in a three-up grid and the same card in a sidebar behave correctly
   without either knowing the breakpoint.
   ========================================================================== */

.cg-card,
.cg-archive-card {
	container-type: inline-size;
	container-name: cg-card;
}

@container cg-card (max-width: 300px) {
	.cg-card-body {
		gap: 4px;
	}

	.cg-card-body .wp-block-post-title {
		font-size: 19px;
		line-height: 1.25;
	}

	.cg-event-meta,
	.cg-sermon-meta {
		font-size: 12.5px;
	}

	.cg-chips {
		display: none;
	}
}

/* ==========================================================================
   Card rhythm (1.2.26)
   `.cg-card p { margin: 0 }` zeroed every paragraph and nothing put the space
   back, so an event card's meta line and its description sat flush against
   each other and read as one run-on block. The card body now owns its own
   vertical rhythm.
   ========================================================================== */

.cg-card-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

/* The chip row and the date chip sit tighter to what follows them than the
   prose does; they are labels, not paragraphs. */
.cg-card-body > .cg-datechip,
.cg-card-body > p:has(> .cg-chip) {
	margin-bottom: -2px;
}

.cg-card-body .cg-event-meta {
	margin: 0;
}

/* Description gets a little more air than the meta line above it, so the
   two read as separate registers rather than one paragraph. */
.cg-card-body .cg-event-meta + p {
	margin-top: 2px;
	color: var(--wp--preset--color--muted);
}

/* A card title is a title that happens to be clickable, not a raw link. */
.cg-card h3 a,
.cg-card-body .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.18s ease, color 0.18s ease;
}

.cg-card h3 a:hover,
.cg-card h3 a:focus-visible,
.cg-card-body .wp-block-post-title a:hover,
.cg-card-body .wp-block-post-title a:focus-visible {
	color: var(--wp--preset--color--accent);
	border-bottom-color: currentColor;
}

.cg-card h3 {
	line-height: 1.25;
}

/* ==========================================================================
   Home slider (1.2.29)
   CSS scroll-snap does the sliding; JavaScript only adds arrows, dots and
   gentle auto-advance. With no JS the slider is a swipeable strip showing
   slide one, so nothing is lost. Each slide is ordinary editable blocks: an
   admin duplicates a slide group to add one, deletes it to remove one, and
   swaps images with the block editor's Replace.
   ========================================================================== */

.cg-slider {
	position: relative;
}

.cg-slides {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.cg-slides::-webkit-scrollbar {
	display: none;
}

.cg-slides > .cg-slide {
	flex: 0 0 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	margin: 0;
}

.cg-slider-nav {
	position: absolute;
	inset-inline: 0;
	bottom: 22px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	z-index: 3;
	pointer-events: none;
}

.cg-slider-nav button {
	pointer-events: auto;
	background: rgba(26, 12, 32, 0.45);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 100px;
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.18s ease, border-color 0.18s ease;
}

.cg-slider-nav button:hover,
.cg-slider-nav button:focus-visible {
	background: rgba(26, 12, 32, 0.75);
	border-color: #fff;
}

.cg-dots {
	display: flex;
	gap: 8px;
	pointer-events: auto;
}

.cg-dots button {
	width: 9px;
	height: 9px;
	padding: 0;
	font-size: 0;
	border-width: 0;
	background: rgba(255, 255, 255, 0.45);
}

.cg-dots button[aria-current="true"] {
	background: #fff;
	width: 22px;
}

@media (prefers-reduced-motion: reduce) {
	.cg-slides {
		scroll-behavior: auto;
	}
}

/* ==========================================================================
   Premium motion pass (1.2.30)
   One easing voice for the whole site, applied in four places: staggered
   card reveals, a nav underline that draws itself, button press states, and
   a settled landing for slider dots. Every rule that moves lives inside a
   no-preference block, and the stagger is scoped under .cg-reveal, a class
   only guarded JavaScript ever adds, so nothing here can hide content when
   scripts fail or motion is declined.
   ========================================================================== */

:root {
	--cg-ease: cubic-bezier(0.2, 0.6, 0.2, 1);
	--cg-move: 0.55s;
	--cg-snap: 0.18s;
}

@media (prefers-reduced-motion: no-preference) {
	/* Card grids arrive as a cadence, not a wall. Children of a revealing
	   section start where the section starts and land one beat apart. */
	.cg-reveal .cg-card,
	.cg-reveal .cg-archive-card {
		opacity: 0;
		transform: translateY(12px);
		transition: opacity var(--cg-move) var(--cg-ease),
			transform var(--cg-move) var(--cg-ease);
	}

	.cg-reveal.is-in .cg-card,
	.cg-reveal.is-in .cg-archive-card {
		opacity: 1;
		transform: none;
	}

	.cg-reveal.is-in .cg-card:nth-child(2),
	.cg-reveal.is-in .wp-block-column:nth-child(2) .cg-card {
		transition-delay: 90ms;
	}

	.cg-reveal.is-in .cg-card:nth-child(3),
	.cg-reveal.is-in .wp-block-column:nth-child(3) .cg-card {
		transition-delay: 180ms;
	}

	/* The nav underline draws itself from the left instead of appearing. */
	.cg-header .wp-block-navigation a {
		background-image: linear-gradient(currentColor, currentColor);
		background-repeat: no-repeat;
		background-position: 0 100%;
		background-size: 0% 1px;
		transition: background-size var(--cg-snap) var(--cg-ease),
			color var(--cg-snap) ease;
		padding-bottom: 3px;
	}

	.cg-header .wp-block-navigation a:hover,
	.cg-header .wp-block-navigation a:focus-visible,
	.cg-header .wp-block-navigation .current-menu-item > a {
		background-size: 100% 1px;
	}

	/* Buttons acknowledge the hand: a breath up on hover, a settle on press. */
	.wp-block-button__link {
		transition: transform var(--cg-snap) var(--cg-ease),
			background-color var(--cg-snap) ease,
			border-color var(--cg-snap) ease,
			color var(--cg-snap) ease;
	}

	.wp-block-button__link:hover {
		transform: translateY(-1px);
	}

	.wp-block-button__link:active {
		transform: translateY(0) scale(0.985);
		transition-duration: 0.07s;
	}

	/* Slider dots widen into place rather than snapping. */
	.cg-dots button {
		transition: width 0.25s var(--cg-ease), background 0.25s ease;
	}

	/* Back-to-top rises into view. */
	.cg-backtop {
		transition: transform var(--cg-snap) var(--cg-ease),
			box-shadow var(--cg-snap) ease;
	}

	.cg-backtop:hover,
	.cg-backtop:focus-visible {
		transform: translateY(-2px);
	}
}

/* ==========================================================================
   Event photo slot (1.2.31)
   The photo place exists from day one. With a featured image set it is the
   image; without one it is a quiet composed panel: soft brand gradient, the
   event date as a monogram, a small label. An admin fills it by setting the
   event's featured image (or swapping the figure on the Events page), and
   nothing else moves because both states hold the same 3:2 frame.
   ========================================================================== */

.cg-event-photo {
	margin: 0 0 14px;
	border-radius: var(--wp--custom--radius--media, 10px);
	overflow: hidden;
	aspect-ratio: 3 / 2;
}

.cg-event-photo img,
.cg-event-photo a {
	display: block;
	width: 100%;
	height: 100%;
}

.cg-event-photo img {
	object-fit: cover;
	object-position: 50% 32%;
}

.cg-event-photo.is-empty {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--wp--preset--color--tint);
	background-image: linear-gradient(160deg, var(--wp--preset--color--tint), var(--wp--preset--color--surface));
	background-image: radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--wp--preset--color--accent) 14%, transparent), transparent 60%), linear-gradient(160deg, var(--wp--preset--color--tint), var(--wp--preset--color--surface));
	border: 1px solid var(--wp--preset--color--border);
}

.cg-event-photo.is-empty a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-decoration: none;
}

.cg-ep-mono {
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1;
	color: var(--wp--preset--color--accent);
}

.cg-ep-day {
	font-family: var(--wp--preset--font-family--serif, serif);
	font-size: clamp(34px, 4vw, 44px);
	font-weight: 700;
}

.cg-ep-mon {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: var(--wp--custom--eyebrow--tracking);
	text-transform: uppercase;
	margin-top: 4px;
}

.cg-ep-note {
	font-size: 11px;
	letter-spacing: var(--wp--custom--eyebrow--tracking);
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	opacity: 0.8;
}

/* On the single event the slot breathes wider and taller. */
main .cg-event-photo:not(.cg-card .cg-event-photo) {
	aspect-ratio: 21 / 9;
	margin: 28px 0;
}

/* One consolidated contact card (1.2.34): the email is the destination, so
   it reads at heading weight. */
.cg-contact-one {
	max-width: 720px;
}

.cg-contact-one .cg-contact-mail a {
	font-family: var(--wp--preset--font-family--serif, serif);
	font-size: clamp(19px, 2.4vw, 24px);
	font-weight: 700;
	color: var(--wp--preset--color--accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	overflow-wrap: anywhere;
}

/* Footer schedule (1.2.40): one voice, four rows. Name left, time right on a
   shared baseline, a quiet hairline between rows, nothing wraps. */
.cg-sched {
	display: grid;
	gap: 0;
	max-width: 320px;
}

.cg-sched-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 14px;
	padding: 7px 0;
	border-bottom: 1px solid rgba(226, 193, 112, 0.16);
	font-size: 13.5px;
}

.cg-sched-row:last-child {
	border-bottom: 0;
}

.cg-sched-name {
	color: var(--wp--preset--color--on-band);
	font-weight: 600;
}

.cg-sched-time {
	color: var(--wp--preset--color--on-footer);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

/* Featured pastor row on home (1.2.41). */
.cg-staff-feature {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--media, 10px);
	padding: 22px;
	margin-bottom: 26px;
	gap: 26px;
}

/* Staff card parity (1.2.44): bios differ in length, cards do not. Every
   card fills its column to the same height, and the body grows so rows of
   cards keep one shared bottom line. */
.wp-block-column > .cg-card {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.wp-block-column > .cg-card > .cg-card-body {
	flex: 1;
}
