/* =============================================================
   EUREMAP — Service catalogue UI
   Editorial / scientific direction
   Brand colors: #0f6c9f (primary), #bcb79e (sand), #4f5353 (wire),
                 #92ceef (sky)
   ============================================================= */

:root {
	--blue: #0f6c9f;
	--blue-deep: #094f74;
	--blue-ink: #063a57;
	--sky: #92ceef;
	--sky-soft: #e6f2fb;
	--sand: #bcb79e;
	--sand-soft: #e8e4d3;
	--wire: #4f5353;
	--wire-soft: #8a8e8e;

	--paper: #fbfaf6; /* warm paper white */
	--paper-2: #f4f2eb; /* card tint */
	--rule: #e0dccd; /* hairline divider */
	--rule-strong: #cfcab7;
	--ink: #1c2224; /* body ink */
	--ink-soft: #5a6063;

	/* Chakra Petch is the plugin's default typeface (body + display). */
	--serif: "Chakra Petch", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--display: "Chakra Petch", "Helvetica Neue", Arial, sans-serif;
	--mono: "Lucida Console", ui-monospace, SFMono-Regular, Menlo, monospace;

	--container: 1320px;
	--radius-sm: 2px;
	--radius: 4px;

	--shadow-card:
		0 1px 0 rgba(15, 108, 159, 0.03),
		0 6px 18px -12px rgba(15, 60, 90, 0.25);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}
html,
body {
	margin: 0;
	padding: 0;
}
body {
	font-family: var(--serif);
	color: var(--ink);
	background: var(--paper);
	font-weight: 400;
	font-size: 15px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

a {
	color: inherit;
	text-decoration: none;
}
a:hover {
	color: var(--blue);
}
button {
	font-family: inherit;
	color: inherit;
}

/* ---- Type scale ---------------------------------------------- */
.display {
	font-family: var(--display);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.05;
}
.mono {
	font-family: var(--mono);
}
.kicker {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--blue);
}
.eyebrow {
	font-family: var(--display);
	font-weight: 500;
	font-size: 12px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wire);
}

/* ---- Top ribbon / nav --------------------------------------- */
.ribbon {
	background: var(--blue-ink);
	color: #dfeaf1;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	padding: 7px 0;
}
.ribbon .wrap {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 32px;
	display: flex;
	justify-content: space-between;
	gap: 24px;
}
.ribbon span strong {
	color: var(--sky);
	font-weight: 700;
}

.site-header {
	background: var(--paper);
	border-bottom: 1px solid var(--rule);
	position: sticky;
	top: 0;
	z-index: 50;
}
.site-header .wrap {
	max-width: var(--container);
	margin: 0 auto;
	padding: 18px 32px;
	display: flex;
	align-items: center;
	gap: 40px;
}
.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--display);
	font-weight: 700;
	font-size: 22px;
	letter-spacing: 0.04em;
	color: var(--blue-deep);
}
.logo-mark {
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	background: var(--blue);
	color: white;
	border-radius: var(--radius-sm);
}
.logo-mark svg {
	width: 26px;
	height: 26px;
}
.logo em {
	font-style: normal;
	color: var(--blue);
}
.nav {
	display: flex;
	gap: 28px;
	font-family: var(--display);
	font-weight: 500;
	font-size: 14px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	flex: 1;
}
.nav a {
	color: var(--wire);
	padding: 6px 0;
	border-bottom: 2px solid transparent;
}
.nav a.is-active {
	color: var(--blue-deep);
	border-bottom-color: var(--blue);
}
.nav a:hover {
	color: var(--blue);
}

.header-tools {
	display: flex;
	align-items: center;
	gap: 14px;
	font-family: var(--mono);
	font-size: 12px;
	color: var(--wire);
}
.lang-pick {
	display: flex;
	gap: 2px;
	padding: 3px;
	border: 1px solid var(--rule);
}
.lang-pick button {
	background: none;
	border: 0;
	padding: 3px 7px;
	font: inherit;
	color: var(--wire);
	cursor: pointer;
	letter-spacing: 0.1em;
}
.lang-pick button.on {
	background: var(--blue-ink);
	color: white;
}

/* ---- Containers --------------------------------------------- */
.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 32px;
}

/* ---- Breadcrumbs -------------------------------------------- */
.breadcrumbs-logo-container {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 22px 0 10px;
}
.breadcrumbs-logo-container .logo {
	/* Match the logo height on euremap.eu so the two sites feel like one. */
	height: 63px;
	width: auto;
}
.breadcrumbs-logo-container .logo-link {
	display: block;
	flex-shrink: 0;
}

.crumbs {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wire-soft);
	padding: 22px 0 10px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.crumbs a {
	color: var(--wire);
}
.crumbs a:hover {
	color: var(--blue);
}
.crumbs .sep {
	color: var(--rule-strong);
}
.crumbs .now {
	color: var(--blue-deep);
}

