/* News listing cards */
.tpm-news-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tpm-news-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
	padding: 2rem;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid #e4e4e4;
	border-top: 3px solid #0d46b6;
	border-radius: 6px;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.tpm-news-card:hover,
.tpm-news-card:focus-within {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(3, 45, 127, 0.12);
}

.tpm-news-card:focus-within {
	outline: 3px solid #032d7f;
	outline-offset: 3px;
}

/* Featured image runs edge to edge across the top of the card. */
.tpm-news-card__media {
	margin: -2rem -2rem 0.5rem;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f3f5f9;
}

.tpm-news-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.tpm-news-card:hover .tpm-news-card__img {
	transform: scale(1.03);
}

.tpm-news-card__date {
	margin: 0;
	font-family: "Inter", Arial, sans-serif;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #0d46b6;
}

.tpm-news-card__title {
	margin: 0;
	font-family: "Manrope", Arial, sans-serif;
	font-size: 1.3125rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: #000000;
}

.tpm-news-card__link {
	color: inherit;
	text-decoration: none;
}

.tpm-news-card__link:focus {
	outline: none;
}

/* Stretch the title link over the whole card so the card is one click target. */
.tpm-news-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.tpm-news-card__excerpt {
	margin: 0;
	font-family: "Inter", Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.7;
	color: #343434;
}

.tpm-news-card__more {
	margin-top: auto;
	padding-top: 0.5rem;
	font-family: "Inter", Arial, sans-serif;
	font-size: 0.9375rem;
	font-weight: 600;
	color: #0d46b6;
}

.tpm-news-card__more::after {
	content: " \2192";
	display: inline-block;
	transition: transform 0.25s ease;
}

.tpm-news-card:hover .tpm-news-card__more::after {
	transform: translateX(4px);
}

.tpm-news-empty {
	margin: 0;
	font-size: 1.0625rem;
	color: #5b6472;
}

.tpm-news-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 2.5rem;
	font-family: "Inter", Arial, sans-serif;
}

.tpm-news-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0 0.75rem;
	border: 1px solid #e4e4e4;
	border-radius: 4px;
	color: #0d46b6;
	font-weight: 600;
	text-decoration: none;
}

.tpm-news-pagination .page-numbers.current {
	color: #ffffff;
	background: #032d7f;
	border-color: #032d7f;
}

@media (max-width: 1024px) {
	.tpm-news-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.tpm-news-list {
		grid-template-columns: minmax(0, 1fr);
	}

	.tpm-news-card {
		padding: 1.5rem;
	}

	.tpm-news-card__media {
		margin: -1.5rem -1.5rem 0.5rem;
	}
}

/* Single news post */
.tpm-post-hero {
	padding: 5.5rem 2rem 4.5rem;
	background: linear-gradient(135deg, #032d7f 0%, #0d46b6 100%);
}

.tpm-post-hero__inner {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	max-width: 46rem;
	margin: 0 auto;
}

.tpm-post-hero__eyebrow {
	margin: 0;
	font-family: "Inter", Arial, sans-serif;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.tpm-post-hero__eyebrow a {
	color: #f0ae0d;
	text-decoration: none;
}

.tpm-post-hero__eyebrow a:hover {
	text-decoration: underline;
}

.tpm-post-hero__title {
	margin: 0;
	font-family: "Manrope", Arial, sans-serif;
	font-size: 2.75rem;
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.03em;
	color: #ffffff;
}

.tpm-post-hero__date {
	margin: 0;
	font-family: "Inter", Arial, sans-serif;
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.88);
}

.tpm-post-hero a:focus-visible {
	outline: 3px solid #f0ae0d;
	outline-offset: 3px;
}

body.single-post .site-main {
	max-width: 46rem;
	margin: 0 auto;
	padding: 4rem 2rem 5.5rem;
}

/* Featured image between the post header and the text. */
.tpm-post-image {
	margin: 0 0 2.5rem;
	overflow: hidden;
	border-radius: 6px;
	background: #f3f5f9;
	box-shadow: 0 20px 50px rgba(3, 45, 127, 0.1);
}

.tpm-post-image img {
	display: block;
	width: 100%;
	height: auto;
}

body.single-post .page-content p {
	font-family: "Inter", Arial, sans-serif;
	font-size: 1.0625rem;
	line-height: 1.75;
	color: #343434;
}

.tpm-post-back {
	margin: 3rem 0 0;
	padding-top: 2rem;
	border-top: 1px solid #e4e4e4;
}

.tpm-post-back a {
	font-family: "Inter", Arial, sans-serif;
	font-size: 1rem;
	font-weight: 600;
	color: #0d46b6;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.tpm-post-back a:hover {
	color: #032d7f;
}

.tpm-post-back a:focus-visible {
	outline: 3px solid #032d7f;
	outline-offset: 3px;
}

@media (max-width: 767px) {
	.tpm-post-hero {
		padding: 3.5rem 1rem 3rem;
	}

	.tpm-post-hero__title {
		font-size: 2rem;
	}

	body.single-post .site-main {
		padding: 2.5rem 1rem 4rem;
	}

	.tpm-post-image {
		margin-bottom: 1.75rem;
	}
}
