/* ==========================================================================
   Foreldelse.com - hovedstilark
   Palett: dyp bordeaux/oksblod (jus, alvor, tradisjon) + varm messing-gull,
   på et rolig pergament-underlag. Serif-overskrifter gir et redaksjonelt,
   juridisk preg. Uttrykk: etterrettelig, klassisk, lettlest.
   ========================================================================== */

:root {
  --brand:        #7A2E3B;   /* bordeaux / oksblod */
  --brand-d:      #59202B;
  --brand-l:      #9C4453;
  --brand-soft:   #F3E4E2;
  --accent:       #B8893B;   /* messing-gull */
  --accent-d:     #8F671F;
  --accent-soft:  #F6ECD6;
  --sage:         #3E7D5A;   /* positivt / "innen frist" */
  --sage-soft:    #E3F0E8;
  --rust:         #C2553D;   /* advarsel / "foreldet" */
  --rust-soft:    #F8E7E0;
  --ink:          #2B1F23;   /* mørk plomme-brun tekst */
  --text:         #3A2E31;
  --text-light:   #7A6B6F;
  --muted:        #7A6B6F;
  --bg:           #FAF5EF;   /* pergament */
  --bg-2:         #F1E7DA;
  --white:        #FFFFFF;
  --border:       #E6D8CC;

  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow: 0 2px 6px rgba(60,28,34,.05), 0 10px 26px rgba(60,28,34,.08);
  --shadow-lg: 0 16px 48px rgba(60,28,34,.18);
  --maxw: 1150px;

  /* Fargetoner for flate hoder + ikon-kort (tone-1..6) */
  --t1a:#8A3242; --t1b:#5A2029;   /* bordeaux */
  --t2a:#C29A4A; --t2b:#9A6F26;   /* messing-gull */
  --t3a:#4A8C68; --t3b:#2F6147;   /* sage (innen frist) */
  --t4a:#4C4651; --t4b:#2E2932;   /* skifer-plomme (lov) */
  --t5a:#B26A4A; --t5b:#8A4E33;   /* terrakotta (skade/liv) */
  --t6a:#6E4763; --t6b:#4A2E44;   /* dempet plomme */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-d); }

h1,h2,h3,h4 { font-family: var(--serif); font-weight: 700; line-height: 1.18; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(1.95rem, 4vw, 2.85rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2.05rem); }
h3 { font-size: 1.24rem; }
p  { margin-bottom: 1rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.2rem; }
.narrow { max-width: 740px; }

.section { padding: 3.4rem 0; }
.section.alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 2.4rem; }
.section-head .eyebrow { color: var(--brand); font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-family: var(--sans); }
.section-head h2 { margin: .4rem 0 .6rem; }
.section-head p { color: var(--text-light); font-size: 1.06rem; }

