/* ============================================================
   LFD Consulting — Shared Stylesheet
   Brand: Navy #1E182B · Teal #0094A7 · Magenta #E61E68
   Font: 'Segoe UI', Arial, sans-serif
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  color: #222;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── NAV L1 ───────────────────────────────────────────────── */

.nav {
  background: #1E182B;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-l1 {
  display: flex;
  align-items: center;
  padding: 0 48px;
  height: 60px;
  gap: 3px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: 20px;
  flex-shrink: 0;
}

.nav-l1-item {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  padding: 6px 9px;
  border-radius: 4px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}

.nav-l1-item:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
}

.nav-l1-item.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.nav-sep {
  flex: 1;
}

/* ── HAMBURGER (kun mobil) ────────────────────────────────── */

/* Avkrysningsboksen driver menyen — ingen JavaScript.
   Den er visuelt skjult, men fortsatt mulig å nå med tastatur. */
.nav-toggle {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.nav-burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 4px;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
}

.nav-toggle:focus-visible + .nav-burger {
  outline: 2px solid #0094A7;
  outline-offset: 2px;
}

/* Åpen: strekene blir et kryss */
.nav-toggle:checked + .nav-burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle:checked + .nav-burger span:nth-child(2) {
  opacity: 0;
}

.nav-toggle:checked + .nav-burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-cta {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #fff;
  background: #E61E68;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 99px;
  margin-left: 6px;
  transition: background .15s;
  white-space: nowrap;
}

.nav-cta:hover {
  background: #c4185a;
}

/* Registrer din kompetanse — teal variant, står rett før Kontakt.
   Deler all geometri med .nav-cta, så mobilreglene treffer begge. */
.nav-cta-alt {
  background: #0094A7;
}

.nav-cta-alt:hover {
  background: #007b8b;
}

/* ── NAV L2 ───────────────────────────────────────────────── */

.nav-l2-item {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  padding: 0 14px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}

.nav-l2-item:hover {
  color: rgba(255,255,255,0.85);
}

.nav-l2-item.active {
  color: #fff;
  border-bottom-color: #0094A7;
}

/* ── BUTTONS ──────────────────────────────────────────────── */

.btn-primary {
  display: inline-block;
  background: #E61E68;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 99px;
  transition: background .15s;
}

.btn-primary:hover {
  background: #c4185a;
}

/* ── FOOTER ───────────────────────────────────────────────── */

.footer {
  background: #1E182B;
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 48px;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── MODEL ITEMS (ferdigstillelse) ────────────────────────── */

.model-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f2;
}

.model-item:last-child {
  border-bottom: none;
}

.model-num {
  font-size: 12px;
  font-weight: 800;
  color: #0094A7;
  min-width: 18px;
  flex-shrink: 0;
  padding-top: 2px;
}

.model-title {
  font-size: 15px;
  font-weight: 700;
  color: #1E182B;
  margin-bottom: 3px;
}

.model-desc {
  font-size: 15px;
  color: #666;
  line-height: 1.5;
}

/* ── GLOBAL SAFETY ────────────────────────────────────────── */

/* Nothing may push the page wider than the viewport.
   NB: overflow-x on a sticky element's ancestor breaks position:sticky, so
   prefer `clip` (does not create a scroll container) and keep `hidden` only
   as a fallback for older browsers. */
html, body {
  max-width: 100%;
}

body {
  overflow-x: hidden;
}

@supports (overflow: clip) {
  body {
    overflow-x: clip;
  }
}

img {
  max-width: 100%;
}

/* Lange ord må ikke sprenge smale spalter — men norske sammensatte ord
   skal deles med bindestrek, ikke brytes midt i. Sida er lang="no", så
   nettleseren deler etter norske orddelingsregler. */
p, span, a, div, li {
  overflow-wrap: break-word;
}

