/*
Theme Name: EVFusions
Theme URI: https://evfusions.com/
Author: EVFusions
Description: Lightweight editorial theme for EVFusions.com. Mobile-first, self-hosted fonts, no page builder and no jQuery.
Version: 1.0.2
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: evfusions
*/

/* ---------- Fonts (self-hosted, SIL OFL 1.1) ---------- */
@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/archivo-latin-wght-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Instrument Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("assets/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
	--p900: #063B38;
	--p700: #0B5C57;
	--p100: #DCEAE7;
	--ember: #C2410C;
	--ember-dark: #9A3412;
	--e50: #FDEBDD;
	--ink: #0C1A18;
	--ground: #FBFAF7;
	--muted: #5A6462;
	--line: #E5E1D8;
	--line-soft: #EFEDE6;
	--line-strong: #D8D3C7;
	--head: #F3F1EA;
	--accent: #F0996B;
	--on-dark: #C6DDD9;
	--on-dark-2: #8FBDB6;
	--rule-dark: #16504B;
	--display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
	--body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--ground);
	color: var(--ink);
	font-family: var(--body);
	font-size: 1rem;
	line-height: 1.65;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--p700); text-decoration: underline; }
a:hover { color: var(--p900); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--display); color: var(--ink); }
:is(h1, h2, h3, h4, h5, h6) :is(strong, b) { font-weight: inherit; }
strong, b { font-weight: 700; }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto;
	left: 8px; top: 8px; z-index: 100000; padding: 12px 16px;
	background: #fff; color: var(--p900); border-radius: 8px; font-weight: 600;
}
.evf-wrap { width: 100%; max-width: 1232px; margin-inline: auto; padding-inline: 16px; }

