/*
 * Gateway Church 2: additions on top of theme.json.
 * Loaded on the site and inside the editor.
 *
 * Contents
 *  1. Base and type
 *  2. Header and menus
 *  3. Cover photo (home) and info bar
 *  4. Page title band and page spacing
 *  5. Sections: steps, cards, values, week, events, invite
 *  6. Messages (YouTube)
 *  7. Plan Your Visit form
 *  8. Questions (Details block)
 *  9. Footer
 * 10. Version 1 sections (still used by inner pages)
 * 11. Helpers
 */

/* ---------- 1. Base and type ---------- */

:root {
	--gw-radius: 14px;
	--gw-radius-sm: 10px;
	--gw-shadow: 0 1px 2px rgba(21, 21, 21, 0.06), 0 18px 40px -18px rgba(21, 21, 21, 0.28);
	--gw-orange-light: #F29A72; /* Gateway orange, lightened for dark backgrounds */
	--gateway-ridge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 120V97C118 93 222 83 330 71C402 63 452 73 522 66C604 58 664 31 742 15C772 9 792 11 808 19C828 29 842 23 860 16C882 9 902 14 932 31C992 63 1062 71 1142 77C1222 83 1272 75 1332 81C1382 86 1412 90 1440 92V120Z'/%3E%3C/svg%3E");
	--gateway-ridge-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 97C118 93 222 83 330 71C402 63 452 73 522 66C604 58 664 31 742 15C772 9 792 11 808 19C828 29 842 23 860 16C882 9 902 14 932 31C992 63 1062 71 1142 77C1222 83 1272 75 1332 81C1382 86 1412 90 1440 92' fill='none' stroke='black' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
	--gateway-ridge-height: clamp(36px, 7vw, 108px);
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 6rem;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
.wp-block-heading {
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

:where(.wp-block-heading) em {
	font-style: italic;
}

.gateway-eyebrow {
	margin: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.75rem;
	font-weight: 650;
	letter-spacing: 0.16em;
	line-height: 1.3;
	text-transform: uppercase;
}

.gw-lead {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.5;
}

a {
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

a:hover {
	text-decoration-thickness: 2px;
}

:where(.wp-block-heading) a {
	color: inherit;
	text-decoration: none;
}

:where(.wp-block-heading) a:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

:where(a, button, summary, input, select, textarea, .wp-element-button):focus-visible {
	outline: 3px solid var(--wp--preset--color--gold);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Links and muted text inside dark sections. */
:is(.has-ridge-background-color, .has-ridge-deep-background-color, .has-ink-background-color, .has-green-background-color, .wp-block-cover:not(.is-light)) a:where(:not(.wp-element-button)) {
	color: inherit;
}

:is(.has-ridge-background-color, .has-ridge-deep-background-color, .has-ink-background-color, .has-green-background-color) :is(.has-stone-color, .gateway-eyebrow) {
	color: var(--wp--preset--color--sage) !important;
}

.wp-block-image img {
	display: block;
}

.wp-block-image.is-style-photo img,
.gw-photo img {
	border-radius: var(--gw-radius);
}

/* Cropped photos always fill their column. */
.gw-photo img,
.gw-ministry .wp-block-image img {
	width: 100%;
}

/* "Arrow" links: Read more ->, All events -> */
.gw-arrow a,
a.gw-arrow {
	font-weight: 600;
	text-decoration: none;
	color: var(--wp--preset--color--ink);
}

.gw-arrow a::after,
a.gw-arrow::after {
	content: "\2192";
	display: inline-block;
	margin-left: 0.4em;
	transition: transform 0.2s ease;
}

.gw-arrow a:hover::after,
a.gw-arrow:hover::after {
	transform: translateX(3px);
}

:is(.has-ridge-background-color, .has-ridge-deep-background-color) .gw-arrow a {
	color: var(--wp--preset--color--white);
}

/* ---------- 2. Header and menus ---------- */

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 50;
}

.admin-bar .wp-site-blocks > header.wp-block-template-part {
	top: var(--wp-admin--admin-bar--height, 0px);
}

@media (max-width: 600px) {
	.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: 0;
	}
}

.wp-site-blocks > main,
.wp-site-blocks > footer {
	margin-block-start: 0;
}

.gateway-header {
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.wp-block-site-logo img {
	width: auto;
	max-height: 48px;
	object-fit: contain;
}

.gateway-logo-fallback {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.5rem;
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 1;
}

.gateway-logo-fallback a {
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}

@media (max-width: 599px) {
	.gateway-logo-fallback {
		font-size: 1.25rem;
	}
}

/* Header logo: the mountain mark and "Gateway Church". It shrinks a little
   on narrow screens so the menu never wraps. */
.gateway-header .gw-logo {
	flex: 0 1 300px;
	min-width: 150px;
	margin: 0;
}

.gateway-header .gw-logo a {
	display: block;
}

.gateway-header .gw-logo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1200 / 114;
}

.gateway-header-actions {
	flex: none;
}

/* Small phones: the logo needs the room, so the top-bar Plan your visit
   button hides. It stays in the menu and on the home page photo. */
@media (max-width: 479px) {
	.gateway-header-cta {
		display: none !important;
	}
}

/* Home page: the header sits on the cover photo, then turns solid. */
.wp-site-blocks > header.is-overlay {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
}

.gw-js .wp-site-blocks > header.is-overlay {
	position: fixed;
}

.admin-bar .wp-site-blocks > header.is-overlay {
	top: var(--wp-admin--admin-bar--height, 0px);
}

.wp-site-blocks > header.is-overlay + main {
	margin-top: 0;
}

.is-overlay:not(.is-scrolled) .gateway-header {
	background-color: transparent !important;
	border-bottom-color: transparent !important;
	color: var(--wp--preset--color--white);
}

.is-overlay:not(.is-scrolled) .gateway-header .wp-block-site-logo img,
.is-overlay:not(.is-scrolled) .gateway-header .gw-logo img {
	filter: brightness(0) invert(1);
}

.is-overlay.is-scrolled .gateway-header {
	box-shadow: 0 10px 30px -20px rgba(21, 21, 21, 0.45);
}

.gateway-header .wp-block-navigation a {
	text-decoration: none;
}

.gateway-header .wp-block-navigation .wp-block-navigation-item__content:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.35em;
}

.gateway-header .wp-block-navigation .wp-block-navigation__submenu-container {
	min-width: 14rem;
	padding: 0.5rem;
	color: var(--wp--preset--color--ink);
	background-color: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
	box-shadow: var(--gw-shadow);
}

.gateway-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.5em 0.8em;
}

