/*
Theme Name:        happynews
Theme URI:         https://happynews.dk
Author:            Thomas Schiermacher Jensen
Description:       Tema til happynews.dk, et lokalmedie med gode nyheder fra danske kommuner. Postnummeret er sitets kendetegn. Kræver pluginnet Happy News Core.
Version:           1.1.0
Requires at least: 6.5
Tested up to:      7.0
Requires PHP:      8.1
License:           GPL-2.0-or-later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       happynews
Tags:              news, blog, two-columns, right-sidebar, custom-logo, custom-menu
*/

/* ==========================================================================
   Farver og skrift
   Grøn som kobbertagene på Frederiksborg, solgul som markering.
   ========================================================================== */

:root {
	--paper: #f5f8f4;
	--surface: #ffffff;
	--ink: #14231d;
	--muted: #56675e;
	--line: #d6e0d8;
	--green: #1b6a55;
	--green-deep: #0f4537;
	--green-tint: #dfece4;
	--sun: #ffcd38;
	--sun-ink: #2b2200;
	--on-deep: #f5f8f4;
	--on-deep-muted: #b8d0c4;
	--annonce: #e9e7e1;
	--annonce-ink: #4a4740;
	--focus: #1b6a55;
	--postnr: #0f4537;

	--display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
	--text: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;

	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 4px;

	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #0e1613;
		--surface: #15201b;
		--ink: #e6eee9;
		--muted: #9db0a6;
		--line: #26352e;
		--green: #6cc3a6;
		--green-deep: #0a2f26;
		--green-tint: #18302a;
		--sun: #ffcd38;
		--sun-ink: #2b2200;
		--on-deep: #eaf2ee;
		--on-deep-muted: #9dbcae;
		--annonce: #2a2925;
		--annonce-ink: #d6d2c8;
		--focus: #ffcd38;
		--postnr: #e6eee9;
		color-scheme: dark;
	}
}

/* Samme mørke farver, hvis en knap på sitet en dag vælger mørkt tema. */
:root[data-theme="dark"] {
	--paper: #0e1613;
	--surface: #15201b;
	--ink: #e6eee9;
	--muted: #9db0a6;
	--line: #26352e;
	--green: #6cc3a6;
	--green-deep: #0a2f26;
	--green-tint: #18302a;
	--sun: #ffcd38;
	--sun-ink: #2b2200;
	--on-deep: #eaf2ee;
	--on-deep-muted: #9dbcae;
	--annonce: #2a2925;
	--annonce-ink: #d6d2c8;
	--focus: #ffcd38;
	--postnr: #e6eee9;
	color-scheme: dark;
}

/* ==========================================================================
   Grundlag
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--text);
	font-size: 1.125rem;
	line-height: 1.6;
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
}

img,
video,
iframe {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--green);
}

a:hover {
	color: var(--ink);
}

:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
	border-radius: 2px;
}

h1,
h2,
h3,
h4 {
	font-family: var(--display);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.015em;
	text-wrap: balance;
	margin: 0;
}

p {
	margin: 0;
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
	padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 8px;
	top: -100px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--sun);
	color: var(--sun-ink);
	font-family: var(--display);
	font-weight: 700;
	text-decoration: none;
}

.skip-link:focus {
	top: 8px;
}

.button,
.searchform button,
.wp-block-button__link {
	display: inline-block;
	padding: 0.6em 1.1em;
	border: 0;
	border-radius: var(--radius);
	background: var(--green-deep);
	color: var(--on-deep);
	font: 700 1rem/1.2 var(--display);
	text-decoration: none;
	cursor: pointer;
}

.button:hover,
.searchform button:hover {
	background: var(--ink);
	color: var(--paper);
}

/* ==========================================================================
   Toppen
   ========================================================================== */

.site-header {
	background: var(--green-deep);
	color: var(--on-deep);
}

.masthead {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas:
		"date   search"
		"mark   search"
		"tag    tag";
	align-items: end;
	column-gap: 24px;
	padding-block: 18px 20px;
}

