/*
Theme Name: Legacy Church
Theme URI: https://example.com/legacy-church
Author: Legacy Church
Description: A modern, bold block theme for churches. Big confident headlines with italic serif accents, dark service-time bands, sermon and event sections, next-step cards and a rich footer. Every color, font and spacing value is a design token in theme.json (switch palettes in Appearance → Editor → Styles), and church details live in Appearance → Church Info.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.4
Version: 1.9.32
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: legacy-church
Tags: block-patterns, block-styles, full-site-editing, style-variations, wide-blocks, custom-colors, custom-logo, editor-style, one-column, two-columns, three-columns
*/

/* ---------------------------------------------------------------------------
 * NOTE: there are no hard-coded brand colors in this file. Everything uses the
 * palette tokens from theme.json, e.g. var(--wp--preset--color--accent).
 * ------------------------------------------------------------------------ */

:root {
	--legacy-em: var(--wp--preset--color--accent);
	--legacy-header-offset: var(--wp-admin--admin-bar--height, 0px);
}

html {
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Italic serif accent words: type *home.* in italics inside any heading. */
:where(h1, h2, h3, h4, .wp-block-heading, .wp-block-post-title, .wp-block-query-title) em {
	font-family: var(--wp--preset--font-family--accent);
	font-style: italic;
	font-weight: 400;
	letter-spacing: -0.015em;
	color: var(--legacy-em);
}

/* Context-aware accent + muted colors inside dark / accent sections. */
.is-style-section-dark,
.has-contrast-background-color,
.legacy-site-header,
.legacy-site-footer {
	--legacy-em: var(--wp--preset--color--accent-light);
}
.is-style-section-accent,
.has-accent-background-color {
	--legacy-em: currentColor;
}

.is-style-section-dark .is-style-eyebrow,
.has-contrast-background-color .is-style-eyebrow,
.legacy-site-footer .is-style-eyebrow,
.is-style-section-dark .is-style-lead-serif:not(.has-text-color),
.has-contrast-background-color .is-style-lead-serif:not(.has-text-color) {
	color: var(--wp--preset--color--muted-light);
}
.is-style-section-accent .is-style-eyebrow,
.has-accent-background-color .is-style-eyebrow,
.wp-block-cover .is-style-eyebrow {
	color: currentColor;
	opacity: 0.8;
}
.is-style-lead-serif:not(.has-text-color) {
	color: var(--wp--preset--color--muted);
}
.is-style-section-accent .is-style-lead-serif:not(.has-text-color),
.has-accent-background-color .is-style-lead-serif:not(.has-text-color) {
	color: currentColor;
}

/* Buttons --------------------------------------------------------------- */
.wp-element-button,
.wp-block-button__link {
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.wp-block-button.is-style-arrow-link .wp-block-button__link:hover {
	background: transparent;
	color: currentColor;
	opacity: 0.7;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--surface);
}
.is-style-section-dark .wp-block-button.is-style-outline .wp-block-button__link:hover,
.has-contrast-background-color .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
}
.is-style-section-accent .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--accent-contrast);
	color: var(--wp--preset--color--accent);
}
.wp-block-read-more:hover {
	opacity: 0.7;
}

/* Header ---------------------------------------------------------------- */
.legacy-header-wrap {
	position: sticky;
	top: var(--legacy-header-offset);
	z-index: 100;
}
.legacy-site-header .wp-block-site-logo img {
	max-height: 40px;
	width: auto;
}
.legacy-site-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--accent-light);
}
.legacy-site-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: 2rem;
}
.legacy-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 800;
	letter-spacing: -0.02em;
	gap: 0.75rem;
}
@media (max-width: 781px) {
	.legacy-site-header .legacy-header-give {
		display: none;
	}
}

/* Announcement bar ------------------------------------------------------ */
.legacy-announcement {
	position: relative;
}
.legacy-announcement[hidden] {
	display: none !important;
}
.legacy-announcement a {
	font-weight: 600;
}
.legacy-announcement__close {
	position: absolute;
	right: clamp(0.5rem, 2vw, 1.5rem);
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: 0;
	color: inherit;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	padding: 0.25rem 0.5rem;
	opacity: 0.7;
}
.legacy-announcement__close:hover,
.legacy-announcement__close:focus-visible {
	opacity: 1;
}

/* Service times band ---------------------------------------------------- */
.legacy-service-times > .wp-block-group {
	border-left: 2px solid color-mix(in srgb, currentColor 30%, transparent);
	padding-left: 1rem;
}
.legacy-service-times .legacy-service-time {
	margin: 0;
	line-height: 1.1;
}
.legacy-service-times > .legacy-service-day {
	border-left: 0;
	padding-left: 0;
}
.legacy-service-times p {
	margin: 0;
}
.legacy-service-where .is-style-eyebrow {
	opacity: 0.75;
}
/* The times sit on a white card under the hero video. */
.legacy-service-card {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 20px;
	padding: 1.5rem 1.75rem;
	box-shadow: var(--wp--preset--shadow--soft);
}
.legacy-service-card .legacy-service-times > .wp-block-group {
	border-left-color: var(--wp--preset--color--line);
}
.legacy-service-card .is-style-eyebrow {
	color: var(--wp--preset--color--muted);
}
@media (max-width: 600px) {
	.legacy-service-card {
		padding: 1.25rem;
		row-gap: 1.1rem;
	}
	.legacy-service-card .legacy-service-times {
		gap: 0.9rem 1rem !important;
	}
	.legacy-service-card .legacy-service-times > .wp-block-group {
		padding-left: 0.9rem;
	}
	.legacy-service-card .legacy-service-times > .legacy-service-day {
		padding-left: 0;
	}
	.legacy-service-card .is-style-eyebrow {
		font-size: 10px !important;
		letter-spacing: 0.12em !important;
	}
	.legacy-service-card .legacy-service-time {
		font-size: 1.5rem !important;
	}
	.legacy-service-card .legacy-service-where {
		flex-basis: 100%;
		border-left: 0 !important;
		padding-left: 0 !important;
	}
	.legacy-service-card .legacy-service-where p:first-child {
		font-size: 1.05rem !important;
	}
	.legacy-service-card .wp-block-buttons,
	.legacy-service-card .wp-block-button,
	.legacy-service-card .wp-block-button__link {
		width: 100%;
	}
}

/* Cards ----------------------------------------------------------------- */
.is-style-card {
	overflow: hidden;
	box-shadow: var(--wp--preset--shadow--soft);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.is-style-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--wp--preset--shadow--lift);
}
.is-style-card > .wp-block-post-featured-image:first-child,
.is-style-card > .wp-block-image:first-child,
.is-style-card > .legacy-media-wrap:first-child,
.is-style-card > .legacy-media-wrap:first-child .wp-block-post-featured-image,
.is-style-card > .legacy-media-wrap:first-child img,
.is-style-card > .wp-block-post-featured-image:first-child img,
.is-style-card > .wp-block-image:first-child img {
	border-radius: 0;
	margin-top: 0;
}

/* Event cards: date badge pinned to the image. */
.legacy-media-wrap {
	position: relative;
}
.legacy-date-badge {
	position: absolute;
	top: 1rem;
	left: 1rem;
	z-index: 2;
	min-width: 3.25rem;
	text-align: center;
	box-shadow: var(--wp--preset--shadow--subtle);
}
.legacy-date-badge p {
	margin: 0;
	line-height: 1.1;
}

/* Homepage "See what's coming up": a compact list, one row per event.
   The whole row opens the event (the arrow link is stretched over it). */
.legacy-event-list {
	margin-top: clamp(1.5rem, 3vw, 2.25rem) !important;
}
.legacy-event-list .wp-block-post-template {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--wp--preset--color--line);
}
.legacy-event-list .wp-block-post-template > li {
	margin: 0;
}
.legacy-event-row {
	position: relative;
	gap: 1rem 1.5rem !important;
	padding: 1.1rem 0.25rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
	transition: background-color 0.2s ease;
}
.legacy-event-row:hover {
	background-color: rgba(31, 68, 224, 0.04);
}
.legacy-event-date {
	flex: 0 0 auto;
	width: 3.75rem;
	gap: 0.15rem !important;
	padding: 0.55rem 0.25rem;
	border-radius: 10px;
	background: rgba(31, 68, 224, 0.08);
	text-align: center;
}
.legacy-event-date p {
	margin: 0;
	line-height: 1.05;
}
.legacy-event-date__month {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}
.legacy-event-date__day {
	font-size: 1.5rem;
	font-weight: 800;
}
.legacy-event-row__text {
	flex: 1 1 auto;
	min-width: 0;
}
.legacy-event-row__text .wp-block-post-title {
	margin: 0;
	line-height: 1.2;
}
.legacy-event-row__time {
	margin: 0;
	font-size: 0.95rem;
	color: var(--wp--preset--color--muted);
}
.legacy-event-row__go {
	flex: 0 0 auto;
	margin: 0 !important;
}
.legacy-event-row__go .wp-block-button__link::after {
	content: "";
	position: absolute;
	inset: 0;
}
/* Phones: just the arrow on the right. */
@media (max-width: 600px) {
	.legacy-event-row__go .wp-block-button__link {
		font-size: 0;
		border-bottom: 0;
		padding: 0;
	}
	.legacy-event-row__go .wp-block-button__link::before {
		content: "\2192";
		font-size: 1.35rem;
		font-weight: 700;
	}
	.legacy-event-row__text .wp-block-post-title {
		font-size: 1.1rem !important;
	}
}

