/*
Theme Name: Justės erdvė
Author: Zemėplytis
Description: Redakcinė, prieinama blokinė tema privačiai Gestalto psichoterapijos praktikai, seminarams ir straipsniams.
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 8.1
Version: 1.4.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: justes-erdve
Tags: block-patterns, block-styles, blog, custom-logo, editor-style, featured-images, full-site-editing, one-column, translation-ready, wide-blocks
*/

/*
 * The visual system lives here as a deliberately small, dependency-free layer.
 * Global tokens and editor parity are defined in theme.json.
 */

:root {
	--je-radius-sm: 0.25rem;
	--je-radius-md: 0.625rem;
	--je-radius-lg: 0.75rem;
	--je-shadow-soft: 0 1.5rem 4.5rem rgb(41 36 45 / 10%);
	--je-shadow-lift: 0 1rem 2.75rem rgb(41 36 45 / 14%);
	--je-transition: 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

html {
	scroll-behavior: smooth;
}

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}

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

::selection {
	background: var(--wp--preset--color--clay-200);
	color: var(--wp--preset--color--ink);
}

/* Two-tone ring stays visible on both the cream canvas and dark CTA surfaces. */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
	box-shadow: 0 0 0 6px var(--wp--preset--color--ink);
	outline: 3px solid var(--wp--preset--color--white);
	outline-offset: 2px;
}

.skip-link.screen-reader-text:focus {
	background: var(--wp--preset--color--ink);
	border-radius: 0 0 var(--je-radius-sm) 0;
	clip: auto !important;
	clip-path: none;
	color: var(--wp--preset--color--cream);
	display: block;
	font-size: 0.95rem;
	font-weight: 700;
	height: auto;
	left: 0;
	padding: 0.8rem 1rem;
	top: 0;
	width: auto;
	z-index: 100000;
}

.site-header {
	/* A backdrop filter here would trap the fixed navigation overlay inside the header. */
	background: rgb(244 239 233 / 93%);
	border-bottom: 1px solid rgb(41 36 45 / 10%);
	color: var(--wp--preset--color--ink);
	position: sticky;
	top: 0;
	z-index: 100;
}

.admin-bar .site-header {
	top: 32px;
}

.site-header__inner {
	align-items: center;
	min-height: 4.25rem;
}

.site-header .wp-block-site-title {
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.25rem, 2vw, 1.55rem);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 0.95 !important;
	text-decoration: none;
}

.site-header .wp-block-site-title::after {
	color: var(--wp--preset--color--terracotta);
	content: "Gestalto psichoterapija";
	display: block;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.56rem;
	font-weight: 720;
	letter-spacing: 0.14em;
	line-height: 1.2;
	margin-top: 0.35rem;
	text-transform: uppercase;
}

.site-header .wp-block-navigation-item__content {
	color: var(--wp--preset--color--ink);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.35em;
}

.site-header .wp-block-navigation-item__content:hover,
.site-header .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--terracotta);
	text-decoration-line: underline;
}

.site-header__mobile-contact {
	display: none !important;
}

.site-header__cta .wp-block-button__link {
	background: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--white);
	min-height: 2.9rem;
	padding: 0.65rem 1.1rem;
}

