/* Teslahub – header, footer, skabeloner og fælles tokens (uden Bricks). Indlæses på alle sider.
   Mens Bricks er temaet, indlæses filen af mu-pluginet teslahub-tema-bro.php; ellers af temaet selv. */

/* Archivo som variabel skrifttype: én fil dækker alle vægte (latin, inkl. æøå). Uden Bricks indlæser ingen
   andre den. Filen er kopieret fra uploads/fonts/13a62…/ (local-google-fonts), ingen kald til Google. */
@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("fonts/archivo-latin.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;
}

:root {
	--th-rod: #5b0b0b;
	--th-rod-hover: #7c1515;
	--th-sort: #171a20;
	--th-sort-2: #22262e;
	--th-graa: #5c5e62;
	--th-mgraa: #393c41;
	--th-lys: #f4f4f4;
	--th-kort: #f4f4f5;
	--th-linje: #e3e3e6;
	--th-overskrift: "Archivo", system-ui, sans-serif;
	--th-topbar-h: 44px;
	--th-ease: cubic-bezier(.4, 0, .2, 1);
}

/* Fælles bredde: samme indryk som header-baren og forsidens ark. */
.th-wrap { box-sizing: border-box; width: calc(100% - 50px); max-width: 1280px; margin-inline: auto; }
@media (min-width: 1330px) { .th-wrap { width: 100%; } }
@media (max-width: 767px) { .th-wrap { width: calc(100% - 40px); } }

.th-header *, .th-offcanvas *, .th-footer * { box-sizing: border-box; }
.th-header ul, .th-offcanvas ul, .th-footer ul { list-style: none; margin: 0; padding: 0; }
.th-header a, .th-offcanvas a, .th-footer a { text-decoration: none; }
.th-header button, .th-offcanvas button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; padding: 0; }
.th-logo { display: inline-flex; flex: none; }
.th-logo img { display: block; width: auto; height: 35px; }

/* =========================================================================
   Header
   ========================================================================= */

/* Sticky med negativ top: topbaren ruller væk, selve baren bliver hængende. */
.th-header {
	position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--th-topbar-h)); z-index: 1000;
	font-family: var(--th-overskrift);
	transition: transform .35s var(--th-ease);
}
.th-header.is-skjult { transform: translateY(-100%); }

.th-topbar { height: var(--th-topbar-h); }
.th-topbar .th-wrap { display: flex; justify-content: flex-end; align-items: center; height: 100%; }
.th-topbar__menu { display: flex; gap: 18px; }
.th-topbar__menu a { font-size: 13px; font-weight: 500; color: var(--th-graa); transition: color .2s; }
.th-topbar__menu a:hover, .th-topbar__menu .current-menu-item > a { color: var(--th-rod); }

.th-navbar {
	display: flex; align-items: center; gap: 24px;
	padding: 14px 14px 14px 28px; border-radius: 10px; background: var(--th-lys);
	transition: box-shadow .3s ease;
}
.th-header.is-scrollet .th-navbar { box-shadow: 0 10px 30px -18px rgba(23, 26, 32, .35); }
.th-navbar .th-logo { margin-right: auto; }

/* ---------- Desktop-menu ---------- */

.th-hovednav__menu { display: flex; align-items: center; gap: 2px; }
.th-hovednav__menu > li { position: relative; display: flex; align-items: center; border-radius: 8px; transition: background .2s; }
.th-hovednav__menu > li > a { padding: 10px 14px; font-size: 16px; font-weight: 500; color: var(--th-sort); white-space: nowrap; transition: color .2s; }
.th-hovednav__menu > li.menu-item-has-children > a { padding-right: 2px; }
.th-hovednav__menu > li:hover, .th-hovednav__menu > li:focus-within, .th-hovednav__menu > li.is-open { background: #e9e9eb; }
.th-hovednav__menu > li:hover > a, .th-hovednav__menu > li.current-menu-item > a,
.th-hovednav__menu > li.current-menu-ancestor > a { color: var(--th-rod); }
.th-hovednav .th-sub-knap { display: grid; place-items: center; width: 28px; height: 36px; margin-right: 6px; color: var(--th-graa); }
.th-hovednav .th-sub-knap svg { transition: transform .25s var(--th-ease); }
.th-hovednav li.is-open > .th-sub-knap svg,
.th-hovednav__menu > li:hover > .th-sub-knap svg { transform: rotate(180deg); }

/* Dropdown: hvidt panel. padding-top er en usynlig "bro", så musen kan nå panelet uden at det lukker. */
.th-hovednav__menu > li > .th-sub {
	position: absolute; top: 100%; left: 0; padding-top: 8px; min-width: 240px;
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .2s ease, transform .2s var(--th-ease), visibility 0s linear .2s;
}
.th-hovednav__menu > li:hover > .th-sub,
.th-hovednav__menu > li:focus-within > .th-sub,
.th-hovednav__menu > li.is-open > .th-sub {
	opacity: 1; visibility: visible; transform: none;
	transition: opacity .2s ease, transform .2s var(--th-ease), visibility 0s;
}
.th-hovednav__menu > li > .th-sub > ul {
	padding: 8px; border-radius: 10px; background: #fff;
	border: 1px solid rgba(23, 26, 32, .06); box-shadow: 0 16px 40px -12px rgba(23, 26, 32, .28);
}
.th-hovednav .th-sub a {
	display: block; padding: 9px 12px; border-radius: 6px; font-size: 15px; font-weight: 500; line-height: 1.35;
	color: var(--th-sort); transition: background .15s, color .15s;
}
.th-hovednav .th-sub a:hover, .th-hovednav .th-sub .current-menu-item > a { background: var(--th-kort); color: var(--th-rod); }
/* 3. niveau (Highland, Juniper, LiDAR) indrykket i panelet, ikke som flyout. */
.th-hovednav .th-sub .th-sub-knap { display: none; }
.th-hovednav .th-sub .th-sub > ul { padding: 0 0 4px 12px; }
.th-hovednav .th-sub .th-sub a { padding: 6px 12px; font-size: 14px; color: var(--th-graa); }

/* ---------- Handlinger ---------- */

.th-navbar__handling { display: flex; align-items: center; gap: 10px; }
.th-hdr-cta {
	display: inline-flex; align-items: center; padding: 12px 18px; border-radius: 8px;
	background: var(--th-rod); color: #fff !important; font-size: 16px; font-weight: 600; white-space: nowrap;
	transition: background .2s;
}
.th-hdr-cta:hover { background: var(--th-rod-hover); }
.th-burger { display: none; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--th-sort); }
.th-burger:hover { background: #e9e9eb; }

/* =========================================================================
   Mobilmenu (offcanvas)
   ========================================================================= */

.th-offcanvas { position: fixed; inset: 0; z-index: 100000; visibility: hidden; pointer-events: none; font-family: var(--th-overskrift); transition: visibility 0s linear .4s; }
.th-offcanvas.is-aaben { visibility: visible; pointer-events: auto; transition: visibility 0s; }
.th-offcanvas__baggrund { position: absolute; inset: 0; background: rgba(23, 26, 32, .45); opacity: 0; transition: opacity .35s ease; }
.th-offcanvas.is-aaben .th-offcanvas__baggrund { opacity: 1; }
.th-offcanvas__panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 88vw);
	display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
	padding: 18px 24px 28px; background: #fff; box-shadow: -24px 0 60px -30px rgba(23, 26, 32, .35);
	transform: translateX(100%); transition: transform .4s var(--th-ease); outline: none;
}
.th-offcanvas.is-aaben .th-offcanvas__panel { transform: none; }
html.th-laast { overflow: hidden; }

