/* Norsk Datasuverenitet — the shared design system for the site, the map and Arbeidslaget.
   Single dark identity from Opie's images: night navy, ice blue, one red thread. Fonts are self-hosted. */
@import url(/nds/fonts.css);

:root {
  --natt: #0a1733; --dyp: #06102a; --flate: #0f2147; --linje: #213560;
  --stein: #8592ab; --sno: #e9eff9; --tekst: #c9d3e5; --is: #8cc0ff; --traad: #ff5a5f;
  --f-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-les: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { background: var(--natt); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--natt); color: var(--sno); font-family: var(--f-ui); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: var(--is); text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--is); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; letter-spacing: -.015em; }
p { margin: 0; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.smal { max-width: 752px; }
.etikett { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--stein); }
.hopp { position: absolute; left: -999px; top: 8px; z-index: 20; background: var(--sno); color: var(--dyp); padding: .5rem .8rem; border-radius: 6px; }
.hopp:focus { left: 16px; }

/* Header + footer. Desktop: logo · menu · Bli med. Phone: logo and Bli med on one row, menu below. */
.topp { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--natt) 85%, transparent); backdrop-filter: blur(10px); }
.topp .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "merke meny bli"; align-items: center; gap: .6rem 1.5rem; padding-block: .9rem; }
.merke { grid-area: merke; display: flex; align-items: center; gap: .6rem; color: var(--sno); text-decoration: none; font-family: var(--f-display); font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.merke canvas { width: 30px; height: 22px; }
.hovedmeny { grid-area: meny; justify-self: end; min-width: 0; }
.meny { display: flex; align-items: center; gap: .25rem 1.4rem; list-style: none; margin: 0; padding: 0; font-size: .95rem; white-space: nowrap; }
.meny a { color: var(--tekst); text-decoration: none; }
.meny a:hover, .meny a[aria-current="page"] { color: var(--sno); }
.meny a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--is); text-underline-offset: .45em; }
.bli { grid-area: bli; color: var(--dyp); background: var(--sno); padding: .38rem .9rem; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: .95rem; white-space: nowrap; }
.bli:hover, .bli[aria-current="page"] { background: var(--is); color: var(--dyp); }
@media (max-width: 720px) {
  .topp .wrap { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "merke bli" "meny meny"; padding-block: .7rem .55rem; }
  .hovedmeny { justify-self: stretch; overflow-x: auto; scrollbar-width: none; }
  .meny { gap: 1.25rem; font-size: .9rem; padding-bottom: .15rem; }
  .meny .lang { display: none; }
}
@media (min-width: 721px) { .meny .kort { display: none; } }
.fot { border-top: 1px solid var(--linje); margin-top: 5rem; }
.fot .wrap { padding-block: 2rem 2.5rem; display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; font-size: .875rem; color: var(--stein); }
@media (max-width: 720px) { .fot .wrap { flex-direction: column; } .fot nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1rem; } }
.fot nav { display: flex; gap: .5rem 1.2rem; flex-wrap: wrap; }
.fot a { color: var(--stein); text-decoration: none; }
.fot a:hover { color: var(--sno); }

/* Buttons and quiet links */
.knapp { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.3rem; border-radius: 999px; font-weight: 600; text-decoration: none; background: var(--is); color: var(--dyp); }
.knapp:hover { background: var(--sno); }
.lenke-stille { color: var(--tekst); text-decoration: none; border-bottom: 1px solid var(--linje); padding-bottom: 2px; }
.lenke-stille:hover { color: var(--sno); border-color: var(--is); }

/* Front page */
.hero { position: relative; overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .wrap { position: relative; padding-block: clamp(3.5rem, 11vw, 8rem) clamp(12rem, 30vw, 21rem); display: grid; gap: 2rem; justify-items: start; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.08; font-weight: 800; max-width: 22ch; color: var(--tekst); }
.hero h1 .navn { color: var(--sno); }
.hero h1 em { font-style: normal; color: var(--is); }
.videre { display: flex; align-items: center; gap: 1rem 1.6rem; flex-wrap: wrap; }
.siste { padding-block: 3.5rem 0; }
.siste a.teaser { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.8rem; align-items: center; text-decoration: none; color: inherit; }
.siste img { aspect-ratio: 16 / 9; object-fit: cover; object-position: 40% 50%; border-radius: 10px; width: 100%; transition: transform .4s ease; }
.siste a:hover img { transform: scale(1.015); }
.siste .tekst { display: grid; gap: .7rem; }
.siste h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.12; color: var(--sno); }
.siste a:hover h2 { color: var(--is); }
.siste p { font-family: var(--f-les); font-size: 1.1rem; color: var(--tekst); max-width: 44ch; }
@media (max-width: 760px) { .siste a.teaser { grid-template-columns: minmax(0, 1fr); } }

