/* ==========================================================================
   Porchlight: design system & components
   Mobile-first. Breakpoints: 640 (sm), 768 (md), 1024 (lg), 1280 (xl), 1600 (2xl)
   No web fonts: system serif/sans stacks (zero font requests, no layout shift).
   ========================================================================== */

/* 1. Tokens --------------------------------------------------------------- */
:root {
	--c-bg: #ffffff;
	--c-surface: #ffffff;
	--c-surface-2: #f5f6f8;
	--c-tint: #f2f7f5;
	--c-ink: #151a24;
	--c-text: #2a3140;
	--c-muted: #5a6374;
	--c-line: #e2e5eb;
	--c-line-strong: #c9ced8;
	--c-brand: #0e5a4b;
	--c-brand-hover: #0a4539;
	--c-brand-soft: #e7f2ef;
	--c-on-brand: #ffffff;
	--c-accent: #a85207;
	--c-accent-soft: #fdf3e6;
	--c-focus: #2563eb;
	--c-danger: #b42318;
	--c-danger-soft: #fef3f2;
	--c-success: #067647;
	--c-success-soft: #ecfdf3;
	--c-info: #1d4ed8;
	--c-info-soft: #eff4ff;
	--c-warn: #93370d;
	--c-warn-soft: #fffaeb;

	--font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--font-serif: "Iowan Old Style", "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
	--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--fs-xs: 0.8125rem;
	--fs-sm: 0.875rem;
	--fs-base: 1.0625rem;
	--fs-md: 1.125rem;
	--fs-lg: 1.25rem;
	--fs-xl: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem);
	--fs-2xl: clamp(1.625rem, 1.25rem + 1.6vw, 2.375rem);
	--fs-3xl: clamp(2rem, 1.35rem + 2.8vw, 3.25rem);

	--lh-tight: 1.2;
	--lh-snug: 1.35;
	--lh-body: 1.7;

	--sp-1: 0.25rem;
	--sp-2: 0.5rem;
	--sp-3: 0.75rem;
	--sp-4: 1rem;
	--sp-5: 1.5rem;
	--sp-6: 2rem;
	--sp-7: 3rem;
	--sp-8: 4rem;
	--sp-9: 6rem;

	--radius-sm: 6px;
	--radius: 10px;
	--radius-lg: 16px;
	--radius-pill: 999px;

	--shadow-sm: 0 1px 2px rgb(16 24 40 / 0.06);
	--shadow: 0 1px 3px rgb(16 24 40 / 0.08), 0 4px 12px rgb(16 24 40 / 0.06);
	--shadow-lg: 0 12px 32px rgb(16 24 40 / 0.14);

	--container: 1200px;
	--container-wide: 1100px;
	--narrow: 740px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 60px;
	--mobile-bar-h: 0px;

	--ease: cubic-bezier(0.2, 0, 0, 1);
	color-scheme: light;
}

/* Dark theme tokens: system preference unless the visitor picked light. */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--c-bg: #0f1217;
		--c-surface: #161a21;
		--c-surface-2: #1c212a;
		--c-tint: #141c1a;
		--c-ink: #f1f3f6;
		--c-text: #d5d9e0;
		--c-muted: #9aa3b2;
		--c-line: #2a303b;
		--c-line-strong: #3a4250;
		--c-brand: #5cc3a8;
		--c-brand-hover: #7fd4bd;
		--c-brand-soft: #16302a;
		--c-on-brand: #06231c;
		--c-accent: #f0a35c;
		--c-accent-soft: #2e2116;
		--c-focus: #7aa7ff;
		--c-danger: #ff8a80;
		--c-danger-soft: #3a1d1b;
		--c-success: #6fdc9f;
		--c-success-soft: #13291e;
		--c-info: #93b4ff;
		--c-info-soft: #18213a;
		--c-warn: #f5c46b;
		--c-warn-soft: #2d2412;
		--shadow: 0 1px 3px rgb(0 0 0 / 0.4), 0 4px 12px rgb(0 0 0 / 0.3);
		--shadow-lg: 0 12px 32px rgb(0 0 0 / 0.5);
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--c-bg: #0f1217;
	--c-surface: #161a21;
	--c-surface-2: #1c212a;
	--c-tint: #141c1a;
	--c-ink: #f1f3f6;
	--c-text: #d5d9e0;
	--c-muted: #9aa3b2;
	--c-line: #2a303b;
	--c-line-strong: #3a4250;
	--c-brand: #5cc3a8;
	--c-brand-hover: #7fd4bd;
	--c-brand-soft: #16302a;
	--c-on-brand: #06231c;
	--c-accent: #f0a35c;
	--c-accent-soft: #2e2116;
	--c-focus: #7aa7ff;
	--c-danger: #ff8a80;
	--c-danger-soft: #3a1d1b;
	--c-success: #6fdc9f;
	--c-success-soft: #13291e;
	--c-info: #93b4ff;
	--c-info-soft: #18213a;
	--c-warn: #f5c46b;
	--c-warn-soft: #2d2412;
	--shadow: 0 1px 3px rgb(0 0 0 / 0.4), 0 4px 12px rgb(0 0 0 / 0.3);
	--shadow-lg: 0 12px 32px rgb(0 0 0 / 0.5);
	color-scheme: dark;
}

/* Keep block-editor palette colors in sync with the active theme.
   ":root:root" outranks WordPress's global-styles ":root" whatever order the
   two stylesheets print in (plugin-rendered pages print global styles later). */
:root:root {
	--wp--preset--color--ink: var(--c-ink);
	--wp--preset--color--text: var(--c-text);
	--wp--preset--color--muted: var(--c-muted);
	--wp--preset--color--line: var(--c-line);
	--wp--preset--color--surface: var(--c-surface);
	--wp--preset--color--surface-alt: var(--c-surface-2);
	--wp--preset--color--brand: var(--c-brand);
	--wp--preset--color--brand-soft: var(--c-brand-soft);
	--wp--preset--color--accent: var(--c-accent);
	--wp--preset--color--accent-soft: var(--c-accent-soft);
}

/* 2. Base ------------------------------------------------------------------ */
*,
*::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,
:root body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--font-sans);
	font-size: var(--fs-base);
	line-height: var(--lh-body);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

body.has-mobile-bar {
	--mobile-bar-h: 64px;
	padding-bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom));
}

@media (min-width: 1024px) {
	body.has-mobile-bar {
		--mobile-bar-h: 0px;
		padding-bottom: 0;
	}
}

.site-main {
	flex: 1 0 auto;
	outline: none;
}

img,
svg,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
	display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--c-ink);
	font-family: var(--font-serif);
	font-weight: 700;
	line-height: var(--lh-tight);
	margin: 0 0 var(--sp-4);
	text-wrap: balance;
	overflow-wrap: break-word;
}

p,
ul,
ol,
dl,
figure,
blockquote,
table,
pre {
	margin: 0 0 var(--sp-5);
}

a {
	color: var(--c-brand);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--c-brand-hover);
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 3px solid var(--c-focus);
	outline-offset: 2px;
	border-radius: 4px;
}

::selection {
	background: var(--c-brand-soft);
	color: var(--c-ink);
}

hr {
	border: 0;
	border-top: 1px solid var(--c-line);
	margin: var(--sp-6) 0;
}

button {
	font: inherit;
	color: inherit;
}

