/* ============================================================
   MARI REF — one stylesheet, one script, no page builder.

   Design language: clinical reference. Roboto Slab for display,
   a humanist sans for reading, brand teal (#00505D / #09A0BB),
   thin rules, generous rhythm. Every value below is a token so
   the scale stays honest.
   ============================================================ */

/* ---------- 1. tokens ---------- */

:root {
	/* colour */
	--brand: #00505d;
	--brand-700: #003e48;
	--brand-600: #09a0bb;
	--brand-050: #e7f4f7;
	--ink: #031d3c;
	--body: #35485c;
	--muted: #6a7a8c;
	--line: #e4eaf0;
	--line-strong: #cfd9e3;
	--surface: #f5f8fa;
	--surface-2: #eaf1f5;
	--paper: #fff;
	--danger: #b4232a;

	/* type */
	--font-display: "Roboto Slab", Georgia, "Times New Roman", serif;
	--font-head: "Open Sans", "Open Sans Hebrew", Roboto, Arial, sans-serif;
	--font-body: Roboto, "Open Sans", Arial, sans-serif;

	--fs-xs: 0.78125rem;
	--fs-sm: 0.875rem;
	--fs-base: 1.0625rem;
	--fs-md: 1.1875rem;
	--fs-lg: 1.375rem;
	--fs-xl: 1.75rem;
	--fs-2xl: 2.125rem;
	--fs-3xl: 2.625rem;
	--fs-4xl: 3.25rem;

	--lh: 1.65;
	--lh-tight: 1.22;

	/* space */
	--s-1: 4px;
	--s-2: 8px;
	--s-3: 12px;
	--s-4: 16px;
	--s-5: 24px;
	--s-6: 32px;
	--s-7: 48px;
	--s-8: 64px;
	--s-9: 96px;
	--s-10: 128px;

	/* shape */
	--r-sm: 6px;
	--r: 10px;
	--r-lg: 16px;
	--r-pill: 999px;

	--sh-1: 0 1px 2px rgba(3, 29, 60, 0.05), 0 1px 3px rgba(3, 29, 60, 0.05);
	--sh-2: 0 6px 18px -8px rgba(3, 29, 60, 0.16);
	--sh-3: 0 24px 60px -24px rgba(3, 29, 60, 0.28);

	/* layout */
	--wrap: 1240px;
	--wrap-read: 1120px;
	--measure: 68ch;
	--gutter: 24px;
	--header-h: 76px;

	--motion: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- 2. reset and base ---------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--body);
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: var(--lh);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a {
	color: var(--brand);
	text-decoration: none;
	transition: color var(--motion);
}

a:hover {
	color: var(--brand-600);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	color: var(--ink);
	line-height: var(--lh-tight);
	margin: 0 0 0.5em;
	font-weight: 700;
	letter-spacing: -0.011em;
}

p {
	margin: 0 0 1.15em;
}

ul, ol {
	margin: 0 0 1.15em;
	padding-left: 1.15em;
}

hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: var(--s-6) 0;
}

button {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--brand-600);
	outline-offset: 3px;
	border-radius: 2px;
}

::selection {
	background: var(--brand-050);
	color: var(--brand-700);
}

.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;
	left: var(--s-4);
	top: -60px;
	z-index: 200;
	background: var(--brand);
	color: #fff;
	padding: 10px 18px;
	border-radius: 0 0 var(--r-sm) var(--r-sm);
	transition: top var(--motion);
}

.skip-link:focus {
	top: 0;
	color: #fff;
}

.icon {
	flex: none;
	display: inline-block;
	vertical-align: middle;
}

/* ---------- 3. layout primitives ---------- */

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.wrap--narrow {
	max-width: 820px;
}

.wrap--article {
	max-width: var(--wrap-read);
}

.section {
	padding-block: var(--s-9);
}

.section--tight {
	padding-block: var(--s-6);
}

.section--flush {
	padding-block: 0;
}

.section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--s-5);
	margin-bottom: var(--s-6);
	padding-bottom: var(--s-4);
	border-bottom: 1px solid var(--line);
}

.section__title {
	font-size: var(--fs-2xl);
	margin: 0;
}

.section__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: var(--fs-sm);
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--brand-600);
	white-space: nowrap;
}

.section__link:hover {
	color: var(--brand);
	gap: 9px;
}

.media-fill {
	position: absolute;
	inset: 0;
	overflow: hidden;
	z-index: 0;
}

.media-fill img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* ---------- 4. buttons, pills, chips ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 24px;
	border: 1px solid transparent;
	border-radius: var(--r-sm);
	font-family: var(--font-head);
	font-size: var(--fs-sm);
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.2;
	cursor: pointer;
	text-align: center;
	transition: background-color var(--motion), color var(--motion), border-color var(--motion), box-shadow var(--motion), transform var(--motion);
}

.btn:active {
	transform: translateY(1px);
}

.btn--primary {
	background: var(--brand);
	color: #fff;
	box-shadow: var(--sh-1);
}

.btn--primary:hover {
	background: var(--brand-600);
	color: #fff;
}

.btn--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.5);
	color: #fff;
}

.btn--ghost:hover {
	background: rgba(255, 255, 255, 0.14);
	border-color: #fff;
	color: #fff;
}

.btn--outline {
	background: transparent;
	border-color: var(--line-strong);
	color: var(--brand);
}

.btn--outline:hover {
	border-color: var(--brand);
	background: var(--brand-050);
	color: var(--brand-700);
}

.btn--cta {
	background: var(--brand);
	color: #fff;
	padding: 10px 18px;
	border-radius: var(--r-sm);
}

.btn--cta:hover {
	background: var(--brand-600);
	color: #fff;
}

.btn-row {
	margin: var(--s-5) 0 0;
}

