/* WaterFund homepage elements — scoped to .wstf-* so Impreza's own styles are untouched.
   Palette: deep water, WaterFund blue, and one colour per programme, used as a key
   that links the hero rail to the programme cards. */

:root {
	--wstf-deep: #06304d;
	--wstf-deep-2: #0a4368;
	--wstf-blue: #0a6fb5;
	--wstf-sky: #7fd0f0;
	--wstf-mist: #eef4f7;
	--wstf-ink: #12222d;
	--wstf-muted: #4a5d69;
	--wstf-line: #d5e1e8;

	--wstf-urban: #1f7fd1;
	--wstf-rural: #4f9a3c;
	--wstf-wrcc: #13968a;
	--wstf-rbf: #c98a1e;
	--wstf-alert: #b3402a;

	--wstf-font: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--wstf-wrap: 1240px;
}

[class^="wstf-"], [class^="wstf-"] *, [class^="wstf-"] *::before, [class^="wstf-"] *::after { box-sizing: border-box; }

/* ---------- Row helpers (Impreza sections) ---------- */

.l-section.wstf-flush,
.l-section.wstf-flush > .l-section-h {
	padding: 0 !important;
	max-width: none !important;
}
.l-section.wstf-flush .g-cols,
.l-section.wstf-flush .vc_column_container > .vc_column-inner,
.l-section.wstf-flush .wpb_wrapper {
	margin: 0 !important;
	padding: 0 !important;
}

