/*
Theme Name: Nieuws in Effen
Theme URI: https://nieuwsineffen.nl/
Author: Nieuws in Effen
Description: Een fris en volledig responsive WordPress-nieuwsthema voor lokaal nieuws uit Effen. Vaste teksten en de accentkleur zijn aanpasbaar via de Customizer; nieuwsberichten worden beheerd via de standaard Berichten-functie.
Version: 2.2.1
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: nieuws-in-effen
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--niv-accent: #227211;
	--niv-accent-dark: #154f0a;
	--niv-accent-text: #227211;
	--niv-accent-text-hover: #154f0a;
	--niv-accent-soft: #e2f0de;
	--niv-ink: #102018;
	--niv-ink-soft: #506058;
	--niv-paper: #ffffff;
	--niv-canvas: #f3f6f3;
	--niv-line: #dce3dc;
	--niv-dark-surface: #102a17;
	--niv-radius: 10px;
	--niv-shadow: 0 8px 26px rgba(16, 32, 24, 0.08);
	--niv-container: 1180px;
}

body.niv-theme-light {
	color-scheme: light;
}

body.niv-theme-dark {
	color-scheme: dark;
	--niv-canvas: #0b1710;
	--niv-paper: #142019;
	--niv-ink: #f1f6f2;
	--niv-ink-soft: #b9c6bd;
	--niv-line: #2a3a2f;
	--niv-accent-text: #6fa364;
	--niv-accent-text-hover: #9abf92;
	--niv-dark-surface: #071008;
	--niv-accent-soft: #1d3b22;
	--niv-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

@media (prefers-color-scheme: dark) {
	body.niv-theme-auto {
		color-scheme: dark;
		--niv-canvas: #0b1710;
		--niv-paper: #142019;
		--niv-ink: #f1f6f2;
		--niv-ink-soft: #b9c6bd;
		--niv-line: #2a3a2f;
		--niv-accent-text: #6fa364;
		--niv-accent-text-hover: #9abf92;
		--niv-dark-surface: #071008;
		--niv-accent-soft: #1d3b22;
		--niv-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--niv-canvas);
	color: var(--niv-ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

body.menu-is-open {
	overflow: hidden;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	color: var(--niv-accent-text);
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

button,
input,
select,
textarea {
	font: inherit;
}

button,
input[type="submit"] {
	cursor: pointer;
}

:focus-visible {
	outline: 3px solid var(--niv-accent);
	outline-offset: 3px;
}

.site-container {
	width: min(calc(100% - 40px), var(--niv-container));
	margin-inline: auto;
}

.article-container {
	width: min(calc(100% - 40px), 820px);
	margin-inline: auto;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: fixed !important;
	z-index: 100000;
	top: 12px;
	left: 12px;
	width: auto;
	height: auto;
	padding: 12px 16px;
	clip: auto;
	background: var(--niv-paper);
	color: var(--niv-ink);
	font-weight: 800;
}

/* Header */
.site-header {
	position: relative;
	z-index: 50;
	background: var(--niv-paper);
	box-shadow: 0 1px 0 var(--niv-line);
}

.news-ticker {
	background: var(--niv-accent);
	color: #fff;
	font-size: 0.84rem;
}

.news-ticker__inner {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 35px;
	overflow: hidden;
}

