/*
 * EuRoC theme styles.
 * Identity from the old site: EuRoC blue #18407d to #1b76bb, Mohave for titles, Raleway for text.
 */

/* Fonts: self-hosted, SIL Open Font License (see assets/fonts/OFL-*.txt). */
@font-face {
	font-family: "Mohave";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/mohave-latin.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: "Mohave";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/mohave-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Raleway";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/raleway-latin.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: "Raleway";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/raleway-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Raleway";
	font-style: italic;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/raleway-italic-latin.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: "Raleway";
	font-style: italic;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/raleway-italic-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--c-blue: #18407d;
	--c-blue-light: #1b76bb;
	--c-blue-dark: #10284f;
	--c-ink: #2b2b30;
	--c-muted: #5f6470;
	--c-line: #c9d4e4;
	--c-light: #f2f5f9;
	--c-yellow: #f5b800;
	--c-red: #d6202a;
	--c-white: #fff;
	--gradient: linear-gradient(90deg, var(--c-blue) 0%, var(--c-blue-light) 100%);

	--f-title: "Mohave", "Arial Narrow", "Roboto Condensed", sans-serif;
	--f-text: "Raleway", "Helvetica Neue", Arial, sans-serif;

	--container: 1140px;
	--container-narrow: 820px;
	--container-wide: 1400px;
	--gutter: clamp(1rem, 4vw, 2rem);
	--space: clamp(3rem, 7vw, 6rem);
	--header-h: 76px;
	--radius: 4px;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 1rem);
}

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

body {
	margin: 0;
	font-family: var(--f-text);
	font-size: 1rem;
	line-height: 1.7;
	color: var(--c-ink);
	background: var(--c-white);
	text-rendering: optimizeLegibility;
}

img,
svg {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

a {
	color: var(--c-blue);
	text-underline-offset: 0.15em;
}

a:hover {
	color: var(--c-blue-light);
}

:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
	margin: 0 0 0.5em;
	font-family: var(--f-title);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--c-blue);
}

p,
ul,
ol {
	margin: 0 0 1em;
}

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

.icon {
	width: 1.25em;
	height: 1.25em;
	fill: currentColor;
	flex: none;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 1000;
	padding: 0.75rem 1.25rem;
	background: var(--c-white);
	color: var(--c-blue);
	font-weight: 700;
	transform: translateY(-200%);
}

.skip-link:focus {
	transform: none;
}

.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--narrow {
	max-width: calc(var(--container-narrow) + 2 * var(--gutter));
}

.container--wide {
	max-width: calc(var(--container-wide) + 2 * var(--gutter));
}

.site-main:focus {
	outline: none;
}

