/*
Theme Name: Valutaradar
Theme URI: https://busekistmedia.dk/
Author: Busekist Media
Description: Valutaradar – valutaomregner med egne URL'er pr. valutapar og beløb (/valuta/dkk/eur/?amount=105), populære beløb, kursgraf og omregningstabeller. Kurserne hentes automatisk fra Den Europæiske Centralbank. Design i samme stil som Advokatindeks (Manrope, mørkegrøn).
Version: 1.0.3
Requires at least: 6.3
Tested up to: 6.8
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: valutaradar
*/

/* ------------------------------------------------------------------
   Skrifttype (Manrope, SIL Open Font License – hostet lokalt)
------------------------------------------------------------------ */
@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-display: swap;
	font-weight: 200 800;
	src: url("assets/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-display: swap;
	font-weight: 200 800;
	src: url("assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------------
   Variabler
------------------------------------------------------------------ */
:root {
	--c-primary: #084c35;
	--c-primary-dark: #063b29;
	--c-tint: #eff5f2;
	--c-tint-2: #f4f8f6;
	--c-chip: #e1f2e8;
	--c-border: #d9e0dc;
	--c-text: #16261f;
	--c-muted: #656f69;
	--c-down: #b42318;
	--c-down-bg: #fdecea;
	--c-white: #fff;
	--radius: 6px;
	--shadow: 0 1px 2px rgba(22, 38, 31, 0.05);
	--shadow-hover: 0 10px 28px -12px rgba(8, 76, 53, 0.28);
	--container: 1152px;
	--gutter: 24px;
	--font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ------------------------------------------------------------------
   Grundlæggende
------------------------------------------------------------------ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	background: var(--c-white);
	color: var(--c-text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-variant-numeric: tabular-nums;
}

img,
svg,
iframe {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

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

a:hover {
	color: var(--c-primary-dark);
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--c-text);
}

p {
	margin: 0;
}

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

:focus-visible {
	outline: 2px solid var(--c-primary);
	outline-offset: 2px;
}

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

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

.skip-link {
	position: absolute;
	left: -9999px;
	top: 8px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--c-primary);
	color: #fff;
	border-radius: var(--radius);
}

.skip-link:focus {
	left: 8px;
	color: #fff;
}

.icon {
	flex: none;
}

/* ------------------------------------------------------------------
   Knapper og links
------------------------------------------------------------------ */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 46px;
	padding: 0 22px;
	border: 1.5px solid transparent;
	border-radius: var(--radius);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn .icon {
	transition: transform 0.18s ease;
}

.btn:hover .icon-arrow-right {
	transform: translateX(3px);
}

.btn-primary {
	background: var(--c-primary);
	color: #fff;
}

.btn-primary:hover {
	background: var(--c-primary-dark);
	color: #fff;
}

.btn-outline {
	border-color: var(--c-primary);
	background: #fff;
	color: var(--c-primary);
}

.btn-outline:hover {
	background: var(--c-primary);
	color: #fff;
}

.btn-ghost {
	border-color: var(--c-border);
	background: #fff;
	color: var(--c-text);
	box-shadow: 0 1px 2px rgba(22, 38, 31, 0.08);
}

.btn-ghost:hover {
	border-color: var(--c-primary);
	color: var(--c-primary);
}

.btn-sm {
	min-height: 36px;
	padding: 0 14px;
	font-size: 14px;
	gap: 6px;
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-weight: 600;
	font-size: 16px;
	color: var(--c-primary);
	white-space: nowrap;
}

.text-link .icon {
	transition: transform 0.18s ease;
}

.text-link:hover .icon {
	transform: translateX(3px);
}

.text-link-sm {
	gap: 8px;
	font-size: 14.5px;
}

/* Overlinje */
.eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.2em;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--c-primary);
}

.eyebrow::before {
	content: "";
	flex: none;
	width: 32px;
	height: 1.5px;
	background: currentColor;
}

.eyebrow-light {
	color: rgba(255, 255, 255, 0.92);
}

/* ------------------------------------------------------------------
   Flag
------------------------------------------------------------------ */
.flag {
	flex: none;
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(22, 38, 31, 0.1);
	background: var(--c-tint);
	object-fit: cover;
}

