/* ═══════════════════════════════════════════════════════════
   SKARYA SITE TEMPLATE — style.css
   CSS-variabler injiseres fra PHP via header.php <style>-blokk
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

/* Inter-matched fallback font via metrics overrides — eliminerer CLS ved font-swap.
   src lister flere font-fall slik at også Lighthouse-Linux (uten Arial) får et match;
   metric-tallene er kalibrert mot Inter slik at fallback tar nøyaktig samme plass. */
@font-face {
  font-family: 'Inter-fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Helvetica'),
       local('Liberation Sans'), local('DejaVu Sans'), local('FreeSans'), local('sans-serif');
  size-adjust: 107.4%;
  ascent-override: 90.5%;
  descent-override: 22.6%;
  line-gap-override: 0%;
}
:root {
  --font-body:    'Inter', 'Inter-fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-heading: 'Inter', 'Inter-fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Hovedinnholdslandmark fra header.php — inget visuelt skift */
main#main { display: block; }

/* Inline-lenker i brødtekst skal være under-stryket (ikke bare farge).
   Brede selektorer slik at intet inline-link i body-tekst går igjennom uten distinksjon. */
section a,
.tb-callout a,
.tb-source a,
.tb-faq-answer a,
.body-text a,
.legal-section a,
table a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
/* Unntak: lenker som er hele kort, knapper eller nav-elementer */
.tb-preview-card,
.tb-preview-link,
.tb-toc a,
.tb-trust-pill,
.btn,
.logo,
.main-nav a,
.footer-nav-group a,
.tb-hero a { text-decoration: none; }
.footer-nav-group a:hover { text-decoration: underline; }
/* Breadcrumb-lenken skal være under-stryket for å bestå link-in-text-block (3:1-regelen) */
.tb-breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.tb-preview-card { text-decoration: none; color: inherit; display: block; }
.tb-preview-card * { text-decoration: none; }

/* ── Typografi ───────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h3 { font-size: 1.15rem; }
p  { color: var(--text); }
a  { color: var(--primary); }
a:hover { color: var(--primary-dark); }

/* ── Layout ──────────────────────────────────────────────── */
.container   { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section     { padding: 64px 0; }
.section-sm  { padding: 40px 0; }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
  gap: 16px;
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.logo-icon { font-size: 1.4rem; }
.logo-name  { font-weight: 700; font-size: 1.05rem; font-family: var(--font-heading); }

.main-nav ul   { list-style: none; display: flex; gap: 4px; }
.main-nav a    { color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 500; padding: 6px 12px; border-radius: 7px; transition: var(--transition); }
.main-nav a:hover, .main-nav a.active { background: var(--bg); color: var(--primary); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ── Fartssoner-dropdown ─────────────────────────────────── */
.main-nav .has-sub { position: relative; }
.main-nav .nav-parent { display: inline-block; color: var(--text); font-size: .9rem; font-weight: 500; padding: 6px 12px; border-radius: 7px; cursor: pointer; transition: var(--transition); user-select: none; }
.main-nav .nav-parent:hover, .main-nav .nav-parent.active { background: var(--bg); color: var(--primary); }
.main-nav .sub-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 210px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow); padding: 6px; z-index: 200; flex-direction: column; gap: 2px;
}
.main-nav .has-sub:hover .sub-menu,
.main-nav .has-sub:focus-within .sub-menu,
.main-nav .has-sub.open .sub-menu { display: flex; }
.main-nav .sub-menu a { display: block; white-space: nowrap; font-size: .86rem; }
/* Undermenyer lengst til høyre åpner mot venstre så de ikke renner ut av skjermen (desktop) */
.main-nav .sub-right .sub-menu { left: auto; right: 0; }

/* ── Bilder / figurer ─────────────────────────────────────── */
.tb-figure { margin: 0; }
.tb-figure img { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.tb-figure figcaption { font-size: .8rem; color: var(--text-muted); margin-top: 8px; text-align: center; }

/* ── Stabil navlinje (null vertikal hopping) ──────────────────
   Fast headerhøyde + identisk box-model/høyde på alle toppvalg, så font-
   innlasting (FOUT), hover og dropdown-åpning ikke flytter linja. */
.header-inner { min-height: 64px; }
@media (min-width: 769px) {
  .main-nav ul { align-items: center; }
  .main-nav > ul > li > a,
  .main-nav .nav-parent {
    display: inline-flex; align-items: center; height: 36px; line-height: 1;
    padding: 0 12px; border: 0; box-sizing: border-box;
  }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: var(--primary);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.hero-emoji { font-size: 3rem; display: block; margin-bottom: 16px; }
.hero h1    { color: #fff; margin-bottom: 16px; }
.hero-lead  { font-size: 1.1rem; opacity: .9; max-width: 560px; margin: 0 auto 28px; }

.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 52px 0;
}
.page-hero h1, .page-hero p { color: #fff; }
.page-hero p { opacity: .88; margin-top: 10px; font-size: 1.05rem; }
/* Section-label: standard variant for lyse seksjoner (blå tekst på lys bg) */
.section-label {
  display: inline-block; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  background: rgba(0, 82, 147, .08); color: var(--primary);
  padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
}
/* Section-label inne i hero: hvit på halv-transparent bakgrunn (god kontrast mot mørk blå) */
.page-hero .section-label, .tb-hero .section-label {
  background: rgba(255, 255, 255, .18); color: #fff;
}

/* ── Knapper ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 24px; border-radius: var(--radius);
  font-weight: 600; font-size: .9rem;
  text-decoration: none; cursor: pointer;
  border: none; transition: var(--transition);
  font-family: var(--font-body);
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ── Artikkelkort ────────────────────────────────────────── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.article-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
  text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: 8px;
  transition: var(--transition); box-shadow: var(--shadow);
}
.article-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); border-color: var(--primary); }
.article-card-cat {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--primary);
}
.article-card h3 { font-size: 1rem; color: var(--text); line-height: 1.3; }
.article-card p  { font-size: .85rem; color: var(--text-muted); line-height: 1.55; flex: 1; }
.article-card-meta { display: flex; gap: 12px; font-size: .75rem; color: var(--text-muted); margin-top: 4px; }

/* ── Seksjonstittel ──────────────────────────────────────── */
.section-title { font-size: 1.5rem; margin-bottom: 28px; }

/* ── Kontaktskjema ───────────────────────────────────────── */
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 14px; margin-bottom: 32px; }
.info-card  { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }
.info-card-icon  { font-size: 1.6rem; margin-bottom: 6px; }
.info-card-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 4px; }
.info-card-value { font-size: .9rem; font-weight: 600; color: var(--text); }
.info-card a { color: var(--primary); }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group   { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: .8rem; color: var(--text-muted); font-weight: 500; }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: .95rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 140px; }

/* ── Alerts ──────────────────────────────────────────────── */
.alert         { border-radius: var(--radius); padding: 14px 16px; font-size: .88rem; margin-bottom: 20px; }
.alert-success { background: #f0faf4; border: 1px solid #a7f3d0; color: #065f46; }
.alert-warning { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; }

/* ── Om oss ──────────────────────────────────────────────── */
.publisher-card {
  display: flex; align-items: center; gap: 24px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; margin-bottom: 36px;
  flex-wrap: wrap;
}
.publisher-icon { font-size: 2.4rem; width: 72px; height: 72px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.publisher-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 4px; }
.publisher-name  { font-size: 1.25rem; font-weight: 700; font-family: var(--font-heading); }
.publisher-url a { font-size: .88rem; color: var(--primary); }
.body-text { font-size: 1rem; line-height: 1.8; color: var(--text-muted); margin-bottom: 18px; }
.cta-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; }
.cta-box p { color: var(--text-muted); margin-bottom: 14px; }

/* ── Juridiske sider ─────────────────────────────────────── */
.legal-section h2 { font-size: 1.15rem; font-family: var(--font-heading); margin-bottom: 10px; }
.legal-section p  { font-size: .9rem; line-height: 1.75; color: var(--text-muted); }
.legal-divider    { border: none; border-top: 1px solid var(--border); margin: 28px 0; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: var(--text); color: #d1d5db; padding: 48px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, auto);
  gap: 32px 48px; padding-bottom: 40px;
}
.footer-logo    { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 8px; display: block; }
.footer-tagline { font-size: .85rem; color: #9ca3af; }
.footer-nav-group h4,
.footer-nav-h { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #d1d5db; margin-bottom: 12px; font-weight: 600; }
.footer-nav-group ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-nav-group a  { color: #d1d5db; text-decoration: none; font-size: .85rem; transition: var(--transition); }
.footer-nav-group a:hover { color: #fff; text-decoration: underline; }
.footer-bottom p { color: #d1d5db !important; }
.footer-bottom a { color: #fff !important; text-decoration: underline; }
.footer-bottom { background: rgba(0,0,0,.2); padding: 16px 0; }
.footer-bottom p { font-size: .78rem; color: #6b7280; }
.footer-bottom a { color: #9ca3af; }

/* ── Responsiv ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }                 /* vis hamburger-knappen på mobil */
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 10px 16px; max-height: 80vh; overflow-y: auto; box-shadow: var(--shadow); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a, .main-nav .nav-parent { display: block; padding: 11px 12px; }  /* større trykkflate */
  /* Dropdown blir inline-blokk på mobil: vis alltid undermeny, ingen absolutt posisjon */
  .main-nav .sub-menu { display: flex; position: static; border: none; box-shadow: none; padding: 2px 0 6px 16px; min-width: 0; background: transparent; }
  /* Hamburger → X når menyen er åpen (JS setter aria-expanded) */
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   TRAFIKBÖTER.SE — sidespesifikke komponenter (tb-*)
   ═══════════════════════════════════════════════════════════ */

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ── Hero ────────────────────────────────────────────────── */
.tb-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 64px 0 56px;
  position: relative;
}
.tb-hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--accent);
}
.tb-hero-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  background: rgba(255,255,255,.14);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  color: #fff;
}
.tb-hero h1 {
  color: #fff;
  margin-bottom: 14px;
  max-width: 820px;
  font-size: clamp(1.85rem, 3.6vw, 2.6rem);
  line-height: 1.18;
}
.tb-hero-lead {
  color: #e7eef7;
  max-width: 720px;
  font-size: 1.05rem;
  margin-bottom: 22px;
}
.tb-trust-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.tb-trust-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-size: .78rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
}

/* ── Layout helpers ──────────────────────────────────────── */
.tb-narrow      { max-width: 820px; margin: 0 auto; }
.tb-section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tb-intro       { padding-top: 40px; padding-bottom: 16px; }
.tb-lead        { font-size: 1.05rem; line-height: 1.7; color: var(--text); margin-bottom: 20px; }
.tb-section-lead{ font-size: 1rem; line-height: 1.65; color: var(--text-muted); max-width: 720px; margin-bottom: 24px; }
.tb-source      { font-size: .82rem; color: var(--text-muted); margin-top: 14px; line-height: 1.6; }
.tb-source a    { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.tb-warn        { color: #b91c1c; font-weight: 600; }

/* ── Artikkelbrødtekst (data/artikler.json → artikel.php) ──
   Innholdet er rå HTML fra JSON og har ingen egne klasser, så
   rytmen settes her i stedet for i hver artikkel. */
.tb-article-body h2 { margin-top: 38px; margin-bottom: 12px; }
.tb-article-body h3 { margin-top: 26px; margin-bottom: 8px; }
.tb-article-body p  { line-height: 1.7; margin-bottom: 16px; }
.tb-article-body ul,
.tb-article-body ol { margin: 0 0 16px 1.25rem; line-height: 1.7; }
.tb-article-body li { margin-bottom: 6px; }
.tb-article-body .tb-table-wrap { margin: 20px 0 24px; }
.tb-article-body > :first-child { margin-top: 0; }

/* ── Table of contents ───────────────────────────────────── */
.tb-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: .88rem;
  line-height: 1.9;
  color: var(--text-muted);
}
.tb-toc strong { display: block; color: var(--text); margin-bottom: 4px; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.tb-toc a { color: var(--primary); text-decoration: none; font-weight: 500; }
.tb-toc a:hover { text-decoration: underline; }

/* ── Tables ──────────────────────────────────────────────── */
.tb-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); margin: 8px 0 4px; }
.tb-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tb-table caption { text-align: left; padding: 12px 16px; font-weight: 600; color: var(--text); }
.tb-table thead th {
  text-align: left;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fff;
  background: var(--primary);
  padding: 12px 16px;
  font-weight: 700;
  border-bottom: 2px solid var(--primary-dark);
}
.tb-table tbody th, .tb-table tbody td { padding: 11px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.tb-table tbody th { text-align: left; font-weight: 600; color: var(--text); background: #fafbfd; width: 38%; }
.tb-table tbody tr:last-child th, .tb-table tbody tr:last-child td { border-bottom: none; }
.tb-table tbody tr:hover td, .tb-table tbody tr:hover th { background: #f4f7fb; }

.tb-fines-table tbody td { font-variant-numeric: tabular-nums; font-weight: 600; }
.tb-no-bot { color: #b91c1c; font-weight: 600; font-size: .88rem; }

/* ── Callouts ────────────────────────────────────────────── */
.tb-callout {
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-top: 18px;
  font-size: .92rem;
  line-height: 1.65;
  border-left: 4px solid;
}
.tb-callout p + p { margin-top: 8px; }
.tb-callout-info { background: #eef4fb; border-color: var(--primary); color: var(--text); }
.tb-callout-warn { background: #fffaeb; border-color: var(--accent); color: var(--text); }

/* ── Fact grid (säkerhetsavdrag) ─────────────────────────── */
.tb-fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 24px 0 8px;
}
.tb-fact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-align: left;
}
.tb-fact-num   { font-size: 1.8rem; font-weight: 800; color: var(--primary); font-family: var(--font-heading); margin-bottom: 4px; line-height: 1.1; }
.tb-fact-label { font-size: .85rem; color: var(--text-muted); line-height: 1.5; }

/* ── Example grid (räkneexempel) ─────────────────────────── */
.tb-example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.tb-example {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.tb-example-h { margin-bottom: 4px; }
.tb-example-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: var(--accent);
  color: #1a1a1a;
  padding: 3px 9px;
  border-radius: 12px;
  margin-bottom: 8px;
}
.tb-example h3 { font-size: 1.02rem; line-height: 1.3; color: var(--text); }
.tb-example-over { font-size: .82rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: .04em; }
.tb-example p { font-size: .9rem; line-height: 1.55; color: var(--text); }

/* ── Steg-liste (fartkamera-prosess) ─────────────────────── */
.tb-steps {
  list-style: none;
  counter-reset: tb-step;
  margin-top: 14px;
  padding: 0;
}
.tb-steps li {
  position: relative;
  padding: 12px 14px 12px 52px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  font-size: .92rem;
  line-height: 1.55;
  counter-increment: tb-step;
}
.tb-steps li::before {
  content: counter(tb-step);
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: #fff;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem;
  font-weight: 700;
}

/* ── FAQ (details/summary) ───────────────────────────────── */
.tb-faq-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.tb-faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.tb-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 50px 14px 18px;
  font-weight: 600;
  font-size: .98rem;
  color: var(--text);
  position: relative;
  user-select: none;
}
.tb-faq-item summary::-webkit-details-marker { display: none; }
.tb-faq-item summary::after {
  content: "+";
  position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem; line-height: 1;
  color: var(--primary);
  font-weight: 400;
  transition: transform var(--transition);
}
.tb-faq-item[open] summary::after { content: "−"; }
.tb-faq-item summary:hover { background: #f4f7fb; }
.tb-faq-answer { padding: 0 18px 16px; }
.tb-faq-answer p { color: var(--text-muted); font-size: .94rem; line-height: 1.65; }

/* ── Sources list ────────────────────────────────────────── */
.tb-sources-list {
  list-style: none;
  padding: 0;
  display: flex; flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.tb-sources-list li {
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  line-height: 1.55;
}
.tb-sources-list strong { color: var(--text); }
.tb-sources-list a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

/* ── Breadcrumbs ─────────────────────────────────────────── */
.tb-breadcrumb {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  font-size: .85rem;
  color: var(--text-muted);
}
.tb-breadcrumb a { color: var(--primary); text-decoration: none; }
.tb-breadcrumb a:hover { text-decoration: underline; }
.tb-breadcrumb .sep { margin: 0 6px; color: #c0c8d3; }

/* ── 2-col sammenligning (f.eks. omhändertagande vs återkallelse) ── */
.tb-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 18px 0 10px;
}
.tb-compare-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  border-top: 4px solid var(--primary);
}
.tb-compare-card.is-secondary { border-top-color: var(--accent); }
.tb-compare-card h3 { font-size: 1.05rem; margin-bottom: 12px; color: var(--text); }
.tb-compare-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.tb-compare-card li {
  font-size: .9rem; color: var(--text); line-height: 1.5;
  padding-left: 22px; position: relative;
}
.tb-compare-card li::before {
  content: "▸"; color: var(--primary);
  position: absolute; left: 4px; top: 0;
  font-weight: 700;
}
.tb-compare-card.is-secondary li::before { color: #d4a800; }

/* ── Preview-card til forsiden (kort som lenker til pillar pages) ── */
.tb-preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  display: flex; flex-direction: column; gap: 10px;
  transition: var(--transition);
}
.tb-preview-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.06); border-color: var(--primary); }
.tb-preview-card h3 { font-size: 1.1rem; color: var(--text); }
.tb-preview-card p { font-size: .92rem; color: var(--text-muted); line-height: 1.6; }
.tb-preview-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--primary); font-weight: 600; font-size: .9rem;
  text-decoration: none; margin-top: 4px;
}
.tb-preview-link:hover { text-decoration: underline; }

/* ── Example-callout (grønn aksent, til "Eksempel:"-blokker) ──── */
.tb-callout-example {
  background: #eefbf4; border-color: #2d8c5f; color: var(--text);
  background: #eefbf4; border-left: 4px solid #2d8c5f;
  border-radius: var(--radius);
  padding: 14px 18px; margin-top: 18px;
  font-size: .92rem; line-height: 1.65;
}
.tb-callout-example strong { color: #1f6845; }

/* ── Article-meta (publisert/oppdatert) ──────────────────── */
.tb-article-meta {
  font-size: .82rem; color: var(--text-muted);
  margin-top: 12px;
}
.tb-article-meta time { font-variant-numeric: tabular-nums; }

/* ── NO: fartssonesider ──────────────────────────────────── */
.no-sone-nav { margin-top: 44px; border-top: 1px solid var(--border); padding-top: 28px; }
.no-sone-nav h2 { font-size: 1.25rem; margin-bottom: 14px; }
.no-sone-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 9px 20px; }
.no-sone-grid a { color: var(--primary); text-decoration: none; font-size: .92rem; font-weight: 500; }
.no-sone-grid a:hover { text-decoration: underline; }
.no-sone-grid .no-sone-home { font-weight: 700; }
/* Tap-rad (Inndras) i bøtetabellen — diskret rød utheving */
.no-fine-table tbody tr.no-row-tap th,
.no-fine-table tbody tr.no-row-tap td { background: #fdf3f3; }
.no-fine-table tbody tr.no-row-tap:hover th,
.no-fine-table tbody tr.no-row-tap:hover td { background: #fbeaea; }
.no-fine-table tbody tr.no-row-tap td:last-child { color: #b42318; font-weight: 600; }
/* Scenario-kort på sonesidene (gjenbruk av tb-fact-grid-rutenett) */
.no-scenario h3 { margin-top: 22px; margin-bottom: 4px; font-size: 1.08rem; }

/* ── Mobil-tilpasninger ──────────────────────────────────── */
@media (max-width: 600px) {
  .tb-hero { padding: 48px 0 44px; }
  .tb-hero h1 { font-size: clamp(1.6rem, 7vw, 2rem); }
  .tb-fact-grid { grid-template-columns: 1fr; }
  .tb-example-grid { grid-template-columns: 1fr; }
  .tb-compare-grid { grid-template-columns: 1fr; }
  .tb-table { font-size: .85rem; }
  .tb-table thead th, .tb-table tbody th, .tb-table tbody td { padding: 9px 11px; }
  .no-sone-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Fortkörningsböter-kalkylator (fk-) ──────────────────── */
.fk-calc{
  --fk-blue: var(--primary, #005293);
  --fk-ink: var(--text, #1a1a1a);
  --fk-muted: var(--text-muted, #5b6470);
  --fk-line: var(--border, #e3e6ea);
  --fk-bg: var(--surface, #ffffff);
  --fk-soft: var(--bg, #f6f7f9);
  --fk-ok:#167c46; --fk-warn:#b25e00; --fk-bad:#c0392b;
  max-width:560px; margin:2rem auto; background:var(--fk-bg);
  border:1px solid var(--fk-line); border-radius:14px; overflow:hidden;
  font-family:var(--font-body, system-ui,-apple-system,"Segoe UI",Roboto,sans-serif);
  color:var(--fk-ink); box-shadow:0 1px 2px rgba(0,0,0,.04),0 8px 24px rgba(0,0,0,.05);
}
.fk-calc__head{ background:var(--fk-blue); color:#fff; padding:1.1rem 1.25rem; }
.fk-calc__head h2{ margin:0; font-size:1.15rem; }
.fk-calc__head p{ margin:.2rem 0 0; font-size:.82rem; opacity:.9; }
.fk-calc__body{ padding:1.25rem; }
.fk-field{ margin-bottom:1rem; }
.fk-field label{ display:block; font-size:.82rem; font-weight:600; margin-bottom:.35rem; }
.fk-field select,.fk-field input[type=number]{
  width:100%; padding:.6rem .7rem; font-size:1rem; border:1px solid var(--fk-line);
  border-radius:9px; background:var(--fk-soft); color:var(--fk-ink); box-sizing:border-box;
}
.fk-field select:focus,.fk-field input:focus{ outline:2px solid var(--fk-blue); outline-offset:1px; }
.fk-check{ display:flex; align-items:center; gap:.5rem; font-size:.86rem; color:var(--fk-muted); margin:.25rem 0 1.1rem; }
.fk-check input{ width:1.05rem; height:1.05rem; accent-color:var(--fk-blue); }
.fk-btn{ width:100%; padding:.8rem; font-size:1rem; font-weight:700; color:#fff;
  background:var(--fk-blue); border:0; border-radius:10px; cursor:pointer; }
.fk-btn:hover{ filter:brightness(.94); }
.fk-result{ margin-top:1.25rem; border-top:1px solid var(--fk-line); padding-top:1.1rem; display:none; }
.fk-result.is-shown{ display:block; }
.fk-row{ display:flex; justify-content:space-between; align-items:baseline; padding:.45rem 0; border-bottom:1px solid var(--fk-line); }
.fk-row:last-of-type{ border-bottom:0; }
.fk-row .k{ font-size:.82rem; color:var(--fk-muted); }
.fk-row .v{ font-weight:700; font-variant-numeric:tabular-nums; text-align:right; }
.fk-row .v small{ display:block; font-weight:400; font-size:.74rem; color:var(--fk-muted); }
.fk-badge{ font-size:.78rem; font-weight:700; padding:.3rem .6rem; border-radius:999px; border:1px solid; }
.fk-ok{ color:var(--fk-ok); border-color:var(--fk-ok); }
.fk-warn{ color:var(--fk-warn); border-color:var(--fk-warn); }
.fk-bad{ color:var(--fk-bad); border-color:var(--fk-bad); }
.fk-alert{ background:rgba(192,57,43,.07); border:1px solid var(--fk-bad); color:var(--fk-bad);
  padding:.7rem .8rem; border-radius:10px; font-size:.85rem; margin:.7rem 0; font-weight:600; }
.fk-note{ font-size:.78rem; color:var(--fk-muted); margin-top:.5rem; }
.fk-disclaimer{ font-size:.74rem; color:var(--fk-muted); margin-top:1rem; line-height:1.45; }

/* ── In-article annonsefelt (AdSense) ───────────────────────────
   min-height mot layout-hopp (CLS) mens annonsen lastes. Dempet
   merkelapp i samme stil som resten av sidens sekundærtekst. */
.fg-annonse{
  margin:32px auto;
  max-width:720px;
  padding:0 20px;
}
.fg-annonse-merke{
  display:block;
  font-size:.68rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--text-muted);
  margin-bottom:6px;
}
.fg-annonse .adsbygoogle{
  min-height:250px;
  background:var(--surface);
}
.fg-annonse--display .adsbygoogle{min-height:280px}
.tb-article-body .fg-annonse{padding:0}
@media (max-width:600px){
  .fg-annonse{margin:24px auto;padding:0 16px}
  .fg-annonse .adsbygoogle{min-height:200px}
  .fg-annonse--display .adsbygoogle{min-height:100px}
}