.pill {
	display: inline-block;
	padding: 3px 10px;
	border-radius: var(--r-pill);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.pill--professional {
	background: var(--brand);
	color: #fff;
}

.pill--general {
	background: var(--brand-050);
	color: var(--brand-700);
}

.chips {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-2);
	margin: 0;
	padding: 0;
}

.chips__item a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: var(--r-pill);
	background: var(--paper);
	font-size: var(--fs-sm);
	font-weight: 500;
	color: var(--ink);
	transition: all var(--motion);
}

.chips__item a:hover {
	border-color: var(--brand-600);
	color: var(--brand);
	background: var(--brand-050);
}

.chips__item a span {
	font-size: var(--fs-xs);
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

.chips__item.is-active a {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
}

.chips__item.is-active a span {
	color: rgba(255, 255, 255, 0.75);
}

.chips--filter {
	margin-top: var(--s-5);
}

/* ---------- 5. header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 90;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow var(--motion), border-color var(--motion);
}

.site-header.is-stuck {
	box-shadow: var(--sh-2);
	border-color: transparent;
}

.site-header__bar {
	display: flex;
	align-items: center;
	gap: var(--s-6);
	max-width: var(--wrap);
	margin-inline: auto;
	padding: 0 var(--gutter);
	min-height: var(--header-h);
}

.site-branding {
	flex: none;
}

.custom-logo-link,
.site-logo,
.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.custom-logo {
	display: block;
	width: auto;
	height: 44px;
}

.brand__mark {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: var(--r-sm);
	background: var(--brand);
	color: #fff;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.02em;
}

.brand__text {
	font-family: var(--font-display);
	font-size: 19px;
	font-weight: 700;
	color: var(--ink);
	letter-spacing: -0.01em;
}

.site-nav {
	flex: 1 1 auto;
}

.header-tools {
	flex: none;
	display: flex;
	align-items: center;
	gap: var(--s-3);
	margin-left: auto;
}

.search-toggle {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid transparent;
	border-radius: var(--r-sm);
	background: none;
	color: var(--ink);
	cursor: pointer;
	transition: all var(--motion);
}

.search-toggle:hover {
	background: var(--surface);
	border-color: var(--line);
	color: var(--brand);
}

/* menu */

.menu,
.sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.menu {
	display: flex;
	align-items: center;
	gap: var(--s-6);
	font-family: var(--font-head);
	font-size: var(--fs-sm);
}

.menu-item {
	position: relative;
}

.menu-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 10px 0;
	color: var(--ink);
	font-weight: 600;
}

.menu-link:hover,
.current-menu-item > .menu-link {
	color: var(--brand-600);
}

.menu-item-has-children > .menu-link::after {
	content: "";
	width: 4px;
	height: 4px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	opacity: 0.55;
	transition: transform var(--motion), opacity var(--motion);
}

.menu-item-has-children:hover > .menu-link::after,
.menu-item-has-children.is-open > .menu-link::after {
	opacity: 1;
	transform: rotate(225deg) translateY(-1px);
}

.sub-menu {
	position: absolute;
	top: 100%;
	left: -14px;
	min-width: 240px;
	padding: 8px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--r);
	box-shadow: var(--sh-3);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(6px);
	transition: opacity var(--motion), transform var(--motion), visibility var(--motion);
	z-index: 95;
}

.menu-item:hover > .sub-menu,
.menu-item.is-open > .sub-menu,
body.kbd-nav .menu-item:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

.sub-menu .menu-link {
	display: block;
	padding: 9px 12px;
	border-radius: var(--r-sm);
	font-weight: 500;
	color: var(--body);
}

.sub-menu .menu-link:hover {
	background: var(--surface);
	color: var(--brand);
}

.sub-menu .sub-menu {
	top: -9px;
	left: 100%;
}

.sub-menu .menu-item-has-children > .menu-link::after {
	position: absolute;
	right: 10px;
	transform: rotate(-45deg);
}

/* Topics panel: 35 specialties, four columns, versions inline */

@media (min-width: 900px) {
	.menu-item--mega {
		position: static;
	}

	.menu-item--mega > .sub-menu {
		display: grid;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: var(--s-5) var(--s-5);
		width: calc(100% - (100vw - var(--wrap)));
		max-width: calc(var(--wrap) - 2 * var(--gutter));
		min-width: 0;
		left: 50%;
		right: auto;
		padding: var(--s-6);
		max-height: min(76vh, 700px);
		overflow: auto;
		transform: translate(-50%, 6px);
	}

	.menu-item--mega:hover > .sub-menu,
	.menu-item--mega.is-open > .sub-menu,
	body.kbd-nav .menu-item--mega:focus-within > .sub-menu {
		transform: translate(-50%, 0);
	}

	.menu-item--mega > .sub-menu > .menu-item {
		position: static;
		padding-left: var(--s-4);
		border-left: 1px solid var(--line);
	}

	.menu-item--mega > .sub-menu > .menu-item > .menu-link {
		padding: 0 0 6px;
		font-size: var(--fs-sm);
		font-weight: 700;
		line-height: 1.35;
		color: var(--ink);
		border-radius: 0;
	}

	.menu-item--mega > .sub-menu > .menu-item > .menu-link:hover {
		background: none;
		color: var(--brand-600);
	}

	.menu-item--mega > .sub-menu > .menu-item > .menu-link::after {
		content: none;
	}

	.menu-item--mega > .sub-menu .sub-menu {
		position: static;
		display: flex;
		flex-wrap: wrap;
		gap: 4px 12px;
		min-width: 0;
		padding: 0;
		background: none;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.menu-item--mega > .sub-menu .sub-menu .menu-link {
		position: relative;
		display: inline;
		padding: 0;
		font-size: var(--fs-xs);
		font-weight: 600;
		letter-spacing: 0.06em;
		text-transform: uppercase;
		white-space: nowrap;
		color: var(--brand-600);
	}

	.menu-item--mega > .sub-menu .sub-menu .menu-link:hover {
		background: none;
		color: var(--brand);
		text-decoration: underline;
	}

	.menu-item--mega > .sub-menu .sub-menu .menu-link + .menu-link::before {
		content: "/";
		margin-right: 12px;
		color: var(--line-strong);
		font-weight: 400;
	}
}

/* mobile menu button */

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	background: var(--paper);
	cursor: pointer;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
	content: "";
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: var(--ink);
	transition: transform var(--motion), opacity var(--motion);
}

