/* ==========================================================================
   Blog index and category archives – template-parts/blog-index.php
   Values from reference/Blog.html. The page hero and the card styles come
   from main.css.
   ========================================================================== */

.be_blog-hero {
	padding-top: 32px;
	padding-bottom: 56px;
}

/* The blog hero is a column stack, not a split: `.be_phero-text`'s flex-basis
   would otherwise apply to the HEIGHT and force a 520px-tall empty band. */
.be_blog-herotext {
	flex: 0 0 auto;
	gap: 24px;
	max-width: 760px;
}

.be_blog-h1 {
	font-size: var(--be-h1);
	letter-spacing: -0.02em;
	line-height: 1.06;
}

.be_blog-hero .be_phero-lead {
	max-width: 600px;
	font-size: 20px;
}

.be_blog-main {
	padding-top: 56px;
	padding-bottom: 0;
}

.be_blog-main .be_stack {
	gap: 40px;
}

/* --- the latest post, as a wide two-column card -------------------------- */
.be_blog-featured {
	display: flex;
	flex-wrap: wrap;
	background: var(--be-white);
	border: 1px solid var(--be-line);
	border-radius: var(--be-r-panel);
	overflow: hidden;
}

/* The photo fills its half of the card. It is positioned rather than given
   `height: 100%`, which has no definite height to resolve against here and
   grows the card without bound. */
.be_blog-featured-media {
	position: relative;
	flex: 1 1 440px;
	min-width: 0;
	min-height: 320px;
}

.be_blog-featured-media .be_img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
	object-fit: cover;
	border-radius: 0;
}

.be_blog-featured-media .be_ph {
	height: 100%;
	min-height: 320px;
	aspect-ratio: auto;
	border-radius: 0;
}

.be_blog-featured-body {
	flex: 1 1 440px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
	padding: 44px;
}

.be_blog-featured-title {
	max-width: 24ch;
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 500;
	line-height: 1.15;
}

.be_blog-featured-text {
	max-width: 62ch;
	font-size: 18px;
	color: var(--be-text);
}

.be_blog-featured-more {
	font-weight: 700;
	color: var(--be-blue);
}

/* --- pagination ---------------------------------------------------------- */
.be_blog-pagination {
	justify-content: center;
}

.be_blog-pagination .be_chip {
	min-width: 44px;
}

/* --- closing CTA section ------------------------------------------------- */
.be_blog-cta {
	padding-top: 96px;
	padding-bottom: 96px;
}

@media (max-width: 1040px) {
	.be_blog-cta {
		padding-top: 72px;
		padding-bottom: 72px;
	}
}

@media (max-width: 860px) {
	.be_blog-hero {
		padding-top: 24px;
		padding-bottom: 40px;
	}

	.be_blog-main {
		padding-top: 40px;
	}

	.be_blog-featured-body {
		padding: 28px 22px;
	}

	.be_blog-featured-media {
		min-height: 0;
	}

	.be_blog-featured-media .be_img,
	.be_blog-featured-media .be_ph {
		position: static;
		min-height: 0;
		height: auto;
		aspect-ratio: 16 / 10;
	}

	.be_blog-cta {
		padding-top: 48px;
		padding-bottom: 48px;
	}

	.be_ctacard {
		padding: 28px 22px;
		border-radius: var(--be-r-card);
	}
}
