/* =============================================
   NEWS ARTICLE (single post)
   Figma: TEC Design System / 17935-13167, 17935-13185
   ============================================= */

.news-breadcrumbs {
	max-width: 1440px;
	margin: 0 auto;
	padding: 6px 16px;
	background-color: var(--page-default);
	border-top: 1px solid var(--eggshell-grey-2);
	border-bottom: 1px solid var(--eggshell-grey-2);
	height: 34px;
	display: flex;
	align-items: center;
	box-sizing: border-box;
}

.news-article {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 8px 16px;
	background-color: var(--page-default);
	box-sizing: border-box;
}

/* Hero */
.news-article-hero {
	width: 100%;
	max-height: 416px;
	overflow: hidden;
	line-height: 0;
}

.news-article-hero img {
	width: 100%;
	height: 416px;
	object-fit: cover;
	display: block;
}

/* Article block — overlaps the hero */
.news-article-block {
	position: relative;
	max-width: 936px;
	margin: 0 auto;
	padding: 16px 24px 24px;
	background-color: var(--eggshell-white);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.news-article.has-hero-image .news-article-block {
	margin-top: -80px;
}

.news-article-header {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.news-article-title {
	margin: 0;
	font-family: var(--font-serif) !important;
	font-size: var(--hl1);
	font-weight: var(--weight-bold) !important;
	letter-spacing: -0.68px;
	line-height: normal;
	color: var(--black-text) !important;
}

.news-article-date {
	margin: 0;
	font-family: var(--font-sans) !important;
	font-size: var(--nav-utility-2) !important;
	letter-spacing: 0.16px;
	color: var(--black-text);
	line-height: normal !important;
}

.news-article-body > *:last-child {
	margin-bottom: 0;
}

/* Tag pills */
.news-article-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
}

.news-article-tag a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 28px;
	padding: 0 16px;
	border: 1px solid var(--black-text);
	font-family: var(--font-sans);
	font-size: var(--nav-utility-2);
	font-weight: var(--weight-regular);
	letter-spacing: 0.32px;
	color: var(--black-text);
	text-decoration: none;
	white-space: nowrap;
}

.news-article-tag a:hover,
.news-article-tag a:focus {
	background-color: var(--cool-4);
}

/* Previous / next */
.news-article-adjacent {
	display: flex;
	align-items: stretch;
	max-width: 936px;
	margin: 24px auto 0;
	padding: 0 36px;
	box-sizing: border-box;
}

.news-adjacent-item {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-bottom: .5rem;
	padding-left: .5rem;
	padding-right: .5rem;
	box-shadow:
		0 1px 2px rgba(12, 12, 13, 0.1),
		0 1px 2px rgba(12, 12, 13, 0.05);
}

.news-adjacent-previous {
	padding-right: 1rem;
	border-right: 1px solid var(--eggshell-grey-2);
}

.news-adjacent-next {
	padding-left: 16px;
	text-align: right;
	align-items: flex-end;
}

.news-adjacent-link {
	min-height: 44px;
	align-items: center;
}

.news-adjacent-link.is-previous {
	flex-direction: row-reverse;
}

.news-adjacent-link.is-previous::after {
	transform: rotate(180deg);
}

.news-adjacent-title {
	margin: 0;
	font-family: var(--font-sans) !important;
	font-size: var(--body-text);
	font-weight: var(--weight-semibold) !important;
	letter-spacing: -0.36px;
	line-height: normal;
	color: var(--black-text) !important;
	overflow-wrap: break-word;
	word-break: break-word;
	hyphens: auto;
}

.news-adjacent-title a {
	color: inherit;
	text-decoration: none;
}

.news-adjacent-title a:hover {
	text-decoration: none;
}

.news-adjacent-date {
	margin: 0;
	font-family: var(--font-sans) !important;
	font-size: var(--nav-utility-2) !important;
	letter-spacing: 0.16px;
	line-height: normal !important;
	color: var(--black-text);
}

/* Mobile rail — desktop frame has none */
.news-mobile-rail {
	display: none;
}

/* =============================================
   TABLET AND BELOW
   ============================================= */

@media (max-width: 1024px) {
	.news-article-adjacent {
		padding: 0 16px;
	}
}

/* =============================================
   MOBILE
   ============================================= */

@media (max-width: 767px) {
	.news-article {
		padding: 0 0 16px;
	}

	.news-article-hero img {
		height: 196px;
	}

	.news-article.has-hero-image .news-article-block {
		margin-top: -16px;
	}

	.news-article-block {
		padding: 16px;
	}

	.news-article-title {
		font-size: var(--hl2);
	}

	/* Previous and next stay side by side; only the headline wrapping changes */
	.news-article-adjacent {
		padding: 0 36px;
	}

	.news-mobile-rail {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 8px;
		padding: 16px;
	}

	.news-mobile-rail .link-box {
		width: 228px;
		max-width: 228px;
		box-sizing: border-box;
	}
}
