/* 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 · Utseendet: Ag – Rom for alt, flyttet 1:1 fra WordPress (Enfold-temaet) til Akari Engine.
   Farger, skrift, avstander og seksjoner er målt fra den gamle siden. Fargene fra sidene ligger i
   paletten (--old-N), skrevet av _research/skript/lag_sider.py.
   ===================================================================================================== */
@layer base {
  :root {
    /* PALETT START */
    --old-1: #008a91;
    --old-2: #09969e;
    --old-3: #009eb0;
    --old-4: #00b6bf;
    --old-5: #009ca6;
    --old-6: #ffffff;
    --old-7: #f8f8f8;
    --old-8: #008389;
    --old-9: #088188;
    --old-10: #008391;
    --old-11: #000000;
    --old-12: #0a0a0a;
    --old-13: #f59f3c;
    --old-14: #00828a;
    --old-15: #8edade;
    --old-16: #278186;
    /* PALETT SLUTT */

    /* AGENTS.md krever disse åtte */
    --color-bg: #ffffff;
    --color-surface: #f8f8f8;
    --color-text: #666666;
    --color-text-muted: #6b6b6b;
    --color-accent: #009ba6;          /* Ag-turkis, som på den gamle siden */
    --color-accent-muted: #88bbc8;
    --font-display: 'Lato', var(--fallback-sans);
    --font-body: 'Lato', var(--fallback-sans);

    /* Roller */
    --stripe-1: #008a91;
    --stripe-2: #09969e;
    --stripe-3: #009eb0;
    --stripe-4: #00b6bf;
    --color-heading: #666666;
    --color-strong: #444444;
    --color-link: #00838c;            /* turkis mørknet så lite som mulig for kontrast AA (4,5:1 på hvitt) */
    --color-link-hover: #005f66;
    --color-teal-band: #00838c;       /* «Kontakt meg»-båndet og knappene: turkis med hvit tekst, AA */
    --color-deep: #222222;            /* bunnen og iPhone-feltene (I1) */
    --color-on-deep: #eeeeee;
    --color-footer-text: #aaaaaa;
    --color-footer-head: #8c8c8c;     /* var #666 på #222: lysnet til AA */
    --color-socket-line: #373737;
    --color-on-accent: #ffffff;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-shade: rgb(0 0 0 / 0.28);
    --color-shade-strong: rgb(0 0 0 / 0.45);
    --color-line: #e1e1e1;
    --color-line-on-deep: rgb(255 255 255 / 0.12);
    --color-field: #8a8a8a;
    --color-field-bg: #f8f8f8;
    --color-error: #b02b2c;
    --color-focus: #005f66;
    --color-card-shadow: rgb(0 0 0 / 0.12);
    --fallback-sans: 'Akari Fallback', Helvetica, Arial, sans-serif;

    --gutter: clamp(20px, 7.5vw, 50px);
    --wrap: 1210px;
    --header-h: 88px;
    --bar-h: 0px;
    --measure: none;
    --radius: 0px;
    --gap: 30px;

    --dur: 0.3s;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    color-scheme: light;
  }
  @media (max-width: 899.98px) {
    :root { --header-h: 70px; }
  }

  @font-face {
    font-family: 'Akari Fallback';
    src: local('Arial');
    size-adjust: 97%;
    ascent-override: 101%;
    descent-override: 22%;
    line-gap-override: 0%;
  }

  html { background-color: var(--color-deep); }
  body { color: var(--color-text); font-family: var(--font-body); font-size: 16px; line-height: 1.65; background-color: var(--color-deep); }
  main { background-color: var(--color-bg); }
  h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); color: var(--color-heading); font-weight: 600; line-height: 1.3; margin: 0 0 0.5em; }
  h1 { font-size: 34px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
  h4 { font-size: 18px; }
  h5 { font-size: 16px; }
  h6 { font-size: 14px; }
  p { margin: 0 0 1em; }
  p:last-child { margin-bottom: 0; }
  ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
  strong { color: var(--color-strong); }
  a { color: var(--color-link); text-decoration: none; transition: color var(--dur) var(--ease); }
  a:hover { color: var(--color-link-hover); text-decoration: underline; }
  blockquote { margin: 0 0 1em; }
  hr { border: 0; border-top: 1px solid var(--color-line); margin: 30px 0; }
  .ta-center { text-align: center; }
  .ta-right { text-align: right; }
  figure { margin: 0; }
  img { height: auto; }
}

