/* ─────────────────────────────────────────────────────────────────────────
   TRENING OG SKADE — Redaksjonelt oppslagsverk
   Rolig, saklig typografi og funksjonell fargebruk uten AI-klisjeer.
   ───────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/manrope-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/newsreader-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/newsreader-latin-wght-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2');
}

:root {
  /* Overflater: Varmt papir, lys stein og rene arbeidsflater */
  --bg:           #F5F2EB;
  --bg-alt:       #EAE5DA;
  --bg-card:      #FAF8F4;
  --bg-recessed:  #EFECE3;

  /* Typografisk blekk */
  --ink:          #181A19;
  --ink-soft:     #3F4542;
  --ink-mute:     #6C736F;
  --ink-faint:    #939A96;

  /* Rolige konstruksjonslinjer */
  --line:         #DDD7CA;
  --line-soft:    #E7E2D7;
  --line-strong:  #B9B1A1;
  --rule:         #CBC4B5;

  /* Funksjonell fargepalett */
  --accent:       #1B5E43;
  --accent-hover: #124430;
  --accent-soft:  #E1EDE7;
  --signal:       #C94A29;
  --signal-soft:  #F8E6E0;

  --kat-ovelse:   #1B6346;
  --kat-skade:    #B83B2A;
  --kat-program:  #215380;
  --kat-krav:     #A66B14;
  --kat-guide:    #2E5B58;

  --ill-1:        #1B5E43;
  --ill-2:        #C94A29;

  --sans:         'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --serif:        'Newsreader', Georgia, serif;
  --hd-serif:     'Newsreader', Georgia, serif;
  --hd-sans:      'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --hd-mono:      'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --max-w:        1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color .14s ease, border-color .14s ease, background-color .14s ease;
}
a:hover { color: var(--signal); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.hopp {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: var(--bg-card);
  padding: 8px 14px;
  font-size: 13px;
  z-index: 100;
}
.hopp:focus { left: 12px; }

.eksempel-merke {
  background: var(--signal);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
}

.logo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  flex-shrink: 0;
}

/* ───────────────────────────── Toppfelt ───────────────────────────── */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--hd-serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.site-logo:hover { color: var(--ink); }

.site-nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.site-nav-links a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.site-nav-links a:hover {
  color: var(--ink);
}
.site-nav-links a[aria-current="true"] {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--nav-color, var(--signal));
}
.site-nav-links a.nav-verktoy {
  color: var(--ink);
  font-weight: 600;
}
.site-nav-toggle, .site-nav-toggle-label { display: none; }

/* ───────────────────────────── Brødsmulesti ───────────────────────────── */

.sp2-crumb-bar {
  border-bottom: 1px solid var(--line-soft);
  padding: 10px 28px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.sp2-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-mute);
  flex-wrap: wrap;
}
.sp2-crumb a { color: var(--ink-mute); }
.sp2-crumb a:hover { color: var(--ink); }
.sp2-crumb .sep { color: var(--ink-faint); }
.sp2-crumb .current { color: var(--ink-soft); font-weight: 500; }

/* ───────────────────────────── Hovedramme ───────────────────────────── */

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ───────────────────────────── Forside: Rolig Redaksjonell Inngang ───────────────────────────── */

.home-hero-v3 {
  padding: 52px 0 40px;
  border-bottom: 1px solid var(--ink);
}
.hero-main {
  max-width: 680px;
}
.home-hero-v3 h1 {
  font-family: var(--hd-serif);
  font-weight: 500;
  font-size: clamp(32px, 4.2vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 14px;
}
.hero-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 26px;
}
.hero-dir {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.hero-dir a {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}
.hero-dir a::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--kat-color, var(--accent));
  margin-right: 2px;
  align-self: center;
}
.hero-dir a span {
  font-family: var(--hd-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-mute);
}
.hero-dir a:hover { color: var(--signal); }

/* ───────────────────────────── Søkefelt ───────────────────────────── */

.search-wrapper {
  position: relative;
  max-width: 520px;
}
.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  color: var(--ink-mute);
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 3px;
  outline: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.search-input::placeholder { color: var(--ink-mute); }
.search-input:focus {
  border-color: var(--ink);
  background: #fff;
}
.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: var(--bg-card);
  border: 1px solid var(--ink);
  border-radius: 3px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  text-align: left;
  z-index: 40;
  max-height: 360px;
  overflow-y: auto;
}
.search-results a {
  display: block;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}
