/*
Theme Name: ALEN MAK
Theme URI: https://alenmak-bioboost.com/
Description: Classic theme for the ALEN MAK EOOD website.
Author: ALEN MAK EOOD
Version: 0.4.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: alenmak
Domain Path: /languages
*/

/* Fonts: self-hosted variable fonts (SPEC 10), SIL OFL 1.1, from Fontsource 5.3.0. */
@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("assets/fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations");
	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: "Nunito Sans";
	font-style: normal;
	font-display: swap;
	font-weight: 200 1000;
	src: url("assets/fonts/nunito-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Nunito Sans";
	font-style: normal;
	font-display: swap;
	font-weight: 200 1000;
	src: url("assets/fonts/nunito-sans-latin-wght-normal.woff2") format("woff2-variations");
	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;
}

/* Tokens from DESIGN.md. tests/smoke.mjs fails if a colour here differs from DESIGN.md. */
:root {
	/* Colours */
	--g900: #0F4D3B;
	--g800: #155C47;
	--g500: #4BAA46;
	--sun: #F2B233;
	--poppy: #D5412D;
	--bg: #F6F8F4;
	--white: #FFFFFF;
	--ink: #16261F;
	--muted: #5A6A62;
	--line: #E1E7DE;
	--mint: #EAF3E6;
	--cream: #FBF4E2;
	--error: #B3261E;

	/* Type */
	--head: "Montserrat", "Segoe UI", Arial, sans-serif;
	--body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

	/* Shape */
	--r: 24px;
	--r-lg: 32px;
	--r-sm: 12px;
	--r-pill: 999px;
	--shadow: 0 20px 44px -22px rgba(15, 77, 59, .35);

	/* Layout */
	--container: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--header-offset: 84px;

	color-scheme: light;
}

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

html {
	/* Keyboard focus and anchors are not hidden under the sticky header. */
	scroll-padding-top: var(--header-offset);
	scroll-behavior: smooth;
}

body {
	margin: 0;
	overflow-x: hidden; /* Safari < 16: no clip */
	overflow-x: clip;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.6;
	/* The footer sits at the bottom of the window on short pages (owner, stage 5 review). */
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}

.site-main {
	flex: 1 0 auto;
}

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

a {
	color: inherit;
}

p {
	margin: 0;
}

[hidden] {
	display: none !important;
}

h1,
h2,
h3 {
	margin: 0;
	color: var(--g900);
	font-family: var(--head);
	line-height: 1.1;
	text-wrap: balance;
}

h1 {
	font-size: clamp(2.5rem, 5.3vw, 4.4rem);
	font-weight: 800;
	letter-spacing: -.025em;
}

h2 {
	font-size: clamp(1.9rem, 3.5vw, 2.8rem);
	font-weight: 800;
	letter-spacing: -.02em;
}

h3 {
	font-size: 1.18rem;
	font-weight: 700;
}

:focus-visible {
	outline: 3px solid var(--sun);
	outline-offset: 3px;
	border-radius: 8px;
}

[id] {
	scroll-margin-top: var(--header-offset);
}

section {
	padding-block: clamp(60px, 8vw, 104px);
}

section.pt-0 {
	padding-top: 0;
}

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

