/**
 * Ar-Robithoh Gurah — Calm Editorial School Portal.
 */

:root {
	--color-primary: #0F4D3F;
	--color-secondary: #2F6B4F;
	--color-secondary-green: #2F6B4F;
	--color-soft-green: #EAF3ED;
	--color-warm-white: #FBFAF6;
	--color-main-text: #17211C;
	--color-muted-text: #626D67;
	--color-warm-beige: #F4EFE4;
	--color-surface-subtle: #F4EFE4;
	--color-gold: #C9A85E;
	--color-accent: #C9A85E;
	--color-white: #FFFFFF;
	--color-rule: #DDD9CF;
	--radius-sm: 8px;
	--radius-md: 10px;
	--radius-lg: 12px;
	--radius-xl: 20px;
	--space-2xs: 0.25rem;
	--space-xs: 0.5rem;
	--space-sm: 0.75rem;
	--space-md: 1rem;
	--space-lg: 1.5rem;
	--space-xl: 2rem;
	--space-2xl: 3rem;
	--space-3xl: 4.5rem;
	--space-4xl: 6rem;
	--content-width: 740px;
	--article-reading-width: 740px;
	--article-media-width: 1080px;
	--wide-width: 1200px;
	--site-shell-width: 1200px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	overflow-wrap: break-word;
}

main :where(p, li) {
	line-height: 1.7;
}

main :where(h1, h2, h3, h4) {
	text-wrap: balance;
}

main :where(a:not(.wp-block-button__link)):hover {
	text-decoration-thickness: 2px;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

.wp-site-blocks :where(.alignwide, .alignfull) {
	max-width: 100%;
}

.wp-block-image img,
.wp-block-gallery img,
.wp-block-post-featured-image img {
	max-width: 100%;
	height: auto;
}

.wp-block-image figcaption,
.wp-block-gallery figcaption,
.wp-block-post-featured-image figcaption {
	margin-top: var(--space-xs);
	color: var(--color-muted-text);
	font-size: 0.875rem;
	line-height: 1.5;
}

.wp-block-quote {
	margin: var(--space-xl) 0;
	padding-left: var(--space-lg);
	border-left: 2px solid var(--color-primary);
}

.wp-block-list li + li {
	margin-top: var(--space-xs);
}

figure.wp-block-table {
	max-width: 100%;
	overflow-x: auto;
}

.wp-block-table table {
	min-width: 28rem;
	border-collapse: collapse;
}

.wp-block-table :where(th, td) {
	padding: var(--space-sm) var(--space-md);
	border: 1px solid var(--color-rule);
}

.wp-block-embed,
.wp-block-embed iframe {
	max-width: 100%;
}

.wp-block-gallery {
	gap: var(--space-md);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--color-primary);
	outline-offset: 3px;
}

.wp-site-blocks {
	overflow-x: clip;
}

.wp-site-blocks > :where(header, main, footer),
.school-home-main > * {
	margin-block-start: 0;
}

.school-section-title,
.school-section-heading h2,
.school-about-section h2,
.school-contact-section h2 {
	margin-top: 0;
}

.school-section-intro {
	max-width: 42rem;
	margin-top: var(--space-sm);
	margin-bottom: var(--space-2xl);
	font-size: 1.125rem;
	line-height: 1.6;
}

.school-text-link {
	margin-bottom: 0;
}

.school-text-link a,
.wp-block-post-navigation-link a,
.wp-block-query-pagination a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 600;
	text-underline-offset: 0.2em;
}

.school-section-link {
	margin-top: var(--space-xl);
}

/* Header and navigation */
.site-header {
	border-bottom: 1px solid var(--color-rule) !important;
}

.site-header > .wp-block-group {
	max-width: var(--site-shell-width);
}

.site-header__identity {
	min-width: 0;
	flex: 0 1 auto;
}

.site-header__identity:has(.wp-block-site-logo img) {
	flex: 0 0 auto;
}

.site-header .wp-block-site-logo {
	flex: 0 1 auto;
	max-width: 100%;
}

.site-header .wp-block-site-logo img {
	width: 312px;
	height: auto;
	max-height: 104px;
	object-fit: contain;
}

.site-header__identity .wp-block-site-logo:has(img) + .wp-block-site-title,
.site-footer__identity .wp-block-site-logo:has(img) + .wp-block-site-title {
	display: none;
}

.site-header .wp-block-site-title {
	min-width: 0;
	font-size: clamp(0.95rem, 2vw, 1.2rem) !important;
	font-weight: 650;
	line-height: 1.25;
}

.site-header .wp-block-site-title a {
	color: var(--color-primary);
}

.site-header .wp-block-navigation {
	min-width: 0;
	flex: 1 1 auto;
}

.site-header__nav-wrapper {
	min-width: 0;
	flex: 1 1 auto;
	justify-content: flex-end;
}

.site-header__search-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	margin-left: var(--space-xs);
	color: var(--color-main-text);
	text-decoration: none;
	border-radius: var(--radius-sm);
	transition: color 0.15s ease, background-color 0.15s ease;
}

.site-header__search-trigger:hover,
.site-header__search-trigger:focus-visible {
	color: var(--color-primary);
}

.wp-block-site-title a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: inherit;
	text-decoration: none;
}

.wp-block-navigation .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	position: relative;
	min-height: 44px;
	padding: var(--space-xs) var(--space-sm);
	text-decoration: none;
	border-radius: var(--radius-sm);
	transition: color 0.15s ease, background-color 0.15s ease;
}

.wp-block-navigation .wp-block-navigation-item__content:hover {
	color: var(--color-primary);
	text-decoration: none;
}

.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.wp-block-navigation .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--color-primary);
	font-weight: 700;
	text-decoration: none;
}

.site-header .wp-block-navigation:not(.is-menu-open) .current-menu-item > .wp-block-navigation-item__content::after,
.site-header .wp-block-navigation:not(.is-menu-open) .wp-block-navigation-item__content[aria-current="page"]::after {
	content: "";
	position: absolute;
	left: var(--space-sm);
	right: var(--space-sm);
	bottom: 2px;
	height: 2px;
	background-color: var(--color-primary);
	border-radius: 1px;
}

.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: var(--space-xs);
	color: var(--color-main-text);
	background: transparent;
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
}

.wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--space-xl) var(--space-md);
	overflow-x: hidden;
	background: var(--color-warm-white);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	width: 100%;
	padding: var(--space-sm) var(--space-md);
	font-size: 1rem;
	white-space: normal;
	overflow-wrap: anywhere;
}

@media (max-width: 600px) {
	.site-header__identity {
		max-width: calc(100% - 3.5rem);
	}

	.site-header .wp-block-site-logo img {
		width: 252px;
		max-height: 84px;
	}
}

/* Buttons */
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: var(--space-xs) var(--space-lg);
	font-weight: 600;
	text-decoration: none;
	border-radius: var(--radius-md);
}

