/*
 * Latest News card metadata overlay.
 * Keeps the headline and excerpt in the content panel while visually pairing
 * the category and date with the featured image.
 */

.news .news__media {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.news .news__media > .news__image {
	position: relative;
	z-index: 0;
	display: block;
	width: 100%;
}

.news .news__media > .news__image::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	height: 32%;
	pointer-events: none;
	content: "";
	background: linear-gradient(
		to top,
		rgba(40, 73, 114, 0.96) 0%,
		rgba(40, 73, 114, 0.78) 48%,
		rgba(40, 73, 114, 0) 100%
	);
}

.news .news__media > .news__image img {
	width: 100%;
	height: auto;
}

.news .news__media > .news__article-info {
	position: absolute;
	right: 20px;
	bottom: 16px;
	left: 20px;
	z-index: 2;
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	margin: 0;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	pointer-events: none;
}

.news .news__media .news__date {
	color: rgba(255, 255, 255, 0.9);
	font-variant-numeric: tabular-nums;
}

.news .news__media > .news__image:focus-visible {
	outline: 3px solid #91c88e;
	outline-offset: -4px;
}

@media (max-width: 599px) {
	.news .news__media > .news__article-info {
		right: 16px;
		bottom: 12px;
		left: 16px;
		font-size: 12px;
	}
}