.news-ticker__inner strong {
	flex: none;
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.news-ticker__inner strong::after {
	content: "";
	display: inline-block;
	width: 5px;
	height: 5px;
	margin-left: 9px;
	border-radius: 50%;
	background: #fff;
	vertical-align: 1px;
}

.news-ticker__inner > span,
.news-ticker__inner > a {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.news-ticker a:hover {
	color: #fff;
	text-decoration: underline;
}

.header-main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	min-height: 88px;
	padding-block: 13px;
}

.brand-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.brand-link:hover {
	color: var(--niv-ink);
}

.brand-mark {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 10px;
	background: var(--niv-accent);
	color: #fff;
	font-size: 1.55rem;
	font-weight: 950;
	letter-spacing: -0.06em;
}

.brand-copy {
	display: grid;
	gap: 2px;
	line-height: 1.15;
}

.brand-copy strong {
	font-size: 1.16rem;
	font-weight: 900;
	letter-spacing: -0.025em;
}

.brand-copy > span {
	color: var(--niv-accent-text);
	font-size: 0.68rem;
	font-weight: 850;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.custom-logo-link {
	display: block;
}

.custom-logo {
	max-width: 280px;
	max-height: 64px;
	width: auto;
}

.header-meta {
	display: flex;
	align-items: center;
	gap: 8px;
}

.header-date {
	margin-right: 8px;
	color: var(--niv-ink-soft);
	font-size: 0.78rem;
	font-weight: 650;
}

.icon-button {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--niv-line);
	border-radius: 50%;
	background: var(--niv-canvas);
	color: var(--niv-ink);
}

.icon-button:hover {
	border-color: var(--niv-accent);
	background: var(--niv-accent-soft);
	color: var(--niv-accent-text-hover);
}

.icon-button svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 2;
}

.theme-icon--sun {
	display: none;
}

body.niv-theme-dark .theme-icon--moon {
	display: none;
}

body.niv-theme-dark .theme-icon--sun {
	display: block;
}

@media (prefers-color-scheme: dark) {
	body.niv-theme-auto .theme-icon--moon {
		display: none;
	}

	body.niv-theme-auto .theme-icon--sun {
		display: block;
	}
}

.no-js .theme-toggle {
	display: none;
}

.menu-toggle {
	display: none;
}

.menu-toggle .close-icon,
.menu-toggle[aria-expanded="true"] .menu-icon {
	display: none;
}

.menu-toggle[aria-expanded="true"] .close-icon {
	display: block;
}

.primary-navigation {
	background: var(--niv-dark-surface);
	color: #fff;
}

.primary-menu,
.footer-menu,
.social-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-menu {
	display: flex;
	align-items: center;
	gap: 3px;
}

.primary-menu a {
	display: block;
	padding: 12px 15px;
	font-size: 0.85rem;
	font-weight: 760;
}

.primary-menu .menu-item-has-children {
	position: relative;
}

.primary-menu .sub-menu {
	display: none;
	position: absolute;
	z-index: 5;
	top: 100%;
	left: 0;
	min-width: 210px;
	margin: 0;
	padding: 7px;
	list-style: none;
	border-radius: 0 0 8px 8px;
	background: var(--niv-dark-surface);
	box-shadow: 0 14px 25px rgba(5, 18, 9, 0.22);
}

.primary-menu .sub-menu a {
	padding: 9px 10px;
	border-radius: 5px;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
	display: block;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a,
.primary-menu .current-menu-ancestor > a {
	background: var(--niv-accent);
	color: #fff;
}

.header-search {
	border-bottom: 1px solid var(--niv-line);
	background: var(--niv-paper);
}

.header-search__inner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 28px;
	padding-block: 18px;
}

.header-search__inner > p {
	margin: 0;
	font-weight: 850;
}

.search-form {
	display: flex;
	gap: 8px;
	width: 100%;
}

.search-form label {
	flex: 1;
}

.search-field,
.archive-select,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form input[type="password"],
.comment-form textarea {
	width: 100%;
	min-height: 46px;
	padding: 10px 13px;
	border: 1px solid var(--niv-line);
	border-radius: 7px;
	background: var(--niv-paper);
	color: var(--niv-ink);
}

.search-submit,
.button,
.comment-form input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 10px 17px;
	border: 1px solid var(--niv-accent);
	border-radius: 7px;
	background: var(--niv-accent);
	color: #fff;
	font-weight: 800;
}

.search-submit:hover,
.button:hover,
.comment-form input[type="submit"]:hover {
	border-color: var(--niv-accent-dark);
	background: var(--niv-accent-dark);
	color: #fff;
}

/* Homepage */
.site-main {
	min-height: 55vh;
}

