/* HjelpMi design tokens, shared by the public site, the 404 page and the portal placeholders.
   World: the colors of the Swedish flag without the cross, carried by materials and light (cobalt shirts, a navy
   limewash wall, ink shadows, cool white walls, pale oak). Base from lab/design-package.md section 2.
   Yellow rule: only on navy, ink or blue, never on the canvas or on white. */
:root{
  --canvas:#EEF2F6;          /* page background: the brand canvas, never pure white */
  --canvas-2:#E6ECF2;        /* a step deeper, for alternating bands */
  --panel:#F8FAFB;           /* chips, cards, raised surfaces (canvas lifted toward white) */
  --panel-2:#E2E9F0;         /* inset surfaces, image placeholders */
  --accent:#0A5C9E;          /* the CTA, links, story bar fill; white text on it 6.9:1 */
  --accent-hover:#06345C;    /* CTA hover: navy; white text on it 12.7:1 */
  --accent-muted:#CEDDEA;    /* whisper level: borders, bar track, glows */
  --text-secondary:#4F5E6E;  /* subs, chips, tags; 5.9:1 on canvas */
  --text-primary:#0B1E33;    /* ink; 15:1 on canvas */
  --on-accent:#FFFFFF;       /* text on the CTA */
  --seal-bg:#06345C;         /* the "validado" seal */
  --seal-pad:.06em .26em .1em;
  --signal:#FECC02;          /* yellow: only on navy, ink or blue */
  --line:#D5DEE7;            /* decorative hairlines */
  --line-strong:#6F7D8B;     /* interactive borders, 3.75:1 on canvas */
  --focus:#0A5C9E;
  --danger:#B3261E;          /* form errors, 5.8:1 on canvas */
  --ok:#2E7D4F;

  /* Fixed surfaces that keep their look in both themes (the portal card and the dark bands). */
  --ink:#0B1E33;
  --navy:#06345C;
  --blue:#0A5C9E;
  --ink-text:#EEF2F6;        /* canvas on ink, 15:1 */
  --ink-muted:#AEB7BF;       /* 8.3:1 on ink */
  --ink-line:rgba(255,255,255,.14);

  --shadow-1:0 1px 2px rgba(11,30,51,.06),0 8px 24px rgba(11,30,51,.07);
  --shadow-2:0 2px 6px rgba(11,30,51,.07),0 24px 60px rgba(11,30,51,.14);

  /* Type trio: Familjen Grotesk (the wordmark's family) for display, Schibsted Grotesk for text, IBM Plex Mono for labels. */
  --font-display:"Familjen Grotesk",ui-sans-serif,system-ui,sans-serif;
  --font-body:"Schibsted Grotesk",ui-sans-serif,system-ui,sans-serif;
  --font-label:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,monospace;

  --ease:cubic-bezier(.22,.61,.36,1);
  --ease-out:cubic-bezier(.16,1,.3,1);
  --ease-in-out:cubic-bezier(.65,0,.35,1);

  --radius-s:10px;
  --radius-m:16px;
  --radius-l:24px;
  --header-h:72px;
  --gutter:clamp(16px,3.5vw,48px);
  color-scheme:light;
}

/* Dark: the same home after sunset, ink from the brand's deepest shadow. */
:root[data-theme="dark"]{
  --canvas:#0B1E33; --canvas-2:#0D2440; --panel:#082B4C; --panel-2:#0F3156;
  --accent:#6095C0; --accent-hover:#84AECE; --accent-muted:#0B3458;
  --text-secondary:#AEB7BF; --text-primary:#EEF2F6; --on-accent:#0B1E33;
  --seal-bg:transparent; --seal-pad:0;
  --line:#173A5E; --line-strong:#5E7590; --focus:#84AECE;
  --danger:#F2B8B5; --ok:#7FD1A0;
  --shadow-1:0 1px 2px rgba(0,0,0,.3),0 8px 24px rgba(0,0,0,.32);
  --shadow-2:0 2px 6px rgba(0,0,0,.35),0 24px 60px rgba(0,0,0,.45);
  color-scheme:dark;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --canvas:#0B1E33; --canvas-2:#0D2440; --panel:#082B4C; --panel-2:#0F3156;
    --accent:#6095C0; --accent-hover:#84AECE; --accent-muted:#0B3458;
    --text-secondary:#AEB7BF; --text-primary:#EEF2F6; --on-accent:#0B1E33;
    --seal-bg:transparent; --seal-pad:0;
    --line:#173A5E; --line-strong:#5E7590; --focus:#84AECE;
    --danger:#F2B8B5; --ok:#7FD1A0;
    --shadow-1:0 1px 2px rgba(0,0,0,.3),0 8px 24px rgba(0,0,0,.32);
    --shadow-2:0 2px 6px rgba(0,0,0,.35),0 24px 60px rgba(0,0,0,.45);
    color-scheme:dark;
  }
}
