/*
Theme Name: Fagpressenytt
Description: Klassisk tema for fagpressenytt.no. Krever pluginen «Wave - Fagpressenytt» og ACF.
Author: Wave
Version: 0.1.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: fagpressenytt
*/

:root {
	--bg: #f4f5f7;
	--surface: #ffffff;
	--surface-muted: #e4e6e9;
	--placeholder: #e8eaed;
	--text: #1a1d21;
	--text-muted: #4a515c;
	--text-body: #3a4049;
	--border: #dfe2e6;
	--border-input: #c9cdd3;
	--divider: #eceef1;
	--icon-muted: #8a919c;
	--link-accent: #b35c00;
	--brand-orange: #f47f00;
	--highlight: #fde7cf;

	--serif: Merriweather, Georgia, serif;
	--sans: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--radius: 8px;
	--radius-card: 10px;
	--wrap: 1280px;
	--gutter: 24px;
}

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.5;
}

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

a:hover {
	color: var(--link-accent);
	text-decoration: underline;
}

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

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

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

button {
	cursor: pointer;
}

button:disabled {
	opacity: .35;
	cursor: default;
}

mark {
	background: var(--highlight);
	color: inherit;
	padding: 0 2px;
	border-radius: 2px;
}

h1,
h2,
h3 {
	margin: 0;
	font-family: var(--serif);
	font-weight: 600;
	line-height: 1.3;
}

p {
	margin: 0;
}

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

.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100;
	width: auto;
	height: auto;
	clip: auto;
	margin: 0;
	padding: 12px 16px;
	background: var(--text);
	color: #fff;
	border-radius: var(--radius);
}

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

/* ---------- Knapper og felt ---------- */

.knapp {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 22px;
	border: 0;
	border-radius: var(--radius);
	background: var(--text);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.knapp:hover {
	color: #fff;
	text-decoration: none;
	background: #33383f;
}

.knapp--outline {
	background: var(--surface);
	color: var(--text);
	border: 1px solid var(--text);
}

.knapp--outline:hover {
	background: var(--bg);
	color: var(--text);
}

.lenkeknapp {
	min-height: 44px;
	padding: 0 4px;
	border: 0;
	background: none;
	font-size: 14px;
	font-weight: 600;
	color: var(--text);
	text-decoration: underline;
}

.felt {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1 1 200px;
	min-width: 0;
	position: relative;
}

.felt__label {
	font-size: 13px;
	font-weight: 600;
}

.input,
.select {
	width: 100%;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--border-input);
	border-radius: var(--radius);
	background: var(--surface);
	font-size: 15px;
	color: var(--text);
}

.select {
	appearance: none;
	padding-right: 36px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231a1d21' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
}

/* ---------- Header ---------- */

.site-header {
	background: var(--surface);
	border-bottom: 1px solid var(--border);
}

.site-header__inner {
	padding-top: 20px;
	padding-bottom: 20px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 32px;
}

.logo {
	font-family: var(--serif);
	font-size: 28px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--text);
}

.logo:hover {
	color: var(--text);
	text-decoration: none;
}

.header-nyhetsbrev {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--text);
	border-radius: var(--radius);
	font-size: 15px;
	font-weight: 600;
}

.sokefelt {
	display: flex;
	flex: 1 1 300px;
	max-width: 420px;
}

.sokefelt input {
	flex: 1;
	min-width: 0;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--border-input);
	border-right: 0;
	border-radius: var(--radius) 0 0 var(--radius);
	font-size: 15px;
	background: var(--surface);
}

.sokefelt button {
	min-height: 44px;
	padding: 0 18px;
	border: 0;
	border-radius: 0 var(--radius) var(--radius) 0;
	background: var(--text);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
}

.sokefelt--stor {
	max-width: 560px;
	flex: none;
}

.sokefelt--stor input,
.sokefelt--stor button {
	min-height: 52px;
	font-size: 16px;
}

.sokefelt--stor button {
	padding: 0 22px;
}

/* ---------- Footer ---------- */

.site-footer {
	background: var(--surface);
	border-top: 1px solid var(--border);
}

.site-footer__inner {
	padding-top: 28px;
	padding-bottom: 28px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
	font-size: 14px;
	color: var(--text-muted);
}

.site-footer__info {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 16px;
}

.site-footer .logo {
	font-size: 20px;
}

