/*
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.0.0
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 {
	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; }

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__name { font: 600 2rem/1 var(--f-head); color: var(--c-primary); }
.brand__place { font: 500 1.35rem/1.15 var(--f-head); color: var(--c-primary); margin-top: 2px; }
.brand__tagline { font-size: .92rem; color: var(--c-muted); margin-top: 6px; }

.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.5rem; }
	.brand__place { font-size: 1.1rem; }
	.brand__tagline { font-size: .85rem; margin-top: 4px; }

	.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.3rem; }
	.brand__place { font-size: 1rem; }
	.brand__tagline { display: none; }
	.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, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.welcome__grid--text { grid-template-columns: minmax(0, 1fr); max-width: 780px; }
.welcome__text { max-width: 64ch; }
.welcome__text p:first-child { font-size: 1.15rem; color: var(--c-text); }
.welcome__body .btn { margin-top: 8px; }
.welcome__figure { margin: 0; max-width: 420px; justify-self: end; }
.welcome__figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; 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: 380px; justify-self: start; }
	.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; }
.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__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); font-size: .98rem;
	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; } }

/* Founder and Rector */
.shepherds { border-top: 1px solid var(--c-line); }
.shepherds__grid { margin-top: 40px; }
.shepherds__grid--message { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.shepherds__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px clamp(32px, 6vw, 72px); margin: 0; padding: 0; list-style: none; }
.shepherds__grid--message .shepherds__list { justify-content: flex-start; gap: 28px; }
.person { width: 220px; }
.shepherds__grid--message .person { width: calc(50% - 14px); max-width: 220px; }
.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.25rem/1.25 var(--f-head); color: var(--c-primary); }
.person__role { margin: 2px 0 0; color: var(--c-muted); }

.shepherds__message { padding-left: clamp(0px, 4vw, 48px); border-left: 1px solid var(--c-line); }
.shepherds__message h3 { font-size: 1.6rem; }
.shepherds__text p { font-size: 1.08rem; }
.shepherds__sign { font: italic 500 1.2rem/1.3 var(--f-head); color: var(--c-primary); }

@media (max-width: 860px) {
	.shepherds__grid--message { grid-template-columns: minmax(0, 1fr); }
	.shepherds__message { padding-left: 0; border-left: 0; padding-top: 28px; border-top: 1px solid var(--c-line); }
}
@media (max-width: 520px) {
	.person { width: calc(50% - 16px); }
	.shepherds__list { 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 { width: 100%; }
.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; }
.entry-content p, .entry-content li { max-width: 72ch; }
.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 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; } }

/* 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); }

/* ==================================================================
   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.6rem; }
.site-footer .brand__place { color: #fff; font-size: 1.15rem; }
.site-footer__brand p { margin: 18px 0 14px; max-width: 36ch; }
.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; } }

/* ==================================================================
   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 { display: none !important; }
	.page-head { background: none; border: 0; padding: 0 0 16px; }
	.layout { display: block; }
}
