/* Akari starter kit · style
 *
 * Two parts:
 *   1. @layer kit and @layer switches: the mechanics the behaviour depends on (touch targets, the menu
 *      takeover, the carousel, the form, the action bar, iOS, reveal). Keep them. They use only tokens, so
 *      they take any look. kit comes first, so the look can restyle it; switches (the phone breakpoint,
 *      landscape, reduced motion) comes last, so no look can break the behaviour.
 *   2. @layer base, components, pages: the look. Here it is a WIREFRAME, grey and plain on purpose.
 *      Replace it with the direction in RETNING.md: design every token, the type, the header, the buttons,
 *      the cards, the menu, the form and the footer from scratch. Do not adjust the wireframe.
 *      Remove --wireframe from :root when the look is yours (the build warns while it is there).
 *
 * Two kinds of rule stay unlayered, at the very end: [hidden] (RULES.md L12), and the overrides of what
 * Akari Engine injects (the cookie banner, the privacy notice), because injected CSS beats any layer.
 */
@layer kit, base, components, pages, switches;

/* =====================================================================================================
   1 · The kit: mechanics. Keep.
   ===================================================================================================== */
@layer kit {
  *, *::before, *::after { box-sizing: border-box; }

  /* html and body carry the colour of the iPhone bars; main carries the page (I1). */
  html {
    background-color: var(--color-deep);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
  }
  body { margin: 0; background-color: var(--color-deep); -webkit-font-smoothing: antialiased; }
  main { display: block; background-color: var(--color-bg); overflow-x: clip; }
  /* An instant restore after the menu closes (T4), and the scroll lock while it is open. */
  html[data-instant] { scroll-behavior: auto; }
  html[data-locked], html[data-locked] body { overflow: hidden; }

  h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
  p, li, dd, figcaption, blockquote { text-wrap: pretty; }
  /* No automatic hyphenation (L9). */
  * { hyphens: manual; }

  img, svg, video { display: block; max-width: 100%; height: auto; }
  svg.icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -0.2em; }
  button, input, select, textarea { font: inherit; color: inherit; }
  :focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }

  /* Anchor targets clear the header (never scroll-padding on html). */
  [id] { scroll-margin-top: calc(var(--header-h) + 16px); }

  .nw { white-space: nowrap; }
  .visually-hidden {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
  }
  .skip { position: absolute; left: 12px; top: -100px; z-index: 100; padding: 12px 16px; background: var(--color-surface); color: var(--color-text); }
  .skip:focus { top: 12px; }
  .wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

  /* The contact section on a wide screen: the heading beside the form, so both fit one laptop screen (L13). */
  @media (min-width: 900px) {
    [data-form] > .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
    [data-form] > .wrap > .section__head { margin-bottom: 0; }
  }

  /* Buttons and links: 44–48 px targets (A2). */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; text-decoration: none; cursor: pointer;
  }
  .btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
  .card > a, .link-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
  details > summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; }

  /* Header */
  .site-header { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top); }
  .site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
  .site-header__logo { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
  .site-nav { display: flex; align-items: center; }
  .site-nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; }
  .menu-button { display: none; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; cursor: pointer; }

  /* The menu takeover (T2–T12) */
  .takeover {
    position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none;
    margin: 0; padding: 0; border: 0;
    background: var(--color-deep); color: var(--color-on-deep);
    overscroll-behavior: contain;
  }
  .takeover::backdrop { background: var(--color-deep); }
  .takeover[open] { display: flex; flex-direction: column; }
  .takeover__top {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    min-height: var(--header-h); padding: env(safe-area-inset-top) var(--gutter) 0; flex: none;
  }
  .takeover__close { display: inline-grid; place-items: center; width: 48px; height: 48px; cursor: pointer; }
  .takeover__body { flex: 1; overflow-y: auto; padding: 16px var(--gutter) calc(32px + env(safe-area-inset-bottom)); }
  .takeover__links { list-style: none; margin: 0; padding: 0; }
  .takeover__links a { display: flex; align-items: center; min-height: 56px; text-decoration: none; }
  .takeover__contact a { display: inline-flex; align-items: center; min-height: 44px; }

  /* Carousel (K1–K9): the list, and the bar with the counter */
  .cards { margin: 0; padding: 0; list-style: none; }
  .cards > li { min-width: 0; }
  .carousel-bar { display: none; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
  .carousel-bar__count { font-variant-numeric: tabular-nums; }
  .carousel-bar__buttons { display: flex; gap: 8px; }
  .carousel-bar button { width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; }
  .carousel-bar button:disabled { cursor: default; }

  /* Form (S1–S15) */
  .form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .form fieldset { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; margin: 0; padding: 0; border: 0; }
  .form legend { padding: 0; }
  .field { display: grid; gap: 6px; min-width: 0; }
  .field input, .field select, .field textarea {
    width: 100%; min-height: 48px;
    font-size: max(16px, 1rem); /* 16 px or iOS zooms (S9) */
  }
  .field textarea { min-height: 104px; resize: vertical; }   /* three lines: the whole form fits a laptop screen (L13) */
  .field [aria-invalid="true"] { border-color: var(--color-error); }
  .field__error { margin: 0; color: var(--color-error); }
  .form__summary ul { margin: 8px 0 0; padding-left: 20px; }
  .form__steps { display: flex; justify-content: space-between; gap: 12px; }
  /* The submit button stands in its own block: the published privacy notice goes before it. */
  [data-submit-row] { display: flex; flex-wrap: wrap; gap: 12px; }
  .form[aria-busy="true"] [type="submit"] { opacity: 0.7; cursor: progress; }
  .form__status, .form__answer { scroll-margin: calc(var(--header-h) + 16px) 0 calc(var(--bar-h) + 24px); }
  .form__status:empty { margin: 0; }
  /* The honeypot is off screen, inert and aria-hidden in the markup (S1). */
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

  /* Action bar (H1–H6, E2) */
  .actionbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: none; align-items: center; gap: 10px;
    padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)) 72px; /* 72 px: the cookie button's slot */
    background: var(--color-deep); color: var(--color-on-deep);
    transform: translateY(110%);
    transition: transform var(--dur) var(--ease);
  }
  .actionbar[data-visible="true"] { transform: none; }
  .actionbar .btn { flex: 1; min-height: 48px; padding-inline: 12px; }
  .actionbar__slot { position: absolute; left: 12px; bottom: calc(8px + env(safe-area-inset-bottom)); width: 48px; height: 48px; }

  /* Reveal (E5, A7): visible without JavaScript */
  html[data-js] .reveal:not([data-shown]) { opacity: 0; transform: translateY(16px); }
  .reveal { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }

  /* Footer targets (A2) */
  .site-footer { padding-bottom: env(safe-area-inset-bottom); }
  .site-footer a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
}

