/* ==========================================================================
   HEI2MARKET theme: classic editorial layout, aligned left on a 12 column grid
   1. Fonts  2. Tokens  3. Base  4. Layout  5. Type helpers  6. Buttons and links
   7. Header and menu  8. Heroes  9. Sections  10. News  11. Article
   12. Forms  13. Footer  14. Motion  15. Print
   Width: one 70rem container (1120px at the base size); everything shares its left edge.
   Reading text 42.5rem (680px). Sizes are in rem, so from 1366px wide the whole layout
   scales up with the root font size (see "Base"); below that nothing changes.
   Plain section headings; hairlines separate sections that share the white background.
   Colour: white pages, a soft blue-green "mist" for the top band of every page,
   alternate sections, header and footer.
   Breakpoints (mobile first): 640, 768, 1024px
   ========================================================================== */

/* 1. Fonts (self-hosted variable fonts, latin + latin-ext) ----------------- */
@font-face {
	font-family: "Newsreader";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/newsreader-latin-ext-opsz-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Newsreader";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Newsreader";
	font-style: italic;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/newsreader-latin-ext-opsz-italic.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Newsreader";
	font-style: italic;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/newsreader-latin-opsz-italic.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Tokens -------------------------------------------------------------- */
:root {
	/* Ink: a deep petrol derived from the logo teal. Mist: a soft blue with a touch of green,
	   leaning towards the logo teal. Accents come from the logo. */
	--ink: #0e2530;
	--text: #34444d;
	--muted: #57676f;
	--line: #d5e1e2;
	--line-strong: #b2c6c9;
	--mist: #e4f1f2;
	--mist-2: #cfe5e7;
	--mist-line: #bfd8db;
	--mist-line-strong: #97bcc1;
	--white: #fff;
	--teal: #197da4;
	--teal-deep: #0f607f;
	--teal-light: #8fcde4;
	--green: #08b36c;
	--green-deep: #0b7550;
	--error: #b3261e;
	--focus: #197da4;

	--font-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--fs-xs: .75rem;
	--fs-sm: .875rem;
	--fs-base: 1.0625rem;
	--fs-lead: clamp(1.125rem, 1.07rem + .25vw, 1.25rem);
	--fs-h3: clamp(1.3125rem, 1.24rem + .3vw, 1.5rem);
	--fs-h2: clamp(2rem, 1.5rem + 2vw, 3rem);
	--fs-h1: clamp(2.625rem, 1.6rem + 3.6vw, 4.5rem);
	--fs-title: clamp(2.375rem, 1.6rem + 3.2vw, 4.25rem);

	--section: clamp(4.25rem, 2.9rem + 5.2vw, 7.5rem);
	--container: 70rem;
	--text-width: 42.5rem;
	--gutter: clamp(1.25rem, .6rem + 2.8vw, 3rem);
	--gap: clamp(1.25rem, .8rem + 1.8vw, 2.5rem);
	--header-h: 4.5rem;

	--ease: cubic-bezier(.22, .61, .36, 1);
	--ease-out: cubic-bezier(.16, 1, .3, 1);
}
@media (min-width: 1024px) {
	:root { --header-h: 5.25rem; }
}

/* 3. Base ---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 1.5rem);
}
/* Wide screens: the page grows with the window, from 16px at 1366px to 22px at about
   2300px, so a large monitor shows the same composition as a laptop instead of a small
   page in a wide empty frame. Phones, tablets and laptops keep the base size. */
@media (min-width: 1366px) {
	html { font-size: clamp(100%, .4613rem + .631vw, 137.5%); }
}
html:has(.mobile-nav[open]),
html:has(.lightbox[open]) { overflow: hidden; }

body {
	margin: 0;
	background: var(--white);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: var(--fs-base);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

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

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em;
	color: var(--ink);
	font-family: var(--font-serif);
	font-optical-sizing: auto;
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: -.012em;
	text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -.032em; }
h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -.024em; }
h3 { font-size: var(--fs-h3); line-height: 1.22; }
h4 { font-size: 1.25rem; line-height: 1.3; }
h5, h6 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a {
	color: var(--teal-deep);
	text-decoration-thickness: 1px;
	text-underline-offset: .22em;
	transition: color .25s var(--ease), text-decoration-color .25s var(--ease);
}
a:hover { color: var(--ink); }