/* ---- Page heading block ------------------------------------- */
.page-head {
	padding: 18px 0 36px;
	/* border-bottom: 1px solid var(--rule); */
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 48px;
	align-items: end;
}
.page-head h1 {
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(36px, 5vw, 56px);
	letter-spacing: -0.015em;
	line-height: 1.02;
	margin: 10px 0 0;
	color: var(--blue-ink);
}
.page-head h1 .accent {
	color: var(--blue);
}
.page-head .lede {
	color: var(--ink-soft);
	font-size: 16px;
	max-width: 46ch;
	line-height: 1.55;
}
.page-head .meta {
	text-align: right;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wire);
}
.page-head .meta .n {
	display: block;
	font-family: var(--display);
	font-weight: 700;
	font-size: 42px;
	color: var(--blue-deep);
	letter-spacing: -0.02em;
}

/* ---- Pipeline rail ------------------------------------------ */
.pipeline-section {
	padding: 16px 0px;
	background:
		linear-gradient(to bottom, rgba(146, 206, 239, 0.1), transparent 70%),
		var(--paper);
	position: relative;
}
.pipeline-section::before {
	/* hairline with node ticks */
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--rule);
}
.pipeline-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	padding: 0 0 16px;
}
.pipeline-head .title {
	font-family: var(--display);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--blue-deep);
	display: flex;
	align-items: baseline;
	gap: 14px;
}
.pipeline-head .title .count {
	font-family: var(--mono);
	font-size: 11px;
	color: var(--wire);
	letter-spacing: 0.12em;
}
.pipeline-nav {
	display: flex;
	gap: 6px;
}
.pipeline-nav button {
	width: 32px;
	height: 32px;
	border: 1px solid var(--rule-strong);
	background: var(--paper);
	color: var(--wire);
	cursor: pointer;
	display: grid;
	place-items: center;
	font-family: var(--mono);
}
.pipeline-nav button:hover {
	color: var(--blue);
	border-color: var(--blue);
}

.pipeline-rail {
	position: relative;
	overflow-x: auto;
	scrollbar-width: none;
}

.pipeline-rail::-webkit-scrollbar {
	display: none;
}
.pipeline-track {
	display: flex;
	gap: 0;
	min-width: max-content;
	/* padding-bottom: 26px; */
	position: relative;
}

.pipe-step {
	flex: 0 0 118px;
	text-align: center;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	position: relative;
	color: var(--wire);
	transition: color 0.2s;
	display: flex;
    flex-direction: column;
}
.pipe-step + .pipe-step {
	margin-left: -1px;
}
/* Chain connector: a wave linking the nine pipeline steps Genomics -> Synthesis.
   The line dips down then rises up between each pair of icons. Inline-SVG sine
   wave tiled with repeat-x, centred on the 72px icon tiles. Percentage width
   pins two full cycles per gap regardless of tile width. Skips the "All steps"
   control and the last step. */
.pipe-step:not(.all):not(:last-child)::after {
	content: "";
	position: absolute;
	top: 36px; /* vertical center of the 72px icon tile */
	left: calc(50% + 36px); /* right edge of this icon */
	width: calc(100% - 72px); /* gap to the next icon's left edge */
	height: 12px;
	transform: translateY(-50%);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='12' viewBox='0 0 16 12' preserveAspectRatio='none'%3E%3Cpath d='M0 6 Q4 10 8 6 T16 6' fill='none' stroke='%23cfcab7' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: repeat-x;
	background-position: center;
	background-size: 50% 12px; /* two down-up cycles across the gap */
	z-index: 0;
	pointer-events: none;
}
/* Warm the wave leaving the active step */
.pipe-step.is-active:not(.all):not(:last-child)::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='12' viewBox='0 0 16 12' preserveAspectRatio='none'%3E%3Cpath d='M0 6 Q4 10 8 6 T16 6' fill='none' stroke='%230f6c9f' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
}
.pipe-step .icon-tile {
	width: 72px;
	height: 72px;
	margin: 0 auto 8px;
	background: white;
	border: 1px solid var(--rule);
	display: grid;
	place-items: center;
	transition:
		border-color 0.2s,
		background 0.2s;
	position: relative;
}
.pipe-step .icon-tile::before {
	/* tiny corner ticks */
	content: "";
	position: absolute;
	inset: -1px;
	background:
		linear-gradient(to right, var(--blue) 0 10px, transparent 10px) top
			left / 10px 1px no-repeat,
		linear-gradient(to bottom, var(--blue) 0 10px, transparent 10px) top
			left / 1px 10px no-repeat,
		linear-gradient(to left, var(--blue) 0 10px, transparent 10px) top
			right / 10px 1px no-repeat,
		linear-gradient(to bottom, var(--blue) 0 10px, transparent 10px) top
			right / 1px 10px no-repeat,
		linear-gradient(to right, var(--blue) 0 10px, transparent 10px) bottom
			left / 10px 1px no-repeat,
		linear-gradient(to top, var(--blue) 0 10px, transparent 10px) bottom
			left / 1px 10px no-repeat,
		linear-gradient(to left, var(--blue) 0 10px, transparent 10px) bottom
			right / 10px 1px no-repeat,
		linear-gradient(to top, var(--blue) 0 10px, transparent 10px) bottom
			right / 1px 10px no-repeat;
	opacity: 0;
	transition: opacity 0.2s;
	pointer-events: none;
}
.pipe-step .icon-tile img {
	width: 46px;
	height: 46px;
	opacity: 0.85;
	transition:
		opacity 0.2s,
		transform 0.2s;
	filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.03));
}