.eyebrow {
	color: var(--g500);
	font-family: var(--head);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.lead {
	max-width: 56ch;
	color: var(--muted);
	font-size: 1.15rem;
}

.lead-narrow {
	max-width: 420px;
}

.head {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: 20px 40px;
	margin-bottom: clamp(28px, 4vw, 44px);
}

.head > div {
	display: grid;
	gap: 12px;
	max-width: 680px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 100;
	padding: 10px 18px;
	border-radius: var(--r-pill);
	background: var(--g900);
	color: var(--white);
	transform: translateY(-200%);
}

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

/* ---------- Buttons and links ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 15px 26px;
	border: 2px solid transparent;
	border-radius: var(--r-pill);
	font: 700 .98rem/1.2 var(--head);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: transform .2s, background .2s, box-shadow .2s;
}

.btn:hover {
	transform: translateY(-2px);
}

.btn-main {
	background: var(--g900);
	color: var(--white);
}

.btn-main:hover {
	background: var(--g800);
	box-shadow: var(--shadow);
}

.btn-sun {
	background: var(--sun);
	color: var(--g900);
}

.btn-sun:hover {
	box-shadow: var(--shadow);
}

.btn-out {
	border-color: var(--g900);
	background: transparent;
	color: var(--g900);
}

.btn-out:hover {
	background: var(--mint);
}

.btn-sm {
	padding: 10px 18px;
	font-size: .86rem;
}

.link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding-block: 10px 2px;
	border-bottom: 2px solid var(--sun);
	color: var(--g900);
	font-family: var(--head);
	font-weight: 700;
	text-decoration: none;
}

.link:hover {
	color: var(--g500);
}

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: env(safe-area-inset-top, 0px);
	z-index: 30;
	background: rgba(246, 248, 244, .92);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.nav {
	display: flex;
	align-items: center;
	gap: 28px;
	padding-block: 12px;
}

.logo {
	flex: none;
	border-radius: 8px;
}

.logo img {
	width: auto;
	height: 54px;
}

.menu {
	display: flex;
	gap: 28px;
	margin-left: auto;
	font-family: var(--head);
	font-size: .92rem;
	font-weight: 600;
}

.menu a {
	text-decoration: none;
	white-space: nowrap;
}

.menu a:hover,
.menu .current-menu-item > a {
	color: var(--g500);
}

.menu a[aria-current="page"] {
	color: var(--g500);
	text-decoration: underline 2px var(--sun);
	text-underline-offset: 6px;
}

@media (min-width: 1181px) and (max-width: 1300px) {
	.menu {
		gap: 18px;
		font-size: .88rem;
	}
}

.burger {
	display: none;
	margin-left: auto;
	padding: 8px;
	border: 0;
	background: none;
	color: var(--g900);
	cursor: pointer;
}

.burger svg {
	width: 28px;
	height: 28px;
}

.burger[aria-expanded="false"] svg + svg,
.burger[aria-expanded="true"] svg:first-child {
	display: none;
}

@media (max-width: 1180px) {
	.menu {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		flex-direction: column;
		gap: 0;
		padding: 6px var(--gutter) 18px;
		background: var(--bg);
		box-shadow: 0 14px 24px -14px rgba(0, 0, 0, .25);
	}

	.menu.open {
		display: flex;
	}

	.menu a {
		padding-block: 12px;
		border-bottom: 1px solid var(--line);
	}

	.burger {
		display: block;
	}

	.nav-cta {
		display: none;
	}
}

@media (max-width: 560px) {
	.logo img {
		height: 46px;
	}
}

/* ---------- Hero ---------- */
.hero {
	display: grid;
	grid-template-columns: 1fr 1.02fr;
	align-items: center;
	gap: clamp(28px, 4vw, 64px);
	padding-block: clamp(28px, 4vw, 56px) clamp(40px, 5vw, 64px);
}

.hero > * {
	min-width: 0;
}

.hero-copy {
	display: grid;
	gap: 24px;
}

.hero h1 em {
	color: var(--g500);
	font-style: normal;
}

.tag {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	width: fit-content;
	max-width: 100%;
	padding: 7px 14px 7px 8px;
	border: 1px solid var(--line);
	border-radius: var(--r-pill);
	background: var(--white);
	color: var(--g900);
	font-size: .85rem;
	font-weight: 700;
	line-height: 1.35;
}

.tag i {
	display: grid;
	flex: none;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--mint);
	color: var(--g500);
	font-style: normal;
}

.tag svg {
	width: 14px;
	height: 14px;
}

.hero-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 28px;
}

.trust {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	padding-top: 22px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: .92rem;
}

.trust span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.trust svg {
	flex: none;
	width: 18px;
	height: 18px;
	color: var(--g500);
}

.hero-media {
	position: relative;
}

.hero-media > img {
	width: 100%;
	aspect-ratio: 1 / 1.02;
	object-fit: cover;
	border-radius: var(--r-lg);
}

.float {
	position: absolute;
	padding: 16px 20px;
	border-radius: 20px;
	background: var(--white);
	box-shadow: var(--shadow);
}

.float-proof {
	bottom: 36px;
	left: -28px;
	display: grid;
	gap: 2px;
	max-width: 250px;
}

.float-proof b {
	color: var(--g900);
	font-family: var(--head);
	font-size: 2.1rem;
	font-weight: 800;
	line-height: 1;
}

.float-proof span {
	color: var(--muted);
	font-size: .88rem;
	line-height: 1.35;
}

.float-cert {
	top: 20px;
	right: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	color: var(--g900);
	font-size: .85rem;
	font-weight: 700;
}

.float-cert img {
	width: 34px;
	height: auto;
}

@media (max-width: 900px) {
	.hero {
		grid-template-columns: 1fr;
	}

	.hero-media > img {
		aspect-ratio: 4 / 3;
	}

	.float-proof {
		bottom: 16px;
		left: 16px;
	}
}

@media (max-width: 420px) {
	.hero-media > img {
		aspect-ratio: 1 / 1;
	}

	.float-cert {
		top: 12px;
		right: 12px;
	}

	.float-proof {
		right: 16px;
		max-width: none;
		padding: 12px 16px;
	}

	.float-proof b {
		font-size: 1.7rem;
	}
}

/* ---------- Countries strip ---------- */
.countries {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 30px;
	padding: 20px 28px;
	border-radius: var(--r);
	background: var(--white);
	color: var(--muted);
	font-family: var(--head);
	font-size: .92rem;
	font-weight: 600;
}

.countries strong {
	margin-right: auto;
	color: var(--g900);
}

@media (max-width: 560px) {
	.countries {
		gap: 6px 18px;
		padding: 18px 20px;
	}

	.countries strong {
		flex-basis: 100%;
	}
}

/* ---------- Bento ---------- */
.bento {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: minmax(210px, auto);
	gap: 18px;
}

.tile {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	overflow: hidden;
	padding: 28px;
	border-radius: var(--r);
	background: var(--white);
}

.tile p {
	color: var(--muted);
}

.tile.photo {
	justify-content: flex-end;
	min-height: 300px;
	background: var(--g900);
	color: var(--white);
}

.tile.photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tile.photo::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 35%, rgba(10, 45, 35, .85));
	content: "";
}