.nav-toggle__bar {
	position: relative;
}

.nav-toggle__bar::before {
	position: absolute;
	top: -6px;
}

.nav-toggle__bar::after {
	position: absolute;
	top: 6px;
}

body.nav-open .nav-toggle__bar {
	background: transparent;
}

body.nav-open .nav-toggle__bar::before {
	transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav-toggle__bar::after {
	transform: translateY(-6px) rotate(-45deg);
}

/* reading progress */

.reading-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	z-index: 120;
	background: transparent;
	pointer-events: none;
}

.reading-progress i {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--brand), var(--brand-600));
	transition: width 80ms linear;
}

/* search overlay */

.search-overlay {
	position: fixed;
	inset: 0;
	z-index: 130;
	display: grid;
	place-items: center;
	padding: var(--s-5);
	background: linear-gradient(160deg, rgba(0, 62, 72, 0.97), rgba(3, 29, 60, 0.97));
}

.search-overlay[hidden] {
	display: none;
}

.search-overlay__inner {
	position: relative;
	width: 100%;
	max-width: 720px;
}

.search-overlay__label {
	font-family: var(--font-display);
	font-size: var(--fs-lg);
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: var(--s-4);
}

.search-overlay__hint {
	margin-top: var(--s-4);
	font-size: var(--fs-sm);
	color: rgba(255, 255, 255, 0.6);
}

.search-overlay__close {
	position: absolute;
	top: -64px;
	right: 0;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: var(--r-sm);
	background: none;
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.search-overlay__close:hover {
	background: rgba(255, 255, 255, 0.12);
}

.search-overlay .search-form__input {
	border-color: transparent;
	font-size: var(--fs-lg);
	padding: 20px 24px;
}

/* ---------- 6. search form ---------- */

.search-form {
	display: flex;
	gap: var(--s-2);
}

.search-form__input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 13px 18px;
	border: 1px solid var(--line-strong);
	border-radius: var(--r-sm);
	background: var(--paper);
	font: inherit;
	color: var(--ink);
}

.search-form__input::placeholder {
	color: #93a3b2;
}

.search-form__input:focus {
	border-color: var(--brand-600);
	outline: none;
	box-shadow: 0 0 0 3px var(--brand-050);
}

.search-form__submit {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 22px;
	border: 0;
	border-radius: var(--r-sm);
	background: var(--brand);
	color: #fff;
	font-family: var(--font-head);
	font-weight: 600;
	cursor: pointer;
}

.search-form__submit:hover {
	background: var(--brand-600);
}

/* ---------- 7. hero ---------- */

.hero {
	position: relative;
	overflow: hidden;
	background: var(--brand-700);
	color: #fff;
	padding-block: var(--s-10) var(--s-9);
}

.hero > .media-fill img {
	opacity: 0.22;
	filter: saturate(0.6);
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, rgba(0, 62, 72, 0.92) 0%, rgba(0, 80, 93, 0.78) 45%, rgba(9, 160, 187, 0.42) 100%);
	z-index: 1;
}

.hero__grid {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
	gap: var(--s-8);
	align-items: center;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.hero__eyebrow {
	display: inline-block;
	margin: 0 0 var(--s-4);
	padding: 5px 12px;
	border: 1px solid rgba(255, 255, 255, 0.32);
	border-radius: var(--r-pill);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.86);
}

.hero__title {
	font-family: var(--font-display);
	font-size: clamp(2.6rem, 5.2vw, var(--fs-4xl));
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: #fff;
	margin: 0 0 var(--s-4);
}

.hero__lead {
	font-family: var(--font-head);
	font-size: var(--fs-md);
	font-weight: 600;
	color: rgba(255, 255, 255, 0.94);
	margin: 0 0 var(--s-3);
}

.hero__text {
	max-width: 56ch;
	color: rgba(255, 255, 255, 0.74);
	margin-bottom: var(--s-6);
}

.hero__search {
	display: flex;
	gap: var(--s-2);
	max-width: 560px;
	padding: 8px;
	background: var(--paper);
	border-radius: var(--r);
	box-shadow: var(--sh-3);
}

.hero__search input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	padding: 12px 14px;
	font: inherit;
	color: var(--ink);
	background: transparent;
}

.hero__search input:focus {
	outline: none;
}

.hero__search .btn {
	padding: 13px 22px;
}

.hero__panels {
	display: grid;
	gap: var(--s-3);
}

.version-card {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: baseline;
	gap: 2px var(--s-3);
	padding: var(--s-5);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: var(--r);
	background: rgba(255, 255, 255, 0.07);
	color: #fff;
	transition: all var(--motion);
}

.version-card:hover {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.45);
	transform: translateY(-2px);
	color: #fff;
}

.version-card__label {
	font-family: var(--font-head);
	font-size: var(--fs-sm);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.82);
}

.version-card__count {
	font-family: var(--font-display);
	font-size: var(--fs-2xl);
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.version-card__unit {
	font-size: var(--fs-xs);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.62);
}

.version-card__go {
	grid-column: 1 / -1;
	margin-top: var(--s-3);
	padding-top: var(--s-3);
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	font-size: var(--fs-sm);
	font-weight: 600;
	color: #fff;
}

