/* ==========================================================================
   FixDecoded — single stylesheet (frontend + editor)
   Mobile-first. One self-hosted display font (Archivo, OFL), system body
   font, no framework. Light and dark colour schemes. ~24 KB raw.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Display font: Archivo (variable weight, latin subset, 35 KB).
   The fallback face is metric-adjusted to Arial so headings do not jump
   when the real font arrives (font-display: swap).
   -------------------------------------------------------------------------- */
@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/archivo/archivo-latin-wght-normal.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: "Archivo Fallback";
	src: local("Arial"), local("Helvetica Neue"), local("Roboto");
	ascent-override: 88%;
	descent-override: 22%;
	line-gap-override: 0%;
	size-adjust: 104%;
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
	color-scheme: light dark;

	--fd-ink: #0e1b25;
	--fd-text: #22313d;
	--fd-muted: #5c6b76;
	--fd-line: #dfe4e8;
	--fd-line-strong: #b8c3cb;
	--fd-surface: #f3f6f8;
	--fd-surface-2: #e9eef2;
	--fd-paper: #ffffff;
	--fd-accent: #0f8a63;
	--fd-accent-ink: #0a6b4c;
	--fd-accent-soft: #e3f4ed;
	--fd-mint: #9be3c7;
	--fd-warn: #b45309;
	--fd-warn-bg: #fff6e8;
	--fd-warn-line: #f2c48f;
	--fd-note-bg: #eef4f8;
	--fd-note-line: #bfd3e0;
	--fd-focus: #0f8a63;

	/* Dark surfaces used by the hero and footer in both schemes. */
	--fd-band: #0e1b25;
	--fd-band-2: #15232d;
	--fd-band-line: #24343f;
	--fd-band-text: #c9d4db;
	--fd-band-muted: #8c9ba6;

	--fd-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--fd-display: "Archivo", "Archivo Fallback", var(--fd-font);
	--fd-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

	--fd-radius: 8px;
	--fd-radius-lg: 12px;
	--fd-container: 1120px;
	--fd-narrow: 760px;
	--fd-column: 720px;
	--fd-gutter: 20px;
	--fd-header-h: 64px;
}
.fd-no-display-font { --fd-display: var(--fd-font); }

@media (prefers-color-scheme: dark) {
	:root {
		--fd-ink: #f1f5f7;
		--fd-text: #d7e0e6;
		--fd-muted: #97a6b0;
		--fd-line: #263640;
		--fd-line-strong: #3b4d59;
		--fd-surface: #15232d;
		--fd-surface-2: #1c2c37;
		--fd-paper: #0f1a22;
		--fd-accent: #3ccf9a;
		--fd-accent-ink: #5fdcae;
		--fd-accent-soft: #123328;
		--fd-warn: #f2a752;
		--fd-warn-bg: #2b2114;
		--fd-warn-line: #6d4a1e;
		--fd-note-bg: #172733;
		--fd-note-line: #2f4a5c;
		--fd-focus: #5fdcae;
		--fd-band: #0a141b;
		--fd-band-2: #121f28;
		--fd-band-line: #22323c;
	}
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--fd-header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
	margin: 0;
	font-family: var(--fd-font);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--fd-text);
	background: var(--fd-paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeSpeed;
}
@media (min-width: 640px) { body { font-size: 1.0625rem; } }

img, svg, video { max-width: 100%; height: auto; display: block; }
img { border-style: none; }
[hidden] { display: none !important; }

a { color: var(--fd-accent-ink); text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { color: var(--fd-ink); }

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

h1, h2, h3, h4 {
	font-family: var(--fd-display);
	color: var(--fd-ink);
	line-height: 1.15;
	letter-spacing: -0.012em;
	margin: 0 0 0.5em;
	font-weight: 700;
	overflow-wrap: anywhere;
	text-wrap: balance;
}
h1 { font-size: clamp(1.9rem, 1.35rem + 2.6vw, 3rem); letter-spacing: -0.02em; line-height: 1.08; }
h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.75rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
code, kbd, samp {
	font-family: var(--fd-mono);
	font-size: 0.9em;
	background: var(--fd-surface);
	border: 1px solid var(--fd-line);
	border-radius: 5px;
	padding: 0.06em 0.4em;
	color: var(--fd-ink);
}
hr { border: 0; border-top: 1px solid var(--fd-line); margin: 2rem 0; }

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

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
.skip-link:focus {
	position: fixed !important;
	top: 8px; left: 8px;
	width: auto; height: auto;
	padding: 0.6rem 1rem;
	clip: auto; clip-path: none;
	background: var(--fd-ink);
	color: var(--fd-paper);
	z-index: 1000;
	border-radius: var(--fd-radius);
}

.fd-container {
	width: 100%;
	max-width: calc(var(--fd-container) + var(--fd-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--fd-gutter);
}
.fd-container--narrow { max-width: calc(var(--fd-narrow) + var(--fd-gutter) * 2); }

.fd-main { display: block; }
.fd-icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -0.3em; }

/* Small type label (Category / Brand / Model / Topic / Search). Carries
   information, so it stays — as a quiet pill rather than tracked caps. */
.fd-type {
	display: inline-block;
	font-family: var(--fd-display);
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--fd-accent-ink);
	background: var(--fd-accent-soft);
	border-radius: 999px;
	padding: 0.15rem 0.65rem;
	margin: 0 0 0.7rem;
}
.fd-eyebrow { font-size: 0.9rem; font-weight: 600; color: var(--fd-accent-ink); margin: 0 0 0.5rem; }

/* --------------------------------------------------------------------------
   Header (sticky, translucent)
   -------------------------------------------------------------------------- */
.fd-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--fd-paper);
	border-bottom: 1px solid var(--fd-line);
}
@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
	.fd-header { background: color-mix(in srgb, var(--fd-paper) 86%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
}
body.admin-bar .fd-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .fd-header { top: 46px; } }

.fd-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: var(--fd-header-h);
	flex-wrap: wrap;
}
.fd-logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--fd-ink); }
.fd-logo img { max-height: 36px; width: auto; }
.fd-wordmark {
	font-family: var(--fd-display);
	font-size: 1.45rem;
	font-weight: 500;
	letter-spacing: -0.035em;
	line-height: 1;
	color: var(--fd-ink);
	white-space: nowrap;
}
.fd-wordmark b { font-weight: 800; color: var(--fd-accent-ink); }
.fd-wordmark--sm { font-size: 1.25rem; }

