/* ---------- base ---------- */

@font-face {
	font-family: "DM Sans";
	src: url("../fonts/dm-sans-latin.woff2") format("woff2");
	font-weight: 100 1000;
	font-style: normal;
	font-display: swap;
}

:root {
	--navy: #043673;
	--navy-deep: #1c3a8d;
	--sky: #26a9e0;
	--sky-hover: #1c95c9;
	--mid: #3170b7;
	--soft: #f8fbff;
	--line: #abc5e2;
	--wrap: 1090px;
	--gutter: 16px;
	--radius: 16px;
	--shadow: 7px 12px 25.2px rgba(4, 54, 115, .09);
	/* Type scale unit: exactly 1px at the 1440px design width, a little larger on big
	   screens (up to 1.2px) and slightly smaller on phones (down to 0.94px). */
	--fs: clamp(.94px, .55px + .03125vw, 1.2px);
	/* The header keeps its 1440 proportions on big screens so the menu never crowds the button. */
	--fs-header: min(var(--fs), 1px);
}

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

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

body {
	margin: 0;
	font-family: "DM Sans", system-ui, sans-serif;
	font-size: calc(16 * var(--fs));
	line-height: 1.4;
	font-variation-settings: "opsz" 14;
	color: var(--navy);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
	margin: 0;
}

:where(ul[class], ol[class]) {
	padding: 0;
	list-style: none;
}

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

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

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

/* Text fields show focus with their border colour instead of an outline. */
input:focus,
select:focus,
textarea:focus {
	outline: none;
}

.wrap {
	width: min(var(--wrap), 100% - 2 * var(--gutter));
	margin-inline: auto;
}

.screen-reader-text,
.skip-link:not(:focus) {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100;
	padding: 10px 16px;
	border-radius: 8px;
	background: #fff;
	box-shadow: var(--shadow);
}

.section {
	position: relative;
	padding-block: 56px;
	overflow: hidden;
}