/* Hover: only the words change (they light up orange and get underlined), no background. */
.gateway-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.gateway-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible {
	color: var(--gw-orange-light);
	background: transparent;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.3em;
}

.gateway-header-cta .wp-element-button {
	white-space: nowrap;
}

/* Phones: menu button last. */
@media (max-width: 599px) {
	.gateway-header-actions .wp-block-navigation {
		order: 2;
	}

	.gateway-header-cta .wp-element-button {
		padding: 0.65em 1.05em !important;
		font-size: 0.875rem;
	}
}

/* Tablets: use the menu button so the menu never wraps. */
@media (min-width: 600px) and (max-width: 1023px) {
	.gateway-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.gateway-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	.gateway-header-actions .wp-block-navigation {
		order: 2;
	}
}

/* Menu and close buttons: a 44px tap area around the 24px icon. */
.gateway-header .wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	box-sizing: content-box;
	padding: 10px !important;
	margin: -10px !important;
}

/* Full-screen phone menu: left-aligned, with room at the edges. */
.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) {
	--navigation-layout-justification-setting: flex-start;
	--navigation-layout-justify: flex-start;
	padding: calc(env(safe-area-inset-top, 0px) + 1rem) clamp(1.25rem, 6vw, 2.5rem) 2.5rem !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 3rem;
	align-items: flex-start;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item {
	align-items: flex-start;
	text-align: left;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	top: calc(env(safe-area-inset-top, 0px) + 1rem);
	right: clamp(1.25rem, 6vw, 2.5rem);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content > .wp-block-navigation__container > .wp-block-navigation-item {
	font-family: var(--wp--preset--font-family--display);
	font-size: 2rem;
	font-weight: 400;
	letter-spacing: -0.02em;
}

.gateway-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container {
	min-width: 0;
	padding: 0.35rem 0 0.25rem !important;
	color: var(--wp--preset--color--sage);
	border: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item {
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.0625rem;
	font-weight: 500;
	letter-spacing: 0;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	color: var(--wp--preset--color--sage);
	padding-inline: 0 !important;
}

.gateway-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:is(:hover, :focus-visible) {
	color: var(--wp--preset--color--white);
	background: transparent;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.3em;
}

/* ---------- 3. Cover photo (home) and info bar ---------- */

.wp-block-cover.alignfull {
	padding-left: 0;
	padding-right: 0;
}

/* Keep cover text lined up with the logo and the rest of the page. */
.wp-block-cover.alignfull.has-custom-content-position.has-custom-content-position[class*="is-position-"] > .wp-block-cover__inner-container {
	width: 100%;
}

.gw-hero .wp-block-cover__background {
	opacity: 1 !important;
	background: linear-gradient(180deg, rgba(18, 18, 17, 0.62) 0%, rgba(18, 18, 17, 0.1) 26%, rgba(18, 18, 17, 0.25) 52%, rgba(18, 18, 17, 0.82) 100%), linear-gradient(90deg, rgba(18, 18, 17, 0.55) 0%, rgba(18, 18, 17, 0) 62%) !important;
}

.gw-hero h1 {
	max-width: 13ch;
}

.gw-hero .gateway-eyebrow {
	color: rgba(255, 255, 255, 0.82);
}

.gw-hero .gw-lead {
	max-width: 34rem;
	color: rgba(255, 255, 255, 0.9);
}

.gw-infobar {
	position: relative;
	z-index: 5;
	margin-top: calc(-1 * clamp(2.5rem, 6vw, 4rem)) !important;
	border-radius: var(--gw-radius);
	box-shadow: var(--gw-shadow);
	overflow: hidden;
}

.gw-infobar > * {
	padding: clamp(1.15rem, 2.4vw, 1.6rem) clamp(1.25rem, 2.6vw, 2rem);
}

.gw-infobar .gw-info__value {
	margin: 0.35rem 0 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.375rem;
	line-height: 1.2;
}

.gw-infobar .gw-info__note {
	margin: 0.25rem 0 0;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--stone);
}

@media (min-width: 782px) {
	.gw-infobar > * + * {
		border-left: 1px solid var(--wp--preset--color--line);
	}
}

@media (max-width: 781px) {
	.gw-infobar > * + * {
		border-top: 1px solid var(--wp--preset--color--line);
	}
}

/* ---------- 4. Page title band and page spacing ---------- */

.gateway-page-hero {
	background-color: var(--wp--preset--color--ridge);
}

.gateway-page-hero .wp-block-post-title {
	font-size: var(--wp--preset--font-size--huge);
}

/* Editors only: the "Add header photo" button on the title band. */
.gw-hero-hint {
	position: absolute;
	z-index: 2;
	top: 1rem;
	right: 1rem;
	margin: 0;
	padding: 0.5rem 0.8rem;
	border: 1px dashed rgb(255 255 255 / 0.7);
	border-radius: 4px;
	background: rgb(0 0 0 / 0.35);
	color: #fff !important;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
}

.gw-hero-hint::before {
	content: "+ ";
}

.gw-hero-hint:hover,
.gw-hero-hint:focus-visible {
	background: rgb(0 0 0 / 0.6);
	border-style: solid;
}

.gateway-page-hero.wp-block-cover .wp-block-cover__background {
	background: linear-gradient(180deg, rgba(18, 18, 17, 0.35), rgba(18, 18, 17, 0.75)) !important;
	opacity: 1 !important;
}

/* Full-width sections sit flush against each other. */
:is(.gateway-page-content, .wp-block-post-content) > .alignfull + .alignfull {
	margin-block-start: 0;
}

/* Plain pages get breathing room; full-width sections bring their own. */
.gateway-page-content > :first-child:not(.alignfull) {
	margin-block-start: var(--wp--preset--spacing--60);
}

.gateway-page-content > :last-child:not(.alignfull) {
	margin-block-end: var(--wp--preset--spacing--70);
}

/* ---------- 5. Sections ---------- */

/* Numbered steps (an ordered list). */
ol.gw-steps {
	counter-reset: gw-step;
	margin: 0;
	padding: 0;
	list-style: none;
}

ol.gw-steps > li {
	counter-increment: gw-step;
	position: relative;
	margin: 0;
	padding: 1.05rem 0 1.05rem 3rem;
	border-top: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--stone);
}

ol.gw-steps > li:last-child {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

ol.gw-steps > li::before {
	content: counter(gw-step, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 1rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.25rem;
	line-height: 1.3;
	color: var(--wp--preset--color--accent);
}

ol.gw-steps > li strong {
	display: block;
	margin-bottom: 0.15rem;
	font-weight: 650;
	color: var(--wp--preset--color--ink);
}

/* Key facts: label over value. */
.gw-facts .gateway-eyebrow {
	color: var(--wp--preset--color--stone);
}

.gw-facts p:not(.gateway-eyebrow) {
	margin-top: 0.3rem;
}

/* Ministry cards. */
.gw-ministry {
	height: 100%;
}

.gw-ministry .wp-block-image {
	margin-bottom: 0.4rem;
	overflow: hidden;
	border-radius: var(--gw-radius-sm);
}

.gw-ministry .wp-block-image img {
	transition: transform 0.5s ease;
}

.gw-ministry:hover .wp-block-image img {
	transform: scale(1.03);
}

.gw-ministry h3 {
	font-size: 1.625rem;
}

.gw-ministry .gw-meta {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 650;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--accent);
}

/* Values. */
.gw-value {
	padding-top: 1.25rem;
	border-top: 2px solid var(--wp--preset--color--green);
}

.gw-value h3 {
	font-size: 1.625rem;
	line-height: 1.2;
}

/* This week (rows). */
ul.gw-week {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gw-week li {
	display: grid;
	grid-template-columns: minmax(7.5rem, 38%) 1fr;
	gap: 1rem;
	margin: 0;
	padding: 0.95rem 0;
	color: var(--wp--preset--color--stone);
	border-top: 1px solid var(--wp--preset--color--line);
}

.gw-week li:last-child {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.gw-week strong {
	font-weight: 650;
	color: var(--wp--preset--color--ink);
}

.gw-week span {
	color: var(--wp--preset--color--stone);
}

/* Upcoming events (from the [gateway_upcoming_events] shortcode). */
.gw-events {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gw-event {
	display: grid;
	grid-template-columns: 4.5rem minmax(0, 1fr) auto;
	gap: 0.25rem 1.5rem;
	align-items: start;
	padding: 1.5rem 0;
	border-top: 1px solid var(--wp--preset--color--line);
}

.gw-event:last-child {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.gw-event__date {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
	padding: 0.55rem 0 0.45rem;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--gw-radius-sm);
	line-height: 1;
}

.gw-event__month {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}

.gw-event__day {
	margin-top: 0.3rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: 2rem;
}

.gw-event__title {
	margin: 0;
	font-size: 1.5rem;
}

.gw-event__meta {
	margin: 0.3rem 0 0;
	font-size: 0.875rem;
	color: var(--wp--preset--color--stone);
}

.gw-event__text {
	margin: 0.5rem 0 0;
	max-width: 36rem;
	font-size: 0.9375rem;
}

.gw-event__cta {
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--wp--preset--color--ink);
	white-space: nowrap;
}

.gw-event__cta::after {
	content: " \2192";
}

@media (max-width: 600px) {
	.gw-event {
		grid-template-columns: 4rem minmax(0, 1fr);
	}

	.gw-event__cta {
		grid-column: 2;
	}
}

/* Events page: full event cards (description, photo, buttons). */
.gw-event--full {
	grid-template-columns: 4.5rem minmax(0, 1fr);
	padding: 1.75rem 0;
}

.gw-event--full.has-photo {
	grid-template-columns: 4.5rem minmax(0, 1fr) minmax(12rem, 24rem);
}

/* The whole picture shows (flyers have text), never cropped. */
.gw-event__photo {
	margin: 0;
	text-align: right;
}

.gw-event__zoom {
	display: inline-block;
	max-width: 100%;
	border-radius: var(--gw-radius-sm);
	line-height: 0;
	cursor: zoom-in;
}

.gw-event__img {
	display: inline-block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 30rem;
	border-radius: var(--gw-radius-sm);
	box-shadow: 0 1px 3px rgb(0 0 0 / 12%);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gw-event__zoom:hover .gw-event__img,
.gw-event__zoom:focus-visible .gw-event__img {
	box-shadow: 0 6px 20px rgb(0 0 0 / 18%);
	transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
	.gw-event__img {
		transition: none;
	}

	.gw-event__zoom:hover .gw-event__img,
	.gw-event__zoom:focus-visible .gw-event__img {
		transform: none;
	}
}

.gw-event__repeat {
	margin: 0.35rem 0 0;
	font-size: 0.8125rem;
	font-weight: 650;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--accent);
}

.gw-event--full .gw-event__text {
	max-width: 40rem;
}

.gw-event--full .gw-event__text p {
	margin: 0.5rem 0 0;
}

.gw-event__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
	margin: 1rem 0 0;
}

.gw-event__signup {
	padding: 0.7em 1.25em;
	text-decoration: none;
}

.gw-event__add {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

@media (max-width: 760px) {
	.gw-event--full,
	.gw-event--full.has-photo {
		grid-template-columns: 4rem minmax(0, 1fr);
	}

	.gw-event--full .gw-event__photo {
		grid-column: 1 / -1;
		margin-top: 0.75rem;
		text-align: left;
	}

	.gw-event__img {
		max-height: none;
	}
}

/* Weekly schedule (from Events > Weekly schedule). */
.gw-week span a,
.gw-weekly__name a {
	color: inherit;
	text-decoration: none;
}

.gw-week span a:hover,
.gw-weekly__name a:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

.gw-weekly__row {
	display: grid;
	grid-template-columns: minmax(7rem, 34%) minmax(0, 1fr);
	gap: 0.5rem var(--wp--preset--spacing--50);
	padding: var(--wp--preset--spacing--30) 0;
	border-top: 1px solid var(--wp--preset--color--line);
}

.gw-weekly__row:first-child {
	padding-top: 0;
	border-top: 0;
}

.gw-weekly__row .gateway-when,
.gw-weekly__name {
	margin: 0;
}

.gw-weekly__details {
	margin: 0.4rem 0 0;
	color: var(--wp--preset--color--stone);
}

@media (max-width: 600px) {
	.gw-weekly__row {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Links only signed-in editors see ("+ Add an event"). */
.gw-edit-hint {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1rem 0 0;
}

.gw-edit-hint a {
	padding: 0.35rem 0.7rem;
	border: 1px dashed var(--wp--preset--color--stone);
	border-radius: 4px;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.gw-edit-hint a:hover {
	border-style: solid;
}

.gw-events-empty,
.gw-messages-empty {
	padding: 1.25rem 1.5rem;
	color: var(--wp--preset--color--stone);
	background: var(--wp--preset--color--white);
	border: 1px dashed var(--wp--preset--color--line);
	border-radius: var(--gw-radius-sm);
}

/* Closing invitation band with a line drawing of the ridge. */
.gw-invite {
	position: relative;
	overflow: hidden;
}

.gw-invite::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: clamp(60px, 11vw, 160px);
	background-color: var(--wp--preset--color--gold);
	opacity: 0.55;
	-webkit-mask: var(--gateway-ridge-line) center bottom / 100% 100% no-repeat;
	mask: var(--gateway-ridge-line) center bottom / 100% 100% no-repeat;
	pointer-events: none;
}

.gw-invite > * {
	position: relative;
	z-index: 1;
}

/* ---------- 6. Messages (YouTube) ---------- */

.gw-video {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: var(--gw-radius);
}

.gw-video--small {
	border-radius: var(--gw-radius-sm);
}

.gw-video__link,
.gw-video__thumb,
.gw-video iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.gw-video__thumb {
	object-fit: cover;
	transition: transform 0.5s ease, opacity 0.3s ease;
}

.gw-video__link:hover .gw-video__thumb {
	transform: scale(1.025);
	opacity: 0.92;
}

.gw-video__play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 4.5rem;
	height: 4.5rem;
	margin: -2.25rem 0 0 -2.25rem;
	background: rgba(255, 255, 255, 0.94);
	border-radius: 50%;
	box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
	transition: transform 0.2s ease;
}

.gw-video__play::after {
	content: "";
	position: absolute;
	left: 52%;
	top: 50%;
	border-style: solid;
	border-width: 0.65rem 0 0.65rem 1.1rem;
	border-color: transparent transparent transparent var(--wp--preset--color--ink);
	transform: translate(-50%, -50%);
}

.gw-video--small .gw-video__play {
	width: 3rem;
	height: 3rem;
	margin: -1.5rem 0 0 -1.5rem;
}

.gw-video--small .gw-video__play::after {
	border-width: 0.45rem 0 0.45rem 0.75rem;
}

.gw-video__link:hover .gw-video__play {
	transform: scale(1.06);
}

.gw-message {
	display: grid;
	gap: clamp(1.75rem, 4vw, 3.5rem);
	align-items: center;
}

@media (min-width: 900px) {
	.gw-message--feature {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	}
}

.gw-message--stacked {
	max-width: 960px;
	margin-inline: auto;
}

.gw-message__body > * + * {
	margin-top: 0.9rem !important;
}

.gw-message__title {
	font-size: var(--wp--preset--font-size--xx-large);
}

.gw-message--stacked .gw-message__title {
	font-size: var(--wp--preset--font-size--x-large);
}

.gw-message__meta {
	font-size: 0.9375rem;
	opacity: 0.8;
}

.gw-message .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.gw-messages {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr));
	gap: 2.25rem 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gw-messages__title {
	margin: 0.9rem 0 0;
	font-size: 1.3125rem;
	line-height: 1.25;
}

.gw-messages__date {
	margin: 0.3rem 0 0;
	font-size: 0.875rem;
	color: var(--wp--preset--color--stone);
}

/* ---------- 7. Plan Your Visit form ---------- */

.gw-form-card {
	position: relative;
	z-index: 4;
	border-radius: 18px;
	box-shadow: var(--gw-shadow);
}

/* Phones: show the form first, then what to expect. */
@media (max-width: 781px) {
	.gw-visit-columns {
		flex-direction: column-reverse;
	}
}

@media (min-width: 900px) {
	.gw-form-card {
		margin-top: calc(-1 * clamp(5rem, 9vw, 8rem)) !important;
	}
}

.gw-form {
	display: grid;
	gap: 1.1rem;
}

.gw-form__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
	gap: 1.1rem;
}

.gw-field {
	display: grid;
	gap: 0.4rem;
	margin: 0;
}

.gw-field[hidden] {
	display: none;
}

.gw-field label {
	font-size: 0.875rem;
	font-weight: 650;
}

.gw-optional {
	font-weight: 400;
	color: var(--wp--preset--color--stone);
}

.gw-form input[type="text"],
.gw-form input[type="tel"],
.gw-form input[type="email"],
.gw-form select,
.gw-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.8rem 0.9rem;
	font: inherit;
	font-size: 1rem;
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--white);
	border: 1px solid #cfcec8;
	border-radius: var(--gw-radius-sm);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gw-form select {
	appearance: none;
	padding-right: 2.5rem;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 1.15rem) 50%, calc(100% - 0.8rem) 50%;
	background-size: 0.35rem 0.35rem;
	background-repeat: no-repeat;
}

.gw-form textarea {
	min-height: 6.5rem;
	resize: vertical;
}

.gw-form input:focus,
.gw-form select:focus,
.gw-form textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--gold);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--gold) 22%, transparent);
}