/* Homepage testimonies band: three clips that open on YouTube. */
.legacy-testimony-videos {
	margin-top: clamp(2rem, 4vw, 3rem) !important;
}
.legacy-testimony-thumb {
	margin: 0;
}
.legacy-testimony-thumb a {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 16px;
	box-shadow: var(--wp--preset--shadow--soft);
}
.legacy-testimony-thumb img {
	display: block;
	width: 100%;
	transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.legacy-testimony-thumb a::after {
	content: "";
	position: absolute;
	left: 14px;
	bottom: 14px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231f44e0' d='M8 5.5v13l11-6.5z'/%3E%3C/svg%3E") 55% 50% / 20px no-repeat;
	box-shadow: var(--wp--preset--shadow--subtle);
	transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.legacy-testimony-thumb a:hover img,
.legacy-testimony-thumb a:focus-visible img {
	transform: scale(1.04);
}
.legacy-testimony-thumb a:hover::after,
.legacy-testimony-thumb a:focus-visible::after {
	transform: scale(1.08);
}
.legacy-testimony-name {
	margin: 0;
	font-weight: 700;
	font-size: 1.05rem;
}
.legacy-testimony-name a {
	color: inherit;
	text-decoration: none;
}
.legacy-testimony-name a::after {
	content: " \2197";
	font-weight: 400;
	opacity: 0.75;
}
.legacy-testimony-name a:hover {
	opacity: 0.8;
}
@media (prefers-reduced-motion: reduce) {
	.legacy-testimony-thumb img,
	.legacy-testimony-thumb a::after {
		transition: none;
	}
}
/* Phones: the clips sit in a row you swipe, the next one peeking in. */
@media (max-width: 781px) {
	.legacy-testimony-videos {
		display: flex !important;
		flex-wrap: nowrap !important;
		gap: 1rem !important;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--wp--style--root--padding-left, 1rem);
		margin-left: calc(var(--wp--style--root--padding-left, 1rem) * -1) !important;
		margin-right: calc(var(--wp--style--root--padding-right, 1rem) * -1) !important;
		padding: 0 var(--wp--style--root--padding-right, 1rem) 0.5rem var(--wp--style--root--padding-left, 1rem);
		scrollbar-width: none;
	}
	.legacy-testimony-videos::-webkit-scrollbar {
		display: none;
	}
	.legacy-testimony-videos > * {
		flex: 0 0 78vw;
		max-width: 340px;
		scroll-snap-align: start;
	}
}

/* Small Groups page: the four "My Crew story" clips in one row on desktop. */
.legacy-crew-stories .legacy-testimony-thumb a::after {
	left: auto;
	right: 14px;
}
@media (min-width: 782px) and (max-width: 1080px) {
	.legacy-crew-stories {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}
@media (min-width: 782px) {
	.legacy-crew-stories + .legacy-swipe-footer {
		display: none;
	}
}
/* Young Adults page (styled after digitaloriginal.app): the recap film
   plays as a silent background loop behind the hero, lighter headlines,
   green check lists, pill buttons and rounded white cards on light grey. The film's poster shows while it loads and for
   visitors who prefer reduced motion. */
.legacy-ya-hero {
	background: #1C1C1E url(assets/images/legacy-young-adults-poster.jpg) center / cover no-repeat;
	padding: var(--wp--preset--spacing--70) var(--wp--style--root--padding-right, 1.5rem) var(--wp--preset--spacing--60) var(--wp--style--root--padding-left, 1.5rem) !important;
}
.legacy-ya-hero .wp-block-cover__background {
	opacity: 1 !important;
	background: linear-gradient(90deg, rgba(20, 20, 22, 0.78) 0%, rgba(20, 20, 22, 0.35) 50%, rgba(20, 20, 22, 0) 80%) !important;
}
.legacy-ya-hero .wp-block-cover__inner-container {
	color: #fff;
}
.legacy-ya-hero .is-style-eyebrow {
	color: rgba(255, 255, 255, 0.75);
}
.legacy-ya-hero .wp-block-cover__inner-container p {
	color: rgba(255, 255, 255, 0.88) !important;
}
.legacy-ya-hero ul.legacy-ya-checks {
	margin-top: 0.4rem;
}
.legacy-ya-hero h1,
.legacy-ya h2,
.legacy-ya h3 {
	font-weight: 500;
	letter-spacing: -0.035em;
}
.legacy-ya-hero h1 em,
.legacy-ya h2 em {
	font-weight: 400;
}
.legacy-ya-hero .wp-block-button__link,
.legacy-ya .wp-block-button__link {
	border-radius: 999px;
}
.legacy-ya-hero .is-style-outline .wp-block-button__link {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.7);
}
ul.legacy-ya-checks {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.55rem;
}
ul.legacy-ya-checks li {
	position: relative;
	padding-left: 1.9rem;
	font-weight: 500;
}
ul.legacy-ya-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.32em;
	width: 1.05rem;
	height: 0.55rem;
	border-left: 2.5px solid #1DB86B;
	border-bottom: 2.5px solid #1DB86B;
	transform: rotate(-45deg);
}
.legacy-ya-card {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line, #E8E6E1);
	border-radius: 24px;
	padding: 1.25rem 1.25rem 1.75rem;
}
.legacy-ya-card > :not(figure) {
	margin-left: 0.5rem !important;
	margin-right: 0.5rem !important;
}
.legacy-ya-card h3 {
	margin-top: 0.5rem !important;
}
.legacy-ya-sub {
	color: var(--wp--preset--color--accent, #1F44E0);
	font-weight: 600;
	margin: 0;
}
.legacy-ya-card .wp-block-buttons {
	padding-top: 0.5rem;
}
.legacy-ya-card--wide > .wp-block-columns {
	margin: 0 !important;
}
@media (max-width: 781px) {
	.legacy-ya-card--wide > .wp-block-columns {
		gap: 1.5rem !important;
	}
}
.legacy-ya-card--wide {
	padding: clamp(1.5rem, 4vw, 3rem) !important;
}
.legacy-ya-card--wide .wp-block-column:last-child > * + * {
	margin-top: 1rem;
}
@media (max-width: 781px) {
	.legacy-ya-hero {
		min-height: 115svh !important;
		padding-top: var(--wp--preset--spacing--60) !important;
	}
	.legacy-ya-hero .wp-block-cover__background {
		background: linear-gradient(180deg, rgba(20, 20, 22, 0) 0%, rgba(20, 20, 22, 0) 25%, rgba(20, 20, 22, 0.75) 45%, rgba(20, 20, 22, 0.92) 100%) !important;
	}
}
@media (prefers-reduced-motion: reduce) {
	.legacy-ya-hero .wp-block-cover__video-background {
		display: none;
	}
}

/* Headline words that stay on one line on phones ("Ron & Lori Termale."),
   shrinking a little on narrow screens so they still fit. */
@media (max-width: 781px) {
	.legacy-nowrap {
		white-space: nowrap;
		font-size: min(1em, calc((100vw - 2.5rem) / 8.7));
	}
}

/* "Swipe →" under a phone swipe row (testimonies band, next steps). Fades once the
   visitor swipes (theme.js). Hidden on wider screens. */
.legacy-swipe-hint {
	display: none;
}
/* A link on the left, the hint on the right (testimonies band, next steps). */
.legacy-swipe-footer {
	margin-top: clamp(1rem, 2.5vw, 1.75rem) !important;
	gap: 1rem;
}
.legacy-swipe-footer .wp-block-buttons,
.legacy-swipe-footer .legacy-swipe-hint {
	margin: 0 !important;
}
@media (max-width: 781px) {
	.legacy-swipe-hint {
		display: block;
		margin-top: 1rem !important;
		color: var(--wp--preset--color--accent) !important;
		opacity: 1;
		transition: opacity 0.4s ease;
	}
	.is-style-section-accent .legacy-swipe-hint,
	.is-style-section-dark .legacy-swipe-hint {
		color: #fff !important;
	}
	.legacy-swipe-hint.is-done {
		opacity: 0;
	}
	.legacy-swipe-hint__arrow {
		display: inline-block;
		margin-left: 0.35em;
		animation: legacy-xmas-nudge 1.6s ease-in-out infinite;
	}
}
@media (prefers-reduced-motion: reduce) {
	.legacy-swipe-hint__arrow {
		animation: none;
	}
}

/* Building band: eyebrow and headline sit above the photo. */
.legacy-building-head {
	margin-bottom: clamp(1.5rem, 3vw, 2.5rem) !important;
}
.legacy-building-head .is-style-eyebrow,
.legacy-building-head .wp-block-heading {
	margin: 0;
}

/* Play badge on video thumbnails. */
.is-style-play-badge {
	position: relative;
}
.is-style-play-badge::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: clamp(3rem, 7vw, 4.5rem);
	aspect-ratio: 1;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background:
		var(--wp--preset--color--surface)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l11-6.5z' fill='%231C1C1E'/%3E%3C/svg%3E")
		center / 42% no-repeat;
	box-shadow: var(--wp--preset--shadow--subtle);
	transition: transform 0.25s ease;
	pointer-events: none;
}
.is-style-play-badge:hover::after {
	transform: translate(-50%, -50%) scale(1.08);
}

/* Cover cards (next steps, ministries). */
.wp-block-cover.is-style-hover-zoom {
	overflow: hidden;
	isolation: isolate;
}
.wp-block-cover.is-style-hover-zoom .wp-block-cover__image-background {
	transition: transform 0.6s ease;
}
.wp-block-cover.is-style-hover-zoom:hover .wp-block-cover__image-background {
	transform: scale(1.06);
}
.wp-block-cover.is-style-hover-zoom a {
	text-decoration: none;
}
/* Small line under a cover card's title ("Here at Legacy Church, we call them Crews."). */
.wp-block-cover .legacy-cover-note {
	margin-top: 0.35rem;
	font-size: 0.95rem;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.88);
}
.wp-block-cover.is-style-hover-zoom .wp-block-heading a::after {
	/* Make the whole card clickable via the heading link. */
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
}

/* Horizontal scroller (group or post template). */
.is-style-scroller {
	display: flex !important;
	flex-wrap: nowrap !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--wp--style--root--padding-left, 1rem);
	padding-bottom: 1rem;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}
.is-style-scroller > * {
	flex: 0 0 clamp(240px, 70vw, 320px) !important;
	scroll-snap-align: start;
	margin-block-start: 0 !important;
}
/* Homepage next steps: on desktop the four cards share the row, no scrolling. */
@media (min-width: 1024px) {
	.is-style-scroller.legacy-next-row {
		overflow-x: visible;
	}
	.is-style-scroller.legacy-next-row > * {
		flex: 1 1 0 !important;
		min-width: 0;
	}
}
.wp-block-post-template.is-style-scroller {
	gap: var(--wp--preset--spacing--30);
}

/* Numbered features. The number sits on the same baseline as its title. */
.legacy-number {
	font-variant-numeric: tabular-nums;
	min-width: 1.4em;
	flex-shrink: 0;
}
.wp-block-group.is-layout-flex:has(> .legacy-number) {
	align-items: baseline !important;
}
@media (max-width: 781px) {
	.wp-block-group.is-layout-flex:has(> .legacy-number) {
		column-gap: 12px !important;
	}
}

/* Plain link lists (footer, sidebars). */
ul.is-style-plain-links {
	list-style: none;
	padding-left: 0;
	margin: 0;
}
ul.is-style-plain-links li {
	margin: 0 0 0.65rem;
}
ul.is-style-plain-links a {
	text-decoration: none;
}
ul.is-style-plain-links a:hover {
	text-decoration: underline;
}

/* Footer ---------------------------------------------------------------- */
.legacy-site-footer a:where(:not(.wp-element-button)) {
	text-decoration: none;
}
.legacy-site-footer a:where(:not(.wp-element-button)):hover {
	color: var(--wp--preset--color--surface);
	text-decoration: underline;
}
.legacy-site-footer .wp-block-social-links .wp-social-link {
	border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
}

/* Floating "Next step" button. */
.legacy-floating-cta {
	position: fixed;
	right: clamp(0.75rem, 2vw, 1.5rem);
	bottom: clamp(0.75rem, 2vw, 1.5rem);
	z-index: 90;
	margin: 0 !important;
}
.legacy-floating-cta .wp-block-button__link {
	border-radius: var(--wp--custom--radius--pill);
	box-shadow: var(--wp--preset--shadow--lift);
	letter-spacing: 0.02em;
	text-transform: none;
	font-size: var(--wp--preset--font-size--x-small);
	padding: 0.85rem 1.35rem;
}
/* Shown once the visitor scrolls past the hero, so it never covers the
   hero buttons (theme.js adds .legacy-js and toggles .is-visible). */
.legacy-floating-cta {
	transition: opacity 0.25s ease, transform 0.25s ease;
}
.legacy-js .legacy-floating-cta:not(.is-visible) {
	opacity: 0;
	transform: translateY(12px);
	pointer-events: none;
}

/* Sermon video embed. */
.legacy-sermon-video-embed {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--wp--custom--radius--medium);
	overflow: hidden;
	background: var(--wp--preset--color--contrast);
}
.legacy-sermon-video-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Details / FAQ. */
.wp-block-details summary {
	font-weight: 700;
	font-size: var(--wp--preset--font-size--medium);
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}
.wp-block-details summary::-webkit-details-marker {
	display: none;
}
.wp-block-details summary::after {
	content: "+";
	font-weight: 400;
	font-size: 1.5em;
	line-height: 1;
	transition: transform 0.2s ease;
}
.wp-block-details[open] summary::after {
	transform: rotate(45deg);
}

/* Next steps accordions (New to faith / Next steps at Legacy). */
.wp-block-details.legacy-path {
	align-self: stretch;
	width: 100%;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 16px;
	overflow: hidden;
}
.wp-block-details.legacy-path > summary {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	column-gap: 1rem;
	row-gap: 0.2rem;
	padding: clamp(20px, 4vw, 32px);
	font-size: inherit;
	font-weight: inherit;
}
.legacy-path__title {
	grid-column: 1;
	font-family: var(--wp--preset--font-family--primary);
	font-weight: 800;
	font-size: var(--wp--preset--font-size--x-large);
	letter-spacing: -0.02em;
	line-height: 1.1;
	color: var(--wp--preset--color--contrast);
}
.legacy-path__sub {
	grid-column: 1;
	font-family: var(--wp--preset--font-family--accent);
	font-style: italic;
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--accent);
}
.wp-block-details.legacy-path > summary::after {
	grid-column: 2;
	grid-row: 1 / span 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--surface);
	font-size: 28px;
}
.wp-block-details.legacy-path > .legacy-path__body {
	margin: 0;
	padding: clamp(20px, 4vw, 28px) clamp(20px, 4vw, 32px) clamp(24px, 4vw, 36px);
	border-top: 1px solid var(--wp--preset--color--line);
}
.legacy-path__body [id],
.wp-block-details.legacy-path[id] {
	scroll-margin-top: 110px;
}
.legacy-path-resources .wp-block-button__link {
	text-align: left;
}

/* About: a black bar anchors the "Our Vision Statement" heading; its two links are blue. */
.legacy-vision h2.wp-block-heading {
	position: relative;
	padding-left: 28px;
}
.legacy-vision h2.wp-block-heading::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.12em;
	bottom: 0.12em;
	width: 12px;
	border-radius: 0;
	background: var(--wp--preset--color--contrast);
}
.legacy-vision .wp-block-button.is-style-arrow-link .wp-block-button__link,
.legacy-vision .wp-block-button.is-style-arrow-link .wp-block-button__link:hover {
	color: var(--wp--preset--color--accent);
}
.legacy-resource-list .wp-block-buttons {
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

/* Pagination. */
.wp-block-query-pagination {
	font-weight: 600;
}
.wp-block-query-pagination a {
	text-decoration: none;
}

/* Accessibility -------------------------------------------------------- */
:where(a, button, summary, .wp-element-button):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}
.is-style-section-dark :where(a, button, .wp-element-button):focus-visible,
.has-contrast-background-color :where(a, button, .wp-element-button):focus-visible {
	outline-color: var(--wp--preset--color--accent-light);
}

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

/* Stacked full-width sections touch each other (no gaps between bands). */
.wp-site-blocks > * + *,
main > .alignfull + .alignfull,
.wp-block-post-content > .alignfull + .alignfull,
.wp-block-post-content > .alignfull:first-child {
	margin-block-start: 0;
}
.wp-block-post-content > .alignfull:last-child {
	margin-block-end: 0;
}

/* Photo cards & covers: accent words use the light accent over images. */
.wp-block-cover {
	--legacy-em: var(--wp--preset--color--accent-light);
}

/* Event date badge month in caps. */
.legacy-date-badge p:first-child {
	text-transform: uppercase;
}

/* Footer social icons: quiet outlined circles that follow the text color. */
.legacy-site-footer .wp-block-social-links .wp-social-link {
	background: transparent !important;
	color: currentColor !important;
}
.legacy-site-footer .wp-block-social-links .wp-social-link:hover {
	background: var(--wp--preset--color--accent) !important;
	border-color: var(--wp--preset--color--accent);
}

/* Announcement link keeps normal casing. */
.legacy-announcement .wp-block-button__link {
	text-transform: none;
	letter-spacing: 0.01em;
}

