/* Soveguiden.dk – Midnat
   Én blå familie fra nat til morgen. Oversat fra canvas-retningen "Wow · Midnat". */
:root {
  --n0: #04102A;  /* nat */
  --n1: #0A1F4D;  /* midnat */
  --n2: #12357A;  /* dyb */
  --n3: #1F56B8;  /* blå */
  --n4: #5A8BE0;  /* dyne */
  --n5: #A9C4F2;  /* morgenblå */
  --n6: #E3ECFB;  /* tåge */
  --n7: #F5F8FE;  /* dug */
  --muted: #8FA9D6;
  --seg: #1F3D78;
  --white: #fff;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: 40px;
  color-scheme: dark;
}
@media (max-width: 700px) { :root { --gutter: 20px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--n0); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--n0); color: var(--white); font: 400 17px/1.47 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--n5); text-underline-offset: 3px; }
a:hover { color: var(--n6); }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; }
button, a, input { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--n5); outline-offset: 3px; border-radius: 8px; }
.on-light :focus-visible, .light :focus-visible { outline-color: var(--n3); }
[id] { scroll-margin-top: 16px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--n6); color: var(--n1); padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--n5); }
.small { font-size: 14px; }

/* ---------- Topbar ---------- */
.proto-bar { background: var(--n2); color: var(--n6); text-align: center; font-size: 13px; padding: 6px 16px; }
.topbar { background: var(--n0); color: var(--n5); font-size: 13px; text-align: center; padding: 9px 16px; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 30; background: var(--n1); }
.is-home .site-header { background: transparent; }
.header-inner { display: flex; align-items: center; gap: 32px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; line-height: 1; flex: 0 0 auto; }
.brand:hover { color: var(--white); }
.brand svg { width: 36px; height: 36px; flex: 0 0 auto; }
.brand b { font-size: 25px; font-weight: 800; letter-spacing: -.045em; }
.brand i { margin-left: -10px; font: italic 400 30px var(--serif); color: var(--n5); }
.main-nav ul { list-style: none; padding: 0; display: flex; gap: 26px; font-size: 15px; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--white); text-decoration: none; }
.main-nav a:hover { color: var(--n5); }
.main-nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .14); color: var(--white); display: grid; place-items: center; cursor: pointer; transition: background-color .16s ease-out, transform .16s ease-out; }
.icon-btn:hover { background: rgba(255, 255, 255, .24); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 18px; height: 18px; }
.nav-toggle { display: none; }

/* Knapper */
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--n6); color: var(--n1); font: 600 15px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: transform .16s ease-out, background-color .16s ease-out; }
.pill:hover { background: var(--white); color: var(--n1); }
.pill:active { transform: scale(.96); }
.pill-lg { min-height: 56px; padding: 0 30px; background: var(--white); font-size: 18px; }
.pill-lg:hover { background: var(--n6); }
.pill-ghost { background: rgba(255, 255, 255, .14); color: var(--white); }
.pill-ghost:hover { background: rgba(255, 255, 255, .24); color: var(--white); }

@media (max-width: 900px) {
  .header-inner { height: 60px; gap: 4px; padding-inline: 20px 8px; }
  .brand svg { width: 30px; height: 30px; }
  .brand b { font-size: 21px; }
  .brand i { font-size: 25px; margin-left: -8px; }
  .header-actions { gap: 0; }
  .header-actions .pill { display: none; }
  .icon-btn { background: transparent; }
  .nav-toggle { display: grid; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; }
  .main-nav ul { display: none; flex-direction: column; gap: 0; background: var(--n1); padding: 8px 20px 24px; font-size: 20px; }
  .main-nav.open ul { display: flex; }
  .main-nav a { min-height: 52px; width: 100%; }
  .main-nav .menu-cta { margin-top: 12px; }
  .main-nav .menu-cta a.pill { color: var(--n1); justify-content: center; }
  .main-nav .menu-cta .pill { width: 100%; min-height: 52px; font-size: 17px; }
}
@media (min-width: 901px) { .main-nav .menu-cta { display: none; } }

