/* Donovan Pyle theme. Values match the Thrive templates as rendered on fixinghealthcare.com (Nov 2026 crawl).
   Structure/colors verified against the crawl's real markup; exact spacing/typography still needs a
   side-by-side check against live at 1300/900/375 in Phase 3 — see the migration progress notes. */

@font-face {
	font-family: "Inter Tight";
	src: url("../fonts/inter-tight-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Inter Tight";
	src: url("../fonts/inter-tight-500.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

:root {
	--link: #574080;
	--ink: #1a1a1a;
	--text: rgba(10, 10, 10, 0.85);
	--line: #e6e6e6;
	--bg-soft: #f7f6f9;
	--container: 1200px;
}

/* ---------- Base ---------- */

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

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

body {
	margin: 0;
	background: #fff;
	color: var(--text);
	font-family: "Inter Tight", sans-serif;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

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

/* Carried over from Customizer > Additional CSS (stored per theme, so it would not follow a theme switch). */
a { color: var(--link); text-decoration: none; }
a:hover { color: #00adb3; }
a:active { color: #14806e; }
a:visited { color: #f8777b; }

h1, h2, h3, h4, h5, h6, p, ul, ol, figure { margin: 0; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 600; }

button { font: inherit; cursor: pointer; background: none; border: 0; }

.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

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

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: #fff;
	padding: 10px 16px;
	z-index: 1000;
}
.skip-link:focus { left: 10px; }

/* ---------- Header (shared chrome) ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	box-shadow: 0 1px 0 var(--line);
}

/* Themed pages (Disclosures, Fiduciary Scorecard, HPMM, Executive Summary, thank-you pages…) have no
   hero image behind the header, so unlike landing pages (rendered by Architect's own snapshot, not this
   CSS) the header needs its own dark background — confirmed against live's #1e1e1f header Dec 3 2026.
   Without it the white logo/menu text (meant to sit on a dark hero) was invisible on white. */
.site-header--themed {
	background: #1e1e1f;
	box-shadow: none;
}
.site-header--themed .nav-toggle,
.site-header--themed .site-nav .menu > li > a {
	color: #fff;
}
.site-header--themed .site-nav .menu > li > a:hover {
	color: #ccc;
}

.site-header__inner {
	max-width: var(--container);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 16px 20px;
}

.site-logo { display: block; flex: none; }
.site-logo img { display: block; height: 40px; width: auto; }

.site-header__nav { flex: 1 1 auto; display: flex; justify-content: center; }

.nav-toggle {
	display: none;
	width: 33px;
	height: 33px;
	padding: 4px;
	align-items: center;
	justify-content: center;
}

.site-nav .menu {
	display: flex;
	align-items: center;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav .menu a {
	color: var(--ink);
	font-size: 15px;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.site-nav .menu a:hover { color: var(--link); }

.nav-close, .nav-overlay { display: none; }

/* Dropdown submenu (e.g. FH's "Resources"): hover-revealed on desktop, tap-toggled on mobile.
   functions.php adds .menu-chevron (inside the link, static indicator) and a separate
   .submenu-toggle button (mobile tap target) to every menu-item-has-children item. */
.site-nav .menu li { position: relative; }
.site-nav .menu .submenu-toggle { display: none; }
.site-nav .menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	margin: 4px 0 0;
	padding: 8px 0;
	list-style: none;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	z-index: 20;
}
.site-nav .menu li.menu-item-has-children:hover > .sub-menu,
.site-nav .menu li.menu-item-has-children:focus-within > .sub-menu {
	display: block;
}
.site-nav .menu .sub-menu a { width: 100%; padding: 8px 16px; white-space: nowrap; }

.site-header__cta { flex: none; }

.btn-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--link);
	color: #fff;
	font-weight: 500;
	font-size: 15px;
	padding: 10px 20px;
	border-radius: 6px;
}
.btn-cta:hover { background: #45336a; color: #fff; }
.btn-cta .icon { width: 0.9em; height: 0.9em; }

@media (max-width: 1023px) {
	.nav-toggle { display: flex; }

	.site-header__nav { position: static; flex: none; }

	.site-nav {
		position: fixed;
		inset: 0 0 0 auto;
		width: min(320px, 85vw);
		background: #fff;
		padding: 24px;
		overflow-y: auto;
		transform: translateX(100%);
		transition: transform 0.25s ease;
		z-index: 200;
	}
	body.nav-open .site-nav { transform: translateX(0); }

	.nav-close {
		display: flex;
		width: 28px;
		height: 28px;
		margin-left: auto;
		margin-bottom: 16px;
	}

	.site-nav .menu {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}
	.site-nav .menu a { padding: 10px 0; width: 100%; }

	.nav-overlay {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.4);
		z-index: 150;
	}
	body:not(.nav-open) .nav-overlay { display: none; }

	.menu-chevron { margin-left: auto; }
	.submenu-toggle { display: inline-flex; background: none; border: 0; padding: 8px; }

	.site-nav .menu .sub-menu {
		display: none;
		position: static;
		margin: 0;
		padding-left: 16px;
		box-shadow: none;
	}
	.site-nav .menu li.menu-item-has-children:hover > .sub-menu,
	.site-nav .menu li.menu-item-has-children:focus-within > .sub-menu {
		display: none; /* hover doesn't apply on touch; .is-open (nav.js) controls it instead */
	}
	.site-nav .menu .sub-menu.is-open { display: block; }

	/* The slide-out panel itself is always white (not the dark bar), on themed pages too. */
	.site-header--themed .site-nav .menu > li > a {
		color: var(--ink);
	}
}

/* ---------- Footer ---------- */

.site-footer {
	background: var(--bg-soft);
	border-top: 1px solid var(--line);
}

.site-footer__inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 48px 20px 24px;
}

.footer-top {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	justify-content: space-between;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--line);
}

.footer-logo img { height: 34px; width: auto; display: block; margin-bottom: 12px; }
.footer-tagline { max-width: 360px; font-size: 15px; }

.footer-links__title { margin-bottom: 10px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { color: var(--text); font-size: 15px; }
.footer-links a:hover { color: var(--link); }

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: space-between;
	align-items: center;
	padding-top: 20px;
	font-size: 13px;
}

.footer-social { display: flex; gap: 14px; }
.footer-social a { color: var(--ink); }
.footer-social .icon { width: 18px; height: 18px; }

/* ---------- Single post (replaces Thrive template 1211) ---------- */

.post-hero {
	background: var(--post-hero-bg, #3d8b54);
	padding: 40px 20px;
}
.post-hero__card {
	max-width: var(--container);
	margin: 0 auto;
	background: #fff;
	border-radius: 8px;
	padding: 40px 32px;
	text-align: center;
}
.post-hero__title { font-size: clamp(28px, 4vw, 42px); line-height: 1.25; }
.post-hero__byline { margin-top: 14px; color: #666; font-size: 15px; }
.post-hero__sep { margin: 0 8px; opacity: 0.5; }
.post-hero__media { max-width: var(--container); margin: 40px auto 0; }
.post-hero__media img { display: block; width: 100%; height: auto; border-radius: 6px; }

.post-main {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 20px 64px;
}
.entry-content { font-size: 17px; line-height: 1.7; }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content a { text-decoration: underline; }

/* ---------- Default page / Contact (replaces Thrive template 1205) ---------- */

.page-hero {
	background: var(--bg-soft);
	padding: 56px 20px;
	text-align: center;
}
.page-hero__title { font-size: clamp(28px, 4vw, 42px); }

.page-main {
	max-width: var(--container);
	margin: 0 auto;
	padding: 48px 20px 64px;
}
.page-main--snapshot {
	max-width: none;
	padding: 0;
}

/* ---------- Archive / category / search (replaces Thrive template 1201) ---------- */

.archive-hero {
	background: var(--bg-soft);
	padding: 40px 20px;
}
.archive-hero__inner { max-width: var(--container); margin: 0 auto; }

.breadcrumbs {
	display: flex;
	gap: 8px;
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	font-size: 13px;
	color: #777;
}
.breadcrumbs a { color: #777; }
.breadcrumbs__sep { opacity: 0.5; }

.archive-hero__title { font-size: clamp(26px, 3.5vw, 36px); margin-bottom: 20px; text-transform: capitalize; }

.archive-search {
	display: flex;
	max-width: 420px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
}
.archive-search input {
	flex: 1;
	border: 0;
	padding: 10px 14px;
	font: inherit;
}
.archive-search input:focus { outline: none; }
.archive-search button {
	flex: none;
	width: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--link);
}

.archive-main {
	max-width: 760px;
	margin: 0 auto;
	padding: 40px 20px 64px;
}

.post-list { display: flex; flex-direction: column; }
.post-list__item {
	padding: 24px 0;
	border-bottom: 1px solid var(--line);
}
.post-list__cat { font-size: 13px; color: #888; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.post-list__title { font-size: 22px; margin-bottom: 10px; }
.post-list__title a { color: var(--ink); }
.post-list__title a:hover { color: var(--link); }
.post-list__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--link);
}
.post-list__more .icon { width: 0.85em; height: 0.85em; }
.post-list__empty { color: #777; }

.pagination, .nav-links {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-top: 32px;
}
.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 8px;
	border: 1px solid var(--line);
	border-radius: 4px;
	color: var(--ink);
}
.page-numbers.current { background: var(--link); color: #fff; border-color: var(--link); }
.page-numbers:hover:not(.current) { border-color: var(--link); color: var(--link); }

/* ---------- 404 (replaces Thrive template 1199) ---------- */

.e404-hero {
	padding: 56px 20px 64px;
	text-align: center;
}
.e404-badge {
	display: inline-block;
	background: #3f9157;
	padding: 10px 20px;
	box-shadow:
		0 8px 0 0 rgba(44, 164, 79, 0.4),
		0 22px 0 -7px rgba(37, 125, 63, 0.18),
		0 37px 0 -16px rgba(36, 111, 55, 0.12);
}
.e404-badge__code { font-size: clamp(56px, 10vw, 96px); line-height: 1; color: #fff; }
.e404-badge__text { font-size: 18px; color: #fff; margin-top: 4px; }

body.error404 { background: #ebf9ee; }

.e404-main { max-width: 640px; margin: 0 auto; padding: 48px 20px 72px; text-align: center; }
.e404-card { background: #fff; padding: 32px 28px 40px; }
.e404-card__title { font-size: 26px; margin-bottom: 12px; }
.e404-card__text { font-size: 16px; }

.e404-search {
	display: flex;
	max-width: 360px;
	margin: 28px auto 0;
	background: #ebf9ee;
	padding: 5px;
}
.e404-search input { flex: 1; border: 0; background: transparent; padding: 10px 14px; font: inherit; }
.e404-search input:focus { outline: none; }
.e404-search button {
	flex: none;
	width: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #3f9157;
	color: #fff;
}
