/* FiggHealth blog (home.php, category.php, single-post.php): newsroom layout in FiggHealth colors */
.fh-blog {
	--fh-blue: #1e79f2;
	--fh-blue-dark: #165fc2;
	--fh-navy: #324370;
	--fh-cyan: #06d2ed;
	--fh-ink: #242424;
	--fh-text: #3b3b3b;
	--fh-muted: #6f6f6f;
	--fh-border: #e4e4e4;
	--fh-soft: #f5f7fb;
	background: #fff;
	/* The theme floats every <section> (incl. the page title banner); start below it, not beside it */
	clear: both;
	color: var(--fh-text);
	font-family: "Roboto", Arial, sans-serif;
	padding: 2.5rem 0 4.5rem;
}

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

.fh-container {
	margin: 0 auto;
	max-width: 1200px;
	padding: 0 1.25rem;
	width: 100%;
}

.fh-blog a {
	text-decoration: none;
}

/* Listing header (home.php / category.php): light band, left aligned, like the Figgers newsrooms */
.fh-blog.fh-blog-hero-wrap {
	padding: 0;
}

.fh-hero,
.fh-article-head {
	background: linear-gradient(180deg, #eaf3fe 0%, #fff 100%);
	border-bottom: 1px solid var(--fh-border);
	padding: 2.5rem 0 1.75rem;
}

/* Above 995px the theme's navy header (about 100px) sits on top of the page instead of pushing it down */
@media (min-width: 996px) {
	.fh-hero,
	.fh-article-head {
		padding-top: calc(100px + 3rem);
	}
}

.fh-hero-eyebrow {
	color: var(--fh-blue);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	margin: 0 0 0.5rem;
	text-transform: uppercase;
}

.fh-blog .fh-hero-title {
	color: var(--fh-navy);
	font-family: "Roboto", Arial, sans-serif;
	font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
	margin: 0;
}

.fh-hero-subtitle {
	color: var(--fh-muted);
	font-size: 1.125rem;
	line-height: 1.6;
	margin: 0.75rem 0 0;
	max-width: 55rem;
}

/* Category pills */
.fh-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1.75rem 0 0;
}