@layer components {
  .skip { color: var(--color-strong); background: var(--color-white); }
  /* ---------- Knapper (Enfold avia-button) ---------- */
  .abtn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
    padding: 10px 20px; border: 1px solid transparent; border-radius: 3px;
    font-family: var(--font-body); font-size: 13px; line-height: 1.2; font-weight: 400; text-decoration: none; cursor: pointer;
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  }
  .abtn:hover { text-decoration: none; }
  .abtn--small { font-size: 12px; padding: 9px 16px; }
  .abtn--medium { font-size: 13px; padding: 12px 24px; }
  .abtn--large { font-size: 15px; padding: 15px 30px; }
  .abtn--x-large { font-size: 18px; padding: 20px 40px; }
  .abtn--light { background: transparent; border-color: var(--color-white); color: var(--color-white); }
  .abtn--light:hover { background: var(--color-white); color: var(--color-strong); }
  .abtn--dark { background: transparent; border-color: var(--color-strong); color: var(--color-strong); }
  .abtn--dark:hover { background: var(--color-strong); color: var(--color-white); }
  .abtn--theme-color, .abtn--theme, .abtn--theme-color-highlight, .abtn--submit {
    background: var(--color-teal-band); border-color: var(--color-teal-band); color: var(--color-white);
  }
  .abtn--theme-color:hover, .abtn--theme:hover, .abtn--theme-color-highlight:hover, .abtn--submit:hover {
    background: var(--color-link-hover); border-color: var(--color-link-hover); color: var(--color-white);
  }
  .abtn--theme-color-subtle { background: var(--color-surface); border-color: var(--color-line); color: var(--color-text); }
  .abtn--custom { background: var(--b-bg, var(--color-teal-band)); color: var(--b-fg, var(--color-white)); }
  .abtn--custom:hover { filter: brightness(0.9); }
  .btn-wrap { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 1em; }
  .btn-wrap.ta-center { justify-content: center; }
  .btn-wrap.ta-right { justify-content: flex-end; }

  /* Fullbreddeknappen («Kontakt meg – Vi vil gjerne høre om ditt prosjekt …») */
  .fwbtn {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    padding: 40px var(--gutter); text-align: center; text-decoration: none;
    background: var(--b-bg, var(--color-teal-band)); color: var(--b-fg, var(--color-white));
    transition: background-color var(--dur) var(--ease);
  }
  .fwbtn:hover { background: var(--color-link-hover); color: var(--color-white); text-decoration: none; }
  .fwbtn__t { font-size: 20px; }
  .fwbtn__d { font-size: 16px; }
  .fwbtn--theme-color-subtle { --b-bg: var(--color-surface); --b-fg: var(--color-text); }
  .fwbtn--theme-color-subtle:hover { color: var(--color-white); }

  /* ---------- Toppen ---------- */
  .site-header { background: var(--color-white); color: var(--color-strong); border-bottom: 1px solid var(--color-line); transition: background-color var(--dur) var(--ease); }
  .site-header__bar { min-height: var(--header-h); height: var(--header-h); }
  .site-header__logo { position: relative; align-self: flex-start; }
  .site-header__logo .logo { height: calc(var(--header-h) + 22px); width: auto; padding-top: 6px; }
  .site-header__logo .logo--light { display: none; }
  .menu { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
  .menu > li { position: relative; }
  .menu > li > a, .menu__btn {
    display: inline-flex; align-items: center; min-height: var(--header-h); padding: 0 13px;
    font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--color-strong);
    background: none; border: 0; cursor: pointer; text-decoration: none; position: relative;
  }
  .menu > li > a::after, .menu__btn::after {
    content: ''; position: absolute; left: 13px; right: 13px; bottom: 18px; height: 2px; background: currentColor;
    transform: scaleX(0); transition: transform var(--dur) var(--ease);
  }
  .menu > li > a:hover, .menu__btn:hover { color: var(--color-link); text-decoration: none; }
  .menu > li > a:hover::after, .menu__btn:hover::after, .menu > li > a[aria-current="page"]::after { transform: none; }
  .menu__sub {
    position: absolute; left: 0; top: 100%; z-index: 40; min-width: 208px; margin: 0; padding: 0; list-style: none;
    background: var(--color-white); border-top: 2px solid var(--color-accent); box-shadow: 0 8px 15px var(--color-card-shadow);
    visibility: hidden; transform: translateY(6px); transition: transform var(--dur) var(--ease), visibility 0s linear var(--dur);
  }
  .menu__parent:hover .menu__sub, .menu__parent:focus-within .menu__sub, .menu__parent[data-open="true"] .menu__sub {
    visibility: visible; transform: none; transition: transform var(--dur) var(--ease), visibility 0s;
  }
  .menu__sub a { display: flex; align-items: center; min-height: 44px; padding: 8px 15px; font-size: 13px; color: var(--color-text); border-bottom: 1px solid var(--color-line); }
  .menu__sub a:hover { background: var(--color-surface); color: var(--color-link); text-decoration: none; }

  /* Gjennomsiktig topp over et toppbilde, hvit når siden rulles (som Enfold) */
  body:has(.page--hero) .site-header:not([data-scrolled="true"]) { background: transparent; border-bottom-color: transparent; }
  body:has(.page--hero) .site-header:not([data-scrolled="true"]) .logo--dark { display: none; }
  body:has(.page--hero) .site-header:not([data-scrolled="true"]) .logo--light { display: block; }
  body:has(.page--hero) .site-header:not([data-scrolled="true"]) .menu > li > a,
  body:has(.page--hero) .site-header:not([data-scrolled="true"]) .menu__btn,
  body:has(.page--hero) .site-header:not([data-scrolled="true"]) .menu-button { color: var(--color-white); }
  .page--hero { margin-top: calc(-1 * var(--header-h) - 1px); }
  .site-header[data-scrolled="true"] .site-header__logo .logo { height: var(--header-h); padding-block: 6px; }

  .menu-button { background: transparent; border: 0; color: var(--color-strong); padding: 0 6px; }
  .burger, .burger span, .burger::before, .burger::after { display: block; width: 26px; height: 2px; background: currentColor; }
  .burger { position: relative; background: none; height: 18px; }
  .burger span { position: absolute; top: 8px; }
  .burger::before, .burger::after { content: ''; position: absolute; left: 0; }
  .burger::before { top: 0; }
  .burger::after { bottom: 0; }

  .takeover { background: var(--color-white); color: var(--color-strong); }
  .takeover::backdrop { background: var(--color-white); }
  .takeover__top h2 { font-size: 20px; margin: 0; color: var(--color-strong); }
  .takeover__close { background: transparent; color: inherit; border: 0; }
  .takeover__links { margin-bottom: 24px; }
  .takeover__links li { border-bottom: 1px solid var(--color-line); }
  .takeover__links a { min-height: 52px; font-size: 20px; font-weight: 700; color: var(--color-strong); }
  .takeover__group { padding: 14px 0 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-text-muted); }
  .takeover__sub a { padding-left: 16px; font-size: 18px; font-weight: 400; }
  .takeover__contact { display: grid; gap: 4px; }
  .takeover__contact a { color: var(--color-link); }

  /* ---------- Toppbilde (Enfold fullskjerm/fullbredde-lysbilde) ---------- */
  .hero { position: relative; display: grid; isolation: isolate; overflow: clip; color: var(--color-white); background: var(--color-black); }
  .hero--full { min-height: 100svh; }
  .hero--wide { height: clamp(520px, 42vw, 100svh); }
  .hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
  .hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--color-shade-strong), var(--color-shade) 55%, transparent); }
  .hero__cap { align-self: center; padding: calc(var(--header-h) + 20px) 0 40px; }
  .hero__t { margin: 0 0 18px; font-size: clamp(30px, 3.2vw, 40px); font-weight: 700; line-height: 1.2; color: var(--color-white); max-width: 560px; }
  .hero__t strong { color: inherit; }
  .hero__text { max-width: 560px; font-size: clamp(16px, 1.6vw, 23px); line-height: 1.55; }
  .hero__text p { margin-bottom: 0.6em; }
  .hero__text strong { color: inherit; }
  .hero__btns { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0 0; }

  /* ---------- Rad med celler (Enfold layout grid) ---------- */
  .grow { display: flex; flex-wrap: wrap; }
  .cell--full { flex: 0 0 100%; } .cell--1-2 { flex: 0 0 50%; } .cell--1-3 { flex: 0 0 33.333%; } .cell--2-3 { flex: 0 0 66.667%; }
  .cell--1-4 { flex: 0 0 25%; } .cell--3-4 { flex: 0 0 75%; } .cell--1-5 { flex: 0 0 20%; } .cell--2-5 { flex: 0 0 40%; }
  .cell--3-5 { flex: 0 0 60%; } .cell--4-5 { flex: 0 0 80%; }
  .cell { min-width: 0; padding: var(--cell-pad, 30px); background-color: var(--cell-bg, transparent); background-image: var(--cell-img, none); background-size: cover; background-position: center; color: var(--color-white); }
  .cell .sh__h, .cell .tb, .cell .tb strong { color: inherit; }
  .grow--stripe .cell { padding: 40px; }
  .cell .tb p { margin-bottom: 0.4em; }
  .cell:not([style*="--cell-bg"]):not(.cell--img) { color: var(--color-text); }
  .cell:not([style*="--cell-bg"]):not(.cell--img) .sh__h { color: var(--sh-c, var(--color-heading)); }

  /* ---------- Seksjoner og kolonner ---------- */
  .sec { position: relative; isolation: isolate; padding-block: 50px; background-color: var(--sec-bg, transparent); color: var(--sec-c, inherit); }
  .sec--large { padding-block: 70px; }
  .sec--small { padding-block: 20px; }
  .sec--nopad { padding-block: 0; }
  .sec--h75 { min-height: 75svh; display: flex; align-items: center; }
  .sec--h50 { min-height: 50svh; display: flex; align-items: center; }
  .sec--hcustom { min-height: var(--sec-minh, 0); display: flex; align-items: center; }
  .sec--h75 > .wrap, .sec--h50 > .wrap, .sec--hcustom > .wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); }
  .sec--img { color: var(--sec-c, var(--color-white)); background-color: var(--sec-ov, var(--color-strong)); }
  .sec__bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
  .sec--ov::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--sec-ov); opacity: var(--sec-ov-op, 0.5); }
  .sec--img:not(.sec--ov)::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--color-shade); }
  .sec--img .sh__h, .sec--img .tb, .sec--img .tb strong, .sec--img a:not(.abtn) { color: inherit; }
  .page--hero > .sec--img:first-child { padding-top: calc(var(--header-h) + 50px); }
  .sec--arrow::after {
    content: ''; position: absolute; left: 50%; bottom: -20px; z-index: 2; width: 40px; height: 40px; margin-left: -20px;
    background: var(--sec-bg, var(--color-bg)); transform: rotate(45deg);
  }

  .cols { display: flex; flex-wrap: wrap; column-gap: 6%; align-items: flex-start; }
  .cols--table { align-items: center; }
  .col { min-width: 0; background-color: var(--col-bg, transparent); padding: var(--col-pad, 0); }
  .col--bg { padding: var(--col-pad, 30px); }
  .col--img { background-image: var(--col-img); background-size: cover; background-position: center; }
  .col--full { flex: 0 0 100%; }
  .col--1-2 { flex: 0 0 47%; }
  .col--1-3 { flex: 0 0 29.333%; }
  .col--2-3 { flex: 0 0 64.667%; }
  .col--1-4 { flex: 0 0 20.5%; }
  .col--3-4 { flex: 0 0 73.5%; }
  .col--1-5 { flex: 0 0 15.2%; }
  .col--2-5 { flex: 0 0 36.4%; }
  .col--3-5 { flex: 0 0 57.6%; }
  .col--4-5 { flex: 0 0 78.8%; }
  .cols > .col + .col--full { margin-top: 30px; }
  .cols + .cols { margin-top: 30px; }
  .sp { height: var(--h, 30px); }

  /* Overskrift (Enfold «special heading», moderne sitat) */
  .sh { padding-bottom: var(--sh-pb, 10px); color: var(--sh-c, var(--color-heading)); }
  .sh__h { margin: 0; font-size: var(--sh-fs, 28px); font-weight: 600; line-height: 1.3; color: var(--sh-c, var(--color-heading)); }
  .sh--thin .sh__h { font-weight: 300; }
  .sh__h strong { color: inherit; font-weight: 700; }
  .sh--thin .sh__h strong { font-weight: 400; }
  .sh__sub { margin-top: 6px; font-size: var(--sh-sub-fs, 15px); line-height: 1.5; color: var(--sh-c, var(--color-text)); }
  .sh__sub p { margin: 0; }
  .sh__sub + .sh__h { margin-top: 4px; }
  h1.sh__h { font-size: var(--sh-fs, 34px); }

  .tb { color: var(--tb-c, inherit); font-size: var(--tb-fs, inherit); }
  .tb > *:last-child { margin-bottom: 0; }
  .tb h2 { font-size: 24px; }
  .tb h3 { font-size: 20px; }
  .tb img { margin-block: 10px; }

  .hr--short { display: flex; justify-content: center; margin: var(--mt, 15px) 0 var(--mb, 15px); }
  .hr--short span { display: block; width: 50px; height: 1px; background: var(--color-line); }
  .hr-default { margin: 30px 0; }

  .aimg { margin: 0 0 1em; }
  .aimg img { width: 100%; }
  .aimg--center { text-align: center; }
  .aimg--center img { margin-inline: auto; width: auto; }
  .aimg figcaption { margin-top: 8px; font-size: 14px; color: var(--color-text-muted); }

  /* Murverk (masonry) med bildetekst under */
  .masonry { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 15px; }
  .masonry--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .masonry--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .masonry--nogap { gap: 0; }
  .mcard { display: flex; flex-direction: column; background: var(--color-surface); color: var(--color-strong); text-decoration: none; }
  .mcard__img { display: block; overflow: clip; aspect-ratio: 3 / 4; }
  .masonry--flexible .mcard__img { aspect-ratio: 3 / 2; }
  .mcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
  .mcard:hover img { transform: scale(1.04); }
  .mcard__cap { display: block; padding: 18px 20px; }
  .mcard__t { font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--color-strong); }
  .mcard:hover { text-decoration: none; }
  .mcard:hover .mcard__t { color: var(--color-link); }

  /* Innleggskort (Enfold «blog posts» som rutenett) */
  .postgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 6%; }
  .postgrid--full { grid-template-columns: minmax(0, 1fr); }
  .postgrid--1-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pcard__img { display: block; overflow: clip; aspect-ratio: 1030 / 579; margin-bottom: 14px; }
  .pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
  .pcard__img:hover img { transform: scale(1.03); }
  .pcard__t { margin: 0 0 4px; font-size: 15px; font-weight: 700; line-height: 1.4; }
  .pcard__t a { color: var(--color-strong); }
  .pcard__date { display: none; }
  .pcard__ex { font-size: 15px; }
  .pcard__more { margin: 0; font-size: 13px; }
  .pcard__more a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--color-strong); }

  /* Porteføljerutenett (forsiden: fire prosjekter i en rad) */
  .pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .gcard { display: flex; flex-direction: column; text-decoration: none; background: var(--color-white); border-right: 1px solid var(--color-line); }
  .gcard__img { display: block; overflow: clip; aspect-ratio: 495 / 400; }
  .gcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
  .gcard:hover img { transform: scale(1.04); }
  .gcard__t { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 14px; font-size: 13px; text-align: center; color: var(--color-text); }
  .gcard:hover { text-decoration: none; }
  .gcard:hover .gcard__t { color: var(--color-link); }

  /* Ansatte */
  .team { margin-bottom: 30px; }
  .team img { width: 100%; margin-bottom: 14px; }
  .team__name { margin: 0; font-size: 18px; font-weight: 700; color: var(--color-strong); }
  .team__job { margin: 2px 0 8px; font-size: 14px; color: var(--color-link); }
  .team__desc p { margin: 0; font-size: 15px; }
  .team__desc a { display: inline-flex; align-items: center; min-height: 44px; }

  /* Trekkspill (Enfold toggle) */
  .toggles { border-top: 1px solid var(--color-line); }
  .toggle { border-bottom: 1px solid var(--color-line); }
  .toggle > summary { list-style: none; justify-content: space-between; gap: 16px; padding: 18px 30px; font-size: 18px; font-weight: 400; color: var(--color-strong); }
  .toggle > summary::-webkit-details-marker { display: none; }
  .toggle > summary::after {
    content: ''; flex: none; width: 24px; height: 24px; border: 1px solid var(--color-line); border-radius: 50%;
    background: linear-gradient(var(--color-text-muted), var(--color-text-muted)) center / 10px 1px no-repeat,
                linear-gradient(var(--color-text-muted), var(--color-text-muted)) center / 1px 10px no-repeat;
  }
  .toggle[open] > summary::after { background: linear-gradient(var(--color-text-muted), var(--color-text-muted)) center / 10px 1px no-repeat; }
  .toggle > summary:hover { color: var(--color-link); }
  .toggle__body { padding: 10px 30px 30px; }

  /* Bildestriper og gallerier */
  .hgallery { display: flex; gap: 10px; margin: 0 0 1em; padding: 0 0 10px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
  .hgallery li { flex: none; scroll-snap-align: start; }
  .hgallery img { height: clamp(200px, 22vw, 300px); width: auto; max-width: none; }
  .wpgallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 1.5em; }
  .wpgallery--1 { grid-template-columns: minmax(0, 1fr); }
  .wpgallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wpgallery--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wpgallery figure { position: relative; overflow: clip; }
  .wpgallery img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
  .wpgallery figcaption { margin-top: 6px; font-size: 14px; color: var(--color-text-muted); }
  .wpimage { margin: 0 0 1.5em; }
  .wpimage img { width: 100%; }
  .wpimage figcaption { margin-top: 8px; font-size: 14px; color: var(--color-text-muted); text-align: center; }
  .inline-img { display: inline-block; margin: 8px 0; }
  .wpcols { display: flex; flex-wrap: wrap; gap: 2em; margin-bottom: 1.5em; }
  .wpcol { flex: 1 1 0; min-width: 0; }
  .mediatext { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: center; margin-bottom: 1.5em; }
  .mediatext img { width: 100%; }
  .quote { margin: 1.5em 0; padding: 0 0 0 20px; border-left: 3px solid var(--color-accent); font-size: 18px; color: var(--color-strong); }
  .quote cite { display: block; margin-top: 8px; font-size: 14px; font-style: normal; color: var(--color-text-muted); }
  .embed-link a { font-weight: 700; }
  .note { font-size: 14px; color: var(--color-text-muted); }

  /* Video: bilde og lenke til YouTube (Engine stopper innbygde spillere, E12) */
  .video { position: relative; display: block; overflow: clip; margin: 0 0 1em; background: var(--color-black); color: var(--color-white); text-decoration: none; }
  .video img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: 0.85; transition: opacity var(--dur) var(--ease); }
  .video:hover img { opacity: 1; }
  .video__play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px; background: var(--color-error); }
  .video__play::after { content: ''; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent var(--color-white); }
  .video__label { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 14px; font-size: 14px; background: var(--color-shade-strong); color: var(--color-white); }
  .video:hover { text-decoration: none; }

  .iconbox { padding: 0 0 20px; }
  .iconbox__t { font-size: 18px; color: var(--color-strong); }
  .table { overflow-x: auto; margin-bottom: 1em; }
  .table table { width: 100%; border-collapse: collapse; }
  .table td, .table th { padding: 10px 12px; border: 1px solid var(--color-line); text-align: left; vertical-align: top; }
  .iconlist { list-style: none; padding: 0; }
  .iconlist li { padding: 0 0 16px 20px; border-left: 2px solid var(--color-accent); margin-bottom: 16px; }
  .iconlist h4 { margin: 0 0 4px; font-size: 16px; color: var(--color-strong); }

  /* Undermeny med ankerlenker (Om Ag) */
  .submenu { border-bottom: 1px solid var(--color-line); background: var(--color-white); }
  .submenu ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; margin: 0; padding: 8px var(--gutter); list-style: none; }
  .submenu li + li { border-left: 1px solid var(--color-line); }
  .submenu a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 13px; }

  /* Prosjektoversikten (/prosjekter/) */
  .prosjekter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 35px; }
  .prosj { padding: 25px; }
  .prosj__img { display: block; }
  .prosj__img img { width: 100%; height: 200px; object-fit: cover; }
  .prosj__t { margin: 25px 0 10px; font-size: 22px; font-weight: 600; line-height: 1.3; }
  .prosj__t a { color: var(--color-link); }

  /* Ett prosjekt (/prosjekt/<navn>/) */
  .pstripe { height: 40px; background: linear-gradient(90deg, var(--stripe-1) 0 25%, var(--stripe-2) 25% 50%, var(--stripe-3) 50% 75%, var(--stripe-4) 75%); }
  .sec--prosjekt { padding-top: 25px; }
  .pj-top { position: relative; margin-bottom: 60px; }
  .pj-top__img { width: 100%; height: 600px; object-fit: cover; }
  .pj-top__meta { position: absolute; right: 50px; bottom: -24px; width: min(450px, 100%); padding: 40px; background: var(--color-white); box-shadow: 0 2px 10px var(--color-card-shadow); }
  .pj-top__meta h1 { margin: 0 0 12px; font-size: 30px; color: var(--color-strong); }
  .pj-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 25px; align-items: start; margin-bottom: 40px; }
  .pj-main__img img { width: 100%; height: 60vh; object-fit: cover; }
  .pj-gal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 50px; }
  .pj-gal img { width: 100%; height: 200px; object-fit: cover; }
  .pj-kp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; align-items: center; margin-bottom: 40px; }
  .pj-kp__img img { width: 100%; }
  .pj-kp__meta h2 { font-size: 26px; }
  .pj-kp__meta h3 { margin: 0 0 6px; font-size: 20px; color: var(--color-strong); }
  .pj-kp__meta p { margin: 0; }
  .pj-kp__meta .btn-wrap { margin-top: 16px; }

  /* Innlegg (Enfold enkeltinnlegg) */
  .sec--post { padding-top: 50px; }
  .post { max-width: 910px; margin-inline: auto; }
  .post__img { margin-bottom: 40px; }
  .post__img img { width: 100%; max-height: 423px; object-fit: cover; }
  .post__head { max-width: 598px; margin: 0 auto 30px; text-align: center; }
  .post__t { font-size: 34px; color: var(--color-strong); }
  .post__meta { font-size: 13px; color: var(--color-text-muted); }
  .post__body { max-width: 598px; margin-inline: auto; }
  .post__body h2 { font-size: 24px; color: var(--color-strong); }
  .post__body h3 { font-size: 20px; color: var(--color-strong); }
  .post__body .cols, .post__body .wpgallery, .post__body .mediatext { max-width: none; }
  .sec--postnav { padding-top: 0; }
  .postnav { display: flex; justify-content: space-between; gap: 20px; max-width: 910px; margin: 50px auto 0; padding-top: 30px; border-top: 1px solid var(--color-line); }
  .postnav a { display: grid; gap: 2px; min-height: 44px; max-width: 45%; text-decoration: none; }
  .postnav__neste { text-align: right; margin-left: auto; }
  .postnav__l { font-size: 13px; color: var(--color-text-muted); }
  .postnav__t { font-weight: 700; color: var(--color-strong); }
  .postnav a:hover .postnav__t { color: var(--color-link); }

  /* ---------- Skjemaet (Gravity Forms-utseendet) ---------- */
  .kontaktskjema { padding: 10px 0; }
  .kontaktskjema__t { margin: 0 0 16px; font-size: 22px; color: var(--color-strong); }
  .form { max-width: none; gap: 14px; }
  .field label, .field legend { font-size: 14px; font-weight: 700; color: var(--color-strong); }
  .field--choice { display: grid; gap: 2px; padding: 0; margin: 0; border: 0; }
  .field--choice legend { margin-bottom: 6px; }
  .choice { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 400; font-size: 15px; color: var(--color-text); cursor: pointer; }
  .field .choice { font-weight: 400; font-size: 15px; color: var(--color-text); }
  .choice input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--color-teal-band); flex: none; }
  .req { color: var(--color-error); }
  .field__hint { margin: 0; font-size: 13px; color: var(--color-text-muted); }
  .field input:not([type="radio"]):not([type="checkbox"]), .field textarea { padding: 12px; background: var(--color-field-bg); border: 1px solid var(--color-field); border-radius: 0; color: var(--color-strong); }
  .field input::placeholder, .field textarea::placeholder { color: var(--color-text-muted); }
  .field__error { font-size: 14px; font-weight: 700; }
  .form__summary { padding: 14px 18px; border: 2px solid var(--color-error); background: var(--color-white); }
  .form__status { margin: 12px 0 0; font-weight: 700; }
  .form__answer { margin-top: 20px; padding: 24px; background: var(--color-surface); border: 1px solid var(--color-line); }
  .abtn--submit { min-height: 48px; padding: 12px 30px; font-size: 15px; }
  /* Skjemaet på laptop: navn, e-post og telefon på én rad og valgene i to kolonner, så hele skjemaet får plass (L13) */
  @media (min-width: 900px) {
    .form { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 16px; }
    .form > *:not(.field--short) { grid-column: 1 / -1; }
    .form > .field--short { grid-column: auto; }
    .field--choice { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
    .field--choice legend, .field--choice .field__error { grid-column: 1 / -1; }
    .field textarea { min-height: 96px; }
    .kontaktskjema__t { margin-bottom: 8px; }
  }

  /* ---------- Bunnen ---------- */
  .site-footer { background: var(--color-deep); color: var(--color-footer-text); padding: 0 0 env(safe-area-inset-bottom); font-size: 14px; }
  .site-footer__main { padding: 50px 0 30px; }
  .site-footer__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 6%; }
  .site-footer__h { margin: 0 0 14px; font-size: 14px; font-weight: 700; letter-spacing: 1px; color: var(--color-footer-head); }
  .site-footer p { margin: 0 0 14px; }
  .site-footer a { display: inline; min-height: 0; min-width: 0; color: var(--color-footer-text); line-height: 2.2; }
  .site-footer a:hover { color: var(--color-white); }
  .site-footer__socket { padding: 14px 0; border-top: 1px solid var(--color-socket-line); font-size: 12px; color: var(--color-on-deep); }
  .site-footer__socket p { margin: 0; }
  .site-footer__socket a { color: var(--color-on-deep); }
  .side-contact {
    position: fixed; left: 70px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 29;
    display: inline-flex; align-items: center; min-height: 44px; padding: 5px 12px;
    background: var(--color-teal-band); color: var(--color-white); font-size: 15px; text-decoration: none;
  }
  .site-footer .side-contact { display: inline-flex; min-height: 44px; line-height: 1.2; color: var(--color-white); }
  .site-footer .side-contact:hover { background: var(--color-link-hover); color: var(--color-white); text-decoration: none; }
}

