/* ==========================================================================
   Isjas – drømmetydning · hovedstilark
   Identitet: «Nattehimmel». Dyp indigo + violett + gull-stjerner og halvmåne.
   Uttrykk: rolig, drømmende og mystisk, men lyst og lettlest i brødteksten.
   Elegant serif (Cormorant Garamond) i overskrifter, ren sans i brødtekst.
   ========================================================================== */

:root {
  --brand:        #6d5bd0;   /* violett */
  --brand-d:      #4b3a8f;   /* dyp violett */
  --brand-l:      #8b7ce8;   /* lys violett */
  --brand-soft:   #efeafc;   /* svakt lavendel */
  --accent:       #e0a92e;   /* gull */
  --accent-d:     #b07d16;   /* dyp gull (lenker/hover, god kontrast) */
  --accent-soft:  #fbf1d8;
  --sun:          #f5c451;   /* stjerne-gull (logo/detaljer) */
  --sun-soft:     #fcf2d5;
  --mint:         #1f9b8a;   /* dyp teal – positivt / "ja" */
  --mint-soft:    #dff4f0;
  --coral:        #d15b78;   /* rosa – advarsel / "nei" */
  --coral-soft:   #fbe6ec;
  --ink:          #241a4d;   /* dyp natt-indigo (overskrifter) */
  --text:         #3a3357;   /* rolig mørk lilla-grå */
  --text-light:   #6f6890;
  --bg:           #f7f5fc;   /* lavendel off-white */
  --bg-2:         #efeafa;
  --white:        #ffffff;
  --border:       #e6dff5;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow: 0 2px 6px rgba(36,26,77,.06), 0 12px 30px rgba(36,26,77,.10);
  --shadow-lg: 0 18px 55px rgba(36,26,77,.22);
  --maxw: 1160px;

  /* Fargetoner for flate hoder + ikon-kort (tone-1..8) – drømmende gradienter */
  --t1a:#3f5aa6; --t1b:#20306a;   /* natt-blå   (Natur/vann) */
  --t2a:#b56a9e; --t2b:#6d3a72;   /* plomme-rosa (Mennesker) */
  --t3a:#2f8f9e; --t3b:#1a5560;   /* dyp teal   (reserve) */
  --t4a:#2b2456; --t4b:#120e2e;   /* nesten-svart indigo (Mareritt) */
  --t5a:#4b8f74; --t5b:#265a4e;   /* mosegrønn  (Dyr) */
  --t6a:#6d5bd0; --t6b:#3f2f86;   /* violett    (Situasjoner) */
  --t7a:#a4506a; --t7b:#5f2740;   /* burgunder  (Kropp & liv) */
  --t8a:#5b4aa8; --t8b:#241a4d;   /* kosmisk violett (Om drømmer) */
}

* { 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(--white); line-height: 1.68; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--brand-d); 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.14; color: var(--ink); letter-spacing: 0; }
h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
p  { margin-bottom: 1rem; }

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

.section { padding: 3.6rem 0; }
.section.alt { background: var(--bg); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 2.4rem; }
.section-head .eyebrow { color: var(--accent-d); font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-family: var(--sans); }
.section-head h2 { margin: .4rem 0 .6rem; }
.section-head p { color: var(--text-light); font-size: 1.08rem; }