/* Buttons ---------------------------------------------------------------------------------------- */
.button {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	padding: 0.8em 1.6em;
	border: 2px solid transparent;
	border-radius: 999px;
	background: var(--c-blue);
	color: var(--c-white);
	font-family: var(--f-text);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.button:hover {
	background: var(--c-blue-dark);
	color: var(--c-white);
}

.button--light {
	background: var(--c-white);
	color: var(--c-blue);
	font-family: var(--f-title);
	font-size: 1.375rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	padding: 0.45em 1.4em;
}

.button--light:hover {
	background: var(--c-light);
	color: var(--c-blue-dark);
}

.button--accent {
	background: var(--c-yellow);
	color: var(--c-blue-dark);
}

.button--accent:hover {
	background: #ffd04d;
	color: var(--c-blue-dark);
}

.button.is-disabled {
	cursor: not-allowed;
	opacity: 0.9;
}

/* Header and menu -------------------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--gradient);
	color: var(--c-white);
	transition: box-shadow 0.2s;
}

.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.site-header.is-scrolled {
	box-shadow: 0 6px 24px rgb(0 0 0 / 0.25);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: var(--header-h);
	max-width: calc(var(--container-wide) + 2 * var(--gutter));
}

.site-logo {
	display: inline-flex;
	align-items: center;
	color: var(--c-white);
	text-decoration: none;
}

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

.site-logo__text {
	font-family: var(--f-title);
	font-size: 1.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.site-nav .menu {
	margin: 0;
}

.site-nav a,
.site-nav .menu-toggle-sub,
.site-nav .menu-heading {
	font-family: var(--f-text);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
}

.menu-toggle-sub,
.nav-toggle,
.carousel__button,
.lightbox__close {
	appearance: none;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.menu-toggle-sub {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	padding: 0;
}

.menu-toggle-sub .icon {
	width: 1em;
	height: 1em;
	transform: rotate(90deg);
	transition: transform 0.2s;
}

.menu-toggle-sub[aria-expanded="true"] .icon {
	transform: rotate(-90deg);
}

.social {
	display: flex;
	gap: 0.25rem;
	margin: 0;
}

.social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	color: inherit;
}

.social a:hover {
	background: rgb(255 255 255 / 0.15);
	color: inherit;
}

.social .icon {
	width: 1.1rem;
	height: 1.1rem;
}

.nav-toggle {
	display: none;
	width: 3rem;
	height: 3rem;
	align-items: center;
	justify-content: center;
}

.nav-toggle .icon {
	width: 1.75rem;
	height: 1.75rem;
}

.nav-toggle .icon--close,
.nav-toggle[aria-expanded="true"] .icon--menu {
	display: none;
}

.nav-toggle[aria-expanded="true"] .icon--close {
	display: block;
}

@media (min-width: 1000px) {
	.site-nav__panel {
		display: flex;
		align-items: center;
		gap: 1.5rem;
	}

	.site-nav .menu {
		display: flex;
		align-items: center;
		gap: 0.25rem 1.6rem;
	}

	.site-nav .menu > li {
		position: relative;
		display: flex;
		align-items: center;
		gap: 0.3rem;
		min-height: var(--header-h);
	}

	.site-nav .menu > li > a {
		color: var(--c-white);
		padding-block: 0.4rem;
		border-bottom: 2px solid transparent;
	}

	.site-nav .menu > li > a:hover,
	.site-nav .menu > .current_page_item > a {
		border-bottom-color: var(--c-white);
	}

	.menu-toggle-sub--icon .icon {
		width: 0.9em;
	}

	/* The "Previous editions" panel: one column per edition, its pages beneath. */
	.site-nav .menu > li > .sub-menu {
		position: absolute;
		top: 100%;
		right: 0;
		display: none;
		grid-auto-flow: column;
		grid-auto-columns: minmax(170px, auto);
		gap: 1.5rem;
		margin: 0;
		padding: 1.5rem;
		border-radius: 0 0 var(--radius) var(--radius);
		background: var(--c-white);
		color: var(--c-ink);
		box-shadow: 0 16px 40px rgb(0 0 0 / 0.2);
	}

	.site-nav .menu > li.is-open > .sub-menu {
		display: grid;
	}

	@media (hover: hover) {
		.site-nav .menu > li:hover > .sub-menu {
			display: grid;
		}
	}

	.site-nav .sub-menu .sub-menu {
		margin: 0.5rem 0 0;
		padding: 0;
	}
}

.site-nav .sub-menu a {
	display: block;
	padding: 0.35rem 0;
	color: var(--c-blue);
	letter-spacing: 0.08em;
}

.site-nav .sub-menu a:hover {
	color: var(--c-blue-light);
	text-decoration: underline;
}

.site-nav .menu-heading {
	display: block;
	padding-bottom: 0.35rem;
	border-bottom: 1px solid var(--c-line);
	color: var(--c-muted);
	font-family: var(--f-title);
	font-size: 1.125rem;
	letter-spacing: 0.1em;
}