/* Current information */
.school-current-info {
	padding: 6px max(var(--space-md), calc((100% - var(--wide-width)) / 2)) !important;
	border-bottom: 1px solid var(--color-rule);
}

.school-current-info > * {
	max-width: var(--wide-width);
}

.school-current-info p {
	margin-block: var(--space-2xs);
}

.school-current-info__inner {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: var(--space-md) !important;
}

.school-current-info__badge-group {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	min-width: 0;
	flex: 1 1 auto;
	gap: var(--space-sm) !important;
}

.school-current-info__copy {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 0.875rem;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.school-current-info__label {
	display: inline-flex !important;
	align-items: center !important;
	flex: 0 0 auto;
	padding: 4px 12px !important;
	border-radius: 999px;
	background: var(--color-primary);
	color: var(--color-warm-white) !important;
	font-size: 0.8125rem !important;
	font-weight: 600;
	line-height: 1.4;
}

.school-current-info__label::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 6px;
	flex-shrink: 0;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 4.5v15c0 .83-.67 1.5-1.5 1.5H19l-4.5-3.5H9c-1.1 0-2-.9-2-2v-7c0-1.1.9-2 2-2h5.5L19 3h.5c.83 0 1.5.67 1.5 1.5zm-3 2.15L14.2 9.5H9v5h5.2l3.8 2.85V6.65zM4 9h1v6H4c-.55 0-1-.45-1-1v-4c0-.55.45-1 1-1z'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 4.5v15c0 .83-.67 1.5-1.5 1.5H19l-4.5-3.5H9c-1.1 0-2-.9-2-2v-7c0-1.1.9-2 2-2h5.5L19 3h.5c.83 0 1.5.67 1.5 1.5zm-3 2.15L14.2 9.5H9v5h5.2l3.8 2.85V6.65zM4 9h1v6H4c-.55 0-1-.45-1-1v-4c0-.55.45-1 1-1z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.school-current-info__icon {
	display: inline-flex;
	align-items: center;
	margin-right: 6px;
	flex-shrink: 0;
}

.school-current-info__icon svg {
	display: block;
}

.school-current-info__link {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: 0 0 auto;
}

.school-current-info__link a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	font-size: 0 !important;
	color: var(--color-main-text);
	text-decoration: none;
	transition: color 0.15s ease, transform 0.15s ease;
}

.school-current-info__link a::after {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") no-repeat center / contain;
}

.school-current-info__link a:hover,
.school-current-info__link a:focus-visible {
	color: var(--color-primary);
	transform: translateX(2px);
}

.school-current-info-slot:empty {
	display: none;
}

.school-current-info__label,
.school-current-info__inner p {
	margin-top: 0;
	margin-bottom: 0;
}

/* Homepage news */
.school-latest-news-section .school-section-heading {
	max-width: none !important;
	margin-inline: 0 !important;
	margin-bottom: var(--space-lg);
	align-items: flex-start !important;
}

.school-latest-news-section .school-section-heading > .wp-block-group {
	flex: 1 1 24rem;
	min-width: 0;
}

.school-latest-news-section .school-section-heading :where(h1, p) {
	margin-inline: 0 !important;
}

.school-latest-news-section .school-section-intro {
	margin-block: var(--space-2xs) 0;
}

.school-latest-news-section {
	padding-top: var(--space-xl) !important;
}

.school-latest-news-section .school-section-link,
.school-gallery-section .school-section-link,
.school-about-section .school-section-link {
	margin-top: var(--space-xs);
	font-size: 0.875rem;
}

.school-latest-news-section .school-section-link a,
.school-gallery-section .school-section-link a,
.school-about-section .school-section-link a,
.school-about-section .school-text-link a {
	display: inline-flex;
	align-items: center;
	color: var(--color-primary);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1.5px solid var(--color-accent);
	padding-bottom: 2px;
	min-height: 44px;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.school-latest-news-section .school-section-link a:hover,
.school-latest-news-section .school-section-link a:focus-visible,
.school-gallery-section .school-section-link a:hover,
.school-gallery-section .school-section-link a:focus-visible,
.school-about-section .school-section-link a:hover,
.school-about-section .school-section-link a:focus-visible,
.school-about-section .school-text-link a:hover,
.school-about-section .school-text-link a:focus-visible {
	color: var(--color-secondary);
	border-bottom-color: var(--color-secondary);
}

.school-section-link__arrow {
	display: inline-block;
	margin-left: 6px;
	transition: transform 0.15s ease;
}

.school-latest-news-section .school-section-link a:hover .school-section-link__arrow,
.school-latest-news-section .school-section-link a:focus-visible .school-section-link__arrow,
.school-gallery-section .school-section-link a:hover .school-section-link__arrow,
.school-gallery-section .school-section-link a:focus-visible .school-section-link__arrow,
.school-about-section .school-section-link a:hover .school-section-link__arrow,
.school-about-section .school-section-link a:focus-visible .school-section-link__arrow,
.school-about-section .school-text-link a:hover .school-section-link__arrow,
.school-about-section .school-text-link a:focus-visible .school-section-link__arrow {
	transform: translateX(3px);
}

.school-news-editorial-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.school-news-editorial-list > li {
	min-width: 0;
	margin-block: 0 !important;
	padding: var(--space-lg) 0;
	border-top: 1px solid var(--color-rule);
}

.school-news-editorial-list > li:first-child {
	padding-top: 0;
	border-top: 0;
}

.school-news-editorial-list > li:not(:first-child) .school-news-story:has(.school-news-story__image) {
	display: grid;
	grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
	gap: var(--space-md);
	align-items: start;
}

.school-news-editorial-list > li:not(:first-child) .school-news-story > * {
	margin: 0 !important;
	max-width: none !important;
}

.school-news-editorial-list > li:not(:first-child) .school-news-story__image img {
	aspect-ratio: 4 / 5 !important;
	height: auto !important;
}

.school-news-editorial-list > li:not(:first-child) .school-news-story__title {
	font-size: 1.25rem !important;
	line-height: 1.2 !important;
}

.school-news-editorial-list > li:not(:first-child) .school-news-story__excerpt {
	font-size: 0.9375rem;
	line-height: 1.5;
}

.school-news-story,
.school-news-story__content {
	min-width: 0;
}

.school-news-story__image {
	margin: 0 0 var(--space-lg);
}

.school-news-story__image img {
	width: 100%;
	border-radius: var(--radius-lg);
	object-fit: cover;
}

.school-latest-news-section .school-section-title {
	color: var(--color-primary);
}

.school-news-editorial-list > li:first-child .school-news-story__title {
	font-size: clamp(1.75rem, 2.4vw, 2.125rem) !important;
	line-height: 1.2 !important;
}

.school-news-story__title a:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

.school-news-story__title,
.school-news-story__title a {
	overflow-wrap: anywhere;
}

.school-news-story__title a {
	color: inherit;
	text-decoration: none;
}

.school-latest-news-section .taxonomy-category {
	display: none;
}

.school-news-story .wp-block-post-excerpt__more-text {
	display: flex;
	justify-content: flex-end;
	margin-top: var(--space-xs);
}

.school-news-story .wp-block-post-excerpt__more-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	border-radius: 50%;
	background-color: var(--color-surface-subtle);
	color: var(--color-main-text);
	text-decoration: none;
	position: relative;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.school-news-story .wp-block-post-excerpt__more-link .school-news-story__arrow {
	display: block;
	width: 16px;
	height: 16px;
	margin: 0;
	flex-shrink: 0;
	color: currentColor;
	pointer-events: none;
}

.school-news-story .wp-block-post-excerpt__more-link:hover,
.school-news-story .wp-block-post-excerpt__more-link:focus-visible {
	background-color: var(--color-soft-green);
	transform: translateX(2px);
}

.school-news-story__excerpt p {
	margin-block: 0;
}

.school-news-meta {
	color: var(--color-primary);
}

.school-news-meta .wp-block-post-date {
	color: var(--color-muted-text);
}

.school-news-meta a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: inherit;
}