/* Inner pages */
.side { padding-block: 3.5rem 0; display: grid; gap: 4rem; }
.side-hode { padding-block: 3.5rem 2rem; display: grid; gap: .8rem; }
.side-hode h1, .apning h1, .side > h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.05; }
.side-hode p { color: var(--tekst); font-size: 1.1rem; max-width: 46ch; }
.under { color: var(--stein); font-size: .95rem; }

/* Article index */
.saker { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.saker button { font: inherit; font-size: .9rem; color: var(--tekst); background: transparent; border: 1px solid var(--linje); border-radius: 999px; padding: .4rem .9rem; cursor: pointer; }
.saker button:hover { border-color: var(--stein); color: var(--sno); }
.saker button[aria-pressed="true"] { background: var(--sno); color: var(--dyp); border-color: var(--sno); }
.sak-tekst { color: var(--stein); font-size: .95rem; max-width: 60ch; min-height: 1.6em; margin-bottom: 2rem; }
.hoved a { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: end; text-decoration: none; color: inherit; padding-bottom: 2.5rem; border-bottom: 1px solid var(--linje); }
.hoved img { aspect-ratio: 16 / 9; object-fit: cover; object-position: 40% 50%; border-radius: 10px; width: 100%; }
.hoved .tekst { display: grid; gap: .8rem; }
.hoved h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.08; }
.hoved a:hover h2 { color: var(--is); }
.hoved p { font-family: var(--f-les); font-size: 1.12rem; color: var(--tekst); }
.meta { font-size: .85rem; color: var(--stein); }
.liste { list-style: none; margin: 0; padding: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.75rem; }
.liste li { display: grid; gap: .55rem; align-content: start; }
.liste h3 { font-size: 1.2rem; line-height: 1.2; color: var(--tekst); }
.liste h3 a { color: var(--sno); text-decoration: none; }
.liste h3 a:hover { color: var(--is); }
.liste p { font-size: .95rem; color: var(--stein); }
.kommer { font-family: var(--f-mono); font-size: .72rem; color: var(--stein); border: 1px dashed var(--linje); border-radius: 4px; padding: .05rem .4rem; justify-self: start; }
.tom { color: var(--stein); padding-top: 2rem; }
@media (max-width: 760px) { .hoved a { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) { .liste { grid-template-columns: minmax(0, 1fr); } }

/* Article */
.artikkel { padding-block: 3rem 0; }
.hode { display: grid; gap: 1.1rem; }
.hode .sak { color: var(--is); text-decoration: none; }
.hode h1 { font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.02; font-weight: 800; }
.ingress { font-family: var(--f-les); font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.5; color: var(--sno); }
.byline { display: flex; gap: .4rem 1.2rem; flex-wrap: wrap; font-size: .875rem; color: var(--stein); border-top: 1px solid var(--linje); padding-top: 1rem; }
.utkast-merke { color: var(--traad); }
figure { margin: 0; }
figcaption { font-size: .85rem; color: var(--stein); margin-top: .6rem; }
.topbilde { margin-block: 3rem; }
.topbilde img { width: 100%; border-radius: 10px; aspect-ratio: 21 / 9; object-fit: cover; object-position: 40% 50%; }
.brodtekst { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; font-family: var(--f-les); font-size: 1.15rem; line-height: 1.72; color: var(--tekst); }
.brodtekst h2 { font-size: 1.65rem; line-height: 1.15; color: var(--sno); margin-top: 1.5rem; }
.brodtekst strong { color: var(--sno); font-weight: 600; }
.brodtekst ul, .brodtekst ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
.brodtekst > .bred { width: min(1088px, 100vw - 32px); margin-left: 50%; transform: translateX(-50%); margin-block: 1.75rem; }
.brodtekst > figure.bred img { width: 100%; border-radius: 10px; aspect-ratio: 16 / 7; object-fit: cover; object-position: center 46%; }
sup a { font-family: var(--f-mono); font-size: .68rem; text-decoration: none; padding-left: 1px; }
.brodtekst blockquote { margin: 1rem 0; padding: 0 0 0 1.4rem; border-left: 2px solid var(--traad); display: grid; gap: .7rem; }
.brodtekst blockquote p:first-child { font-family: var(--f-display); font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.25; color: var(--sno); font-weight: 700; }
.brodtekst blockquote p + p { font-family: var(--f-ui); font-size: .85rem; color: var(--stein); }
.fakta { background: var(--flate); border-radius: 10px; padding: 1.3rem 1.4rem; display: grid; gap: .8rem; font-family: var(--f-ui); font-size: .98rem; line-height: 1.55; }
.slutt { display: grid; gap: 1rem; padding: 1.6rem; border: 1px solid var(--linje); border-radius: 12px; font-family: var(--f-ui); margin-top: 1rem; }
.slutt h2 { font-size: 1.3rem; margin: 0; }
.slutt p { font-size: 1rem; color: var(--tekst); }
.slutt p:last-child { display: flex; gap: 1rem 1.5rem; flex-wrap: wrap; align-items: center; }
.slutt p:last-child a:first-child { display: inline-flex; padding: .85rem 1.3rem; border-radius: 999px; font-weight: 600; text-decoration: none; background: var(--is); color: var(--dyp); }
.slutt p:last-child a:first-child::after { content: " →"; }
.slutt p:last-child a + a { color: var(--tekst); text-decoration: none; border-bottom: 1px solid var(--linje); }
.kilder { font-family: var(--f-ui); font-size: .88rem; color: var(--stein); display: grid; gap: .6rem; margin-top: 2rem; }
.kilder h2 { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--stein); margin: 0; font-weight: 400; }
.kilder ol { margin: 0; padding-left: 1.3rem; display: grid; gap: .45rem; }
.kilder a { word-break: break-word; }

