/* =========================================================================
   WFCG STAFF INTRANET — main stylesheet
   Design tokens follow the agreed intranet design system:
   WFG Brand Guidelines V3 + action teal sampled from the live group site.
   The three core colours are overridable from the Intranet Settings page
   (inline :root printed after this file).
   ========================================================================= */

:root {
	/* Group palette (guidelines 3.1) */
	--wfcg-primary: #353949;   /* Grey 1 (logo) */
	--wfcg-grey-2:  #4c5a73;
	--wfcg-grey-3:  #eaf3fc;

	/* Action colours (sampled from live site) */
	--wfcg-accent: #377d90;
	--wfcg-accent-dark: color-mix(in srgb, var(--wfcg-accent) 78%, #000000);
	--wfcg-link: #377d90;

	/* Colleges (guidelines 3.2, core logo colours) */
	--wfcg-langley: #db052c;
	--wfcg-bca:     #769718;
	--wfcg-windsor: #0072ba;
	--wfcg-strodes: #0e306e;

	/* Text and surfaces */
	--wfcg-ink:       var(--wfcg-primary);
	--wfcg-ink-muted: var(--wfcg-grey-2);
	--wfcg-surface:   #f6f8fb;
	--wfcg-white:     #ffffff;

	/* Typography (guidelines 2.1–2.2): Mundial DemiBold/Light, Poppins fallback */
	--wfcg-font: "mundial", "Poppins", Arial, sans-serif;
	--wfcg-weight-heading: 600;
	--wfcg-weight-body: 300;

	/* Shape and rhythm */
	--wfcg-radius-btn: 4px;
	--wfcg-radius: 6px;
	--wfcg-shadow-card: 0 8px 24px rgba(53, 57, 73, 0.12);
	--wfcg-container: 1290px;

	/* Header */
	--wfcg-logo-block-width: 140px;
	--wfcg-logo-overhang: 20px;
	--wfcg-header-height: 118px;
}

/* ---- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
body {
	margin: 0;
	font-family: var(--wfcg-font);
	font-weight: var(--wfcg-weight-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--wfcg-ink);
	background: var(--wfcg-white);
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--wfcg-font);
	font-weight: var(--wfcg-weight-heading);
	line-height: 1.05;
	color: var(--wfcg-primary);
	margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
b, strong { font-weight: 600; }
a { color: var(--wfcg-link); }
a:hover { color: var(--wfcg-accent-dark); }
::selection { background: var(--wfcg-accent); color: var(--wfcg-white); }
img, video { max-width: 100%; height: auto; }

/* ---- Accessibility utilities -------------------------------------------- */
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}
.skip-link { position: absolute; left: -9999px; z-index: 999; }
.skip-link:focus {
	clip-path: none;
	width: auto;
	height: auto;
	position: fixed;
	left: 8px;
	top: 8px;
	background: var(--wfcg-white);
	color: var(--wfcg-primary);
	font-weight: 600;
	padding: 10px 16px;
	z-index: 1000;
	border-radius: var(--wfcg-radius-btn);
	box-shadow: var(--wfcg-shadow-card);
}

:focus-visible {
	outline: 3px solid var(--wfcg-windsor);
	outline-offset: 2px;
}
.site-footer :focus-visible,
.hero :focus-visible {
	outline-color: #ffd200;
}

/* ---- Announcement bar ---------------------------------------------------- */
.announcement-bar {
	background: var(--wfcg-grey-3);
	color: var(--wfcg-primary);
	font-size: 0.9rem;
	padding: 10px 24px;
	text-align: center;
}
.announcement-bar p { margin: 0; }
.announcement-bar a { color: var(--wfcg-primary); font-weight: 600; text-decoration: underline; }

/* Thin teal keyline across the very top, like the group website */
.top-bar {
	height: 5px;
	background: var(--wfcg-accent);
}

/* ---- Header --------------------------------------------------------------- */
/* Smart sticky: slides out of view scrolling down, back in scrolling up */
.site-header {
	background: var(--wfcg-white);
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 12px rgba(53, 57, 73, 0.08);
	transition: transform 0.28s ease;
}
.site-header.is-hidden {
	transform: translateY(-105%);
}
.site-header.is-stuck {
	box-shadow: 0 6px 22px rgba(53, 57, 73, 0.16);
}
/* Once stuck mid-page, the badge tucks up into the header bar */
.site-header.is-stuck .site-logo-block--badge {
	margin-top: 0;
	margin-bottom: 0;
	align-self: center;
}
.site-header.is-stuck .site-logo-block--badge img {
	width: 88px;
	transition: width 0.2s ease;
}
/* Keep the sticky header below the WP admin bar for logged-in editors */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar .site-header { top: 46px; }
}
.site-header__inner {
	max-width: var(--wfcg-container);
	margin-inline: auto;
	padding-inline: 24px;
	min-height: var(--wfcg-header-height);
	display: flex;
	align-items: center;
	gap: 28px;
}

