/* News Page — 3-Column Image-Led Card Grid */

:root {
	--news-primary-dark: #13317F;
	--news-primary-mid: #0070CC;
	--news-neutral-900: #333333;
	--news-neutral-700: #666666;
	--news-neutral-500: #9D9D9D;
	--news-neutral-300: #DDDDDD;
	--news-neutral-100: #F5F5F5;
	--news-radius-sm: 4px;
}

#news-main {
	background-color: #fff;
	position: relative;
	z-index: 1;
}

/* Grid */
.news-grid {
	max-width: 1920px;
	margin: 0 auto;
	padding: 0 clamp(16px, 3.5vw, 40px) 96px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 32px;
	row-gap: 64px;
}

/* Card */
.news-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.news-card__link:focus-visible {
	outline: 2px solid var(--news-primary-mid);
	outline-offset: 4px;
}

/* Media */
.news-card__media {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: var(--news-radius-sm);
	background-color: var(--news-neutral-100);
}

.news-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 600ms ease;
}

/* Hover — desktop only */
@media (pointer: fine) {
	.news-card__link:hover .news-card__media img {
		transform: scale(1.04);
	}

	.news-card__link:hover .news-card__title {
		color: var(--news-primary-dark);
	}
}

/* Tap — touch */
@media (pointer: coarse) {
	.news-card__link:active .news-card__media img {
		transform: scale(1.02);
	}
}

/* Meta row */
.news-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 12px;
}

/* Title */
.news-card__title {
	font-family: Inter, sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: var(--news-neutral-900);
	line-height: 1.3;
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: color 200ms ease;
}

/* Pills container */
.news-card__pills {
	display: inline-flex;
	gap: 6px;
	flex-shrink: 0;
}

/* Pill (shared by tags and date) */
.pill {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--news-neutral-700);
	background: transparent;
	border-radius: 999px;
	padding: 4px 10px;
	font-family: Inter, sans-serif;
	font-size: 11px;
	font-weight: 400;
	line-height: 1;
	color: var(--news-neutral-700);
	white-space: nowrap;
}

/* Description */
.news-card__desc {
	font-family: Inter, sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: var(--news-neutral-500);
	line-height: 1.45;
	margin: 6px 0 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Tablet */
@media (max-width: 1023px) and (min-width: 640px) {
	.news-grid {
		grid-template-columns: repeat(2, 1fr);
		column-gap: 24px;
		row-gap: 48px;
	}
}

/* Mobile */
@media (max-width: 639px) {
	.news-grid {
		grid-template-columns: 1fr;
		row-gap: 40px;
		padding: 0 20px 64px;
	}

	.news-card__title {
		font-size: 15px;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.news-card__media img,
	.news-card__title {
		transition: none !important;
	}

	.news-card__link:hover .news-card__media img {
		transform: none;
	}
}
