/*
Theme Name: Greenwood 2026
Theme URI: https://greenwood.qa/
Author: Greenwood International School & Kindergarten
Description: Custom theme for Greenwood International School & Kindergarten, Doha. Built on a token-based design system in the school colours (crest green, gold and purple), WCAG 2.2 AA, self-hosted fonts and responsive AVIF/WebP images.
Version: 2.2.0
Requires at least: 6.3
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: greenwood
*/

/* All colours, sizes, spacing, shadows and motion come from assets/css/tokens.css. */

/* ==========================================================================
   1. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	background: var(--gw-surface);
	color: var(--gw-ink);
	font-family: var(--gw-font-sans);
	font-size: var(--gw-text-body);
	line-height: var(--gw-leading-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, picture, svg, video { max-width: 100%; }
img { height: auto; display: block; }
picture { display: contents; }
picture > source { display: none; } /* keeps <source> out of grid/flex layouts; image selection is unaffected */
a { color: var(--gw-primary); text-underline-offset: 3px; }
a:hover { color: var(--gw-primary-hover); }
h1, h2, h3, h4, h5, h6 { line-height: var(--gw-leading-snug); }
button { font: inherit; }
main:focus { outline: none; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }

/* Focus: always visible for keyboard users (WCAG 2.4.7 / 2.4.11) */
:focus-visible {
	outline: 3px solid var(--gw-focus);
	outline-offset: 3px;
	border-radius: 4px;
}
.gw-on-dark :focus-visible,
.gw-hero :focus-visible,
.gw-band--secondary :focus-visible,
.gw-cta :focus-visible,
.gw-footer :focus-visible,
.gw-topbar :focus-visible,
.gw-pagehead :focus-visible { outline-color: var(--gw-focus-on-dark); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
.skip-link:focus {
	position: fixed !important;
	top: var(--gw-space-1); left: var(--gw-space-1);
	z-index: 1000;
	width: auto; height: auto; margin: 0;
	clip: auto; clip-path: none;
	padding: var(--gw-space-1-5) var(--gw-space-2);
	background: var(--gw-surface);
	color: var(--gw-primary);
	font-weight: 700;
	box-shadow: var(--gw-shadow-md);
	border-radius: var(--gw-radius-sm);
}

/* ==========================================================================
   2. Layout and type helpers
   ========================================================================== */
.gw-wrap { max-width: var(--gw-container); margin-inline: auto; padding-inline: var(--gw-gutter); }
.gw-section { padding-block: var(--gw-section-y); }
.gw-section--flush-top { padding-top: 0; }
.gw-tint { background: var(--gw-surface-alt); }
.gw-serif { font-family: var(--gw-font-serif); font-weight: 400; }

.gw-eyebrow {
	display: inline-block;
	font-size: var(--gw-text-caption);
	font-weight: 700;
	letter-spacing: var(--gw-tracking-label);
	text-transform: uppercase;
	color: var(--gw-secondary);
}
.gw-h1, .gw-h2 {
	margin: 0;
	font-family: var(--gw-font-serif);
	font-weight: 400;
	line-height: var(--gw-leading-tight);
	color: var(--gw-primary);
	text-wrap: balance;
}
.gw-h1 { font-size: var(--gw-text-h1); }
.gw-h2 { font-size: var(--gw-text-h2); }
.gw-lead { margin: 0; font-size: var(--gw-text-lead); line-height: 1.7; color: var(--gw-text); text-wrap: pretty; }

.gw-head { display: flex; flex-wrap: wrap; gap: var(--gw-space-2) var(--gw-space-3); align-items: flex-end; justify-content: space-between; margin-bottom: var(--gw-space-5); }
.gw-head__text { display: flex; flex-direction: column; gap: var(--gw-space-1-5); max-width: 680px; }

.gw-split { display: flex; flex-wrap: wrap; gap: var(--gw-space-6) var(--gw-space-7); align-items: center; }
.gw-split--top { align-items: flex-start; }
.gw-split__text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: var(--gw-space-2-5, 20px); align-items: flex-start; }
.gw-split__media { flex: 1.2 1 460px; min-width: 0; }

.gw-photo { width: 100%; object-fit: cover; border-radius: var(--gw-radius-lg); }

/* ==========================================================================
   3. Buttons and links
   ========================================================================== */