strong, b { color: var(--ink); font-weight: 600; }

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

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
.site-main:focus { outline: none; }
::selection { background: #cfe7f0; color: var(--ink); }

:where(ul[role="list"], ol[role="list"]) { list-style: none; margin: 0; padding: 0; }
hr { margin: 3rem 0; border: 0; border-top: 1px solid var(--line); }

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
	word-wrap: normal !important;
}
.skip-link {
	position: absolute;
	top: -200px;
	left: 1rem;
	z-index: 1000;
	padding: .8rem 1.1rem;
	background: var(--ink);
	color: var(--white);
	font-size: var(--fs-sm);
	font-weight: 500;
	text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* 4. Layout -------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.section { padding-block: var(--section); }
/* Tinted areas redefine the line colours so every hairline inside stays visible. */
.section--mist,
.site-footer,
.mobile-nav,
.hero__inner,
.page-hero__inner,
.article__head {
	--line: var(--mist-line);
	--line-strong: var(--mist-line-strong);
}
.section--mist { border-block: 1px solid var(--mist-line); background: var(--mist); }

/* Two plain sections in a row share one gap with a hairline between them. */
.section:not(.section--mist) + .section:not(.section--mist) { padding-top: 0; }
.section:not(.section--mist) + .section:not(.section--mist) > .container::before {
	content: "";
	display: block;
	height: 1px;
	margin-bottom: calc(var(--section) * .85);
	background: var(--line);
}

/* Split sections: the heading on the left, the content on the right of a 12 column grid.
   .split--text gives long text more room. A sticky heading stays in view beside long content. */
.split { display: grid; gap: 2.25rem var(--gap); }
.split__head .section-head { margin-bottom: 0; }
@media (min-width: 1024px) {
	.split { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.split__head { grid-column: 1 / span 5; }
	.split__body { grid-column: 7 / -1; }
	.split--text .split__head { grid-column: 1 / span 4; }
	.split--text .split__body { grid-column: 6 / -1; }
	.split__head--sticky { position: sticky; top: calc(var(--header-h) + 2.5rem); align-self: start; }
}

/* 5. Type helpers -------------------------------------------------------- */
.section-head { margin: 0 0 clamp(2.25rem, 1.8rem + 1.8vw, 3.25rem); }
.section-head .section-title { max-width: 17em; margin: 0; }
.section-head__text { max-width: 36rem; margin: 1.25rem 0 0; color: var(--text); line-height: 1.7; }
.section-link { margin: clamp(2.25rem, 1.8rem + 1.8vw, 3.25rem) 0 0; }

.caption { margin-top: .9rem; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.caption--photo { font-family: var(--font-serif); font-size: .9375rem; font-style: italic; }

.status {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	color: var(--muted);
	font-size: .8125rem;
	font-weight: 500;
	line-height: 1.3;
	white-space: nowrap;
}
.status::before {
	content: "";
	width: .4375rem;
	height: .4375rem;
	border-radius: 50%;
	background: currentColor;
}
.status--done { color: var(--green-deep); }
.status--current { color: var(--teal-deep); }
.status--upcoming::before { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }

/* 6. Buttons and links --------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .8rem;
	min-height: 3.25rem;
	padding: .85rem 1.6rem;
	border: 1px solid var(--ink);
	border-radius: 0;
	background: var(--ink);
	color: var(--white);
	font-family: var(--font-sans);
	font-size: .9375rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: .01em;
	text-decoration: none;
	transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.btn:hover { border-color: var(--teal-deep); background: var(--teal-deep); color: var(--white); }
.btn--light { border-color: var(--white); background: var(--white); color: var(--ink); }
.btn--light:hover { border-color: var(--white); background: transparent; color: var(--white); }
/* Secondary button: outline only, fills on hover. */
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }
.btn--small { min-height: 2.625rem; padding: .55rem 1.1rem; font-size: .875rem; }

/* 7. Header and menu ----------------------------------------------------- */
/* The header shares the mist of the top band, so the band reads as one piece with it. */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid var(--mist-line);
	background: var(--mist);
	background: color-mix(in srgb, var(--mist) 94%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
	transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--mist-line-strong); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	height: var(--header-h);
}

.brand { display: inline-flex; flex: none; }
.brand img { width: auto; height: 1.875rem; }
@media (min-width: 1024px) {
	.site-header .brand img { height: 2.0625rem; }
}

.primary-nav { display: none; }
.primary-nav .menu {
	display: flex;
	align-items: center;
	gap: clamp(1.5rem, .8rem + 1.4vw, 2.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
}
.primary-nav a {
	position: relative;
	display: inline-block;
	padding: .5rem 0;
	color: var(--ink);
	font-size: .9375rem;
	font-weight: 450;
	letter-spacing: .005em;
	text-decoration: none;
}
.primary-nav a::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: .2rem;
	left: 0;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .4s var(--ease);
}
.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after,
.primary-nav .current-menu-item > a::after { transform: scaleX(1); }
.primary-nav .is-cta > a {
	padding: .6rem 1.1rem;
	border: 1px solid var(--ink);
	transition: background-color .3s var(--ease), color .3s var(--ease);
}
.primary-nav .is-cta > a::after { display: none; }
.primary-nav .is-cta > a:hover,
.primary-nav .is-cta > a[aria-current="page"] { background: var(--ink); color: var(--white); }

.nav-toggle {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	margin-right: -.25rem;
	padding: .6rem .25rem;
	border: 0;
	background: none;
	color: var(--ink);
	font-size: .875rem;
	font-weight: 500;
}
.nav-toggle .icon { width: 1.5rem; height: 1.5rem; }

@media (min-width: 768px) {
	.primary-nav { display: block; }
	.nav-toggle { display: none; }
}

.mobile-nav {
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--mist);
	color: var(--ink);
}
.mobile-nav[open] { display: flex; animation: h2m-fade .35s var(--ease-out); }
.mobile-nav::backdrop { background: rgba(14, 37, 48, .25); }
.mobile-nav__inner {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 100%;
	padding: 0 var(--gutter) 2rem;
	overflow-y: auto;
}
.mobile-nav__top {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: space-between;
	height: var(--header-h);
	border-bottom: 1px solid var(--line);
}
.mobile-nav__close {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	margin-right: -.25rem;
	padding: .6rem .25rem;
	border: 0;
	background: none;
	color: var(--ink);
	font-size: .875rem;
	font-weight: 500;
}
.mobile-nav__close .icon { width: 1.5rem; height: 1.5rem; }
.mobile-nav__menu { margin-top: 1.5rem; }
.mobile-menu { margin: 0; padding: 0; list-style: none; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu a {
	display: block;
	padding: 1.1rem 0;
	color: var(--ink);
	font-family: var(--font-serif);
	font-size: clamp(1.75rem, 1.45rem + 1.6vw, 2.25rem);
	line-height: 1.15;
	letter-spacing: -.015em;
	text-decoration: none;
}
.mobile-menu a[aria-current="page"],
.mobile-menu .current-menu-item > a { color: var(--teal-deep); }
.mobile-nav__foot { margin-top: auto; padding-top: 3rem; }
.mobile-nav__note { margin: 0 0 1.25rem; color: var(--muted); font-size: var(--fs-sm); }

/* Funding logos (hero, footer, menu) */
.funding-logos {
	--logo-h: 2rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .9rem 1.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.funding-logos__item { display: flex; align-items: center; }
.funding-logos__item img { width: auto; height: var(--logo-h); }
/* Each logo links to the funder's website. */
.funding-logos__link {
	display: flex;
	align-items: center;
	text-decoration: none;
	transition: opacity .25s var(--ease);
}
.funding-logos__link:hover { opacity: .75; }
.funding-logos__link:focus-visible { outline-offset: 4px; }
.eu-emblem { gap: .55rem; }
.eu-emblem .eu-flag { width: auto; height: calc(var(--logo-h) * .82); }
.eu-emblem__text {
	color: #039;
	font-family: Arial, Helvetica, sans-serif;
	font-size: max(10px, calc(var(--logo-h) * .3));
	line-height: 1.2;
	white-space: nowrap;
}
.funding-logos--hero { --logo-h: 1.875rem; gap: .9rem 1.5rem; }
.funding-logos--menu { --logo-h: 1.875rem; }
.funding-logos--footer { --logo-h: 2.5rem; }
@media (min-width: 1024px) {
	.funding-logos--hero { --logo-h: 1.8125rem; gap: .9rem 1.35rem; }
	.funding-logos--footer { --logo-h: 2.625rem; gap: 1rem 2.25rem; }
}

/* 8. Heroes -------------------------------------------------------------- */
/* Every page opens on the mist band. With a photo, the band ends halfway down the photo
   (the figure paints its lower half white; 1.15rem allows for the caption). */
.hero { padding-top: clamp(3rem, 1.9rem + 4.4vw, 6rem); background: var(--mist); }
.hero__inner { display: grid; gap: clamp(2.75rem, 2.2rem + 2.2vw, 3.5rem); }
@media (min-width: 1024px) {
	.hero__inner { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
	.hero__main { grid-column: 1 / span 8; }
	.hero__aside { grid-column: 9 / -1; }
}
.hero__title { max-width: 11em; margin: 0; font-size: clamp(2.625rem, 1.6rem + 3.4vw, 4.25rem); }
.hero__lead {
	max-width: 34rem;
	margin: clamp(1.4rem, 1.1rem + 1vw, 2rem) 0 0;
	color: var(--text);
	font-size: var(--fs-lead);
	line-height: 1.65;
}
.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.1rem 2rem;
	margin-top: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
}

/* Key facts and the funders beside the headline */
.glance { padding-top: 1.1rem; border-top: 1px solid var(--ink); }
.glance__title {
	margin: 0 0 .35rem;
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0;
}
.glance__list { margin: 0; }
.glance__row {
	display: grid;
	grid-template-columns: 6.5rem minmax(0, 1fr);
	align-items: baseline;
	column-gap: 1rem;
	padding: .85rem 0 .9rem;
	border-bottom: 1px solid var(--line);
}
.glance__value {
	order: -1;
	margin: 0;
	color: var(--ink);
	font-family: var(--font-serif);
	font-size: 1.75rem;
	line-height: 1.1;
	letter-spacing: -.02em;
	white-space: nowrap;
}
.glance__label { color: var(--text); font-size: .875rem; line-height: 1.45; }
.glance__funding { margin-top: 1.6rem; }
.glance__funding-label {
	margin: 0 0 .85rem;
	color: var(--muted);
	font-size: .875rem;
	font-weight: 500;
	line-height: 1.5;
}
/* Tablets: the facts run in two columns under the intro. */
@media (min-width: 640px) and (max-width: 1023px) {
	.glance__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }
}

.hero__media {
	margin: clamp(2.75rem, 2.2rem + 2.2vw, 4rem) 0 0;
	background: linear-gradient(to bottom, transparent calc(50% - 1.15rem), var(--white) 0);
}
.hero__frame { position: relative; overflow: hidden; background: var(--mist-2); }
.hero__img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: 50% 42%;
}
@media (min-width: 640px) {
	.hero__img { aspect-ratio: 16 / 9; }
}
@media (min-width: 1024px) {
	.hero__img { aspect-ratio: 2 / 1; }
}

