/* ==========================================================================
   QuoteLoupe base styles. Loaded on every page.
   Tokens, fonts, reset, typography, header, footer, buttons and the
   section styles shared by more than one page. Page layouts live in
   assets/css/pages/{page}.css.
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
	font-family: "Plus Jakarta Sans";
	src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
/* Metric-matched fallbacks keep layout shift near zero while fonts load. */
@font-face {
	font-family: "Inter Fallback";
	src: local("Arial");
	size-adjust: 107.6%;
	ascent-override: 90%;
	descent-override: 22.4%;
	line-gap-override: 0%;
}
@font-face {
	font-family: "Jakarta Fallback";
	src: local("Arial");
	size-adjust: 104%;
	ascent-override: 92%;
	descent-override: 21%;
	line-gap-override: 0%;
}

/* ---------- Design tokens ---------- */
:root {
	--bg: #ffffff;
	--fg: #21232e;
	--muted: #5b6070;
	--card: #f6f7fb;
	--line: #dfe2ea;
	--accent: #105bff;
	--accent-fg: #ffffff;
	--pop: #fe8500;
	--pop-text: #b85c00;
	--high: #b42318;
	--med: #b45309;
	--info: #175cd3;
	--ok: #067647;
	--ink: #21232e;

	--surface: #ffffff;           /* floating cards */
	--accent-soft: #eaf0ff;       /* tinted panels */
	--pop-soft: #fff3e6;
	--brand: #2b1190;             /* logo indigo */
	--brand-word: #2b1190;

	--font-head: "Plus Jakarta Sans", "Jakarta Fallback", Arial, sans-serif;
	--font-body: "Inter", "Inter Fallback", Arial, sans-serif;

	--container: 1120px;
	--reading: 720px;
	--policy: 680px;
	--gutter: 16px;
	--r-input: 8px;
	--r-card: 12px;
	--r-btn: 10px;
	--r-pill: 999px;
	--shadow-float: 0 12px 32px rgba(0, 0, 0, .25);
	--section-y: clamp(48px, 7vw, 88px);
	--header-h: 68px;

	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #21232e;
		--fg: #f6f7fb;
		--muted: #a3a8b8;
		--card: #2a2d3a;
		--line: #3d4152;
		--accent: #6c9bff;
		--accent-fg: #21232e;
		--pop-text: #fe8500;
		--high: #ff8f84;
		--med: #f5b25c;
		--info: #8ab4ff;
		--ok: #5fd39a;
		--surface: #2a2d3a;
		--accent-soft: #263150;
		--pop-soft: #3a2e24;
		--brand: #b7abff;
		--brand-word: #f6f7fb;
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--bg: #21232e;
	--fg: #f6f7fb;
	--muted: #a3a8b8;
	--card: #2a2d3a;
	--line: #3d4152;
	--accent: #6c9bff;
	--accent-fg: #21232e;
	--pop-text: #fe8500;
	--high: #ff8f84;
	--med: #f5b25c;
	--info: #8ab4ff;
	--ok: #5fd39a;
	--surface: #2a2d3a;
	--accent-soft: #263150;
	--pop-soft: #3a2e24;
	--brand: #b7abff;
	--brand-word: #f6f7fb;
	color-scheme: dark;
}

@media (min-width: 768px) {
	:root { --gutter: 24px; }
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

img { border-radius: inherit; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3, h4 {
	font-family: var(--font-head);
	line-height: 1.2;
	margin: 0 0 .5em;
	letter-spacing: -.01em;
	text-wrap: balance;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }

.small { font-size: .875rem; }
.muted { color: var(--muted); }
.tabular { font-variant-numeric: tabular-nums; }

.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: 16px; top: -100px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--ink);
	color: #fff;
	border-radius: var(--r-btn);
	font-weight: 700;
	text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container,
.reading,
.policy-col {
	width: 100%;
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.container { max-width: calc(var(--container) + 2 * var(--gutter)); }
.reading { max-width: calc(var(--reading) + 2 * var(--gutter)); }
.policy-col { max-width: calc(var(--policy) + 2 * var(--gutter)); }

.site-main { display: block; min-height: 60vh; }
.site-main:focus { outline: none; }

.ql-section { padding-block: var(--section-y); }
.ql-section + .ql-section { padding-top: 0; }

/* ---------- Icons ---------- */
.ql-icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: middle; }

/* ---------- Eyebrow, section heads ---------- */
.eyebrow {
	margin: 0 0 10px;
	font-size: .85rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--pop-text);
}
.eyebrow--on-ink { color: var(--pop); }