.gw-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--gw-space-1);
	min-height: 48px;
	padding: 14px 28px;
	border: 1px solid transparent;
	border-radius: var(--gw-radius-pill);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--gw-duration-base) var(--gw-ease-standard),
		color var(--gw-duration-base) var(--gw-ease-standard),
		transform var(--gw-duration-fast) var(--gw-ease-standard);
}
.gw-btn:active { transform: translateY(1px); }
.gw-btn--accent { background: var(--gw-accent); color: var(--gw-ink); }
.gw-btn--accent:hover { background: var(--gw-accent-hover); color: var(--gw-ink); }
.gw-btn--primary { background: var(--gw-primary); color: #fff; }
.gw-btn--primary:hover { background: var(--gw-primary-hover); color: #fff; }
.gw-btn--ghost { color: #fff; border-color: var(--gw-border-on-dark); font-weight: 600; }
.gw-btn--ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.gw-btn[aria-disabled="true"], .gw-btn:disabled { background: var(--gw-disabled-bg); color: var(--gw-disabled-text); cursor: not-allowed; }

.gw-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	color: var(--gw-primary);
	font-weight: 600;
	text-decoration: none;
	background-image: linear-gradient(var(--gw-accent), var(--gw-accent));
	background-size: 100% 2px;
	background-position: 0 calc(100% - 8px);
	background-repeat: no-repeat;
}
.gw-link .gw-svg { transition: transform var(--gw-duration-base) var(--gw-ease-standard); }
.gw-link:hover .gw-svg { transform: translateX(3px); }
.gw-actions { display: flex; flex-wrap: wrap; gap: var(--gw-space-1-5); }

/* ==========================================================================
   4. Top bar and sticky header
   ========================================================================== */
.gw-topbar { background: var(--gw-secondary); color: #fff; font-size: 14px; }
.gw-topbar .gw-wrap { display: flex; flex-wrap: wrap; gap: var(--gw-space-1) var(--gw-space-3); align-items: center; justify-content: space-between; padding-block: var(--gw-space-1); }
.gw-topbar__info { display: flex; flex-wrap: wrap; gap: 2px var(--gw-space-3); }
.gw-topbar a { color: #fff; text-decoration: none; display: inline-block; padding-block: 6px; }
.gw-topbar a:hover { text-decoration: underline; }
.gw-topbar .gw-topbar__login { color: var(--gw-accent-soft); font-weight: 600; }
@media (max-width: 640px) {
	.gw-topbar { font-size: 13px; }
	.gw-topbar__info li:nth-child(3), .js .gw-topbar__login { display: none; } /* email and login are in the footer and the menu */
	.gw-topbar__info { gap: 0 var(--gw-space-2); }
	.gw-brand__name { font-size: 21px; }
	.gw-brand__sub { font-size: 11.5px; }
	.gw-brand__crest { width: 46px; height: 48px; }
}

.gw-header {
	position: sticky;
	top: 0;
	z-index: var(--gw-z-header);
	background: var(--gw-surface);
	border-bottom: 1px solid var(--gw-line);
	transition: box-shadow var(--gw-duration-base) var(--gw-ease-standard);
}
.admin-bar .gw-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .gw-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .gw-header { top: 0; } }
.gw-header.is-scrolled { box-shadow: var(--gw-shadow-nav); }
.gw-header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--gw-space-3); padding-block: var(--gw-space-1-5); }

.gw-brand { display: flex; align-items: center; gap: var(--gw-space-1-5); text-decoration: none; flex-shrink: 0; }
.gw-brand__crest { width: 56px; height: 58px; object-fit: contain; }
.gw-brand__text { display: flex; flex-direction: column; }
.gw-brand__name { font-family: var(--gw-font-serif); font-size: 24px; color: var(--gw-primary); line-height: 1.1; }
.gw-brand__sub { font-size: var(--gw-text-caption); color: var(--gw-muted); letter-spacing: 0.03em; }

/* Desktop navigation */
.gw-nav { display: flex; align-items: center; gap: var(--gw-space-3); }
.gw-menu { display: flex; align-items: center; gap: 0 var(--gw-space-2-5, 20px); }
.gw-menu > li { position: relative; display: flex; align-items: center; }
.gw-menu > li > a {
	display: block;
	padding: var(--gw-space-1-5) 0;
	color: var(--gw-ink);
	font-size: var(--gw-text-small);
	font-weight: 500;
	text-decoration: none;
	box-shadow: inset 0 -2px 0 transparent;
	transition: box-shadow var(--gw-duration-base) var(--gw-ease-standard), color var(--gw-duration-base);
}
.gw-menu > li > a:hover { color: var(--gw-primary); box-shadow: inset 0 -2px 0 var(--gw-line); }
.gw-menu > li > a[aria-current="page"],
.gw-menu > li.current-menu-ancestor > a,
.gw-menu > li.current-menu-parent > a { color: var(--gw-primary); box-shadow: inset 0 -2px 0 var(--gw-accent); }

.gw-sub-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 28px; height: 28px; margin-left: 2px; padding: 0;
	border: 0; border-radius: var(--gw-radius-sm);
	background: transparent; color: var(--gw-muted);
	cursor: pointer;
}
.gw-sub-toggle:hover { background: var(--gw-surface-alt); color: var(--gw-primary); }

.gw-menu > li > a, .gw-nav__actions .gw-btn { white-space: nowrap; }
.gw-nav__actions .gw-btn { padding-inline: 22px; }

/* Keep the desktop bar on one line between the drawer breakpoint and wide screens */
@media (min-width: 1181px) and (max-width: 1439px) {
	.gw-brand__sub { display: none; }
	.gw-menu { column-gap: var(--gw-space-2); }
	.gw-nav { gap: var(--gw-space-2); }
}
@media (min-width: 1440px) {
	.gw-header .gw-wrap, .gw-topbar .gw-wrap { max-width: 1360px; }
}
.gw-sub-toggle .gw-svg { transition: transform var(--gw-duration-base) var(--gw-ease-standard); }
.gw-sub-toggle[aria-expanded="true"] .gw-svg { transform: rotate(180deg); }

.gw-menu .sub-menu {
	position: absolute;
	top: calc(100% + 4px);
	left: -12px;
	min-width: 248px;
	padding: var(--gw-space-1);
	background: var(--gw-surface);
	border: 1px solid var(--gw-line);
	border-radius: var(--gw-radius-md);
	box-shadow: var(--gw-shadow-md);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity var(--gw-duration-base) var(--gw-ease-standard),
		transform var(--gw-duration-base) var(--gw-ease-standard),
		visibility 0s linear var(--gw-duration-base);
}
.gw-menu > li:hover > .sub-menu,
.gw-menu > li.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}
.gw-menu .sub-menu a {
	display: block;
	padding: 10px var(--gw-space-1-5);
	border-radius: var(--gw-radius-sm);
	color: var(--gw-ink);
	font-size: var(--gw-text-small);
	text-decoration: none;
}
.gw-menu .sub-menu a:hover, .gw-menu .sub-menu a[aria-current="page"] { background: var(--gw-surface-alt); color: var(--gw-primary); }