.wp-block-navigation__responsive-container.is-menu-open {
	box-sizing: border-box;
	inset: 0;
	min-height: 100dvh;
	overflow-y: auto;
	position: fixed;
	background: var(--wp--preset--color--cream) !important;
	padding: max(1.5rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: center;
	gap: 1.25rem;
	padding-top: 4rem;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 500;
}

.hero-home {
	background: var(--wp--preset--color--cream);
	isolation: isolate;
	overflow: hidden;
	padding-block: var(--wp--preset--spacing--60) !important;
	position: relative;
}

.hero-home::before,
.hero-home::after {
	border: 1px solid rgb(73 54 74 / 22%);
	border-radius: 48% 52% 60% 40%;
	content: "";
	pointer-events: none;
	position: absolute;
	z-index: -1;
}

.hero-home::before {
	height: min(58vw, 48rem);
	right: min(-20vw, -10rem);
	top: -11rem;
	transform: rotate(13deg);
	width: min(58vw, 48rem);
}

.hero-home::after {
	background: var(--wp--preset--color--sage-100);
	bottom: -19rem;
	height: 36rem;
	right: 10vw;
	transform: rotate(-12deg);
	width: 36rem;
}

.hero-home__grid {
	align-items: center;
	display: grid;
	gap: clamp(2.5rem, 5vw, 5.5rem);
	grid-template-columns: minmax(0, 1.16fr) minmax(19rem, 0.84fr);
	min-height: clamp(31rem, 42vw, 36rem);
}

.hero-home__copy {
	position: relative;
	z-index: 2;
}

.hero-home__title {
	font-size: clamp(2.65rem, 4.4vw, 3.85rem);
	max-width: 14ch;
}

.hero-home__title em {
	color: var(--wp--preset--color--terracotta);
	font-weight: 500;
}

.hero-home__lead {
	max-width: 38rem;
}

.eyebrow {
	color: var(--wp--preset--color--forest);
	display: block;
	font-size: 0.78rem;
	font-weight: 750;
	letter-spacing: 0.13em;
	line-height: 1.45;
	max-width: 100%;
	padding-left: 1.1rem;
	position: relative;
	text-transform: uppercase;
}

.eyebrow::before {
	background: currentColor;
	border-radius: 50%;
	content: "";
	height: 0.45rem;
	left: 0;
	position: absolute;
	top: 0.35em;
	width: 0.45rem;
}

.hero-portrait {
	background: transparent;
	border: 0;
	box-shadow: none;
	min-height: clamp(29rem, 42vw, 36rem);
	overflow: visible;
	position: relative;
}

.hero-portrait::before {
	background: var(--wp--preset--color--clay-200);
	border: 0;
	border-radius: 50% 46% 42% 58%;
	content: "";
	height: 78%;
	position: absolute;
	right: -7%;
	top: 0;
	transform: rotate(7deg);
	width: 76%;
}

.hero-portrait::after {
	border: 1px solid rgb(166 82 66 / 55%);
	border-radius: 50%;
	bottom: 0;
	content: "";
	height: 75%;
	left: -8%;
	position: absolute;
	transform: rotate(-9deg);
	width: 84%;
}

.hero-portrait__frame {
	background: var(--wp--preset--color--sage-200);
	border: 1px solid rgb(41 36 45 / 12%);
	border-radius: var(--je-radius-lg);
	bottom: 3.4rem;
	box-shadow: var(--je-shadow-soft);
	left: 2.1rem;
	overflow: hidden;
	position: absolute;
	right: 1.4rem;
	top: 1.4rem;
	z-index: 1;
}

.hero-portrait__frame .wp-block-image {
	inset: 0;
	margin: 0;
	position: absolute;
}

.hero-portrait__frame .wp-block-image img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.hero-portrait__caption {
	background: var(--wp--preset--color--white);
	border-left: 0.3rem solid var(--wp--preset--color--terracotta);
	bottom: 0;
	box-shadow: 0 0.9rem 2.4rem rgb(41 36 45 / 13%);
	left: 0;
	margin: 0;
	max-width: min(24rem, 86%);
	padding: 0.95rem 1.15rem;
	position: absolute;
	z-index: 3;
}

.hero-portrait__note {
	background: transparent;
	border: 0;
	box-shadow: none;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.05rem;
	line-height: 1.35;
	margin: 0;
	padding: 0;
	position: static;
}

.trust-strip {
	border-bottom: 1px solid var(--wp--preset--color--line);
	border-top: 1px solid var(--wp--preset--color--line);
}

.trust-strip .wp-block-columns {
	counter-reset: practice-point;
	gap: 0;
}

.trust-strip .wp-block-column {
	counter-increment: practice-point;
	min-height: 4rem;
	padding: 0.15rem clamp(1rem, 3vw, 2rem) 0.15rem clamp(3.75rem, 6vw, 5rem);
	position: relative;
}

.trust-strip .wp-block-column::before {
	color: var(--wp--preset--color--terracotta);
	content: "0" counter(practice-point);
	font-family: var(--wp--preset--font-family--serif);
	font-size: 2.1rem;
	font-style: italic;
	left: clamp(0.75rem, 2vw, 1.5rem);
	line-height: 1;
	position: absolute;
	top: 0.15rem;
}

.trust-strip .wp-block-column p {
	margin-block: 0 0.25rem;
	text-align: left !important;
}

.trust-strip .wp-block-column:not(:last-child)::after {
	background: var(--wp--preset--color--line);
	content: "";
	height: 100%;
	position: absolute;
	right: 0;
	top: 0;
	width: 1px;
}

.section-heading {
	max-width: 18ch;
}

.section-intro {
	max-width: 42rem;
}

.editor-note {
	display: none;
}

.page-hero {
	border-bottom: 1px solid var(--wp--preset--color--line);
	overflow: clip;
	position: relative;
}

.page-hero::after {
	background: var(--wp--preset--color--sage-100);
	border-radius: 50%;
	content: "";
	height: clamp(10rem, 25vw, 22rem);
	opacity: 0.65;
	position: absolute;
	right: clamp(-8rem, -5vw, -2rem);
	top: 12%;
	width: clamp(10rem, 25vw, 22rem);
	z-index: -1;
}

.page-hero__title {
	max-width: 15ch;
}

.photo-section {
	overflow: clip;
}

.photo-section__header {
	margin-bottom: var(--wp--preset--spacing--50);
	max-width: 44rem;
}

.photo-section__grid {
	display: grid;
	gap: clamp(0.75rem, 2vw, 1.25rem);
	grid-template-columns: minmax(0, 1.45fr) minmax(14rem, 0.7fr);
	grid-template-rows: repeat(2, minmax(11rem, 1fr));
}

.photo-section__item {
	background: var(--wp--preset--color--sage-100);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--je-radius-md);
	margin: 0 !important;
	overflow: hidden;
	position: relative;
}

