/*
Theme Name: Sange for børn
Theme URI: https://sangeforboern.dk/
Author: Sange for børn
Description: Et varmt, illustreret tema til danske børnesange, godnatsange og sanglege. Sangsider med stor sangtekst, illustration og "Sådan gør I fagterne". Forside med kategorikort, sangliste og A–Å-oversigt.
Version: 1.19.0
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sange-for-born
Tags: blog, one-column, two-columns, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ------------------------------------------------------------------ Fonts */
@font-face { font-family: "Fraunces"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/fraunces-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/fraunces-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/nunito-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("assets/fonts/nunito-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/nunito-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/nunito-sans-latin-700-normal.woff2") format("woff2"); }

/* ------------------------------------------------------------------ Tokens */
:root {
	--bg: #fef7ee;
	--surface: #fffdf9;
	--ink: #1e3328;
	--ink-soft: #3b4c42;
	--muted: #6b746c;
	--accent: #a33f2c;
	--accent-dark: #86321f;
	--line: #e4dccd;
	--cream-dark: #f4e8d4;
	--cream-line: #e8d9bf;
	--cream-light: #f9f0e3;
	--cream-light-line: #efe2cc;
	--yellow: #fce9bb;
	--blue: #c0cde0;
	--green: #e1e4c6;
	--red: #f6d9d2;
	--pink: #f7d9e4;
	--peach: #f6dcc3;
	--lilac: #ddd7ee;
	--fagter: #ebeacd;

	--font-head: "Fraunces", Georgia, "Times New Roman", serif;
	--font-body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

	--wrap: 1120px;
	--gutter: clamp(1rem, 4vw, 2rem);
	--radius: 14px;
	--outer: #f1ede7;
	--frame-border: #e4e0d8;
	--frame-radius: 22px;
	--frame-gap: clamp(.5rem, 1.6vw, 1rem);
	--shadow: 0 1px 0 rgba(30, 51, 40, .04), 0 6px 18px -10px rgba(30, 51, 40, .25);
}

/* ------------------------------------------------------------------ Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--outer);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.015em;
	margin: 0 0 .5em;
	color: var(--ink);
	font-variation-settings: "SOFT" 50;
}

p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

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

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.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; border: 0; padding: 0; margin: -1px;
}
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; color: #fff; }

/* ------------------------------------------------------------------ Page frame
   The whole site sits on a rounded "card", like in the designs. */