.search-results a:last-child { border-bottom: none; }
.search-results a:hover, .search-results a[aria-selected="true"] {
  background: var(--bg-alt);
}
.search-results small {
  display: block;
  font-size: 11px;
  color: var(--kat-color, var(--ink-mute));
  margin-bottom: 1px;
}
.search-results strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}
.search-empty {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--ink-mute);
  margin: 0;
}

/* ───────────────────────────── Forsideseksjoner: Asymmetrisk 2-kolonne ───────────────────────────── */

.home-section-v2 {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.home-section-v2:last-child { border-bottom: none; }

.home-split {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}
.home-split-left {
  position: relative;
  padding-top: 10px;
  border-top: 2.5px solid var(--kat-color, var(--ink));
}
.home-split-left h2 {
  font-family: var(--hd-serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}
.home-split-left h2 a { color: var(--ink); }
.home-split-left h2 a:hover { color: var(--signal); }
.section-sub {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.split-more {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--kat-color, var(--accent));
}
.split-more:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Redaksjonelle rader (erstatter kort-bokser) */
.home-row-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.home-row {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}
.home-row:last-child { border-bottom: none; }
.home-row:hover h3 { color: var(--kat-color, var(--signal)); }
.home-row-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 4px;
}
.home-row h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.35;
  margin: 0;
  color: var(--ink);
  transition: color .14s ease;
}
.home-row-kat {
  font-size: 12.5px;
  color: var(--ink-mute);
  white-space: nowrap;
  flex-shrink: 0;
}
.home-row p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 68ch;
}

/* Kompakt verktøyrutenett på forsiden */
.home-vt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.home-vt-item {
  display: block;
  padding: 15px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
}
.home-vt-item:hover {
  border-color: var(--ink-soft);
  background: #fff;
  color: var(--ink);
}
.home-vt-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}
.home-vt-item h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15.5px;
  margin: 0;
  color: var(--ink);
}
.home-vt-top span {
  font-family: var(--hd-mono);
  font-size: 11px;
  color: var(--kat-krav);
}
.home-vt-item p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* Tema-lenker */
.home-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.home-quick a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 7px 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.home-quick a span {
  font-family: var(--hd-mono);
  font-size: 11.5px;
  color: var(--ink-mute);
}
.home-quick a:hover {
  border-color: var(--ink-soft);
  background: #fff;
  color: var(--ink);
}

/* ───────────────────────────── Rolige Annonseplasser ───────────────────────────── */

