/* Spørgsmålssider i sidens nye flade stil (samme look som Ordbog i ny stil).
   Layout: smal læsespalte (max 920px), header med flad ikon-tegl, hvide paneler, teal som eneste accent; marigold kun for strøm/pris. */
:root {
  --bg: #f2f5f8; --surface: #ffffff; --ink: #15212c; --muted: #5b6875; --line: #e3e8ee;
  --spot: #0d7c6e; --spot-dark: #0b6e62; --spot-soft: #e3f3ef; --well: #f3f6f9;
  --el: #e8a317; --el-soft: #fbefd2; --warn-bg: #fdecea; --warn-ink: #8a2a1d;
  --fade: linear-gradient(180deg, #d4ebe5 0, #dcedeb 90px, #e6eff2 200px, #f2f5f8 380px);
  --font: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif; --focus: #2f6fd6;
  color-scheme: light;
}

html, body { margin: 0; background: var(--fade) no-repeat, var(--bg); color: var(--ink); }
/* the page's padding sits on .wrap, not on body: site-menu.js gives its bar a margin equal to body's top padding, which lifted the phone bar off the bottom edge */
body { font-family: var(--font); font-size: 16px; line-height: 1.55; padding: 0; }
.wrap { max-width: 920px; margin: 0 auto; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 48px max(16px, env(safe-area-inset-left, 0px)); display: grid; gap: 18px; font-variant-numeric: tabular-nums; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; line-height: 1.18; text-wrap: balance; }
h1 { font-size: clamp(1.6rem, 3.8vw, 2.25rem); }
h2 { font-size: 1.28rem; }
h3 { font-size: 1.05rem; }
p { margin: 0; max-width: 66ch; }
a { color: var(--spot); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid #2f6fd6; outline-offset: 2px; }

.crumbs { font-size: .86rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }

header { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; align-items: center; }
header .ic { grid-row: span 2; width: 64px; height: 64px; border-radius: 4px; overflow: hidden; background: var(--surface); box-shadow: 0 1px 2px rgba(30,50,70,.08), 0 6px 16px rgba(30,50,70,.08); }
header .ic svg { display: block; width: 100%; height: 100%; }
.intro { color: var(--muted); }
@media (max-width: 520px) { header .ic { width: 48px; height: 48px; grid-row: auto; } header .intro { grid-column: 1 / -1; } }

.panel { background: var(--surface); border-radius: 4px; box-shadow: 0 1px 2px rgba(30,50,70,.05), 0 14px 36px rgba(30,50,70,.08); padding: 22px; display: grid; gap: 14px; align-content: start; min-width: 0; }
@media (max-width: 640px) { .panel { padding: 16px 14px; } }
.label { font-size: .72rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }

/* Kort svar: den bid Google og AI citerer */
.answer { border-left: 3px solid var(--spot); padding: 2px 0 2px 16px; display: grid; gap: 6px; }
.answer p { font-size: 1.08rem; }

/* Live-boks: dagens tal */
.live { background: var(--well); border-radius: 4px; padding: 16px; display: grid; gap: 12px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.fact { background: var(--surface); border-radius: 3px; padding: 10px 12px; display: grid; gap: 2px; }
.fact b { font-size: 1.35rem; font-weight: 600; }
.fact span { font-size: .84rem; color: var(--muted); }
.note { font-size: .82rem; color: var(--muted); }

/* Døgnets priser som søjler */
.bars { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); align-items: end; gap: 2px; height: 120px; }
.bars i { display: block; background: color-mix(in srgb, var(--el) 55%, transparent); border-radius: 2px 2px 0 0; }
.bars i.lo { background: var(--spot); }
.bars i.hi { background: var(--el); }
.axis { display: grid; grid-template-columns: repeat(4, 1fr); font-size: .76rem; color: var(--muted); }
.axis span:last-child { text-align: right; }

.steps { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; max-width: 66ch; }
.tbl { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
td.n, th.n { text-align: right; white-space: nowrap; }

.split { display: grid; gap: 8px; }
.split .row { display: grid; grid-template-columns: 9.5em minmax(0, 1fr) 4.5em; gap: 10px; align-items: center; font-size: .9rem; }
.split .bar { height: 14px; border-radius: 2px; background: var(--muted); opacity: .45; }
.split .bar.el { background: var(--el); opacity: 1; }
.split .row b { text-align: right; font-weight: 600; }
@media (max-width: 520px) { .split .row { grid-template-columns: 7em minmax(0, 1fr) 4em; } }

.related { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font-size: .9rem; font-weight: 500; color: var(--ink); text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.pill:hover { border-color: var(--spot); color: var(--spot); }
footer.src { font-size: .84rem; color: var(--muted); display: grid; gap: 4px; }

/* Oversigten */
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.qlist { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; }
.qlist li + li { border-top: 1px solid var(--line); }
.qlist a { display: block; padding: 9px 0; color: var(--ink); text-decoration: none; font-weight: 500; }
.qlist a:hover { color: var(--spot); }
.season { background: var(--spot-soft); }
.season .qlist a { font-weight: 600; }

/* Månedssøjler (fx spotpris pr. måned) */
.monbars { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; align-items: end; }
.monbars .mb { display: flex; flex-direction: column; justify-content: flex-end; text-align: center; gap: 3px; min-width: 0; }
.monbars i { display: block; background: var(--el); border-radius: 2px 2px 0 0; }
.monbars .v { font-size: .66rem; color: var(--muted); white-space: nowrap; }
.monbars .m { font-size: .74rem; color: var(--muted); }
.monbars.has-prev .m { height: 2.4em; }
.monbars .m small { display: block; font-size: .6rem; line-height: 1.1; }
@media (max-width: 640px) { .monbars .m small { font-size: .5rem; letter-spacing: -.02em; } }
.monbars .mb.prev i, .prevnote i { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.6) 0 3px, transparent 3px 6px); }
.monbars .mb.prev i { background-size: 100% calc(100% - var(--solid, 0%)); background-repeat: no-repeat; background-position: top; }
.prevnote i { display: inline-block; width: 12px; height: 10px; margin-right: 6px; vertical-align: -1px; border-radius: 2px; background-color: var(--el); }
ul.steps { padding-left: 1.2em; }

/* Nettarif time for time, vinter og sommer side om side */
.pkey { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .84rem; color: var(--muted); }
.pkey i { display: inline-block; width: 12px; height: 10px; margin-right: 6px; vertical-align: -1px; border-radius: 2px; }
.pbars { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; align-items: end; height: 130px; }
.pb { display: flex; align-items: flex-end; gap: 1px; height: 100%; }
.pb i { flex: 1; border-radius: 2px 2px 0 0; min-height: 2px; }
.pb i.a, .pkey i.a { background: var(--spot); }
.pb i.b, .pkey i.b { background: #9fd3c9; }
@media (max-width: 520px) { .pbars { gap: 1px; } }

/* Valg af prisområde */
.areasw { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.areasw .label { margin-right: 4px; }
.areasw button { font: 500 .9rem var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.areasw button[aria-pressed="true"] { background: var(--spot-soft); border-color: var(--spot); color: var(--spot-dark); font-weight: 600; }
[data-area] { display: grid; gap: 18px; }
[data-area][hidden] { display: none; }

/* Forsidens kort midt på en side */
.bigcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 640px) { .bigcards { grid-template-columns: minmax(0, 1fr); } .ml-title { min-height: 0; } }
.fcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.fcard { position: relative; display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 12px 14px; min-height: 74px; color: var(--ink); text-decoration: none;
  background: var(--surface); border-radius: 4px; box-shadow: 0 1px 2px rgba(30,50,70,.05), 0 10px 28px rgba(30,50,70,.08); transition: transform .15s, box-shadow .15s; }
.fcard:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(30,50,70,.06), 0 16px 36px rgba(30,50,70,.13); }
.fcard .lic { grid-row: 1 / span 2; width: 50px; height: 50px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.fcard .lic svg { display: block; width: 100%; height: 100%; }
.fcard strong { font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; align-self: end; }
.fcard > span:last-child { font-size: .84rem; line-height: 1.35; color: var(--muted); align-self: start; }
.fcard::after { content: "→"; position: absolute; right: 14px; top: 12px; color: var(--spot); font-weight: 600; opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s; }
.fcard:hover::after { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fcard, .fcard::after { transition: none; } .fcard:hover { transform: none; } }