.site-footer nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
}

.site-footer nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--text-muted);
	text-decoration: underline;
}

.site-footer nav a:hover {
	color: var(--link-accent);
}

/* ---------- Forside ---------- */

.intro {
	padding-top: 88px;
	padding-bottom: 8px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.intro h1 {
	font-size: 36px;
	line-height: 1.25;
}

.intro p {
	max-width: 720px;
	font-size: 17px;
	color: var(--text-muted);
}

.intro strong {
	color: var(--text);
}

.kategorier {
	padding-top: 32px;
	padding-bottom: 56px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	/* Karusellen får aldri gjøre selve siden bredere enn skjermen. */
	overflow-x: clip;
}

.verktoy {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

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

.verktoy__status {
	font-size: 14px;
	color: var(--text-muted);
}

.tilpass {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--border-input);
	border-radius: var(--radius);
	background: var(--surface);
	font-size: 14px;
	font-weight: 600;
}

.tilpass[aria-expanded="true"] {
	border-color: var(--text);
	box-shadow: 0 0 0 1px var(--text);
}

.bla {
	display: flex;
	align-items: center;
	gap: 12px;
}

.bla__tekst {
	font-size: 14px;
	color: var(--text-muted);
}

.bla__knapp {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--text);
	background: var(--surface);
	color: var(--text);
}

.bla__knapp--neste {
	border: 0;
	background: var(--text);
	color: #fff;
}

.filterpanel {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-card);
}

.filterpanel[hidden] {
	display: none;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--border-input);
	border-radius: 999px;
	background: var(--bg);
	color: var(--text-muted);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.chip svg {
	display: none;
}

.chip[aria-pressed="true"] {
	padding-left: 12px;
	border-color: var(--text);
	background: var(--surface);
	color: var(--text);
	font-weight: 600;
}

.chip[aria-pressed="true"] svg {
	display: block;
}

.filterpanel__bunn {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	font-size: 13px;
	color: var(--text-muted);
}

.filterpanel__bunn .lenkeknapp {
	font-size: 13px;
}

.filterpanel__ferdig {
	margin-left: auto;
	min-height: 44px;
	padding: 0 20px;
	font-size: 14px;
}

.tom-tilstand {
	padding: 24px;
	background: var(--surface);
	border: 1px dashed var(--border-input);
	border-radius: var(--radius-card);
	font-size: 15px;
	color: var(--text-muted);
}

.tom-tilstand[hidden] {
	display: none;
}