.front-heading {
	display: grid;
	grid-template-columns: 1fr minmax(260px, 480px);
	align-items: end;
	gap: 40px;
	padding-block: 38px 24px;
}

.section-kicker {
	margin: 0 0 7px;
	color: var(--niv-accent-text);
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.front-heading h1,
.listing-header h1,
.article-header h1,
.page-header h1,
.empty-state h1 {
	margin: 0;
	font-weight: 900;
	letter-spacing: -0.055em;
	line-height: 1.03;
}

.front-heading h1 {
	font-size: clamp(2.25rem, 5vw, 4.1rem);
}

.front-heading > p {
	margin: 0 0 5px;
	color: var(--niv-ink-soft);
	font-size: 1.05rem;
	line-height: 1.55;
}

.weather-card {
	display: flex;
	flex: none;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	padding: 4px 10px 4px 5px;
	border: 1px solid var(--niv-line);
	border-radius: 22px;
	background: var(--niv-canvas);
}

.weather-card__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--niv-accent-soft);
	color: var(--niv-accent-text);
}

.weather-card__icon svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2.2;
}

.weather-card__content {
	display: grid;
	min-width: 0;
}

.weather-card__title {
	overflow: hidden;
	color: var(--niv-ink-soft);
	font-size: 0.55rem;
	font-weight: 850;
	letter-spacing: 0.06em;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

.weather-card__reading {
	display: flex;
	align-items: baseline;
	gap: 7px;
	line-height: 1.1;
}

.weather-card__reading strong {
	font-size: 1.05rem;
	font-weight: 900;
	letter-spacing: -0.04em;
}

.weather-card__reading > span {
	overflow: hidden;
	color: var(--niv-ink-soft);
	font-size: 0.62rem;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.weather-card[data-weather-status="loading"] .weather-card__icon {
	animation: niv-weather-pulse 1.3s ease-in-out infinite alternate;
}

@keyframes niv-weather-pulse {
	to {
		opacity: 0.55;
	}
}

.lead-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.8fr);
	gap: 18px;
	align-items: stretch;
	padding-bottom: 38px;
}

.lead-story,
.news-card {
	overflow: hidden;
	border: 1px solid var(--niv-line);
	border-radius: var(--niv-radius);
	background: var(--niv-paper);
	box-shadow: var(--niv-shadow);
}

.lead-story__media,
.news-card__media {
	display: block;
	overflow: hidden;
	background: var(--niv-line);
}

.lead-story__media {
	aspect-ratio: 16 / 8.6;
}

.post-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

a:hover .post-image:not(.post-image--fallback) {
	transform: scale(1.025);
}

.post-image--fallback {
	display: grid;
	place-items: center;
	background:
		linear-gradient(145deg, rgba(255,255,255,0.16), transparent 55%),
		linear-gradient(135deg, var(--niv-accent), var(--niv-accent-dark));
}

.post-image--fallback span {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	border: 2px solid rgba(255, 255, 255, 0.78);
	border-radius: 16px;
	color: #fff;
	font-size: 2.2rem;
	font-weight: 950;
	letter-spacing: -0.08em;
}

.lead-story__body {
	padding: 24px 26px 27px;
}

.post-label {
	display: inline-block;
	margin-bottom: 8px;
	color: var(--niv-accent-text);
	font-size: 0.7rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.post-label:hover {
	color: var(--niv-accent-text-hover);
}

.lead-story h2 {
	margin: 0;
	font-size: clamp(1.65rem, 3vw, 2.65rem);
	font-weight: 900;
	letter-spacing: -0.05em;
	line-height: 1.08;
}

.lead-story h2 a:hover,
.news-card h3 a:hover {
	color: var(--niv-accent-text);
}

.lead-story__summary {
	margin: 13px 0 16px;
	color: var(--niv-ink-soft);
	font-size: 0.98rem;
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	color: var(--niv-ink-soft);
	font-size: 0.72rem;
	font-weight: 650;
}

.lead-side,
.category-list {
	display: grid;
	gap: 12px;
}

.news-card--side {
	display: grid;
	grid-template-columns: 126px minmax(0, 1fr);
	min-height: 0;
	box-shadow: none;
}

.news-card--side .news-card__media {
	min-height: 118px;
}

.news-card--side .post-image--fallback span {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	font-size: 1.3rem;
}

.news-card__body {
	padding: 16px;
}

.news-card--side .news-card__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 12px 13px;
}

