/* Estio Group v2 M3-tokens: brand-v2 (marine/mint/krem), IKKE Leire — generert av
   scripts/brand-v2-scheme.mjs fra brand-v2/tokens.json, ikke rediger for hånd. Vedtak Ibo
   16.09/18.09.2026: Estio Group (uten undermerke) har ingen egen M3-seed, konsernets farger
   ER brand-v2, formen følger fortsatt M3 fullt ut. Marine ([data-theme="dark"]) er
   konsernflatens STANDARDTEMA (estio.no); denne pakken tvinger ikke det valget, konsumenten
   setter data-theme="dark" selv (jf. docs/BRAND-GUIDELINES.md §4.1). tokens/estio-group.css
   (Leire) er uendret og fortsatt kilden for postskilt/estio-slides. */
:root,
:root[data-theme="light"] {
  color-scheme: light;
  --estio-primary: #002229;
  --estio-on-primary: #eefbf0;
  --estio-primary-container: #a5f5a8;
  --estio-on-primary-container: #0b5f24;
  --estio-primary-fixed: #a5f5a8;
  --estio-primary-fixed-dim: #98e79b;
  --estio-on-primary-fixed: #004a18;
  --estio-on-primary-fixed-variant: #1a692d;
  --estio-secondary: #586163;
  --estio-on-secondary: #f1fafd;
  --estio-secondary-container: #eef4f5;
  --estio-on-secondary-container: #4f585b;
  --estio-secondary-fixed: #e3edf0;
  --estio-secondary-fixed-dim: #d5dee1;
  --estio-on-secondary-fixed: #3d4649;
  --estio-on-secondary-fixed-variant: #596265;
  --estio-tertiary: #44665b;
  --estio-on-tertiary: #e4fff4;
  --estio-tertiary-container: #eaf6ef;
  --estio-on-tertiary-container: #34554b;
  --estio-tertiary-fixed: #c0e5d8;
  --estio-tertiary-fixed-dim: #b2d7ca;
  --estio-on-tertiary-fixed: #214239;
  --estio-on-tertiary-fixed-variant: #3d5e54;
  --estio-error: #bb0947;
  --estio-on-error: #ffffff;
  --estio-error-container: #ffd9dd;
  --estio-on-error-container: #400012;
  --estio-background: #fdfbf8;
  --estio-on-background: #1b1a18;
  --estio-surface: #fdfbf8;
  --estio-on-surface: #1b1a18;
  --estio-surface-variant: #eae5dc;
  --estio-on-surface-variant: #564f48;
  --estio-surface-dim: #e1ddd4;
  --estio-surface-bright: #fdfbf8;
  --estio-surface-container-lowest: #ffffff;
  --estio-surface-container-low: #fcfaf7;
  --estio-surface-container: #f8f5ef;
  --estio-surface-container-high: #f2eee6;
  --estio-surface-container-highest: #eae5dc;
  --estio-surface-tint: #002229;
  --estio-outline: #86837e;
  --estio-outline-variant: #d9d4cc;
  --estio-shadow: #000000;
  --estio-scrim: #000000;
  --estio-inverse-surface: #001017;
  --estio-inverse-on-surface: #87a1ad;
  --estio-inverse-primary: #adfeb0;
  --estio-success: #1b6d24;
  --estio-on-success: #ffffff;
  --estio-success-container: #82d47d;
  --estio-on-success-container: #002204;
  --estio-warning: #79590d;
  --estio-on-warning: #ffffff;
  --estio-warning-container: #d0a857;
  --estio-on-warning-container: #261900;
  --estio-outline-on-container: #777470;
  --estio-brikke-home: #8f4c34;
  --estio-brikke-travel: #1486c2;
  --estio-brikke-garage: #a37800;
  --estio-brikke-consult: #906fc5;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --estio-primary: #adffb0;
  --estio-on-primary: #002229;
  --estio-primary-container: #c1f9c0;
  --estio-on-primary-container: #306135;
  --estio-primary-fixed: #b9f0b8;
  --estio-primary-fixed-dim: #abe2aa;
  --estio-on-primary-fixed: #174920;
  --estio-on-primary-fixed-variant: #35663a;
  --estio-secondary: #c2c7c9;
  --estio-on-secondary: #3b4143;
  --estio-secondary-container: #2b474f;
  --estio-on-secondary-container: #e3edf0;
  --estio-secondary-fixed: #ecf2f4;
  --estio-secondary-fixed-dim: #dee3e5;
  --estio-on-secondary-fixed: #43494b;
  --estio-on-secondary-fixed-variant: #5f6567;
  --estio-tertiary: #cef3e6;
  --estio-on-tertiary: #3c5d53;
  --estio-tertiary-container: #335a4c;
  --estio-on-tertiary-container: #def7e9;
  --estio-tertiary-fixed: #c0e5d8;
  --estio-tertiary-fixed-dim: #b2d7ca;
  --estio-on-tertiary-fixed: #214239;
  --estio-on-tertiary-fixed-variant: #3d5e54;
  --estio-error: #ffb2bc;
  --estio-on-error: #670023;
  --estio-error-container: #910034;
  --estio-on-error-container: #ffd9dd;
  --estio-background: #12343d;
  --estio-on-background: #eefbf0;
  --estio-surface: #12343d;
  --estio-on-surface: #eefbf0;
  --estio-surface-variant: #2e5962;
  --estio-on-surface-variant: #b5d9cc;
  --estio-surface-dim: #12343d;
  --estio-surface-bright: #366069;
  --estio-surface-container-lowest: #0d2b33;
  --estio-surface-container-low: #173c45;
  --estio-surface-container: #1d444d;
  --estio-surface-container-high: #254e57;
  --estio-surface-container-highest: #2e5962;
  --estio-surface-tint: #adffb0;
  --estio-outline: #8ba7a8;
  --estio-outline-variant: #47656b;
  --estio-shadow: #000000;
  --estio-scrim: #000000;
  --estio-inverse-surface: #f3faff;
  --estio-inverse-on-surface: #465860;
  --estio-inverse-primary: #386a3d;
  --estio-success: #88d982;
  --estio-on-success: #003909;
  --estio-success-container: #338236;
  --estio-on-success-container: #ecffe4;
  --estio-warning: #d2c973;
  --estio-on-warning: #353100;
  --estio-warning-container: #918a3b;
  --estio-on-warning-container: #252200;
  --estio-outline-on-container: #90a6a3;
  --estio-brikke-home: #B5674B;
  --estio-brikke-travel: #248fcc;
  --estio-brikke-garage: #bd9121;
  --estio-brikke-consult: #9372c8;
}