/* Inner page header: breadcrumbs, title and intro, aligned left */
.page-hero {
	padding-block: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem) clamp(3.25rem, 2.5rem + 3vw, 5rem);
	border-bottom: 1px solid var(--mist-line);
	background: var(--mist);
}
.page-hero--media { padding-bottom: 0; border-bottom: 0; }
.page-hero__title { max-width: 14em; margin: 0; font-size: var(--fs-title); line-height: 1.04; letter-spacing: -.03em; }
.page-hero__lead {
	max-width: 40rem;
	margin: clamp(1.25rem, 1rem + 1vw, 1.75rem) 0 0;
	color: var(--text);
	font-size: var(--fs-lead);
	line-height: 1.65;
}

.breadcrumbs { margin: 0 0 clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem); color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .25rem 0; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { display: inline-flex; align-items: center; min-width: 0; }
.breadcrumbs li + li::before { content: "/"; margin: 0 .7rem; color: var(--line-strong); }
.breadcrumbs a {
	color: var(--muted);
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: .25em;
}
.breadcrumbs a:hover { color: var(--ink); text-decoration-color: currentColor; }
.breadcrumbs [aria-current] { color: var(--ink); }
.page-hero + .section { padding-top: clamp(3.25rem, 2.5rem + 3vw, 5rem); }
.page-hero + .section > .container::before { display: none; }
.page-hero--media + .section { padding-top: var(--section); }

/* 9. Sections ------------------------------------------------------------ */

/* Introduction and overview */
.intro__text { max-width: 36rem; }
.intro__text p { color: var(--text); font-size: 1.125rem; line-height: 1.75; }
.overview__text { max-width: var(--text-width); }
.prose--lead-first > p:first-child {
	margin-bottom: 1.25em;
	color: var(--ink);
	font-family: var(--font-serif);
	font-size: clamp(1.25rem, 1.12rem + .55vw, 1.5625rem);
	line-height: 1.45;
	letter-spacing: -.008em;
}