@media (max-width: 999.98px) {
	:root {
		--header-h: 64px;
	}

	.site-logo__image {
		height: 42px;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.site-nav__panel {
		position: fixed;
		inset: var(--header-h) 0 0;
		display: none;
		overflow-y: auto;
		padding: 1.5rem var(--gutter) 3rem;
		background: var(--c-blue);
	}

	.admin-bar .site-nav__panel {
		top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 46px));
	}

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

	.nav-open {
		overflow: hidden;
	}

	.site-nav .menu > li {
		border-bottom: 1px solid rgb(255 255 255 / 0.2);
	}

	.site-nav .menu > li > a,
	.site-nav .menu > li > .menu-toggle-sub:not(.menu-toggle-sub--icon) {
		display: flex;
		width: 100%;
		justify-content: space-between;
		padding: 1rem 0;
		color: var(--c-white);
	}

	.menu-toggle-sub--icon {
		display: none;
	}

	.site-nav .menu > li > .sub-menu {
		display: none;
		margin: 0 0 1rem;
		padding: 1rem;
		background: var(--c-white);
		border-radius: var(--radius);
	}

	.site-nav .menu > li.is-open > .sub-menu {
		display: grid;
		gap: 1rem;
	}

	.site-nav .sub-menu .sub-menu {
		margin: 0.35rem 0 0;
	}

	.social--header {
		margin-top: 1.5rem;
		color: var(--c-white);
	}
}

/* Sections --------------------------------------------------------------------------------------- */
.section {
	position: relative;
	padding-block: var(--space);
}

/* Two white sections in a row share one gap instead of adding two. */
.section:not([class*="has-bg-"]) + .section:not([class*="has-bg-"]):not(.section--image.is-full) {
	padding-top: 0;
}

.has-bg-blue {
	background: var(--gradient);
	color: var(--c-white);
}

.has-bg-blue h1,
.has-bg-blue h2,
.has-bg-blue h3,
.has-bg-blue a:not(.button) {
	color: var(--c-white);
}

.has-bg-light {
	background: var(--c-light);
}

.section__title {
	margin-bottom: 0.8em;
	font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
	text-align: center;
	letter-spacing: 0.08em;
}

.section__title--left {
	text-align: left;
}

.section__intro {
	max-width: var(--container-narrow);
	margin: -1rem auto 2.5rem;
	text-align: center;
}

.entry-content > :last-child {
	margin-bottom: 0;
}

.entry-content strong {
	font-weight: 700;
}

/* Page header */
.section--page-header {
	display: flex;
	align-items: center;
	min-height: clamp(180px, 22vw, 280px);
	padding-block: 2.5rem;
	overflow: hidden;
}

.page-header__decor {
	position: absolute;
	inset: 0 auto 0 0;
	width: min(30%, 360px);
	pointer-events: none;
}

.page-header__decor img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: left top;
}

.page-header__inner {
	position: relative;
	text-align: center;
}

.page-header__title {
	margin: 0;
	font-size: clamp(2.25rem, 1.4rem + 3.5vw, 3.75rem);
	letter-spacing: 0.08em;
}

.page-header__subtitle {
	margin: 0.5rem 0 0;
	font-family: var(--f-title);
	font-size: 1.375rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

@media (max-width: 699.98px) {
	.page-header__decor {
		opacity: 0.35;
	}
}

/* Hero */
.section--hero {
	display: flex;
	align-items: center;
	min-height: min(88vh, 820px);
	overflow: hidden;
	text-align: center;
}

.hero__media {
	position: absolute;
	inset: 0;
}

.hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgb(24 64 125 / 0.78), rgb(24 64 125 / 0.7) 60%, rgb(27 118 187 / 0.82));
}

.hero__inner {
	position: relative;
	z-index: 1;
}

.hero__title {
	margin: 0 0 1.5rem;
	font-size: clamp(2.5rem, 2rem + 4vw, 5rem);
}

.hero__logo {
	width: min(240px, 55vw);
}

.hero__text {
	max-width: 40rem;
	margin: 0 auto 1.5rem;
	font-size: 1.125rem;
}

.hero__actions {
	margin-bottom: 2.5rem;
}

.hero__note-label {
	margin: 0 0 0.5rem;
	font-size: 0.875rem;
}

.hero__note img {
	width: min(220px, 60vw);
}

.hero__side {
	position: absolute;
	top: 50%;
	right: 0;
	z-index: 1;
	width: clamp(60px, 9vw, 140px);
	transform: translateY(-50%);
}

@media (max-width: 699.98px) {
	.hero__side {
		display: none;
	}
}

/* The video lies over the image and shows once it plays; until then, the image is the hero. */
.hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.8s ease;
}

.hero__video.is-playing {
	opacity: 1;
}

