/* Gebyr.net – stilark. Ett CSS, systemfonter, ingen eksterne ressurser.
   Designkonsept «Kvitteringen»: petrol (trygghet, offentlig presisjon) + korall (signal: her er beløpet) +
   solgule detaljer på varmt papir (ingen markering under uthevet tekst – eieren 14.10.2026).
   Palett: petrol #0d5c63 · dyp petrol #083d42 · lys petrol #127a83 · korall #ff7a4d / mørk korall #c2410c ·
           sol #ffd166 · papir #f7f5f0 · blekk #15212b
   FELLER SOM ER UNNGÅTT MED VILJE (prosjektminnet):
   - ingen backdrop-filter/filter/transform på .topp eller forfedre til mobilmenyen (knekker position:fixed)
   - rutenett bruker minmax(min(Xpx,100%),1fr) så de kan krympe under X uten sidescroll
   - skjulte nedtrekk er display:none (visibility:hidden teller i scrollWidth)
   - herotekst står i en egen mørk boks (ikke på bildet) – kontrasten avhenger ikke av bildet
   - ingen samtykkebanner her: Googles egen CMP tegner sitt eget */
:root {
  --ink: #15212b; --muted: #55636e; --line: #e3ded4; --bg: #f7f5f0; --card: #fff;
  --brand: #0d5c63; --brand-d: #083d42; --brand-l: #127a83; --brand-soft: #e3f1f1;
  --coral: #ff7a4d; --coral-d: #c2410c; --coral-soft: #fff0e9;
  --sun: #ffd166; --sun-soft: #fff6dc;
  --green: #1f7a4d; --green-soft: #e5f4ec; --red: #b42318; --red-soft: #fdecea;
  --r: 14px; --r-sm: 9px; --maxw: 1220px; --tekst: 46rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --skygge: 0 1px 2px rgba(8,61,66,.06), 0 6px 22px rgba(8,61,66,.08);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.7; color: var(--ink);
  background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-l); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--coral-d); }