/* "Get to Our Location" menu item */
.gw-loc { position: relative; }
.gw-sub-toggle.gw-loc__toggle {
	width: auto; height: auto; min-height: 44px; margin: 0;
	padding: 8px 12px 8px 10px;
	gap: 6px;
	border: 1px solid var(--gw-line);
	border-radius: var(--gw-radius-pill);
	color: var(--gw-primary);
	font-size: var(--gw-text-small);
	font-weight: 600;
	white-space: nowrap;
}
.gw-loc__toggle:hover, .gw-loc__toggle[aria-expanded="true"] { background: var(--gw-surface-alt); border-color: var(--gw-primary-raised); }
.gw-loc__toggle .gw-svg:first-child { color: var(--gw-secondary); transform: none !important; }
.gw-menu .gw-loc__panel {
	left: auto; right: 0;
	width: min(640px, 92vw);
	padding: var(--gw-space-2);
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--gw-space-1-5);
}
.gw-menu .gw-loc__panel a.gw-btn { display: inline-flex; padding: 10px 16px; border-radius: var(--gw-radius-pill); color: #fff; font-size: 14px; }
.gw-menu .gw-loc__panel a.gw-btn:hover { background: var(--gw-primary-hover); color: #fff; }
.gw-loc__all {
	grid-column: 1 / -1;
	display: inline-flex !important; align-items: center; gap: 6px;
	justify-self: start;
	font-weight: 600; color: var(--gw-primary) !important;
}

/* Campus location cards */
.gw-loc-card { background: var(--gw-surface); border-radius: var(--gw-radius-lg); }
.gw-loc-card__name { margin: 0; font-size: var(--gw-text-h4); font-weight: 700; color: var(--gw-ink); line-height: 1.3; }
.gw-loc-card__school { margin: 2px 0 0; font-size: var(--gw-text-caption); color: var(--gw-muted); }
.gw-loc-card__actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--gw-space-1) var(--gw-space-1-5); margin-top: var(--gw-space-2); }
.gw-loc-card--compact { display: flex; gap: var(--gw-space-1-5); padding: var(--gw-space-2); background: var(--gw-surface-alt); border-radius: var(--gw-radius-md); }
.gw-loc-card--compact .gw-loc-card__actions { flex-direction: column; align-items: stretch; margin-top: var(--gw-space-1-5); }
.gw-loc-card__pin { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--gw-secondary); color: var(--gw-accent-soft); }
.gw-loc-card__body { min-width: 0; flex: 1; }
.gw-loc-card--full { border: 1px solid var(--gw-line); overflow: hidden; display: flex; flex-direction: column; }
.gw-loc-card--full .gw-loc-card__body { padding: var(--gw-space-3) var(--gw-space-4) var(--gw-space-4); }
.gw-loc-card--full .gw-loc-card__name { font-size: 22px; }
.gw-loc-card__map { position: relative; aspect-ratio: 16 / 9; background: var(--gw-surface-alt); }
.gw-loc-card__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gw-loc-card__details { font-style: normal; margin-top: var(--gw-space-2); display: flex; flex-direction: column; gap: var(--gw-space-1); }
.gw-loc-card__details p { margin: 0; display: flex; gap: 10px; color: var(--gw-text); }
.gw-loc-card__details .gw-svg { flex-shrink: 0; margin-top: 3px; color: var(--gw-secondary); }
.gw-loc-card__details a { font-weight: 600; }
@media (max-width: 600px) { .gw-loc-card--full .gw-loc-card__body { padding: var(--gw-space-3); } }