/* Focus areas */
.domains { margin: clamp(2.25rem, 1.8rem + 1.8vw, 3rem) 0 0; }
.domains__label {
	margin: 0 0 1rem;
	color: var(--ink);
	font-size: .9375rem;
	font-weight: 600;
}
.domains__list { display: grid; gap: 1.5rem var(--gap); margin: 0; }
.domain { padding-top: 1rem; border-top: 1px solid var(--line-strong); }
.domain dt { color: var(--ink); font-family: var(--font-serif); font-size: 1.3125rem; line-height: 1.3; }
.domain dd { margin: .35rem 0 0; color: var(--muted); font-size: .9375rem; line-height: 1.55; }
@media (min-width: 640px) {
	.domains__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Expected outcomes: each figure hangs from an ink rule */
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem var(--gap); }
.figure {
	display: flex;
	flex-direction: column;
	gap: .8rem;
	padding-top: 1.35rem;
	border-top: 1px solid var(--ink);
}
.figure__value {
	color: var(--ink);
	font-family: var(--font-serif);
	font-size: clamp(2.5rem, 1.9rem + 2.2vw, 3.5rem);
	line-height: 1;
	letter-spacing: -.035em;
}
.figure__label { max-width: 14rem; color: var(--text); font-size: .875rem; line-height: 1.5; }
@media (min-width: 768px) {
	.figures { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.figures { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Objectives as four pillars, each under an ink rule */
.pillars { display: grid; gap: 2.5rem var(--gap); }
.pillar { padding-top: 1.25rem; border-top: 1px solid var(--ink); }
.pillar__title { margin: 0 0 .7rem; font-size: var(--fs-h3); }
.pillar__text { max-width: 24rem; margin: 0; color: var(--text); font-size: .9375rem; line-height: 1.65; }
@media (min-width: 640px) {
	.pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.pillars { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Phases: on wider screens each phase is as wide as it is long and the line above it is a
   progress bar that fills up to today. The columns come from the template (--phase-cols). */
.phases { display: grid; gap: 3.25rem 0; }
.phase { position: relative; padding-top: 2.25rem; }
.phase__bar { position: absolute; top: 0; right: 0; left: 0; height: 1px; background: var(--line-strong); }
.phase__bar::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	width: calc(var(--progress, 0) * 100%);
	height: 3px;
	background: var(--teal);
}
.phase--done .phase__bar::before { background: var(--green); }
.phase::before {
	content: "";
	position: absolute;
	top: calc((1px - .6875rem) / 2);
	left: 0;
	z-index: 1;
	width: .6875rem;
	height: .6875rem;
	border-radius: 50%;
	background: var(--mist);
	box-shadow: inset 0 0 0 1px var(--muted);
}
.phase--done::before { background: var(--green); box-shadow: none; }
.phase--current::before { background: var(--teal); box-shadow: 0 0 0 .3125rem rgba(25, 125, 164, .16); }
.phase__today {
	position: absolute;
	bottom: calc(100% + .75rem);
	left: calc(var(--progress, 0) * 100%);
	color: var(--teal-deep);
	font-size: .8125rem;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	transform: translateX(-50%);
}
.phase__today::after {
	content: "";
	position: absolute;
	top: calc(100% + .25rem);
	left: 50%;
	width: 1px;
	height: .5rem;
	background: var(--teal);
}
.phase__label {
	margin: 0 0 .85rem;
	color: var(--muted);
	font-size: .875rem;
	font-weight: 500;
}
.phase__title { margin: 0; font-size: clamp(1.75rem, 1.4rem + 1.3vw, 2.375rem); line-height: 1.1; letter-spacing: -.02em; }
.phase__period { margin: .55rem 0 0; color: var(--muted); font-size: .9375rem; }
.phase__status { margin: .85rem 0 0; }
.phase__text { max-width: 30rem; margin: 1.1rem 0 0; color: var(--text); }
@media (min-width: 768px) {
	.phases { grid-template-columns: var(--phase-cols, repeat(2, minmax(0, 1fr))); }
	.phase { padding-right: var(--gap); }
	.phase:last-child { padding-right: 0; }
}

/* Phase 1 results (About) */
.results { margin: clamp(3.75rem, 3rem + 3vw, 5.5rem) 0 0; }
.results__title { margin: 0 0 1.75rem; font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); }
.results__grid { display: grid; gap: 2rem var(--gap); }
.result {
	display: flex;
	flex-direction: column;
	gap: .7rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--ink);
}
.result__value { color: var(--ink); font-family: var(--font-serif); font-size: clamp(2.25rem, 1.9rem + 1.4vw, 3rem); line-height: 1; letter-spacing: -.03em; }
.result__label { max-width: 18rem; color: var(--text); font-size: .875rem; line-height: 1.5; }
@media (min-width: 640px) {
	.results__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.results__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Timeline (About): a line on the left; from tablets on the date gets its own column */
.timeline { position: relative; margin: 0; }
.timeline::before {
	content: "";
	position: absolute;
	top: .6rem;
	bottom: .6rem;
	left: calc((.6875rem - 1px) / 2);
	width: 1px;
	background: var(--line-strong);
}
.timeline__item { position: relative; padding: 0 0 2.25rem 2.25rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
	content: "";
	position: absolute;
	top: .4rem;
	left: 0;
	z-index: 1;
	width: .6875rem;
	height: .6875rem;
	border-radius: 50%;
	background: var(--ink);
}
.timeline__item--current::before { background: var(--teal); box-shadow: 0 0 0 .3125rem rgba(25, 125, 164, .16); }
.timeline__item--upcoming::before { background: var(--white); box-shadow: inset 0 0 0 1px var(--muted); }
.timeline__date {
	display: block;
	margin-bottom: .35rem;
	color: var(--teal-deep);
	font-size: .875rem;
	font-weight: 500;
	line-height: 1.4;
}
.timeline__title { margin: 0; font-size: clamp(1.25rem, 1.15rem + .4vw, 1.4375rem); line-height: 1.25; }
.timeline__title a { color: inherit; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .18em; }
.timeline__title a:hover { color: var(--ink); text-decoration-color: currentColor; }
.timeline__body p { margin: .4rem 0 0; color: var(--text); font-size: .9375rem; line-height: 1.6; }
.timeline__body .status { margin-top: .6rem; }
.timeline__item--upcoming .timeline__title,
.timeline__item--upcoming .timeline__body p { color: var(--muted); }
@media (min-width: 768px) {
	.timeline__item {
		display: grid;
		grid-template-columns: 9.5rem minmax(0, 1fr);
		column-gap: 1.75rem;
		padding: 0 0 2.5rem 2.5rem;
	}
	.timeline__date { margin: 0; padding-top: .3rem; }
}

/* Partners: the countries beside a map of Europe, then the logos */
.partners__top { margin-bottom: clamp(3rem, 2.4rem + 2.5vw, 4.5rem); }
.countries { margin: 2rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.country {
	position: relative;
	display: grid;
	grid-template-columns: 9rem minmax(0, 1fr);
	gap: .15rem 1rem;
	padding: .75rem 0 .8rem 1.4rem;
	border-bottom: 1px solid var(--line);
	font-size: .9375rem;
	line-height: 1.5;
}
/* The square is the map key: the same colour as the country on the map. */
.country::before {
	content: "";
	position: absolute;
	top: 1.2rem;
	left: 0;
	width: .5625rem;
	height: .5625rem;
	background: var(--teal);
	transition: background-color .25s var(--ease);
}
.country__name { color: var(--ink); font-weight: 600; }
.country__partners { color: var(--muted); }
.country.is-active::before { background: var(--ink); }
.country.is-active .country__name { color: var(--teal-deep); }
@media (max-width: 479px) {
	.country { grid-template-columns: minmax(0, 1fr); }
}

.partners-map { max-width: 40rem; margin: 0; }
/* The map fades out at its edges instead of ending in a hard frame. */
.europe-map {
	display: block;
	width: 100%;
	height: auto;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 90%, transparent);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 90%, transparent);
	mask-composite: intersect;
}
.europe-map__country {
	fill: var(--teal);
	stroke: var(--white);
	stroke-width: .8;
	stroke-linejoin: round;
	transition: fill .25s var(--ease);
}
.europe-map__country.is-active { fill: var(--ink); }
@media (min-width: 1024px) {
	.partners__top .split__body { align-self: start; }
}

.partners {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1px;
	border: 1px solid var(--line);
	background: var(--line);
}
.partners__item { display: flex; background: var(--white); }
.partner {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1.25rem;
	width: 100%;
	padding: 1rem;
	color: inherit;
	text-decoration: none;
}
.partner__logo {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 5.5rem;
	min-height: 4.5rem;
}
.partner__logo img { width: auto; max-width: 100%; height: auto; max-height: 3.5rem; object-fit: contain; }
.partner__info { display: flex; flex-direction: column; gap: .2rem; }
.partner__role {
	color: var(--teal-deep);
	font-size: .875rem;
	font-weight: 500;
}
.partner__name { color: var(--ink); font-family: var(--font-serif); font-size: 1.125rem; line-height: 1.25; }
.partner__meta { color: var(--muted); font-size: .8125rem; line-height: 1.4; }
a.partner:hover .partner__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a.partner:focus-visible { outline-offset: -4px; }
@media (hover: hover) {
	.partner__logo img { opacity: .78; filter: grayscale(1); transition: filter .5s var(--ease), opacity .5s var(--ease); }
	a.partner:hover .partner__logo img { opacity: 1; filter: none; }
}
@media (min-width: 640px) {
	.partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.partners__item--lead { grid-column: 1 / -1; }
	.partner { flex-direction: column; align-items: flex-start; gap: 0; padding: 1.75rem 1.5rem 1.6rem; }
	.partner__logo { justify-content: flex-start; width: 100%; height: 5rem; min-height: 0; margin-bottom: 1.25rem; }
	.partner__logo img { max-width: min(100%, 9.5rem); max-height: 4.25rem; }
	.partner--lead { flex-direction: row; align-items: center; gap: 2rem; }
	.partner--lead .partner__logo { width: auto; height: auto; margin: 0; }
	.partner--lead .partner__logo img { max-width: 8rem; max-height: 6.5rem; }
	.partner--lead .partner__name { font-size: 1.5rem; }
}
@media (min-width: 1024px) {
	.partners { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.partners__item--lead { grid-column: span 2; }
}

.associated { margin: clamp(2.75rem, 2.2rem + 2vw, 3.75rem) 0 0; }
.associated__title {
	margin: 0 0 1rem;
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: .9375rem;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0;
}
.associated__list { display: grid; gap: 0 var(--gap); }
.associated__list li { padding: .95rem 0 1rem; border-top: 1px solid var(--line); color: var(--ink); font-size: .9375rem; line-height: 1.5; }
@media (min-width: 640px) {
	.associated__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.associated__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Related initiatives */
.initiatives { display: grid; border-top: 1px solid var(--ink); }
.initiative {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: .45rem;
	height: 100%;
	padding: 1.5rem 0 1.6rem;
	border-bottom: 1px solid var(--line);
	color: inherit;
	text-decoration: none;
}
.initiative__url { color: var(--muted); font-size: .8125rem; letter-spacing: .02em; }
.initiative__title { color: var(--ink); font-family: var(--font-serif); font-size: clamp(1.25rem, 1.15rem + .4vw, 1.4375rem); line-height: 1.25; }
.initiative:hover .initiative__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
@media (min-width: 1024px) {
	.initiatives { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); border-top: 0; }
	.initiative { padding: 1.75rem 1rem 0 0; border-top: 1px solid var(--ink); border-bottom: 0; }
	}

/* Call to action */
.cta {
	padding-block: clamp(4.5rem, 3.3rem + 5vw, 7.5rem);
	background: var(--ink);
	color: rgba(255, 255, 255, .78);
}
.cta__title { max-width: 14em; margin: 0; color: var(--white); font-size: var(--fs-h2); }
.cta__text {
	max-width: 32rem;
	margin: 1.25rem 0 2.25rem;
	color: rgba(255, 255, 255, .76);
	font-size: var(--fs-lead);
	line-height: 1.6;
}
.cta :focus-visible { outline-color: var(--teal-light); }

/* EIT context (About) */
.eit__badge-link { display: inline-block; margin: 0 0 1.75rem; border-radius: 50%; transition: opacity .25s var(--ease); }
.eit__badge-link:hover { opacity: .75; }
.eit__badge { display: block; width: clamp(4.5rem, 4rem + 2vw, 6rem); height: auto; }
.eit__text { max-width: 38rem; }
.eit__links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 2.25rem; }

/* 404 */
.not-found__inner > * { max-width: 46rem; }
.not-found .search-form { margin: 0 0 clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.link-list { border-top: 1px solid var(--ink); }
.link-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.15rem 0;
	border-bottom: 1px solid var(--line);
	color: var(--ink);
	font-family: var(--font-serif);
	font-size: clamp(1.375rem, 1.2rem + .7vw, 1.75rem);
	line-height: 1.2;
	text-decoration: none;
}

/* 10. News --------------------------------------------------------------- */
.cards { display: grid; gap: 3.25rem var(--gap); }
@media (min-width: 640px) {
	.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 4rem; }
}
/* Each card hangs from an ink rule, like the pillars and initiatives. */
.card { position: relative; display: flex; flex-direction: column; padding-top: 1.25rem; border-top: 1px solid var(--ink); }
.card__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	margin-bottom: 1.35rem;
	background: var(--mist-2);
}
.card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--ease-out);
}
.card:hover .card__media img { transform: scale(1.035); }
.card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .35rem .75rem;
	margin: 0 0 .7rem;
	color: var(--muted);
	font-size: .875rem;
}
.card__dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.card__title { margin: 0; font-size: clamp(1.25rem, 1.18rem + .3vw, 1.4375rem); line-height: 1.24; letter-spacing: -.01em; }
.card__title a {
	color: var(--ink);
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 1px;
	text-underline-offset: .18em;
}
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card__title a { text-decoration-color: currentColor; }
.card__title a:focus-visible { outline: none; }
.card:has(.card__title a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 6px; }
.card__excerpt {
	display: -webkit-box;
	overflow: hidden;
	margin: .8rem 0 0;
	color: var(--muted);
	font-size: .9375rem;
	line-height: 1.6;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}
