/*
Theme Name: Gradespace Church
Theme URI: https://thegradespace.com
Description: A block theme for churches: warm, welcoming and easy to read on a phone. Three designs (Gathering, bright and friendly; Sanctuary, dark and cinematic; Heritage, warm and editorial) and seven colour palettes, chosen under Site Settings → Design & colours (Gradespace Core), with a colour for every congregation. Ready-made pages and sections for service times, sermons, events, plan-a-visit, community stories and giving. Design only: congregations, sermons, events and forms live in the Gradespace Church plugin.
Author: Gradespace
Author URI: https://thegradespace.com
Version: 0.3.1
Update URI: https://thegradespace.com/updates/gradespace-church-theme
Requires at least: 6.8
Tested up to: 7.1
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gradespace-church-theme
Tags: block-patterns, full-site-editing, style-variations, wide-blocks, accessibility-ready
*/

/* Bump Version above on every release: it busts browser caches (?ver=).

   Colour rules (so every design and palette works):
   - surfaces use the "white" slug, text the "navy" slug, muted text "slate";
   - "sky-deep" is the brand (carries white text), "sky" the bright accent,
     "sky-tint" a soft background; "location*" follow the page's church.
   - Gradespace Core's front-end UI (dialogs, contact sheet, cookie banner,
     share buttons) is coloured through the --gsc-* tokens below. */

/* Church colour defaults: the palette's accent. A congregation's pages
   override these with its own colour pair (Gradespace Core → Locations). */
:root {
	--gsc-location-fill: var(--wp--preset--color--sky);
	--gsc-location-deep: var(--wp--preset--color--sky-deep);
	--gsc-location-tint: var(--wp--preset--color--sky-tint);
	/* Gradespace Core's UI tokens, mapped from the palette. */
	--gsc-brand: var(--wp--preset--color--sky-deep);
	--gsc-ink: var(--wp--preset--color--navy);
	--gsc-muted: var(--wp--preset--color--slate);
	--gsc-line: var(--wp--preset--color--line);
	--gsc-tint: var(--wp--preset--color--sky-tint);
	--gsc-soft: var(--wp--preset--color--mist);
	--gsc-surface: var(--wp--preset--color--white);
	--gsc-danger: var(--wp--preset--color--red);
	--gsc-font: var(--wp--preset--font-family--body);
	--gsc-font-display: var(--wp--preset--font-family--display);
}

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

/* Underline links in running text inside page content only (not header/footer). */
.wp-block-post-content p a:where(:not(.wp-element-button)),
.wp-block-post-content .wp-block-list li a:where(:not(.wp-element-button)) {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

/* Footer links: quiet until hovered. */
footer.wp-block-template-part a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--slate);
}
footer.wp-block-template-part a:where(:not(.wp-element-button)):hover {
	color: var(--wp--preset--color--navy);
}

/* Links on navy stay readable on hover (the default hover colour is navy). */
.has-navy-background-color a:where(:not(.wp-element-button)):hover,
.has-navy-background-color a:where(:not(.wp-element-button)):focus-visible {
	color: var(--wp--preset--color--sky);
}

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

/* ==========================================================================
   Sticky header: stays at the top, tightens and gains a shadow once you scroll.
   ========================================================================== */
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 1000;
	transition: box-shadow 0.3s ease;
}
.admin-bar header.wp-block-template-part {
	top: var(--wp-admin--admin-bar--height, 32px);
}
header.wp-block-template-part > .wp-block-group:last-child {
	transition: padding 0.3s ease, background-color 0.3s ease;
}
.gsch-scrolled header.wp-block-template-part {
	box-shadow: 0 8px 30px rgba(11, 27, 51, 0.1);
}
.gsch-scrolled header.wp-block-template-part > .wp-block-group:last-child {
	position: relative;
	padding-top: 0.55rem !important;
	padding-bottom: 0.55rem !important;
	background-color: transparent !important;
}
/* The frosted glass sits on a separate layer: a backdrop-filter on the bar itself
   would trap the full-screen mobile menu inside the bar. */
