/* Blog archive head: centered title with the gold bar, lead underneath. */
.kkh-archive-head h1.has-text-align-center::after {
	content: "";
	display: block;
	width: 3.5rem;
	height: 3px;
	margin: 0.75rem auto 0;
	border-radius: var(--wp--preset--border-radius--round);
	background: var(--wp--preset--color--accent);
}

/* Article cards: photo card with a category chip and a Read article link
   pinned to the bottom; equal-height cards line up in the grid. */
.kkh-card-post .kkh-card-post-body {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	flex: 1 1 auto;
}

.kkh-card-post .kkh-card-post-body > * {
	margin: 0;
}

.kkh-card-post .wp-block-post-featured-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.kkh-card-post .wp-block-post-terms a {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border-radius: var(--wp--preset--border-radius--round);
	background: rgba(201, 154, 46, 0.14);
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
}

.kkh-card-post .wp-block-post-terms a:hover,
.kkh-card-post .wp-block-post-terms a:focus-visible {
	color: var(--wp--preset--color--primary);
}

.kkh-card-post .wp-block-post-title {
	font-size: 1.25rem;
	line-height: 1.3;
}

.kkh-card-post .wp-block-post-date {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.kkh-card-post .wp-block-post-excerpt {
	margin-bottom: 0;
}

.kkh-card-post .wp-block-read-more {
	margin-top: 0.375rem;
	font-weight: 600;
}

.kkh-card-post .wp-block-read-more a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.kkh-card-post .wp-block-read-more a:hover,
.kkh-card-post .wp-block-read-more a:focus-visible {
	text-decoration: underline;
}

/* The newest article spans the grid as a feature: photo beside the text
   on wide screens, an ordinary card once the grid folds. */
.kkh-blog-grid > li:first-child {
	grid-column: 1 / -1;
}

@media (min-width: 782px) {
	.kkh-blog-grid > li:first-child .kkh-card-post {
		display: grid;
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
		align-items: stretch;
		column-gap: var(--wp--preset--spacing--40);
	}

	.kkh-blog-grid > li:first-child .wp-block-post-featured-image,
	.kkh-blog-grid > li:first-child .wp-block-post-featured-image img {
		height: 100%;
		aspect-ratio: auto;
	}

	.kkh-blog-grid > li:first-child .kkh-card-post-body {
		align-self: center;
	}

	.kkh-blog-grid > li:first-child .wp-block-post-title {
		font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
	}
}