.tile.photo > div {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 6px;
}

.tile.photo h3 {
	color: var(--white);
	font-size: 1.45rem;
}

.tile.photo p {
	color: #DCE9E1;
}

.tile.dark {
	background: var(--g900);
}

.tile.dark h3 {
	color: var(--white);
}

.tile.dark p {
	color: #C9DCD1;
}

.tile.sun {
	background: var(--cream);
}

.tile .num {
	margin-top: auto;
	color: var(--g900);
	font-family: var(--head);
	font-size: clamp(2.6rem, 4.4vw, 3.6rem);
	font-weight: 800;
	line-height: 1;
}

.ico {
	display: grid;
	flex: none;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	background: var(--mint);
	color: var(--g900);
}

.tile.dark .ico {
	background: rgba(255, 255, 255, .1);
	color: var(--sun);
}

.ico svg {
	width: 26px;
	height: 26px;
}

.span2 {
	grid-column: span 2;
}

.row2 {
	grid-row: span 2;
}

@media (max-width: 980px) {
	.bento {
		grid-template-columns: 1fr 1fr;
	}

	.bento .row2 {
		grid-row: auto;
	}
}

@media (max-width: 560px) {
	.bento {
		grid-template-columns: 1fr;
		grid-auto-rows: auto;
	}

	.span2 {
		grid-column: auto;
	}
}

/* ---------- Products ---------- */
.filters,
.head > .filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.chip {
	min-height: 44px;
	padding: 9px 16px;
	border: 1.5px solid var(--line);
	border-radius: var(--r-pill);
	background: var(--white);
	color: var(--ink);
	font: 700 .86rem var(--head);
	cursor: pointer;
	transition: background .2s, border-color .2s, color .2s;
}

.chip:hover {
	border-color: var(--g500);
}

.chip[aria-pressed="true"] {
	border-color: var(--g900);
	background: var(--g900);
	color: var(--white);
}

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

.pcard {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--r);
	background: var(--white);
	transition: transform .25s, box-shadow .25s;
}

.pcard:hover {
	box-shadow: var(--shadow);
	transform: translateY(-5px);
}

.pack {
	position: relative;
	display: grid;
	place-items: center;
	padding: 26px 20px 18px;
	background: var(--tint, var(--mint));
}

.pack svg {
	width: 110px;
	height: auto;
}

.pack img {
	width: auto;
	max-width: 100%;
	height: 138px;
	object-fit: contain;
}

.badge {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 5px 10px;
	border-radius: var(--r-pill);
	background: var(--white);
	color: var(--muted);
	font: 700 .7rem var(--head);
	letter-spacing: .08em;
	text-transform: uppercase;
}

.badge.new {
	background: var(--poppy);
	color: var(--white);
}

.pbody {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 20px 22px 22px;
}

.pcat {
	color: var(--g500);
	font: 700 .74rem var(--head);
	letter-spacing: .12em;
	text-transform: uppercase;
}

.pbody p {
	color: var(--muted);
	font-size: .95rem;
}

.specs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 2px;
}

.specs span {
	padding: 4px 10px;
	border-radius: 8px;
	background: var(--bg);
	color: var(--g900);
	font-size: .78rem;
	font-weight: 700;
}

.pbtns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: auto;
	padding-top: 10px;
}

.pbtns .btn {
	padding: 10px 8px;
	font-size: .8rem;
	line-height: 1.2;
	text-align: center;
	white-space: normal;
}

.empty {
	grid-column: 1 / -1;
	padding: 40px;
	border-radius: var(--r);
	background: var(--white);
	color: var(--muted);
	text-align: center;
}