.masthead__date {
	grid-area: date;
	font-family: var(--display);
	font-size: 0.875rem;
	color: var(--on-deep-muted);
}

.wordmark {
	grid-area: mark;
	display: inline-flex;
	align-items: center;
	gap: 0.18em;
	justify-self: start;
	color: var(--on-deep);
	text-decoration: none;
	font-family: var(--display);
	font-weight: 800;
	font-stretch: 82%;
	font-size: clamp(2.5rem, 7vw, 4.25rem);
	line-height: 1;
	letter-spacing: -0.035em;
}

.wordmark:hover {
	color: var(--on-deep);
}

.wordmark__sun {
	display: inline-block;
	width: 0.56em;
	height: 0.56em;
	margin-top: 0.08em;
	border-radius: 50%;
	background: var(--sun);
	box-shadow: 0 0 0 0.09em var(--green-deep), 0 0 0 0.15em var(--sun);
	flex: none;
}

.wordmark--logo img {
	max-height: 72px;
	width: auto;
}

.masthead__tagline {
	grid-area: tag;
	margin-top: 6px;
	font-family: var(--text);
	font-style: italic;
	font-size: 1.125rem;
	color: var(--on-deep-muted);
}

.search {
	grid-area: search;
	position: relative;
	align-self: center;
}

.search summary {
	list-style: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1.5px solid var(--on-deep-muted);
	border-radius: 999px;
	font: 600 0.9375rem/1 var(--display);
	color: var(--on-deep);
}

.search summary::-webkit-details-marker {
	display: none;
}

.search summary::before {
	content: "";
	width: 12px;
	height: 12px;
	border: 2px solid currentColor;
	border-radius: 50%;
	box-shadow: 4px 4px 0 -3px currentColor;
	transform: translate(-1px, -1px);
}

.search[open] summary {
	background: var(--sun);
	border-color: var(--sun);
	color: var(--sun-ink);
}

.search__panel {
	position: absolute;
	right: 0;
	top: calc(100% + 10px);
	z-index: 20;
	width: min(420px, calc(100vw - 2 * var(--gutter)));
	padding: 12px;
	background: var(--surface);
	border-radius: var(--radius);
	box-shadow: 0 12px 32px rgb(0 0 0 / 0.22);
}

.searchform {
	display: flex;
	gap: 8px;
}

.searchform input {
	flex: 1;
	min-width: 0;
	padding: 0.55em 0.75em;
	border: 1.5px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
	color: var(--ink);
	font: 400 1rem/1.3 var(--display);
}

/* Kommuner og emner under navnetrækket */

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

.nav__inner {
	display: flex;
	align-items: center;
	gap: 8px 28px;
	padding-block: 12px;
	overflow-x: auto;
	scrollbar-width: none;
}

.nav__inner::-webkit-scrollbar {
	display: none;
}

.kommuner,
.emner {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	flex: none;
}

.kommuner a {
	display: inline-flex;
	align-items: stretch;
	border: 1.5px solid var(--ink);
	border-radius: var(--radius);
	overflow: hidden;
	color: var(--ink);
	text-decoration: none;
	font: 600 0.9375rem/1 var(--display);
	white-space: nowrap;
}

.kommuner b {
	padding: 7px 8px 6px;
	background: var(--sun);
	color: var(--sun-ink);
	font-weight: 800;
	font-stretch: 85%;
	font-variant-numeric: tabular-nums;
}

.kommuner span {
	padding: 7px 10px 6px;
}

.kommuner a:hover span,
.kommuner a[aria-current] span {
	background: var(--ink);
	color: var(--paper);
}

.emner {
	gap: 4px 18px;
}

.emner a {
	color: var(--muted);
	text-decoration: none;
	font: 500 0.9375rem/1 var(--display);
	white-space: nowrap;
	padding-block: 6px;
	border-bottom: 2px solid transparent;
}

.emner a:hover,
.emner a[aria-current],
.emner .current-menu-item > a {
	color: var(--ink);
	border-bottom-color: var(--sun);
}

