/*
Theme Name: Loyola College Bopitiya
Theme URI: https://loyolacollegebopitiya.info
Author: Enomee (Pvt) Ltd
Author URI: https://www.enomee.com
Description: Custom theme for Loyola College, Bopitiya. Photo slider managed from "Homepage Slider", news from Posts, and all homepage text from Appearance > Customize > Loyola College settings.
Version: 2.5.4
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: loyola-bopitiya
*/

/* ==================================================================
   Tokens
   Layout: institutional school site. Crest masthead, navigation bar
   in the school colour, photography first, white and pale grey bands.
   ================================================================== */
:root {
	--c-primary: #1b3462;
	--c-accent: #b48a2c;
	--c-primary-dark: color-mix(in srgb, var(--c-primary) 78%, #000);
	--c-tint: color-mix(in srgb, var(--c-primary) 5%, #fff);
	--c-tint-2: color-mix(in srgb, var(--c-primary) 10%, #fff);
	--c-bg: #fff;
	--c-text: #20262e;
	--c-muted: #59626f;
	--c-line: #d9dee5;
	--c-on-dark: #fff;
	--c-on-dark-muted: color-mix(in srgb, #fff 74%, var(--c-primary));

	--f-head: "EB Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
	--f-body: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;

	--wrap: 1200px;
	--gutter: clamp(16px, 3.5vw, 32px);
	--space: clamp(56px, 7vw, 96px);
	--r: 2px;
}

/* ==================================================================
   Base
   ================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--f-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img, svg, video, iframe { display: block; max-width: 100%; height: auto; }

a { color: var(--c-primary); text-underline-offset: .16em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em;
	font-family: var(--f-head);
	font-weight: 600;
	line-height: 1.15;
	color: var(--c-primary);
	text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 2.4vw + 1.2rem, 3rem); }
h2 { font-size: clamp(1.8rem, 1.4vw + 1.2rem, 2.35rem); }
h3 { font-size: clamp(1.3rem, .6vw + 1.05rem, 1.55rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; font-family: var(--f-body); font-weight: 700; }

p { margin: 0 0 1em; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0;
	top: 8px; left: 8px; z-index: 1000;
	padding: 10px 16px; background: #fff; color: var(--c-primary);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}

.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + var(--gutter) * 2);
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

.icon { flex: none; }

/* Buttons */
.btn,
.wp-block-button__link,
.search-form button {
	display: inline-flex; align-items: center; gap: .5em;
	padding: .75em 1.4em;
	border: 1.5px solid var(--c-primary);
	border-radius: var(--r);
	background: var(--c-primary); color: #fff;
	font: 600 1rem/1.2 var(--f-body);
	text-decoration: none; cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover, .wp-block-button__link:hover, .search-form button:hover {
	background: var(--c-primary-dark); border-color: var(--c-primary-dark); color: #fff;
}
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--c-primary); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .15s; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ==================================================================
   Utility bar
   ================================================================== */
.utility { background: var(--c-primary-dark); color: var(--c-on-dark-muted); font-size: .9rem; }
.utility__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.utility ul { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; list-style: none; }
.utility a { display: inline-flex; align-items: center; gap: 8px; color: var(--c-on-dark); text-decoration: none; }
.utility a:hover { text-decoration: underline; }
.utility__contact .icon { width: 15px; height: 15px; opacity: .75; }
.utility__social .social { gap: 0; }

.social { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.social a { display: grid; place-items: center; width: 34px; height: 34px; color: inherit; opacity: .85; }
.social a:hover { opacity: 1; }
.social .icon { width: 18px; height: 18px; }
.utility .social a { width: 30px; height: 30px; }
.utility .social .icon { width: 16px; height: 16px; }

/* ==================================================================
   Masthead
   ================================================================== */
.masthead { background: #fff; border-bottom: 1px solid var(--c-line); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 20px; padding-bottom: 20px; }

.brand { display: inline-flex; align-items: center; gap: 18px; color: var(--c-text); text-decoration: none; }
.brand__logo { width: auto; height: 82px; }
.brand__text { display: flex; flex-direction: column; }
.brand__wordmark { display: block; height: 2.4rem; width: auto; max-width: 100%; margin-bottom: 2px; }
.site-footer .brand__wordmark { filter: brightness(0) invert(1); }
.brand__name { font: 700 2.15rem/1.05 "UnifrakturCook", var(--f-head); color: var(--c-primary); letter-spacing: .01em; }
.brand__place { font: 500 1.35rem/1.15 var(--f-head); color: var(--c-primary); margin-top: 2px; }

.masthead__search,
.navbar__search { position: relative; display: flex; }
.masthead__search input,
.navbar__search input {
	width: 260px; padding: 10px 44px 10px 14px;
	border: 1px solid var(--c-line); border-radius: var(--r);
	background: var(--c-tint); color: var(--c-text);
	font: inherit; font-size: .95rem;
}
.masthead__search input:focus { outline: none; border-color: var(--c-primary); background: #fff; }
.masthead__search button,
.navbar__search button {
	position: absolute; top: 0; right: 0; bottom: 0; width: 42px;
	display: grid; place-items: center;
	border: 0; background: none; color: var(--c-primary); cursor: pointer;
}
.masthead__search .icon, .navbar__search .icon { width: 18px; height: 18px; }
.navbar__search { display: none; }

.nav-toggle {
	display: none; align-items: center; gap: 8px;
	padding: 10px 14px; border: 1px solid var(--c-line); border-radius: var(--r);
	background: #fff; color: var(--c-primary); font: 600 .95rem/1 var(--f-body); cursor: pointer;
}
.nav-toggle .icon { width: 20px; height: 20px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* ==================================================================
   Navigation bar
   ================================================================== */
.navbar { position: sticky; top: 0; z-index: 50; background: var(--c-primary); color: #fff; }
.admin-bar .navbar { top: 32px; }
.navbar .menu { display: flex; flex-wrap: wrap; margin: 0 0 0 -18px; padding: 0; list-style: none; }
.navbar .menu li { position: relative; }
.navbar .menu > li > a {
	display: block; padding: 15px 18px;
	color: #fff; font-weight: 600; font-size: 1rem; text-decoration: none;
}
.navbar .menu > li > a:hover,
.navbar .menu > li:focus-within > a { background: var(--c-primary-dark); }
.navbar .menu > li.current-menu-item > a,
.navbar .menu > li.current-menu-ancestor > a { box-shadow: inset 0 -3px 0 var(--c-accent); }
.navbar .menu-item-has-children > a { position: relative; padding-right: 36px; }
.navbar .menu-item-has-children > a::after {
	content: ""; position: absolute; right: 17px; top: 50%;
	width: 7px; height: 7px; margin-top: -6px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg); opacity: .75;
}

.sub-toggle { display: none; }

.navbar .sub-menu {
	position: absolute; top: 100%; left: 0; z-index: 10;
	min-width: 250px; margin: 0; padding: 6px 0; list-style: none;
	background: #fff; border: 1px solid var(--c-line); border-top: 0;
	box-shadow: 0 10px 24px rgba(20, 30, 50, .12);
	visibility: hidden; opacity: 0;
	transition: opacity .12s, visibility .12s;
}
.navbar .sub-menu .sub-menu { top: -7px; left: 100%; border-top: 1px solid var(--c-line); }
.navbar li:hover > .sub-menu,
.navbar li:focus-within > .sub-menu,
.navbar li.is-open > .sub-menu { visibility: visible; opacity: 1; }
.navbar .sub-menu a {
	position: relative; display: block; padding: 9px 20px;
	color: var(--c-text); font-size: .97rem; text-decoration: none;
}
.navbar .sub-menu a:hover,
.navbar .sub-menu .current-menu-item > a { background: var(--c-tint); color: var(--c-primary); }
.navbar .sub-menu .menu-item-has-children > a::after { transform: rotate(-45deg); right: 18px; }

.menu-hint { margin: 0; padding: 14px 0; }
.menu-hint a { color: #fff; }

@media (max-width: 1120px) {
	.navbar .menu { margin-left: -13px; }
	.navbar .menu > li > a { padding-left: 13px; padding-right: 13px; font-size: .97rem; }
	.navbar .menu-item-has-children > a { padding-right: 28px; }
	.navbar .menu-item-has-children > a::after { right: 12px; }
}

@media (max-width: 960px) {
	.masthead__search { display: none; }
	.nav-toggle { display: inline-flex; }
	.masthead__inner { padding-top: 14px; padding-bottom: 14px; }
	.brand { gap: 12px; }
	.brand__logo { height: 56px; }
	.brand__name { font-size: 1.65rem; }
	.brand__wordmark { height: 1.9rem; }
	.brand__place { font-size: 1.1rem; }
	
	.navbar { position: static; display: none; }
	.navbar.is-open { display: block; }
	.navbar__inner { padding-top: 16px; padding-bottom: 20px; }
	.navbar__search { display: flex; margin-bottom: 8px; }
	.navbar__search input { width: 100%; background: #fff; border-color: #fff; }
	.navbar .menu { flex-direction: column; margin-left: 0; }
	.navbar .menu li { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, .14); }
	.navbar .menu > li > a { flex: 1; padding: 13px 0; background: none !important; }
	.navbar .menu > li.current-menu-item > a,
	.navbar .menu > li.current-menu-ancestor > a { box-shadow: none; color: #fff; text-decoration: underline; text-decoration-color: var(--c-accent); text-decoration-thickness: 2px; }
	.navbar .menu-item-has-children > a::after { display: none; }
	.navbar .menu-item-has-children > a { padding-right: 0; }
	.sub-toggle {
		display: grid; place-items: center; width: 44px; height: 44px;
		border: 0; background: none; color: #fff; cursor: pointer;
	}
	.sub-toggle .icon { transition: transform .15s; }
	.sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
	.navbar .sub-menu,
	.navbar .sub-menu .sub-menu {
		position: static; display: none; flex-basis: 100%; min-width: 0;
		margin: 0 0 10px; padding: 0 0 0 16px;
		background: none; border: 0; border-left: 1px solid rgba(255, 255, 255, .3); box-shadow: none;
		visibility: visible; opacity: 1;
	}
	.navbar li.is-open > .sub-menu { display: block; }
	.navbar .sub-menu li { border-bottom: 0; }
	.navbar .sub-menu a { flex: 1; padding: 9px 0; color: var(--c-on-dark-muted); }
	.navbar .sub-menu a:hover,
	.navbar .sub-menu .current-menu-item > a { background: none; color: #fff; }
	.navbar .sub-menu .menu-item-has-children > a::after { display: none; }
}

@media (max-width: 782px) { .admin-bar .navbar { top: 0; } }

@media (max-width: 600px) {
	.hide-sm { display: none !important; }
	.brand__logo { height: 48px; }
	.brand__name { font-size: 1.45rem; }
	.brand__wordmark { height: 1.6rem; }
	.brand__place { font-size: 1rem; }
		.nav-toggle__label { display: none; }
	.utility__inner { justify-content: space-between; }
}

/* ==================================================================
   Homepage slider
   ================================================================== */
.hero { position: relative; background: var(--c-primary-dark); color: #fff; }
.hero__track { display: grid; }
.hero__slide {
	grid-area: 1 / 1;
	position: relative;
	opacity: 0; visibility: hidden;
	transition: opacity .9s ease, visibility .9s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero__media { height: clamp(380px, 44vw, 600px); background: var(--c-primary-dark); overflow: hidden; }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide--empty .hero__media {
	background:
		linear-gradient(160deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
}

.hero__panel-wrap { position: absolute; left: 0; right: 0; bottom: 48px; pointer-events: none; }
.hero__panel {
	max-width: 560px;
	padding: 26px 30px 28px;
	background: color-mix(in srgb, var(--c-primary) 93%, transparent);
	pointer-events: auto;
}
.hero__title { margin: 0; font: 500 clamp(1.7rem, 1.4vw + 1.2rem, 2.4rem)/1.12 var(--f-head); color: #fff; text-wrap: balance; }
.hero__sub { margin: 10px 0 0; color: var(--c-on-dark-muted); font-size: 1.05rem; }
.hero__action { margin: 18px 0 0; }

.hero__controls {
	position: absolute; z-index: 3;
	bottom: 48px;
	right: max(var(--gutter), calc((100% - var(--wrap)) / 2));
	display: flex; align-items: center;
	background: rgba(10, 18, 34, .6);
}
.hero__btn {
	display: grid; place-items: center; width: 44px; height: 44px;
	border: 0; background: none; color: #fff; cursor: pointer;
}
.hero__btn:hover { background: rgba(255, 255, 255, .14); }
.hero__btn .icon { width: 18px; height: 18px; }
.hero__pause { border-left: 1px solid rgba(255, 255, 255, .2); }
.hero__count { margin: 0; min-width: 56px; text-align: center; font-size: .92rem; font-variant-numeric: tabular-nums; }
.hero__play-icon { display: none; }
.hero.is-paused .hero__pause-icon { display: none; }
.hero.is-paused .hero__play-icon { display: block; }

@media (max-width: 760px) {
	.hero__media { height: 62vw; min-height: 220px; }
	.hero__panel-wrap { position: static; padding: 0; }
	.hero__panel { max-width: none; padding: 20px var(--gutter) 24px; background: var(--c-primary); }
	.hero__title { font-size: 1.6rem; }
	.hero__sub { font-size: 1rem; }
	.hero__controls { bottom: auto; top: calc(max(62vw, 220px) - 44px); right: 0; }
	.hero__btn { width: 42px; height: 44px; }
	.hero__count { min-width: 44px; }
}

/* ==================================================================
   Sections
   ================================================================== */
.section { padding-top: var(--space); padding-bottom: var(--space); }
.section--compact { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }
.section--tint { background: var(--c-tint); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.section--page { padding-top: clamp(36px, 5vw, 60px); }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 32px; }
.section__head h2 { margin: 0; }
.section__title--center { text-align: center; }

/* Welcome */
.welcome__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.welcome__grid--text { grid-template-columns: minmax(0, 1fr); max-width: 780px; }
.welcome__text { max-width: none; }
.welcome__text p:first-child { color: var(--c-text); }
.welcome__body .btn { margin-top: 8px; }
.welcome__figure { margin: 0; }
.welcome__figure img { width: 100%; height: auto; background: var(--c-tint); }
.welcome__figure figcaption { margin-top: 12px; font: italic 500 1.05rem/1.4 var(--f-head); color: var(--c-muted); }

.facts {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: clamp(48px, 6vw, 72px) 0 0; padding: 0;
	border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line);
}
.facts__item { padding: 22px 24px; border-left: 1px solid var(--c-line); }
.facts__item:first-child { border-left: 0; padding-left: 0; }
.facts dt { font-size: .9rem; color: var(--c-muted); }
.facts dd { margin: 4px 0 0; font: 600 1.35rem/1.25 var(--f-head); color: var(--c-primary); }

@media (max-width: 860px) {
	.welcome__grid { grid-template-columns: minmax(0, 1fr); }
	.welcome__figure { max-width: 560px; }
	.facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.facts__item:nth-child(odd) { border-left: 0; padding-left: 0; }
	.facts__item:nth-child(n + 3) { border-top: 1px solid var(--c-line); }
}

/* News cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.achievements .card__media img { aspect-ratio: 1 / 1; }
.achievements .card__excerpt { display: none; }
.achievements .card__body { padding: 14px 18px 18px; }
.achievements .card__title { margin-bottom: 0; font-size: 1.2rem; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r); }
.card__media { display: block; overflow: hidden; background: var(--c-tint-2); }
.card__media img, .card__media .media-fallback { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card__media--poster { position: relative; isolation: isolate; background: var(--c-primary-dark); }
.card__media--poster::before { content: ""; position: absolute; inset: -24px; z-index: -1; background: var(--poster) center / cover no-repeat; filter: blur(18px) brightness(.7); }
.card__media.card__media--poster img { object-fit: contain; }
.category-achievements .card__media.card__media--poster img { aspect-ratio: 1 / 1; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 22px 24px; }
.card__title { margin: 6px 0 10px; font-size: 1.4rem; line-height: 1.2; }
.card__title a { color: var(--c-primary); text-decoration: none; }
.card__title a:hover { text-decoration: underline; }
.card__excerpt {
	margin: 0; color: var(--c-muted);
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-date { display: block; font-size: .88rem; color: var(--c-muted); }

.media-fallback {
	display: block;
	background: linear-gradient(160deg, var(--c-tint-2), color-mix(in srgb, var(--c-primary) 22%, #fff));
}

@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* Quick links */
.quicklinks__list {
	display: grid; grid-template-columns: repeat(var(--ql-count, 4), minmax(0, 1fr)); gap: 20px;
	margin: 0; padding: 0; list-style: none;
}
.quicklinks__item {
	display: grid; gap: 6px; height: 100%;
	padding: 24px 24px 26px;
	border: 1px solid var(--c-line); border-radius: var(--r);
	color: var(--c-text); text-decoration: none;
	transition: border-color .15s, background-color .15s;
}
.quicklinks__item:hover { border-color: var(--c-primary); background: var(--c-tint); }
.quicklinks__icon { color: var(--c-primary); margin-bottom: 6px; }
.quicklinks__icon .icon { width: 28px; height: 28px; stroke-width: 1.6; }
.quicklinks__head { font: 600 1.35rem/1.2 var(--f-head); color: var(--c-primary); }
.quicklinks__item:hover .quicklinks__head { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }
.quicklinks__text { font-size: .96rem; color: var(--c-muted); }

@media (max-width: 960px) { .quicklinks__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .quicklinks__list { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* Faith and heritage */
.heritage { padding-top: 0; }
.heritage .section__title--center { margin-bottom: 40px; }
.heritage__list { display: grid; gap: clamp(40px, 6vw, 72px); }
.heritage__item { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.heritage__item--flip .heritage__media { order: 2; }
.heritage__media { display: block; position: relative; aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; background: var(--c-primary-dark); }
.heritage__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.heritage__item:hover .heritage__media--cover img { transform: scale(1.03); }
.heritage__media--contain { background: var(--c-tint); border: 1px solid var(--c-line); }
.heritage__media--contain img { object-fit: contain; padding: clamp(24px, 5vw, 56px); }
.heritage__media .media-fallback { width: 100%; height: 100%; }
.heritage__title { margin: 0; font-size: clamp(1.7rem, 1.2vw + 1.2rem, 2.2rem); }
.heritage__title a { color: var(--c-primary); text-decoration: none; }
.heritage__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.heritage__sub { margin: 6px 0 0; font: italic 500 1.2rem/1.35 var(--f-head); color: color-mix(in srgb, var(--c-accent) 70%, #000); }
.heritage__text { margin: 18px 0 0; color: var(--c-text); max-width: 60ch; }
.heritage__points { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.heritage__points li { padding: 6px 14px; border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-tint); font-size: .95rem; font-weight: 600; color: var(--c-primary); }
.heritage__body .link-arrow { margin-top: 20px; }
@media (max-width: 860px) {
	.heritage__item { grid-template-columns: minmax(0, 1fr); }
	.heritage__item--flip .heritage__media { order: 0; }
}

/* Shepherds of the college: Principal 40%, team 60% */
.shepherds { border-top: 1px solid var(--c-line); }
.shepherds__layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 64px); align-items: start; margin-top: 40px; }
.shepherds__layout--single { grid-template-columns: minmax(0, 1fr); max-width: 900px; margin-left: auto; margin-right: auto; }
.shepherds__lead { padding-right: clamp(0px, 4vw, 56px); border-right: 1px solid var(--c-line); }
.shepherds__layout--single .shepherds__lead { padding-right: 0; border-right: 0; max-width: 380px; margin: 0 auto; }
.shepherds__team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-self: center; margin: 0; padding: 0; list-style: none; }
.person { margin: 0; }
.person__photo { aspect-ratio: 4 / 5; margin-bottom: 14px; background: var(--c-tint-2); overflow: hidden; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.person__initials { display: grid; place-items: center; width: 100%; height: 100%; font: 500 3.2rem/1 var(--f-head); color: var(--c-primary); }
.person__name { margin: 0; font: 600 1.2rem/1.25 var(--f-head); color: var(--c-primary); }
.person__role { margin: 2px 0 0; color: var(--c-muted); }
.person--lead { max-width: 360px; margin: 0 auto; }
.person--lead .person__name { font-size: 1.5rem; }
.person--lead .person__initials { font-size: 4.2rem; }
.shepherds__message { margin-top: 20px; }
.shepherds__message p:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
	.shepherds__layout { grid-template-columns: minmax(0, 1fr); }
	.shepherds__lead { padding: 0 0 32px; border-right: 0; border-bottom: 1px solid var(--c-line); }
	.person--lead { max-width: 320px; margin: 0; }
}
@media (max-width: 600px) {
	.shepherds__team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
}

/* College song */
.song { background: var(--c-primary); color: var(--c-on-dark); }
.song h2 { color: #fff; }
.song__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.song__text p { color: var(--c-on-dark-muted); max-width: 46ch; }
@media (max-width: 860px) { .song__grid { grid-template-columns: minmax(0, 1fr); } }

.video-lite { position: relative; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: #000; }
.video-lite img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.video-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-lite__play {
	position: absolute; inset: 0; margin: auto;
	display: grid; place-items: center; width: 76px; height: 76px;
	border: 0; border-radius: 50%; background: #fff; color: var(--c-primary); cursor: pointer;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
}
.video-lite__play:hover { background: var(--c-tint); }
.video-lite__play .icon { width: 28px; height: 28px; fill: currentColor; margin-left: 4px; }

/* ==================================================================
   Inner pages
   ================================================================== */
.page-head { background: var(--c-tint); border-bottom: 1px solid var(--c-line); padding: clamp(28px, 4vw, 44px) 0 clamp(32px, 4vw, 48px); }
.page-head__title { max-width: 28ch; margin: 0; }
.page-head__intro { max-width: 64ch; margin-top: 12px; font-size: 1.15rem; color: var(--c-muted); }
.page-head__intro p { margin: 0; }
.page-head__meta { margin: 12px 0 0; color: var(--c-muted); }
.page-head__meta .sep { margin: 0 6px; color: var(--c-line); }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 14px; padding: 0; list-style: none; font-size: .9rem; color: var(--c-muted); }
.crumbs li + li::before { content: "\203A"; margin-right: 8px; color: var(--c-muted); }
.crumbs a { color: var(--c-primary); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.layout { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
.layout--nav { grid-template-columns: 260px minmax(0, 1fr); }
.layout--side { grid-template-columns: minmax(0, 1fr) 300px; }
.layout__main { min-width: 0; }
.layout__main--narrow { max-width: 780px; }
@media (max-width: 900px) {
	.layout--nav, .layout--side { grid-template-columns: minmax(0, 1fr); }
}

/* Section menu on inner pages */
.section-nav { border-top: 3px solid var(--c-primary); background: var(--c-tint); }
.section-nav__title { margin: 0; }
.section-nav__title a { display: block; padding: 14px 18px; font: 600 1.25rem/1.25 var(--f-head); color: var(--c-primary); text-decoration: none; border-bottom: 1px solid var(--c-line); }
.section-nav ul { margin: 0; padding: 0; list-style: none; }
.section-nav li a { display: block; padding: 10px 18px; border-bottom: 1px solid var(--c-line); color: var(--c-text); text-decoration: none; font-size: .98rem; }
.section-nav li li a { padding-left: 34px; font-size: .94rem; }
.section-nav a:hover { color: var(--c-primary); background: var(--c-tint-2); }
.section-nav .current_page_item > a,
.section-nav a[aria-current="page"] { color: var(--c-primary); font-weight: 600; background: #fff; box-shadow: inset 3px 0 0 var(--c-primary); }
.section-nav .children { display: none; }
.section-nav .current_page_item > .children,
.section-nav .current_page_ancestor > .children { display: block; }
@media (max-width: 900px) { .section-nav .children { display: block; } }

/* Recent news beside an article */
.side-news__title { padding-bottom: 10px; border-bottom: 2px solid var(--c-primary); font-size: 1.35rem; }
.side-news ul { margin: 0 0 18px; padding: 0; list-style: none; }
.side-news li { border-bottom: 1px solid var(--c-line); }
.side-news__item { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 0; text-decoration: none; }
.side-news__item img, .side-news__item .media-fallback { width: 88px; aspect-ratio: 3 / 2; object-fit: cover; }
.side-news__name { display: block; color: var(--c-text); font-weight: 600; font-size: .98rem; line-height: 1.35; }
.side-news__item:hover .side-news__name { color: var(--c-primary); text-decoration: underline; }
.side-news .post-date { font-size: .85rem; margin-top: 2px; }

.entry-lead { margin: 0 0 32px; }
.entry-lead img { display: block; width: auto; max-width: 100%; max-height: 760px; margin: 0 auto; }
.entry-lead figcaption { margin-top: 8px; font-size: .92rem; color: var(--c-muted); }

/* Content from the block editor */
.entry-content > * + * { margin-top: 1.1em; }
.entry-content > :first-child { margin-top: 0; }
/* Text uses the full content column, lined up with images and tables. */
.entry-content { font-size: 1.1rem; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content .alignright { margin-top: .3em; }
.entry-content .wp-block-image.alignleft img,
.entry-content .wp-block-image.alignright img { max-width: min(380px, 100%); }
.entry-content h2 { margin-top: 1.6em; font-size: clamp(1.6rem, 1vw + 1.1rem, 2rem); }
.entry-content h3 { margin-top: 1.5em; }
.entry-content h4, .entry-content h5, .entry-content h6 { margin-top: 1.4em; }
/* Keep a subheading close to the text it introduces. */
.entry-content :is(h2, h3, h4, h5, h6) + * { margin-top: .35em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .35em; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption, .wp-element-caption { font-size: .92rem; color: var(--c-muted); margin-top: 8px; }
.entry-content blockquote, .wp-block-quote {
	margin: 1.6em 0; padding: 2px 0 2px 22px;
	border-left: 3px solid var(--c-primary);
	font: italic 500 1.35rem/1.45 var(--f-head); color: var(--c-primary);
}
.entry-content blockquote cite { display: block; margin-top: 8px; font: normal .95rem var(--f-body); color: var(--c-muted); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.entry-content th, .entry-content td { padding: 10px 14px; border: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.entry-content th { background: var(--c-tint); color: var(--c-primary); font-weight: 600; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content .wp-block-gallery { gap: 8px; }
.entry-content .wp-block-embed { margin: 1.6em 0; }
.entry-content .wp-block-file {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
	padding: 14px 18px; background: var(--c-tint); border: 1px solid var(--c-line);
}
.entry-content .wp-block-file .wp-block-file__button { padding: .55em 1.1em; border-radius: var(--r); background: var(--c-primary); color: #fff; text-decoration: none; }
.entry-content hr { border: 0; border-top: 1px solid var(--c-line); margin: 2.4em 0; }

.alignwide { max-width: none; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.alignleft { float: left; margin: .3em 1.6em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.6em; }
.aligncenter { margin-left: auto; margin-right: auto; }
@media (max-width: 760px) { .alignleft, .alignright { float: none; margin: 1em 0; } }

/* Contact page map */
.entry-content .contact-columns { gap: clamp(24px, 4vw, 48px); margin-bottom: 2em; }
.contact-map { position: relative; aspect-ratio: 4 / 3; max-width: 100%; border: 1px solid var(--c-line); background: var(--c-tint); }
.contact-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.entry-content .contact-map__links { margin-top: 10px; font-size: .95rem; }
.contact-map__links span { margin: 0 8px; color: var(--c-line); }
.contact-columns .wp-block-column > :first-child { margin-top: 0; }
.contact-columns th { width: 1%; white-space: nowrap; }
.entry-content .wpforms-container { max-width: 760px; }
@media (min-width: 782px) { .contact-columns .contact-map { margin-top: calc(1.6rem + 1.15em); } }

/* Facilities page */
.entry-content .facility-lead { font-size: 1.15rem; color: var(--c-muted); max-width: 46em; }
.entry-content .facility-grid { gap: clamp(20px, 3vw, 32px); margin: 0 0 clamp(20px, 3vw, 32px); }
.entry-content .facility-card { height: 100%; margin: 0; background: var(--c-bg); border: 1px solid var(--c-line); border-top: 3px solid var(--c-accent); display: flex; flex-direction: column; }
.entry-content .facility-card > *, .entry-content .facility-card .wp-block-image { margin-block: 0; }
.entry-content .facility-card .wp-block-image img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.entry-content .facility-card__art { display: grid; place-items: center; aspect-ratio: 5 / 2; margin: 0; background: var(--c-tint); border-bottom: 1px solid var(--c-line); }
.entry-content .facility-card__art svg { width: 108px; height: 108px; padding: 22px; box-sizing: border-box; border-radius: 50%; background: var(--c-bg); border: 1px solid var(--c-line); color: var(--c-primary); fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.entry-content .facility-card__art .ic-a { stroke: var(--c-accent); }
.entry-content .facility-card__art .ic-f { fill: var(--c-accent); stroke: none; }
.entry-content .facility-card__body { padding: 20px 22px 24px; }
.entry-content .facility-card__body > :first-child { margin-top: 0; }
.entry-content .facility-card__body > :last-child { margin-bottom: 0; }
.entry-content .facility-card__tag { margin: 0 0 6px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-accent); }
.entry-content .facility-card h2 { margin: 0 0 10px; font-size: 1.45rem; color: var(--c-primary); }
.entry-content .facility-card p:not(.facility-card__tag) { color: var(--c-text); }

/* Homepage "view more" button */
.section__more { margin: 32px 0 0; text-align: center; }

/* Academics page (tabs and subject layouts) */
.entry-content .acad ul, .entry-content .acad ol { padding-left: 0; }
.acad-lead { font-size: 1.15rem; max-width: 64ch; }
.acad-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin: 28px 0 40px; padding: 0; list-style: none; background: var(--c-line); border: 1px solid var(--c-line); }
.entry-content .acad-stats li { margin: 0; padding: 18px 20px; background: var(--c-bg); }
.acad-stats strong { display: block; font: 600 1.35rem/1.2 var(--f-head); color: var(--c-primary); }
.acad-stats span { color: var(--c-muted); font-size: .95rem; }

.acad-tablist { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 28px; }
.acad-tablist button { appearance: none; margin: 0; padding: 14px 16px; text-align: left; font: inherit; color: var(--c-text); background: var(--c-bg); border: 1px solid var(--c-line); border-top: 3px solid var(--c-line); cursor: pointer; transition: background .15s, border-color .15s; }
.acad-tablist button span { display: block; font: 600 1.15rem/1.2 var(--f-head); color: var(--c-primary); }
.acad-tablist button small { display: block; margin-top: 2px; font-size: .85rem; color: var(--c-muted); }
.acad-tablist button:hover { border-top-color: var(--c-accent); }
.acad-tablist button[aria-selected="true"] { background: var(--c-primary); border-color: var(--c-primary); border-top-color: var(--c-accent); }
.acad-tablist button[aria-selected="true"] span, .acad-tablist button[aria-selected="true"] small { color: #fff; }
.acad-tablist button:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.acad-tablist--pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 8px; }
.acad-tablist--pills button { padding: 8px 18px; border-top-width: 1px; border-radius: 999px; }
.acad-tablist--pills button span { font: 600 1rem/1.2 var(--f-body); }
.acad-tabs:not(.is-tabbed) > .acad-tablist { display: none; }
.acad-tabs:not(.is-tabbed) > .acad-panel + .acad-panel { margin-top: 48px; }

.acad-panel__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--c-line); }
.entry-content .acad-panel__head h2 { margin: 0; }
.acad-panel__head p { margin: 0; color: var(--c-muted); }
.entry-content .acad h3 { margin: 28px 0 12px; font-size: 1.3rem; }
.acad-streams .acad-panel h3 { margin-top: 20px; }

.acad-subjects { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin: 0; list-style: none; }
.entry-content .acad-subjects li { margin: 0; padding: 12px 14px; background: var(--c-bg); border: 1px solid var(--c-line); border-left: 3px solid var(--c-accent); }
.acad-subjects b { display: block; font-weight: 600; color: var(--c-primary); }
.acad-subjects small { display: block; margin-top: 2px; font-size: .88rem; color: var(--c-muted); }
.acad-tag { display: inline-block; margin-top: 6px; padding: 1px 9px; font-size: .78rem; font-weight: 600; color: var(--c-primary); background: var(--c-tint-2); border-radius: 999px; }
.acad-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; list-style: none; }
.entry-content .acad-chips li { margin: 0; padding: 7px 14px; font-weight: 600; color: var(--c-primary); background: var(--c-tint); border: 1px solid var(--c-line); border-radius: 999px; }

.acad-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.acad-col { padding: 18px 20px; background: var(--c-tint); border: 1px solid var(--c-line); border-top: 3px solid var(--c-primary); }
.entry-content .acad-col h4 { margin: 0 0 8px; font: 700 .78rem/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-accent); }
.acad-col ul { margin: 0; list-style: none; }
.entry-content .acad-col li { margin: 0; padding: 7px 0; font-weight: 600; color: var(--c-primary); border-bottom: 1px solid var(--c-line); }
.entry-content .acad-col li:last-child { border-bottom: 0; padding-bottom: 0; }
.acad-note { margin-top: 24px; padding: 14px 18px; background: var(--c-tint); border-left: 3px solid var(--c-primary); }

.acad-ladder { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0; list-style: none; align-items: end; }
.entry-content .acad-ladder li { margin: 0; padding: 14px 12px; background: var(--c-bg); border: 1px solid var(--c-line); border-bottom: 4px solid var(--c-accent); }
.acad-ladder li:nth-child(1) { min-height: 96px; } .acad-ladder li:nth-child(2) { min-height: 112px; } .acad-ladder li:nth-child(3) { min-height: 128px; }
.acad-ladder li:nth-child(4) { min-height: 144px; } .acad-ladder li:nth-child(5) { min-height: 160px; } .acad-ladder li:nth-child(6) { min-height: 176px; background: var(--c-tint); }
.acad-ladder small { display: inline-block; padding: 1px 8px; font-size: .75rem; font-weight: 700; color: #fff; background: var(--c-primary); border-radius: 999px; }
.acad-ladder b { display: block; margin-top: 8px; font: 600 1.15rem/1.2 var(--f-head); color: var(--c-primary); }
.acad-ladder span { display: block; font-size: .85rem; color: var(--c-muted); }
.acad-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 28px 0 0; }
.acad-facts div { padding-top: 12px; border-top: 2px solid var(--c-accent); }
.acad-facts dt { font: 700 .78rem/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.acad-facts dd { margin: 4px 0 0; color: var(--c-text); }

.acad-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 56px; padding: 28px 32px; color: #fff; background: var(--c-primary); border-top: 3px solid var(--c-accent); }
.entry-content .acad-cta h2 { margin: 0 0 4px; color: #fff; font-size: 1.5rem; }
.acad-cta p { margin: 0; color: var(--c-on-dark-muted); }
.acad-cta .btn { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }

@media (max-width: 960px) {
	.acad-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.acad-tablist:not(.acad-tablist--pills) { display: flex; overflow-x: auto; scrollbar-width: thin; }
	.acad-tablist:not(.acad-tablist--pills) button { flex: 0 0 auto; }
	.acad-ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.entry-content .acad-ladder li { min-height: 0 !important; }
	.acad-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.acad-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.entry-content .acad-stats li:last-child { grid-column: 1 / -1; }
	.acad-subjects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.acad-cols { grid-template-columns: minmax(0, 1fr); }
	.acad-ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.acad-cta { padding: 24px; }
}

/* News page: latest 6 featured (1 wide, 2 medium, 3 regular) */
.news-latest { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px; }
.news-latest .card { grid-column: span 2; }
.news-latest .card:nth-child(2), .news-latest .card:nth-child(3) { grid-column: span 3; }
.news-latest .card:nth-child(2) .card__media img, .news-latest .card:nth-child(3) .card__media img,
.news-latest .card:nth-child(2) .media-fallback, .news-latest .card:nth-child(3) .media-fallback { aspect-ratio: 16 / 9; }
.news-latest .card--lead { grid-column: 1 / -1; flex-direction: row; border-top: 3px solid var(--c-accent); }
.news-latest .card--lead .card__media { flex: 0 0 58%; }
.news-latest .card--lead .card__media img, .news-latest .card--lead .media-fallback { aspect-ratio: 16 / 10; height: auto; }
.news-latest .card--lead .card__body { justify-content: center; padding: 32px 40px; }
.news-latest .card--lead .card__title { font-size: 2rem; }
.news-latest .card--lead .card__excerpt { -webkit-line-clamp: 5; font-size: 1.05rem; }
.news-more .card__title { font-size: 1.2rem; }
.news-more .card__excerpt { -webkit-line-clamp: 2; font-size: .95rem; }
.news-more__title { margin: 56px 0 24px; padding-top: 32px; border-top: 1px solid var(--c-line); font-size: 1.6rem; }
@media (max-width: 960px) {
	.news-latest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.news-latest .card, .news-latest .card:nth-child(2), .news-latest .card:nth-child(3) { grid-column: span 1; }
	.news-latest .card--lead { grid-column: 1 / -1; flex-direction: column; }
	.news-latest .card--lead .card__media { flex: none; }
	.news-latest .card--lead .card__body { padding: 22px 26px 28px; }
}
@media (max-width: 600px) {
	.news-latest { grid-template-columns: minmax(0, 1fr); }
	.news-latest .card--lead .card__title { font-size: 1.6rem; }
	.news-latest .card--lead .card__body { padding: 18px 22px 24px; }
}

/* News page */
.filter ul { display: flex; flex-wrap: wrap; gap: 0 28px; margin: 0 0 32px; padding: 0; list-style: none; border-bottom: 1px solid var(--c-line); }
.filter a { display: block; padding: 10px 0; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--c-muted); font-weight: 600; text-decoration: none; }
.filter a:hover { color: var(--c-primary); }
.filter a[aria-current="page"] { color: var(--c-primary); border-bottom-color: var(--c-primary); }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination .page-numbers {
	display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px;
	border: 1px solid var(--c-line); border-radius: var(--r);
	color: var(--c-primary); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums;
}
.pagination .page-numbers.current { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--c-primary); }

.post-navigation { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--c-line); }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.post-navigation .nav-next { grid-column: 2; text-align: right; }
.post-navigation a { display: block; text-decoration: none; }
.post-nav__label { display: block; font-size: .88rem; color: var(--c-muted); }
.post-nav__title { display: block; margin-top: 2px; font: 600 1.15rem/1.3 var(--f-head); color: var(--c-primary); }
.post-navigation a:hover .post-nav__title { text-decoration: underline; }
@media (max-width: 600px) {
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { grid-column: 1; text-align: left; }
}

.search-form { display: flex; gap: 8px; max-width: 540px; margin: 0 0 24px; }
.search-form input {
	flex: 1; min-width: 0; padding: 11px 14px;
	border: 1px solid var(--c-line); border-radius: var(--r);
	font: inherit; color: var(--c-text);
}
.search-form input:focus { outline: none; border-color: var(--c-primary); }
.empty { color: var(--c-muted); }

/* ==================================================================
   Admissions announcement (Customizer switch)
   ================================================================== */
.adm-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-accent) 60%, transparent); animation: adm-pulse 1.8s infinite; }
@keyframes adm-pulse { 70% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--c-accent) 0%, transparent); } 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-accent) 0%, transparent); } }

.navbar .menu > li.menu-item--admissions { margin-left: auto; display: flex; align-items: center; }
.navbar .menu > li.menu-item--admissions > a { display: inline-flex; align-items: center; gap: 9px; margin: 7px 0; padding: 8px 14px; border: 1px solid var(--c-accent); border-radius: var(--r); background: transparent; color: #fff; font-weight: 600; }
.navbar .menu > li.menu-item--admissions > a:hover { background: var(--c-primary-dark); }
.adm-open { padding: 1px 8px; border-radius: 999px; background: var(--c-accent); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.adm-mobile { display: none; align-items: center; gap: 8px; margin-left: auto; margin-right: 10px; padding: 8px 12px; border-radius: var(--r); background: var(--c-primary); color: #fff; font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; }

.adm-banner { background: var(--c-primary-dark); color: #fff; border-bottom: 4px solid var(--c-accent); }
.adm-banner__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; padding-top: 30px; padding-bottom: 30px; }
.adm-banner__badge { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.adm-banner__text { flex: 1 1 380px; }
.adm-banner__text h2 { margin: 0 0 4px; color: #fff; font-size: 1.9rem; }
.adm-banner__text p { margin: 0; color: var(--c-on-dark-muted); }
.adm-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.adm-banner .adm-banner__btn { background: var(--c-accent); border-color: var(--c-accent); color: #fff; font-weight: 600; }
.adm-banner .adm-banner__btn:hover { background: #fff; border-color: #fff; color: var(--c-primary); }
.adm-banner .btn .icon { width: 18px; height: 18px; }

@media (max-width: 960px) {
	.adm-mobile { display: inline-flex; }
	.navbar .menu > li.menu-item--admissions { margin: 10px 0 0; border-bottom: 0; }
	.navbar .menu > li.menu-item--admissions > a { flex: 0 0 auto; padding: 10px 16px; }
}
@media (max-width: 600px) {
	.adm-mobile { padding: 7px 10px; font-size: .85rem; margin-right: 6px; }
	.adm-banner__inner { padding-top: 24px; padding-bottom: 24px; }
	.adm-banner__text h2 { font-size: 1.55rem; }
}
@media (max-width: 400px) { .adm-mobile .adm-dot { display: none; } }

/* ==================================================================
   Footer
   ================================================================== */
.site-footer { background: var(--c-primary-dark); color: var(--c-on-dark-muted); border-top: 4px solid var(--c-accent); font-size: .97rem; }
.site-footer__grid {
	display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 40px;
	padding-top: clamp(48px, 6vw, 72px); padding-bottom: 48px;
}
.site-footer .brand { gap: 14px; }
.site-footer .brand__logo { height: 64px; }
.site-footer .brand__name { color: #fff; font-size: 1.8rem; }
.site-footer .brand__place { color: #fff; font-size: 1.15rem; }
.site-footer__brand p { margin: 14px 0 14px; max-width: 36ch; }
.site-footer__brand .site-footer__tagline { margin: 16px 0 0; color: #fff; font-weight: 600; }
.site-footer__brand .site-footer__tagline + p { margin-top: 6px; }
.site-footer .social { margin-left: -8px; color: #fff; }
.site-footer__title { margin: 0 0 16px; font: 600 1.02rem/1.3 var(--f-body); color: #fff; }
.site-footer__contact { font-style: normal; }
.site-footer__contact p { margin: 0 0 10px; }
.site-footer__label { display: block; font-size: .85rem; color: var(--c-on-dark-muted); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__links, .site-footer__news { margin: 0; padding: 0; list-style: none; }
.site-footer__links li { margin-bottom: 9px; }
.site-footer__news li { margin-bottom: 14px; }
.site-footer__news a { display: block; line-height: 1.4; }
.site-footer__news .post-date { color: var(--c-on-dark-muted); font-size: .85rem; margin-top: 2px; }
.site-footer__base { border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; }
.site-footer__base-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 18px; padding-bottom: 18px; }
.site-footer__base p { margin: 0; }

@media (max-width: 960px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* Justified paragraph style (Styles panel in the editor). Left aligned on phones,
   where justified text leaves large gaps between words. */
.is-style-justified { text-align: justify; }
@media (max-width: 600px) { .is-style-justified { text-align: left; } }

/* ==================================================================
   Accessibility options and back to top
   ================================================================== */
.a11y { position: fixed; z-index: 90; left: max(16px, env(safe-area-inset-left, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
.a11y__toggle,
.to-top {
	display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
	border: 2px solid #fff; border-radius: 50%;
	background: var(--c-primary); color: #fff; cursor: pointer;
	box-shadow: 0 4px 14px rgba(10, 20, 40, .28);
}
.a11y__toggle:hover, .to-top:hover { background: var(--c-primary-dark); }
.a11y__toggle .icon { width: 26px; height: 26px; }
.to-top { position: fixed; z-index: 90; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
.to-top[hidden], .a11y__panel[hidden] { display: none; }
.to-top .icon { width: 22px; height: 22px; stroke-width: 2.2; }

.a11y__panel {
	position: absolute; left: 0; bottom: 60px;
	width: 290px; max-width: calc(100vw - 32px); padding: 16px;
	background: #fff; color: var(--c-text);
	border: 1px solid var(--c-line); border-radius: var(--r);
	box-shadow: 0 12px 32px rgba(10, 20, 40, .2);
	font: 15px/1.4 var(--f-body);
}
.a11y__title { margin: 0 0 12px; font: 600 20px/1.2 var(--f-head); color: var(--c-primary); }
.a11y__size { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--c-line); }
.a11y__size-label { font-weight: 600; }
.a11y__size-controls { display: flex; align-items: center; gap: 4px; }
.a11y__size button {
	width: 38px; height: 36px; border: 1px solid var(--c-line); border-radius: var(--r);
	background: #fff; color: var(--c-primary); font: 700 15px/1 var(--f-body); cursor: pointer;
}
.a11y__size button:hover { border-color: var(--c-primary); }
.a11y__size-value { min-width: 50px; text-align: center; font-size: 14px; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.a11y__opts { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.a11y__opt {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
	padding: 9px 12px; border: 1px solid var(--c-line); border-radius: var(--r);
	background: #fff; color: var(--c-text); font: 600 15px/1.2 var(--f-body); text-align: left; cursor: pointer;
}
.a11y__opt::after { content: "Off"; font-size: 13px; font-weight: 600; color: var(--c-muted); }
.a11y__opt:hover { border-color: var(--c-primary); }
.a11y__opt[aria-pressed="true"] { border-color: var(--c-primary); background: var(--c-tint-2); color: var(--c-primary); }
.a11y__opt[aria-pressed="true"]::after { content: "On"; color: var(--c-primary); }
.a11y__reset { display: block; margin: 12px auto 0; padding: 4px 8px; border: 0; background: none; color: var(--c-primary); font: 600 14px var(--f-body); text-decoration: underline; cursor: pointer; }

/* Modes chosen by the visitor */
html.a11y-contrast {
	--c-text: #000; --c-muted: #1f1f1f; --c-line: #5c5c5c;
	--c-primary: #0a1733; --c-tint: #fff; --c-tint-2: #ececec;
	--c-on-dark-muted: #fff;
}
html.a11y-contrast body { background: #fff; color: #000; }
html.a11y-contrast .hero__panel { background: #000; }
html.a11y-contrast .card, html.a11y-contrast .quicklinks__item, html.a11y-contrast .section-nav { border-width: 2px; }
html.a11y-contrast a:not(.btn) { text-decoration: underline; }
html.a11y-links a:not(.btn) { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: .18em; }
html.a11y-links a:not(.btn):hover, html.a11y-links a:not(.btn):focus { background: #ffe066; color: #000 !important; }
html.a11y-font body, html.a11y-font body * { font-family: Verdana, Tahoma, "Segoe UI", Arial, sans-serif !important; letter-spacing: .01em; }
html.a11y-spacing :is(p, li, dd, td, th, figcaption) { line-height: 1.95 !important; letter-spacing: .04em !important; word-spacing: .12em !important; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* ==================================================================
   Reduced motion and print
   ================================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
	.utility, .navbar, .masthead__search, .nav-toggle, .site-footer, .hero__controls, .post-navigation, .layout__aside, .a11y, .to-top { display: none !important; }
	.page-head { background: none; border: 0; padding: 0 0 16px; }
	.layout { display: block; }
}