.gsch-scrolled header.wp-block-template-part > .wp-block-group:last-child::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: color-mix(in srgb, var(--wp--preset--color--white) 92%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
}
/* While the menu is open it always covers the whole screen. */
.wp-block-navigation__responsive-container.is-menu-open {
	position: fixed !important;
	inset: 0 !important;
	height: 100dvh;
	overflow-y: auto;
	z-index: 100001 !important;
}
/* A top strip slides out of view once you scroll (motion.js measures it). */
header.wp-block-template-part {
	transition: box-shadow 0.3s ease, top 0.3s ease;
}
.gsch-scrolled header.wp-block-template-part:has(> .has-navy-background-color:first-child) {
	top: calc(-1 * var(--gsch-strip-h, 0px));
}
.gsch-scrolled.admin-bar header.wp-block-template-part:has(> .has-navy-background-color:first-child),
.gsch-scrolled .admin-bar header.wp-block-template-part:has(> .has-navy-background-color:first-child) {
	top: calc(var(--wp-admin--admin-bar--height, 32px) - var(--gsch-strip-h, 0px));
}
@media (max-width: 600px) {
	.admin-bar header.wp-block-template-part {
		top: 0;
	}
}

/* ==========================================================================
   Footer: a soft grey band, set apart from the page.
   ========================================================================== */
footer.wp-block-template-part {
	margin-top: 0;
	background: var(--wp--preset--color--mist);
	border-top: 1px solid var(--wp--preset--color--line);
}

/* Chips and pills size to their content. */
.is-style-chip {
	width: fit-content;
}

/* Hide secondary header actions on phones (the menu carries them). */
@media (max-width: 781px) {
	.gsch-hide-mobile { display: none !important; }
}

/* Header navigation sits in a soft pill on wide screens. */
@media (min-width: 1000px) {
	.gsch-nav-pill .wp-block-navigation__container {
		gap: 0.25rem;
		padding: 0.3rem;
		background: var(--wp--preset--color--white);
		border: 1px solid var(--wp--preset--color--line);
		border-radius: 999px;
	}
	.gsch-nav-pill .wp-block-navigation-item__content {
		padding: 0.55rem 1rem;
		border-radius: 999px;
	}
	.gsch-nav-pill .current-menu-item > .wp-block-navigation-item__content {
		background: var(--wp--preset--color--navy);
		color: var(--wp--preset--color--white);
	}
}

/* Live dot on the "Watch live" button. */
.gsch-live .wp-block-button__link::before {
	content: "";
	display: inline-block;
	width: 0.5rem;
	height: 0.5rem;
	margin-right: 0.6rem;
	border-radius: 50%;
	background: currentColor;
	vertical-align: 0.1em;
}

/* Photo hero: white fades in from the left on desktop. On phones the photo is a
   band across the top and the words sit on white beneath it. */
@media (max-width: 781px) {
	.gsch-hero-fade.wp-block-cover {
		align-items: flex-start;
		min-height: 0 !important;
		padding-top: calc(38vh + 1rem) !important;
	}
	.gsch-hero-fade .wp-block-cover__image-background {
		height: 42vh;
		bottom: auto;
	}
	.gsch-hero-fade .wp-block-cover__background.has-background-gradient {
		background: linear-gradient(180deg, transparent 0, transparent 26vh, var(--wp--preset--color--white) 42vh) !important;
	}
}

/* Floating "This Sunday" card on the hero, anchored to the whole hero. */
@media (min-width: 1100px) {
	.gsch-hero-fade .wp-block-cover__inner-container {
		position: static;
	}
	.gsch-hero-fade .gsch-hero-card {
		height: auto !important;
		position: absolute;
		right: clamp(1rem, 4vw, 3.5rem);
		bottom: clamp(1rem, 4vw, 3.5rem);
		width: 360px;
		margin: 0 !important;
		z-index: 2;
	}
}