/* ---------- Søgning ---------- */
.search { border: 0; padding: 0; width: min(640px, calc(100% - 24px)); max-height: calc(100% - 48px); margin: 12px auto auto; border-radius: 24px; background: var(--n1); color: var(--white); overflow: hidden; }
.search::backdrop { background: rgba(4, 16, 42, .7); }
.search-box { padding: 20px; }
.search-row { display: flex; gap: 8px; align-items: center; }
.search input { flex: 1; min-width: 0; min-height: 52px; padding: 0 20px; border: 2px solid transparent; border-radius: 999px; background: var(--n2); color: var(--white); font: 400 17px var(--font); }
.search input::placeholder { color: var(--n5); opacity: 1; }
.search input:focus-visible { outline: 0; border-color: var(--n5); }
.search-results { list-style: none; padding: 12px 0 0; max-height: 50vh; overflow: auto; }
.search-results a { display: block; padding: 10px 14px; border-radius: 14px; color: var(--white); text-decoration: none; }
.search-results a:hover, .search-results a:focus-visible { background: var(--n2); }
.search-results small { display: block; color: var(--n5); font-size: 14px; }
.search-empty { padding: 12px 14px 0; color: var(--n5); margin: 0; }

/* ---------- Animationer ---------- */
@keyframes sgZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes sgInset { to { transform: scale(.88); border-radius: 40px; } }
@keyframes sgIn { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes sgPar { from { transform: translateY(-8%) scale(1.15); } to { transform: translateY(8%) scale(1.15); } }
@keyframes sgDrift { from { transform: scale(1.02); } to { transform: scale(1.1); } }
@media (prefers-reduced-motion: no-preference) {
  .zoom { animation: sgZoom 2.4s var(--ease) both; }
  .hero-in { animation: sgIn .9s var(--ease) .3s both; }
  .drift { animation: sgDrift 22s ease-in-out infinite alternate; }
  .step { animation: sgIn .48s var(--ease) both; }
  .head-in { animation: sgIn .7s var(--ease) both; }
  @supports (animation-timeline: view()) {
    .inset { animation: sgInset linear both; animation-timeline: view(); animation-range: exit 0% exit 70%; }
    .rise { animation: sgIn linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
    .par { animation: sgPar linear both; animation-timeline: view(); animation-range: cover; }
  }
}

/* ---------- Pladsholder til fotos (skiftes med Unsplash-id'et i data-unsplash-id) ---------- */
.ph { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 24px 32px; font-size: 13px; background: var(--n2); color: var(--n5); }
.ph span { max-width: 36em; }
.ph picture, .cat-ph picture { display: contents; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-ph { position: relative; overflow: hidden; }
.cat-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; height: min(920px, max(100svh, 720px)); margin-top: -76px; padding-top: 76px; overflow: hidden; background: var(--n1); display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-photo { position: absolute; inset: 0; overflow: hidden; transform-origin: center top; }
.hero-photo .ph { background: #0C2640; color: var(--muted); justify-content: flex-end; }
.scrim { position: absolute; inset: 0; background: rgba(4, 16, 42, .42); }
.hero-copy { position: relative; z-index: 1; padding: 0 32px; }
.hero h1 { font-size: clamp(3.5rem, 7.8vw, 7rem); line-height: .96; font-weight: 700; letter-spacing: -.055em; margin-bottom: 20px; }
.hero p { margin: 0 auto 36px; max-width: 30em; font-size: 22px; line-height: 1.45; color: var(--n6); }
@media (max-width: 900px) {
  .hero { margin-top: -60px; padding-top: 60px; height: 760px; }
}
@media (max-width: 700px) {
  .hero { align-items: flex-end; justify-content: flex-start; text-align: left; height: min(760px, max(100svh, 640px)); }
  .hero-copy { padding: 0 20px 80px; width: 100%; }
  .hero h1 { margin-bottom: 14px; }
  .hero p { font-size: 18px; margin: 0 0 24px; }
  .hero .pill-lg { display: flex; min-height: 54px; font-size: 17px; }
  .ph { padding: 16px 20px; font-size: 12px; }
}

/* ---------- Kategoriskinne ---------- */
.cats { background: var(--n1); padding: 56px 0 72px; }
.cats h2 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 24px; }
.rail { display: flex; gap: 14px; list-style: none; padding: 0 var(--gutter) 12px; margin: 0; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--n3) transparent; scroll-snap-type: x proximity; }
.cats .rail { max-width: 1360px; margin-inline: auto; }
.rail > li { scroll-snap-align: start; }
.cat { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--n2); color: var(--white); text-decoration: none; height: 100%; transition: transform .32s var(--ease), background-color .2s ease-out; }
.cat:hover { transform: translateY(-6px); background: var(--n3); color: var(--white); }
.cats .rail > li { flex: 1 0 240px; }
.cat-ph { flex: 0 0 64px; height: 64px; background: var(--n3); }
.cat span.t { font-size: 18px; font-weight: 600; }
@media (max-width: 700px) {
  .cats { padding: 36px 0 44px; }
  .cats h2 { font-size: 20px; margin-bottom: 16px; }
  .cats .rail > li { flex: 0 0 210px; }
  .cat { padding: 10px; gap: 12px; }
  .cat-ph { flex-basis: 56px; height: 56px; }
  .cat span.t { font-size: 17px; }
}

/* ---------- Finder-sektion ---------- */
.finder-sec { background: var(--n0); padding: 160px 0; }
.finder-grid { display: flex; flex-wrap: wrap; gap: 64px; align-items: stretch; }
.finder-main { flex: 1 1 640px; min-width: 0; }
.finder-main h2, .finder-main h1 { font-size: clamp(2.6rem, 5vw, 4.5rem); line-height: .98; font-weight: 700; letter-spacing: -.05em; max-width: 9em; margin-bottom: 16px; }
.finder-lead { font-size: 20px; color: var(--n5); max-width: 30em; margin: 0 0 40px; }
.finder-photo { flex: 1 1 420px; min-width: 0; min-height: 640px; position: relative; overflow: hidden; border-radius: 28px; background: var(--n2); }
.finder-photo .ph { background: #1A3F86; }
@media (max-width: 700px) {
  .finder-sec { padding: 80px 0; }
  .finder-grid { gap: 20px; }
  .finder-main { flex-basis: 100%; }
  .finder-lead { font-size: 17px; margin-bottom: 28px; }
  .finder-photo { flex-basis: 100%; min-height: 420px; border-radius: 24px; }
}

/* ---------- Finder-komponent ---------- */
.finder { background: var(--n1); border-radius: 28px; padding: 36px; }
.f-progress { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin-bottom: 28px; }
.f-progress span { height: 4px; border-radius: 4px; background: var(--seg); transition: background-color .3s ease-out; }
.f-progress span.done { background: var(--n5); }
.f-q { font-size: 34px; line-height: 1.1; font-weight: 600; letter-spacing: -.03em; margin-bottom: 22px; outline: 0; }
.f-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { min-height: 92px; padding: 18px 22px; text-align: left; border: 0; border-radius: 18px; background: var(--n2); color: var(--white); cursor: pointer; transition: transform .2s ease-out, background-color .2s ease-out; }
.tile:hover, .tile[aria-pressed="true"] { background: var(--n3); }
.tile:active { transform: scale(.96); }
.tile .l { display: block; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.tile .h { display: block; margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--n5); }
.tile:hover .h, .tile[aria-pressed="true"] .h { color: var(--n6); }
.f-back { margin-top: 18px; min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--n5); font-weight: 600; font-size: 15px; cursor: pointer; }
.f-back:hover { color: var(--white); }
.f-profile { margin: 0 0 20px; font-size: 15px; color: var(--n5); }
.f-results { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.f-card { display: flex; gap: 18px; background: var(--n2); border-radius: 18px; padding: 16px; }
.f-card .ph-s { flex: 0 0 96px; height: 96px; border-radius: 12px; background: var(--n3); display: grid; place-items: center; text-align: center; font-size: 11px; line-height: 1.2; color: var(--n5); padding: 4px; }
.f-card > div { min-width: 0; }
.f-card h4 { font-size: 19px; font-weight: 600; line-height: 1.3; }
.f-card h4 span { font-weight: 400; color: var(--n5); }
.f-card .why { margin: 8px 0 4px; font-size: 13px; font-weight: 600; color: var(--n6); }
.f-card ul { margin: 0 0 8px; padding-left: 18px; font-size: 15px; line-height: 1.45; color: var(--n6); }
.f-card a { font-size: 15px; font-weight: 600; }
.f-card .rl { font-weight: 400; color: var(--muted); }
.f-card a:hover .rl { color: var(--n5); }
.f-card .soon { font-size: 15px; color: var(--muted); margin: 0; }
.f-more { margin: 20px 0 6px; font-size: 15px; font-weight: 600; }
.f-guides { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.f-guides li { line-height: 2; }
.f-guides em { font-style: normal; color: var(--muted); }
.f-ad { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.f-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.f-actions .pill { min-height: 48px; padding: 0 24px; }
.f-status { margin: 10px 0 0; font-size: 14px; color: var(--n5); min-height: 1.4em; }
.f-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.f-noscript { margin: 0; color: var(--n6); }
@media (max-width: 700px) {
  .finder { border-radius: 24px; padding: 22px 18px; }
  .f-progress { gap: 5px; margin-bottom: 22px; }
  .f-q { font-size: 26px; line-height: 1.15; margin-bottom: 16px; }
  .f-options { grid-template-columns: 1fr; gap: 10px; }
  .tile { min-height: 64px; padding: 12px 18px; border-radius: 16px; }
  .tile .l { font-size: 18px; }
  .f-card { gap: 14px; padding: 14px; }
  .f-card .ph-s { flex-basis: 64px; height: 64px; }
  .f-card h4 { font-size: 17px; }
}

/* ---------- Vores udvalg ---------- */
.picks { background: var(--n6); color: var(--n1); padding: 140px 0 140px var(--gutter); overflow: hidden; }
.picks-inner { display: flex; gap: 32px; align-items: stretch; }
.picks h2 { flex: 0 0 auto; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 96px; line-height: .9; font-weight: 800; letter-spacing: -.04em; color: var(--n2); }
.picks .rail { padding: 0 var(--gutter) 12px 0; gap: 20px; flex: 1; min-width: 0; scrollbar-color: var(--n3) transparent; }
.picks .rail > li { flex: 1 0 380px; max-width: 440px; }
.pick { display: block; color: var(--n1); text-decoration: none; transition: transform .32s var(--ease); }
.pick:hover { transform: translateY(-6px); color: var(--n1); }
.pick-ph { position: relative; height: 520px; background: var(--n5); overflow: hidden; }
.pick-ph .ph { background: inherit; color: var(--n1); }
.pick h3 { margin: 16px 0 4px; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.pick p { margin: 0; color: var(--n2); }
@media (max-width: 700px) {
  .picks { padding: 72px 0; }
  .picks-inner { flex-direction: column; gap: 24px; }
  .picks h2 { writing-mode: horizontal-tb; transform: none; font-size: 48px; line-height: .95; padding-right: var(--gutter); }
  .picks .rail { padding-left: 0; padding-right: var(--gutter); gap: 14px; }
  .picks .rail > li { flex: 0 0 300px; }
  .pick-ph { height: 380px; }
  .pick h3 { font-size: 20px; margin-top: 12px; }
}

/* ---------- Parallax ---------- */
.parallax { position: relative; height: 760px; overflow: hidden; background: var(--n1); display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 32px; }
.parallax .par { position: absolute; inset: 0; }
.parallax .par .ph { background: #1A3368; justify-content: flex-start; }
.parallax .scrim { background: linear-gradient(rgba(4,16,42,.55), rgba(4,16,42,.62)); }
.parallax h2, .parallax a.go { text-shadow: 0 2px 24px rgba(4,16,42,.55); }
.parallax-copy { position: relative; }
.parallax h2 { font-size: clamp(2.75rem, 5.55vw, 5rem); line-height: .98; font-weight: 700; letter-spacing: -.05em; max-width: 10em; margin: 0 auto 20px; }
.parallax a.go { font-size: 19px; font-weight: 600; color: var(--white); }
@media (max-width: 700px) {
  .parallax { height: 560px; align-items: flex-end; justify-content: flex-start; text-align: left; padding: 40px 20px; }
  .parallax h2 { margin: 0 0 14px; }
  .parallax a.go { font-size: 17px; }
}

/* ---------- Ærlige guides ---------- */
.honest { background: var(--n7); color: var(--n1); padding: 160px 0; }
.honest-inner { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-end; }
.honest h2 { flex: 1 1 480px; font-size: clamp(2.4rem, 4.45vw, 4rem); line-height: 1; font-weight: 700; letter-spacing: -.045em; }
.honest .col { flex: 1 1 420px; min-width: 0; }
.honest p { font-size: 19px; line-height: 1.5; color: var(--n2); margin: 0 0 18px; }
.honest a { font-weight: 600; color: var(--n2); }
.honest a:hover { color: var(--n3); }
@media (max-width: 700px) {
  .honest { padding: 72px 0; }
  .honest-inner { gap: 14px; display: block; }
  .honest h2 { margin-bottom: 14px; }
  .honest p { font-size: 17px; margin-bottom: 14px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--n0); color: var(--n5); padding: 96px 0 32px; overflow: hidden; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 32px; font-size: 15px; }
.footer-cols h2 { font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 10px; letter-spacing: 0; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { line-height: 2.3; }
.footer-cols a { display: inline-block; }
.footer-ad { margin: 32px 0 0; font-size: 13px; color: var(--muted); }
.footer-ad a { color: var(--muted); }
.giant { margin: 96px 0 0; text-align: center; font-size: 15.5vw; line-height: .82; letter-spacing: -.06em; color: var(--n2); white-space: nowrap; user-select: none; }
/* Dekorativt logo som pseudo-indhold: er ikke tekst for hjælpemidler og tæller ikke i kontrasttjek */
.giant::before { content: "Sove"; font-weight: 800; }
.giant::after { content: "guiden"; font: italic 400 1.18em var(--serif); letter-spacing: -.02em; }
.legal { margin: 32px 0 0; font-size: 12px; color: var(--muted); }
@media (max-width: 700px) {
  .site-footer { padding: 56px 0 28px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 16px 20px; }
  .giant { margin-top: 48px; font-size: 66px; text-align: left; }
  .legal { margin-top: 20px; }
}

/* ---------- Undersider ---------- */
.crumbs { background: var(--n1); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 0; margin: 0; font-size: 14px; color: var(--n5); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 24px; color: var(--n5); }
.page-head { background: var(--n1); padding: 40px 0 72px; }
.page-head h1 { font-size: clamp(2.6rem, 5vw, 4.5rem); line-height: 1; font-weight: 700; letter-spacing: -.05em; max-width: 14em; margin-bottom: 16px; }
.page-head .lead { font-size: 20px; line-height: 1.5; color: var(--n6); max-width: 36em; margin: 0 0 24px; }
.page-head .meta { font-size: 14px; color: var(--n5); margin: 0; }
.page-head .pill { background: var(--white); min-height: 52px; padding: 0 26px; font-size: 17px; }
.page-head .pill:hover { background: var(--n6); }
.section { padding: 96px 0; }
.section h2.sec-h { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 24px; }
.cards { list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--n1); border-radius: 18px; }
.card > a, .card > div { display: block; height: 100%; padding: 24px; color: var(--white); text-decoration: none; border-radius: 18px; transition: background-color .2s ease-out, transform .32s var(--ease); }
.card > a:hover { background: var(--n3); transform: translateY(-4px); color: var(--white); }
.card h2, .card h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; }
.card p { margin: 0; color: var(--n5); font-size: 16px; }
.card > a:hover p { color: var(--n6); }
.card .more { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--white); }
.badge { display: inline-block; vertical-align: middle; font: 600 12px/1 var(--font); padding: 6px 10px; border-radius: 999px; background: var(--n2); color: var(--n6); margin-left: 6px; }
.is-soon > div { opacity: .92; }

.light { background: var(--n7); color: var(--n1); }
.light a { color: var(--n3); }
.light a:hover { color: var(--n2); }
.prose-sec { padding: 96px 0 120px; }
.prose { max-width: 70ch; font-size: 17px; line-height: 1.6; }
.prose-wrap { max-width: 760px; margin-inline: 0; }
.prose h2 { font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -.03em; margin: 56px 0 14px; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin: 32px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose .lead { font-size: 21px; line-height: 1.5; color: var(--n2); }
.prose blockquote { margin: 0 0 1.4em; padding: 16px 22px; background: var(--n6); border-radius: 14px; }
.prose blockquote p:last-child { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.4em; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #C9DAF6; vertical-align: top; }
.prose th { background: var(--n6); }
.prose code { font-size: .9em; background: var(--n6); padding: .1em .35em; border-radius: 4px; }
.prose details { background: var(--n6); border-radius: 14px; padding: 4px 20px; margin-bottom: 10px; }
.prose summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.prose details p { margin: 0 0 14px; }
.prose .related { list-style: none; padding: 0; }
.prose .related li { padding: 10px 0; }
.prose .badge { background: var(--n6); color: var(--n2); }
.tool-top { background: var(--n0); padding: 64px 0 96px; }
.tool-top .finder { max-width: 820px; }
@media (max-width: 700px) {
  .page-head { padding: 28px 0 48px; }
  .page-head .lead { font-size: 18px; }
  .section { padding: 56px 0; }
  .prose-sec { padding: 56px 0 72px; }
  .prose h2 { font-size: 26px; margin-top: 40px; }
  .tool-top { padding: 32px 0 56px; }
}

/* Reduceret bevægelse: indhold bevares, rejsen droppes */
@media (prefers-reduced-motion: reduce) {
  .cat:hover, .pick:hover, .card > a:hover { transform: none; }
  * { scroll-behavior: auto !important; }
}

[hidden] { display: none !important; }

/* ---------- Artikler og hubs ---------- */
.art-head { padding-bottom: 48px; }
.art-head h1 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); line-height: 1.04; max-width: 20em; margin-bottom: 18px; }
.art-by { font-size: 15px; color: var(--n5); margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.art-by a { color: var(--n6); }
.ad-box { max-width: 760px; background: var(--n6); color: var(--n0); border-left: 8px solid var(--n4); border-radius: 14px; padding: 16px 20px; margin: 0 0 24px; font-size: 16px; line-height: 1.45; }
.ad-box p { margin: 6px 0 0; }
.ad-box a { color: var(--n2); font-weight: 600; }
.ad-tag { display: inline-block; background: var(--n0); color: var(--white); font: 700 13px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px; }
.ad-short { display: none; }
@media (max-width: 700px) { .ad-long { display: none; } .ad-short { display: block; } }
.ad-label { display: inline-block; background: var(--n6); color: var(--n0); font: 700 12px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 6px; margin-bottom: 10px; }

.flag, .proto-mark { background: #FFD84D; color: #1a1400; font: 700 .78em/1.2 var(--font); letter-spacing: .03em; padding: 2px 7px; border-radius: 5px; white-space: normal; }
.proto-note { margin-top: 48px; border: 2px dashed #B8860B; background: #FFF8DB; color: #3b2f00; border-radius: 14px; padding: 8px 22px 12px; font-size: 15px; }
.proto-note h2 { font-size: 16px !important; margin: 14px 0 8px !important; letter-spacing: 0 !important; }
.proto-note a { color: #6b4e00; }

.art-wrap { padding-top: 56px; }
.art-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 72px; align-items: start; }
.art-grid:not(:has(.toc-col)) { grid-template-columns: minmax(0, 1fr); }
.toc-col { position: sticky; top: 96px; }
.toc summary { font: 700 13px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--n2); cursor: pointer; min-height: 44px; display: flex; align-items: center; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid #C9DAF6; }
.toc li a { display: block; padding: 7px 0 7px 16px; font-size: 15px; line-height: 1.35; text-decoration: none; color: var(--n1); }
.toc li a:hover { color: var(--n3); }
.art-body { max-width: none; }
.art-body > *, .art-body .art-sec > * { max-width: 60ch; }
.art-body .art-sec > .table-wrap, .art-body .art-sec > .pbox, .art-body .art-sec > .faq-item { max-width: none; }
.art-body .art-sec > .faq-item { max-width: 60ch; }
.art-sec { scroll-margin-top: 90px; }
.art-sec h2 { scroll-margin-top: 90px; }
.art-intro { font-size: 18px; margin-bottom: 8px; }
.art-intro h2 { font-size: 21px; line-height: 1.25; margin: 1.4em 0 .5em; }
.art-intro > p:first-child { font-size: 20px; line-height: 1.5; color: var(--n1); }
.art-sec.sec-short { background: var(--n6); border-radius: 18px; padding: 8px 28px 14px; margin: 40px 0 0; }
.art-sec.sec-short h2 { margin-top: 20px; }
.art-body .art-sec + .art-sec:not(.sec-short) { margin-top: 0; }
.art-body .table-wrap { overflow-x: auto; margin: 0 0 1.6em; border: 1px solid #C9DAF6; border-radius: 12px; background: var(--white); }
.art-body .table-wrap table { display: table; width: 100%; min-width: 560px; margin: 0; font-size: 15px; }
.art-body .table-wrap th { white-space: nowrap; }
@media (max-width: 600px) {
  .art-body .table-wrap { background: linear-gradient(to right, var(--white) 30%, transparent), linear-gradient(to left, var(--white) 30%, transparent) 100% 0, linear-gradient(to right, rgba(10,31,77,.18), transparent) 0 0, linear-gradient(to left, rgba(10,31,77,.18), transparent) 100% 0; background-repeat: no-repeat; background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%; background-attachment: local, local, scroll, scroll; background-color: var(--white); }
  .art-body .table-wrap table { min-width: 520px; font-size: 14px; }
}
.art-body .table-wrap tr:last-child td { border-bottom: 0; }
.prose sup.fn { font-size: .72em; line-height: 0; }
.prose sup.fn a { padding: 0 2px; font-weight: 600; text-decoration: none; }
.faq-item { background: var(--white) !important; border: 1px solid #C9DAF6; }
.faq-item[open] { background: var(--white); }
.faq-item > div { padding-bottom: 6px; }
.readmore ul { list-style: none; padding: 0; }
.readmore li { padding: 12px 0; border-bottom: 1px solid #C9DAF6; margin: 0; }
.readmore li a { font-weight: 600; }
.soon-link { color: var(--n1); }
.soon-link .badge { background: var(--n6); color: var(--n2); }
.art-disclaimer { font-size: 15px; color: #35507e; margin-top: 32px; }
.sources { padding-left: 2.2em; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.sources li { margin-bottom: .7em; }
.src-note { font-size: 15px; color: #35507e; }

.pbox { background: var(--white); border: 1px solid #C9DAF6; border-radius: 18px; padding: 22px 24px 18px; margin: 8px 0 2em; color: var(--n0); }
.pbox-title { font-weight: 700; font-size: 20px; letter-spacing: -.02em; margin: 0 0 6px; }
.pbox-ad { font-size: 13px; color: #35507e; margin: 0 0 14px; }
.pbox-proto { font-size: 13px; margin: 0 0 12px; max-width: none; }
.plist { list-style: none; padding: 0 !important; margin: 0 0 12px; }
.pitem { display: flex; gap: 16px 24px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid #DCE7FA; margin: 0 !important; }
.pitem h3 { font-size: 17px !important; margin: 0 0 4px !important; letter-spacing: -.01em; }
.pspecs { font-size: 14px; color: #35507e; margin: 0 !important; }
.pbuy { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.pprice { font-weight: 700; font-size: 18px; margin: 0 !important; }
.pprice small { font-weight: 400; font-size: 13px; color: #35507e; margin-left: 4px; }
.rl { font: 600 12px/1 var(--font); letter-spacing: .02em; color: var(--n2); opacity: .85; }
.pill-dark, .light a.pill-dark { background: var(--n1); color: var(--white); }
.pill-dark:hover, .light a.pill-dark:hover { background: var(--n3); color: var(--white); }
.pbox-foot { font-size: 13px; color: #35507e; margin: 0 !important; }
.pbox-empty p { max-width: 52ch; }

@media (max-width: 1000px) {
  .art-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc-col { position: static; background: var(--white); border: 1px solid #C9DAF6; border-radius: 14px; padding: 0 16px; }
}
@media (max-width: 700px) {
  .art-wrap { padding-top: 32px; }
  .art-sec.sec-short { padding: 4px 18px 10px; }
  .pbox { padding: 18px 16px 14px; }
}
.art-body > .art-sec.sec-short { max-width: 900px; }

/* ---------- Værktøjer: dyne, hovedpude, sengestørrelse ---------- */
.f-advice { background: var(--n2); border-radius: 18px; padding: 20px 22px; margin: 0 0 14px; }
.f-advice p { margin: 0 0 10px; font-size: 16px; line-height: 1.5; color: var(--n6); }
.f-advice p:last-child { margin-bottom: 0; }
.f-advice .f-big { font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: var(--white); }
.f-small { font-size: 14px !important; color: var(--n5) !important; }
.f-caveat { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.f-empty { background: var(--n2); border-radius: 18px; padding: 16px 18px; color: var(--n6); }
.f-card h4 { overflow-wrap: anywhere; }
.f-card a:focus-visible, .pill:focus-visible { outline: 2px solid var(--n5); outline-offset: 3px; }
.calc { display: grid; gap: 18px; }
.calc fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.calc-legend { width: 100%; margin-bottom: 4px; padding: 0; font-size: 26px; }
.calc-radio { position: relative; flex: 1 1 180px; }
.calc-radio input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.calc-radio span { display: flex; align-items: center; min-height: 56px; padding: 0 22px; border-radius: 16px; background: var(--n2); font-size: 18px; font-weight: 600; transition: background-color .2s ease-out; }
.calc-radio input:checked + span { background: var(--n3); }
.calc-radio input:focus-visible + span { outline: 2px solid var(--n5); outline-offset: 3px; }
.calc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.calc-field { display: flex; flex-direction: column; gap: 6px; }
.calc-field label { font-size: 15px; font-weight: 600; color: var(--n6); }
.calc-field input[type=number] { min-height: 52px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--n2); color: var(--white); font: inherit; font-size: 18px; width: 100%; }
.calc-field input::placeholder { color: var(--muted); font-size: 15px; }
.calc-field input:focus-visible { outline: 2px solid var(--n5); outline-offset: 2px; }
.calc-help { margin: -8px 0 0; }
.calc-check { display: flex; gap: 12px; align-items: center; min-height: 44px; font-size: 16px; cursor: pointer; }
.calc-check input { width: 22px; height: 22px; accent-color: var(--n4); flex: none; }
.calc-err { margin: 0; min-height: 0; color: #FFD2A8; font-weight: 600; }
.calc-err:empty { display: none; }
.calc-out { margin-top: 24px; }
.calc-out:empty { margin: 0; }
.bed-result { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.bed-fig { margin: 0; background: var(--n2); border-radius: 18px; padding: 14px; }
.bed-svg { width: 100%; height: auto; max-height: 520px; }
.bed-svg .bs-room { fill: var(--n0); stroke: var(--n5); stroke-width: 3; }
.bed-svg .bs-frame { fill: #3b5a96; }
.bed-svg .bs-mat { fill: var(--n3); }
.bed-svg .bs-pillow { fill: var(--n6); }
.bed-svg .bs-duvet { fill: var(--n4); opacity: .85; }
.bed-svg .bs-person { stroke: var(--white); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 8; }
.bed-svg .bs-dim { stroke: var(--n5); stroke-width: 2; stroke-dasharray: 6 5; }
.bed-svg .bs-t { fill: var(--white); font-family: var(--font); font-weight: 600; }
.bed-table { width: 100%; border-collapse: collapse; margin: 6px 0 10px; font-size: 15px; }
.bed-table th, .bed-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--seg); }
.bed-table thead th { color: var(--n5); font-weight: 600; font-size: 13px; }
.bed-table tr.is-rec th, .bed-table tr.is-rec td { color: var(--white); font-weight: 700; }
.tool-top .finder:has(.calc) { max-width: 1040px; }
@media (max-width: 800px) {
  .bed-result { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .calc-legend { font-size: 22px; }
}

/* Diskret reklamemarkering øverst i artikler */
.ad-line { max-width: 760px; margin: 0 0 20px; font-size: 14px; line-height: 1.4; color: var(--n5); }
.ad-line strong { font-weight: 600; color: var(--white); }
.ad-line a { color: var(--n5); }