@media (max-width: 1180px) {
	.js .gw-sub-toggle.gw-loc__toggle {
		width: 100%; min-height: 56px; padding: var(--gw-space-2) 0;
		justify-content: flex-start; gap: 10px;
		border: 0; border-radius: 0; background: none;
		color: var(--gw-ink); font-size: 17px;
	}
	.js .gw-loc__toggle .gw-svg:last-child { margin-left: auto; margin-right: 13px; }
	.js .gw-menu .sub-menu.gw-loc__panel { width: auto; grid-template-columns: 1fr; padding: 0 0 var(--gw-space-2); gap: var(--gw-space-1); }
	.js .gw-menu > li.is-open > .sub-menu.gw-loc__panel { display: grid; }
	.no-js .gw-loc__panel { position: static; width: auto; opacity: 1; visibility: visible; transform: none; grid-template-columns: 1fr; box-shadow: none; }
	.gw-loc-card--compact .gw-loc-card__actions { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
}

/* Small button + copy button */
.gw-btn--sm { min-height: 44px; padding: 10px 18px; font-size: 14px; }
.gw-copy-wrap { display: inline-flex; flex-direction: column; gap: 4px; }
.gw-copy {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--gw-space-1);
	min-height: 44px; padding: 10px 18px;
	border: 1px solid var(--gw-primary); border-radius: var(--gw-radius-pill);
	background: var(--gw-surface); color: var(--gw-primary);
	font-size: 14px; font-weight: 700; cursor: pointer;
	transition: background-color var(--gw-duration-base) var(--gw-ease-standard), color var(--gw-duration-base);
}
.gw-copy:hover { background: var(--gw-surface-alt); }
.gw-copy.is-copied { background: var(--gw-success-tint); border-color: var(--gw-success); color: var(--gw-success); }
.gw-copy__status { font-size: var(--gw-text-caption); font-weight: 600; color: var(--gw-success); min-height: 0; }
.gw-copy__status:empty { display: none; }
.gw-copy__status.is-error { color: var(--gw-ink); font-weight: 500; }
.gw-copy__fallback { width: 100%; min-width: 220px; margin-top: 4px; padding: 8px 10px; border: 1px solid var(--gw-line); border-radius: var(--gw-radius-sm); font: inherit; font-size: 14px; color: var(--gw-ink); background: var(--gw-surface); }
.gw-on-dark .gw-copy, .gw-footer .gw-copy { background: transparent; color: #fff; border-color: var(--gw-border-on-dark); }
.gw-footer .gw-copy:hover { background: rgba(255,255,255,0.1); }
.gw-footer .gw-copy.is-copied { background: transparent; color: var(--gw-accent-soft); border-color: var(--gw-accent-soft); }
.gw-footer .gw-copy__status { color: var(--gw-accent-soft); }
.gw-footer__locations { margin-top: var(--gw-space-6); }
.gw-footer__loc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--gw-space-2); }
.gw-footer .gw-loc-card--compact { background: rgba(255, 255, 255, 0.05); border: 1px solid #2B4547; }
.gw-footer .gw-loc-card--compact .gw-loc-card__actions { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
.gw-footer .gw-loc-card__name { color: #fff; font-family: var(--gw-font-sans); font-size: var(--gw-text-h4); margin: 0; }
.gw-footer .gw-loc-card__school { color: var(--gw-on-dark-muted); }
.gw-footer .gw-loc-card__pin { background: var(--gw-primary-raised); }
.gw-footer .gw-loc-card a.gw-btn { display: inline-flex; padding: 10px 18px; color: var(--gw-ink); }
.gw-footer ul { list-style: none; margin: 0; padding: 0; }
.gw-footer .gw-loc-card a.gw-btn:hover { color: var(--gw-ink); text-decoration: none; }

.gw-nav__actions { display: flex; align-items: center; gap: var(--gw-space-2); }
.gw-nav__login { display: none; }
.gw-menu-btn { display: none; }
.gw-overlay { display: none; }

/* Mobile drawer (only when JavaScript is available; without it the menu simply stacks) */
@media (max-width: 1180px) {
	.gw-header__bar { flex-wrap: wrap; }
	.no-js .gw-nav { width: 100%; flex-direction: column; align-items: stretch; }
	.no-js .gw-menu { flex-direction: column; align-items: stretch; }
	.no-js .gw-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; }

	.js .gw-menu-btn {
		display: inline-flex; align-items: center; justify-content: center;
		width: 48px; height: 48px; padding: 0;
		border: 1px solid var(--gw-line); border-radius: var(--gw-radius-md);
		background: var(--gw-surface); color: var(--gw-primary);
		cursor: pointer;
		position: relative; z-index: calc(var(--gw-z-drawer) + 1);
	}
	.js .gw-header__bar { flex-wrap: nowrap; }
	.gw-brand { min-width: 0; flex-shrink: 1; }
	.js .gw-menu-btn { flex-shrink: 0; }
	.js .gw-menu-btn[aria-expanded="true"] { position: fixed; top: 16px; right: 16px; }
	.admin-bar.js .gw-menu-btn[aria-expanded="true"] { top: 62px; }
	.js .gw-menu-btn__close { display: none; }
	.js .gw-menu-btn[aria-expanded="true"] .gw-menu-btn__open { display: none; }
	.js .gw-menu-btn[aria-expanded="true"] .gw-menu-btn__close { display: inline-flex; }

	.js .gw-nav {
		position: fixed;
		top: 0; right: 0; bottom: 0;
		z-index: var(--gw-z-drawer);
		width: min(380px, 88vw);
		flex-direction: column;
		align-items: stretch;
		gap: var(--gw-space-3);
		padding: 88px var(--gw-space-3) var(--gw-space-4);
		overflow-y: auto;
		overscroll-behavior: contain;
		background: var(--gw-surface);
		box-shadow: var(--gw-shadow-lg);
		transform: translateX(100%);
		visibility: hidden;
		transition: transform var(--gw-duration-slow) var(--gw-ease-emphasized), visibility 0s linear var(--gw-duration-slow);
	}
	.js .gw-nav.is-open { transform: none; visibility: visible; transition-delay: 0s; }
	.js .gw-overlay {
		display: block;
		position: fixed; inset: 0;
		z-index: var(--gw-z-overlay);
		background: rgba(23, 46, 48, 0.55);
	}
	.js .gw-overlay[hidden] { display: none; }
	.gw-drawer-open { overflow: hidden; }

	.js .gw-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.js .gw-menu > li { flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid var(--gw-line); }
	.js .gw-menu > li > a { flex: 1; padding: var(--gw-space-2) 0; font-size: 17px; font-weight: 600; box-shadow: none; }
	.js .gw-sub-toggle { width: 44px; height: 44px; }
	.js .gw-menu .sub-menu {
		position: static; flex-basis: 100%;
		min-width: 0; padding: 0 0 var(--gw-space-1-5) var(--gw-space-1);
		border: 0; box-shadow: none;
		opacity: 1; visibility: visible; transform: none;
		display: none;
	}
	.js .gw-menu > li.is-open > .sub-menu { display: block; }
	.js .gw-menu > li:hover > .sub-menu { display: none; }
	.js .gw-menu > li.is-open:hover > .sub-menu { display: block; }
	.gw-nav__actions { flex-direction: column; align-items: stretch; }
	.gw-nav__login { display: block; text-align: center; padding: var(--gw-space-1-5); font-weight: 600; }
}

/* ==========================================================================
   5. Hero
   ========================================================================== */
.gw-hero { background: var(--gw-primary); color: #fff; overflow: hidden; }
.gw-hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gw-space-6); padding-top: var(--gw-space-10); padding-bottom: calc(var(--gw-space-12) + 8px); }
.gw-hero__text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: var(--gw-space-3); align-items: flex-start; }
.gw-hero .gw-h1 { color: #fff; }
.gw-hero__lead { margin: 0; font-size: var(--gw-text-lead); line-height: 1.6; color: var(--gw-on-dark); max-width: 540px; }
.gw-badge { background: var(--gw-accent); color: var(--gw-ink); font-size: var(--gw-text-caption); font-weight: 700; letter-spacing: 0.06em; padding: var(--gw-space-1) 14px; border-radius: var(--gw-radius-pill); }
.gw-hero__media { flex: 1.1 1 440px; min-width: 0; position: relative; }
.gw-hero__img { width: 100%; height: clamp(300px, 34vw, 460px); object-fit: cover; object-position: center 40%; border-radius: var(--gw-radius-xl); box-shadow: var(--gw-shadow-lg); }
.gw-hero__seal {
	position: absolute; left: -20px; bottom: -28px;
	display: flex; align-items: center; gap: var(--gw-space-1-5);
	padding: var(--gw-space-1-5) 18px var(--gw-space-1-5) var(--gw-space-1-5);
	background: var(--gw-surface); color: var(--gw-primary);
	border-radius: 18px; box-shadow: var(--gw-shadow-md);
	font-size: 12px; font-weight: 700; letter-spacing: 0.12em; line-height: 1.4;
}
.gw-hero__seal img { width: 58px; height: 60px; object-fit: contain; }
.gw-hero--centered .gw-hero__inner { justify-content: center; text-align: center; }
.gw-hero--centered .gw-hero__text { align-items: center; flex-basis: 100%; max-width: 820px; }
.gw-hero--centered .gw-hero__lead { margin-inline: auto; }
@media (max-width: 640px) {
	.gw-hero__inner { padding-top: var(--gw-space-7); padding-bottom: var(--gw-space-10); gap: var(--gw-space-4); }
	.gw-hero__seal { left: 12px; bottom: -24px; padding: var(--gw-space-1) 14px var(--gw-space-1) var(--gw-space-1); font-size: 11px; }
	.gw-hero__seal img { width: 44px; height: 46px; }
}

/* Facts strip */
.gw-facts { margin-top: -44px; position: relative; }
.gw-facts__card { background: var(--gw-surface); border-radius: var(--gw-radius-lg); box-shadow: var(--gw-shadow-md); padding: var(--gw-space-4); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--gw-space-3); }
.gw-fact { display: flex; flex-direction: column; margin: 0; }
.gw-fact dt { order: 2; font-size: var(--gw-text-small); color: var(--gw-muted); }
.gw-fact dd { order: 1; margin: 0; font-family: var(--gw-font-serif); font-size: clamp(28px, 2.4vw, 36px); color: var(--gw-secondary); line-height: 1.2; }