.news-card .post-label {
	margin-bottom: 5px;
	font-size: 0.63rem;
}

.news-card h3 {
	margin: 0;
	font-size: 1.12rem;
	font-weight: 850;
	letter-spacing: -0.035em;
	line-height: 1.18;
}

.news-card--side h3 {
	font-size: 0.96rem;
}

.news-card p {
	margin: 9px 0 13px;
	color: var(--niv-ink-soft);
	font-size: 0.88rem;
	line-height: 1.48;
}

.news-card__read-more {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	align-self: flex-start;
	margin: -2px 0 13px;
	color: var(--niv-accent-text);
	font-size: 0.72rem;
	font-weight: 850;
}

.news-card__read-more:hover {
	color: var(--niv-accent-text-hover);
}

.news-card--side .post-meta {
	margin-top: 9px;
	font-size: 0.65rem;
}

.news-stream-wrap {
	background: var(--niv-dark-surface);
	color: #fff;
}

.news-stream {
	display: grid;
	grid-template-columns: 190px minmax(0, 1fr);
	gap: 28px;
	padding-block: 25px;
}

.news-stream__title {
	font-size: 1.08rem;
	font-weight: 900;
}

.news-stream__title::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 9px;
	border-radius: 50%;
	background: #66c252;
	box-shadow: 0 0 0 5px rgba(102, 194, 82, 0.13);
}

.news-stream__items {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 26px;
}

.news-stream__items a {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: 10px;
	padding: 7px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	font-size: 0.82rem;
	line-height: 1.35;
}

.news-stream__items a:hover {
	color: #a9e39c;
}

.news-stream__items time {
	color: #8fd27f;
	font-weight: 850;
}

.content-section {
	padding-block: 66px 6px;
}

.section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 22px;
	padding-top: 13px;
	border-top: 4px solid var(--niv-ink);
}

.section-heading h2 {
	margin: 0;
	font-size: clamp(1.65rem, 3vw, 2.35rem);
	font-weight: 900;
	letter-spacing: -0.045em;
	line-height: 1.05;
}

.section-link {
	flex: none;
	padding-bottom: 2px;
	color: var(--niv-accent-text);
	font-size: 0.8rem;
	font-weight: 850;
}

.section-link:hover {
	color: var(--niv-accent-text-hover);
}

.news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.news-card--standard,
.news-card--feature {
	display: flex;
	flex-direction: column;
}

.news-card--standard .news-card__media {
	aspect-ratio: 16 / 9.3;
}

.news-card--standard .news-card__body,
.news-card--feature .news-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
}

.news-card--standard .post-meta,
.news-card--feature .post-meta {
	margin-top: auto;
}

.tip-panel-wrap {
	margin-top: 66px;
	background: var(--niv-accent);
	color: #fff;
}

.tip-panel {
	display: grid;
	grid-template-columns: 80px minmax(0, 1fr) auto;
	align-items: center;
	gap: 30px;
	padding-block: 38px;
}

.tip-panel__mark {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	border: 2px solid rgba(255, 255, 255, 0.75);
	border-radius: 16px;
	font-size: 2rem;
	font-weight: 950;
}

.tip-panel .section-kicker {
	color: rgba(255, 255, 255, 0.75);
}

.tip-panel .tip-panel__copy h2 {
	margin: 0;
	color: #fff;
	font-size: clamp(1.65rem, 3vw, 2.5rem);
	font-weight: 900;
	letter-spacing: -0.045em;
	line-height: 1.08;
}

.tip-panel p:not(.section-kicker) {
	margin: 7px 0 0;
	color: rgba(255, 255, 255, 0.82);
}