/* ==========================================================================
   Stemplet: postnummer og sted
   ========================================================================== */

.stamp {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	font-family: var(--display);
	font-size: 0.875rem;
	line-height: 1;
}

.stamp__place {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--green);
	text-decoration: none;
	font-weight: 600;
}

.stamp__postnr {
	padding: 4px 6px 3px;
	border-radius: 3px;
	background: var(--sun);
	color: var(--sun-ink);
	font-weight: 800;
	font-stretch: 85%;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.01em;
}

a.stamp__place:hover .stamp__sted {
	text-decoration: underline;
}

.stamp__annonce {
	padding: 4px 7px 3px;
	border: 1px solid var(--annonce-ink);
	border-radius: 3px;
	background: var(--annonce);
	color: var(--annonce-ink);
	font-weight: 700;
}

/* ==========================================================================
   Oversigter: tophistorie, gitter, sidekolonne
   ========================================================================== */

.layout {
	display: grid;
	gap: 48px;
	padding-block: 32px 64px;
}

.layout--sidebar {
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1000px) {
	.layout--sidebar {
		grid-template-columns: minmax(0, 1fr) 300px;
	}
}

.stream {
	min-width: 0;
	display: grid;
	gap: 40px;
	container-type: inline-size;
}

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
	gap: 36px 28px;
}

.card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

.card__media {
	display: block;
	aspect-ratio: 3 / 2;
	max-width: 100%;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--green-tint);
}

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

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

.card__media,
.card__media:hover {
	text-decoration: none;
	container-type: inline-size;
}

.card__tile {
	position: relative;
	display: flex;
	align-items: flex-end;
	height: 100%;
	padding: 6% 7%;
	overflow: hidden;
	color: var(--postnr);
	font-family: var(--display);
	font-weight: 800;
	font-stretch: 75%;
	line-height: 0.86;
	letter-spacing: -0.02em;
	overflow-wrap: break-word;
	hyphens: auto;
}

.card__tile--s {
	font-size: 22cqi;
}

.card__tile--m {
	font-size: 15cqi;
}

.card__tile--l {
	font-size: 11cqi;
}

.card__tile::before {
	content: "";
	position: absolute;
	width: 58%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--sun);
}

.card__tile--sun0::before {
	right: -10%;
	top: -28%;
}

.card__tile--sun1::before {
	left: 52%;
	bottom: -40%;
	width: 50%;
}

.card__tile--sun2::before {
	right: 8%;
	top: 10%;
	width: 26%;
}

.card__tile span {
	position: relative;
	max-width: 100%;
}

.card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.card__title {
	font-size: 1.3125rem;
	font-weight: 650;
	line-height: 1.15;
}

.card__title a {
	color: var(--ink);
	text-decoration: none;
}

.card__title a:hover {
	text-decoration: underline;
	text-decoration-color: var(--sun);
	text-decoration-thickness: 0.14em;
	text-underline-offset: 0.12em;
}

.card__date {
	font-family: var(--display);
	font-size: 0.875rem;
	color: var(--muted);
}

/* Tophistorien */

.card--lead {
	padding-bottom: 40px;
	border-bottom: 1px solid var(--line);
}

.card--lead .card__media {
	aspect-ratio: 16 / 9;
}

.card--lead .card__title {
	font-size: clamp(2rem, 4.4cqi, 3.25rem);
	font-weight: 750;
	line-height: 1.02;
	letter-spacing: -0.025em;
}

.card--lead .card__manchet {
	font-size: 1.25rem;
	line-height: 1.5;
	color: var(--ink);
	max-width: 38ch;
}

@media (min-width: 760px) {
	.card--lead {
		display: grid;
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		align-items: center;
		gap: 36px;
	}

	.card--lead .card__body {
		gap: 16px;
	}
}

/* Tom oversigt */

.empty {
	display: grid;
	gap: 16px;
	justify-items: start;
	padding: 32px;
	border: 1.5px dashed var(--line);
	border-radius: var(--radius);
	color: var(--muted);
}