.site-frame {
	max-width: 1240px;
	margin: var(--frame-gap) auto;
	background: var(--bg);
	border: 1px solid var(--frame-border);
	border-radius: var(--frame-radius);
	box-shadow: 0 1px 2px rgba(60, 50, 30, .05), 0 10px 30px -12px rgba(60, 50, 30, .18);
	overflow: hidden; /* clips hero art and footer to the rounded corners */
	overflow: clip;
}
@media (max-width: 1280px) { .site-frame { margin-inline: var(--frame-gap); } }
@media (max-width: 600px) {
	:root { --frame-radius: 18px; }
	.site-frame { margin: .5rem; }
}
/* Edge-to-edge in the block editor preview / when printing */
@media print {
	body { background: #fff; color: #000; }
	.site-frame { border: 0; box-shadow: none; margin: 0; border-radius: 0; background: #fff; }
	.site-header .site-nav, .nav-toggle, .header-search, .site-footer, .breadcrumbs, .song-tools, .entry__jump, .entry__listen, .surprise,
	.related, .comments, .skip-link, .entry__img, .toc-wrap, #wpadminbar { display: none !important; }
	.entry__body--toc { display: block; }
	.entry__body--split { display: block; }
	.entry__bar { display: block; background: none; border: 0; padding: 0; margin: 0; }
	.lyrics { font-size: 12pt; }
	.fagter { border: 1px solid #999; background: none; break-inside: avoid; margin-top: 1rem; }
	.verse { break-inside: avoid; }
	a { color: inherit; text-decoration: none; }
}

/* ------------------------------------------------------------------ Header */
.site-header { position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; }

.site-brand__link, .custom-logo-link { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; color: var(--ink); }
.site-brand__link:hover { color: var(--ink); }
.site-brand__bird { width: 74px; height: auto; margin-block: -6px; }
.site-brand__name { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -0.01em; line-height: 1; }
.custom-logo { max-height: 64px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1rem, 3vw, 2.4rem); }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.05rem; padding-block: .35rem; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current-menu-parent > a { border-bottom-color: var(--accent); }
.site-nav .sub-menu { display: none; }

.search-toggle, .nav-toggle { background: none; border: 0; color: var(--ink); cursor: pointer; padding: .4rem; border-radius: 8px; line-height: 0; }
.search-toggle:hover, .nav-toggle:hover { background: rgba(30, 51, 40, .06); }
.nav-toggle { display: none; }
.nav-toggle__close { display: none; }

/* Desktop search: slides down OVER the page (no extra space) */
.site-nav__head, .site-nav__search { display: none; }
.header-search {
	position: absolute; left: 0; right: 0; top: 100%; z-index: 30;
	pointer-events: none; visibility: hidden; transition: visibility 0s linear .2s;
}
.header-search[hidden] { display: block; }
.search-open .header-search { visibility: visible; transition: visibility 0s; }
.header-search__inner { display: flex; justify-content: flex-end; }
.header-search .search-form {
	pointer-events: auto; max-width: 560px; margin-top: .25rem; border-radius: 14px;
	box-shadow: 0 18px 40px -18px rgba(30, 51, 40, .45);
	opacity: 0; transform: translateY(-10px); transition: opacity .2s ease, transform .2s ease;
}
.search-open .header-search .search-form { opacity: 1; transform: translateY(0); }
.search-toggle[aria-expanded="true"] { background: rgba(163, 63, 44, .1); color: var(--accent); }
.nav-backdrop { display: none; }

@media (max-width: 820px) {
	.nav-toggle { display: block; position: relative; z-index: 1002; }
	.site-brand__bird { width: 58px; }
	.search-toggle, .header-search { display: none !important; }

	/* Phone menu: a panel that slides in from the left */
	.site-nav {
		position: fixed; z-index: 1001; top: var(--wp-admin--admin-bar--height, 0px); bottom: 0; left: 0;
		width: min(86vw, 340px); overflow-y: auto; overscroll-behavior: contain;
		display: flex; flex-direction: column; align-items: stretch; gap: .75rem;
		padding: 1rem 1.25rem 2rem; background: var(--surface);
		box-shadow: 12px 0 40px -18px rgba(30, 51, 40, .55);
		transform: translateX(-105%); visibility: hidden;
		transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .3s;
	}
	.nav-open .site-nav { transform: translateX(0); visibility: visible; transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
	.site-nav__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
	.site-nav__title { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; }
	.site-nav__close { background: none; border: 0; color: var(--ink); padding: .4rem; border-radius: 8px; cursor: pointer; line-height: 0; }
	.site-nav__close:hover { background: rgba(30, 51, 40, .06); }
	.site-nav__search { display: block; }
	.site-nav__search .search-form__input { font-size: 1rem; padding-block: .7rem; }
	.site-nav__search .search-form__submit { padding-inline: 1rem; font-size: 1rem; }
	.site-nav ul { flex-direction: column; gap: 0; }
	.site-nav li { border-bottom: 1px solid var(--line); }
	.site-nav a { display: block; padding: .85rem .25rem; border: 0; font-size: 1.15rem; }
	.site-nav .sub-menu { display: block; padding-left: 1rem; }
	.nav-backdrop {
		display: block; position: fixed; inset: 0; z-index: 1000; background: rgba(20, 30, 24, .45);
		opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s;
	}
	.nav-backdrop[hidden] { display: block; }
	.nav-open .nav-backdrop { opacity: 1; visibility: visible; transition: opacity .3s ease, visibility 0s; }
	.nav-open .nav-toggle { visibility: hidden; } /* the panel has its own close button */
	body.nav-open { overflow: hidden; }
}
@media (max-width: 820px) and (prefers-reduced-motion: reduce) { .site-nav, .nav-backdrop { transition: none; } }

/* ------------------------------------------------------------------ Search form */
.search-form { display: flex; align-items: stretch; width: 100%; max-width: 520px; }
.search-form__field {
	flex: 1; min-width: 0; display: flex; align-items: center; gap: .6rem;
	background: var(--surface); border: 1.5px solid #cfc6b6; border-right: 0;
	border-radius: 12px 0 0 12px; padding-inline: 1rem; color: var(--ink);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, .04);
}
.search-form__field svg { flex: none; }
.search-form__input {
	flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1.1rem;
	color: var(--ink); padding-block: .85rem; outline: none;
}
.search-form__input::placeholder { color: #737a73; }
.search-form__field:focus-within { border-color: var(--ink); }
.search-form__submit {
	border: 0; background: var(--accent); color: #fff; font: inherit; font-weight: 700; font-size: 1.1rem;
	padding: 0 1.6rem; border-radius: 0 12px 12px 0; cursor: pointer;
}
.search-form__submit:hover { background: var(--accent-dark); }

/* ------------------------------------------------------------------ Hero */
.hero { overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 0; padding-top: .5rem; }
.hero__text { position: relative; z-index: 2; padding-block: 1.5rem 2rem; }
.hero__title { font-size: clamp(2.6rem, 6.6vw, 5.4rem); line-height: .98; margin-bottom: .3em; white-space: nowrap; }
.hero__lead { font-size: clamp(1.15rem, 1.9vw, 1.5rem); line-height: 1.4; color: var(--ink-soft); max-width: 30ch; margin-bottom: 1.4rem; }
.hero__art { margin-left: -6%; }
.hero__art img { width: 100%; }

@media (max-width: 820px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__text { padding-block: .5rem 1rem; }
	.hero__title { white-space: normal; }
	.hero__art { margin: 0 -1rem; }
}

/* ------------------------------------------------------------------ Category cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-block: .5rem 2.75rem; }
.card {
	position: relative; display: flex; align-items: center; justify-content: space-between; gap: .5rem;
	min-height: 132px; padding: 1rem 1rem 1rem 1.5rem; border-radius: var(--radius);
	color: var(--ink); text-decoration: none; overflow: hidden; box-shadow: var(--shadow);
	transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(30, 51, 40, .4); }
.card--yellow { background: var(--yellow); }
.card--blue { background: var(--blue); }
.card--green { background: var(--green); }
.card--red { background: var(--red); }
.card--pink { background: var(--pink); }
.card--peach { background: var(--peach); }
.card--lilac { background: var(--lilac); }
.card__title { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 2.1rem); line-height: 1.08; letter-spacing: -0.01em; }
.card__img { width: 110px; height: auto; flex: none; margin-block: -.5rem; }

@media (max-width: 820px) {
	.cards { grid-template-columns: 1fr; gap: .75rem; }
	.card { min-height: 84px; padding-block: .5rem; }
	.card__img { width: 84px; }
}

/* ------------------------------------------------------------------ Sections & song list */
.section { margin-bottom: 3rem; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 0; }
.section__title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: .35em; }
.section__more { display: inline-flex; align-items: center; gap: .3rem; font-family: var(--font-head); font-weight: 600; font-size: 1.35rem; text-decoration: underline; }
.section__more .icon-arrow { width: 20px; }

.song-list { list-style: none; margin: 0 0 1.5rem; padding: 0; border-bottom: 1px solid var(--line); }
.song-list__item { border-top: 1px solid var(--line); }
.song-list__item:first-child { border-top: 0; }
.song-list__link {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: .7rem 1.25rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.2rem;
	border-radius: 8px; transition: background .15s ease;
}
.song-list__link:hover { color: var(--ink); background: rgba(251, 235, 196, .55); }
.song-list__link:hover .icon-arrow { transform: translateX(3px); color: var(--accent); }
.icon-arrow { flex: none; transition: transform .15s ease; }

.song-list--2col { column-count: 2; column-gap: 2.5rem; border-bottom: 0; }
.song-list--2col .song-list__item { break-inside: avoid; border-top: 0; border-bottom: 1px solid var(--line); }
@media (max-width: 700px) {
	.song-list--2col { column-count: 1; }
	.song-list__link { padding-inline: .4rem; font-size: 1.05rem; }
}

.empty { font-size: 1.1rem; color: var(--ink-soft); }

/* ------------------------------------------------------------------ Intro */
.intro { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1.5rem; margin-bottom: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.intro__title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-top: .5em; }
.intro__text p { font-size: 1.15rem; color: var(--ink-soft); max-width: 70ch; }
.intro__art { width: 200px; }
@media (max-width: 700px) { .intro { grid-template-columns: 1fr; } .intro__art { width: 150px; justify-self: end; margin-top: -2.5rem; } }

/* ------------------------------------------------------------------ Breadcrumbs */
.breadcrumbs { font-size: 1.05rem; margin-bottom: 1rem; color: var(--ink); }
.breadcrumbs a { color: var(--accent); }
.breadcrumbs__sep { margin-inline: .35rem; color: var(--muted); }

/* ------------------------------------------------------------------ Single song / article */
.entry { padding-block: 1rem 3rem; }
.entry__header { margin-bottom: 1.25rem; }
.entry__title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.1; margin-bottom: .3em; }
.entry__subtitle { font-size: 1.15rem; color: var(--ink-soft); margin-bottom: .8rem; }
.entry__meta { color: var(--muted); }
.entry__jump { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; font-size: 1.05rem; }
.entry__jump span { color: var(--ink); }

.entry__body--split {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	grid-template-areas: "content side";
	column-gap: clamp(1.5rem, 4vw, 3.5rem);
	row-gap: 1rem;
	align-items: start;
}
.entry__body--split .entry__content { grid-area: content; }
.entry__body--split .entry__side { grid-area: side; }
.entry--song .entry__section-title { margin-top: 0; }
.entry__section-title { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin-bottom: .7em; }

.lyrics { font-size: calc(1.125rem * var(--lyrics-scale, 1)); line-height: 1.75; counter-reset: verse; }
.lyrics p:not(.verse) { color: var(--ink-soft); }
.lyrics .verse { counter-increment: verse; position: relative; padding-left: 2.2rem; }
.lyrics .verse::before {
	content: counter(verse) ".";
	position: absolute; left: 0; top: 0;
	font-family: var(--font-head); font-weight: 700; color: var(--accent);
}

/* Videos and embeds: always full width, 16:9 – also cookie-consent placeholders */
.entry iframe, .entry__video iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; }
.entry .wp-block-embed { margin: 1.5em 0; }
.entry .wp-block-embed__wrapper { position: relative; }
.entry .wp-has-aspect-ratio .wp-block-embed__wrapper::before { display: none; }
.entry .wp-has-aspect-ratio iframe { position: static; }
.entry__video { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: #1e3328; }
.entry__video > *, .entry__video .wp-block-embed { margin: 0; }
.entry__video [class*="placeholder"], .entry__video [class*="blocked"] { aspect-ratio: 16 / 9; width: 100% !important; height: auto !important; min-height: 0 !important; }
.lyrics p { margin-bottom: 1.2em; }
.lyrics h2, .lyrics h3 { font-size: 1.1em; margin-top: 1.2em; }

.entry__side { display: flex; flex-direction: column; gap: 1rem; }
.entry__img img, .entry__hero-img img { width: 100%; border-radius: 18px; box-shadow: var(--shadow); }
/* Wide banner picture on articles, so tall photos don't fill the whole screen */
.entry__hero-img img { aspect-ratio: 21 / 9; height: auto; max-height: 520px; object-fit: cover; object-position: center 30%; }
@media (max-width: 700px) { .entry__hero-img img { aspect-ratio: 16 / 10; } }
.entry__hero-img { margin: 0 0 2rem; }
.entry__img { margin: 0; }

.fagter { background: var(--fagter); border-radius: 18px; padding: 1.4rem 1.75rem 1.5rem; scroll-margin-top: 1.5rem; }
.fagter__title { font-size: clamp(1.3rem, 2vw, 1.6rem); margin-bottom: .6rem; }
.fagter__list { list-style: none; counter-reset: fagter; margin: 0; padding: 0; display: grid; gap: .6rem; }
.fagter__list li { counter-increment: fagter; display: flex; align-items: center; gap: .9rem; font-size: 1.1rem; }
.fagter__list li::before {
	content: counter(fagter); flex: none; display: grid; place-items: center;
	width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--surface); border: 1.5px solid #cfd0a8;
	font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
}