.photo-section__item--feature {
	border-radius: var(--je-radius-md);
	grid-row: 1 / 3;
	min-height: clamp(27rem, 42vw, 38rem);
}

.photo-section__item--detail:last-child {
	border-radius: var(--je-radius-md);
}

.photo-section__item img {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform 450ms cubic-bezier(0.2, 0.8, 0.2, 1);
	width: 100%;
}

.photo-section__item:hover img {
	transform: scale(1.015);
}

.photo-section__item .wp-element-caption {
	background: rgb(41 36 45 / 88%);
	border-radius: 0.3rem;
	bottom: 0.75rem;
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--small);
	left: 0.75rem;
	line-height: 1.35;
	margin: 0;
	padding: 0.55rem 0.7rem;
	position: absolute;
	right: 0.75rem;
}

.event-photo-section {
	border-top: 1px solid var(--wp--preset--color--line);
	margin-block: var(--wp--preset--spacing--70);
	padding-top: var(--wp--preset--spacing--50);
}

/* An unpublished photo slot remains usable in the editor without leaking an empty heading publicly. */
.event-photo-section:not(:has(img)) {
	display: none;
}

.event-photo-gallery.wp-block-gallery.has-nested-images {
	display: grid;
	gap: clamp(0.75rem, 2vw, 1.25rem);
	grid-template-columns: minmax(0, 1.35fr) minmax(13rem, 0.65fr);
	grid-template-rows: repeat(2, minmax(10rem, 1fr));
}

.event-photo-gallery.wp-block-gallery.has-nested-images > figure.wp-block-image:not(#individual-image) {
	border-radius: var(--je-radius-md);
	height: 100%;
	margin: 0;
	min-height: 12rem;
	overflow: hidden;
	width: 100%;
}