.section-head { max-width: 720px; margin-bottom: clamp(24px, 4vw, 40px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split {
	max-width: none;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
}
.section-head--split > div { max-width: 720px; }
.section-title { margin-bottom: .35em; }
.section-intro { color: var(--muted); font-size: 1.075rem; margin: 0; }
.section-foot { margin: 32px 0 0; }
.section-foot--center { text-align: center; }

/* ---------- Buttons and links ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 20px;
	border: 2px solid transparent;
	border-radius: var(--r-btn);
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: .925rem; }
.btn-lg { min-height: 52px; padding: 12px 26px; font-size: 1.05rem; }

.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--fg)); }

/* Orange buttons always carry charcoal text, never white. */
.btn-pop { background: var(--pop); color: #21232e; }
.btn-pop:hover { background: #ff9a2e; }

.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--fg); }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }

/* Inline, so a long label wraps naturally and the arrow stays right after the last word. */
.link-arrow {
	display: inline-block;
	padding-block: 10px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
}
.link-arrow .ql-icon { width: 1.1em; height: 1.1em; margin-left: 6px; vertical-align: -0.2em; transition: transform .15s ease; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover .ql-icon { transform: translateX(3px); }
.link-arrow--on-ink { color: #fff; }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--bg);
	border-top: 4px solid var(--pop);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: var(--header-h);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--brand-word);
	text-decoration: none;
	font-family: var(--font-head);
	font-weight: 800;
	font-size: 1.35rem;
	letter-spacing: -.02em;
	line-height: 1;
	flex: none;
}
.brand-mark { width: 38px; height: 38px; }
.brand-quote { color: var(--brand-word); }
.brand-loupe { color: var(--pop); }
.brand:hover { text-decoration: none; }

/* Logo mark colours, set by CSS so the one inline SVG works everywhere. */
.lm-doc { stroke: var(--brand); }
.lm-lines { stroke: color-mix(in srgb, var(--brand) 55%, var(--bg)); }
.lm-orange { fill: var(--pop); }
.lm-check { stroke: var(--pop); }
.lm-lens { fill: var(--bg); stroke: var(--brand); }
.lm-handle { stroke: var(--brand); }

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--r-btn);
	background: transparent;
	color: var(--fg);
	cursor: pointer;
}
.nav-toggle .ql-icon { width: 22px; height: 22px; }
.nav-toggle__close { display: none; }
[data-nav].is-open .nav-toggle__open { display: none; }
[data-nav].is-open .nav-toggle__close { display: block; }

.site-nav { display: flex; align-items: center; gap: 24px; }
.primary-menu { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.primary-menu a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 12px;
	border-radius: 8px;
	color: var(--fg);
	font-weight: 600;
	font-size: .95rem;
	text-decoration: none;
}
.primary-menu a:hover { background: var(--card); }
.primary-menu a[aria-current="page"],
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a { color: var(--accent); box-shadow: inset 0 -2px 0 var(--pop); border-radius: 0; }

.site-header__actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--r-btn);
	background: transparent;
	color: var(--fg);
	cursor: pointer;
}
.theme-toggle:hover { border-color: var(--fg); }
.theme-toggle .ql-icon { width: 20px; height: 20px; }
.theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: block; }
:root[data-theme="dark"] .theme-toggle__moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-toggle__sun { display: block; }
	:root:not([data-theme="light"]) .theme-toggle__moon { display: none; }
}