/* Week strip: cards keep an even height. */
.gsch-week .wp-block-group.is-style-card {
	height: 100%;
	box-sizing: border-box;
}

/* Placeholder shown where a church has no photo yet (from Gradespace Core). */
.gsc-photo-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	height: 100%;
	min-height: 260px;
	box-sizing: border-box;
	background: var(--gsc-location-tint);
	border: 2px dashed var(--gsc-location-fill);
	color: var(--gsc-location-deep);
	font-weight: 700;
	font-size: 0.9375rem;
	text-align: center;
}
.is-style-arch .gsc-photo-placeholder {
	border-radius: 999px 999px 24px 24px;
}
.is-style-pill .gsc-photo-placeholder {
	border-radius: 999px;
}

/* "Edit this page" button for signed-in editors. */
.gsch-edit-fab {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 99999;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.1rem;
	border-radius: 999px;
	background: #0B1B33;
	color: #FFFFFF !important;
	font: 700 0.9375rem/1 system-ui, sans-serif;
	text-decoration: none !important;
	box-shadow: 0 6px 24px rgba(11, 27, 51, 0.25);
}
.gsch-edit-fab:hover,
.gsch-edit-fab:focus-visible {
	background: #1A73C0;
}

@media print {
	.gsch-edit-fab { display: none; }
}

/* Header "Log in" and "Watch" sit quietly beside the main button. */
.gsch-header-login .wp-block-button__link,
.gsch-login-btn .wp-block-button__link {
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

/* Header fits on one line: no wrapping buttons. */
header.wp-block-template-part .wp-block-buttons {
	flex-wrap: nowrap;
}
header.wp-block-template-part .wp-block-button__link {
	white-space: nowrap;
}
header.wp-block-template-part .wp-block-site-logo {
	flex-shrink: 0;
}
/* The name is the part that gives way: it wraps (two lines at most, then an ellipsis)
   instead of pushing the account icon or the menu button off a small screen. */
header.wp-block-template-part .gsch-brand,
header.wp-block-template-part .gsch-brand > .wp-block-group {
	flex: 0 1 auto;
	min-width: 0;
}
header.wp-block-template-part .wp-block-site-title {
	min-width: 0;
	overflow-wrap: break-word;
}
header.wp-block-template-part .wp-block-site-title a {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
}
/* WooCommerce's account icon (added next to the menu when WooCommerce is active): a 44px tap target. */
header.wp-block-template-part .wp-block-woocommerce-customer-account,
header.wp-block-template-part .wp-block-group:has(> .gsch-brand) > .wp-block-navigation {
	flex-shrink: 0;
}
header.wp-block-template-part .wp-block-woocommerce-customer-account a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0;
}
/* 1240–1320px: the full menu fits only without "Watch" (Sermons is in the menu). */
@media (min-width: 1240px) and (max-width: 1320px) {
	header.wp-block-template-part .wp-block-buttons > .gsch-login-btn {
		display: none;
	}
}
/* With the "Log in" button too, "Watch" gives way below 1440px so the name keeps its line. */
@media (min-width: 1240px) and (max-width: 1439px) {
	header.wp-block-template-part .wp-block-buttons:has(> .gsch-header-login) > .gsch-login-btn {
		display: none;
	}
}
/* Below 1240px the menu folds into the tap-to-open button (core only does this below 600px). */
@media (max-width: 1239px) {
	header.wp-block-template-part .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
	header.wp-block-template-part .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
	/* Name on the left; account icon, buttons and the menu button grouped on the right, menu button last. */
	header.wp-block-template-part .gsch-brand {
		margin-right: auto;
	}
	header.wp-block-template-part .wp-block-group:has(> .gsch-brand) > .wp-block-navigation {
		order: 3;
		flex-shrink: 0;
	}
	header.wp-block-template-part .wp-block-group:has(> .gsch-brand) > .wp-block-woocommerce-customer-account {
		order: 1;
	}
	header.wp-block-template-part .wp-block-group:has(> .gsch-brand) > .wp-block-buttons {
		order: 2;
	}
}
@media (max-width: 599px) {
	header.wp-block-template-part .wp-block-group:has(> .gsch-brand) {
		gap: 0.25rem 0.5rem !important;
	}
}