.hero__video-toggle {
	position: absolute;
	bottom: 1.25rem;
	left: 1.25rem;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 2px solid var(--c-white);
	border-radius: 50%;
	background: rgb(24 64 125 / 0.6);
	color: var(--c-white);
	cursor: pointer;
}

.hero__video-toggle:hover {
	background: var(--c-blue-dark);
}

.hero__video-toggle:focus-visible {
	outline: 2px solid var(--c-white);
	outline-offset: 3px;
}

.hero__video-toggle .icon {
	width: 1.25rem;
	height: 1.25rem;
}

.hero__video-toggle .icon--resume,
.hero__video-toggle[aria-pressed="true"] .icon--pause {
	display: none;
}

.hero__video-toggle[aria-pressed="true"] .icon--resume {
	display: block;
}

/* The slide's entrance: the "2023" comes in from the right, the logo rises, the rest fades in. */
@media (prefers-reduced-motion: no-preference) {
	.hero__side img {
		animation: euroc-from-right 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
	}

	.hero__title {
		animation: euroc-rise 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s both;
	}

	.hero__text,
	.hero__actions,
	.hero__note {
		animation: euroc-fade 0.8s ease 0.9s both;
	}
}

@keyframes euroc-from-right {
	from {
		opacity: 0;
		transform: translateX(100%);
	}
}

@keyframes euroc-rise {
	from {
		opacity: 0;
		transform: translateY(60%);
	}
}

@keyframes euroc-fade {
	from {
		opacity: 0;
	}
}

/* Text */
.text-block + .text-block {
	margin-top: 2.5rem;
}

.text-block__heading {
	margin-bottom: 0.4em;
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
}

.text-block__subheading {
	margin: -0.25rem 0 0.75rem;
	color: var(--c-blue);
	font-family: var(--f-title);
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.has-bg-blue .text-block__subheading {
	color: var(--c-white);
}

/* The square-and-hatching motif of the old site, drawn beside decorated text. */
.has-decoration::before {
	content: "";
	position: absolute;
	top: var(--space);
	left: 0;
	width: 120px;
	height: 190px;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 54'%3E%3Crect width='54' height='54' fill='%23fbf7e4'/%3E%3Crect x='9' y='9' width='36' height='36' fill='none' stroke='%2318407d' stroke-width='2'/%3E%3Crect x='16' y='16' width='22' height='22' fill='none' stroke='%2318407d' stroke-width='2'/%3E%3Crect x='22' y='22' width='10' height='10' fill='%23d6202a'/%3E%3C/svg%3E") 0 0 / 54px 54px no-repeat,
		repeating-linear-gradient(-45deg, var(--c-ink) 0 1.5px, transparent 1.5px 9px) 0 54px / 120px 136px no-repeat;
	pointer-events: none;
}

@media (max-width: 1099.98px) {
	.has-decoration::before {
		display: none;
	}
}

/* Text and image */
.text-image {
	display: grid;
	gap: 2rem 3rem;
	align-items: center;
}

@media (min-width: 800px) {
	.is-image-half .text-image {
		grid-template-columns: 1fr 1fr;
	}

	.is-image-small .text-image {
		grid-template-columns: 180px 1fr;
		align-items: start;
	}

	.is-image-right.is-image-half .text-image {
		grid-template-columns: 1fr 1fr;
	}

	.is-image-right.is-image-small .text-image {
		grid-template-columns: 1fr 180px;
	}

	.is-image-right .text-image__media {
		order: 2;
	}
}

/* Values */
.values__image {
	margin: 0 auto 3rem;
	text-align: center;
}

.values__list {
	max-width: 70rem;
	margin: 0 auto;
	padding-left: 1.25rem !important;
	border-left: 3px solid currentColor;
	font-family: var(--f-title);
	font-size: 1.15rem;
	letter-spacing: 0.02em;
	line-height: 1.45;
}

.values__list li {
	padding-block: 1rem;
}

.values__list li + li {
	border-top: 1px dashed rgb(255 255 255 / 0.55);
}

.section--values:not(.has-bg-blue) .values__list li + li {
	border-top-color: var(--c-line);
}

/* Grids, cards and documents */
.grid {
	display: grid;
	grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
	gap: 3rem 2rem;
	margin: 0;
}

.grid--2 {
	--cols: 2;
}

.grid--3 {
	--cols: 3;
}

.grid--4 {
	--cols: 4;
}

@media (max-width: 999.98px) {
	.grid--3,
	.grid--4 {
		--cols: 2;
	}
}

@media (max-width: 599.98px) {
	.grid {
		--cols: 1;
	}

	.gallery-grid {
		--cols: 2;
		gap: 0.75rem;
	}
}

.card__media {
	margin-bottom: 1rem;
}

.card__media img {
	width: 100%;
}

.card__title {
	font-size: 1.5rem;
}

.card__action {
	margin-bottom: 1rem;
}

.card__text {
	font-size: 0.9375rem;
}

.has-bg-blue .card {
	text-align: center;
}

.has-bg-blue .card__media img {
	width: min(100%, 220px);
}

.has-bg-blue .card__text {
	font-weight: 700;
}

.is-documents .grid {
	gap: 1rem 2rem;
}

.doc-link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	height: 100%;
	padding: 1.25rem 1.5rem;
	border: 2px solid var(--c-blue);
	border-radius: var(--radius);
	font-family: var(--f-title);
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-decoration: none;
}