.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;
	z-index: 1000;
	width: auto;
	height: auto;
	clip: auto;
	clip-path: none;
	padding: var(--sp-3) var(--sp-4);
	background: var(--c-surface);
	color: var(--c-ink);
	box-shadow: var(--shadow-lg);
	border-radius: var(--radius);
	white-space: normal;
}

[hidden] {
	display: none !important;
}

/* 3. Layout ---------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--narrow {
	max-width: calc(var(--narrow) + var(--gutter) * 2);
}

.container--wide {
	max-width: calc(var(--container-wide) + var(--gutter) * 2);
}

.container--calc {
	max-width: calc(980px + var(--gutter) * 2);
}

.section {
	padding-block: var(--sp-7);
}

.section--tint {
	background: var(--c-tint);
	border-block: 1px solid var(--c-line);
}

@media (min-width: 1024px) {
	.section {
		padding-block: var(--sp-8);
	}
}

.grid {
	display: grid;
	gap: var(--sp-5);
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
	.grid--2,
	.grid--3,
	.grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.grid--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
	.grid {
		gap: var(--sp-6);
	}
}

/* Large screens: scale type a touch so 2K/4K doesn't feel tiny. */
@media (min-width: 1600px) {
	:root {
		--container: 1320px;
		--narrow: 780px;
	}
	html {
		font-size: 106.25%;
	}
}

@media (min-width: 2400px) {
	html {
		font-size: 125%;
	}
}

/* 4. Buttons, badges, chips ---------------------------------------------- */
.btn,
.wp-block-button__link,
.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-2);
	min-height: 44px;
	padding: 0.625rem 1.125rem;
	border: 1px solid var(--c-brand);
	border-radius: var(--radius-sm);
	background: var(--c-brand);
	color: var(--c-on-brand);
	font-weight: 600;
	font-size: var(--fs-sm);
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}

.btn:hover,
.wp-block-button__link:hover {
	background: var(--c-brand-hover);
	border-color: var(--c-brand-hover);
	color: var(--c-on-brand);
	text-decoration: none;
}

.btn--ghost {
	background: transparent;
	color: var(--c-brand);
	border-color: var(--c-line-strong);
}

.btn--ghost:hover {
	background: var(--c-brand-soft);
	color: var(--c-brand-hover);
	border-color: var(--c-brand);
}

.btn--large {
	min-height: 50px;
	padding: 0.75rem 1.5rem;
	font-size: var(--fs-base);
}

.btn--small {
	min-height: 38px;
	padding: 0.4rem 0.875rem;
}

.btn[disabled],
.btn[aria-busy="true"] {
	opacity: 0.65;
	cursor: progress;
}

.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--c-ink);
	cursor: pointer;
}

.icon-btn:hover {
	background: var(--c-surface-2);
}

.link-btn {
	border: 0;
	padding: 0;
	background: none;
	color: inherit;
	text-decoration: underline;
	cursor: pointer;
	font-size: inherit;
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-1);
	font-weight: 600;
	text-decoration: none;
}

.text-link:hover {
	text-decoration: underline;
}

.kicker {
	margin: 0 0 var(--sp-2);
	color: var(--c-accent);
	font-family: var(--font-sans);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.badge {
	display: inline-block;
	padding: 0.15rem 0.55rem;
	border-radius: var(--radius-pill);
	background: var(--c-brand-soft);
	color: var(--c-brand);
	font-size: var(--fs-xs);
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
}

.badge:hover {
	color: var(--c-brand-hover);
	text-decoration: none;
}

.badge--trending {
	background: var(--c-accent-soft);
	color: var(--c-accent);
}

.badge--tool {
	background: var(--c-info-soft);
	color: var(--c-info);
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.chip {
	display: inline-block;
	padding: 0.3rem 0.75rem;
	border: 1px solid var(--c-line);
	border-radius: var(--radius-pill);
	background: var(--c-surface);
	color: var(--c-text);
	font-size: var(--fs-sm);
	line-height: 1.4;
	text-decoration: none;
}

a.chip:hover,
a.chip.is-active {
	border-color: var(--c-brand);
	color: var(--c-brand);
	background: var(--c-brand-soft);
	text-decoration: none;
}

.chips--large .chip {
	padding: 0.5rem 1rem;
	font-size: var(--fs-base);
}

.chips--tags {
	margin-block: var(--sp-6);
}

.label {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	margin: 0 0 var(--sp-3);
	padding: 0.2rem 0.6rem;
	border-radius: var(--radius-sm);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: var(--c-surface-2);
	color: var(--c-muted);
}

.label--developing {
	background: var(--c-danger-soft);
	color: var(--c-danger);
}

.label--developing::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

.label--explainer {
	background: var(--c-info-soft);
	color: var(--c-info);
}

.label--analysis {
	background: var(--c-warn-soft);
	color: var(--c-warn);
}

.label--opinion {
	background: var(--c-accent-soft);
	color: var(--c-accent);
}

.label--sponsored {
	background: var(--c-warn-soft);
	color: var(--c-warn);
}

/* 5. Header & navigation -------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--c-bg) 92%, transparent);
	border-bottom: 1px solid var(--c-line);
	-webkit-backdrop-filter: saturate(1.6) blur(10px);
	backdrop-filter: saturate(1.6) blur(10px);
}

.admin-bar .site-header {
	top: 46px;
}

@media (min-width: 783px) {
	.admin-bar .site-header {
		top: 32px;
	}
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	min-height: var(--header-h);
}

.site-brand {
	flex: 1 1 auto;
	min-width: 0;
}

.custom-logo-link img {
	max-height: 40px;
	width: auto;
}

.wordmark {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--c-ink);
	font-family: var(--font-serif);
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-decoration: none;
	white-space: nowrap;
}

.wordmark:hover {
	color: var(--c-ink);
	text-decoration: none;
}

.wordmark__img {
	width: 26px;
	height: 26px;
	flex: none;
	border-radius: 7px;
}

.wordmark__mark {
	position: relative;
	width: 26px;
	height: 26px;
	flex: none;
	border-radius: 7px;
	background: var(--c-brand);
}

.wordmark__mark::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #f5b74e;
	transform: translate(-50%, -50%);
	box-shadow: 0 0 0 4px rgb(245 183 78 / 0.25);
}

.wordmark__text {
	overflow: hidden;
	text-overflow: ellipsis;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: var(--sp-1);
	flex: none;
}

.theme-toggle__sun {
	display: none;
}

:root[data-theme="dark"] .theme-toggle__sun {
	display: inline;
}

:root[data-theme="dark"] .theme-toggle__moon {
	display: none;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-toggle__sun {
		display: inline;
	}
	:root:not([data-theme="light"]) .theme-toggle__moon {
		display: none;
	}
}

.menu-toggle__close {
	display: none;
}

.nav-open .menu-toggle__open {
	display: none;
}

.nav-open .menu-toggle__close {
	display: inline;
}

/* Mobile/tablet nav: full-height panel under the header. */
.primary-nav {
	display: none;
}

.nav-open .primary-nav {
	display: block;
	position: fixed;
	inset: var(--header-h) 0 0 0;
	z-index: 49;
	overflow-y: auto;
	padding: var(--sp-4) var(--gutter) calc(var(--sp-7) + var(--mobile-bar-h));
	background: var(--c-bg);
	border-top: 1px solid var(--c-line);
}

.admin-bar.nav-open .primary-nav {
	top: calc(var(--header-h) + 46px);
}

.primary-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav a {
	display: block;
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--c-line);
	color: var(--c-ink);
	font-size: var(--fs-md);
	font-weight: 600;
	text-decoration: none;
}

.primary-nav .sub-menu a {
	padding-left: var(--sp-4);
	font-weight: 400;
	font-size: var(--fs-base);
}

.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav .current_page_item > a {
	color: var(--c-brand);
}

body.nav-open {
	overflow: hidden;
}

@media (min-width: 1024px) {
	.site-brand {
		flex: 0 0 auto;
	}
	.menu-toggle {
		display: none;
	}
	.primary-nav,
	.nav-open .primary-nav {
		display: block;
		position: static;
		flex: 1 1 auto;
		padding: 0;
		border: 0;
		background: none;
		overflow: visible;
	}
	.primary-nav > ul {
		display: flex;
		justify-content: center;
		gap: 0.15rem;
	}
	.primary-nav > ul > li {
		position: relative;
	}
	.primary-nav a {
		padding: 0.5rem 0.7rem;
		border: 0;
		border-radius: var(--radius-sm);
		font-size: var(--fs-sm);
		white-space: nowrap;
	}
	.primary-nav a:hover {
		background: var(--c-surface-2);
		color: var(--c-ink);
	}
	.primary-nav > ul > .current-menu-item > a,
	.primary-nav > ul > .current-menu-ancestor > a,
	.primary-nav > ul > .current_page_item > a {
		color: var(--c-brand);
		box-shadow: inset 0 -2px 0 var(--c-brand);
		border-radius: 0;
	}
	.primary-nav .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 230px;
		padding: var(--sp-2);
		border: 1px solid var(--c-line);
		border-radius: var(--radius);
		background: var(--c-surface);
		box-shadow: var(--shadow-lg);
		visibility: hidden;
		opacity: 0;
		transform: translateY(4px);
		transition: opacity 0.15s var(--ease), transform 0.15s var(--ease), visibility 0.15s;
	}
	.primary-nav li:hover > .sub-menu,
	.primary-nav li:focus-within > .sub-menu {
		visibility: visible;
		opacity: 1;
		transform: none;
	}
	.primary-nav .sub-menu a {
		padding: 0.5rem 0.75rem;
		font-size: var(--fs-sm);
	}
	body.nav-open {
		overflow: auto;
	}
}