.pipe-step .label {
	font-family: var(--display);
	font-weight: 500;
	font-size: 11.5px;
	letter-spacing: 0.03em;
	line-height: 1.2;
	color: var(--wire);
	padding: 0 6px;
}

.pipe-step:hover .icon-tile {
	border-color: var(--blue);
}
.pipe-step:hover .icon-tile img {
	opacity: 1;
}
.pipe-step:hover .label {
	color: var(--blue-deep);
}

.pipe-step.is-active .icon-tile {
	background: var(--blue);
	border-color: var(--blue);
}
.pipe-step.is-active .icon-tile::before {
	opacity: 1;
}
.pipe-step.is-active .icon-tile img {
	filter: brightness(0) invert(1);
	opacity: 1;
}
.pipe-step.is-active .label {
	color: var(--blue-ink);
	font-weight: 600;
}

/* All-steps pseudo-node */
.pipe-step.all .icon-tile img {
	width: 34px;
	height: 34px;
}

/* ---- Catalogue layout --------------------------------------- */
.cat-layout {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 40px;
	padding: 32px 0 80px;
	align-items: start;
}

.filters {
	position: sticky;
	top: 96px;
	font-size: 13.5px;
}
.filters h2 {
	font-family: var(--display);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--blue-deep);
	padding-bottom: 12px;
	margin: 0 0 16px;
	border-bottom: 1px solid var(--rule-strong);
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.filters h2 button {
	background: none;
	border: 0;
	font: inherit;
	color: var(--wire);
	cursor: pointer;
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.12em;
}
.filters h2 button:hover {
	color: var(--blue);
}
.filters-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* Mobile drawer controls; shown only below the 1024px breakpoint. */
.filters-toggle,
.filters .filters-close,
.filters-foot,
.filters-backdrop {
	display: none;
}
.results-tools {
	display: flex;
	align-items: center;
	gap: 8px;
}
.filters-toggle {
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	background: none;
	border: 1px solid var(--rule-strong);
	color: var(--blue-ink);
	cursor: pointer;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.filters-toggle svg {
	width: 14px;
	height: 14px;
}
.filters-count {
	min-width: 18px;
	padding: 1px 5px;
	background: var(--blue-ink);
	color: white;
	font-size: 10px;
	letter-spacing: 0;
	text-align: center;
}
.filters-count[hidden] {
	display: none;
}
.filters .filters-close svg {
	width: 16px;
	height: 16px;
}
.filters-apply {
	width: 100%;
	padding: 14px 16px;
	background: var(--blue-ink);
	color: white;
	border: 0;
	cursor: pointer;
	font-family: var(--display);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.filters-apply:hover {
	background: var(--blue-deep);
}
.filter-group {
	margin-bottom: 28px;
}
.filter-group .label {
	font-family: var(--display);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.05em;
	color: var(--ink);
	margin-bottom: 10px;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}
.filter-group .label .n {
	font-family: var(--mono);
	font-size: 10px;
	color: var(--wire-soft);
	letter-spacing: 0.1em;
}

.search-field {
	position: relative;
}
.search-field input {
	width: 100%;
	padding: 10px 12px 10px 34px;
	border: 1px solid var(--rule-strong);
	background: white;
	font: inherit;
	color: var(--ink);
	font-size: 13.5px;
	outline: none;
	transition: border-color 0.15s;
}
.search-field input:focus {
	border-color: var(--blue);
}
.search-field svg {
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	color: var(--wire-soft);
}

.check-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.check-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
	cursor: pointer;
	font-size: 13.5px;
}
.check-list li:hover {
	color: var(--blue-deep);
}
.check-list .box {
	width: 14px;
	height: 14px;
	border: 1px solid var(--rule-strong);
	background: white;
	display: grid;
	place-items: center;
	flex-shrink: 0;
}
.check-list li.on .box {
	background: var(--blue);
	border-color: var(--blue);
}
.check-list li.on .box::after {
	content: "";
	width: 5px;
	height: 8px;
	border: solid white;
	border-width: 0 1.5px 1.5px 0;
	transform: rotate(45deg) translate(-1px, -1px);
}
.check-list .n {
	margin-left: auto;
	font-family: var(--mono);
	font-size: 10.5px;
	color: var(--wire-soft);
}
.check-list li.hidden {
	display: none;
}
.show-more {
	background: none;
	border: 0;
	padding: 8px 0 0;
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--blue);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.show-more:hover {
	color: var(--blue-deep);
}
.show-more .caret {
	display: inline-block;
	transition: transform 0.2s;
	font-size: 9px;
}
.show-more.open .caret {
	transform: rotate(180deg);
}

/* ---- Results area ------------------------------------------- */
.results-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--rule-strong);
	margin-bottom: 4px;
}
.results-head .tally {
	font-family: var(--display);
	font-weight: 500;
	font-size: 14px;
	letter-spacing: 0.04em;
	color: var(--ink);
}
.results-head .tally b {
	color: var(--blue-deep);
	font-weight: 700;
	font-size: 22px;
	margin-right: 4px;
}
.results-head .tally span {
	font-family: var(--mono);
	font-size: 11px;
	color: var(--wire);
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.view-toggle {
	display: inline-flex;
	border: 1px solid var(--rule-strong);
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.view-toggle button {
	background: none;
	border: 0;
	padding: 7px 14px;
	color: var(--wire);
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
}
.view-toggle button.on {
	background: var(--blue-ink);
	color: white;
}
.view-toggle svg {
	width: 14px;
	height: 14px;
}

.active-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 14px 0 4px;
}
.active-filters .chip {
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	background: var(--sky-soft);
	color: var(--blue-ink);
	padding: 4px 8px;
	display: inline-flex;
	gap: 6px;
	align-items: center;
	cursor: pointer;
	border: 1px solid rgba(15, 108, 159, 0.15);
}
.active-filters .chip:hover {
	background: var(--sky);
}

/* ---- LIST view ---------------------------------------------- */
.svc-list {
	list-style: none;
	padding: 0;
	margin: 14px 0 0;
	border-top: 1px solid var(--rule);
}
.svc-row {
	display: grid;
	grid-template-columns: 56px 1.6fr 0.6fr 0.85fr 0.6fr 40px;
	gap: 22px;
	padding: 18px 8px 18px 4px;
	border-bottom: 1px solid var(--rule);
	align-items: center;
	position: relative;
	transition: background 0.15s;
	cursor: pointer;
}
.svc-row:hover {
	background: linear-gradient(to right, var(--sky-soft), transparent 60%);
}
.svc-row:hover .svc-arrow {
	color: var(--blue);
	transform: translateX(4px);
}

.svc-icon {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	background: var(--paper-2);
	border: 1px solid var(--rule);
}
.svc-icon img {
	width: 30px;
	height: 30px;
	opacity: 0.85;
}

/* The title is the service ID: a quiet reference above the short description, which leads. */
.svc-row .svc-main .name {
	font-size: 12px;
	color: var(--ink-soft);
	line-height: 1.25;
	margin-bottom: 4px;
}
.svc-row .svc-main .name a {
	color: inherit;
}
/* Stretch the link over the whole row so any point on it is a real link. */
.svc-row .svc-main .name a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.svc-row .svc-main .name a:focus-visible {
	outline: none;
}
.svc-row .svc-main .name a:focus-visible::after {
	outline: 2px solid var(--blue);
	outline-offset: -2px;
}
.svc-row .svc-main .desc {
	font-family: var(--display);
	font-weight: 600;
	font-size: 14px;
	color: var(--blue-ink);
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.15s;
}
.svc-row:hover .svc-main .desc {
	color: var(--blue);
}
.svc-row .svc-step {
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--blue);
}
.svc-row .svc-provider {
	font-size: 13px;
	line-height: 1.35;
}
.svc-row .svc-provider .inst {
	font-family: var(--display);
	font-weight: 600;
	color: var(--ink);
}
.svc-row .svc-provider .country {
	font-family: var(--mono);
	font-size: 10.5px;
	color: var(--wire);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	display: block;
	margin-top: 2px;
}
.svc-row .svc-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}
.svc-row .svc-tags .tag {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 3px 6px;
	color: var(--wire);
	border: 1px solid var(--rule);
	background: white;
}
.svc-row .svc-tags .tag.virtual {
	color: var(--blue-deep);
	border-color: rgba(15, 108, 159, 0.2);
	background: var(--sky-soft);
}
.svc-arrow {
	color: var(--wire-soft);
	transition:
		color 0.2s,
		transform 0.2s;
	justify-self: end;
}