.school-empty-state {
	padding: var(--space-xl) 0;
	border-top: 1px solid var(--color-rule);
	border-bottom: 1px solid var(--color-rule);
}

/* Homepage gallery */
.school-gallery-section {
	padding-top: 0 !important;
	padding-bottom: var(--space-xl) !important;
}

.school-gallery-section .school-section-heading {
	padding-top: var(--space-xl);
	border-top: 1px solid var(--color-rule);
}

.school-gallery-section .school-section-heading > .wp-block-group {
	flex: 1 1 32rem;
	min-width: 0;
}

.school-gallery-section .school-section-heading > .wp-block-group > * {
	margin-inline: 0 !important;
}

.school-section-heading {
	gap: var(--space-lg);
	margin-bottom: var(--space-xl);
}

.school-gallery-preview {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-sm);
}

.school-gallery-preview--1 {
	grid-template-columns: minmax(0, 1fr);
}

.school-gallery-preview--3 .school-gallery-preview__item:last-child {
	grid-column: 1 / -1;
}

.school-gallery-preview__item {
	margin: 0;
	min-width: 0;
	min-height: 0;
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-lg);
}

.school-gallery-preview__item img {
	width: 100%;
	height: 100%;
	min-height: 0;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	border-radius: var(--radius-lg);
}

.school-gallery-preview__label {
	position: absolute;
	bottom: 12px;
	left: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	background: rgba(15, 33, 25, 0.72);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 500;
	border-radius: 9999px;
	line-height: 1.3;
	border: 1px solid rgba(255, 255, 255, 0.15);
	pointer-events: none;
	max-width: calc(100% - 24px);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.school-gallery-preview__label svg {
	flex-shrink: 0;
	opacity: 0.85;
}

.school-gallery-preview__label span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.school-gallery-preview--1 img {
	aspect-ratio: 16 / 9;
	max-height: 30rem;
}

.school-gallery-preview--3 .school-gallery-preview__item:last-child img {
	aspect-ratio: 3 / 1;
}

.school-gallery-preview--4 .school-gallery-preview__item:nth-child(n + 3) img {
	aspect-ratio: 7 / 4;
}

/* Homepage summaries */
.school-about-section {
	padding-top: 0 !important;
	padding-bottom: var(--space-2xl) !important;
}

.school-about-section__inner {
	max-width: 52rem;
	margin-inline: auto !important;
}

.school-about-section__copy {
	max-width: 36rem;
	line-height: 1.65;
	font-size: 1.0625rem !important;
}

.school-about-section .school-about-section__inner {
	padding-top: var(--space-xl);
	border-top: 1px solid var(--color-rule);
}

.school-about-section__text {
	min-width: 0;
}

.school-about-section__image {
	margin: var(--space-xl) 0 0;
}

.school-about-section__image img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: var(--radius-lg);
}

.school-contact-section {
	padding-block: var(--space-xl) !important;
}

.school-contact-section .school-contact-summary-card {
	max-width: 100% !important;
	width: 100%;
}

.school-contact-summary-card {
	background-color: var(--color-surface-subtle);
	border-radius: var(--radius-xl);
	padding: clamp(1.5rem, 2.5vw, 2.25rem) clamp(1.5rem, 3vw, 2.75rem);
	box-sizing: border-box;
	width: 100%;
}

.school-contact-summary-card__header {
	margin-bottom: var(--space-lg);
}

.school-contact-summary-card__header h2 {
	font-family: var(--wp--preset--font-family--editorial-serif);
	font-size: clamp(1.35rem, 2vw, 1.625rem) !important;
	color: var(--color-primary);
	margin: 0 0 4px 0 !important;
	line-height: 1.25;
}

.school-contact-summary-card__subtitle {
	color: var(--color-muted-text);
	font-size: 0.875rem;
	margin: 0 !important;
	line-height: 1.4;
}

/* Horizontal lower content row on desktop: Address | Phone + Hours | Email | Contact CTA */
.school-contact-summary-card__body,
.school-contact-summary-card__row {
	display: flex;
	align-items: stretch;
	gap: 0;
	border-top: 1px solid rgba(15, 77, 63, 0.12);
	padding-top: var(--space-lg);
}

.school-contact-summary-col {
	display: flex;
	align-items: flex-start;
	gap: var(--space-sm);
	padding-right: clamp(1rem, 1.75vw, 1.5rem);
	padding-left: clamp(1rem, 1.75vw, 1.5rem);
	border-right: 1px solid rgba(15, 77, 63, 0.12);
	min-width: 0;
}

.school-contact-summary-col:first-child {
	padding-left: 0;
}

.school-contact-summary-col--address {
	flex: 1.25 1 0%;
}

.school-contact-summary-col--phone {
	flex: 1.4 1 0%;
}

.school-contact-summary-col--email {
	flex: 1.15 1 0%;
}

.school-contact-summary-col--cta {
	flex: 0 0 auto;
	margin-left: auto;
	padding-right: 0;
	padding-left: clamp(1rem, 1.75vw, 1.5rem);
	border-right: none;
	align-self: center;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.school-contact-summary-item__icon,
.school-contact-summary-col__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--color-soft-green);
	color: var(--color-primary);
	flex-shrink: 0;
	margin-top: 2px;
}

.school-contact-summary-col__content,
.school-contact-summary-item__content {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.school-contact-summary-col__label,
.school-contact-summary-item__label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 600;
	color: var(--color-muted-text);
}

.school-contact-summary-col__value,
.school-contact-summary-item__value {
	font-size: 0.875rem;
	color: var(--color-main-text);
	line-height: 1.45;
	margin: 0 !important;
	overflow-wrap: break-word;
}

.school-contact-summary-col__secondary,
.school-contact-summary-item__sub {
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px dashed rgba(15, 77, 63, 0.15);
	font-size: 0.8125rem;
	line-height: 1.4;
}

.school-contact-summary-col__sublabel,
.school-contact-summary-item__sublabel {
	font-weight: 600;
	color: var(--color-main-text);
	margin-right: 4px;
}