/* ---------- Topp-nav ---------- */
.site-nav { position: sticky; top: 0; z-index: 100; background: rgba(250,245,239,.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: .55rem 1.2rem; display: flex; align-items: center; gap: 1rem; }
.nav-logo { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.22rem; color: var(--ink); letter-spacing: -.02em; font-family: var(--serif); }
.nav-logo:hover { color: var(--ink); }
.nav-logo-icon { width: 38px; height: 38px; border-radius: 11px; overflow: hidden; display: block; box-shadow: 0 3px 8px rgba(89,32,43,.30); flex: 0 0 auto; }
.nav-logo-icon svg { width: 100%; height: 100%; display: block; }
.nav-logo-text span { color: var(--brand); }
.nav-menu { display: flex; align-items: center; gap: .05rem; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.nav-link { padding: .5rem .58rem; border-radius: var(--r-pill); font-size: .88rem; font-weight: 700; color: var(--text); cursor: pointer; white-space: nowrap; font-family: var(--sans); }
.nav-link:hover { background: var(--brand-soft); color: var(--brand-d); }
.nav-cta { background: var(--accent); color: #fff !important; box-shadow: 0 4px 12px rgba(184,137,59,.4); margin-left: .3rem; }
.nav-cta:hover { background: var(--accent-d); color: #fff !important; }

.nav-dropdown { position: relative; }
.dropdown-menu { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(8px); background: var(--white); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 1rem; display: grid; grid-template-columns: 1fr; gap: .1rem; min-width: 260px; opacity: 0; visibility: hidden; transition: .18s; }
.dropdown-menu.dropdown-simple { min-width: 250px; grid-template-columns: 1fr; padding: .7rem; }
.dropdown-simple .dropdown-col a { font-weight: 600; padding: .5rem .7rem; border-radius: var(--r-sm); font-size: .9rem; }
.dropdown-simple .dropdown-col a:hover { background: var(--brand-soft); }
.dropdown-simple .dropdown-col a.more { margin-top: .25rem; border-top: 1px solid var(--border); border-radius: 0; padding-top: .7rem; color: var(--brand); font-weight: 800; }
.nav-dropdown:hover .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown:nth-last-child(-n+3) .dropdown-menu { left: auto; right: 0; transform: translateX(0) translateY(8px); }
.nav-dropdown:nth-last-child(-n+3):hover .dropdown-menu { transform: translateX(0) translateY(0); }
.dropdown-col a { display: block; padding: .24rem 0; font-size: .9rem; color: var(--text); font-weight: 500; }
.dropdown-col a:hover { color: var(--brand); }
.dropdown-col a.more { color: var(--brand); font-weight: 800; }

.btn-search-icon { background: none; border: none; padding: .45rem; cursor: pointer; color: var(--text-light); font-size: 1.15rem; border-radius: var(--r-sm); }
.btn-search-icon:hover { background: var(--brand-soft); color: var(--brand); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--ink); padding: .2rem .4rem; }

/* ---------- Knapper ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.6rem; border-radius: var(--r-pill); font-weight: 800; font-size: .98rem; cursor: pointer; border: 2px solid transparent; transition: .15s; font-family: var(--sans); }
.btn-primary { background: var(--accent); color: #fff !important; }
.btn-primary:hover { background: var(--accent-d); color:#fff !important; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(184,137,59,.45); }
.btn-brand { background: var(--brand); color: #fff !important; }
.btn-brand:hover { background: var(--brand-d); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(122,46,59,.4); }
.btn-ghost { background: var(--white); color: var(--brand) !important; border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); background: var(--brand-soft); }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ---------- Forside-hero ---------- */
.hero { position: relative; background: radial-gradient(1200px 600px at 12% -10%, #8A3242 0%, var(--brand-d) 55%, #3F1620 100%); color: #fff; overflow: hidden; }
.hero::before { content:""; position:absolute; inset:0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 64px);
  opacity:.6; }
.hero::after { content:""; position:absolute; right:-60px; top:-60px; width:340px; height:340px; border-radius:50%;
  background: radial-gradient(circle, rgba(184,137,59,.28), transparent 70%); }
.hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 4.4rem 1.2rem 4.6rem; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero p.lead { font-size: 1.18rem; color: rgba(255,255,255,.92); margin-bottom: 1.7rem; max-width: 34rem; font-family: var(--sans); }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero .pill { background: rgba(255,255,255,.16); color:#fff; margin-bottom: 1.1rem; }

.quick-card { background: var(--white); color: var(--text); border-radius: var(--r-lg); padding: 1.5rem 1.6rem 1.3rem; box-shadow: var(--shadow-lg); }
.quick-card h3 { font-size: 1.12rem; display:flex; align-items:center; gap:.5rem; margin-bottom: .2rem; }
.quick-card .sub { font-size: .85rem; color: var(--text-light); margin-bottom: 1rem; }
.quick-rows { display: grid; gap: .5rem; }
.quick-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .8rem; padding: .6rem .8rem; background: var(--bg); border-radius: var(--r-sm); }
.quick-row:hover { background: var(--brand-soft); }
.quick-row .age { font-weight: 700; color: var(--ink); font-size: .92rem; }
.quick-row .amt { font-weight: 800; color: var(--brand); font-size: .85rem; font-family: var(--sans); }

/* ---------- Sidehode for artikler/hubber ---------- */
.page-hero { position: relative; min-height: 0; display: flex; align-items: flex-end; color: #fff; }
.page-hero .inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; width: 100%; padding: 2.6rem 1.2rem; }
.page-hero .kicker { display:inline-block; background: rgba(255,255,255,.2); color:#fff; font-weight: 800; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .85rem; border-radius: var(--r-pill); margin-bottom: .85rem; font-family: var(--sans); }
.page-hero h1 { color: #fff; margin: 0 0 .5rem; max-width: 26ch; }
.page-hero p { color: rgba(255,255,255,.94); font-size: 1.1rem; max-width: 56ch; margin: 0; font-family: var(--sans); }

/* Fargetoner */
.tone-1 { background: linear-gradient(125deg, var(--t1a), var(--t1b)); }
.tone-2 { background: linear-gradient(125deg, var(--t2a), var(--t2b)); }
.tone-3 { background: linear-gradient(125deg, var(--t3a), var(--t3b)); }
.tone-4 { background: linear-gradient(125deg, var(--t4a), var(--t4b)); }
.tone-5 { background: linear-gradient(125deg, var(--t5a), var(--t5b)); }
.tone-6 { background: linear-gradient(125deg, var(--t6a), var(--t6b)); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { background: var(--bg-2); border-bottom: 1px solid var(--border); font-size: .85rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: .7rem 0; align-items: center; }
.breadcrumb li { color: var(--text-light); }
.breadcrumb li a { color: var(--text-light); }
.breadcrumb li a:hover { color: var(--brand); }
.breadcrumb li::after { content: "›"; margin-left: .4rem; color: var(--border); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb li:last-child { color: var(--ink); font-weight: 700; }

/* ---------- Seksjonskort (forside) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); gap: 1.2rem; }
.scard { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 1.6rem; box-shadow: var(--shadow); transition: .18s; display: block; position: relative; overflow: hidden; }
.scard::before { content:""; position:absolute; left:0; top:0; bottom:0; width:5px; background: var(--brand); }
.scard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.scard .ico { font-size: 1.6rem; margin-bottom: .6rem; display:inline-flex; width:54px; height:54px; align-items:center; justify-content:center; border-radius: 13px; background: var(--brand-soft); }
.scard h3 { margin-bottom: .35rem; }
.scard p { font-size: .9rem; color: var(--text-light); margin: 0; }
.scard:nth-child(6n+2)::before { background: var(--accent); } .scard:nth-child(6n+2) .ico { background: var(--accent-soft); }
.scard:nth-child(6n+3)::before { background: var(--sage); } .scard:nth-child(6n+3) .ico { background: var(--sage-soft); }
.scard:nth-child(6n+4)::before { background: var(--t4a); } .scard:nth-child(6n+4) .ico { background: #E9E5EC; }
.scard:nth-child(6n+5)::before { background: var(--t5a); } .scard:nth-child(6n+5) .ico { background: #F5E5DC; }
.scard:nth-child(6n+6)::before { background: var(--t6a); } .scard:nth-child(6n+6) .ico { background: #EEE6EE; }

/* ---------- Kort i grid (hub) ---------- */
.dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); gap: 1.2rem; margin: .4rem 0 2.4rem; }
.dest-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: .18s; display: flex; flex-direction: column; }
.dest-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.dest-card .body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.dest-card h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.dest-card .desc { font-size: .9rem; color: var(--text-light); flex: 1; margin: 0; font-family: var(--sans); }

.section .wrap > h2 { margin: 1.6rem 0 .2rem; }
.section .wrap > h2:first-child { margin-top: 0; }
.section .wrap > h2[id] { scroll-margin-top: 80px; }

/* ---------- Artikkelinnhold ---------- */
.article { max-width: 740px; margin: 0 auto; padding: 2.6rem 1.2rem 3.5rem; }
.article p, .article ul, .article ol { font-size: 1.07rem; color: #3a2f31; }
.article ul, .article ol { margin: 0 0 1.2rem 1.3rem; }
.article li { margin-bottom: .45rem; }
.article h2 { margin: 2.1rem 0 .8rem; padding-bottom: .25rem; border-bottom: 2px solid var(--accent-soft); }
.article h3 { margin: 1.6rem 0 .5rem; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink); font-family: var(--serif); }
.article .lead { margin-bottom: 1.2rem; }
.article strong { color: var(--ink); }
.article a { text-decoration: underline; text-decoration-color: rgba(184,137,59,.45); text-underline-offset: 2px; }
.article a:hover { text-decoration-color: var(--accent-d); }

/* Callouts */
.callout { background: var(--accent-soft); border-left: 5px solid var(--accent); border-radius: var(--r-sm); padding: 1.1rem 1.4rem; margin: 1.6rem 0; }
.callout.green, .callout.mint { background: var(--sage-soft); border-color: var(--sage); }
.callout.blue { background: #EAF0F3; border-color: #5B7E92; }
.callout.warn { background: var(--rust-soft); border-color: var(--rust); }
.callout p:last-child { margin: 0; }
.callout strong { color: var(--ink); }

/* Faktaboks */
.factbox { background: var(--white); border: 1px solid var(--border); border-top: 4px solid var(--brand); border-radius: var(--r); padding: 1.3rem 1.5rem; margin: 1.8rem 0; box-shadow: var(--shadow); }
.factbox h3 { margin: 0 0 .7rem; font-size: 1.1rem; color: var(--brand-d); }
.factbox dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.1rem; margin: 0; }
.factbox dt { font-weight: 800; color: var(--ink); font-family: var(--sans); font-size: .94rem; }
.factbox dd { margin: 0; color: var(--text); font-size: .98rem; }

/* Fordeler / ulemper */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin: 1.8rem 0; }
.pros, .cons { border-radius: var(--r); padding: 1.1rem 1.3rem; border: 1px solid var(--border); }
.pros { background: var(--sage-soft); border-color: #BFE0CD; }
.cons { background: var(--rust-soft); border-color: #EFC9BC; }
.pros h4, .cons h4 { font-family: var(--sans); font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .5rem; }
.pros h4 { color: #2F6147; } .cons h4 { color: #9C3C26; }
.pros ul, .cons ul { margin: 0 0 0 1.1rem; }
.pros li, .cons li { font-size: .96rem; }

/* Sjekkliste */
ul.checklist { list-style: none; margin-left: 0 !important; }
ul.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: .6rem; }
ul.checklist li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 1.35rem; height: 1.35rem; background: var(--sage); color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .82rem; font-weight: 800; }

/* Tabell */
table.age-table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; font-size: .98rem; }
table.age-table thead th { background: var(--brand); color: #fff; text-align: left; padding: .7rem .9rem; font-family: var(--sans); font-size: .9rem; }
table.age-table td { padding: .65rem .9rem; border-top: 1px solid var(--border); }
table.age-table tbody tr:nth-child(even) { background: var(--bg); }

/* Kildeboks */
.kilder { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r); padding: 1.3rem 1.5rem; margin: 2.4rem 0 0; }
.kilder h3 { font-size: 1.05rem; margin: 0 0 .6rem; color: var(--ink); }
.kilder ul { margin: 0 0 .8rem 1.2rem; }
.kilder li { font-size: .95rem; margin-bottom: .3rem; }
.kilder .muted { font-size: .85rem; margin: 0; }

/* ---------- Intern lenking ---------- */
.related { background: var(--bg-2); border-top: 1px solid var(--border); }
.related h2 { text-align: center; margin-bottom: 1.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.chip { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-pill); padding: .5rem 1.1rem; font-size: .88rem; font-weight: 700; color: var(--brand); font-family: var(--sans); }
.chip:hover { border-color: var(--brand); background: var(--brand-soft); }

/* ---------- Cookie-/samtykkebanner ---------- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1000;
  max-width: 760px; margin: 0 auto; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--r);
  box-shadow: 0 12px 40px rgba(0,0,0,.18); padding: 1.1rem 1.3rem; }
.cookie-banner[hidden] { display: none; }
.cookie-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; }
.cookie-inner p { margin: 0; flex: 1 1 320px; font-size: .92rem; color: var(--text); }
.cookie-inner a { color: var(--brand); font-weight: 700; text-decoration: underline; }
.cookie-btns { display: flex; gap: .6rem; flex: 0 0 auto; margin-left: auto; }
.cookie-btns .btn { padding: .6rem 1.2rem; font-size: .9rem; }
@media (max-width: 540px) {
  .cookie-btns { width: 100%; }
  .cookie-btns .btn { flex: 1; justify-content: center; }
}

/* ---------- Byline (E-E-A-T) ---------- */
.article .byline {
  font-size: .9rem; color: var(--muted); margin: 0 0 1.4rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--border); font-family: var(--sans); }
.article .byline a { color: var(--brand); font-weight: 700; }
.article .byline a:hover { text-decoration: underline; }

/* ---------- Innholdsfortegnelse ---------- */
.article .toc {
  background: var(--brand-soft); border: 1px solid var(--border); border-left: 4px solid var(--brand);
  border-radius: var(--r); padding: 1.1rem 1.3rem 1.1rem 1.4rem; margin: 0 0 2rem; }
.article .toc .toc-tittel {
  font-weight: 800; color: var(--brand-d); margin: 0 0 .6rem;
  font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; font-family: var(--sans); }
.article .toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.article .toc li { margin: .25rem 0; break-inside: avoid; }
.article .toc a { color: var(--text); font-weight: 600; font-size: .94rem; font-family: var(--sans); }
.article .toc a:hover { color: var(--brand); text-decoration: underline; }
.article h2 { scroll-margin-top: 1.5rem; }
@media (max-width: 560px) { .article .toc ol { columns: 1; } }

/* ---------- Foto-figurer ---------- */
figure.article-foto, figure.hero-foto, figure.home-foto { margin: 0 0 1.8rem; }
figure.article-foto img, figure.hero-foto img, figure.home-foto img {
  width: 100%; height: auto; border-radius: var(--r); box-shadow: var(--shadow); display: block;
  max-height: 460px; object-fit: cover; }
figure.home-foto img { max-height: 360px; }
.hero-foto { margin-bottom: 2rem; }

/* ---------- Emneoversikt (A-Å) ---------- */
.emne-az { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 2rem; position: sticky; top: 56px; background: var(--bg); padding: .7rem 0; z-index: 5; border-bottom: 1px solid var(--border); }
.emne-az a { display: inline-flex; align-items: center; justify-content: center; min-width: 2.1rem; height: 2.1rem; border-radius: var(--r-sm); background: var(--brand-soft); color: var(--brand-d); font-weight: 800; font-size: .9rem; font-family: var(--sans); }
.emne-az a:hover { background: var(--brand); color: #fff; }
.emne-group { margin-bottom: 2rem; scroll-margin-top: 110px; }
.emne-group h2 { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: linear-gradient(125deg, var(--t1a), var(--t1b)); color: #fff; margin-bottom: 1rem; font-size: 1.3rem; }
.emne-list { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: .4rem 1.4rem; }
.emne-list li { margin: 0; padding: .35rem 0; border-bottom: 1px solid var(--border); }
.emne-list a { font-weight: 700; color: var(--ink); }
.emne-list a:hover { color: var(--brand); }
.emne-list .kat { display: block; font-size: .78rem; color: var(--text-light); font-weight: 600; font-family: var(--sans); }

/* ---------- Ordliste / leksikon ---------- */
.ordliste-az { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 2.2rem; position: sticky; top: 56px; background: var(--bg); padding: .7rem 0; z-index: 5; border-bottom: 1px solid var(--border); }
.ordliste-az a { display: inline-flex; align-items: center; justify-content: center; min-width: 2.1rem; height: 2.1rem; border-radius: var(--r-sm); background: var(--brand-soft); color: var(--brand-d); font-weight: 800; font-size: .9rem; font-family: var(--sans); }
.ordliste-az a:hover { background: var(--brand); color: #fff; }
.ordliste-group { margin-bottom: 2.2rem; scroll-margin-top: 110px; }
.ordliste-group h2 { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: linear-gradient(125deg, var(--t6a), var(--t6b)); color: #fff; margin-bottom: 1rem; }
.ordliste-list { margin: 0; }
.ordliste-list dt { font-weight: 800; font-size: 1.12rem; margin-top: 1.1rem; font-family: var(--serif); }
.ordliste-list dt a { color: var(--ink); }
.ordliste-list dt a:hover { color: var(--brand); }
.ordliste-list dd { margin: .2rem 0 0; padding: 0 0 1rem; border-bottom: 1px solid var(--border); color: var(--text-light); font-size: .98rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); padding: 3.2rem 0 1.6rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 1.6rem; }
.footer-brand { grid-column: span 1; }
.footer-brand .nav-logo { color: #fff; margin-bottom: .9rem; }
.footer-brand .nav-logo-text span { color: var(--accent); }
.footer-brand p { font-size: .86rem; color: rgba(255,255,255,.65); max-width: 23rem; margin-bottom: .7rem; }
.footer-brand .more { color: var(--accent); font-weight: 800; font-size: .86rem; }
.footer-col h4 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .8rem; font-family: var(--sans); }
.footer-col a { display: block; color: rgba(255,255,255,.72); font-size: .88rem; padding: .2rem 0; }
.footer-col a:hover { color: var(--accent); }
.footer-col a.more { color: var(--accent); font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2.4rem; padding-top: 1.3rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; font-size: .82rem; color: rgba(255,255,255,.55); }

/* ---------- Søke-modal ---------- */
.search-modal { position: fixed; inset: 0; background: rgba(43,31,35,.55); backdrop-filter: blur(3px); z-index: 200; display: none; padding: 8vh 1rem 0; }
.search-modal.open { display: block; }
.search-box { max-width: 600px; margin: 0 auto; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.search-box-head { display: flex; align-items: center; padding: .5rem .5rem .5rem 1.3rem; border-bottom: 1px solid var(--border); }
.search-box input { flex: 1; border: none; outline: none; font-size: 1.05rem; padding: .85rem .5rem; background: transparent; color: var(--text); }
.search-box .close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text-light); padding: .5rem .8rem; }
.search-res { max-height: 52vh; overflow-y: auto; padding: .6rem; }
.search-res a { display: block; padding: .65rem .9rem; border-radius: var(--r-sm); }
.search-res a:hover, .search-res a.sel { background: var(--brand-soft); }
.search-res .t { font-weight: 700; color: var(--ink); }
.search-res .s { font-size: .8rem; color: var(--text-light); }
.search-res .empty { padding: 1rem; color: var(--text-light); font-size: .9rem; }

/* ---------- Hjelpere ---------- */
.center { text-align: center; }
.muted { color: var(--text-light); }
.pill { display:inline-block; background: var(--brand-soft); color: var(--brand-d); font-weight: 800; font-size: .78rem; padding: .3rem .8rem; border-radius: var(--r-pill); font-family: var(--sans); }
.velkomst h2, .velkomst h3 { color: var(--ink); }
.velkomst h3 { margin-top: 1.8rem; }

/* ---------- Responsivt ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 1.4rem; }
  .footer-brand { grid-column: 1 / -1; }
  .pros-cons { grid-template-columns: 1fr; }
}
@media (max-width: 1180px) {
  .nav-menu { position: fixed; inset: 58px 0 auto 0; background: var(--bg); flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start; padding: 1rem; gap: .2rem; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); display: none; max-height: calc(100vh - 58px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .nav-menu.open { display: flex; }
  .nav-dropdown { width: 100%; }
  .nav-link { padding: .8rem; border-radius: var(--r-sm); }
  .nav-cta { text-align:center; margin-top:.3rem; }
  .dropdown-menu, .dropdown-menu.dropdown-simple { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; padding: .3rem 0 .6rem 1rem; min-width: 0; width: 100%; display: block; }
  .nav-dropdown:hover .dropdown-menu { transform: none; }
  .nav-toggle { display: block; margin-left: auto; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 2.6rem 0; }
  .hero-inner { padding: 3rem 1.2rem; }
  .factbox dl { grid-template-columns: 1fr; gap: .15rem .5rem; }
  .factbox dd { margin-bottom: .5rem; }
}