/* ---- GRID view ---------------------------------------------- */
.svc-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--rule);
	border: 1px solid var(--rule);
	margin-top: 14px;
}
.svc-card {
	background: white;
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	cursor: pointer;
	position: relative;
	transition: background 0.2s;
	min-height: 260px;
}
.svc-card:hover {
	background: var(--sky-soft);
}
.svc-card:hover .desc {
	color: var(--blue);
}
.svc-card .top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
}
.svc-card .svc-icon {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
}
.svc-card .svc-icon img {
	width: 34px;
	height: 34px;
}
.svc-card .eyeid {
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: 0.16em;
	color: var(--wire-soft);
}
/* The title is the service ID: a quiet reference above the short description, which leads. */
.svc-card .svc-card-name {
	font-size: 13px;
	line-height: 1.25;
	color: var(--ink-soft);
	margin: 6px 0 -8px;
}
.empty-state {
	padding: 48px 0;
	text-align: center;
	color: var(--wire);
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: 0.14em;
}
.empty-state a,
.empty-state button {
	background: none;
	border: 0;
	color: var(--blue);
	font: inherit;
	cursor: pointer;
	text-decoration: underline;
}

.wldc-pagination-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 16px 24px;
	padding-top: 18px;
	margin-top: 18px;
}

.wldc-pagination-count {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wire);
	white-space: nowrap;
	margin-left: auto;
}

/* Drops below the count as a whole when both don't fit on one line. */
.wldc-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px;
}

.wldc-pagination .page-numbers {
	min-width: 34px;
	height: 34px;
	padding: 0 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--rule-strong);
	background: white;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wire);
}