@media (min-width: 1024px) and (max-width: 1180px) {
	.primary-nav a {
		padding-inline: 0.45rem;
	}
}

/* Search panel */
.search-panel {
	position: absolute;
	inset: 100% 0 auto 0;
	padding-block: var(--sp-4) var(--sp-5);
	border-bottom: 1px solid var(--c-line);
	background: var(--c-bg);
	box-shadow: var(--shadow-lg);
}

.search-panel__form {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	max-width: var(--narrow);
	margin-inline: auto;
	padding: 0 0 0 var(--sp-4);
	border: 2px solid var(--c-brand);
	border-radius: var(--radius);
	background: var(--c-surface);
	color: var(--c-muted);
}

.search-panel__form input {
	flex: 1;
	min-width: 0;
	height: 50px;
	border: 0;
	background: transparent;
	color: var(--c-ink);
	font-size: var(--fs-md);
	outline: none;
}

.search-panel__results {
	max-width: var(--narrow);
	margin: var(--sp-2) auto 0;
	padding: 0;
	list-style: none;
}

.search-panel__results:empty {
	display: none;
}

.search-panel__results a,
.search-panel__results .search-empty {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--sp-3);
	padding: 0.7rem var(--sp-3);
	border-radius: var(--radius-sm);
	color: var(--c-ink);
	text-decoration: none;
}

.search-panel__results a:hover,
.search-panel__results a[aria-selected="true"] {
	background: var(--c-brand-soft);
}

.search-panel__results .search-type {
	flex: none;
	color: var(--c-muted);
	font-size: var(--fs-xs);
}

.search-panel__results .search-all a {
	color: var(--c-brand);
	font-weight: 600;
}

.site-notice {
	padding-block: var(--sp-3);
	background: var(--c-success-soft);
	color: var(--c-success);
	font-weight: 600;
	text-align: center;
}

/* 6. Breadcrumbs & page headers ------------------------------------------ */
.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.15rem 0;
	margin: 0 0 var(--sp-4);
	padding: 0;
	list-style: none;
	font-size: var(--fs-xs);
	color: var(--c-muted);
}

.breadcrumbs li {
	display: inline-flex;
	align-items: center;
	min-width: 0;
}

.breadcrumbs li + li::before {
	content: "/";
	margin-inline: 0.45rem;
	color: var(--c-line-strong);
}

.breadcrumbs a {
	color: var(--c-muted);
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: var(--c-brand);
	text-decoration: underline;
}

.breadcrumbs [aria-current] {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 32ch;
}

.page-header {
	padding-block: var(--sp-6) var(--sp-5);
}

.page-header--band {
	background: var(--c-tint);
	border-bottom: 1px solid var(--c-line);
	padding-block: var(--sp-6);
}

.page-title {
	font-size: var(--fs-3xl);
	letter-spacing: -0.015em;
	margin-bottom: var(--sp-3);
}

.page-intro {
	color: var(--c-muted);
	font-size: var(--fs-md);
	max-width: 62ch;
}

.page-intro p:last-child {
	margin-bottom: 0;
}

.page-updated {
	color: var(--c-muted);
	font-size: var(--fs-sm);
}

.subtopics {
	margin-top: var(--sp-5);
}

/* 7. Section heads -------------------------------------------------------- */
.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--sp-4);
	margin-bottom: var(--sp-5);
}

.section-title {
	font-size: var(--fs-xl);
	margin: 0;
}

.section > .section-title,
.related > .section-title {
	margin-bottom: var(--sp-5);
}

.section-link {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-1);
	flex: none;
	font-size: var(--fs-sm);
	font-weight: 600;
	text-decoration: none;
}

.section-link:hover {
	text-decoration: underline;
}

/* 8. Cards ---------------------------------------------------------------- */
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.card__media {
	display: block;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--c-surface-2);
	aspect-ratio: 16 / 9;
	margin-bottom: var(--sp-4);
}

.card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s var(--ease);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.card:hover .card__media img {
		transform: scale(1.025);
	}
}

.card__meta-top {
	margin-bottom: var(--sp-2);
}

.card__title {
	font-size: var(--fs-lg);
	line-height: var(--lh-snug);
	margin: 0 0 var(--sp-2);
}

.card__title a {
	color: var(--c-ink);
	text-decoration: none;
}

.card__title a:hover {
	color: var(--c-brand);
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

/* Whole card clickable via the title link, without nesting links. */
.card--card .card__title a::after,
.card--compact .card__title a::after,
.card--list .card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.card .badge {
	position: relative;
	z-index: 2;
}

.card__excerpt {
	color: var(--c-muted);
	font-size: var(--fs-sm);
	line-height: 1.6;
	margin: 0 0 var(--sp-3);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.2rem 0.6rem;
	margin-top: auto;
	color: var(--c-muted);
	font-size: var(--fs-xs);
}

.card__author {
	font-weight: 600;
	color: var(--c-text);
}

.card--feature .card__title {
	font-size: var(--fs-2xl);
	letter-spacing: -0.01em;
}

.card--feature .card__excerpt {
	font-size: var(--fs-base);
	-webkit-line-clamp: 4;
}

.card--compact {
	flex-direction: row;
	align-items: flex-start;
	gap: var(--sp-4);
	padding-block: var(--sp-4);
	border-bottom: 1px solid var(--c-line);
}

.card--compact .card__media {
	flex: 0 0 104px;
	margin: 0;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius-sm);
}

