/**
 * latest-guides.css — homepage "latest guides" grid.
 *
 * Paired with inc/latest-guides.php ([empire_latest_guides]). Replaces the
 * hardcoded three-card block that every homepage shipped with, so colors come
 * from --empire-accent instead of being frozen per site.
 */

.empire-guides {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	max-width: 1170px;
	margin: 0 auto;
	text-align: left;
}

.empire-guide-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, .07);
	border-radius: 12px;
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}

.empire-guide-card:hover {
	box-shadow: 0 10px 28px rgba(0, 0, 0, .09);
	transform: translateY(-2px);
}

/* ── Thumbnail ─────────────────────────────────────────────────────────── */

.empire-guide-thumb {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f1efea;
}

.empire-guide-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s ease;
}

.empire-guide-card:hover .empire-guide-thumb img { transform: scale(1.04); }

.empire-guide-thumb-fallback {
	display: block;
	width: 100%;
	height: 100%;
	background:
		linear-gradient(135deg, rgba(0, 0, 0, .05), transparent 60%),
		var(--empire-accent, #c2410c);
	opacity: .18;
}

/* ── Body ──────────────────────────────────────────────────────────────── */

.empire-guide-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
	padding: 22px 24px 24px;
}

.empire-guide-kicker {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--empire-accent, #c2410c);
}

.empire-guide-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.empire-guide-title a {
	color: inherit;
	text-decoration: none;
}

.empire-guide-title a:hover { color: var(--empire-accent, #c2410c); }

.empire-guide-excerpt {
	margin: 0;
	flex: 1;
	font-size: 14px;
	line-height: 1.6;
	color: #636879;
}

.empire-guide-meta {
	font-size: 12.5px;
	color: #8b8f9a;
}

.empire-guide-more {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .5px;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--empire-accent, #c2410c);
}

.empire-guide-more:hover { text-decoration: underline; }

/* ── No posts yet: hide the whole section, heading included ────────────── */

.wp-block-group:has(> .empire-guides-empty),
.wp-block-group:has(> * > .empire-guides-empty) { display: none; }

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 991px) {
	.empire-guides { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 640px) {
	.empire-guides { grid-template-columns: 1fr; gap: 18px; }
	.empire-guide-body { padding: 18px 20px 20px; }
}