.th-offcanvas__top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid var(--th-linje); }
.th-offcanvas__top .th-logo img { height: 28px; }
.th-offcanvas .th-offcanvas__luk { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 29%; background: var(--th-kort); color: var(--th-sort); }

.th-mobilnav__menu > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-bottom: 1px solid #ececee; }
.th-mobilnav__menu > li > a { padding: 15px 0; font-size: 18px; font-weight: 500; color: var(--th-sort); }
.th-mobilnav .current-menu-item > a, .th-mobilnav .current-menu-ancestor > a { color: var(--th-rod); }
.th-mobilnav .th-sub-knap { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; color: var(--th-sort); }
.th-mobilnav .th-sub-knap svg { width: 16px; height: 16px; transition: transform .35s var(--th-ease); }
.th-mobilnav li.is-open > .th-sub-knap svg { transform: rotate(180deg); }

/* Harmonika til præcis højde: grid-rækken går fra 0fr til 1fr (glat i Safari, Chrome og Firefox). */
.th-mobilnav .th-sub {
	grid-column: 1 / -1; display: grid; grid-template-rows: 0fr;
	transition: grid-template-rows .4s var(--th-ease);
}
.th-mobilnav li.is-open > .th-sub { grid-template-rows: 1fr; }
.th-mobilnav .th-sub > ul { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s linear .4s; }
.th-mobilnav li.is-open > .th-sub > ul { visibility: visible; transition: visibility 0s; }
.th-mobilnav .th-sub > ul > li { opacity: 0; transform: translateY(-6px); transition: opacity .2s ease, transform .2s ease; }
.th-mobilnav li.is-open > .th-sub > ul > li { opacity: 1; transform: none; transition: opacity .35s ease, transform .35s var(--th-ease); }
.th-mobilnav li.is-open > .th-sub > ul > li:nth-child(2) { transition-delay: .03s; }
.th-mobilnav li.is-open > .th-sub > ul > li:nth-child(3) { transition-delay: .06s; }
.th-mobilnav li.is-open > .th-sub > ul > li:nth-child(4) { transition-delay: .09s; }
.th-mobilnav li.is-open > .th-sub > ul > li:nth-child(5) { transition-delay: .12s; }
.th-mobilnav li.is-open > .th-sub > ul > li:nth-child(n+6) { transition-delay: .15s; }
.th-mobilnav .th-sub li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.th-mobilnav .th-sub a { display: block; padding: 10px 0 10px 14px; font-size: 16px; font-weight: 500; color: var(--th-mgraa); }
/* Luft under en åben undermenu ligger på sidste punkt, ikke på ul: padding på ul ville stikke 6px ud, når den er lukket (0fr). */
.th-mobilnav .th-sub > ul > li:last-child { padding-bottom: 6px; }
.th-mobilnav .th-sub .th-sub a { padding-left: 28px; font-size: 15px; color: var(--th-graa); }

.th-offcanvas__cta {
	display: flex; justify-content: center; margin-top: 24px; padding: 15px 18px; border-radius: 8px;
	background: var(--th-rod); color: #fff !important; font-size: 16px; font-weight: 600;
}
.th-offcanvas__smaa-menu { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px !important; }
.th-offcanvas__smaa-menu a { font-size: 14px; font-weight: 500; color: var(--th-graa); }

/* ---------- Breakpoints (samme som den gamle Bricks-header: burger under 992px) ---------- */

@media (max-width: 991px) {
	.th-header { top: var(--wp-admin--admin-bar--height, 0px); }
	.th-topbar { display: none; }
	.th-hovednav { display: none; }
	.th-burger { display: grid; }
	.th-navbar { margin-top: 20px; padding: 12px 10px 12px 22px; }
}
@media (max-width: 767px) {
	.th-hdr-cta { display: none; }
	.th-logo img { height: 26px; }
	.th-navbar { margin-top: 20px; padding: 10px 8px 10px 20px; }
}

/* =========================================================================
   Footer (redesign 28 sep): nyhedsbrev-kort øverst, brand + menuer, bundlinje
   ========================================================================= */

.th-footer { padding: 32px 0 28px; background: var(--th-sort); color: rgba(255, 255, 255, .72); font-family: var(--th-overskrift); }

.th-footer__nyhedsbrev {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
	padding: 22px 28px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; background: var(--th-sort-2);
	scroll-margin-top: 120px;
}
.th-footer__kicker { display: inline-block; margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.th-footer__stor { margin: 0; font-family: var(--th-overskrift); font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; color: #fff; }
.th-footer__nyhedsbrev p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .65); }
.th-footer__knap {
	display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 10px;
	background: var(--th-rod); color: #fff !important; font-weight: 600; white-space: nowrap; transition: background .2s;
}
.th-footer__knap:hover { background: var(--th-rod-hover); }