.card__more { margin-top: 1.5rem; align-self: flex-start; }
.card:hover .card__more { background: var(--ink); color: var(--white); }
.placeholder { display: grid; width: 100%; height: 100%; place-items: center; background: var(--mist-2); }
.placeholder img { width: 22%; max-width: 6.5rem; height: auto; opacity: .9; }
.card:hover .placeholder img { transform: none; }

/* Homepage and article footer: the latest article large, the next two stacked beside it */
.news-grid { display: grid; gap: 3.25rem var(--gap); }
.news-grid__side { display: grid; gap: 3.25rem var(--gap); align-content: start; }
.card--lead .card__title { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); line-height: 1.14; letter-spacing: -.02em; }
.card--lead .card__excerpt { -webkit-line-clamp: 7; font-size: 1rem; }
.card--side .card__media { aspect-ratio: 2 / 1; margin-bottom: 1.15rem; }
@media (min-width: 640px) and (max-width: 1023px) {
	.news-grid__side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.card--side .card__media { aspect-ratio: 3 / 2; }
}
@media (min-width: 1024px) {
	.news-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.news-grid > .card--lead { grid-column: 1 / span 7; }
	.news-grid__side { grid-column: 8 / -1; gap: 2.5rem; }
}

@media (min-width: 640px) {
	.card--featured { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
	.card--featured {
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		column-gap: var(--gap);
		align-items: center;
		padding-bottom: 4rem;
		border-bottom: 1px solid var(--line);
	}
	.card--featured .card__media { grid-column: 1 / span 7; margin: 0; aspect-ratio: 4 / 3; }
	.card--featured .card__body { grid-column: 8 / -1; }
	.card--featured .card__title { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); line-height: 1.12; letter-spacing: -.022em; }
	.card--featured .card__excerpt { -webkit-line-clamp: 5; font-size: 1rem; }
}