.gw-check {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	margin: 0;
	font-size: 0.9375rem;
}

.gw-check input {
	flex: none;
	width: 1.15rem;
	height: 1.15rem;
	margin-top: 0.15rem;
	accent-color: var(--wp--preset--color--green);
}

.gw-form__submit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
	margin-top: 0.35rem;
}

.gw-form button[type="submit"] {
	cursor: pointer;
	border: 0;
	border-radius: 999px;
	padding: 0.95em 1.75em;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	font-weight: 600;
	color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--gold);
}

.gw-form button[type="submit"]:hover {
	background: color-mix(in srgb, var(--wp--preset--color--gold) 84%, black);
}

.gw-form button[disabled] {
	opacity: 0.7;
	cursor: wait;
}

.gw-form__fine {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--stone);
}

.gw-form__inline-error {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--wp--preset--color--accent);
}

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

.gw-notice {
	padding: 1.1rem 1.25rem;
	border-radius: var(--gw-radius-sm);
}

.gw-notice p {
	margin: 0;
}

.gw-notice p + p {
	margin-top: 0.4rem;
}

.gw-notice--success {
	color: var(--wp--preset--color--ink);
	background: color-mix(in srgb, var(--wp--preset--color--green) 12%, white);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--green) 35%, white);
}

.gw-notice__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.5rem;
	line-height: 1.2;
}