/* ---------- How to apply ---------- */
.apply {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

.acard {
	overflow: hidden;
	border-radius: var(--r);
	background: var(--white);
}

.acard img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.acard div {
	display: grid;
	gap: 6px;
	padding: 20px 22px 24px;
}

.acard p {
	color: var(--muted);
	font-size: .95rem;
}

@media (max-width: 1000px) {
	.apply {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 520px) {
	.apply {
		grid-template-columns: 1fr;
	}
}

/* ---------- Results band ---------- */
.results {
	background: var(--g900);
	color: var(--white);
}

.results h2 {
	color: var(--white);
}

.results .eyebrow {
	color: var(--sun);
}

.results .lead {
	color: #C9DCD1;
}

.results-cta {
	display: flex;
}

.rgrid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.res {
	display: grid;
	align-content: start;
	gap: 10px;
	padding: 28px;
	border-radius: var(--r);
	background: rgba(255, 255, 255, .06);
}

.res b {
	color: var(--sun);
	font-family: var(--head);
	font-size: clamp(2.6rem, 5vw, 3.6rem);
	font-weight: 800;
	line-height: 1;
}

.res h3 {
	color: var(--white);
}

.res p {
	color: #C9DCD1;
	font-size: .96rem;
}

.res small {
	color: #9FBCAE;
	font-size: .84rem;
}

@media (max-width: 880px) {
	.rgrid {
		grid-template-columns: 1fr;
	}
}

/* ---------- About ---------- */
.about {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: clamp(28px, 5vw, 72px);
}

.about > * {
	min-width: 0;
}

.about > img {
	width: 100%;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	border-radius: var(--r-lg);
}

.about-text {
	display: grid;
	gap: 18px;
}

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

.facts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.fact {
	padding: 16px 18px;
	border-radius: 16px;
	background: var(--white);
}

.fact b {
	display: block;
	color: var(--g900);
	font-family: var(--head);
	font-size: 1.3rem;
}

.fact span {
	color: var(--muted);
	font-size: .88rem;
}

@media (max-width: 860px) {
	.about {
		grid-template-columns: 1fr;
	}
}

/* ---------- Partner CTA ---------- */
.partner {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	align-items: center;
	gap: clamp(24px, 4vw, 56px);
	padding: clamp(30px, 5vw, 64px);
	border-radius: var(--r-lg);
	background: linear-gradient(100deg, rgba(15, 77, 59, .97) 0%, rgba(15, 77, 59, .9) 50%, rgba(15, 77, 59, .55)), var(--partner-photo, none) center / cover var(--g900);
	color: var(--white);
}

.partner > * {
	min-width: 0;
}

.partner-copy {
	display: grid;
	gap: 18px;
}

.partner h2 {
	color: var(--white);
}

.partner .eyebrow {
	color: var(--sun);
}

.partner p {
	color: #D3E3DA;
}

.plist {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.plist li {
	display: grid;
	grid-template-columns: 26px 1fr;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 16px;
	background: rgba(255, 255, 255, .08);
}

.plist svg {
	width: 26px;
	height: 26px;
	color: var(--sun);
}

.plist b {
	display: block;
	font-family: var(--head);
}

.plist span {
	color: #C9DCD1;
	font-size: .9rem;
}

@media (max-width: 860px) {
	.partner {
		grid-template-columns: 1fr;
	}
}

/* ---------- Contact ---------- */
.contact {
	display: grid;
	grid-template-columns: 1fr 1.25fr;
	align-items: start;
	gap: clamp(24px, 4vw, 56px);
}

.contact > * {
	min-width: 0;
}

.cside {
	display: grid;
	gap: 22px;
}

.cside-head {
	display: grid;
	gap: 12px;
}

.cline {
	display: grid;
	gap: 2px;
}

.cline > span {
	color: var(--muted);
	font: 700 .74rem var(--head);
	letter-spacing: .14em;
	text-transform: uppercase;
}

.cline > div {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
}

.cvalue {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--g900);
	font-family: var(--head);
	font-size: 1.3rem;
	font-weight: 700;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.cvalue:hover {
	color: var(--g500);
}

.copy {
	min-height: 32px;
	padding: 4px 12px;
	border: 1.5px solid var(--line);
	border-radius: var(--r-pill);
	background: var(--white);
	color: var(--muted);
	font: 700 .74rem var(--head);
	cursor: pointer;
}

@media (max-width: 760px) {
	.copy {
		min-height: 44px;
		padding-inline: 16px;
	}
}

.socials {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.socials a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 16px;
	border-radius: var(--r-pill);
	background: var(--white);
	font-size: .88rem;
	font-weight: 700;
	text-decoration: none;
}

.socials a:hover {
	color: var(--g500);
}

/* ---------- Lead form ---------- */
.lead-form {
	position: relative;
	display: grid;
	gap: 16px;
	padding: clamp(24px, 4vw, 44px);
	border-radius: var(--r-lg);
	background: var(--white);
}

.seg {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	padding: 5px;
	border-radius: var(--r-pill);
	background: var(--bg);
}

.seg label {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 44px;
	padding: 8px;
	border-radius: var(--r-pill);
	color: var(--muted);
	font: 700 .9rem/1.2 var(--head);
	text-align: center;
	cursor: pointer;
}

.seg input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.seg label:has(input:checked) {
	background: var(--g900);
	color: var(--white);
}

.seg label:has(input:focus-visible) {
	outline: 3px solid var(--sun);
	outline-offset: 2px;
}

/* The same without :has() (Safari < 15.4, Firefox < 121): classes set by site.js. Separate rules,
   because a selector list with an unknown selector is dropped as a whole. */
.seg label.is-on {
	background: var(--g900);
	color: var(--white);
}

.seg label.is-focus {
	outline: 3px solid var(--sun);
	outline-offset: 2px;
}

.two {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.field {
	display: grid;
	gap: 6px;
}

.field label {
	font-size: .88rem;
	font-weight: 700;
}

.field input,
.field select,
.field textarea {
	width: 100%;
	padding: 13px 16px;
	border: 1.5px solid transparent;
	border-radius: var(--r-sm);
	background: var(--bg);
	color: var(--ink);
	font: inherit;
	font-size: 1rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
	border-color: var(--g500);
	background: var(--white);
}

.field input::placeholder,
.field textarea::placeholder {
	color: var(--muted);
	opacity: 1;
}

.field textarea {
	min-height: 100px;
	resize: vertical;
}

.ok {
	padding: 14px 18px;
	border-radius: var(--r-sm);
	background: var(--mint);
	color: var(--g900);
	font-weight: 600;
}

.ok:focus {
	outline: none;
}

/* Stage 6: required mark, errors, honeypot. */
.req {
	margin-left: 2px;
	color: var(--muted);
}

.field-err {
	margin: 0;
	color: var(--error);
	font-size: .88rem;
	font-weight: 600;
}

.field [aria-invalid="true"] {
	border-color: var(--error);
}

.form-err {
	padding: 14px 18px;
	border: 1.5px solid var(--error);
	border-radius: var(--r-sm);
	color: var(--error);
	font-weight: 600;
}

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


@media (max-width: 860px) {
	.contact {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 520px) {
	.two {
		grid-template-columns: 1fr;
	}
}

/* ---------- Footer ---------- */
.site-footer {
	background: var(--g900);
	color: #BCD0C5;
	font-size: .88rem;
}

.site-footer .wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 32px;
	padding-block: 22px;
}

.site-footer b {
	color: var(--white);
	font-family: var(--head);
	font-weight: 700;
}

.site-footer nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0 22px;
}

.site-footer a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: #E3EDE7;
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--sun);
}

@media (max-width: 760px) {
	.site-footer .wrap {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ---------- Request list in the header (SPEC §6) ---------- */
.req-link {
	position: relative;
	display: grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: var(--r-pill);
	color: var(--g900);
	text-decoration: none;
}

.req-link:hover {
	background: var(--mint);
}

.req-link svg {
	width: 26px;
	height: 26px;
}

.req-count {
	position: absolute;
	top: 0;
	right: -2px;
	display: grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: var(--r-pill);
	background: var(--sun);
	color: var(--g900);
	font: 800 .72rem/1 var(--head);
}

@media (max-width: 1180px) {
	.req-link {
		margin-left: auto;
	}

	.req-link ~ .burger {
		margin-left: 0;
	}
}

/* ---------- Notice after "Add to request" ---------- */
.toast {
	position: fixed;
	bottom: 20px;
	left: 50%;
	z-index: 40;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	max-width: calc(100% - 32px);
	padding: 14px 22px;
	border-radius: var(--r-pill);
	background: var(--g900);
	color: var(--white);
	box-shadow: var(--shadow);
	font-weight: 600;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 16px);
	transition: opacity .25s, transform .25s;
}

.toast:empty {
	padding: 0;
}

.toast.show {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, 0);
}

.toast a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--sun);
	font-family: var(--head);
	font-weight: 700;
}