.ad-slot {
  margin: 28px 0;
  padding: 8px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.ad-slot-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.ad-slot-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.ad-slot-line { display: none; }
.ad-slot-body {
  min-height: 0;
  overflow: hidden;
}
.ad-slot ins.adsbygoogle[data-ad-status="unfilled"] {
  display: none !important;
}
.ad-slot-rail {
  margin-top: 28px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  border-bottom: none;
}

/* ───────────────────────────── Kategori- og temasider ───────────────────────────── */

.sphub-hero {
  padding: 36px 0 24px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 20px;
}
.sphub-hero h1 {
  font-family: var(--hd-serif);
  font-weight: 500;
  font-size: clamp(30px, 3.8vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.sphub-hero .lead {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 12px;
}
.sphub-meta {
  font-size: 13.5px;
  color: var(--ink-mute);
}
.sphub-meta strong { color: var(--ink); font-weight: 600; }

.sphub-tema {
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
}
.sphub-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.sphub-section:last-child { border-bottom: none; }
.sphub-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.sphub-section-head h2 {
  font-family: var(--hd-serif);
  font-weight: 500;
  font-size: 24px;
  margin: 0;
}
.sphub-section-head h2 a:hover { color: var(--signal); }
.sphub-section-kat {
  font-family: var(--hd-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
}
.sphub-section-count {
  font-family: var(--hd-mono);
  font-size: 12px;
  color: var(--ink-mute);
}

.liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 36px;
  border-top: 1px solid var(--line-soft);
}
.liste li a {
  display: flex;
  flex-direction: column;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}
.liste li a:hover .liste-t {
  color: var(--kat-color, var(--signal));
}
.liste-m {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--kat-color, var(--accent));
  margin-bottom: 2px;
}
.liste-t {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.35;
  color: var(--ink);
  transition: color .14s ease;
}
.liste-i {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-top: 4px;
}
.liste-kort { grid-template-columns: repeat(3, 1fr); gap: 0 28px; }

.vis-alle {
  display: inline-block;
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
}
.vis-alle:hover { text-decoration: underline; }

/* ───────────────────────────── Artikkelside ───────────────────────────── */

.sp2-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 36px 28px 72px;
  display: grid;
  grid-template-columns: 185px minmax(0, 660px) 210px;
  gap: 44px;
  justify-content: space-between;
  align-items: start;
}
.sp2-rail {
  position: sticky;
  top: 32px;
  font-size: 13.5px;
}
.sp2-rail-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.sp2-tocd > summary { display: none; }
.sp2-toc {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sp2-toc li { margin-bottom: 7px; }
.sp2-toc a {
  display: block;
  color: var(--ink-soft);
  line-height: 1.35;
  padding: 2px 0;
  font-size: 13px;
}
.sp2-toc a:hover, .sp2-toc a.aktiv {
  color: var(--ink);
  font-weight: 600;
}

.sp2-relart {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sp2-relart li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.sp2-relart li:last-child { border-bottom: none; }
.sp2-relart a {
  color: var(--ink);
  font-weight: 500;
  line-height: 1.35;
  display: block;
  font-size: 13.5px;
}
.sp2-relart a:hover { color: var(--signal); }
.sp2-relart small {
  display: block;
  color: var(--kat-color, var(--accent));
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 2px;
}

.sp2-kat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--kat-color, var(--accent));
  margin-bottom: 8px;
}
.sp2-kat a { color: inherit; }
.sp2-kat a:hover { text-decoration: underline; }
.vt-type-badge {
  color: var(--ink-mute);
  font-weight: 400;
  font-size: 12.5px;
}
.vt-type-badge::before {
  content: '· ';
}

.sp2-tittel {
  font-family: var(--hd-serif);
  font-weight: 500;
  font-size: clamp(30px, 3.8vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--ink);
}
.sp2-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.sp2-meta a {
  color: var(--ink-soft);
  font-weight: 500;
}
.sp2-meta .d { color: var(--ink-faint); }

/* Naturlig redaksjonell ingress (uten AI «Kort svar»-boks) */
.sp2-ingress {
  font-family: var(--hd-serif);
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

/* Brødtekst */
.sp2-prosa h2 {
  font-family: var(--hd-serif);
  font-weight: 500;
  font-size: 25px;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 38px 0 12px;
  color: var(--ink);
  scroll-margin-top: 32px;
}
.sp2-prosa > h2:first-child { margin-top: 0; }
.sp2-prosa h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17.5px;
  line-height: 1.35;
  margin: 26px 0 8px;
  color: var(--ink);
}
.sp2-prosa p { margin: 0 0 16px; color: var(--ink); }
.sp2-prosa ul, .sp2-prosa ol { margin: 0 0 18px; padding-left: 22px; }
.sp2-prosa li { margin-bottom: 6px; }
.sp2-prosa a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(27, 94, 67, 0.35);
  text-underline-offset: 3px;
}
.sp2-prosa a:hover {
  color: var(--signal);
  text-decoration-color: var(--signal);
}
.sp2-prosa strong { font-weight: 600; color: var(--ink); }

/* Tabeller */
.sp2-tabell {
  overflow-x: auto;
  margin: 22px 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.sp2-tabell table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
.sp2-tabell th, .sp2-tabell td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.sp2-tabell tr:last-child td { border-bottom: none; }
.sp2-tabell th {
  font-weight: 600;
  font-size: 12.5px;
  color: var(--ink);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}

/* Figurer */
.sp2-fig {
  margin: 26px 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 18px;
}
.sp2-fig-inn {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.sp2-fig svg {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  color: var(--ink);
  font-family: var(--sans);
}
.sp2-fig img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 2px;
  margin: 0 auto;
}
.sp2-fig figcaption {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--ink-mute);
}
.sp2-bestilt {
  border: 1px dashed var(--line-strong);
  border-radius: 3px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--ink-soft);
  background: var(--bg-alt);
}
.sp2-bestilt b {
  display: block;
  font-size: 11.5px;
  color: var(--signal);
  margin-bottom: 4px;
}

/* Vanlige spørsmål */
.sp2-faq {
  margin: 12px 0 8px;
  border-top: 1px solid var(--line);
}
.sp2-faq details {
  border-bottom: 1px solid var(--line);
}
.sp2-faq summary {
  padding: 13px 0;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--ink);
}
.sp2-faq summary::-webkit-details-marker { display: none; }
.sp2-faq summary::after {
  content: '+';
  font-family: var(--hd-mono);
  font-size: 16px;
  color: var(--ink-mute);
  flex-shrink: 0;
}
.sp2-faq details[open] summary::after { content: '−'; }
.sp2-faq details > div {
  padding: 0 0 14px;
  color: var(--ink-soft);
  font-size: 15.5px;
}
.sp2-faq details > div p:last-child { margin-bottom: 0; }