.gw-notice--error {
	color: var(--wp--preset--color--ink);
	background: color-mix(in srgb, var(--wp--preset--color--gold) 10%, white);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--gold) 40%, white);
}

/* ---------- 8. Questions (Details block) ---------- */

.wp-block-details summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	cursor: pointer;
	list-style: none;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 400;
	line-height: 1.25;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "+";
	flex: none;
	display: grid;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.15rem;
	line-height: 1;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 50%;
	transition: transform 0.2s ease;
}

.wp-block-details[open] summary::after {
	transform: rotate(45deg);
}

.wp-block-details > :not(summary) {
	margin-block-start: 0.6rem;
	color: color-mix(in srgb, currentColor 82%, transparent);
}

/* ---------- 9. Footer ---------- */

.gw-footer h2 {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.75rem;
	font-weight: 650;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--sage);
}

.gw-footer .gateway-plain-list a {
	color: var(--wp--preset--color--white);
}

.gw-footer .gw-footer__brand {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.75rem;
	line-height: 1;
}

.gw-footer .gw-footer__brand a {
	color: inherit;
	text-decoration: none;
}

.gw-footer-ridge {
	position: relative;
}

/* No second ridge line when the page already ends with one. */
.wp-site-blocks > main:has(> .gw-invite:last-child) + footer .gw-footer-ridge::before {
	display: none;
}

