/*
 * White blog design.
 * Enqueue this file only on the posts index and single post pages.
 */

:root {
	--blog-white-bg: #ffffff;
	--blog-white-panel: #ffffff;
	--blog-white-soft: #f7f9f8;
	--blog-white-soft-2: #eef5f2;
	--blog-white-line: #e4e8e6;
	--blog-white-line-strong: #cfd8d4;
	--blog-white-text: #111827;
	--blog-white-muted: #647067;
	--blog-white-accent: #007a5f;
	--blog-white-accent-dark: #005f49;
	--blog-white-shadow: 0 18px 44px rgba(17, 24, 39, 0.08);
}

.blog-white-site-body {
	background: var(--blog-white-bg);
}

.blog-white {
	background: var(--blog-white-bg);
	color: var(--blog-white-text);
	font-family: inherit;
	line-height: 1.8;
}

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

.blog-white-container {
	width: min(1080px, calc(100% - 40px));
	margin-inline: auto;
}

.blog-white-narrow {
	width: min(820px, calc(100% - 40px));
}

.blog-white-hero {
	position: relative;
	overflow: hidden;
	padding: 72px 0 54px;
	background:
		linear-gradient(rgba(0, 155, 122, 0.055) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 155, 122, 0.045) 1px, transparent 1px),
		linear-gradient(180deg, #ffffff 0%, #f7f9f8 100%);
	background-size: 36px 36px, 36px 36px, auto;
	border-bottom: 1px solid var(--blog-white-line);
}

.blog-white-hero::before {
	position: absolute;
	inset: auto 0 0;
	height: 3px;
	content: "";
	background: linear-gradient(90deg, var(--blog-white-accent), transparent 72%);
}

.blog-white-hero .blog-white-container {
	position: relative;
	padding-left: 22px;
	border-left: 4px solid var(--blog-white-accent);
}

.blog-white-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	color: var(--blog-white-accent-dark);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
}

.blog-white-kicker::before {
	width: 8px;
	height: 8px;
	content: "";
	background: var(--blog-white-accent);
	border-radius: 50%;
	box-shadow: 0 0 0 5px rgba(0, 155, 122, 0.12);
}

.blog-white-title,
.blog-white-article-title {
	margin: 0;
	color: var(--blog-white-text);
	font-weight: 800;
	line-height: 1.22;
	letter-spacing: 0;
}

.blog-white-title {
	font-size: 44px;
}

.blog-white-lead {
	max-width: 680px;
	margin: 16px 0 0;
	color: var(--blog-white-muted);
	font-size: 16px;
	line-height: 1.9;
}

.blog-white-section {
	padding: 58px 0 82px;
	background: linear-gradient(180deg, #ffffff 0%, #ffffff 58%, var(--blog-white-soft) 100%);
}

.blog-white-page-content {
	display: grid;
	gap: 44px;
}

.blog-white-page-content > * {
	margin-top: 0;
	margin-bottom: 0;
}

.blog-white-page-content .wp-block-heading,
.blog-white-page-content h2,
.blog-white-page-content h3 {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35em 0.7em;
	align-items: baseline;
	margin: 0 0 -14px;
	padding: 0 0 16px 18px;
	color: var(--blog-white-text);
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: 0;
	border-bottom: 1px solid var(--blog-white-line);
}

.blog-white-page-content .wp-block-heading::before,
.blog-white-page-content h2::before,
.blog-white-page-content h3::before {
	position: absolute;
	top: 0.28em;
	left: 0;
	width: 5px;
	height: 1.15em;
	content: "";
	background: var(--blog-white-accent);
	border-radius: 999px;
}

.blog-white-page-content h2,
.blog-white-page-content .wp-block-heading {
	font-size: 28px;
}

.blog-white-page-content h3 {
	font-size: 22px;
}

.blog-white-page-content .wp-block-query {
	margin: 0;
}

.blog-white-page-content .wp-block-post-template {
	gap: 24px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.blog-white-page-content .wp-block-post {
	position: relative;
	min-width: 0;
	background: var(--blog-white-panel);
	border: 1px solid rgba(0, 95, 73, 0.34);
	border-radius: 8px;
	box-shadow: 0 1px 0 rgba(17, 24, 39, 0.03);
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.blog-white-page-content .wp-block-post::before {
	position: absolute;
	inset: 5px;
	z-index: 0;
	pointer-events: none;
	content: "";
	border: 1px solid rgba(0, 122, 95, 0.28);
	border-radius: 5px;
	transition: border-color 180ms ease;
}

.blog-white-page-content .wp-block-post > * {
	position: relative;
	z-index: 1;
}

.blog-white-page-content .wp-block-post:hover,
.blog-white-page-content .wp-block-post:focus-within {
	border-color: rgba(0, 95, 73, 0.72);
	box-shadow: 0 20px 48px rgba(0, 95, 73, 0.15), 0 8px 22px rgba(17, 24, 39, 0.06);
	transform: translateY(-2px);
}

.blog-white-page-content .wp-block-post:hover::before,
.blog-white-page-content .wp-block-post:focus-within::before {
	border-color: rgba(0, 122, 95, 0.58);
}

.blog-white-page-content .wp-block-post-featured-image {
	overflow: hidden;
	margin: 0;
	border-radius: 8px 8px 0 0;
	background: var(--blog-white-soft);
}

.blog-white-page-content .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: auto;
}

.blog-white-page-content .wp-block-post-title {
	margin-top: 0;
	color: var(--blog-white-text);
	font-weight: 800;
	line-height: 1.45;
	letter-spacing: 0;
}

.blog-white-page-content .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}

.blog-white-page-content .wp-block-post-title a:hover {
	color: var(--blog-white-accent-dark);
}

.blog-white-page-content .wp-block-post-date,
.blog-white-page-content .wp-block-post-terms {
	color: var(--blog-white-muted);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.6;
}

.blog-white-page-content .wp-block-post-excerpt {
	color: var(--blog-white-muted);
	font-size: 15px;
	line-height: 1.8;
}

.blog-white-page-content .wp-block-post-excerpt__excerpt {
	margin-bottom: 0;
}

.blog-white-page-content .wp-block-query-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-top: 34px;
}