/* Kilder og merknad */
.sp2-kilder {
  font-size: 13.5px;
  color: var(--ink-soft);
  padding-left: 20px;
}
.sp2-kilder li { margin-bottom: 6px; }
.sp2-kilder span {
  color: var(--ink-mute);
  font-size: 12px;
  margin-left: 6px;
}
.sp2-note {
  margin-top: 30px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-left: 3px solid var(--line-strong);
  font-size: 13.5px;
  color: var(--ink-soft);
}

.tekstside {
  max-width: 660px;
  padding: 40px 0 72px;
}
.tekstside h1 {
  font-family: var(--hd-serif);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.12;
  margin: 0 0 22px;
}

/* ───────────────────────────── Bunnfelt ───────────────────────────── */

.site-footer {
  max-width: var(--max-w);
  margin: 56px auto 0;
  padding: 28px 28px 44px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13.5px;
  color: var(--ink-mute);
}
.site-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.site-footer-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
}
.site-footer-sub {
  font-size: 13px;
  color: var(--ink-mute);
}
.site-footer-links {
  display: flex;
  gap: 20px;
  font-size: 13.5px;
}
.site-footer-links a { color: var(--ink-soft); }
.site-footer-links a:hover { color: var(--ink); }

/* ─────────────────────────────────────────────────────────────────────────
   VERKTØY & KALKULATORER — Saklig, taktilt instrumentpanel
   ───────────────────────────────────────────────────────────────────────── */

.vt-side {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 28px 72px;
}
.vt-ingress {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 22px;
}
.vt-status {
  display: inline-block;
  font-size: 12px;
  color: var(--kat-krav);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 2px;
  margin-bottom: 12px;
}
.vt-relatert {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.vt-relatert .liste-kort { grid-template-columns: repeat(2, 1fr); }
.vt-hub-filter { margin: 20px 0 8px; max-width: 420px; }

.vt {
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 22px 24px;
  margin: 0 0 36px;
}
.vt-skjema {
  margin: 0;
  padding: 0;
}
.vt-rad {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.vt-rad:last-child { margin-bottom: 0; }
.vt-felt {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}
.vt-rad > .vt-felt { margin-bottom: 0; }

.vt-felt > label, .vt-felt > legend, .vt-felt > .vt-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  padding: 0;
}
fieldset.vt-felt {
  border: 0;
  padding: 0;
  margin: 0 0 14px;
  min-width: 0;
}
.vt-rad > fieldset.vt-felt { margin-bottom: 0; }
.vt-felt small, .vt-hjelp {
  font-size: 12.5px;
  color: var(--ink-mute);
  line-height: 1.4;
}
.vt-med-enhet {
  position: relative;
  display: flex;
  align-items: center;
}
.vt-med-enhet input {
  padding-right: 52px;
}
.vt-enhet {
  position: absolute;
  right: 11px;
  font-family: var(--hd-mono);
  font-size: 12px;
  color: var(--ink-mute);
  pointer-events: none;
}
.vt-knapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.vt-smal {
  max-width: 340px;
  margin: 0 auto;
}
.vt-nobr { white-space: nowrap; }
.vt-fingen { fill: none; }

@media print {
  .vt-ikke-utskrift, .site-header, .site-footer, .sp2-crumb-bar, .ad-slot {
    display: none !important;
  }
}

.vt input[type="number"],
.vt input[type="text"],
.vt select,
.vt textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--sans);
  font-size: 16.5px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  appearance: none;
  -webkit-appearance: none;
}
.vt select {
  padding-right: 34px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23181A19' stroke-width='1.6' stroke-linecap='round'><path d='M1 1.5L6 6.5L11 1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.vt input:focus, .vt select:focus, .vt textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
}