/* ---------- 8. topic rail ---------- */

.topicrail {
	padding-block: var(--s-6);
	border-bottom: 1px solid var(--line);
	background: var(--paper);
}

.topicrail__title {
	margin: 0 0 var(--s-4);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

/* ---------- 9. cards ---------- */

.cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--s-5);
}

.cards--cols-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
	position: relative;
	display: flex;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--r);
	overflow: hidden;
	transition: box-shadow var(--motion), border-color var(--motion), transform var(--motion);
}

.card:hover {
	border-color: var(--line-strong);
	box-shadow: var(--sh-2);
	transform: translateY(-2px);
}

.card__inner {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.card__media {
	display: block;
	background: var(--surface-2);
}

.card__media img {
	width: 100%;
	height: 188px;
	object-fit: cover;
}

.card__badge {
	position: absolute;
	top: var(--s-3);
	left: var(--s-3);
	padding: 4px 10px;
	border-radius: var(--r-pill);
	background: var(--brand);
	color: #fff;
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.03em;
}

.card--no-media .card__badge {
	position: static;
	align-self: flex-start;
	margin: var(--s-4) var(--s-5) 0;
}

.card__body {
	display: flex;
	flex-direction: column;
	gap: var(--s-2);
	padding: var(--s-5);
	flex: 1 1 auto;
}

.card__kicker {
	margin: 0;
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}

.card__title {
	margin: 0;
	font-size: var(--fs-lg);
	line-height: 1.3;
}

.card__title a {
	color: var(--ink);
}

.card__title a:hover {
	color: var(--brand-600);
}

.card__excerpt {
	margin: 0;
	font-size: var(--fs-sm);
	line-height: 1.6;
	color: var(--muted);
}

.card__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: var(--s-3);
	font-family: var(--font-head);
	font-size: var(--fs-sm);
	font-weight: 700;
	letter-spacing: 0.03em;
	color: var(--brand);
}

.card__more:hover {
	gap: 9px;
	color: var(--brand-600);
}

/* featured row: one wide, two stacked */

.featured {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	gap: var(--s-5);
}

.featured > .card:first-child {
	grid-row: span 2;
}

.featured > .card:first-child .card__media img {
	height: 340px;
}

.featured > .card:first-child .card__title {
	font-size: var(--fs-xl);
}

.featured > .card:first-child .card__excerpt {
	font-size: var(--fs-base);
}

.featured > .card:not(:first-child) {
	flex-direction: row;
}

.featured > .card:not(:first-child) .card__media img {
	width: 170px;
	height: 100%;
	min-height: 130px;
}

/* ---------- 10. contribute band ---------- */

.contribute {
	background: var(--surface);
	border-top: 1px solid var(--line);
	padding-block: var(--s-8);
}

.contribute__grid {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-7);
	flex-wrap: wrap;
}

.contribute__title {
	font-size: var(--fs-xl);
	max-width: 22ch;
	margin-bottom: var(--s-3);
}

.contribute__text {
	max-width: 56ch;
	margin: 0;
	color: var(--muted);
}

.contribute__actions {
	display: flex;
	gap: var(--s-3);
	margin: 0;
	flex-wrap: wrap;
}

/* ---------- 11. article ---------- */

.article__figure {
	background: var(--surface);
	border-bottom: 1px solid var(--line);
	padding-block: var(--s-5);
}

.article__image {
	width: 100%;
	max-height: 380px;
	object-fit: cover;
	border-radius: var(--r);
}

.article__head {
	padding-block: var(--s-7) var(--s-6);
	border-bottom: 1px solid var(--line);
}

.article__kicker {
	margin: 0 0 var(--s-3);
	font-size: var(--fs-sm);
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--brand-600);
}

.article__kicker a {
	color: inherit;
}

.article__kicker a:hover {
	text-decoration: underline;
}

.article__title {
	font-family: var(--font-display);
	font-size: clamp(2rem, 4vw, var(--fs-3xl));
	font-weight: 700;
	line-height: 1.16;
	letter-spacing: -0.018em;
	max-width: 24ch;
	margin: 0 0 var(--s-4);
}

.article__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--s-3);
	font-size: var(--fs-sm);
	color: var(--muted);
}

.article__dot {
	color: var(--line-strong);
}

.article__grid {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: var(--s-8);
	align-items: start;
	padding-block: var(--s-7);
}

.article__rail {
	position: sticky;
	top: calc(var(--header-h) + var(--s-5));
	display: grid;
	gap: var(--s-5);
}

.toc__title {
	margin: 0 0 var(--s-3);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

.toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-left: 2px solid var(--line);
}

.toc__item a {
	display: block;
	padding: 7px 0 7px var(--s-4);
	margin-left: -2px;
	border-left: 2px solid transparent;
	font-size: var(--fs-sm);
	line-height: 1.45;
	color: var(--muted);
}

.toc__item--3 a {
	padding-left: var(--s-6);
	font-size: var(--fs-xs);
}

.toc__item a:hover,
.toc__item a.is-current {
	color: var(--brand);
	border-left-color: var(--brand-600);
}

.rail-card {
	padding: var(--s-5);
	background: var(--brand-050);
	border-radius: var(--r);
}

.rail-card__title {
	font-family: var(--font-head);
	font-weight: 700;
	color: var(--brand-700);
	margin: 0 0 var(--s-2);
}

.rail-card__text {
	font-size: var(--fs-sm);
	color: var(--body);
	margin: 0 0 var(--s-3);
}

.rail-card__link {
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--brand);
}

.article__body {
	min-width: 0;
}

.article__tail {
	padding-bottom: var(--s-9);
}

