/*
 * base.css — loaded on every page.
 * Tokens, fonts, reset, typography, buttons, header/footer, shared components.
 * All colors ONLY via custom properties (see reference.md §4).
 */

/* ---------- 1. Self-hosted fonts (latin + latin-ext, woff2) ---------- */

@font-face {
	font-family: 'Fraunces';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/fraunces-600-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Fraunces';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/fraunces-600-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Fraunces';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/fraunces-700-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Fraunces';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/fraunces-700-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Source Sans 3';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/source-sans-3-400-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Source Sans 3';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/source-sans-3-400-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Source Sans 3';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/source-sans-3-600-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Source Sans 3';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/source-sans-3-600-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'IBM Plex Mono';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'IBM Plex Mono';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'IBM Plex Mono';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('../fonts/ibm-plex-mono-500-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'IBM Plex Mono';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('../fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 2. Design tokens ---------- */

:root {
	/* Brand */
	--navy: #14264C;
	--accent: #2ADDA1;
	--ink: #202020;
	--white: #FFFFFF;

	/* Derived neutrals (documented in reference.md §4) */
	--gray-bg: #F3F6FA;
	--border: #D9E0EA;
	--muted: #4E5A6E;
	--accent-dark: #0C7A55; /* links / accent text ON WHITE (AA 5.3:1) */
	--navy-soft: #1D3563;

	/* Typography */
	--font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
	--font-body: 'Source Sans 3', system-ui, 'Segoe UI', Arial, sans-serif;
	--font-mono: 'IBM Plex Mono', Consolas, monospace;
	--fs-h1: clamp(2.25rem, 1.35rem + 3.4vw, 3.625rem);
	--fs-h2: clamp(1.75rem, 1.3rem + 1.9vw, 2.625rem);
	--fs-h3: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
	--fs-lead: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
	--fs-body: 1.0625rem;
	--fs-small: 0.875rem;
	--fs-mono: 0.8125rem;

	/* Layout */
	--container: 80rem;          /* ~1280px */
	--gutter: clamp(1.25rem, 4vw, 2rem);
	--section-gap: clamp(4.5rem, 3.5rem + 4.5vw, 7.5rem); /* ~120px desktop */
	--header-h: 5rem;
	--header-h-compact: 3.75rem;
	--radius: 0.625rem;
	--shadow: 0 10px 30px -12px rgba(20, 38, 76, 0.18);

	/* Motion */
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--dur: 0.45s;
}

/* ---------- 3. Reset / base ---------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: 1.7;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}

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

/* ---------- 4. Typography ---------- */

h1,
h2,
h3,
h4 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.15;
	color: var(--navy);
	margin: 0 0 0.6em;
	text-wrap: balance;
}

h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p {
	margin: 0 0 1.2em;
}

.lead {
	font-size: var(--fs-lead);
	color: var(--muted);
}

.mono {
	font-family: var(--font-mono);
	font-size: var(--fs-mono);
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

a {
	color: var(--accent-dark);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

:focus-visible {
	outline: 2px solid var(--accent-dark);
	outline-offset: 2px;
	border-radius: 2px;
}

.section--navy :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible,
.mobile-bar :focus-visible {
	outline-color: var(--accent);
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 200;
	background: var(--navy);
	color: var(--white);
	padding: 0.75rem 1.25rem;
	border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
	left: 0;
}

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

/* ---------- 5. Layout primitives ---------- */

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

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

.section--gray {
	background: var(--gray-bg);
}

.section--navy {
	background: var(--navy);
}

.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy p {
	color: var(--white);
}

.section--navy .lead {
	color: var(--border);
}

.section--navy a {
	color: var(--accent);
}

.section-head {
	max-width: 44rem;
	margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-head .mono {
	color: var(--accent-dark);
	display: block;
	margin-bottom: 0.75rem;
}

.section--navy .section-head .mono {
	color: var(--accent);
}

/* ---------- 6. Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	border-radius: var(--radius);
	padding: 0.9rem 1.6rem;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

/* Text on accent is ALWAYS navy (contrast rule). */
.btn--primary {
	background: var(--accent);
	color: var(--navy);
	border-color: var(--accent);
}

.btn--outline {
	background: transparent;
	color: var(--navy);
	border-color: var(--navy);
}

/* Outline variant for navy backgrounds (header, navy bands, mobile bar). */
.btn--outline-light {
	background: transparent;
	color: var(--white);
	border-color: var(--white);
}

.btn--small {
	padding: 0.55rem 1.1rem;
	font-size: 0.9375rem;
}

/* The contextual link color `.section--navy a` (0,1,1) outranks the button
 * variants (0,1,0) and painted button text accent-on-accent (invisible) in
 * navy bands. Buttons ALWAYS keep their own text colors: */
.section--navy .btn--primary {
	color: var(--navy);
}

.section--navy .btn--outline-light {
	color: var(--white);
}

@media (hover: hover) and (pointer: fine) {
	.btn--primary:hover {
		background: var(--white);
		border-color: var(--accent);
		color: var(--navy);
	}

	.section--navy .btn--primary:hover,
	.site-header .btn--primary:hover,
	.mobile-bar .btn--primary:hover {
		background: var(--white);
		border-color: var(--white);
		/* Explicit: `.section--navy a:hover` (0,2,1) would otherwise turn
		 * the text white-on-white. */
		color: var(--navy);
	}

	.section--navy .btn--outline-light:hover {
		color: var(--navy);
	}

	.btn--outline:hover {
		background: var(--navy);
		color: var(--white);
	}

	.btn--outline-light:hover {
		background: var(--white);
		color: var(--navy);
	}

	a:hover {
		color: var(--navy);
	}

	.section--navy a:hover,
	.site-footer a:hover {
		color: var(--white);
	}
}

/* ---------- 7. Header ---------- */

/* ONE background in every state (top, sticky, compact, mobile): var(--navy).
 * Separation from content comes from the hairline divider + soft shadow
 * when stuck — never from a background change. */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--navy);
	border-bottom: 1px solid var(--navy-soft);
}

.site-header.is-scrolled {
	box-shadow: var(--shadow);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: clamp(1.5rem, 3vw, 2.5rem);
	min-height: var(--header-h);
	transition: min-height 0.25s ease;
}

.site-header.is-scrolled .site-header__inner {
	min-height: var(--header-h-compact);
}

/* Brand container: custom logo, bundled logo, or text wordmark fallback.
 * Fallback chain: Custom Logo (admin) → bundled logo-urologul-ro-negru.webp → wordmark.
 * The bundled black logo uses .site-header__logo--bundled (CSS filter → white on navy). */
.site-header__brand {
	display: flex;
	align-items: center;
	min-width: 0;
}

.site-header__brand .custom-logo-link,
.site-header__logo-link {
	display: inline-flex;
	align-items: center;
}

.site-header__brand .custom-logo,
.site-header__logo {
	display: block;
	max-height: 2.75rem;
	width: auto;
	height: auto;
	transition: max-height 0.25s ease;
}

.site-header__logo-svg {
	display: block;
	height: 2.75rem;
	width: auto;
	color: var(--white);
	transition: height 0.25s ease, color 0.2s ease;
}

.site-header__logo-svg svg {
	display: block;
	height: 100%;
	width: auto;
}

.site-header.is-scrolled .site-header__logo {
	max-height: 2.125rem;
}

.site-header.is-scrolled .site-header__logo-svg {
	height: 2.125rem;
}

@media (hover: hover) and (pointer: fine) {
	.site-header__logo-link:hover .site-header__logo-svg,
	.site-header__logo-link:focus-visible .site-header__logo-svg {
		color: var(--accent);
	}
}

/* Invert ONLY the bundled black WebP asset — never admin-uploaded custom logos. */
.site-header__logo--bundled {
	filter: brightness(0) invert(1);
}

.site-header__wordmark {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.375rem;
	letter-spacing: 0.01em;
	color: var(--white);
	text-decoration: none;
	line-height: 1.2;
	white-space: nowrap;
}

.site-nav {
	margin-left: auto;
}

.site-nav__list {
	display: flex;
	align-items: center;
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav__list a {
	color: var(--border);
	text-decoration: none;
	font-size: 0.9375rem;
	font-weight: 400;
	letter-spacing: 0.02em;
	padding: 0.35rem 0;
	border-bottom: 2px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a,
.site-nav__list .current-page-ancestor > a,
.site-nav__list a[aria-current='page'] {
	color: var(--accent);
	border-bottom-color: var(--accent);
}

@media (hover: hover) and (pointer: fine) {
	.site-nav__list a:hover {
		color: var(--accent);
	}
}

/* Header CTA: pill shape sets it apart as the terminal element. */
.site-header__cta {
	border-radius: 999px;
	padding: 0.6rem 1.5rem;
	letter-spacing: 0.01em;
}

.nav-toggle {
	display: none;
	margin-left: auto;
	background: transparent;
	border: 2px solid var(--white);
	border-radius: var(--radius);
	padding: 0.5rem 0.65rem;
	cursor: pointer;
}

.nav-toggle__bar {
	display: block;
	width: 1.25rem;
	height: 2px;
	background: var(--white);
	margin: 4px 0;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(2) {
	opacity: 0;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

/* ---------- 8. Mobile sticky bottom bar ---------- */

.mobile-bar {
	display: none;
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 90;
	background: var(--navy);
	padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
	gap: 0.75rem;
	box-shadow: 0 -6px 20px -8px rgba(20, 38, 76, 0.5);
}

.mobile-bar .btn {
	flex: 1;
}

/* ---------- 9. Footer ---------- */

.site-footer {
	background: var(--navy);
	color: var(--border);
	padding-block: clamp(3rem, 6vw, 5rem) 0;
	font-size: 0.9375rem;
}

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

.site-footer__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1.4fr;
	gap: 2.5rem;
	padding-bottom: 3rem;
}

.site-footer__brand,
.site-footer__logo-link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.site-footer__brand {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.35rem;
	color: var(--white);
}

.site-footer__logo {
	display: block;
	max-height: 2rem;
	width: auto;
	height: auto;
}

.site-footer__logo-svg {
	display: block;
	height: 2rem;
	width: auto;
	color: var(--white);
	transition: color 0.2s ease;
}

.site-footer__logo-svg svg {
	display: block;
	height: 100%;
	width: auto;
}

@media (hover: hover) and (pointer: fine) {
	.site-footer__logo-link:hover .site-footer__logo-svg,
	.site-footer__logo-link:focus-visible .site-footer__logo-svg {
		color: var(--accent);
	}
}

/* Bundled black WebP logo inverted on the navy footer; custom logos are not used here. */
.site-footer__logo--bundled {
	filter: brightness(0) invert(1);
}

.site-footer h2 {
	color: var(--white);
	font-family: var(--font-body);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 1rem;
}

.site-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}

.site-footer__contact li {
	display: grid;
	gap: 0.1rem;
	margin-bottom: 0.6rem;
}

.site-footer__contact .mono {
	color: var(--accent);
	font-size: 0.6875rem;
}

.site-footer__legal {
	border-top: 1px solid var(--navy-soft);
	padding-block: 1.25rem calc(1.25rem + 4.5rem); /* room above mobile bar */
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 2rem;
	align-items: center;
	justify-content: space-between;
}

.site-footer__legal ul {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.site-footer__legal {
		padding-bottom: 1.25rem;
	}
}

/* ---------- 10. Breadcrumbs ---------- */

.breadcrumbs {
	font-size: var(--fs-small);
	margin-bottom: 1rem;
}

.breadcrumbs__list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0;
	padding: 0;
}

.breadcrumbs__item + .breadcrumbs__item::before {
	content: '/';
	margin-right: 0.35rem;
	color: var(--muted);
}

.breadcrumbs a {
	color: var(--muted);
}

.breadcrumbs [aria-current='page'] {
	color: var(--ink);
}

.section--navy .breadcrumbs a,
.page-hero .breadcrumbs a {
	color: var(--border);
}

.section--navy .breadcrumbs [aria-current='page'],
.page-hero .breadcrumbs [aria-current='page'] {
	color: var(--white);
}

.section--navy .breadcrumbs .breadcrumbs__item + .breadcrumbs__item::before,
.page-hero .breadcrumbs .breadcrumbs__item + .breadcrumbs__item::before {
	color: var(--border);
}

/* ---------- 11. Subpage hero band ---------- */

.page-hero {
	background: var(--navy);
	padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.page-hero h1,
.page-hero p {
	color: var(--white);
}

.page-hero .lead {
	color: var(--border);
	max-width: 46rem;
	margin-bottom: 0;
}

.page-hero .breadcrumbs {
	margin-bottom: 1.5rem; /* keeps the title from crowding the breadcrumbs */
}

/* Post date shown under the title on single posts. */
.page-hero .page-hero__date {
	color: var(--accent);
	margin: 1rem 0 0;
}

/* ---------- 12. FAQ (details/summary — works without JS) ---------- */

.faq {
	display: grid;
	gap: 0.75rem;
	max-width: 50rem;
}

.faq__item {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--white);
}

.faq__question {
	cursor: pointer;
	list-style: none;
	padding: 1.1rem 3rem 1.1rem 1.25rem;
	font-weight: 600;
	color: var(--navy);
	position: relative;
}

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

.faq__question::after {
	content: '+';
	position: absolute;
	right: 1.25rem;
	top: 50%;
	transform: translateY(-50%);
	font-family: var(--font-mono);
	font-size: 1.25rem;
	color: var(--accent-dark);
}

.faq__item[open] .faq__question::after {
	content: '\2212'; /* minus sign */
}

.faq__answer {
	padding: 0 1.25rem 1.1rem;
	color: var(--muted);
}

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

@media (hover: hover) and (pointer: fine) {
	.faq__question:hover {
		color: var(--accent-dark);
	}
}

/* ---------- 12b. Small shared components ---------- */

/* Secondary "Află mai multe" style link with arrow */
.arrow-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 600;
	color: var(--accent-dark);
	text-decoration: none;
}

.arrow-link::after {
	content: '\2192'; /* rightwards arrow */
	transition: transform 0.2s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
	.arrow-link:hover {
		color: var(--navy);
	}

	.arrow-link:hover::after {
		transform: translateX(4px);
	}
}

/* Neutral image placeholder used until real photos arrive */
.media-placeholder {
	background: var(--gray-bg);
	border: 1px dashed var(--border);
	border-radius: var(--radius);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: var(--muted);
	aspect-ratio: 4 / 3;
	width: 100%;
}

/* Checkmark list */
.check-list {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
	display: grid;
	gap: 0.6rem;
}

.check-list li {
	position: relative;
	padding-left: 1.75rem;
}

.check-list li::before {
	content: '\2713'; /* check mark */
	position: absolute;
	left: 0;
	top: 0;
	font-family: var(--font-mono);
	font-weight: 500;
	color: var(--accent-dark);
}

.section--navy .check-list li::before {
	color: var(--accent);
}

/* Zig-zag two-column section (alternating via .zigzag--flip) */
.zigzag {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
}

.zigzag--flip {
	grid-template-columns: 7fr 5fr;
}

.zigzag--flip .zigzag__media {
	order: 2;
}

@media (max-width: 767px) {
	.zigzag,
	.zigzag--flip {
		grid-template-columns: 1fr;
	}

	.zigzag--flip .zigzag__media {
		order: 0;
	}
}

/* ---------- 13. Editor content container ---------- */

.entry-content {
	max-width: 46rem;
}

.entry-content h2,
.entry-content h3 {
	margin-top: 1.6em;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.4rem;
	margin: 0 0 1.2em;
}

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

.entry-content blockquote {
	margin: 1.5em 0;
	padding: 0.5em 1.25em;
	border-left: 3px solid var(--accent);
	color: var(--muted);
	font-style: italic;
}

.entry-content table {
	border-collapse: collapse;
	width: 100%;
	margin-bottom: 1.5em;
}

.entry-content th,
.entry-content td {
	border: 1px solid var(--border);
	padding: 0.6em 0.9em;
	text-align: left;
}

.entry-content th {
	background: var(--gray-bg);
	color: var(--navy);
}

/* ---------- 14. Forms (shared field styles) ---------- */

.form-field {
	display: grid;
	gap: 0.35rem;
	margin-bottom: 1.1rem;
}

.form-field label {
	font-weight: 600;
	color: var(--navy);
	font-size: 0.9375rem;
}

.form-field input,
.form-field textarea,
.form-field select {
	font: inherit;
	color: var(--ink);
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 0.7rem 0.9rem;
	width: 100%;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
	outline: 2px solid var(--accent-dark);
	outline-offset: 1px;
}

.form-field .field-error {
	color: #B4231F; /* functional error red — status color, not decoration */
	font-size: var(--fs-small);
	margin: 0;
}

.form-field.has-error input,
.form-field.has-error textarea {
	border-color: #B4231F;
}

.form-notice {
	border-radius: var(--radius);
	padding: 1rem 1.25rem;
	margin-bottom: 1.25rem;
	font-weight: 600;
}

.form-notice--success {
	background: var(--gray-bg);
	border: 1px solid var(--accent);
	color: var(--navy);
}

.form-notice--error {
	background: #FBEBEA;
	border: 1px solid #B4231F;
	color: #7A1815;
}

/* ---------- 15. Cookie consent banner ---------- */

.consent {
	position: fixed;
	z-index: 110;
	inset-inline: var(--gutter);
	bottom: calc(1rem + env(safe-area-inset-bottom));
	max-width: 30rem;
	margin-inline: auto;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 1.25rem;
}

.consent[hidden] {
	display: none;
}

.consent p {
	font-size: var(--fs-small);
	color: var(--muted);
	margin-bottom: 0.9rem;
}

.consent__actions {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

@media (min-width: 768px) {
	.consent {
		margin-inline: auto 0;
	}
}

/* ---------- 16. Scroll-reveal (progressive enhancement only) ----------
 * .reveal alone does nothing: content stays fully visible without JS.
 * JS adds .reveal--pending (hide) then .reveal--visible (animate in).
 */

.reveal--pending {
	opacity: 0;
	transform: translateY(18px);
}

.reveal--visible {
	opacity: 1;
	transform: none;
	transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

/* ---------- 17. Reduced motion: OFF switch, not slowdown ---------- */

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

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

	.reveal--pending {
		opacity: 1;
		transform: none;
	}
}

/* ---------- 18. Responsive ---------- */

@media (max-width: 1024px) {
	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 767px) {
	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--navy);
		border-top: 1px solid var(--navy-soft);
		padding: 1rem var(--gutter) 1.5rem;
		box-shadow: var(--shadow);
	}

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

	.site-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.site-nav__list li {
		border-bottom: 1px solid var(--navy-soft);
	}

	.site-nav__list a {
		display: block;
		padding: 0.85rem 0;
		font-size: 1.0625rem;
	}

	.nav-toggle {
		display: block;
	}

	.site-header__cta {
		display: none; /* replaced by the mobile bottom bar */
	}

	.mobile-bar {
		display: flex;
	}

	body {
		padding-bottom: 4.5rem; /* keep content clear of the fixed bar */
	}

	.consent {
		bottom: calc(5rem + env(safe-area-inset-bottom));
	}

	.site-footer__grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
}

@media (max-width: 480px) {
	:root {
		--gutter: 1rem;
	}

	.btn {
		width: 100%;
	}

	.btn--small,
	.mobile-bar .btn,
	.consent .btn {
		width: auto;
	}
}