.section--soft {
	background: radial-gradient(50% 50% at 50% 50%, #fff 0%, var(--soft) 100%);
}

.section__head {
	position: relative;
	max-width: calc(668 * var(--fs));
	margin: 0 auto 32px;
	text-align: center;
}

.section__title {
	font-size: clamp(28px, 2vw + 18px, calc(36 * var(--fs)));
	font-weight: 800;
	line-height: 1.3;
}

.section__intro {
	margin-top: 10px;
	line-height: 1.32;
}

.eyebrow {
	font-size: calc(20 * var(--fs));
	font-weight: 700;
	line-height: 1.3;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 8px 32px;
	border: 0;
	border-radius: 999px;
	background: var(--sky);
	color: #fff;
	font-size: calc(20 * var(--fs));
	font-weight: 500;
	line-height: 1.3;
	cursor: pointer;
	transition: background-color .2s;
}

.button:hover {
	background: var(--sky-hover);
}

@media (min-width: 768px) {
	:root {
		--gutter: 24px;
	}

	.section {
		padding-block: 88px;
	}
}

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

.site-header {
	position: relative;
	z-index: 20;
	background: linear-gradient(90deg, #fff 0%, #f7f7ff 50%, #fefeff 100%);
}

.site-header::after {
	content: "";
	display: block;
	height: 8px;
	background: linear-gradient(90deg, var(--mid) 0%, var(--sky) 50%, var(--mid) 100%);
}

.site-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 72px;
	gap: 16px;
}

.site-header__logo img {
	width: 104px;
	height: auto;
}

.nav-toggle {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
	display: block;
	width: 22px;
	height: 2px;
	border-radius: 2px;
	background: var(--navy);
	transition: transform .2s;
}

.nav-toggle span {
	position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle span::before {
	top: -7px;
}

.nav-toggle span::after {
	top: 7px;
}

.nav-toggle[aria-expanded="true"] span {
	background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
	transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
	transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	display: none;
	padding: 8px var(--gutter) 24px;
	background: #fff;
	box-shadow: 0 12px 24px rgba(4, 54, 115, .12);
}

.site-nav.is-open {
	display: block;
}

.site-nav__list a {
	display: flex;
	align-items: center;
	min-height: 48px;
	border-bottom: 1px solid #eef3fa;
}

.site-nav__list .current-menu-item > a,
.site-nav__list .current-page-ancestor > a,
.site-nav__list a:hover {
	color: var(--sky);
}

.portal-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin-top: 16px;
	padding: 0 17px;
	border-radius: 999px;
	background: var(--navy-deep);
	color: #fff;
	font-variation-settings: "opsz" 9;
	white-space: nowrap;
	transition: background-color .2s;
}

.portal-link:hover {
	background: var(--navy);
}

@media (min-width: 1100px) {
	.site-header::after {
		height: 12.8px;
	}

	.site-header__bar {
		min-height: 107.2px;
		gap: 0;
	}

	.site-header__logo img {
		width: 128px;
	}

	.nav-toggle {
		display: none;
	}

	.site-nav {
		position: static;
		display: flex;
		flex: 1;
		align-items: center;
		padding: 0;
		background: none;
		box-shadow: none;
	}

	/* Free space splits 93 : 68 (logo-to-menu : menu-to-button), as in the Figma header. */
	.site-nav::before,
	.site-nav::after {
		content: "";
		flex: 93 1 0;
	}

	.site-nav::after {
		flex-grow: 68;
		order: 1;
	}

	.site-nav__list {
		display: flex;
		gap: calc(36 * var(--fs-header));
	}

	.portal-link {
		order: 2;
	}

	.site-nav__list a {
		min-height: 44px;
		border: 0;
		font-size: calc(14 * var(--fs-header));
		line-height: calc(17.6 * var(--fs-header));
		white-space: nowrap;
		transition: color .2s;
	}

	.portal-link {
		min-height: 36px;
		margin: 0;
		padding: 0 14px 0 17px;
		font-size: calc(16 * var(--fs-header));
	}
}

/* ---------- footer ---------- */

.site-footer {
	position: relative;
	padding: 72px 0 15px;
	overflow: hidden;
	background: radial-gradient(720px 320px at 50% 320px, #fff 0%, var(--soft) 100%) var(--soft);
}

.site-footer__road {
	position: absolute;
	top: 0;
	left: 50%;
	width: 1440px;
	max-width: none;
	height: 73px;
	transform: translateX(-50%);
}

/* Carries the straight road ends out to the edges on screens wider than 1440px. */
.site-footer::before,
.site-footer::after {
	content: "";
	position: absolute;
	top: 0;
	width: max(0px, 50% - 720px);
	height: 73px;
	background: url("../img/footer-road-edge-l.png") 0 0 / 1px 73px repeat-x;
}

.site-footer::before {
	left: 0;
}

.site-footer::after {
	right: 0;
	background-image: url("../img/footer-road-edge-r.png");
}

.site-footer__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	padding: 28px 0 20px;
	border-bottom: 1px solid var(--line);
}

.site-footer__logo img {
	width: auto;
	height: 52px;
}

.site-footer__tagline img {
	width: 260px;
	height: auto;
}

.site-footer__grid {
	display: grid;
	gap: 32px;
	padding: 32px 0 40px;
	border-bottom: 1px solid var(--line);
}

.site-footer h2 {
	margin-bottom: 20px;
	font-size: calc(20 * var(--fs));
	font-weight: 600;
	line-height: calc(26 * var(--fs));
}

.contact-list {
	display: grid;
	gap: 22px;
	max-width: 390px;
}

.contact-list li {
	display: grid;
	grid-template-columns: 24px 1fr;
	gap: 21px;
	line-height: calc(21 * var(--fs));
}

.contact-list svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: var(--mid);
	stroke-width: 1;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.contact-list address {
	font-style: normal;
}

.contact-list a:hover,
.quick-links a:hover {
	color: var(--sky);
}

.quick-links {
	display: grid;
	gap: 4px;
}

.quick-links a {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	min-height: 36px;
	line-height: calc(21 * var(--fs));
}

.quick-links a::before {
	content: "";
	width: 5.6px;
	height: 11.2px;
	background: url("../img/arrow.svg") center / contain no-repeat;
}

.newsletter p {
	margin-bottom: 14px;
	line-height: calc(21 * var(--fs));
}

.newsletter__field {
	display: block;
	width: 100%;
	max-width: 324px;
	height: 46px;
	padding: 0 18px;
	border: 1px solid #e3e3e3;
	border-radius: 999px;
	background: #f4f4f4;
}

.newsletter__field:focus {
	border-color: var(--sky);
}

.newsletter__field::placeholder {
	color: #767676;
}

.newsletter .button {
	margin-top: 15px;
	padding: 0 28px;
	font-size: calc(16 * var(--fs));
	font-weight: 400;
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 8px;
	margin-top: 20px;
}

.social-links a {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
}

.social-links a:hover {
	opacity: .7;
}

.social-links img {
	width: auto;
	height: 19px;
}

.site-footer__copy {
	padding-top: 16px;
	text-align: center;
}

@media (min-width: 768px) {
	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 1100px) {
	.site-footer__top {
		padding: 49px 0 20px;
	}

	.site-footer__logo img {
		height: 64.34px;
	}

	.site-footer__tagline img {
		width: 353px;
	}

	.site-footer__grid {
		grid-template-columns: 469px 297px 324px;
		gap: 0;
		padding: 41px 0 52px;
	}

	.site-footer h2 {
		margin-bottom: 34px;
	}

	.quick-links {
		margin-top: -7.5px;
	}

	.site-footer__news {
		padding-top: 29px;
	}

	.site-footer__copy {
		line-height: calc(21 * var(--fs));
	}
}

/* ---------- forms ---------- */

.hp {
	position: absolute;
	left: -9999px;
}

.form-status {
	margin-top: 12px;
	font-size: calc(15 * var(--fs));
}

.form-status--ok {
	color: #0a7a3e;
}

.form-status--error {
	color: #b42318;
}

@media (max-width: 767px) {
	.site-footer {
		padding-top: 40px;
	}

	.site-footer__road {
		width: 760px;
		height: auto;
	}

	.site-footer::before,
	.site-footer::after {
		height: 38.5px;
		background-size: 1px 38.5px;
	}
}

/* ---------- certificates strip ---------- */

.certs {
	overflow: hidden;
	background: linear-gradient(96.65deg, #f4f4ff 1.39%, #f6f6f6 100%);
}

.certs__track {
	display: flex;
	width: max-content;
	animation: certs-scroll 30s linear infinite;
}

.certs:hover .certs__track {
	animation-play-state: paused;
}

.certs__list {
	display: flex;
	align-items: center;
	gap: 64px;
	padding: 20px 32px;
}

.certs__list img {
	width: auto;
	height: 56px;
}

@keyframes certs-scroll {
	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.certs {
		overflow-x: auto;
	}

	.certs__track {
		animation: none;
	}
}

@media (min-width: 768px) {
	.certs__list {
		gap: 114px;
		padding: 29px 57px;
	}

	.certs__list img {
		height: 72px;
	}
}

/* ---------- carousel (why STS) ---------- */

.carousel {
	position: relative;
	max-width: 1214px;
	margin-inline: auto;
}

.carousel__track {
	display: flex;
	gap: 36px;
	padding: 47px var(--gutter) 30px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--gutter);
	scrollbar-width: none;
}

.carousel__track::-webkit-scrollbar {
	display: none;
}

.carousel__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: none;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--mid);
	cursor: pointer;
	transition: opacity .2s;
}