.th-footer__midt { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .7fr) minmax(0, .8fr); gap: 56px; padding: 56px 0 44px; }
.th-footer__brand .th-logo { padding: 12px 18px; border-radius: 10px; background: #fff; }
.th-footer__brand .th-logo img { height: 28px; }
.th-footer__titel { margin: 0 0 16px; font-family: var(--th-overskrift); font-size: 15px; font-weight: 600; letter-spacing: 0; color: #fff; }
.th-footer__titel a { color: inherit; }
.th-footer__titel--lille { margin: 28px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.th-footer__tekst { max-width: 520px; margin: 0; font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, .6); }
.th-footer__menu li + li { margin-top: 12px; }
.th-footer__menu a { font-size: 15px; color: rgba(255, 255, 255, .78); transition: color .2s; }
.th-footer__menu a:hover { color: #fff; }


/* Gravity Forms (orbital) på den røde baggrund. */
.th-footer .gform_wrapper.gform-theme--orbital {
	--gf-color-primary: #fff; --gf-color-primary-rgb: 255, 255, 255; --gf-color-primary-contrast: var(--th-rod);
	--gf-color-in-ctrl-primary: #fff; --gf-color-in-ctrl-primary-rgb: 255, 255, 255; --gf-color-in-ctrl-primary-contrast: var(--th-rod);
	--gf-ctrl-label-color-primary: #fff; --gf-ctrl-label-color-secondary: rgba(255, 255, 255, .8); --gf-ctrl-desc-color: rgba(255, 255, 255, .7);
	--gf-ctrl-border-color: transparent; --gf-ctrl-radius: 8px; --gf-ctrl-size-md: 48px;
	margin: 0 !important;
}
.th-footer .gform_wrapper label, .th-footer .gform_wrapper legend, .th-footer .gform_wrapper .gfield_label { color: rgba(255, 255, 255, .9) !important; }
.th-footer .gform_wrapper .gfield_required { color: #ffb4b4 !important; }
.th-footer .gform_wrapper .gform_button { background: #fff !important; color: var(--th-rod) !important; border-radius: 8px !important; font-weight: 700 !important; padding-inline: 1.6rem !important; }

.th-footer__bund { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); }
.th-footer__bund p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .5); }
.th-footer__sociale { display: flex; gap: 6px; }
.th-footer__sociale a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 29%; background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .85); transition: background .2s, color .2s; }
.th-footer__sociale a:hover { background: var(--th-rod); color: #fff; }

@media (max-width: 1023px) {
	.th-footer__midt { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
	.th-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
	.th-footer { padding-top: 20px; }
	.th-footer__nyhedsbrev { padding: 20px; }
	.th-footer__knap { width: 100%; justify-content: center; }
	.th-footer__midt { padding: 40px 0 32px; }
	.th-footer__bund { flex-direction: column-reverse; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	.th-header, .th-header *, .th-offcanvas, .th-offcanvas * { transition: none !important; }
}

/* =========================================================================
   Grundlag, når temaet kører uden Bricks (Bricks' egne base-styles findes ikke længere)
   ========================================================================= */

html { -webkit-text-size-adjust: 100%; }
/* :where(): forside.css' mobilregel (body hvid, intet svævende ark) skal kunne vinde. */
:where(body.th-tema) { margin: 0; background: #e4e4e4; color: var(--th-sort); font-family: var(--th-overskrift); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
/* :where() = ingen specificitet, så komponenternes egne billedregler (fx logoets højde) altid vinder. */
:where(body.th-tema) img { max-width: 100%; height: auto; }
:where(body.th-tema) a { color: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.th-main { display: block; }

/* =========================================================================
   Fælles byggeklodser til skabelonerne
   ========================================================================= */

.th-brodkrummer { margin: 0 0 14px; font-size: 13px; color: var(--th-graa); }
.th-brodkrummer a { color: var(--th-graa); text-decoration: none; }
.th-brodkrummer a:hover { color: var(--th-rod); }

.th-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.th-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.th-gkort { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--th-kort); transition: background .2s; }
.th-gkort:hover { background: #ececee; }
.th-gkort__media { position: relative; display: block; aspect-ratio: 16 / 10; margin: 10px 10px 0; overflow: hidden; border-radius: 14px; }
.th-gkort__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.th-gkort:hover .th-gkort__media img { transform: scale(1.04); }
.th-gkort__media .th-badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.th-gkort__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 14px 18px 18px; }
.th-gkort__titel { margin: 0; font-family: var(--th-overskrift); font-size: 18px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.th-gkort__titel a { text-decoration: none; }
.th-gkort__titel a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.th-gkort:hover .th-gkort__titel a { color: var(--th-rod); }
.th-gkort__uddrag { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--th-graa); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.th-gkort .th-meta { margin-top: auto; justify-content: space-between; }
.th-gkort__pil { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 29%; background: #fff; color: var(--th-sort); transition: background .2s, color .2s; }
.th-gkort:hover .th-gkort__pil { background: var(--th-rod); color: #fff; }
.th-gkort .th-kredit, .th-gkort .th-badge { pointer-events: none; }

.th-sidetal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 32px; }
.th-sidetal .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 10px; background: var(--th-kort); color: var(--th-sort); font-weight: 600; text-decoration: none; }
.th-sidetal .page-numbers.current { background: var(--th-sort); color: #fff; }
.th-sidetal a.page-numbers:hover { background: #e4e4e6; }
.th-sidetal .dots { background: none; }

.th-tom { padding: 40px 0; font-size: 18px; color: var(--th-graa); text-align: center; }

.th-boks { padding: 24px; border-radius: 20px; background: var(--th-kort); }
.th-boks__titel { margin: 0 0 10px; font-family: var(--th-overskrift); font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.th-boks p { margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: var(--th-mgraa); }
.th-boks--bred { padding: clamp(24px, 4vw, 48px); }
.th-boks--partner { position: relative; }
.th-boks__annonce { display: block; margin-bottom: 10px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #9a9ca1; }
.th-boks__billede { display: block; width: 100%; margin-bottom: 14px; border-radius: 12px; }
.th-boks--forfatter { display: flex; align-items: center; gap: 16px; }
.th-boks__avatar { border-radius: 50%; }
.th-boks--forfatter .th-boks__titel { margin: 0; font-size: 14px; font-weight: 500; color: var(--th-graa); }
.th-boks__navn { font-size: 20px; font-weight: 700; text-decoration: none; }
.th-boks__navn:hover { color: var(--th-rod); }
.th-boks__ikoner { display: flex; gap: 8px; }
.th-boks__ikoner a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 29%; background: #fff; color: var(--th-sort); transition: background .2s, color .2s; }
.th-boks__ikoner a:hover { background: var(--th-rod); color: #fff; }

/* =========================================================================
   Brødtekst (artikler, tekstsider, SEO-tekster)
   ========================================================================= */

.th-indhold { font-size: 18px; line-height: 1.75; color: #24272e; }
.th-indhold > * { margin-top: 0; margin-bottom: 1.15em; }
.th-indhold h2 { margin: 1.8em 0 .6em; font-family: var(--th-overskrift); font-size: clamp(22px, 1.2rem + 1vw, 28px); line-height: 1.2; letter-spacing: -.02em; }
.th-indhold h3 { margin: 1.5em 0 .5em; font-family: var(--th-overskrift); font-size: 21px; line-height: 1.3; }
.th-indhold a { color: var(--th-rod); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.th-indhold a:hover { text-decoration-thickness: 2px; }
.th-indhold ul, .th-indhold ol { padding-left: 1.3em; }
.th-indhold li + li { margin-top: .35em; }
.th-indhold img, .th-indhold figure img { border-radius: 14px; }
.th-indhold figure { margin-inline: 0; }
.th-indhold figcaption { margin-top: 8px; font-size: 14px; color: var(--th-graa); }
.th-indhold blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--th-rod); font-size: 20px; color: var(--th-sort); }
.th-indhold table { width: 100%; border-collapse: collapse; font-size: 15px; }
/* Brede tabeller (fx cookiepolitikken) scroller vandret i sig selv i stedet for at gøre hele siden bredere. */
@media (max-width: 767px) { .th-indhold table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } }
.th-indhold th, .th-indhold td { padding: 10px 12px; border-bottom: 1px solid var(--th-linje); text-align: left; }
.th-indhold th { background: var(--th-kort); font-weight: 600; }
.th-indhold iframe, .th-indhold video { max-width: 100%; border-radius: 14px; }
.th-indhold > :last-child { margin-bottom: 0; }

/* =========================================================================
   Artikel
   ========================================================================= */

.th-artikel__hoved { max-width: 860px; }
.th-artikel__kategorier { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.th-artikel__kategorier .th-badge { text-decoration: none; }
.th-artikel__titel { margin: 0; font-family: var(--th-overskrift); font-size: clamp(30px, 1.2rem + 3vw, 52px); font-weight: 700; line-height: 1.06; letter-spacing: -.03em; }
.th-artikel__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 14px; color: var(--th-graa); }
.th-artikel__meta a { color: var(--th-sort); font-weight: 600; text-decoration: none; }
.th-artikel__meta a:hover { color: var(--th-rod); }

.th-artikel__billede { position: relative; margin: 28px 0 0; overflow: hidden; border-radius: 20px; background: var(--th-kort); }
.th-artikel__billede img { display: block; width: 100%; height: auto; }

.th-artikel__split { display: grid; grid-template-columns: minmax(0, 1fr) 324px; gap: 48px; margin-top: 36px; }
.th-artikel__split--fuld { grid-template-columns: minmax(0, 780px); justify-content: center; }
.th-artikel__main { min-width: 0; max-width: 760px; }
.th-artikel__side { min-width: 300px; }
.th-artikel__side-klistret { position: sticky; top: 110px; display: grid; gap: 20px; }
.th-artikel__partner-mobil { display: none; margin-bottom: 20px; }

/* (Annoncefelterne i artiklen styles samlet i afsnittet "Feedback 28 sep" nedenfor.) */

.th-del { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 40px; padding: 18px 20px; border-radius: 16px; background: var(--th-kort); }
.th-del__titel { margin: 0; font-family: var(--th-overskrift); font-size: 16px; font-weight: 600; }
.th-del__links { display: flex; flex-wrap: wrap; gap: 8px; }
.th-del__links a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; background: #fff; color: var(--th-sort); font-size: 14px; font-weight: 600; text-decoration: none; transition: background .2s, color .2s; }
.th-del__links a:hover { background: var(--th-sort); color: #fff; }
.th-del__links svg { width: 18px; height: 18px; }

.th-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.th-postnav__link { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; border: 1px solid var(--th-linje); color: var(--th-sort); font-weight: 600; line-height: 1.3; text-decoration: none; transition: border-color .2s, background .2s; }
.th-postnav__link:hover { border-color: transparent; background: var(--th-kort); }
.th-postnav__link small { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 500; color: var(--th-graa); }
.th-postnav__link--naeste { flex-direction: row-reverse; text-align: right; }
.th-postnav__billede { flex: none; width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }

.th-artikel__efter { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.th-relaterede .th-hoved { margin-bottom: 18px; }

/* =========================================================================
   Arkiver, søgning, forfatter, tekstsider, 404
   ========================================================================= */

.th-arkiv__hoved { max-width: 820px; margin-bottom: 8px; }
.th-arkiv__hoved h1, .th-side__titel { margin: 0; font-family: var(--th-overskrift); font-size: clamp(30px, 1.2rem + 3vw, 52px); line-height: 1.06; letter-spacing: -.03em; }
.th-arkiv__beskrivelse { margin-top: 14px; font-size: 18px; line-height: 1.6; color: var(--th-graa); }
.th-arkiv__beskrivelse p { margin: 0 0 .6em; }
.th-arkiv__hoved--forfatter { display: flex; align-items: center; gap: 22px; }
.th-arkiv__avatar { flex: none; border-radius: 50%; }
.th-arkiv__ekstra { max-width: 820px; }
.th-soeg--venstre { margin: 20px 0 0; max-width: 520px; display: flex; gap: 8px; }
.th-soeg--venstre input { flex: 1; min-width: 0; padding: 12px 16px; border: 1px solid var(--th-linje); border-radius: 10px; font: inherit; }
.th-side--tekst .th-indhold { max-width: 760px; margin-top: 24px; }

.th-404 { max-width: 620px; margin: 40px auto; text-align: center; }
.th-404__kode { margin: 0; font-size: clamp(90px, 20vw, 180px); font-weight: 800; line-height: 1; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 2px var(--th-linje); }
.th-404 h1 { margin: 10px 0 12px; font-size: clamp(28px, 1rem + 3vw, 44px); letter-spacing: -.03em; }
.th-404 p { color: var(--th-graa); }

@media (max-width: 1100px) {
	.th-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.th-artikel__split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.th-artikel__main { max-width: none; }
	.th-artikel__side { min-width: 0; }
	.th-artikel__side-klistret { position: static; }
}
@media (max-width: 900px) {
	.th-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	body.th-tema { font-size: 16px; }
	.th-grid, .th-grid--4 { grid-template-columns: minmax(0, 1fr); }
	.th-artikel__billede { margin-inline: calc(-1 * var(--th-bleed, 20px)); border-radius: 0; }
	.th-artikel__partner-mobil { display: flex; }
	.th-indhold { font-size: 17px; }
	.th-artikel__efter, .th-postnav { grid-template-columns: minmax(0, 1fr); }
	.th-postnav__link--naeste { flex-direction: row; text-align: left; }
	.th-del { flex-direction: column; align-items: flex-start; }
	.th-arkiv__hoved--forfatter { flex-direction: column; align-items: flex-start; }
}

/* =========================================================================
   Nyhedsbrev-skuffe (slider ind fra højre; fuld bredde på mobil)
   ========================================================================= */

.th-skuffe__panel { width: min(460px, 100vw); padding: 18px 28px 32px; }
.th-skuffe__kicker { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--th-rod); }
.th-skuffe__titel { margin: 22px 0 10px; font-family: var(--th-overskrift); font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--th-sort); }
.th-skuffe__tekst { margin: 0 0 22px; font-size: 15px; line-height: 1.6; color: var(--th-mgraa); }
.th-skuffe .gform_wrapper.gform-theme--orbital {
	--gf-color-primary: var(--th-rod); --gf-color-primary-rgb: 91, 11, 11; --gf-color-in-ctrl-primary: var(--th-rod);
	--gf-ctrl-radius: 8px; --gf-ctrl-size-md: 48px; margin: 0 !important;
}
.th-skuffe .gform_wrapper .gform_button { width: 100%; justify-content: center; border-radius: 8px !important; background: var(--th-rod) !important; font-weight: 600 !important; }

/* Rettelser efter første gennemsyn (25 sep) */
.th-side a.th-badge, .th-side a.th-badge:hover { color: #fff; }  /* .th-side a { color: inherit } må ikke gøre badgen rød-på-rød */
.th-artikel__efter > [id^="mboost-"] { grid-column: 1 / -1; }      /* dr3 lægges ind først i sektionen: fuld bredde over boksene */
.th-artikel__efter { align-items: start; }
.th-boks--nyhedsbrev .gform_wrapper .gform_button,
.th-brodkrummer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.th-brodkrummer__sep { color: #b4b6ba; }
.th-brodkrummer [aria-current] { color: var(--th-sort); }

/* =========================================================================
   Feedback 28 sep: arkiv, artikel, annoncer
   ========================================================================= */

/* Sidetal: tekst og pil på én linje (inline-grid stablede dem). */
.th-sidetal .page-numbers { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }

/* Oversigtsbåndet må gå helt ned til arkets bund, når det er sidste modul. */
.th-side > .wp-block-group__inner-container > .th-mork:last-child { margin-bottom: calc(-1 * var(--th-pad)); }

/* "Gå til artikel" */
@media (prefers-reduced-motion: no-preference) { html:focus-within { scroll-behavior: smooth; } }
#artikel { scroll-margin-top: 110px; }
.th-gaa-til {
	display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 10px 16px; border-radius: 999px;
	background: var(--th-sort); color: #fff !important; font-size: 14px; font-weight: 600; text-decoration: none; transition: background .2s;
}
.th-gaa-til:hover { background: var(--th-rod); }
.th-gaa-til svg { width: 14px; height: 14px; }

/* Sociale medier + forfatter: lige høje. */
.th-artikel__efter { align-items: stretch; }
.th-artikel__efter > .th-boks { display: flex; flex-direction: column; justify-content: center; }
.th-artikel__efter > .th-boks--forfatter { flex-direction: row; align-items: center; justify-content: flex-start; }

/* Sidekolonnens CTA: nyhedsbrevet som hovedopfordring, åbner skuffen. */
.th-cta {
	position: relative; overflow: hidden; isolation: isolate; padding: 26px; border-radius: 20px; color: #fff;
	background: radial-gradient(120% 140% at 100% 0%, #7a1818 0%, var(--th-rod) 45%, #3d0606 100%);
}
.th-cta::after {
	content: "@"; position: absolute; right: -14px; bottom: -58px; z-index: -1; font-family: var(--th-overskrift); font-size: 190px; font-weight: 800; line-height: 1;
	color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .12); pointer-events: none;
}
.th-cta__kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.th-cta__titel { margin: 10px 0 8px; font-family: var(--th-overskrift); font-size: 22px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; color: #fff; }
.th-cta__tekst { margin: 0 0 20px; font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .8); }
.th-cta__knap {
	display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 10px;
	background: #fff; color: var(--th-rod) !important; font-weight: 700; text-decoration: none; transition: transform .2s;
}
.th-cta__knap:hover { transform: translateY(-1px); }

/* :where() = lav specificitet (listen indeholder et id), så mobilreglen nedenfor kan overstyre. */
/* Annoncer i artiklen: samme udtryk som forsidens annoncefelter (Manatee lægger slot'et direkte i ankeret). */
:where(.fb-s-blog-two-main__center, .th-ad-anker, .mainContent, #brxe-aeoczy, .fb-s-blog-two-main, .fb-s-blog-one-bottom) > [id^="mboost-"] {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
	/* Ingen padding: Manatee sætter selv slot'ets højde inline (fx 320px) til annoncens størrelse. Etiketten står over boksen. */
	margin: 26px auto 32px; padding: 0; box-sizing: border-box; max-width: 100%;
	border: 1px solid var(--th-linje); border-radius: 16px;
	background: repeating-linear-gradient(135deg, #eeeef0 0 1px, transparent 1px 12px), #f9f9fa;
}
:where(.fb-s-blog-two-main__center, .th-ad-anker, .mainContent, #brxe-aeoczy, .fb-s-blog-two-main, .fb-s-blog-one-bottom) > [id^="mboost-"]::before {
	content: "Annonce"; position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
	font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #9a9ca1;
}
.mainContent > [id^="mboost-"]:last-child { margin-top: 44px; margin-bottom: 0; } /* kun lodret: sidemarginerne styres af reglerne ovenfor/nedenfor */
#brxe-aeoczy > [id^="mboost-"] { width: 100%; }
/* Slots til den anden skærmtype indlæses aldrig (Manatees mediamatch), så de må gerne være helt væk: ingen tomme huller. */
@media (max-width: 767px) { :where(.fb-s-blog-two-main__center, .th-ad-anker, .mainContent, #brxe-aeoczy, .fb-s-blog-two-main, .fb-s-blog-one-bottom) > [id^="mboost-d"] { display: none !important; } }
@media (min-width: 768px) { :where(.fb-s-blog-two-main__center, .th-ad-anker, .mainContent, #brxe-aeoczy, .fb-s-blog-two-main, .fb-s-blog-one-bottom) > [id^="mboost-m"] { display: none !important; } }
/* Mobil: annoncer går ud til kanten som på forsiden. */
@media (max-width: 767px) {
	:is(.fb-s-blog-two-main__center, .mainContent, .fb-s-blog-one-bottom) > [id^="mboost-m"] { width: calc(100% + 2 * var(--th-bleed, 20px)) !important; max-width: none; margin-inline: calc(-1 * var(--th-bleed, 20px)); border-radius: 0; border-inline: 0; }
	.th-artikel__split { margin-top: 24px; }
	.th-artikel__side-klistret { gap: 16px; }
	.th-del { margin-top: 28px; }
	.th-artikel__efter { gap: 12px; }
}

/* Midt-i-teksten-ankeret for dr4/mr4 (single.php). Tomt, indtil Manatee lægger annoncen ind. */
.th-ad-anker { margin: 0; }
.th-ad-anker:empty { display: none; }
.th-ad-anker > [id^="mboost-"] { margin-top: 36px; margin-bottom: 36px; }
@media (max-width: 767px) { .th-ad-anker > [id^="mboost-m"] { width: calc(100% + 2 * var(--th-bleed, 20px)) !important; max-width: none; margin-inline: calc(-1 * var(--th-bleed, 20px)); border-radius: 0; border-inline: 0; } }

/* =========================================================================
   Ladekort i temaet (28 sep). KUN temaet: body.th-tema-præfikset slår ladekort.css/bricks-child/style.css,
   som ejes af ladekort-arbejdet og stadig styrer Bricks-udgaven, partneren gennemgår.
   ========================================================================= */

body.th-tema .ladekort-side { max-width: none; padding: 0; }
body.th-tema .ladekort-side h1 { margin: 0 0 14px; font-size: clamp(30px, 1.2rem + 3vw, 52px); line-height: 1.06; letter-spacing: -.03em; }
body.th-tema .ladekort-side__intro { max-width: 760px; margin-bottom: 28px; font-size: 18px; line-height: 1.6; color: var(--th-graa); }
body.th-tema .ladekort-side h2 { margin: 64px 0 14px; font-size: clamp(24px, 1.2rem + 1vw, 32px); line-height: 1.15; letter-spacing: -.02em; }
body.th-tema .ladekort-side h2 + p { max-width: 760px; color: var(--th-graa); }
body.th-tema .ladekort-side__crumb { margin-bottom: 14px; font-size: 13px; }
body.th-tema .ladekort-side__crumb a { color: var(--th-graa); text-decoration: none; }

/* Søgning, knapper og filtre */
body.th-tema .ladekort__bar { gap: 10px; }
body.th-tema .ladekort__input {
	height: 52px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; background: var(--th-kort);
	font: inherit; font-size: 16px; transition: border-color .2s, background .2s;
}
body.th-tema .ladekort__input:focus { border-color: var(--th-sort); background: #fff; outline: none; }
body.th-tema .ladekort__btn {
	height: 52px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--th-rod); color: #fff;
	font-weight: 600; transition: background .2s;
}
body.th-tema .ladekort__btn:hover { background: var(--th-rod-hover); }
body.th-tema .ladekort__filters { gap: 8px; margin-top: 14px; }
body.th-tema .ladekort__filters label > span {
	display: inline-flex; align-items: center; padding: 8px 14px; border: 1px solid var(--th-linje); border-radius: 999px;
	background: #fff; font-size: 14px; font-weight: 600; color: var(--th-sort); transition: background .15s, border-color .15s, color .15s;
}
body.th-tema .ladekort__filters label:hover > span { border-color: var(--th-sort); }
body.th-tema .ladekort__filters input:checked + span { border-color: var(--th-sort); background: var(--th-sort); color: #fff; }
body.th-tema .ladekort__filters .ladekort__chip--suc input:checked + span { border-color: var(--th-rod); background: var(--th-rod); color: #fff; }
body.th-tema .ladekort__op select { height: 38px; padding: 0 34px 0 14px; border: 1px solid var(--th-linje); border-radius: 999px; background-color: #fff; font: inherit; font-size: 14px; font-weight: 600; }

/* Kortet + listen i ét afrundet kort */
body.th-tema .ladekort__body { margin-top: 18px; overflow: hidden; border: 1px solid var(--th-linje); border-radius: 20px; background: var(--th-kort); }
body.th-tema .ladekort__side { background: #fff; }
body.th-tema .ladekort__list button:hover { background: var(--th-kort); }

/* Fakta som nøgletalskort */
body.th-tema .ladekort-fakta { max-width: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
body.th-tema .ladekort-fakta p { margin: 0; padding: 22px; border-radius: 20px; background: var(--th-kort); font-size: 15px; line-height: 1.6; color: var(--th-mgraa); }
body.th-tema .ladekort-fakta strong { display: block; margin-bottom: 4px; font-family: var(--th-overskrift); font-size: 34px; line-height: 1; letter-spacing: -.02em; color: var(--th-rod); }
body.th-tema .ladekort-fakta .ladekort-fakta__kilde { grid-column: 1 / -1; padding: 0; background: none; font-size: 13px; color: var(--th-graa); }

/* Kommuner: kort med regioner i spalter og antal som badges */
body.th-tema .ladekort-kommuner { max-width: none; columns: 3 240px; column-gap: 32px; padding: 28px; border-radius: 20px; background: var(--th-kort); }
body.th-tema .ladekort-kommuner h3 { margin: 0 0 8px; padding-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--th-rod); break-after: avoid; }
body.th-tema .ladekort-kommuner ul { margin: 0 0 22px; padding: 0; list-style: none; } /* må brydes over spalter (kommunesiden har kun én region) */
body.th-tema .ladekort-kommuner li { break-inside: avoid; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; border-radius: 8px; transition: background .15s; }
body.th-tema .ladekort-kommuner li:hover { background: #fff; }
body.th-tema .ladekort-kommuner li a { flex: 1; padding: 6px 8px; font-weight: 500; color: var(--th-sort); text-decoration: none; }
body.th-tema .ladekort-kommuner li:hover a { color: var(--th-rod); }
body.th-tema .ladekort-kommuner li span { min-width: 34px; margin-right: 6px; padding: 2px 8px; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 600; text-align: center; color: var(--th-graa); }
/* Hver landsdel (Jylland, Fyn, Sjælland) som egen blok: overskriften går over alle spalter, og byerne
   flyder i spalter under den, så grupperne ikke løber sammen (7 okt). */
body.th-tema .ladekort-kommuner h3 { column-span: all; }
body.th-tema .ladekort-kommuner ul + h3 { margin-top: 10px; padding-top: 18px; border-top: 1px solid rgba(23, 26, 32, .08); }
/* Landsdelsoverskrifterne (Jylland, Fyn, Sjælland) er links til landsdelssiderne. Uden dette arver de
   ladekort.css' hvide link- og hoverfarve fra det oprindelige mørke design (7 okt). */
body.th-tema .ladekort-kommuner h3 a, body.th-tema .ladekort-kommuner h3 a:hover, body.th-tema .ladekort-kommuner h3 a:focus-visible { color: var(--th-rod); text-decoration: none; }
body.th-tema .ladekort-kommuner h3 a:hover, body.th-tema .ladekort-kommuner h3 a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* (FAQ-kortene styles fælles for hele sitet i afsnittet "FAQ" nederst.) */
body.th-tema .ladekort-side .wp-block-details { max-width: 860px; margin: 0 0 10px; }

/* Kommuneside: stationstabel og link til hubben */
body.th-tema .ladekort-liste { overflow-x: auto; border: 1px solid var(--th-linje); border-radius: 16px; }
body.th-tema .ladekort-liste table { width: 100%; border-collapse: collapse; }
body.th-tema .ladekort-liste th { padding: 12px 16px; background: var(--th-kort); font-size: 13px; font-weight: 600; text-align: left; color: var(--th-graa); }
body.th-tema .ladekort-liste td { padding: 14px 16px; border-top: 1px solid var(--th-linje); font-size: 15px; }
body.th-tema .ladekort-liste tbody tr:nth-child(even) { background: #fafafb; }
body.th-tema .ladekort-side__hub { margin-top: 28px; }
body.th-tema .ladekort-side__hub a {
	display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 12px 20px; border-radius: 999px;
	background: var(--th-sort); color: #fff !important; font-weight: 600; text-decoration: none;
}

/* Stationssiderne /ladestandere/{landsdel}/{by}/{station}/ (7 okt) */
body.th-tema .ladekort-station__by { display: block; margin-top: 4px; font-size: max(.45em, 16px); font-weight: 600; letter-spacing: 0; color: var(--th-graa); }
body.th-tema .ladekort-station__fakta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 24px 0; border: 1px solid var(--th-linje); border-radius: 16px; overflow: hidden; background: var(--th-linje); }
body.th-tema .ladekort-station__fakta div { padding: 14px 18px; background: #fff; }
body.th-tema .ladekort-station__fakta dt { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--th-graa); }
body.th-tema .ladekort-station__fakta dd { margin: 4px 0 0; font-size: 16px; font-weight: 600; color: var(--th-sort); }
body.th-tema .ladekort-station__knapper { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0 0 32px; }
body.th-tema .ladekort-station__knap { display: inline-flex; align-items: center; padding: 12px 22px; border-radius: 999px; background: var(--th-rod); color: #fff !important; font-weight: 600; text-decoration: none; }
body.th-tema .ladekort-station__knap:hover { filter: brightness(1.15); }
body.th-tema .ladekort-station__link { color: var(--th-graa); font-size: 14px; }
body.th-tema .ladekort-station__naer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
body.th-tema .ladekort-station__naer li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--th-kort); }
body.th-tema .ladekort-station__naer a { font-weight: 600; color: var(--th-sort); text-decoration: none; }
body.th-tema .ladekort-station__naer a:hover { color: var(--th-rod); }
body.th-tema .ladekort-station__naer span { flex: none; font-size: 13px; color: var(--th-graa); }
body.th-tema .ladekort-liste td strong a { color: inherit; text-decoration: none; }
body.th-tema .ladekort-liste td strong a:hover { color: var(--th-rod); text-decoration: underline; }
@media (max-width: 900px) {
	body.th-tema .ladekort-station__fakta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body.th-tema .ladekort-station__fakta div:last-child:nth-child(odd) { grid-column: 1 / -1; }
	body.th-tema .ladekort-station__naer { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) { body.th-tema .ladekort-fakta { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) {
	body.th-tema .ladekort-kommuner { padding: 18px; }
	body.th-tema .ladekort__btn { padding: 0 16px; }
}

/* =========================================================================
   Tesla-biler ([tesla_bil]) i temaet (28 sep, rettet samme dag efter Jannik: "keep the old school car card").
   KUN temaet (body.th-tema); tesla-bil.css ejes af tesla-biler-arbejdet. Kvartetkortet (inkl. data) er uændret;
   kun rammen omkring er ny: kort til venstre, info til højre (lodret centreret for balance), faner + indhold under.
   ========================================================================= */

body.th-tema .tbil { border: 0; border-radius: 24px; background: var(--th-kort); padding: clamp(16px, 2.5vw, 28px); }
body.th-tema .tbil__head {
	grid-template-columns: 380px minmax(0, 1fr);
	grid-template-areas: "kort info" "tabs tabs" "panel panel";
	gap: 24px 48px; padding: 0; align-items: start;
}
body.th-tema .tbil__head > .tbil-kort { grid-area: kort; position: static; margin: 0; }
body.th-tema .tbil__main { display: contents; }

/* Info */
body.th-tema .tbil__info { grid-area: info; align-self: center; padding: 0; font-family: var(--th-overskrift); }
body.th-tema .tbil__kicker { color: var(--th-rod); }
body.th-tema .tbil__navn { font-family: var(--th-overskrift); font-size: clamp(28px, 1.2rem + 1.5vw, 40px); line-height: 1.05; letter-spacing: -.02em; }
body.th-tema .tbil__pris strong { font-family: var(--th-overskrift); font-size: 32px; letter-spacing: -.02em; }
body.th-tema .tbil__vaelg summary { border-radius: 999px; background: #fff; }
body.th-tema .tbil__intro { font-size: 16px; }

/* Faner som piller + indhold i hvidt kort */
body.th-tema .tbil__tabs { grid-area: tabs; gap: 6px; margin: 8px 0 0; padding: 0; border: 0; }
body.th-tema .tbil__tabs [role="tab"] { padding: 10px 16px; border: 1px solid var(--th-linje); border-radius: 999px; background: #fff; font-family: var(--th-overskrift); font-size: 14px; font-weight: 600; color: var(--th-sort); white-space: nowrap; }
body.th-tema .tbil__tabs [role="tab"]:hover { border-color: var(--th-sort); }
body.th-tema .tbil__tabs [role="tab"][aria-selected="true"] { border-color: var(--th-sort); background: var(--th-sort); color: #fff; box-shadow: none; }
body.th-tema .tbil__panel { grid-area: panel; padding: clamp(18px, 2.5vw, 28px); border-radius: 20px; background: #fff; font-family: var(--th-overskrift); }

@media (max-width: 900px) {
	body.th-tema .tbil__head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "kort" "info" "tabs" "panel"; gap: 20px; }
	body.th-tema .tbil__head > .tbil-kort { width: 100%; max-width: 380px; justify-self: center; }
}

/* Skyscrapere ds3/ds4 (160x600): Manatees egen CSS placerer dem absolut i toppen af sidekolonnen (top:0; left:0 / left:160px).
   I Bricks var #brxe-aeoczy positioneret; uden det målte de fra hele siden og lagde sig oven på teksten. */
#brxe-aeoczy { position: relative; }
/* De ligger oven på kolonnens top som i Bricks, så de skal ikke være synlige "Annonce"-felter, når de er tomme. */
#brxe-aeoczy > [id^="mboost-ds"] { margin: 0; border: 0; border-radius: 0; background: none; }
#brxe-aeoczy > [id^="mboost-ds"]::before { content: none; }

/* Foldbar kommuneliste (nav.js). */
body.th-tema .th-foldbar { position: relative; overflow: hidden; border-radius: 20px; transition: max-height .5s var(--th-ease); }
body.th-tema .th-foldbar.is-foldet::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; pointer-events: none;
	background: linear-gradient(180deg, rgba(244, 244, 245, 0), var(--th-kort) 85%);
}
body.th-tema .th-fold-knap {
	display: flex; align-items: center; gap: 8px; margin: -26px auto 0; position: relative; z-index: 1;
	padding: 12px 22px; border: 0; border-radius: 999px; background: var(--th-sort); color: #fff;
	font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .2s;
}
body.th-tema .th-fold-knap:hover { background: var(--th-rod); }
body.th-tema .th-fold-knap svg { transition: transform .3s var(--th-ease); }
body.th-tema .th-fold-knap[aria-expanded="true"] { margin-top: 16px; }
body.th-tema .th-fold-knap[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { body.th-tema .th-foldbar { transition: none; } }

/* Sidekolonnens nyhedsbrev-kort (sticky) skal altid ligge øverst: Manatees ds3/ds4 er absolut placerede og dr2
   kommer efter i DOM'en, så uden z-index gled kortet ind under annoncerne (Jannik 28 sep). */
.th-artikel__side-klistret { position: sticky; z-index: 1001; } /* Manatees ds3/ds4 har selv z-index 1000 */
@media (max-width: 1100px) { .th-artikel__side-klistret { position: relative; } }

/* =========================================================================
   FAQ: ét udtryk på hele sitet (inc/faq.php). Artikler (faq-container), Yoast FAQ-blok og details-blokke.
   Samme som ladekort-hubbens FAQ: kort med +/−.
   ========================================================================= */

.th-faq { display: grid; gap: 10px; margin: 0 0 1.4em; }
.th-faq__punkt, body.th-tema .wp-block-details {
	margin: 0; padding: 0; border: 0; border-radius: 16px; background: var(--th-kort); transition: background .2s;
}
.th-faq__punkt[open], body.th-tema .wp-block-details[open] { background: #ececee; }
.th-faq__spoergsmaal, body.th-tema .wp-block-details > summary {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px;
	font-family: var(--th-overskrift); font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--th-sort);
	list-style: none; cursor: pointer;
}
.th-faq__spoergsmaal::-webkit-details-marker, body.th-tema .wp-block-details > summary::-webkit-details-marker { display: none; }
.th-faq__spoergsmaal::after, body.th-tema .wp-block-details > summary::after {
	content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 29%;
	background: #fff; font-size: 20px; font-weight: 500; line-height: 1; color: var(--th-sort); transition: background .2s, color .2s;
}
.th-faq__punkt[open] > .th-faq__spoergsmaal::after, body.th-tema .wp-block-details[open] > summary::after { content: "–"; background: var(--th-rod); color: #fff; }
.th-faq__svar { padding: 0 22px 20px; }
.th-faq__svar > *, body.th-tema .wp-block-details > :not(summary) { margin: 0 0 .8em; font-size: 16px; line-height: 1.65; color: var(--th-mgraa); }
.th-faq__svar > :last-child { margin-bottom: 0; }
body.th-tema .wp-block-details > :not(summary) { padding: 0 22px; }
body.th-tema .wp-block-details > :last-child { padding-bottom: 20px; }
.th-faq-sektion > h2 { margin-bottom: .8em; }
.th-indhold .th-faq a { color: var(--th-rod); }
/* Kildelinjen under fanerne: ingen lige streg/bjælke under det afrundede panel (Jannik 28 sep). */
body.th-tema .tbil__kilder { margin: 0; padding: 14px 6px 0; border: 0; background: none; font-size: 12.5px; }

/* =========================================================================
   .ladekort-side (flyttet fra bricks-child/style.css 28 sep 2026)
   ========================================================================= */

.ladekort-side {
	/* Kommunesiderne (CPT) ligger i Bricks' flex-container <main class="brxe-container">,
	   hvor en blok ellers krymper til sit indhold. */
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	max-width: 1240px;
	margin: 0 auto;
	padding: 2rem 20px 4rem;
}

.ladekort-side h1 {
	margin: 0 0 0.75rem;
	font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem);
	line-height: 1.15;
}

.ladekort-side h2 {
	margin: 2.5rem 0 0.75rem;
	font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
}

.ladekort-side__intro {
	max-width: 760px;
	margin-bottom: 1.25rem;
	font-size: 1.1rem;
}

.ladekort-side__intro p {
	margin: 0 0 0.8rem;
}

.ladekort-side__intro > :last-child {
	margin-bottom: 0;
}

.ladekort-side__crumb {
	margin: 0 0 1rem;
	font-size: 0.875rem;
	color: #5c5e62;
}

.ladekort-side__crumb a {
	color: inherit;
}

.ladekort-side .wp-block-details {
	max-width: 760px;
	padding: 0.9rem 0;
	border-bottom: 1px solid #dcdde0;
}

.ladekort-side .wp-block-details summary {
	font-weight: 600;
	cursor: pointer;
}

.ladekort-side .wp-block-details p {
	margin: 0.6rem 0 0.2rem;
}

/* Hovedmenuen har 6 punkter (Guides + Værktøjer tilføjet 29 sep): under 1200 px er der ikke plads til menu + knap,
   så dér bruges menuknappen (samme panel som på mobil). 1200–1399 px: lidt strammere afstande. */
@media (max-width: 1399px) {
	.th-hovednav__menu > li > a { padding: 10px 10px; font-size: 15px; }
	.th-hovednav__menu > li.menu-item-has-children > a { padding-right: 0; }
	.th-hovednav .th-sub-knap { width: 24px; margin-right: 4px; }
	.th-navbar { gap: 16px; }
	.th-hdr-cta { padding: 12px 16px; font-size: 15px; }
}
@media (max-width: 1199px) {
	.th-hovednav { display: none; }
	.th-burger { display: grid; }
}

/* Sider med eget fuldbredde-layout (page.php, .th-side--egen: Få rabat). Ingen 760px-kolonne; sidens egen CSS styrer resten. */
.th-side--egen .th-indhold--egen { max-width: none; margin-top: 24px; }
.th-side--egen .th-indhold--egen > h1 { margin-bottom: 0; }

/* Bilkort: status for biler, der ikke kan bestilles ny i Danmark (udgået / sælges ikke her). */
body.th-tema .tbil__status { margin: 10px 0 0; padding: 10px 14px; border-radius: 10px; background: #f4f1f1; color: #3a3d44; font-size: 14px; line-height: 1.5; }
body.th-tema .tbil__status strong { display: block; color: var(--th-rod); font-size: 15px; }