.blog-white-page-content .wp-block-query-pagination a,
.blog-white-page-content .wp-block-query-pagination .page-numbers {
	display: inline-grid;
	min-width: 40px;
	height: 40px;
	place-items: center;
	padding: 0 12px;
	color: var(--blog-white-text);
	font-weight: 700;
	text-decoration: none;
	background: #ffffff;
	border: 1px solid var(--blog-white-line);
	border-radius: 8px;
}

.blog-white-page-content .wp-block-query-pagination a:hover,
.blog-white-page-content .wp-block-query-pagination .current {
	color: #ffffff;
	background: var(--blog-white-accent-dark);
	border-color: var(--blog-white-accent-dark);
}

.blog-white-empty {
	padding: 44px;
	text-align: center;
	background: var(--blog-white-soft);
	border: 1px solid var(--blog-white-line);
	border-radius: 8px;
}

.blog-white-article-header {
	padding: 72px 0 34px;
	background: linear-gradient(180deg, #ffffff 0%, var(--blog-white-soft) 100%);
	border-bottom: 1px solid var(--blog-white-line);
}

.blog-white-back {
	display: inline-flex;
	margin-bottom: 26px;
	color: var(--blog-white-accent-dark);
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
}

.blog-white-back:hover {
	text-decoration: underline;
}

.blog-white-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	align-items: center;
	color: var(--blog-white-muted);
	font-size: 13px;
	font-weight: 700;
}

.blog-white-meta span {
	color: var(--blog-white-accent-dark);
}

.blog-white-article-title {
	margin-top: 16px;
	font-size: 42px;
}

.blog-white-featured {
	aspect-ratio: 16 / 8;
	margin: 0 0 56px;
	overflow: hidden;
	background: var(--blog-white-soft);
	border-radius: 8px;
}

.blog-white-featured-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.blog-white-content {
	color: #1f2937;
	font-size: 17px;
	line-height: 1.95;
}

.blog-white-content > *:first-child {
	margin-top: 0;
}

.blog-white-content h2,
.blog-white-content h3,
.blog-white-content h4 {
	color: var(--blog-white-text);
	line-height: 1.45;
	letter-spacing: 0;
}

.blog-white-content h2 {
	margin: 2.4em 0 0.8em;
	padding-bottom: 0.4em;
	font-size: 28px;
	border-bottom: 1px solid var(--blog-white-line);
}

.blog-white-content h3 {
	margin: 2em 0 0.7em;
	font-size: 23px;
}

.blog-white-content p,
.blog-white-content ul,
.blog-white-content ol,
.blog-white-content blockquote,
.blog-white-content figure {
	margin: 0 0 1.45em;
}

.blog-white-content a {
	color: var(--blog-white-accent-dark);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

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

.blog-white-content blockquote {
	padding: 18px 22px;
	color: #374151;
	background: var(--blog-white-soft);
	border-left: 4px solid var(--blog-white-accent);
}

.blog-white-content table {
	display: block;
	width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
}

.blog-white-content th,
.blog-white-content td {
	padding: 12px 14px;
	border: 1px solid var(--blog-white-line);
}

.blog-white-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--blog-white-line);
}

.blog-white-tags a {
	padding: 7px 12px;
	color: var(--blog-white-accent-dark);
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
	background: var(--blog-white-soft-2);
	border-radius: 999px;
}

.blog-white-post-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin: 42px 0 88px;
}

.blog-white-post-nav a {
	display: grid;
	gap: 4px;
	min-height: 88px;
	padding: 18px;
	color: var(--blog-white-text);
	text-decoration: none;
	border: 1px solid var(--blog-white-line);
	border-radius: 8px;
}

.blog-white-post-nav a:hover {
	border-color: rgba(0, 155, 122, 0.42);
	box-shadow: 0 12px 28px rgba(17, 24, 39, 0.07);
}

.blog-white-post-nav span {
	color: var(--blog-white-muted);
	font-size: 13px;
	font-weight: 800;
}

@media (max-width: 640px) {
	.blog-white-container,
	.blog-white-narrow {
		width: min(100% - 28px, 1080px);
	}

	.blog-white-hero {
		padding: 50px 0 40px;
	}

	.blog-white-title {
		font-size: 34px;
	}

	.blog-white-section {
		padding: 42px 0 58px;
	}

	.blog-white-page-content {
		gap: 34px;
	}

	.blog-white-page-content h2,
	.blog-white-page-content .wp-block-heading {
		font-size: 24px;
	}

	.blog-white-post-nav {
		grid-template-columns: 1fr;
	}

	.blog-white-article-header {
		padding: 50px 0 28px;
	}

	.blog-white-article-title {
		font-size: 32px;
	}

	.blog-white-featured {
		aspect-ratio: 16 / 11;
		margin-bottom: 40px;
	}

	.blog-white-content {
		font-size: 16px;
	}
}