.fh-filter {
	border: 1px solid var(--fh-border);
	border-radius: 999px;
	color: var(--fh-navy);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1;
	padding: 0.625rem 1.125rem;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.fh-filter:hover,
.fh-filter:focus-visible {
	border-color: var(--fh-blue);
	color: var(--fh-blue);
}

.fh-filter.is-active {
	background: var(--fh-blue);
	border-color: var(--fh-blue);
	color: #fff;
}

/* Shared bits */
.fh-kicker {
	color: var(--fh-blue);
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin-bottom: 0.625rem;
	text-transform: uppercase;
}

.fh-kicker:hover {
	color: var(--fh-navy);
}

.fh-date {
	color: var(--fh-muted);
	display: block;
	font-size: 0.8125rem;
	margin-top: 0.875rem;
}

.fh-media-empty {
	background: linear-gradient(135deg, var(--fh-navy), var(--fh-blue) 60%, var(--fh-cyan));
	display: block;
	height: 100%;
	width: 100%;
}

.fh-read-more {
	align-items: center;
	color: var(--fh-blue);
	display: inline-flex;
	font-weight: 600;
	gap: 0.375rem;
	margin-top: 1.25rem;
}

.fh-read-more span {
	transition: transform 0.2s;
}

.fh-read-more:hover span {
	transform: translateX(3px);
}

/* Featured story */
.fh-featured {
	align-items: center;
	border-bottom: 1px solid var(--fh-border);
	display: grid;
	gap: 2.5rem;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	margin-bottom: 3rem;
	padding-bottom: 3rem;
}

.fh-featured-media,
.fh-card-media {
	aspect-ratio: 16 / 9;
	background: var(--fh-soft);
	border-radius: 12px;
	display: block;
	overflow: hidden;
}

.fh-featured-media img,
.fh-card-media img {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
	width: 100%;
}

.fh-featured:hover .fh-featured-media img,
.fh-card:hover .fh-card-media img {
	transform: scale(1.03);
}

.fh-featured-title {
	font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 1rem;
}

.fh-featured-title a,
.fh-card-title a {
	color: var(--fh-ink);
	transition: color 0.2s;
}

.fh-featured-title a:hover,
.fh-card-title a:hover {
	color: var(--fh-blue);
}

.fh-featured-summary {
	color: var(--fh-text);
	display: -webkit-box;
	font-size: 1.0625rem;
	line-height: 1.65;
	margin: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

/* Grid */
.fh-section-title {
	color: var(--fh-navy);
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 1.5rem;
}

.fh-grid {
	display: grid;
	gap: 2.5rem 1.75rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fh-card {
	display: flex;
	flex-direction: column;
}

.fh-card-media {
	margin-bottom: 1.125rem;
}

.fh-card-title {
	font-size: 1.1875rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 0.625rem;
}

.fh-card-summary {
	color: var(--fh-text);
	font-size: 0.9375rem;
	line-height: 1.6;
	margin: 0;
}

/* Pagination (the_posts_pagination) */
.fh-blog .fh-pagination {
	margin-top: 3.5rem;
}

.fh-blog .fh-pagination .nav-links {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
}

.fh-blog .fh-pagination .page-numbers {
	align-items: center;
	border: 1px solid var(--fh-border);
	border-radius: 999px;
	color: var(--fh-navy);
	display: inline-flex;
	font-weight: 500;
	height: 2.75rem;
	justify-content: center;
	min-width: 2.75rem;
	padding: 0 1rem;
}

.fh-blog .fh-pagination a.page-numbers:hover {
	border-color: var(--fh-blue);
	color: var(--fh-blue);
}

.fh-blog .fh-pagination .page-numbers.current {
	background: var(--fh-blue);
	border-color: var(--fh-blue);
	color: #fff;
}

.fh-blog .fh-pagination .page-numbers.dots {
	border: 0;
	min-width: 0;
	padding: 0 0.25rem;
}

/* Empty state */
.fh-empty {
	color: var(--fh-muted);
	margin: 1rem auto;
	max-width: 30rem;
	padding: 3rem 1rem;
	text-align: center;
}

.fh-empty svg {
	color: var(--fh-blue);
	opacity: 0.6;
}

.fh-empty h2 {
	color: var(--fh-ink);
	font-size: 1.375rem;
	margin: 1rem 0 0.5rem;
}

.fh-empty p {
	margin: 0;
}

/* Responsive */
@media (max-width: 991px) {
	.fh-featured {
		gap: 1.5rem;
		grid-template-columns: 1fr;
	}

	.fh-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.fh-blog {
		padding: 1.75rem 0 3rem;
	}

	.fh-container {
		padding: 0 1rem;
	}

	.fh-hero,
	.fh-article-head {
		padding: 1.75rem 0 1.5rem;
	}

	.fh-filters {
		flex-wrap: nowrap;
		margin: 1.5rem -1rem 0;
		overflow-x: auto;
		padding: 0 1rem 0.25rem;
		scrollbar-width: none;
	}

	.fh-filters::-webkit-scrollbar {
		display: none;
	}

	.fh-filter {
		flex: 0 0 auto;
	}

	.fh-featured {
		margin-bottom: 2.25rem;
		padding-bottom: 2.25rem;
	}

	.fh-grid {
		gap: 2rem;
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fh-featured-media img,
	.fh-card-media img,
	.fh-read-more span {
		transition: none;
	}
}

/* ================================================================
   Single article (single-post.php)
   ================================================================ */

/* Header band (crumbs, title, summary, dateline) shares the body's grid so the title lines up with the image */
.fh-article-head {
	border-bottom: 0;
	margin-bottom: 0.5rem;
}

.fh-crumbs {
	color: var(--fh-muted);
	font-size: 0.8125rem;
	font-weight: 600;
	display: none;
	margin: 0 0 1rem;
}

.fh-crumbs a {
	color: var(--fh-blue);
}

.fh-crumbs a:hover {
	color: var(--fh-navy);
}

.fh-crumbs span {
	margin: 0 0.375rem;
}

.fh-blog .fh-article-title {
	color: var(--fh-navy);
	font-family: "Roboto", Arial, sans-serif;
	font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.18;
	margin: 0;
}

.fh-article-summary {
	color: var(--fh-muted);
	font-size: 1.25rem;
	line-height: 1.55;
	margin: 1rem 0 0;
}

.fh-dateline {
	align-items: center;
	border-top: 1px solid var(--fh-border);
	color: var(--fh-ink);
	display: flex;
	flex-wrap: wrap;
	font-size: 0.9375rem;
	font-weight: 600;
	gap: 0.25rem 0.625rem;
	line-height: 1.5;
	margin: 1.25rem 0 0;
	padding: 0.875rem 0 0;
}

.fh-dateline-sep {
	color: var(--fh-border);
	font-weight: 400;
}

.fh-dateline-muted {
	color: var(--fh-muted);
	font-weight: 500;
}

/* Body + sticky sidebar */
.fh-article-layout {
	align-items: start;
	display: grid;
	gap: 3.5rem;
	grid-template-columns: minmax(0, 1fr) 18.75rem;
}

.fh-article-image {
	margin: 0;
}

.fh-article-image img {
	border-radius: 12px;
	display: block;
	height: auto;
	width: 100%;
}

.fh-article-image figcaption {
	color: var(--fh-muted);
	font-size: 0.8125rem;
	margin-top: 0.625rem;
}

/* ----------------------------------------------------------------
   Article body: shared styles for every blog post.
   Write posts with the class names below (figg-lead, figg-cards, figg-stages,
   figg-stakeholders, figg-note, figg-sources, figg-about, figg-date); no <style>
   block is needed in the post. The old <div class="figg-article"> wrapper is optional.
   ---------------------------------------------------------------- */
.fh-article-content {
	color: #263449;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 17px;
	line-height: 1.75;
	margin: 0;
}

.fh-article-content * {
	box-sizing: border-box;
}

/* Old posts wrap their text in .figg-article; it sits inside the article column, so no extra width or padding */
.fh-article-content .figg-article {
	font: inherit;
	color: inherit;
	margin: 0;
	max-width: none;
	padding: 0;
}

.fh-article-content p {
	margin: 0 0 20px;
}

.fh-article-content ul,
.fh-article-content ol {
	margin: 0 0 20px;
	padding-left: 1.5rem;
}

.fh-article-content li {
	margin: 0 0 8px;
}

/* Bold headings in every article, including posts that still carry their own inline styles */
.fh-blog .fh-article-content h1,
.fh-blog .fh-article-content h2,
.fh-blog .fh-article-content h3,
.fh-blog .fh-article-content h4 {
	font-family: Arial, Helvetica, sans-serif;
	font-weight: 700;
}

.fh-blog .fh-article-content h2 {
	border-bottom: 2px solid #e6f0f6;
	color: #173b70;
	font-size: 27px;
	line-height: 1.3;
	margin: 36px 0 16px;
	padding: 0 0 9px;
}

.fh-blog .fh-article-content h3 {
	color: #087da0;
	font-size: 20px;
	line-height: 1.4;
	margin: 24px 0 9px;
}

.fh-blog .fh-article-content > h2:first-child,
.fh-blog .fh-article-content .figg-article > h2:first-child {
	margin-top: 0;
}

.fh-blog .fh-article-content a {
	color: #087da0;
	overflow-wrap: anywhere;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fh-article-content img {
	border-radius: 8px;
	height: auto;
	max-width: 100%;
}

/* Intro paragraph */
.fh-article-content .figg-lead {
	background: #f0f9fc;
	border-left: 5px solid #28b9d2;
	border-radius: 8px;
	color: #17355d;
	font-size: 18px;
	line-height: 1.65;
	margin: 0 0 24px;
	padding: 20px 22px;
}

.fh-article-content .figg-date {
	background: #f2f5f8;
	border-radius: 4px;
	color: #52657c;
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.045em;
	margin: 0 0 24px;
	padding: 7px 12px;
}

/* Card lists */
.fh-article-content .figg-cards {
	list-style: none;
	margin: 18px 0 24px;
	padding: 0;
}

.fh-article-content .figg-cards li {
	background: #f5fafc;
	border: 1px solid #e2eef3;
	border-radius: 9px;
	margin: 0 0 10px;
	padding: 15px 17px;
}

.fh-article-content .figg-cards li strong {
	color: #173b70;
}

/* Numbered steps */
.fh-article-content .figg-stages {
	counter-reset: stage;
}

.fh-article-content .figg-stages li {
	min-height: 64px;
	padding-left: 58px;
	position: relative;
}

.fh-article-content .figg-stages li::before {
	background: #087da0;
	border-radius: 50%;
	color: #fff;
	content: counter(stage);
	counter-increment: stage;
	font-size: 15px;
	font-weight: 700;
	height: 28px;
	left: 16px;
	line-height: 28px;
	position: absolute;
	text-align: center;
	top: 14px;
	width: 28px;
}

/* Three-column boxes */
.fh-article-content .figg-stakeholders {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 16px 0 22px;
}

/* The theme floats every <section>; sections inside the article body must flow normally */
.fh-article-content section {
	float: none;
	width: auto;
}

.fh-article-content .figg-stakeholders section {
	background: #f5fafc;
	border: 1px solid #e2eef3;
	border-radius: 9px;
	padding: 16px;
}

.fh-blog .fh-article-content .figg-stakeholders h3 {
	margin: 0 0 8px;
}

.fh-article-content .figg-stakeholders p {
	font-size: 16px;
	line-height: 1.6;
	margin: 0;
}

/* Callouts */
.fh-article-content .figg-note {
	background: #fff9ee;
	border-left: 4px solid #e8aa42;
	border-radius: 6px;
	color: #46566a;
	font-size: 15px;
	line-height: 1.6;
	margin: 18px 0 24px;
	padding: 15px 17px;
}

.fh-article-content .figg-sources {
	background: #f7f9fb;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.6;
	margin: 28px 0 22px;
	padding: 17px 19px;
}

.fh-article-content .figg-sources p {
	margin: 0 0 8px;
}

.fh-article-content .figg-about {
	border-top: 1px solid #dfe7ed;
	color: #59697a;
	font-size: 14px;
	line-height: 1.6;
	margin-top: 30px;
	padding-top: 18px;
}

@media (max-width: 700px) {
	.fh-article-content {
		font-size: 16px;
	}

	.fh-blog .fh-article-content h2 {
		font-size: 24px;
	}

	.fh-article-content .figg-lead {
		font-size: 17px;
	}

	.fh-article-content .figg-stakeholders {
		gap: 9px;
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.fh-article-content {
		font-size: 15.5px;
		line-height: 1.7;
	}

	.fh-article-content .figg-lead {
		font-size: 16px;
		padding: 16px;
	}

	.fh-blog .fh-article-content h2 {
		font-size: 22px;
		margin-top: 30px;
	}

	.fh-blog .fh-article-content h3 {
		font-size: 18px;
	}

	.fh-article-content .figg-cards li {
		padding: 13px;
	}

	.fh-article-content .figg-stages li {
		padding-left: 53px;
	}
}

.fh-article-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 2rem;
}

/* Previous / next */
.fh-post-nav {
	border-top: 1px solid var(--fh-border);
	display: grid;
	gap: 1.25rem;
	grid-template-columns: 1fr 1fr;
	margin-top: 2.5rem;
	padding-top: 2rem;
}

.fh-post-nav-link {
	border: 1px solid var(--fh-border);
	border-radius: 12px;
	display: block;
	padding: 1.125rem 1.25rem;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.fh-post-nav-link:hover {
	border-color: var(--fh-blue);
	box-shadow: 0 6px 20px rgba(30, 121, 242, 0.08);
}

.fh-post-nav-link.is-next {
	grid-column: 2;
	text-align: right;
}

.fh-post-nav-label {
	color: var(--fh-blue);
	display: block;
	font-size: 0.8125rem;
	font-weight: 600;
	margin-bottom: 0.375rem;
}

.fh-post-nav-title {
	color: var(--fh-ink);
	display: -webkit-box;
	font-weight: 600;
	line-height: 1.4;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

/* Sidebar: sticky below the theme's fixed header (125px). The theme sets overflow-x: hidden on
   html/body, which disables position: sticky; clip hides sideways overflow the same way without that. */
html:has(body.single-post),
body.single-post {
	overflow-x: clip;
}

.fh-article-aside {
	display: grid;
	gap: 1.5rem;
	position: sticky;
	top: calc(125px + 1.5rem);
}

.fh-aside-box {
	background: var(--fh-soft);
	border-radius: 12px;
	padding: 1.25rem;
}

.fh-aside-title {
	color: var(--fh-navy);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin: 0 0 1rem;
	text-transform: uppercase;
}

/* Share bar under the featured image */
.fh-share {
	align-items: center;
	border-bottom: 1px solid var(--fh-border);
	border-top: 1px solid var(--fh-border);
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	justify-content: space-between;
	margin: 1.5rem 0 2rem;
	padding: 0.875rem 0;
}

.fh-share-label {
	color: var(--fh-muted);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.fh-share-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.fh-share-btn {
	align-items: center;
	background: var(--fh-soft);
	border: 1px solid transparent;
	border-radius: 50%;
	color: var(--fh-navy);
	cursor: pointer;
	display: inline-flex;
	height: 2.375rem;
	justify-content: center;
	padding: 0;
	transition: background 0.2s, color 0.2s;
	width: 2.375rem;
}

.fh-share-btn:hover,
.fh-share-btn:focus-visible {
	background: var(--fh-blue);
	color: #fff;
}

.fh-share-btn.is-copied {
	background: #1e8e3e;
	color: #fff;
}

.fh-latest {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fh-latest li + li {
	border-top: 1px solid var(--fh-border);
	margin-top: 0.875rem;
	padding-top: 0.875rem;
}

.fh-latest a {
	align-items: flex-start;
	display: flex;
	gap: 0.75rem;
}

.fh-latest img,
.fh-latest .fh-media-empty {
	border-radius: 8px;
	flex: 0 0 4rem;
	height: 4rem;
	object-fit: cover;
	width: 4rem;
}

.fh-latest-title {
	color: var(--fh-ink);
	display: -webkit-box;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.fh-latest a:hover .fh-latest-title {
	color: var(--fh-blue);
}

.fh-latest time {
	color: var(--fh-muted);
	display: block;
	font-size: 0.75rem;
	margin-top: 0.25rem;
}

.fh-article-page {
	padding: 0 0 4.5rem;
}

@media (max-width: 991px) {
	.fh-article-layout {
		gap: 2.5rem;
		grid-template-columns: 1fr;
	}

	.fh-article-aside {
		position: static;
	}
}

@media (max-width: 600px) {
	.fh-post-nav {
		grid-template-columns: 1fr;
	}

	.fh-post-nav-link.is-next {
		grid-column: auto;
	}

	.fh-article-page {
		padding-bottom: 3rem;
	}
}