/* The switches: the mechanics that must win over any look, so they sit in the last layer. Keep. */
@layer switches {
  /* Phone (the one breakpoint, T3: keep it equal to script.js) */
  @media (max-width: 899.98px) {
    .site-nav { display: none; }
    .menu-button { display: inline-flex; }
    .actionbar { display: flex; }
    /* Room for the action bar, in the footer's own colour (no light band above it). */
    body:has(.actionbar) .site-footer { padding-bottom: calc(32px + var(--bar-h) + env(safe-area-inset-bottom)); }
    .btn-row { display: grid; grid-template-columns: minmax(0, 1fr); }
    .btn-row .btn { width: 100%; }
    [data-submit-row] .btn { width: 100%; }

    [data-carousel] {
      display: flex; gap: 16px;
      overflow-x: auto; overscroll-behavior-x: contain;
      scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
      margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
      scrollbar-width: none;
    }
    [data-carousel]::-webkit-scrollbar { display: none; }
    [data-carousel] > li { flex: 0 0 82%; scroll-snap-align: start; scroll-margin-inline: var(--gutter); }
    .carousel-bar { display: flex; }
  }

  /* Landscape phone: fixed elements take little room (H5, T10) */
  @media (max-height: 480px) and (orientation: landscape) {
    .site-header { position: static; }
    .actionbar { padding-block: 4px calc(4px + env(safe-area-inset-bottom)); }
    .actionbar .btn { min-height: 44px; }
    .takeover__links a { min-height: 48px; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms; animation-iteration-count: 1; transition-duration: 0.01ms; }
    html[data-js] .reveal:not([data-shown]) { opacity: 1; transform: none; }
  }
}

/* =====================================================================================================
   2 · The look: a WIREFRAME. Replace all of it with the direction in RETNING.md.
   ===================================================================================================== */