.pagination { margin-top: 4.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .4rem;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 .6rem;
	border-bottom: 1px solid transparent;
	color: var(--ink);
	font-size: .9375rem;
	text-decoration: none;
}
.pagination .page-numbers.current { border-bottom-color: var(--ink); }
.pagination a.page-numbers:hover { color: var(--teal-deep); }

.empty-state { max-width: 34rem; }
.empty-state h2 { font-size: var(--fs-h3); }
.empty-state .search-form { margin: 1.5rem 0 0; }
.search-again { padding-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.search-again + .news-list { padding-top: clamp(2.5rem, 2rem + 2vw, 4rem); }

/* 11. Article ------------------------------------------------------------ */
.article__top { padding-top: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem); background: var(--mist); }
.article__top:not(.article__top--media) { padding-bottom: clamp(3rem, 2.4rem + 2.5vw, 4.5rem); border-bottom: 1px solid var(--mist-line); }
/* A portrait photo stands beside the title. */
.article__head { display: grid; column-gap: var(--gap); }
.article__portrait { max-width: 22rem; margin: 2.5rem 0 0; }
.article__portrait img { width: 100%; height: auto; }
@media (min-width: 768px) {
	.article__top--portrait .article__head { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.article__top--portrait .breadcrumbs { grid-column: 1 / -1; }
	.article__top--portrait .article__header { grid-column: 1 / span 7; align-self: center; }
	.article__portrait { grid-column: 9 / -1; max-width: none; margin: 0; }
}
.article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .35rem .75rem;
	margin: 0 0 1.1rem;
	color: var(--muted);
	font-size: .9375rem;
}
.article__title { max-width: 19em; margin: 0; font-size: clamp(2.125rem, 1.5rem + 2.5vw, 3.5rem); line-height: 1.08; letter-spacing: -.026em; }
.article__media {
	margin: clamp(2.5rem, 2rem + 2.5vw, 4rem) 0 0;
	background: linear-gradient(to bottom, transparent 50%, var(--white) 0);
}
.article__media img { width: 100%; max-height: 82vh; object-fit: cover; }

/* Body: the text on the right of the grid, share links in a side column that stays in view */
.article__layout { display: grid; padding-top: clamp(2.5rem, 2rem + 2.5vw, 4rem); }
.article__body,
.page-content__body { max-width: var(--text-width); }
.article__aside .back-link { margin-top: 1.5rem; }
@media (min-width: 1024px) {
	.article__layout { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
	.article__content,
	.article__layout > .post-nav { grid-column: 4 / -1; }
	.article__aside { grid-column: 1 / span 2; grid-row: 1 / span 2; }
	.article__sticky { position: sticky; top: calc(var(--header-h) + 2rem); }
	.article__aside .share { flex-direction: column; align-items: flex-start; gap: .9rem; margin-top: 0; padding-top: 1.1rem; border-top-color: var(--ink); }
	.article__aside .share__list { flex-direction: column; gap: .5rem; }
	.article__aside .back-link { margin-top: 2.25rem; }
}

.prose { color: var(--text); font-size: var(--fs-base); line-height: 1.78; }
.prose > * { margin-block: 0; }
.prose > * + * { margin-top: 1.3em; }
.prose h2 { margin-top: 2em; font-size: clamp(1.625rem, 1.4rem + .9vw, 2.125rem); line-height: 1.15; }
.prose h3 { margin-top: 1.8em; font-size: clamp(1.3125rem, 1.2rem + .45vw, 1.5rem); line-height: 1.25; }
.prose h4 { margin-top: 1.6em; font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; }
.prose h2 + *,
.prose h3 + *,
.prose h4 + * { margin-top: .6em; }
.prose a { color: var(--teal-deep); text-decoration-color: rgba(15, 96, 127, .35); }
.prose a:hover { color: var(--ink); text-decoration-color: currentColor; }
.prose ul,
.prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--teal); }
.prose blockquote {
	margin-inline: 0;
	padding: .2em 0 .2em 1.5em;
	border-left: 1px solid var(--teal);
	color: var(--ink);
	font-family: var(--font-serif);
	font-size: clamp(1.25rem, 1.15rem + .5vw, 1.5rem);
	line-height: 1.45;
}
.prose blockquote p { margin: 0; }
.prose cite { display: block; margin-top: .75em; color: var(--muted); font-family: var(--font-sans); font-size: .875rem; font-style: normal; }
.prose img { height: auto; }
.prose figure { margin-inline: 0; }
.prose figcaption,
.prose .wp-caption-text,
.prose .wp-element-caption { margin-top: .75rem; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.prose hr { margin: 3em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.prose th,
.prose td { padding: .75rem .5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; }
.prose .alignleft { float: left; margin: .3em 1.5em 1em 0; }
.prose .alignright { float: right; margin: .3em 0 1em 1.5em; }
.prose .aligncenter { margin-inline: auto; }
.prose iframe,
.prose embed,
.prose video { max-width: 100%; }
.page-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; font-size: var(--fs-sm); }

/* Gallery and lightbox */
.post-gallery { margin-top: clamp(3rem, 2.4rem + 2.5vw, 4.5rem); }
.post-gallery__title {
	display: flex;
	align-items: baseline;
	gap: .4rem;
	margin: 0 0 1.1rem;
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0;
}
.post-gallery__count { color: var(--muted); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
@media (min-width: 640px) {
	.gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.gallery-item { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--mist-2); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), opacity .3s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:focus-visible { outline-offset: 2px; }

.lightbox {
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: #09181f;
	color: var(--white);
}
.lightbox[open] { display: block; animation: h2m-fade .3s var(--ease-out); }
.lightbox::backdrop { background: rgba(9, 24, 31, .6); }
.lightbox__inner {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	padding: 4.5rem 1rem 5.5rem;
}
.lightbox__figure { display: flex; flex-direction: column; align-items: center; gap: 1rem; max-width: 100%; max-height: 100%; margin: 0; }
.lightbox__img { width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 10rem); max-height: calc(100dvh - 10rem); object-fit: contain; }
.lightbox__counter { color: rgba(255, 255, 255, .7); font-size: var(--fs-sm); }
.lightbox__btn {
	position: absolute;
	display: grid;
	width: 3rem;
	height: 3rem;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, .28);
	background: transparent;
	color: var(--white);
	transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.lightbox__btn:hover { border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .08); }