/* Mobile menu. Hidden only when JavaScript runs, so the links stay reachable without it. */
@media (max-width: 1023.98px) {
	.js .nav-toggle { display: inline-flex; }
	.js .site-nav {
		display: none;
		position: absolute;
		left: 0; right: 0; top: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 12px var(--gutter) 20px;
		background: var(--bg);
		border-bottom: 1px solid var(--line);
		box-shadow: 0 16px 24px rgba(0, 0, 0, .08);
		max-height: calc(100vh - var(--header-h));
		overflow-y: auto;
	}
	.js [data-nav].is-open .site-nav { display: flex; }
	.js .primary-menu { flex-direction: column; }
	.js .primary-menu a { width: 100%; padding: 0 8px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
	.js .primary-menu a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--pop); padding-left: 14px; }
	.js .site-header__actions { justify-content: space-between; }
	.js .site-header__actions .btn { flex: 1; }
	.site-header__inner { position: static; }
	html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: 10px; }
	html:not(.js) .site-nav { flex-wrap: wrap; }
}

/* ---------- Page header and breadcrumbs ---------- */
.page-header { padding: clamp(28px, 5vw, 56px) 0 clamp(20px, 3vw, 32px); }
.page-title { margin: 0 0 .35em; }
.page-lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); max-width: 680px; margin: 0; }
.page-meta { margin-top: 14px; color: var(--muted); font-size: .9rem; }

.breadcrumbs { margin-bottom: 18px; font-size: .875rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { display: inline-flex; align-items: center; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 4px; color: var(--line); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--fg); max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Prose (editor content) ---------- */
.entry-content { font-size: 1.0625rem; }
.entry-content > * + * { margin-top: 1em; }
.entry-content > :first-child { margin-top: 0; }
.entry-content p { margin: 0; }
.entry-content p + p { margin-top: 1em; }
.entry-content h2 { margin: 2em 0 .5em; }
.entry-content h3 { margin: 1.6em 0 .4em; }
.entry-content h2 + *,
.entry-content h3 + * { margin-top: 0; }
.entry-content ul,
.entry-content ol { margin: 0; padding-left: 1.3em; }
.entry-content li + li { margin-top: .4em; }
.entry-content li::marker { color: var(--pop-text); font-weight: 700; }
.entry-content blockquote {
	margin: 1.5em 0;
	padding: 4px 0 4px 20px;
	border-left: 4px solid var(--pop);
	font-size: 1.1rem;
	color: var(--fg);
}
.entry-content strong { font-weight: 700; }
.entry-content img,
.entry-content figure { border-radius: var(--r-card); margin: 1.5em 0; }
.entry-content figcaption { margin-top: 8px; font-size: .875rem; color: var(--muted); text-align: center; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry-content th,
.entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content th { font-weight: 700; background: var(--card); }
.entry-content .note,
.entry-content .draft-note {
	padding: 14px 16px;
	border: 1px dashed var(--line);
	border-radius: var(--r-card);
	color: var(--muted);
	font-size: .95rem;
}
.entry-content .draft-note { border: 2px solid var(--pop); background: var(--pop-soft); color: var(--fg); }

/* ---------- Cards and grids ---------- */
.card-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	overflow: hidden;
	transition: border-color .15s ease;
}
.post-card:hover { border-color: var(--accent); }
.post-card__media { display: block; aspect-ratio: 16 / 9; background: var(--card); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.post-card__kicker {
	margin: 0 0 8px;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--pop-text);
}
.post-card__title { font-size: 1.15rem; margin: 0 0 8px; }
.post-card__title a { color: var(--fg); text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card__title a:hover { color: var(--accent); }
.post-card__title a:focus-visible { outline: none; }
.post-card:focus-within { outline: 3px solid var(--pop); outline-offset: 2px; }
.post-card__excerpt { color: var(--muted); margin: 0; font-size: .95rem; }
.post-card__meta { margin: auto 0 0; padding-top: 16px; font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }

.empty-state {
	max-width: 560px;
	margin: 16px auto 0;
	padding: 40px 24px;
	text-align: center;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--r-card);
}
.empty-state--left { text-align: left; margin-left: 0; }
.empty-state__img { width: 240px; margin: 0 auto 16px; }
.empty-state p { color: var(--muted); }

/* ---------- Pills, chips, tags ---------- */
.pill,
.chip {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 4px 14px;
	border-radius: var(--r-pill);
	font-size: .875rem;
	font-weight: 600;
	text-decoration: none;
}
.pill { background: var(--pop-soft); color: var(--pop-text); margin-bottom: 16px; }
.chip { border: 1px solid var(--line); color: var(--fg); min-height: 40px; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
:root[data-theme="dark"] .chip[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.chips ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }

.tag {
	display: inline-block;
	padding: 2px 8px;
	border-radius: var(--r-pill);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	border: 1px solid currentColor;
}
.tag--high { color: var(--high); }
.tag--medium { color: var(--med); }
.tag--info { color: var(--info); }

.flag-high { --flag: var(--high); }
.flag-medium { --flag: var(--med); }
.flag-info { --flag: var(--info); }

.band-ok { color: var(--ok); }
.band-med { color: var(--med); }
.band-high { color: var(--high); }
.bar { display: block; height: 8px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: inherit; }
.fill-ok { background: var(--ok); }
.fill-med { background: var(--med); }
.fill-high { background: var(--high); }

/* ---------- Pagination ---------- */
.pagination { margin-top: 40px; }
.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pagination a,
.pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: var(--r-btn);
	color: var(--fg);
	font-weight: 600;
	text-decoration: none;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination .dots { border: 0; }

/* ---------- Search form ---------- */
.search-form { display: flex; gap: 8px; margin: 0 0 24px; }
.search-form__input {
	flex: 1;
	min-width: 0;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid var(--line);
	border-radius: var(--r-input);
	background: var(--bg);
	color: var(--fg);
}
.search-form__input:focus { border-color: var(--accent); }
.search-form__btn .ql-icon { width: 18px; height: 18px; }
@media (max-width: 479.98px) { .search-form__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); } }