/* ---------- Top bar ---------- */
.evf-topbar { display: none; background: var(--ink); color: var(--on-dark-2); font-size: .78rem; }
.evf-topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 36px; }
.evf-topbar p { margin: 0; }
.evf-topbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.evf-topbar a { color: var(--on-dark); text-decoration: none; display: inline-block; padding: 8px 0; }
.evf-topbar a:hover { color: #fff; text-decoration: underline; }
@media (min-width: 700px) { .evf-topbar { display: block; } }

/* ---------- Header ---------- */
.evf-header { background: var(--p900); color: #fff; }
.evf-header__in { display: flex; align-items: center; flex-wrap: wrap; gap: 0 4px; padding-block: 6px; }
.evf-brand { flex: 1 1 auto; min-width: 0; }
.evf-brand__link {
	display: inline-flex; align-items: baseline; min-height: 44px; padding: 11px 0;
	font-family: var(--display); font-size: 1.25rem; font-weight: 800; line-height: 1;
	letter-spacing: -.02em; color: #fff; text-decoration: none;
}
.evf-brand__link:hover { color: #fff; }
.evf-brand__link b { font-weight: 800; color: var(--accent); }
.evf-brand .custom-logo { display: block; max-height: 44px; width: auto; }
.evf-toggle {
	width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
	background: none; border: 0; border-radius: 8px; color: #fff; cursor: pointer;
}
.evf-toggle[aria-expanded="true"] { background: var(--p700); }
.evf-nav, .evf-search { flex: 1 0 100%; display: none; }
.evf-nav.is-open, .evf-search.is-open,
html:not(.js) .evf-nav, html:not(.js) .evf-search { display: block; }
html:not(.js) .evf-toggle { display: none; }
.evf-search { padding: 4px 0 10px; }
.evf-menu, .evf-menu ul { list-style: none; margin: 0; padding: 0; }
.evf-menu { padding-bottom: 8px; }
.evf-menu a {
	display: flex; align-items: center; min-height: 46px;
	border-top: 1px solid var(--rule-dark);
	color: var(--on-dark); font-size: .9375rem; font-weight: 500; text-decoration: none;
}
.evf-menu a:hover { color: #fff; }
.evf-menu .current-menu-item > a,
.evf-menu .current-menu-ancestor > a,
.evf-menu .current-post-ancestor > a,
.evf-menu .current-cat > a { color: #fff; font-weight: 600; }
.evf-menu .sub-menu a { padding-left: 16px; }

@media (min-width: 1100px) {
	.evf-header__in { flex-wrap: nowrap; gap: 0 24px; padding-block: 12px; }
	.evf-brand { flex: 0 0 auto; }
	.evf-brand__link { font-size: 1.5rem; }
	.evf-toggle { display: none; }
	.evf-nav { display: block; flex: 1 1 auto; }
	.evf-search { display: block; flex: 0 1 210px; padding: 0; }
	.evf-menu { display: flex; flex-wrap: wrap; gap: 0 22px; padding: 0; }
	.evf-menu > li { position: relative; }
	.evf-menu a { min-height: 44px; border-top: 0; }
	.evf-menu > li > a { box-shadow: inset 0 -2px 0 transparent; }
	.evf-menu > .current-menu-item > a,
	.evf-menu > .current-menu-ancestor > a,
	.evf-menu > .current-post-ancestor > a,
	.evf-menu > .current-cat > a { box-shadow: inset 0 -2px 0 var(--accent); }
	.evf-menu .sub-menu {
		display: none; position: absolute; left: -16px; top: 100%; z-index: 50; min-width: 230px;
		padding: 6px 16px; background: var(--p900); border: 1px solid var(--rule-dark); border-radius: 10px;
	}
	.evf-menu li:hover > .sub-menu, .evf-menu li:focus-within > .sub-menu { display: block; }
	.evf-menu .sub-menu a { padding-left: 0; }
}

@media (min-width: 1280px) {
	.evf-header__in { gap: 0 40px; }
	.evf-menu { gap: 0 28px; }
	.evf-search { flex-basis: 260px; }
}

/* ---------- Search form ---------- */
.evf-searchform { display: flex; background: #fff; border-radius: 8px; overflow: hidden; }
.evf-searchform:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.evf-searchform input[type="search"] {
	flex: 1 1 0; width: 0; min-width: 0; min-height: 44px; border: 0; border-radius: 0; padding: 0 13px;
	font: inherit; font-size: 1rem; background: transparent; color: var(--ink); outline: 0;
	-webkit-appearance: none; appearance: none;
}
.evf-searchform button {
	flex: 0 0 46px; min-height: 44px; border: 0; padding: 0; background: var(--ember); color: #fff;
	display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.evf-searchform button:hover { background: var(--ember-dark); }
.evf-main .evf-searchform { border: 1px solid var(--line-strong); max-width: 480px; }
@media (min-width: 1100px) { .evf-header .evf-searchform input[type="search"] { font-size: .9rem; } }

/* ---------- Buttons ---------- */
.evf-btn,
.wp-block-button .wp-block-button__link,
.evf-main input[type="submit"],
.evf-main button[type="submit"]:not(.evf-searchform button) {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 46px; padding: 0 22px; border-radius: 8px; border: 1.5px solid var(--ember);
	background: var(--ember); color: #fff; font-family: var(--body); font-size: .9375rem; font-weight: 600;
	line-height: 1.2; text-decoration: none; cursor: pointer;
}
.evf-btn:hover,
.wp-block-button .wp-block-button__link:hover,
.evf-main input[type="submit"]:hover,
.evf-main button[type="submit"]:not(.evf-searchform button):hover { background: var(--ember-dark); border-color: var(--ember-dark); color: #fff; }
.evf-btn--ghost { background: transparent; border-color: #4F8079; }
.evf-btn--ghost:hover { background: var(--p700); border-color: var(--p700); }
.wp-block-button.is-style-outline .wp-block-button__link { background: #fff; color: var(--p700); border-color: var(--p700); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--p100); color: var(--p900); border-color: var(--p900); }

/* ---------- Hero ---------- */
.evf-hero { background: var(--p900); color: #fff; padding: 6px 0 26px; }
.evf-hero__in { display: grid; gap: 24px; }
.evf-hero h1 {
	margin: 0; max-width: 17em; color: #fff;
	font-size: clamp(1.7rem, 4.6vw + .55rem, 3.25rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em;
}
.evf-hero__text { margin: 12px 0 0; max-width: 35em; color: var(--on-dark); font-size: clamp(.92rem, .5vw + .8rem, 1.125rem); line-height: 1.6; }
.evf-hero__cta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; }
.evf-figures { background: var(--p700); border-radius: 14px; padding: 22px 24px; }
.evf-figures__h { margin: 0; font-family: var(--display); font-size: .72rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--on-dark); }
.evf-figures dl { margin: 6px 0 0; }
.evf-figures__row { display: flex; align-items: baseline; gap: 16px; padding: 13px 0; border-top: 1px solid #16706A; }
.evf-figures__row:first-child { border-top: 0; }
.evf-figures dt { flex: 0 0 auto; min-width: 5.2rem; font-family: var(--display); font-size: 1.9rem; font-weight: 800; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.evf-figures dd { margin: 0; color: var(--on-dark); font-size: .9rem; line-height: 1.45; }
.evf-figures__note { margin: 4px 0 0; padding-top: 13px; border-top: 1px solid #16706A; color: var(--on-dark); font-size: .78rem; line-height: 1.5; }
@media (min-width: 960px) {
	.evf-hero { padding: 30px 0 44px; }
	.evf-hero__in--split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: start; }
}

/* ---------- Sections and cards ---------- */
.evf-section { margin-top: 36px; }
.evf-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.evf-section__head h2 { margin: 0; font-size: clamp(1.25rem, 1.6vw + .9rem, 1.75rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.evf-section__head a { font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.evf-section__head a:hover { text-decoration: underline; }
.evf-grid { margin-top: 18px; display: grid; gap: 16px; }
@media (min-width: 700px) { .evf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1000px) { .evf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.evf-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.evf-card::before { content: ""; display: block; height: 6px; background: var(--ember); }
.evf-card__link { display: block; height: 100%; padding: 16px 20px 20px; color: inherit; text-decoration: none; }
.evf-card__kicker { display: block; font-family: var(--display); font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ember); }
.evf-card__title { margin: 8px 0 0; font-size: 1.2rem; font-weight: 700; line-height: 1.28; letter-spacing: -.015em; color: var(--ink); }
.evf-card__link:hover .evf-card__title { color: var(--p700); }
.evf-card__blurb { margin: 9px 0 0; font-size: .9rem; line-height: 1.55; color: var(--muted); }
.evf-card__meta { display: block; margin-top: 13px; font-size: .78rem; color: var(--muted); }

/* ---------- Archive / listing head ---------- */
.evf-listhead { padding-top: 22px; }
.evf-title { margin: 10px 0 0; font-size: clamp(1.8rem, 3.2vw + 1.05rem, 2.75rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; }
.evf-listhead__desc { margin: 10px 0 0; max-width: 46em; color: var(--muted); }
.evf-listhead__desc p { margin: 0; }

/* ---------- Breadcrumbs ---------- */
.evf-crumbs, .rank-math-breadcrumb { font-size: .84rem; color: var(--muted); }
.evf-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 8px; }
.evf-crumbs li + li::before { content: "/"; margin-right: 8px; color: #B5AFA2; }
.evf-crumbs a, .rank-math-breadcrumb a { text-decoration: none; }
.evf-crumbs a:hover, .rank-math-breadcrumb a:hover { text-decoration: underline; }
.rank-math-breadcrumb p { margin: 0; }
.rank-math-breadcrumb .separator { color: #B5AFA2; }

/* ---------- Article ---------- */
.evf-article-grid { display: grid; gap: 28px; margin-top: 22px; }
.evf-article { min-width: 0; }
@media (min-width: 1000px) {
	.evf-article-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
	.evf-article-grid--solo { grid-template-columns: minmax(0, 780px); justify-content: center; }
}
.evf-byline { margin-top: 18px; display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.evf-byline__icon { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; background: var(--p100); color: var(--p700); display: flex; align-items: center; justify-content: center; }
.evf-byline__body { flex: 1 1 auto; min-width: 0; }
.evf-byline__name { margin: 0; font-size: .94rem; font-weight: 600; }
.evf-byline__meta { margin: 2px 0 0; font-size: .84rem; color: var(--muted); }
.evf-byline__more { flex: 0 0 auto; font-size: .84rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.evf-byline__more:hover { text-decoration: underline; }
@media (max-width: 520px) { .evf-byline { flex-wrap: wrap; } .evf-byline__body { flex: 1 1 0; } .evf-byline__more { flex-basis: 100%; padding-left: 60px; } }
.evf-thumb { margin: 20px 0 0; }
.evf-thumb img { display: block; width: 100%; border-radius: 12px; }

.evf-toc { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.evf-toc__h { margin: 0 0 8px; font-family: var(--display); font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.evf-toc ol { list-style: none; margin: 0; padding: 0; }
.evf-toc a { display: block; padding: 7px 0 7px 12px; border-left: 2px solid var(--line); color: var(--ink); font-size: .9rem; line-height: 1.35; text-decoration: none; }
.evf-toc a:hover { border-left-color: var(--ember); color: var(--p700); }
details.evf-toc { margin-top: 18px; padding: 0; }
details.evf-toc summary { padding: 14px 18px; min-height: 46px; cursor: pointer; font-family: var(--display); font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
details.evf-toc ol { padding: 0 18px 16px; }
.evf-aside .evf-toc { display: none; }
@media (min-width: 1000px) { details.evf-toc { display: none; } .evf-aside .evf-toc { display: block; } }

.evf-aside { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.evf-aside .widget { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.evf-aside .widget > :first-child { margin-top: 0; }
.evf-aside .widget > :last-child { margin-bottom: 0; }
.evf-aside .widget-title, .evf-aside .wp-block-heading { margin: 0 0 10px; font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
.evf-aside .widget ul { margin: 0; padding-left: 1.1em; list-style: disc; }
.evf-aside__card { background: var(--p100); border-radius: 12px; padding: 18px 20px; }
.evf-aside__card h2 { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--p900); }
.evf-aside__card p { margin: 8px 0 0; font-size: .875rem; line-height: 1.6; }
.evf-ad { min-height: 250px; }
.evf-article__foot { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.evf-article__foot p { margin: 0; }

/* ---------- Prose ---------- */
.evf-prose { margin-top: 22px; font-size: 1rem; line-height: 1.7; overflow-wrap: break-word; }
@media (min-width: 700px) { .evf-prose { font-size: 1.0625rem; } }
.evf-prose > * { margin-block: 0; }
.evf-prose > * + * { margin-top: 1.1em; }
.evf-prose > :is(p, ul, ol, h2, h3, h4, h5, blockquote, dl) { max-width: 42.5rem; }
.evf-page--wide .evf-prose > :is(p, ul, ol, h2, h3, h4, h5, blockquote, dl) { max-width: 46rem; }
.evf-prose :is(h2, h3, h4) { line-height: 1.22; letter-spacing: -.02em; scroll-margin-top: 20px; }
.evf-prose h2 { margin-top: 1.9em; font-size: clamp(1.4rem, 1.2vw + 1.1rem, 1.7rem); font-weight: 700; }
.evf-prose h3 { margin-top: 1.6em; font-size: 1.2rem; font-weight: 700; }
.evf-prose h4 { margin-top: 1.4em; font-size: 1.05rem; font-weight: 700; }
.evf-prose :is(h5, h6) { margin-top: 1.4em; font-size: 1rem; font-weight: 700; line-height: 1.3; }
.evf-prose p + p { margin-top: 1.1em; }
.evf-prose a { text-underline-offset: 2px; }
.evf-prose :is(ul, ol) { padding-left: 1.3em; }
.evf-prose ul { list-style: disc; }
.evf-prose ul ul { list-style: circle; }
.evf-prose ol { list-style: decimal; }
.evf-prose li + li { margin-top: .35em; }
.evf-prose li > :is(ul, ol) { margin-top: .35em; }
.evf-prose img { border-radius: 10px; }
.evf-prose figure { margin-inline: 0; }
.evf-prose figcaption, .evf-prose .wp-caption-text { margin-top: 8px; font-size: .84rem; color: var(--muted); text-align: left; }
.evf-prose blockquote { margin-inline: 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--ember); color: var(--ink); }
.evf-prose blockquote p { margin: 0; }
.evf-prose blockquote cite { display: block; margin-top: 8px; font-size: .875rem; font-style: normal; color: var(--muted); }
.evf-prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.evf-prose code { font-size: .9em; background: var(--head); border-radius: 4px; padding: .1em .35em; }
.evf-prose .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.evf-prose .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.evf-prose .aligncenter { margin-inline: auto; }

/* Tables: every table is a data table */
.evf-prose .wp-block-table { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.evf-prose table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.45; font-variant-numeric: tabular-nums; }
.evf-prose .wp-block-table table:has(tr > :nth-child(4)) { min-width: 600px; }
.evf-prose .wp-block-table :is(th, td),
.evf-prose table :is(th, td) { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; word-break: normal; }
.evf-prose table thead { border-bottom: 0; }
.evf-prose table thead th { background: var(--head); border-bottom: 1px solid var(--line); font-family: var(--display); font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.evf-prose table tbody tr:last-child > * { border-bottom: 0; }
.evf-prose table tfoot { border-top: 0; }
.evf-prose table tfoot td { background: var(--ground); border-top: 1px solid var(--line-soft); border-bottom: 0; font-size: .8rem; color: var(--muted); }
.evf-prose > table { background: #fff; border: 1px solid var(--line); }
/* Tables written without a header section: treat the first row as the header. */
.evf-prose table:not(:has(thead)) tbody tr:first-child > * { background: var(--head); border-bottom-color: var(--line); font-weight: 600; }

/* Rank Math blocks */
.evf-prose .rank-math-list-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.evf-prose .rank-math-list-item + .rank-math-list-item { margin-top: 12px; }
.evf-prose .rank-math-question { margin: 0; font-family: var(--display); font-size: 1.05rem; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.evf-prose .rank-math-answer { margin-top: 8px; }
.evf-prose .rank-math-answer > :first-child { margin-top: 0; }
.evf-prose .rank-math-answer > :last-child { margin-bottom: 0; }
.evf-prose .wp-block-rank-math-toc-block { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.evf-prose .wp-block-rank-math-toc-block h2 { margin: 0 0 8px; font-size: 1.05rem; }

/* ---------- Editorial components (block styles) ---------- */
.evf-kicker { margin: 0; font-family: var(--display); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ember); }
.evf-source { font-size: .8rem; line-height: 1.5; color: var(--muted); }
.evf-badge { display: inline-flex; align-items: center; gap: 7px; background: var(--p100); color: var(--p900); border-radius: 999px; padding: 6px 12px; font-size: .8rem; font-weight: 600; }
.is-style-evf-answer, .is-style-evf-sources, .is-style-evf-note, .is-style-evf-cta, .is-style-evf-stat { border-radius: 12px; padding: 20px 22px; }
:is(.is-style-evf-answer, .is-style-evf-sources, .is-style-evf-note, .is-style-evf-cta, .is-style-evf-stat) > .wp-block-group__inner-container > *,
:is(.is-style-evf-answer, .is-style-evf-sources, .is-style-evf-note, .is-style-evf-cta, .is-style-evf-stat) > * { margin-block: 0; }
:is(.is-style-evf-answer, .is-style-evf-sources, .is-style-evf-note, .is-style-evf-cta, .is-style-evf-stat) > .wp-block-group__inner-container > * + *,
:is(.is-style-evf-answer, .is-style-evf-sources, .is-style-evf-note, .is-style-evf-cta, .is-style-evf-stat) > * + * { margin-top: .7em; }
.is-style-evf-answer { background: var(--p700); color: #fff; }
.is-style-evf-answer :is(h2, h3, h4, p, li, strong, a) { color: #fff; }
.is-style-evf-answer .evf-kicker { color: #FFC9AA; }
.is-style-evf-cta .evf-kicker { color: var(--accent); }
.is-style-evf-sources { background: #fff; border: 1px solid var(--line); font-size: .9rem; line-height: 1.7; }
.is-style-evf-sources :is(h2, h3, h4) { margin-top: 0; font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.is-style-evf-note { background: var(--e50); }
.is-style-evf-note :is(h2, h3, h4) { margin-top: 0; font-size: 1.1rem; color: var(--ember-dark); }
.is-style-evf-cta { background: var(--ink); color: #fff; }
.is-style-evf-cta :is(h2, h3, h4) { margin-top: 0; font-size: 1.25rem; color: #fff; }
.is-style-evf-cta p { color: #A9B8B5; }
.is-style-evf-stat { background: var(--e50); border-radius: 10px; padding: 16px; }
.is-style-evf-stat .evf-stat__n { font-family: var(--display); font-size: 1.5rem; font-weight: 800; line-height: 1.1; color: var(--ember-dark); font-variant-numeric: tabular-nums; }
.is-style-evf-stat p:not(.evf-stat__n) { margin-top: 5px; font-size: .85rem; line-height: 1.45; }

/* ---------- Pages ---------- */
.evf-page { max-width: 812px; padding-top: 22px; }
.evf-page--wide { max-width: 1232px; }
.evf-home-content { margin-top: 28px; }

/* ---------- Forms ---------- */
.evf-main :is(input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"], input[type="password"], textarea, select) {
	width: 100%; max-width: 100%; min-height: 46px; padding: 10px 13px;
	border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink);
	font: inherit; font-size: 1rem;
}
.evf-main label { font-size: .9rem; font-weight: 600; }
.evf-main .wpcf7 p { margin: 0 0 14px; }
.evf-main .wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: 5px; }

/* ---------- Pagination ---------- */
.navigation.pagination { margin-top: 28px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-weight: 600; text-decoration: none; }
a.page-numbers:hover { border-color: var(--p700); color: var(--p700); }
.page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.page-numbers.dots { border: 0; background: none; }

/* ---------- Comments ---------- */
.evf-comments { max-width: 780px; margin-top: 36px; }
.evf-comments ol { list-style: none; margin: 0; padding: 0; }
.evf-comments .comment-body { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-top: 12px; }
.evf-comments .children { list-style: none; padding-left: 20px; }

/* ---------- Footer ---------- */
.evf-footer { margin-top: 52px; background: var(--p900); color: var(--on-dark-2); }
.evf-footer__grid { display: flex; flex-wrap: wrap; gap: 28px 40px; padding-block: 34px 26px; }
.evf-footer__brand { flex: 1 1 300px; min-width: 0; }
.evf-footer__brand .evf-brand__link { font-size: 1.3rem; padding: 0; min-height: 0; }
.evf-footer__brand p { margin: 12px 0 0; max-width: 23rem; font-size: .84rem; line-height: 1.6; }
.evf-footer__col { flex: 0 1 190px; min-width: 150px; }
.evf-footer__h { margin: 0 0 8px; font-family: var(--display); font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #fff; }
.evf-footer ul { list-style: none; margin: 0; padding: 0; }
.evf-footer li a { display: inline-block; padding: 6px 0; color: var(--on-dark); font-size: .875rem; text-decoration: none; }
.evf-footer li a:hover { color: #fff; text-decoration: underline; }
.evf-footer__base { border-top: 1px solid var(--rule-dark); padding-block: 16px; font-size: .78rem; }
.evf-footer__base p { margin: 0; }

/* ---------- WordPress core helpers ---------- */
.wp-caption { max-width: 100%; }
.sticky, .bypostauthor, .gallery-caption { display: revert; }
.evf-empty { margin-top: 22px; max-width: 42.5rem; }
.evf-empty p { margin: 0 0 16px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print { .evf-topbar, .evf-header, .evf-aside, .evf-footer, details.evf-toc { display: none !important; } }

/* Legacy self-styled summary boxes in older posts: keep them, but in the site typeface. */
.evf-prose .evfusions-conclusion { font-family: inherit; }
.evf-prose .evfusions-conclusion :is(h2, h3) { margin-top: 0; }