.event-photo-gallery.wp-block-gallery.has-nested-images > figure.wp-block-image:first-child:not(#individual-image) {
	border-radius: var(--je-radius-md);
	grid-row: 1 / 3;
	min-height: clamp(25rem, 38vw, 34rem);
}

.event-photo-gallery.wp-block-gallery.has-nested-images > figure.wp-block-image:last-child:not(#individual-image) {
	border-radius: var(--je-radius-md);
}

.event-photo-gallery :where(.wp-block-image, .wp-lightbox-container),
.event-photo-gallery .wp-block-image img {
	height: 100%;
}

.event-photo-gallery .wp-block-image img {
	display: block;
	object-fit: cover;
	width: 100%;
}

.events-archive {
	background: var(--wp--preset--color--cream);
}

.page-hero--events::after {
	background: var(--wp--preset--color--sage-200);
	border-radius: 54% 46% 38% 62%;
	transform: rotate(-9deg);
}

.events-about-section .event-boundary {
	border: 1px solid var(--wp--preset--color--line);
}

.events-section--catalog {
	border-block: 1px solid var(--wp--preset--color--line);
}

.events-section__group--upcoming .justes-upcoming-events,
.events-section__group--past .past-events-query {
	height: auto !important;
	margin-top: var(--wp--preset--spacing--50);
	min-height: 0;
}

.events-section__group--upcoming .justes-upcoming-events__list,
.events-section__group--past .event-grid {
	align-content: start;
	height: auto !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	min-height: 0;
}

.events-section__group--upcoming .justes-upcoming-events__empty,
.events-section__group--past .wp-block-query-no-results,
.events-section__group--past .past-events-query > p {
	background: var(--wp--preset--color--sage-100);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--je-radius-md);
	margin-bottom: 0;
	padding: clamp(1.25rem, 3vw, 1.75rem);
}

.events-section__group--past .event-card {
	background: var(--wp--preset--color--cream);
}

.events-section__group--upcoming .justes-upcoming-events__item,
.events-section__group--past .event-grid > li {
	display: flex;
}

.events-section__group--upcoming .justes-upcoming-events__card,
.events-section__group--past .event-card {
	flex: 1;
	height: auto;
	width: 100%;
}

.events-section__group--past .wp-block-query-no-results,
.events-section__group--past .past-events-query > p {
	background: var(--wp--preset--color--white);
}

.events-archive > .photo-section--events {
	margin-inline: auto !important;
	margin-top: 0 !important;
	max-width: var(--wp--style--global--wide-size, 76rem);
	width: calc(100% - clamp(2rem, 8vw, 5rem));
}

.info-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--je-radius-md);
	padding: clamp(1.25rem, 4vw, 2rem);
}

.definition-panel {
	border-left: 3px solid var(--wp--preset--color--terracotta);
	padding-left: clamp(1.25rem, 4vw, 2.5rem);
}

.contact-panel {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--je-radius-lg);
	box-shadow: var(--je-shadow-soft);
	overflow: hidden;
}

.contact-method {
	border-top: 1px solid var(--wp--preset--color--line);
	padding-top: 1rem;
}

.topics-section {
	background: var(--wp--preset--color--cream);
}

.topics-section > .alignwide {
	align-items: start;
	display: grid;
	gap: 0 clamp(2.5rem, 6vw, 6rem);
	grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 1.28fr);
}

.topics-section > .alignwide > :not(.topic-grid, .editor-note) {
	grid-column: 1;
}

.topics-section .topic-grid {
	grid-column: 2;
	grid-row: 1 / span 4;
	margin-block: 0;
}

.service-card,
.topic-card,
.article-card,
.event-card {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--je-radius-md);
	transition: border-color var(--je-transition), box-shadow var(--je-transition), transform var(--je-transition);
}

.service-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 14rem;
	overflow: hidden;
	position: relative;
}