/* ---------- Product cards and catalogue ---------- */
.pname a,
.f-name a {
	color: inherit;
	text-decoration: none;
}

.pname a:hover,
.f-name a:hover {
	color: var(--g500);
}

.pcard .pack {
	height: 206px;
}

.pack .pack-photo {
	width: auto;
	height: 168px;
	mix-blend-mode: multiply;
}

.btn-main.is-added {
	border-color: var(--g500);
	background: var(--mint);
	color: var(--g900);
}

.filters[data-filter-for] {
	margin-bottom: 22px;
}

.featured {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	overflow: hidden;
	border-radius: var(--r-lg);
	background: var(--white);
}

.featured > * {
	min-width: 0;
}

.featured .pack {
	padding: clamp(36px, 5vw, 64px);
}

.featured .pack svg {
	width: min(220px, 60%);
}

.featured .pack .pack-photo {
	width: min(420px, 100%);
	height: auto;
}

.f-body {
	display: grid;
	align-content: center;
	gap: 18px;
	padding: clamp(26px, 4vw, 52px);
}

.f-name {
	font-size: clamp(2rem, 3.6vw, 2.8rem);
	font-weight: 800;
}

.f-body .lead {
	font-size: 1.08rem;
}

.f-meta {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 16px;
	margin: 0;
	font-size: .95rem;
}

.f-meta dt {
	color: var(--muted);
}

.f-meta dd {
	margin: 0;
	font-weight: 700;
}

.f-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

@media (max-width: 860px) {
	.featured {
		grid-template-columns: 1fr;
	}
}

/* ---------- Inner pages ---------- */
.page-top {
	padding-top: clamp(28px, 4vw, 56px);
	padding-bottom: clamp(40px, 6vw, 72px);
}

section.page-top {
	padding-top: clamp(28px, 4vw, 56px);
}

.spacer {
	height: clamp(60px, 8vw, 104px);
}

.crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin-bottom: 18px;
	color: var(--muted);
	font-size: .92rem;
}

.crumbs a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--g900);
	font-weight: 700;
}

.crumbs span {
	display: inline-flex;
	align-items: center;
}

.pdetail {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	align-items: start;
	gap: clamp(24px, 4vw, 48px);
}

.pmain {
	display: grid;
	gap: 18px;
	min-width: 0;
}

.pmain h2 {
	margin-top: 22px;
	font-size: clamp(1.4rem, 2.4vw, 1.8rem);
}

.pmain h2:first-child {
	margin-top: 0;
}

.prose {
	display: grid;
	gap: 14px;
	max-width: 70ch;
}

.note {
	color: var(--muted);
	font-size: .92rem;
}

.dtable {
	width: 100%;
	border-collapse: collapse;
	overflow: hidden;
	border-radius: var(--r);
	background: var(--white);
	font-size: .95rem;
}

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

.dtable tbody tr:last-child > * {
	border-bottom: 0;
}

.dtable tbody th {
	font-weight: 600;
}

.dtable thead th {
	background: var(--g900);
	color: var(--white);
	font: 700 .8rem var(--head);
	letter-spacing: .06em;
	text-transform: uppercase;
}