.article__print {
	display: flex;
	align-items: center;
	gap: var(--s-3);
	margin: var(--s-6) 0;
	padding-block: var(--s-4);
	border-block: 1px solid var(--line);
	font-family: var(--font-head);
	font-size: var(--fs-sm);
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--muted);
}

.disclaimer {
	margin: var(--s-6) 0;
	padding: var(--s-5) var(--s-6);
	background: var(--surface);
	border-left: 3px solid var(--brand-600);
	border-radius: 0 var(--r) var(--r) 0;
}

.disclaimer__title {
	font-size: var(--fs-md);
	margin-bottom: var(--s-3);
}

.disclaimer__body {
	font-size: var(--fs-sm);
	line-height: 1.7;
	color: var(--muted);
}

.disclaimer__body p:last-child {
	margin-bottom: 0;
}

.author-box {
	display: flex;
	gap: var(--s-4);
	align-items: flex-start;
	margin-top: var(--s-6);
	padding: var(--s-5);
	border: 1px solid var(--line);
	border-radius: var(--r);
}

.author-box__img {
	border-radius: 50%;
	flex: none;
}

.author-box__label {
	margin: 0;
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

.author-box__name {
	font-family: var(--font-head);
	font-size: var(--fs-md);
	font-weight: 700;
	color: var(--ink);
	margin: 2px 0 var(--s-2);
}

.author-box__bio {
	font-size: var(--fs-sm);
	color: var(--body);
}

.author-box__bio p:last-child {
	margin-bottom: 0;
}

.section--related {
	background: var(--surface);
	border-top: 1px solid var(--line);
}

/* ---------- 12. prose (article bodies) ---------- */

.prose > :first-child,
.entry-content > :first-child {
	margin-top: 0;
}

.entry-content h2 {
	font-family: var(--font-display);
	font-size: var(--fs-xl);
	font-weight: 700;
	letter-spacing: -0.012em;
	margin: 1.9em 0 0.55em;
	padding-top: var(--s-5);
	border-top: 1px solid var(--line);
	color: var(--ink);
}

.entry-content h2:first-of-type {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.entry-content h3 {
	font-family: var(--font-head);
	font-size: var(--fs-lg);
	margin: 1.7em 0 0.5em;
}

.entry-content h4 {
	font-size: var(--fs-md);
	margin: 1.5em 0 0.4em;
}

.entry-content p,
.entry-content li {
	max-width: var(--measure);
}

.entry-content a {
	color: var(--brand);
	text-decoration: underline;
	text-decoration-color: var(--brand-600);
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
}

.entry-content a:hover {
	color: var(--brand-600);
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.35em;
}

.entry-content li + li {
	margin-top: 0.35em;
}

.entry-content img {
	border-radius: var(--r-sm);
	margin-block: var(--s-5);
}

.entry-content figure {
	margin: var(--s-6) 0;
}

.entry-content figcaption {
	font-size: var(--fs-sm);
	color: var(--muted);
	margin-top: var(--s-2);
}

.entry-content blockquote {
	margin: var(--s-6) 0;
	padding: var(--s-2) 0 var(--s-2) var(--s-5);
	border-left: 3px solid var(--brand-600);
	color: var(--body);
	font-size: var(--fs-md);
}

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

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: var(--s-6) 0;
	font-size: var(--fs-sm);
}

.entry-content th,
.entry-content td {
	border-bottom: 1px solid var(--line);
	padding: 10px 12px;
	text-align: left;
	vertical-align: top;
}

.entry-content th {
	background: var(--surface);
	font-family: var(--font-head);
	font-weight: 700;
	color: var(--ink);
}

.entry-content code {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.9em;
	background: var(--surface);
	padding: 2px 6px;
	border-radius: 4px;
}

.entry-content .article-lead-heading {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.entry-content .underlined {
	text-decoration: underline;
}

/* The author's own contents list, rebuilt as one block. */

.entry-contents {
	margin: 0 0 var(--s-6);
	padding: var(--s-4) var(--s-5) var(--s-4);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r);
	columns: 2;
	column-gap: var(--s-6);
}

.entry-contents::before {
	content: "Contents";
	display: block;
	column-span: all;
	margin-bottom: var(--s-2);
	font-family: var(--font-head);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

.entry-contents ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.entry-contents li {
	break-inside: avoid;
}

.entry-contents a {
	display: block;
	padding: 3px 0;
	font-size: var(--fs-sm);
	color: var(--brand);
	text-decoration: none;
}

.entry-contents a:hover {
	color: var(--brand-600);
	text-decoration: underline;
}

.alignleft {
	float: left;
	margin: 0 var(--s-5) var(--s-5) 0;
}

.alignright {
	float: right;
	margin: 0 0 var(--s-5) var(--s-5);
}

.aligncenter {
	margin-inline: auto;
}

.prose--center,
.text-center {
	text-align: center;
}

.text-muted {
	color: var(--muted);
}

/* Page prose speaks with the same voice as an article body. */

.prose > :first-child {
	margin-top: 0;
}

.prose h2 {
	font-size: var(--fs-xl);
	margin: 1.7em 0 0.5em;
}

.prose h3 {
	font-size: var(--fs-lg);
	margin: 1.5em 0 0.45em;
}

.prose p,
.prose li {
	max-width: var(--measure);
}

.prose a {
	color: var(--brand);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.prose a:hover {
	color: var(--brand-600);
}

.prose img {
	border-radius: var(--r-sm);
	margin-block: var(--s-5);
}

.page-body {
	padding-block: var(--s-8);
}

.infobox__body {
	flex: 1 1 auto;
}

.archive-head__search {
	margin-top: var(--s-5);
	max-width: 520px;
}

.section--archive {
	padding-block: var(--s-8);
}

.page-links {
	display: flex;
	gap: var(--s-2);
	margin: var(--s-6) 0;
	font-size: var(--fs-sm);
}

.menu--fallback {
	display: flex;
	gap: var(--s-5);
}

body.search-open {
	overflow: hidden;
}

/* ---------- 13. archive, search, 404 ---------- */

.archive-head {
	padding-block: var(--s-8) var(--s-7);
	background: linear-gradient(180deg, var(--surface) 0%, var(--paper) 100%);
	border-bottom: 1px solid var(--line);
}

.archive-head__eyebrow {
	margin: 0 0 var(--s-3);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--brand-600);
}

.archive-head__title {
	font-family: var(--font-display);
	font-size: clamp(2rem, 4vw, var(--fs-3xl));
	letter-spacing: -0.018em;
	margin: 0 0 var(--s-4);
}

.archive-head__desc {
	max-width: 64ch;
	color: var(--muted);
}

.archive-head__desc p {
	margin: 0 0 0.6em;
}

.archive-count {
	margin: 0 0 var(--s-5);
	font-size: var(--fs-sm);
	color: var(--muted);
}

.empty {
	padding: var(--s-8);
	text-align: center;
	color: var(--muted);
	background: var(--surface);
	border-radius: var(--r);
}

.page-numbers {
	display: flex;
	gap: var(--s-2);
	justify-content: center;
	list-style: none;
	padding: 0;
	margin: var(--s-7) 0 0;
}

.page-numbers a,
.page-numbers span {
	display: inline-block;
	min-width: 40px;
	padding: 9px 12px;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	font-size: var(--fs-sm);
	color: var(--ink);
}

.page-numbers a:hover {
	border-color: var(--brand-600);
	color: var(--brand);
}

.page-numbers .current {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
}

.section--404 {
	padding-block: var(--s-10);
	text-align: center;
}

.section--404 .search-form {
	max-width: 460px;
	margin: var(--s-6) auto;
}

/* ---------- 14. page patterns ---------- */

.page-title {
	font-family: var(--font-display);
	font-size: clamp(2rem, 4vw, var(--fs-3xl));
	font-weight: 700;
	letter-spacing: -0.018em;
	color: var(--ink);
	margin-bottom: var(--s-4);
}

.page-header {
	padding-block: var(--s-8) var(--s-7);
	border-bottom: 1px solid var(--line);
	background: var(--surface);
}

.split {
	padding-block: var(--s-8);
}

.split__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--s-8);
	align-items: center;
}

