/* =========================================================================
   Akari Google Workspace — designsystem (retning «Fjord»)
   Lys og redaksjonell: venstrejusterte overskrifter, tynne linjer i stedet for bokser,
   foto i hero. Én fil, organisert i cascade layers. Eneste !important er for redusert bevegelse.
   ========================================================================= */
@layer reset, tokens, base, layout, components, pages, utilities;

@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/dm-sans-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Red Hat Display'; font-style: normal; font-weight: 500 800; font-display: swap; src: url('/assets/fonts/red-hat-display-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Red Hat Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('/assets/fonts/red-hat-mono-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------------------------------------------------------------- reset */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
  ul[class], ol[class], nav ul, footer ul { list-style: none; padding: 0; }
  img, picture, svg, video, iframe { display: block; max-width: 100%; }
  img { height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { cursor: pointer; }
  table { border-collapse: collapse; }
}

/* --------------------------------------------------------------- tokens */
@layer tokens {
  :root {
    /* Farger fra Akaris designmanual */
    --teal: #064f55;          /* TEAL primær */
    --teal-600: #0a6a69;
    --turq: #1dd1b6;          /* TURQUOISE sekundær — kun aksenter, aldri brødtekst */
    --glacier: #f3fcf8;       /* GLACIER støtte — sidebakgrunn */
    --tint: #e2f5ef;          /* utheving i tabeller og blokker */
    --surface: #ffffff;
    --ink: #062e31;           /* tekst */
    --muted: #4b6b68;         /* sekundærtekst (AA-kontrast på glacier) */
    --line: rgba(6, 79, 85, .16);
    --line-strong: #062e31;
    --on-dark: #e7fbf6;
    --on-dark-muted: #a9cdc7;

    /* Typografi */
    --font-display: 'Red Hat Display', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'Red Hat Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
    --text-sm: .9rem;
    --text-base: 1.0625rem;
    --text-lg: 1.18rem;
    --h1: clamp(2.5rem, 5.6vw, 4.4rem);
    --h2: clamp(1.85rem, 3.4vw, 2.75rem);
    --h3: 1.28rem;

    /* Rom og form */
    --wrap: 1180px;
    --gutter: clamp(16px, 4vw, 24px);
    --section: clamp(56px, 8vw, 96px);
    --radius: 14px;
    --radius-lg: 24px;
    --header-h: 72px;
    --shadow-float: 0 18px 50px -22px rgba(6, 79, 85, .45);
  }
}

/* ----------------------------------------------------------------- base */
@layer base {
  html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
  body { background: var(--glacier); color: var(--ink); font-family: var(--font-body); font-size: var(--text-base); line-height: 1.65; -webkit-font-smoothing: antialiased; }
  h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; text-wrap: balance; color: var(--ink); }
  h1 { font-size: var(--h1); font-weight: 800; letter-spacing: -.035em; line-height: 1.03; }
  h2 { font-size: var(--h2); font-weight: 800; letter-spacing: -.025em; }
  h3 { font-size: var(--h3); font-weight: 700; letter-spacing: -.01em; }
  p { text-wrap: pretty; }
  a { color: var(--teal); text-underline-offset: 3px; }
  a:hover { color: var(--teal-600); }
  :focus-visible { outline: 3px solid var(--turq); outline-offset: 3px; border-radius: 4px; }
  ::selection { background: rgba(29, 209, 182, .35); }
  strong { font-weight: 700; }
}

/* --------------------------------------------------------------- layout */
@layer layout {
  .wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
  .wrap-narrow { max-width: 760px; margin-inline: auto; padding-inline: var(--gutter); }
  .section { padding-block: var(--section); border-top: 1px solid var(--line); }
  .section--flush { border-top: 0; }
  .section--white { background: var(--surface); }
  .section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 40px; align-items: end; margin-bottom: clamp(32px, 4vw, 48px); }
  .section-head h2 { max-width: 18ch; }
  .section-head p { color: var(--muted); max-width: 50ch; font-size: var(--text-lg); }
  .skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--teal); color: #fff; padding: 10px 16px; border-radius: 8px; }
  .skip-link:focus { top: 12px; }
  @media (max-width: 860px) { .section-head { grid-template-columns: 1fr; align-items: start; } }
}