h1, h2, h3 {
  overflow-wrap: normal;
  word-break: normal;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* ============================================================
   RESPONSIVE
   Breakpoints:
     1200px  laptop        — tighten nav + gutters
     1000px  small laptop  — 4-col → 2-col
      760px  tablet/mobile — everything single column, nav wraps
      460px  small phone   — minimum gutters, smallest type
   ============================================================ */

/* ── 1200px — LAPTOP ──────────────────────────────────────── */

/* ── 1330px — STRAM INN MENYEN, IKKE RESTEN ───────────────── */

/* Vanlig laptop (1280–1330 px) har ikke plass til begge knappene med
   full luft. Her strammes bare menyraden — seksjonsbredden på siden
   røres ikke, det skjer først under 1200 px. */
@media (max-width: 1330px) {
  .nav-l1 {
    padding: 0 28px;
    gap: 2px;
  }

  .nav-logo {
    margin-right: 14px;
  }

  .nav-l1-item {
    font-size: 14px;
    padding: 6px 7px;
  }

  .nav-cta {
    padding: 8px 12px;
    margin-left: 5px;
  }
}

@media (max-width: 1200px) {
  .nav-l1 {
    padding: 0 28px;
    gap: 0;
  }

  .nav-l1-item {
    font-size: 14px;
    padding: 6px 8px;
  }

  .nav-logo {
    margin-right: 12px;
  }

  .nav-logo img {
    height: 30px !important;
  }

  .nav-cta {
    padding: 7px 12px;
    margin-left: 5px;
  }

  section,
  .nav-l2-bar > div,
  [style*="padding:12px 48px"],   /* breadcrumb bar */
  [style*="padding:16px 48px"] {  /* kontakt.html strip */
    padding-left: 32px !important;
    padding-right: 32px !important;
  }

  .footer {
    padding-left: 32px;
    padding-right: 32px;
  }

  /* Generous hero padding gets trimmed */
  [style*="padding:72px 48px"] {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }
}

/* ── 1000px — SMALL LAPTOP / TABLET LANDSCAPE ─────────────── */

/* ── 1150px — TO KNAPPER GJØR MENYRADEN TRANG ─────────────── */

/* Med både «Registrer din kompetanse» og «Kontakt» i baren blir raden
   full alt her. La den skli sidevegs, framfor å presse siste menypunkt
   ut av skjermen. Under 760px tar hamburgeren over. */
@media (max-width: 1150px) {
  .nav-l1 {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-l1::-webkit-scrollbar {
    display: none;
  }

  .nav-logo,
  .nav-l1-item,
  .nav-cta {
    flex-shrink: 0;
  }
}

@media (max-width: 1000px) {
  /* Store overskrifter trenger et mellomtrinn før mobil */
  h1[style*="font-size:52px"] { font-size: 42px !important; }
  h2[style*="font-size:34px"] { font-size: 29px !important; }
  h2[style*="font-size:26px"] { font-size: 24px !important; }

  /* Nav is at its tightest here — allow a quiet horizontal scroll rather
     than letting 8 items overflow the viewport */
  .nav-l1 {
    padding: 0 20px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-l1::-webkit-scrollbar {
    display: none;
  }

  .nav-logo,
  .nav-l1-item,
  .nav-cta {
    flex-shrink: 0;
  }

  .nav-l1-item {
    font-size: 13.5px;
    padding: 6px 7px;
  }

  /* 4-column grids → 2 columns */
  [style*="grid-template-columns:1fr 1fr 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr 1fr"],
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns:repeat(4, 1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* 3-column grids → 2 columns (exclude 4-col via :not) */
  [style*="grid-template-columns:1fr 1fr 1fr"]:not([style*="1fr 1fr 1fr 1fr"]),
  [style*="grid-template-columns: 1fr 1fr 1fr"]:not([style*="1fr 1fr 1fr 1fr"]) {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Fixed sidebar columns become fluid */
  [style*="grid-template-columns:1fr 320px"],
  [style*="grid-template-columns:1fr 260px"] {
    grid-template-columns: 1fr 240px !important;
  }

  /* Wide gaps get tighter */
  [style*="gap:48px"] {
    gap: 32px !important;
  }
}

/* ── 760px — TABLET PORTRAIT / MOBILE ─────────────────────── */

@media (max-width: 760px) {

  /* ---- NAV: logo + hamburger on one row, menu folds out below ---- */
  .nav {
    position: sticky;   /* short bar now, so sticky is an asset */
    top: 0;
  }

  .nav-l1 {
    flex-wrap: wrap;
    height: auto;
    padding: 8px 20px;
    gap: 0;
    overflow-x: visible;   /* the panel replaces the scroll from 1000px */
    /* An open menu must never grow taller than the screen on a short phone */
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* The flex:1 spacer would force an awkward break when wrapping */
  .nav-sep {
    display: none;
  }

  .nav-logo {
    margin-right: 0;
  }

  .nav-logo img {
    height: 28px !important;
  }

  .nav-burger {
    display: flex;
  }

  /* Closed by default — the burger is the only control */
  .nav-l1-item,
  .nav-cta {
    display: none;
  }

  /* Open: full-width rows with a comfortable tap target */
  .nav-toggle:checked ~ .nav-l1-item {
    display: block;
    width: 100%;
    font-size: 15px;
    padding: 13px 2px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    background: transparent;
  }

  /* The first item sits directly after the burger label in the DOM —
     :first-of-type would match the logo <a>, so use adjacency instead. */
  .nav-toggle:checked + .nav-burger + .nav-l1-item {
    border-top: 1px solid rgba(255,255,255,0.07);
    margin-top: 8px;
  }

  .nav-toggle:checked ~ .nav-l1-item.active {
    color: #fff;
    background: transparent;
    box-shadow: inset 3px 0 0 #0094A7;
    padding-left: 12px;
  }

  .nav-toggle:checked ~ .nav-cta {
    display: block;
    width: 100%;
    margin: 14px 0 6px;
    padding: 13px 16px;
    text-align: center;
    font-size: 15px;
  }

  /* De to knappene skal leses som et par, ikke som to løse rader */
  .nav-toggle:checked ~ .nav-cta + .nav-cta {
    margin-top: 8px;
  }

  /* Don't let a long menu trap the page on a short screen */
  .nav-toggle:checked ~ .nav-l1-item,
  .nav-toggle:checked ~ .nav-cta {
    flex: 0 0 100%;
  }

  /* L2 bar: allow horizontal scroll, it is a short list */
  .nav-l2-bar > div {
    overflow-x: auto;
    height: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .nav-l2-item {
    padding: 0 10px;
    flex-shrink: 0;
  }

  /* ---- GUTTERS ---- */
  section,
  .nav-l2-bar > div,
  [style*="padding:12px 48px"],   /* breadcrumb bar */
  [style*="padding:16px 48px"] {  /* kontakt.html strip */
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Tame the tallest vertical paddings */
  [style*="padding:72px 48px"],
  [style*="padding:60px 48px"],
  [style*="padding:56px 48px"] {
    padding-top: 36px !important;
    padding-bottom: 36px !important;
  }

  [style*="padding:52px 48px"],
  [style*="padding:48px"],
  [style*="padding:44px 48px"],
  [style*="padding:40px 48px"] {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }

  /* ---- EVERY MULTI-COLUMN LAYOUT → ONE COLUMN ---- */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns:repeat(4, 1fr)"],
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns:repeat(3, 1fr)"],
  [style*="grid-template-columns:repeat(auto-fit"],
  [style*="grid-template-columns:1fr 40%"],
  [style*="grid-template-columns:1fr 320px"],
  [style*="grid-template-columns:1fr 260px"],
  [style*="grid-template-columns:1fr 1.55fr"],
  [style*="grid-template-columns:1.3fr 1fr"],
  [style*="grid-template-columns:1.35fr 1fr"],
  [style*="grid-template-columns:1.4fr 1fr"],
  [style*="grid-template-columns:1.6fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Tre-kolonners rutenett må ha samme :not()-form som regelen på 1000 px.
     Uten :not() her får 1000 px-regelen høyere spesifisitet og vinner selv
     om den står tidligere i fila — da ble tre kort stående som to kolonner. */
  [style*="grid-template-columns:1fr 1fr 1fr"]:not([style*="1fr 1fr 1fr 1fr"]),
  [style*="grid-template-columns: 1fr 1fr 1fr"]:not([style*="1fr 1fr 1fr 1fr"]) {
    grid-template-columns: 1fr !important;
  }

  /* Keep the little 8px bullet columns intact — they are not layout */
  [style*="grid-template-columns:8px 1fr"] {
    grid-template-columns: 8px 1fr !important;
  }

  /* Once stacked, big gaps are wasted vertical space */
  [style*="gap:64px"],
  [style*="gap:48px"],
  [style*="gap:40px"],
  [style*="gap:32px"] {
    gap: 24px !important;
  }

  /* ---- FLEX ROWS → STACK ---- */
  [style*="display:flex"][style*="gap:48px"],
  [style*="display:flex"][style*="gap:40px"],
  [style*="display:flex"][style*="gap:32px"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 24px !important;
  }

  /* flex-basis percentages are main-axis: once stacked they become
     heights, so reset them to full width */
  [style*="flex:0 0 55%"],
  [style*="flex:0 0 45%"],
  [style*="flex:0 0 40%"],
  [style*="flex:0 0 35%"] {
    flex: 1 1 auto !important;
    width: 100% !important;
  }

  /* "Se også" cards go full width */
  [style*="min-width:220px"] {
    min-width: 0 !important;
    width: 100% !important;
  }

  /* ---- TOPPSEKSJON: venstrestilt på mobil ---- */
  /* Sentrert flerlinjet tekst er tungt å lese på en smal skjerm. */
  section > div[style*="text-align:center"] {
    text-align: left !important;
  }

  section > div[style*="text-align:center"] > h1,
  section > div[style*="text-align:center"] > p {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
  }

  /* Boksen under toppseksjonen fyller bredden */
  section > div[style*="text-align:center"] > div[style*="border-top"] {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
  }

  /* ---- BILDER: lavere på mobil ---- */
  img[style*="height:315px"] { height: 200px !important; }
  img[style*="height:210px"] { height: 185px !important; }

  div[style*="max-width:860px"] {
    max-width: 100% !important;
    margin-top: 28px !important;
  }

  /* ---- TYPOGRAPHY ---- */
  h1[style*="font-size:52px"] { font-size: 34px !important; line-height: 1.14 !important; }

  h2[style*="font-size:34px"] { font-size: 26px !important; line-height: 1.18 !important; }
  h2[style*="font-size:26px"] { font-size: 22px !important; line-height: 1.18 !important; }

  [style*="font-size:40px"] { font-size: 32px !important; }


  /* Brødteksten beholder full størrelse på mobil — den skal være lesbar */

  /* ---- IMAGES: shorter on a narrow screen ---- */
  [style*="min-height:360px"] { min-height: 200px !important; }
  [style*="min-height:240px"] { min-height: 180px !important; }
  [style*="min-height:220px"] { min-height: 170px !important; }
  [style*="min-height:200px"] { min-height: 160px !important; }
  [style*="min-height:180px"] { min-height: 150px !important; }

  /* ---- ASIDE BOXES: left border → top border ---- */
  [style*="border-left:2px solid #0094A7"] {
    border-left: none !important;
    border-top: 2px solid #0094A7 !important;
    padding-left: 0 !important;
    padding-top: 16px !important;
    margin-left: 0 !important;
  }

  /* ---- FOOTER: stack ---- */
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 20px;
  }

  /* ---- BUTTONS: comfortable tap target, never overflow ---- */
  .btn-primary {
    padding: 12px 20px;
    text-align: center;
  }
}

/* ── 460px — SMALL PHONE ──────────────────────────────────── */

@media (max-width: 460px) {
  section,
  .nav-l2-bar > div,
  [style*="padding:12px 48px"],
  [style*="padding:16px 48px"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .nav-l1 {
    padding: 8px 16px;
  }

  h1[style*="font-size:52px"] { font-size: 30px !important; }

  h2[style*="font-size:34px"] { font-size: 24px !important; }
  h2[style*="font-size:26px"] { font-size: 21px !important; }

  [style*="font-size:40px"] { font-size: 28px !important; }


  /* Inner card padding gets tight (leave "padding:24px 0" alone) */
  [style*="padding:24px"]:not([style*="padding:24px 0"]) {
    padding: 18px !important;
  }

  .footer {
    padding: 18px 16px;
  }

  /* Full-width CTA reads better than a stranded pill */
  .btn-primary {
    display: block;
    width: 100%;
  }
}

/* ============================================================
   MOBILLAG — egen utforming, ikke nedskalert desktop
   Prinsipp: full bredde på bilder, kort blir flate rader,
   luft som følger skrollingen, trykkflater på 44 px.
   ============================================================ */

@media (max-width: 760px) {


  /* ── UNDERMENY: stablet liste, ikke skrollestripe ─────────── */
  /* En vannrett stripe med skrolling skjuler punkt og er vanskelig
     å treffe. På mobil blir nivå to en vanlig liste. */
  .nav-l2-bar > div {
    display: block !important;
    height: auto !important;
    overflow-x: visible !important;
    max-width: 100% !important;
    background: rgba(255,255,255,0.03) !important;
    padding: 4px 20px !important;
  }

  .nav-l2-item {
    display: block !important;
    height: auto !important;
    padding: 14px 0 !important;
    font-size: 15px !important;
    color: rgba(255,255,255,0.62) !important;
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
    border-left: none !important;
  }

  .nav-l2-item:last-child {
    border-bottom: none !important;
  }

  .nav-l2-item.active {
    color: #fff !important;
    border-bottom-color: rgba(255,255,255,0.07) !important;
    box-shadow: inset 3px 0 0 #0094A7;
    padding-left: 12px !important;
  }

  /* ── RYTME ────────────────────────────────────────────────── */
  /* Jevn loddrett takt i stedet for nedskalert desktop-padding */
  section[style] {
    padding-top: 34px !important;
    padding-bottom: 34px !important;
  }

  /* Brødsmulene tar plass og gir lite på en telefon */
  .nav-l2-bar + div[style*="padding:12px 48px"],
  nav + div[style*="padding:12px 48px"] {
    display: none;
  }

  /* ── BILDER I FULL BREDDE ─────────────────────────────────── */
  /* Innfelte bilder med runde hjørner leser som desktop-kort.
     På mobil går de kant til kant. */
  section div[style*="border-radius:6px"][style*="overflow:hidden"],
  section div[style*="max-width:860px"] {
    margin-left: -20px !important;
    margin-right: -20px !important;
    width: calc(100% + 40px) !important;
    max-width: calc(100% + 40px) !important;
    border-radius: 0 !important;
  }

  img[style*="height:315px"] { height: 210px !important; }
  img[style*="height:210px"] { height: 200px !important; }

  /* ── KORT BLIR FLATE RADER ────────────────────────────────── */
  /* Ramme, skygge og radius er desktop-grammatikk. På mobil
     skiller vi med hårstrek og lar innholdet stå fritt. */
  div[style*="border:1px solid #e8e8e8"][style*="border-top:3px solid #0094A7"],
  div[style*="box-shadow:0 1px 4px"] {
    background: transparent !important;
    border: none !important;
    border-top: 1px solid #e4e6e8 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 22px 0 24px !important;
  }

  /* Lenkekortene: flat rad med god trykkflate */
  a[style*="background:#f7f8f9"][style*="border-top:2px solid #0094A7"] {
    background: transparent !important;
    border: none !important;
    border-top: 1px solid #e4e6e8 !important;
    border-radius: 0 !important;
    padding: 20px 0 !important;
    margin-bottom: 0 !important;
    min-height: 44px;
  }

  /* «Se også»-kortene */
  a[style*="border:1px solid #e0e0e0"] {
    border: none !important;
    border-top: 1px solid #e4e6e8 !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 18px 0 !important;
    min-height: 44px;
  }

  /* Verdikolonnene: tynnere strek, mindre luft */
  div[style*="padding:20px 0"][style*="border-top:2px solid #0094A7"] {
    border-top: 1px solid #e4e6e8 !important;
    padding: 20px 0 !important;
  }

  /* Kortgrid: ingen mellomrom — hårstrekene skiller nå */
  section div[style*="display:grid"][style*="gap:24px"],
  section div[style*="display:grid"][style*="gap:20px"],
  section div[style*="display:flex"][style*="gap:16px"] {
    gap: 0 !important;
  }

  /* ── LENKELISTER SOM RADER ────────────────────────────────── */
  div[style*="flex-direction:column"][style*="gap:6px"] a {
    display: block !important;
    padding: 13px 0 !important;
    border-top: 1px solid #eef0f1;
  }

  /* ── KNAPPER ──────────────────────────────────────────────── */
  .btn-primary {
    display: block !important;
    width: 100%;
    text-align: center;
    padding: 16px 24px !important;
    font-size: 13px !important;
  }

  /* ── TYPOGRAFI: færre trinn, mer luft ─────────────────────── */
  h1[style*="font-size:52px"] {
    font-size: 32px !important;
    line-height: 1.16 !important;
    letter-spacing: -.01em;
  }

  h2[style*="font-size:34px"],
  h2[style*="font-size:26px"] {
    font-size: 23px !important;
    line-height: 1.24 !important;
  }

  h3, div[style*="font-size:20px"] {
    font-size: 18px !important;
  }

  p[style*="font-size:19px"] { font-size: 17px !important; }

  p[style*="font-size:16px"],
  p[style*="font-size:15px"] {
    font-size: 16.5px !important;
    line-height: 1.68 !important;
  }

  /* Etikettene blir små og rolige */
  p[style*="text-transform:uppercase"] {
    font-size: 11px !important;
    letter-spacing: .12em !important;
    margin-bottom: 8px !important;
  }

  /* ── FOTEN ────────────────────────────────────────────────── */
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 24px 20px 30px;
    font-size: 13px;
  }
}

/* ── 460px — SMÅ TELEFONER ────────────────────────────────── */

@media (max-width: 460px) {
  section div[style*="border-radius:6px"][style*="overflow:hidden"],
  section div[style*="max-width:860px"] {
    margin-left: -16px !important;
    margin-right: -16px !important;
    width: calc(100% + 32px) !important;
    max-width: calc(100% + 32px) !important;
  }

  h1[style*="font-size:52px"] { font-size: 29px !important; }

  h2[style*="font-size:34px"],
  h2[style*="font-size:26px"] { font-size: 21px !important; }

  img[style*="height:315px"] { height: 190px !important; }
  img[style*="height:210px"] { height: 180px !important; }
}