.split__grid--head {
	align-items: start;
}

.split__col--media {
	text-align: center;
}

.split__col--photos {
	display: grid;
	gap: var(--s-4);
	padding: var(--s-5);
	background: var(--surface);
	border-radius: var(--r);
}

.split__col--spacer {
	background: var(--surface);
	border-radius: var(--r);
	min-height: 180px;
}

.split__kicker {
	font-family: var(--font-display);
	font-size: var(--fs-lg);
	font-weight: 700;
	color: var(--brand);
	margin-bottom: var(--s-4);
}

.split__label {
	font-size: var(--fs-sm);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--brand-600);
	margin: 0 0 var(--s-2);
}

.section__title--left {
	font-size: var(--fs-2xl);
	text-align: left;
}

.goals {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--s-5);
	padding: 0;
	margin: var(--s-6) 0 0;
	counter-reset: goal;
}

.goals__item {
	position: relative;
	padding: var(--s-6) var(--s-5) var(--s-5);
	background: var(--surface);
	border-radius: var(--r);
	text-align: center;
}

.goals__item::before {
	counter-increment: goal;
	content: counter(goal);
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--brand);
	color: #fff;
	font-size: var(--fs-sm);
	font-weight: 700;
}

.goals__icon {
	display: grid;
	place-items: center;
	color: var(--brand-600);
	margin-bottom: var(--s-3);
}

.goals__title {
	font-family: var(--font-head);
	font-size: var(--fs-md);
	font-weight: 700;
	color: var(--ink);
}

.form-card {
	padding: var(--s-7);
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--sh-2);
}

.infobox {
	display: flex;
	gap: var(--s-5);
	align-items: center;
	padding: var(--s-6);
	background: var(--surface);
	border-radius: var(--r);
}

.infobox__title {
	font-size: var(--fs-md);
	margin-bottom: var(--s-2);
}

.check-list {
	list-style: none;
	padding: 0;
	margin: var(--s-4) 0 0;
	display: grid;
	gap: var(--s-3);
}

.check-list__item {
	display: flex;
	gap: var(--s-3);
	align-items: flex-start;
	font-size: var(--fs-base);
	color: var(--body);
}

.check-list__item .icon {
	margin-top: 4px;
	color: var(--brand-600);
}

.join-hero {
	padding-block: var(--s-8);
	background: var(--surface);
	border-bottom: 1px solid var(--line);
}

.join-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: var(--s-8);
	align-items: center;
}

.join-hero__title {
	font-family: var(--font-display);
	font-size: clamp(2rem, 4vw, var(--fs-3xl));
	letter-spacing: -0.018em;
	margin-bottom: var(--s-4);
}

.signup {
	position: relative;
	overflow: hidden;
	padding-block: var(--s-9);
	background: var(--brand-700);
}

.signup > .media-fill img {
	opacity: 0.18;
}

.signup__card {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: var(--s-7);
	align-items: center;
	padding: var(--s-7);
	background: var(--paper);
	border-radius: var(--r-lg);
	box-shadow: var(--sh-3);
}

.signup__card .prose p:last-child {
	margin-bottom: 0;
}

.submit__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: var(--s-7);
	align-items: start;
	margin-bottom: var(--s-7);
}

.covid__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.44fr) minmax(0, 0.56fr);
	gap: var(--s-5);
	align-items: start;
}

.figure {
	margin: 0 auto var(--s-7);
	max-width: var(--wrap);
	padding-inline: var(--gutter);
	text-align: center;
}