.doc-link:hover {
	background: var(--c-blue);
	color: var(--c-white);
}

.doc-link .icon {
	width: 2rem;
	height: 2rem;
}

/* Logos that are their own link: a short last row stays centred, as on the old pages */
.is-logos .grid {
	--gap: 2rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--gap);
}

.is-logos .card {
	flex: 0 1 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
}

@media (max-width: 599.98px) {
	.is-logos .grid {
		--cols: 2;
		--gap: 1rem;
	}
}

.is-logos img {
	display: block;
	width: min(100%, 300px);
	margin-inline: auto;
}

.logo-link {
	display: block;
}

@media (prefers-reduced-motion: no-preference) {
	.logo-link {
		transition: transform 0.2s ease;
	}

	.logo-link:hover {
		transform: translateY(-4px);
	}
}

/* People */
.person {
	text-align: center;
}

.person__photo img {
	width: min(100%, 260px);
	aspect-ratio: 1;
	object-fit: cover;
	margin-bottom: 1.25rem;
}

.person__name {
	margin-bottom: 0.2em;
	font-size: 1.625rem;
	letter-spacing: 0.04em;
	text-transform: none;
}

.person__role {
	margin-bottom: 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--c-line);
	color: var(--c-muted);
	font-family: var(--f-title);
	font-size: 1.0625rem;
	line-height: 1.3;
}

.person__bio {
	font-size: 0.9375rem;
}

.person__link {
	display: inline-flex;
	padding: 0.5rem;
}

/* Gallery */
.carousel {
	position: relative;
}

.carousel__track {
	display: flex;
	margin: 0;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

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

.carousel__slide {
	flex: 0 0 100%;
	scroll-snap-align: start;
}

.carousel__slide img {
	width: 100%;
	aspect-ratio: 3 / 2;
	max-height: 82vh;
	object-fit: cover;
}

.carousel__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	margin-top: 1rem;
}

.carousel__status {
	min-width: 4em;
	margin: 0;
	font-family: var(--f-title);
	font-size: 1.125rem;
	letter-spacing: 0.1em;
	text-align: center;
}

.carousel__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border: 2px solid currentColor;
	border-radius: 50%;
	color: var(--c-blue);
}

.has-bg-blue .carousel__button {
	color: var(--c-white);
}

.carousel__button:hover {
	background: var(--c-blue);
	border-color: var(--c-blue);
	color: var(--c-white);
}

.carousel__button--prev .icon {
	transform: rotate(180deg);
}

.carousel__button[disabled] {
	opacity: 0.35;
	cursor: default;
}

.gallery-grid img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	transition: opacity 0.2s;
}

.gallery-grid a:hover img {
	opacity: 0.85;
}

.lightbox {
	max-width: 94vw;
	max-height: 94vh;
	padding: 0;
	border: 0;
	background: transparent;
}

.lightbox::backdrop {
	background: rgb(8 20 40 / 0.92);
}

.lightbox img {
	display: block;
	max-width: 94vw;
	max-height: 88vh;
	width: auto;
	height: auto;
}