/* Sidekolonne */

.sidebar {
	display: grid;
	gap: 36px;
	align-content: start;
	min-width: 0;
}

.widget {
	min-width: 0;
	font-size: 1rem;
}

.widget__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	font-size: 1.0625rem;
}

.widget__title::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--sun);
	flex: none;
}

.widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 10px;
}

.sidebar__widgets {
	display: grid;
	gap: 36px;
	align-content: start;
	min-width: 0;
}

/* ==========================================================================
   Annoncer
   Altid mærket "Annonce" og adskilt fra redaktionelt stof med streger,
   så læseren aldrig er i tvivl.
   ========================================================================== */

.adslot {
	display: grid;
	gap: 8px;
	min-width: 0;
	padding-block: 12px 18px;
	border-block: 1px solid var(--line);
}

.adslot__label {
	font-family: var(--display);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.02em;
	color: var(--muted);
}

.adslot__inner {
	display: grid;
	justify-items: center;
	min-width: 0;
	overflow: hidden;
}

.adwidget {
	display: grid;
	justify-items: center;
	width: 100%;
	min-width: 0;
}

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

.adslot__inner ins.adsbygoogle {
	width: 100%;
}

/* Plads til Google-annoncer, før de er hentet, så siden ikke hopper. */
.adslot:has(ins.adsbygoogle) .adslot__inner {
	min-height: var(--ad-min, 100px);
}

.adslot-wrap {
	padding-block: 16px 0;
}

.adslot--top {
	--ad-min: 100px;
}

.adslot--oversigt {
	grid-column: 1 / -1;
	--ad-min: 250px;
}

.adslot--artikel {
	margin-block: 2em !important;
	--ad-min: 280px;
}

.adslot--side {
	--ad-min: 250px;
}

@media (min-width: 1000px) {
	.adslot--top {
		--ad-min: 90px;
	}

	.adslot--side {
		position: sticky;
		top: 16px;
	}
}

.article__sponsor {
	padding: 2px 7px;
	border: 1px solid var(--annonce-ink);
	border-radius: 3px;
	background: var(--annonce);
	color: var(--annonce-ink) !important;
}

/* Sideskift */

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-family: var(--display);
	font-weight: 600;
}

.pagination .page-numbers {
	display: inline-block;
	min-width: 44px;
	padding: 10px 14px;
	border: 1.5px solid var(--line);
	border-radius: var(--radius);
	color: var(--ink);
	text-align: center;
	text-decoration: none;
}

.pagination .page-numbers.current {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--paper);
}

/* ==========================================================================
   Find din kommune (forsiden)
   ========================================================================== */

.find {
	background: var(--green-tint);
	padding-block: 48px 56px;
}

.find__title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin-bottom: 24px;
}

.find__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.find__list a {
	display: grid;
	gap: 6px;
	padding: 18px 20px;
	border-radius: var(--radius);
	background: var(--paper);
	color: var(--ink);
	text-decoration: none;
	font-family: var(--display);
}

.find__list b {
	font-weight: 800;
	font-stretch: 75%;
	font-size: 3.25rem;
	line-height: 0.85;
	color: var(--green);
	font-variant-numeric: tabular-nums;
}

.find__list span {
	font-weight: 700;
	font-size: 1.125rem;
}

.find__list small {
	font-size: 0.875rem;
	color: var(--muted);
}

.find__list a:hover b {
	color: var(--ink);
}

.find__note {
	margin-top: 20px;
	font-style: italic;
	color: var(--muted);
}

/* ==========================================================================
   Kommunesiden: det store postnummer
   ========================================================================== */

.kommune-hero {
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid var(--line);
}

.kommune-hero__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 8px 40px;
	padding-block: 44px 32px;
}