.flag-pair {
	display: inline-flex;
	align-items: center;
	flex: none;
}

.flag-stack {
	margin-left: -9px;
	box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(22, 38, 31, 0.08);
}

.flag-pair-lg .flag-stack {
	margin-left: -14px;
	box-shadow: 0 0 0 3px var(--c-tint), 0 0 0 4px rgba(22, 38, 31, 0.08);
}

/* ------------------------------------------------------------------
   Header
------------------------------------------------------------------ */
.site-header {
	position: relative;
	z-index: 20;
	background: #fff;
	border-bottom: 1px solid var(--c-border);
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 32px;
	min-height: 84px;
}

.site-logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--c-primary);
	font-size: 27px;
	line-height: 1;
	letter-spacing: -0.02em;
}

.site-logo:hover {
	color: var(--c-primary);
}

.logo-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: var(--c-primary);
	color: #fff;
	flex: none;
}

.site-logo .logo-text {
	font-weight: 400;
}

.site-logo strong {
	font-weight: 800;
}

.custom-logo-link img {
	max-height: 48px;
	width: auto;
}

.main-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.nav-list {
	display: flex;
	align-items: center;
	gap: 34px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-list a {
	display: block;
	padding: 6px 0;
	font-size: 16px;
	font-weight: 500;
	color: var(--c-text);
	transition: color 0.15s ease;
}

.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a {
	color: var(--c-primary);
}

.nav-cta {
	display: none;
}

.header-cta {
	min-height: 48px;
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-left: auto;
	padding: 0;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: #fff;
	color: var(--c-primary);
	cursor: pointer;
}

.nav-toggle-close {
	display: none;
}

.nav-open .nav-toggle-open {
	display: none;
}

.nav-open .nav-toggle-close {
	display: block;
}

/* ------------------------------------------------------------------
   Forside – hero
------------------------------------------------------------------ */
.hero {
	position: relative;
	overflow: hidden;
	padding: 72px 0 64px;
	background: radial-gradient(120% 140% at 85% 20%, #1d6b51 0%, #0b4a35 45%, #062d20 100%);
	color: #fff;
	isolation: isolate;
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(6, 30, 22, 0.45) 0%, rgba(6, 30, 22, 0) 70%);
}

.hero::before {
	content: "";
	position: absolute;
	right: -120px;
	top: -140px;
	z-index: -1;
	width: 560px;
	height: 560px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.025), 0 0 0 140px rgba(255, 255, 255, 0.02);
}

.hero .eyebrow {
	margin-bottom: 26px;
}

.hero-title {
	max-width: 760px;
	font-size: clamp(2.4rem, 5vw, 3.7rem);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.025em;
	color: #fff;
}

.hero-lead {
	max-width: 600px;
	margin-top: 22px;
	font-size: 18.5px;
	line-height: 1.55;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.92);
}

.hero-converter {
	max-width: 980px;
	margin-top: 36px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 18px 48px -18px rgba(0, 0, 0, 0.45);
	color: var(--c-text);
	overflow: hidden;
}

.popular {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 22px;
	margin-top: 22px;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.8);
}

.popular a {
	color: rgba(255, 255, 255, 0.92);
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.5);
	text-underline-offset: 6px;
	text-decoration-thickness: 1px;
}

.popular a:hover {
	color: #fff;
	text-decoration-color: #fff;
}

/* ------------------------------------------------------------------
   Omregneren
------------------------------------------------------------------ */
.converter-fields {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.15fr) 46px minmax(0, 1.15fr);
	align-items: end;
	gap: 12px;
}

.converter-hero .converter-fields {
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.15fr) 46px minmax(0, 1.15fr) auto;
	padding: 14px;
}

.conv-field {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 8px 14px 6px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.conv-field:focus-within {
	border-color: var(--c-primary);
	box-shadow: 0 0 0 3px rgba(8, 76, 53, 0.12);
}

.conv-field label {
	font-size: 13px;
	font-weight: 500;
	color: var(--c-muted);
	line-height: 1.3;
}

.conv-field input,
.conv-field select {
	width: 100%;
	height: 38px;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 19px;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--c-text);
	outline: none;
	box-shadow: none;
}

