/* ═══════════════════════════════════════════════════════════
   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; }

/* ── 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; }

/* Uitlegdiagram trajectcontrole — eigen, lichtgewicht visual zonder stockfoto */
.tc-diagram { display:grid; grid-template-columns:140px 1fr 140px; align-items:center; gap:18px;
  margin:28px 0; padding:24px; border:1px solid var(--border); border-radius:var(--radius-lg); background:var(--surface); }
.tc-point { display:flex; flex-direction:column; align-items:center; text-align:center; gap:3px; }
.tc-point small, .tc-diagram figcaption { color:var(--text-muted); font-size:.8rem; }
.tc-camera { font-size:1.8rem; line-height:1; margin-bottom:4px; }
.tc-road { position:relative; display:flex; flex-direction:column; text-align:center; gap:2px; padding:16px 8px;
  border-top:4px solid var(--primary); border-bottom:4px solid var(--primary); }
.tc-road::before, .tc-road::after { content:""; position:absolute; top:50%; width:10px; height:10px; border-top:3px solid var(--primary); border-right:3px solid var(--primary); }
.tc-road::before { left:-2px; transform:translateY(-50%) rotate(-135deg); }
.tc-road::after { right:-2px; transform:translateY(-50%) rotate(45deg); }
.tc-road span { color:var(--text-muted); font-size:.78rem; }
.tc-diagram figcaption { grid-column:1 / -1; text-align:center; margin-top:2px; }

/* 30 → 40 → 50: procedurele snelheidstrappen */
.speed-steps { display:grid; grid-template-columns:1fr auto 1fr auto 1fr; align-items:stretch; gap:12px;
  margin:30px 0; padding:20px; border:1px solid var(--border); border-radius:var(--radius-lg); background:var(--surface); }
.speed-step { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
  min-height:150px; padding:16px; border-radius:14px; border:1px solid var(--border); }