.service-card::before {
	border: 1px solid currentColor;
	border-radius: 50%;
	content: "";
	height: 10rem;
	position: absolute;
	right: -5rem;
	top: -5rem;
	width: 10rem;
}

.service-card > * {
	position: relative;
	z-index: 1;
}

.service-card > .wp-block-group:last-child {
	margin-top: auto;
}

.services-section .wp-block-columns {
	display: grid;
	gap: 1rem;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	grid-template-rows: repeat(2, minmax(0, 1fr));
}

.services-section .wp-block-columns > .wp-block-column {
	margin: 0;
	min-width: 0;
}

.services-section .wp-block-columns > .wp-block-column:first-child {
	grid-row: 1 / span 2;
}

.services-section .wp-block-columns > .wp-block-column:first-child .service-card {
	background: var(--wp--preset--color--forest) !important;
	border-color: var(--wp--preset--color--forest);
	border-radius: var(--je-radius-md);
	color: var(--wp--preset--color--white);
	min-height: 100%;
}

.services-section .wp-block-columns > .wp-block-column:first-child .service-card :where(h3, p, a) {
	color: var(--wp--preset--color--white) !important;
}

.services-section .wp-block-columns > .wp-block-column:first-child .service-card .has-muted-color {
	color: var(--wp--preset--color--sage-100) !important;
}

.service-card--leela {
	background: var(--wp--preset--color--sage-100) !important;
	border-radius: var(--je-radius-md);
}

.service-card--events {
	background: var(--wp--preset--color--sage-200) !important;
	border-radius: var(--je-radius-md);
}

.service-card:hover,
.service-card:focus-within,
.article-card:hover,
.article-card:focus-within,
.event-card:hover,
.event-card:focus-within {
	border-color: rgb(73 54 74 / 40%);
	box-shadow: var(--je-shadow-lift);
	transform: translateY(-0.2rem);
}

.text-link a,
a.text-link {
	font-weight: 720;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.35em;
}

.topic-grid {
	counter-reset: topic;
	display: grid;
	gap: 0 clamp(1.5rem, 4vw, 3rem);
	grid-template-columns: repeat(2, minmax(0, 1fr));
	list-style: none;
	padding: 0;
}

.topic-card {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 0;
	border-top: 1px solid var(--wp--preset--color--line);
	counter-increment: topic;
	display: flex;
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.15rem, 2vw, 1.45rem);
	gap: 1rem;
	min-height: 5rem;
	padding: 1rem 0;
}

.topic-card::before {
	color: var(--wp--preset--color--terracotta);
	content: "0" counter(topic);
	flex: 0 0 2rem;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.72rem;
	font-weight: 750;
	letter-spacing: 0.08em;
}

.about-panel {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--je-radius-md);
	box-shadow: var(--je-shadow-soft);
	overflow: hidden;
}

.about-visual {
	background: var(--wp--preset--color--forest);
	min-height: 29rem;
	overflow: visible;
	position: relative;
}

.about-visual::before {
	color: var(--wp--preset--color--clay-200);
	content: "J.";
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(10rem, 22vw, 18rem);
	font-style: italic;
	font-weight: 500;
	left: 11%;
	line-height: 0.75;
	opacity: 0.8;
	position: absolute;
	top: 18%;
}

.about-visual::after {
	border: 1px solid rgb(234 219 216 / 55%);
	border-radius: 52% 48% 38% 62%;
	content: "";
	inset: 12% 14%;
	position: absolute;
	transform: rotate(-12deg);
}

.about-visual__quote {
	background: var(--wp--preset--color--white);
	border-left: 0.3rem solid var(--wp--preset--color--terracotta) !important;
	border-radius: 0;
	bottom: 1.5rem;
	left: 1.5rem;
	max-width: 21rem;
	padding: 1.25rem;
	position: absolute;
	right: -2.75rem;
	z-index: 3;
}

.event-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-grid {
	display: block;
}