/* ---------- Checker embed head and placeholder ---------- */
.checker-embed__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 16px; }
.checker-embed__head .section-title { margin: 0; }
.privacy-line { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--ok); font-weight: 600; font-size: .925rem; }
.privacy-line .ql-icon { width: 20px; height: 20px; }
.checker-embed__full { margin: 16px 0 0; }

.checker-placeholder {
	display: grid;
	place-items: center;
	align-content: center;
	gap: 6px;
	min-height: 520px;
	padding: 32px;
	text-align: center;
	background: var(--card);
	border: 2px dashed var(--line);
	border-radius: var(--r-card);
}
.checker-placeholder--full { min-height: 760px; }
.checker-placeholder__mark { width: 56px; height: 56px; margin-bottom: 8px; }
.checker-placeholder__title { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }

/* ---------- Section: steps ---------- */
.steps__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 20px; }
.steps--numbered .steps__list { counter-reset: step; }
.steps--numbered .steps__item { position: relative; padding-left: 56px; min-height: 40px; }
.steps--numbered .steps__num {
	position: absolute; left: 0; top: 0;
	display: grid; place-items: center;
	width: 40px; height: 40px;
	border-radius: 50%;
	background: var(--accent-soft);
	color: var(--accent);
	font-family: var(--font-head);
	font-weight: 800;
}
.steps__title { margin: 0 0 4px; font-size: 1.1rem; }
.steps__text { margin: 0; color: var(--muted); }

.steps--cards .steps__list,
.steps--tips .steps__list { grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) {
	.steps--cards .steps__list { grid-template-columns: repeat(3, 1fr); }
	.steps--tips .steps__list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) { .steps--tips .steps__list { grid-template-columns: repeat(4, 1fr); } }