.gw-footer-ridge::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: clamp(40px, 7vw, 100px);
	background-color: var(--wp--preset--color--sage);
	opacity: 0.22;
	-webkit-mask: var(--gateway-ridge-line) center top / 100% 100% no-repeat;
	mask: var(--gateway-ridge-line) center top / 100% 100% no-repeat;
	pointer-events: none;
}

/* ---------- 10. Version 1 sections (still used by inner pages) ---------- */

.is-style-mountain-top {
	position: relative;
	z-index: 2;
}

.is-style-mountain-top::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(100% - 1px);
	height: var(--gateway-ridge-height);
	background-color: inherit;
	-webkit-mask: var(--gateway-ridge) center bottom / 100% 100% no-repeat;
	mask: var(--gateway-ridge) center bottom / 100% 100% no-repeat;
	pointer-events: none;
}

:where(.wp-block-group).gateway-card {
	height: 100%;
	padding: clamp(1.25rem, 3vw, 1.75rem);
	border-radius: var(--gw-radius);
}

.gateway-card-plain {
	height: 100%;
}

/* Link cards: the button sits at the bottom, so buttons line up in a row. */
.gw-link-card {
	display: flex;
	flex-direction: column;
}

.gw-link-card > .wp-block-buttons {
	margin-top: auto;
	padding-top: 0.4rem;
}