/* Kontrastnivå medium: eksplisitt via data-contrast="medium", jf. guidelines 4.1 */
:root[data-contrast="medium"] {
  --estio-primary: #002229;
  --estio-on-primary: #eefbf0;
  --estio-primary-container: #62ae69;
  --estio-on-primary-container: #001e06;
  --estio-primary-fixed: #62ae69;
  --estio-primary-fixed-dim: #55a15d;
  --estio-on-primary-fixed: #000000;
  --estio-on-primary-fixed-variant: #001904;
  --estio-secondary: #4a5051;
  --estio-on-secondary: #e2e8e9;
  --estio-secondary-container: #999fa0;
  --estio-on-secondary-container: #13191a;
  --estio-secondary-fixed: #999fa0;
  --estio-secondary-fixed-dim: #8b9293;
  --estio-on-secondary-fixed: #000000;
  --estio-on-secondary-fixed-variant: #0f1516;
  --estio-tertiary: #47524d;
  --estio-on-tertiary: #dde9e2;
  --estio-tertiary-container: #95a19a;
  --estio-on-tertiary-container: #030b08;
  --estio-tertiary-fixed: #95a19a;
  --estio-tertiary-fixed-dim: #88938d;
  --estio-on-tertiary-fixed: #000000;
  --estio-on-tertiary-fixed-variant: #0c1613;
  --estio-error: #bb0947;
  --estio-on-error: #ffffff;
  --estio-error-container: #ffd9dd;
  --estio-on-error-container: #400012;
  --estio-background: #fdfbf8;
  --estio-on-background: #1b1a18;
  --estio-surface: #fdfbf8;
  --estio-on-surface: #1b1a18;
  --estio-surface-variant: #eae5dc;
  --estio-on-surface-variant: #564f48;
  --estio-surface-dim: #e1ddd4;
  --estio-surface-bright: #fdfbf8;
  --estio-surface-container-lowest: #ffffff;
  --estio-surface-container-low: #fcfaf7;
  --estio-surface-container: #f8f5ef;
  --estio-surface-container-high: #f2eee6;
  --estio-surface-container-highest: #eae5dc;
  --estio-surface-tint: #002229;
  --estio-outline: #5d5b57;
  --estio-outline-variant: #93908b;
  --estio-shadow: #000000;
  --estio-scrim: #000000;
  --estio-inverse-surface: #001017;
  --estio-inverse-on-surface: #9cb6c3;
  --estio-inverse-primary: #adfeb0;
  --estio-success: #1b6d24;
  --estio-on-success: #ffffff;
  --estio-success-container: #82d47d;
  --estio-on-success-container: #002204;
  --estio-warning: #79590d;
  --estio-on-warning: #ffffff;
  --estio-warning-container: #d0a857;
  --estio-on-warning-container: #261900;
  --estio-outline-on-container: #52504d;
  --estio-brikke-home: #8f4c34;
  --estio-brikke-travel: #1486c2;
  --estio-brikke-garage: #a37800;
  --estio-brikke-consult: #906fc5;
}
:root[data-theme="dark"][data-contrast="medium"] {
  color-scheme: dark;
  --estio-primary: #adffb0;
  --estio-on-primary: #002229;
  --estio-primary-container: #c1f9c0;
  --estio-on-primary-container: #2b5c31;
  --estio-primary-fixed: #b9f0b8;
  --estio-primary-fixed-dim: #abe2aa;
  --estio-on-primary-fixed: #013710;
  --estio-on-primary-fixed-variant: #25562b;
  --estio-secondary: #aecbd5;
  --estio-on-secondary: #233f47;
  --estio-secondary-container: #36525b;
  --estio-on-secondary-container: #ffffff;
  --estio-secondary-fixed: #c9e8f1;
  --estio-secondary-fixed-dim: #bbd9e3;
  --estio-on-secondary-fixed: #15323a;
  --estio-on-secondary-fixed-variant: #345058;
  --estio-tertiary: #c9f5e2;
  --estio-on-tertiary: #32594b;
  --estio-tertiary-container: #bbe6d4;
  --estio-on-tertiary-container: #264d40;
  --estio-tertiary-fixed: #bbe6d4;
  --estio-tertiary-fixed-dim: #aed8c6;
  --estio-on-tertiary-fixed: #063125;
  --estio-on-tertiary-fixed-variant: #284f42;
  --estio-error: #ffb2bc;
  --estio-on-error: #670023;
  --estio-error-container: #910034;
  --estio-on-error-container: #ffd9dd;
  --estio-background: #12343d;
  --estio-on-background: #eefbf0;
  --estio-surface: #12343d;
  --estio-on-surface: #eefbf0;
  --estio-surface-variant: #2e5962;
  --estio-on-surface-variant: #b5d9cc;
  --estio-surface-dim: #12343d;
  --estio-surface-bright: #366069;
  --estio-surface-container-lowest: #0d2b33;
  --estio-surface-container-low: #173c45;
  --estio-surface-container: #1d444d;
  --estio-surface-container-high: #254e57;
  --estio-surface-container-highest: #2e5962;
  --estio-surface-tint: #adffb0;
  --estio-outline: #92a7a3;
  --estio-outline-variant: #526663;
  --estio-shadow: #000000;
  --estio-scrim: #000000;
  --estio-inverse-surface: #f3faff;
  --estio-inverse-on-surface: #36484f;
  --estio-inverse-primary: #336438;
  --estio-success: #88d982;
  --estio-on-success: #003909;
  --estio-success-container: #58a756;
  --estio-on-success-container: #000000;
  --estio-warning: #dcc66f;
  --estio-on-warning: #3a3000;
  --estio-warning-container: #c1ac58;
  --estio-on-warning-container: #2a2200;
  --estio-outline-on-container: #a7bab4;
  --estio-brikke-home: #B5674B;
  --estio-brikke-travel: #248fcc;
  --estio-brikke-garage: #bd9121;
  --estio-brikke-consult: #9372c8;
}