/* On phones the WP admin bar scrolls away, so the sticky header sits at the top. */
@media (max-width: 600px) {
	:root {
		--legacy-header-offset: 0px;
	}
}

/* Category pills (blog index and single posts) */
.legacy-term-pills,
ul.wp-block-categories.legacy-term-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.legacy-term-pills .wp-block-post-terms__separator {
	display: none;
}
.legacy-term-pills a {
	display: inline-block;
	padding: 0.4rem 0.95rem;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	color: inherit;
	opacity: 0.85;
}
.legacy-term-pills a:hover,
.legacy-term-pills .current-cat a {
	opacity: 1;
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-contrast);
}

/* Images inside imported blog posts */
.legacy-imported-image img {
	border-radius: 16px;
	height: auto;
}

/* Church Center calendar embed (Calendar page) */
.legacy-calendar-embed {
	width: 100%;
	border-radius: 16px;
	overflow: hidden;
	background: var(--wp--preset--color--surface);
	box-shadow: var(--wp--preset--shadow--soft);
}
.legacy-calendar-embed iframe {
	display: block;
	width: 100%;
	height: 900px;
	border: 0;
}
@media (max-width: 781px) {
	.legacy-calendar-embed iframe {
		height: 760px;
	}
}

/* Church Center form embed (School of Music interest list) */
.legacy-form-embed {
	width: 100%;
	border-radius: 16px;
	overflow: hidden;
	background: var(--wp--preset--color--surface);
	border: 1px solid rgba(0, 0, 0, 0.08);
}
.legacy-form-embed iframe {
	display: block;
	width: 100%;
	height: 980px;
	border: 0;
}

/* Home hero video: the stage photo shows while it loads, if it can't play,
   and for visitors who prefer reduced motion. */
.legacy-hero-video {
	background: #1C1C1E url(assets/images/legacy-worship-stage.jpg) center / cover no-repeat;
}
@media (max-width: 600px) {
	.legacy-hero-video {
		min-height: 440px !important;
	}
}
/* Never show Safari's grey play button over background videos (it appears
   when iPhone Low Power Mode blocks autoplay; theme.js starts the video on
   the visitor's first touch instead). */
.wp-block-cover__video-background {
	pointer-events: none;
}
.wp-block-cover__video-background::-webkit-media-controls,
.wp-block-cover__video-background::-webkit-media-controls-panel,
.wp-block-cover__video-background::-webkit-media-controls-start-playback-button,
.wp-block-cover__video-background::-webkit-media-controls-overlay-play-button {
	display: none !important;
	-webkit-appearance: none;
	opacity: 0 !important;
}
@media (prefers-reduced-motion: reduce) {
	.legacy-hero-video .wp-block-cover__video-background {
		display: none;
	}
}

/* English / Español switch (header) ------------------------------------ */
.legacy-lang {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	white-space: nowrap;
}
.legacy-lang a {
	color: rgba(255, 255, 255, 0.6);
	text-decoration: none;
	padding: 0.35rem 0.1rem;
}
.legacy-lang a:hover,
.legacy-lang a:focus-visible,
.legacy-lang a[aria-current="true"] {
	color: #fff;
}
.legacy-lang span {
	color: rgba(255, 255, 255, 0.3);
}

/* Keep Google Translate's own toolbar and tooltips out of the design. */
#legacy-gt,
iframe.skiptranslate,
.skiptranslate > iframe,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf {
	display: none !important;
}
body {
	top: 0 !important;
}
.goog-text-highlight {
	background: none !important;
	box-shadow: none !important;
}

/* Header: logo and Give never wrap (e.g. longer Spanish labels). */
.legacy-site-header .wp-block-site-title,
.legacy-site-header .wp-block-button__link {
	white-space: nowrap;
}

/* Slide-in menu (MENU button, inc/menu-panel.php) ----------------------- */
.legacy-menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem 0;
	border: 0;
	background: none;
	color: #fff;
	font: inherit;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	cursor: pointer;
}
.legacy-menu-toggle:hover {
	color: rgba(255, 255, 255, 0.75);
}
/* The panel replaces WordPress's own mobile menu everywhere ... */
.legacy-site-header .wp-block-navigation__responsive-container-open {
	display: none !important;
}
/* ... and is the whole menu below 1100px. */
@media (max-width: 1099px) {
	.legacy-site-header .wp-block-navigation {
		display: none;
	}
}
@media (max-width: 480px) {
	.legacy-menu-toggle__label {
		display: none;
	}
}

.legacy-menu {
	position: fixed;
	inset: 0;
	z-index: 100000;
}
.legacy-menu[hidden] {
	display: none;
}
.legacy-menu__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(28, 28, 30, 0.55);
	opacity: 0;
	transition: opacity 0.3s ease-out;
}
.legacy-menu__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(440px, 92vw);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--wp--preset--color--accent);
	color: #fff;
	box-shadow: var(--wp--preset--shadow--lift);
	transform: translateX(100%);
	transition: transform 0.3s cubic-bezier(0, 0, 0.2, 1);
	outline: none;
}
.legacy-menu.is-open .legacy-menu__backdrop {
	opacity: 1;
}
.legacy-menu.is-open .legacy-menu__panel {
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	.legacy-menu__backdrop,
	.legacy-menu__panel {
		transition: none;
	}
}
.legacy-menu__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
	padding: 66px 28px 20px;
}
.legacy-menu__label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
}
.legacy-menu__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 999px;
	background: none;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}
.legacy-menu__close:hover,
.legacy-menu__close:focus-visible {
	background: #fff;
	color: var(--wp--preset--color--accent);
}
.legacy-menu__body {
	padding: 0 28px 48px;
}
.legacy-menu__list,
.legacy-menu__sub,
.legacy-menu__social {
	list-style: none;
	margin: 0;
	padding: 0;
}
.legacy-menu a {
	text-decoration: none;
}
.legacy-menu__link {
	display: block;
	padding: 14px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.3px;
	line-height: 1.3;
	transition: color 0.15s;
}
.legacy-menu__link:hover {
	color: rgba(255, 255, 255, 0.7);
}
/* About / Ministries rows open and close (theme.js). */
.legacy-menu__expand {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: none;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	font-family: inherit;
	text-align: left;
	cursor: pointer;
}
.legacy-menu__expand svg {
	flex: none;
	transition: transform 0.2s ease;
}
.legacy-menu__expand[aria-expanded="true"] svg {
	transform: rotate(180deg);
}
.legacy-menu__sub {
	padding: 4px 0 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.legacy-menu__sub[hidden] {
	display: none;
}
.legacy-menu__sub a {
	display: block;
	padding: 9px 0 9px 16px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 17px;
	font-weight: 500;
	line-height: 1.3;
	transition: color 0.15s;
}
.legacy-menu__sub a:hover {
	color: #fff;
}
/* Next steps: the steps listed under New to faith / New to Legacy. */
.legacy-menu__has-steps > a {
	color: #fff;
	font-weight: 700;
}
.legacy-menu__has-steps + .legacy-menu__has-steps {
	margin-top: 6px;
}
.legacy-menu__steps {
	list-style: none;
	margin: 0 0 0 16px;
	padding: 0 0 4px;
	border-left: 1px solid rgba(255, 255, 255, 0.18);
}
.legacy-menu__steps a {
	padding: 7px 0 7px 16px;
	font-size: 16px;
	color: rgba(255, 255, 255, 0.75);
}
/* Quick links: a smaller, secondary group. */
.legacy-menu__quick {
	margin-top: 32px;
}
.legacy-menu__group-label {
	margin: 0 0 8px;
	color: rgba(255, 255, 255, 0.6);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2.5px;
	text-transform: uppercase;
}
.legacy-menu__quick-link {
	display: block;
	padding: 8px 0;
	color: rgba(255, 255, 255, 0.85);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	transition: color 0.15s;
}
.legacy-menu__quick-link:hover {
	color: #fff;
}
/* On desktop the full menu is in the header, so the panel shows quick links,
   at full size. */
@media (min-width: 1100px) {
	.legacy-menu__main {
		display: none;
	}
	.legacy-menu__quick {
		margin-top: 0;
	}
	.legacy-menu__quick-link {
		padding: 14px 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
		color: #fff;
		font-size: 20px;
		font-weight: 700;
	}
}
.legacy-menu__cta {
	display: block;
	margin-top: 40px;
	padding: 15px 24px;
	border-radius: 2px;
	background: #fff;
	color: var(--wp--preset--color--accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
	text-align: center;
	text-transform: uppercase;
	transition: transform 0.15s;
}
.legacy-menu__cta:hover {
	transform: translateY(-2px);
}
.legacy-menu__social {
	display: flex;
	gap: 12px;
	margin-top: 24px;
}
.legacy-menu__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 999px;
	color: rgba(255, 255, 255, 0.85);
	transition: background-color 0.15s, color 0.15s;
}
.legacy-menu__social a:hover,
.legacy-menu__social a:focus-visible {
	background: #fff;
	color: var(--wp--preset--color--accent);
}
.legacy-menu a:focus-visible,
.legacy-menu__expand:focus-visible,
.legacy-menu-toggle:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}
html.legacy-menu-open,
html.legacy-menu-open body {
	overflow: hidden;
}

/* Christmas at Legacy (homepage banner + page) --------------------------- */
/* Matches the church's 2026 Christmas designs: cream paper with deep red
   type, and a deep red "Join Us" card with a thin cream frame. */
.legacy-christmas,
.legacy-christmas-red {
	--xmas-red: #93301f;
	--xmas-red-deep: #7a2518;
	--xmas-cream: #f2ede3;
}
.legacy-christmas {
	--legacy-em: var(--xmas-red);
	background:
		radial-gradient(ellipse at 15% 0%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 60%),
		#e9e3d7;
	color: #2a1c18;
}
.legacy-christmas .is-style-eyebrow {
	color: var(--xmas-red);
	opacity: 1;
}
.legacy-christmas p {
	color: rgba(42, 28, 24, 0.82);
}
.legacy-christmas strong {
	color: #2a1c18;
}
.legacy-christmas .wp-block-image img {
	box-shadow: var(--wp--preset--shadow--soft);
}
.legacy-christmas .legacy-icon::before {
	background: var(--xmas-red);
}
.legacy-christmas .wp-block-buttons > .wp-block-button:first-child:not(.is-style-arrow-link) .wp-block-button__link {
	background: var(--xmas-red);
	border-color: var(--xmas-red);
	color: var(--xmas-cream);
}
.legacy-christmas .wp-block-buttons > .wp-block-button:first-child:not(.is-style-arrow-link) .wp-block-button__link:hover {
	background: var(--xmas-red-deep);
	border-color: var(--xmas-red-deep);
}
.legacy-christmas .wp-block-button.is-style-outline .wp-block-button__link {
	color: var(--xmas-red);
	border-color: rgba(147, 48, 31, 0.55);
}
.legacy-christmas .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--xmas-red);
	border-color: var(--xmas-red);
	color: var(--xmas-cream);
}

/* Rest of the Christmas page (marked by .legacy-christmas-page on its first section): accent words and icons in the same red. */
body:has(.legacy-christmas-page) .is-style-section-white,
body:has(.legacy-christmas-page) .is-style-section-light {
	--legacy-em: #93301f;
}
body:has(.legacy-christmas-page) .is-style-section-white .legacy-icon::before,
body:has(.legacy-christmas-page) .is-style-section-light .legacy-icon::before {
	background: #93301f;
}

/* Homepage banner kids line: the ages under each activity. */
.legacy-christmas .legacy-xmas-age {
	display: inline-block;
	margin-bottom: 0.3rem;
	font-size: 0.8em;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--xmas-red);
}

/* Homepage banner: "Christmas at Legacy · Free" sits above the photo. */
.legacy-christmas .legacy-xmas-label {
	margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}
.legacy-christmas .legacy-xmas-label .is-style-eyebrow {
	margin: 0;
}

/* Christmas page "What to expect": on phones, smaller cards in a row you
   swipe left, with the next card peeking in. */
@media (max-width: 781px) {
	.legacy-xmas-expect {
		display: flex !important;
		flex-wrap: nowrap !important;
		gap: 1rem !important;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		margin-left: calc(-1 * var(--wp--style--root--padding-left, 1rem)) !important;
		margin-right: calc(-1 * var(--wp--style--root--padding-right, 1rem)) !important;
		padding: 0 var(--wp--style--root--padding-right, 1rem) 0.5rem var(--wp--style--root--padding-left, 1rem);
		scroll-padding-inline: var(--wp--style--root--padding-left, 1rem);
		scrollbar-width: none;
	}
	.legacy-xmas-expect::-webkit-scrollbar {
		display: none;
	}
	.legacy-xmas-expect > * {
		flex: 0 0 64vw;
		max-width: 260px;
		scroll-snap-align: start;
		margin: 0 !important;
	}
	.legacy-xmas-expect h3 {
		font-size: 1.2rem !important;
	}
	.legacy-xmas-expect p {
		font-size: 0.95rem;
	}
	/* "Swipe →" under the row; fades once the visitor swipes (theme.js). */
	.legacy-xmas-swipe {
		display: block;
		margin-top: 1rem !important;
		color: #93301f;
		opacity: 1;
		transition: opacity 0.4s ease;
	}
	.legacy-xmas-swipe.is-done {
		opacity: 0;
	}
	.legacy-xmas-swipe__arrow {
		display: inline-block;
		margin-left: 0.35em;
		animation: legacy-xmas-nudge 1.6s ease-in-out infinite;
	}
}
@media (min-width: 782px) {
	.legacy-xmas-swipe {
		display: none;
	}
}
@keyframes legacy-xmas-nudge {
	0%, 100% { transform: translateX(0); }
	50% { transform: translateX(6px); }
}
@media (prefers-reduced-motion: reduce) {
	.legacy-xmas-swipe__arrow {
		animation: none;
	}
}