/* ==========================================================================
   Phones and tablets
   ========================================================================== */

/* Nothing may cause sideways scrolling (clip keeps the sticky header working). */
html,
body {
	overflow-x: clip;
}

/* Comfortable tap targets. */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	width: 44px;
	height: 44px;
	justify-content: center;
	align-items: center;
	border-radius: 50%;
	background: var(--wp--preset--color--sky-tint);
}
.wp-block-navigation__responsive-container-open svg,
.wp-block-navigation__responsive-container-close svg {
	width: 26px;
	height: 26px;
}
footer.wp-block-template-part a,
.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
	display: inline-block;
	min-height: 44px;
	line-height: 44px;
}
.wp-block-query-pagination .page-numbers {
	min-width: 44px;
	text-align: center;
	border-radius: 999px;
}
.wp-block-query-pagination .page-numbers.current {
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}

/* The open menu on phones: big, clear, grouped. */
.wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.25rem 1.5rem 2rem !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 3.5rem;
	gap: 0.25rem !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	align-items: flex-start !important;
	text-align: left;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.6rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	padding: 0.35rem 0;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	padding: 0 0 0.75rem 0 !important;
	gap: 0 !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.45rem 0 !important;
	color: var(--wp--preset--color--slate);
	font-size: 1.05rem;
}

@media (max-width: 781px) {
	/* Decorative frames stay inside the screen. */
	.gsch-arch-frame > .wp-block-post-featured-image::before,
	.gsch-arch-frame > .wp-block-image::before {
		inset: -10px 10px 10px -10px;
	}
	.gsch-arch-frame > .wp-block-post-featured-image::after,
	.gsch-arch-frame > .wp-block-image::after {
		right: -8px;
		bottom: -12px;
	}
	/* Tighter sections and headings on small screens. */
	.gsch-hero h1 {
		font-size: clamp(2.4rem, 11vw, 3.2rem) !important;
	}
	.gsch-quote {
		font-size: 1.6rem;
	}
	.gsch-latest {
		padding: 1rem;
	}
	.gsch-latest__title {
		font-size: 2.1rem;
	}
	/* Header on phones: logo, name and the menu button only. */
	header.wp-block-template-part .wp-block-site-title {
		font-size: 1.05rem;
	}
	header.wp-block-template-part .wp-block-site-logo img {
		width: 42px !important;
	}
	/* Stack columns with breathing room. */
	.wp-block-columns {
		gap: var(--wp--preset--spacing--40) !important;
	}
}

/* Nothing floats over the open mobile menu. */
body:has(.wp-block-navigation__responsive-container.is-menu-open) .gsc-consent,
body:has(.wp-block-navigation__responsive-container.is-menu-open) .gsc-consent-fab,
body:has(.wp-block-navigation__responsive-container.is-menu-open) .gsch-edit-fab {
	display: none !important;
}

/* Room below the last menu item (and the phone's home bar) so it scrolls fully into view. */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-bottom: calc(4rem + env(safe-area-inset-bottom, 0px)) !important;
}

/* Centre the icons in the round menu buttons — only where they are meant to show:
   the open button on smaller screens, the close button inside the open menu. */
@media (max-width: 1239px) {
	header.wp-block-template-part .wp-block-navigation__responsive-container-open {
		display: flex !important;
		align-items: center;
		justify-content: center;
		padding: 0 !important;
	}
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
}

/* ==========================================================================
   Footer: columns share the width evenly however many there are (remove or add
   a column in the Site Editor and the rest close up, no gaps); the brand column is
   a little wider, then on its own row on small laptops; 2 per row on tablets and
   phones (an odd one out stretches across).
   ========================================================================== */