.school-contact-summary-col__subvalue,
.school-contact-summary-item__subvalue {
	color: var(--color-muted-text);
}

.school-contact-summary__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background-color: var(--color-primary);
	color: #fff;
	border-radius: 9999px;
	padding: 12px 22px;
	min-height: 44px;
	font-weight: 500;
	font-size: 0.9375rem;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease;
}

.school-contact-summary__button:hover,
.school-contact-summary__button:focus-visible {
	background-color: var(--color-secondary);
	color: #fff;
}

@media (max-width: 960px) {
	.school-contact-summary-card__body,
	.school-contact-summary-card__row {
		flex-direction: column;
		gap: var(--space-md);
	}

	.school-contact-summary-col {
		padding-left: 0;
		padding-right: 0;
		border-right: none;
		border-bottom: 1px solid rgba(15, 77, 63, 0.1);
		padding-bottom: var(--space-md);
		width: 100%;
	}

	.school-contact-summary-col--cta {
		border-bottom: none;
		padding-bottom: 0;
		padding-left: 0;
		margin-left: 0;
		align-self: flex-start;
		padding-top: var(--space-xs);
	}
}

/* Editorial Pages */
.school-page-header {
	margin-bottom: var(--space-xl);
}

.school-page-header .wp-block-post-title,
.school-page-header h1 {
	max-width: 52rem;
	margin-top: 0;
	margin-bottom: var(--space-md);
}

.school-section-title,
.school-page-header :where(.wp-block-post-title, h1),
.school-article__title {
	font-size: clamp(2.5rem, 4vw, 3.5rem) !important;
	font-weight: 600;
	line-height: 1.1;
}

.school-page-header__intro {
	max-width: 44rem;
	font-size: 1.125rem;
	line-height: 1.6;
}

.school-page-content > :first-child {
	margin-top: 0;
}

.school-page-main > .school-page-content {
	max-width: var(--wide-width);
}

.school-profile-intro,
.school-profile-vision,
.school-profile-mission,
.school-profile-greeting {
	max-width: var(--wide-width);
}

.school-profile-vision {
	padding: var(--space-lg) var(--space-xl) !important;
	background-color: color-mix(in srgb, var(--color-soft-green) 45%, var(--color-warm-white)) !important;
	border-radius: var(--radius-md);
}

.school-profile-layout {
	max-width: var(--wide-width) !important;
}

.school-profile-layout > * + * {
	margin-block-start: var(--space-xl) !important;
}

.school-profile-layout h2 {
	max-width: none;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	line-height: 1.2;
}

.school-profile-intro__body > p,
.school-profile-intro__copy > p {
	font-size: 1rem !important;
	line-height: 1.65;
}

.school-profile-intro__copy > * {
	max-width: none !important;
	margin: 0 !important;
}

.school-profile-intro__copy > * + * {
	margin-block-start: var(--space-md) !important;
}

.school-profile-intro__body,
.school-profile-greeting__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-xl);
	max-width: var(--wide-width) !important;
}

.school-profile-intro > h2,
.school-profile-mission > *,
.school-profile-greeting > h2,
.school-profile-vision > *,
.school-page-header > *,
.school-latest-news-section > .wp-block-group > :where(h1, .school-section-intro, .school-section-link) {
	margin-inline: 0 !important;
}

.school-gallery-section .school-section-heading,
.school-gallery-section .school-gallery-preview {
	max-width: none !important;
	margin-inline: 0 !important;
}

.school-profile-intro__body > *,
.school-profile-greeting__body > * {
	min-width: 0;
	max-width: none !important;
	margin: 0 !important;
}

.school-profile-intro__image img {
	width: 100%;
	aspect-ratio: 5 / 3;
	object-fit: cover;
	border-radius: var(--radius-lg);
}

.school-profile-greeting__portrait img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	object-position: center 30%;
	border-radius: var(--radius-md);
}

.school-profile-mission .school-numbered-list > li::marker {
	color: var(--color-primary);
	font-family: var(--wp--preset--font-family--editorial-serif);
	font-size: 1.25rem;
	font-weight: 600;
	content: counter(list-item, decimal-leading-zero) "  ";
}

.school-profile-vision__quote {
	margin: var(--space-xs) 0 0;
	padding: 0;
	border: 0;
	color: var(--color-primary);
	font-family: var(--wp--preset--font-family--editorial-serif);
	font-style: italic;
}

.school-profile-vision__quote p {
	margin-block: 0;
	font-size: clamp(1.25rem, 2vw, 1.75rem);
	line-height: 1.45;
}

.school-profile-mission .school-numbered-list {
	max-width: none !important;
	padding-left: var(--space-xl);
	margin-top: var(--space-md);
}

.school-profile-mission .school-numbered-list > li {
	padding: var(--space-sm) 0 var(--space-sm) var(--space-lg);
	border-bottom: 1px solid var(--color-rule);
}

.school-profile-intro__image:not(:has(img)),
.school-profile-greeting__portrait:not(:has(img)) {
	display: none;
}

.school-profile-greeting {
	padding-top: var(--space-lg) !important;
}

.school-program-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-xs);
	padding: var(--space-xl) 0;
	border-top: 1px solid var(--color-rule);
}

.school-program-row:last-child {
	border-bottom: 1px solid var(--color-rule);
}

.school-program-row__number {
	margin: 0;
	justify-self: start;
	padding: var(--space-2xs) var(--space-sm);
	border-radius: var(--radius-lg);
	background: var(--color-warm-beige);
	font-weight: 400;
	line-height: 1.2;
}

.school-program-row__body > :first-child {
	margin-top: 0;
}

.school-program-layout {
	max-width: var(--wide-width) !important;
}

.school-program-layout > .school-program-row + .school-program-row {
	margin-block-start: 0;
}

.school-program-row > * {
	min-width: 0;
	max-width: none !important;
	margin: 0 !important;
}

.school-program-row__number {
	color: var(--color-primary);
	font-family: var(--wp--preset--font-family--editorial-serif);
	font-size: 1.125rem !important;
}

.school-program-row__body > * {
	max-width: none !important;
	margin-inline: 0 !important;
}

.school-program-row__body h2 {
	font-size: clamp(1.5rem, 2.5vw, 2.25rem);
	line-height: 1.25;
}

.school-program-row__image {
	padding-top: var(--space-lg);
}

.school-program-row__image:not(:has(img)) {
	display: none;
}

.school-program-row__image figure {
	margin: 0;
}

.school-program-row__image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--radius-md);
}

.school-gallery-page {
	max-width: var(--wide-width) !important;
}

.school-gallery-page__grid.wp-block-gallery.has-nested-images {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
	gap: var(--space-lg) var(--space-md) !important;
	max-width: var(--wide-width) !important;
}

.school-gallery-page__grid.wp-block-gallery.has-nested-images > figure.wp-block-image {
	display: block;
	width: 100% !important;
	min-width: 0;
	margin: 0;
}