.gateway-fact {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.25;
}

.gateway-step-number {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.25rem;
	color: var(--wp--preset--color--accent);
}

:is(.has-ridge-background-color, .has-ridge-deep-background-color, .has-ink-background-color) .gateway-step-number {
	color: var(--wp--preset--color--sage);
}

.gateway-value-quote {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.125rem;
	color: var(--wp--preset--color--green);
}

.gateway-when {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.15;
	color: var(--wp--preset--color--accent);
}

#this-week .wp-block-column > h3 + p {
	margin-block-start: 0.4rem;
}

.gateway-person .wp-block-image img {
	max-width: 168px;
	background: var(--wp--preset--color--mist);
}

.has-mist-background-color .gateway-person .wp-block-image img {
	background: var(--wp--preset--color--white);
}

.gateway-check-list {
	margin: 0;
	padding-left: 0;
	list-style: none;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.gateway-check-list li {
	position: relative;
	padding-left: 1.6em;
}

.gateway-check-list li + li {
	margin-top: 0.3rem;
}

.gateway-check-list li::before {
	content: "";
	position: absolute;
	left: 0.15em;
	top: 0.3em;
	width: 0.45em;
	height: 0.8em;
	border-right: 2px solid var(--wp--preset--color--green);
	border-bottom: 2px solid var(--wp--preset--color--green);
	transform: rotate(45deg);
}

.gateway-map {
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: var(--gw-radius);
	background: var(--wp--preset--color--mist);
}

.gateway-map--on-mist {
	background: var(--wp--preset--color--white);
}

.gateway-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ---------- 11. Helpers ---------- */

.wp-block-separator {
	border: 0;
	border-top: 1px solid var(--wp--preset--color--line);
	opacity: 1;
}

:is(.has-ridge-background-color, .has-ridge-deep-background-color) .wp-block-separator {
	border-top-color: rgba(255, 255, 255, 0.16);
}

.gateway-plain-list {
	list-style: none;
	padding-left: 0;
}

.gateway-plain-list li + li {
	margin-top: 0.45rem;
}

.gateway-plain-list a {
	text-decoration: none;
}

.gateway-plain-list a:hover {
	text-decoration: underline;
}

.wp-block-post-template .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}

.wp-block-post-template .wp-block-post-title a:hover {
	text-decoration: underline;
}

.wp-block-post-featured-image img {
	display: block;
}

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

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

	*,
	*::before,
	*::after {
		transition: none !important;
	}
}

/* Outline buttons, including ones printed by the theme's shortcodes. */
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background) {
	color: inherit;
	background: transparent;
	border: 1.5px solid currentColor;
	padding: calc(0.95em - 1.5px) calc(1.6em - 1.5px);
}

.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):is(:hover, :focus-visible) {
	color: inherit;
	background: color-mix(in srgb, currentColor 12%, transparent);
}

/* Titles that link (events, messages) read as titles. */
.gw-event__title a,
.gw-messages__title a {
	color: inherit;
	text-decoration: none;
}

.gw-event__title a:hover,
.gw-messages__title a:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

.gw-message__body > * {
	margin: 0;
}

/* Plan Your Visit through Church Center */
.gw-cc {
	display: grid;
	gap: 0.85rem;
	justify-items: start;
}

.gw-cc .wp-element-button {
	font-size: 1rem;
	padding: 1em 2em;
}

/* ------------------------------------------------------------------
   Photo collage (patterns "Photo collage" and "Page: Photos")
   An edge-to-edge grid of square photos: 6 across on computers,
   3 across on tablets and phones. Click a photo to see it bigger.
   ------------------------------------------------------------------ */
.gw-collage.wp-block-gallery.has-nested-images {
	padding-inline: 8px;
	box-sizing: border-box;
}

.gw-collage.wp-block-gallery.has-nested-images figure.wp-block-image {
	overflow: hidden;
	border-radius: 6px;
	background-color: var(--wp--preset--color--line);
}

.gw-collage.wp-block-gallery.has-nested-images figure.wp-block-image img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	transition: transform 0.5s ease, filter 0.5s ease;
}

.gw-collage.wp-block-gallery.has-nested-images figure.wp-block-image:hover img {
	transform: scale(1.04);
	filter: brightness(1.05);
}

@media (prefers-reduced-motion: reduce) {
	.gw-collage.wp-block-gallery.has-nested-images figure.wp-block-image img {
		transition: none;
	}

	.gw-collage.wp-block-gallery.has-nested-images figure.wp-block-image:hover img {
		transform: none;
	}
}

/* Tablets and phones: 3 across (core would use 2 on phones). */
@media (max-width: 1023px) {
	.gw-collage.wp-block-gallery.has-nested-images.has-nested-images figure.wp-block-image:not(#individual-image) {
		width: calc(33.3333% - var(--wp--style--unstable-gallery-gap, 8px) * 0.66667);
	}
}

@media (max-width: 599px) {
	.gw-collage.wp-block-gallery.has-nested-images {
		padding-inline: 4px;
	}

	.gw-collage.wp-block-gallery.has-nested-images figure.wp-block-image {
		border-radius: 4px;
	}
}

/* Photo viewer (opens when you click a collage photo): a dark background
   makes photos stand out. WordPress sets white inline, so !important. */
.wp-lightbox-overlay .scrim {
	background-color: var(--wp--preset--color--ridge-deep) !important;
}

.wp-lightbox-overlay .close-button,
.wp-lightbox-overlay .wp-lightbox-close-button,
.wp-lightbox-overlay .wp-lightbox-navigation-button {
	color: var(--wp--preset--color--white) !important;
	fill: var(--wp--preset--color--white) !important;
}