.wldc-pagination a.page-numbers:hover,
.wldc-pagination .page-numbers.current {
	background: var(--blue-ink);
	border-color: var(--blue-ink);
	color: white;
}

.wldc-pagination .page-numbers.dots {
	background: transparent;
	border-color: transparent;
	color: var(--wire-soft);
	pointer-events: none;
}
.svc-card .step {
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--blue);
	margin-bottom: 6px;
}
.svc-card .desc {
	font-family: var(--display);
	font-weight: 600;
	font-size: 17px;
	color: var(--blue-ink);
	line-height: 1.3;
	flex: 1;
	transition: color 0.15s;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.svc-card .foot {
	margin-top: auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 12px;
	border-top: 1px solid var(--rule);
	font-size: 12.5px;
}
.svc-card .foot .inst {
	font-family: var(--display);
	font-weight: 600;
	color: var(--ink);
}
.svc-card .foot .country {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wire);
}

/* ---- Footer ------------------------------------------------- */
/* EU funding acknowledgement, styled after the euremap.eu footer. */
.site-footer {
	background: var(--blue);
	color: white;
	padding: 33px 0 32px;
	margin-top: 80px;
}
.site-footer .wrap {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 32px;
	display: flex;
	align-items: center;
	gap: 40px;
}
.site-footer__logo {
	display: block;
	flex-shrink: 0;
	width: 240px;
	height: auto;
}
.site-footer__disclaimer {
	margin: 0;
	max-width: 80ch;
	font-size: 13px;
	line-height: 1.6;
}

/* ============================================================
   SERVICE DETAIL
   ============================================================ */
.svc-hero {
	padding: 18px 0 36px;
	border-bottom: 1px solid var(--rule);
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 56px;
	align-items: end;
}
.svc-hero .meta-line {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wire);
	margin-bottom: 14px;
}
.svc-hero .meta-line .id {
	color: var(--blue-deep);
	font-weight: 700;
}
.svc-hero .meta-line .dot {
	width: 3px;
	height: 3px;
	background: var(--wire);
	border-radius: 50%;
}
.svc-hero h1 {
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(32px, 4.2vw, 48px);
	letter-spacing: -0.015em;
	line-height: 1.04;
	color: var(--blue-ink);
	margin: 0;
	max-width: 28ch;
}
.svc-hero .hero-step {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}
.svc-hero .hero-step .tile {
	width: 180px;
	height: 180px;
	background: white;
	border: 1px solid var(--rule);
	display: grid;
	place-items: center;
	position: relative;
}
.svc-hero .hero-step .tile::before {
	content: "";
	position: absolute;
	inset: 8px;
	border: 1px dashed var(--rule-strong);
	pointer-events: none;
}
.svc-hero .hero-step img {
	width: 110px;
	height: 110px;
	opacity: 0.9;
}
.svc-hero .hero-step .step-label {
	font-family: var(--display);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--blue-deep);
	text-align: right;
}
.svc-hero .hero-step .step-label .pre {
	display: block;
	font-family: var(--mono);
	font-size: 10px;
	color: var(--wire-soft);
	font-weight: 400;
	margin-bottom: 2px;
}

/* two col layout */
.svc-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 64px;
	padding: 48px 0 80px;
	align-items: start;
}
.svc-content {
	font-size: 16px;
	line-height: 1.7;
	color: var(--ink);
}
.svc-content section {
	padding: 28px 0;
	border-top: 1px solid var(--rule);
}
.svc-content section:first-child {
	border-top: 0;
	padding-top: 0;
}
.svc-content h2 {
	font-family: var(--display);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--blue-deep);
	margin: 0 0 16px;
	display: flex;
	align-items: baseline;
	gap: 14px;
}
.svc-content h2::before {
	content: "";
	width: 8px;
	height: 8px;
	background: var(--blue);
	border: 2px solid white;
	box-shadow: 0 0 0 1px var(--blue);
	border-radius: 50%;
	display: inline-block;
	transform: translateY(-2px);
}

.svc-content p {
	margin: 0 0 14px;
}
.svc-content p:last-child {
	margin-bottom: 0;
}

.fact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	background: var(--rule);
	background: #fff;
	border: 1px solid var(--rule);
	margin-top: 18px;
}
.fact-grid > div {
	background: white;
	padding: 16px 18px;
}
.fact-grid dt {
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wire);
	margin-bottom: 6px;
}
.fact-grid dd {
	margin: 0;
	font-family: var(--display);
	font-weight: 500;
	font-size: 15px;
	color: var(--ink);
}