@layer base {
  :root {
    /* AGENTS.md requires these eight. Colours from the old site (Elementor kit and sections). */
    --color-bg: #ffffff;
    --color-surface: #ffffff;
    --color-text: #000000;
    --color-text-muted: #3d3d3d;
    --color-accent: #000000;
    --color-accent-muted: #ffbcad;
    --font-display: 'Raleway', var(--fallback-sans);
    --font-body: 'Raleway', var(--fallback-sans);

    /* The old site's section colours */
    --color-orange: #fcbc72;
    --color-yellow: #ffdb80;
    --color-pink: #ffbcad;
    --color-magenta: #c42e83;        /* the old #ff70c2 headings, darkened to pass AA on white (A1) */
    --color-magenta-line: #ff70c2;
    --color-hero-shade: rgb(37 7 26 / 0.47);
    --color-hero-base: #5d4656;      /* under the photo: the text stays readable if it never loads */
    --color-white: #ffffff;
    --font-small: 'Poppins', var(--fallback-sans);

    /* Roles the kit uses */
    --color-deep: #ffffff;
    --color-on-deep: #000000;
    --color-on-accent: #ffffff;
    --color-line: #d6d6d6;
    --color-line-on-deep: rgb(0 0 0 / 0.14);
    --color-field: #767676;
    --color-error: #a3261c;
    --color-focus: #000000;
    --fallback-sans: 'Akari Fallback', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

    --space-section: clamp(48px, min(8vw, 9vh), 112px);
    --space-head: clamp(24px, min(3vw, 4vh), 40px);
    --gap: 24px;
    --gutter: clamp(20px, 5vw, 48px);
    --measure: 62ch;
    --wrap: 1200px;
    --radius: 0px;
    --header-h: 96px;
    --bar-h: 64px;

    --step--1: 0.875rem;
    --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
    --step-1: clamp(1.15rem, 1.05rem + 0.4vw, 1.375rem);
    --step-2: clamp(1.5rem, 1.25rem + 1vw, 2rem);
    --step-3: clamp(1.875rem, min(1.4rem + 1.6vw, 6vh), 2.5rem);
    --step-4: clamp(2rem, min(1.2rem + 3vw, 8vh), 3.25rem);

    --dur: 0.3s;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

    color-scheme: light;
  }

  /* Raleway against Arial (Y7) */
  @font-face {
    font-family: 'Akari Fallback';
    src: local('Arial');
    size-adjust: 104%;
    ascent-override: 90%;
    descent-override: 22%;
    line-gap-override: 0%;
  }

  html, body { background-color: var(--color-bg); }
  body { color: var(--color-text); font-family: var(--font-body); font-size: var(--step-0); font-weight: 400; line-height: 1.65; }
  h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--color-text); text-wrap: balance; }
  h1 { font-size: var(--step-4); }
  h2 { font-size: var(--step-3); }
  h3 { font-size: var(--step-1); font-weight: 600; line-height: 1.3; }
  p { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }
  :is(h1, h2, h3) + :is(p, ul, ol) { margin-top: 0.75em; }
  p:last-child { margin-bottom: 0; }
  a { color: inherit; text-underline-offset: 0.18em; }

  .section { padding-block: var(--space-section); }
  .section__head { margin-bottom: var(--space-head); max-width: 760px; }
  .lead { font-size: var(--step-1); line-height: 1.5; color: var(--color-text-muted); }
}