.gsch-footer__grid {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
}
.gsch-footer__grid > * {
	flex: 1 1 0;
	min-width: 0;
	margin: 0 !important;
}
.gsch-footer__grid > .gsch-footer__brand {
	flex-grow: 1.35;
}
.gsch-footer__tagline {
	margin: 0;
	max-width: 17rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.2rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--wp--preset--color--navy);
}
.gsch-footer__links {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 2.1;
}
footer.wp-block-template-part .gsch-footer__links a {
	display: inline;
	min-height: 0;
	line-height: inherit;
}
footer.wp-block-template-part .gsch-footer__col h3 {
	margin: 0;
}
footer.wp-block-template-part .gsch-churches.is-layout-links li + li {
	margin-top: 0.15rem;
}
footer.wp-block-template-part .gsch-churches.is-layout-links a {
	min-height: 0;
	line-height: 2.1;
	font-size: 0.9375rem;
}
footer.wp-block-template-part .gsch-social {
	margin-top: 0.25rem;
}
@media (max-width: 1100px) {
	.gsch-footer__grid > .gsch-footer__brand {
		flex-basis: 100%; /* brand on its own row; the rest share the next row */
	}
}
@media (max-width: 480px) {
	/* Columns with addresses, service times or phone numbers take the full width (by content, not position). */
	.gsch-footer__grid > :has(.gsch-services, address, a[href^="tel:"]) {
		flex-basis: 100%;
	}
}
@media (max-width: 781px) {
	.gsch-footer__grid > * {
		flex-basis: calc(50% - var(--wp--preset--spacing--40));
	}
	footer.wp-block-template-part .wp-block-group:has(> .has-small-font-size) {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.25rem;
	}
}

/* Contact lines (phones, emails) in the church colour. */
/* Anchor jumps clear the sticky header. */
html { scroll-padding-top: 7.5rem; }
.gsch-contacts a { white-space: nowrap; }

/* Colours saved inside page content follow the palette (so every colour
   scheme and design style works on existing pages). */
@media (min-width: 782px) {
.gsch-hero-fade > .wp-block-cover__background.has-background-gradient {
	background: linear-gradient(90deg, var(--wp--preset--color--white) 0%, var(--wp--preset--color--white) 36%, color-mix(in srgb, var(--wp--preset--color--white) 86%, transparent) 48%, transparent 72%) !important;
}
}
.has-navy-background-color [style*="color:#c9d6ea"],
.has-navy-background-color [style*="color:#C9D6EA"] {
	color: var(--gsch-band-soft) !important;
}

/* "Band" colours: dark panels (hero bands, the special-programme card, the
   voices band…). Light designs use the palette's navy; a dark design style
   sets its own. */
:root {
	--gsch-band-bg: var(--wp--preset--color--navy);
	--gsch-band-text: #fff;
	--gsch-band-soft: #c9d6ea;
}

/* Buttons saved in page content with fixed navy/white colours follow the
   palette too, so they stay visible in every design (e.g. on a dark one). */
.wp-block-button__link[style*="background-color:#0B1B33"],
.wp-block-button__link[style*="background-color:#0b1b33"] {
	background-color: var(--wp--preset--color--navy) !important;
}
.wp-block-button__link[style*="background-color:#0B1B33"][style*="color:#FFFFFF"],
.wp-block-button__link[style*="background-color:#0b1b33"][style*="color:#ffffff"] {
	color: var(--wp--preset--color--white) !important;
}

/* ==========================================================================
   Church kit additions
   ========================================================================== */

/* "Plan a visit" in the menu shows only inside the opened phone menu
   (the header has its own button on wider screens). */
.gsch-nav-cta {
	display: none !important;
}
.wp-block-navigation__responsive-container.is-menu-open .gsch-nav-cta {
	display: flex !important;
	margin-top: 1rem;
}
.wp-block-navigation__responsive-container.is-menu-open .gsch-nav-cta > .wp-block-navigation-item__content {
	padding: 0.85rem 1.5rem !important;
	border-radius: 999px;
	background: var(--wp--preset--color--sky-deep);
	color: var(--wp--preset--color--white) !important;
	font-size: 1.1rem !important;
}