@media (max-width: 820px) {
	.entry__body--split { grid-template-columns: 1fr; grid-template-areas: "content" "side"; }
	/* Mobile: same order as desktop – picture, fagter, video, surprise box */
}

.prose { font-size: 1.125rem; max-width: 72ch; }
.prose h2 { font-size: 1.8rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.4rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.5em 0; padding: .5em 1.25em; border-left: 4px solid var(--yellow); background: var(--surface); border-radius: 0 10px 10px 0; }
.prose img, .lyrics img { border-radius: 12px; }
.prose figure, .lyrics figure { margin: 1.5em 0; }
.prose figcaption, .wp-caption-text { font-size: .9rem; color: var(--muted); margin-top: .4em; }
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .5em; text-align: left; }

.entry--article .entry__header, .entry--article .entry__content { max-width: 760px; }
/* Blog articles: title uses the full width */
.entry--article.type-blog .entry__header, .entry--article.category-blog .entry__header { max-width: none; }
.entry--article.type-blog .entry__title, .entry--article.category-blog .entry__title { max-width: none; }
/* Normal pages (e.g. Cookie- & Privatlivspolitik) use the full width */
.entry--article.type-page .entry__header, .entry--article.type-page .entry__content, .entry--article.type-page .prose { max-width: none; }