/* Karusell: vanlig horisontal scroll med snap, så sveip fungerer uten JavaScript. */
.karusell {
	/* Absolutt posisjonerte barn (skjermlesertekst i lenkene) må holdes inne i
	   karusellen, ellers gjør de siden bredere og mobilen zoomer ut. */
	position: relative;
	margin-right: calc(var(--gutter) * -1);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

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

.karusell__spor {
	display: flex;
	gap: 20px;
	padding-right: var(--gutter);
}

.kort {
	flex: 0 0 290px;
	scroll-snap-align: start;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-card);
	padding: 20px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.kort[hidden] {
	display: none;
}

.kort__bilde {
	height: 150px;
	margin: -20px -20px 16px;
	background: var(--placeholder);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.kort__bilde img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kort h3 {
	margin: 0 0 4px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--text);
	font-size: 18px;
	line-height: 1.35;
}

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

.kort li {
	padding: 10px 0;
	border-bottom: 1px solid var(--divider);
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.kort li a {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.meta {
	font-size: 12px;
	color: var(--text-muted);
}

/* Medienavnet i kortene: samme grå som datoen, understrek ved hover. */
.kort li .meta__medium {
	display: inline;
	font-size: inherit;
	font-weight: 600;
	line-height: inherit;
	color: var(--text-muted);
}

.kort li .meta__medium:hover {
	color: var(--link-accent);
}

.flere {
	margin-top: auto;
	padding-top: 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--link-accent);
}

.prikker {
	display: flex;
	gap: 4px;
	justify-content: center;
}

.prikker button {
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

.prikker span {
	width: 24px;
	height: 4px;
	border-radius: 2px;
	background: var(--border-input);
}

.prikker [aria-current="true"] span {
	background: var(--text);
}

/* ---------- Nyhetsbrev ---------- */

.nyhetsbrev {
	background: var(--surface-muted);
	scroll-margin-top: 16px;
}

.nyhetsbrev__inner {
	padding-top: 56px;
	padding-bottom: 64px;
	display: flex;
	flex-wrap: wrap;
	gap: 40px 64px;
}

.nyhetsbrev__venstre {
	flex: 1 1 360px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.nyhetsbrev__tekst {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nyhetsbrev h2 {
	font-size: 32px;
	line-height: 1.25;
}

.nyhetsbrev__tekst p {
	font-size: 17px;
	color: var(--text-muted);
}

.gruppe {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.gruppe legend {
	padding: 0 0 10px;
	font-size: 14px;
	font-weight: 600;
}

.radiokort {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

/* Valgt kort: hvit flate og mørk ramme. Ikke valgt: dempet, lys ramme. */
.radiokort label {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 14px 16px;
	border: 2px solid var(--border-input);
	border-radius: var(--radius);
	background: transparent;
	color: var(--text-muted);
	cursor: pointer;
}

.radiokort label:hover {
	border-color: var(--icon-muted);
}

.radiokort label:has(input:checked) {
	border-color: var(--text);
	background: var(--surface);
	color: var(--text);
}

.radiokort label:has(input:focus-visible) {
	outline: 3px solid var(--brand-orange);
	outline-offset: 2px;
}

.radiokort input {
	margin: 3px 0 0;
	width: 18px;
	height: 18px;
	accent-color: var(--text);
}

.radiokort__tekst {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.radiokort__tittel {
	font-size: 15px;
	font-weight: 600;
}

.radiokort__under {
	font-size: 13px;
	color: var(--text-muted);
}

.epostfelt {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.epostfelt label {
	font-size: 14px;
	font-weight: 600;
}

.epostfelt__rad {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.epostfelt input[type="email"] {
	flex: 1 1 240px;
	min-width: 0;
	min-height: 52px;
	padding: 0 16px;
	border: 0;
	border-radius: var(--radius);
	font-size: 16px;
	background: var(--surface);
}

.epostfelt .knapp {
	min-height: 52px;
	padding: 0 24px;
	font-size: 16px;
}

.hjelpetekst {
	font-size: 13px;
	color: var(--text-muted);
}

.hjelpetekst a {
	color: var(--text);
	text-decoration: underline;
}

.feilmelding {
	padding: 12px 16px;
	border-left: 4px solid #b32d2e;
	background: var(--surface);
	border-radius: var(--radius);
	font-size: 15px;
	font-weight: 500;
}

.temaer {
	flex: 1.4 1 480px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.temaer__topp {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding-bottom: 12px;
}

.temaer legend {
	float: left;
	padding: 0;
	font-size: 14px;
	font-weight: 600;
}

.temaer legend span {
	font-weight: 400;
	color: var(--text-muted);
}

/* Temaene er ekte avkrysningsbokser, stylet som chips. */
.temachip {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border: 2px solid var(--text);
	border-radius: 999px;
	background: transparent;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.temachip input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.temachip svg {
	display: none;
}

.temachip:has(input:checked) {
	padding-left: 12px;
	border-color: var(--surface);
	background: var(--surface);
	font-weight: 600;
}

.temachip:has(input:checked) svg {
	display: block;
}

.temachip:has(input:focus-visible) {
	outline: 3px solid var(--brand-orange);
	outline-offset: 2px;
}

.temachip--lys {
	border-width: 1px;
	border-color: var(--border-input);
	background: var(--bg);
	color: var(--text-muted);
}

.temachip--lys:has(input:checked) {
	border-color: var(--text);
	background: var(--surface);
	color: var(--text);
}

.sendt {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 640px;
}

.sendt h2 {
	font-size: 32px;
}

.sendt p {
	font-size: 17px;
	color: var(--text-muted);
}

.sendt .inline-skjema {
	display: inline;
}

.sendt .lenkeknapp {
	font-size: inherit;
	padding: 0;
	min-height: 0;
}

/* ---------- Brødsmuler, kategoriside og søk ---------- */

.side {
	padding-top: 24px;
	padding-bottom: 64px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.side--sok {
	padding-top: 80px;
}

.side--sok h1 {
	font-size: 32px;
}

.brodsmuler {
	font-size: 13px;
	color: var(--text-muted);
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.brodsmuler a {
	color: var(--text-muted);
	text-decoration: underline;
}

.kategorihode {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: stretch;
}

.kategorihode__tekst {
	flex: 1 1 420px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	justify-content: center;
}

.kategorihode h1 {
	font-size: 38px;
	line-height: 1.25;
}

.kategorihode p {
	font-size: 17px;
	color: var(--text-muted);
}

.kategorihode__bilde {
	flex: 0 1 380px;
	height: 190px;
	background: var(--placeholder);
	border-radius: var(--radius-card);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.kategorihode__bilde img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.filterboks {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	padding: 20px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-card);
}

.filterboks__send {
	align-self: flex-end;
}

.js .filterboks__send {
	display: none;
}

.nedtrekk__knapp {
	width: 100%;
	min-height: 44px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 0 12px;
	border: 1px solid var(--border-input);
	border-radius: var(--radius);
	background: var(--surface);
	font-size: 15px;
	text-align: left;
}

.nedtrekk__knapp[aria-expanded="true"] {
	border-color: var(--text);
	box-shadow: 0 0 0 1px var(--text);
}

.nedtrekk__knapp span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nedtrekk__panel {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 10;
	width: 420px;
	max-width: calc(100vw - 48px);
	padding: 8px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-card);
	box-shadow: 0 12px 32px rgba(26, 29, 33, .14);
}

/* Uten JavaScript vises listen rett under knappen. */
.no-js .nedtrekk__panel {
	position: static;
	width: auto;
	box-shadow: none;
}

.no-js .nedtrekk__panel[hidden] {
	display: block;
}

.nedtrekk__sok {
	margin-bottom: 8px;
}

.nedtrekk__liste {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 360px;
	overflow-y: auto;
}

.nedtrekk__valg {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	padding: 0 12px;
	border-radius: 6px;
	cursor: pointer;
}

.nedtrekk__valg input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.nedtrekk__boks {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	border-radius: 4px;
	border: 1.5px solid var(--icon-muted);
	background: var(--surface);
	display: flex;
	align-items: center;
	justify-content: center;
}

.nedtrekk__boks svg {
	display: none;
}

.nedtrekk__valg:has(input:checked) {
	background: var(--bg);
}

.nedtrekk__valg:has(input:checked) .nedtrekk__boks {
	border-color: var(--text);
	background: var(--text);
}

.nedtrekk__valg:has(input:checked) .nedtrekk__boks svg {
	display: block;
}

.nedtrekk__valg:has(input:focus-visible) {
	outline: 3px solid var(--brand-orange);
	outline-offset: -3px;
}

.nedtrekk__navn {
	flex: 1;
	font-size: 14px;
	font-weight: 500;
}

.nedtrekk__valg:has(input:checked) .nedtrekk__navn {
	font-weight: 600;
}

.nedtrekk__antall {
	font-size: 13px;
	color: var(--text-muted);
}

.nedtrekk__valg--tom {
	color: var(--icon-muted);
	cursor: default;
}

.nedtrekk__bunn {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 8px 4px 0;
	margin-top: 8px;
	border-top: 1px solid var(--divider);
}

.nedtrekk__bunn .knapp {
	min-height: 40px;
	padding: 0 18px;
	font-size: 14px;
}

.innhold {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: flex-start;
}

.innhold__hoved {
	flex: 999 1 600px;
	min-width: 0;
}

.innhold__side {
	flex: 1 1 280px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.status {
	font-size: 14px;
	color: var(--text-muted);
}

.sak {
	padding: 24px 0;
	border-bottom: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.sak__meta {
	font-size: 13px;
	color: var(--text-muted);
}

.sak__meta .sak__medium {
	font-weight: 600;
}

.sak__meta .sak__kategori {
	color: var(--text-muted);
	text-decoration: underline;
}

.sak h2 {
	font-size: 19px;
	line-height: 1.4;
}

.sak__ekstern {
	color: var(--icon-muted);
}

.sak__ekstern svg {
	display: inline;
	vertical-align: -2px;
}

.sak__ingress {
	max-width: 780px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--text-body);
}

.vis-flere {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding-top: 32px;
}

.vis-flere span {
	font-size: 13px;
	color: var(--text-muted);
}

.paginering {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding-top: 32px;
}

.paginering .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--border-input);
	border-radius: var(--radius);
	background: var(--surface);
	font-size: 15px;
	font-weight: 600;
}

.paginering .page-numbers.current {
	border-color: var(--text);
	background: var(--text);
	color: #fff;
}

.paginering .page-numbers.dots {
	border: 0;
	background: none;
	min-width: 0;
	padding: 0 4px;
	color: var(--text-muted);
}

.cta {
	background: var(--surface-muted);
	border-radius: var(--radius-card);
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cta h2 {
	font-size: 17px;
}

.cta p {
	font-size: 14px;
	color: var(--text-muted);
}

.ingen-treff {
	padding: 32px 0;
	font-size: 17px;
	color: var(--text-muted);
}

/* ---------- 404 og enkle sider ---------- */

.smal {
	padding-top: 72px;
	padding-bottom: 96px;
	display: flex;
	justify-content: center;
}

.smal__innhold {
	width: 100%;
	max-width: 760px;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.smal__etikett {
	font-size: 14px;
	font-weight: 600;
	color: var(--text-muted);
}

.smal h1 {
	font-size: 40px;
	line-height: 1.25;
}

.smal__ingress {
	font-size: 18px;
	color: var(--text-muted);
}

.lenkechips {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.lenkechips a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid var(--border-input);
	border-radius: 999px;
	background: var(--surface);
	font-size: 14px;
	font-weight: 500;
}

.tilbake {
	font-weight: 600;
	text-decoration: underline;
}

.innholdstekst {
	font-size: 17px;
	line-height: 1.6;
	color: var(--text-body);
}

.innholdstekst > * + * {
	margin-top: 1em;
}

.innholdstekst a {
	text-decoration: underline;
}

.innholdstekst h2 {
	font-size: 28px;
	margin-top: 1.5em;
}

/* ---------- Nyhetsbrevsidene ---------- */

.boksside {
	padding-top: 64px;
	padding-bottom: 96px;
	display: flex;
	justify-content: center;
}

.boks {
	width: 100%;
	max-width: 680px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 40px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.boks__ikon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--text);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.boks__tekst {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.boks h1 {
	font-size: 28px;
}

.boks__tekst p,
.boks__tekst .innholdstekst {
	font-size: 17px;
	color: var(--text-muted);
}

.boks__tekst strong {
	color: var(--text);
}

.oppsummering {
	margin: 0;
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 12px 16px;
	font-size: 15px;
	padding: 20px;
	background: var(--bg);
	border-radius: var(--radius);
}

.oppsummering dt {
	color: var(--text-muted);
}

.oppsummering dd {
	margin: 0;
	font-weight: 500;
}

.oppsummering dd.etiketter {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.etikett {
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--surface-muted);
	font-size: 13px;
	font-weight: 600;
}

.knapper {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.melding {
	padding: 12px 16px;
	border-radius: var(--radius);
	background: var(--bg);
	font-size: 15px;
	font-weight: 500;
}

/* ---------- Mobil ---------- */

@media (max-width: 760px) {
	:root {
		--gutter: 16px;
	}

	.logo {
		font-size: 26px;
	}

	.site-header__inner {
		gap: 12px 16px;
	}

	.intro,
	.side--sok {
		padding-top: 56px;
	}

	.sokefelt {
		flex-basis: 100%;
		max-width: none;
		order: 3;
	}

	.intro h1,
	.kategorihode h1,
	.smal h1 {
		font-size: 30px;
	}

	.side--sok h1,
	.nyhetsbrev h2,
	.sendt h2 {
		font-size: 26px;
	}

	.boks h1 {
		font-size: 24px;
	}

	/* Karusellen blir sveip med ett kort synlig og det neste stikkende inn.
	   Pilene beholdes på egen linje: telleren til venstre, pilene til høyre. */
	.bla {
		width: 100%;
		justify-content: space-between;
	}

	.bla__tekst {
		margin-right: auto;
	}

	.prikker {
		gap: 2px;
	}

	.prikker button {
		width: 26px;
	}

	.prikker span {
		width: 18px;
	}

	.kort {
		flex-basis: calc(100vw - var(--gutter) * 2 - 40px);
	}

	.filterboks {
		flex-direction: column;
	}

	.felt {
		flex-basis: auto;
	}

	.nedtrekk__panel {
		width: 100%;
		max-width: none;
	}

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

	.boks {
		padding: 24px;
	}

	.oppsummering {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.oppsummering dd {
		margin-bottom: 8px;
	}
}

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