.carousel__arrow--prev {
	left: 0;
}

.carousel__arrow--prev img {
	transform: scaleX(-1);
}

.carousel__arrow--next {
	right: 0;
}

.why-card {
	position: relative;
	flex: 0 0 222px;
	min-height: 267.5px;
	padding: 72px 18px 24px;
	border-radius: 24px;
	background: #fff;
	box-shadow: 7px 12px 12.6px rgba(4, 54, 115, .09);
	text-align: center;
	scroll-snap-align: start;
}

.why-card__icon {
	position: absolute;
	top: -45px;
	left: 50%;
	display: grid;
	place-items: center;
	width: 100px;
	height: 100px;
	margin-left: -50px;
	border-radius: 50%;
	background: var(--navy);
	box-shadow: 0 12px 12px rgba(2, 33, 82, .24);
}

.why-card__title {
	font-size: calc(20 * var(--fs));
	font-weight: 700;
	line-height: 1.3;
}

.why-card__text {
	margin-top: 16px;
	font-size: max(12px, calc(12 * var(--fs)));
	line-height: 1.3;
}

@media (min-width: 1100px) {
	.home-why {
		padding-block: 73px 59px;
	}

	.home-why .section__head {
		max-width: calc(540 * var(--fs));
		margin-bottom: 31px;
	}

	.carousel__track {
		width: 1118px;
		margin-left: calc(50% - 573px);
		padding-inline: 29px;
		scroll-padding-inline: 29px;
	}

	.carousel__arrow {
		top: 113px;
		display: grid;
	}

	.carousel__arrow--prev {
		left: calc(50% - 618px);
	}

	.carousel__arrow--next {
		right: auto;
		left: calc(50% + 578px);
	}
}