.l-section.wstf-section { padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.l-section.wstf-section--tight { padding-top: 2.5rem; padding-bottom: 3.5rem; }
.l-section.wstf-section--mist { background: var(--wstf-mist); }
.l-section.wstf-section--deep { background: var(--wstf-deep); color: #fff; }

/* ---------- Buttons ---------- */

.wstf-btn {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 1.5rem;
	border: 2px solid transparent;
	border-radius: 2px;
	font-family: var(--wstf-font);
	font-weight: 650;
	font-size: 1rem;
	line-height: 1;
	text-decoration: none !important;
	transition: background-color .15s, color .15s, border-color .15s;
}
.wstf-btn--solid { background: #fff; color: var(--wstf-deep) !important; }
.wstf-btn--solid:hover { background: var(--wstf-sky); }
.wstf-btn--ghost { border-color: rgba(255, 255, 255, .7); color: #fff !important; }
.wstf-btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.wstf-btn:focus-visible,
.wstf-hero a:focus-visible,
.wstf-card a:focus-visible,
.wstf-linklist a:focus-visible { outline: 3px solid var(--wstf-sky); outline-offset: 3px; }

/* ---------- Hero ---------- */

.wstf-hero {
	--wstf-hero-shade: .85;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 100vh;
	min-height: 100svh;
	overflow: hidden;
	background: var(--wstf-deep) var(--wstf-hero-img, none) center / cover no-repeat;
	color: #fff;
	font-family: var(--wstf-font);
	isolation: isolate;
}
.wstf-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
}
.wstf-hero__shade {
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: var(--wstf-hero-shade);
	background:
		linear-gradient(90deg, rgba(6, 48, 77, .95) 0%, rgba(6, 48, 77, .7) 45%, rgba(6, 48, 77, .15) 100%),
		linear-gradient(0deg, rgba(6, 48, 77, .9) 0%, rgba(6, 48, 77, 0) 40%);
}
.wstf-hero__inner {
	width: 100%;
	max-width: var(--wstf-wrap);
	margin: 0 auto;
	padding: 9rem 1.5rem 4rem;
}
.wstf-hero.has-rail .wstf-hero__inner { padding-bottom: 9rem; }

.wstf-hero__title {
	max-width: 14ch;
	margin: 0 0 1.5rem;
	color: #fff !important;
	font-family: var(--wstf-font) !important;
	font-size: clamp(2.6rem, 6.4vw, 5.6rem) !important;
	font-weight: 780 !important;
	font-stretch: 118%;
	line-height: .98 !important;
	letter-spacing: -.015em;
	text-wrap: balance;
}
.wstf-hero__sub {
	max-width: 38rem;
	margin: 0 0 2.25rem;
	font-size: clamp(1.05rem, 1.5vw, 1.25rem);
	line-height: 1.55;
	color: rgba(255, 255, 255, .9);
}
.wstf-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* The programme rail: the page's one signature element. */
.wstf-hero__rail {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	background: rgba(4, 30, 48, .72);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.wstf-rail__item {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 5.5rem;
	padding: 1.25rem 1.5rem;
	border-top: 4px solid var(--wstf-accent, var(--wstf-sky));
	border-right: 1px solid rgba(255, 255, 255, .12);
	color: #fff !important;
	font-weight: 650;
	font-size: 1.05rem;
	line-height: 1.25;
	text-decoration: none !important;
	transition: background-color .15s;
}
.wstf-rail__item:last-child { border-right: 0; }
.wstf-rail__item:hover { background: rgba(255, 255, 255, .08); }

.wstf-accent--urban { --wstf-accent: var(--wstf-urban); }
.wstf-accent--rural { --wstf-accent: var(--wstf-rural); }
.wstf-accent--wrcc  { --wstf-accent: var(--wstf-wrcc); }
.wstf-accent--rbf   { --wstf-accent: var(--wstf-rbf); }

/* One load moment: headline, then the rail. */
@media (prefers-reduced-motion: no-preference) {
	.wstf-hero__inner { animation: wstf-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
	.wstf-hero__rail  { animation: wstf-rise .9s .35s cubic-bezier(.2, .7, .2, 1) both; }
	@keyframes wstf-rise {
		from { opacity: 0; transform: translateY(18px); }
		to   { opacity: 1; transform: none; }
	}
}
/* Reduced motion: the hero script keeps videos paused and the slider still; see wstf-hero.js. */

@media (max-width: 900px) {
	.wstf-hero { justify-content: flex-end; }
	.wstf-hero__inner,
	.wstf-hero.has-rail .wstf-hero__inner { padding: 8rem 1.25rem 2.5rem; }
	.wstf-hero__rail { position: relative; grid-template-columns: 1fr 1fr; }
	.wstf-rail__item { min-height: 4.25rem; padding: 1rem 1.25rem; font-size: .95rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
	.wstf-rail__item:nth-child(2n) { border-right: 0; }
}

/* ---------- Headings ---------- */

.wstf-heading { margin-bottom: 2.25rem; font-family: var(--wstf-font); }
.wstf-heading--center { text-align: center; }
.wstf-heading--center .wstf-heading__intro { margin-left: auto; margin-right: auto; }
.wstf-heading__title {
	margin: 0 0 .6rem;
	color: var(--wstf-deep);
	font-family: var(--wstf-font) !important;
	font-weight: 750 !important;
	font-stretch: 110%;
	font-size: clamp(1.9rem, 3.4vw, 2.75rem);
	line-height: 1.08 !important;
	letter-spacing: -.01em;
}
h3.wstf-heading__title { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.wstf-heading__intro { max-width: 40rem; margin: 0; color: var(--wstf-muted); font-size: 1.125rem; line-height: 1.55; }
.wstf-section--deep .wstf-heading__title { color: #fff; }

.wstf-mandate { margin: 0; padding: 0; list-style: none; }
.wstf-mandate li {
	margin: 0;
	padding: .9rem 0 .9rem 1.25rem;
	border-bottom: 1px solid var(--wstf-line);
	position: relative;
	line-height: 1.45;
}
.wstf-mandate li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1.35rem;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--wstf-blue);
}

/* ---------- Programme cards ---------- */

.wstf-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	font-family: var(--wstf-font);
}
.wstf-card__media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-bottom: 4px solid var(--wstf-accent, var(--wstf-blue));
}
.wstf-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}
.wstf-card:hover .wstf-card__media img { transform: scale(1.03); }
.wstf-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.4rem 1.6rem; }
.wstf-card__title {
	margin: 0 0 .6rem;
	font-size: 1.25rem !important;
	font-weight: 720 !important;
	line-height: 1.2 !important;
}
.wstf-card__title a { color: var(--wstf-deep) !important; text-decoration: none; }
.wstf-card__title a:hover { color: var(--wstf-blue) !important; }
.wstf-card__text { color: var(--wstf-muted); font-size: .98rem; line-height: 1.55; }
.wstf-card__text p { margin: 0 0 1rem; }
.wstf-card__link {
	margin-top: auto;
	align-self: flex-start;
	color: var(--wstf-blue) !important;
	font-weight: 650;
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 2px;
	text-decoration-color: var(--wstf-accent, var(--wstf-blue));
}

@media (max-width: 1024px) and (min-width: 601px) {
	/* 2 x 2 on tablets instead of four squeezed columns */
	#programmes .vc_inner .wpb_column { width: 50% !important; margin-bottom: 1.5rem; }
}

/* ---------- Highlight band ---------- */

.wstf-band { display: grid; gap: 2.5rem; align-items: center; font-family: var(--wstf-font); }
.wstf-band.has-media { grid-template-columns: 1.3fr 1fr; }
.wstf-band__title {
	margin: 0 0 1rem;
	font-size: clamp(1.8rem, 3.2vw, 2.6rem) !important;
	font-weight: 750 !important;
	font-stretch: 110%;
	line-height: 1.1 !important;
	max-width: 22ch;
}
.wstf-band__body { max-width: 44rem; font-size: 1.125rem; line-height: 1.6; }
.wstf-band__body p { margin: 0 0 1.75rem; }
.wstf-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.wstf-band__media img { width: 100%; height: auto; display: block; }

.wstf-band--deep,
.wstf-band--deep .wstf-band__title { color: #fff !important; }
.wstf-band--deep .wstf-band__body { color: rgba(255, 255, 255, .88); }
.wstf-band--deep a:not(.wstf-btn) { color: var(--wstf-sky); }

.wstf-band--light .wstf-band__title { color: var(--wstf-deep); }
.wstf-band--light .wstf-band__body { color: var(--wstf-ink); }
.wstf-band--light .wstf-btn--solid { background: var(--wstf-deep); color: #fff !important; }
.wstf-band--light .wstf-btn--solid:hover { background: var(--wstf-blue); }
.wstf-band--light .wstf-btn--ghost { border-color: var(--wstf-deep); color: var(--wstf-deep) !important; }
.wstf-band--light .wstf-btn--ghost:hover { background: rgba(6, 48, 77, .06); }

@media (max-width: 800px) { .wstf-band.has-media { grid-template-columns: 1fr; } }

/* ---------- Link lists ---------- */

.wstf-linklist { font-family: var(--wstf-font); margin-bottom: 2rem; }
.wstf-linklist__title {
	margin: 0 0 .5rem;
	padding-bottom: .75rem;
	border-bottom: 2px solid var(--wstf-deep);
	color: var(--wstf-deep);
	font-size: 1.15rem !important;
	font-weight: 720 !important;
}
.wstf-linklist ul { margin: 0; padding: 0; list-style: none; }
.wstf-linklist li { margin: 0; border-bottom: 1px solid var(--wstf-line); }
.wstf-linklist a {
	display: block;
	padding: .8rem 0;
	color: var(--wstf-ink) !important;
	text-decoration: none;
	line-height: 1.35;
}
.wstf-linklist a:hover { color: var(--wstf-blue) !important; padding-left: .35rem; transition: padding .15s; }

/* ---------- Notices ---------- */

.wstf-notice {
	height: 100%;
	padding: 1.5rem 1.6rem;
	border-left: 5px solid var(--wstf-blue);
	background: var(--wstf-mist);
	font-family: var(--wstf-font);
}
.wstf-notice--alert { border-left-color: var(--wstf-alert); background: #fbf0ec; }
.wstf-notice__title {
	margin: 0 0 .75rem;
	font-size: 1.2rem !important;
	font-weight: 720 !important;
	line-height: 1.25 !important;
	color: var(--wstf-deep);
}
.wstf-notice--alert .wstf-notice__title { color: var(--wstf-alert); }
.wstf-notice__body { color: var(--wstf-ink); line-height: 1.55; }
.wstf-notice__body p { margin: 0 0 .75rem; }
.wstf-notice__body p:last-child { margin-bottom: 0; }
.wstf-notice__body a { font-weight: 650; }

@media (max-width: 767px) {
	#notices .wpb_column { margin-bottom: 1.25rem; }
}

/* =================================================================
   Inner pages
   ================================================================= */

.wstf-btn--dark { background: var(--wstf-deep); color: #fff !important; border: 0; cursor: pointer; }
.wstf-btn--dark:hover { background: var(--wstf-blue); }
.wstf-btn--dark:focus-visible { outline: 3px solid var(--wstf-blue); outline-offset: 3px; }

.l-section.wstf-section--page { padding-top: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Page header ---------- */

.wstf-pagehead {
	position: relative;
	background: var(--wstf-deep);
	color: #fff;
	font-family: var(--wstf-font);
	isolation: isolate;
	overflow: hidden;
}
.wstf-pagehead.has-image { background: var(--wstf-deep) var(--wstf-hero-img) center / cover no-repeat; }
.wstf-pagehead.has-image::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(6, 48, 77, .95) 0%, rgba(6, 48, 77, .75) 60%, rgba(6, 48, 77, .45) 100%);
}
/* Programme-colour rule along the bottom edge, echoing the homepage rail. */
.wstf-pagehead::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--wstf-urban) 0 25%, var(--wstf-rural) 25% 50%, var(--wstf-wrcc) 50% 75%, var(--wstf-rbf) 75% 100%);
}
.wstf-pagehead__inner {
	max-width: var(--wstf-wrap);
	margin: 0 auto;
	padding: var(--wstf-pagehead-top, 3.5rem) 1.5rem 3rem;
}
.wstf-pagehead__title {
	max-width: 22ch;
	margin: 0;
	color: #fff !important;
	font-family: var(--wstf-font) !important;
	font-size: clamp(2rem, 4.4vw, 3.5rem) !important;
	font-weight: 760 !important;
	font-stretch: 114%;
	line-height: 1.04 !important;
	letter-spacing: -.01em;
	text-wrap: balance;
}
.wstf-pagehead__intro { max-width: 40rem; margin: 1rem 0 0; font-size: 1.125rem; line-height: 1.55; color: rgba(255, 255, 255, .88); }

.wstf-crumbs { margin-bottom: 1.25rem; font-size: .9rem; color: rgba(255, 255, 255, .72); }
.wstf-crumbs a { color: rgba(255, 255, 255, .9) !important; text-decoration: none; }
.wstf-crumbs a:hover { text-decoration: underline; }
.wstf-crumbs__sep { margin: 0 .45rem; opacity: .5; }

/* ---------- Section menu ---------- */

.wstf-sidenav { font-family: var(--wstf-font); margin-bottom: 2rem; }
.wstf-sidenav__title { margin: 0 0 .5rem; font-weight: 720; color: var(--wstf-deep); }
.wstf-sidenav ul { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--wstf-line); }
.wstf-sidenav li { margin: 0; }
.wstf-sidenav a {
	display: block;
	margin-left: -2px;
	padding: .55rem 0 .55rem 1rem;
	border-left: 2px solid transparent;
	color: var(--wstf-muted) !important;
	text-decoration: none;
	line-height: 1.35;
}
.wstf-sidenav a:hover { color: var(--wstf-deep) !important; border-left-color: var(--wstf-sky); }
.wstf-sidenav a[aria-current="page"] { color: var(--wstf-deep) !important; font-weight: 680; border-left-color: var(--wstf-blue); }
@media (min-width: 900px) {
	.wstf-col-nav > .vc_column-inner > .wpb_wrapper,
	.wstf-col-sticky > .vc_column-inner > .wpb_wrapper { position: sticky; top: 7rem; }
}

/* ---------- Migrated article text ---------- */

.wstf-prose { max-width: 46rem; color: var(--wstf-ink); font-size: 1.0625rem; line-height: 1.65; }
.wstf-prose h2 { margin: 2.25rem 0 .75rem; font-size: 1.6rem; color: var(--wstf-deep); line-height: 1.2; }
.wstf-prose h3 { margin: 1.75rem 0 .5rem; font-size: 1.25rem; color: var(--wstf-deep); }
.wstf-prose h2:first-child, .wstf-prose h3:first-child { margin-top: 0; }
.wstf-prose img { max-width: 100%; height: auto; }
.wstf-prose img.wstf-content-img { margin: .5rem 0 1rem; }
.wstf-prose a { color: var(--wstf-blue); text-underline-offset: 3px; }
.wstf-prose li { margin-bottom: .35rem; }

.wstf-table-scroll { overflow-x: auto; margin: 1.5rem 0; }
.wstf-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .95rem; }
.wstf-table th, .wstf-table td { padding: .7rem .8rem; border-bottom: 1px solid var(--wstf-line); text-align: left; vertical-align: top; }
.wstf-table tr:first-child td, .wstf-table th { background: var(--wstf-mist); color: var(--wstf-deep); font-weight: 680; }