.fd-nav-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: none;
	border: 1px solid var(--fd-line-strong);
	border-radius: var(--fd-radius);
	padding: 0.5rem 0.8rem;
	min-height: 44px;
	font-family: var(--fd-display);
	font-weight: 600;
	color: var(--fd-ink);
}
.fd-nav-toggle__close { display: none; }
.fd-nav-toggle[aria-expanded="true"] .fd-nav-toggle__open { display: none; }
.fd-nav-toggle[aria-expanded="true"] .fd-nav-toggle__close { display: inline-block; }

.fd-nav {
	display: none;
	flex-basis: 100%;
	padding: 0.5rem 0 1rem;
	border-top: 1px solid var(--fd-line);
	margin-top: 0.25rem;
}
.fd-nav.is-open { display: block; }
.fd-nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fd-nav-list a {
	display: block;
	padding: 0.75rem 0.25rem;
	font-family: var(--fd-display);
	font-weight: 600;
	color: var(--fd-ink);
	text-decoration: none;
	border-bottom: 1px solid var(--fd-line);
}
.fd-nav-list a:hover, .fd-nav-list .current-menu-item > a { color: var(--fd-accent-ink); }
.fd-search--header { margin-top: 1rem; }

@media (min-width: 900px) {
	.fd-nav-toggle { display: none; }
	.fd-header__inner { flex-wrap: nowrap; }
	.fd-nav {
		display: flex;
		align-items: center;
		gap: 1.25rem;
		flex: 1 1 auto;
		justify-content: flex-end;
		border: 0; padding: 0; margin: 0;
	}
	.fd-nav-list { flex-direction: row; gap: 0.15rem; }
	.fd-nav-list a { padding: 0.5rem 0.7rem; border: 0; border-radius: var(--fd-radius); }
	.fd-nav-list a:hover { background: var(--fd-surface); }
	.fd-nav-list .current-menu-item > a { background: var(--fd-accent-soft); }
	.fd-search--header { margin: 0; width: 270px; }
}

/* --------------------------------------------------------------------------
   Search form
   -------------------------------------------------------------------------- */