.card--compact .card__title {
	font-size: var(--fs-base);
	font-family: var(--font-serif);
}

.card--list {
	flex-direction: row;
	gap: var(--sp-4);
	align-items: baseline;
}

.card__number {
	flex: none;
	color: var(--c-brand);
	font-family: var(--font-serif);
	font-size: var(--fs-xl);
	font-weight: 700;
	line-height: 1;
	min-width: 2ch;
}

.card--list .card__title {
	font-size: var(--fs-md);
	margin-bottom: var(--sp-1);
}

/* 9. Homepage ------------------------------------------------------------- */
.hero {
	position: relative;
	padding-block: var(--sp-7);
	background:
		radial-gradient(1100px 380px at 85% -10%, var(--c-brand-soft), transparent 70%),
		var(--c-bg);
	border-bottom: 1px solid var(--c-line);
}

.hero__inner {
	display: grid;
	gap: var(--sp-6);
	align-items: center;
}

.hero__title {
	font-size: var(--fs-3xl);
	letter-spacing: -0.02em;
	line-height: 1.1;
	max-width: 17ch;
	margin-bottom: var(--sp-4);
}

.hero__text {
	color: var(--c-muted);
	font-size: var(--fs-lg);
	line-height: 1.55;
	max-width: 46ch;
	margin-bottom: var(--sp-5);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
}

.hero__quick {
	padding: var(--sp-5);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-lg);
	background: var(--c-surface);
	box-shadow: var(--shadow);
}

.hero__quick-title {
	margin: 0 0 var(--sp-2);
	color: var(--c-muted);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.hero__quick ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hero__quick a {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	padding: 0.8rem var(--sp-2);
	border-bottom: 1px solid var(--c-line);
	color: var(--c-ink);
	font-weight: 600;
	text-decoration: none;
}

.hero__quick li:last-child a {
	border-bottom: 0;
}

.hero__quick a span {
	flex: 1;
}

.hero__quick a .icon-calc {
	color: var(--c-brand);
}

.hero__quick a .icon-arrow {
	color: var(--c-muted);
	transition: transform 0.15s var(--ease);
}

.hero__quick a:hover {
	color: var(--c-brand);
}

.hero__quick a:hover .icon-arrow {
	transform: translateX(3px);
	color: var(--c-brand);
}

@media (min-width: 1024px) {
	.hero {
		padding-block: var(--sp-9) var(--sp-8);
	}
	.hero__inner {
		grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
		gap: var(--sp-8);
	}
}

.featured-calc__inner {
	display: grid;
	gap: var(--sp-6);
	align-items: start;
}

.featured-calc__copy .section-title {
	margin-bottom: var(--sp-3);
}

@media (min-width: 1024px) {
	.featured-calc__inner {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
		gap: var(--sp-8);
	}
	.featured-calc__copy {
		position: sticky;
		top: calc(var(--header-h) + var(--sp-6));
	}
}

.lead-grid {
	display: grid;
	gap: var(--sp-5);
}

.lead-grid__list .card--compact:first-child {
	padding-top: 0;
}

.lead-grid__list .card--compact:last-child {
	border-bottom: 0;
}

@media (min-width: 1024px) {
	.lead-grid {
		grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
		gap: var(--sp-7);
	}
}

.numbered-list {
	display: grid;
	gap: var(--sp-5) var(--sp-7);
	margin: 0;
	padding: 0;
	list-style: none;
}

.numbered-list > li {
	padding-bottom: var(--sp-5);
	border-bottom: 1px solid var(--c-line);
}

@media (min-width: 768px) {
	.numbered-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1280px) {
	.numbered-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.topic-grid,
.tool-grid,
.trust__grid {
	display: grid;
	gap: var(--sp-4);
	margin: 0;
	padding: 0;
	list-style: none;
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
	.topic-grid,
	.tool-grid,
	.trust__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.topic-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.tool-grid,
	.trust__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.topic-card,
.tool-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: var(--sp-5);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	background: var(--c-surface);
	transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.topic-card:hover,
.tool-card:hover {
	border-color: var(--c-brand);
	box-shadow: var(--shadow);
}

.topic-card__title,
.tool-card__title {
	font-size: var(--fs-md);
	margin-bottom: var(--sp-2);
}

.topic-card__title a,
.tool-card__title a {
	color: var(--c-ink);
	text-decoration: none;
}

.topic-card__title a::after,
.tool-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.topic-card p,
.tool-card__desc {
	color: var(--c-muted);
	font-size: var(--fs-sm);
	margin: 0 0 var(--sp-3);
}

.topic-card__count {
	margin-top: auto;
	color: var(--c-brand);
	font-size: var(--fs-xs);
	font-weight: 700;
}

.tool-card__icon {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	margin-bottom: var(--sp-3);
	border-radius: var(--radius-sm);
	background: var(--c-brand-soft);
	color: var(--c-brand);
}

.trust {
	border-top: 1px solid var(--c-line);
}

.trust__grid li {
	padding: var(--sp-5);
	border-radius: var(--radius);
	background: var(--c-surface-2);
}

.trust__grid svg {
	color: var(--c-brand);
	margin-bottom: var(--sp-3);
}

.trust__grid h3 {
	font-size: var(--fs-md);
	margin-bottom: var(--sp-2);
}

.trust__grid p {
	color: var(--c-muted);
	font-size: var(--fs-sm);
	margin: 0;
}

.trust__links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-5);
	margin: var(--sp-5) 0 0;
}

/* 10. Newsletter ----------------------------------------------------------- */
.newsletter {
	display: grid;
	gap: var(--sp-4);
	padding: var(--sp-6) var(--sp-5);
	border-radius: var(--radius-lg);
	background: var(--c-brand);
	color: var(--c-on-brand);
}

.newsletter__icon {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: var(--sp-3);
	border-radius: 50%;
	background: rgb(255 255 255 / 0.14);
}

.newsletter__title {
	color: inherit;
	font-size: var(--fs-xl);
	margin-bottom: var(--sp-2);
}

.newsletter__text {
	margin: 0;
	opacity: 0.9;
}

.newsletter__form {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
	align-self: end;
}

.newsletter__form input[type="email"] {
	flex: 1 1 220px;
	min-width: 0;
	min-height: 48px;
	padding: 0 var(--sp-4);
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	background: #fff;
	color: #151a24;
	font-size: var(--fs-base);
}

.newsletter__form .btn {
	flex: 0 0 auto;
	min-height: 48px;
	background: #f5b74e;
	border-color: #f5b74e;
	color: #1f1300;
}

.newsletter__form .btn:hover {
	background: #ffc96e;
	border-color: #ffc96e;
	color: #1f1300;
}

.newsletter .form__status {
	flex-basis: 100%;
	margin: 0;
	font-weight: 600;
}

.newsletter .form__status:empty {
	display: none;
}

.newsletter__fine {
	grid-column: 1 / -1;
	margin: 0;
	font-size: var(--fs-xs);
	opacity: 0.85;
}

.newsletter__fine a {
	color: inherit;
}

:root[data-theme="dark"] .newsletter {
	background: var(--c-brand-soft);
	color: var(--c-ink);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .newsletter {
		background: var(--c-brand-soft);
		color: var(--c-ink);
	}
}

@media (min-width: 900px) {
	.newsletter {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
		align-items: center;
		gap: var(--sp-5) var(--sp-7);
		padding: var(--sp-7);
	}
}

.article__main .newsletter,
.newsletter--compact {
	grid-template-columns: minmax(0, 1fr);
	padding: var(--sp-6) var(--sp-5);
	margin-block: var(--sp-7);
}

/* 11. Article -------------------------------------------------------------- */
.article__header {
	padding-block: var(--sp-6) var(--sp-5);
}

.article__title {
	font-size: var(--fs-3xl);
	letter-spacing: -0.02em;
	line-height: 1.12;
	margin-bottom: var(--sp-4);
}

.article__dek {
	color: var(--c-muted);
	font-size: var(--fs-lg);
	line-height: 1.55;
	margin-bottom: var(--sp-5);
}

.byline {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	padding-block: var(--sp-4);
	border-block: 1px solid var(--c-line);
	font-size: var(--fs-sm);
	color: var(--c-muted);
}

.byline--compact {
	border: 0;
	padding: 0;
}

.byline__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	flex: none;
}