.lightbox__btn[hidden] { display: none; }
.lightbox__btn .icon { width: 1.375rem; height: 1.375rem; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev,
.lightbox__next { bottom: 1.25rem; }
.lightbox__prev { left: calc(50% - 3.5rem); }
.lightbox__next { right: calc(50% - 3.5rem); }
@media (min-width: 768px) {
	.lightbox__inner { padding: 4.5rem 6.5rem 3.5rem; }
	.lightbox__prev,
	.lightbox__next { top: 50%; bottom: auto; transform: translateY(-50%); }
	.lightbox__prev { left: 1.5rem; }
	.lightbox__next { right: 1.5rem; }
}
.lightbox :focus-visible { outline-color: var(--teal-light); }

/* Share and post navigation */
.share {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .75rem 1.5rem;
	margin-top: clamp(3rem, 2.4rem + 2.5vw, 4rem);
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
}
.share__label {
	margin: 0;
	color: var(--ink);
	font-size: .9375rem;
	font-weight: 600;
}
.share__list { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 0; padding: 0; list-style: none; }
.share__list a,
.share__copy {
	padding: 0;
	border: 0;
	background: none;
	color: var(--muted);
	font-size: var(--fs-sm);
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 1px;
	text-underline-offset: .3em;
	transition: color .25s var(--ease), text-decoration-color .25s var(--ease);
}
.share__list a:hover,
.share__copy:hover { color: var(--ink); text-decoration-color: currentColor; }
.share__copy.is-copied { color: var(--green-deep); }

.post-nav {
	display: grid;
	margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0 clamp(4rem, 3rem + 4vw, 6.5rem);
	border-top: 1px solid var(--ink);
	border-bottom: 1px solid var(--line);
}
.post-nav__link {
	display: flex;
	flex-direction: column;
	gap: .55rem;
	padding: 1.6rem 0 1.7rem;
	color: inherit;
	text-decoration: none;
}
.post-nav__link + .post-nav__link { border-top: 1px solid var(--line); }
.post-nav__label {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	color: var(--muted);
	font-size: .875rem;
	font-weight: 500;
}
.post-nav__title { color: var(--ink); font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.3; }
.post-nav__link:hover .post-nav__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
@media (min-width: 768px) {
	.post-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.post-nav__link--prev { padding-right: 2rem; }
	.post-nav__link--next { grid-column: 2; align-items: flex-end; padding-left: 2rem; border-left: 1px solid var(--line); text-align: right; }
	.post-nav__link + .post-nav__link { border-top: 0; }
}

/* 12. Forms -------------------------------------------------------------- */
.contact__grid { display: grid; gap: 3.5rem; }
@media (min-width: 1024px) {
	.contact__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
	.contact__form { grid-column: 1 / span 7; }
	.contact__aside { grid-column: 9 / -1; }
}
.contact__title { margin: 0; font-size: clamp(1.75rem, 1.45rem + 1.2vw, 2.375rem); }
.contact__intro { margin-top: 1rem; }

.form { display: grid; gap: 1.5rem; margin-top: 2rem; }
.form__row { display: grid; gap: 1.5rem; }
@media (min-width: 640px) {
	.form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.field { display: grid; gap: .5rem; }
.field label { color: var(--ink); font-size: .8125rem; font-weight: 500; letter-spacing: .02em; }
.field input,
.field textarea,
.search-form__input {
	width: 100%;
	padding: .9rem 1rem;
	border: 1px solid var(--line-strong);
	border-radius: 0;
	background: var(--white);
	color: var(--ink);
	font-size: 1rem;
	line-height: 1.5;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:hover,
.field textarea:hover { border-color: var(--muted); }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(25, 125, 164, .18); }
.field textarea { min-height: 11rem; resize: vertical; }
.field input:user-invalid,
.field textarea:user-invalid { border-color: var(--error); }
.field--hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.consent { display: flex; align-items: flex-start; gap: .75rem; color: var(--text); font-size: .875rem; line-height: 1.6; }
.consent input { flex: none; width: 1.125rem; height: 1.125rem; margin: .2rem 0 0; accent-color: var(--ink); }
.req { color: var(--teal-deep); }
.form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .5rem; }
.form__hint { margin: 0; color: var(--muted); font-size: .8125rem; }

.notice {
	display: flex;
	align-items: flex-start;
	gap: .75rem;
	margin-top: 1.5rem;
	padding: 1rem 1.25rem;
	border-left: 2px solid var(--green);
	background: var(--mist);
	color: var(--ink);
}
.notice p { margin: 0; }
.notice .icon { width: 1.25rem; height: 1.25rem; margin-top: .2rem; color: var(--green-deep); }
.notice--error { border-left-color: var(--error); }
.notice--error .icon { color: var(--error); }
.notice:focus { outline: none; }

.contact-card { padding: 1.1rem 0 2rem; border-top: 1px solid var(--ink); }
.contact-card + .contact-card { border-top-color: var(--line); }
.contact-card__label {
	margin: 0 0 .9rem;
	color: var(--muted);
	font-size: .9375rem;
	font-weight: 500;
	line-height: 1.5;
}
.contact-card__title { margin: 0 0 .75rem; font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem); }
.contact-card p { color: var(--text); font-size: .9375rem; }
.contact-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.contact-list li { display: flex; flex-direction: column; gap: .15rem; font-size: .9375rem; }
.contact-list__label { color: var(--muted); font-size: .875rem; font-weight: 500; }
.contact-list a { color: var(--ink); }
.contact-list a:hover { color: var(--teal-deep); }
.contact-links { display: grid; gap: .5rem; }