/* Credits (Tekst / Melodi) */
.entry__credits { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; font-weight: 700; color: var(--ink); }
.entry__credits li { display: inline-flex; align-items: center; gap: .4rem; }
.entry__credits svg { color: var(--ink-soft); }

/* Bar under the title: Tekst/Melodi + jump links on the left, tools on the right */
.entry__bar {
	--bar-pad: 1.1rem;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); /* same columns as the lyrics + picture below */
	column-gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: center;
	margin: .6rem calc(-1 * var(--bar-pad)) 0;
	padding: .6rem var(--bar-pad);
	background: var(--cream-light); border: 1px solid var(--cream-light-line); border-radius: 14px;
}
.entry__bar .song-tools { margin-left: 0; width: 100%; justify-content: space-between; }
@media (max-width: 820px) {
	.entry__bar { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; margin-inline: 0; }
}
.entry__bar-info { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.75rem; }
.entry__bar .entry__credits { margin: 0; }
.entry__bar .entry__jump { margin: 0; font-size: 1rem; }
.song-tools { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.song-tools__size { display: flex; align-items: center; gap: .35rem; }
.song-tools__label { font-size: .9rem; color: var(--ink-soft); margin-right: .25rem; }
.tool-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 1px; min-width: 2.6rem; height: 2rem; padding: 0 .55rem;
	border: 1.5px solid #e2c9c0; border-radius: 8px; background: var(--surface); color: var(--accent);
	font: 700 .95rem/1 var(--font-body); cursor: pointer;
}
.tool-btn:hover:not(:disabled) { border-color: var(--accent); background: #fff; }
.tool-btn:disabled { opacity: .4; cursor: default; }
/* ⓘ help next to "Tekststørrelse" */
.tip { position: relative; display: inline-flex; margin-right: .3rem; }
.tip__btn { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-soft); cursor: help; }
.tip__btn:hover, .tip__btn[aria-expanded="true"] { color: var(--accent); background: rgba(163, 63, 44, .08); }
.tip__box {
	position: absolute; z-index: 30; bottom: calc(100% + .55rem); left: 50%; transform: translate(-50%, 4px);
	width: max-content; max-width: min(350px, 85vw); padding: .65rem .8rem; border-radius: 10px;
	background: var(--surface); color: var(--ink); border: 1px solid var(--cream-line);
	box-shadow: 0 10px 28px -10px rgba(30, 51, 40, .35); font-size: .88rem; line-height: 1.45;
	opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.tip__box::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -7px; border: 7px solid transparent; border-top-color: var(--surface); }