/* Home page photo strip: the first photos from the Photos page, edge to edge. */
.gw-photo-strip {
	display: grid;
	grid-template-columns: repeat(var(--gw-strip-count, 6), minmax(0, 1fr));
	gap: 8px;
	padding-inline: 8px;
}

.gw-photo-strip__item {
	display: block;
	overflow: hidden;
	border-radius: 6px;
	background-color: var(--wp--preset--color--line);
}

.gw-photo-strip__item img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	transition: transform 0.5s ease, filter 0.5s ease;
}

.gw-photo-strip__item:hover img {
	transform: scale(1.04);
	filter: brightness(1.05);
}

@media (prefers-reduced-motion: reduce) {
	.gw-photo-strip__item img {
		transition: none;
	}

	.gw-photo-strip__item:hover img {
		transform: none;
	}
}

@media (max-width: 1023px) {
	.gw-photo-strip {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 599px) {
	.gw-photo-strip {
		gap: 6px;
		padding-inline: 4px;
	}

	.gw-photo-strip__item {
		border-radius: 4px;
	}
}

.gw-photo-strip__empty {
	max-width: 36rem;
	margin-inline: auto;
	padding: 1rem 1.25rem;
	border: 1px dashed var(--wp--preset--color--stone);
	border-radius: var(--gw-radius-sm);
	text-align: center;
	color: var(--wp--preset--color--stone);
	font-size: var(--wp--preset--font-size--small);
}

/* ------------------------------------------------------------------
   Centered home page (Gateway settings > Home page layout > Centered)
   ------------------------------------------------------------------ */

/* Cover photo: an even, slightly deeper shade so centered text reads well
   anywhere on the photo. */
.gw-hero.gw-hero--center .wp-block-cover__background {
	background: linear-gradient(180deg, rgba(18, 18, 17, 0.6) 0%, rgba(18, 18, 17, 0.42) 32%, rgba(18, 18, 17, 0.48) 68%, rgba(18, 18, 17, 0.72) 100%) !important;
}

.gw-hero--center h1 {
	max-width: 15ch;
	margin-inline: auto;
}

.gw-hero--center .gw-lead {
	max-width: 36rem;
	margin-inline: auto;
}

.gw-hero__info {
	margin-top: var(--wp--preset--spacing--30) !important;
	font-size: 0.9375rem;
	letter-spacing: 0.01em;
	color: rgba(255, 255, 255, 0.8);
}

.gw-hero__info a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.3em;
}

.gw-hero__info a:hover {
	color: var(--wp--preset--color--white);
}

/* Three steps side by side, each with a thin line on top. */
.gw-step-cols > .wp-block-column {
	padding-top: 1.25rem;
	border-top: 1px solid var(--wp--preset--color--line);
}

.gw-step-cols > .wp-block-column > * + * {
	margin-top: 0.4rem;
}

.gw-step-num {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.5rem;
	line-height: 1;
	color: var(--wp--preset--color--accent);
}

/* Cards with centered text (ministries, values). */
.gw-center-cards > * {
	text-align: center;
}

.gw-center-cards .gw-value h3,
.gw-center-cards .gw-value p {
	margin-inline: auto;
}

/* Latest message, centered: title on top, big video, buttons below. */
.gw-message--centered {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wp--preset--spacing--40);
	text-align: center;
}

.gw-message--centered .gw-message__media {
	width: 100%;
	max-width: 960px;
}

.gw-message--centered .wp-block-buttons {
	justify-content: center;
	margin-top: 0;
}

/* Centered text breaks into even lines instead of leaving one word alone. */
:is(h1, h2, h3, p).has-text-align-center,
.gw-hero--center .gw-lead {
	text-wrap: balance;
}

/* Keep the address together when the info line wraps on phones. */
.gw-hero__info a {
	white-space: nowrap;
}

/* Instagram and YouTube links get a small logo in front (footer "Follow"
   column and the Instagram button). */
:is(.gw-follow-list a, .wp-block-button__link)[href*="instagram.com"]::before,
.gw-follow-list a[href*="youtube.com"]::before {
	content: "";
	display: inline-block;
	width: 1.05em;
	height: 1.05em;
	margin-right: 0.5em;
	vertical-align: -0.17em;
	background-color: currentColor;
	-webkit-mask: var(--gw-icon) center / contain no-repeat;
	mask: var(--gw-icon) center / contain no-repeat;
}

:is(.gw-follow-list a, .wp-block-button__link)[href*="instagram.com"] {
	--gw-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%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='0.6' fill='black'/%3E%3C/svg%3E");
}

.gw-follow-list a[href*="youtube.com"] {
	--gw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M22 8.2a3 3 0 0 0-2.1-2.1C18 5.6 12 5.6 12 5.6s-6 0-7.9.5A3 3 0 0 0 2 8.2 31 31 0 0 0 1.6 12 31 31 0 0 0 2 15.8a3 3 0 0 0 2.1 2.1c1.9.5 7.9.5 7.9.5s6 0 7.9-.5a3 3 0 0 0 2.1-2.1 31 31 0 0 0 .4-3.8 31 31 0 0 0-.4-3.8zM10 15V9l5.2 3z'/%3E%3C/svg%3E");
}

/* Missions page: the opening statement and partner logos. */
.gw-missions-intro {
	max-width: 46rem;
	margin-inline: auto !important;
}

.gw-partner + .gw-partner {
	padding-top: var(--wp--preset--spacing--60);
	border-top: 1px solid var(--wp--preset--color--line);
}

.wp-block-image.gw-partner-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	margin: 0;
	padding: clamp(1.25rem, 4vw, 2.5rem);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--gw-radius);
	background-color: var(--wp--preset--color--white);
}