.conv-field input[aria-invalid="true"] {
	color: var(--c-down);
}

.select-wrap {
	position: relative;
}

/* Valutavælger: synlig visning ovenpå en usynlig, native <select>. */
.select-display {
	display: flex;
	align-items: center;
	gap: 9px;
	height: 38px;
	padding-right: 24px;
	min-width: 0;
	font-size: 19px;
	pointer-events: none;
}

.select-display strong {
	font-weight: 700;
	letter-spacing: 0.01em;
}

.select-name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 15px;
	font-weight: 500;
	color: var(--c-muted);
}

.select-flag {
	display: inline-flex;
	flex: none;
}

.select-wrap select {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	-webkit-appearance: none;
	appearance: none;
	font-size: 16px;
	cursor: pointer;
}

.select-chevron {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	color: var(--c-muted);
}

.conv-swap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin-bottom: 4px;
	padding: 0;
	border: 1px solid var(--c-border);
	border-radius: 50%;
	background: var(--c-tint);
	color: var(--c-primary);
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, transform 0.25s ease;
}

.conv-swap:hover {
	background: var(--c-primary);
	border-color: var(--c-primary);
	color: #fff;
}

.is-swapped .conv-swap {
	transform: rotate(180deg);
}

.conv-submit {
	align-self: stretch;
	min-height: 60px;
	padding: 0 30px;
	font-size: 16px;
}

.converter-result {
	margin-top: 26px;
}

.converter-hero .converter-result {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 14px;
	margin: 0;
	padding: 16px 28px 18px;
	background: var(--c-tint-2);
	border-top: 1px solid var(--c-border);
}

.result-from {
	font-size: 16px;
	color: var(--c-muted);
}

.result-to {
	margin-top: 2px;
	font-size: clamp(2.1rem, 4.4vw, 2.9rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: var(--c-primary);
	word-break: break-word;
}

.result-code {
	font-weight: 500;
	color: var(--c-text);
}

.converter-hero .result-to {
	font-size: 26px;
	margin: 0;
}

.result-rates {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin-top: 10px;
	font-size: 14.5px;
	color: var(--c-muted);
}

.converter-hero .result-rates {
	margin: 0 0 0 auto;
}

.converter-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--c-border);
	font-size: 14px;
	color: var(--c-muted);
}

.converter-note {
	display: flex;
	gap: 8px;
	margin-top: 12px;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--c-muted);
}

.jump-amounts {
	display: none;
	margin-top: 14px;
}

.converter-note .icon {
	margin-top: 2px;
}

/* ------------------------------------------------------------------
   Fordele-bjælke
------------------------------------------------------------------ */
.trust-bar {
	background: var(--c-tint);
	border-bottom: 1px solid var(--c-border);
}

.trust-inner {
	display: flex;
	justify-content: space-between;
	gap: 16px 32px;
	padding-top: 22px;
	padding-bottom: 22px;
}

.trust-inner p {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 15px;
	font-weight: 500;
}

.trust-inner .icon {
	color: var(--c-primary);
}

/* ------------------------------------------------------------------
   Sektioner
------------------------------------------------------------------ */
.section {
	padding: 64px 0 72px;
}

.section-tint {
	background: var(--c-tint);
	border-top: 1px solid var(--c-border);
	border-bottom: 1px solid var(--c-border);
}

.section-tint + .site-footer {
	border-top: 0;
}

.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 32px;
}

.section-head .text-link {
	margin-bottom: 6px;
}

.section-title {
	font-size: clamp(1.75rem, 3vw, 2.3rem);
}

.section-lead {
	max-width: 640px;
	margin-top: 14px;
	font-size: 17px;
	color: var(--c-muted);
}