.school-gallery-page__grid.wp-block-gallery.has-nested-images figure.wp-block-image img {
	width: 100%;
	height: auto !important;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: center 30%;
	border-radius: var(--radius-md);
}

.school-article__content .wp-block-gallery.has-nested-images figure.wp-block-image {
	display: block;
	align-self: start;
}

.school-article__content .wp-block-gallery.has-nested-images figure.wp-block-image img {
	height: auto !important;
}

.school-gallery-page__grid.wp-block-gallery.has-nested-images figure.wp-block-image figcaption,
.school-article__content .wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	position: static;
	max-height: none;
	margin-top: var(--space-xs);
	padding: 0;
	color: var(--color-muted-text);
	background: none;
	text-align: left;
}

.school-gallery-page__grid.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	text-shadow: none;
	overflow-wrap: anywhere;
}

.school-gallery-page__grid.wp-block-gallery.has-nested-images > figcaption {
	grid-column: 1 / -1;
	width: 100%;
	margin: 0;
	color: var(--color-muted-text);
	text-align: left;
	text-shadow: none;
	overflow-wrap: anywhere;
}

.school-contact-page .wp-block-columns {
	gap: var(--space-2xl);
}

.school-contact-page {
	max-width: var(--wide-width) !important;
}

.school-contact-page > p,
.school-contact-page > .school-contact-details,
.school-contact-page > .school-contact-location {
	width: 100%;
	max-width: var(--content-width);
	margin-inline: 0 !important;
	min-width: 0;
}

.school-contact-details > h2,
.school-contact-location > h2 {
	margin-block: 0 var(--space-xs);
	font-size: clamp(1.5rem, 2vw, 1.75rem);
	line-height: 1.25;
}

.school-contact-field {
	margin-block: 0 !important;
	padding-block: var(--space-sm);
	border-bottom: 1px solid var(--color-rule);
	overflow-wrap: anywhere;
}

.school-contact-field strong {
	display: inline-block;
	margin-bottom: var(--space-2xs);
	color: var(--color-primary);
}

.school-contact-details:not(:has(.school-contact-field)),
.school-contact-location:not(:has(> :not(:is(h1, h2, h3, h4, h5, h6)):not(:empty), iframe, img)) {
	display: none;
}

.school-contact-location {
	padding-top: var(--space-lg);
	border-top: 1px solid var(--color-rule);
	overflow-wrap: anywhere;
}

.school-contact-location iframe {
	max-width: 100%;
}

@media (min-width: 1000px) {
	/* The operator supplies verified content; empty native blocks create no track. */
	.school-contact-page:has(> .school-contact-details .school-contact-field):has(> .school-contact-location > :not(:is(h1, h2, h3, h4, h5, h6)):not(:empty), > .school-contact-location iframe, > .school-contact-location img) {
		display: grid;
		grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
		gap: var(--space-xl) var(--space-2xl);
	}

	.school-contact-page > p {
		grid-column: 1 / -1;
	}

	.school-contact-page:has(> .school-contact-details .school-contact-field):has(> .school-contact-location > :not(:is(h1, h2, h3, h4, h5, h6)):not(:empty), > .school-contact-location iframe, > .school-contact-location img) > :is(.school-contact-details, .school-contact-location) {
		max-width: none;
		margin-block: 0;
	}

	.school-contact-page:has(> .school-contact-details .school-contact-field):has(> .school-contact-location > :not(:is(h1, h2, h3, h4, h5, h6)):not(:empty), > .school-contact-location iframe, > .school-contact-location img) > .school-contact-location {
		padding-top: 0;
		padding-left: var(--space-xl);
		border-top: 0;
		border-left: 1px solid var(--color-rule);
	}
}

/* News archive */
.school-news-archive-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.school-news-archive-list > li {
	padding: var(--space-md) 0;
	border-top: 1px solid var(--color-rule);
}

.school-news-archive-list > li:first-child {
	padding-block: var(--space-lg);
}

.school-news-archive-list > li:last-child {
	border-bottom: 1px solid var(--color-rule);
}

.school-news-archive-item {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-md);
	min-width: 0;
}

.school-news-archive-item > * {
	min-width: 0;
	max-width: none !important;
	margin: 0 !important;
}

.school-news-archive-item__body {
	overflow-wrap: anywhere;
}

.school-news-archive-item__body > * {
	max-width: none !important;
	margin-inline: 0 !important;
	margin-block: var(--space-xs) 0 !important;
}

.school-news-archive-item__body > :first-child {
	margin-top: 0 !important;
}

.school-news-archive-item__title {
	font-size: clamp(1.25rem, 1.8vw, 1.5rem) !important;
}

.school-news-archive-item__image {
	margin: 0;
}

.school-news-archive-item__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 2.15;
	border-radius: var(--radius-md);
	object-fit: cover;
}

.school-news-archive-list > li:first-child .school-news-archive-item__image img {
	aspect-ratio: 16 / 9;
}

.school-news-archive-item__title,
.school-news-archive-item__title a {
	overflow-wrap: anywhere;
}

.school-news-archive-item__title a:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

.school-news-archive-item__title a {
	color: inherit;
	text-decoration: none;
}

.school-news-archive-item__excerpt {
	line-height: 1.5;
}

.school-news-archive-item__excerpt p {
	margin-block: 0;
}

.school-news-archive-item__excerpt .wp-block-post-excerpt__more-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 600;
}

.school-pagination {
	gap: var(--space-md);
	margin-top: var(--space-lg);
}

.school-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	margin-inline: var(--space-2xs);
}

.school-pagination .current {
	font-weight: 700;
	border-bottom: 2px solid var(--color-primary);
}

/* Single article */
.school-article-main {
	padding-top: var(--space-lg) !important;
}

.school-article-main > .school-article {
	max-width: var(--article-media-width);
}

.school-article > :where(.school-article__back, .school-news-meta, .school-article__title) {
	max-width: 60rem;
}

.school-article__back {
	display: block;
	min-height: 44px;
	margin-block: 0;
	font-weight: 600;
	text-underline-offset: 0.2em;
}

.school-article > .school-news-meta {
	margin-top: var(--space-xs);
}

.school-article__title {
	max-width: 60rem;
	margin-top: var(--space-sm);
	font-size: clamp(1.75rem, 3.2vw, 3rem) !important;
	line-height: 1.15;
	overflow-wrap: anywhere;
}

.school-article__featured-image {
	max-width: var(--article-media-width);
	margin-block: var(--space-lg);
}

.school-article__featured-image img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	object-position: center 35%;
	border-radius: var(--radius-lg);
}

.school-article__content {
	font-size: 1.0625rem;
	line-height: 1.8;
	max-width: var(--article-media-width);
}

.school-article__content :where(p, li) {
	line-height: 1.8;
}

.school-article__content h2 {
	font-size: clamp(1.5rem, 2vw, 1.875rem);
}

.school-article__content h3 {
	font-size: clamp(1.125rem, 1.5vw, 1.375rem);
}