@layer components {
  .btn { padding: 10px 20px; border: 2px solid transparent; border-radius: var(--radius); font-family: var(--font-display); font-weight: 500; font-size: 1.0625rem; line-height: 1.2; text-decoration: none; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
  .btn--primary { background: var(--color-accent); color: var(--color-on-accent); }
  .btn--primary:hover { background: var(--color-text-muted); }
  .btn--ghost, .btn--line { border-color: currentColor; background: transparent; color: var(--color-text); }
  .btn--ghost:hover, .btn--line:hover { background: var(--color-text); color: var(--color-white); border-color: var(--color-text); }
  .btn--light { border-color: var(--color-white); background: transparent; color: var(--color-white); }
  .btn--light:hover { background: var(--color-white); color: var(--color-text); }

  .site-header { position: sticky; top: 0; z-index: 30; background: var(--color-deep); color: var(--color-on-deep); border-bottom: 1px solid var(--color-line-on-deep); }
  .site-header__logo { display: inline-flex; align-items: center; min-height: 44px; }
  .site-header__logo img { height: clamp(48px, 5vw, 72px); width: auto; }
  .site-nav { gap: 0; flex-wrap: nowrap; }
  .site-nav a:not(.btn) { padding: 0 clamp(5px, 0.7vw, 12px); font-size: clamp(0.875rem, 0.7rem + 0.3vw, 0.9375rem); font-weight: 500; text-decoration: none; white-space: nowrap; transition: color var(--dur) var(--ease); }
  .site-nav a:not(.btn):hover { text-decoration: underline; text-decoration-thickness: 1.5px; }
  .site-nav a[lang] { margin-left: clamp(4px, 0.6vw, 10px); border-left: 1px solid var(--color-line); }
  .menu-button { padding: 0 12px; background: transparent; border: 1.5px solid currentColor; border-radius: var(--radius); }

  .takeover { background: var(--color-bg); color: var(--color-text); }
  .takeover__top h2 { font-size: var(--step-1); color: inherit; }
  .takeover__close { background: transparent; color: inherit; border: 1.5px solid currentColor; border-radius: var(--radius); }
  .takeover__links { margin-bottom: 32px; }
  .takeover__links a { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; border-bottom: 1px solid var(--color-line); text-decoration: none; }
  .takeover__links a:hover { color: var(--color-magenta); }
  .takeover__contact { margin-top: 32px; display: grid; gap: 4px; }
  .takeover__contact a { font-weight: 600; }

  details > summary { font-weight: 600; }

  .accordion { margin-top: 28px; border-top: 1px solid var(--accordion-line, var(--color-text)); max-width: 520px; }
  .accordion details { border-bottom: 1px solid var(--accordion-line, var(--color-text)); }
  .accordion summary { list-style: none; gap: 10px; padding-block: 8px; font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; }
  .accordion summary::-webkit-details-marker { display: none; }
  .accordion summary::before { content: ""; width: 0; height: 0; border-block: 5px solid transparent; border-left: 6px solid currentColor; transition: transform var(--dur) var(--ease); }
  .accordion details[open] > summary::before { transform: rotate(90deg); }
  .accordion summary:hover { text-decoration: underline; }
  .accordion details > div { padding: 4px 0 18px 16px; }

  .social { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
  .social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--color-text); transition: background-color var(--dur) var(--ease); }
  .social a:hover { background: var(--color-white); }
  .social .icon { width: 22px; height: 22px; }

  .form { max-width: 640px; display: grid; gap: 16px; }
  .form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
  .field label { font-weight: 600; }
  .field__hint { margin: 0; font-size: 0.9375rem; color: var(--color-text-muted); }
  .field input, .field select, .field textarea { padding: 12px 14px; background: var(--color-surface); border: 1.5px solid var(--color-field); border-radius: var(--radius); }
  .field textarea::placeholder { color: var(--color-text-muted); }
  .field__error { font-weight: 600; font-size: 0.95rem; }
  .form__summary { padding: 16px 20px; border: 2px solid var(--color-error); background: var(--color-surface); }
  .form__status { margin: 16px 0 0; font-weight: 600; }
  .form__answer { margin-top: 24px; padding: 28px; background: var(--color-yellow); }
  .form__answer h3 { margin-bottom: 8px; }

  .slot { display: grid; align-content: center; gap: 6px; min-height: 120px; padding: 20px 24px; border: 1.5px dashed var(--color-field); background: var(--color-surface); color: var(--color-text-muted); }
  .slot__type { font-size: var(--step--1); font-weight: 600; color: var(--color-text); }
  .slot__text { font-size: 0.95rem; line-height: 1.5; max-width: 44ch; }
  .slot__rec { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-muted); }

  .site-footer { background: var(--color-bg); color: var(--color-text); padding-top: clamp(40px, 6vw, 72px); font-family: var(--font-small); font-size: 0.9375rem; }
  .site-footer p { margin: 0 0 14px; }
  .site-footer a { text-decoration: underline; }
  .site-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: clamp(40px, 6vw, 64px); }
  .site-footer__mark img { width: clamp(160px, 22vw, 250px); height: auto; }
  .site-footer__contact { justify-self: center; }
  .site-footer__heading { font-family: var(--font-small); font-size: 1.375rem; font-weight: 600; }
  .site-footer .social a { width: 44px; height: 44px; background: var(--color-pink); }
  .site-footer .social a:hover { background: var(--color-text); color: var(--color-white); }
  .site-footer .social .icon { width: 18px; height: 18px; }
  .site-footer__legal { background: var(--color-pink); padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); text-align: center; font-size: 0.875rem; }
  .site-footer__legal p { margin: 0; max-width: none; }
  .site-footer__legal a { display: inline-block; padding-block: 12px; }
  @media (max-width: 899.98px) {
    .site-footer__grid { grid-template-columns: minmax(0, 1fr); justify-items: start; }
    .site-footer__contact { justify-self: start; }
    .site-footer__mark img { width: 120px; }
  }
}