.tip:hover .tip__box, .tip__btn:focus-visible + .tip__box, .tip__btn[aria-expanded="true"] + .tip__box { opacity: 1; visibility: visible; transform: translate(-50%, 0); pointer-events: auto; }
.tip__title { display: block; font-family: var(--font-head); font-size: 1rem; margin-bottom: .15rem; }
.tip__text, .tip__keys { display: block; }
.tip__keys { margin-top: .3rem; font-weight: 700; color: var(--accent); }
@media (max-width: 600px) { .tip__box { left: 0; transform: translate(0, 4px); } .tip:hover .tip__box, .tip__btn[aria-expanded="true"] + .tip__box { transform: none; } .tip__box::after { left: .8rem; margin-left: 0; } }

.song-tools__actions { position: relative; display: flex; gap: .5rem; }
.tool-round {
	display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%;
	border: 1.5px solid #e2c9c0; background: var(--surface); color: var(--accent); cursor: pointer;
}
.tool-round:hover { border-color: var(--accent); background: #fff; }
/* Share menu */
.share { position: relative; }
.share__btn[aria-expanded="true"] { border-color: var(--accent); background: #fff; }
.share__menu {
	position: absolute; z-index: 40; top: calc(100% + .5rem); right: 0; min-width: 190px; margin: 0; padding: .4rem; list-style: none;
	background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 36px -14px rgba(30, 51, 40, .4);
}
.share__menu[hidden] { display: none; }
.share__item {
	display: flex; align-items: center; gap: .7rem; width: 100%; padding: .6rem .8rem; border: 0; border-radius: 10px; background: none;
	color: var(--ink); font: inherit; font-weight: 600; font-size: .98rem; text-decoration: none; text-align: left; cursor: pointer;
}
.share__item:hover, .share__item:focus-visible { background: var(--cream-light); color: var(--accent); }
.share__item svg { flex: none; color: var(--ink-soft); }
.share__item:hover svg { color: currentColor; }
.share__item--facebook svg { color: #1877f2; }
.share__item--whatsapp svg { color: #1fa855; }
.song-tools__toast {
	position: absolute; right: 0; top: calc(100% + .4rem); white-space: nowrap; font-size: .85rem;
	background: var(--ink); color: #fff; padding: .3rem .6rem; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.song-tools__toast.is-visible { opacity: 1; }
@media (max-width: 600px) {
	.entry__bar { padding: .7rem .8rem; }
	.song-tools { width: 100%; justify-content: space-between; margin-left: 0; }
	.song-tools__label { display: none; }
}

/* "Hør sangen" + video gate */
.entry__listen-title { font-size: clamp(1.3rem, 2vw, 1.6rem); margin: .75rem 0 .6rem; }
.entry__video { position: relative; }
.entry__video.is-blocked { aspect-ratio: 16 / 9; }
.entry__video.is-blocked > :not(.video-gate) { visibility: hidden; }
.video-gate {
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
	width: 100%; padding: 1rem 1.5rem; border: 0; border-radius: 14px; cursor: pointer; text-align: center; color: #fff; font: inherit;
	background: linear-gradient(rgba(30, 51, 40, .68), rgba(30, 51, 40, .82)), var(--poster, none) center / cover, var(--ink);
}
.video-gate[hidden] { display: none; }
.video-gate__play {
	display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--accent); color: #fff;
	box-shadow: 0 6px 20px -6px rgba(0, 0, 0, .5); margin-bottom: .35rem; transition: transform .15s ease;
}
.video-gate__play svg { margin-left: 4px; }
.video-gate:hover .video-gate__play { transform: scale(1.06); }
.video-gate__title { font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; }
.video-gate__text { font-size: .95rem; max-width: 32ch; opacity: .92; }

/* "Hvad skal vi synge nu?" */
.surprise {
	display: flex; align-items: center; gap: .5rem; margin-top: .5rem; padding: 1.25rem 1rem 1.25rem 1.4rem;
	background: var(--yellow); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden;
}
.surprise__text { flex: 1; }
.surprise__title { font-size: clamp(1.25rem, 1.8vw, 1.5rem); color: var(--accent); margin-bottom: .2rem; }
.surprise__lead { color: var(--ink-soft); margin-bottom: .9rem; }
.surprise__btn {
	display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700;
	padding: .65rem 1.2rem; border-radius: 10px; box-shadow: 0 4px 12px -6px rgba(134, 50, 31, .7);
}
.surprise__btn:hover { background: var(--accent-dark); color: #fff; }
.surprise__img { width: 96px; flex: none; align-self: flex-end; margin-bottom: -.75rem; }
@media (max-width: 480px) { .surprise { padding-right: .5rem; } .surprise__img { width: 64px; } .surprise__btn { padding: .6rem .9rem; font-size: .95rem; } }

/* "Flere sanglege" – one row of six picture cards (like "Syng videre") */
.related { margin-top: 3rem; padding: 1.25rem 1.25rem 1.4rem; background: var(--cream-dark); border: 1px solid var(--cream-line); border-radius: 18px; }
.related__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin-bottom: 1rem; }
.related__title { font-size: clamp(1.35rem, 2vw, 1.6rem); margin: 0; color: var(--accent); }
.related__sub { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.related__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.song-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.song-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px -14px rgba(30, 51, 40, .45); }
.song-card__link { display: block; color: var(--ink); text-decoration: none; }
.song-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card is clickable */
.song-card__link:hover { color: var(--accent); }
.song-card__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.song-card__img--empty { display: grid; place-items: center; }
.song-card__img--empty img { width: 34%; height: auto; }
.song-card__title {
	margin: .8rem .85rem .9rem; font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.3;
	/* Max two lines, then "…" */
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
	min-height: 2.6em; /* keeps all cards the same height */
	overflow-wrap: anywhere;
}

/* Smaller screens: the row scrolls sideways */
@media (max-width: 1100px) {
	.related__row {
		grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(200px, 30%);
		overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .6rem; margin-inline: -.25rem; padding-inline: .25rem;
		scrollbar-width: thin;
	}
	.song-card { scroll-snap-align: start; }
}
@media (max-width: 600px) {
	.related { padding-inline: 1rem; }
	/* Phones: only 3 songs, side by side without scrolling */
	.related__row { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; gap: .6rem; padding-bottom: 0; }
	.song-card:nth-child(n+4) { display: none; }
	.song-card__title { font-size: .85rem; margin: .55rem .55rem .65rem; }
}

/* ------------------------------------------------------------------ Table of contents (blog articles) */
.entry__body--toc { display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
.entry__body--toc .entry__content { max-width: none; }
.entry__body--toc .prose { max-width: 74ch; }
.toc-wrap { position: sticky; top: 1.5rem; }
.admin-bar .toc-wrap { top: calc(32px + 1.5rem); }
.toc { background: var(--cream-light); border: 1px solid var(--cream-light-line); border-radius: 18px; padding: 1.25rem 1.4rem 1.1rem; box-shadow: var(--shadow); }
.toc__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: .9rem; margin-bottom: .6rem; border-bottom: 2px solid var(--cream-line); list-style: none; cursor: default; }
.toc__head::-webkit-details-marker { display: none; }
.toc__label { font-weight: 800; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.toc__count { font-size: .85rem; font-weight: 700; color: var(--muted); }
.toc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; max-height: calc(100vh - 12rem); overflow-y: auto; }
.toc__link { display: flex; gap: .75rem; padding: .5rem .6rem; border-radius: 10px; color: var(--ink); text-decoration: none; line-height: 1.35; border-left: 3px solid transparent; transition: background .15s ease, color .15s ease; }
.toc__link:hover { background: rgba(255, 255, 255, .7); color: var(--accent); }
.toc__link.is-active { background: var(--surface); color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.toc__num { flex: none; font-weight: 800; font-size: .85rem; color: var(--accent); padding-top: .12em; font-variant-numeric: tabular-nums; }
.prose h2[id] { scroll-margin-top: 1.5rem; }
.admin-bar .prose h2[id] { scroll-margin-top: calc(32px + 1.5rem); }
@media (max-width: 900px) {
	.entry__body--toc { grid-template-columns: minmax(0, 1fr); }
	.toc-wrap { position: static; }
	.toc { padding: 1rem 1.1rem; }
	.toc__head { cursor: pointer; margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
	.toc[open] .toc__head { padding-bottom: .8rem; margin-bottom: .5rem; border-bottom: 2px solid var(--cream-line); }
	.toc__head::after { content: "▾"; color: var(--accent); margin-left: auto; padding-left: .5rem; transition: transform .15s; }
	.toc[open] .toc__head::after { transform: rotate(180deg); }
	.toc__count { margin-left: auto; }
	.toc__list { max-height: none; }
}

/* ------------------------------------------------------------------ Blog page */
.blog-page { padding-bottom: 2rem; }
.blog-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; padding: 1rem 0 1.5rem; }
.blog-hero__title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .2em; }
.blog-hero__lead, .blog-hero__lead p { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; margin: 0; }
.blog-hero__img { width: 170px; flex: none; }
@media (max-width: 700px) { .blog-hero__img { display: none; } }

.blog-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -16px rgba(30, 51, 40, .45); }
.blog-card__media { display: block; }
.blog-card__img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.blog-card__img--empty { display: grid; place-items: center; background: var(--yellow); }
.blog-card__img--empty img { width: 26%; height: auto; }
.blog-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.25rem 1.3rem; }
.blog-card__meta { display: flex; align-items: center; gap: .6rem; margin: 0 0 .45rem; font-size: .88rem; color: var(--muted); }
.blog-card__badge { background: var(--accent); color: #fff; font-weight: 700; font-size: .78rem; padding: .15rem .55rem; border-radius: 999px; }
.blog-card__title { font-size: 1.25rem; line-height: 1.25; margin: 0 0 .5rem; }
.blog-card__title a { color: var(--ink); text-decoration: none; }
.blog-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.blog-card:hover .blog-card__title a { color: var(--accent); }
.blog-card__excerpt { color: var(--ink-soft); margin: 0 0 1rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.blog-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--accent); }
.blog-card__more .icon-arrow { width: 18px; height: 18px; }
.blog-card:hover .blog-card__more .icon-arrow { transform: translateX(3px); }

.blog-card--featured { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); margin-bottom: 1.75rem; background: var(--cream-light); border: 1px solid var(--cream-light-line); }
.blog-card--featured .blog-card__img { height: 100%; aspect-ratio: auto; min-height: 300px; }
.blog-card--featured .blog-card__body { justify-content: center; padding: 2rem 2.25rem; }
.blog-card--featured .blog-card__title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.blog-card--featured .blog-card__excerpt { -webkit-line-clamp: 4; font-size: 1.08rem; }
@media (max-width: 820px) {
	.blog-card--featured { grid-template-columns: 1fr; }
	.blog-card--featured .blog-card__img { aspect-ratio: 16 / 10; min-height: 0; }
	.blog-card--featured .blog-card__body { padding: 1.25rem 1.25rem 1.4rem; }
}
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
@media (max-width: 1000px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ Contact page */
.contact-page { padding-bottom: 3rem; }
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; margin-top: .5rem; }
.contact__intro { position: relative; background: var(--cream-light); border: 1px solid var(--cream-light-line); border-radius: 20px; padding: 2rem 2rem 1.75rem; }
.contact__bird { width: 90px; margin: -.5rem 0 .5rem -.4rem; }
.contact__title { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .3em; }
.contact__lead { font-size: 1.1rem; color: var(--ink-soft); }
.contact__points { list-style: none; margin: 1.25rem 0 1.5rem; padding: 0; display: grid; gap: .7rem; }
.contact__points li { display: flex; align-items: center; gap: .75rem; font-weight: 600; }
.contact__points svg { flex: none; width: 38px; height: 38px; padding: 8px; border-radius: 50%; background: var(--surface); color: var(--accent); box-shadow: var(--shadow); }
.contact__search { border-top: 1px solid var(--cream-line); padding-top: 1.25rem; }
.contact__search-title { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; margin-bottom: .6rem; }
.contact__search .search-form__input { font-size: 1rem; padding-block: .7rem; }
.contact__search .search-form__submit { padding-inline: 1.1rem; font-size: 1rem; }
.contact__form-title { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin: .4rem 0 .9rem; }
.form-card { background: var(--surface); border-radius: 20px; box-shadow: 0 1px 0 rgba(30, 51, 40, .04), 0 18px 40px -22px rgba(30, 51, 40, .35); padding: clamp(1.25rem, 3vw, 2.25rem); border: 1px solid var(--line); }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } .contact__intro { padding: 1.5rem; } }