.school-article__content > :where(h2, h3, h4) {
	margin-top: 1.25em;
}

.school-article__content blockquote {
	margin: var(--space-xl) 0;
	padding: var(--space-md) 0 var(--space-md) var(--space-lg);
	border-left: 3px solid var(--color-primary);
}

.school-article-navigation {
	gap: var(--space-lg);
	margin-top: var(--space-2xl);
	padding-top: var(--space-lg);
	border-top: 1px solid var(--color-rule);
}

.school-article-navigation > * {
	flex: 1 1 18rem;
	min-width: 0;
	font-size: 0.9375rem;
}

.school-article-supporting {
	margin-top: var(--space-2xl);
	padding-top: var(--space-lg);
	border-top: 1px solid var(--color-rule);
}

.school-article-supporting > :where(h2, .school-text-link) {
	margin-inline: 0 !important;
}

.school-article-supporting > h2 {
	margin-block: 0;
	font-size: clamp(1.5rem, 2vw, 1.75rem) !important;
}

.school-article-supporting > .wp-block-query {
	margin-top: var(--space-md);
}

.school-article-supporting > .school-text-link {
	margin-top: var(--space-sm);
}

.school-article-supporting__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: stretch;
	gap: var(--space-md);
	margin: 0;
	padding: 0;
	list-style: none;
}

.school-article-supporting__list > li {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-content: start;
	gap: var(--space-2xs) var(--space-sm);
	min-width: 0;
	margin: 0;
	padding-bottom: var(--space-md);
	border-bottom: 1px solid var(--color-rule);
}

.school-article-supporting__list > li > * {
	min-width: 0;
	margin: 0 !important;
}

.school-article-supporting__list > li:has(.school-article-supporting__image) {
	grid-template-columns: 6rem minmax(0, 1fr);
}

.school-article-supporting__list > li:has(.school-article-supporting__image) > :not(.school-article-supporting__image) {
	grid-column: 2;
}

.school-article-supporting__image {
	grid-column: 1;
	grid-row: 1 / span 3;
	align-self: start;
}

.school-article-supporting__image img {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	object-position: center 30%;
	border-radius: var(--radius-sm);
}

.school-article-supporting__list .wp-block-post-date {
	font-size: 0.8125rem !important;
}

.school-article-supporting__list .wp-block-post-title {
	font-size: 1.125rem !important;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.school-article-supporting__list .wp-block-post-title a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.school-article-supporting__excerpt {
	font-size: 0.875rem;
	overflow-wrap: anywhere;
}

.school-article-supporting__excerpt p {
	margin: 0;
	line-height: 1.55;
}

.school-article-supporting__excerpt .wp-block-post-excerpt__more-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	text-underline-offset: 0.2em;
}

/* Footer */
.site-footer {
	background: var(--color-primary);
	color: var(--color-warm-white);
}

.site-footer > .wp-block-group {
	max-width: var(--site-shell-width);
}

.site-footer > .wp-block-group:first-child {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-lg);
}

.site-footer .wp-block-site-title {
	font-family: var(--wp--preset--font-family--editorial-serif);
	font-size: clamp(1.35rem, 2.2vw, 1.8rem) !important;
}

.site-footer :where(a, .wp-block-site-title a, .wp-block-navigation-item__content) {
	color: var(--color-warm-white);
}

.site-footer .wp-block-navigation,
.site-footer .wp-block-navigation .wp-block-navigation-item__content,
.site-footer .wp-block-navigation .wp-block-navigation-item__content:hover,
.site-footer .wp-block-navigation .wp-block-navigation-item__content:focus {
	color: var(--color-warm-white);
}

.site-footer a:focus-visible,
.site-footer button:focus-visible {
	outline-color: var(--color-warm-white);
}

.site-footer .wp-block-site-logo img {
	width: 252px;
	height: auto;
	max-height: 84px;
	object-fit: contain;
	/* Keep the dark-lettered identity legible directly on the green band. */
	filter: grayscale(1) brightness(0.3) invert(1);
}

.site-footer__identity {
	max-width: 24rem;
	min-width: 0;
	margin: 0;
}

.site-footer .wp-block-site-tagline {
	margin: 0;
	line-height: 1.5;
}

.site-footer__meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-sm);
	border-top: 1px solid rgba(251, 250, 246, 0.15) !important;
	margin-top: var(--space-lg) !important;
	padding-top: var(--space-md) !important;
	color: rgba(251, 250, 246, 0.75);
}

.site-footer__meta p {
	margin: 0;
	font-size: 0.8125rem !important;
	line-height: 1.5;
	color: inherit;
}

.site-footer__nav {
	margin: 0;
}

.site-footer__nav .wp-block-navigation__container {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs) var(--space-sm);
	padding: 0;
	margin: 0;
	list-style: none;
}

.site-footer__nav .wp-block-navigation-item__content {
	min-width: 44px;
	min-height: 44px;
	padding-inline: var(--space-xs);
	font-size: 0.8125rem;
}

.site-footer__nav .wp-block-navigation-item__content:hover {
	background: transparent;
	text-decoration: underline;
}

