/* Insights/Case Studies hub cards — not one of the §3 named components
   (related-grid is close but doesn't match: no icon badge, whole card is
   the link, and the featured variant needs a media/stat panel), so this
   is a page-specific pair of styles shared by both hub templates. */

.post-card-section {
	padding-block: var(--section-pad);
}

.post-card-section--tint {
	background: var(--cyan-tint);
	padding-block: 56px;
}

.post-card-section__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 48px;
	flex-wrap: wrap;
	margin-bottom: 40px;
}

.post-card-section__intro {
	max-width: 30em;
	color: var(--slate);
	margin: 0;
}

.post-card {
	display: block;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 16px;
	transition: border-color 180ms ease-out, transform 180ms ease-out, box-shadow 180ms ease-out;
}

.post-card:hover,
.post-card:focus-visible {
	border-color: var(--cyan);
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(1, 36, 126, 0.08);
}

.post-card__body {
	padding: 32px;
}

.post-card__title {
	font-size: 1.125rem;
	margin: 0.75em 0 0.5em;
}

.post-card__excerpt {
	color: var(--slate);
	font-size: 0.9375rem;
	margin: 0 0 20px;
}

.post-card__meta {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--slate-light);
}

.post-card__meta--link {
	color: var(--navy);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Grid of plain cards */
.post-card__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

/* Featured card: media/stat panel beside the body */
.post-card--featured {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
	gap: 0;
	overflow: hidden;
}

.post-card--featured .post-card__body {
	padding: 48px;
}

.post-card--featured .post-card__title {
	font-size: var(--h3-size);
}

.post-card__media {
	background: var(--mist);
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 220px;
}

.post-card__media-icon {
	width: 56px;
	height: 56px;
	padding: 12px;
	border-radius: 12px;
	background: var(--paper);
	border: 1px solid var(--line);
}

.post-card__media--stat {
	background: var(--navy);
	color: var(--paper);
	flex-direction: column;
	gap: 8px;
	padding: 32px;
}

.post-card__stat-number {
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 3rem;
	color: var(--cyan);
	margin: 0;
}

.post-card__stat-label {
	margin: 0;
	color: rgba(255, 255, 255, 0.75);
	text-align: center;
}

/* ---- Responsive (§6) --------------------------------------------------- */
@media (max-width: 1024px) {
	.post-card__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.post-card--featured {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.post-card__grid {
		grid-template-columns: 1fr;
	}
}
