/*
 * Reuses the same v2 dark palette (--accent/--text/--muted:
 * #ef4939/#f5f7fa/#a1abb6) as Widget_Hero_Search/Widget_Force_Wipe_Countdown/
 * Widget_Server_Promo_Banner, redefined locally under this widget's own
 * class — same "redefine, don't cross-load" reasoning those already give.
 *
 * The outer section is its own self-contained dark panel (background
 * #071017), same as that whole widget family, rather than transparent
 * against whatever the page's own background happens to be — this is
 * what guarantees the contrast checks below actually hold regardless of
 * where the widget is placed: --text (#f5f7fa) ~15.5:1, --muted
 * (#a1abb6) ~8.2:1, date label (#ff8175, same value as the hero's own
 * eyebrow) ~7.8:1 — all already verified against this exact background
 * in hero-search.css/wipe-countdown.css's own docblocks, reused here
 * without new math since the background is identical.
 */
.rusto-latest-posts {
	--accent: #ef4939;
	--text: #f5f7fa;
	--muted: #a1abb6;
	padding: clamp(1.75rem, 4vw, 2.75rem);
	color: var(--text);
	background: #071017;
	border: 1px solid rgba(255, 255, 255, .06);
	border-radius: 14px;
	box-shadow: 0 28px 70px rgba(0, 0, 0, .26), inset 0 1px rgba(255, 255, 255, .03);
}

.rusto-latest-posts__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1.75rem;
}

.rusto-latest-posts__heading {
	margin: 0;
	color: var(--text);
	font-size: clamp(1.6rem, 2.8vw, 2.2rem);
	font-weight: 900;
	letter-spacing: -.02em;
	text-transform: uppercase;
}

.rusto-latest-posts__view-all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--muted);
	font-size: .88rem;
	font-weight: 700;
	text-decoration: none;
	transition: color .15s ease;
}

.rusto-latest-posts__view-all svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
}

.rusto-latest-posts__view-all:hover {
	color: var(--accent);
}

.rusto-latest-posts__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}

.rusto-latest-posts__card {
	background: rgba(255, 255, 255, .03);
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 12px;
	overflow: hidden;
	transition: transform .15s ease, border-color .15s ease;
}

.rusto-latest-posts__card:hover {
	transform: translateY(-3px);
	border-color: rgba(255, 255, 255, .18);
}

.rusto-latest-posts__card-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.rusto-latest-posts__thumb {
	aspect-ratio: 16 / 10;
	background: linear-gradient(160deg, #141e29, #0a1119);
	overflow: hidden;
}

.rusto-latest-posts__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rusto-latest-posts__body {
	padding: 1.25rem 1.35rem 1.5rem;
}

.rusto-latest-posts__date {
	margin: 0 0 .5rem;
	color: #ff8175;
	font-size: .72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .09em;
}

.rusto-latest-posts__title {
	margin: 0 0 .6rem;
	color: var(--text);
	font-size: 1.12rem;
	line-height: 1.3;
	font-weight: 800;
	letter-spacing: -.01em;
}

.rusto-latest-posts__excerpt {
	margin: 0;
	color: var(--muted);
	font-size: .88rem;
	line-height: 1.6;
}

@media (max-width: 980px) {
	.rusto-latest-posts__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.rusto-latest-posts__grid {
		grid-template-columns: 1fr;
	}
}