.kommune-hero__postnr {
	position: relative;
	font-family: var(--display);
	font-weight: 800;
	font-stretch: 75%;
	font-size: clamp(7rem, 26vw, 17rem);
	line-height: 0.74;
	letter-spacing: -0.03em;
	color: var(--postnr);
	font-variant-numeric: tabular-nums;
	isolation: isolate;
}

.kommune-hero__postnr::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: 58%;
	top: -6%;
	width: 0.6em;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--sun);
}

.kommune-hero__text {
	display: grid;
	gap: 10px;
	max-width: 40ch;
	padding-bottom: 0.4rem;
}

.kommune-hero__name {
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

.kommune-hero__desc {
	font-size: 1.1875rem;
	color: var(--muted);
}


/* Emne- og søgesider */

.page-head {
	border-bottom: 1px solid var(--line);
}

.page-head .wrap {
	display: grid;
	gap: 8px;
	padding-block: 36px 32px;
}

.page-head__kind {
	font-family: var(--display);
	font-weight: 600;
	font-size: 0.9375rem;
	color: var(--green);
}

.page-head__title {
	font-size: clamp(2.25rem, 6vw, 4rem);
	font-weight: 800;
	letter-spacing: -0.03em;
}

.page-head__desc {
	max-width: 60ch;
	color: var(--muted);
}

/* ==========================================================================
   Artiklen
   ========================================================================== */

.article {
	padding-block: 40px 56px;
}

.article__head {
	display: grid;
	gap: 18px;
	max-width: calc(780px + 2 * var(--gutter));
}

.article__stamprow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
}

.article__stamprow .stamp {
	font-size: 0.9375rem;
}

.article__emne {
	font-family: var(--display);
	font-weight: 600;
	font-size: 0.9375rem;
	color: var(--muted);
	text-decoration: none;
}

.article__emne:hover {
	color: var(--ink);
	text-decoration: underline;
}

.article__title {
	font-size: clamp(2.125rem, 5.2vw, 3.75rem);
	font-weight: 750;
	line-height: 1.02;
	letter-spacing: -0.03em;
}

.article__manchet {
	font-size: clamp(1.25rem, 2.2vw, 1.4375rem);
	line-height: 1.45;
	font-weight: 500;
}

.article__byline {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
	font-family: var(--display);
	font-size: 0.9375rem;
	color: var(--muted);
}

.article__byline span {
	color: var(--ink);
	font-weight: 600;
}

.article__figure {
	margin: 32px auto 0;
	max-width: calc(1080px + 2 * var(--gutter));
}

.article__img {
	display: block;
	width: 100%;
	border-radius: var(--radius);
}

.article__figure figcaption {
	margin-top: 10px;
	font-family: var(--display);
	font-size: 0.875rem;
	color: var(--muted);
}

.article__body {
	max-width: calc(700px + 2 * var(--gutter));
	margin-top: 36px;
}

.article--page .article__body {
	margin-top: 28px;
}

.article__after {
	max-width: calc(700px + 2 * var(--gutter));
	margin-top: 40px;
}

/* Brødtekst fra redigeringen */

.prose {
	font-size: 1.1875rem;
	line-height: 1.7;
}

.prose > * + * {
	margin-top: 1.1em;
}

.prose h2 {
	margin-top: 1.8em;
	font-size: 1.625rem;
}

.prose h3 {
	margin-top: 1.6em;
	font-size: 1.3125rem;
}

.prose a {
	color: var(--ink);
	text-decoration-color: var(--sun);
	text-decoration-thickness: 0.18em;
	text-underline-offset: 0.14em;
}

.prose a:hover {
	color: var(--green);
}

.prose ul,
.prose ol {
	padding-left: 1.3em;
}

.prose li + li {
	margin-top: 0.4em;
}

.prose blockquote,
.prose .wp-block-quote {
	margin-inline: 0;
	padding: 0;
	border: 0;
	font-size: 1.375rem;
	line-height: 1.45;
	font-style: italic;
}

.prose blockquote::before {
	content: "”";
	display: block;
	height: 0.55em;
	font-family: var(--display);
	font-style: normal;
	font-weight: 800;
	font-size: 3.5rem;
	line-height: 1;
	color: var(--sun);
}