/* Forms (Contact Form 7 and plain WordPress forms) */
.form-card p, .wpcf7-form p { margin: 0 0 1.1rem; }
.form-card label, .wpcf7-form label { display: block; font-weight: 700; color: var(--ink); font-size: 1rem; }
.form-card br { display: none; } /* CF7 puts <br> between label and field */
.form-card input[type="text"], .form-card input[type="email"], .form-card input[type="tel"], .form-card input[type="url"], .form-card input[type="number"],
.form-card textarea, .form-card select,
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form input[type="tel"], .wpcf7-form textarea {
	display: block; width: 100%; margin-top: .4rem; font: inherit; font-weight: 400; font-size: 1.05rem; color: var(--ink);
	background: var(--bg); border: 1.5px solid #d9cfbf; border-radius: 12px; padding: .8rem 1rem;
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.form-card textarea, .wpcf7-form textarea { min-height: 170px; resize: vertical; }
.form-card input:focus, .form-card textarea:focus, .form-card select:focus,
.wpcf7-form input:focus, .wpcf7-form textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(30, 51, 40, .08); }
.form-card .wpcf7-form-control-wrap { display: block; }
.form-card input[type="submit"], .form-card button[type="submit"], .wpcf7-form input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; min-width: 160px; margin-top: .25rem;
	background: var(--accent); color: #fff; border: 0; border-radius: 12px; padding: .9rem 1.8rem;
	font: inherit; font-weight: 700; font-size: 1.05rem; cursor: pointer; box-shadow: 0 6px 16px -8px rgba(134, 50, 31, .7);
	transition: background .15s ease, transform .15s ease;
}
.form-card input[type="submit"]:hover, .wpcf7-form input[type="submit"]:hover { background: var(--accent-dark); transform: translateY(-1px); }
.wpcf7-not-valid-tip { color: var(--accent); font-size: .9rem; margin-top: .3rem; }
.wpcf7 form .wpcf7-response-output { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: 12px; border-width: 1.5px; }
.wpcf7-spinner { vertical-align: middle; }
.form-card .g-recaptcha, .form-card .wpcf7-recaptcha { margin-bottom: 1.1rem; }