.article-grid .wp-block-post-template {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-card,
.article-card {
	background: var(--wp--preset--color--white);
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
}



.event-card__content,
.article-card__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: clamp(1.25rem, 3vw, 1.75rem);
}

.event-card__meta,
.post-meta {
	color: var(--wp--preset--color--forest);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 720;
	letter-spacing: 0.02em;
}

.event-card__link,
.article-card .wp-block-post-excerpt__more-link {
	font-weight: 720;
	margin-top: auto;
	padding-top: 1rem;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.35em;
}

.event-empty {
	background: var(--wp--preset--color--sage-100);
	border: 1px solid var(--wp--preset--color--sage-200);
	border-radius: var(--je-radius-md);
	padding: clamp(1.5rem, 4vw, 2.5rem);
}

.justes-upcoming-events__card {
	background: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--line);
	border-radius: var(--je-radius-md);
	display: flex;
	flex-direction: column;
	padding: clamp(1.25rem, 3vw, 1.75rem);
	transition: border-color var(--je-transition), box-shadow var(--je-transition), transform var(--je-transition);
}

.events-section .justes-upcoming-events__card {
	border-color: var(--wp--preset--color--line);
	border-radius: var(--je-radius-md);
}

.events-section .justes-upcoming-events__list > li:nth-child(3n + 1) .justes-upcoming-events__card {
	background: var(--wp--preset--color--sage-100);
	border-radius: var(--je-radius-md);
}

.events-section .justes-upcoming-events__list > li:nth-child(3n + 3) .justes-upcoming-events__card {
	background: var(--wp--preset--color--sage-200);
	border-radius: var(--je-radius-md);
}

.justes-upcoming-events__card:hover,
.justes-upcoming-events__card:focus-within {
	border-color: var(--wp--preset--color--forest);
	box-shadow: 0 1rem 2.5rem rgb(41 36 45 / 11%);
	transform: translateY(-2px);
}

.justes-upcoming-events__date {
	color: var(--wp--preset--color--forest);
	font-weight: 720;
	letter-spacing: 0.02em;
}

.justes-upcoming-events__title {
	font-family: var(--wp--preset--font-family--serif);
}

.justes-upcoming-events__location,
.justes-upcoming-events__excerpt {
	color: var(--wp--preset--color--muted);
}

.justes-upcoming-events__action {
	font-weight: 720;
	margin-top: auto;
	padding-top: 1rem;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.35em;
}

.event-details {
	background: var(--wp--preset--color--sage-100);
	border: 1px solid var(--wp--preset--color--sage-200);
	border-radius: var(--je-radius-md);
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	padding: clamp(1.25rem, 4vw, 2rem);
}

.event-details__item {
	margin: 0;
}

.event-details__label {
	color: var(--wp--preset--color--muted);
	display: block;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 720;
	margin-bottom: 0.2rem;
}

.event-details__actions {
	grid-column: 1 / -1;
	margin-top: 0.5rem;
}

.cta-panel {
	border-radius: var(--je-radius-md);
	isolation: isolate;
	overflow: hidden;
	position: relative;
}

.cta-panel::before {
	border: 1px solid rgb(215 170 161 / 44%);
	border-radius: 50%;
	bottom: -13rem;
	content: "";
	height: 24rem;
	left: -8rem;
	position: absolute;
	width: 24rem;
	z-index: -1;
}

.cta-panel::after {
	border: 1px solid rgb(255 255 255 / 22%);
	border-radius: 50%;
	content: "";
	height: 28rem;
	position: absolute;
	right: -12rem;
	top: -14rem;
	width: 28rem;
	z-index: -1;
}

.site-footer {
	background: var(--wp--preset--color--forest);
	border-top: 0;
	color: var(--wp--preset--color--white);
}

.site-footer :where(.wp-block-site-title, h2, h3, a) {
	color: var(--wp--preset--color--white) !important;
}

.site-footer .wp-block-site-title {
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 600;
	letter-spacing: -0.02em;
}