/* ---------- inner page banner ---------- */

.page-hero {
	position: relative;
	display: grid;
	min-height: 260px;
	overflow: hidden;
	background: var(--navy);
	color: #fff;
}

.page-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.page-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, .48) 0%, rgba(0, 0, 0, .34) 45%, rgba(0, 0, 0, .2) 100%);
}

.page-hero__inner {
	position: relative;
	z-index: 1;
	align-self: center;
	padding-block: 40px;
}

.page-hero__title {
	font-size: clamp(36px, 3vw + 22px, calc(48 * var(--fs)));
	font-weight: 800;
	line-height: 1.3;
}

.page-hero__subtitle {
	max-width: calc(520 * var(--fs));
	margin-top: 6px;
	font-size: calc(20 * var(--fs));
	font-weight: 700;
	line-height: 1.3;
}

.page-hero__text {
	max-width: calc(468 * var(--fs));
	margin-top: 14px;
	line-height: 1.32;
}

@media (min-width: 1100px) {
	.page-hero {
		min-height: 334px;
	}

	.page-hero__inner {
		align-self: start;
		padding-block: 36px 40px;
	}
}

/* ---------- loading placeholders ---------- */

/* A soft shimmer fills each image's space until it has loaded (main.js adds and
   removes .is-loading), so the page layout shows straight away. */
.is-loading,
.skeleton {
	background: linear-gradient(100deg, #e6edf6 30%, #f4f7fb 50%, #e6edf6 70%) 0 0 / 300% 100%;
	animation: skeleton 1.4s ease-in-out infinite;
}

@keyframes skeleton {
	from {
		background-position: 100% 0;
	}

	to {
		background-position: 0 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.is-loading,
	.skeleton {
		animation: none;
	}
}

/* ---------- single post / event: banner, body, gallery, more ---------- */

.item-hero {
	--fade: #24376d;
	position: relative;
	display: grid;
	min-height: 320px;
	overflow: hidden;
	background: var(--fade);
	color: #fff;
}

.item-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.item-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, var(--fade) 11.5%, rgba(72, 72, 106, .71) 44.7%, rgba(174, 174, 189, .32) 74.5%, rgba(235, 235, 238, .08) 84.1%, rgba(235, 235, 238, 0) 100%);
}