/* Register figure: one dot per site */
.figur { background: var(--dyp); border-radius: 12px; padding: clamp(1.2rem, 3vw, 2rem); display: grid; gap: 1.2rem; font-family: var(--f-ui); }
.figur h3 { font-size: 1.25rem; color: var(--sno); }
.figur .under { margin-top: .3rem; }
.legende { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; font-size: .9rem; color: var(--tekst); list-style: none; margin: 0; padding: 0; }
.legende li { display: flex; align-items: center; gap: .5rem; }
.legende b { color: var(--sno); font-variant-numeric: tabular-nums; }
.prikk { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.rutenett { display: grid; grid-template-columns: repeat(auto-fill, 22px); gap: 6px; position: relative; }
.rutenett a { width: 22px; height: 22px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; border-radius: 50%; }
.rutenett a span { width: 14px; height: 14px; border-radius: 50%; display: block; transition: transform .15s; }
.rutenett a:hover span, .rutenett a:focus-visible span { transform: scale(1.35); }
.k0 { background: #d6ebff; } .k1 { background: #8cc0ff; } .k2 { background: #4f7fc4; } .k3 { background: transparent; box-shadow: inset 0 0 0 1.5px #6b7b9c; }
.tips { position: absolute; z-index: 3; pointer-events: none; background: var(--sno); color: var(--dyp); font-size: .85rem; line-height: 1.35; padding: .45rem .65rem; border-radius: 6px; max-width: 16rem; }
.tips small { display: block; color: #4a5672; }
.figur details summary { cursor: pointer; color: var(--is); font-size: .9rem; }
.tabell { max-height: 22rem; overflow: auto; }
.figur table { border-collapse: collapse; width: 100%; font-size: .88rem; margin-top: .8rem; }
.figur td, .figur th { text-align: left; padding: .35rem .5rem .35rem 0; border-bottom: 1px solid var(--linje); }
.figur th { font-family: var(--f-mono); font-weight: 400; font-size: .72rem; text-transform: uppercase; color: var(--stein); }
.kilde-fig { font-size: .82rem; color: var(--stein); }

/* About */
.apning { display: grid; gap: 1.2rem; }
.apning p { font-family: var(--f-les); font-size: 1.3rem; line-height: 1.5; color: var(--sno); }
.folk { display: flex; gap: 1.5rem 3rem; flex-wrap: wrap; }
.person { display: flex; gap: .9rem; align-items: center; }
.person .i { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--flate); font-family: var(--f-display); font-weight: 800; color: var(--is); }
.person small { display: block; color: var(--stein); }
.side section h2 { font-size: 1.5rem; margin-bottom: 1.2rem; }
.lofter { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; counter-reset: l; }
.lofter li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); counter-increment: l; }
.lofter li::before { content: counter(l); font-family: var(--f-mono); color: var(--is); grid-row: span 2; padding-top: .15rem; }
.lofter b { font-family: var(--f-display); font-size: 1.1rem; }
.lofter span { color: var(--tekst); }
.avh { overflow-x: auto; }
.avh table { border-collapse: collapse; width: 100%; }
.avh th, .avh td { text-align: left; padding: .65rem .8rem .65rem 0; border-bottom: 1px solid var(--linje); vertical-align: top; }
.avh th { font-family: var(--f-mono); font-weight: 400; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--stein); }
.land { font-family: var(--f-mono); font-size: .88rem; white-space: nowrap; color: var(--stein); }
.land.no { color: var(--is); }
.avh + .under { margin-top: 1rem; }
@media (max-width: 560px) {
  .avh thead { display: none; }
  .avh tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .15rem 1rem; padding-block: .7rem; border-bottom: 1px solid var(--linje); }
  .avh td { border: 0; padding: 0; }
  .avh td:first-child { font-weight: 600; color: var(--sno); }
  .avh td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: var(--tekst); font-size: .92rem; }
  .avh td.land { grid-column: 2; grid-row: 1; text-align: right; }
}