.prose blockquote cite,
.prose .wp-block-quote cite {
	display: block;
	margin-top: 0.6em;
	font-family: var(--display);
	font-style: normal;
	font-size: 0.9375rem;
	color: var(--muted);
}

.prose figure {
	margin-inline: 0;
}

.prose figcaption,
.prose .wp-element-caption {
	margin-top: 8px;
	font-family: var(--display);
	font-size: 0.875rem;
	color: var(--muted);
}

.prose img {
	border-radius: var(--radius);
}

.prose hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin-block: 2em;
}

.prose .alignwide {
	margin-inline: calc(-1 * min(120px, 8vw));
}

.kilde {
	margin-top: 2.4em !important;
	padding-top: 14px;
	border-top: 1px solid var(--line);
	font-family: var(--display);
	font-size: 0.9375rem;
	line-height: 1.4;
}

.kilde span {
	font-weight: 700;
	margin-right: 6px;
}

/* Mere fra samme kommune */

.related {
	padding-block: 48px 64px;
	border-top: 1px solid var(--line);
	background: var(--surface);
}

.related__title {
	margin-bottom: 24px;
	font-size: clamp(1.375rem, 2.6vw, 1.75rem);
}

/* 404 */

.notfound {
	display: grid;
	gap: 18px;
	justify-items: start;
	padding-block: 56px 80px;
	max-width: calc(720px + 2 * var(--gutter));
}

.notfound__code {
	font-family: var(--display);
	font-weight: 800;
	font-stretch: 75%;
	font-size: clamp(6rem, 20vw, 12rem);
	line-height: 0.8;
	color: var(--green);
}

.notfound__title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.notfound .searchform {
	width: 100%;
	max-width: 480px;
}

/* ==========================================================================
   Bunden
   ========================================================================== */

.site-footer {
	background: var(--green-deep);
	color: var(--on-deep);
	font-family: var(--display);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.site-footer a {
	color: var(--on-deep);
}

.site-footer__inner {
	display: grid;
	gap: 32px 48px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	padding-block: 48px 56px;
}

.site-footer__mark {
	display: flex;
	align-items: center;
	gap: 0.2em;
	margin-bottom: 12px;
	font-weight: 800;
	font-stretch: 82%;
	font-size: 2rem;
	line-height: 1;
	letter-spacing: -0.03em;
}

.site-footer__about p:last-child {
	color: var(--on-deep-muted);
	max-width: 42ch;
}

.site-footer__facts {
	display: grid;
	gap: 14px;
	align-content: start;
}

.site-footer__facts span {
	display: block;
	font-weight: 700;
	color: var(--sun);
}

.site-footer__nav ul {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ==========================================================================
   Små skærme
   ========================================================================== */

@media (max-width: 600px) {
	body {
		font-size: 1.0625rem;
	}

	.masthead {
		padding-block: 14px 16px;
	}

	/* Kommuner på første linje, emner på anden, der kan skubbes sidelæns. */
	.nav__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		overflow: visible;
	}

	.emner {
		overflow-x: auto;
		scrollbar-width: none;
		margin-inline: calc(-1 * var(--gutter));
		padding-inline: var(--gutter);
	}

	.emner::-webkit-scrollbar {
		display: none;
	}

	.kommuner {
		flex-wrap: wrap;
	}

	.masthead__tagline {
		font-size: 1rem;
	}

	.search summary span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}

	.search summary {
		padding: 10px;
	}

	.layout {
		padding-block: 24px 48px;
	}

	.prose {
		font-size: 1.125rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}

/* WordPress' egne klasser */

.alignleft {
	float: left;
	margin: 0.3em 1.2em 0.8em 0;
}

.alignright {
	float: right;
	margin: 0.3em 0 0.8em 1.2em;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.wp-caption-text,
.gallery-caption {
	font-family: var(--display);
	font-size: 0.875rem;
	color: var(--muted);
}