.item-hero__inner {
	position: relative;
	z-index: 1;
	align-self: end;
	padding-block: 40px 32px;
}

.item-hero__date {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: calc(20 * var(--fs));
	font-weight: 600;
}

.item-hero__title {
	max-width: calc(800 * var(--fs));
	margin-top: 4px;
	font-size: clamp(30px, 2.5vw + 18px, calc(44 * var(--fs)));
	font-weight: 700;
	line-height: 1.4;
}

.item-body {
	padding-block: 40px 8px;
}

.item-body__content {
	color: #00152e;
	font-size: calc(20 * var(--fs));
	font-weight: 500;
	line-height: 1.3;
}

.item-body__content > * + * {
	margin-top: 1.3em;
}

.item-body__content a {
	text-decoration: underline;
}

.item-body__content a:hover {
	color: var(--sky);
}

.item-body__content img {
	border-radius: 12px;
}

.item-gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 40px;
}

.item-gallery a {
	display: block;
	height: 100%;
}

.item-gallery img {
	width: 100%;
	height: 100%;
	aspect-ratio: 327 / 185;
	object-fit: cover;
	transition: opacity .2s;
}

.item-gallery a:hover img {
	opacity: .85;
}

.item-gallery li:first-child {
	grid-column: 1 / -1;
}

.item-more {
	padding-block: 40px 56px;
}

.item-more__title {
	margin-bottom: 24px;
	font-size: clamp(28px, 2vw + 18px, calc(36 * var(--fs)));
	font-weight: 700;
	line-height: 1.3;
}

.item-more__events {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
	gap: 24px;
}

@media (min-width: 900px) {
	.item-gallery {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		gap: 16px;
	}

	.item-gallery li {
		grid-column: span 3;
	}

	.item-gallery li:first-child {
		grid-column: span 8;
		grid-row: span 2;
	}

	.item-gallery li:nth-child(2),
	.item-gallery li:nth-child(3) {
		grid-column: span 4;
	}

	.item-gallery li:first-child img {
		aspect-ratio: auto;
	}
}

@media (min-width: 1100px) {
	.item-hero {
		min-height: 537px;
	}

	.item-hero__inner {
		padding-block: 64px 58px;
	}

	.item-body {
		padding-top: 63px;
	}

	.item-gallery {
		margin-top: 51px;
	}

	.item-more {
		padding-block: 44px 64px;
	}

	.item-more__events {
		display: flex;
		gap: 22px;
	}
}

/* ---------- form section ---------- */

.form-panel {
	position: relative;
	overflow: hidden;
	padding-block: 64px;
	isolation: isolate;
}

.form-panel--blue {
	background: radial-gradient(1475px 770px at 50% 376px, #1ebaee 0%, #1799cf 25%, #1178b0 50%, #0a5792 75%, var(--navy) 100%);
	color: #fff;
}

.form-panel--blue::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	/* % positions count from (box - image), so each x adds back half its own width */
	background:
		url("../img/form-x1.svg") calc(50% - 24.39px) -115.5px / 1034.23px 679.99px no-repeat,
		url("../img/form-x2.svg") calc(50% + 884.09px) 64px / 782.72px 965.08px no-repeat,
		url("../img/form-x3.svg") calc(50% + 454.76px) 564.49px / 1537.52px 505.14px no-repeat;
	opacity: .4;
	mix-blend-mode: luminosity;
}

.form-panel__inner {
	max-width: calc(668 * var(--fs));
	text-align: center;
}

.form-panel__title {
	font-size: clamp(28px, 2vw + 18px, calc(36 * var(--fs)));
	font-weight: 800;
	line-height: 1.3;
}

.form-panel__text {
	margin-top: 14px;
	line-height: 1.32;
}

.form-panel__text p + p {
	margin-top: 1em;
}

.sts-form {
	max-width: calc(499 * var(--fs));
	margin: 40px auto 0;
}