.figure img {
	margin-inline: auto;
	border-radius: var(--r);
	border: 1px solid var(--line);
}

.figure figcaption {
	margin-top: var(--s-3);
	font-size: var(--fs-sm);
	color: var(--muted);
}

.legal {
	padding-block: var(--s-8) var(--s-9);
}

.notice-missing {
	padding: var(--s-4);
	background: #fff6e8;
	border-left: 3px solid #c47d18;
	border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* ---------- 15. team ---------- */

.team-section {
	padding-block: var(--s-6);
}

.team-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--s-5);
}

.team-grid--cols-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-card {
	display: flex;
	flex-direction: column;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--r);
	overflow: hidden;
	transition: box-shadow var(--motion), border-color var(--motion);
}

.team-card:hover {
	border-color: var(--line-strong);
	box-shadow: var(--sh-2);
}

.team-card__photo {
	display: block;
	background: var(--surface-2);
}

.team-card__photo img {
	width: 100%;
	height: 240px;
	object-fit: cover;
}

.team-card__photo--empty {
	height: 96px;
}

.team-card__body {
	display: grid;
	gap: var(--s-2);
	padding: var(--s-5);
}

.team-card__name {
	font-family: var(--font-head);
	font-size: var(--fs-base);
	font-weight: 700;
	line-height: 1.3;
	color: var(--ink);
}

.team-card__role {
	font-size: var(--fs-sm);
	font-weight: 500;
	color: var(--brand-600);
}

.team-card__bio {
	font-size: var(--fs-sm);
	line-height: 1.6;
	color: var(--muted);
}

.team-card__mail {
	font-size: var(--fs-xs);
	color: var(--brand);
	word-break: break-all;
}

/* ---------- 16. forms ---------- */

.mr-form {
	display: grid;
	gap: var(--s-3);
}

.mr-form__row {
	margin: 0;
}

.mr-form__row--bot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.mr-form__input {
	width: 100%;
	padding: 13px 16px;
	border: 1px solid var(--line-strong);
	border-radius: var(--r-sm);
	font: inherit;
	color: var(--ink);
	background: var(--paper);
}

.mr-form__input:focus {
	border-color: var(--brand-600);
	outline: none;
	box-shadow: 0 0 0 3px var(--brand-050);
}

.mr-form__question {
	display: block;
	font-family: var(--font-head);
	font-weight: 600;
	color: var(--ink);
	margin-bottom: var(--s-3);
}

.mr-form__choices {
	display: flex;
	gap: var(--s-2);
	flex-wrap: wrap;
}

.mr-choice {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: var(--r-pill);
	font-size: var(--fs-sm);
	cursor: pointer;
	transition: all var(--motion);
}

.mr-choice:hover {
	border-color: var(--brand-600);
	background: var(--brand-050);
}

.mr-form__done {
	padding: var(--s-3) var(--s-4);
	background: var(--brand-050);
	border-left: 3px solid var(--brand-600);
	border-radius: 0 var(--r-sm) var(--r-sm) 0;
	color: var(--brand-700);
}

/* Gravity Forms, aligned to the same field language */

body .gform_wrapper {
	margin: 0;
	background: transparent;
	box-shadow: none;
	padding: 0;
}

body .gform_wrapper .gfield_label,
body .gform_wrapper .gfield_time_hour label {
	font-family: var(--font-head);
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--ink);
	margin-bottom: 6px;
}

body .gform_wrapper input[type="text"],
body .gform_wrapper input[type="email"],
body .gform_wrapper input[type="tel"],
body .gform_wrapper input[type="url"],
body .gform_wrapper input[type="number"],
body .gform_wrapper input[type="password"],
body .gform_wrapper input[type="date"],
body .gform_wrapper textarea,
body .gform_wrapper select {
	width: 100%;
	padding: 13px 16px;
	border: 1px solid var(--line-strong);
	border-radius: var(--r-sm);
	background: var(--paper);
	font: inherit;
	color: var(--ink);
}

body .gform_wrapper input:focus,
body .gform_wrapper textarea:focus,
body .gform_wrapper select:focus {
	border-color: var(--brand-600);
	box-shadow: 0 0 0 3px var(--brand-050);
	outline: none;
}

body .gform_wrapper .gfield {
	margin-bottom: var(--s-5);
}

body .gform_wrapper .gfield_description {
	font-size: var(--fs-sm);
	color: var(--muted);
}

body .gform_wrapper .gform_button,
body .gform_wrapper .gform_page_footer input[type="submit"] {
	background: var(--brand);
	color: #fff;
	border: 0;
	border-radius: var(--r-sm);
	padding: 13px 26px;
	font-family: var(--font-head);
	font-weight: 600;
	cursor: pointer;
}

body .gform_wrapper .gform_button:hover {
	background: var(--brand-600);
}

body .gform_wrapper .gform_validation_errors {
	border-radius: var(--r-sm);
}

/* ---------- 17. popup ---------- */

.popup {
	position: fixed;
	inset: 0;
	z-index: 125;
	display: grid;
	place-items: center;
	padding: var(--s-5);
}

.popup[hidden] {
	display: none;
}

.popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(3, 29, 60, 0.55);
	backdrop-filter: blur(2px);
}

.popup__panel {
	position: relative;
	width: 100%;
	max-width: 520px;
	padding: var(--s-7) var(--s-6) var(--s-6);
	background: var(--paper);
	border-radius: var(--r-lg);
	box-shadow: var(--sh-3);
}

.popup__close {
	position: absolute;
	top: 10px;
	right: 14px;
	border: 0;
	background: none;
	font-size: 26px;
	line-height: 1;
	color: var(--muted);
	cursor: pointer;
}

.popup__close:hover {
	color: var(--ink);
}

