/* Statiske sider (SEO): lite er mer. Lyst som standard, mørkt når telefonen er i mørk modus.
   Systemfont: ingen eksterne opprinnelser, rask første visning. */
:root {
  color-scheme: light dark;
  --bg: #fafaf8; --panel: #fff; --ink: #141414; --quiet: #6d6d68; --line: #e7e7e2;
  --ev: #f0ae00; --ev-ink: #8a6400; --lenke: #141414;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1113; --panel: #1a1d20; --ink: #f1f1ee; --quiet: #9b9b96; --line: #2a2d31; --ev: #ffc531; --ev-ink: #ffc531; --lenke: #f1f1ee; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--lenke); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 2px; }

.topp { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
  padding: 10px 16px 0; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.merke { font-weight: 800; text-decoration: none; letter-spacing: -.01em; }
.kartknapp { margin-left: auto; font-weight: 600; text-decoration: none; padding: 4px 12px; border-radius: 99px; background: var(--ink); color: var(--bg); font-size: 15px; }
.meny { flex-basis: 100%; display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; padding: 6px 0 8px; font-size: 15px; }
.meny a { text-decoration: none; color: var(--quiet); white-space: nowrap; font-weight: 500; }
.meny a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px var(--ev); }

main { max-width: 760px; margin: 0 auto; padding: 8px 16px 40px; }
h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.1; letter-spacing: -.02em; margin: 18px 0 10px; }
h2 { font-size: 20px; margin: 30px 0 8px; letter-spacing: -.01em; }
h3 { font-size: 17px; margin: 18px 0 4px; }
.ingress { font-size: 19px; color: var(--ink); margin: 0 0 12px; }
.meta, .smuler { color: var(--quiet); font-size: 14px; }
.smuler { margin-top: 12px; }
.smuler a { color: var(--quiet); }
.tom { color: var(--quiet); }

.knapp { display: inline-block; padding: 9px 16px; border-radius: 99px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600; font-size: 15px; margin: 4px 6px 4px 0; }
.knapp.lys { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.knapper { margin: 14px 0; }

.dagh { position: sticky; top: 84px; background: var(--bg); padding: 6px 0; margin-bottom: 0; z-index: 2; }
.liste { list-style: none; margin: 0; padding: 0; }
.rad { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.rad .tid { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ev-ink); font-size: 15px; }
.rad .dag { display: block; font-weight: 600; color: var(--quiet); font-size: 12px; }
.rad .navn { font-weight: 600; text-decoration: none; display: block; }
.rad .navn:hover { text-decoration: underline; }
.rad .meta a { color: var(--quiet); }
.rad .pris { font-size: 14px; color: var(--quiet); white-space: nowrap; }

.tabell { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabell th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--quiet); font-weight: 600; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); }
.tabell td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabell td:first-child a { font-weight: 600; text-decoration: none; }
.hopp { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.hopp a { padding: 4px 12px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px var(--line); text-decoration: none; font-size: 14px; font-weight: 600; }

.kort { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.kort li { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.kort .navn { font-weight: 700; text-decoration: none; font-size: 18px; }
.kort p { margin: 6px 0 0; }

.kategorier { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.kategorier a { display: block; padding: 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; }
.kategorier strong { display: block; }
.kategorier span { color: var(--quiet); font-size: 14px; }

.fakta { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 16px 0; }
.fakta dt { color: var(--quiet); font-size: 14px; padding-top: 2px; }
.fakta dd { margin: 0; }

footer { max-width: 760px; margin: 0 auto; padding: 20px 16px 40px; color: var(--quiet); font-size: 14px; border-top: 1px solid var(--line); }
footer a { color: var(--quiet); }
@media (min-width: 700px) { .dagh { top: 92px; } }

.merke { display: inline-flex; align-items: center; gap: 6px; }
.merke .logo-merke { width: 42px; height: 14px; flex: none; }

/* Kartstripe øverst: siden åpner med kartet, listen kommer under. js/stripe.js tegner kartet lat.
   Uten kart (blokkert, ingen WebGL, ingen JS) er stripen en rolig flate med «Åpne kartet». */
.stripe { position: relative; height: 240px; background: #eef0ea; border-bottom: 1px solid var(--line); overflow: hidden; }
.stripe.liten { height: 150px; }
@media (min-width: 700px) { .stripe { height: 320px; } .stripe.liten { height: 200px; } }
@media (prefers-color-scheme: dark) { .stripe { background: #17181b; } }
.stripe::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgb(255 75 62 / .07), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 47px, rgb(127 127 120 / .08) 47px 48px),
    repeating-linear-gradient(90deg, transparent 0 47px, rgb(127 127 120 / .08) 47px 48px); }
.stripe.klar::before { display: none; }
.stripe-lenke { position: absolute; inset: 0; display: block; color: inherit; cursor: pointer; }
.stripe-lenke:focus-visible { outline-offset: -4px; }
.stripe-kart { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; }
.stripe.klar .stripe-kart { opacity: 1; }
.stripe-kart .maplibregl-canvas { position: absolute; left: 0; top: 0; }
.stripe-knapp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 10px 20px; border-radius: 99px;
  background: var(--ink); color: var(--bg); font-weight: 700; font-size: 15px; white-space: nowrap; box-shadow: 0 2px 12px rgb(0 0 0 / .15);
  transition: top .3s, left .3s, transform .3s; }
.stripe.klar .stripe-knapp { left: 12px; top: auto; bottom: 12px; transform: none; padding: 8px 16px; font-size: 14px; }
.stripe-lenke:hover .stripe-knapp { background: #ff4b3e; color: #fff; }
.stripe-kreditt { position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 6px; background: rgb(255 255 255 / .75); color: #444; font-size: 10px; pointer-events: none; display: none; }
.stripe.klar .stripe-kreditt { display: block; }
.stripe-data { display: none; }
@media (min-width: 900px) { .stripe.klar .stripe-knapp { left: max(16px, calc(50% - 364px)); } }
@media (prefers-reduced-motion: reduce) { .stripe-kart, .stripe-knapp { transition: none; } }

/* MapLibre setter position: relative på kartflaten; den må fortsatt fylle stripen */
.stripe .stripe-kart.maplibregl-map { position: absolute; inset: 0; }