@layer pages {
  /* Fullbreddeelementer som på den gamle siden: «Kontakt meg»-båndet og prosjektrekken på forsiden */
  .sec:has(> .wrap > .fwbtn:only-child) { padding: 0; }
  .sec:has(> .wrap > .fwbtn:only-child) > .wrap { width: 100%; max-width: none; }
  .sec:has(> .wrap > .pgrid:only-child) { padding: 0; }
  .sec:has(> .wrap > .pgrid:only-child) > .wrap { width: 100%; max-width: none; }

  /* Synlighet etter Enfolds bruddpunkter: d ≥ 990, m 768–989, s 480–767, x < 480 */
  @media (min-width: 990px) { .hide-d { display: none; } }
  @media (min-width: 768px) and (max-width: 989.98px) { .hide-m { display: none; } }
  @media (min-width: 480px) and (max-width: 767.98px) { .hide-s { display: none; } }
  @media (max-width: 479.98px) { .hide-x { display: none; } }

  @media (max-width: 989.98px) {
    .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .prosjekter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grow:not(.grow--stripe) .cell--1-4 { flex: 0 0 50%; }
  }
  @media (max-width: 767.98px) {
    .cols { display: block; }
    .col { margin-bottom: 20px; }
    .col--empty { display: none; }
    .grow .cell { flex: 0 0 100%; }
    .grow .cell--empty { display: none; }
    .grow--stripe .cell, .grow--stripe .cell--empty { display: block; flex: 1 1 0; padding: 20px; }
    .postgrid, .postgrid--1-3 { grid-template-columns: minmax(0, 1fr); }
    .masonry--2, .masonry--3 { grid-template-columns: minmax(0, 1fr); }
    .pgrid { grid-template-columns: minmax(0, 1fr); }
    .prosjekter { grid-template-columns: minmax(0, 1fr); }
    .prosj { padding: 0; }
    .wpgallery, .wpgallery--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mediatext, .pj-main, .pj-kp { grid-template-columns: minmax(0, 1fr); }
    .pj-gal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pj-top__img { height: 360px; }
    .pj-top__meta { position: static; width: 100%; padding: 24px 0 0; box-shadow: none; }
    .pj-top { margin-bottom: 30px; }
    .pj-main__img img { height: 50vh; }
    .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
    .sec { padding-block: 40px; }
    .sec--large { padding-block: 50px; }
    .post__t { font-size: 28px; }
    .sh__h, h1.sh__h { font-size: min(calc(var(--sh-fs, 28px) * 0.8), 13vw); }
    .hero--wide { height: auto; min-height: 70svh; }
    .toggle > summary { padding: 16px 10px; }
    .toggle__body { padding: 10px 0 24px; }
    .postnav { flex-direction: column; }
    .postnav a { max-width: none; }
  }
}

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