/* Kontrastnivå high: eksplisitt via data-contrast="high", jf. guidelines 4.1 */
:root[data-contrast="high"] {
  --estio-primary: #002229;
  --estio-on-primary: #eefbf0;
  --estio-primary-container: #0b5f24;
  --estio-on-primary-container: #ffffff;
  --estio-primary-fixed: #0b5f24;
  --estio-primary-fixed-dim: #00521c;
  --estio-on-primary-fixed: #ffffff;
  --estio-on-primary-fixed-variant: #ffffff;
  --estio-secondary: #1f2526;
  --estio-on-secondary: #d5dbdc;
  --estio-secondary-container: #4d5354;
  --estio-on-secondary-container: #ffffff;
  --estio-secondary-fixed: #4d5354;
  --estio-secondary-fixed-dim: #414849;
  --estio-on-secondary-fixed: #ffffff;
  --estio-on-secondary-fixed-variant: #ffffff;
  --estio-tertiary: #1c2622;
  --estio-on-tertiary: #d1ddd6;
  --estio-tertiary-container: #495550;
  --estio-on-tertiary-container: #ffffff;
  --estio-tertiary-fixed: #495550;
  --estio-tertiary-fixed-dim: #3e4944;
  --estio-on-tertiary-fixed: #ffffff;
  --estio-on-tertiary-fixed-variant: #ffffff;
  --estio-error: #bb0947;
  --estio-on-error: #ffffff;
  --estio-error-container: #ffd9dd;
  --estio-on-error-container: #400012;
  --estio-background: #fdfbf8;
  --estio-on-background: #1b1a18;
  --estio-surface: #fdfbf8;
  --estio-on-surface: #1b1a18;
  --estio-surface-variant: #eae5dc;
  --estio-on-surface-variant: #4b443e;
  --estio-surface-dim: #e1ddd4;
  --estio-surface-bright: #fdfbf8;
  --estio-surface-container-lowest: #ffffff;
  --estio-surface-container-low: #fcfaf7;
  --estio-surface-container: #f8f5ef;
  --estio-surface-container-high: #f2eee6;
  --estio-surface-container-highest: #eae5dc;
  --estio-surface-tint: #002229;
  --estio-outline: #1b1a18;
  --estio-outline-variant: #53514f;
  --estio-shadow: #000000;
  --estio-scrim: #000000;
  --estio-inverse-surface: #001017;
  --estio-inverse-on-surface: #ffffff;
  --estio-inverse-primary: #adfeb0;
  --estio-success: #1b6d24;
  --estio-on-success: #ffffff;
  --estio-success-container: #82d47d;
  --estio-on-success-container: #002204;
  --estio-warning: #79590d;
  --estio-on-warning: #ffffff;
  --estio-warning-container: #d0a857;
  --estio-on-warning-container: #261900;
  --estio-outline-on-container: #1b1a18;
  --estio-brikke-home: #8f4c34;
  --estio-brikke-travel: #1486c2;
  --estio-brikke-garage: #a37800;
  --estio-brikke-consult: #906fc5;
}
:root[data-theme="dark"][data-contrast="high"] {
  color-scheme: dark;
  --estio-primary: #adffb0;
  --estio-on-primary: #002229;
  --estio-primary-container: #c1f9c0;
  --estio-on-primary-container: #023811;
  --estio-primary-fixed: #b9f0b8;
  --estio-primary-fixed-dim: #abe2aa;
  --estio-on-primary-fixed: #000000;
  --estio-on-primary-fixed-variant: #002609;
  --estio-secondary: #ccebf4;
  --estio-on-secondary: #123037;
  --estio-secondary-container: #8ca9b3;
  --estio-on-secondary-container: #000000;
  --estio-secondary-fixed: #c9e8f1;
  --estio-secondary-fixed-dim: #bbd9e3;
  --estio-on-secondary-fixed: #000000;
  --estio-on-secondary-fixed-variant: #03232a;
  --estio-tertiary: #c9f5e2;
  --estio-on-tertiary: #0c362a;
  --estio-tertiary-container: #bbe6d4;
  --estio-on-tertiary-container: #012c20;
  --estio-tertiary-fixed: #bbe6d4;
  --estio-tertiary-fixed-dim: #aed8c6;
  --estio-on-tertiary-fixed: #000000;
  --estio-on-tertiary-fixed-variant: #001f16;
  --estio-error: #ffb2bc;
  --estio-on-error: #670023;
  --estio-error-container: #910034;
  --estio-on-error-container: #ffd9dd;
  --estio-background: #12343d;
  --estio-on-background: #fdfffa;
  --estio-surface: #12343d;
  --estio-on-surface: #fdfffa;
  --estio-surface-variant: #2e5962;
  --estio-on-surface-variant: #dffff3;
  --estio-surface-dim: #12343d;
  --estio-surface-bright: #315b64;
  --estio-surface-container-lowest: #0d2b33;
  --estio-surface-container-low: #173c45;
  --estio-surface-container: #1d444d;
  --estio-surface-container-high: #254e57;
  --estio-surface-container-highest: #2e5962;
  --estio-surface-tint: #adffb0;
  --estio-outline: #eefbf0;
  --estio-outline-variant: #9aa79d;
  --estio-shadow: #000000;
  --estio-scrim: #000000;
  --estio-inverse-surface: #f3faff;
  --estio-inverse-on-surface: #000000;
  --estio-inverse-primary: #0e4119;
  --estio-success: #88d982;
  --estio-on-success: #003909;
  --estio-success-container: #58a756;
  --estio-on-success-container: #000000;
  --estio-warning: #dcc66f;
  --estio-on-warning: #3a3000;
  --estio-warning-container: #c1ac58;
  --estio-on-warning-container: #2a2200;
  --estio-outline-on-container: #eefbf0;
  --estio-brikke-home: #B5674B;
  --estio-brikke-travel: #248fcc;
  --estio-brikke-garage: #bd9121;
  --estio-brikke-consult: #9372c8;
}