/* Populære par */
.pair-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.pair-card {
	display: flex;
	flex-direction: column;
	padding: 20px 20px 18px;
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	color: var(--c-text);
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.pair-card:hover {
	border-color: var(--c-primary);
	box-shadow: var(--shadow-hover);
	color: var(--c-text);
	transform: translateY(-2px);
}

.pair-card-head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.pair-card-code {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.02em;
}

.pair-card-code .icon {
	color: var(--c-muted);
}

.pair-card-name {
	margin-top: 12px;
	font-size: 14px;
	color: var(--c-muted);
}

.pair-card-rate {
	margin-top: 4px;
	font-size: 28px;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--c-primary);
}

.pair-card-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 12px;
}

.spark {
	width: 96px;
	height: 30px;
	color: var(--c-primary);
}

.spark-down {
	color: var(--c-down);
}

.change {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.change.is-up {
	background: var(--c-chip);
	color: var(--c-primary);
}

.change.is-down {
	background: var(--c-down-bg);
	color: var(--c-down);
}

.change.is-flat {
	background: #f1f3f2;
	color: var(--c-muted);
}

/* Alle valutaer */
.currency-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.currency-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	color: var(--c-text);
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.currency-card:hover {
	border-color: var(--c-primary);
	box-shadow: var(--shadow-hover);
	color: var(--c-text);
}

.currency-card-text {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
}

.currency-card-name {
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.currency-card-meta {
	font-size: 13.5px;
	color: var(--c-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.currency-card .icon {
	color: var(--c-muted);
	transition: transform 0.18s ease, color 0.18s ease;
}

.currency-card:hover .icon {
	color: var(--c-primary);
	transform: translateX(2px);
}

/* Forsidetekst */
.prose-wrap {
	max-width: 760px;
}

/* ------------------------------------------------------------------
   Sidehoveder (undersider)
------------------------------------------------------------------ */
.page-hero {
	padding: 40px 0 52px;
	background: var(--c-tint);
	border-bottom: 1px solid var(--c-border);
}

.page-title {
	font-size: clamp(2rem, 4.2vw, 2.9rem);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.12;
}

.page-lead {
	max-width: 760px;
	margin-top: 22px;
	font-size: 17.5px;
	line-height: 1.7;
	color: var(--c-muted);
}

.page-body {
	padding-top: 48px;
	padding-bottom: 88px;
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 0;
	margin: 0 0 30px;
	padding: 0;
	list-style: none;
	font-size: 14px;
	color: var(--c-muted);
}

.breadcrumbs li {
	display: inline-flex;
	align-items: center;
}

.breadcrumbs a {
	color: var(--c-muted);
}

.breadcrumbs a:hover {
	color: var(--c-primary);
}

.crumb-sep {
	margin: 0 12px;
}

.pair-hero-head {
	display: flex;
	align-items: center;
	gap: 22px;
}

.pair-hero-head .eyebrow {
	margin-bottom: 12px;
}

.post-meta {
	margin-top: 14px;
	font-size: 14.5px;
	color: var(--c-muted);
}

/* ------------------------------------------------------------------
   Valutapar
------------------------------------------------------------------ */
.pair-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	align-items: start;
	gap: 32px;
	padding-top: 40px;
	padding-bottom: 88px;
}

.pair-main {
	display: grid;
	gap: 24px;
	min-width: 0;
}

.pair-aside {
	display: grid;
	gap: 24px;
}

.card {
	padding: 28px;
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.converter-card {
	padding: 28px 28px 22px;
	border-top: 3px solid var(--c-primary);
}

.converter-card-wide {
	margin-bottom: 28px;
	padding: 0;
	overflow: hidden;
	border-top: 1px solid var(--c-border);
}

.card-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin-bottom: 18px;
}

.card-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 20px;
	letter-spacing: -0.015em;
}

.card-title .icon {
	color: var(--c-primary);
}

.card-sub {
	font-size: 14px;
	color: var(--c-muted);
}


/* Nøgletal */
.stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	margin: 0 0 22px;
	background: var(--c-border);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	overflow: hidden;
}

.stats div {
	padding: 12px 16px;
	background: var(--c-tint-2);
}

.stats dt {
	font-size: 13px;
	color: var(--c-muted);
}

.stats dd {
	margin: 2px 0 0;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.stats dd.change {
	display: block;
	padding: 0;
	background: none;
	font-size: 18px;
}

/* Graf */
.chart {
	color: var(--c-primary);
}

.chart-plot {
	position: relative;
	height: 260px;
	margin-right: 64px;
	touch-action: pan-y;
	cursor: crosshair;
}

.chart-grid {
	position: absolute;
	inset: 0;
}

.chart-gridline {
	position: absolute;
	left: 0;
	right: -64px;
	border-top: 1px dashed #dfe5e1;
}

.chart-gridline em {
	position: absolute;
	right: 0;
	top: -9px;
	padding-left: 8px;
	background: #fff;
	font-size: 12px;
	font-style: normal;
	color: var(--c-muted);
}

.chart-svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.chart-cursor {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 0;
	border-left: 1px solid rgba(8, 76, 53, 0.35);
	opacity: 0;
	pointer-events: none;
}

.chart-dot {
	position: absolute;
	left: -6px;
	width: 12px;
	height: 12px;
	margin-top: -6px;
	border-radius: 50%;
	background: var(--c-primary);
	box-shadow: 0 0 0 3px #fff, 0 2px 6px rgba(0, 0, 0, 0.25);
}

.chart-tip {
	position: absolute;
	top: 4px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	padding: 7px 11px;
	background: var(--c-text);
	border-radius: var(--radius);
	color: #fff;
	font-size: 12.5px;
	line-height: 1.35;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.35);
}

.chart-tip strong {
	font-size: 15px;
}

.chart-tip span {
	color: rgba(255, 255, 255, 0.75);
}

.chart.is-active .chart-cursor,
.chart.is-active .chart-tip {
	opacity: 1;
}

.chart-x {
	display: flex;
	justify-content: space-between;
	margin: 10px 64px 0 0;
	font-size: 12.5px;
	color: var(--c-muted);
}

.chart-empty {
	padding: 28px;
	background: var(--c-tint-2);
	border-radius: var(--radius);
	color: var(--c-muted);
	text-align: center;
}

/* Omregningstabeller */
.conv-tables {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.conv-table-card {
	padding: 22px 24px 14px;
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.conv-table-title {
	display: flex;
	align-items: center;
	gap: 0;
	margin-bottom: 12px;
	font-size: 17px;
}

.conv-table-title .flag-stack {
	margin-right: 12px;
}

.conv-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.conv-table th {
	padding: 8px 0;
	border-bottom: 1px solid var(--c-border);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-align: left;
	color: var(--c-muted);
}

.conv-table th:last-child,
.conv-table td:last-child {
	text-align: right;
}

.conv-table td {
	padding: 9px 0;
	border-bottom: 1px solid #edf1ee;
}

.conv-table tr:last-child td {
	border-bottom: 0;
}

.conv-table td:last-child {
	font-weight: 600;
}

.conv-table a {
	color: var(--c-text);
	text-decoration: underline;
	text-decoration-color: var(--c-border);
	text-underline-offset: 4px;
}

.conv-table a:hover {
	color: var(--c-primary);
	text-decoration-color: var(--c-primary);
}

/* Tekst */
.prose {
	font-size: 16.5px;
	line-height: 1.75;
}

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

.prose h2,
.prose h3 {
	margin-top: 1.6em;
}

.prose h2 {
	font-size: 1.5rem;
}

.prose h3 {
	font-size: 1.2rem;
}

.prose a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

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

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

.prose-page {
	max-width: 760px;
}

/* Højre side */
.aside-card {
	padding: 24px;
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.aside-title {
	font-size: 19px;
	letter-spacing: -0.015em;
}

.aside-lead {
	margin-top: 6px;
	font-size: 14.5px;
	color: var(--c-muted);
}

.amount-accordion {
	margin-top: 18px;
	border-top: 1px solid var(--c-border);
}

.amount-group {
	border-bottom: 1px solid var(--c-border);
}

.amount-group-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 2px;
	font-size: 15px;
	font-weight: 600;
	color: var(--c-text);
	cursor: pointer;
	list-style: none;
	user-select: none;
	transition: color 0.15s ease;
}

.amount-group-title::-webkit-details-marker {
	display: none;
}

.amount-group-title em {
	font-style: normal;
	font-weight: 500;
	color: var(--c-muted);
}

.amount-group-title .icon {
	color: var(--c-muted);
	transition: transform 0.2s ease, color 0.15s ease;
}

.amount-group-title:hover,
.amount-group-title:hover .icon,
.amount-group[open] > .amount-group-title .icon {
	color: var(--c-primary);
}

.amount-group[open] > .amount-group-title .icon {
	transform: rotate(180deg);
}

.amount-group .amount-list {
	margin-bottom: 16px;
}

.amount-list {
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	overflow: hidden;
}

.amount-list li + li {
	border-top: 1px solid #edf1ee;
}

.amount-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 12px;
	font-size: 14.5px;
	color: var(--c-text);
	transition: background-color 0.15s ease;
}

.amount-list a:hover {
	background: var(--c-tint);
	color: var(--c-primary);
}

.amount-list a.is-active {
	background: var(--c-primary);
	color: #fff;
}

.amt-from {
	font-weight: 600;
}

.amt-to {
	color: var(--c-muted);
	text-align: right;
}

.amount-list a:hover .amt-to {
	color: var(--c-primary);
}

.amount-list a.is-active .amt-to {
	color: rgba(255, 255, 255, 0.85);
}

.link-list {
	margin: 14px 0 16px;
	padding: 0;
	list-style: none;
}

.link-list li + li {
	border-top: 1px solid #edf1ee;
}

.link-list a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	color: var(--c-text);
	font-weight: 500;
	font-size: 15px;
}

.link-list a span {
	flex: 1;
}

.link-list a em {
	font-style: normal;
	font-weight: 600;
	color: var(--c-muted);
}

.link-list a:hover,
.link-list a:hover em {
	color: var(--c-primary);
}

/* ------------------------------------------------------------------
   Valutaside – kurstabel
------------------------------------------------------------------ */
.rate-table-card {
	padding: 26px 28px 12px;
}

.table-scroll {
	overflow-x: auto;
	margin: 0 -4px;
}

.rate-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.rate-table thead th {
	padding: 10px 12px;
	border-bottom: 1px solid var(--c-border);
	font-size: 13px;
	font-weight: 600;
	color: var(--c-muted);
	text-align: left;
	white-space: nowrap;
}

.rate-table td,
.rate-table tbody th {
	padding: 10px 12px;
	border-bottom: 1px solid #edf1ee;
	text-align: left;
	font-weight: 400;
	white-space: nowrap;
}

.rate-table tbody tr:last-child td,
.rate-table tbody tr:last-child th {
	border-bottom: 0;
}

.rate-table tbody tr:hover {
	background: var(--c-tint-2);
}

.rate-table .num {
	text-align: right;
}

.rate-table td.num:nth-child(2) {
	font-weight: 600;
}

.rate-table .act {
	text-align: right;
}

.rate-cur {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--c-text);
}