/* Logo block: Grey 1, flush to the top, hangs below the header row */
.site-logo-block {
	background: var(--wfcg-primary);
	align-self: flex-start;
	margin-bottom: calc(-1 * var(--wfcg-logo-overhang));
	padding: 18px 16px calc(18px + var(--wfcg-logo-overhang) / 2);
	position: relative;
	z-index: 10;
	flex-shrink: 0;
}
.site-logo-block a { text-decoration: none; display: block; }
.site-logo-block picture { display: block; }
.site-logo-block img {
	display: block;
	width: var(--wfcg-logo-block-width);
	max-height: 170px;
	height: auto;
	object-fit: contain;
}
/* Logo file is already the dark WFCG badge — no extra block behind it.
   The badge sits flush with the top and overhangs below the header,
   like the main group website. */
.site-logo-block--badge {
	background: transparent;
	padding: 0;
	/* Starts up in the teal keyline and hangs over the page, like a bookmark */
	margin-top: -5px;
	margin-bottom: calc(-1 * var(--wfcg-logo-overhang) - 5px);
}
.site-logo-block--badge img {
	width: calc(var(--wfcg-logo-block-width) + 8px);
	max-height: none;
}
.site-logo-block__wordmark {
	display: block;
	width: var(--wfcg-logo-block-width);
	color: var(--wfcg-white);
	font-weight: 600;
	font-size: 1.15rem;
	line-height: 1.1;
	text-transform: uppercase;
}
.site-logo-block__wordmark small { font-size: 0.55em; letter-spacing: 0.06em; }

/* ---- Primary nav: uppercase, Grey 1, teal on hover ------------------------ */
.primary-nav { flex: 1; }
.primary-nav__list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 0;
}
/* Title case, medium weight, grey — matches the group website nav */
.primary-nav__list a {
	display: block;
	padding: 14px 15px;
	font-weight: 500;
	font-size: 1.02rem;
	color: var(--wfcg-grey-2);
	text-decoration: none;
}
.primary-nav__list a:hover,
.primary-nav__list .current-menu-item > a,
.primary-nav__list .current_page_item > a { color: var(--wfcg-accent); }

/* Teal chevron on items with a dropdown, like the main site */
.primary-nav__list > li.menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-left: 8px;
	border-right: 2px solid var(--wfcg-accent);
	border-bottom: 2px solid var(--wfcg-accent);
	transform: rotate(45deg) translate(-2px, -2px);
}

/* Dropdowns: open on hover AND keyboard focus */
.primary-nav__list li { position: relative; }
.primary-nav__list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 20px 0;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 300px;
	background: var(--wfcg-white);
	border-radius: var(--wfcg-radius);
	box-shadow: 0 18px 44px rgba(53, 57, 73, 0.18);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
	z-index: 50;
}
.primary-nav__list li:hover > .sub-menu,
.primary-nav__list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.primary-nav__list .sub-menu a {
	font-size: 1rem;
	font-weight: 500;
	color: var(--wfcg-primary);
	padding: 11px 28px;
}
.primary-nav__list .sub-menu a:hover { color: var(--wfcg-accent); }

/* Long dropdowns flow into columns, like the main site's wide panels.
   9+ items → two columns; 15+ items → three. (Browsers without :has()
   simply keep the single column.) */
.primary-nav__list .sub-menu:has(> li:nth-child(9)) {
	display: grid;
	grid-template-columns: repeat(2, minmax(230px, 1fr));
	min-width: 540px;
	padding: 20px 8px;
}
.primary-nav__list .sub-menu:has(> li:nth-child(15)) {
	grid-template-columns: repeat(3, minmax(210px, 1fr));
	min-width: 740px;
}
.primary-nav__list .sub-menu:has(> li:nth-child(9)) a { padding: 10px 20px; }

/* Panels on the right end of the nav open leftwards so wide ones stay on screen */
.primary-nav__list > li:nth-last-child(-n+2) .sub-menu {
	left: auto;
	right: 0;
}

/* ---- Header actions: featured apps, search, More apps, hamburger ---------- */
.header-actions {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 6px;
}

.wfcg-app__icon,
.wfcg-app__monogram {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 0.95rem;
}

/* "More apps" toggle */
.apps-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: none;
	border: 0;
	padding: 10px 12px;
	font-family: var(--wfcg-font);
	font-weight: 500;
	font-size: 1.02rem;
	color: var(--wfcg-grey-2);
	cursor: pointer;
}
.apps-toggle:hover { color: var(--wfcg-accent); }
.apps-toggle[aria-expanded="true"] { color: var(--wfcg-accent); }
.apps-toggle svg { flex-shrink: 0; }

/* Search toggle */
.search-toggle {
	background: none;
	border: 0;
	padding: 10px;
	color: var(--wfcg-grey-2);
	cursor: pointer;
	display: inline-flex;
}
.search-toggle:hover,
.search-toggle[aria-expanded="true"] { color: var(--wfcg-accent); }