.speed-step-num { font-size:2.6rem; line-height:1; font-weight:800; font-variant-numeric:tabular-nums; }
.speed-step strong { margin-top:4px; }
.speed-step small { margin-top:8px; color:var(--text-muted); line-height:1.35; }
.speed-step-30 { background:#f2f7ff; border-color:#bfd5f5; }
.speed-step-40 { background:#fff8e8; border-color:#f1d18a; }
.speed-step-50 { background:#fdf0ef; border-color:#e8b4ae; }
.speed-step-arrow { align-self:center; color:var(--primary); font-size:1.5rem; font-weight:800; }
.speed-steps figcaption { grid-column:1 / -1; text-align:center; color:var(--text-muted); font-size:.8rem; margin-top:4px; }
.consequence-table td { min-width:145px; vertical-align:top; }

/* Grensoverschrijdende boete: kenteken- en beschikkingsstroom */
.crossborder-flow { display:grid; grid-template-columns:1fr 1.35fr 1fr; align-items:center; gap:14px;
  margin:30px 0; padding:22px; border:1px solid var(--border); border-radius:var(--radius-lg); background:var(--surface); }
.crossborder-country { display:flex; flex-direction:column; align-items:center; text-align:center; gap:3px;
  min-height:120px; justify-content:center; padding:14px; border:1px solid #bfd5f5; border-radius:14px; background:#f2f7ff; }
.crossborder-country > span { font-size:2rem; line-height:1; margin-bottom:5px; }
.crossborder-country small, .crossborder-route span, .crossborder-return span, .crossborder-flow figcaption { color:var(--text-muted); font-size:.8rem; }
.crossborder-nl { background:#fff8e8; border-color:#f1d18a; }
.crossborder-route { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:8px; text-align:center; }
.crossborder-route b, .crossborder-return b { color:var(--primary); font-size:1.5rem; }
.crossborder-return { grid-column:1 / -1; display:flex; justify-content:center; align-items:center; gap:10px; padding-top:2px; }
.crossborder-flow figcaption { grid-column:1 / -1; text-align:center; padding-top:4px; }

/* ── NL homepage v2 pilot: utility-first traffic tool ───────── */
.nl-home-hero {
  padding: 48px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 15%, rgba(255,255,255,.08) 0 2px, transparent 3px),
    radial-gradient(circle at 84% 12%, rgba(242,140,40,.18), transparent 30%),
    linear-gradient(135deg, #172f50 0%, #203f69 58%, #183452 100%);
  background-size: 34px 34px, auto, auto;
}
.nl-home-hero::after {
  height: 5px;
  background: linear-gradient(90deg, #ae1c28 0 33.333%, #fff 33.333% 66.666%, #21468b 66.666% 100%);
}
.nl-home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  align-items: center;
  gap: clamp(32px, 5vw, 70px);
}
.nl-home-hero__copy { padding: 10px 0; }
.nl-home-hero .tb-hero-eyebrow {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  text-transform: uppercase;
  letter-spacing: .09em;
}
.nl-home-hero h1 {
  max-width: 650px;
  font-size: clamp(2rem, 4vw, 3.15rem);
  letter-spacing: -.025em;
}
.nl-home-hero .tb-hero-lead { max-width: 620px; font-size: 1.08rem; line-height: 1.65; }
.nl-home-hero .tb-trust-pill b { color: #8be0b0; font-size: .9rem; }
.nl-text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
}
.nl-text-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.nl-home-tool { position: relative; }
.nl-home-tool__flag {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 20px;
  display: flex;
  flex-direction: column;
  width: 25px;
  height: 18px;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(20,35,55,.16);
}
.nl-home-tool__flag i { flex: 1; }
.nl-home-tool__flag i:nth-child(1) { background: #ae1c28; }
.nl-home-tool__flag i:nth-child(2) { background: #fff; }
.nl-home-tool__flag i:nth-child(3) { background: #21468b; }
.nl-home-tool .fk-calc {
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 22px 54px rgba(3,15,31,.32), 0 2px 8px rgba(3,15,31,.18);
}
.nl-home-tool .fk-calc__head {
  background: #fff;
  color: var(--text);
  padding: 1.15rem 1.35rem .9rem;
  border-bottom: 1px solid var(--border);
}
.nl-home-tool .fk-calc__head h2 { color: var(--primary); font-size: 1.25rem; padding-right: 36px; }
.nl-home-tool .fk-calc__head p { color: var(--text-muted); opacity: 1; max-width: 330px; }
.nl-home-tool .fk-calc__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 1rem 1.35rem 1.25rem;
}
.nl-home-tool .fk-field { margin: 0; }
.nl-home-tool .fk-field:first-child,
.nl-home-tool .fk-btn,
.nl-home-tool .fk-result { grid-column: 1 / -1; }
.nl-home-tool .fk-btn { margin-top: 2px; background: #ec7b22; box-shadow: 0 4px 12px rgba(236,123,34,.22); }
.nl-home-tool .fk-btn:hover { background: #d96914; filter: none; }

.nl-fact-band { padding: 30px 0; background: #eef3f8; border-bottom: 1px solid var(--border); }
.nl-fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.nl-fact {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 15px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 13px;
  box-shadow: 0 2px 8px rgba(20,45,75,.035);
}
.nl-fact__icon {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eaf2fb;
  color: #24598c;
  font-weight: 800;
  font-size: 1.1rem;
}
.nl-fact strong, .nl-fact small { display: block; }
.nl-fact strong { color: var(--text); font-size: .95rem; line-height: 1.25; }
.nl-fact small { margin-top: 3px; color: var(--text-muted); font-size: .75rem; line-height: 1.35; }
.nl-fact--green .nl-fact__icon { background: #e9f7ef; color: #167c46; }
.nl-fact--amber .nl-fact__icon { background: #fff5df; color: #a75a00; }
.nl-fact--red .nl-fact__icon { background: #fcebea; color: #b42318; }

.nl-calc-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin: 26px 0 28px;
}
.nl-calc-flow__step {
  min-width: 0;
  padding: 14px 10px;
  text-align: center;
  background: #f1f6fb;
  border: 1px solid #cbdced;
  border-radius: 12px;
}
.nl-calc-flow__step span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  margin: 0 auto 7px;
  border-radius: 50%;
  background: #315d87;
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
}
.nl-calc-flow__step strong, .nl-calc-flow__step small { display: block; }
.nl-calc-flow__step strong { font-size: .86rem; color: var(--text); }
.nl-calc-flow__step small { margin-top: 2px; font-size: .7rem; color: var(--text-muted); line-height: 1.3; }
.nl-calc-flow__step--green { background: #eef9f2; border-color: #b9dfc9; }
.nl-calc-flow__step--green span { background: #238257; }
.nl-calc-flow__step--amber { background: #fff8e8; border-color: #efd79f; }
.nl-calc-flow__step--amber span { background: #b56a0b; }
.nl-calc-flow__step--red { background: #fdf0ef; border-color: #e8b8b2; }
.nl-calc-flow__step--red span { background: #b42318; }
.nl-calc-flow__arrow { color: #8a9aaa; font-size: 1rem; }

.nl-limit-grid { grid-template-columns: repeat(5, 1fr); }
.nl-limit-card {
  min-width: 0;
  align-items: center;
  padding: 18px 12px;
  text-align: center;
  gap: 10px;
  border-radius: 14px;
}
.nl-speed-sign {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 7px solid #d9272e;
  border-radius: 50%;
  background: #fff;
  color: #161b22;
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px #eee;
}
.nl-limit-card__copy strong, .nl-limit-card__copy small { display: block; }
.nl-limit-card__copy strong { color: var(--text); font-size: .92rem; }
.nl-limit-card__copy small { margin-top: 2px; color: var(--text-muted); font-size: .72rem; line-height: 1.35; }
.nl-limit-card__arrow { color: var(--primary); font-weight: 800; transition: transform .18s ease; }
.nl-limit-card:hover .nl-limit-card__arrow { transform: translateX(4px); }

@media (max-width: 900px) {
  .nl-home-hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .nl-home-hero__copy { max-width: 720px; }
  .nl-home-tool { max-width: 620px; width: 100%; }
  .nl-fact-grid { grid-template-columns: repeat(2, 1fr); }
  .nl-limit-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── 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; }
  .tc-diagram { grid-template-columns:1fr; gap:12px; }
  .tc-road { width:100%; box-sizing:border-box; }
  .speed-steps { grid-template-columns:1fr; }
  .speed-step { min-height:118px; }
  .speed-step-arrow { transform:rotate(90deg); }
  .crossborder-flow { grid-template-columns:1fr; }
  .crossborder-route { grid-template-columns:1fr; }
  .crossborder-route b { transform:rotate(90deg); }
  .crossborder-return { grid-column:1; }
  .nl-home-hero { padding: 36px 0 38px; }
  .nl-home-hero__grid { gap: 24px; }
  .nl-home-hero h1 { font-size: clamp(1.75rem, 8vw, 2.2rem); }
  .nl-home-hero .tb-hero-lead { font-size: .98rem; }
  .nl-home-tool .fk-calc__body { grid-template-columns: 1fr; }
  .nl-home-tool .fk-field,
  .nl-home-tool .fk-field:nth-child(3),
  .nl-home-tool .fk-btn,
  .nl-home-tool .fk-result { grid-column: 1; }
  .nl-fact-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .nl-fact { align-items: flex-start; min-height: 112px; padding: 13px; flex-direction: column; gap: 8px; }
  .nl-calc-flow { grid-template-columns: 1fr; gap: 7px; }
  .nl-calc-flow__arrow { transform: rotate(90deg); justify-self: center; }
  .nl-limit-grid { grid-template-columns: 1fr 1fr; }
  .nl-limit-card { padding: 16px 10px; }
  .nl-limit-card:last-child { grid-column: 1 / -1; }
}

/* ── 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--check label{ display:flex; align-items:center; gap:.55rem; cursor:pointer; }
.fk-field--check input{ width:1.1rem; height:1.1rem; accent-color:var(--fk-blue); }
.fk-field--check small{ display:block; color:var(--text-muted); margin-left:1.65rem; font-size:.76rem; }
.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; }
