/* ==========================================================================
   COMPONENT — Latest from the Journal
   --------------------------------------------------------------------------
   The three-article strip that closes a blog article. Shared by every article
   structure, so it is defined once here rather than inside whichever structure
   happened to need it first.

   A structure that wants the strip in its own measure overrides the container's
   max-width; nothing else about the component is a structure's business.
   ========================================================================== */

.blog-latest {
	padding-block-start: var(--space-3xl);
}

.blog-latest__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-sm);
	margin-block-end: var(--space-lg);
}

.blog-latest__title {
	margin: 0;
	font-family: var(--font-heading);
	font-style: normal;
	font-weight: 400;
	font-size: 26px;
	line-height: 1.25;
	color: var(--color-ink);
}

.blog-latest__link {
	font-family: var(--font-ui);
	font-weight: 500;
	font-size: 12px;
	line-height: 16px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--color-text);
	transition: color var(--transition-base);
}

.blog-latest__link:hover {
	color: var(--color-primary);
}

.blog-latest__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-lg) var(--space-md);
	margin: 0;
	padding: 0;
	list-style: none;
}

.blog-latest__item {
	min-width: 0;
}

.blog-latest__card {
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
}

.blog-latest__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius-button);
	background-color: var(--color-surface-light);
}

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

/* A card with no photograph keeps its frame rather than showing a broken one. */
.blog-latest__media--plain {
	background-color: var(--color-surface-gray);
}

.blog-latest__card-title {
	margin: 0;
	font-family: var(--font-heading);
	font-style: normal;
	font-weight: 400;
	font-size: 20px;
	line-height: 1.375;
	color: var(--color-ink);
}

.blog-latest__card-title a {
	color: inherit;
	text-decoration: none;
	transition: color var(--transition-base);
}

.blog-latest__card-title a:hover {
	color: var(--color-primary);
}

/* ==========================================================================
   >= 768px
   ========================================================================== */

@media (min-width: 768px) {

	.blog-latest__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ==========================================================================
   >= 1024px
   ========================================================================== */

@media (min-width: 1024px) {

	.blog-latest__title {
		font-size: 32px;
		line-height: 40px;
	}

	.blog-latest__card-title {
		font-size: 24px;
		line-height: 33px;
	}
}

/*
 * Short desktop window (>= 1024 wide, <= 820 tall; client 04.11.2026, 13"
 * laptop ~1414 x 645). Loaded on blog articles only (inc/blog-single.php),
 * never on the homepage. The strip's 120px lead-in was a fifth of the 564px
 * left under the sticky bar; 80 is what Structure 2 already uses (its own
 * .blog-s2 .blog-latest rule outranks this one, so Structure 2 is unchanged).
 * Taller windows keep 120.
 */
@media (min-width: 1024px) and (max-height: 880px) {

	.blog-latest {
		padding-block-start: var(--space-2xl);
	}
}