/* ---------- Topp-nav ---------- */
.site-nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: .55rem 1.2rem; display: flex; align-items: center; gap: .7rem; }
.nav-logo { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.5rem; font-family: var(--serif); color: var(--ink); letter-spacing: .01em; }
.nav-logo:hover { color: var(--ink); }
.nav-logo-icon { width: 40px; height: 40px; border-radius: 12px; overflow: hidden; display: block; box-shadow: 0 4px 12px rgba(75,58,143,.35); flex: 0 0 auto; }
.nav-logo-icon svg { width: 100%; height: 100%; display: block; }
.nav-logo-text { line-height: 1; }
.nav-logo-text span { color: var(--accent-d); font-size: .6em; font-style: italic; letter-spacing: .02em; }
.nav-menu { display: flex; align-items: center; gap: .05rem; margin-left: auto; flex-wrap: nowrap; justify-content: flex-end; }
.nav-link { padding: .5rem .5rem; border-radius: var(--r-pill); font-size: .86rem; 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(--brand); color: #fff !important; box-shadow: 0 4px 12px rgba(109,91,208,.4); margin-left: .3rem; }
.nav-cta:hover { background: var(--brand-d); color: #fff !important; }

.nav-dropdown { position: relative; }
.dropdown-menu { position: absolute; top: 100%; 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: 1.3rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(175px,1fr)); gap: 1.1rem 1.6rem; min-width: 540px; opacity: 0; visibility: hidden; transition: opacity .15s ease .12s, visibility .15s ease .12s, transform .15s ease .12s; }
.dropdown-menu.dropdown-mega { min-width: min(840px, 92vw); }
.dropdown-menu.dropdown-simple { min-width: 250px; grid-template-columns: 1fr; padding: .8rem; }
.dropdown-simple .dropdown-col a { font-weight: 600; padding: .5rem .7rem; border-radius: var(--r-sm); }
.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; }
.nav-dropdown:hover .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); transition-delay: .06s; }
.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 h4 { font-family: var(--sans); font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-light); margin-bottom: .55rem; }
.dropdown-col a { display: block; padding: .24rem 0; font-size: .92rem; color: var(--text); font-weight: 600; }
.dropdown-col a:hover { color: var(--brand-d); }
.dropdown-col a.more { color: var(--brand-d); 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-d); }
.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; font-family: var(--sans); cursor: pointer; border: 2px solid transparent; transition: .15s; }
.btn-primary { background: var(--accent); color: #3a2a05 !important; }
.btn-primary:hover { background: var(--sun); color: #3a2a05 !important; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(224,169,46,.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(109,91,208,.45); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff !important; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.24); }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ---------- Forside-hero: nattehimmel med stjerner og måne ---------- */
.hero { position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(900px 460px at 82% -10%, rgba(245,196,81,.30) 0%, rgba(245,196,81,0) 60%),
    radial-gradient(700px 500px at 12% 115%, rgba(139,124,232,.45) 0%, rgba(139,124,232,0) 65%),
    linear-gradient(165deg, #120e2e 0%, #241a4d 45%, #3d2f7a 100%); }
/* Stjernefelt */
.hero::before { content:""; position:absolute; inset:0; z-index:1;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 60% 20%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 75% 55%, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 78%, rgba(245,196,81,.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 32% 45%, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 85%, rgba(203,184,255,.8) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 8% 62%, rgba(255,255,255,.7) 50%, transparent 51%);
  background-repeat: no-repeat; opacity: .9; }
.hero::after { content:""; position:absolute; left:0; right:0; bottom:0; height:3px; background: linear-gradient(90deg, transparent, var(--sun) 30%, var(--brand-l) 70%, transparent); z-index: 3; }
.hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 4.8rem 1.2rem 5rem; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 1rem; text-shadow: 0 2px 30px rgba(139,124,232,.5); }
.hero p.lead { font-family: var(--sans); font-size: 1.18rem; color: rgba(255,255,255,.9); margin-bottom: 1.7rem; max-width: 34rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero .pill { background: rgba(255,255,255,.14); color:#fff; border: 1px solid rgba(255,255,255,.25); margin-bottom: 1.1rem; }

.quick-card { background: rgba(255,255,255,.97); color: var(--text); border-radius: var(--r-lg); padding: 1.6rem 1.7rem 1.4rem; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.5); }
.quick-card h3 { font-size: 1.35rem; display:flex; align-items:center; gap:.5rem; margin-bottom: .2rem; }
.quick-card .sub { font-family: var(--sans); font-size: .98rem; 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: .7rem .9rem; background: var(--bg); border-radius: var(--r-sm); transition: .15s; }
.quick-row:hover { background: var(--brand-soft); transform: translateX(3px); }
.quick-row .age { font-family: var(--sans); font-weight: 700; color: var(--ink); font-size: .95rem; }
.quick-row .amt { font-family: var(--sans); font-weight: 800; color: var(--brand-d); font-size: .82rem; }

/* ---------- Sidehode for artikler/hubber ---------- */
.page-hero { position: relative; min-height: 0; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.page-hero .inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; width: 100%; padding: 3rem 1.2rem; }
.page-hero .kicker { display:inline-block; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); color:#fff; font-family: var(--sans); font-weight: 800; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: .3rem .85rem; border-radius: var(--r-pill); margin-bottom: .9rem; }
.page-hero h1 { color: #fff; margin: 0 0 .5rem; max-width: 24ch; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.page-hero p { font-family: var(--sans); color: rgba(255,255,255,.93); font-size: 1.12rem; max-width: 58ch; margin: 0; }
/* Flate (uten foto) sidehoder får et diskret stjernefelt */
.page-hero--flat::before { content:""; position:absolute; inset:0; z-index:1;
  background-image:
    radial-gradient(1.4px 1.4px at 15% 35%, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 25%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 85% 65%, rgba(245,196,81,.85) 50%, transparent 51%),
    radial-gradient(1px 1px at 45% 75%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 60%, rgba(203,184,255,.7) 50%, transparent 51%);
  background-repeat: no-repeat; opacity: .8; }
.page-hero--flat .inner { z-index: 2; }
.page-hero::after { content:""; position:absolute; left:0; right:0; bottom:0; height:3px; background: linear-gradient(90deg, var(--sun), var(--brand-l) 55%, transparent); opacity:.9; z-index:3; }

/* ---------- Foto-hero: bilde bak tittelen (med mørk drømmegradient for lesbarhet) ---------- */
.page-hero--photo { min-height: 320px; background: #241a4d; }
.page-hero--photo .page-hero__bg { position:absolute; inset:0; z-index:0; }
.page-hero--photo .page-hero__bg img { width:100%; height:100%; object-fit:cover; display:block; }
.page-hero--photo .page-hero__bg::after { content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(18,14,46,.30) 0%, rgba(18,14,46,.55) 65%, rgba(18,14,46,.82) 100%); }
.page-hero--photo .inner { z-index:2; }
.page-hero--photo h1, .page-hero--photo p, .page-hero--photo .kicker {
  text-shadow: 0 1px 3px rgba(0,0,0,.55), 0 2px 18px rgba(0,0,0,.5); }
@media (max-width: 640px){ .page-hero--photo { min-height: 240px; } }

/* ---------- Forside-hero med foto bak ---------- */
.hero--photo .hero-bg { position:absolute; inset:0; z-index:0; }
.hero--photo .hero-bg img { width:100%; height:100%; object-fit:cover; display:block; }
.hero--photo .hero-bg::after { content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(18,14,46,.55), rgba(18,14,46,.72)); }
.hero--photo::before { opacity:.5; }

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

/* ---------- Breadcrumb ---------- */
.breadcrumb { background: var(--bg); 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; font-family: var(--sans); }
.breadcrumb li { color: var(--text-light); }
.breadcrumb li a { color: var(--text-light); }
.breadcrumb li a:hover { color: var(--brand-d); }
.breadcrumb li::after { content: "›"; margin-left: .4rem; color: var(--brand-l); }
.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(255px,1fr)); gap: 1.3rem; }
.scard { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 1.7rem; box-shadow: var(--shadow); transition: .18s; display: block; position: relative; overflow: hidden; }
.scard::before { content:""; position:absolute; left:0; right:0; top:0; height:5px; background: linear-gradient(90deg, var(--brand), var(--brand-l)); }
.scard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--brand-l); }
.scard .ico { font-size: 1.7rem; margin-bottom: .7rem; display:inline-flex; width:58px; height:58px; align-items:center; justify-content:center; border-radius: 16px; background: var(--brand-soft); }
.scard h3 { margin-bottom: .35rem; font-size: 1.5rem; }
.scard p { font-family: var(--sans); font-size: .92rem; color: var(--text-light); margin: 0; }
.scard:nth-child(8n+2)::before { background: linear-gradient(90deg, var(--t2a), var(--t2b)); } .scard:nth-child(8n+2) .ico { background: #f6e6f0; }
.scard:nth-child(8n+3)::before { background: linear-gradient(90deg, var(--t7a), var(--t7b)); } .scard:nth-child(8n+3) .ico { background: #f7e3ea; }
.scard:nth-child(8n+4)::before { background: linear-gradient(90deg, var(--t1a), var(--t1b)); } .scard:nth-child(8n+4) .ico { background: #e3e8f7; }
.scard:nth-child(8n+5)::before { background: linear-gradient(90deg, var(--t6a), var(--t6b)); } .scard:nth-child(8n+5) .ico { background: var(--brand-soft); }
.scard:nth-child(8n+6)::before { background: linear-gradient(90deg, var(--t4a), var(--t4b)); } .scard:nth-child(8n+6) .ico { background: #e6e4f2; }
.scard:nth-child(8n+7)::before { background: linear-gradient(90deg, var(--t8a), var(--t8b)); } .scard:nth-child(8n+7) .ico { background: var(--sun-soft); }
.scard:nth-child(8n+8)::before { background: linear-gradient(90deg, var(--t5a), var(--t5b)); } .scard:nth-child(8n+8) .ico { background: #e2f0ea; }

/* ---------- Kort i grid (hub) ---------- */
.dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px,1fr)); gap: 1.3rem; margin: .4rem 0 2.6rem; }
.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; position: relative; }
.dest-card::before { content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background: linear-gradient(180deg, var(--brand-l), var(--brand)); opacity:0; transition:.18s; }
.dest-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-l); }
.dest-card:hover::before { opacity:1; }
.dest-card .ph-ico { display:flex; align-items:center; justify-content:center; aspect-ratio: 16/6; font-size: 2.4rem; background: var(--brand-soft); }
.dest-card .body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.dest-card h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.dest-card .desc { font-family: var(--sans); font-size: .9rem; color: var(--text-light); flex: 1; margin: 0; }

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