/* Kids cards on the Christmas page: a round badge with a hot cocoa mug or a
   Christmas ornament. */
.legacy-xmas-badge {
	position: relative;
	width: 56px;
	height: 56px;
	margin: 0 0 0.35rem !important;
	border-radius: 50%;
	background: rgba(147, 48, 31, 0.1);
}
.legacy-xmas-badge::before {
	content: "";
	position: absolute;
	inset: 13px;
	background: #93301f;
	-webkit-mask: var(--xmas-badge) center / contain no-repeat;
	mask: var(--xmas-badge) center / contain no-repeat;
}
.legacy-xmas-badge-mug {
	--xmas-badge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h12v5.5A4.5 4.5 0 0 1 11.5 20h-3A4.5 4.5 0 0 1 4 15.5z'/%3E%3Cpath d='M16 11.5h1.5a2.5 2.5 0 0 1 0 5H16'/%3E%3Cpath d='M8 2.8c-.7.9-.7 1.9 0 2.8s.7 1.9 0 2.8M12 2.8c-.7.9-.7 1.9 0 2.8s.7 1.9 0 2.8'/%3E%3C/svg%3E");
}
.legacy-xmas-badge-ornament {
	--xmas-badge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='14.5' r='6.5'/%3E%3Cpath d='M10 8.4V6.2h4v2.2'/%3E%3Cpath d='M12 6.2V4.6'/%3E%3Ccircle cx='12' cy='3.2' r='1.3'/%3E%3Cpath d='M5.9 12.6c4 1.6 8.2 1.6 12.2 0M6.4 17.4c3.7-1.4 7.5-1.4 11.2 0'/%3E%3C/svg%3E");
}

/* Deep red card ("Join Us" and the closing invite). */
.legacy-christmas-red {
	--legacy-em: var(--xmas-cream);
	background:
		radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 65%),
		var(--xmas-red);
	color: var(--xmas-cream);
}
.legacy-christmas-red p,
.legacy-christmas-red .is-style-eyebrow {
	color: rgba(242, 237, 227, 0.9);
	opacity: 1;
}
.legacy-christmas-red h2 em {
	font-size: 1.25em;
}
.legacy-xmas-frame {
	padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
	border: 1px solid rgba(242, 237, 227, 0.4);
	border-radius: 6px;
	outline: 1px solid rgba(242, 237, 227, 0.18);
	outline-offset: 8px;
}
.legacy-xmas-dates h3 {
	font-family: var(--wp--preset--font-family--accent);
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0;
}
.legacy-christmas-red .is-style-eyebrow {
	line-height: 1.9;
}
.legacy-christmas-red .wp-block-buttons > .wp-block-button:first-child:not(.is-style-arrow-link) .wp-block-button__link {
	background: var(--xmas-cream);
	border-color: var(--xmas-cream);
	color: var(--xmas-red);
}
.legacy-christmas-red .wp-block-buttons > .wp-block-button:first-child:not(.is-style-arrow-link) .wp-block-button__link:hover {
	background: #fff;
	border-color: #fff;
}
.legacy-christmas-red .wp-block-button.is-style-outline .wp-block-button__link {
	color: var(--xmas-cream);
	border-color: rgba(242, 237, 227, 0.6);
}
.legacy-christmas-red .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--xmas-cream);
	color: var(--xmas-red);
}

/* Small clock / pin / star icons before a line of text. */
.legacy-icon {
	position: relative;
	padding-left: 1.9em;
}
.legacy-icon::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 1.15em;
	height: 1.15em;
	background: currentColor;
	-webkit-mask: var(--legacy-icon) center / contain no-repeat;
	mask: var(--legacy-icon) center / contain no-repeat;
}
.legacy-icon-clock {
	--legacy-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}
.legacy-icon-pin {
	--legacy-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E");
}
.legacy-icon-star {
	--legacy-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2c.7 6.2 2.6 8.6 9 10-6.4 1.4-8.3 3.8-9 10-.7-6.2-2.6-8.6-9-10 6.4-1.4 8.3-3.8 9-10z'/%3E%3C/svg%3E");
}
.legacy-icon-list > p {
	margin: 0;
}
.is-style-card .legacy-icon::before,
.is-style-section-white .legacy-icon::before,
.is-style-section-light .legacy-icon::before {
	background: var(--wp--preset--color--accent);
}
.is-style-eyebrow.legacy-icon {
	padding-left: 1.7em;
}

/* Latest message: light section; the video sits on a soft blue glow. */
.legacy-latest .wp-block-column:first-child {
	position: relative;
}
.legacy-latest .wp-block-column:first-child::before {
	content: "";
	position: absolute;
	inset: 10% 3% -6% 3%;
	border-radius: 32px;
	background: #1f44e0;
	opacity: 0.3;
	filter: blur(40px);
	pointer-events: none;
}
.legacy-latest .legacy-sermon-video-embed,
.legacy-latest .wp-block-post-featured-image {
	position: relative;
	z-index: 1;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: var(--wp--preset--shadow--soft);
}
.legacy-latest .is-style-eyebrow {
	color: var(--wp--preset--color--accent);
}
.legacy-latest .legacy-latest-label {
	gap: 0.75rem 1.5rem;
	margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}
.legacy-latest .legacy-latest-label .is-style-eyebrow {
	margin: 0;
}
.legacy-latest .legacy-notes-link {
	color: var(--wp--preset--color--accent);
}
@media (max-width: 781px) {
	.legacy-latest .wp-block-column:first-child {
		margin-bottom: 14px;
	}
	.legacy-latest .wp-block-column:first-child::before {
		inset: 14% 8% -2% 8%;
		opacity: 0.2;
		filter: blur(28px);
	}
}

/* Click-to-play video: image + play button until pressed, then the player. */
.legacy-video-facade__button {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: var(--wp--preset--color--contrast);
	cursor: pointer;
	overflow: hidden;
	border-radius: inherit;
}
.legacy-video-facade__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.legacy-video-facade__play {
	position: absolute;
	left: 50%;
	top: 50%;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin: -28px 0 0 -28px;
	border-radius: 50%;
	background: #fff;
	color: #1f44e0;
	box-shadow: var(--wp--preset--shadow--subtle);
	transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.legacy-video-facade__play svg {
	margin-left: 3px;
}
/* Play arrow drawn in CSS when the icon was stripped from page content. */
.legacy-video-facade__play:empty::before {
	content: "";
	width: 0;
	height: 0;
	margin-left: 4px;
	border-left: 16px solid currentColor;
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent;
}
.legacy-video-facade__button:hover .legacy-video-facade__img,
.legacy-video-facade__button:focus-visible .legacy-video-facade__img {
	transform: scale(1.04);
}
.legacy-video-facade__button:hover .legacy-video-facade__play,
.legacy-video-facade__button:focus-visible .legacy-video-facade__play {
	transform: scale(1.08);
}
.legacy-video-facade__button:focus-visible {
	outline: 3px solid #1f44e0;
	outline-offset: -3px;
}
@media (prefers-reduced-motion: reduce) {
	.legacy-video-facade__img,
	.legacy-video-facade__play {
		transition: none;
	}
}
/* "Watch now" + "View notes" side by side on sermon cards. */
.legacy-sermon-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.5rem;
}

/* Homepage intro: even out the lines above "Join us this Sunday." so no word sits alone. */
.is-style-lead-serif.has-text-align-center:has(br) {
	text-wrap: balance;
}

/* Building band video link ("Watch the latest building update →"). */
.wp-block-buttons:has(.legacy-video-link) {
	margin-top: 1.25rem !important;
}

/* Hyphenated words that shouldn't split across lines ("Spirit-filled"). */
.legacy-keep { white-space: nowrap; }

/* Lines with our own Spanish wording (en_es() in dev/blocks.py): English by
   default, our Spanish when the site is switched to Español. */
.legacy-es { display: none; }
html.legacy-lang-es .legacy-en { display: none; }
html.legacy-lang-es .legacy-es { display: inline; }

/* Buttons with a small icon before the label (legacy-icon-pin / -phone). */
.wp-block-button[class*="legacy-icon-"] .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
}
.wp-block-button[class*="legacy-icon-"] .wp-block-button__link::before {
	content: "";
	flex-shrink: 0;
	width: 1.35em;
	height: 1.35em;
	background-color: currentColor;
	-webkit-mask: var(--legacy-icon) center / contain no-repeat;
	mask: var(--legacy-icon) center / contain no-repeat;
}
.legacy-icon-pin {
	--legacy-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.1-7-11.5a7 7 0 0 1 14 0C19 14.9 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E");
}
.legacy-icon-phone {
	--legacy-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.27 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.5c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E");
}
.legacy-icon-text {
	--legacy-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20.5l1.4-4.9A8 8 0 1 1 21 12z'/%3E%3C/svg%3E");
}
.legacy-expect-actions {
	margin-top: var(--wp--preset--spacing--50) !important;
}

/* Church Center app band: blue glow, phone icon, numbered setup card. */
.legacy-app-band {
	position: relative;
	overflow: hidden;
	background-image:
		radial-gradient(60% 80% at 100% 0%, rgba(31, 68, 224, 0.45) 0%, rgba(31, 68, 224, 0) 70%),
		radial-gradient(50% 60% at 0% 100%, rgba(150, 171, 255, 0.18) 0%, rgba(150, 171, 255, 0) 70%);
}
.legacy-app-icon {
	width: 72px;
	height: 72px;
	border-radius: 20px;
	background: var(--wp--preset--gradient--accent-glow);
	box-shadow: var(--wp--preset--shadow--soft);
	display: grid;
	place-items: center;
	margin-bottom: var(--wp--preset--spacing--30);
}
.legacy-app-icon::before {
	content: "";
	width: 36px;
	height: 36px;
	background-color: #fff;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='2.5'/%3E%3Cpath d='M10.5 18.5h3'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='2.5'/%3E%3Cpath d='M10.5 18.5h3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.legacy-app-card {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 20px;
	padding: clamp(24px, 4vw, 40px);
	backdrop-filter: blur(6px);
}
.legacy-app-step p {
	margin: 0;
}
.legacy-app-step__num {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--wp--preset--color--accent);
	color: #fff;
	font-weight: 800;
	font-size: 1.05rem;
	line-height: 1;
}
.legacy-app-card .wp-block-buttons {
	margin-top: var(--wp--preset--spacing--20);
}
.legacy-icon-apple {
	--legacy-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M16.4 12.6c0-2.4 2-3.6 2.1-3.7-1.1-1.7-2.9-1.9-3.5-1.9-1.5-.2-2.9.9-3.7.9-.8 0-1.9-.9-3.2-.8-1.6 0-3.1 1-4 2.4-1.7 3-.4 7.4 1.2 9.8.8 1.2 1.8 2.5 3 2.4 1.2 0 1.7-.8 3.1-.8 1.5 0 1.9.27 3.2.8 1.3 0 2.1-1.2 2.9-2.4.9-1.4 1.3-2.7 1.3-2.8 0 0-2.5-1-2.4-3.9zM14 5.5c.7-.8 1.1-1.9 1-3-1 0-2.1.6-2.8 1.4-.6.7-1.2 1.8-1 2.9 1.1.1 2.1-.5 2.8-1.3z'/%3E%3C/svg%3E");
}
.legacy-icon-play {
	--legacy-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 2.8v18.4c0 .7.8 1.1 1.4.7l15.2-9.2c.6-.4.6-1.2 0-1.5L5.4 2.1C4.8 1.7 4 2.1 4 2.8z'/%3E%3C/svg%3E");
}
/* Phones: Get directions on its own row, Call us and Text us side by side. */
@media (max-width: 600px) {
	.legacy-expect-actions .wp-block-buttons {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}
	.legacy-expect-actions .wp-block-button {
		width: 100%;
	}
	.legacy-expect-actions .wp-block-button:first-child {
		grid-column: 1 / -1;
	}
	.legacy-expect-actions .wp-block-button__link {
		width: 100%;
		justify-content: center;
	}
}

/* ======================================================================
   Kids page: bold and playful. Periwinkle, sunshine yellow, coral and mint
   with strong dark-navy outlines, a chunky rounded font (Rubik), mono
   labels, arrow buttons, a wavy-edged card, a ticker band and stickers.
   ====================================================================== */
.legacy-kids {
	--k-ink: #1d1e3c;
	--k-lav: #c7c6f4;
	--k-sun: #ffe14d;
	--k-coral: #ff8466;
	--k-mint: #62dfc4;
	--k-orange: #ff5b24;
	--k-cream: #fff7ea;
	--k-hl: var(--k-sun);
	--k-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
	position: relative;
	color: var(--k-ink);
}
.legacy-kids p,
.legacy-kids li {
	color: var(--k-ink);
}
.legacy-kids :where(h1, h2, h3, .wp-block-heading) {
	font-family: var(--wp--preset--font-family--kids);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: -0.005em;
	line-height: 0.98;
	color: var(--k-ink);
}
.legacy-kids :where(h1, h2, h3) em {
	font-family: inherit;
	font-style: normal;
	font-weight: 900;
	color: var(--k-ink);
	padding: 0 0.06em;
	background: linear-gradient(transparent 56%, var(--k-hl) 56%, var(--k-hl) 94%, transparent 94%);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}