.byline__text {
	display: flex;
	flex-wrap: wrap;
	gap: 0.15rem 0.9rem;
}

.byline__author,
.byline__reviewer {
	color: var(--c-text);
}

.byline__author a,
.byline__reviewer a {
	color: var(--c-ink);
	font-weight: 700;
	text-decoration: none;
}

.byline__author a:hover,
.byline__reviewer a:hover {
	text-decoration: underline;
}

.byline__dates {
	display: flex;
	flex-wrap: wrap;
	gap: 0.15rem 0.9rem;
	flex-basis: 100%;
}

.disclosure {
	display: flex;
	gap: var(--sp-2);
	margin: var(--sp-4) 0 0;
	padding: var(--sp-3) var(--sp-4);
	border-radius: var(--radius-sm);
	background: var(--c-surface-2);
	color: var(--c-muted);
	font-size: var(--fs-xs);
	line-height: 1.55;
}

.disclosure svg {
	flex: none;
	margin-top: 2px;
}

.article__media {
	margin-bottom: var(--sp-6);
}

.article__media img {
	width: 100%;
	border-radius: var(--radius);
	aspect-ratio: 16 / 9;
	object-fit: cover;
	background: var(--c-surface-2);
}

.article__media figcaption {
	margin-top: var(--sp-2);
	color: var(--c-muted);
	font-size: var(--fs-xs);
}

.article__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	max-width: calc(var(--narrow) + var(--gutter) * 2);
}

.article__main {
	min-width: 0;
}

@media (min-width: 1100px) {
	.article__layout.has-aside {
		max-width: calc(var(--narrow) + 300px + var(--sp-8) + var(--gutter) * 2);
		grid-template-columns: minmax(0, var(--narrow)) 300px;
		gap: var(--sp-8);
	}
}

.article__aside {
	display: none;
}

@media (min-width: 1100px) {
	.article__aside {
		display: block;
	}
	.article__aside-sticky {
		position: sticky;
		top: calc(var(--header-h) + var(--sp-5));
	}
}

.widget {
	margin-bottom: var(--sp-6);
	font-size: var(--fs-sm);
}

.widget-title {
	font-size: var(--fs-base);
	font-family: var(--font-sans);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--c-muted);
}

/* 12. Entry content (long-form typography) ------------------------------- */
.entry-content {
	font-size: var(--fs-md);
	line-height: var(--lh-body);
	overflow-wrap: break-word;
}

@media (min-width: 768px) {
	.entry-content {
		font-size: 1.1875rem;
	}
}

.entry-content > * {
	max-width: 100%;
}

.entry-content h2 {
	font-size: var(--fs-2xl);
	margin-top: var(--sp-7);
	letter-spacing: -0.01em;
}

.entry-content h3 {
	font-size: var(--fs-xl);
	margin-top: var(--sp-6);
}

.entry-content h4 {
	font-size: var(--fs-lg);
	margin-top: var(--sp-5);
}

.entry-content :is(h2, h3, h4):first-child {
	margin-top: 0;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.4em;
}

.entry-content li {
	margin-bottom: var(--sp-2);
}

.entry-content li::marker {
	color: var(--c-brand);
}

.entry-content strong {
	color: var(--c-ink);
}

.entry-content blockquote,
.entry-content .wp-block-quote {
	margin-inline: 0;
	padding: var(--sp-2) 0 var(--sp-2) var(--sp-5);
	border-left: 4px solid var(--c-brand);
	font-family: var(--font-serif);
	font-size: var(--fs-lg);
	color: var(--c-ink);
}

.entry-content blockquote cite {
	display: block;
	margin-top: var(--sp-2);
	font-family: var(--font-sans);
	font-size: var(--fs-sm);
	font-style: normal;
	color: var(--c-muted);
}

.entry-content .is-style-source {
	font-family: var(--font-sans);
	font-size: var(--fs-base);
	border-left-color: var(--c-line-strong);
	background: var(--c-surface-2);
	padding: var(--sp-4) var(--sp-5);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.entry-content code {
	padding: 0.1em 0.35em;
	border-radius: 4px;
	background: var(--c-surface-2);
	font-family: var(--font-mono);
	font-size: 0.9em;
}

.entry-content pre {
	overflow-x: auto;
	padding: var(--sp-4);
	border-radius: var(--radius-sm);
	background: var(--c-surface-2);
	font-size: var(--fs-sm);
}

.entry-content figure {
	margin-inline: 0;
}

.entry-content figcaption,
.entry-content .wp-element-caption {
	margin-top: var(--sp-2);
	color: var(--c-muted);
	font-size: var(--fs-xs);
	line-height: 1.5;
}

.entry-content img {
	border-radius: var(--radius-sm);
}

.entry-content .alignwide,
.entry-content .alignfull {
	max-width: none;
}

.entry-content .aligncenter {
	margin-inline: auto;
}

.entry-content .alignleft,
.entry-content .alignright {
	max-width: 50%;
}

.entry-content .alignleft {
	float: left;
	margin: 0.3em var(--sp-5) var(--sp-3) 0;
}

.entry-content .alignright {
	float: right;
	margin: 0.3em 0 var(--sp-3) var(--sp-5);
}

.entry-content--full > .alignfull {
	margin-inline: 0;
}

.entry-content--full > :not(.alignfull):not(.alignwide) {
	max-width: var(--narrow);
	margin-inline: auto;
	padding-inline: var(--gutter);
	box-sizing: content-box;
}

.entry-content--full > .alignwide {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* Tables: always scroll inside their box, never the page. */
.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--fs-sm);
	line-height: 1.5;
}

.entry-content > table {
	display: block;
	overflow-x: auto;
}

.wp-block-table {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.entry-content th,
.entry-content td {
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--c-line);
	text-align: left;
	vertical-align: top;
}

.entry-content thead th {
	background: var(--c-surface-2);
	color: var(--c-ink);
	font-weight: 700;
	white-space: nowrap;
}

