/*
 * File: news.css
 * Version: 1.1.0
 * Last updated: 2026-10-19
 * News archives, search results, and single news posts.
 */

/* News archive */
.archive-header {
	margin-bottom: 40px
}

.archive-header h1,
.entry-title {
	margin: 0 0 20px;
	color: var(--navy);
	font-size: clamp(34px,5vw,62px);
	line-height: 1.1
}

.news-list {
	border-top: 1px solid var(--line)
}

.news-card {
	border-bottom: 1px solid var(--line);
	background: #fff
}

.news-card__link {
	display: grid;
	grid-template-columns: 150px minmax(0,1fr) auto;
	align-items: center;
	gap: 24px;
	min-height: 88px;
	padding: 18px 22px;
	color: var(--navy);
	text-decoration: none;
	transition: background-color .2s ease
}

.news-card__link:hover,
.news-card__link:focus-visible {
	background: #f5f8fc
}

.news-card time {
	color: var(--blue);
	font-size: 12px;
	font-weight: 800;
	white-space: nowrap
}

.news-card h2 {
	margin: 0;
	font-size: clamp(16px,1.5vw,20px);
	line-height: 1.4
}

.news-card__details {
	color: var(--blue);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .06em;
	white-space: nowrap
}

.news-card__link:hover h2,
.news-card__link:focus-visible h2,
.news-card__link:hover .news-card__details,
.news-card__link:focus-visible .news-card__details {
	text-decoration: underline;
	text-underline-offset: 4px
}

.pagination,
.nav-links {
	display: flex;
	justify-content: center;
	gap: 14px;
	margin-top: 44px
}

/* Single news post */
.single-post .entry-content {
	color: var(--navy);
	font-size: 16px;
	line-height: 1.9
}

.single-post .entry-content h2 {
	margin: 48px 0 20px;
	padding: 14px 18px;
	border-left: 4px solid var(--blue);
	background: #f5f8fc;
	color: var(--navy);
	font-size: clamp(20px,3vw,26px);
	line-height: 1.4
}

.single-post .entry-content h3 {
	margin: 34px 0 16px;
	color: var(--navy);
	font-size: 19px;
	line-height: 1.5
}

.single-post .entry-content p {
	margin: 0
}

.single-post .entry-content strong {
	font-weight: 800
}

.single-post .entry-content a {
	color: var(--blue);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	overflow-wrap: anywhere
}

.single-post .post-thumbnail img {
	width: 100%
}

.single-post .post-navigation {
	margin-top: 60px;
	padding-top: 30px;
	border-top: 1px solid var(--line)
}

.single-post .post-navigation .nav-links {
	justify-content: space-between
}

.single-post .post-navigation a {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 6px;
	color: var(--navy)
}

.single-post .post-navigation .nav-next {
	text-align: right
}

.single-post .nav-subtitle {
	color: var(--blue);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase
}

.single-post .nav-title {
	font-weight: 700;
	line-height: 1.5
}

.single-post .news-back-link {
	margin: 64px 0 0
}

.single-post .post-navigation + .news-back-link {
	margin-top: 40px
}

@media (max-width:600px) {
	.news-card__link {
		grid-template-columns: 1fr;
		gap: 10px;
		min-height: 0;
		padding: 22px 4px
	}

	.news-card h2 {
		font-size: 16px
	}

	.single-post .entry-content h2 {
		margin-top: 36px;
		padding: 12px 14px
	}

	.single-post .post-navigation .nav-links {
		flex-direction: column
	}

	.single-post .post-navigation .nav-next {
		text-align: left
	}

	.single-post .news-back-link {
		margin-top: 48px
	}
}
