/*
 * News templates — single post, archive, search, blog listing.
 * Loaded only on those views (see inc/assets.php). Uses the theme --wn-* tokens.
 */

.wn-container {
	margin-inline: auto;
	max-width: var(--wn-maxw);
	padding-inline: clamp(1.25rem, 4vw, 3rem);
	width: 100%;
}

/* ---------- Listing header ---------- */
.wn-news {
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.wn-news__head {
	border-bottom: 1px solid var(--wn-line);
	margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
	padding-bottom: 1.5rem;
}
.wn-news__eyebrow {
	color: var(--wn-red);
	font-weight: 600;
	letter-spacing: 0.06em;
	margin: 0 0 0.5rem;
	text-transform: uppercase;
	font-size: 0.85rem;
}
.wn-news__heading {
	font-size: clamp(1.8rem, 4vw, 2.75rem);
	margin: 0;
}
.wn-news__intro {
	color: var(--wn-muted);
	margin-top: 0.75rem;
	max-width: 60ch;
}
.wn-news__search {
	margin-top: 1.25rem;
	max-width: 34rem;
}

/* ---------- Card grid ---------- */
.wn-news-grid {
	display: grid;
	gap: clamp(1.25rem, 2.5vw, 1.75rem);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}
.wn-news-card {
	background: var(--wn-paper);
	border: 1px solid var(--wn-line);
	border-radius: var(--wn-radius);
	overflow: hidden;
	transition: transform 0.2s var(--wn-ease), box-shadow 0.2s var(--wn-ease);
}
.wn-news-card:hover {
	box-shadow: 0 12px 26px rgba(0, 56, 85, 0.12);
	transform: translateY(-4px);
}
.wn-news-card__link {
	color: inherit;
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
}
.wn-news-card__thumb {
	aspect-ratio: 16 / 9;
	background: var(--wn-paper-2);
	position: relative;
}
.wn-news-card__img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}
.wn-news-card__chip {
	background: var(--wn-blue);
	border-radius: 999px;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 600;
	left: 0.85rem;
	padding: 0.28rem 0.72rem;
	position: absolute;
	top: 0.85rem;
}
.wn-news-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.35rem 1.4rem 1.5rem;
}
.wn-news-card__meta {
	color: var(--wn-on-dark-muted);
	font-size: 0.8rem;
}
.wn-news-card__title {
	font-size: 1.12rem;
	line-height: 1.3;
	margin: 0.4rem 0 0.55rem;
}
.wn-news-card__excerpt {
	color: var(--wn-muted);
	font-size: 0.94rem;
	line-height: 1.6;
	margin: 0;
}
.wn-news-card__more {
	color: var(--wn-red);
	font-weight: 600;
	margin-top: auto;
	padding-top: 1rem;
}

/* ---------- Single article ---------- */
.wn-article__hero {
	background: var(--wn-blue);
	background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.4px, transparent 1.4px);
	background-size: 22px 22px;
	color: #fff;
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.wn-article__hero-inner {
	max-width: 52rem;
}
.wn-article__cat {
	background: var(--wn-red);
	border-radius: 999px;
	color: #fff;
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 600;
	padding: 0.3rem 0.85rem;
	text-decoration: none;
}
.wn-article__title {
	color: #fff;
	font-size: clamp(1.9rem, 4.5vw, 3rem);
	margin: 1rem 0 0.9rem;
}
.wn-article__meta {
	color: var(--wn-on-dark);
	font-size: 0.92rem;
}
.wn-article__meta-sep {
	margin-inline: 0.5rem;
}
.wn-article__media {
	margin-top: clamp(-2rem, -4vw, -3rem);
	position: relative;
}
.wn-article__img {
	border-radius: var(--wn-radius);
	box-shadow: 0 18px 40px rgba(0, 56, 85, 0.18);
	width: 100%;
}
.wn-article__body {
	font-size: 1.05rem;
	max-width: 46rem;
	padding-block: clamp(2rem, 5vw, 3rem);
}
.wn-article__body > * + * {
	margin-top: 1.15rem;
}
.wn-article__body :is(h2, h3) {
	margin-top: 2.25rem;
}
.wn-article__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin-top: 2.5rem;
	padding: 0;
}
.wn-article__tags a {
	background: var(--wn-paper-2);
	border: 1px solid var(--wn-line);
	border-radius: 999px;
	font-size: 0.82rem;
	padding: 0.25rem 0.75rem;
	text-decoration: none;
}
.wn-article__footer {
	border-top: 1px solid var(--wn-line);
	padding-block: 1.75rem;
}