.site-footer .has-muted-color {
	color: var(--wp--preset--color--sage-100) !important;
}

.site-footer a {
	text-underline-offset: 0.25em;
}

.site-footer__legal {
	border-top: 1px solid rgb(255 252 249 / 22%);
}

.faq-section .wp-block-details {
	border-top: 1px solid var(--wp--preset--color--line);
	margin-block: 0;
}

.faq-section .wp-block-details:last-child {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.faq-section .wp-block-details summary {
	cursor: pointer;
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.1rem, 2vw, 1.35rem);
	font-weight: 600;
	padding: 1.2rem 2.25rem 1.2rem 0;
}

.faq-section .wp-block-details[open] summary {
	color: var(--wp--preset--color--terracotta);
}

.faq-section .wp-block-details > :not(summary) {
	color: var(--wp--preset--color--muted);
	max-width: 42rem;
}

.article-shell .wp-block-post-content > :where(p, ul, ol, blockquote) {
	max-width: 46rem;
}

.article-shell .wp-block-post-content > h2 {
	margin-top: var(--wp--preset--spacing--70);
}

.article-shell .wp-block-post-content > h3 {
	margin-top: var(--wp--preset--spacing--60);
}

.article-shell .wp-block-post-content a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.article-shell .wp-block-post-featured-image img,
.archive-shell .wp-block-post-featured-image img {
	border-radius: var(--je-radius-md);
}

.wp-block-quote.is-style-gentle-quote {
	border: 0;
	color: var(--wp--preset--color--forest);
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--large);
	font-style: normal;
	margin-inline: 0;
	padding: 1.5rem 0 1.5rem 2rem;
	position: relative;
}

.wp-block-quote.is-style-gentle-quote::before {
	background: var(--wp--preset--color--terracotta);
	border-radius: 99px;
	content: "";
	inset: 1.35rem auto 1.35rem 0;
	position: absolute;
	width: 3px;
}

.about-visual__quote::before {
	display: none;
}

.wp-block-group.is-style-surface-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--je-radius-md);
	padding: var(--wp--preset--spacing--50);
}

.wp-block-separator {
	border-bottom: 0;
}

.wp-block-button__link,
.wp-element-button {
	align-items: center;
	display: inline-flex;
	justify-content: center;
	min-height: 3.15rem;
	transition: background-color var(--je-transition), border-color var(--je-transition), color var(--je-transition), transform var(--je-transition);
}

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

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--sage-100);
}

.wp-block-query-pagination {
	border-top: 1px solid var(--wp--preset--color--line);
	padding-top: var(--wp--preset--spacing--50);
}

.wp-block-query-pagination-numbers .page-numbers {
	align-items: center;
	border-radius: 50%;
	display: inline-flex;
	height: 2.75rem;
	justify-content: center;
	min-width: 2.75rem;
	text-decoration: none;
}

.wp-block-query-pagination-numbers .page-numbers.current {
	background: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--white);
}

.not-found-code {
	color: var(--wp--preset--color--sage-200);
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(6rem, 24vw, 15rem);
	font-weight: 600;
	letter-spacing: -0.08em;
	line-height: 0.7;
	margin: 0;
}