.wp-block-table[data-pl-scrollable]:focus-visible {
	outline: 3px solid var(--c-focus);
	outline-offset: 2px;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background: var(--c-surface-2);
}

.wp-block-table.is-style-comparison table {
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
}

.wp-block-table.is-style-comparison th,
.wp-block-table.is-style-comparison td {
	border-width: 0 0 1px;
}

.wp-block-table.is-style-comparison thead th {
	background: var(--c-brand);
	color: var(--c-on-brand);
}

.wp-block-table.is-style-comparison tbody td:first-child {
	font-weight: 700;
	color: var(--c-ink);
}

.wp-block-table.is-style-comparison tbody tr:last-child td {
	border-bottom: 0;
}

/* Block styles & patterns */
.is-style-callout {
	margin-block: var(--sp-6);
	padding: var(--sp-5);
	border-left: 4px solid var(--c-accent);
	border-radius: 0 var(--radius) var(--radius) 0;
	background: var(--c-accent-soft);
}

.is-style-callout > :last-child,
.is-style-key-takeaways > :last-child,
.status-box > :last-child {
	margin-bottom: 0;
}

.example-box {
	border-left-color: var(--c-info);
	background: var(--c-info-soft);
}

.example-box h3 {
	font-family: var(--font-sans);
	font-size: var(--fs-sm);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--c-info);
	margin: 0 0 var(--sp-2);
}

.is-style-key-takeaways {
	margin-block: var(--sp-6);
	padding: var(--sp-5) var(--sp-5) var(--sp-4);
	border: 1px solid var(--c-line);
	border-top: 4px solid var(--c-brand);
	border-radius: var(--radius);
	background: var(--c-surface);
	box-shadow: var(--shadow-sm);
}

.is-style-key-takeaways h2 {
	font-size: var(--fs-lg);
	margin: 0 0 var(--sp-3);
}

.bottom-line {
	background: var(--c-tint);
}

.is-style-checklist {
	list-style: none;
	padding-left: 0 !important;
}

.is-style-checklist li {
	position: relative;
	padding-left: 1.9em;
}

.is-style-checklist li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0.3em;
	display: grid;
	place-items: center;
	width: 1.2em;
	height: 1.2em;
	border-radius: 50%;
	background: var(--c-brand-soft);
	color: var(--c-brand);
	font-size: 0.85em;
	font-weight: 700;
	line-height: 1;
}

.is-style-steps {
	list-style: none;
	counter-reset: step;
	padding-left: 0 !important;
}

.is-style-steps > li {
	position: relative;
	counter-increment: step;
	padding: 0 0 var(--sp-4) 3rem;
	margin: 0;
}

.is-style-steps > li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: 0;
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--c-brand);
	color: var(--c-on-brand);
	font-size: var(--fs-sm);
	font-weight: 700;
}

.is-style-steps > li:not(:last-child)::after {
	content: "";
	position: absolute;
	left: calc(1rem - 1px);
	top: 2.25rem;
	bottom: 0.25rem;
	width: 2px;
	background: var(--c-line);
}

.status-box {
	margin-block: var(--sp-6);
	padding: var(--sp-5);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
}

.status-box h2 {
	font-size: var(--fs-lg);
	margin-top: 0;
}

.status {
	padding: var(--sp-3) var(--sp-4);
	border-left: 4px solid;
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	font-size: var(--fs-base);
}

.status--confirmed {
	border-color: var(--c-success);
	background: var(--c-success-soft);
}

.status--reported {
	border-color: var(--c-info);
	background: var(--c-info-soft);
}

.status--unconfirmed {
	border-color: var(--c-warn);
	background: var(--c-warn-soft);
}

.status--opinion {
	border-color: var(--c-accent);
	background: var(--c-accent-soft);
}

.pros-cons {
	gap: var(--sp-4) !important;
}

.pros-cons .wp-block-column {
	padding: var(--sp-5);
	border-radius: var(--radius);
	background: var(--c-surface-2);
}

.pros-cons .pros {
	background: var(--c-success-soft);
}

.pros-cons .cons {
	background: var(--c-danger-soft);
}

.pros-cons h3 {
	margin-top: 0;
	font-size: var(--fs-md);
}

.inline-disclosure {
	padding: var(--sp-3) var(--sp-4);
	border-radius: var(--radius-sm);
	background: var(--c-surface-2);
	color: var(--c-muted);
	font-size: var(--fs-xs);
}

/* 13. TOC, sources, FAQ, author, related -------------------------------- */
.toc {
	margin-block: var(--sp-6);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	background: var(--c-surface-2);
	font-size: var(--fs-sm);
}

.toc summary {
	padding: var(--sp-4) var(--sp-5);
	color: var(--c-ink);
	font-weight: 700;
	cursor: pointer;
	list-style-position: inside;
}

.toc__list {
	margin: 0;
	padding: 0 var(--sp-5) var(--sp-4) calc(var(--sp-5) + 1.2em);
}

.toc__list li {
	margin-bottom: var(--sp-2);
}

.toc__list a {
	display: inline-block;
	min-height: 24px; /* WCAG 2.2 target size (2.5.8). */
	padding-block: 2px;
	color: var(--c-text);
	text-decoration: none;
}

.toc__list a:hover,
.toc__list a.is-active {
	color: var(--c-brand);
	text-decoration: underline;
}

.toc__sub {
	margin: var(--sp-2) 0 0;
	padding-left: 1.1em;
	list-style: lower-alpha;
}

.sources {
	margin-block: var(--sp-7) var(--sp-5);
	padding-top: var(--sp-5);
	border-top: 1px solid var(--c-line);
	font-size: var(--fs-sm);
}

.sources__title {
	font-family: var(--font-sans);
	font-size: var(--fs-sm);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--c-muted);
}

.sources__list {
	padding-left: 1.3em;
	color: var(--c-muted);
}

.sources__list li {
	margin-bottom: var(--sp-2);
	overflow-wrap: anywhere;
}

.sources__verified {
	color: var(--c-muted);
}

.faq {
	margin-block: var(--sp-7);
}

.faq h2 {
	font-size: var(--fs-2xl);
}

.faq__item {
	border-bottom: 1px solid var(--c-line);
}

.faq__item:first-of-type {
	border-top: 1px solid var(--c-line);
}

.faq__item summary {
	position: relative;
	padding: var(--sp-4) 2.5rem var(--sp-4) 0;
	color: var(--c-ink);
	font-size: var(--fs-md);
	font-weight: 700;
	line-height: var(--lh-snug);
	cursor: pointer;
	list-style: none;
}

.faq__item summary::-webkit-details-marker {
	display: none;
}

.faq__item summary::after {
	content: "";
	position: absolute;
	right: 0.5rem;
	top: 50%;
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--c-brand);
	border-bottom: 2px solid var(--c-brand);
	transform: translateY(-75%) rotate(45deg);
	transition: transform 0.2s var(--ease);
}

.faq__item[open] summary::after {
	transform: translateY(-25%) rotate(-135deg);
}

.faq__answer {
	padding-bottom: var(--sp-4);
	color: var(--c-text);
}

.faq__answer > :last-child {
	margin-bottom: 0;
}

.standards {
	display: flex;
	gap: var(--sp-3);
	margin-block: var(--sp-6);
	padding: var(--sp-4) var(--sp-5);
	border-radius: var(--radius);
	background: var(--c-tint);
	color: var(--c-muted);
	font-size: var(--fs-sm);
}