/* ==========================================================================
   6. Feature grid (cards and bento)
   ========================================================================== */
.gw-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--gw-space-3); }
.gw-features--bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gw-features--bento .gw-feature:first-child { grid-column: span 2; grid-row: span 2; }
.gw-features--bento .gw-feature:first-child h3 { font-size: var(--gw-text-h2); font-family: var(--gw-font-serif); font-weight: 400; color: var(--gw-primary); }
@media (max-width: 1024px) { .gw-features--bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .gw-features--bento { grid-template-columns: 1fr; } .gw-features--bento .gw-feature:first-child { grid-column: auto; grid-row: auto; } }

.gw-feature {
	position: relative;
	display: flex; flex-direction: column; gap: 14px;
	padding: 28px;
	background: var(--gw-surface);
	border: 1px solid transparent;
	border-radius: var(--gw-radius-lg);
	transition: box-shadow var(--gw-duration-base) var(--gw-ease-standard), transform var(--gw-duration-base) var(--gw-ease-standard), border-color var(--gw-duration-base);
}
.gw-tint .gw-feature { background: var(--gw-surface); }
.gw-section:not(.gw-tint) .gw-feature { background: var(--gw-surface-alt); }
.gw-feature:has(a:hover) { box-shadow: var(--gw-shadow-md); transform: translateY(-2px); }
.gw-feature h3 { margin: 0; font-size: var(--gw-text-h3); color: var(--gw-ink); }
.gw-feature h3 a { color: inherit; text-decoration: none; }
.gw-feature h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; } /* whole card is clickable, one link for screen readers */
.gw-feature h3 a:focus-visible { outline: none; }
.gw-feature:has(h3 a:focus-visible) { outline: 3px solid var(--gw-focus); outline-offset: 3px; }
.gw-feature p { margin: 0; font-size: var(--gw-text-small); line-height: 1.6; color: var(--gw-text); }
.gw-feature__icon { width: 48px; height: 48px; border-radius: var(--gw-radius-md); display: flex; align-items: center; justify-content: center; background: var(--gw-primary); color: var(--gw-accent-soft); }
.gw-feature--secondary .gw-feature__icon { background: var(--gw-secondary); }