@media (max-width: 900px) {
	/* Match the header's compact layout instead of WordPress's 600px default. */
	.site-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none;
	}

	.site-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.site-header .wp-block-navigation__responsive-container-open,
	.site-header .wp-block-navigation__responsive-container-close {
		align-items: center;
		justify-content: center;
		min-height: 2.75rem;
		min-width: 2.75rem;
	}

	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		align-items: center;
		flex-direction: column;
		gap: 1.25rem;
		text-align: center;
	}

	.hero-home__grid {
		grid-template-columns: 1fr;
	}

	.hero-portrait {
		min-height: 31rem;
	}

	.topics-section > .alignwide {
		display: block;
	}

	.topics-section .topic-grid {
		margin-top: var(--wp--preset--spacing--50);
	}

	.services-section .wp-block-columns {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
	}

	.services-section .wp-block-columns > .wp-block-column:first-child {
		grid-row: auto;
	}

	.services-section .wp-block-columns > .wp-block-column:first-child .service-card {
		min-height: 20rem;
	}

	.topic-grid,
	.event-grid,
	.article-grid .wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.site-header__cta {
		display: none !important;
	}

	.site-header__mobile-contact {
		display: flex !important;
	}

	.photo-section__grid,
	.event-photo-gallery.wp-block-gallery.has-nested-images {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: auto;
	}

	.photo-section__item--feature,
	.event-photo-gallery.wp-block-gallery.has-nested-images > figure.wp-block-image:first-child:not(#individual-image) {
		aspect-ratio: 16 / 9;
		grid-column: 1 / -1;
		grid-row: auto;
		min-height: 0;
	}

	.photo-section__item--detail,
	.event-photo-gallery.wp-block-gallery.has-nested-images > figure.wp-block-image:not(:first-child, #individual-image) {
		aspect-ratio: 4 / 3;
		min-height: 0;
	}

	.events-section__group--upcoming .justes-upcoming-events__list,
	.events-section__group--past .event-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}

	.trust-strip .wp-block-column::after {
		display: none;
	}

	.trust-strip .wp-block-columns {
		gap: 0.9rem;
	}

	.trust-strip .wp-block-column {
		border-bottom: 1px solid var(--wp--preset--color--line);
		padding-bottom: 0.9rem;
	}

	.trust-strip .wp-block-column:last-child {
		border-bottom: 0;
	}

	.about-visual__quote {
		right: 1.5rem;
	}
}

@media (max-width: 640px) {
	.topic-grid,
	.event-grid,
	.article-grid .wp-block-post-template,
	.event-details,
	.info-grid {
		grid-template-columns: 1fr;
	}

	.hero-home::before {
		height: 27rem;
		right: -16rem;
		width: 27rem;
	}

	.hero-home__title {
		max-width: none;
	}

	.hero-portrait {
		min-height: 0;
		padding-top: 1rem;
	}

	.hero-portrait__frame {
		aspect-ratio: 4 / 5;
		inset: auto;
		margin-left: 1rem;
		position: relative;
		width: calc(100% - 1rem);
	}

	.hero-portrait__caption {
		bottom: auto;
		margin-top: -2rem;
		max-width: calc(100% - 1rem);
		position: relative;
	}

	.hero-portrait::before {
		height: 68%;
		right: -10%;
		width: 74%;
	}

	.hero-portrait::after {
		bottom: 2rem;
		height: 64%;
	}

	.about-visual {
		min-height: 24rem;
	}

	.about-visual__quote {
		left: 1rem;
		right: 1rem;
	}

	.event-details__actions {
		grid-column: auto;
	}

	.photo-section__grid,
	.event-photo-gallery.wp-block-gallery.has-nested-images {
		grid-template-columns: 1fr;
	}

	.photo-section__item--feature,
	.photo-section__item--detail,
	.event-photo-gallery.wp-block-gallery.has-nested-images > figure.wp-block-image:not(#individual-image) {
		aspect-ratio: 4 / 3;
		grid-column: auto;
		min-height: 0;
	}

	.events-section__group--upcoming .justes-upcoming-events__list,
	.events-section__group--past .event-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.site-header .wp-block-site-title::after {
		font-size: 0.5rem;
		letter-spacing: 0.1em;
	}

	.eyebrow {
		overflow-wrap: anywhere;
	}

	.hero-home__actions {
		display: grid;
		width: 100%;
	}

	.hero-home__actions > .wp-block-button,
	.hero-home__actions .wp-block-button__link {
		width: 100%;
	}

}

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

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

@media print {
	.site-header,
	.site-footer,
	.wp-block-buttons,
	.wp-block-navigation {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
	}

	a {
		color: inherit;
		text-decoration: underline;
	}
}