.standards svg {
	flex: none;
	color: var(--c-brand);
}

.standards p {
	margin: 0;
}

.author-box {
	display: flex;
	gap: var(--sp-4);
	margin-block: var(--sp-6);
	padding: var(--sp-5);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-lg);
	background: var(--c-surface);
}

.author-box__avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	flex: none;
}

.author-box__name {
	font-size: var(--fs-lg);
	margin-bottom: var(--sp-1);
}

.author-box__name a {
	color: var(--c-ink);
	text-decoration: none;
}

.author-box__role {
	margin: 0 0 var(--sp-3);
	color: var(--c-muted);
	font-size: var(--fs-sm);
}

.author-box__bio {
	font-size: var(--fs-sm);
	margin-bottom: var(--sp-3);
}

.author-box .chips {
	margin-bottom: var(--sp-3);
}

.author-box .chip {
	font-size: var(--fs-xs);
	padding: 0.15rem 0.6rem;
}

.author-box__links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-4);
	margin: 0;
	font-size: var(--fs-sm);
	font-weight: 600;
}

.tool-callout {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: var(--sp-3) var(--sp-4);
	align-items: center;
	margin-block: var(--sp-6);
	padding: var(--sp-5);
	border: 1px solid var(--c-brand);
	border-radius: var(--radius-lg);
	background: var(--c-brand-soft);
}

.tool-callout .btn {
	grid-column: 1 / -1;
	justify-self: start;
}

.tool-callout .kicker {
	margin-bottom: 0;
}

.tool-callout__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: var(--radius);
	background: var(--c-brand);
	color: var(--c-on-brand);
}

.tool-callout__title {
	margin: 0;
	font-family: var(--font-serif);
	font-size: var(--fs-lg);
	font-weight: 700;
}

.tool-callout__title a {
	color: var(--c-ink);
	text-decoration: none;
}

.tool-callout__text {
	margin: var(--sp-1) 0 0;
	color: var(--c-muted);
	font-size: var(--fs-sm);
}

@media (min-width: 640px) {
	.tool-callout {
		grid-template-columns: auto minmax(0, 1fr) auto;
	}
	.tool-callout .btn {
		grid-column: auto;
	}
}

.related {
	margin-block: var(--sp-7);
}

.related .grid {
	gap: 0 var(--sp-6);
}

.related__more {
	margin-top: var(--sp-4);
	font-weight: 600;
}

.related__more a {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-1);
	text-decoration: none;
}

.tool-list {
	display: grid;
	gap: var(--sp-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.tool-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.tool-link {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	padding: var(--sp-4);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	color: var(--c-ink);
	font-weight: 600;
	text-decoration: none;
}

.tool-link svg {
	color: var(--c-brand);
	flex: none;
}

.tool-link:hover {
	border-color: var(--c-brand);
	color: var(--c-brand);
}

/* 14. Author page ---------------------------------------------------------- */
.author-hero {
	padding-block: var(--sp-6);
}

.author-hero__inner {
	display: flex;
	align-items: center;
	gap: var(--sp-5);
	margin-bottom: var(--sp-5);
}

.author-hero__avatar {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	flex: none;
}

@media (min-width: 640px) {
	.author-hero__avatar {
		width: 128px;
		height: 128px;
	}
}

.author-hero__role {
	margin: 0 0 var(--sp-2);
	color: var(--c-muted);
	font-size: var(--fs-md);
}

.author-hero__links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-4);
	margin: 0;
	font-weight: 600;
	font-size: var(--fs-sm);
}

.author-hero__bio {
	font-size: var(--fs-md);
	max-width: 65ch;
}

.author-facts {
	display: grid;
	gap: var(--sp-4);
	margin: var(--sp-5) 0 0;
	padding: var(--sp-5);
	border-radius: var(--radius);
	background: var(--c-surface);
	border: 1px solid var(--c-line);
}

.author-facts dt {
	color: var(--c-muted);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.author-facts dd {
	margin: var(--sp-1) 0 0;
}

@media (min-width: 768px) {
	.author-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* 15. Forms ---------------------------------------------------------------- */
.field {
	margin: 0 0 var(--sp-4);
}

.field label,
.comment-form label {
	display: block;
	margin-bottom: var(--sp-1);
	color: var(--c-ink);
	font-size: var(--fs-sm);
	font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="password"],
select,
textarea {
	width: 100%;
	max-width: 100%;
	min-height: 46px;
	padding: 0.6rem 0.8rem;
	border: 1px solid var(--c-line-strong);
	border-radius: var(--radius-sm);
	background: var(--c-surface);
	color: var(--c-ink);
	font: inherit;
	font-size: 1rem; /* 16px+ prevents iOS zoom on focus */
	line-height: 1.4;
	transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

textarea {
	min-height: 120px;
	resize: vertical;
}

select {
	appearance: none;
	padding-right: 2.25rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6374' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.6rem center;
	background-size: 18px;
}

input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--c-brand);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-brand) 25%, transparent);
}

[aria-invalid="true"] {
	border-color: var(--c-danger) !important;
}

.field__hint {
	display: block;
	margin: var(--sp-1) 0 0;
	color: var(--c-muted);
	font-size: var(--fs-xs);
	line-height: 1.5;
}

.field__error {
	display: block;
	margin: var(--sp-1) 0 0;
	color: var(--c-danger);
	font-size: var(--fs-xs);
	font-weight: 600;
}

.field__error:empty {
	display: none;
}

.form__grid {
	display: grid;
	gap: 0 var(--sp-4);
}