/* ---------- Artikkelinnhold ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 2.8rem 1.2rem 3.5rem; }
.article p, .article ul, .article ol { font-family: var(--sans); font-size: 1.08rem; color: #3a3357; }
.article ul, .article ol { margin: 0 0 1.2rem 1.3rem; }
.article li { margin-bottom: .5rem; }
.article h2 { margin: 2.3rem 0 .8rem; }
.article h3 { margin: 1.7rem 0 .5rem; }
.article > p:first-of-type { font-size: 1.08rem; }
.lead { font-family: var(--sans); font-size: 1.24rem; line-height: 1.55; color: var(--ink); font-weight: 600; }
.article .lead { margin-bottom: 1.3rem; }

/* Dekorativ initial i første avsnitt etter lead – drømmeaktig magasinfølelse */
.article .lead + p::first-letter { font-family: var(--serif); font-size: 3.1rem; font-weight: 700; line-height: .8; float: left; margin: .35rem .6rem 0 0; color: var(--brand-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.7rem 0; font-family: var(--sans); }
.callout.green, .callout.mint { background: var(--mint-soft); border-color: var(--mint); }
.callout.blue { background: var(--brand-soft); border-color: var(--brand); }
.callout.warn { background: var(--coral-soft); border-color: var(--coral); }
.callout p:last-child { margin: 0; }
.callout strong { color: var(--ink); }

/* Faktaboks */
.factbox { background: linear-gradient(135deg, #f3f0fc, #efeafa); border: 1px solid var(--border); border-radius: var(--r); padding: 1.3rem 1.5rem; margin: 1.7rem 0; font-family: var(--sans); }
.factbox h3 { font-family: var(--sans); margin: 0 0 .7rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brand-d); }
.factbox dl { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: .4rem .9rem; margin: 0; }
.factbox dt { font-weight: 800; color: var(--ink); font-size: .95rem; }
.factbox dd { margin: 0; font-size: .95rem; color: var(--text); }
@media (max-width: 480px) { .factbox dl { grid-template-columns: 1fr; } .factbox dd { margin-bottom: .4rem; } }

/* Fordeler/ulemper (to tolkninger / lys og skygge) */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.7rem 0; font-family: var(--sans); }
.pros-cons h4 { font-family: var(--sans); margin: 0 0 .5rem; font-size: 1rem; }
.pros-cons .pros, .pros-cons .cons { border-radius: var(--r); padding: 1.1rem 1.3rem; }
.pros-cons .pros { background: var(--mint-soft); border: 1px solid #bfe6df; }
.pros-cons .cons { background: var(--brand-soft); border: 1px solid #ddd2f5; }
.pros-cons ul { margin: 0 0 0 1.1rem; font-size: .95rem; }
@media (max-width: 560px) { .pros-cons { grid-template-columns: 1fr; } }

/* Sjekkliste */
ul.checklist { list-style: none; margin: 1.2rem 0; padding: 0; }
ul.checklist li { position: relative; padding-left: 2rem; margin-bottom: .55rem; }
ul.checklist li::before { content: "✦"; position: absolute; left: 0; top: 0; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: .78rem; display: flex; align-items: center; justify-content: center; font-weight: 800; }

/* Tabeller i artikler */
.age-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; font-size: .96rem; font-family: var(--sans); }
.age-table th { background: var(--brand-d); color: #fff; text-align: left; padding: .7rem .9rem; font-size: .88rem; }
.age-table td { padding: .6rem .9rem; border-bottom: 1px solid var(--border); }
.age-table tr:last-child td { border-bottom: 0; }
.age-table tr:nth-child(even) td { background: var(--bg); }

/* Kildeboks */
.kilder { background: var(--bg); border: 1px solid var(--border); border-left: 5px solid var(--sun); border-radius: var(--r-sm); padding: 1.2rem 1.5rem; margin: 2.4rem 0 0; font-family: var(--sans); }
.kilder h3 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-light); margin: 0 0 .55rem; }
.kilder ul { margin: 0 0 .7rem 1.2rem; font-size: .92rem; }
.kilder li { margin-bottom: .25rem; }
.kilder p.muted { font-size: .84rem; margin: 0; }

/* Diskret søsterlenke (til beslektet nettsted) – naturlig avslutningsnote, ikke annonse */
.article p.sister-link { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--text-light); font-size: 1rem; }
.article p.sister-link a { color: var(--brand-d); font-weight: 700; }
.article p.sister-link a:hover { color: var(--accent-d); }