/* ----------------------------------------------------------- components */
@layer components {
  /* Logo */
  .logo { display: inline-flex; width: 108px; color: var(--teal); }
  .logo svg { width: 100%; height: auto; }

  /* Kicker / eyebrow */
  .kicker { font-family: var(--font-mono); font-size: .82rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); display: inline-flex; gap: 10px; align-items: center; }
  .kicker::before { content: ""; width: 28px; height: 2px; background: var(--turq); flex-shrink: 0; }

  /* Knapper */
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 10px; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; border: 1.5px solid transparent; transition: background-color .15s, border-color .15s, transform .15s; }
  .btn:hover { transform: translateY(-1px); }
  .btn--primary { background: var(--teal); color: #fff; }
  .btn--primary:hover { background: var(--teal-600); color: #fff; }
  .btn--ghost { color: var(--teal); border-color: var(--line); background: transparent; }
  .btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
  .btn--accent { background: var(--turq); color: var(--ink); }
  .btn--accent:hover { background: #3fe0c7; color: var(--ink); }
  .btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
  .link-arrow { font-weight: 700; text-decoration: none; color: var(--teal); }
  .link-arrow::after { content: " →"; }
  .link-arrow:hover { text-decoration: underline; }

  /* Haker */
  .ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: var(--text-sm); color: var(--muted); }
  .ticks li::before { content: "✓"; color: var(--teal); font-weight: 700; margin-right: 7px; }

  /* ---- Header ---- */
  .site-header { position: sticky; top: 0; z-index: 100; background: rgba(243, 252, 248, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
  .site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
  .site-nav { margin-left: auto; }
  .site-nav ul { display: flex; gap: 26px; align-items: center; }
  .site-nav a { color: var(--ink); text-decoration: none; font-size: .97rem; font-weight: 500; padding-block: 6px; border-bottom: 2px solid transparent; }
  .site-nav a:hover, .site-nav a.active { border-bottom-color: var(--turq); color: var(--ink); }
  .header-actions { display: flex; align-items: center; gap: 18px; }
  .header-phone { font-family: var(--font-mono); font-size: .9rem; color: var(--teal); text-decoration: none; white-space: nowrap; }
  .header-actions .btn { padding: 10px 18px; font-size: .95rem; }
  .menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 9px; color: var(--ink); }
  .menu-toggle .icon-close { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-open { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-close { display: block; }
  .mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--glacier); }
  .mobile-menu.open { display: block; }
  .mobile-menu ul { padding: 8px var(--gutter) 20px; display: grid; }
  .mobile-menu a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
  .mobile-menu .mobile-contact { display: grid; gap: 10px; padding: 18px var(--gutter) 24px; }
  body.menu-open { overflow: hidden; }
  @media (max-width: 1080px) { .header-phone { display: none; } .site-nav ul { gap: 18px; } }
  @media (max-width: 920px) { .site-nav, .header-actions { display: none; } .menu-toggle { display: inline-flex; } }

  /* ---- Brødsmuler ---- */
  .breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--muted); margin-bottom: 22px; }
  .breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); color: rgba(6, 79, 85, .35); }
  .breadcrumbs a { color: var(--muted); text-decoration: none; }
  .breadcrumbs a:hover { color: var(--teal); text-decoration: underline; }
  .breadcrumbs li[aria-current] { color: var(--ink); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* ---- Hero (forside og lokasjoner) ---- */
  .hero { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 7vw, 88px); }
  .hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
  .hero h1 { margin-block: 20px 22px; }
  .hero h1 em { font-style: normal; color: var(--teal); box-shadow: inset 0 -.17em 0 rgba(29, 209, 182, .5); }
  .hero-lead { font-size: var(--text-lg); color: var(--muted); max-width: 52ch; }
  .hero .btn-row { margin-top: 30px; }
  .hero .ticks { margin-top: 30px; }
  .hero-photo { position: relative; }
  .hero-photo picture, .hero-photo > img { display: block; }
  .hero-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 110px; }
  .contact-card { position: absolute; left: -26px; bottom: 26px; background: var(--surface); border-radius: 16px; padding: 14px 18px 14px 14px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow-float); max-width: calc(100% - 16px); }
  .contact-card img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; aspect-ratio: 1; flex-shrink: 0; }
  .contact-card b { display: block; font-family: var(--font-display); font-size: 1.02rem; line-height: 1.25; }
  .contact-card small { display: block; color: var(--muted); font-size: .82rem; }
  .contact-card a { font-family: var(--font-mono); font-size: .9rem; text-decoration: none; }
  @media (max-width: 860px) {
    .hero .wrap { grid-template-columns: 1fr; }
    .contact-card { left: 12px; bottom: 12px; }
  }

  /* ---- Tre veier ---- */
  .paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--line-strong); }
  .path { padding: 26px 26px 4px 0; display: grid; gap: 10px; align-content: start; }
  .path + .path { padding-left: 26px; border-left: 1px solid var(--line); }
  .path p { color: var(--muted); }
  .path .link-arrow { margin-top: 6px; }
  @media (max-width: 860px) {
    .paths { grid-template-columns: 1fr; }
    .path, .path + .path { padding: 22px 0; border-left: 0; }
    .path + .path { border-top: 1px solid var(--line); }
  }

  /* ---- Gemini ---- */
  .gemini { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
  .gemini-apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-top: 28px; }
  .gemini-app { padding-block: 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 28px 1fr; gap: 4px 12px; }
  .gemini-app img { width: 24px; height: 24px; grid-row: span 2; margin-top: 2px; }
  .gemini-app b { font-family: var(--font-display); }
  .gemini-app span { color: var(--muted); font-size: var(--text-sm); grid-column: 2; }
  .prompt { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
  .prompt-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
  .prompt-bar strong { color: var(--teal); font-family: var(--font-display); }
  .prompt-bar span { margin-left: auto; font-family: var(--font-mono); font-size: .8rem; background: var(--tint); color: var(--teal); padding: 3px 10px; border-radius: 999px; }
  .prompt-body { padding: 20px 18px; display: grid; gap: 14px; }
  .prompt-q { justify-self: end; background: var(--teal); color: #fff; padding: 11px 16px; border-radius: 16px 16px 4px 16px; max-width: 85%; }
  .prompt-a { background: var(--glacier); padding: 14px 16px; border-radius: 16px 16px 16px 4px; max-width: 92%; }
  .prompt-a small { display: block; margin-top: 8px; color: var(--muted); font-size: .8rem; font-family: var(--font-mono); }
  .privacy-note { margin-top: 18px; display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: var(--tint); border-radius: var(--radius); font-size: var(--text-sm); }
  .privacy-note svg { flex-shrink: 0; color: var(--teal); margin-top: 2px; }
  @media (max-width: 860px) { .gemini { grid-template-columns: 1fr; } }
  @media (max-width: 520px) { .gemini-apps { grid-template-columns: 1fr; } }

  /* ---- Verktøy ---- */
  .tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
  .tool { padding-block: 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
  .tool-head { display: flex; gap: 12px; align-items: center; }
  .tool-head img { width: 30px; height: 30px; }
  .tool-icons { display: flex; gap: 4px; }
  .tool-icons img { width: 24px; height: 24px; }
  .tool p { color: var(--muted); }
  .tool-tags { display: flex; flex-wrap: wrap; gap: 6px; }
  .tool-tags span { font-family: var(--font-mono); font-size: .76rem; color: var(--teal); background: var(--tint); padding: 3px 9px; border-radius: 999px; }
  @media (max-width: 860px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 560px) { .tools { grid-template-columns: 1fr; } }

  /* ---- Tidslinje ---- */
  .timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .step { position: relative; padding: 36px 20px 0 0; }
  .step::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--line); }
  .step::after { content: ""; position: absolute; top: 3px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--glacier); border: 3px solid var(--teal); }
  .step:last-child::after { background: var(--turq); border-color: var(--turq); }
  .step time { font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
  .step h3 { font-size: 1.1rem; margin-block: 6px; }
  .step p { color: var(--muted); font-size: .95rem; }
  .timeline-note { margin-top: 28px; color: var(--muted); }
  @media (max-width: 860px) {
    .timeline { grid-template-columns: 1fr; }
    .step { padding: 0 0 22px 32px; }
    .step::before { top: 0; bottom: 0; left: 6px; right: auto; width: 2px; height: auto; }
  }

  /* ---- Pristabell ---- */
  .price-table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; } /* relative: holder skjult skjermlesertekst inne i scrollboksen */
  .price-table { width: 100%; min-width: 680px; font-size: .97rem; }
  .price-table th, .price-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
  .price-table thead th { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; padding-bottom: 18px; vertical-align: bottom; }
  .price-table thead th small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .84rem; color: var(--muted); max-width: 26ch; margin-top: 4px; }
  .price-table .badge { display: inline-block; font-family: var(--font-mono); font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; background: var(--teal); color: #fff; padding: 3px 9px; border-radius: 999px; margin-bottom: 8px; }
  .price-table tbody th { font-weight: 500; color: var(--muted); width: 28%; }
  .price-table .is-featured { background: var(--tint); }
  .price { font-family: var(--font-display); font-weight: 800; font-size: 2.3rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; }
  .price small { font-family: var(--font-body); font-weight: 400; font-size: .82rem; color: var(--muted); letter-spacing: 0; }
  .yes { color: var(--teal); font-weight: 700; }
  .no { color: var(--muted); opacity: .55; }
  .price-table tfoot td { border-bottom: 0; padding-top: 20px; }
  .price-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 22px; color: var(--muted); font-size: var(--text-sm); }

  /* ---- Kundehistorie ---- */
  .story { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 56px); align-items: center; }
  .story img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 25%; border-radius: var(--radius-lg); }
  .story blockquote { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.55rem, 3vw, 2.35rem); line-height: 1.22; letter-spacing: -.02em; }
  .story figcaption { margin-top: 20px; color: var(--muted); }
  .story figcaption b { color: var(--ink); }
  .stats { display: flex; flex-wrap: wrap; gap: 20px 40px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
  .stats div { font-family: var(--font-display); font-weight: 800; font-size: 1.85rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
  .stats small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .84rem; color: var(--muted); }
  .story .link-arrow { display: inline-block; margin-top: 24px; }
  @media (max-width: 860px) { .story { grid-template-columns: 1fr; } .story img { aspect-ratio: 16 / 10; } }

  /* ---- FAQ ---- */
  .faq { border-top: 2px solid var(--line-strong); }
  .faq details { border-bottom: 1px solid var(--line); }
  .faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding-block: 20px; font-family: var(--font-display); font-weight: 700; font-size: 1.14rem; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; font-weight: 500; font-size: 1.5rem; line-height: 1; color: var(--teal); }
  .faq details[open] summary::after { content: "–"; }
  .faq-answer { padding-bottom: 22px; color: var(--muted); max-width: 70ch; display: grid; gap: 10px; }
  .faq-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 64px); }
  .faq-layout h2 { max-width: 12ch; }
  .faq-layout p.faq-intro { color: var(--muted); margin-top: 16px; }
  @media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } }

  /* ---- Artikkelkort (uten bokser: bilde + tekst) ---- */
  .post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
  .post { display: grid; gap: 12px; align-content: start; text-decoration: none; color: inherit; }
  .post-media { overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 10; background: var(--tint); }
  .post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
  .post:hover .post-media img { transform: scale(1.03); }
  .post h3 { font-size: 1.18rem; }
  .post:hover h3 { color: var(--teal); }
  .post-meta { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
  .post p { color: var(--muted); font-size: .97rem; }
  @media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

  /* ---- Steder (internlenker) ---- */
  .place-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 28px; border-top: 1px solid var(--line); }
  .place-list a { display: block; padding-block: 11px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
  .place-list a:hover { color: var(--teal); }
  .place-list a::after { content: " →"; color: var(--turq); }

  /* ---- Kontakt ---- */
  .contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
  .contact-intro p { color: var(--muted); margin-top: 16px; font-size: var(--text-lg); }
  .contact-person { display: flex; gap: 16px; align-items: center; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
  .contact-person img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; aspect-ratio: 1; }
  .contact-person b { display: block; font-family: var(--font-display); font-size: 1.1rem; }
  .contact-person span { display: block; color: var(--muted); font-size: .9rem; }
  .contact-lines { display: grid; gap: 6px; margin-top: 22px; }
  .contact-lines a { font-family: var(--font-mono); text-decoration: none; }
  .contact-offices { margin-top: 22px; color: var(--muted); font-size: var(--text-sm); }
  @media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

  /* ---- Skjema ---- */
  .form-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 36px); }
  .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .field { display: grid; gap: 6px; }
  .field--full { grid-column: 1 / -1; }
  .field label { font-weight: 500; font-size: .93rem; }
  .field .required { color: var(--teal); margin-left: 2px; }
  .field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--glacier); transition: border-color .15s, background-color .15s; }
  .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: var(--surface); box-shadow: 0 0 0 3px rgba(29, 209, 182, .25); }
  .field textarea { resize: vertical; min-height: 130px; }
  .field small { color: var(--muted); font-size: .8rem; }
  .field-check { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
  .field-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--teal); flex-shrink: 0; }
  .form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
  .form-message { padding: 14px 16px; border-radius: 10px; margin-bottom: 20px; font-weight: 500; }
  .form-message.success { background: var(--tint); color: var(--teal); }
  .form-message.error { background: #fdecec; color: #8a1c1c; }
  .hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
  @media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

  /* ---- CTA-bånd ---- */
  .cta-band { background: var(--teal); color: var(--on-dark); padding-block: clamp(48px, 7vw, 72px); }
  .cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
  .cta-band h2 { color: #fff; max-width: 22ch; font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
  .cta-band p { color: var(--on-dark-muted); margin-top: 10px; }

  /* ---- Footer ---- */
  .site-footer { background: var(--ink); color: var(--on-dark-muted); padding-block: 64px 28px; font-size: .95rem; }
  .site-footer .logo { color: var(--turq); }
  .footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
  .site-footer h2 { font-family: var(--font-mono); font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 14px; }
  .site-footer ul { display: grid; gap: 8px; }
  .site-footer a { color: var(--on-dark-muted); text-decoration: none; }
  .site-footer a:hover { color: var(--turq); }
  .footer-about p { margin-top: 18px; max-width: 34ch; }
  .footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(231, 251, 246, .14); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .85rem; }
  @media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-about { grid-column: 1 / -1; } }
}