.steps--cards .steps__item,
.steps--tips .steps__item {
	position: relative;
	padding: 28px 24px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--r-card);
}
.steps--cards .steps__icon { width: 80px; height: 80px; margin-bottom: 16px; }
.steps--tips .steps__icon { width: 100%; max-width: 240px; aspect-ratio: 3 / 2; height: auto; margin-bottom: 16px; }
.steps--cards .steps__num,
.steps--tips .steps__num {
	position: absolute; top: 20px; right: 20px;
	font-family: var(--font-head);
	font-weight: 800;
	font-size: 2.25rem;
	line-height: 1;
	color: var(--line);
}

/* ---------- Section: figure ---------- */
.figure-section__grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1024px) { .figure-section__grid { grid-template-columns: 1.35fr 1fr; gap: 48px; } }
.figure-section__grid--solo { grid-template-columns: 1fr; }
.figure-section__figure { margin: 0; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); }
.figure-section__figure img { border-radius: 8px; width: 100%; }
.figure-section__figure figcaption { margin-top: 10px; font-size: .875rem; color: var(--muted); text-align: center; }
.numbered-list { margin: 0 0 24px; padding: 0; list-style: none; counter-reset: n; display: grid; gap: 2px; }
.numbered-list li {
	counter-increment: n;
	display: flex;
	gap: 12px;
	align-items: baseline;
	padding: 9px 0;
	border-bottom: 1px solid var(--line);
	font-size: .95rem;
}
.numbered-list li::before {
	content: counter(n, decimal-leading-zero);
	flex: none;
	width: 2ch;
	font-family: var(--font-head);
	font-weight: 800;
	font-size: .85rem;
	color: var(--pop-text);
	font-variant-numeric: tabular-nums;
}

/* ---------- Section: faq ---------- */
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 56px;
	padding: 16px 4px;
	cursor: pointer;
	list-style: none;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.075rem;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent); }
.faq__icon { width: 22px; height: 22px; color: var(--pop-text); transition: transform .2s ease; }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__a { padding: 0 4px 20px; color: var(--muted); }
.faq__a p { margin: 0; }
.faq__a p + p { margin-top: .75em; }