/* Aside sticky card */
.svc-aside {
	position: sticky;
	top: 96px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.prov-card {
	background: white;
	border: 1px solid var(--rule);
	position: relative;
}
.prov-card .ticks {
	position: absolute;
	inset: -1px;
	background:
		linear-gradient(to right, var(--blue) 0 14px, transparent 14px) top
			left / 14px 1px no-repeat,
		linear-gradient(to bottom, var(--blue) 0 14px, transparent 14px) top
			left / 1px 14px no-repeat,
		linear-gradient(to left, var(--blue) 0 14px, transparent 14px) top
			right / 14px 1px no-repeat,
		linear-gradient(to bottom, var(--blue) 0 14px, transparent 14px) top
			right / 1px 14px no-repeat,
		linear-gradient(to right, var(--blue) 0 14px, transparent 14px) bottom
			left / 14px 1px no-repeat,
		linear-gradient(to top, var(--blue) 0 14px, transparent 14px) bottom
			left / 1px 14px no-repeat,
		linear-gradient(to left, var(--blue) 0 14px, transparent 14px) bottom
			right / 14px 1px no-repeat,
		linear-gradient(to top, var(--blue) 0 14px, transparent 14px) bottom
			right / 1px 14px no-repeat;
	pointer-events: none;
}
.prov-card .head {
	padding: 18px 20px 14px;
	border-bottom: 1px solid var(--rule);
}
.prov-card .head .kicker {
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--blue);
	margin-bottom: 8px;
}
.prov-card .head .inst {
	font-family: var(--display);
	font-weight: 700;
	font-size: 22px;
	line-height: 1.1;
	color: var(--blue-ink);
}
.prov-card .head .country {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wire);
	margin-top: 6px;
}
.prov-card .head .group {
	font-size: 14px;
	line-height: 1.45;
	color: var(--ink);
	margin-top: 6px;
}
.prov-card .body {
	padding: 16px 20px;
}
.prov-card .logos {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-bottom: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--rule);
}
.prov-card .logos .logo-cell {
	/* width: 60px;
	height: 60px; */
	padding: 4px 8px;
	background: var(--paper-2);
	border: 1px solid var(--rule);
	display: grid;
	place-items: center;
	font-family: var(--display);
	font-weight: 700;
	font-size: 14px;
	color: var(--blue-deep);
	min-width: 0;
}
.prov-card .logos .logo-cell.has-logo {
	padding: 6px 10px;
	background: white;
}
.prov-card .logos .logo-cell img {
	display: block;
	width: auto;
	max-width: min(140px, 100%);
	height: 48px;
	object-fit: contain;
}
.prov-card .logos .logo-cell small {
	display: block;
	font-family: var(--mono);
	font-size: 9px;
	font-weight: 400;
	color: var(--wire);
	letter-spacing: 0.1em;
}
.prov-card dl {
	margin: 0;
	display: grid;
	gap: 12px;
}
.prov-card dl > div {
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.prov-card dt {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wire);
}
.prov-card dd {
	margin: 0;
	font-size: 14px;
	color: var(--ink);
	line-height: 1.45;
	overflow-wrap: anywhere;
}
.prov-card dd a {
	color: var(--blue);
	border-bottom: 1px dotted rgba(15, 108, 159, 0.35);
}
.prov-card .cta {
	margin-top: 16px;
	display: block;
	width: 100%;
	background: var(--blue);
	color: white;
	padding: 14px 18px;
	font-family: var(--display);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-align: center;
	border: 0;
	cursor: pointer;
	transition: background 0.15s;
}
.prov-card .cta:hover {
	background: var(--blue-deep);
}
.prov-card .cta-mail {
	background: var(--blue-ink);
}
.prov-card .cta-mail:hover {
	background: var(--blue);
}
.prov-card .cta-sec {
	margin-top: 8px;
	display: block;
	width: 100%;
	background: none;
	color: var(--blue-deep);
	padding: 11px 18px;
	font-family: var(--display);
	font-weight: 500;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-align: center;
	border: 1px solid var(--rule-strong);
	cursor: pointer;
}
.prov-card .cta-sec:hover {
	border-color: var(--blue);
	color: var(--blue);
}

.aside-note {
	border: 1px dashed var(--rule-strong);
	background: var(--sand-soft);
	padding: 16px 18px;
	font-size: 12.5px;
	line-height: 1.55;
	color: var(--wire);
}
.aside-note strong {
	display: block;
	font-family: var(--display);
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--blue-deep);
	margin-bottom: 6px;
}

/* ---- Related ------------------------------------------------ */
.related {
	/* Longhands, so the .container side padding on the same element survives. */
	padding-top: 48px;
	padding-bottom: 80px;
	border-top: 1px solid var(--rule);
}
.related h2 {
	font-family: var(--display);
	font-weight: 700;
	font-size: 28px;
	color: var(--blue-ink);
	margin: 0 0 24px;
	letter-spacing: -0.01em;
}

/* ============================================================
   INSTITUTION PAGE
   ============================================================ */
.inst-hero-breadcrumbs-container {
	margin-bottom: 16px;
}