/* "Log in" in the phone menu (the header's buttons are hidden on phones). */
.gsch-nav-login {
	display: none !important;
}
@media (max-width: 781px) {
	.wp-block-navigation__responsive-container.is-menu-open .gsch-nav-login {
		display: flex !important;
		margin-top: 0.5rem;
	}
	.wp-block-navigation__responsive-container.is-menu-open .gsch-nav-login > .wp-block-navigation-item__content {
		padding: 0.85rem 1.5rem !important;
		border-radius: 999px;
		background: var(--wp--preset--color--sky-tint);
		color: var(--wp--preset--color--navy) !important;
		font-size: 1.1rem !important;
	}
}

/* The Log in page: two choices, the church app and the website. */
.gsch-login-choices > .gsch-login-choice {
	height: 100%;
	box-sizing: border-box;
	margin: 0;
}
.gsch-login-choice > .wp-block-buttons {
	margin-top: auto;
	padding-top: var(--wp--preset--spacing--20);
}
.gsch-login-choice h2 {
	margin: 0;
	letter-spacing: -0.03em;
	line-height: 1.02;
}
.gsch-login-choice > p:not(.is-style-chip) {
	margin: 0;
	max-width: 32rem;
}
.gsch-login-choice > .is-style-chip {
	margin: 0;
}
@media (max-width: 781px) {
	.gsch-login-choice {
		padding: var(--wp--preset--spacing--50) !important;
	}
}

/* A soft illustrated hero backdrop (no photo needed). */
.gsch-hero-art {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}
.gsch-hero-art::after {
	content: "";
	position: absolute;
	z-index: -1;
	top: 50%;
	right: clamp(-12rem, -8vw, -4rem);
	width: min(62vw, 760px);
	aspect-ratio: 1;
	transform: translateY(-50%);
	border-radius: 999px 999px 48px 48px;
	background:
		radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--wp--preset--color--white) 70%, transparent) 0 14%, transparent 15%),
		linear-gradient(160deg, var(--gsc-location-fill), var(--gsc-location-deep));
	opacity: 0.9;
}
@media (max-width: 781px) {
	.gsch-hero-art::after {
		top: auto;
		right: -30vw;
		bottom: -40vw;
		width: 90vw;
		transform: none;
		opacity: 0.25;
	}
}
.gsch-hero-art .gsch-hero-card {
	max-width: 360px;
}

/* Church page hero photo frame. */
.gsch-church-hero .wp-block-post-featured-image,
.gsch-church-hero .gsc-photo-placeholder-wrap {
	margin: 0;
}

/* Service times cards keep an even height inside bands. */
.gsch-band .gsch-services.is-layout-cards .gsch-service {
	box-shadow: none;
}

/* Legal links in the footer. */
footer.wp-block-template-part .gsc-legal-links a {
	display: inline;
	min-height: 0;
	line-height: inherit;
}

/* ==========================================================================
   Congregation header (parts/header-church.html): strip, lockup, own colour.
   ========================================================================== */
.gsch-church-strip p {
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.gsch-church-strip a {
	text-decoration: none;
}
/* The back link takes the strip's own (light) text colour in every design. */
.gsch-church-strip .gsch-church-strip__back a {
	color: inherit;
}
.gsch-church-strip a:hover,
.gsch-church-strip a:focus-visible {
	text-decoration: underline;
}
.gsch-church-lockup p {
	margin: 0;
}
.gsch-church-lockup__name a {
	color: inherit;
	text-decoration: none;
}
.gsch-church-lockup__name a:hover {
	color: var(--gsc-location-deep, var(--wp--preset--color--sky-deep));
}
@media (max-width: 600px) {
	.gsch-church-strip {
		font-size: 0.8125rem !important;
	}
	.gsch-church-lockup__name {
		font-size: 1.35rem !important;
	}
}