/* ---------- Related ---------- */
.wn-related {
	padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.wn-related__heading {
	font-size: 1.4rem;
	margin-bottom: 1.5rem;
}

/* ---------- Buttons ---------- */
.wn-btn {
	border-radius: var(--wn-radius);
	display: inline-block;
	font-weight: 600;
	padding: 0.7rem 1.3rem;
	text-decoration: none;
	transition: background 0.18s var(--wn-ease), color 0.18s var(--wn-ease);
}
.wn-btn--red {
	background: var(--wn-red);
	color: #fff;
}
.wn-btn--red:hover {
	background: var(--wn-red-600);
	color: #fff;
}
.wn-btn--ghost {
	border: 1px solid var(--wn-line);
	color: var(--wn-blue);
}
.wn-btn--ghost:hover {
	border-color: var(--wn-red);
	color: var(--wn-red);
}

/* ---------- Pagination ---------- */
.wn-pagination {
	margin-top: clamp(2rem, 5vw, 3rem);
}
.wn-pagination .nav-links {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	justify-content: center;
}
.wn-pagination .page-numbers {
	border: 1px solid var(--wn-line);
	border-radius: var(--wn-radius);
	color: var(--wn-blue);
	line-height: 1;
	padding: 0.6rem 0.9rem;
	text-decoration: none;
}
.wn-pagination .page-numbers.current {
	background: var(--wn-blue);
	border-color: var(--wn-blue);
	color: #fff;
}
.wn-pagination a.page-numbers:hover {
	border-color: var(--wn-red);
	color: var(--wn-red);
}

/* ---------- Empty state ---------- */
.wn-news-empty {
	padding-block: clamp(2.5rem, 6vw, 4rem);
	text-align: center;
}
.wn-news-empty p {
	color: var(--wn-muted);
	margin-bottom: 1.5rem;
}

/* ---------- Search form ---------- */
.wn-searchform {
	display: flex;
	gap: 0.5rem;
}
.wn-searchform__input {
	border: 1px solid var(--wn-line);
	border-radius: var(--wn-radius);
	flex: 1;
	font: inherit;
	padding: 0.7rem 0.9rem;
}
.wn-searchform__input:focus-visible {
	border-color: var(--wn-red);
	outline: 2px solid var(--wn-red);
	outline-offset: 1px;
}
.wn-searchform__submit {
	align-items: center;
	background: var(--wn-red);
	border: 0;
	border-radius: var(--wn-radius);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	justify-content: center;
	padding-inline: 1rem;
}
.wn-searchform__submit:hover {
	background: var(--wn-red-600);
}

/* ---------- News hub: hero ---------- */
.wn-hub-hero {
	background: var(--wn-blue);
	background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1.4px, transparent 1.4px);
	background-size: 22px 22px;
	color: #fff;
	padding-block: clamp(2.75rem, 6vw, 4.75rem);
}
.wn-hub-hero__inner {
	max-width: 54rem;
}
.wn-hub-hero__eyebrow {
	color: #fff;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	margin: 0 0 0.75rem;
	opacity: 0.85;
	text-transform: uppercase;
}
.wn-hub-hero__eyebrow::before {
	background: var(--wn-red);
	content: "";
	display: inline-block;
	height: 3px;
	margin-right: 0.6rem;
	vertical-align: middle;
	width: 34px;
}
.wn-hub-hero__title {
	color: #fff;
	font-size: clamp(2.1rem, 5vw, 3.4rem);
	margin: 0 0 0.85rem;
}
.wn-hub-hero__lead {
	color: var(--wn-on-dark);
	font-size: clamp(1.02rem, 1.7vw, 1.2rem);
	line-height: 1.65;
	margin: 0 0 1.75rem;
	max-width: 46rem;
}
.wn-hub-hero__search .wn-searchform {
	max-width: 34rem;
}
.wn-hub-hero__search .wn-searchform__input {
	background: rgba(255, 255, 255, 0.96);
	border-color: transparent;
}

/* ---------- News hub: category filter ---------- */
.wn-hub-filter {
	padding-block: clamp(1.25rem, 3vw, 1.75rem);
}
.wn-hub-filter__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.wn-hub-filter__chip {
	align-items: center;
	background: var(--wn-paper);
	border: 1px solid var(--wn-line);
	border-radius: 999px;
	color: var(--wn-blue);
	display: inline-flex;
	font-size: 0.9rem;
	font-weight: 600;
	gap: 0.45rem;
	padding: 0.45rem 0.95rem;
	text-decoration: none;
	transition: border-color 0.16s var(--wn-ease), color 0.16s var(--wn-ease);
}
.wn-hub-filter__chip:hover {
	border-color: var(--wn-red);
	color: var(--wn-red);
}
.wn-hub-filter__chip.is-active {
	background: var(--wn-blue);
	border-color: var(--wn-blue);
	color: #fff;
}
.wn-hub-filter__count {
	background: var(--wn-paper-2);
	border-radius: 999px;
	color: var(--wn-muted);
	font-size: 0.72rem;
	font-weight: 700;
	padding: 0.05rem 0.5rem;
}
.wn-hub-filter__chip.is-active .wn-hub-filter__count {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

/* ---------- News hub: featured story ---------- */
.wn-featured {
	background: var(--wn-paper);
	border: 1px solid var(--wn-line);
	border-radius: var(--wn-radius);
	margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
	overflow: hidden;
}
.wn-featured__link {
	color: inherit;
	display: grid;
	gap: 0;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	text-decoration: none;
}
.wn-featured__media {
	background: var(--wn-paper-2);
	min-height: 18rem;
	position: relative;
}
.wn-featured__img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}
.wn-featured__badge {
	background: var(--wn-red);
	border-radius: 999px;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	left: 1rem;
	letter-spacing: 0.04em;
	padding: 0.3rem 0.8rem;
	position: absolute;
	text-transform: uppercase;
	top: 1rem;
}
.wn-featured__body {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	padding: clamp(1.5rem, 3vw, 2.5rem);
}
.wn-featured__chip {
	background: var(--wn-blue);
	border-radius: 999px;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 600;
	padding: 0.26rem 0.7rem;
	width: max-content;
}
.wn-featured__meta {
	color: var(--wn-muted);
	font-size: 0.85rem;
}
.wn-featured__title {
	font-size: clamp(1.4rem, 2.6vw, 2rem);
	line-height: 1.2;
	margin: 0.1rem 0 0.2rem;
}
.wn-featured__excerpt {
	color: var(--wn-muted);
	line-height: 1.65;
	margin: 0;
}
.wn-featured__more {
	color: var(--wn-red);
	font-weight: 600;
	margin-top: auto;
	padding-top: 1rem;
}
.wn-featured:hover .wn-featured__more {
	text-decoration: underline;
}
@media (max-width: 780px) {
	.wn-featured__link {
		grid-template-columns: 1fr;
	}
	.wn-featured__media {
		aspect-ratio: 16 / 9;
		min-height: 0;
	}
}