.inst-hero {
	background:
		linear-gradient(180deg, rgba(146, 206, 239, 0.15), transparent 80%),
		var(--paper);
	padding: 0px 0 40px;
	border-bottom: 1px solid var(--rule);
	position: relative;
	overflow: hidden;
}
.inst-hero::before {
	content: "";
	position: absolute;
	top: 40px;
	right: -80px;
	width: 360px;
	height: 360px;
	background: url("../assets/icons/deco-network.png") center/contain no-repeat;
	opacity: 0.08;
	pointer-events: none;
}
.inst-hero .wrap {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 32px;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 40px;
	align-items: center;
	position: relative;
}
.inst-logo-big {
	width: 140px;
	height: 140px;
	background: white;
	border: 1px solid var(--rule);
	display: grid;
	place-items: center;
	font-family: var(--display);
	font-weight: 700;
	font-size: 32px;
	color: var(--blue-deep);
	letter-spacing: 0.04em;
	position: relative;
}
/* Logos are rarely square: give them a landscape box and let them fill it. */
.inst-logo-big.has-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 200px;
	padding: 10px;
	box-sizing: border-box;
}
.inst-logo-big img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.inst-logo-big::after {
	content: "";
	position: absolute;
	inset: -1px;
	background:
		linear-gradient(to right, var(--blue) 0 18px, transparent 18px) top
			left / 18px 1px no-repeat,
		linear-gradient(to bottom, var(--blue) 0 18px, transparent 18px) top
			left / 1px 18px no-repeat,
		linear-gradient(to left, var(--blue) 0 18px, transparent 18px) top
			right / 18px 1px no-repeat,
		linear-gradient(to bottom, var(--blue) 0 18px, transparent 18px) top
			right / 1px 18px no-repeat,
		linear-gradient(to right, var(--blue) 0 18px, transparent 18px) bottom
			left / 18px 1px no-repeat,
		linear-gradient(to top, var(--blue) 0 18px, transparent 18px) bottom
			left / 1px 18px no-repeat,
		linear-gradient(to left, var(--blue) 0 18px, transparent 18px) bottom
			right / 18px 1px no-repeat,
		linear-gradient(to top, var(--blue) 0 18px, transparent 18px) bottom
			right / 1px 18px no-repeat;
}
.inst-hero h1 {
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(38px, 5vw, 58px);
	overflow-wrap: break-word;
	line-height: 1.02;
	letter-spacing: -0.015em;
	color: var(--blue-ink);
	margin: 0 0 8px;
}
.inst-hero .subtitle {
	font-family: var(--display);
	font-size: 16px;
	color: var(--ink-soft);
	font-weight: 400;
	line-height: 1.4;
	max-width: 48ch;
}
.inst-hero .meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wire);
}
.inst-hero .meta .flag {
	font-family: var(--display);
	font-weight: 600;
	font-size: 14px;
	color: var(--blue-deep);
	letter-spacing: 0.06em;
}

.inst-stats {
	display: grid;
	/* One equal column per tile: empty tiles are left out, so there may be 2–4. */
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	background: var(--blue-ink);
	color: white;
}
.inst-stats > div {
	padding: 22px 32px;
	border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.inst-stats > div:last-child {
	border-right: 0;
}
.inst-stats .k {
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sky);
	margin-bottom: 4px;
}
.inst-stats .v {
	font-family: var(--display);
	font-weight: 700;
	font-size: 28px;
	letter-spacing: -0.01em;
}
.inst-stats .v small {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: #c9d8e2;
	margin-left: 4px;
}

.inst-layout {
	display: grid;
	/* minmax(0, …): a bare 1fr won't shrink below its content's min-width. */
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 64px;
	padding: 48px 0 64px;
	align-items: start;
}
.inst-content section {
	padding: 28px 0;
	border-top: 1px solid var(--rule);
}
.inst-content section:first-child {
	border-top: 0;
	padding-top: 0;
}
.inst-content h2 {
	font-family: var(--display);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--blue-deep);
	margin: 0 0 16px;
}
.inst-content p {
	font-size: 16px;
	line-height: 1.7;
	color: var(--ink);
	margin: 0 0 14px;
}
.inst-content .lede {
	font-size: 18px;
	line-height: 1.6;
	color: var(--ink);
}

.dist-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--rule);
	border: 1px solid var(--rule);
	margin-top: 10px;
}
.dist-cell {
	background: white;
	padding: 16px;
	display: flex;
	align-items: center;
	gap: 14px;
}
.dist-cell .ico {
	width: 44px;
	height: 44px;
	background: var(--paper-2);
	border: 1px solid var(--rule);
	display: grid;
	place-items: center;
}
.dist-cell .ico img {
	width: 30px;
	height: 30px;
	opacity: 0.85;
}
.dist-cell .txt .step {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wire);
}
.dist-cell .txt .count {
	font-family: var(--display);
	font-weight: 600;
	font-size: 15px;
	color: var(--ink);
	margin-top: 2px;
}
.dist-cell .txt .count b {
	color: var(--blue-deep);
	font-size: 18px;
}

.inst-services {
	padding: 0;
	margin-top: 8px;
}
.inst-services .svc-row {
	grid-template-columns: 56px 1.6fr 0.6fr 0.6fr 40px;
}

/* ---- Visual accents: corner bracket framing ---------------- */
.bracket {
	position: relative;
}
.bracket::before,
.bracket::after {
	content: "";
	position: absolute;
	width: 20px;
	height: 20px;
	border-color: var(--blue);
	border-style: solid;
}
.bracket::before {
	top: -6px;
	left: -6px;
	border-width: 1px 0 0 1px;
}
.bracket::after {
	bottom: -6px;
	right: -6px;
	border-width: 0 1px 1px 0;
}