/* Plain list of reasons with a gold rule */
.gw-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px var(--gw-space-4); flex: 2 1 520px; min-width: 0; }
.gw-why > div { padding-top: var(--gw-space-2); border-top: 3px solid var(--gw-accent); }
.gw-why h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 var(--gw-space-1); font-size: var(--gw-text-h4); }
.gw-why h3 .gw-svg { color: var(--gw-secondary); flex-shrink: 0; }
.gw-why p { margin: 0; font-size: var(--gw-text-small); color: var(--gw-text); }

/* Award */
.gw-award-badge { display: inline-flex; align-items: center; gap: var(--gw-space-1); background: var(--gw-accent-tint); color: var(--gw-accent-ink); font-size: var(--gw-text-caption); font-weight: 700; letter-spacing: 0.08em; padding: var(--gw-space-1) 14px; border-radius: var(--gw-radius-pill); }
.gw-award-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gw-space-2); }
.gw-award-grid img { width: 100%; height: 252px; object-fit: cover; border-radius: var(--gw-radius-lg); }
.gw-award-grid img.gw-award-main { grid-row: span 2; height: 520px; object-position: center 58%; }
@media (max-width: 600px) {
	.gw-award-grid img { height: 182px; }
	.gw-award-grid img.gw-award-main { height: 380px; }
}

/* Gallery (bento) */
.gw-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 240px; gap: var(--gw-space-2); margin: 0; }
.gw-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.gw-gallery .gw-g-a { grid-column: span 2; grid-row: span 2; }
.gw-gallery .gw-g-wide { grid-column: span 2; }
@media (max-width: 700px) {
	.gw-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; gap: 10px; }
	.gw-gallery .gw-g-a { grid-row: span 1; }
	.gw-gallery .gw-g-a, .gw-gallery .gw-g-wide { grid-column: span 2; }
}

/* ==========================================================================
   7. Admissions band, FAQ, campuses, news, CTA
   ========================================================================== */