.fd-search {
	display: flex;
	width: 100%;
	border: 1px solid var(--fd-line-strong);
	border-radius: var(--fd-radius);
	background: var(--fd-paper);
	overflow: hidden;
}
.fd-search:focus-within { border-color: var(--fd-accent); box-shadow: 0 0 0 3px var(--fd-accent-soft); }
.fd-search input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 0.6rem 0.85rem;
	min-height: 44px;
	outline: none;
	color: var(--fd-ink);
}
.fd-search input::placeholder { color: var(--fd-muted); opacity: 1; }
.fd-search input::-webkit-search-decoration { -webkit-appearance: none; }
.fd-search button {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	border: 0;
	background: var(--fd-ink);
	color: var(--fd-paper);
	padding: 0 0.95rem;
	font-family: var(--fd-display);
	font-weight: 600;
}
.fd-search button:hover { background: var(--fd-accent-ink); color: #fff; }
.fd-search--header { border-radius: 999px; }
.fd-search--header input { padding-left: 1rem; }
.fd-search--header button { padding-inline: 0.85rem; }
.fd-search--header button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fd-search--page { max-width: 640px; margin-top: 1rem; }
@media (max-width: 479px) {
	.fd-search--hero button span, .fd-search--page button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.fd-search--hero button, .fd-search--page button { padding-inline: 1rem; }
}

/* --------------------------------------------------------------------------
   Hero: the console. Ink band, faint blueprint grid, one bright input.
   -------------------------------------------------------------------------- */
.fd-hero {
	position: relative;
	background: var(--fd-band);
	color: var(--fd-band-text);
	padding: 2.75rem 0 2.5rem;
	overflow: hidden;
	isolation: isolate;
}
.fd-hero::before {
	content: "";
	position: absolute; inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(to right, rgba(155, 227, 199, 0.07) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(155, 227, 199, 0.07) 1px, transparent 1px);
	background-size: 40px 40px;
	mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 92%);
	-webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 92%);
}
.fd-hero__inner { position: relative; }
.fd-hero .fd-eyebrow { color: var(--fd-mint); }
.fd-hero__title {
	color: #fff;
	margin-bottom: 0.7rem;
	font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.4rem);
	max-width: 760px;
}
.fd-hero__intro { font-size: 1.08rem; color: var(--fd-band-text); max-width: 600px; margin-bottom: 1.6rem; }
.fd-search--hero, .fd-examples { max-width: 760px; }
.fd-search--hero {
	border: 2px solid transparent;
	border-radius: var(--fd-radius-lg);
	font-size: 1.05rem;
	background: #fff;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.fd-search--hero:focus-within { border-color: var(--fd-mint); box-shadow: 0 0 0 4px rgba(155, 227, 199, 0.25), 0 10px 40px rgba(0, 0, 0, 0.35); }
.fd-search--hero input { min-height: 58px; padding-inline: 1.1rem; color: #0e1b25; }
.fd-search--hero input::placeholder { color: #5c6b76; }
.fd-search--hero button { background: #0f8a63; color: #fff; padding-inline: 1.35rem; font-size: 1rem; }
.fd-search--hero button:hover { background: #0a6b4c; }

.fd-examples { margin: 1rem 0 0; font-size: 0.9rem; color: var(--fd-band-muted); display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem; align-items: center; }
.fd-examples__label { font-family: var(--fd-display); font-weight: 600; color: var(--fd-band-text); }
.fd-example {
	font-family: var(--fd-mono);
	font-size: 0.82rem;
	color: var(--fd-mint);
	background: var(--fd-band-2);
	border: 1px solid var(--fd-band-line);
	border-radius: 6px;
	padding: 0.3rem 0.7rem;
	text-decoration: none;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.fd-example:hover { border-color: var(--fd-mint); color: #fff; }
@media (min-width: 768px) { .fd-hero { padding: 4rem 0 3.5rem; } }

/* Trust strip under the hero: three true facts, not marketing. */
.fd-trust { border-bottom: 1px solid var(--fd-line); background: var(--fd-surface); }
.fd-trust__list { list-style: none; margin: 0; padding: 0.9rem 0; display: grid; gap: 0.6rem 2rem; font-size: 0.92rem; color: var(--fd-text); }
.fd-trust__item { display: flex; gap: 0.6rem; align-items: flex-start; }
.fd-trust__item .fd-icon { color: var(--fd-accent-ink); margin-top: 0.15rem; }
@media (min-width: 768px) { .fd-trust__list { grid-template-columns: repeat(3, 1fr); padding-block: 1rem; } }

/* --------------------------------------------------------------------------
   Sections, tiles, chips, cards, lists
   -------------------------------------------------------------------------- */
.fd-home__body { padding-top: 0.5rem; }
.fd-section { padding: 2.25rem 0; border-bottom: 1px solid var(--fd-line); }
.fd-section:last-child { border-bottom: 0; }
.fd-section__title { font-size: 1.35rem; margin-bottom: 1.1rem; }
.fd-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.fd-more { font-family: var(--fd-display); font-weight: 600; text-decoration: none; white-space: nowrap; }
.fd-more .fd-icon { vertical-align: -0.25em; transition: transform 0.15s; }
.fd-more:hover .fd-icon { transform: translateX(3px); }

.fd-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.fd-tile {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas: "name arrow" "count arrow";
	align-items: center;
	gap: 0.15rem 0.75rem;
	padding: 1.05rem 1.15rem;
	border: 1px solid var(--fd-line);
	border-radius: var(--fd-radius-lg);
	background: var(--fd-paper);
	text-decoration: none;
	color: var(--fd-ink);
	min-height: 76px;
}
.fd-tile:hover { border-color: var(--fd-accent); background: var(--fd-accent-soft); }
.fd-tile__name { grid-area: name; font-family: var(--fd-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; }
.fd-tile__count { grid-area: count; font-size: 0.85rem; color: var(--fd-muted); }
.fd-tile__arrow { grid-area: arrow; color: var(--fd-accent-ink); }

.fd-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fd-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-height: 40px;
	padding: 0.4rem 0.9rem;
	border: 1px solid var(--fd-line-strong);
	border-radius: 999px;
	color: var(--fd-ink);
	font-weight: 600;
	text-decoration: none;
	font-size: 0.95rem;
	background: var(--fd-paper);
}
.fd-chip:hover { border-color: var(--fd-accent); color: var(--fd-accent-ink); background: var(--fd-accent-soft); }
.fd-chip--sm { min-height: 32px; padding: 0.2rem 0.7rem; font-size: 0.85rem; font-weight: 500; }
.fd-chip__count { font-family: var(--fd-mono); font-size: 0.75rem; font-weight: 400; color: var(--fd-muted); }

.fd-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.fd-card {
	border: 1px solid var(--fd-line);
	border-radius: var(--fd-radius-lg);
	background: var(--fd-paper);
	padding: 1.05rem 1.15rem 1.15rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	position: relative;
}
.fd-card:hover { border-color: var(--fd-line-strong); }
.fd-card:focus-within { border-color: var(--fd-accent); }
.fd-card__title { font-size: 1.12rem; margin: 0; line-height: 1.3; }
.fd-card__title a { color: var(--fd-ink); text-decoration: none; }
.fd-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.fd-card__title a:hover { color: var(--fd-accent-ink); }
.fd-card__excerpt { margin: 0; font-size: 0.93rem; color: var(--fd-muted); }

.fd-labels { margin: 0; font-size: 0.8rem; color: var(--fd-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 0.1rem 0.35rem; }
.fd-labels a { color: inherit; text-decoration: none; position: relative; z-index: 1; }
.fd-labels a:hover { color: var(--fd-accent-ink); text-decoration: underline; }
.fd-labels code { font-size: 0.76rem; padding: 0 0.35em; }
.fd-labels__sep { color: var(--fd-line-strong); }

.fd-list { list-style: none; margin: 0; padding: 0; }
.fd-list__item { padding: 0.75rem 0; border-top: 1px solid var(--fd-line); }
.fd-list__item:first-child { border-top: 0; }
.fd-list__item > a { font-family: var(--fd-display); font-weight: 600; color: var(--fd-ink); text-decoration: none; display: block; }
.fd-list__item > a:hover { color: var(--fd-accent-ink); text-decoration: underline; }

.fd-how__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; counter-reset: fd-how; }
.fd-how__steps li { position: relative; padding-left: 3.1rem; counter-increment: fd-how; }
.fd-how__steps li::before {
	content: counter(fd-how);
	position: absolute; left: 0; top: 0;
	width: 2.3rem; height: 2.3rem;
	display: grid; place-items: center;
	font-family: var(--fd-display);
	font-weight: 700;
	color: var(--fd-accent-ink);
	background: var(--fd-accent-soft);
	border-radius: 50%;
}
.fd-how__steps h3 { margin: 0.35rem 0 0.2rem; font-size: 1.08rem; }
.fd-how__steps p { margin: 0; color: var(--fd-muted); }
@media (min-width: 768px) { .fd-how__steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

/* --------------------------------------------------------------------------
   Archive / page headers
   -------------------------------------------------------------------------- */
.fd-archive__header { padding: 1.75rem 0 1rem; }
.fd-archive__title { margin-bottom: 0.4rem; }
.fd-archive__desc { color: var(--fd-muted); max-width: 640px; font-size: 1.02rem; }
.fd-archive__desc p:last-child { margin-bottom: 0; }
.fd-subnav { padding: 0.25rem 0 1.25rem; }
.fd-result-count { margin: 0.75rem 0 0; font-size: 0.9rem; color: var(--fd-muted); }

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */
.fd-crumbs { font-size: 0.85rem; margin-bottom: 1rem; }
.fd-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 0; }
.fd-crumbs li { display: inline-flex; align-items: center; color: var(--fd-muted); }
.fd-crumbs li + li::before { content: "›"; margin: 0 0.5rem; color: var(--fd-line-strong); }
.fd-crumbs a { color: var(--fd-muted); text-decoration: none; padding: 0.15rem 0; }
.fd-crumbs a:hover { color: var(--fd-accent-ink); text-decoration: underline; }

/* --------------------------------------------------------------------------
   Article (guide) — header, two-column body with sticky contents
   -------------------------------------------------------------------------- */
.fd-article__header { padding: 1.75rem 0 1.1rem; border-bottom: 1px solid var(--fd-line); margin-bottom: 1.75rem; }
.fd-article__head { max-width: var(--fd-column); }
.fd-article__title { margin-bottom: 0.7rem; }
.fd-article__labels { margin-bottom: 0.9rem; }
.fd-meta { margin: 0; font-size: 0.88rem; color: var(--fd-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1rem; }
.fd-meta a { color: var(--fd-ink); font-weight: 600; text-decoration: none; }
.fd-meta a:hover { text-decoration: underline; color: var(--fd-accent-ink); }
.fd-meta__author { display: inline-flex; align-items: center; gap: 0.5rem; }
.fd-meta__avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1px solid var(--fd-line); }
.fd-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--fd-line); }
.fd-article--page .fd-article__header { border-bottom: 0; margin-bottom: 0.5rem; }
.fd-article__figure { margin: 0 0 1.5rem; }
.fd-article__image { display: block; width: 100%; height: auto; border-radius: var(--fd-radius-lg); border: 1px solid var(--fd-line); }
.fd-article__figure figcaption { margin-top: 0.5rem; font-size: 0.85rem; color: var(--fd-muted); }

.fd-article__body { display: block; }
.fd-article__main { min-width: 0; max-width: var(--fd-column); }
.fd-article__aside { display: none; }

@media (min-width: 1080px) {
	.fd-article__body { display: grid; grid-template-columns: minmax(0, var(--fd-column)) 250px; column-gap: 3.5rem; justify-content: start; align-items: start; }
	.fd-article__aside {
		display: block;
		position: sticky;
		top: calc(var(--fd-header-h) + 24px);
		max-height: calc(100vh - var(--fd-header-h) - 40px);
		overflow: auto;
	}
	body.admin-bar .fd-article__aside { top: calc(var(--fd-header-h) + 56px); }
	.fd-toc--inline { display: none; }
}

/* Contents: inline <details> (small screens) and the sticky side list. */
.fd-toc-side { border-left: 1px solid var(--fd-line); }
.fd-toc-side__title { font-family: var(--fd-display); font-size: 0.85rem; font-weight: 700; color: var(--fd-ink); margin: 0 0 0.5rem; padding-left: 0.9rem; }
.fd-toc-side ol { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; }
.fd-toc-side li { margin: 0; }
.fd-toc-side a {
	display: block;
	padding: 0.32rem 0.5rem 0.32rem calc(0.9rem - 1px);
	margin-left: -1px;
	border-left: 2px solid transparent;
	color: var(--fd-muted);
	text-decoration: none;
	line-height: 1.35;
}
.fd-toc-side a:hover { color: var(--fd-ink); }
.fd-toc-side a.is-current { color: var(--fd-accent-ink); border-left-color: var(--fd-accent); font-weight: 600; }

.fd-toc {
	margin: 0 0 2rem;
	border: 1px solid var(--fd-line);
	border-radius: var(--fd-radius-lg);
	padding: 0.35rem 1rem;
	font-size: 0.93rem;
	background: var(--fd-surface);
}
.fd-toc summary {
	cursor: pointer;
	font-family: var(--fd-display);
	font-weight: 700;
	color: var(--fd-ink);
	padding: 0.5rem 0;
	list-style: none;
	display: flex; align-items: center; gap: 0.5rem;
}
.fd-toc summary::-webkit-details-marker { display: none; }
.fd-toc summary::before { content: "▸"; color: var(--fd-accent-ink); font-size: 0.8em; transition: transform 0.15s; }
.fd-toc[open] summary::before { transform: rotate(90deg); }
.fd-toc__count { font-weight: 400; color: var(--fd-muted); font-family: var(--fd-font); font-size: 0.85rem; }
.fd-toc ol { margin: 0.25rem 0 0.75rem; padding-left: 1.2rem; columns: 1; }
.fd-toc li { margin: 0.3rem 0; padding-left: 0.2rem; }
.fd-toc a { color: var(--fd-text); text-decoration: none; }
.fd-toc a:hover { color: var(--fd-accent-ink); text-decoration: underline; }
@media (min-width: 640px) { .fd-toc ol { columns: 2; column-gap: 2rem; } .fd-toc li { break-inside: avoid; } }

/* --------------------------------------------------------------------------
   Content typography (front-end .fd-content and editor canvas)
   -------------------------------------------------------------------------- */
.fd-content, .editor-styles-wrapper { line-height: 1.68; }
.fd-content > *, .editor-styles-wrapper .wp-block { max-width: var(--fd-column); }
.fd-content > *:first-child { margin-top: 0; }
.fd-content h2, .editor-styles-wrapper h2 { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--fd-line); scroll-margin-top: calc(var(--fd-header-h) + 16px); }
.fd-content h3, .editor-styles-wrapper h3 { margin-top: 1.75rem; }
.fd-content p, .fd-content li, .editor-styles-wrapper p, .editor-styles-wrapper li { overflow-wrap: anywhere; }
.fd-content ul, .fd-content ol, .editor-styles-wrapper .wp-block-list { padding-left: 1.4rem; margin: 0 0 1.25rem; }
.fd-content li, .editor-styles-wrapper li { margin-bottom: 0.45rem; }
.fd-content li > ul, .fd-content li > ol { margin-top: 0.4rem; margin-bottom: 0; }
.fd-content figure { margin: 1.5rem 0; }
.fd-content figcaption, .editor-styles-wrapper figcaption { font-size: 0.85rem; color: var(--fd-muted); margin-top: 0.4rem; }
.fd-content blockquote, .editor-styles-wrapper blockquote { margin: 1.5rem 0; padding: 0.25rem 0 0.25rem 1rem; border-left: 3px solid var(--fd-line-strong); color: var(--fd-muted); }
.fd-content pre, .editor-styles-wrapper pre { background: var(--fd-surface); border: 1px solid var(--fd-line); border-radius: var(--fd-radius); padding: 0.9rem 1rem; overflow-x: auto; font-family: var(--fd-mono); font-size: 0.88rem; }
.fd-content pre code { background: none; border: 0; padding: 0; }
.fd-content img { border-radius: var(--fd-radius-lg); }
.fd-content .wp-block-image img { height: auto; }
.fd-content .alignwide { max-width: var(--fd-container); }
@media (prefers-color-scheme: dark) { .fd-content img, .fd-article__image { filter: brightness(0.92); } }

/* Tables */
.fd-content table, .editor-styles-wrapper table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.fd-content table th, .fd-content table td, .editor-styles-wrapper table th, .editor-styles-wrapper table td {
	border: 1px solid var(--fd-line);
	padding: 0.6rem 0.75rem;
	text-align: left;
	vertical-align: top;
}
.fd-content table th, .editor-styles-wrapper table th { background: var(--fd-surface); font-weight: 700; color: var(--fd-ink); }
.fd-content table thead, .editor-styles-wrapper table thead { border-bottom: 2px solid var(--fd-line-strong); }
.fd-content .wp-block-table, .fd-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5rem 0; }
.fd-content .wp-block-table table { min-width: 0; }
.fd-content .wp-block-table table:has(tr > :nth-child(4)) { min-width: 560px; } /* 4+ columns: scroll rather than crush */
.is-style-fd-diagnostic tbody tr:nth-child(even) { background: var(--fd-surface); }
.is-style-fd-diagnostic td:first-child, .is-style-fd-diagnostic th:first-child { font-weight: 600; color: var(--fd-ink); }
@media (max-width: 639px) {
	.is-style-fd-diagnostic td:first-child, .is-style-fd-diagnostic th:first-child {
		position: sticky; left: 0; background: var(--fd-paper);
		box-shadow: 2px 0 0 var(--fd-line);
	}
	.is-style-fd-diagnostic th:first-child { background: var(--fd-surface); }
	.is-style-fd-diagnostic tbody tr:nth-child(even) td:first-child { background: var(--fd-surface); }
}

/* Check list style for symptoms */
.is-style-fd-checks { list-style: none; padding-left: 0 !important; }
.is-style-fd-checks li { position: relative; padding-left: 1.7rem; }
.is-style-fd-checks li::before {
	content: "";
	position: absolute; left: 0; top: 0.42em;
	width: 0.8rem; height: 0.8rem;
	border: 2px solid var(--fd-accent);
	border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Publishing components
   -------------------------------------------------------------------------- */

/* Quick Answer: a readout panel. */
.fd-quick-answer {
	background: var(--fd-surface);
	border: 1px solid var(--fd-line);
	border-radius: var(--fd-radius-lg);
	padding: 1rem 1.2rem 0.6rem;
	margin: 1.5rem 0 2rem;
	position: relative;
}
.fd-quick-answer::before {
	content: "";
	position: absolute; left: 0; top: 1.1rem; bottom: 1.1rem;
	width: 4px; border-radius: 0 3px 3px 0;
	background: var(--fd-accent);
}
.fd-quick-answer .fd-quick-answer__title, .editor-styles-wrapper .fd-quick-answer h2 {
	font-family: var(--fd-display);
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--fd-accent-ink);
	margin: 0 0 0.6rem;
	padding: 0;
	border: 0;
	display: flex; align-items: center; gap: 0.45rem;
}
.fd-quick-answer .fd-quick-answer__title::before {
	content: "";
	width: 1.05em; height: 1.05em; flex: none;
	background: currentColor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2 4 14h6l-1 8 9-12h-6z'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2 4 14h6l-1 8 9-12h-6z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fd-qa-row { margin: 0; padding: 0.55rem 0; border-top: 1px solid var(--fd-line); font-size: 0.97rem; }
.fd-qa-row strong { color: var(--fd-ink); display: block; font-size: 0.85rem; margin-bottom: 0.1rem; }
@media (min-width: 560px) {
	.fd-qa-row { display: grid; grid-template-columns: 11rem 1fr; gap: 0.75rem; }
	.fd-qa-row strong { font-size: inherit; margin: 0; }
}

/* Safety / note callouts with a leading icon */
.fd-callout {
	position: relative;
	border: 1px solid var(--fd-note-line);
	border-left-width: 4px;
	background: var(--fd-note-bg);
	border-radius: var(--fd-radius);
	padding: 0.9rem 1rem 0.9rem 2.9rem;
	margin: 1.5rem 0;
	font-size: 0.97rem;
}
.fd-callout::before {
	content: "";
	position: absolute; left: 1rem; top: 1.05rem;
	width: 1.15rem; height: 1.15rem;
	background: var(--fd-accent-ink);
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16zm-1 6h2v7h-2zm0-3h2v2h-2z'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16zm-1 6h2v7h-2zm0-3h2v2h-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fd-callout p { margin: 0; }
.fd-callout p + p { margin-top: 0.5rem; }
.fd-callout strong { color: var(--fd-ink); }
.fd-callout--safety { background: var(--fd-warn-bg); border-color: var(--fd-warn-line); border-left-color: var(--fd-warn); }
.fd-callout--safety strong { color: var(--fd-warn); }
.fd-callout--safety::before {
	background: var(--fd-warn);
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 1 21h22L12 2zm0 4.3L19.5 19h-15L12 6.3zM11 10h2v5h-2zm0 6h2v2h-2z'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 1 21h22L12 2zm0 4.3L19.5 19h-15L12 6.3zM11 10h2v5h-2zm0 6h2v2h-2z'/%3E%3C/svg%3E");
}

/* "Start here" boxes: accent colour, lightning icon (matches the Quick Answer panel). */
.fd-callout--start { background: var(--fd-surface); border-color: var(--fd-line); border-left-color: var(--fd-accent); }
.fd-callout--start strong { color: var(--fd-accent-ink); }
.fd-callout--start::before {
	background: var(--fd-accent-ink);
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2 4 14h6l-1 8 9-12h-6z'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2 4 14h6l-1 8 9-12h-6z'/%3E%3C/svg%3E");
}

/* Diagnostic steps: numbered badges joined by a rail (it is a sequence). */
.fd-steps { list-style: none; padding-left: 0 !important; counter-reset: fd-step; margin: 0 0 1.5rem; position: relative; }
.fd-steps > li {
	counter-increment: fd-step;
	position: relative;
	padding: 0.2rem 0 1.15rem 3.1rem;
	margin: 0;
}
.fd-steps > li::before {
	content: counter(fd-step);
	position: absolute; left: 0; top: 0;
	width: 2.1rem; height: 2.1rem;
	display: grid; place-items: center;
	font-family: var(--fd-display);
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--fd-paper);
	background: var(--fd-ink);
	border-radius: 50%;
	z-index: 1;
}
.fd-steps > li::after {
	content: "";
	position: absolute; left: calc(1.05rem - 1px); top: 2.1rem; bottom: 0;
	width: 2px; background: var(--fd-line-strong);
}
.fd-steps > li:last-child::after { display: none; }
.fd-steps > li:last-child { padding-bottom: 0.25rem; }
.fd-steps > li > strong { color: var(--fd-ink); display: block; margin-bottom: 0.25rem; font-family: var(--fd-display); font-weight: 600; font-size: 1.02em; }
.fd-steps > li > strong + br { display: none; }

/* Likely causes */
.fd-causes > li { margin-bottom: 0.6rem; }
.fd-causes > li > strong { color: var(--fd-ink); }

/* Sources */
.fd-sources { margin-top: 2.5rem; padding-top: 0.25rem; }
.fd-sources h2 { font-size: 1.15rem; }
.fd-sources ul { font-size: 0.93rem; color: var(--fd-muted); }
.fd-sources li { margin-bottom: 0.4rem; }

/* Related fixes */
.fd-related { background: var(--fd-surface); border-top: 1px solid var(--fd-line); padding: 2.25rem 0; margin-top: 2.5rem; }
.fd-related .fd-list__item { border-color: var(--fd-line); }
.fd-related--inline { background: none; border: 0; padding: 0; margin-top: 2rem; }

/* --------------------------------------------------------------------------
   Search results, directory, 404
   -------------------------------------------------------------------------- */
.fd-results { list-style: none; margin: 0; padding: 0; }
.fd-result { padding: 1.15rem 0; border-top: 1px solid var(--fd-line); }
.fd-result__title { font-size: 1.18rem; margin: 0.15rem 0 0.3rem; }
.fd-result__title a { color: var(--fd-ink); text-decoration: none; }
.fd-result__title a:hover { color: var(--fd-accent-ink); text-decoration: underline; }
.fd-result__excerpt { margin: 0; color: var(--fd-muted); font-size: 0.95rem; max-width: 720px; }
.fd-query { color: var(--fd-accent-ink); font-family: var(--fd-mono); font-size: 0.9em; }
.fd-empty { padding-top: 1rem; }
.fd-empty > h2 { font-size: 1.3rem; }

.fd-directory { display: grid; gap: 1.25rem; padding-bottom: 2rem; }
.fd-directory__item { border: 1px solid var(--fd-line); border-radius: var(--fd-radius-lg); padding: 1.25rem 1.35rem; }
.fd-directory__item h2 { font-size: 1.3rem; }
.fd-directory__item h2 a { color: var(--fd-ink); text-decoration: none; }
.fd-directory__item h2 a:hover { color: var(--fd-accent-ink); }
.fd-directory__item > p:last-child { margin: 0.75rem 0 0; }
.fd-directory--brands { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.fd-directory__letter { font-family: var(--fd-mono); color: var(--fd-accent-ink); font-size: 1rem !important; }
.fd-directory--brands .fd-list__item { display: flex; justify-content: space-between; gap: 1rem; }

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.fd-pagination { margin: 2rem 0; }
.fd-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.fd-pagination .nav-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.fd-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; min-height: 44px; padding: 0 0.75rem;
	border: 1px solid var(--fd-line-strong); border-radius: var(--fd-radius);
	text-decoration: none; color: var(--fd-ink); font-weight: 600;
}
.fd-pagination a.page-numbers:hover { border-color: var(--fd-accent); color: var(--fd-accent-ink); }
.fd-pagination .page-numbers.current { background: var(--fd-ink); color: var(--fd-paper); border-color: var(--fd-ink); }
.fd-pagination .page-numbers.dots { border: 0; }
.fd-pagination .screen-reader-text + .nav-links { margin: 0; }
.fd-pagination h2.screen-reader-text { margin: 0; }

/* --------------------------------------------------------------------------
   Footer (ink band, mirrors the hero)
   -------------------------------------------------------------------------- */
.fd-footer { background: var(--fd-band); color: var(--fd-band-text); margin-top: 3.5rem; font-size: 0.93rem; }
.fd-footer a { color: var(--fd-band-text); }
.fd-footer a:hover { color: #fff; }
.fd-footer__inner { display: grid; gap: 2rem; padding-block: 2.75rem 1.75rem; }
.fd-footer .fd-wordmark { color: #fff; }
.fd-footer .fd-wordmark b { color: var(--fd-mint); }
.fd-footer__about p { color: var(--fd-band-muted); margin: 0.8rem 0 0; max-width: 360px; }
.fd-footer__contact { margin-top: 0.7rem !important; color: var(--fd-band-text) !important; }
.fd-footer__email { font-weight: 600; word-break: break-all; text-decoration: none; }
.fd-footer__email:hover { text-decoration: underline; }
.fd-footer__disclosure { font-size: 0.82rem; }
.fd-footer__heading { font-family: var(--fd-display); font-size: 0.95rem; font-weight: 700; color: #fff; margin: 0 0 0.6rem; }
.fd-footer__list { list-style: none; margin: 0; padding: 0; }
.fd-footer__list li { margin: 0; }
.fd-footer__list a { display: inline-block; padding: 0.3rem 0; text-decoration: none; }
.fd-footer__list a:hover { text-decoration: underline; }
.fd-footer__legal { border-top: 1px solid var(--fd-band-line); padding-block: 1.1rem; color: var(--fd-band-muted); font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; }
.fd-footer__legal p { margin: 0; }
.fd-footer__legal-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; align-items: center; }
.fd-footer__legal-links a { color: var(--fd-band-muted); text-decoration: none; padding-block: 0.4rem; }
.fd-footer__legal-links a:hover { color: #fff; text-decoration: underline; }
.fd-footer .fd-consent-open--link { color: var(--fd-band-muted); }
.fd-footer .fd-consent-open--link:hover { color: #fff; }
.fd-email { font-weight: 600; word-break: break-all; }
@media (min-width: 768px) {
	.fd-footer__inner { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
	.fd-footer__inner:has(> :nth-child(5)) { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 2rem; } /* Tools + Brands columns present */
	.fd-footer__inner > :only-child { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.fd-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
	min-height: 44px; padding: 0.55rem 1.05rem;
	border: 1px solid var(--fd-ink); border-radius: var(--fd-radius);
	background: var(--fd-ink); color: var(--fd-paper);
	font: inherit; font-family: var(--fd-display); font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.fd-button:hover { background: var(--fd-accent-ink); border-color: var(--fd-accent-ink); color: #fff; }
.fd-button--secondary { background: var(--fd-paper); color: var(--fd-ink); border-color: var(--fd-line-strong); }
.fd-button--secondary:hover { background: var(--fd-surface); color: var(--fd-ink); border-color: var(--fd-ink); }
.fd-button--text { background: none; border-color: transparent; color: var(--fd-accent-ink); padding-inline: 0.5rem; text-decoration: underline; text-underline-offset: 0.15em; }
.fd-button--text:hover { background: none; border-color: transparent; color: var(--fd-ink); }
.fd-consent-open--link { background: none; border: 0; padding: 0.4rem 0; margin: 0; color: var(--fd-muted); text-decoration: none; font: inherit; cursor: pointer; }
.fd-consent-open--link:hover { color: var(--fd-ink); text-decoration: underline; }
.fd-content .fd-consent-open.fd-button { margin: 0.25rem 0 1.25rem; }

/* --------------------------------------------------------------------------
   Cookie consent (non-blocking; nothing non-essential is set before a choice)
   -------------------------------------------------------------------------- */
.fd-consent { position: fixed; inset: auto 0 0 0; z-index: 900; padding: 0 var(--fd-gutter) var(--fd-gutter); pointer-events: none; }
.fd-consent__inner {
	pointer-events: auto;
	max-width: 480px; margin-inline: auto;
	background: var(--fd-paper);
	border: 1px solid var(--fd-line-strong); border-radius: var(--fd-radius-lg);
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
	padding: 1.05rem 1.2rem 1.15rem;
	font-size: 0.93rem;
	max-height: calc(100vh - 2rem); overflow: auto;
	position: relative;
}
.fd-consent__inner::before { content: ""; position: absolute; left: 1.2rem; right: 1.2rem; top: 0; height: 3px; background: var(--fd-accent); border-radius: 0 0 3px 3px; }
.fd-consent__title { font-size: 1.02rem; margin: 0 0 0.4rem; display: flex; align-items: center; gap: 0.45rem; outline: none; }
.fd-consent__icon { color: var(--fd-accent-ink); }
.fd-consent__text { margin: 0 0 0.85rem; color: var(--fd-text); }
.fd-consent__text a { color: var(--fd-accent-ink); }
.fd-consent__options { margin: 0; }
.fd-consent__options fieldset { border: 0; margin: 0 0 0.75rem; padding: 0; display: grid; gap: 0.5rem; }
.fd-consent__option {
	display: grid; grid-template-columns: auto 1fr; gap: 0.55rem; align-items: start;
	padding: 0.6rem 0.7rem;
	border: 1px solid var(--fd-line); border-radius: var(--fd-radius);
	background: var(--fd-surface); cursor: pointer;
}
.fd-consent__option input { margin: 0.2rem 0 0; width: 1.05rem; height: 1.05rem; accent-color: var(--fd-accent); }
.fd-consent__option strong { color: var(--fd-ink); display: block; }
.fd-consent__gpc { margin: 0 0 0.75rem; font-size: 0.85rem; color: var(--fd-muted); }
.fd-consent__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
@media (min-width: 900px) {
	.fd-consent { padding: 0 0 1.25rem 1.25rem; }
	.fd-consent__inner { margin-inline: 0; }
}
@media (prefers-reduced-motion: no-preference) {
	.fd-consent__inner { animation: fd-rise 0.22s ease-out; }
	@keyframes fd-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
.fd-cookie-table th:nth-child(4) { min-width: 16rem; }
.fd-cookie-table td { font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   Authors: box after each guide, list on the About page
   -------------------------------------------------------------------------- */
.fd-author-box {
	display: grid; grid-template-columns: auto 1fr; gap: 1rem;
	margin: 2.5rem 0 0; padding: 1.2rem 1.3rem;
	background: var(--fd-surface);
	border: 1px solid var(--fd-line); border-radius: var(--fd-radius-lg);
}
.fd-author-box__avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 1px solid var(--fd-line); }
.fd-author-box__name { margin: 0 0 0.35rem; font-size: 1.05rem; color: var(--fd-ink); }
.fd-author-box__label { display: block; color: var(--fd-muted); font-weight: 400; font-size: 0.82rem; }
.fd-author-box__name a { color: var(--fd-ink); font-family: var(--fd-display); font-weight: 700; text-decoration: none; }
.fd-author-box__name a:hover { color: var(--fd-accent-ink); text-decoration: underline; }
.fd-author-box__role { color: var(--fd-muted); font-size: 0.9rem; }
.fd-author-box__role::before { content: "· "; }
.fd-author-box__bio { color: var(--fd-text); font-size: 0.95rem; }
.fd-author-box__bio p:last-child { margin-bottom: 0.5rem; }
.fd-author-box__more { margin: 0; font-size: 0.9rem; }
.fd-author-box__more a { font-weight: 600; text-decoration: none; }
.fd-author-box__more a:hover { text-decoration: underline; }

.fd-authors { display: grid; gap: 1rem; margin: 0 0 1.5rem; }
.fd-author {
	display: grid; grid-template-columns: auto 1fr; gap: 1rem;
	padding: 1.05rem 1.3rem;
	background: var(--fd-surface); border: 1px solid var(--fd-line); border-radius: var(--fd-radius-lg);
}
.fd-author__avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 1px solid var(--fd-line); }
.fd-author__name { margin: 0 0 0.35rem; font-size: 1.05rem; }
.fd-author__name strong { font-family: var(--fd-display); }
.fd-author__role { color: var(--fd-muted); font-size: 0.9rem; margin-left: 0.25rem; }
.fd-author__bio { margin: 0 0 0.5rem; color: var(--fd-text); font-size: 0.95rem; }
.fd-author__bio p:last-child { margin-bottom: 0; }
.fd-author__bio--missing { color: var(--fd-muted); font-style: italic; }
.fd-author__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: 0.88rem; }
.fd-author__link { font-weight: 600; text-decoration: none; }
.fd-author__link:hover { text-decoration: underline; }
@media (max-width: 479px) {
	.fd-author-box, .fd-author { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Comments (closed by default; minimal styling if enabled)
   -------------------------------------------------------------------------- */
.comments-area { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--fd-line); }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 1rem 0; border-top: 1px solid var(--fd-line); }
.comment-form label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; border: 1px solid var(--fd-line-strong); border-radius: var(--fd-radius); padding: 0.6rem 0.75rem; background: var(--fd-paper);
}
.comment-form .submit { background: var(--fd-ink); color: var(--fd-paper); border: 0; border-radius: var(--fd-radius); padding: 0.7rem 1.2rem; font-weight: 600; }

/* --------------------------------------------------------------------------
   Editor-only adjustments
   -------------------------------------------------------------------------- */
.editor-styles-wrapper .fd-quick-answer,
.editor-styles-wrapper .fd-callout,
.editor-styles-wrapper .fd-sources,
.editor-styles-wrapper .fd-related--inline { max-width: var(--fd-column); }
.editor-styles-wrapper .fd-callout > .wp-block-paragraph { margin: 0; }

/* --------------------------------------------------------------------------
   Print: guides are sometimes printed for the workshop
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   1.6: Tools integration, author initials, small refinements
   -------------------------------------------------------------------------- */

/* Hero: one quiet line under the example chips */
.fd-hero__tools { margin: 0.9rem 0 0; font-size: 0.92rem; color: var(--fd-band-muted); }
.fd-hero__tools a { color: var(--fd-mint); font-weight: 600; text-decoration-color: rgba(155, 227, 199, 0.5); }
.fd-hero__tools a:hover { color: #fff; }

/* Homepage tool cards */
.fd-card__kicker { margin: 0; display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--fd-display); font-size: 0.78rem; font-weight: 600; color: var(--fd-accent-ink); }
.fd-card__kicker .fd-icon { width: 1em; height: 1em; }
.fd-card--tool { border-color: var(--fd-line-strong); }
.fd-card--tool:hover { border-color: var(--fd-accent); }

/* "Not sure which guide?" box (guides, empty search, 404, categories without a tree) */
.fd-tool-cta {
	display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 0.9rem; align-items: start;
	margin: 2rem 0 0; padding: 1rem 1.1rem;
	border: 1px solid var(--fd-line); border-radius: var(--fd-radius-lg);
	background: var(--fd-surface);
	max-width: var(--fd-column);
}
.fd-tool-cta__icon { color: var(--fd-accent-ink); width: 1.35rem; height: 1.35rem; margin-top: 0.15rem; }
.fd-tool-cta__text { margin: 0; font-size: 0.95rem; }
.fd-tool-cta__text strong { color: var(--fd-ink); }
.fd-tool-cta__button { grid-column: 2; justify-self: start; margin-top: 0.35rem; }
@media (max-width: 479px) { .fd-tool-cta { grid-template-columns: 1fr; } .fd-tool-cta__icon { display: none; } .fd-tool-cta__button { grid-column: 1; } }
.fd-archive__header + .fd-tool-cta { margin: 0 0 1.75rem; max-width: none; }

/* Category pages: the Fault Finder in a collapsed panel above the guides */
.fd-diagnose {
	margin: 0 0 1.75rem;
	border: 1px solid var(--fd-line-strong); border-radius: var(--fd-radius-lg);
	background: var(--fd-paper);
}
.fd-diagnose__summary {
	display: flex; align-items: center; gap: 0.6rem;
	padding: 0.85rem 1.1rem; min-height: 52px;
	font-family: var(--fd-display); font-weight: 600; color: var(--fd-ink);
	cursor: pointer; list-style: none;
}
.fd-diagnose__summary::-webkit-details-marker { display: none; }
.fd-diagnose__summary .fd-icon { color: var(--fd-accent-ink); }
.fd-diagnose__summary::after { content: "▸"; margin-left: auto; color: var(--fd-accent-ink); font-size: 0.8em; transition: transform 0.15s; }
.fd-diagnose[open] .fd-diagnose__summary::after { transform: rotate(90deg); }
.fd-diagnose__summary:hover { color: var(--fd-accent-ink); }
.fd-diagnose__body { padding: 0 1.1rem 1.1rem; }
.fd-diagnose__body > * { max-width: none; }
.fd-diagnose__body .fdt { margin: 0; }

/* Author initials in place of a missing photo */
.fd-avatar--initials {
	display: inline-grid; place-items: center; flex: none;
	border-radius: 50%; border: 1px solid var(--fd-line);
	background: var(--fd-accent-soft); color: var(--fd-accent-ink);
	font-family: var(--fd-display); font-weight: 700; letter-spacing: 0.02em; line-height: 1;
}
.fd-meta__avatar.fd-avatar--initials { width: 28px; height: 28px; font-size: 0.7rem; }
.fd-author-box__avatar.fd-avatar--initials { width: 64px; height: 64px; font-size: 1.4rem; }
.fd-author__avatar.fd-avatar--initials { width: 72px; height: 72px; font-size: 1.55rem; }

/* Tools section on the homepage keeps the same rhythm as the others */
.fd-section--tools .fd-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

@media print {
	.fd-header, .fd-footer, .fd-related, .fd-tags, .fd-toc, .fd-article__aside, .skip-link, .fd-consent, .fd-trust { display: none !important; }
	body { font-size: 11pt; color: #000; background: #fff; }
	a { color: #000; text-decoration: none; }
	.fd-content a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #555; }
	.fd-article__body { display: block; }
}