/* ---- Tweaks panel ------------------------------------------ */
.tweaks-panel {
	position: fixed;
	right: 20px;
	bottom: 20px;
	width: 280px;
	background: white;
	border: 1px solid var(--rule-strong);
	box-shadow: 0 20px 50px -20px rgba(6, 58, 87, 0.35);
	padding: 16px 18px;
	z-index: 100;
	font-size: 13px;
	display: none;
}
.tweaks-panel.on {
	display: block;
}
.tweaks-panel h3 {
	font-family: var(--display);
	font-weight: 600;
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--blue-deep);
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--rule);
	display: flex;
	justify-content: space-between;
}
.tweaks-panel label {
	display: block;
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.14em;
	color: var(--wire);
	text-transform: uppercase;
	margin-bottom: 6px;
	margin-top: 12px;
}
.tweaks-panel label:first-of-type {
	margin-top: 0;
}
.tweaks-panel .row {
	display: flex;
	gap: 6px;
}
.tweaks-panel .seg {
	flex: 1;
	background: none;
	border: 1px solid var(--rule);
	font: inherit;
	font-family: var(--display);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 6px 0;
	cursor: pointer;
	color: var(--wire);
}
.tweaks-panel .seg.on {
	background: var(--blue);
	color: white;
	border-color: var(--blue);
}
.tweaks-panel .sw {
	display: flex;
	gap: 6px;
}
.tweaks-panel .sw button {
	width: 26px;
	height: 26px;
	border: 2px solid white;
	outline: 1px solid var(--rule);
	cursor: pointer;
	padding: 0;
}
.tweaks-panel .sw button.on {
	outline: 2px solid var(--ink);
}

/* ---- Scroll reveal fade --------------------------------------*/
.svc-row,
.svc-card {
	animation: fadeIn 0.3s both;
}
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* ---- Decorative corner element (hero) ----------------------- */
.hero-deco {
	position: absolute;
	right: -60px;
	top: 20px;
	width: 280px;
	height: 280px;
	background: url("icons/deco-orbit.png") center/contain no-repeat;
	opacity: 0.06;
	pointer-events: none;
}

/* Small screens */
@media (max-width: 1024px) {
	.cat-layout {
		grid-template-columns: minmax(0, 1fr);
	}
	/* The sidebar becomes an off-canvas drawer opened from .filters-toggle. */
	.filters {
		position: fixed;
		inset: 0 auto 0 0;
		z-index: 60;
		width: min(360px, 88vw);
		padding: 0 16px;
		background: var(--paper);
		overflow-y: auto;
		overscroll-behavior: contain;
		transform: translateX(-100%);
		visibility: hidden;
		transition:
			transform 0.25s ease,
			visibility 0s linear 0.25s;
	}
	.filters.is-open {
		transform: none;
		visibility: visible;
		box-shadow: 0 20px 50px -20px rgba(6, 58, 87, 0.45);
		transition: transform 0.25s ease;
	}
	.filters h2 {
		position: sticky;
		top: 0;
		z-index: 1;
		background: var(--paper);
		padding-top: 20px;
	}
	.filters .filters-close {
		display: inline-flex;
		padding: 4px;
		margin-right: -4px;
	}
	.filters-foot {
		display: block;
		position: sticky;
		bottom: 0;
		margin: 0 -16px;
		padding: 12px 16px 16px;
		background: var(--paper);
		border-top: 1px solid var(--rule-strong);
	}
	.filters-backdrop:not([hidden]) {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 59;
		background: rgba(6, 58, 87, 0.4);
	}
	.filters-toggle {
		display: inline-flex;
	}
	.results-head {
		flex-wrap: wrap;
		align-items: center;
		gap: 10px;
	}
	body.wldc-drawer-open {
		overflow: hidden;
	}
	.svc-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.page-head {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.page-head .meta {
		text-align: left;
	}
	.svc-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
	.svc-hero {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}
	.inst-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
	/* Stack logo, title and meta so the title gets the full width. */
	.inst-hero .wrap {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}
	.inst-hero .meta {
		align-items: flex-start;
	}
	.inst-logo-big {
		width: 80px;
		height: 80px;
		font-size: 18px;
	}
	.inst-logo-big.has-logo {
		width: 180px;
		height: 110px;
	}
	.inst-stats {
		grid-auto-flow: row;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.dist-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 680px) {
	.svc-grid {
		grid-template-columns: 1fr;
	}
	.svc-row {
		grid-template-columns: 44px 1fr;
		grid-template-rows: auto auto;
		gap: 10px 14px;
	}
	.svc-row .svc-step {
		grid-column: 2;
	}
	.svc-row .svc-provider,
	.svc-row .svc-tags,
	.svc-arrow {
		display: none;
	}
	.fact-grid {
		grid-template-columns: 1fr;
	}
	.inst-stats {
		grid-template-columns: 1fr 1fr;
	}
	.dist-grid {
		grid-template-columns: 1fr;
	}
	.inst-hero h1 {
		font-size: 32px;
	}
	/* The meta line wraps on phones; separator dots would end up dangling. */
	.svc-hero .meta-line {
		gap: 6px 14px;
	}
	.svc-hero .meta-line .dot {
		display: none;
	}
	.site-footer .wrap {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
		padding: 0 16px;
	}
	.site-footer__logo {
		width: 200px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.filters,
	.filters.is-open {
		transition: none;
	}
}