.popup__title {
	font-size: var(--fs-xl);
	margin-bottom: var(--s-3);
}

.popup__intro {
	font-size: var(--fs-sm);
	color: var(--muted);
	margin-bottom: var(--s-5);
}

/* ---------- 18. comments ---------- */

.comments {
	margin-block: var(--s-7);
}

.comments__title {
	font-size: var(--fs-lg);
}

.comments__list {
	list-style: none;
	padding: 0;
	display: grid;
	gap: var(--s-4);
}

.comment-body {
	padding: var(--s-4);
	border: 1px solid var(--line);
	border-radius: var(--r);
}

/* ---------- 19. footer ---------- */

.site-footer {
	margin-top: var(--s-9);
	background: var(--ink);
	color: rgba(255, 255, 255, 0.72);
}

.site-footer__main {
	padding-block: var(--s-9) var(--s-7);
}

.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.2fr);
	gap: var(--s-8);
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.brand--footer .brand__text {
	color: #fff;
}

.footer-col__blurb {
	margin: var(--s-4) 0 var(--s-5);
	font-size: var(--fs-sm);
	max-width: 34ch;
}

.footer-col__title {
	font-family: var(--font-head);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
	margin-bottom: var(--s-4);
}

.footer-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
	font-size: var(--fs-sm);
}

.footer-list a {
	color: rgba(255, 255, 255, 0.78);
}

.footer-list a:hover {
	color: #fff;
}

.footer-list__more a {
	font-weight: 600;
	color: var(--brand-600);
}

.contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--s-3);
}

.contact-list__item a {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: var(--fs-sm);
	color: rgba(255, 255, 255, 0.78);
}

.contact-list__item a:hover {
	color: #fff;
}

.contact-list__item .icon {
	margin-top: 3px;
	color: var(--brand-600);
}

.social-list {
	list-style: none;
	display: flex;
	gap: var(--s-2);
	margin: 0;
	padding: 0;
}

.social-list__link {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: var(--r-sm);
	color: rgba(255, 255, 255, 0.8);
	transition: all var(--motion);
}

.social-list__link:hover {
	background: var(--brand-600);
	border-color: var(--brand-600);
	color: #fff;
}

.site-footer__bar {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-block: var(--s-5);
}

.footer-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-5);
	flex-wrap: wrap;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
	font-size: var(--fs-xs);
	color: rgba(255, 255, 255, 0.55);
}

.footer-bar__note {
	margin: 0;
	max-width: 72ch;
}

.footer-bar #footer-menu {
	display: flex;
	gap: var(--s-4);
	flex-wrap: wrap;
}

.footer-bar .menu-link {
	padding: 0;
	font-size: var(--fs-xs);
	font-weight: 500;
	color: rgba(255, 255, 255, 0.7);
}

.footer-bar .menu-link:hover {
	color: #fff;
}

/* ---------- 20. plugin furniture ---------- */

.addtoany_list {
	display: flex;
	align-items: center;
	gap: var(--s-2);
}

.gprint_link,
.article__print a {
	color: var(--brand);
	font-weight: 600;
}

.cmplz-hidden {
	display: none !important;
}

/* ---------- 21. responsive ---------- */

@media (max-width: 1080px) {
	.hero__grid {
		grid-template-columns: 1fr;
		gap: var(--s-7);
	}

	.hero__panels {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.article__grid {
		grid-template-columns: 200px minmax(0, 1fr);
		gap: var(--s-6);
	}
}

@media (max-width: 900px) {
	:root {
		--header-h: 68px;
	}

	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		max-height: calc(100vh - var(--header-h));
		overflow-y: auto;
		padding: var(--s-3) var(--gutter) var(--s-6);
		background: var(--paper);
		border-bottom: 1px solid var(--line);
		box-shadow: var(--sh-3);
		display: none;
	}

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

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

	.menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		font-size: var(--fs-base);
	}

	.menu > .menu-item {
		border-bottom: 1px solid var(--line);
	}

	.menu-link {
		display: flex;
		justify-content: space-between;
		padding: 14px 0;
	}

	.sub-menu,
	.menu-item--mega > .sub-menu {
		position: static;
		display: none;
		width: auto;
		max-width: none;
		max-height: none;
		overflow: visible;
		transform: none;
		opacity: 1;
		visibility: visible;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		background: var(--surface);
		padding: var(--s-2) var(--s-4) var(--s-4);
		margin-bottom: var(--s-3);
	}

	.menu-item.is-open > .sub-menu,
	.menu-item--mega.is-open > .sub-menu {
		display: block;
	}

	.menu-item--mega.is-open > .sub-menu {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--s-4);
	}

	.menu-item--mega > .sub-menu > .menu-item {
		border-left: 0;
		padding-left: 0;
	}

	.cards--cols-3,
	.featured,
	.split__grid,
	.join-hero__grid,
	.signup__card,
	.submit__grid,
	.covid__grid,
	.goals,
	.team-grid--cols-4,
	.footer-grid,
	.article__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.article__rail {
		position: static;
		order: -1;
	}

	.featured > .card:first-child .card__media img {
		height: 240px;
	}

	.hero__panels {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	:root {
		--gutter: 18px;
	}

	.section {
		padding-block: var(--s-8);
	}

	.header-cta {
		display: none;
	}

	.menu-item--mega.is-open > .sub-menu {
		grid-template-columns: minmax(0, 1fr);
	}

	.section__head {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--s-3);
	}

	.form-card,
	.signup__card {
		padding: var(--s-5);
	}

	.infobox {
		flex-direction: column;
		align-items: flex-start;
	}

	.featured > .card:not(:first-child) {
		flex-direction: column;
	}

	.featured > .card:not(:first-child) .card__media img {
		width: 100%;
		height: 188px;
	}
}

/* ---------- 22. motion and print preferences ---------- */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}