@media (min-width: 700px) {
	.school-article-supporting__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.school-gallery-page__grid.wp-block-gallery.has-nested-images {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.school-gallery-page__grid.wp-block-gallery.has-nested-images:has(> figure:only-of-type) {
		grid-template-columns: minmax(0, 1fr);
	}

	.school-profile-greeting__body:has(img) {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
		align-items: start;
		gap: var(--space-lg);
	}

	.school-news-editorial-list {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
		column-gap: var(--space-xl);
		align-items: start;
	}

	.school-news-editorial-list > li:first-child {
		grid-row: span 2;
		padding: 0;
	}

	.school-news-editorial-list > li:nth-child(2) {
		padding-top: var(--space-md);
	}

	.school-news-editorial-list > li:not(:first-child) .school-news-story:has(.school-news-story__image) {
		grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
		gap: var(--space-lg);
	}

	.school-news-editorial-list > li:not(:first-child) .school-news-story__title {
		font-size: clamp(1.2rem, 2vw, 1.5rem) !important;
	}

	.school-news-archive-item:has(.school-news-archive-item__image) {
		grid-template-columns: minmax(12rem, 0.65fr) minmax(0, 1.5fr);
		align-items: start;
		gap: var(--space-lg);
	}

	.school-news-archive-list > li:first-child .school-news-archive-item:has(.school-news-archive-item__image) {
		grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
	}

	.school-news-archive-list > li:first-child .school-news-archive-item__title {
		font-size: clamp(1.6rem, 2.6vw, 2.125rem) !important;
	}
}

@media (min-width: 1000px) {
	/* The native heading stays before the body in the document reading order. */
	.school-article__featured-image img {
		aspect-ratio: 2.75 / 1;
	}

	.school-article-supporting__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.school-article-supporting__list > li:has(.school-article-supporting__image) {
		grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	}

	.school-profile-intro:has(.school-profile-intro__body > .school-profile-intro__copy):has(.school-profile-intro__image img) {
		display: grid;
		grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
		grid-template-rows: auto minmax(0, 1fr);
		gap: var(--space-md) var(--space-xl);
		align-items: start;
	}

	.school-profile-intro:has(.school-profile-intro__body > .school-profile-intro__copy):has(.school-profile-intro__image img) > h2 {
		grid-column: 2;
		grid-row: 1;
		margin: 0;
	}

	.school-profile-intro:has(.school-profile-intro__body > .school-profile-intro__copy):has(.school-profile-intro__image img) > .school-profile-intro__body {
		display: contents;
	}

	.school-profile-intro:has(.school-profile-intro__body > .school-profile-intro__copy):has(.school-profile-intro__image img) .school-profile-intro__copy {
		grid-column: 2;
		grid-row: 2;
	}

	.school-profile-intro:has(.school-profile-intro__body > .school-profile-intro__copy):has(.school-profile-intro__image img) .school-profile-intro__image {
		grid-column: 1;
		grid-row: 1 / 3;
	}

	/* Sequential spans preserve the native Gallery's photo reading order. */
	.school-gallery-page__grid.wp-block-gallery.has-nested-images {
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}

	.school-gallery-page__grid.wp-block-gallery.has-nested-images > figure.wp-block-image {
		grid-column: span 4;
	}

	.school-gallery-page__grid.wp-block-gallery.has-nested-images > figure.wp-block-image:nth-of-type(3n + 2) {
		grid-column: span 5;
	}

	.school-gallery-page__grid.wp-block-gallery.has-nested-images > figure.wp-block-image:nth-of-type(3n) {
		grid-column: span 3;
	}

	.school-gallery-page__grid.wp-block-gallery.has-nested-images > figure.wp-block-image:first-of-type {
		grid-column: span 6;
	}

	.school-gallery-page__grid.wp-block-gallery.has-nested-images > figure.wp-block-image:nth-of-type(2) {
		grid-column: span 3;
	}

	/* Incomplete final rows expand without moving photos into earlier gaps. */
	.school-gallery-page__grid.wp-block-gallery.has-nested-images > figure.wp-block-image:nth-of-type(3n + 1):last-of-type {
		grid-column: span 12;
	}

	.school-gallery-page__grid.wp-block-gallery.has-nested-images > figure.wp-block-image:nth-of-type(3n + 2):last-of-type {
		grid-column: span 8;
	}

	.school-gallery-page__grid.wp-block-gallery.has-nested-images:has(> figure:nth-of-type(2):last-of-type) > figure.wp-block-image:first-of-type {
		grid-column: span 8;
	}

	.school-gallery-page__grid.wp-block-gallery.has-nested-images > figure.wp-block-image:nth-of-type(2):last-of-type {
		grid-column: span 4;
	}

	.school-gallery-page__grid.wp-block-gallery.has-nested-images > figure.wp-block-image:first-of-type:last-of-type {
		grid-column: 1 / -1;
	}

	.school-gallery-page__grid.wp-block-gallery.has-nested-images figure.wp-block-image img {
		height: clamp(12rem, 18vw, 17rem) !important;
		aspect-ratio: auto;
	}

	.school-gallery-page__grid.wp-block-gallery.has-nested-images > figure.wp-block-image:nth-of-type(-n + 3) img {
		height: clamp(15rem, 23vw, 21rem) !important;
	}

	.school-program-row:has(.school-program-row__image img) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: auto minmax(0, 1fr);
		grid-template-areas: "image number" "image body";
		column-gap: var(--space-2xl);
		align-items: start;
	}

	/* Count only catalogue rows, so introductory blocks do not change the phase. */
	.school-program-row:nth-child(even of .school-program-row):has(.school-program-row__image img) {
		grid-template-areas: "number image" "body image";
	}

	.school-program-row:has(.school-program-row__image img) > .school-program-row__number {
		grid-area: number;
	}

	.school-program-row:has(.school-program-row__image img) > .school-program-row__body {
		grid-area: body;
	}

	.school-program-row:has(.school-program-row__image img) > .school-program-row__image {
		grid-area: image;
		padding-top: 0;
	}

	.school-about-section__inner:has(.school-about-section__image) {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: start;
		gap: var(--space-xl);
		max-width: var(--wide-width);
	}

	.school-about-section__image {
		margin: 0;
	}

	.school-gallery-preview--3,
	.school-gallery-preview--4 {
		grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr) minmax(0, 0.95fr);
		gap: var(--space-md);
	}

	.school-gallery-preview--3 .school-gallery-preview__item:last-child {
		grid-column: auto;
	}

	.school-gallery-preview--3 img {
		aspect-ratio: 1 / 1;
	}

	.school-gallery-preview--4 {
		grid-template-rows: repeat(2, minmax(0, 1fr));
		height: clamp(18rem, 28vw, 25rem);
	}

	.school-gallery-preview--4 .school-gallery-preview__item:nth-child(-n + 2) {
		grid-row: span 2;
	}

	.school-gallery-preview--4 .school-gallery-preview__item:nth-child(n + 3) {
		grid-column: 3;
	}

	.school-gallery-preview--4 .school-gallery-preview__item img {
		aspect-ratio: auto;
	}
}

