/**
 * BV Core - shared content cards.
 *
 * The card anatomy used by both the filter grid ([bv_filter]) and the related
 * insights grid ([bv_related]), so there is one card implementation.
 */

.bv-filter,
.bv-related {
	--bv-blue: #2455dd;
	--bv-ink: #212b36;
	--bv-muted: #637381;
	--bv-line: #e5e8eb;
	--bv-radius: 16px;
}

.bv-card {
	display: flex;
	flex-direction: column;
}

.bv-card__body {
	display: flex;
	flex-direction: column;
}

.bv-card--blog .bv-card__body {
	min-height: 200px;
}

.bv-card__title {
	margin: 0 0 8px;
	font-size: 32px;
	line-height: 40px;
	font-weight: 400;
}

.bv-card__title a {
	color: inherit;
	text-decoration: none;
}

.bv-card__title a:hover {
	color: var(--bv-blue);
}

.bv-card__excerpt {
	margin: 0 0 12px;
	color: var(--bv-muted);
	font-size: 20px;
	line-height: 30px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.bv-card__meta {
	margin: auto 0 0;
	color: var(--bv-blue);
	font-size: 18px;
	line-height: 28px;
	font-weight: 500;
}

.bv-card__meta-sep {
	opacity: 0.5;
}

.bv-card__media,
.bv-card__cover {
	display: block;
	position: relative;
	overflow: hidden;
	border-radius: var(--bv-radius);
	background: #eef1f6;
}

.bv-card__media img,
.bv-card__cover img,
.bv-card__media-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bv-card__media-placeholder {
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, #dfe5f0, #eef1f6);
}

.bv-card--blog .bv-card__media {
	aspect-ratio: 564 / 356;
	margin-bottom: 24px;
}