/* Join */
.inngang { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: 2.5rem; align-items: center; }
.inngang .tekst { display: grid; gap: 1.3rem; justify-items: start; }
.inngang h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.05; }
.inngang p { font-family: var(--f-les); font-size: 1.25rem; line-height: 1.5; color: var(--tekst); max-width: 34ch; }
.inngang img { border-radius: 12px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.kode { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font-size: .9rem; color: var(--stein); }
.kode code { font-family: var(--f-mono); color: var(--sno); background: var(--dyp); padding: .3rem .6rem; border-radius: 6px; user-select: all; }
.kode button { font: inherit; color: var(--is); background: transparent; border: 1px solid var(--linje); border-radius: 6px; padding: .3rem .65rem; cursor: pointer; }
.andre { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; border-top: 1px solid var(--linje); padding-top: 2.5rem; }
.andre div { display: grid; gap: .5rem; align-content: start; }
.andre h2 { font-size: 1.25rem; margin: 0 !important; }
.andre p { color: var(--tekst); }
@media (max-width: 760px) { .inngang { grid-template-columns: minmax(0, 1fr); } .inngang img { max-width: 14rem; } .andre { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Kjernesaker */
.sakliste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linje); }
.sakliste a { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr) auto; gap: .4rem 2rem; align-items: baseline; padding-block: 1.5rem; border-bottom: 1px solid var(--linje); text-decoration: none; color: inherit; }
.sakliste h2 { font-size: 1.3rem; line-height: 1.2; }
.sakliste a:hover h2 { color: var(--is); }
.sakliste p { color: var(--tekst); max-width: 60ch; }
.chip { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em; padding: .2rem .6rem; border-radius: 999px; border: 1px solid var(--linje); color: var(--stein); white-space: nowrap; justify-self: start; }
.chip.finnes { color: var(--dyp); background: var(--is); border-color: var(--is); }
@media (max-width: 760px) { .sakliste a { grid-template-columns: minmax(0, 1fr); } }
.relatert { font-family: var(--f-ui); display: grid; gap: .6rem; margin-top: 1rem; border-top: 1px solid var(--linje); padding-top: 1.5rem; }
.relatert h2 { font-size: 1.1rem !important; margin: 0 !important; }
.relatert ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: 1rem; }

/* About: what we think */
.mener p { font-family: var(--f-les); font-size: 1.12rem; line-height: 1.7; color: var(--tekst); }
.mener { display: grid; gap: 1.1rem; }
.mener h2 { margin-bottom: .2rem !important; }
.ikke-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.ikke-liste li { display: grid; gap: .15rem; padding-left: 1rem; border-left: 2px solid var(--linje); }
.ikke-liste b { font-family: var(--f-display); font-size: 1.05rem; }
.ikke-liste span { color: var(--tekst); }
.side .kilder { margin-top: 0; }
.side .kilder h2 { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--stein); font-weight: 400; margin: 0; }