.vt-valg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.vt-valg label {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
}
.vt-valg label:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.vt-valg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.vt-valg label:has(input:checked) {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg-card);
  font-weight: 600;
}
.vt-valg label:has(input:focus-visible) {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.vt-knapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}
.vt-knapp:hover { background: var(--accent-hover); }
.vt-knapp-lett {
  background: var(--bg-card);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.vt-knapp-lett:hover {
  background: #fff;
  border-color: var(--ink);
}
.vt-knapp-liten {
  padding: 6px 12px;
  font-size: 13px;
}

.vt-svar {
  margin-top: 16px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 3px;
}
.vt-svar-gront { border-left-color: var(--kat-ovelse); }
.vt-svar-gult  { border-left-color: var(--kat-krav); }
.vt-svar-rodt  { border-left-color: var(--kat-skade); }

.vt-svar-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-mute);
  margin-bottom: 2px;
}
.vt-svar-tall {
  font-family: var(--hd-serif);
  font-weight: 600;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.15;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.vt-svar-tekst {
  margin-top: 6px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.vt-svar-tekst p { margin: 6px 0 0; }

.vt-tall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.vt-tall small {
  display: block;
  font-size: 11.5px;
  color: var(--ink-mute);
  margin-bottom: 2px;
}
.vt-tall strong {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.vt-del {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.vt-del h3 {
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 10px;
}
.vt .sp2-tabell { margin: 12px 0 0; }
.vt-merk {
  font-size: 13px;
  color: var(--ink-mute);
  margin: 10px 0 0;
}
.vt-feil {
  color: var(--kat-skade);
  font-size: 14px;
  font-weight: 600;
  margin: 8px 0 0;
}

.vt-graf { margin-top: 14px; }
.vt-graf svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: var(--sans);
}

.vt-trinn {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-mute);
  margin-bottom: 8px;
}

.vt-flere {
  margin: 4px 0 14px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.vt-flere > summary {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 4px 0;
}
.vt-flere[open] > summary { margin-bottom: 12px; color: var(--ink); }

.vt-ur {
  font-family: var(--hd-mono);
  font-weight: 600;
  font-size: clamp(44px, 9vw, 64px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-align: center;
  padding: 18px 0 10px;
  color: var(--ink);
}
.vt-fase {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--signal);
}
.vt-runde {
  text-align: center;
  font-size: 14px;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.vt-midt {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.vt-sjekk {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}
.vt-sjekk li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px;
}
.vt-sjekk li:last-child { border-bottom: none; }
.vt-sjekk label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex: 1;
}
.vt-sjekk input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}
.vt-kryss {
  background: none;
  border: 0;
  color: var(--ink-mute);
  font-size: 18px;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
}
.vt-kryss:hover { color: var(--kat-skade); }

.vt-bilde {
  display: block;
  width: 88px;
  height: 66px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.vt-f0   { fill: var(--accent); }
.vt-f1   { fill: var(--kat-program); }
.vt-f2   { fill: var(--kat-krav); }
.vt-f3   { fill: var(--kat-skade); }
.vt-f4   { fill: var(--ink-mute); }
.vt-f5   { fill: var(--line); }
.vt-flys { fill: var(--accent-soft); }
.vt-s0   { stroke: var(--accent); fill: none; }
.vt-s1   { stroke: var(--kat-program); fill: none; }
.vt-s2   { stroke: var(--kat-skade); fill: none; }
.vt-slinje { stroke: var(--line); fill: none; }

/* ───────────────────────────── Responsivt ───────────────────────────── */

@media (max-width: 1020px) {
  .home-split {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .sp2-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 24px 20px 56px;
  }
  .sp2-rail { position: static; }
  .sp2-rail-venstre {
    order: 0;
    margin-bottom: 20px;
  }
  .sp2-innhold { order: 1; }
  .sp2-rail-hoyre {
    order: 2;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }
  .sp2-tocd {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 10px 14px;
  }
  .sp2-tocd > .sp2-rail-label { display: none; }
  .sp2-tocd > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
  }
  .sp2-tocd > summary::-webkit-details-marker { display: none; }
  .sp2-tocd > summary::after { content: '+'; font-size: 15px; }
  .sp2-tocd[open] > summary { margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
  .sp2-tocd[open] > summary::after { content: '−'; }
  .liste-kort { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .site-header { padding: 0 18px; height: 56px; }
  .sp2-crumb-bar { padding: 8px 18px; }
  .wrap { padding: 0 18px; }
  .home-hero-v3 { padding: 32px 0 28px; }
  .home-vt-grid, .liste, .liste-kort, .vt-relatert .liste-kort { grid-template-columns: 1fr; }
  .vt-side { padding: 20px 18px 56px; }
  .vt { padding: 16px; }
  .vt-svar { padding: 14px 16px; }
  .site-footer { padding: 24px 18px 36px; }

  .site-nav-toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    cursor: pointer;
    color: var(--ink);
  }
  .site-nav-toggle-label svg { width: 20px; height: 20px; }
  .site-nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 56px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--line);
    padding: 12px 18px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    z-index: 50;
  }
  .site-nav-links a { padding: 8px 0; font-size: 15px; }
  .site-nav-toggle:checked ~ .site-nav-links { display: flex; }
}