.button--light {
	border-color: #fff;
	background: #fff;
	color: var(--niv-accent-dark);
}

.button--light:hover {
	border-color: var(--niv-dark-surface);
	background: var(--niv-dark-surface);
}

.category-section {
	padding-bottom: 24px;
}

.category-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr);
	gap: 18px;
}

.news-card--feature .news-card__media {
	aspect-ratio: 16 / 8.4;
}

.news-card--feature h3 {
	font-size: clamp(1.35rem, 2.5vw, 2rem);
}

/* Listings and sidebar */
.listing-header,
.page-header {
	padding-block: 54px 40px;
	background: var(--niv-paper);
	border-bottom: 1px solid var(--niv-line);
}

.listing-header h1,
.page-header h1 {
	font-size: clamp(2.4rem, 5vw, 4.5rem);
}

.archive-description {
	max-width: 720px;
	margin-top: 14px;
	color: var(--niv-ink-soft);
}

.archive-description p {
	margin: 0;
}

.listing-layout,
.article-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 48px;
	align-items: start;
	padding-block: 48px 70px;
}

.news-grid--listing {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sidebar {
	display: grid;
	gap: 18px;
	position: sticky;
	top: 20px;
}

.widget {
	padding: 20px;
	border: 1px solid var(--niv-line);
	border-radius: var(--niv-radius);
	background: var(--niv-paper);
}

.widget-title {
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 3px solid var(--niv-accent);
	font-size: 1rem;
	font-weight: 900;
}

.widget ul:not(.sidebar-news),
.sidebar-news {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget li {
	padding: 9px 0;
	border-bottom: 1px solid var(--niv-line);
}

.widget li:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.sidebar-news li {
	display: grid;
	gap: 3px;
}

.sidebar-news time {
	color: var(--niv-accent-text);
	font-size: 0.67rem;
	font-weight: 800;
}

.sidebar-news a {
	font-size: 0.84rem;
	font-weight: 760;
	line-height: 1.35;
}

.navigation.pagination {
	margin-top: 32px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 8px;
	border: 1px solid var(--niv-line);
	border-radius: 7px;
	background: var(--niv-paper);
	font-weight: 800;
}

.page-numbers.current,
.page-numbers:hover {
	border-color: var(--niv-accent);
	background: var(--niv-accent);
	color: #fff;
}

/* Articles and pages */
.article-header {
	padding-block: 54px 34px;
	background: var(--niv-paper);
	border-bottom: 1px solid var(--niv-line);
}

.article-header h1 {
	font-size: clamp(2.35rem, 5.5vw, 5.2rem);
}

.article-deck {
	margin: 20px 0 22px;
	color: var(--niv-ink-soft);
	font-size: clamp(1.08rem, 2vw, 1.34rem);
	line-height: 1.5;
}

.article-byline {
	display: grid;
	gap: 5px;
	color: var(--niv-ink-soft);
	font-size: 0.82rem;
}

.article-byline > div {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.article-byline > div span:first-child {
	color: var(--niv-ink);
	font-weight: 800;
}

.article-byline small {
	font-size: 0.7rem;
}

.article-featured {
	padding-top: 32px;
}

.article-featured > img {
	width: 100%;
	max-height: 720px;
	object-fit: cover;
	border-radius: var(--niv-radius);
}

.image-caption {
	margin: 7px 2px 0;
	color: var(--niv-ink-soft);
	font-size: 0.72rem;
}

.article-layout {
	grid-template-columns: minmax(0, 780px) 280px;
	justify-content: center;
}

.entry-content {
	font-family: inherit;
	font-size: 1.09rem;
	line-height: 1.82;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote {
	margin-top: 0;
	margin-bottom: 1.45em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin: 1.6em 0 0.55em;
	font-family: Inter, ui-sans-serif, system-ui, sans-serif;
	font-weight: 900;
	letter-spacing: -0.035em;
	line-height: 1.18;
}

.entry-content h2 {
	font-size: 1.8rem;
}

.entry-content h3 {
	font-size: 1.4rem;
}

.entry-content a {
	color: var(--niv-accent-text);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.entry-content blockquote {
	padding: 5px 0 5px 22px;
	border-left: 5px solid var(--niv-accent);
	color: var(--niv-ink-soft);
	font-size: 1.22rem;
	font-style: italic;
}

.entry-content figure {
	margin-block: 1.8em;
}

.entry-content figcaption {
	color: var(--niv-ink-soft);
	font-family: Inter, ui-sans-serif, system-ui, sans-serif;
	font-size: 0.72rem;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-family: Inter, ui-sans-serif, system-ui, sans-serif;
	font-size: 0.92rem;
}

.entry-content th,
.entry-content td {
	padding: 10px;
	border: 1px solid var(--niv-line);
	text-align: left;
}

.entry-content th {
	background: var(--niv-accent-soft);
}

.alignwide {
	width: min(100vw - 40px, 1080px);
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.article-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 28px;
}

.article-tags a {
	padding: 6px 10px;
	border-radius: 5px;
	background: var(--niv-accent-soft);
	color: var(--niv-accent-text-hover);
	font-size: 0.74rem;
	font-weight: 800;
}

.share-panel {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-top: 32px;
	padding: 18px;
	border-radius: 8px;
	background: var(--niv-paper);
	box-shadow: var(--niv-shadow);
}

.share-panel > div {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.share-panel a {
	padding: 7px 10px;
	border: 1px solid var(--niv-line);
	border-radius: 5px;
	font-size: 0.72rem;
	font-weight: 800;
}

.share-panel a:hover {
	border-color: var(--niv-accent);
	background: var(--niv-accent);
	color: #fff;
}

.back-link {
	display: inline-flex;
	gap: 7px;
	margin-top: 28px;
	color: var(--niv-accent-text);
	font-weight: 800;
}

.related-news {
	padding-block: 52px 72px;
	background: var(--niv-paper);
}

.page-view {
	background: var(--niv-paper);
}

.page-content {
	padding-block: 48px 72px;
}

/* Empty states and comments */
.empty-state {
	margin-block: 20px 54px;
	padding: 52px 28px;
	border: 1px dashed #b8c5b9;
	border-radius: var(--niv-radius);
	background: var(--niv-paper);
	text-align: center;
}

.empty-state__mark {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	margin: 0 auto 16px;
	border-radius: 16px;
	background: var(--niv-accent);
	color: #fff;
	font-size: 1.75rem;
	font-weight: 950;
}

.empty-state h2,
.empty-state h1 {
	margin: 0;
	font-size: clamp(1.8rem, 4vw, 3rem);
}

.empty-state p {
	max-width: 560px;
	margin: 10px auto 20px;
	color: var(--niv-ink-soft);
}

.empty-state .search-form {
	max-width: 620px;
	margin: 22px auto;
}

.empty-state--search {
	margin-top: 0;
}

.empty-state--large {
	margin-block: 70px;
}

.empty-state--large .empty-state__mark {
	width: 92px;
	font-size: 1.35rem;
}

.comments-area {
	margin-top: 42px;
	padding-top: 32px;
	border-top: 1px solid var(--niv-line);
}

.comments-title,
.comment-reply-title {
	font-size: 1.45rem;
	font-weight: 900;
}

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list .children {
	list-style: none;
	margin-left: 28px;
}

.comment-body {
	margin-bottom: 14px;
	padding: 18px;
	border: 1px solid var(--niv-line);
	border-radius: 8px;
	background: var(--niv-paper);
}

.comment-meta {
	font-size: 0.78rem;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 800;
}

.comment-author img {
	border-radius: 50%;
}

.comment-form label {
	display: block;
	margin-bottom: 4px;
	font-size: 0.8rem;
	font-weight: 800;
}

.comment-form-cookies-consent,
.comment-subscription-form,
.subscribe-to-comments {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.comment-form-cookies-consent input[type="checkbox"],
.comment-subscription-form input[type="checkbox"],
.subscribe-to-comments input[type="checkbox"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 0.28em 0 0;
}

.comment-form-cookies-consent label,
.comment-subscription-form label,
.subscribe-to-comments label {
	display: inline;
	margin: 0;
}

/* Footer */
.site-footer {
	padding-top: 54px;
	background: #0c2112;
	color: #fff;
}

.footer-grid {
	display: grid;
	grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(140px, 0.7fr));
	gap: 42px;
	padding-bottom: 45px;
}

.site-footer .brand-link:hover {
	color: #fff;
}

.site-footer .brand-mark {
	background: #fff;
	color: var(--niv-accent-dark);
}

.site-footer .brand-copy > span {
	color: #91d584;
}

.footer-brand p {
	max-width: 360px;
	margin: 17px 0 0;
	color: rgba(255, 255, 255, 0.68);
	font-size: 0.88rem;
}

.footer-column h2 {
	margin: 4px 0 14px;
	color: #91d584;
	font-size: 0.7rem;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.footer-menu li,
.social-links li {
	margin-bottom: 7px;
}

.footer-menu a,
.social-links a,
.footer-contact-link {
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.84rem;
}

.footer-menu a:hover,
.social-links a:hover,
.footer-contact-link:hover {
	color: #fff;
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding-block: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.13);
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.72rem;
}

.footer-bottom a {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.footer-bottom a:hover {
	color: #fff;
}

.footer-legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
}

/* WordPress utilities */
.wp-caption,
.gallery-caption {
	max-width: 100%;
}

.bypostauthor {
	position: relative;
}

.sticky {
	position: relative;
}

@media (max-width: 1050px) {
	.lead-layout {
		grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.8fr);
	}

	.news-card--side {
		grid-template-columns: 105px minmax(0, 1fr);
	}

	.news-card--side .news-card__media {
		min-height: 108px;
	}

	.listing-layout,
	.article-layout {
		gap: 30px;
	}

	.footer-grid {
		grid-template-columns: 1.2fr repeat(2, 0.7fr);
	}
}

@media (max-width: 900px) {
	.header-date {
		display: none;
	}

	.menu-toggle {
		display: grid;
	}

	.primary-navigation {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		max-height: calc(100vh - 100%);
		overflow-y: auto;
		box-shadow: 0 15px 30px rgba(12, 33, 18, 0.18);
	}

	.primary-navigation.is-open {
		display: block;
	}

	.no-js .primary-navigation {
		display: block;
		position: static;
	}

	.primary-menu {
		display: block;
		padding-block: 9px;
	}

	.primary-menu .sub-menu {
		display: block;
		position: static;
		min-width: 0;
		padding: 0 0 0 18px;
		box-shadow: none;
	}

	.primary-menu a {
		padding: 12px 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	}

	.primary-menu a:hover,
	.primary-menu .current-menu-item > a,
	.primary-menu .current_page_item > a {
		padding-inline: 12px;
		border-radius: 6px;
	}

	.front-heading {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.lead-layout {
		grid-template-columns: 1fr;
	}

	.lead-side {
		grid-template-columns: repeat(3, 1fr);
	}

	.news-card--side {
		display: flex;
		flex-direction: column;
	}

	.news-card--side .news-card__media {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	.news-card--side .news-card__body {
		justify-content: flex-start;
	}

	.news-stream {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.tip-panel {
		grid-template-columns: 62px minmax(0, 1fr);
	}

	.tip-panel__mark {
		width: 60px;
		height: 60px;
	}

	.tip-panel .button {
		grid-column: 2;
		justify-self: start;
	}

	.category-grid {
		grid-template-columns: 1fr;
	}

	.category-list {
		grid-template-columns: repeat(3, 1fr);
	}

	.listing-layout,
	.article-layout {
		grid-template-columns: 1fr;
	}

	.sidebar {
		position: static;
		grid-template-columns: 1fr 1fr;
	}

	.footer-grid {
		grid-template-columns: 1.2fr 0.8fr;
	}
}

@media (max-width: 700px) {
	.site-container,
	.article-container {
		width: min(calc(100% - 28px), var(--niv-container));
	}

	.header-main {
		min-height: 74px;
	}

	.brand-mark {
		width: 42px;
		height: 42px;
	}

	.brand-copy strong {
		font-size: 1rem;
	}

	.brand-copy > span {
		font-size: 0.58rem;
	}

	.icon-button {
		width: 38px;
		height: 38px;
	}

	.weather-card {
		min-height: 38px;
		padding-right: 8px;
	}

	.weather-card__title,
	.weather-card__condition {
		display: none;
	}

	.weather-card__icon {
		width: 28px;
		height: 28px;
	}

	.weather-card__icon svg {
		width: 21px;
		height: 21px;
	}

	.weather-card__reading strong {
		font-size: 0.94rem;
	}

	.header-search__inner {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.front-heading {
		padding-block: 28px 18px;
	}

	.lead-layout {
		width: 100%;
		padding-bottom: 28px;
	}

	.lead-story {
		border-radius: 0;
		border-inline: 0;
	}

	.lead-story__body {
		padding: 20px 14px 23px;
	}

	.lead-side,
	.category-list {
		grid-template-columns: 1fr;
		width: min(calc(100% - 28px), var(--niv-container));
		margin-inline: auto;
	}

	.news-card--side {
		display: grid;
		grid-template-columns: 120px minmax(0, 1fr);
	}

	.news-card--side .news-card__media {
		min-height: 112px;
		aspect-ratio: auto;
	}

	.news-stream__items {
		grid-template-columns: 1fr;
	}

	.content-section {
		padding-top: 46px;
	}

	.news-grid,
	.news-grid--listing {
		grid-template-columns: 1fr;
	}

	.tip-panel {
		grid-template-columns: 1fr;
		gap: 18px;
		padding-block: 32px;
	}

	.tip-panel .button {
		grid-column: auto;
	}

	.listing-header,
	.page-header,
	.article-header {
		padding-block: 38px 30px;
	}

	.listing-layout,
	.article-layout {
		padding-block: 32px 52px;
	}

	.sidebar {
		grid-template-columns: 1fr;
	}

	.share-panel {
		align-items: flex-start;
		flex-direction: column;
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 32px 24px;
	}

	.footer-brand {
		grid-column: 1 / -1;
	}

	.footer-bottom {
		flex-direction: column;
		gap: 4px;
	}
}

@media (max-width: 470px) {
	.news-ticker__inner {
		gap: 8px;
	}

	.header-main {
		gap: 8px;
	}

	.header-meta {
		gap: 5px;
	}

	.icon-button {
		width: 36px;
		height: 36px;
	}

	.weather-card {
		min-height: 36px;
		gap: 3px;
		padding: 3px 4px;
		border-color: transparent;
		background: transparent;
	}

	.weather-card__icon {
		width: 24px;
		height: 24px;
	}

	.weather-card__icon svg {
		width: 18px;
		height: 18px;
	}

	.weather-card__reading strong {
		font-size: 0.82rem;
	}

	.news-ticker__inner strong::after {
		display: none;
	}

	.brand-copy > span {
		display: none;
	}

	.custom-logo {
		max-width: 138px;
		max-height: 52px;
	}

	.search-form {
		flex-direction: column;
	}

	.section-heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}

	.news-card--side {
		grid-template-columns: 105px minmax(0, 1fr);
	}

	.news-card--side .news-card__body {
		padding: 10px;
	}

	.news-card--side h3 {
		font-size: 0.88rem;
	}

	.news-stream__items a {
		grid-template-columns: 76px minmax(0, 1fr);
	}

	.footer-grid {
		grid-template-columns: 1fr;
	}

	.footer-brand {
		grid-column: auto;
	}
}

@media (max-width: 360px) {
	.brand-copy {
		display: none;
	}

	.custom-logo {
		max-width: 92px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