.lightbox__close {
	position: fixed;
	top: 1rem;
	right: 1rem;
	display: inline-flex;
	width: 3rem;
	height: 3rem;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--c-white);
	color: var(--c-blue);
}

/* FAQ */
.faq__item {
	margin-bottom: 0.5rem;
	border: 1px solid #9fb6d6;
	border-radius: var(--radius);
}

.faq__question {
	position: relative;
	padding: 0.9rem 1rem 0.9rem 2.75rem;
	color: var(--c-ink);
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.faq__question::-webkit-details-marker {
	display: none;
}

.faq__question::before {
	content: "+";
	position: absolute;
	left: 1rem;
	top: 0.75rem;
	color: var(--c-blue);
	font-size: 1.25rem;
	line-height: 1.2;
}

.faq__item[open] > .faq__question::before {
	content: "−";
}

.faq__question:hover {
	color: var(--c-blue);
}

.faq__answer {
	padding: 0 1rem 1rem 2.75rem;
}

/* Logos */
.logos {
	display: flex;
	flex-wrap: wrap;
	gap: 2.5rem 0;
}

.logos__group {
	flex: 1 1 220px;
	padding-inline: 1.75rem;
}

.logos__group--wide {
	flex: 2 1 440px;
}

.logos__group + .logos__group {
	border-left: 1px solid var(--c-line);
}

.logos__title {
	margin-bottom: 1.5rem;
	color: var(--c-muted);
	font-size: 1.0625rem;
	font-weight: 500;
	letter-spacing: 0.3em;
}

.has-bg-blue .logos__title {
	color: var(--c-white);
}

.logos__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 1.5rem 2rem;
	align-items: center;
	margin: 0;
}

.logos__group--narrow .logos__list {
	grid-template-columns: minmax(0, 1fr);
}

.logos__list img {
	display: block;
	width: auto;
	max-width: min(100%, 200px);
	max-height: 90px;
	margin-inline: auto;
	object-fit: contain;
}

@media (max-width: 699.98px) {
	.logos__group + .logos__group {
		border-left: 0;
		border-top: 1px solid var(--c-line);
		padding-top: 2rem;
	}

	.logos__group--narrow .logos__list {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	}
}

/* Call to action */
.cta {
	text-align: center;
}

.cta__title {
	font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
}

.cta__action {
	margin: 1.25rem 0;
}

/* Instagram */
.instagram {
	text-align: center;
}

.instagram__link {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
}

.instagram__link .icon {
	width: 3rem;
	height: 3rem;
}

.instagram__title {
	font-family: var(--f-title);
	font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.1;
	text-transform: uppercase;
}

.instagram__handle {
	font-weight: 700;
	letter-spacing: 0.08em;
}

/* Image */
.image-figure {
	margin: 0 auto;
}

/* A side graphic slides in from beyond the edge: it never widens the page. */
.section--image:is(.is-align-left, .is-align-right) {
	overflow-x: clip;
}

.section--image.is-full {
	padding-block: 0;
}

.is-full .image-figure img {
	width: 100%;
}

/* The image is sized, not its box, so "left" and "right" reach the container's edges */
.is-narrow .image-figure img {
	max-width: min(100%, var(--container-narrow));
}

.is-small .image-figure img {
	max-width: min(100%, 360px);
}

.is-align-center .image-figure {
	text-align: center;
}

.is-align-right .image-figure {
	text-align: right;
}

/*
 * A graphic over the section above (the old home's red-and-green motif over "Awards"): the image
 * sits on this section's bottom edge and rises into the section above; only its foot stays here.
 */
.section--image.is-pulled-up {
	z-index: 2;
	height: 4rem;
	padding-block: 0;
}

.is-pulled-up .image-figure {
	position: absolute;
	bottom: 0;
	width: auto;
	max-width: none;
	padding: 0;
	pointer-events: none;
}

.is-pulled-up.is-align-right .image-figure {
	right: 0;
}

.is-pulled-up.is-align-left .image-figure {
	left: 0;
}

.is-pulled-up.is-align-center .image-figure {
	left: 50%;
	transform: translateX(-50%);
}