/* ---------- Section: cta ---------- */
.cta__box {
	display: grid;
	gap: 20px;
	align-items: center;
	padding: clamp(28px, 5vw, 48px);
	border-radius: 16px;
	background: var(--ink);
	color: #fff;
	position: relative;
	overflow: hidden;
}
.cta__box::after {
	content: "";
	position: absolute;
	right: -80px; bottom: -120px;
	width: 320px; height: 320px;
	border-radius: 50%;
	border: 40px solid rgba(254, 133, 0, .14);
	pointer-events: none;
}
@media (min-width: 768px) { .cta__box { grid-template-columns: auto 1fr auto; gap: 28px; } }
.cta__mark { width: 64px; height: 64px; }
.cta__box .lm-lens { fill: var(--ink); }
.cta__box .lm-doc,
.cta__box .lm-handle,
.cta__box .lm-lens { stroke: #fff; }
.cta__box .lm-lines { stroke: rgba(255, 255, 255, .5); }
.cta__title { color: #fff; margin: 0 0 4px; }
.cta__sub { margin: 0; color: #d4d7e1; font-size: 1.075rem; }
.cta__box .btn { position: relative; z-index: 1; }

/* ---------- Content sections (guides, glossary, states, posts) ---------- */
.short-answer {
	padding: 20px 24px;
	background: var(--accent-soft);
	border-left: 4px solid var(--accent);
	border-radius: 0 var(--r-card) var(--r-card) 0;
}
.short-answer__label { margin: 0 0 6px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.short-answer__text { margin: 0; font-size: 1.15rem; line-height: 1.5; }

.key-facts { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.key-facts__title { margin: 0; padding: 16px 20px; font-size: 1.15rem; background: var(--card); border-bottom: 1px solid var(--line); }
.key-facts__list { margin: 0; }
.key-facts__row { display: grid; gap: 4px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.key-facts__row:last-child { border-bottom: 0; }
@media (min-width: 640px) { .key-facts__row { grid-template-columns: 200px 1fr; gap: 16px; } }
.key-facts__row dt { font-weight: 700; }
.key-facts__row dd { margin: 0; display: grid; gap: 4px; }
.key-facts__value { font-variant-numeric: tabular-nums; }
.key-facts__note,
.key-facts__source { font-size: .85rem; color: var(--muted); }

.checklist__title { font-size: 1.3rem; }
.checklist__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.checklist__item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 12px 16px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--r-input);
}
.checklist__item > .ql-icon { width: 24px; height: 24px; margin-top: 1px; color: var(--ok); }
.checklist__link { display: block; font-size: .875rem; margin-top: 2px; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); }
.compare-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .95rem; }
.compare-table caption { padding: 14px 16px; text-align: left; font-weight: 700; font-family: var(--font-head); }
.compare-table th,
.compare-table td { padding: 12px 16px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table thead th { background: var(--card); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }

.callout {
	display: flex;
	gap: 16px;
	padding: 20px;
	border: 1px solid var(--line);
	border-left: 4px solid var(--flag, var(--info));
	border-radius: 0 var(--r-card) var(--r-card) 0;
	background: var(--card);
}
.callout__icon .ql-icon { width: 28px; height: 28px; color: var(--flag, var(--info)); }
.callout__sev { margin: 0 0 6px; }
.callout__title { font-size: 1.15rem; margin: 0 0 6px; }
.callout__body p:last-child { margin-bottom: 0; }
.callout__ask { padding-top: 10px; border-top: 1px solid var(--line); }

.checker-button {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px;
	border-radius: var(--r-card);
	background: var(--pop-soft);
	border: 1px solid color-mix(in srgb, var(--pop) 35%, transparent);
}
.checker-button__title { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.checker-button__note { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }

.related-links__title { font-size: 1.2rem; }
.related-links ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.related-links li { border-bottom: 1px solid var(--line); }

.sources { padding-top: 24px; border-top: 1px solid var(--line); }
.sources__title { font-size: 1.1rem; }
.sources__list { margin: 0 0 12px; padding-left: 1.3em; font-size: .925rem; }
.sources__list li + li { margin-top: 6px; }
.sources__date { color: var(--muted); font-size: .85rem; margin-left: 6px; }

.review-line { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: .9rem; }
.review-line .ql-icon { color: var(--ok); }

/* ---------- Footer ---------- */
.site-footer {
	margin-top: var(--section-y);
	padding: clamp(48px, 6vw, 72px) 0 32px;
	background: var(--ink);
	color: #c9ccd6;
	font-size: .95rem;
}
.site-footer .brand,
.site-footer .brand-quote { color: #fff; }
.site-footer .lm-doc,
.site-footer .lm-handle { stroke: #fff; }
.site-footer .lm-lens { fill: var(--ink); stroke: #fff; }
.site-footer .lm-lines { stroke: rgba(255, 255, 255, .5); }
.site-footer__top { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); }
.site-footer__brand { grid-column: 1 / -1; max-width: 360px; }
@media (min-width: 1024px) {
	.site-footer__top { grid-template-columns: 1.6fr repeat(4, 1fr); }
	.site-footer__brand { grid-column: auto; }
}
.site-footer__tagline { margin: 16px 0 0; color: #a3a8b8; }
.site-footer__heading {
	margin: 0 0 12px;
	font-family: var(--font-body);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--pop);
}
.footer-menu { margin: 0; padding: 0; list-style: none; }
.footer-menu a { display: inline-flex; align-items: center; min-height: 36px; color: #e6e8ee; text-decoration: none; }
.footer-menu a:hover { color: #fff; text-decoration: underline; }
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: .875rem;
	color: #a3a8b8;
}
.site-footer__bottom p { margin: 0; }
.site-footer a:focus-visible { outline-color: var(--pop); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