@layer pages {
  /* Hero: the pine trees, the old shade, the wave */
  .hero { position: relative; isolation: isolate; background-color: var(--color-hero-base); display: grid; place-items: center; min-height: clamp(380px, 62svh, 700px); padding: 40px var(--gutter) clamp(72px, 9vw, 130px); color: var(--color-white); text-align: center; overflow-x: clip; }
  .hero__media, .hero__media img, .hero__media picture { position: absolute; inset: 0; width: 100%; height: 100%; }
  .hero__media { z-index: -2; }
  .hero__media img { object-fit: cover; object-position: center; }
  .hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(150deg, var(--color-hero-shade) 27%, var(--color-pink) 100%); opacity: 0.75; }
  .hero h1 { color: var(--color-white); font-weight: 500; font-size: clamp(1.75rem, min(1rem + 2.2vw, 7vh), 3.125rem); max-width: 36ch; margin: 0 auto; }
  .hero__sub { margin: 16px auto 0; font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem); font-weight: 300; max-width: none; }
  .hero .btn-row { justify-content: center; margin-top: 32px; }
  .hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(40px, 7vw, 110px); color: var(--color-bg); }

  /* Verdier: three suns */
  .verdier { text-align: center; padding-block: clamp(40px, 6vw, 80px); }
  .verdier h2 { margin-bottom: clamp(24px, 4vw, 48px); }
  .verdier__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0 auto; padding: 0; list-style: none; max-width: 860px; }
  .verdier__list img { width: 72px; height: auto; margin: 0 auto 16px; }
  .verdier__list h3 { font-size: 1.25rem; }

  /* The coloured halves */
  .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(420px, 70svh, 760px); }
  .split__text { display: grid; align-content: center; padding: clamp(40px, 6vw, 96px) clamp(24px, 6vw, 96px); background: var(--panel, var(--color-bg)); }
  .split__text h2 { margin: 0 0 20px; }
  .split__text .btn-row { margin-bottom: 20px; }
  .split__text .btn-row:last-child { margin: 12px 0 0; }
  .split__text ul { margin: 0; padding-left: 22px; }
  .split__media { position: relative; min-height: 320px; }
  .split__media picture, .split__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
  .split__media img { object-fit: cover; }
  .split--media-first .split__media { order: -1; }
  .panel--orange { --panel: var(--color-orange); }
  .panel--yellow { --panel: var(--color-yellow); }
  .panel--pink { --panel: var(--color-pink); }
  .om-meg h2 { color: var(--color-magenta); }
  .om-meg { --accordion-line: var(--color-magenta-line); }

  /* Ta kontakt */
  .kontakt { background: var(--color-yellow); text-align: center; }
  .kontakt h2 { margin-bottom: 20px; }
  .kontakt .social { justify-content: center; margin-bottom: 24px; }
  .kontakt p { margin-inline: auto; max-width: 46ch; font-size: 1.0625rem; }

  /* Kontaktskjema */
  .kontaktskjema__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
  .kontaktinfo h3 { font-size: 1.5rem; margin-bottom: 16px; }
  .kontaktinfo p { margin-bottom: 12px; }

  /* Personvernerklæringen */
  .personvern__text { max-width: 760px; }
  .personvern__text h1 { font-size: var(--step-3); margin-bottom: 24px; }
  .personvern__text h2 { font-size: var(--step-2); margin: 40px 0 12px; }
  .personvern__text h3 { margin: 24px 0 8px; }
  .personvern__text ul { margin: 0 0 1em; padding-left: 22px; }

  @media (max-width: 899.98px) {
    .verdier__list { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .split, .kontaktskjema__grid { grid-template-columns: minmax(0, 1fr); }
    .split { min-height: 0; }
    .split--media-first .split__media { order: 0; }
    .split__media { min-height: 0; aspect-ratio: 3 / 2; }
  }
}

/* ---------- Unlayered: what Akari Engine injects (E1, E2) ---------- */
body #cc-main {
  --cc-btn-primary-bg: var(--color-accent);
  --cc-btn-primary-color: var(--color-on-accent);
  --cc-btn-primary-hover-bg: var(--color-deep);
  --cc-btn-primary-hover-color: var(--color-on-deep);
  --cc-toggle-on-bg: var(--color-accent);
  --cc-toggle-on-knob-bg: var(--color-surface);
}
body .floating-cookie-btn {
  position: fixed; left: 12px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 31;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--color-accent); color: var(--color-on-accent);
}
body .ae-privacy-notice { margin: 0; font-size: 14px; line-height: 1.5; color: var(--color-text-muted); }

/* ---------- Unlayered, and last: [hidden] always hides (L12) ---------- */
[hidden]:not([hidden="until-found"]) { display: none; }