.gw-band--secondary { background: var(--gw-secondary); color: #fff; }
.gw-band--secondary .gw-eyebrow { color: var(--gw-accent-soft); }
.gw-band--secondary .gw-h2 { color: #fff; }
.gw-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: step; }
.gw-step { background: var(--gw-secondary-raised); border-radius: var(--gw-radius-lg); padding: var(--gw-space-3); }
.gw-step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font-family: var(--gw-font-serif); font-size: 36px; color: var(--gw-accent-soft); line-height: 1.2; }
.gw-step h3 { margin: var(--gw-space-1) 0; font-size: var(--gw-text-h4); color: #fff; }
.gw-step p { margin: 0; font-size: var(--gw-text-small); color: var(--gw-on-secondary); }
.gw-quicklinks { display: flex; flex-wrap: wrap; gap: var(--gw-space-1) 28px; margin-top: var(--gw-space-4); }
.gw-quicklinks a { color: var(--gw-accent-soft); font-weight: 600; text-decoration: none; display: inline-block; padding-block: 10px; }
.gw-quicklinks a:hover { color: #fff; text-decoration: underline; }

/* FAQ accordion (native <details>: keyboard and screen reader friendly by default) */
.gw-faq { display: flex; flex-direction: column; gap: var(--gw-space-1-5); max-width: 860px; }
.gw-faq__item { background: var(--gw-surface); border: 1px solid var(--gw-line); border-radius: var(--gw-radius-md); }
.gw-faq__item summary {
	display: flex; align-items: center; justify-content: space-between; gap: var(--gw-space-2);
	min-height: 56px; padding: var(--gw-space-2) 20px;
	font-weight: 600; font-size: 17px; color: var(--gw-ink);
	cursor: pointer; list-style: none;
	border-radius: var(--gw-radius-md);
}
.gw-faq__item summary::-webkit-details-marker { display: none; }
.gw-faq__item summary:hover { color: var(--gw-primary); }
.gw-faq__icon { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--gw-surface-alt); color: var(--gw-primary); transition: transform var(--gw-duration-base) var(--gw-ease-standard), background-color var(--gw-duration-base); }
.gw-faq__item[open] .gw-faq__icon { transform: rotate(45deg); background: var(--gw-accent); color: var(--gw-ink); }
.gw-faq__answer { padding: 0 20px 20px; color: var(--gw-text); font-size: var(--gw-text-small); line-height: 1.7; }
.gw-faq__answer p { margin: 0 0 var(--gw-space-1); }
.gw-faq__answer a { font-weight: 600; }
@supports (interpolate-size: allow-keywords) {
	.gw-faq__item { interpolate-size: allow-keywords; }
	.gw-faq__item::details-content { height: 0; overflow: clip; transition: height var(--gw-duration-slow) var(--gw-ease-standard), content-visibility var(--gw-duration-slow) allow-discrete; }
	.gw-faq__item[open]::details-content { height: auto; }
}

.gw-campuses { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.gw-campus { border: 1px solid var(--gw-line); border-radius: var(--gw-radius-xl); padding: var(--gw-space-4); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; font-style: normal; }
.gw-campus h3 { margin: 0; font-size: 22px; }
.gw-campus p { margin: 0; color: var(--gw-text); display: flex; gap: 10px; }
.gw-campus .gw-svg { flex-shrink: 0; margin-top: 3px; color: var(--gw-secondary); }
.gw-campus a { font-weight: 600; }

.gw-news { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gw-space-3); }
.gw-news-card { position: relative; background: var(--gw-surface); border-radius: var(--gw-radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow var(--gw-duration-base) var(--gw-ease-standard), transform var(--gw-duration-base) var(--gw-ease-standard); }
.gw-news-card:has(a:hover) { box-shadow: var(--gw-shadow-md); transform: translateY(-2px); }
.gw-news-card:has(a:focus-visible) { outline: 3px solid var(--gw-focus); outline-offset: 3px; }
.gw-news-card img, .gw-news-card .gw-news-ph { width: 100%; height: 210px; object-fit: cover; background: #E6ECE8; }
.gw-news-card__body { padding: 22px var(--gw-space-3) 26px; display: flex; flex-direction: column; gap: 6px; }
.gw-news-card time, .gw-news-card .gw-news-tag { font-size: var(--gw-text-caption); font-weight: 600; color: var(--gw-secondary); }
.gw-news-card h3 { margin: 0; font-size: var(--gw-text-h4); }
.gw-news-card h3 a { color: var(--gw-ink); text-decoration: none; }
.gw-news-card h3 a::after { content: ''; position: absolute; inset: 0; }
.gw-news-card h3 a:focus-visible { outline: none; }

/* Facebook feed */
.gw-fb {
	position: relative;
	width: 100%;
	max-width: 500px;
	margin-inline: auto;
	background: var(--gw-surface);
	border-radius: var(--gw-radius-lg);
	box-shadow: var(--gw-shadow-sm);
	overflow: hidden;
	display: flex;
	justify-content: center;
}
.gw-fb iframe { display: block; max-width: 100%; position: relative; z-index: 1; }
.gw-fb__placeholder {
	position: absolute; inset: 0;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--gw-space-1);
	color: var(--gw-muted); text-align: center; padding: var(--gw-space-3);
}
.gw-fb__placeholder .gw-svg { color: var(--gw-primary); }
.gw-fb__placeholder p { margin: 0; font-weight: 600; color: var(--gw-ink); }
.gw-fb__placeholder a { font-weight: 600; display: inline-block; padding-block: 8px; }
/* The placeholder stays underneath the iframe: Facebook's feed paints over it, and if Facebook is
   blocked (ad blocker, restricted page) visitors still see the link instead of an empty box. */
.gw-prose .gw-fb-embed .gw-section { padding-block: var(--gw-space-3); }
.gw-prose .gw-fb-embed .gw-wrap { padding-inline: 0; }
.gw-prose .gw-fb-embed .gw-h2 { margin: 0; }

.gw-cta { background: var(--gw-primary); border-radius: 28px; padding: var(--gw-space-7) var(--gw-space-5); display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; color: #fff; }
.gw-cta h2 { color: #fff; margin: 0 0 10px; font-family: var(--gw-font-serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 36px); line-height: 1.15; }
.gw-cta p { margin: 0; color: var(--gw-on-dark); font-size: 17px; }
@media (max-width: 600px) { .gw-cta { padding: var(--gw-space-5) var(--gw-space-3); } }

/* ==========================================================================
   8. Footer
   ========================================================================== */
.gw-footer { background: var(--gw-surface-inverse); color: var(--gw-on-dark-muted); font-size: var(--gw-text-small); }
.gw-footer .gw-wrap { padding-top: var(--gw-space-8); padding-bottom: var(--gw-space-4); }
.gw-footer__grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: var(--gw-space-4); }
@media (max-width: 900px) { .gw-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .gw-footer__grid { grid-template-columns: 1fr; } }
.gw-footer h2 { margin: 0 0 var(--gw-space-1-5); color: var(--gw-accent-soft); font-family: var(--gw-font-sans); font-size: var(--gw-text-small); font-weight: 700; }
.gw-footer ul { display: flex; flex-direction: column; gap: 2px; }
.gw-footer a { color: var(--gw-on-dark-muted); text-decoration: none; display: inline-block; padding-block: 5px; }
.gw-footer a:hover { color: #fff; text-decoration: underline; }
.gw-footer__brand { display: flex; flex-direction: column; gap: 10px; }
.gw-footer__brand img { width: 77px; height: 80px; object-fit: contain; }
.gw-footer__name { font-family: var(--gw-font-serif); font-size: 24px; color: #fff; }
.gw-footer__motto { font-weight: 600; color: var(--gw-accent-soft); letter-spacing: 0.08em; font-size: var(--gw-text-caption); }
.gw-footer__bottom { border-top: 1px solid #2B4547; margin-top: var(--gw-space-5); padding-top: var(--gw-space-3); display: flex; flex-wrap: wrap; gap: var(--gw-space-1-5) var(--gw-space-3); justify-content: space-between; align-items: center; }
.gw-footer__legal { display: flex; flex-wrap: wrap; gap: var(--gw-space-1) var(--gw-space-3); }
.gw-social { display: flex; flex-direction: row !important; gap: var(--gw-space-3) !important; }

/* ==========================================================================
   9. Inner pages and rich text (.gw-prose)
   ========================================================================== */
.gw-pagehead { background: var(--gw-primary); color: #fff; padding-block: var(--gw-space-7); }
.gw-pagehead .gw-h1 { color: #fff; font-size: clamp(32px, 4.4vw, 46px); }
.gw-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--gw-space-1-5); font-size: 14px; color: var(--gw-accent-soft); }
.gw-crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--gw-on-dark); }
.gw-crumbs a { color: var(--gw-accent-soft); text-decoration: none; display: inline-block; padding-block: 4px; }
.gw-crumbs a:hover { text-decoration: underline; }
.gw-crumbs [aria-current] { color: var(--gw-on-dark); }
.gw-content { padding-block: var(--gw-space-7) var(--gw-space-10); }

.gw-prose { max-width: var(--gw-container-prose); font-size: 17px; line-height: 1.75; color: var(--gw-text); }
.gw-prose > * + * { margin-top: 1.1em; }
.gw-prose > :first-child { margin-top: 0; }
.gw-prose h2, .gw-prose h3, .gw-prose h4, .gw-prose h5, .gw-prose h6 { color: var(--gw-primary); margin: 1.8em 0 0.5em; line-height: var(--gw-leading-snug); }
.gw-prose h2 { font-family: var(--gw-font-serif); font-weight: 400; font-size: var(--gw-text-h2); line-height: var(--gw-leading-tight); }
.gw-prose h3 { font-size: var(--gw-text-h3); }
.gw-prose h4 { font-size: var(--gw-text-h4); }
.gw-prose h5 { font-size: var(--gw-text-h5); }
.gw-prose h6 { font-size: var(--gw-text-h6); text-transform: uppercase; letter-spacing: var(--gw-tracking-label); }
.gw-prose a { color: var(--gw-primary); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gw-accent); text-decoration-thickness: 2px; }
.gw-prose a:hover { text-decoration-color: var(--gw-primary); }
.gw-prose strong { color: var(--gw-ink); }
.gw-prose ul, .gw-prose ol { padding-left: 1.4em; }
.gw-prose li + li { margin-top: 0.4em; }
.gw-prose li::marker { color: var(--gw-secondary); }
.gw-prose img { border-radius: var(--gw-radius-md); }
.gw-prose figure { margin-inline: 0; }
.gw-prose figcaption, .gw-prose .wp-caption-text { font-size: var(--gw-text-caption); color: var(--gw-muted); margin-top: var(--gw-space-1); }
.gw-prose blockquote { margin-inline: 0; padding: var(--gw-space-1) 0 var(--gw-space-1) var(--gw-space-3); border-left: 3px solid var(--gw-accent); font-family: var(--gw-font-serif); font-size: 22px; line-height: 1.5; color: var(--gw-primary); }
.gw-prose blockquote cite { display: block; margin-top: var(--gw-space-1); font-family: var(--gw-font-sans); font-size: var(--gw-text-small); font-style: normal; color: var(--gw-muted); }
.gw-prose hr { border: 0; border-top: 1px solid var(--gw-line); margin-block: 2em; }
.gw-prose table { width: 100%; border-collapse: collapse; font-size: var(--gw-text-small); display: block; overflow-x: auto; }
.gw-prose th, .gw-prose td { border: 1px solid var(--gw-line); padding: 10px 14px; text-align: left; vertical-align: top; }
.gw-prose th { background: var(--gw-surface-alt); color: var(--gw-ink); }
.gw-prose tbody tr:nth-child(even) td { background: #FAFBFA; }
.gw-prose code { font-family: var(--gw-font-mono); font-size: 0.9em; background: var(--gw-surface-alt); padding: 2px 6px; border-radius: 6px; }
.gw-prose pre { background: var(--gw-surface-inverse); color: var(--gw-on-dark); padding: var(--gw-space-2); border-radius: var(--gw-radius-md); overflow-x: auto; }
.gw-prose pre code { background: none; padding: 0; color: inherit; }
/* Callouts: add class gw-callout (+ is-info / is-success / is-warning / is-error) to a Group or Paragraph block */
.gw-callout { padding: var(--gw-space-2) 20px; border-radius: var(--gw-radius-md); background: var(--gw-accent-tint); color: var(--gw-ink); border-left: 4px solid var(--gw-accent); }
.gw-callout.is-info { background: var(--gw-info-tint); border-color: var(--gw-info); }
.gw-callout.is-success { background: var(--gw-success-tint); border-color: var(--gw-success); }
.gw-callout.is-warning { background: var(--gw-warning-tint); border-color: var(--gw-warning); }
.gw-callout.is-error { background: var(--gw-error-tint); border-color: var(--gw-error); }
.gw-prose .wp-block-button__link { border-radius: var(--gw-radius-pill); font-weight: 700; text-decoration: none; }
.gw-prose .alignwide { max-width: var(--gw-container); }
.gw-prose--wide { max-width: none; }
.alignleft { float: left; margin: 0 var(--gw-space-3) var(--gw-space-2) 0; }
.alignright { float: right; margin: 0 0 var(--gw-space-2) var(--gw-space-3); }
.aligncenter { display: block; margin-inline: auto; }

.gw-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gw-space-3); }
.gw-pagination { margin-top: var(--gw-space-5); }
.gw-pagination .nav-links { display: flex; flex-wrap: wrap; gap: var(--gw-space-1); }
.gw-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: var(--gw-radius-sm); background: var(--gw-surface); text-decoration: none; font-weight: 600; }
.gw-pagination .page-numbers.current { background: var(--gw-primary); color: #fff; }

/* ==========================================================================
   10. Motion safety and print
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
	.gw-feature:has(a:hover), .gw-news-card:has(a:hover) { transform: none; }
}
@media print {
	.gw-topbar, .gw-header, .gw-footer, .gw-cta, .skip-link { display: none !important; }
	.gw-pagehead { background: none; color: #000; padding: 0 0 16px; }
	.gw-pagehead .gw-h1 { color: #000; }
	body { font-size: 12pt; }
}