@media (min-width: 640px) {
	.form__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.form__status {
	font-weight: 600;
}

.form__status.is-error {
	color: var(--c-danger);
}

.form__status.is-success {
	color: var(--c-success);
}

.newsletter .form__status.is-error,
.newsletter .form__status.is-success {
	color: inherit;
}

.form__note {
	color: var(--c-muted);
	font-size: var(--fs-xs);
}

.hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Homepage: today's numbers (live data highlights). */
.numbers__grid {
	display: grid;
	gap: var(--sp-3);
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.numbers__item a {
	display: flex;
	flex-direction: column;
	gap: var(--sp-1);
	height: 100%;
	padding: var(--sp-4);
	color: var(--c-text);
	text-decoration: none;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	transition: border-color 0.15s ease;
}

.numbers__item a:hover {
	border-color: var(--c-brand);
}

.numbers__label {
	color: var(--c-muted);
	font-size: var(--fs-sm);
}

.numbers__value {
	color: var(--c-ink);
	font-size: var(--fs-xl);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.numbers__context {
	color: var(--c-muted);
	font-size: var(--fs-xs);
}

/* Quick answer (Porchlight Core answer engine) on search results. */
.answer-box {
	margin-block: var(--sp-5) 0;
	padding: var(--sp-4) var(--sp-5);
	background: var(--c-brand-soft);
	border: 1px solid var(--c-line);
	border-left: 4px solid var(--c-brand);
	border-radius: var(--radius);
	max-width: 760px;
}

.answer-box .kicker {
	margin: 0 0 var(--sp-1);
}

.answer-box__answer {
	margin: 0;
	color: var(--c-ink);
	font-size: var(--fs-xl);
	font-weight: 700;
	overflow-wrap: anywhere;
}

.answer-box__formula,
.answer-box__note {
	margin: var(--sp-2) 0 0;
	color: var(--c-text);
	font-size: var(--fs-sm);
}

.ask-form textarea {
	width: 100%;
}

.search-form {
	display: flex;
	gap: var(--sp-2);
	margin-block: var(--sp-4);
	max-width: 560px;
}

.search-form__input {
	flex: 1;
	min-width: 0;
}

.contact-layout {
	display: grid;
	gap: var(--sp-6);
	margin-top: var(--sp-5);
}

.contact-form {
	padding: var(--sp-5);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-lg);
	background: var(--c-surface);
}

.contact-details h2 {
	font-size: var(--fs-md);
	margin-bottom: var(--sp-2);
}

.contact-details address {
	font-style: normal;
}

/* 17. Ads ------------------------------------------------------------------ */
.ad {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: var(--ad-min, 250px);
	margin-block: var(--sp-6);
	overflow: hidden;
	contain: layout;
}

.ad__label {
	align-self: stretch;
	margin-bottom: var(--sp-1);
	color: var(--c-muted);
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: center;
}

.ad__placeholder {
	display: grid;
	place-items: center;
	flex: 1;
	width: 100%;
	padding: var(--sp-4);
	border: 2px dashed var(--c-line-strong);
	border-radius: var(--radius-sm);
	background: var(--c-surface-2);
	color: var(--c-muted);
	font-size: var(--fs-xs);
	text-align: center;
}

.ad > ins,
.ad > div:not(.ad__placeholder) {
	width: 100%;
}

.ad--header {
	margin-block: var(--sp-4);
}

.ad--sidebar {
	display: none;
}

@media (min-width: 1024px) {
	.ad {
		min-height: var(--ad-min-lg, 250px);
	}
	.ad--sidebar {
		display: flex;
		margin-top: 0;
	}
	.ad--mobile {
		display: none;
	}
}

/* 18. Pagination, empty states, misc -------------------------------------- */
.pagination {
	margin-block: var(--sp-6);
}

.pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--sp-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.pagination a,
.pagination span {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 var(--sp-3);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-sm);
	color: var(--c-ink);
	font-weight: 600;
	text-decoration: none;
}

.pagination a:hover {
	border-color: var(--c-brand);
	color: var(--c-brand);
}

.pagination .current {
	background: var(--c-brand);
	border-color: var(--c-brand);
	color: var(--c-on-brand);
}

.pagination .dots {
	border: 0;
}

.page-links {
	margin-block: var(--sp-5);
	font-weight: 600;
}

.empty-state {
	padding: var(--sp-7) 0;
	color: var(--c-muted);
}

.empty-state h2 {
	font-size: var(--fs-xl);
}

.error-404 .page-title {
	font-size: var(--fs-3xl);
}

.start-here {
	padding-top: var(--sp-6);
	padding-bottom: 0;
}

/* 19. Comments ------------------------------------------------------------- */
.comments {
	margin-block: var(--sp-7);
}

.comment-list {
	padding: 0;
	list-style: none;
}

.comment-body {
	padding: var(--sp-4) 0;
	border-bottom: 1px solid var(--c-line);
	font-size: var(--fs-sm);
}

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
	align-items: center;
	margin-bottom: var(--sp-2);
}

.comment-meta img {
	border-radius: 50%;
}

.comment-list .children {
	padding-left: var(--sp-5);
	list-style: none;
}

/* 20. Footer --------------------------------------------------------------- */
.site-footer {
	margin-top: var(--sp-7);
	padding-block: var(--sp-7) var(--sp-5);
	border-top: 1px solid var(--c-line);
	background: var(--c-surface-2);
	font-size: var(--fs-sm);
}

.site-footer__grid {
	display: grid;
	gap: var(--sp-6);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-footer__about {
	grid-column: 1 / -1;
}

.site-footer__about p {
	color: var(--c-muted);
	max-width: 46ch;
	margin-top: var(--sp-3);
}

@media (min-width: 900px) {
	.site-footer__grid {
		grid-template-columns: 2fr repeat(3, minmax(0, 1fr));
	}
	.site-footer__about {
		grid-column: auto;
	}
}

.footer-nav__title {
	margin-bottom: var(--sp-3);
	color: var(--c-ink);
	font-family: var(--font-sans);
	font-size: var(--fs-xs);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.footer-nav ul,
.social-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-nav li {
	margin-bottom: var(--sp-2);
}

.footer-nav a,
.social-links a {
	color: var(--c-text);
	text-decoration: none;
}

.footer-nav a:hover,
.social-links a:hover {
	color: var(--c-brand);
	text-decoration: underline;
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-4);
	font-weight: 600;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--sp-3);
	margin-top: var(--sp-7);
	padding-top: var(--sp-5);
	border-top: 1px solid var(--c-line);
	color: var(--c-muted);
	font-size: var(--fs-xs);
}

.site-footer__bottom p {
	margin: 0;
}

/* Sticky mobile bar */
.mobile-bar {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 60;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	height: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom));
	padding-bottom: env(safe-area-inset-bottom);
	border-top: 1px solid var(--c-line);
	background: color-mix(in srgb, var(--c-bg) 94%, transparent);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.mobile-bar a,
.mobile-bar button {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	border: 0;
	background: none;
	color: var(--c-muted);
	font-size: 0.6875rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.mobile-bar [aria-current="page"],
.mobile-bar [aria-expanded="true"] {
	color: var(--c-brand);
}

@media (min-width: 1024px) {
	.mobile-bar {
		display: none;
	}
}

/* Consent banner */
.consent {
	position: fixed;
	left: var(--sp-3);
	right: var(--sp-3);
	bottom: calc(var(--mobile-bar-h) + var(--sp-3) + env(safe-area-inset-bottom));
	z-index: 70;
	display: grid;
	gap: var(--sp-3);
	max-width: 560px;
	padding: var(--sp-4) var(--sp-5);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-lg);
	background: var(--c-surface);
	box-shadow: var(--shadow-lg);
	font-size: var(--fs-sm);
}

.consent__text {
	margin: 0;
}

.consent__actions {
	display: flex;
	gap: var(--sp-2);
	justify-content: flex-end;
}

@media (min-width: 640px) {
	.consent {
		left: var(--sp-5);
		right: auto;
		bottom: calc(var(--mobile-bar-h) + var(--sp-5));
	}
}

/* 21. WordPress core classes ---------------------------------------------- */
.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
	color: var(--c-muted);
	font-size: var(--fs-xs);
}

.sticky,
.bypostauthor {
	/* Required by theme review; no special styling. */
	outline: 0;
}

.wp-block-separator {
	border: 0;
	border-top: 1px solid var(--c-line);
}

.wp-block-image figcaption {
	text-align: left;
}

/* 22. Motion & print ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

@media print {
	.site-header,
	.site-footer,
	.mobile-bar,
	.ad,
	.newsletter,
	.related,
	.tool-callout,
	.consent,
	.toc,
	.calc__actions,
	.author-box__links {
		display: none !important;
	}
	body {
		padding: 0;
		color: #000;
		background: #fff;
	}
	.entry-content a::after {
		content: " (" attr(href) ")";
		font-size: 0.8em;
		color: #555;
	}
}

.article__scope {
	margin: var(--sp-3) 0 0;
	color: var(--c-muted);
	font-size: var(--fs-sm);
}

.mobile-bar:has(> :nth-child(3):last-child) {
	grid-template-columns: repeat(3, 1fr);
}