.sts-form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px 19px;
	text-align: left;
}

.sts-form__field {
	grid-column: 1 / -1;
}

.sts-form__field.is-half {
	grid-column: auto;
}

.sts-form input:not([type="file"]),
.sts-form select,
.sts-form textarea {
	display: block;
	width: 100%;
	height: 42px;
	padding: 0 15px;
	border: 1px solid #dee2e6;
	border-radius: 48px;
	background: #fff;
	color: var(--navy);
	font-size: calc(14.4 * var(--fs));
	font-weight: 500;
	transition: border-color .2s;
}

.sts-form ::placeholder {
	color: var(--sky);
	opacity: 1;
}

.sts-form select {
	appearance: none;
	padding-right: 44px;
	background: #fff url("../img/select-chevron.svg") right 18px center / 16px 16px no-repeat;
	color: var(--sky);
	cursor: pointer;
}

.sts-form textarea {
	height: 114px;
	padding-top: 10px;
	border-radius: 24px;
	line-height: calc(21.6 * var(--fs));
	resize: vertical;
}

.sts-form input:focus,
.sts-form select:focus,
.sts-form textarea:focus {
	border-color: var(--sky);
	outline: none;
}

.sts-form input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.sts-form__file {
	display: flex;
	align-items: center;
	height: 42px;
	overflow: hidden;
	border: 0;
	border-radius: 48px;
	background: #fff;
	cursor: pointer;
}

.sts-form__file:has(+ input:focus-visible) .sts-form__file-button {
	background: var(--navy);
}

.sts-form__file-name {
	flex: 1;
	min-width: 0;
	padding: 0 15px;
	overflow: hidden;
	color: var(--sky);
	font-size: calc(14.4 * var(--fs));
	font-weight: 500;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sts-form__file-button {
	display: grid;
	flex: none;
	place-items: center;
	align-self: stretch;
	width: 89px;
	border-radius: 0 50px 50px 0;
	background: var(--mid);
	color: #fff;
	font-size: max(12px, calc(12.6 * var(--fs)));
	transition: background-color .2s;
}

.sts-form__file:hover .sts-form__file-button {
	background: var(--navy);
}

.sts-form__submit {
	min-width: 158px;
	min-height: 35px;
	margin-top: 40px;
	padding: 0 28px;
	border: 0;
	border-radius: 999px;
	background: var(--navy);
	color: #fff;
	font-size: calc(16 * var(--fs));
	cursor: pointer;
	transition: background-color .2s;
}

.sts-form__submit:hover {
	background: var(--sky);
}

.form-panel--blue .form-status--ok,
.form-panel--blue .form-status--error {
	padding: 8px 14px;
	border-radius: 12px;
	background: #fff;
}

@media (max-width: 479px) {
	.sts-form__field.is-half {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1100px) {
	.form-panel {
		padding-block: 88px 79px;
	}
}

/* ---------- news card ---------- */

.post-card {
	display: flex;
	flex-direction: column;
	padding: 8px 8px 16px;
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow);
}

.post-card__image img {
	width: 100%;
	aspect-ratio: 240 / 240;
	border-radius: 12px;
	object-fit: cover;
}

.post-card__title {
	margin-top: 14px;
	padding-inline: 4px;
	font-size: calc(20 * var(--fs));
	font-weight: 700;
	line-height: 1.2;
}

.post-card__date {
	display: block;
	margin-top: 4px;
	padding-inline: 4px;
	color: var(--sky);
	font-size: max(12px, calc(12 * var(--fs)));
}

.post-card__excerpt {
	margin-top: 12px;
	padding-inline: 4px;
	font-size: max(12px, calc(12 * var(--fs)));
	line-height: 1.3;
}

.post-card__more {
	align-self: flex-start;
	margin-top: 10px;
	padding: 4px;
	color: var(--sky);
	font-size: max(12px, calc(12 * var(--fs)));
}

.post-card__title a:hover,
.post-card__more:hover {
	text-decoration: underline;
}

/* ---------- event card ---------- */

.event-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 12px 13px 18px;
	border-radius: 20px;
	background: #fff;
	filter: drop-shadow(4px 8px 6.3px rgba(32, 132, 72, .08));
}