/* Automatisk kontrast: prefers-contrast: more uten eksplisitt data-contrast, jf. guidelines 4.1 (sak 7A) */
@media (prefers-contrast: more) {
  :root:not([data-contrast]) {
  --estio-primary: #002229;
  --estio-on-primary: #eefbf0;
  --estio-primary-container: #0b5f24;
  --estio-on-primary-container: #ffffff;
  --estio-primary-fixed: #0b5f24;
  --estio-primary-fixed-dim: #00521c;
  --estio-on-primary-fixed: #ffffff;
  --estio-on-primary-fixed-variant: #ffffff;
  --estio-secondary: #1f2526;
  --estio-on-secondary: #d5dbdc;
  --estio-secondary-container: #4d5354;
  --estio-on-secondary-container: #ffffff;
  --estio-secondary-fixed: #4d5354;
  --estio-secondary-fixed-dim: #414849;
  --estio-on-secondary-fixed: #ffffff;
  --estio-on-secondary-fixed-variant: #ffffff;
  --estio-tertiary: #1c2622;
  --estio-on-tertiary: #d1ddd6;
  --estio-tertiary-container: #495550;
  --estio-on-tertiary-container: #ffffff;
  --estio-tertiary-fixed: #495550;
  --estio-tertiary-fixed-dim: #3e4944;
  --estio-on-tertiary-fixed: #ffffff;
  --estio-on-tertiary-fixed-variant: #ffffff;
  --estio-error: #bb0947;
  --estio-on-error: #ffffff;
  --estio-error-container: #ffd9dd;
  --estio-on-error-container: #400012;
  --estio-background: #fdfbf8;
  --estio-on-background: #1b1a18;
  --estio-surface: #fdfbf8;
  --estio-on-surface: #1b1a18;
  --estio-surface-variant: #eae5dc;
  --estio-on-surface-variant: #4b443e;
  --estio-surface-dim: #e1ddd4;
  --estio-surface-bright: #fdfbf8;
  --estio-surface-container-lowest: #ffffff;
  --estio-surface-container-low: #fcfaf7;
  --estio-surface-container: #f8f5ef;
  --estio-surface-container-high: #f2eee6;
  --estio-surface-container-highest: #eae5dc;
  --estio-surface-tint: #002229;
  --estio-outline: #1b1a18;
  --estio-outline-variant: #53514f;
  --estio-shadow: #000000;
  --estio-scrim: #000000;
  --estio-inverse-surface: #001017;
  --estio-inverse-on-surface: #ffffff;
  --estio-inverse-primary: #adfeb0;
  --estio-success: #1b6d24;
  --estio-on-success: #ffffff;
  --estio-success-container: #82d47d;
  --estio-on-success-container: #002204;
  --estio-warning: #79590d;
  --estio-on-warning: #ffffff;
  --estio-warning-container: #d0a857;
  --estio-on-warning-container: #261900;
  --estio-outline-on-container: #1b1a18;
  --estio-brikke-home: #8f4c34;
  --estio-brikke-travel: #1486c2;
  --estio-brikke-garage: #a37800;
  --estio-brikke-consult: #906fc5;
  }
  :root[data-theme="dark"]:not([data-contrast]) {
    color-scheme: dark;
  --estio-primary: #adffb0;
  --estio-on-primary: #002229;
  --estio-primary-container: #c1f9c0;
  --estio-on-primary-container: #023811;
  --estio-primary-fixed: #b9f0b8;
  --estio-primary-fixed-dim: #abe2aa;
  --estio-on-primary-fixed: #000000;
  --estio-on-primary-fixed-variant: #002609;
  --estio-secondary: #ccebf4;
  --estio-on-secondary: #123037;
  --estio-secondary-container: #8ca9b3;
  --estio-on-secondary-container: #000000;
  --estio-secondary-fixed: #c9e8f1;
  --estio-secondary-fixed-dim: #bbd9e3;
  --estio-on-secondary-fixed: #000000;
  --estio-on-secondary-fixed-variant: #03232a;
  --estio-tertiary: #c9f5e2;
  --estio-on-tertiary: #0c362a;
  --estio-tertiary-container: #bbe6d4;
  --estio-on-tertiary-container: #012c20;
  --estio-tertiary-fixed: #bbe6d4;
  --estio-tertiary-fixed-dim: #aed8c6;
  --estio-on-tertiary-fixed: #000000;
  --estio-on-tertiary-fixed-variant: #001f16;
  --estio-error: #ffb2bc;
  --estio-on-error: #670023;
  --estio-error-container: #910034;
  --estio-on-error-container: #ffd9dd;
  --estio-background: #12343d;
  --estio-on-background: #fdfffa;
  --estio-surface: #12343d;
  --estio-on-surface: #fdfffa;
  --estio-surface-variant: #2e5962;
  --estio-on-surface-variant: #dffff3;
  --estio-surface-dim: #12343d;
  --estio-surface-bright: #315b64;
  --estio-surface-container-lowest: #0d2b33;
  --estio-surface-container-low: #173c45;
  --estio-surface-container: #1d444d;
  --estio-surface-container-high: #254e57;
  --estio-surface-container-highest: #2e5962;
  --estio-surface-tint: #adffb0;
  --estio-outline: #eefbf0;
  --estio-outline-variant: #9aa79d;
  --estio-shadow: #000000;
  --estio-scrim: #000000;
  --estio-inverse-surface: #f3faff;
  --estio-inverse-on-surface: #000000;
  --estio-inverse-primary: #0e4119;
  --estio-success: #88d982;
  --estio-on-success: #003909;
  --estio-success-container: #58a756;
  --estio-on-success-container: #000000;
  --estio-warning: #dcc66f;
  --estio-on-warning: #3a3000;
  --estio-warning-container: #c1ac58;
  --estio-on-warning-container: #2a2200;
  --estio-outline-on-container: #eefbf0;
  --estio-brikke-home: #B5674B;
  --estio-brikke-travel: #248fcc;
  --estio-brikke-garage: #bd9121;
  --estio-brikke-consult: #9372c8;
  }
}
