/**
 * Blog archive (templates/home.html) — mirrors the Astro build's
 * ArticleCollection.astro / ArticleCard.astro: white rounded-2xl cards,
 * soft shadow that lifts on hover, 3/2/1-column responsive grid.
 */
.df-blog-query .wp-block-post-template.is-layout-grid {
	gap: 2rem;
	grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 960px) {
	.df-blog-query .wp-block-post-template.is-layout-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.df-blog-query .wp-block-post-template.is-layout-grid {
		grid-template-columns: 1fr;
	}
}

.df-article-card {
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.df-article-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.2);
}

/* Reserves the image slot even when a post has no featured image set —
 * WordPress renders nothing at all for post-featured-image in that case
 * (no wrapper, no placeholder), so without this the card body sits flush
 * against the top edge instead of leaving room for a photo. */
.df-article-card-media {
	aspect-ratio: 16 / 9;
	background: var(--wp--preset--gradient--brand, linear-gradient(64deg, #002855 25%, #0058bb 98%));
	overflow: hidden;
}

.df-article-card-media .wp-block-post-featured-image img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
	width: 100%;
	height: 100%;
	display: block;
}

.df-article-card-body {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.df-article-card-meta {
	font-size: 0.85rem;
	gap: 0.5rem;
}

.df-article-card-meta > * {
	margin: 0;
}

.df-article-card .wp-block-post-title {
	margin: 0;
}

.df-article-card .wp-block-post-excerpt {
	color: var(--wp--preset--color--accent-4, #5b6b7f);
	margin: 0;
}

.df-article-card-readmore {
	margin-top: auto;
	font-weight: 700;
	color: var(--wp--preset--color--accent-1, #0058bb);
}