h1, h2, h3, h4 { color: var(--brand-d); line-height: 1.2; font-weight: 800; letter-spacing: -.015em; overflow-wrap: break-word; }
h1 { font-size: clamp(1.7rem, 4.4vw, 2.7rem); margin: .2rem 0 .7rem; letter-spacing: -.025em; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin: 2.3rem 0 .7rem; }
h3 { font-size: 1.18rem; margin: 1.7rem 0 .5rem; }
p { margin: 0 0 1.05rem; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.hopp { position: absolute; left: -999px; top: 0; background: #fff; padding: .6rem 1rem; z-index: 999; }
.hopp:focus { left: 1rem; top: .5rem; }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 4px; }
.knapp { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; background: var(--brand);
  color: #fff; border: 0; border-radius: 999px; padding: .62rem 1.15rem; font: inherit; font-weight: 700; font-size: .96rem;
  text-decoration: none; cursor: pointer; line-height: 1.2; }
.knapp:hover { background: var(--brand-d); color: #fff; }

/* ---------- Toppen: rad 1 (logo, søk, snarveier) + rad 2 (15 seksjoner) ---------- */
.topp { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.topp-rad { max-width: 1320px; margin: 0 auto; padding: 0 1.25rem; height: 64px; display: flex; align-items: center; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--brand-d); flex: 0 0 auto;
  font-weight: 800; font-size: 1.32rem; letter-spacing: -.03em; white-space: nowrap; }
.logo svg { width: 38px; height: 38px; flex: 0 0 auto; }
.logo b span, .bunn-logo b span { color: var(--coral-d); }
.sokknapp { flex: 1 1 auto; max-width: 440px; display: flex; align-items: center; gap: .6rem; height: 42px; padding: 0 1rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--muted); font: inherit;
  font-size: .95rem; cursor: pointer; text-align: left; min-width: 0; }
.sokknapp span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sokknapp svg { width: 19px; height: 19px; flex: 0 0 auto; color: var(--brand); }
.sokknapp:hover { border-color: var(--brand-l); }
.snarmeny { display: flex; gap: .25rem; margin-left: auto; }
.snarmeny a { padding: .45rem .75rem; border-radius: 999px; font-weight: 700; font-size: .92rem; text-decoration: none;
  color: var(--brand-d); white-space: nowrap; }
.snarmeny a:hover, .snarmeny a[aria-current="page"] { background: var(--brand-soft); }
.burger { display: none; align-items: center; gap: .4rem; background: var(--brand); color: #fff; border: 0;
  border-radius: 999px; height: 42px; padding: 0 1rem; font: inherit; font-weight: 700; cursor: pointer; margin-left: auto; }
.burger svg { width: 20px; height: 20px; }
.hovedmeny { border-top: 1px solid var(--line); background: #fff; }
.meny { list-style: none; margin: 0 auto; padding: 0 .75rem; max-width: 1320px; display: flex; flex-wrap: wrap;
  justify-content: center; }
.meny > li { position: relative; display: flex; align-items: center; }
.meny .mp { display: flex; align-items: center; gap: .3rem; padding: .62rem .2rem .62rem .45rem; font-weight: 650;
  font-size: .88rem; color: var(--ink); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.meny .mp .ico { font-size: .95rem; line-height: 1; }
.meny > li:hover > .mp, .meny .mp[aria-current="page"] { color: var(--brand-d); border-bottom-color: var(--coral); }
.mm-apne { background: none; border: 0; padding: .3rem .2rem; cursor: pointer; color: var(--muted); display: inline-flex;
  border-radius: 4px; }
.mm-apne svg { width: 12px; height: 12px; }
.mm-apne:hover { color: var(--brand-d); }
.nedtrekk { display: none; position: absolute; left: 0; top: 100%; width: 330px; max-width: calc(100vw - 16px); background: #fff; z-index: 60;
  border: 1px solid var(--line); border-top: 3px solid var(--coral); border-radius: 0 0 var(--r) var(--r);
  box-shadow: 0 18px 40px rgba(8,61,66,.18); padding: .8rem; }
.nedtrekk::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.meny > li.hoyre > .nedtrekk { left: auto; right: 0; }
.meny > li:hover > .nedtrekk, .meny > li:focus-within > .nedtrekk, .meny > li.utvidet > .nedtrekk { display: block; }
.nt-blurb { font-size: .86rem; color: var(--muted); line-height: 1.45; margin: 0 .4rem .5rem; }
.nedtrekk ul { list-style: none; margin: 0; padding: 0; }
.nedtrekk a { display: flex; justify-content: space-between; gap: 1rem; padding: .42rem .55rem; border-radius: 7px;
  color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 550; }
.nedtrekk a:hover { background: var(--brand-soft); color: var(--brand-d); }
.nedtrekk .ant { color: var(--muted); font-size: .8rem; font-weight: 500; background: var(--bg); border-radius: 999px;
  padding: 0 .45rem; align-self: center; }
.nedtrekk .alle { border-top: 1px solid var(--line); margin-top: .35rem; padding-top: .6rem; font-weight: 750; color: var(--brand-l); }
.kun-mobil { display: none !important; }

@media (max-width: 1099px) {
  .snarmeny { display: none; }
  .burger { display: inline-flex; }
  .sokknapp { max-width: none; }
  .hovedmeny { display: none; position: fixed; left: 0; right: 0; top: 64px; bottom: 0; overflow-y: auto;
    overscroll-behavior: contain; border-top: 1px solid var(--line); z-index: 49; }
  .hovedmeny.apen { display: block; }
  .meny { display: block; padding: .5rem 0 2rem; }
  .meny > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .meny .mp { flex: 1 1 auto; font-size: 1.02rem; padding: .85rem 1.25rem; border-bottom: 0; }
  .meny .mp .ico { font-size: 1.15rem; width: 1.6rem; }
  .mm-apne { padding: .85rem 1.25rem; }
  .mm-apne svg { width: 16px; height: 16px; transition: transform .15s; }
  .meny > li.utvidet .mm-apne svg { transform: rotate(180deg); }
  .nedtrekk { position: static; width: 100%; flex: 0 0 100%; box-shadow: none; border: 0; border-radius: 0;
    background: var(--bg); padding: .4rem 1rem .8rem 2.8rem; }
  .nedtrekk::before { display: none; }
  .meny > li:hover > .nedtrekk, .meny > li:focus-within > .nedtrekk { display: none; }
  .meny > li.utvidet > .nedtrekk { display: block; }
  .kun-mobil { display: flex !important; }
  .kun-mobil .mp { font-weight: 750; color: var(--brand-d); }
}
@media (max-width: 560px) {
  .topp-rad { gap: .5rem; padding: 0 .8rem; }
  .logo { font-size: 1.12rem; gap: .4rem; }
  .logo svg { width: 34px; height: 34px; }
  .sokknapp { width: 42px; flex: 0 0 42px; padding: 0; justify-content: center; margin-left: auto; }
  .sokknapp span { display: none; }
  .burger { margin-left: 0; padding: 0 .8rem; }
}
@media (max-width: 360px) { .burger span { display: none; } }

/* ---------- Søkepanel ---------- */
.sokpanel { display: none; position: fixed; inset: 0; background: rgba(8,30,33,.55); z-index: 100; padding: 7vh 1rem 1rem; }
.sokpanel.apen { display: block; }
.sokboks { max-width: 720px; margin: 0 auto; background: #fff; border-radius: var(--r); padding: 1rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.3); max-height: 82vh; display: flex; flex-direction: column; }
.sokrad { display: flex; gap: .5rem; }
.sokrad input { flex: 1; min-width: 0; font: inherit; font-size: 1.1rem; padding: .75rem 1rem; border: 2px solid var(--brand);
  border-radius: 999px; }
.soklukk { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 0 1rem; font: inherit;
  font-weight: 700; cursor: pointer; color: var(--brand-d); }
.sokresultat { list-style: none; margin: .6rem 0 0; padding: 0; overflow-y: auto; }
.sokresultat a { display: block; padding: .6rem .7rem; border-radius: 9px; text-decoration: none; color: var(--ink); }
.sokresultat a:hover, .sokresultat a:focus { background: var(--brand-soft); }
.sokresultat .s { display: block; font-size: .76rem; font-weight: 750; text-transform: uppercase; letter-spacing: .04em;
  color: var(--coral-d); }
.sokresultat .t { display: block; font-weight: 750; color: var(--brand-d); }
.sokresultat .d { display: block; font-size: .9rem; color: var(--muted); line-height: 1.45; }

/* ---------- Brødsmuler ---------- */
.smuler ol { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem .45rem; padding: 0; margin: 1.1rem 0 .4rem;
  font-size: .86rem; color: var(--muted); }
.smuler li:not(:last-child)::after { content: "›"; margin-left: .45rem; color: #a59f93; }
.smuler a { color: var(--muted); text-decoration: none; }
.smuler a:hover { color: var(--brand-l); text-decoration: underline; }
.smuler [aria-current] { color: var(--ink); overflow-wrap: anywhere; }

/* ---------- Hero (forside med karusell) og sidehero ---------- */
.hero { position: relative; background: var(--brand-d); min-height: 500px; display: flex; align-items: center; overflow: hidden; }
.hero .serie { position: absolute; inset: 0; }
.hero .serie img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  transition: opacity 1.2s ease; }
.hero .serie img.aktiv { opacity: 1; }
.hero .wrap { position: relative; width: 100%; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.hero-panel { background: rgba(8,40,44,.86); color: #fff; border-radius: 18px; padding: 1.6rem 1.7rem; max-width: 640px;
  box-shadow: 0 18px 50px rgba(0,0,0,.25); }
.hero-panel h1 { color: #fff; }
.hero-panel p { color: #e6f2f2; }
.hero-panel .lead { font-size: 1.12rem; }
.pille { display: inline-block; background: var(--sun); color: var(--brand-d); font-weight: 800; font-size: .78rem;
  letter-spacing: .03em; text-transform: uppercase; border-radius: 999px; padding: .22rem .7rem; }
.hero-sok { display: flex; gap: .5rem; margin: 1rem 0 .8rem; background: #fff; border-radius: 999px; padding: .3rem; }
.hero-sok input { flex: 1; min-width: 0; border: 0; font: inherit; padding: .55rem .9rem; border-radius: 999px; background: transparent; }
.hero-sok input:focus { outline: none; }
.hero-sok:focus-within { box-shadow: 0 0 0 3px var(--coral); }
.hero-sok .knapp { background: var(--coral-d); }
.hero-sok .knapp:hover { background: #9a3412; }
.snarveier { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.snarveier a { display: inline-block; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px; padding: .25rem .75rem; font-size: .88rem; font-weight: 650; text-decoration: none; }
.snarveier a:hover { background: #fff; color: var(--brand-d); }
.kar-kontroll { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; }
.kar-pause { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); border-radius: 999px;
  padding: .25rem .8rem; font: inherit; font-size: .82rem; cursor: pointer; }
.kar-prikker { display: flex; gap: .35rem; }
.kar-prikker button { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0;
  cursor: pointer; }
.kar-prikker button[aria-current="true"] { background: var(--sun); border-color: var(--sun); }
.kreditt { font-size: .76rem; color: var(--muted); line-height: 1.4; margin: .4rem 0 0; }
.kreditt a { color: var(--muted); }
.hero-kreditt { margin: .45rem 0 0; }
.sidehero { position: relative; background: linear-gradient(135deg, var(--brand-d), var(--brand)); overflow: hidden; }
.sidehero.med-bilde { min-height: 300px; display: flex; align-items: flex-end; }
.sidehero img.bak { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sidehero .wrap { position: relative; width: 100%; padding-top: 2.2rem; padding-bottom: 2rem; }
.sidehero .hero-panel { max-width: 720px; }
.sidehero:not(.med-bilde) .hero-panel { background: transparent; box-shadow: none; padding: 0; }
.sidehero h1 { margin-top: .5rem; }
@media (max-width: 700px) {
  .hero { min-height: 0; }
  .hero .wrap { padding-top: 1.2rem; padding-bottom: 1.2rem; }
  .hero.med-bilde .wrap { padding-top: 9rem; padding-bottom: 1rem; }
  .hero-panel { padding: 1.2rem 1.1rem; border-radius: 14px; }
  .hero-panel .lead { font-size: 1rem; }
  .sidehero.med-bilde { min-height: 0; }
  .sidehero.med-bilde .wrap { padding-top: 7rem; padding-bottom: 1rem; }
  .hero-sok .knapp { padding: .55rem .9rem; }
}

/* ---------- Blokker, kort og rutenett ---------- */
.blokk { padding: 2.6rem 0; }
.blokk.hvit { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.blokk > .wrap > h2:first-child { margin-top: 0; }
.rutenett { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1.1rem; margin: 1rem 0; }
.kort { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--skygge); transition: box-shadow .15s, transform .15s; }
.kort:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(8,61,66,.14); color: var(--ink); }
.kort-bilde { aspect-ratio: 16 / 9; background: var(--brand-soft); overflow: hidden; }
.kort-bilde img { width: 100%; height: 100%; object-fit: cover; }
.kort-bilde.tom { display: flex; align-items: center; justify-content: center; font-size: 2.4rem;
  background: linear-gradient(135deg, var(--brand-soft), var(--sun-soft)); }
.kort-kropp { padding: .9rem 1rem 1.1rem; }
.kort h3 { margin: .2rem 0 .35rem; font-size: 1.06rem; line-height: 1.3; }
.kort p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.5; }
.merke { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  color: var(--coral-d); }
.seksjonsrutenett { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: .8rem; margin-top: 1rem; }
.seksjonskort { display: flex; align-items: flex-start; gap: .85rem; padding: .95rem 1rem; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.seksjonskort:hover { border-color: var(--brand-l); background: #fff; box-shadow: var(--skygge); color: var(--ink); }
.seksjonskort .ico { flex: 0 0 46px; height: 46px; border-radius: 12px; background: #fff; display: flex; align-items: center;
  justify-content: center; font-size: 1.45rem; border: 1px solid var(--line); }
.sk-tekst { flex: 1; min-width: 0; }
.sk-tekst b { display: block; color: var(--brand-d); font-size: 1.02rem; line-height: 1.3; }
.sk-tekst small { display: block; color: var(--muted); font-size: .86rem; line-height: 1.45; margin-top: .2rem; }
.seksjonskort .ant { flex: 0 0 auto; background: var(--brand); color: #fff; font-size: .78rem; font-weight: 800;
  border-radius: 999px; padding: .1rem .55rem; }
.verktoyrutenett { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: .8rem; margin: 1rem 0; }
.verktoykort { display: block; padding: 1rem 1.1rem; background: var(--card); border: 1px solid var(--line);
  border-left: 5px solid var(--coral); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.verktoykort:hover { box-shadow: var(--skygge); color: var(--ink); border-color: var(--brand-l); border-left-color: var(--coral); }
.verktoykort b { display: block; color: var(--brand-d); font-size: 1.04rem; }
.verktoykort small { display: block; color: var(--muted); font-size: .9rem; line-height: 1.45; margin-top: .25rem; }
.kommune-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--sun-soft); border: 1px solid #f3dea0; border-radius: 18px; padding: 1.4rem 1.6rem; }
.kommune-band h2 { margin: 0 0 .3rem; }
.kommune-band p { margin: 0; }
.velkomst { }
.velkomst h2 { margin-top: 0; }

/* ---------- Seksjon og hub ---------- */
.hub-intro { margin: 1rem 0 1.2rem; font-size: 1.05rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0 0 1rem; }
.chips a { display: inline-block; padding: .35rem .85rem; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-weight: 650; font-size: .9rem; text-decoration: none; color: var(--brand-d); }
.chips a:hover { border-color: var(--brand-l); background: var(--brand-soft); }
.gruppe { margin: 2.2rem 0; }
.gruppe-topp { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1rem; border-bottom: 2px solid var(--line);
  padding-bottom: .5rem; }
.gruppe-topp h2 { margin: 0; flex: 1 1 auto; }
.gruppe-topp h2 a { color: inherit; text-decoration: none; }
.gruppe-topp h2 a:hover { color: var(--brand-l); text-decoration: underline; }
.gruppe-topp p { flex: 1 1 100%; order: 3; margin: .2rem 0 0; color: var(--muted); font-size: .95rem; }
.gruppe-topp .ant { font-size: .85rem; color: var(--muted); font-weight: 650; }
.lenkeliste { columns: 2 280px; column-gap: 2rem; padding-left: 1.1rem; margin: .4rem 0 0; }
.lenkeliste li { margin: .25rem 0; break-inside: avoid; }
.fylkesliste { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr));
  gap: .45rem; padding: 0; margin: 1rem 0; }
.fylkesliste a { display: block; padding: .55rem .8rem; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  font-weight: 700; text-decoration: none; color: var(--brand-d); }
.fylkesliste a:hover { border-color: var(--brand-l); }
.bokstaver { display: flex; flex-wrap: wrap; gap: .3rem; margin: 1rem 0; }
.bokstaver a { display: inline-flex; width: 2rem; height: 2rem; align-items: center; justify-content: center; background: #fff;
  border: 1px solid var(--line); border-radius: 8px; font-weight: 800; text-decoration: none; color: var(--brand-d); }
.filterfelt { width: 100%; max-width: 460px; font: inherit; padding: .6rem 1rem; border: 1px solid #c9c2b4;
  border-radius: 999px; margin: .3rem 0 .8rem; background: #fff; }

/* ---------- Artikkel ---------- */
.artikkel-rute { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.4rem; align-items: start; margin-bottom: 2rem; }
.artikkel-rute.en { grid-template-columns: minmax(0, 1fr); }
.artikkel { min-width: 0; max-width: var(--tekst); }
.artikkel.bred { max-width: none; margin-bottom: 2.5rem; }
.art-topp { margin-bottom: 1.2rem; }
.art-merke { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .6rem 0 0; font-size: .8rem;
  font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--coral-d); }
.art-merke a { color: var(--coral-d); text-decoration: none; }
.niva { background: var(--brand-soft); color: var(--brand-d); border-radius: 999px; padding: .05rem .55rem; text-transform: none;
  letter-spacing: 0; font-weight: 700; }
.ingress { font-size: 1.17rem; line-height: 1.6; color: #2b3a44; }
.byline { display: flex; flex-wrap: wrap; gap: .25rem 1.2rem; font-size: .88rem; color: var(--muted);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .6rem 0; }
.byline a { color: var(--brand-d); font-weight: 650; }
.artikkelbilde { margin: 0 0 1.4rem; }
.artikkelbilde img { border-radius: var(--r); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: .7rem 1.1rem; margin: 0 0 1.6rem; }
.toc summary { font-weight: 800; color: var(--brand-d); cursor: pointer; }
.toc ol { margin: .5rem 0 .2rem; padding-left: 1.3rem; font-size: .95rem; }
.toc li { margin: .2rem 0; }
.art-kropp > :first-child { margin-top: 0; }
.art-kropp ul, .art-kropp ol { padding-left: 1.3rem; }
.art-kropp li { margin: .3rem 0; }
.art-kropp blockquote { margin: 1.2rem 0; padding: .8rem 1.1rem; border-left: 4px solid var(--brand-l); background: #fff;
  border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.art-kropp blockquote footer { font-size: .85rem; color: var(--muted); margin-top: .3rem; }
.lovtekst { font-style: italic; }
.lovtekst footer { font-style: normal; }
.fakta, .obs, .tips { border-radius: var(--r); padding: 1rem 1.15rem .3rem; margin: 1.4rem 0; border: 1px solid; }
.fakta { background: var(--brand-soft); border-color: #c4e2e2; }
.obs { background: var(--coral-soft); border-color: #ffd4c2; }
.tips { background: var(--green-soft); border-color: #c6e7d4; }
.fakta h3, .obs h3, .tips h3, .boks-tittel { margin-top: 0; font-size: 1.04rem; }
.boks-tittel { font-weight: 700; margin-bottom: .5rem; line-height: 1.3; }
.obs h3, .obs .boks-tittel { color: var(--coral-d); }
.tips h3, .tips .boks-tittel { color: var(--green); }
.tabell { overflow-x: auto; margin: 1.2rem 0 1.4rem; border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  -webkit-overflow-scrolling: touch; }
.tabell table { border-collapse: collapse; width: 100%; font-size: .93rem; line-height: 1.45; }
.tabell th, .tabell td { padding: .55rem .75rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabell thead th { background: var(--brand-d); color: #fff; font-weight: 700; white-space: nowrap; }
.tabell tbody tr:nth-child(even) { background: #faf8f4; }
.tabell tbody tr:last-child td { border-bottom: 0; }
.tabell td.tall { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 700; }
.sorterbar thead th { cursor: pointer; user-select: none; }
.sorterbar thead th::after { content: " ↕"; opacity: .55; font-size: .8em; }
.sorterbar thead th[aria-sort="ascending"]::after { content: " ↑"; opacity: 1; }
.sorterbar thead th[aria-sort="descending"]::after { content: " ↓"; opacity: 1; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); margin: .55rem 0; padding: 0 1rem; }
.faq summary { cursor: pointer; font-weight: 750; color: var(--brand-d); padding: .75rem 0; list-style-position: outside; }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: .6rem; }
.faq details > div > :last-child { margin-bottom: .8rem; }
.kilder { font-size: .9rem; border-top: 2px solid var(--line); margin-top: 2.2rem; }
.kilder h2 { font-size: 1.15rem; }
.kilder li { margin: .3rem 0; overflow-wrap: anywhere; }
.forfatter { display: flex; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 1rem 1.15rem; margin: 2rem 0 0; font-size: .92rem; }
.f-ikon svg { width: 44px; height: 44px; }
.f-navn { font-weight: 750; margin-bottom: .3rem; }
.forfatter p:last-child { margin-bottom: 0; }
.datokilde { font-size: .88rem; margin-top: 1.5rem; }

/* sidekolonne */
.sidekolonne { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 1rem; margin-top: 1.4rem; }
.boks { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; }
.boks h2 { font-size: 1.02rem; margin: 0 0 .5rem; }
.boks ul { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.boks li { border-top: 1px solid #f0ece4; }
.boks li a { display: block; padding: .4rem 0; text-decoration: none; color: var(--ink); line-height: 1.4; }
.boks li a:hover { color: var(--brand-l); }
.boks li a[aria-current="page"] { color: var(--coral-d); font-weight: 750; }
.boks .alle { font-weight: 750; color: var(--brand-l); }
.verktoy-boks { background: var(--brand-d); border-color: var(--brand-d); color: #e6f2f2; }
.verktoy-boks h2 { color: #fff; }
.verktoy-boks p { font-size: .92rem; }
.verktoy-boks .knapp { background: var(--sun); color: var(--brand-d); }
.boks-merke { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--sun); margin: 0 0 .2rem; }
@media (max-width: 999px) {
  .artikkel-rute { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sidekolonne { position: static; margin-top: 2rem; }
  .artikkel { max-width: none; }
}
@media (max-width: 560px) {
  body { font-size: 1.02rem; }
  .wrap { padding: 0 1rem; }
  .ingress { font-size: 1.07rem; }
  .tabell th, .tabell td { padding: .45rem .55rem; }
}

/* bildekreditt, alle artikler, 404 */
.kredittfilter { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: .5rem; margin: 1.2rem 0 .3rem; }
.kredittfilter input, .kredittfilter select { font: inherit; font-size: .95rem; padding: .5rem .8rem; border: 1px solid #c9c2b4;
  border-radius: 10px; background: #fff; min-width: 0; }
.kredittabell td { overflow-wrap: anywhere; }
.endr { display: block; font-size: .8rem; color: var(--muted); }
.alle-liste h2 a { color: inherit; text-decoration: none; }
.to-kol { columns: 2 260px; column-gap: 2rem; }
.to-kol li { break-inside: avoid; }

/* ---------- Bunn ---------- */
.bunn { background: var(--brand-d); color: #cfe3e3; margin-top: 3rem; padding: 2.6rem 0 1.4rem; font-size: .93rem; }
.bunn a { color: #fff; text-decoration: none; }
.bunn a:hover { color: var(--sun); text-decoration: underline; }
.bunn h2 { color: #fff; font-size: 1rem; margin: 0 0 .6rem; letter-spacing: 0; }
.bunn ul { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.bunn li { margin: .28rem 0; }
.bunn-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 2rem; align-items: start; }
.bunn-lenker ul { columns: 2 210px; column-gap: 2rem; margin: .4rem 0 0; }
.bunn-lenker li { break-inside: avoid; }
.bunn-logo { display: flex; align-items: center; gap: .55rem; font-size: 1.3rem; color: #fff; }
.bunn-logo svg { width: 38px; height: 38px; }
.bunn-logo b span { color: var(--coral); }
.bunn-nederst { border-top: 1px solid rgba(255,255,255,.15); margin: 1.4rem 0 0; padding-top: 1rem; font-size: .84rem; color: #a9c9c9; }
@media (max-width: 860px) { .bunn-grid { grid-template-columns: 1fr; gap: .5rem; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topp, .bunn, .sidekolonne, .relatert, .sokpanel, .hero .serie, .kar-kontroll { display: none !important; }
  body { background: #fff; }
}
.intro-band { padding: 1.8rem 0 0; }
.intro-band .hub-intro { margin: 0; font-size: 1.1rem; }

/* ---------- Kommuneregisteret (register/sider.py) ---------- */
table.tabell { border-collapse: collapse; width: 100%; }
div.tabell > table.tabell { margin: 0; }
tr.sum td { font-weight: 800; background: var(--sun-soft) !important; border-top: 2px solid var(--brand-d); }
aside.kildeboks, aside.merknad { border-radius: var(--r); padding: .9rem 1.1rem; margin: 1.4rem 0; font-size: .92rem;
  border: 1px solid var(--line); background: #fff; }
aside.kildeboks { border-left: 5px solid var(--brand-l); }
aside.merknad { border-left: 5px solid var(--coral); background: var(--coral-soft); border-color: #ffd4c2; }
aside.kildeboks > :last-child, aside.merknad > :last-child { margin-bottom: 0; }
aside.kildeboks h2, aside.kildeboks h3, aside.merknad h2, aside.merknad h3 { font-size: 1rem; margin-top: 0; }
sup.fn { font-size: .72em; line-height: 0; }
sup.fn a { text-decoration: none; font-weight: 700; }
ol.merknader { font-size: .86rem; color: var(--muted); padding-left: 1.4rem; }
ol.merknader li { margin: .2rem 0; }
ul.kolonneliste { columns: 3 200px; column-gap: 1.6rem; padding-left: 1.1rem; }
ul.kolonneliste li { break-inside: avoid; margin: .2rem 0; }
div.kolonner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 0 1.6rem; }

/* ---------- Introtekster (eieren 14.10.2026): ÉN spalte, bredere enn brødteksten og midtstilt i innholdsbredden ----------
   Gjelder velkomsttekst, seksjons- og hubintro (også Satser A–Å). Artikkelbrødteksten er urørt (46rem). */
.hub-intro, .velkomst { max-width: 54rem; margin-left: auto; margin-right: auto; }
.satsboks ul li { display: flex; justify-content: space-between; gap: .8rem; padding: .4rem 0; line-height: 1.35; }
.satsboks ul li span { color: var(--ink); font-size: .88rem; }
.satsboks ul li b { white-space: nowrap; color: var(--brand-d); font-variant-numeric: tabular-nums; }
.satsboks .alle { display: inline-block; margin-top: .5rem; font-weight: 750; font-size: .92rem; }

/* ---- Kalkulatorene (verktoy/js/*.js lager markupen med vt-klassene). Manglet helt før helsesjekken 15.10.2026:
   skjemaene sto med nettleserens standardstil, og lange <option>-tekster gjorde nedtrekkslistene opptil 507 px brede
   på mobil (sidescroll ved 320–414 px). Felt krymper (min-width:0, max-width:100%); tabeller ruller i egen boks. ---- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.verktoy-app { margin: 1.2rem 0 1.8rem; }
.vt-skjema { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--r);
  padding: 1.1rem 1.2rem 1.2rem; box-shadow: var(--skygge); margin: 0 0 1.2rem; }
.vt-rad { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: .2rem 1rem; }
.vt-rad.vt-rutenett { grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); }
.vt-felt { min-width: 0; margin: 0 0 .9rem; }
.vt-felt label, .vt-felt legend { display: block; font-weight: 700; font-size: .95rem; line-height: 1.35; margin: 0 0 .3rem;
  color: var(--brand-d); }
.vt-skjema input[type="text"], .vt-skjema input[type="search"], .vt-skjema input[type="date"], .vt-skjema select {
  display: block; width: 100%; max-width: 100%; min-width: 0; font: inherit; font-size: 1rem; line-height: 1.3;
  padding: .6rem .75rem; border: 1px solid #c9c2b4; border-radius: var(--r-sm); background: #fff; color: var(--ink); }
.vt-skjema input:focus-visible, .vt-skjema select:focus-visible { outline: 3px solid var(--coral); outline-offset: 1px;
  border-color: var(--brand); }
.vt-hjelp { font-size: .86rem; color: var(--muted); line-height: 1.45; margin: .3rem 0 0; }
.vt-avkryss { display: flex; align-items: flex-start; gap: .55rem; margin: 0 0 .7rem; font-size: .95rem; line-height: 1.45;
  cursor: pointer; }
.vt-avkryss input, .vt-valg input { width: 1.15rem; height: 1.15rem; margin: .18rem 0 0; flex: 0 0 auto;
  accent-color: var(--brand); }
.vt-gruppe { border: 1px solid var(--line); border-radius: var(--r-sm); padding: .7rem .9rem .5rem; }
.vt-gruppe legend { padding: 0 .3rem; }
.vt-valg { display: flex; flex-direction: column; gap: .35rem; }
.vt-valg label { display: flex; align-items: flex-start; gap: .55rem; font-size: .95rem; line-height: 1.45; cursor: pointer; }
.vt-skjema .knapp { margin-top: .3rem; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.vt-ut:empty { display: none; }
.vt-resultat { background: var(--brand-soft); border: 1px solid #c4e2e2; border-left: 5px solid var(--brand);
  border-radius: var(--r); padding: 1rem 1.2rem .6rem; margin: 0 0 1.2rem; overflow-wrap: break-word; overflow-x: auto; }
.vt-resultat:focus { outline: none; }
.vt-resultat:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.vt-resultat h3 { margin-top: 0; color: var(--brand-d); }
.vt-resultat.vt-varsel { background: var(--coral-soft); border-color: #ffd4c2; border-left-color: var(--coral-d); }
.vt-resultat.vt-varsel h3 { color: var(--coral-d); }
.vt-feil { background: var(--red-soft); color: var(--red); border: 1px solid #f5c2bd; border-radius: var(--r-sm);
  padding: .6rem .9rem; font-weight: 600; }
.vt-merk { font-size: .88rem; color: var(--muted); line-height: 1.5; }
ul.vt-merk { padding-left: 1.2rem; }
.vt-liste { overflow-x: auto; margin: 0 0 1.2rem; }
.vt-tabell { border-collapse: collapse; width: 100%; font-size: .93rem; line-height: 1.45; margin: .4rem 0 1rem;
  background: #fff; border-radius: var(--r-sm); }
.vt-tabell th, .vt-tabell td { padding: .5rem .7rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.vt-tabell thead th { background: var(--brand-d); color: #fff; white-space: nowrap; }
.vt-tabell tbody th { font-weight: 600; }
.vt-tabell td.tall { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 700; }
.vt-tabell tr.sum th, .vt-tabell tr.sum td { font-weight: 800; background: var(--sun-soft); border-top: 2px solid var(--brand-d); }
.lenkeknapp { background: none; border: 0; padding: .2rem 0; font: inherit; font-size: .92rem; font-weight: 700;
  color: var(--brand-l); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; white-space: nowrap; }
.lenkeknapp:hover { color: var(--coral-d); }
/* Lenker på lys petrol (fakta-/resultatbokser): --brand-l ga 4,38:1 mot --brand-soft (< 4,5 AA) – helsesjekken 15.10.2026 */
.fakta a, .vt-resultat a { color: var(--brand); }
.meny > li.esc > .nedtrekk { display: none !important; }   /* Esc lukker nedtrekket mens fokus står på menyknappen */

/* ---------- Datadrevne registre, runde 2 (botesatser/, bomstasjoner/, ordliste/ – 15.10.2026) ----------
   Klassene modulene bruker: nav.alfabet, dl.ordliste > div.begrep > dt > dfn, div.eksempel, data.sats, p.sats,
   p.hjemmel, p.ogsa, p.les-mer, .fakta, blockquote.lovtekst, aside.kildeboks, span.muted, table.tabell.sorterbar[data-v],
   caption. Brede tabeller ligger alltid i div.tabell (egen rullboks) – siden selv ruller aldri sidelengs. */
.register-band { padding: 1.4rem 0 .4rem; }
.artikkel.bred.register { max-width: none; }
.tabell caption { caption-side: top; text-align: left; font-weight: 700; font-size: .95rem; padding: .6rem .75rem;
  color: var(--brand-d); background: var(--bg); border-bottom: 1px solid var(--line); }
.tabell td a { overflow-wrap: anywhere; }
table.satser td:first-child { min-width: 12rem; }
nav.alfabet { display: flex; flex-wrap: wrap; gap: .3rem; margin: 1rem 0 1.4rem; }
nav.alfabet a, nav.alfabet span { display: inline-flex; width: 2rem; height: 2rem; align-items: center; justify-content: center;
  border-radius: 8px; font-weight: 700; font-size: .92rem; text-decoration: none; }
nav.alfabet a { background: #fff; border: 1px solid var(--line); color: var(--brand-d); }
nav.alfabet a:hover, nav.alfabet a:focus-visible { background: var(--brand); color: #fff; border-color: var(--brand); }
nav.alfabet span { color: #6b7780; background: transparent; border: 1px dashed var(--line); }
dl.ordliste { margin: 0 0 1.6rem; }
dl.ordliste div.begrep { padding: .9rem 0 .7rem; border-bottom: 1px solid var(--line); }
dl.ordliste div.begrep:target { background: var(--sun-soft); box-shadow: 0 0 0 .6rem var(--sun-soft); border-radius: 4px; }
dl.ordliste dt { font-weight: 800; font-size: 1.08rem; color: var(--brand-d); }
dl.ordliste dfn { font-style: normal; }
dl.ordliste dd { margin: .25rem 0 0; }
dl.ordliste dd > p { margin: .35rem 0; }
div.eksempel { background: var(--sun-soft); border: 1px solid #f3dea0; border-left: 5px solid var(--sun); border-radius: var(--r);
  padding: .8rem 1.1rem; margin: 1.2rem 0; }
div.eksempel > :first-child { margin-top: 0; }
div.eksempel > :last-child { margin-bottom: 0; }
data.sats { font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--brand-d); }
p.sats { font-size: .95rem; }
p.hjemmel, p.ogsa, p.les-mer { font-size: .9rem; line-height: 1.5; }
p.hjemmel, p.ogsa { color: var(--muted); }
p.les-mer a { font-weight: 650; }
.art-kropp span.muted { font-size: .9em; }
/* Ankerlenker (innholdsfortegnelse, alfabet, #begrep): fra 1100 px er den klebrige toppen to rader (158 px), ikke 64 –
   uten dette havnet overskriften under menyen (funnet ved integreringen 15.10.2026). */
@media (min-width: 1100px) { html { scroll-padding-top: 175px; } }
.artikkel.bred.register .artikkelbilde, .artikkel.bred.register .art-topp { max-width: var(--tekst); }