/* ------------------------------------------------------------------ Archives */
.archive-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0 1.5rem; margin-bottom: 1.5rem; }
.archive-header--yellow, .archive-header--blue, .archive-header--green, .archive-header--red, .archive-header--pink, .archive-header--peach, .archive-header--lilac { padding: 1.5rem 1.75rem; border-radius: var(--radius); margin-top: .5rem; }
.archive-header--red { background: var(--red); }
.archive-header--pink { background: var(--pink); }
.archive-header--peach { background: var(--peach); }
.archive-header--lilac { background: var(--lilac); }
.archive-header--yellow { background: var(--yellow); }
.archive-header--blue { background: var(--blue); }
.archive-header--green { background: var(--green); }
.archive-header__title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: .15em; }
.archive-header__title span { color: var(--accent); }
.archive-header__desc { font-size: 1.15rem; color: var(--ink-soft); max-width: 65ch; }
.archive-header__desc p:last-child { margin-bottom: 0; }
.archive-header__img { width: 120px; flex: none; }
.archive-header__search { margin-top: 1rem; }
@media (max-width: 600px) { .archive-header__img { width: 80px; } }

/* Blog grid */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.75rem; margin-bottom: 2rem; }
.post-card { background: var(--surface); border-radius: var(--radius); padding: 1rem 1rem 1.25rem; box-shadow: var(--shadow); }
.post-card__link { color: var(--ink); text-decoration: none; }
.post-card__link:hover { color: var(--accent); }
.post-card__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; margin-bottom: .9rem; }
.post-card__title { font-size: 1.4rem; margin-bottom: .4rem; }
.post-card__excerpt { color: var(--ink-soft); margin: 0; }