.wstf-embed { position: relative; aspect-ratio: 16 / 9; margin: 1.5rem 0; background: var(--wstf-mist); }
.wstf-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.wstf-map iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- Document library ---------- */

.wstf-docs { font-family: var(--wstf-font); margin-bottom: 2rem; }
.wstf-docs__title { margin: 0 0 .75rem; font-size: 1.15rem !important; color: var(--wstf-deep); }
.wstf-docs__search { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1.25rem; }
.wstf-docs__search input[type="search"] {
	flex: 1 1 16rem;
	min-height: 48px;
	padding: 0 1rem;
	border: 1px solid #9fb3c0;
	border-radius: 2px;
	font: inherit;
}
.wstf-docs__search input:focus-visible { outline: 3px solid var(--wstf-sky); outline-offset: 1px; }
.wstf-docs__clear { font-size: .95rem; }
.wstf-docs__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--wstf-line); }
.wstf-doc { margin: 0; border-bottom: 1px solid var(--wstf-line); }
.wstf-doc__link {
	display: flex;
	justify-content: space-between;
	gap: 1.5rem;
	padding: .95rem .25rem;
	color: var(--wstf-ink) !important;
	text-decoration: none !important;
}
.wstf-doc__link:hover { background: var(--wstf-mist); }
.wstf-doc__link:hover .wstf-doc__name { color: var(--wstf-blue); text-decoration: underline; }
.wstf-doc__name { font-weight: 560; line-height: 1.4; }
.wstf-doc__meta { flex-shrink: 0; color: var(--wstf-muted); font-size: .88rem; white-space: nowrap; }
.wstf-docs__empty { color: var(--wstf-muted); }
.wstf-docs__pages { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: 1.25rem; }
.wstf-docs__pages a {
	min-width: 2.5rem;
	padding: .5rem .6rem;
	border: 1px solid var(--wstf-line);
	text-align: center;
	text-decoration: none;
	color: var(--wstf-deep) !important;
}
.wstf-docs__pages a[aria-current="page"] { background: var(--wstf-deep); border-color: var(--wstf-deep); color: #fff !important; }
@media (max-width: 600px) {
	.wstf-doc__link { flex-direction: column; gap: .2rem; }
	.wstf-doc__meta { white-space: normal; }
}

/* ---------- People ---------- */

.wstf-people {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 2.5rem 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--wstf-font);
}
.wstf-person { margin: 0; }
.wstf-person__photo {
	aspect-ratio: 3 / 4;
	margin-bottom: .9rem;
	overflow: hidden;
	background: var(--wstf-mist);
	border-bottom: 4px solid var(--wstf-blue);
}
.wstf-person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.wstf-person__initials {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	font-size: 2.5rem;
	font-weight: 750;
	color: var(--wstf-deep);
	opacity: .35;
}
.wstf-person__name { margin: 0 0 .3rem; font-size: 1.1rem !important; font-weight: 700 !important; line-height: 1.25 !important; }
.wstf-person__name a { color: var(--wstf-deep) !important; text-decoration: none; }
.wstf-person__name a:hover { color: var(--wstf-blue) !important; text-decoration: underline; }
.wstf-person__role { margin: 0; color: var(--wstf-muted); font-size: .95rem; line-height: 1.4; }