.rate-cur span {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.rate-cur em {
	font-style: normal;
	font-size: 13px;
	color: var(--c-muted);
}

.rate-cur:hover strong {
	color: var(--c-primary);
}

/* Blog */
.post-list {
	display: grid;
	gap: 36px;
	max-width: 760px;
}

.post-item-title {
	margin: 6px 0 10px;
	font-size: 1.5rem;
}

.post-item-title a {
	color: var(--c-text);
}

.post-item-title a:hover {
	color: var(--c-primary);
}

.post-item p {
	margin-bottom: 12px;
	color: var(--c-muted);
}

.post-thumb {
	margin: 0 0 32px;
}

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

.pagination {
	margin-top: 40px;
}

.pagination .nav-links {
	display: flex;
	gap: 8px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	color: var(--c-text);
}

.pagination .page-numbers.current {
	background: var(--c-primary);
	border-color: var(--c-primary);
	color: #fff;
}

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------ */
.site-footer {
	border-top: 1px solid var(--c-border);
	background: #fff;
}

.footer-inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
	min-height: 104px;
	padding-top: 24px;
	padding-bottom: 24px;
}

.footer-logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	justify-self: start;
	font-size: 21px;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--c-primary);
}

.footer-logo .logo-mark {
	width: 34px;
	height: 34px;
	border-radius: 7px;
}

