/* Leseflate for juridiske dokumenter.
   Flat og nøytral: ingen fargeflater, ingen rammer, ingen dekor.
   Bare overskrifter og løpende tekst. */

.dok {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) var(--pad-x) clamp(64px, 8vw, 96px);
  background: #fff;
}
body:has(.dok) { background: #fff; }

/* ── Tittel ─────────────────────────────────────────── */

.dok__head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
  margin-bottom: 32px;
}
.dok__head h1 {
  font-family: 'Barlow', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  color: var(--navy);
  max-width: none;
  margin: 0;
}
.dok__meta {
  margin-top: 12px;
  font-size: 15px;
  color: var(--text-soft);
}

/* ── Innholdsfortegnelse ────────────────────────────── */

.dok__toc { margin-bottom: 40px; }
.dok__toc h2 {
  font-family: 'Barlow', system-ui, sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--navy);
  margin: 0 0 10px;
}
.dok__toc ol {
  margin: 0;
  padding-left: 1.4em;
  display: grid;
  gap: 5px;
}
.dok__toc li { font-size: 16px; color: var(--text); }
.dok__toc a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }

/* ── Seksjoner ──────────────────────────────────────── */

.dok section {
  margin-bottom: 44px;
  scroll-margin-top: 20px;
}
.dok section:last-of-type { margin-bottom: 0; }

.dok h2 {
  font-family: 'Barlow', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  color: var(--navy);
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.dok h3 {
  font-family: 'Barlow', system-ui, sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  color: var(--navy);
  margin: 26px 0 8px;
}

/* ── Brødtekst ──────────────────────────────────────── */

.dok p {
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 12px;
}
.dok strong { color: var(--navy); font-weight: 600; }
.dok a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }

.dok ul {
  margin: 0 0 14px;
  padding-left: 1.4em;
  display: grid;
  gap: 6px;
}
.dok li {
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
}

.dok__adresse {
  margin-top: 20px;
  line-height: 1.8;
}

/* ── Tabell ─────────────────────────────────────────── */

.dok__tabell { overflow-x: auto; margin: 0 0 14px; }
.dok__tabell table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
}
.dok__tabell th,
.dok__tabell td {
  text-align: left;
  padding: 9px 12px 9px 0;
  padding-right: 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--text);
  line-height: 1.5;
}
.dok__tabell th {
  font-weight: 600;
  color: var(--navy);
  border-bottom-color: var(--text-faint);
}

/* ── Footer på dokumentsider ────────────────────────── */

.footer__bottom a { color: var(--navy); text-decoration: underline; }