.wp-block-image.gw-partner-logo img {
	width: auto;
	max-width: min(100%, 280px);
	height: auto;
	max-height: 100%;
	object-fit: contain;
}

/* Short orange bar under a centered heading (a Separator block with the
   extra class "gw-rule"), like the bar on the old site. */
.wp-block-separator.gw-rule {
	width: 4.5rem;
	margin-inline: auto !important;
	border: 0;
	border-top: 4px solid var(--wp--preset--color--gold);
	border-radius: 2px;
	opacity: 1;
}

/* Headings with an icon box above them: Heading block > Styles > "Icon: ...".
   Used by the three columns on the Who is Jesus page and the
   "Three columns with icons" section. */
.wp-block-heading[class*="is-style-icon-"]::before {
	content: "";
	display: block;
	width: 4.25rem;
	height: 4.25rem;
	margin: 0.3rem 0.3rem 1.6rem;
	border-radius: var(--gw-radius-sm);
	outline: 1px solid var(--wp--preset--color--ink);
	outline-offset: 4px;
	background: var(--wp--preset--color--ink) var(--gw-heading-icon) center / 1.85rem no-repeat;
}

.wp-block-heading.has-text-align-center[class*="is-style-icon-"]::before,
.gw-icon-box .wp-block-heading[class*="is-style-icon-"]::before {
	margin-inline: auto;
}

:is(.has-ridge-background-color, .has-ridge-deep-background-color, .has-ink-background-color) .wp-block-heading[class*="is-style-icon-"]::before {
	outline-color: var(--wp--preset--color--gold);
	background-color: var(--wp--preset--color--gold);
}

.is-style-icon-friend {
	--gw-heading-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M19 8v6M22 11h-6'/%3E%3C/svg%3E");
}

.is-style-icon-crown {
	--gw-heading-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E");
}

.is-style-icon-star {
	--gw-heading-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E");
}

.is-style-icon-heart {
	--gw-heading-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7z'/%3E%3C/svg%3E");
}

.is-style-icon-bible {
	--gw-heading-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z'/%3E%3Cpath d='M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E");
}

.is-style-icon-cross {
	--gw-heading-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20M6 8h12'/%3E%3C/svg%3E");
}

/* A column of centered text under an icon (Columns block with the class
   "gw-icon-boxes", each Column with "gw-icon-box"). */
.gw-icon-box {
	text-align: center;
}

.gw-icon-box .wp-block-heading {
	margin-bottom: 0.25rem;
}

.gw-icon-box p {
	margin-block: 0.9rem 0;
}

/* Who is Jesus page: a highlighted line and the three "friend" sections. */
.gw-pull {
	margin-block: var(--wp--preset--spacing--30) !important;
	padding-left: 1.25rem;
	border-left: 3px solid var(--wp--preset--color--gold);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.35;
	color: var(--wp--preset--color--ink);
}

.gw-friend + .gw-friend {
	padding-top: var(--wp--preset--spacing--50);
	border-top: 1px solid var(--wp--preset--color--line);
}

.gw-friend__intro {
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--ink);
}

/* The highlighted line, centered (no bar on the left). */
.gw-pull.has-text-align-center {
	max-width: 34rem;
	margin-block: var(--wp--preset--spacing--50) !important;
	margin-inline: auto !important;
	padding-left: 0;
	border-left: 0;
}

.gw-icon-box .gw-friend__intro {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
}

.gw-friends-intro .gw-lead {
	max-width: 44rem;
	margin-inline: auto;
}

/* ------------------------------------------------------------------
   Old 907 theme content (shown plainly until a page is rebuilt) and
   the private preview bar.
   ------------------------------------------------------------------ */
.gw-legacy-heading {
	margin-block: var(--wp--preset--spacing--30) var(--wp--preset--spacing--20);
}

.gw-legacy-text {
	max-width: 46rem;
	margin: 0 auto var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--medium);
}

.gw-legacy-hr {
	width: 5rem;
	margin: var(--wp--preset--spacing--20) 0 var(--wp--preset--spacing--40);
	border: 0;
	border-top: 3px solid var(--wp--preset--color--gold);
}

.gw-legacy-box {
	margin-bottom: var(--wp--preset--spacing--40);
}

.gw-legacy-box__title {
	font-size: var(--wp--preset--font-size--large);
}

.gw-preview-bar {
	position: fixed;
	z-index: 99990;
	right: 1rem;
	bottom: 1rem;
	left: 1rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	align-items: center;
	justify-content: space-between;
	max-width: 46rem;
	margin-inline: auto;
	padding: 0.75rem 1rem;
	border-radius: 6px;
	background: #1d1d1b;
	color: #fff;
	font-size: 0.875rem;
	line-height: 1.4;
	box-shadow: 0 8px 24px rgb(0 0 0 / 0.25);
}

.gw-preview-bar p {
	margin: 0;
}

.gw-preview-bar__links {
	display: flex;
	flex-shrink: 0;
	gap: 1rem;
}

.gw-preview-bar a {
	flex-shrink: 0;
	color: #fff;
	font-weight: 600;
	text-decoration: underline;
}

.gw-previewing body {
	padding-bottom: 5rem;
}

@media (max-width: 600px) {
	.gw-preview-bar {
		right: 0.5rem;
		bottom: 0.5rem;
		left: 0.5rem;
		padding: 0.5rem 0.75rem;
		font-size: 0.8125rem;
	}

	.gw-preview-bar__more {
		display: none;
	}

	.gw-preview-bar__links {
		flex-wrap: wrap;
		gap: 0.25rem 0.9rem;
	}

	.gw-previewing body {
		padding-bottom: 6.5rem;
	}
}