/* ---------- Intern lenking ---------- */
.related { background: var(--bg); border-top: 1px solid var(--border); }
.related h2 { text-align: center; margin-bottom: 1.6rem; }
.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: .55rem 1.15rem; font-size: .88rem; font-weight: 700; font-family: var(--sans); color: var(--brand-d); }
.chip:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-d); }

/* ---------- 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(36,26,77,.2); padding: 1.1rem 1.3rem; font-family: var(--sans); }
.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-d); 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-family: var(--sans); font-size: .9rem; color: var(--text-light); margin: 0 0 1.4rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.article .byline a { color: var(--brand-d); font-weight: 700; }
.article .byline a:hover { text-decoration: underline; }

/* ---------- Innholdsfortegnelse ---------- */
.article .toc {
  background: linear-gradient(135deg, #f3f0fc, #efeafa); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.2rem 1.4rem; margin: 0 0 2rem; font-family: var(--sans); }
.article .toc .toc-tittel {
  font-family: var(--sans); font-weight: 800; color: var(--brand-d); margin: 0 0 .6rem;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.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; }
.article .toc a:hover { color: var(--brand-d); 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; }
figure.article-foto figcaption, figure.hero-foto figcaption, figure.home-foto figcaption {
  font-family: var(--sans); font-size: .78rem; color: var(--text-light); margin-top: .45rem; }
figure.article-foto figcaption a { color: var(--text-light); text-decoration: underline; }
.hero-foto { margin-bottom: 2rem; }

/* ---------- Drømmeordbok / leksikon ---------- */
.ordliste-az { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 2.2rem; position: sticky; top: 58px; background: var(--white); 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.8rem; height: 2.8rem; border-radius: 50%; background: linear-gradient(135deg, var(--brand-l), var(--brand-d)); color: #fff; margin-bottom: 1rem; font-size: 1.5rem; }
.ordliste-list { margin: 0; }
.ordliste-list dt { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; margin-top: 1.1rem; }
.ordliste-list dt a { color: var(--ink); }
.ordliste-list dt a:hover { color: var(--brand-d); }
.ordliste-list dd { font-family: var(--sans); margin: .2rem 0 0; padding: 0 0 1rem; border-bottom: 1px solid var(--border); color: var(--text-light); font-size: .98rem; }

/* Alle temaer A-Å */
.temaliste { list-style:none; margin:0 0 1.6rem; padding:0; columns: 2; column-gap: 2.4rem; font-family: var(--sans); }
.temaliste li { break-inside: avoid; margin-bottom:.45rem; line-height:1.35; }
.temaliste .muted { font-size:.82em; }
@media (max-width: 640px){ .temaliste { columns: 1; } }
.footer-links { margin-top:.6rem; font-size:.92rem; opacity:.95; }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(180deg, #1c1440, #120e2e); color: rgba(255,255,255,.78); padding: 3.4rem 0 1.6rem; margin-top: 2rem; position: relative; font-family: var(--sans); }
.site-footer::before { content:""; position:absolute; left:0; right:0; top:0; height:3px; background: linear-gradient(90deg, var(--sun), var(--brand-l), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(5, 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(--sun); }
.footer-brand p { font-size: .86rem; color: rgba(255,255,255,.62); max-width: 23rem; margin-bottom: .7rem; }
.footer-brand .more { color: var(--sun); font-weight: 800; font-size: .86rem; }
.footer-col h4 { font-family: var(--sans); color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; margin-bottom: .8rem; }
.footer-col a { display: block; color: rgba(255,255,255,.7); font-size: .88rem; padding: .2rem 0; }
.footer-col a:hover { color: var(--sun); }
.footer-col a.more { color: var(--sun); 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,.52); }

/* ---------- Søke-modal ---------- */
.search-modal { position: fixed; inset: 0; background: rgba(18,14,46,.6); backdrop-filter: blur(4px); 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; font-family: var(--sans); 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; font-family: var(--sans); }
.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; }

/* ---------- Drømmetyder (verktøy) ---------- */
.dt-tool { margin: 1.6rem 0 2.4rem; }
.dt-step { background: linear-gradient(135deg, #f5f2fc, #efeafa); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.4rem 1.5rem; margin-bottom: 1.1rem; }
.dt-steg-tittel { font-size: 1.4rem; margin: 0 0 .3rem; display: flex; align-items: center; gap: .6rem; }
.dt-num { display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: linear-gradient(135deg, var(--brand-l), var(--brand-d)); color: #fff; font-family: var(--sans); font-size: 1rem; font-weight: 800; flex: 0 0 auto; }
.dt-valgfri { font-family: var(--sans); font-size: .8rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: .04em; }
.dt-hjelp { font-family: var(--sans); color: var(--text-light); font-size: .95rem; margin: .1rem 0 1rem; }
.dt-mini { margin: .6rem 0 0; }

.dt-sok { position: relative; }
.dt-sok input { width: 100%; padding: .85rem 1.1rem; border: 2px solid var(--border); border-radius: var(--r-pill); font-size: 1.05rem; font-family: var(--sans); background: var(--white); color: var(--ink); }
.dt-sok input:focus { outline: none; border-color: var(--brand); }
.dt-forslag { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--white); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-lg); z-index: 20; overflow: hidden; display: none; }
.dt-forslag.open { display: block; }
.dt-forslag-rad { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 100%; text-align: left; background: none; border: none; padding: .7rem 1rem; cursor: pointer; font-family: var(--sans); border-bottom: 1px solid var(--border); }
.dt-forslag-rad:last-child { border-bottom: 0; }
.dt-forslag-rad:hover { background: var(--brand-soft); }
.dt-f-navn { font-weight: 700; color: var(--ink); }
.dt-f-kat { font-size: .8rem; color: var(--text-light); }

.dt-valgt { margin: 1rem 0 .4rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.dt-tom { font-family: var(--sans); color: var(--text-light); font-size: .9rem; font-style: italic; margin: 0; }
.dt-tag { display: inline-flex; align-items: center; gap: .5rem; background: var(--brand); color: #fff; border-radius: var(--r-pill); padding: .45rem 1rem; font-family: var(--sans); font-weight: 700; font-size: .9rem; cursor: pointer; }
.dt-tag:hover { background: var(--brand-d); }
.dt-x { font-weight: 800; opacity: .85; }

.dt-pop { margin-top: 1.1rem; }
.dt-pop-tit { display: block; font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-light); margin-bottom: .55rem; font-weight: 700; }
.dt-chip { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-pill); padding: .45rem 1rem; margin: 0 .45rem .5rem 0; font-family: var(--sans); font-size: .88rem; font-weight: 700; color: var(--brand-d); cursor: pointer; transition: .15s; }
.dt-chip:hover { border-color: var(--brand); background: var(--brand-soft); }

.dt-folelser { display: flex; flex-wrap: wrap; gap: .5rem; }
.dt-fol { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r-pill); padding: .55rem 1.1rem; font-family: var(--sans); font-size: .9rem; font-weight: 700; color: var(--text); cursor: pointer; transition: .15s; }
.dt-fol:hover { border-color: var(--brand-l); }
.dt-fol.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.dt-tyd-wrap { text-align: center; margin: 1.6rem 0; }
.dt-tyd-btn { min-width: 260px; justify-content: center; }
.dt-tyd-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.dt-result:empty { display: none; }
.dt-res-inner { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.dt-res-tit { background: linear-gradient(135deg, var(--t8a), var(--t8b)); color: #fff; margin: 0; padding: 1.2rem 1.5rem; font-size: 1.6rem; }
.dt-res-intro { font-family: var(--sans); font-size: 1.05rem; color: var(--text); padding: 1.3rem 1.5rem 0; margin: 0; }
.dt-kort-grid { display: grid; gap: 1rem; padding: 1.3rem 1.5rem; }
.dt-kort { border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: var(--r); padding: 1.1rem 1.3rem; background: var(--bg); }
.dt-kort h3 { font-size: 1.35rem; margin: 0 0 .35rem; }
.dt-kort p { font-family: var(--sans); font-size: .98rem; color: var(--text); margin: 0 0 .6rem; }
.dt-les { font-family: var(--sans); font-weight: 800; font-size: .9rem; color: var(--brand-d); }
.dt-les:hover { color: var(--accent-d); }
.dt-res-note { margin: 0 1.5rem 1.3rem; }
.dt-res-akt { text-align: center; padding: 0 1.5rem 1.5rem; }

/* ---------- Hjelpere ---------- */
.center { text-align: center; }
.muted { color: var(--text-light); }
.pill { display:inline-block; font-family: var(--sans); background: var(--brand-soft); color: var(--brand-d); font-weight: 800; font-size: .76rem; letter-spacing: .04em; padding: .35rem .9rem; border-radius: var(--r-pill); text-transform: uppercase; }
.article.center { max-width: 640px; }

/* ---------- 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; }
}
@media (max-width: 1240px) {
  .nav-menu { position: fixed; inset: 62px 0 auto 0; background: var(--white); 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 - 62px); 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-mega, .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; }
  .dropdown-col { margin-bottom: .6rem; }
  .nav-toggle { display: block; margin-left: auto; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 2.8rem 0; }
  .hero-inner { padding: 3.2rem 1.2rem; }
  .article .lead + p::first-letter { font-size: 2.6rem; }
}