/* ---------- Contact blocks and forms ---------- */

.wstf-info { margin-bottom: 1.75rem; font-family: var(--wstf-font); }
.wstf-info__title { margin: 0 0 .35rem; font-size: 1rem !important; font-weight: 700 !important; color: var(--wstf-deep); }
.wstf-info__body p { margin: 0; line-height: 1.6; color: var(--wstf-ink); }
.wstf-info__body a { color: var(--wstf-blue); }

.wstf-form { display: grid; gap: 1.1rem; font-family: var(--wstf-font); }
.wstf-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.wstf-form label { display: grid; gap: .4rem; font-weight: 600; color: var(--wstf-deep); }
.wstf-form input,
.wstf-form textarea {
	width: 100%;
	min-height: 48px;
	padding: .7rem .9rem;
	border: 1px solid #9fb3c0;
	border-radius: 2px;
	background: #fff;
	font: inherit;
	font-weight: 400;
	color: var(--wstf-ink);
}
.wstf-form input:focus-visible,
.wstf-form textarea:focus-visible { outline: 3px solid var(--wstf-sky); outline-offset: 1px; border-color: var(--wstf-blue); }
.wstf-form__opt { font-weight: 400; color: var(--wstf-muted); }
.wstf-form__note { margin: 0; color: var(--wstf-muted); font-size: .95rem; }
.wstf-form .wstf-btn { justify-self: start; }
.wstf-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wstf-form__done, .wstf-form__error { padding: 1.25rem 1.4rem; border-left: 5px solid var(--wstf-rural); background: #eef6ec; font-family: var(--wstf-font); }
.wstf-form__done h3 { margin: 0 0 .4rem; color: var(--wstf-deep); }
.wstf-form__done p, .wstf-form__error p { margin: 0; }
.wstf-form__error { margin-bottom: 1.25rem; border-left-color: var(--wstf-alert); background: #fbf0ec; }
@media (max-width: 600px) { .wstf-form__row { grid-template-columns: 1fr; } }


/* =================================================================
   Homepage hero: slider and video modes
   ================================================================= */

/* Slider: slides share one grid cell, so the hero is as tall as its tallest slide and never jumps. */
.wstf-hero--slider { background: var(--wstf-deep); }
.wstf-slides { position: relative; flex: 1; display: grid; }
.wstf-slide {
	grid-area: 1 / 1;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: var(--wstf-deep) var(--wstf-hero-img, none) center / cover no-repeat;
	isolation: isolate;
	opacity: 0;
	visibility: hidden;
	transition: opacity .9s ease, visibility 0s .9s;
}
.wstf-slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease; }
.wstf-slide .wstf-hero__shade { z-index: -1; }
.wstf-hero--slider .wstf-hero__inner { animation: none; }
@media (prefers-reduced-motion: no-preference) {
	.wstf-slide.is-active .wstf-hero__inner { animation: wstf-rise .8s .15s cubic-bezier(.2, .7, .2, 1) both; }
}
@media (prefers-reduced-motion: reduce) {
	.wstf-slide, .wstf-slide.is-active { transition: none; }
}

/* Controls sit at the right edge of the content column, above the programme links. */
.wstf-hero__controls {
	position: absolute;
	z-index: 3;
	right: max(1.5rem, calc((100vw - var(--wstf-wrap)) / 2 + 1.5rem));
	bottom: 2rem;
	display: flex;
	align-items: center;
	gap: .35rem;
}
.wstf-hero.has-rail .wstf-hero__controls { bottom: 7.5rem; }
.wstf-hero--video .wstf-hero__controls { position: absolute; }
.wstf-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .55);
	border-radius: 2px;
	background: rgba(4, 30, 48, .35);
	color: #fff;
	cursor: pointer;
	transition: background-color .15s, border-color .15s;
}
.wstf-hero__btn:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }
.wstf-hero__btn svg { width: 20px; height: 20px; }
.wstf-hero__btn .wstf-i-play { display: none; }
.wstf-hero__btn.is-paused .wstf-i-play { display: inline-flex; }
.wstf-hero__btn.is-paused .wstf-i-pause { display: none; }
.wstf-hero__btn:focus-visible,
.wstf-hero__dot:focus-visible { outline: 3px solid var(--wstf-sky); outline-offset: 2px; }