/* ---------------------------------------------------------------- pages */
@layer pages {
  /* ---- Sidetopp for undersider ---- */
  .page-head { padding-block: clamp(40px, 6vw, 72px) clamp(32px, 4vw, 48px); }
  .page-head h1 { margin-top: 16px; max-width: 20ch; }
  .page-head .lead { margin-top: 20px; font-size: var(--text-lg); color: var(--muted); max-width: 60ch; }

  /* ---- Artikkel ---- */
  .article-head { padding-block: clamp(36px, 5vw, 64px) 0; }
  .article-head h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); margin-top: 18px; max-width: 22ch; }
  .article-head .lead { margin-top: 22px; font-size: 1.24rem; color: var(--muted); max-width: 62ch; }
  .byline { display: flex; gap: 14px; align-items: center; margin-top: 28px; font-size: .92rem; color: var(--muted); }
  .byline img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; aspect-ratio: 1; }
  .byline b { display: block; color: var(--ink); font-size: 1rem; }
  .article-hero-image { margin-top: clamp(32px, 4vw, 48px); }
  .article-hero-image img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius-lg); }
  .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px 32px; padding-block: 28px; margin-top: clamp(28px, 4vw, 40px); border-block: 1px solid var(--line); }
  .fact-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.03em; color: var(--teal); line-height: 1; font-variant-numeric: tabular-nums; }
  .fact-label { margin-top: 8px; font-size: .9rem; color: var(--muted); }

  .prose { max-width: 70ch; margin-inline: auto; padding-block: clamp(36px, 5vw, 56px); font-size: 1.1rem; line-height: 1.75; }
  .prose > * + * { margin-top: 1.1em; }
  .prose h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); margin-top: 2.2em; }
  .prose h3 { font-size: 1.25rem; margin-top: 1.8em; }
  .prose h2 + *, .prose h3 + * { margin-top: .6em; }
  .prose ul:not([class]), .prose ol:not([class]) { padding-left: 1.3em; }
  .prose li + li { margin-top: .4em; }
  .prose li::marker { color: var(--teal); }
  .prose blockquote { border-left: 3px solid var(--turq); padding-left: 1.1em; color: var(--muted); font-style: italic; }
  .prose img { border-radius: var(--radius); }
  .prose table:not([class]) { width: 100%; display: block; overflow-x: auto; font-size: .97rem; }
  .prose table:not([class]) th, .prose table:not([class]) td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
  .prose table:not([class]) th { color: var(--teal); }
  .prose iframe { width: 100%; border: 0; border-radius: var(--radius); }
  .prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
  .prose h2[id], .prose h3[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

  /* Markdown-blokker (src/Markdown.php) */
  .custom-pullquote { margin-block: 2em; padding-block: .4em; border-left: 3px solid var(--turq); padding-left: 1.2em; }
  .custom-pullquote p { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.3; letter-spacing: -.015em; color: var(--ink); font-style: normal; }
  .custom-pullquote-attr { display: block; margin-top: 12px; font-size: .9rem; color: var(--muted); }
  .custom-article-image-container { margin-block: 2em; }
  .custom-article-image-container img { width: 100%; border-radius: var(--radius); }
  .custom-image-caption { margin-top: 10px; font-size: .88rem; color: var(--muted); }
  .custom-feature-list { display: grid; border-top: 1px solid var(--line); }
  .custom-feature-list li { display: flex; gap: 14px; align-items: flex-start; padding-block: 14px; border-bottom: 1px solid var(--line); }
  .custom-feature-icon { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; margin-top: 3px; }
  .custom-feature-icon svg { width: 12px; height: 12px; fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .custom-results-card { border-top: 2px solid var(--line-strong); }
  .custom-results-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 14px; font-family: var(--font-display); font-weight: 700; }
  .custom-badge { font-family: var(--font-mono); font-weight: 400; font-size: .78rem; color: var(--muted); }
  .custom-results-table { width: 100%; }
  .custom-results-table td { padding: 12px 0; border-top: 1px solid var(--line); }
  .custom-results-table td:last-child { text-align: right; font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; }
  .custom-newspaper-ref { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--surface); }
  .custom-newspaper-ref:hover { border-color: var(--teal); color: var(--ink); }
  .custom-newspaper-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; flex-shrink: 0; }
  .custom-newspaper-ref-text { display: grid; min-width: 0; font-size: .95rem; }
  .custom-newspaper-ref-text span { color: var(--muted); font-size: .85rem; }
  .custom-newspaper-arrow { margin-left: auto; color: var(--teal); }
  .custom-cta-block { margin-block: 2.2em; padding: clamp(22px, 4vw, 32px); background: var(--teal); color: var(--on-dark); border-radius: var(--radius-lg); }
  .custom-cta-block h3 { color: #fff; margin: 0; }
  .custom-cta-block p { color: var(--on-dark-muted); margin-top: 8px; }
  .custom-cta-btn { display: inline-flex; margin-top: 18px; background: var(--turq); color: var(--ink); padding: 12px 20px; border-radius: 10px; font-weight: 700; text-decoration: none; }
  .custom-cta-btn:hover { color: var(--ink); background: #3fe0c7; }
  .article-faq { margin-block: 2.4em; border-top: 2px solid var(--line-strong); }
  .article-faq h2 { margin-top: .8em; }
  .article-faq-item { border-bottom: 1px solid var(--line); padding-block: 14px; }
  .article-faq-item summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; }
  .article-faq-answer { margin-top: 8px; color: var(--muted); }

  .article-end { max-width: 70ch; margin-inline: auto; padding-bottom: clamp(40px, 6vw, 64px); }

  /* ---- Artikkeloversikt ---- */
  .post-featured { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 48px); align-items: center; text-decoration: none; color: inherit; padding-bottom: clamp(40px, 5vw, 56px); margin-bottom: clamp(40px, 5vw, 56px); border-bottom: 1px solid var(--line); }
  .post-featured .post-media { aspect-ratio: 16 / 10; border-radius: var(--radius-lg); }
  .post-featured h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-top: 14px; }
  .post-featured:hover h2 { color: var(--teal); }
  .post-featured p { color: var(--muted); margin-top: 14px; font-size: var(--text-lg); }
  .post-featured .link-arrow { display: inline-block; margin-top: 18px; }
  @media (max-width: 860px) { .post-featured { grid-template-columns: 1fr; } }

  /* ---- Lokasjonsoversikt ---- */
  .region-groups { display: grid; gap: clamp(32px, 4vw, 48px); }
  .region-group h2 { font-size: 1.4rem; margin-bottom: 14px; }
  .offices { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
  .offices a { display: block; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
  .offices a:hover { border-color: var(--teal); }
  .offices small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .82rem; color: var(--muted); }

  /* ---- Seminarer ---- */
  .seminar-list { display: grid; border-top: 2px solid var(--line-strong); }
  .seminar-item { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding-block: 24px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
  .seminar-item time { font-family: var(--font-mono); color: var(--teal); font-size: .9rem; }
  .seminar-item h3 { font-size: 1.25rem; }
  .seminar-item p { color: var(--muted); margin-top: 6px; }
  .seminar-meta { display: grid; gap: 4px; margin-top: 20px; color: var(--muted); }
  .status-note { padding: 16px 18px; border-radius: var(--radius); background: var(--tint); color: var(--teal); font-weight: 500; }
  @media (max-width: 640px) { .seminar-item { grid-template-columns: 1fr; gap: 6px; } }

  /* ---- 404 ---- */
  .not-found { padding-block: clamp(64px, 10vw, 120px); }
  .not-found p { color: var(--muted); margin-top: 16px; font-size: var(--text-lg); }
  .not-found .btn-row { margin-top: 28px; }
}

/* ------------------------------------------------------------ utilities */
@layer utilities {
  .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .muted { color: var(--muted); }
  .mt-l { margin-top: clamp(28px, 4vw, 40px); }
}