.search-form { display: flex; max-width: 34rem; }
.search-form__input { flex: 1; min-width: 0; border-right: 0; }
.search-form__input:focus { outline: none; border-color: var(--ink); }
.search-form__btn { flex: none; }
.search-form__btn .icon { width: 1.125rem; height: 1.125rem; }
@media (max-width: 479px) {
	.search-form__btn { padding-inline: 1rem; }
	.search-form__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

/* Social icons */
.social { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.social a {
	display: grid;
	width: 2.5rem;
	height: 2.5rem;
	place-items: center;
	border: 1px solid var(--line-strong);
	color: var(--ink);
	transition: border-color .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.social a:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }
.social .icon { width: 1.125rem; height: 1.125rem; }

/* 13. Footer ------------------------------------------------------------- */
.site-footer {
	border-top: 1px solid var(--mist-line);
	background: var(--mist);
	color: var(--text);
	font-size: .9375rem;
}
/* Funders on the left, the funding statement beside them */
.footer__funding {
	display: grid;
	gap: 1.75rem var(--gap);
	padding-block: clamp(2.75rem, 2.2rem + 2vw, 3.75rem);
	border-bottom: 1px solid var(--line-strong);
}
.footer__funding .footer__title { margin-bottom: 1.25rem; }
.footer__statement { max-width: 40rem; margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.65; }
@media (min-width: 1024px) {
	.footer__funding { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
	.footer__funding-logos { grid-column: 1 / span 6; }
	.footer__statement { grid-column: 7 / -1; }
}

.footer__grid { display: grid; gap: 2.5rem 2rem; padding-block: clamp(2.75rem, 2.2rem + 2.5vw, 4rem); }
.footer__brand .brand img { height: 1.875rem; }
.footer__brand p { max-width: 22rem; margin: 1.25rem 0 0; color: var(--muted); font-size: .9375rem; line-height: 1.65; }
@media (min-width: 640px) {
	.footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
	.footer__grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, .8fr) minmax(0, 1.25fr) minmax(0, .9fr); column-gap: var(--gap); }
	.footer__brand { grid-column: auto; }
	/* Hairlines between the columns */
	.footer__grid > * + * { padding-left: var(--gap); border-left: 1px solid var(--line); }
}
.footer__title {
	margin: 0 0 1rem;
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: .9375rem;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.4;
}
.footer__links { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; }
.footer__links a { color: var(--text); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .25em; }
.footer__links a:hover { color: var(--ink); text-decoration-color: currentColor; }
.footer__links .is-cta > a { color: var(--text); }
.footer__muted { display: block; color: var(--muted); font-size: .8125rem; }
.footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem 2rem;
	padding-block: 1.5rem 2rem;
	border-top: 1px solid var(--line-strong);
	color: var(--muted);
	font-size: .8125rem;
}
.footer__bottom p { margin: 0; }
.footer__bottom p:first-child { margin-right: auto; }
.footer__bottom a { color: var(--muted); text-decoration: none; }
.footer__bottom a:hover { color: var(--ink); }
.to-top { display: inline-flex; align-items: center; }

/* Cookie notice (informative only: visitors get no cookies). Bottom of the screen on
   phones, a compact card in the lower left corner from 640px. */
.privacy-notice {
	position: fixed;
	right: var(--gutter);
	bottom: var(--gutter);
	left: var(--gutter);
	z-index: 60;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .85rem 1.25rem;
	max-width: 34rem;
	padding: 1rem 1.25rem;
	background: var(--ink);
	box-shadow: 0 .75rem 2.5rem rgba(14, 37, 48, .22);
	color: var(--white);
	animation: h2m-fade .4s var(--ease-out);
}
.privacy-notice[hidden] { display: none; }
.privacy-notice__text { flex: 1 1 16rem; margin: 0; font-size: .9375rem; line-height: 1.55; }
.privacy-notice__text a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.privacy-notice__text a:hover { text-decoration-thickness: 2px; }
.privacy-notice :focus-visible { outline-color: var(--white); }
@media (min-width: 640px) {
	.privacy-notice { right: auto; }
}

/* 14. Motion ------------------------------------------------------------- */
@keyframes h2m-rise {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: none; }
}
@keyframes h2m-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes h2m-unveil {
	from { clip-path: inset(6% 4% 6% 4%); }
	to { clip-path: inset(0); }
}
@keyframes h2m-settle {
	from { transform: scale(1.07); }
	to { transform: scale(1); }
}
.hero__anim { animation: h2m-rise 1.1s var(--ease-out) backwards; animation-delay: var(--d, 0ms); }
.hero__media .hero__frame { animation: h2m-unveil 1.6s var(--ease-out) .3s backwards; }
.hero__media .hero__img { animation: h2m-settle 2.4s var(--ease-out) .3s backwards; }

.js [data-reveal] {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
	transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
	.hero__anim,
	.hero__media .hero__frame,
	.hero__media .hero__img { animation: none !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
}

/* 15. Print -------------------------------------------------------------- */
@media print {
	.site-header,
	.mobile-nav,
	.skip-link,
	.share,
	.post-nav,
	.cta,
	.news-section,
	.footer__grid,
	.footer__bottom,
	.privacy-notice,
	.lightbox { display: none !important; }
	body { color: #000; font-size: 11pt; }
	.section { padding-block: 1.5rem; }
	.js [data-reveal] { opacity: 1 !important; transform: none !important; }
	.prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}