.wstf-hero__dots { display: flex; align-items: center; margin: 0 .25rem; }
.wstf-hero__dot {
	position: relative;
	width: 32px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}
.wstf-hero__dot::before {
	content: "";
	position: absolute;
	left: 4px;
	right: 4px;
	top: 50%;
	height: 4px;
	margin-top: -2px;
	background: rgba(255, 255, 255, .45);
	transition: background-color .2s;
}
.wstf-hero__dot:hover::before { background: rgba(255, 255, 255, .8); }
.wstf-hero__dot[aria-current="true"]::before { background: #fff; }

/* Video: MP4 or YouTube, cropped to fill like a photo. */
.wstf-hero__yt { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.wstf-hero__yt iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	width: max(100%, 177.78vh);
	height: max(100%, 56.25vw);
	border: 0;
	transform: translate(-50%, -50%);
}
.wstf-hero.is-video-paused .wstf-hero__yt { visibility: hidden; }

@media (max-width: 900px) {
	.wstf-hero.wstf-hero--slider .wstf-hero__inner { padding-bottom: 5.5rem; }
	.wstf-hero.has-rail .wstf-hero__controls { bottom: 1.25rem; }
	.wstf-hero--video.has-rail .wstf-hero__controls { bottom: auto; top: 6rem; }
	.wstf-hero__controls { right: 1.25rem; }
}