/* Search panel below the header row */
.search-panel {
	border-top: 1px solid rgba(53, 57, 73, 0.12);
	background: var(--wfcg-white);
	padding: 18px 24px;
}
.search-panel__form {
	max-width: 720px;
	margin-inline: auto;
	display: flex;
}
.search-panel__form input[type="search"] {
	flex: 1;
	padding: 12px 16px;
	font: inherit;
	border: 1.5px solid rgba(53, 57, 73, 0.25);
	border-right: 0;
	border-radius: var(--wfcg-radius-btn) 0 0 var(--wfcg-radius-btn);
}
.search-panel__form input[type="search"]:focus {
	outline: none;
	border-color: var(--wfcg-accent);
}
.search-panel__form button {
	padding: 12px 26px;
	font-family: var(--wfcg-font);
	font-weight: 600;
	color: var(--wfcg-white);
	background: var(--wfcg-accent);
	border: 0;
	border-radius: 0 var(--wfcg-radius-btn) var(--wfcg-radius-btn) 0;
	cursor: pointer;
}
.search-panel__form button:hover { background: var(--wfcg-accent-dark); }

/* ---- Apps drawer: card tiles --------------------------------------------- */
.apps-drawer {
	background: var(--wfcg-surface);
	border-top: 1px solid rgba(53, 57, 73, 0.12);
	box-shadow: 0 14px 30px rgba(53, 57, 73, 0.18);
	/* Never taller than the viewport: the drawer scrolls internally and
	   wheel/touch overscroll is contained so the page never moves behind it. */
	max-height: calc(100vh - var(--wfcg-header-height));
	max-height: calc(100dvh - var(--wfcg-header-height));
	overflow-y: auto;
	overscroll-behavior: contain;
}
/* While the drawer is open the page behind is locked. */
body.wfcg-drawer-open { overflow: hidden; }
/* Compact tiles in the drawer (descriptions stay on the hero tiles) so
   all apps fit on a typical desktop screen without scrolling. */
.apps-drawer .wfcg-app--tile { padding: 14px 10px 12px; gap: 6px; }
.apps-drawer .wfcg-app--tile .wfcg-app__icon { width: 38px; height: 38px; }
.apps-drawer .wfcg-app__desc { display: none; }
.apps-drawer__inner {
	max-width: var(--wfcg-container);
	margin-inline: auto;
	padding: 24px 24px 28px;
}
.apps-drawer__title {
	margin: 0 0 14px;
	font-size: 1.05rem;
}
.apps-drawer__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
	gap: 12px;
}
@media (max-width: 782px) {
	/* Mobile: full-screen sheet with its own scroll. */
	.apps-drawer {
		position: fixed;
		inset: 0;
		z-index: 220;
		max-height: none;
		height: 100vh;
		height: 100dvh;
		border-top: 0;
	}
	.apps-drawer__grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
	.apps-drawer__close {
		position: sticky;
		bottom: 12px;
		background: var(--wfcg-white);
	}
}
/* App card tile — used in the hero grid AND the header drawer */
.wfcg-app--tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	background: var(--wfcg-white);
	border-radius: var(--wfcg-radius);
	box-shadow: var(--wfcg-shadow-card);
	padding: 22px 14px 18px;
	text-align: center;
	height: 100%;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wfcg-app--tile:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(53, 57, 73, 0.24);
}
.wfcg-app--tile .wfcg-app__monogram {
	background: transparent;
	color: var(--wfcg-accent);
	font-size: 1.5rem;
	width: 34px;
	height: 34px;
}
.wfcg-app--tile:hover .wfcg-app__monogram { color: var(--wfcg-accent-dark); }
.wfcg-app--tile .wfcg-app__name {
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--wfcg-primary);
}
/* Real app icons on tiles: square, uncropped, larger than monograms */
.wfcg-app--tile .wfcg-app__icon {
	width: 46px;
	height: 46px;
	border-radius: 8px;
	object-fit: contain;
}
.wfcg-app__desc {
	font-size: 0.8rem;
	font-weight: 300;
	line-height: 1.4;
	color: var(--wfcg-ink-muted);
}
.apps-drawer__close {
	margin-top: 18px;
	background: none;
	border: 1.5px solid var(--wfcg-primary);
	color: var(--wfcg-primary);
	font-family: var(--wfcg-font);
	font-weight: 600;
	padding: 8px 20px;
	border-radius: var(--wfcg-radius-btn);
	cursor: pointer;
}
.apps-drawer__close:hover { background: var(--wfcg-primary); color: var(--wfcg-white); }

/* ---- Hamburger (mobile) ---------------------------------------------------- */
.menu-toggle {
	display: none;
	background: none;
	border: 0;
	padding: 10px;
	cursor: pointer;
	color: var(--wfcg-grey-2);
	font-family: var(--wfcg-font);
	font-weight: 500;
	font-size: 0.95rem;
	align-items: center;
	gap: 8px;
}
.menu-toggle__bars { display: inline-flex; flex-direction: column; gap: 5px; }
.menu-toggle__bars i { display: block; width: 24px; height: 2.5px; background: currentColor; }

