/**
 * Blog page (blog-page.php, first page of the posts page). Loaded on that
 * page only. Markup in inc/blog.php; the section header row is in
 * section-heading.css, the card variants in post-card.css.
 * See "Blog page" in docs/design-system.md (no screenshot).
 */

/*
 * Latest posts (ivory): lead card, then the compact cards in one column;
 * from 1024px the lead takes 7 of 12 columns and the compact cards are
 * stacked on the right. Hairlines between the compact cards.
 */
.bst-blog-latest__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--gap);
}

.bst-blog-latest__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bst-blog-latest__item {
	margin: 0;
}

.bst-blog-latest__item + .bst-blog-latest__item {
	margin-top: calc(var(--gap) / 2);
	padding-top: calc(var(--gap) / 2);
	border-top: 1px solid var(--color-border);
}

.bst-blog-latest__empty {
	margin: 0;
}

@media (min-width: 1024px) {

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

	.bst-blog-latest__lead {
		grid-column: 1 / 8;
	}

	.bst-blog-latest__list {
		grid-column: 8 / 13;
	}
}

/* Category sections: the card grid is .bst-card-grid in post-card.css. */