/* ---------- Single article: breadcrumb, reading time, topics ---------- */
.wn-article__crumbs {
	color: var(--wn-on-dark);
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-size: 0.85rem;
	margin-bottom: 0.9rem;
}
.wn-article__crumbs a {
	color: #fff;
	text-decoration: none;
}
.wn-article__crumbs a:hover {
	text-decoration: underline;
}
.wn-article__reading {
	color: var(--wn-on-dark);
}
.wn-article__topics {
	max-width: 46rem;
	padding-bottom: 0.5rem;
}
.wn-article__topics-label {
	color: var(--wn-muted);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	margin: 0 0 0.75rem;
	text-transform: uppercase;
}
.wn-article__topics .wn-article__tags {
	margin-top: 0;
}
.wn-article__tags a:hover {
	border-color: var(--wn-red);
	color: var(--wn-red);
}

/* ---------- Native newsletter ---------- */
.wn-newsletter {
	background:
		radial-gradient(circle at top right, rgba(228, 0, 78, 0.12), transparent 34%),
		linear-gradient(160deg, var(--wn-blue) 0%, var(--wn-blue-900) 100%);
	color: #fff;
	margin-top: clamp(2.5rem, 6vw, 4rem);
	padding-block: clamp(3rem, 7vw, 5rem);
}
.wn-newsletter__inner {
	align-items: center;
	display: grid;
	gap: clamp(1.5rem, 4vw, 3rem);
	grid-template-columns: minmax(0, 1fr) minmax(20rem, 1fr);
}
.wn-newsletter__eyebrow {
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	margin: 0 0 0.5rem;
	opacity: 0.8;
	text-transform: uppercase;
}
.wn-newsletter__heading {
	color: #fff;
	font-size: clamp(1.7rem, 3.4vw, 2.5rem);
	margin: 0 0 0.75rem;
	max-width: 18ch;
}
.wn-newsletter__lead {
	color: var(--wn-on-dark);
	line-height: 1.65;
	margin: 0;
	max-width: 40rem;
}
.wn-newsletter__form {
	display: grid;
	gap: 1rem;
}
.wn-newsletter__row {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.wn-newsletter__field {
	display: grid;
	gap: 0.4rem;
}
.wn-newsletter__field label {
	color: var(--wn-on-dark-muted);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.wn-newsletter__field input {
	appearance: none;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: var(--wn-radius);
	color: #fff;
	font: inherit;
	min-height: 3rem;
	padding: 0.8rem 1rem;
	width: 100%;
}
.wn-newsletter__field input::placeholder {
	color: rgba(223, 233, 239, 0.55);
}
.wn-newsletter__field input:focus {
	background: rgba(255, 255, 255, 0.1);
	border-color: var(--wn-red);
	outline: none;
}
.wn-newsletter__consent {
	align-items: start;
	color: var(--wn-on-dark);
	display: flex;
	font-size: 0.85rem;
	gap: 0.6rem;
	line-height: 1.5;
}
.wn-newsletter__consent input {
	margin-top: 0.2rem;
}
.wn-newsletter__consent a {
	color: #fff;
	text-decoration: underline;
}
.wn-newsletter__hp {
	left: -9999px;
	position: absolute;
}
.wn-newsletter__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}
.wn-newsletter__actions .wn-btn--red {
	border: 0;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
}
.wn-newsletter__status {
	font-size: 0.9rem;
	margin: 0;
}
.wn-newsletter__status.is-error {
	color: #ffd3df;
}
.wn-newsletter__status.is-success {
	color: #b4f2cb;
}
@media (max-width: 780px) {
	.wn-newsletter__inner,
	.wn-newsletter__row {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wn-news-card {
		transition: none;
	}
	.wn-news-card:hover {
		transform: none;
	}
}