/* ---- Hero ------------------------------------------------------------------ */
.hero {
	position: relative;
	background: var(--wfcg-primary);
	color: var(--wfcg-white);
	overflow: hidden;
	display: flex;
	align-items: center;
	min-height: min(56vh, 560px);
	padding: 80px 24px;
}
.hero__media,
.hero__media video,
.hero__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hero__overlay {
	position: absolute;
	inset: 0;
	background: #000000;
	pointer-events: none;
}
.hero__content {
	position: relative;
	z-index: 2;
	max-width: var(--wfcg-container);
	margin-inline: auto;
	width: 100%;
}
.hero__eyebrow {
	display: inline-block;
	font-weight: 300;
	font-size: 1.05rem;
	color: var(--wfcg-white);
	padding-bottom: 10px;
	border-bottom: 3px solid var(--wfcg-accent);
	margin: 0 0 20px;
}
.hero__heading {
	color: var(--wfcg-white);
	max-width: 16ch;
	margin: 0 0 0.4em;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}
.hero__cta {
	display: inline-block;
	margin-top: 12px;
	font-family: var(--wfcg-font);
	font-weight: 600;
	text-decoration: none;
	color: var(--wfcg-white);
	background: transparent;
	border: 1.5px solid var(--wfcg-white);
	border-radius: var(--wfcg-radius-btn);
	padding: 13px 26px;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.hero__cta:hover { background: var(--wfcg-white); color: var(--wfcg-primary); }

/* Top apps grid inside the hero */
.hero__apps {
	list-style: none;
	margin: 32px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}
.hero__apps li {
	flex: 1 1 calc(25% - 16px);
	min-width: 150px;
	display: flex;
}
.hero__apps .wfcg-app--tile { width: 100%; }
@media (max-width: 767px) {
	.hero__apps li { flex-basis: calc(50% - 16px); }
}

/* Jump-down quicklinks: ghost buttons */
.hero__quicklinks {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}
.hero-quicklink {
	display: inline-block;
	font-family: var(--wfcg-font);
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	color: var(--wfcg-white);
	background: transparent;
	border: 1.5px solid var(--wfcg-white);
	border-radius: var(--wfcg-radius-btn);
	padding: 13px 26px;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.hero-quicklink:hover { background: var(--wfcg-white); color: var(--wfcg-primary); }
button.hero-quicklink[aria-expanded="true"] { background: var(--wfcg-white); color: var(--wfcg-primary); }

/* Full apps panel expanded below the quicklinks */
.hero__all-apps { margin-top: 28px; }
.hero__all-apps-title {
	color: var(--wfcg-white);
	font-size: 1.05rem;
	margin: 0 0 14px;
}
.hero__all-apps:not([hidden]) { animation: wfcg-panel-in 200ms ease-out; }
@keyframes wfcg-panel-in {
	from { transform: translateY(-6px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

/* Pause/play control (WCAG 2.2.2 Pause, Stop, Hide) */
.hero__pause {
	position: absolute;
	right: 16px;
	bottom: 16px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(0, 0, 0, 0.72);
	color: var(--wfcg-white);
	border: 1.5px solid rgba(255, 255, 255, 0.85);
	border-radius: 999px;
	padding: 10px 18px;
	font-family: var(--wfcg-font);
	font-weight: 600;
	font-size: 0.85rem;
	cursor: pointer;
	min-height: 44px;
}
.hero__pause:hover { background: #000000; }
.hero__pause-icon { width: 0; height: 0; border-style: solid; }
.hero__pause[aria-pressed="false"] .hero__pause-icon {
	width: 11px;
	height: 13px;
	border: 0;
	border-left: 3.5px solid currentColor;
	border-right: 3.5px solid currentColor;
}
.hero__pause[aria-pressed="true"] .hero__pause-icon {
	border-width: 6.5px 0 6.5px 11px;
	border-color: transparent transparent transparent currentColor;
}

/* ---- Buttons (shared + Elementor) ------------------------------------------- */
.button,
.elementor-button,
.elementor-button:focus {
	display: inline-block;
	background-color: var(--wfcg-accent);
	color: var(--wfcg-white);
	border-radius: var(--wfcg-radius-btn);
	font-family: var(--wfcg-font);
	font-weight: 600;
	padding: 13px 26px;
	text-decoration: none;
	border: 0;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.button:hover,
.elementor-button:hover {
	background-color: var(--wfcg-accent-dark);
	color: var(--wfcg-white);
}

/* ---- Main content ------------------------------------------------------------ */
.site-main { min-height: 40vh; }
.content-wrap {
	max-width: var(--wfcg-container);
	margin-inline: auto;
	padding: 48px 24px;
}
.page-title { margin-top: 0; }
.post-meta { color: var(--wfcg-ink-muted); font-size: 0.85rem; }
.elementor-page .site-main { padding: 0; }
.site-main > .elementor { margin-top: 0; }

/* Post cards (news) — main-site news reel style */
.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 28px;
}
.post-card { display: flex; flex-direction: column; }
.post-card__thumb { display: block; }
.post-card__thumb img,
.post-card__thumb {
	border-radius: var(--wfcg-radius);
	aspect-ratio: 16 / 10;
	object-fit: cover;
	width: 100%;
	overflow: hidden;
}
.post-card__title {
	font-weight: 600;
	font-size: 1.05rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	line-height: 1.3;
	margin: 12px 0 6px;
}
.post-card__title a { color: var(--wfcg-primary); text-decoration: none; }
.post-card__title a:hover { color: var(--wfcg-accent); }
.post-card__date { color: var(--wfcg-ink-muted); font-size: 0.85rem; margin: 0; }
.post-card__excerpt { color: var(--wfcg-ink-muted); }
.post-card__excerpt p { margin: 0.4em 0 0; }

.pagination-nav { margin-top: 2rem; }
.pagination-nav .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	border: 1.5px solid rgba(53, 57, 73, 0.25);
	border-radius: var(--wfcg-radius-btn);
	text-decoration: none;
	margin-inline-end: 4px;
	font-weight: 600;
	font-size: 0.9rem;
}
.pagination-nav .page-numbers.current {
	background: var(--wfcg-primary);
	color: var(--wfcg-white);
	border-color: var(--wfcg-primary);
}

/* Search form (in-content) */
.search-form { display: flex; max-width: 560px; }
.search-form .search-field {
	flex: 1;
	padding: 12px 16px;
	font: inherit;
	border: 1.5px solid rgba(53, 57, 73, 0.25);
	border-right: 0;
	border-radius: var(--wfcg-radius-btn) 0 0 var(--wfcg-radius-btn);
}
.search-form .search-submit {
	padding: 12px 26px;
	font-family: var(--wfcg-font);
	font-weight: 600;
	color: var(--wfcg-white);
	background: var(--wfcg-accent);
	border: 0;
	border-radius: 0 var(--wfcg-radius-btn) var(--wfcg-radius-btn) 0;
	cursor: pointer;
}

/* ---- Elementor section helpers (apply via Advanced → CSS Classes) ----------------
   .wfcg-band          dark Grey 1 CTA band, like "Download our Strategic Plan"
   .wfcg-overlap-card  dark card that overlaps the image beside it, like
                       "Explore Adult Learning" / "Come to an Open Day"
   Outline buttons: inside .wfcg-band or .wfcg-overlap-card, add the class
   wfcg-button--outline to an Elementor button widget.
   ---------------------------------------------------------------------------------- */
.wfcg-band,
.elementor-element.wfcg-band {
	background-color: var(--wfcg-primary);
	color: rgba(255, 255, 255, 0.88);
}
.wfcg-band :is(h1, h2, h3, h4) { color: var(--wfcg-white); }
.wfcg-band p { color: rgba(255, 255, 255, 0.88); }

/* Outline (ghost) buttons on dark backgrounds */
.wfcg-band .elementor-button,
.wfcg-overlap-card .elementor-button,
.wfcg-button--outline .elementor-button,
.button--outline {
	background: transparent;
	border: 1.5px solid rgba(255, 255, 255, 0.85);
	color: var(--wfcg-white);
	border-radius: var(--wfcg-radius-btn);
}
.wfcg-band .elementor-button:hover,
.wfcg-overlap-card .elementor-button:hover,
.wfcg-button--outline .elementor-button:hover,
.button--outline:hover {
	background: var(--wfcg-white);
	color: var(--wfcg-primary);
	border-color: var(--wfcg-white);
}
/* Solid teal button variant stays available inside dark sections */
.wfcg-band .wfcg-button--solid .elementor-button,
.wfcg-overlap-card .wfcg-button--solid .elementor-button {
	background: var(--wfcg-accent);
	border-color: transparent;
}
.wfcg-band .wfcg-button--solid .elementor-button:hover,
.wfcg-overlap-card .wfcg-button--solid .elementor-button:hover {
	background: var(--wfcg-accent-dark);
	color: var(--wfcg-white);
}

/* Dark card overlapping the image next to it */
.wfcg-overlap-card,
.elementor-element.wfcg-overlap-card {
	background-color: var(--wfcg-primary);
	color: rgba(255, 255, 255, 0.88);
	border-radius: var(--wfcg-radius);
	padding: 44px 48px;
}
.wfcg-overlap-card :is(h1, h2, h3, h4) { color: var(--wfcg-white); }
.wfcg-overlap-card p { color: rgba(255, 255, 255, 0.88); }
@media (min-width: 900px) {
	.wfcg-overlap-card { margin-left: -90px; position: relative; z-index: 2; }
	.wfcg-overlap-card--right { margin-left: 0; margin-right: -90px; } /* image on the right instead */
}

/* =========================================================================
   MAGAZINE MOSAIC — news / blog layout
   Apply to an Elementor Posts widget via Advanced → CSS Classes:
     wfcg-mag            mosaic grid, overlay titles, hover zoom
     wfcg-mag--hero      single full-bleed lead story
     wfcg-mag--stagger   alternating tall/short tiles for extra rhythm
   Works with Elementor's Posts widget (Classic or Cards skin) and with
   the theme's own [wfcg_news] output.
   ========================================================================= */

/* --- Shared tile treatment ------------------------------------------------ */
.wfcg-mag .elementor-posts,
.wfcg-mag .elementor-posts-container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.wfcg-mag article.elementor-post {
	position: relative;
	margin: 0;
	border-radius: var(--wfcg-radius);
	overflow: hidden;
	background: var(--wfcg-primary);
	min-height: 300px;
	display: flex;
	isolation: isolate;
	box-shadow: var(--wfcg-shadow-card);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wfcg-mag article.elementor-post:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(53, 57, 73, 0.28);
}

/* Image fills the tile */
.wfcg-mag .elementor-post__thumbnail__link,
.wfcg-mag .elementor-post__thumbnail {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	height: 100%;
	width: 100%;
	z-index: 0;
}
.wfcg-mag .elementor-post__thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.wfcg-mag article.elementor-post:hover .elementor-post__thumbnail img {
	transform: scale(1.07);
}

/* Gradient scrim so text stays readable over any photo (AA at the title) */
.wfcg-mag article.elementor-post::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		to top,
		rgba(20, 22, 30, 0.92) 0%,
		rgba(20, 22, 30, 0.72) 32%,
		rgba(20, 22, 30, 0.20) 62%,
		rgba(20, 22, 30, 0.05) 100%
	);
}

/* Text sits above the scrim, pinned to the bottom */
.wfcg-mag .elementor-post__text {
	position: relative;
	z-index: 2;
	margin: auto 0 0;
	padding: 22px 22px 20px;
	width: 100%;
}
.wfcg-mag .elementor-post__title,
.wfcg-mag .elementor-post__title a {
	color: #ffffff;
	font-family: var(--wfcg-font);
	font-weight: 600;
	font-size: 1.05rem;
	line-height: 1.25;
	text-decoration: none;
	margin: 0;
	display: block;
	/* keep long social-repost titles from swamping the tile */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.wfcg-mag .elementor-post__title a:hover { text-decoration: underline; }
.wfcg-mag .elementor-post__meta-data {
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.78rem;
	margin: 0 0 6px;
	border: 0;
	padding: 0;
}
.wfcg-mag .elementor-post__excerpt { display: none; }
.wfcg-mag .elementor-post__read-more {
	position: absolute;
	inset: 0;
	z-index: 3;
	font-size: 0;          /* whole tile is the click target */
	color: transparent;
}
.wfcg-mag .elementor-post__read-more:focus-visible {
	outline: 3px solid #ffd200;
	outline-offset: -4px;
}

/* Teal keyline that draws itself on hover — a bit of life */
.wfcg-mag article.elementor-post .elementor-post__text::before {
	content: "";
	display: block;
	width: 34px;
	height: 3px;
	background: var(--wfcg-accent);
	border-radius: 2px;
	margin-bottom: 12px;
	transition: width 0.3s ease;
}
.wfcg-mag article.elementor-post:hover .elementor-post__text::before { width: 72px; }

/* --- Mosaic rhythm: first tile spans two columns and two rows ------------- */
.wfcg-mag--stagger .elementor-posts-container > article.elementor-post:first-child {
	grid-column: span 2;
	grid-row: span 2;
	min-height: 620px;
}
.wfcg-mag--stagger .elementor-posts-container > article.elementor-post:first-child .elementor-post__title,
.wfcg-mag--stagger .elementor-posts-container > article.elementor-post:first-child .elementor-post__title a {
	font-size: clamp(1.4rem, 2.4vw, 2rem);
	-webkit-line-clamp: 4;
}
.wfcg-mag--stagger .elementor-posts-container > article.elementor-post:first-child .elementor-post__text {
	padding: 32px 32px 30px;
}
/* Every 6th tile goes wide, so the grid never feels like a spreadsheet */
.wfcg-mag--stagger .elementor-posts-container > article.elementor-post:nth-child(6n + 6) {
	grid-column: span 2;
}

/* --- Full-bleed lead story ------------------------------------------------ */
.wfcg-mag--hero .elementor-posts,
.wfcg-mag--hero .elementor-posts-container { grid-template-columns: 1fr; gap: 0; }
.wfcg-mag--hero article.elementor-post {
	min-height: min(64vh, 560px);
	border-radius: 0;
}
.wfcg-mag--hero .elementor-post__text {
	max-width: var(--wfcg-container);
	margin-inline: auto;
	padding: 48px 24px 56px;
}
.wfcg-mag--hero .elementor-post__title,
.wfcg-mag--hero .elementor-post__title a {
	font-size: clamp(1.8rem, 4vw, 3.2rem);
	-webkit-line-clamp: 4;
	max-width: 20ch;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}
.wfcg-mag--hero .elementor-post__meta-data { font-size: 0.9rem; }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1024px) {
	.wfcg-mag .elementor-posts,
	.wfcg-mag .elementor-posts-container { grid-template-columns: repeat(2, 1fr); }
	.wfcg-mag--stagger .elementor-posts-container > article.elementor-post:first-child { min-height: 460px; }
}
@media (max-width: 600px) {
	.wfcg-mag .elementor-posts,
	.wfcg-mag .elementor-posts-container { grid-template-columns: 1fr; }
	.wfcg-mag--stagger .elementor-posts-container > article.elementor-post:first-child,
	.wfcg-mag--stagger .elementor-posts-container > article.elementor-post:nth-child(6n + 6) {
		grid-column: span 1;
		grid-row: span 1;
		min-height: 320px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.wfcg-mag article.elementor-post,
	.wfcg-mag .elementor-post__thumbnail img,
	.wfcg-mag article.elementor-post .elementor-post__text::before { transition: none; }
	.wfcg-mag article.elementor-post:hover { transform: none; }
	.wfcg-mag article.elementor-post:hover .elementor-post__thumbnail img { transform: none; }
}

/* ---- News reel (shortcode) -------------------------------------------------------- */
.wfcg-newsfeed__head { text-align: right; margin-bottom: 14px; }
.wfcg-newsfeed__head a {
	font-family: var(--wfcg-font);
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--wfcg-accent);
	text-decoration: none;
}
.wfcg-newsfeed__head a:hover { color: var(--wfcg-accent-dark); }
.wfcg-newsfeed__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
.wfcg-newsfeed.has-featured .wfcg-newsfeed__item.is-featured {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: 3fr 2fr;
	gap: 28px;
	align-items: center;
}
.wfcg-newsfeed__media { display: block; }
.wfcg-newsfeed__media img,
.wfcg-newsfeed__noimg {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: var(--wfcg-radius);
}
.wfcg-newsfeed__noimg {
	background: linear-gradient(135deg, var(--wfcg-grey-3), var(--wfcg-grey-2));
	opacity: 0.35;
}
.wfcg-newsfeed__title {
	font-weight: 600;
	font-size: 1.05rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	line-height: 1.3;
	margin: 12px 0 6px;
}
.is-featured .wfcg-newsfeed__title {
	font-size: clamp(1.3rem, 2.2vw, 1.8rem);
	margin-top: 0;
}
.wfcg-newsfeed__title a { color: var(--wfcg-primary); text-decoration: none; }
.wfcg-newsfeed__title a:hover { color: var(--wfcg-accent); }
.wfcg-newsfeed__excerpt { color: var(--wfcg-ink-muted); margin: 0 0 10px; }
.wfcg-newsfeed__date { color: var(--wfcg-ink-muted); font-size: 0.85rem; }
@media (max-width: 1024px) {
	.wfcg-newsfeed__grid { grid-template-columns: repeat(2, 1fr); }
	.wfcg-newsfeed.has-featured .wfcg-newsfeed__item.is-featured { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.wfcg-newsfeed__grid { grid-template-columns: 1fr; }
}

/* ---- Footer -------------------------------------------------------------------- */
.site-footer {
	background: var(--wfcg-primary);
	color: rgba(255, 255, 255, 0.85);
	margin-top: 64px;
}
.site-footer__inner {
	max-width: var(--wfcg-container);
	margin-inline: auto;
	padding: 40px 24px;
}
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--wfcg-white); }
.site-footer__menu,
.site-footer__apps {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 26px;
	margin: 0 0 18px;
	padding: 0;
	font-weight: 600;
	font-size: 0.9rem;
}
.site-footer__apps { font-weight: 300; }
.site-footer .wfcg-app--footer {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: underline;
}
.site-footer .wfcg-app--footer .wfcg-app__icon,
.site-footer .wfcg-app--footer .wfcg-app__monogram { display: none; }
.site-footer__heading {
	color: var(--wfcg-white);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin: 0 0 8px;
}
.site-footer__text { margin: 0 0 18px; font-size: 0.9rem; opacity: 0.85; }
.site-footer__legal { font-size: 0.85rem; margin: 0; opacity: 0.8; }

/* ---- Responsive ------------------------------------------------------------------ */
@media (max-width: 899px) {
	.menu-toggle { display: inline-flex; }
	.primary-nav { position: static; }
	.primary-nav__list {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--wfcg-white);
		box-shadow: var(--wfcg-shadow-card);
		flex-direction: column;
		gap: 0;
		padding: 8px 0;
		z-index: 60;
	}
	.primary-nav.is-open .primary-nav__list { display: flex; }
	.primary-nav__list .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		padding-left: 16px;
	}
	.site-logo-block { margin-bottom: 0; padding: 10px 12px; align-self: center; }
	.site-logo-block--badge { padding: 0; }
	.site-logo-block img,
	.site-logo-block__wordmark { width: 84px; }
	.site-logo-block__wordmark { font-size: 0.85rem; }
	.site-header__inner { gap: 12px; }
}

