/**
 * HRD Posts Grid — structure (design's .svc cards). Values come from the widget's Elementor controls.
 */

.hrd-posts {
	display: grid;
}

.hrd-post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-width: 1px;
	border-style: solid;
	text-decoration: none;
	transition: border-color var(--hrd-dur-fast) var(--hrd-ease-standard);
}

.hrd-post-card:focus-visible {
	outline: 2px solid var(--e-global-color-accent);
	outline-offset: 2px;
}

.hrd-post-card__image {
	flex: 0 0 auto;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.hrd-post-card__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.hrd-post-card__eyebrow,
.hrd-post-card__title,
.hrd-post-card__excerpt {
	margin-top: 0;
}

.has-eyebrow-prefix .hrd-post-card__eyebrow::before {
	content: "— ";
	margin-right: 2px;
}

/* Excerpt grows so the labels line up at the bottom of each card. */
.hrd-post-card__excerpt {
	flex: 1 1 auto;
}

.hrd-post-card__link {
	padding-bottom: 4px;
	border-bottom: 1px solid currentColor;
	transition: color var(--hrd-dur-fast), border-color var(--hrd-dur-fast);
}

.hrd-posts__empty {
	padding: 12px;
	font-size: 13px;
	border: 1px dashed currentColor;
}