.footer-tagline {
	font-size: 14.5px;
	color: var(--c-muted);
	text-align: center;
}

.footer-link {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	justify-self: end;
	font-size: 14.5px;
	color: var(--c-muted);
}

.footer-link:hover {
	color: var(--c-primary);
}

.footer-bottom {
	border-top: 1px solid var(--c-border);
	background: var(--c-tint-2);
}

.footer-bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	padding-top: 16px;
	padding-bottom: 16px;
	font-size: 13.5px;
	color: var(--c-muted);
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu a {
	color: var(--c-muted);
}

.footer-menu a:hover {
	color: var(--c-primary);
}

/* Gutenberg */
.alignwide,
.alignfull {
	max-width: 100%;
}

.wp-block-image img {
	border-radius: var(--radius);
}

/* ------------------------------------------------------------------
   Responsivt
------------------------------------------------------------------ */
@media (max-width: 1100px) {
	.pair-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pair-layout {
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: 24px;
	}

	.converter-hero .converter-fields {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 46px minmax(0, 1fr);
	}

	.converter-hero .conv-submit {
		grid-column: 1 / -1;
		min-height: 50px;
	}

	.conv-tables {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 960px) {
	.header-inner {
		min-height: 72px;
		gap: 16px;
	}

	.site-logo {
		font-size: 24px;
	}

	.header-cta {
		display: none;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.main-nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		flex-direction: column;
		gap: 14px;
		padding: 12px var(--gutter) 24px;
		background: #fff;
		border-bottom: 1px solid var(--c-border);
		box-shadow: 0 18px 30px -20px rgba(0, 0, 0, 0.25);
	}

	.nav-open .main-nav {
		display: flex;
	}

	.nav-list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.nav-list li + li {
		border-top: 1px solid var(--c-border);
	}

	.nav-list a {
		padding: 14px 0;
	}

	.nav-cta {
		display: inline-flex;
	}

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

	.jump-amounts {
		display: inline-flex;
	}

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

	.trust-inner {
		flex-direction: column;
	}

	.footer-inner {
		grid-template-columns: 1fr;
		justify-items: start;
		gap: 12px;
	}

	.footer-tagline {
		text-align: left;
	}

	.footer-link {
		justify-self: start;
	}
}

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

	.hero {
		padding: 48px 0 44px;
	}

	.hero-lead {
		font-size: 17px;
	}

	.converter-fields,
	.converter-hero .converter-fields {
		grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
		gap: 10px;
	}

	.conv-amount {
		grid-column: 1 / -1;
	}

	.converter-hero .converter-fields {
		padding: 12px;
	}

	.converter-hero .converter-result {
		padding: 14px 16px 16px;
	}

	.converter-hero .result-rates {
		margin: 0;
	}

	.conv-field input,
	.conv-field select {
		font-size: 17px;
	}

	.select-display {
		font-size: 17px;
	}

	.select-name {
		display: none;
	}

	.jump-amounts {
		display: inline-flex;
	}

	.converter-card {
		padding: 20px 16px 16px;
	}

	.card,
	.aside-card,
	.conv-table-card {
		padding: 20px 16px;
	}

	.rate-table-card {
		padding: 18px 12px 8px;
	}

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

	.chart-plot {
		height: 200px;
		margin-right: 52px;
	}

	.chart-gridline {
		right: -52px;
	}

	.chart-x {
		margin-right: 52px;
	}

	.section {
		padding: 48px 0 56px;
	}

	.section-head {
		flex-direction: column;
		align-items: flex-start;
	}

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

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

	.page-hero {
		padding: 28px 0 36px;
	}

	.breadcrumbs ol {
		margin-bottom: 22px;
	}

	.pair-hero-head {
		align-items: flex-start;
		flex-direction: column;
		gap: 14px;
	}

	.flag-pair-lg .flag {
		width: 36px;
		height: 36px;
	}

	.hide-sm {
		display: none;
	}
}