.is-pulled-up.is-small .image-figure img {
	display: block;
	width: min(28vw, 380px);
	max-width: none;
}

.is-pulled-up .image-figure a {
	pointer-events: auto;
}

/* On a phone the cards above fill the width: the graphic only rises into their bottom margin. */
@media (max-width: 699.98px) {
	.section--image.is-pulled-up {
		height: auto;
		margin-top: calc(-1 * var(--space));
	}

	.is-pulled-up .image-figure {
		position: static;
		transform: none;
	}

	.is-pulled-up.is-small .image-figure img {
		width: min(45vw, 200px);
		margin-left: auto;
	}

	.is-pulled-up.is-align-left .image-figure img {
		margin-left: 0;
	}
}

.image-figure figcaption {
	margin-top: 0.75rem;
	color: var(--c-muted);
	font-size: 0.875rem;
}

.has-bg-blue .image-figure figcaption {
	color: var(--c-white);
}

/* Footer ----------------------------------------------------------------------------------------- */
.site-footer {
	padding-block: 3.5rem;
	font-size: 0.875rem;
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;
}

.site-footer__brand {
	text-align: right;
}

.site-footer__brand p {
	margin: 0 0 1.25rem;
}

.site-footer__wordmark img {
	width: 150px;
}

.site-footer__promoter img {
	width: 190px;
}

.site-footer__contact,
.site-footer__copyright {
	font-family: var(--f-title);
	font-size: 1rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.site-footer__brand .site-footer__copyright {
	margin-bottom: 0;
}

.site-footer a {
	color: var(--c-white);
}

@media (max-width: 599.98px) {
	.site-footer__inner {
		flex-direction: column-reverse;
		align-items: center;
	}

	.site-footer__brand {
		text-align: center;
	}
}

/* Page without sections and plain content ------------------------------------------------------- */
.entry-list li {
	padding-block: 0.5rem;
	border-bottom: 1px solid var(--c-line);
}

/* Entrance animations, as on the old site ------------------------------------------------------------ */
/*
 * Titles slide down, side graphics come in from their side, pictures and lists rise, each the first
 * time it comes into view (centred images stay still, as they did). html.js-reveal is set in the
 * <head> only when the visitor accepts motion and the browser can tell what is in view; main.js
 * adds .is-revealed. Without either, everything simply shows. The selectors match REVEAL in main.js.
 */
@media (prefers-reduced-motion: no-preference) {
	.js-reveal :is(.section__title, .page-header__title, .page-header__decor, .values__image, .values__list),
	.js-reveal :is(.is-align-left, .is-align-right) > .image-figure,
	.js-reveal .has-decoration::before {
		transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
	}

	.js-reveal :is(.section__title, .page-header__title, .page-header__decor, .values__image, .values__list):not(.is-revealed),
	.js-reveal :is(.is-align-left, .is-align-right) > .image-figure:not(.is-revealed),
	.js-reveal .has-decoration:not(.is-revealed)::before {
		opacity: 0;
	}

	.js-reveal :is(.section__title, .page-header__title):not(.is-revealed) {
		transform: translateY(-1.5rem);
	}

	.js-reveal :is(.page-header__decor, .values__image, .values__list):not(.is-revealed) {
		transform: translateY(2.5rem);
	}

	.js-reveal .is-align-right > .image-figure:not(.is-revealed) {
		transform: translateX(4rem);
	}

	.js-reveal .is-align-left > .image-figure:not(.is-revealed),
	.js-reveal .has-decoration:not(.is-revealed)::before {
		transform: translateX(-4rem);
	}

	/* The documents' icon lifts under the pointer, as the old info boxes did. */
	.doc-link .icon {
		transition: transform 0.2s ease;
	}

	.doc-link:hover .icon {
		transform: translateY(-4px);
	}
}

/* Cookie Notice plugin ----------------------------------------------------------------------------- */
#cookie-notice #cn-notice-buttons .cn-button {
	color: var(--c-blue-dark);
}

#cookie-notice .cn-button:focus-visible,
#cookie-notice .cn-close-icon:focus-visible {
	outline: 2px solid var(--c-white);
	outline-offset: 2px;
}