.event-card__img {
	width: 100%;
	aspect-ratio: 1;
	border-radius: 16px;
	object-fit: cover;
}

.event-card__title {
	margin-top: 24px;
	font-size: calc(20 * var(--fs));
	font-weight: 700;
	line-height: 1.3;
}

.event-card__date {
	margin: 2px 0 10px;
	color: var(--sky);
	font-size: max(12px, calc(12 * var(--fs)));
}

.event-card__link {
	margin-top: 8px;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--sky);
	color: #fff;
	font-size: max(12px, calc(12 * var(--fs)));
	transition: background-color .2s;
}

/* The whole card is the tap target. */
.event-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 20px;
}

.event-card:hover .event-card__link,
.event-card__link:focus-visible {
	background: var(--navy);
}

@media (min-width: 1100px) {
	.event-card {
		width: 256px;
		min-height: 362px;
	}

	.event-card__img {
		width: 230px;
		height: 230px;
	}
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
	gap: 24px;
}

@media (min-width: 1100px) {
	.post-grid {
		grid-template-columns: repeat(4, 256px);
		justify-content: center;
		gap: 22px;
	}
}

.field-error {
	display: block;
	margin: 4px 14px 0;
	color: #b42318;
	font-size: calc(13 * var(--fs));
	line-height: 1.3;
	text-align: left;
}

.form-panel--blue .field-error {
	color: #fff;
	font-weight: 500;
}

[aria-invalid="true"],
.sts-form [aria-invalid] {
	border-color: #d92d20 !important;
}

.sts-form.is-sending .sts-form__submit,
.newsletter.is-sending .button {
	opacity: .6;
	cursor: progress;
}

.load-more {
	margin-top: 40px;
	text-align: center;
}

.load-more .button {
	min-width: 160px;
	font-size: calc(16 * var(--fs));
}

.load-more [aria-busy="true"] {
	opacity: .6;
	cursor: progress;
}

.post-card.is-new {
	animation: card-in .45s ease both;
}

@keyframes card-in {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.post-card.is-new {
		animation: none;
	}
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}

	.reveal {
		opacity: 0;
		transform: translateY(24px);
		transition: opacity .6s ease, transform .6s ease;
		transition-delay: var(--reveal-delay, 0s);
	}

	.reveal.is-in {
		opacity: 1;
		transform: none;
	}

	.button,
	.portal-link,
	.sts-form__submit {
		transition: background-color .2s, transform .2s;
	}

	.button:hover,
	.sts-form__submit:hover {
		transform: translateY(-2px);
	}
}

/* In-page jumps (e.g. Contact → enquiry form) land with a little breathing room. */
[id] {
	scroll-margin-top: 24px;
}

/* ---------- card titles ----------
   Titles always take two lines' worth of space so the text under them starts at the
   same height in every card. One-line titles sit in the middle; longer ones stop at
   two lines with an ellipsis (the full title is on the detail page). */

.title-box {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: calc(2em * 1.3);
	line-height: 1.3;
}

.title-box--start {
	justify-content: flex-start;
}

.title-box > * {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

/* Buttons and "Read more" stay at the bottom of the card whatever the text length. */
.post-card__more,
.event-card__link {
	margin-top: auto;
}

.post-card__excerpt {
	margin-bottom: 10px;
}

/* On the blue sections a sky-blue hover would melt into the background. */
.form-panel--blue .sts-form__submit {
	border: 2px solid transparent;
}

.form-panel--blue .sts-form__submit:hover {
	border-color: var(--navy);
	background: #fff;
	color: var(--navy);
}