.rtable-wrap {
	max-width: 100%;
	overflow-x: auto;
	border-radius: var(--r);
}

.rtable td:nth-child(3) {
	min-width: 12ch;
	font-weight: 700;
}

@media (max-width: 900px) {
	.rtable,
	.rtable tbody,
	.rtable tr,
	.rtable th,
	.rtable td {
		display: block;
	}

	.rtable thead {
		display: none;
	}

	.rtable tr {
		padding: 12px 0;
		border-bottom: 1px solid var(--line);
	}

	.rtable tbody tr:last-child {
		border-bottom: 0;
	}

	.rtable th,
	.rtable td {
		padding: 2px 18px;
		border: 0;
	}

	.rtable td:nth-child(3) {
		min-width: 0;
	}

	.rtable td::before {
		content: attr(data-label) ": ";
		color: var(--muted);
		font-weight: 400;
	}

	.rtable td:empty {
		display: none;
	}
}

.pside {
	display: grid;
	gap: 18px;
}

.side-card {
	display: grid;
	gap: 14px;
	padding: 24px;
	border-radius: var(--r);
	background: var(--white);
}

.side-card h2 {
	font-size: 1.15rem;
}

.docs {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.docs li {
	display: grid;
	grid-template-columns: 24px 1fr;
	gap: 10px;
}

.docs svg {
	width: 24px;
	height: 24px;
	color: var(--g500);
}

.docs a {
	color: var(--g900);
	font-weight: 700;
	line-height: 1.35;
}

.docs span {
	display: block;
	color: var(--muted);
	font-size: .82rem;
}

@media (max-width: 960px) {
	.pdetail {
		grid-template-columns: 1fr;
	}
}

/* ---------- Request page ---------- */
.request {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	align-items: start;
	gap: clamp(24px, 4vw, 48px);
}

.request-list {
	display: grid;
	gap: 16px;
	min-width: 0;
}

.request-list .head {
	margin-bottom: 8px;
}

.rq-rows {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rq-row {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px 18px;
	padding: 16px 18px;
	border-radius: var(--r);
	background: var(--white);
}

.rq-pack {
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	overflow: hidden;
	border-radius: 16px;
	background: var(--tint, var(--mint));
}

.rq-pack svg {
	width: 46px;
	height: auto;
}

.rq-pack .pack-photo {
	width: 70px;
	height: 70px;
}

.rq-info {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.rq-name {
	font-size: 1.2rem;
}

.rq-name a {
	color: inherit;
	text-decoration: none;
}

.rq-name a:hover {
	color: var(--g500);
}

.rq-fields {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	grid-column: 2 / 4;
	gap: 12px;
}

.rq-fields .field label,
.rq-qty legend {
	padding: 0;
	font-size: .82rem;
	font-weight: 700;
}

.rq-qty {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.rq-qty > div {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 6px;
	margin-top: 6px;
}

.rq-row .field input,
.rq-row .field select {
	padding: 10px 12px;
}

.rq-remove {
	display: inline-flex;
	grid-row: 1;
	grid-column: 3;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 6px 12px;
	border: 0;
	border-radius: var(--r-pill);
	background: none;
	color: var(--muted);
	font: 700 .82rem var(--head);
	cursor: pointer;
}

.rq-remove:hover {
	background: var(--bg);
	color: var(--poppy);
}

.rq-remove svg {
	width: 16px;
	height: 16px;
}

.rq-empty {
	display: grid;
	justify-items: start;
	gap: 14px;
	padding: 26px;
	border: 1.5px dashed #CBD6C6;
	border-radius: var(--r);
	color: var(--muted);
}

.rq-terms {
	padding: 14px 18px;
	border-radius: var(--r-sm);
	background: var(--cream);
	color: var(--g900);
	font-size: .95rem;
	font-weight: 600;
}

.request-form {
	display: grid;
	gap: 16px;
	min-width: 0;
}

.request-form-title {
	font-size: 1.5rem;
}

@media (max-width: 960px) {
	.request {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.rq-row {
		grid-template-columns: 60px minmax(0, 1fr);
		padding: 14px;
	}

	.rq-pack {
		width: 60px;
		height: 60px;
	}

	.rq-pack .pack-photo {
		width: 56px;
		height: 56px;
	}

	.rq-fields {
		grid-template-columns: 1fr;
		grid-column: 1 / -1;
	}

	.rq-remove {
		grid-row: auto;
		grid-column: 1 / -1;
		justify-self: start;
		padding-left: 0;
	}
}

/* ---------- Form extras ---------- */
.tick {
	display: grid;
	grid-template-columns: 22px 1fr;
	align-items: start;
	gap: 10px;
	font-size: .92rem;
	cursor: pointer;
}

.tick input {
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: var(--g900);
}

.form-list {
	padding: 12px 16px;
	border-radius: var(--r-sm);
	background: var(--mint);
	color: var(--g900);
	font-weight: 600;
}

.form-list a {
	margin-left: 6px;
	font-family: var(--head);
	font-weight: 700;
}

/* ---------- Home: links in tiles ---------- */
.tile-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-top: auto;
	color: inherit;
	font-family: var(--head);
	font-size: .9rem;
	font-weight: 700;
	text-decoration-color: var(--sun);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.tile.dark .tile-link {
	color: var(--white);
}

/* ---------- Home: links to the pages (SPEC §4) ---------- */
.more-row {
	display: flex;
	margin-top: 22px;
}

.results .link {
	color: var(--white);
}

.results .link:hover {
	color: var(--sun);
}

.cside-head .link {
	justify-self: start;
}

/* ---------- Sections pages (templates/sections.php) ---------- */
.page-hero {
	display: grid;
	align-items: center;
	gap: clamp(24px, 4vw, 56px);
}

.page-hero.has-photo {
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.page-hero-copy {
	display: grid;
	gap: 16px;
	max-width: 760px;
}

.page-hero h1 {
	font-size: clamp(2.3rem, 4.6vw, 3.8rem);
}

.page-hero .lead {
	display: grid;
	gap: 12px;
}

.page-hero-media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--r-lg);
}

.markets {
	display: grid;
	gap: 8px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}

.markets-title {
	color: var(--muted);
	font: 700 .74rem var(--head);
	letter-spacing: .14em;
	text-transform: uppercase;
}

.markets-list {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 0;
	margin: 0;
	padding: 0;
	color: var(--g900);
	font-size: .95rem;
	font-weight: 600;
	list-style: none;
}

.markets-list li:not(:last-child)::after {
	content: "·";
	margin-inline: 10px;
	color: var(--g500);
}

/* Home: Common questions (template-parts/home-questions.php). */
.home-faq {
	display: grid;
	grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
	align-items: start;
	gap: 24px clamp(28px, 5vw, 72px);
}

.home-faq-head {
	display: grid;
	justify-items: start;
	gap: 12px;
}

/* Trial reports on request (template-parts/trial-reports.php): under the
   catalogue as a card, on a product page as a quiet row under the buttons. */
.trials {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px 18px;
	margin-top: 28px;
	padding: 22px 26px;
	border-radius: var(--r);
	background: var(--white);
}

.trials-ico {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--mint);
	color: var(--g500);
}

.trials-ico svg {
	width: 22px;
	height: 22px;
}

.trials-text {
	display: grid;
	gap: 2px;
}

.trials-text b {
	color: var(--g900);
	font-family: var(--head);
}

.trials-text span {
	color: var(--muted);
	font-size: .92rem;
}

.trials-inline {
	grid-template-columns: 40px minmax(0, 1fr);
	align-items: start;
	margin-top: 4px;
	padding: 16px 0 0;
	border-top: 1px solid var(--line);
	border-radius: 0;
	background: none;
}

.trials-inline .link {
	grid-column: 2;
	justify-self: start;
	padding-block: 4px 2px;
}

@media (max-width: 860px) {
	.home-faq {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.trials {
		grid-template-columns: 40px minmax(0, 1fr);
	}

	.trials > .btn {
		grid-column: 1 / -1;
		justify-self: start;
	}
}

/* Narrow reading column (Page texts → Narrow reading column, the FAQ page): the page
   heading, the questions and the call to action share one centred width. */
.page-narrow {
	--container: 1000px;
}

section.sec,
div.sec {
	padding-block: clamp(14px, 2.4vw, 28px);
}

.sec-card {
	padding: clamp(24px, 4vw, 48px);
	border-radius: var(--r);
	background: var(--white);
}

.sec-text {
	display: grid;
	grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
	align-items: start;
	gap: 18px clamp(24px, 4vw, 56px);
}

.sec-text.has-photo {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.sec-text.has-photo .sec-text-head,
.sec-text.has-photo .sec-text-body {
	grid-column: 1;
}

.sec-text-head {
	display: grid;
	gap: 12px;
}

.sec-text-head h2,
.sec .head h2,
.cside-head h2,
.cta-band h2,
.faq-group > h2 {
	font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

.sec-text-body {
	display: grid;
	justify-items: start;
	gap: 18px;
	min-width: 0;
}

.sec-text-body .prose {
	color: var(--ink);
}

.sec-photo {
	grid-column: 2;
	grid-row: 1 / span 2;
}

.sec-photo img {
	width: 100%;
	height: 100%;
	min-height: 260px;
	object-fit: cover;
	border-radius: var(--r-lg);
}

.ticks {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ticks li {
	display: grid;
	grid-template-columns: 24px 1fr;
	gap: 12px;
}

.ticks svg {
	width: 22px;
	height: 22px;
	margin-top: 2px;
	color: var(--g500);
}

.ticks b {
	display: block;
	color: var(--g900);
	font-family: var(--head);
}

.ticks span {
	color: var(--muted);
}

/* Card grid without orphans: --cols and each --span come from alenmak_grid_layout()
   (5 cards → 3 + 2, 7 → 4 + 3); tablet 2 columns, phone 1 (DESIGN.md). */
.cgrid {
	display: grid;
	grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ccard {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 28px;
	border-radius: var(--r);
	background: var(--white);
}

.ccard p {
	color: var(--muted);
}

.cfig {
	color: var(--g500);
	font-family: var(--head);
	font-size: 1.9rem;
	font-weight: 800;
	line-height: 1.1;
}

.steps .cfig {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--mint);
	color: var(--g900);
	font-size: 1rem;
}

.cta-band {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 40px;
	padding: clamp(28px, 5vw, 56px);
	border-radius: var(--r-lg);
	background: var(--g900);
	color: #C9DCD1;
}

.cta-copy {
	display: grid;
	gap: 12px;
	max-width: 640px;
}

.cta-band h2 {
	color: var(--white);
}

.cta-band .eyebrow {
	color: var(--sun);
}

.sec .contact {
	padding-block: clamp(14px, 2vw, 24px);
}

.sec-facts {
	display: grid;
	gap: 22px;
}

.sec-facts .facts {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

.sec-facts .fact {
	background: var(--bg);
}

.plinks {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.plinks a {
	display: grid;
	grid-template-columns: 72px 1fr;
	align-items: center;
	gap: 16px;
	min-height: 96px;
	padding: 12px 18px 12px 12px;
	border-radius: var(--r);
	background: var(--white);
	text-decoration: none;
	transition: transform .2s, box-shadow .2s;
}

.plinks a:hover {
	box-shadow: var(--shadow);
	transform: translateY(-2px);
}

.plink-pack {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	overflow: hidden;
	border-radius: 16px;
	background: var(--tint, var(--mint));
}

.plink-pack svg,
.plink-pack img {
	width: 60px;
	height: 60px;
	object-fit: contain;
}

.plink-text {
	display: grid;
	gap: 2px;
}

.plink-text b {
	color: var(--g900);
	font-family: var(--head);
	font-size: 1.05rem;
}

.faq {
	display: grid;
	gap: clamp(28px, 4vw, 44px);
}

.faq-group {
	display: grid;
	gap: 16px;
}

.faq-list {
	display: grid;
	gap: 10px;
}

.faq-item {
	border-radius: var(--r);
	background: var(--white);
}

.faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 56px;
	padding: 18px 24px;
	cursor: pointer;
	list-style: none;
}

.faq-item summary::-webkit-details-marker {
	display: none;
}

.faq-item summary::after {
	content: "+";
	flex: none;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--mint);
	color: var(--g900);
	font: 700 1.2rem/1 var(--head);
}

.faq-item[open] summary::after {
	content: "−";
}

.faq-item summary h3 {
	font-size: 1.05rem;
}

.faq-answer {
	display: grid;
	gap: 10px;
	padding: 0 24px 22px;
	color: var(--muted);
}

@media (max-width: 900px) {
	.page-hero.has-photo,
	.sec-text,
	.sec-text.has-photo {
		grid-template-columns: 1fr;
	}

	.page-hero-media img {
		aspect-ratio: 16 / 7;
	}

	.sec-photo {
		grid-column: auto;
		grid-row: auto;
	}

	.sec-photo img {
		min-height: 0;
		aspect-ratio: 16 / 10;
	}
}

@media (max-width: 560px) {
	.ccard {
		padding: 22px;
	}

	.faq-item summary {
		padding: 16px 18px;
	}

	.faq-answer {
		padding: 0 18px 18px;
	}
}

@media (min-width: 1001px) {
	.cgrid > .ccard {
		grid-column: span var(--span, 1);
	}
}

@media (min-width: 601px) and (max-width: 1000px) {
	.cgrid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* An odd last card takes the whole row, no orphan on tablets either. */
	.cgrid > .ccard:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.cgrid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Legal pages (templates/legal.php) and page not found (404.php) ---------- */
.legal,
.not-found {
	display: grid;
	gap: clamp(24px, 4vw, 40px);
}

.legal h1,
.not-found h1 {
	font-size: clamp(2.1rem, 4.2vw, 3.2rem);
}

.legal-text {
	display: grid;
	gap: 14px;
	min-width: 0;
	overflow-wrap: anywhere;
}

.legal-text > * {
	max-width: 75ch;
	margin: 0;
}

.legal-text h2 {
	margin-top: 22px;
	font-size: clamp(1.3rem, 2.4vw, 1.6rem);
}

.legal-text h2:first-child {
	margin-top: 0;
}

.legal-text h3 {
	margin-top: 8px;
}

.legal-text ul {
	display: grid;
	gap: 8px;
	padding-left: 1.2em;
}

.legal-text a {
	color: var(--g900);
	font-weight: 700;
}

.legal-details {
	display: grid;
	gap: 0;
	max-width: none;
	margin: 0;
	border-top: 1px solid var(--line);
}

.legal-details > div {
	display: grid;
	grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
	gap: 4px 24px;
	padding-block: 12px;
	border-bottom: 1px solid var(--line);
}

.legal-details dt {
	color: var(--muted);
	font-weight: 700;
}

.legal-details dd {
	margin: 0;
}

@media (max-width: 600px) {
	.legal-details > div {
		grid-template-columns: 1fr;
	}
}

.nf-links {
	display: grid;
	gap: 24px;
}

.nf-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nf-list a {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 10px 16px;
	border-radius: var(--r-sm);
	background: var(--bg);
	color: var(--g900);
	font-weight: 700;
	text-decoration: none;
}

.nf-list a:hover {
	background: var(--mint);
}

/* ---------- Other templates (index.php) ---------- */
.site-main-plain {
	display: grid;
	gap: 16px;
	padding-block: clamp(60px, 8vw, 104px);
}

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

	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}