/* A–Å */
.az-bar { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 2rem; position: sticky; top: 0; z-index: 5; background: var(--bg); padding-block: .6rem; }
.az-bar a, .az-bar span {
	display: grid; place-items: center; min-width: 2.4rem; height: 2.4rem; border-radius: 8px;
	font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; text-decoration: none;
}
.az-bar a { background: var(--yellow); color: var(--ink); }
.az-bar a:hover { background: var(--accent); color: #fff; }
.az-bar span { color: #c3bcae; }
.az-group { margin-bottom: 2rem; scroll-margin-top: 4.5rem; }
.az-group__letter { font-size: 2.4rem; color: var(--accent); margin-bottom: .2rem; }
.az-group .song-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.5rem; border-bottom: 0; }
.az-group .song-list__item { break-inside: avoid; border-top: 0; border-bottom: 1px solid var(--line); }
@media (max-width: 700px) { .az-group .song-list { grid-template-columns: 1fr; } }

/* Pagination */
.pagination { margin-block: 1rem 3rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 2.6rem; height: 2.6rem; padding-inline: .8rem;
	border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); font-weight: 700;
}
.pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }

/* 404 */
.notfound { text-align: center; padding-block: 3rem 5rem; }
.notfound img { margin: 0 auto 1rem; width: 120px; }
.notfound .search-form { margin: 1.5rem auto 0; }

/* Comments */
.comments { margin-top: 3rem; max-width: 760px; }
.comments__list { list-style: none; padding: 0; }
.comment-body { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea {
	width: 100%; font: inherit; padding: .7rem .9rem; border: 1.5px solid #cfc6b6; border-radius: 10px; background: var(--surface);
}
.comment-form .submit, .wp-block-button__link {
	background: var(--accent); color: #fff; border: 0; border-radius: 10px; padding: .75rem 1.4rem; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
}

/* ------------------------------------------------------------------ Footer */
.site-footer { margin-top: 2rem; background: var(--surface); border-top: 1px solid var(--line); }
.site-footer__inner {
	display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(0, .8fr); gap: 2rem 3rem;
	padding-block: 2.5rem 1.75rem; align-items: start;
}
.site-footer__brand { max-width: 380px; }
.site-footer__text { color: var(--ink-soft); margin-top: .6rem; }
.footer-col__title { font-size: 1.15rem; margin: .35rem 0 .8rem; color: var(--accent); }
.footer-cats, .footer-nav ul, .footer-widget ul { list-style: none; margin: 0; padding: 0; }
.footer-cats { display: grid; grid-template-columns: repeat(2, max-content); gap: .55rem 2.25rem; }
.footer-cats a { white-space: nowrap; } /* "Børnesange med akkorder" stays on one line */
@media (max-width: 420px) { .footer-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; } .footer-cats a { white-space: normal; } }
.footer-nav ul, .footer-widget ul { display: grid; gap: .55rem; }
.footer-cats a, .footer-nav a, .footer-widget a { color: var(--ink); font-weight: 600; text-decoration: none; }
.footer-cats a:hover, .footer-nav a:hover, .footer-widget a:hover { color: var(--accent); text-decoration: underline; }
.footer-widget__title { font-size: 1.15rem; }
.site-footer__widgets { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 2rem; }
@media (max-width: 860px) {
	.site-footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
	.site-footer__inner { grid-template-columns: minmax(0, 1fr); }
}
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 2rem; border-top: 1px solid var(--line); padding-block: 1rem; font-size: .9rem; color: var(--muted); }
.site-footer__bottom p { margin: 0; }
.site-footer__owner { text-align: right; }
.site-footer__bottom .sep { color: var(--accent); margin-inline: .35rem; }
@media (max-width: 700px) { .site-footer__owner { text-align: left; } }

/* ------------------------------------------------------------------ WP core classes */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption { max-width: 100%; }
.sticky, .bypostauthor, .gallery-caption { /* required by theme check */ }
.has-ink-color { color: var(--ink); } .has-accent-color { color: var(--accent); }
.has-cream-background-color { background-color: var(--bg); } .has-yellow-background-color { background-color: var(--yellow); }
.has-blue-background-color { background-color: var(--blue); } .has-green-background-color { background-color: var(--green); }