/* ---- Reduced motion ---------------------------------------------------------------- */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 90px; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	.wfcg-app--drawer:hover { transform: none; }
}

/* ---- Greeting name: edit button + dialog ------------------------------------------- */
.hero__name-edit {
	display: inline;
	vertical-align: baseline;
	margin-left: 16px;
	padding: 0 2px;
	border: 0;
	background: none;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.85rem;
	font-weight: 400;
	letter-spacing: 0.02em;
	text-decoration: underline;
	text-decoration-style: dotted;
	text-underline-offset: 3px;
	cursor: pointer;
	transition: color 0.15s ease;
}
.hero__name-edit:hover,
.hero__name-edit:focus-visible { color: #fff; text-decoration-style: solid; }

/* ---- Directory cards inside the hero (main site, [wfcg_hero cards="directory"]) ---- */
.hero-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 14px;
	margin-top: 34px;
}
.hero-card {
	background: #fff;
	border-radius: 14px;
	padding: 18px 14px 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
	box-shadow: 0 10px 26px rgba(10, 14, 22, 0.25);
}
.hero-card__logo {
	width: 88px;
	height: 88px;
	object-fit: contain;
	border-radius: 12px;
}
.hero-card__btn {
	display: block;
	width: 100%;
	max-width: 190px;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.86rem;
	line-height: 1.25;
	padding: 9px 10px;
	border-radius: 8px;
}
.hero-card__btn:hover,
.hero-card__btn:focus-visible { filter: brightness(0.88); color: #fff; }
.hero-card__stores {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}
.hero-card__stores img {
	display: block;
	width: 112px;
	height: auto;
	border-radius: 5px;
}
@media (max-width: 600px) {
	.hero-cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

.wfcg-name-dialog {
	border: none;
	border-radius: var(--wfcg-radius, 14px);
	padding: 0;
	width: min(430px, calc(100vw - 2rem));
	box-shadow: 0 24px 60px rgba(20, 25, 38, 0.35);
}
.wfcg-name-dialog::backdrop { background: rgba(20, 25, 38, 0.55); }
.wfcg-name-dialog__form { padding: 22px 24px 24px; display: grid; gap: 10px; }
.wfcg-name-dialog__title { margin: 0 0 2px; font-size: 1.15rem; color: var(--wfcg-primary); }
.wfcg-name-dialog__label { font-weight: 500; font-size: 0.92rem; }
.wfcg-name-dialog__form input[type="text"] {
	width: 100%;
	font: inherit;
	padding: 10px 12px;
	border: 1.5px solid rgba(53, 57, 73, 0.25);
	border-radius: 10px;
}
.wfcg-name-dialog__form input[type="text"]:focus {
	outline: none;
	border-color: var(--wfcg-accent);
	box-shadow: 0 0 0 3px rgba(55, 125, 144, 0.18);
}
.wfcg-name-dialog__rules { list-style: disc; margin: 0; padding-left: 20px; font-size: 0.82rem; color: rgba(53, 57, 73, 0.75); }
.wfcg-name-dialog__rules li { margin: 2px 0; }
.wfcg-name-dialog__msg { margin: 0; min-height: 1.3em; font-size: 0.88rem; }
.wfcg-name-dialog__msg.is-error { color: #a4262c; font-weight: 500; }
.wfcg-name-dialog__msg.is-ok { color: #1d5c33; font-weight: 500; }
.wfcg-name-dialog__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.wfcg-name-dialog__cancel,
.wfcg-name-dialog__save {
	font: inherit;
	font-weight: 500;
	border-radius: 999px;
	padding: 9px 20px;
	cursor: pointer;
}
.wfcg-name-dialog__cancel { background: none; border: 1.5px solid rgba(53, 57, 73, 0.25); color: rgba(53, 57, 73, 0.85); }
.wfcg-name-dialog__cancel:hover { border-color: rgba(53, 57, 73, 0.6); }
.wfcg-name-dialog__save { background: var(--wfcg-accent); border: 1.5px solid var(--wfcg-accent); color: #fff; }
.wfcg-name-dialog__save:hover { background: var(--wfcg-accent-dark, var(--wfcg-accent)); }

/* ---- .wfcg-boxed: Elementor helper ------------------------------------------------
   Add this class to a FULL-width Elementor container to give it exactly the
   hero's content box (same max-width, same side padding) so sections line up
   with the hero eyebrow/heading/tiles to the pixel. */
.e-con.wfcg-boxed,
.e-con.wfcg-boxed > .e-con-inner {
	max-width: calc(var(--wfcg-container) + 48px);
	margin-inline: auto;
	width: 100%;
	padding-inline: 24px;
}
