/* Alternate colour palette: Changan (html[data-palette="changan"]), chosen by the admin on
   /admin/pengaturan and set by boot.js. Without the attribute nothing here applies, so the
   default Nevo palette (site.css and the pages' own :root blocks) stays exactly as it is.
   Admin pages never get the attribute.

   Colours from changan.co.id (inspected 2026-10-21): brand blue #0C457F (hover #093563),
   bright blue #147CE5, light blues #B3CFE4 / #D1E4EF / #E8F4F8, cool greys. Changan has no
   dark mode; the dark set below is ours (deep navy surfaces, light-blue accent).
   #147CE5 is 4.2:1 on white, so it is used for gradients and decoration, never small text.
   Semantic colours (ok / warn / danger) stay green, amber and red; the member "Verified"
   badge (--ver-*) follows the brand blue.

   Specificity: light (0,2,0) beats the Nevo light :root; dark (0,3,0) beats both the Nevo
   dark blocks and the Changan light block whatever the order, so every token set in the
   light block is set again in the dark one.
   --pal-* are hooks used only as var(--pal-x, <nevo value>) fallbacks in the pages; --pal-soft-*
   is the tinted badge (kicker, official source, free tip, info note) that Nevo draws with --ok-*. */

:root[data-palette="changan"]{
  --navy:#0C457F; --teal:#0A65BF; --emerald:#147CE5; --mint:#3D95EB; --mint-2:#8CC2F0;
  --bg:#F6F8FA; --surface:#FFFFFF; --surface-2:#EEF3F8;
  --ink:#0B1F33; --ink-2:#44546A; --ink-3:#627285;
  --line:#E3E8EF; --line-2:#D0D9E4;
  --chip-max-bg:#0C457F; --chip-max-fg:#FFFFFF; --chip-pro:#0C457F;
  --tab-on-bg:#0C457F; --tab-on-fg:#FFFFFF;
  --foot-bg:#0C457F; --foot-fg:#FFFFFF; --foot-2:#B3CFE4;
  --grad:linear-gradient(90deg,#0C457F 0%,#0A65BF 55%,#147CE5 100%);
  --accent:#0A65BF;
  --primary:#0C457F; --primary-fg:#FFFFFF;
  --scrim:255,255,255;
  --tint-1:20,124,229; --tint-2:12,69,127; --tint-3:10,101,191;
  --swatch-ring:rgba(11,31,51,.22);
  --pal-badge:linear-gradient(90deg,#0C457F,#0A65BF,#147CE5);
  --pal-glow-1:20,124,229; --pal-glow-2:12,69,127; --pal-teal-rgb:10,101,191;
  --pal-c1:#0C457F; --pal-c2:#147CE5; --pal-c3:#0A65BF; --pal-c4:#5AA9F0;
  --pal-calc-border:var(--line-2);
  --pal-soft-bg:rgba(20,124,229,.10); --pal-soft-fg:#0A5AA8;
  --ver-bg:rgba(20,124,229,.10); --ver-fg:#0A5AA8;
}

@media (prefers-color-scheme: dark){
  :root[data-palette="changan"]:not([data-theme="light"]){
    --navy:#8FC1EA; --teal:#5AA9F0; --emerald:#4A9BE8; --mint:#6FB4F2; --mint-2:#8CC8F5;
    --bg:#06182B; --surface:#0B2540; --surface-2:#11304F;
    --ink:#EAF2FA; --ink-2:#B4C5D8; --ink-3:#8698AE;
    --line:#1A3A5C; --line-2:#28496D;
    --chip-max-bg:#8CC8F5; --chip-max-fg:#06182B; --chip-pro:#8CC8F5;
    --tab-on-bg:#8CC8F5; --tab-on-fg:#06182B;
    --foot-bg:#041222; --foot-fg:#FFFFFF; --foot-2:#9FB6CC;
    --grad:linear-gradient(90deg,#B3D9F7 0%,#8CC8F5 50%,#5AA9F0 100%);
    --accent:#8CC8F5;
    --primary:#8CC8F5; --primary-fg:#06182B;
    --scrim:11,37,64;
    --tint-1:140,200,245; --tint-2:90,169,240; --tint-3:20,124,229;
    --swatch-ring:rgba(255,255,255,.3);
    --pal-badge:linear-gradient(90deg,#0C457F,#0A65BF,#147CE5);
    --pal-glow-1:90,169,240; --pal-glow-2:140,200,245; --pal-teal-rgb:90,169,240;
    --pal-c1:#8FC1EA; --pal-c2:#5AA9F0; --pal-c3:#8CC8F5; --pal-c4:#B3D9F7;
    --pal-calc-border:#3F6B96;
    --pal-soft-bg:rgba(140,200,245,.14); --pal-soft-fg:#8CC8F5;
    --ver-bg:rgba(140,200,245,.14); --ver-fg:#8CC8F5;
  }
}
:root[data-palette="changan"][data-theme="dark"]{
  --navy:#8FC1EA; --teal:#5AA9F0; --emerald:#4A9BE8; --mint:#6FB4F2; --mint-2:#8CC8F5;
  --bg:#06182B; --surface:#0B2540; --surface-2:#11304F;
  --ink:#EAF2FA; --ink-2:#B4C5D8; --ink-3:#8698AE;
  --line:#1A3A5C; --line-2:#28496D;
  --chip-max-bg:#8CC8F5; --chip-max-fg:#06182B; --chip-pro:#8CC8F5;
  --tab-on-bg:#8CC8F5; --tab-on-fg:#06182B;
  --foot-bg:#041222; --foot-fg:#FFFFFF; --foot-2:#9FB6CC;
  --grad:linear-gradient(90deg,#B3D9F7 0%,#8CC8F5 50%,#5AA9F0 100%);
  --accent:#8CC8F5;
  --primary:#8CC8F5; --primary-fg:#06182B;
  --scrim:11,37,64;
  --tint-1:140,200,245; --tint-2:90,169,240; --tint-3:20,124,229;
  --swatch-ring:rgba(255,255,255,.3);
  --pal-badge:linear-gradient(90deg,#0C457F,#0A65BF,#147CE5);
  --pal-glow-1:90,169,240; --pal-glow-2:140,200,245; --pal-teal-rgb:90,169,240;
  --pal-c1:#8FC1EA; --pal-c2:#5AA9F0; --pal-c3:#8CC8F5; --pal-c4:#B3D9F7;
  --pal-calc-border:#3F6B96;
  --pal-soft-bg:rgba(140,200,245,.14); --pal-soft-fg:#8CC8F5;
  --ver-bg:rgba(140,200,245,.14); --ver-fg:#8CC8F5;
}