@media (max-width: 640px) {
	/* Mobile keeps the editorial hierarchy but uses a tighter spatial register. */
	.site-header {
		padding-block: var(--space-xs) !important;
	}

	.site-header > .wp-block-group {
		gap: var(--space-xs);
	}

	.site-header .wp-block-site-logo img {
		width: 204px;
		max-height: 68px;
	}

	.site-header .wp-block-navigation {
		flex: 0 0 auto;
	}

	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
		min-width: 44px;
	}

	.school-section-title,
	.school-page-header :where(.wp-block-post-title, h1) {
		font-size: clamp(2rem, 9vw, 2.125rem) !important;
		line-height: 1.08;
	}

	.school-page-main,
	.school-news-main {
		padding-top: var(--space-xl) !important;
		padding-bottom: var(--space-2xl) !important;
	}

	.school-page-header {
		margin-bottom: var(--space-lg);
	}

	.school-page-header .wp-block-post-title,
	.school-page-header h1 {
		margin-bottom: var(--space-sm);
	}

	.school-current-info {
		padding-block: var(--space-2xs) !important;
	}

	.school-latest-news-section .school-section-heading,
	.school-gallery-section .school-section-heading {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 0 var(--space-sm);
		align-items: end !important;
		margin-bottom: var(--space-md);
	}

	.school-latest-news-section .school-section-heading > .wp-block-group,
	.school-gallery-section .school-section-heading > .wp-block-group {
		display: contents;
	}

	.school-latest-news-section .school-section-title,
	.school-gallery-section .school-section-heading h2 {
		grid-column: 1;
		grid-row: 1;
		align-self: end;
	}

	.school-latest-news-section .school-section-title {
		font-size: 1.75rem !important;
	}

	.school-gallery-section .school-section-heading h2 {
		font-size: 1.5rem !important;
	}

	.school-latest-news-section .school-section-intro,
	.school-gallery-section .school-section-heading > .wp-block-group > p {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.school-latest-news-section .school-section-link,
	.school-gallery-section .school-section-heading > .school-text-link {
		grid-column: 2;
		grid-row: 1;
		align-self: end;
		justify-self: end;
		margin-top: 0 !important;
		font-size: 0.75rem;
	}

	.school-latest-news-section .school-section-intro {
		max-width: 18rem;
		font-size: 0.9375rem;
		line-height: 1.5;
	}

	.school-current-info__inner {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: var(--space-xs) var(--space-sm) !important;
	}

	.school-current-info__badge-group {
		display: contents !important;
	}

	.school-current-info__label {
		justify-self: start;
		grid-column: 1;
		grid-row: 1;
	}

	.school-current-info__copy {
		grid-column: 1 / -1;
		grid-row: 2;
		font-size: 0.875rem;
		line-height: 1.4;
	}

	.school-current-info__link {
		grid-column: 2;
		grid-row: 1;
		align-self: center;
		justify-self: end;
	}

	.school-latest-news-section {
		padding-block: var(--space-xl) !important;
	}

	.school-news-editorial-list > li {
		padding-block: var(--space-md);
	}

	.school-news-editorial-list > li:first-child {
		padding-bottom: var(--space-md);
	}

	.school-news-editorial-list > li:not(:first-child) .school-news-story:has(.school-news-story__image) {
		grid-template-columns: 5.75rem minmax(0, 1fr);
		gap: var(--space-sm);
	}

	.school-news-editorial-list > li:not(:first-child) .school-news-story__image img {
		width: 5.75rem;
		height: 5.75rem !important;
		aspect-ratio: 1 !important;
	}

	.school-news-editorial-list > li:not(:first-child) .school-news-meta {
		gap: var(--space-xs);
		font-size: 0.75rem !important;
	}

	.school-news-editorial-list > li:not(:first-child) .school-news-story__title {
		margin-top: var(--space-2xs) !important;
		font-size: 1.125rem !important;
		line-height: 1.2 !important;
	}

	.school-news-editorial-list > li:not(:first-child) .school-news-story__excerpt {
		margin-top: var(--space-2xs) !important;
		font-size: 0.875rem;
		line-height: 1.45;
	}

	.school-news-editorial-list > li:not(:first-child) .wp-block-post-excerpt__excerpt {
		line-height: 1.45;
	}

	.school-news-editorial-list > li:not(:first-child) .wp-block-post-excerpt__more-link {
		font-size: 0.875rem;
	}

	.school-gallery-section .school-section-heading {
		gap: var(--space-xs);
		margin-bottom: var(--space-md);
	}

	.school-gallery-section .school-section-heading p {
		margin-top: var(--space-xs);
	}

	.school-about-section {
		padding-bottom: var(--space-xl) !important;
	}

	.school-about-section .school-about-section__inner {
		padding-top: var(--space-lg);
	}

	.school-about-section__image {
		margin-top: var(--space-lg);
	}

	.school-contact-section {
		padding-block: var(--space-lg) !important;
	}

	.school-contact-section__inner {
		gap: var(--space-xs) !important;
	}

	.school-profile-layout > * + * {
		margin-block-start: var(--space-lg) !important;
	}

	.school-profile-intro__body,
	.school-profile-greeting__body {
		gap: var(--space-lg);
	}

	.school-profile-vision {
		padding: var(--space-md) !important;
	}

	.school-program-row {
		padding-block: var(--space-lg);
	}

	.school-program-row__image {
		padding-top: var(--space-md);
	}

	.school-gallery-page__grid.wp-block-gallery.has-nested-images {
		gap: var(--space-md) !important;
	}

	.school-gallery-page__grid.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
		margin-top: var(--space-2xs);
		font-size: 0.8125rem;
	}

	.school-news-archive-list > li {
		padding-block: var(--space-sm);
	}

	.school-news-archive-list > li:first-child {
		padding-block: var(--space-md);
	}

	.school-news-archive-list > li:not(:first-child) .school-news-archive-item:has(.school-news-archive-item__image) {
		grid-template-columns: 6rem minmax(0, 1fr);
		gap: var(--space-2xs) var(--space-sm);
	}

	.school-news-archive-list > li:not(:first-child) .school-news-archive-item:has(.school-news-archive-item__image) .school-news-archive-item__image {
		grid-column: 1;
		grid-row: 1 / span 2;
	}

	.school-news-archive-list > li:not(:first-child) .school-news-archive-item:has(.school-news-archive-item__image) .school-news-archive-item__body {
		display: contents;
	}

	.school-news-archive-list > li:not(:first-child) .school-news-archive-item:has(.school-news-archive-item__image) .school-news-meta {
		grid-column: 2;
		grid-row: 1;
	}

	.school-news-archive-list > li:not(:first-child) .school-news-archive-item:has(.school-news-archive-item__image) .school-news-archive-item__title {
		grid-column: 2;
		grid-row: 2;
	}

	.school-news-archive-list > li:not(:first-child) .school-news-archive-item:has(.school-news-archive-item__image) .school-news-archive-item__excerpt {
		grid-column: 1 / -1;
		grid-row: 3;
		margin-top: var(--space-xs) !important;
	}

	.school-news-archive-list > li:not(:first-child) .school-news-archive-item__image img {
		width: 6rem;
		height: 6rem;
		aspect-ratio: 1;
	}

	.school-news-archive-list > li:not(:first-child) .school-news-archive-item__title {
		font-size: 1.125rem !important;
		line-height: 1.2;
	}

	.school-news-archive-list > li:not(:first-child) .school-news-archive-item__excerpt {
		font-size: 0.875rem;
		line-height: 1.45;
	}

	.school-news-archive-list > li:not(:first-child) .school-news-archive-item__body > * {
		margin-top: var(--space-2xs) !important;
	}

	.school-news-archive-list > li:not(:first-child) .school-news-archive-item__body > :first-child {
		margin-top: 0 !important;
	}

	.school-article-navigation,
	.school-article-supporting {
		margin-top: var(--space-xl);
		padding-top: var(--space-md);
	}

	.site-footer {
		padding-block: var(--space-md) var(--space-sm) !important;
	}

	.site-footer > .wp-block-group {
		gap: var(--space-sm) !important;
	}

	.site-footer .wp-block-site-logo img {
		width: 192px;
		max-height: 64px;
	}

	.site-footer__meta {
		margin-top: var(--space-xs) !important;
		padding-top: var(--space-xs) !important;
	}

	.school-current-info__inner,
	.school-section-heading,
	.school-contact-section__inner {
		align-items: flex-start !important;
	}

	.site-footer__identity {
		max-width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

@media (forced-colors: active) {
	a:focus-visible,
	button:focus-visible,
	input:focus-visible,
	textarea:focus-visible,
	select:focus-visible,
	[tabindex]:focus-visible {
		outline-color: Highlight;
	}
}