.legacy-kids .is-style-eyebrow {
	display: inline-block;
	align-self: flex-start;
	width: fit-content;
	padding: 0.45em 0.95em;
	border: 2px solid var(--k-ink);
	border-radius: 999px;
	background: var(--k-cream);
	color: var(--k-ink);
	font-family: var(--k-mono);
	font-weight: 700;
	font-size: 0.72rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 1;
}
.legacy-kids .has-text-align-center.is-style-eyebrow {
	display: block;
	align-self: center;
	margin-inline: auto !important;
}
.legacy-kids-safety p:not(.is-style-eyebrow) {
	color: var(--k-ink) !important;
}
.legacy-kids .is-style-lead-serif {
	font-family: var(--wp--preset--font-family--primary);
	font-style: normal;
	font-weight: 500;
	color: var(--k-ink);
}

/* Buttons: outlined, hard shadow, little orange arrow box. */
.legacy-kids .wp-block-button__link,
.legacy-kids .wp-block-button.is-style-outline .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.8em;
	padding: 0.5em 0.5em 0.5em 1.15em;
	border: 2.5px solid var(--k-ink);
	border-radius: 12px;
	background: var(--k-cream);
	color: var(--k-ink);
	font-family: var(--wp--preset--font-family--primary);
	font-weight: 600;
	font-size: 1rem;
	letter-spacing: 0;
	text-transform: none;
	box-shadow: 3px 3px 0 var(--k-ink);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.legacy-kids .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: var(--k-sun);
}
.legacy-kids .wp-block-button__link::after {
	content: "";
	flex: none;
	width: 30px;
	height: 30px;
	border-radius: 8px;
	background: var(--k-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17L17 7M9 7h8v8' fill='none' stroke='white' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.legacy-kids .wp-block-button__link:hover,
.legacy-kids .wp-block-button.is-style-outline .wp-block-button__link:hover {
	transform: translate(2px, 2px);
	box-shadow: 1px 1px 0 var(--k-ink);
	background: var(--k-cream);
	color: var(--k-ink);
}
.legacy-kids .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background: var(--k-sun);
}

/* Photos: dark outline and a hard offset shadow. */
.legacy-kids-collage > .wp-block-image img,
.legacy-kids-pair > .wp-block-image img,
.legacy-kids-safety .wp-block-image img,
.legacy-kids-smiles > .wp-block-image img {
	border: 3px solid var(--k-ink) !important;
	box-shadow: 6px 6px 0 var(--k-ink);
}

/* Hero: periwinkle with a smiling sun sticker. */
.wp-block-group.legacy-kids-hero {
	background: var(--k-lav);
	overflow: hidden;
}
.legacy-kids-hero::before {
	content: "";
	position: absolute;
	top: 26px;
	right: 3%;
	width: 120px;
	height: 120px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50.0 2.0 L59.6 14.3 L74.0 8.4 L76.2 23.8 L91.6 26.0 L85.7 40.4 L98.0 50.0 L85.7 59.6 L91.6 74.0 L76.2 76.2 L74.0 91.6 L59.6 85.7 L50.0 98.0 L40.4 85.7 L26.0 91.6 L23.8 76.2 L8.4 74.0 L14.3 59.6 L2.0 50.0 L14.3 40.4 L8.4 26.0 L23.8 23.8 L26.0 8.4 L40.4 14.3z' fill='%23ff8a3d' stroke='%231d1e3c' stroke-width='3' stroke-linejoin='round'/%3E%3Ccircle cx='50' cy='50' r='27' fill='%23ffe14d' stroke='%231d1e3c' stroke-width='3'/%3E%3Ccircle cx='41' cy='45' r='3.6' fill='%231d1e3c'/%3E%3Ccircle cx='59' cy='45' r='3.6' fill='%231d1e3c'/%3E%3Cpath d='M38 55q12 12 24 0' fill='none' stroke='%231d1e3c' stroke-width='3.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
	animation: legacy-kids-wobble 6s ease-in-out infinite;
	z-index: 2;
}
.legacy-kids-hero > .wp-block-columns {
	position: relative;
	z-index: 1;
}
.legacy-kids-hero h1 {
	font-size: clamp(1.9rem, 7.6vw, 4.4rem);
}

/* Photo collage: big photo on top, two tilted below, daisy sticker. */
.legacy-kids-collage {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}
.legacy-kids-collage::after {
	content: "";
	position: absolute;
	left: -22px;
	bottom: -24px;
	width: 78px;
	height: 78px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='white' stroke='%231d1e3c' stroke-width='3'%3E%3Cellipse cx='50' cy='25' rx='10' ry='18' transform='rotate(0 50 50)'/%3E%3Cellipse cx='50' cy='25' rx='10' ry='18' transform='rotate(45 50 50)'/%3E%3Cellipse cx='50' cy='25' rx='10' ry='18' transform='rotate(90 50 50)'/%3E%3Cellipse cx='50' cy='25' rx='10' ry='18' transform='rotate(135 50 50)'/%3E%3Cellipse cx='50' cy='25' rx='10' ry='18' transform='rotate(180 50 50)'/%3E%3Cellipse cx='50' cy='25' rx='10' ry='18' transform='rotate(225 50 50)'/%3E%3Cellipse cx='50' cy='25' rx='10' ry='18' transform='rotate(270 50 50)'/%3E%3Cellipse cx='50' cy='25' rx='10' ry='18' transform='rotate(315 50 50)'/%3E%3C/g%3E%3Ccircle cx='50' cy='50' r='13' fill='%23ffb400' stroke='%231d1e3c' stroke-width='3'/%3E%3C/svg%3E") center / contain no-repeat;
	animation: legacy-kids-spin 30s linear infinite;
	z-index: 2;
}
.legacy-kids-collage > .wp-block-image {
	margin: 0;
}
.legacy-kids-collage > .wp-block-image:first-child {
	grid-column: 1 / -1;
	transform: rotate(-1.5deg);
}
.legacy-kids-collage > .wp-block-image:nth-child(2) {
	transform: rotate(-3deg) translateY(4px);
}
.legacy-kids-collage > .wp-block-image:nth-child(3) {
	transform: rotate(3deg) translateY(-6px);
}

/* Age groups: a cream card with a wavy (scalloped) outline on periwinkle. */
.wp-block-group.legacy-kids-ages {
	background: var(--k-lav);
}
.legacy-kids-scallop {
	--r: 14px;
	position: relative;
	isolation: isolate;
	padding: calc(var(--r) * 2 + clamp(16px, 3vw, 36px));
}
.legacy-kids-scallop::before,
.legacy-kids-scallop::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
}
.legacy-kids-scallop::before {
	background: var(--k-ink);
	-webkit-mask:
		linear-gradient(#000 0 0) center / calc(100% - 2 * var(--r)) calc(100% - 2 * var(--r)) no-repeat,
		radial-gradient(circle closest-side, #000 96%, #0000) 0 0 / calc(2 * var(--r)) calc(2 * var(--r)) round;
	mask:
		linear-gradient(#000 0 0) center / calc(100% - 2 * var(--r)) calc(100% - 2 * var(--r)) no-repeat,
		radial-gradient(circle closest-side, #000 96%, #0000) 0 0 / calc(2 * var(--r)) calc(2 * var(--r)) round;
}
.legacy-kids-scallop::after {
	background: var(--k-cream);
	-webkit-mask:
		linear-gradient(#000 0 0) center / calc(100% - 2 * var(--r) - 6px) calc(100% - 2 * var(--r) - 6px) no-repeat,
		radial-gradient(circle calc(var(--r) - 3px), #000 96%, #0000) 0 0 / calc(2 * var(--r)) calc(2 * var(--r)) round;
	mask:
		linear-gradient(#000 0 0) center / calc(100% - 2 * var(--r) - 6px) calc(100% - 2 * var(--r) - 6px) no-repeat,
		radial-gradient(circle calc(var(--r) - 3px), #000 96%, #0000) 0 0 / calc(2 * var(--r)) calc(2 * var(--r)) round;
}
.legacy-kids-scallop > .is-layout-grid {
	margin-top: var(--wp--preset--spacing--40) !important;
}
.legacy-kids-age {
	position: relative;
	padding: 12px 12px 24px;
	border: 2.5px solid var(--k-ink);
	border-radius: 24px;
	background: var(--k-color, var(--k-mint));
	box-shadow: 5px 5px 0 var(--k-ink);
	transition: transform 0.25s ease;
}
.legacy-kids-age:hover {
	transform: translateY(-4px) rotate(-0.8deg);
}
.legacy-kids-age > *:not(.wp-block-image) {
	margin-inline: 12px !important;
}
.legacy-kids-age > .wp-block-image {
	margin: 0;
}
.legacy-kids-age > .wp-block-image img {
	border: 2.5px solid var(--k-ink) !important;
	border-radius: 16px !important;
}
.legacy-kids-age--sky { --k-color: var(--k-mint); }
.legacy-kids-age--sun { --k-color: var(--k-sun); }
.legacy-kids-age--grass { --k-color: var(--k-coral); }
.legacy-kids-icon {
	width: 60px;
	height: 60px;
	margin-top: -42px !important;
	border-radius: 50%;
	background: var(--k-cream);
	border: 2.5px solid var(--k-ink);
	display: grid;
	place-items: center;
	position: relative;
	z-index: 1;
}
.legacy-kids-icon::before {
	content: "";
	width: 28px;
	height: 28px;
	background: var(--k-ink);
	-webkit-mask: var(--k-icon) center / contain no-repeat;
	mask: var(--k-icon) center / contain no-repeat;
}
.legacy-kids-icon--heart { --k-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.3C.9 8.2 3 4.5 6.6 4.5c2.1 0 3.6 1.2 4.4 2.6.8-1.4 2.3-2.6 4.4-2.6 3.6 0 5.7 3.7 4.2 7.2C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E"); }
.legacy-kids-icon--palette { --k-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 3a9 9 0 0 0 0 18c1.1 0 1.7-.8 1.7-1.6 0-1-.8-1.4-.8-2.3 0-.9.7-1.6 1.6-1.6H17a4 4 0 0 0 4-4C21 6.6 17 3 12 3zM7.5 13a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm2.5-4a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm4.5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z'/%3E%3C/svg%3E"); }
.legacy-kids-icon--rocket { --k-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 1.5c3.6 2 5.6 5.7 5.6 9.7v4.3l2.4 2.6-3.5.4-1.5 1.5H9l-1.5-1.5-3.5-.4 2.4-2.6v-4.3c0-4 2-7.7 5.6-9.7zm0 6a2 2 0 1 0 0 4 2 2 0 0 0 0-4zM10 21h4l-2 2.5z'/%3E%3C/svg%3E"); }
.legacy-kids-ages .legacy-kids-age h3 {
	font-size: clamp(1.6rem, 2.6vw, 2rem);
}

/* Ticker band: tilted yellow strip, scrolling words with little icons. */
.wp-block-group.legacy-kids-marquee {
	margin-block: 0 !important;
	padding: 26px 0;
	overflow: hidden;
	background: linear-gradient(var(--k-lav) 50%, var(--k-coral) 50%);
}
.legacy-kids-marquee__track {
	display: flex;
	width: 112%;
	margin: 0 0 0 -6% !important;
	padding: 0.45em 0;
	overflow: hidden;
	white-space: nowrap;
	background: var(--k-sun);
	border-block: 3px solid var(--k-ink);
	transform: rotate(-2.5deg);
}
.legacy-kids-marquee__run {
	display: flex;
	flex: none;
	align-items: center;
	animation: legacy-kids-marquee 26s linear infinite;
}
.legacy-kids-marquee__word {
	padding: 0 0.45em;
	font-family: var(--wp--preset--font-family--kids);
	font-weight: 900;
	font-size: clamp(1.35rem, 3.2vw, 2.1rem);
	text-transform: uppercase;
	color: var(--k-ink);
	line-height: 1.2;
}
.legacy-kids-marquee__icon {
	flex: none;
	width: 1.9em;
	height: 1.9em;
	font-size: clamp(1.1rem, 2.4vw, 1.5rem);
	background: center / contain no-repeat;
}
.legacy-kids-marquee__icon--daisy { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='white' stroke='%231d1e3c' stroke-width='3'%3E%3Cellipse cx='50' cy='25' rx='10' ry='18' transform='rotate(0 50 50)'/%3E%3Cellipse cx='50' cy='25' rx='10' ry='18' transform='rotate(45 50 50)'/%3E%3Cellipse cx='50' cy='25' rx='10' ry='18' transform='rotate(90 50 50)'/%3E%3Cellipse cx='50' cy='25' rx='10' ry='18' transform='rotate(135 50 50)'/%3E%3Cellipse cx='50' cy='25' rx='10' ry='18' transform='rotate(180 50 50)'/%3E%3Cellipse cx='50' cy='25' rx='10' ry='18' transform='rotate(225 50 50)'/%3E%3Cellipse cx='50' cy='25' rx='10' ry='18' transform='rotate(270 50 50)'/%3E%3Cellipse cx='50' cy='25' rx='10' ry='18' transform='rotate(315 50 50)'/%3E%3C/g%3E%3Ccircle cx='50' cy='50' r='13' fill='%23ffb400' stroke='%231d1e3c' stroke-width='3'/%3E%3C/svg%3E"); }
.legacy-kids-marquee__icon--smiley { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50.0 2.0 L59.6 14.3 L74.0 8.4 L76.2 23.8 L91.6 26.0 L85.7 40.4 L98.0 50.0 L85.7 59.6 L91.6 74.0 L76.2 76.2 L74.0 91.6 L59.6 85.7 L50.0 98.0 L40.4 85.7 L26.0 91.6 L23.8 76.2 L8.4 74.0 L14.3 59.6 L2.0 50.0 L14.3 40.4 L8.4 26.0 L23.8 23.8 L26.0 8.4 L40.4 14.3z' fill='%23ff8a3d' stroke='%231d1e3c' stroke-width='3' stroke-linejoin='round'/%3E%3Ccircle cx='50' cy='50' r='27' fill='%23ffe14d' stroke='%231d1e3c' stroke-width='3'/%3E%3Ccircle cx='41' cy='45' r='3.6' fill='%231d1e3c'/%3E%3Ccircle cx='59' cy='45' r='3.6' fill='%231d1e3c'/%3E%3Cpath d='M38 55q12 12 24 0' fill='none' stroke='%231d1e3c' stroke-width='3.6' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* Safety: coral, outlined list chips, shield sticker on the photo. */
.wp-block-group.legacy-kids-safety {
	background: var(--k-coral);
}
.legacy-kids-safety .wp-block-image {
	position: relative;
}
.legacy-kids-safety .wp-block-image img {
	transform: rotate(-2deg);
}
.legacy-kids-safety .wp-block-image::after {
	content: "";
	position: absolute;
	top: -26px;
	right: -14px;
	width: 74px;
	height: 74px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 6l36 13v26c0 24-16 40-36 49C30 85 14 69 14 45V19z' fill='%2362dfc4' stroke='%231d1e3c' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M33 50l12 12 22-25' fill='none' stroke='%231d1e3c' stroke-width='7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	transform: rotate(10deg);
}
.legacy-kids-safety ul.wp-block-list {
	list-style: none;
	padding-left: 0;
	display: grid;
	gap: 12px;
}
.legacy-kids-safety ul.wp-block-list li {
	position: relative;
	padding: 12px 16px 12px 56px;
	border: 2.5px solid var(--k-ink);
	border-radius: 14px;
	background: var(--k-cream);
	box-shadow: 3px 3px 0 var(--k-ink);
	font-weight: 600;
}
.legacy-kids-safety ul.wp-block-list li::before {
	content: "";
	position: absolute;
	left: 12px;
	top: 50%;
	width: 30px;
	height: 30px;
	margin-top: -15px;
	border: 2px solid var(--k-ink);
	border-radius: 50%;
	background: var(--k-mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231d1e3c' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* Sunday steps: cream, outlined cards, colored number bubbles. */
.wp-block-group.legacy-kids-steps {
	background: var(--k-cream);
	--k-hl: var(--k-mint);
}
.legacy-kids-steps .legacy-number {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	min-width: 52px;
	border: 2.5px solid var(--k-ink);
	border-radius: 50%;
	font-family: var(--wp--preset--font-family--kids);
	font-weight: 900;
	font-size: 1.5rem !important;
	color: var(--k-ink) !important;
	background: var(--k-lav);
}
.legacy-kids-steps .wp-block-group.is-layout-flex:has(> .legacy-number) {
	align-items: center !important;
}
.legacy-kids-steps .is-layout-grid > :nth-child(2) .legacy-number { background: var(--k-sun); }
.legacy-kids-steps .is-layout-grid > :nth-child(3) .legacy-number { background: var(--k-mint); }
.legacy-kids-steps .is-layout-grid > :nth-child(4) .legacy-number { background: var(--k-coral); }
.legacy-kids-steps .is-layout-grid > * {
	padding: 20px;
	border: 2.5px solid var(--k-ink);
	border-radius: 20px;
	background: #fff;
	box-shadow: 4px 4px 0 var(--k-ink);
}
.legacy-kids-steps h3 {
	font-size: 1.35rem;
}
.legacy-kids-pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
.legacy-kids-pair > .wp-block-image {
	margin: 0;
}
.legacy-kids-pair > .wp-block-image:first-child { transform: rotate(-3deg); }
.legacy-kids-pair > .wp-block-image:last-child { transform: rotate(3deg) translateY(18px); }
.legacy-kids-pair > .wp-block-image:only-child { grid-column: 1 / -1; transform: rotate(-2deg); }
.legacy-kids-pair > .wp-block-image:only-child img { aspect-ratio: 4/3; }

/* Big smiles strip: mint band, tilted photo frames. */
.wp-block-group.legacy-kids-smiles-band {
	background: var(--k-mint);
}
.legacy-kids-smiles {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(14px, 2vw, 26px);
	margin-top: var(--wp--preset--spacing--40) !important;
}
.legacy-kids-smiles > .wp-block-image {
	margin: 0;
}
.legacy-kids-smiles > .wp-block-image:nth-child(1) { transform: rotate(-3deg); }
.legacy-kids-smiles > .wp-block-image:nth-child(2) { transform: rotate(2deg) translateY(14px); }
.legacy-kids-smiles > .wp-block-image:nth-child(3) { transform: rotate(-2deg); }
.legacy-kids-smiles > .wp-block-image:nth-child(4) { transform: rotate(3deg) translateY(10px); }

/* Kids hero with four photos: a tilted 2 x 2 grid. */
.legacy-kids-collage--four > .wp-block-image:first-child { grid-column: auto; transform: rotate(-3deg); }
.legacy-kids-collage--four > .wp-block-image:nth-child(2) { transform: rotate(2deg) translateY(14px); }
.legacy-kids-collage--four > .wp-block-image:nth-child(3) { transform: rotate(-2deg); }
.legacy-kids-collage--four > .wp-block-image:nth-child(4) { transform: rotate(3deg) translateY(10px); }

/* Smiles strip with three photos: one wide photo and two squares, all the same height. */
.legacy-kids-smiles--three { grid-template-columns: 1.5fr 1fr 1fr; align-items: center; }
.legacy-kids-smiles--three > .wp-block-image:nth-child(1) { transform: rotate(-1.5deg); }
.legacy-kids-smiles--three > .wp-block-image:nth-child(2) { transform: rotate(-3deg) translateY(4px); }
.legacy-kids-smiles--three > .wp-block-image:nth-child(3) { transform: rotate(3deg) translateY(-6px); }

/* Baby Dedication: sunshine band with a dark top edge. */
.wp-block-group.legacy-kids-dedication {
	background: var(--k-sun);
	border-top: 3px solid var(--k-ink);
	--k-hl: var(--k-cream);
}
.legacy-kids-dedication .wp-block-button:not(.is-style-outline) .wp-block-button__link,
.legacy-kids-dedication .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background: var(--k-coral);
}

@keyframes legacy-kids-spin {
	to { transform: rotate(360deg); }
}
@keyframes legacy-kids-wobble {
	0%, 100% { transform: rotate(-8deg); }
	50% { transform: rotate(8deg); }
}
@keyframes legacy-kids-marquee {
	to { transform: translateX(-100%); }
}
@media (max-width: 781px) {
	.legacy-kids-smiles {
		grid-template-columns: 1fr 1fr;
	}
	.legacy-kids-smiles--three > .wp-block-image:first-child {
		grid-column: 1 / -1;
	}
	.legacy-kids-hero::before {
		width: 72px;
		height: 72px;
		top: 12px;
		right: 12px;
	}
	.legacy-kids-collage::after {
		width: 60px;
		height: 60px;
		left: -8px;
	}
	.legacy-kids-scallop {
		--r: 10px;
		padding: calc(var(--r) * 2 + 14px);
	}
	.legacy-kids-pair > .wp-block-image:last-child { transform: rotate(3deg); }
	.legacy-kids-safety .wp-block-image::after {
		width: 58px;
		height: 58px;
		right: -6px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.legacy-kids-hero::before,
	.legacy-kids-collage::after,
	.legacy-kids-marquee__run { animation: none; }
	.legacy-kids-age:hover { transform: none; }
}
/* Kids page: keep the smiling faces in frame when photos are cropped. */
.legacy-kids img[src*="kids-sunday-dad-boys"] {
	object-position: 60% 70%;
}
.legacy-kids img[src*="kids-sunday-girls-moms"] {
	object-position: 48% 50%;
}

/* ======================================================================
   Youth page: loud and youthful. Black, white, bright red and neon lime,
   tall condensed caps (Anton), tilted lime sticker tags, red pill buttons
   with an arrow circle, ticket cards, a scrolling ticker, a spinning
   badge, and headings that fill in word by word as you scroll.
   ====================================================================== */
.legacy-yth {
	--y-black: #141414;
	--y-dark: #232323;
	--y-red: #e70700;
	--y-lime: #c3ff00;
	--y-blue: #2155ff;
	--y-gray: #474747;
	--y-dim: #c2c2c2;
	--y-fg: var(--y-black);
	--y-accent: var(--y-red);
	position: relative;
	color: var(--y-fg);
	font-family: var(--wp--preset--font-family--youth-body);
}
.legacy-yth p,
.legacy-yth li {
	color: var(--y-fg);
	font-family: var(--wp--preset--font-family--youth-body);
	font-size: 1.08rem;
	line-height: 1.55;
}
.legacy-yth :where(h1, h2, h3, .wp-block-heading) {
	font-family: var(--wp--preset--font-family--youth-display);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0;
	line-height: 0.98;
	color: var(--y-fg);
}
.legacy-yth :where(h1, h2, h3) em {
	font-family: inherit;
	font-style: normal;
	font-weight: 400;
	color: var(--y-accent);
}
.legacy-yth h1.wp-block-heading {
	font-size: clamp(3.6rem, 13vw, 10.5rem) !important;
	line-height: 0.9;
}
.legacy-yth h2.wp-block-heading {
	font-size: clamp(2.6rem, 6.6vw, 4.9rem) !important;
}

/* Lime sticker tag, tilted over the first word of a heading. */
.legacy-yth-head {
	position: relative;
}
.legacy-yth .legacy-yth-tag {
	position: absolute;
	z-index: 2;
	top: -0.55em;
	left: -0.2em;
	margin: 0;
	padding: 0.3em 0.95em;
	border: 1.5px solid var(--y-black);
	border-radius: 999px;
	background: var(--y-lime);
	color: var(--y-black);
	font-size: clamp(0.82rem, 1.4vw, 1rem);
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	transform: rotate(-12deg);
	transform-origin: left center;
}
.legacy-yth-head--center .legacy-yth-tag {
	left: 50%;
	transform: translateX(-90%) rotate(-12deg);
}
.legacy-yth-head > .wp-block-heading {
	margin-top: 0;
}

/* Buttons: red pill with a separate arrow circle on the left. */
.legacy-yth .wp-block-buttons {
	gap: 16px 24px;
}
.legacy-yth .wp-block-button {
	margin-left: 46px;
}
.legacy-yth .wp-block-button__link,
.legacy-yth .wp-block-button.is-style-outline .wp-block-button__link {
	position: relative;
	margin-left: 0;
	padding: 0.72em 1.45em;
	border: 0;
	border-radius: 999px;
	background: var(--y-red);
	color: #fff;
	font-family: var(--wp--preset--font-family--youth-body);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	box-shadow: none;
	transition: transform 0.2s ease;
}
.legacy-yth .wp-block-button__link::before {
	content: "";
	position: absolute;
	left: -46px;
	top: 50%;
	width: 42px;
	height: 42px;
	margin-top: -21px;
	border-radius: 50%;
	background: var(--y-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
	transition: transform 0.25s ease;
}
.legacy-yth .wp-block-button__link:hover {
	background: var(--y-red);
	color: #fff;
	transform: translateX(3px);
}
.legacy-yth .wp-block-button__link:hover::before {
	transform: rotate(-45deg);
}
.legacy-yth .wp-block-button.is-style-outline .wp-block-button__link,
.legacy-yth .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: #fff;
	color: var(--y-black);
}
.legacy-yth .wp-block-button.is-style-outline .wp-block-button__link::before {
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='%23141414' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* Hero: black, giant caps, photo with a spinning red badge. */
.wp-block-group.legacy-yth-hero {
	--y-fg: #fff;
	background: var(--y-black);
}
.legacy-yth-hero .legacy-yth-tag {
	top: -0.2em;
}
.legacy-yth-hero h1 {
	padding-top: 0.35em;
}
/* "Called to be more." line under the Legacy Youth title. */
.legacy-yth .legacy-yth-hero-sub {
	margin: 0.1em 0 0 !important;
	color: var(--y-blue);
	font-family: var(--wp--preset--font-family--youth-display, inherit);
	font-size: clamp(1.6rem, 4.2vw, 3.2rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}
.legacy-yth-hero-row {
	margin-top: var(--wp--preset--spacing--20) !important;
}
.legacy-yth .legacy-yth-hero-lead {
	max-width: 30rem;
	margin: 0;
	color: var(--y-dim);
	font-size: 1.18rem;
}
.legacy-yth-hero-photo {
	position: relative;
	margin-top: var(--wp--preset--spacing--40) !important;
}
/* LY logo centered on the hero photo. */
.legacy-yth-hero-photo > .legacy-yth-ly {
	position: absolute;
	z-index: 2;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: clamp(120px, 28%, 340px);
	margin: 0 !important;
	pointer-events: none;
	filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.55));
}
.legacy-yth-hero-photo > .legacy-yth-ly .wp-block-image {
	overflow: visible;
}
.legacy-yth-hero-photo > .legacy-yth-ly img {
	width: 100%;
	height: auto !important;
	aspect-ratio: auto !important;
	object-fit: contain !important;
	box-shadow: none !important;
}
.legacy-yth-hero-photo .wp-block-image {
	margin: 0;
	overflow: hidden;
}
.legacy-yth-hero-photo::after {
	content: "";
	position: absolute;
	z-index: 2;
	bottom: -62px;
	right: 5%;
	width: 140px;
	height: 140px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cdefs%3E%3Cpath id='c' d='M100 100m-74 0a74 74 0 1 1 148 0a74 74 0 1 1-148 0'/%3E%3C/defs%3E%3Ccircle cx='100' cy='100' r='98' fill='%23e70700'/%3E%3Ctext font-family='Arial Black, Arial, sans-serif' font-weight='900' font-size='21' letter-spacing='3.2' fill='white'%3E%3CtextPath href='%23c'%3ELEGACY YOUTH %E2%98%85 THURSDAYS %E2%98%85 YTH %E2%98%85%3C/textPath%3E%3C/text%3E%3Cpath d='M78 100h40M104 84l16 16-16 16' fill='none' stroke='white' stroke-width='7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	animation: legacy-yth-spin 14s linear infinite;
}

/* Welcome: white, one big statement. */
.wp-block-group.legacy-yth-welcome {
	background: #fff;
}
.legacy-yth-welcome p:not(.legacy-yth-tag) {
	max-width: 44rem;
	margin-inline: auto;
	color: var(--y-gray);
	font-size: 1.15rem;
}

/* Youth nights: a notebook page. Hand-drawn month with Thursdays circled,
   a taped snapshot of the West Campus, and a handwritten "how the night goes". */
.wp-block-group.legacy-yth-nights {
	--y-ink: var(--y-blue);
	background-color: #f5f1e8;
	background-image: radial-gradient(rgba(20, 20, 20, 0.11) 1.2px, transparent 1.3px);
	background-size: 22px 22px;
}
.legacy-yth-nights > .legacy-yth-head {
	margin-bottom: var(--wp--preset--spacing--30) !important;
}
.legacy-yth-nights-intro p {
	margin: 0 auto 0.6em;
	font-size: 1.12rem;
	line-height: 1.6;
}
.legacy-yth-nights-intro p:last-child {
	color: var(--y-gray);
}
.legacy-yth-board {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(28px, 5vw, 72px);
	max-width: 1040px;
	margin: var(--wp--preset--spacing--50) auto 0 !important;
}
.legacy-yth-cal {
	padding: 18px 18px 8px;
	background: #fff;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 18px 40px -18px rgba(20, 20, 20, 0.35);
	transform: rotate(-1.4deg);
}
.legacy-yth-cal__svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}
.legacy-yth-cal__svg text {
	font-family: var(--wp--preset--font-family--youth-hand);
}
.legacy-yth-cal__svg .c-grid path {
	fill: none;
	stroke: var(--y-black);
	stroke-width: 1.6;
	stroke-linecap: round;
}
.legacy-yth-cal__svg .c-day {
	font-size: 17px;
	font-weight: 700;
	text-anchor: middle;
	fill: var(--y-black);
}
.legacy-yth-cal__svg .c-num {
	font-size: 13px;
	fill: #8a8a8a;
}
.legacy-yth-cal__svg .c-hl {
	fill: var(--y-lime);
	opacity: 0.85;
}
.legacy-yth-cal__svg .c-yth {
	font-size: 17px;
	font-weight: 700;
	text-anchor: middle;
	fill: var(--y-black);
}
.legacy-yth-cal__svg .c-loop {
	fill: none;
	stroke: var(--y-red);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.legacy-yth-cal__svg .c-title {
	font-size: 24px;
	font-weight: 700;
	fill: var(--y-ink);
}
.legacy-yth-cal__svg .c-note {
	font-size: 22px;
	font-weight: 700;
	text-anchor: end;
	fill: var(--y-ink);
}
.legacy-yth-cal__svg .c-arrow {
	fill: none;
	stroke: var(--y-ink);
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
/* Draw the loop when the section scrolls in. */
.legacy-yth-cal__svg .c-loop {
	stroke-dasharray: 1400;
	stroke-dashoffset: 0;
}
@media (prefers-reduced-motion: no-preference) {
	.legacy-yth-nights.js-draw:not(.is-drawn) .c-loop {
		stroke-dashoffset: 1400;
	}
	.legacy-yth-nights .c-loop {
		transition: stroke-dashoffset 1.6s cubic-bezier(0.6, 0, 0.3, 1) 0.2s;
	}
}
.legacy-yth-place {
	position: relative;
	text-align: center;
}
.legacy-yth-place::after {
	/* Hand-drawn star. */
	content: "";
	position: absolute;
	top: -26px;
	right: -6px;
	width: 74px;
	height: 74px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 6 L61 40 L96 39 L67 60 L79 94 L50 72 L20 93 L33 60 L4 38 L40 41 Z M52 9' fill='none' stroke='%232155ff' stroke-width='4.5' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
	transform: rotate(12deg);
	pointer-events: none;
}
.legacy-yth-polaroid.wp-block-image {
	position: relative;
	display: inline-block;
	max-width: 380px;
	margin: 0 auto 26px !important;
	padding: 12px 12px 0;
	background: #fff;
	box-shadow: 0 18px 40px -18px rgba(20, 20, 20, 0.4);
	transform: rotate(2.2deg);
}
.legacy-yth-polaroid.wp-block-image::before {
	/* Tape. */
	content: "";
	position: absolute;
	top: -14px;
	left: 50%;
	width: 110px;
	height: 30px;
	margin-left: -55px;
	background: rgba(195, 255, 0, 0.6);
	transform: rotate(-4deg);
}
.legacy-yth-polaroid img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 5 / 4;
	object-fit: cover;
}
.legacy-yth-polaroid .wp-element-caption {
	margin: 0;
	padding: 10px 4px 14px;
	font-family: var(--wp--preset--font-family--youth-hand);
	font-size: 1.7rem;
	font-weight: 700;
	line-height: 1.1;
	color: var(--y-ink);
	text-align: center;
}
.legacy-yth-night-wrap {
	max-width: 1040px;
	margin: var(--wp--preset--spacing--60) auto 0 !important;
}
.legacy-yth .legacy-yth-hand {
	margin: 0 0 18px;
	font-family: var(--wp--preset--font-family--youth-hand);
	font-size: clamp(1.7rem, 3vw, 2.2rem);
	font-weight: 700;
	line-height: 1.1;
	color: var(--y-ink);
	transform: rotate(-1.5deg);
}
.legacy-yth ol.legacy-yth-night {
	list-style: none;
	counter-reset: night;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
}
.legacy-yth-night li {
	position: relative;
	counter-increment: night;
	padding: 18px 18px 20px;
	background: #fff;
	border: 1.5px solid var(--y-black);
	border-radius: 4px;
	font-family: var(--wp--preset--font-family--youth-body);
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--y-black);
}
.legacy-yth-night li:nth-child(odd) { transform: rotate(-1deg); }
.legacy-yth-night li:nth-child(even) { transform: rotate(1deg); }
.legacy-yth-night li::before {
	content: counter(night);
	display: block;
	margin-bottom: 6px;
	font-family: var(--wp--preset--font-family--youth-display);
	font-size: 2.2rem;
	line-height: 1;
	color: var(--y-red);
}
.legacy-yth-night li:not(:last-child)::after {
	content: "\2192";
	position: absolute;
	top: 50%;
	right: -15px;
	z-index: 1;
	margin-top: -14px;
	font-family: var(--wp--preset--font-family--youth-hand);
	font-size: 1.8rem;
	font-weight: 700;
	line-height: 1;
	color: var(--y-ink);
}
@media (max-width: 781px) {
	.legacy-yth-board {
		grid-template-columns: 1fr;
	}
	.legacy-yth-cal {
		padding: 12px 10px 4px;
	}
	.legacy-yth-place::after {
		right: 4px;
		width: 60px;
		height: 60px;
	}
	.legacy-yth-polaroid.wp-block-image {
		max-width: 300px;
	}
	.legacy-yth ol.legacy-yth-night {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.legacy-yth-night li::after {
		display: none;
	}
}

/* Values: white, sticky heading + photo, ruled rows. */
.wp-block-group.legacy-yth-values {
	background: #fff;
}
.legacy-yth-values .wp-block-image {
	margin-top: var(--wp--preset--spacing--40);
	overflow: hidden;
}
.legacy-yth-value {
	padding: 20px 0;
	border-bottom: 1px solid #dcdcdc;
}
.legacy-yth-value:first-child {
	border-top: 1px solid #dcdcdc;
}
.legacy-yth-value h3.wp-block-heading {
	margin: 0 0 6px;
	font-size: clamp(1.7rem, 2.8vw, 2.3rem) !important;
}
.legacy-yth-value p {
	margin: 0;
	color: var(--y-gray);
}
.legacy-yth-pastors {
	display: grid;
	grid-template-columns: minmax(120px, 210px) 1fr;
	align-items: center;
	gap: clamp(18px, 3vw, 32px);
	margin-top: var(--wp--preset--spacing--40) !important;
}
.legacy-yth-values .legacy-yth-pastors .wp-block-image {
	position: relative;
	margin: 0 12px 12px 0 !important;
	overflow: visible;
	transform: rotate(-3deg);
}
.legacy-yth-pastors .wp-block-image img {
	border: 4px solid var(--y-black) !important;
	box-shadow: 8px 8px 0 var(--y-lime);
	object-position: 50% 20%;
}
/* "Have a question?" email button: under the quote, full width on phones. */
.legacy-yth-pastors > .wp-block-image {
	grid-row: 1 / span 2;
}
.legacy-yth-pastors > .legacy-yth-quote {
	align-self: end;
}
.legacy-yth-pastors > .wp-block-buttons {
	grid-column: 2;
	align-self: start;
	margin: 0;
}
.legacy-yth-pastors .wp-block-button__link {
	white-space: nowrap;
}
@media (max-width: 600px) {
	.legacy-yth-pastors > .wp-block-image {
		grid-row: auto;
	}
	.legacy-yth-pastors > .legacy-yth-quote {
		align-self: center;
	}
	.legacy-yth-pastors > .wp-block-buttons {
		grid-column: 1 / -1;
	}
}
.legacy-yth .legacy-yth-quote {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1.35;
}
.legacy-yth-sign {
	display: block;
	margin-top: 8px;
	color: var(--y-red);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
@media (min-width: 782px) {
	.legacy-yth-values .wp-block-column:first-child {
		position: sticky;
		top: 110px;
		align-self: flex-start;
	}
}

/* Ticker band. */
.wp-block-group.legacy-yth-marquee {
	margin-block: 0 !important;
	padding: 30px 0;
	overflow: hidden;
	background: var(--y-dark);
}
.legacy-yth .legacy-yth-marquee__track {
	display: flex;
	margin: 0;
	white-space: nowrap;
}
.legacy-yth-marquee__run {
	display: flex;
	flex: none;
	align-items: center;
	animation: legacy-yth-marquee 24s linear infinite;
}
.legacy-yth-marquee__word,
.legacy-yth-marquee__star {
	padding: 0 0.3em;
	font-family: var(--wp--preset--font-family--youth-display);
	font-size: clamp(3rem, 8vw, 6.4rem);
	line-height: 1.05;
	text-transform: uppercase;
	color: #8f8f8f;
}
.legacy-yth-marquee__star {
	color: var(--y-red);
}

/* Get connected: black. */
.wp-block-group.legacy-yth-connect {
	--y-fg: #fff;
	background: var(--y-black);
}
.legacy-yth-connect h2.wp-block-heading {
	font-size: clamp(3.4rem, 11vw, 8.6rem) !important;
}

/* Scroll animations (only when motion is allowed; added by theme.js). */
.legacy-yth-anim .legacy-yth .legacy-yth-w {
	color: var(--y-dim);
	transition: color 0.35s ease;
}
.legacy-yth-anim .legacy-yth .legacy-yth-w.is-on {
	color: inherit;
}
.legacy-yth-anim .legacy-yth .wp-block-image img {
	clip-path: inset(12% 8% 12% 8%);
	transform: scale(1.1);
	transition: clip-path 1.1s cubic-bezier(0.2, 0.7, 0.2, 1), transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.legacy-yth-anim .legacy-yth .wp-block-image.is-in img {
	clip-path: inset(0 0 0 0);
	transform: none;
}
/* The LY logo on the hero photo is never clipped by the reveal. */
.legacy-yth-anim .legacy-yth .legacy-yth-ly .wp-block-image img {
	clip-path: none;
	transform: none;
}
.legacy-yth-anim .legacy-yth .legacy-yth-tag {
	animation: legacy-yth-wiggle 3.2s ease-in-out infinite;
}
.legacy-yth-anim .legacy-yth-head--center .legacy-yth-tag {
	animation-name: legacy-yth-wiggle-center;
}
@keyframes legacy-yth-spin {
	to { transform: rotate(360deg); }
}
@keyframes legacy-yth-marquee {
	to { transform: translateX(-100%); }
}
@keyframes legacy-yth-wiggle {
	0%, 100% { transform: rotate(-12deg); }
	50% { transform: rotate(-6deg) translateY(-2px); }
}
@keyframes legacy-yth-wiggle-center {
	0%, 100% { transform: translateX(-90%) rotate(-12deg); }
	50% { transform: translateX(-90%) rotate(-6deg) translateY(-2px); }
}
@media (max-width: 781px) {
	.legacy-yth-hero-photo::after {
		width: 96px;
		height: 96px;
		bottom: -44px;
	}
	.legacy-yth .legacy-yth-hero-lead {
		font-size: 1.08rem;
	}
	.legacy-yth-pastors .legacy-yth-sign {
		letter-spacing: 0.05em;
	}
}
@media (prefers-reduced-motion: reduce) {
	.legacy-yth-hero-photo::after,
	.legacy-yth-marquee__run { animation: none; }
}

/* ======================================================================
   Photo slideshow (Small Groups crews). Swipe on phones; theme.js adds
   arrows, dots and a gentle autoplay.
   ====================================================================== */
.legacy-slides {
	position: relative;
}
.legacy-slides__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	border-radius: 20px;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.legacy-slides__track::-webkit-scrollbar {
	display: none;
}
.legacy-slides__track > .wp-block-image {
	flex: 0 0 100%;
	margin: 0 !important;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}
.legacy-slides__track > .wp-block-image img {
	display: block;
	width: 100%;
	border-radius: 0 !important;
}
.legacy-slides__btn {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-top: -36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #1c1c1c;
	box-shadow: var(--wp--preset--shadow--subtle);
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease;
}
.legacy-slides__btn:hover {
	background: #fff;
	transform: scale(1.06);
}
.legacy-slides__btn--prev { left: 14px; }
.legacy-slides__btn--next { right: 14px; }
.legacy-slides__btn svg {
	width: 20px;
	height: 20px;
}
.legacy-slides__dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
}
.legacy-slides__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(28, 28, 28, 0.22);
	cursor: pointer;
	transition: width 0.3s ease, background 0.3s ease;
}
.legacy-slides__dot.is-active {
	width: 26px;
	background: var(--wp--preset--color--accent, #1c3fd6);
}
/* Young Adults nights card: list led by round icons (music, coffee, friends). */
ul.legacy-ya-icons {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.75rem;
}
ul.legacy-ya-icons li {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 2.5rem;
	padding-left: 3.25rem;
	font-weight: 500;
}
ul.legacy-ya-icons li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: #EDF1FE;
	transform: translateY(-50%);
}
ul.legacy-ya-icons li::after {
	content: "";
	position: absolute;
	left: 0.625rem;
	top: 50%;
	width: 1.25rem;
	height: 1.25rem;
	background: var(--wp--preset--color--accent, #1F44E0);
	transform: translateY(-50%);
	-webkit-mask: var(--ya-icon) center / contain no-repeat;
	mask: var(--ya-icon) center / contain no-repeat;
}
ul.legacy-ya-icons li.legacy-ya-icon--music {
	--ya-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M9 18V5l12-2v13%22/%3E%3Ccircle cx=%226%22 cy=%2218%22 r=%223%22/%3E%3Ccircle cx=%2218%22 cy=%2216%22 r=%223%22/%3E%3C/svg%3E");
}
ul.legacy-ya-icons li.legacy-ya-icon--coffee {
	--ya-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M17 8h1a4 4 0 1 1 0 8h-1%22/%3E%3Cpath d=%22M3 8h14v9a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4Z%22/%3E%3Cpath d=%22M6 2v2M10 2v2M14 2v2%22/%3E%3C/svg%3E");
}
ul.legacy-ya-icons li.legacy-ya-icon--friends {
	--ya-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2%22/%3E%3Ccircle cx=%229%22 cy=%227%22 r=%224%22/%3E%3Cpath d=%22M22 21v-2a4 4 0 0 0-3-3.87%22/%3E%3Cpath d=%22M16 3.13a4 4 0 0 1 0 7.75%22/%3E%3C/svg%3E");
}

/* Footer addresses: Sunday gatherings and the Legacy office, each with a
   small label (Church Info). */
.legacy-site-footer .legacy-footer-label {
	margin-bottom: 0.2rem !important;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	opacity: 0.85;
}

/* Building fund tracker (inc/building-tracker.php). */
.legacy-building-tracker {
	margin-top: var(--wp--preset--spacing--50) !important;
}
.legacy-tracker-actions {
	margin-top: 1.5rem !important;
}
.legacy-tracker {
	padding: clamp(1.25rem, 3.5vw, 2rem);
	border-radius: 20px;
	background: #fff;
	color: var(--wp--preset--color--contrast, #1C1C1E);
	box-shadow: var(--wp--preset--shadow--lift);
}
.legacy-tracker p {
	margin: 0;
}
.legacy-tracker__stats {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	margin-bottom: 1.4rem;
}
.legacy-tracker__label,
.legacy-tracker__chip-caption,
.legacy-tracker__scale,
.legacy-tracker__note {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.legacy-tracker__label {
	color: var(--wp--preset--color--muted, #6B6862);
}
.legacy-tracker__amount {
	font-size: clamp(2.6rem, 8vw, 4.75rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}
.legacy-tracker__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}
.legacy-tracker__chip {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	min-width: 8.5rem;
	padding: 0.7rem 1rem;
	border-radius: 14px;
	background: #EDF1FE;
}
.legacy-tracker__chip--pct {
	background: var(--wp--preset--color--accent, #1F44E0);
	color: #fff;
}
.legacy-tracker__chip-value {
	font-size: clamp(1.5rem, 4vw, 2rem);
	font-weight: 800;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.legacy-tracker__chip-caption {
	opacity: 0.85;
}
.legacy-tracker__bar {
	position: relative;
	height: clamp(22px, 3.5vw, 30px);
	border-radius: 999px;
	background: #EEECE6;
	overflow: hidden;
}
.legacy-tracker__fill {
	position: absolute;
	inset: 0 auto 0 0;
	width: var(--legacy-tracker-pct, 0%);
	border-radius: 999px;
	background: linear-gradient(90deg, var(--wp--preset--color--accent-deep, #1736B3), var(--wp--preset--color--accent, #1F44E0) 60%, var(--wp--preset--color--accent-light, #96ABFF));
	animation: legacy-tracker-grow 1.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes legacy-tracker-grow {
	from { width: 0; }
}
.legacy-tracker__tick {
	position: absolute;
	top: 6px;
	bottom: 6px;
	width: 2px;
	margin-left: -1px;
	border-radius: 2px;
	background: rgba(0, 0, 0, 0.12);
}
.legacy-tracker__tick.is-passed {
	background: rgba(255, 255, 255, 0.5);
}
.legacy-tracker__scale {
	display: flex;
	justify-content: space-between;
	margin-top: 0.5rem;
	color: var(--wp--preset--color--muted, #6B6862);
}
.legacy-tracker__note {
	margin-top: 1rem !important;
	padding-top: 0.9rem;
	border-top: 1px dashed var(--wp--preset--color--line, #E8E6E1);
	color: var(--wp--preset--color--muted, #6B6862);
}
@media (max-width: 560px) {
	.legacy-tracker__chips {
		width: 100%;
	}
	.legacy-tracker__chip {
		flex: 1;
		min-width: 0;
	}
}
@media (prefers-reduced-motion: reduce) {
	.legacy-tracker__fill {
		animation: none;
	}
}

/* Building page: the two building videos side by side (stacked on phones). */
@media (max-width: 781px) {
	.legacy-building-videos {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}
.legacy-building-videos .legacy-sermon-video-embed {
	width: 100%;
	align-self: stretch;
}
.legacy-building-videos .is-style-eyebrow {
	margin-top: 0.5rem !important;
	color: var(--wp--preset--color--accent);
}

/* Building page: "View brochure" and "New update video" under the renderings. */
.legacy-render-links {
	margin-top: 1.25rem !important;
	gap: 0.75rem 1.5rem;
}
.legacy-render-links {
	flex-wrap: nowrap !important;
}
.legacy-render-links .is-style-eyebrow {
	margin: 0;
	white-space: nowrap;
}
@media (max-width: 480px) {
	.legacy-render-links .is-style-eyebrow {
		font-size: 10px;
		letter-spacing: 0.16em;
	}
}
.legacy-render-links a {
	color: var(--wp--preset--color--accent, #1F44E0);
	text-decoration: none;
}
.legacy-render-links a:hover,
.legacy-render-links a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Labeled slideshow (Building page renderings). */
.legacy-slides--captions .legacy-slides__track > .wp-block-image {
	position: relative;
}
.legacy-slides--captions .wp-element-caption {
	position: absolute;
	left: 16px;
	bottom: 16px;
	margin: 0 !important;
	padding: 0.4rem 0.85rem;
	border-radius: 999px;
	background: rgba(20, 20, 22, 0.6);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
@media (max-width: 781px) {
	.legacy-slides__btn {
		width: 38px;
		height: 38px;
		margin-top: -32px;
	}
	.legacy-slides__btn--prev { left: 10px; }
	.legacy-slides__btn--next { right: 10px; }
}

/* Natural drop shadows (layered, soft, light from above) on surfaces that sit
   on the page: rounded photos, slideshows, videos and cards. Shadow sizes are
   the theme.json presets: subtle (small controls), soft (resting) and lift
   (floating or hovered). Kids and Youth keep their own bold offset shadows,
   and photos inside cards rely on the card's shadow. */
.wp-block-image.has-custom-border:not(:is(.is-style-card, .legacy-ya-card, .legacy-kids, .legacy-youth, .legacy-youth-camp, .legacy-youth-pastors, .legacy-testimony-thumb, .legacy-christmas) *):not(.legacy-testimony-thumb) img,
.legacy-slides__track,
.legacy-sermon-video-embed,
.legacy-hero-video,
.legacy-ya-card,
.wp-block-cover.is-style-hover-zoom {
	box-shadow: var(--wp--preset--shadow--soft);
}
.wp-block-cover.is-style-hover-zoom {
	transition: box-shadow 0.3s ease;
}
.wp-block-cover.is-style-hover-zoom:hover {
	box-shadow: var(--wp--preset--shadow--lift);
}
.legacy-ya-card {
	border-color: transparent;
}

/* Header menu items that only open a dropdown (no page of their own). */
.wp-block-navigation-submenu > a.wp-block-navigation-item__content:not([href]) {
	cursor: default;
}

/* Kids: Meet Nicole (photo, short welcome, email button). */
.wp-block-group.legacy-kids-pastor {
	background: var(--k-cream);
}
.legacy-kids-pastor-text > .wp-block-image {
	width: 300px;
	max-width: 70%;
	margin: 1.3rem 10px 1.5rem 0;
	transform: rotate(-3deg);
}
.legacy-kids-pastor-text > .wp-block-image img {
	border: 3px solid var(--k-ink) !important;
	box-shadow: 6px 6px 0 var(--k-ink) !important;
}
.legacy-kids-pastor-text > * + * {
	margin-top: 0.7rem;
}
.legacy-kids-pastor-text h2.wp-block-heading {
	margin-top: 0.3rem;
}
.legacy-kids .legacy-kids-pastor-sign {
	color: var(--k-orange);
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.legacy-kids-pastor-text .wp-block-buttons {
	margin-top: 1.2rem;
}
@media (max-width: 600px) {
	.legacy-kids-pastor-text > .wp-block-image {
		width: 220px;
		max-width: 60%;
	}
}

/* About page sections linked from the menu (Our vision, Our culture): stop just below the sticky header. */
#vision,
#culture,
#beliefs,
#coming-up {
	scroll-margin-top: 70px;
}

/* Desktop menu bar stays on one line; links sit a little closer on smaller laptops. */
@media (min-width: 1100px) {
	header .wp-block-navigation .wp-block-navigation__container {
		flex-wrap: nowrap;
	}
	header .wp-block-navigation-item__label {
		white-space: nowrap;
	}
}
@media (min-width: 1100px) and (max-width: 1279px) {
	header .wp-block-navigation,
	header .wp-block-navigation .wp-block-navigation__container {
		gap: 1.15rem !important;
	}
}

/* Growth Track page. */
.legacy-gt-photos {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
.legacy-gt-photos > .wp-block-image {
	margin: 0;
}
.legacy-gt-expect ul.wp-block-list {
	list-style: none;
	padding-left: 0;
	display: grid;
	gap: 14px;
}
.legacy-gt-expect ul.wp-block-list li {
	position: relative;
	padding-left: 38px;
}
.legacy-gt-expect ul.wp-block-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.15em;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23141414' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}
#why,
#what-to-expect,
#faq {
	scroll-margin-top: 70px;
}
@media (max-width: 781px) {
	.legacy-gt-photos {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
}

/* Next steps menu: New to faith / New to Legacy open to the left on desktop, so their arrows point left. */
@media (min-width: 600px) {
	header .wp-block-navigation .has-child .wp-block-navigation__submenu-container .legacy-nav-nested > .wp-block-navigation__submenu-icon svg {
		transform: rotate(90deg);
	}
}
