/* ============================================================
   COLORS — SATU-SATUNYA tempat nilai warna mentah di seluruh proyek.
   File CSS/PHP lain tidak berisi #hex / rgb() / hsl() — hanya memakai
   token dari file ini.

   CARA GANTI WARNA
   1) Ubah nilai di PALET di bawah. Format "R G B" (37 81 223 = #2551df).
      Nama token = keluarga warna + tingkat terang (blue-510 = biru, terang 51%).
      Kalau nilainya diganti, nama tidak ikut berubah — itu normal.
   2) Pemakaian di CSS:  rgb(var(--p-blue-510))
                         rgb(var(--p-blue-510) / .2)   (dengan transparansi)
   3) Warna "peran" (teks, latar, kartu, brand, bahaya…) ada di base.css
      bagian :root (mode gelap) dan html[data-theme="light"] (mode terang);
      isinya hanya menunjuk ke palet ini.
   4) PHP (email, <meta theme-color>, halaman error): includes/palette.php
      membaca file ini → okc('p-blue-510') menghasilkan '#2551df'.
   5) File statis yang tidak bisa memakai var() (manifest, sw.js): setelah
      mengubah warna jalankan  php tools/sync-warna.php  (lihat peran ext-*).
   6) JavaScript (grafik/canvas): okc('p-blue-510') / okc('p-blue-510', .2)
      membaca token ini langsung dari halaman.

   File ini dimuat paling awal oleh header.php & maintenance.php, dan
   di-@import oleh okta-theme.css (supaya OKTAqris ikut memakainya).
   ============================================================ */

:root {

  /* Putih */
  --p-white: 255 255 255;

  /* Hitam */
  --p-black: 0 0 0;

  /* Biru (warna brand) */
  --p-blue-69: 5 11 30;
  --p-blue-78: 13 16 27;
  --p-blue-90: 13 17 33;
  --p-blue-100: 4 14 47;
  --p-blue-110: 18 23 38;
  --p-blue-118: 10 22 50;
  --p-blue-127: 0 15 65;
  --p-blue-135: 11 26 58;
  --p-blue-137: 27 31 43;
  --p-blue-155: 14 30 65;
  --p-blue-210: 23 37 84;
  --p-blue-214: 44 49 65;
  --p-blue-231: 11 42 107;
  --p-blue-241: 22 45 101;
  --p-blue-245: 15 32 110;
  --p-blue-265: 10 37 125;
  --p-blue-275: 18 48 122;
  --p-blue-304: 5 34 150;
  --p-blue-308: 70 74 87;
  --p-blue-329: 30 58 138;
  --p-blue-331: 74 79 95;
  --p-blue-333: 60 71 110;
  --p-blue-341: 75 85 99;
  --p-blue-351: 18 54 161;
  --p-blue-355: 74 82 107;
  --p-blue-361: 81 86 103;
  --p-blue-363: 22 64 163;
  --p-blue-369: 14 51 174;
  --p-blue-380: 41 71 153;
  --p-blue-390: 31 64 168;
  --p-blue-392: 0 57 200;
  --p-blue-394: 16 51 185;
  --p-blue-400: 20 43 184;
  --p-blue-400a: 80 93 124;
  --p-blue-412: 26 64 184;
  --p-blue-443: 86 102 140;
  --p-blue-453: 34 83 197;
  --p-blue-469: 43 77 196;
  --p-blue-480: 29 78 216;
  --p-blue-500: 0 34 255;
  --p-blue-510: 37 81 223;
  --p-blue-516: 52 87 211;
  --p-blue-533: 37 99 235;
  --p-blue-573: 59 100 233;
  --p-blue-620: 146 153 170;
  --p-blue-651: 148 163 184;
  --p-blue-663: 159 164 179;
  --p-blue-667: 99 102 241;
  --p-blue-678: 91 155 255;
  --p-blue-678a: 91 140 255;
  --p-blue-682: 114 143 234;
  --p-blue-694: 143 162 211;
  --p-blue-696: 100 160 255;
  --p-blue-700: 170 174 187;
  --p-blue-727: 159 176 212;
  --p-blue-731: 134 165 239;
  --p-blue-739: 129 140 248;
  --p-blue-757: 159 177 227;
  --p-blue-757a: 185 189 201;
  --p-blue-784: 147 197 253;
  --p-blue-788: 147 181 255;
  --p-blue-851: 187 205 247;
  --p-blue-869: 188 211 255;
  --p-blue-873: 191 219 254;
  --p-blue-888: 214 221 239;
  --p-blue-908: 219 228 244;
  --p-blue-914: 226 232 240;
  --p-blue-949: 232 238 252;

  /* Abu-abu / netral */
  --p-gray-20: 3 7 6;
  --p-gray-47: 7 9 17;
  --p-gray-100: 19 22 32;
  --p-gray-396: 91 96 111;
  --p-gray-400: 102 102 102;
  --p-gray-420: 97 102 117;
  --p-gray-443: 104 122 114;
  --p-gray-461: 107 114 128;
  --p-gray-476: 113 130 123;
  --p-gray-498: 127 127 127;
  --p-gray-520: 122 126 143;
  --p-gray-569: 138 143 152;
  --p-gray-637: 154 158 171;
  --p-gray-667: 170 170 170;
  --p-gray-790: 195 198 208;
  --p-gray-816: 203 205 213;
  --p-gray-892: 223 225 232;
  --p-gray-933: 234 236 242;
  --p-gray-959: 242 243 247;
  --p-gray-967: 240 244 253;
  --p-gray-973: 254 242 242;
  --p-gray-982: 246 249 255;

  /* Merah (bahaya / gagal) */
  --p-red-155: 69 10 10;
  --p-red-214: 92 17 28;
  --p-red-263: 92 42 58;
  --p-red-306: 127 29 29;
  --p-red-329: 139 29 44;
  --p-red-345: 176 0 32;
  --p-red-400: 180 35 24;
  --p-red-418: 185 28 28;
  --p-red-451: 200 30 58;
  --p-red-500: 238 17 17;
  --p-red-506: 220 38 38;
  --p-red-555: 214 69 69;
  --p-red-559: 229 56 79;
  --p-red-571: 231 76 60;
  --p-red-590: 229 72 77;
  --p-red-602: 239 68 68;
  --p-red-635: 240 84 107;
  --p-red-649: 246 85 112;
  --p-red-657: 255 80 105;
  --p-red-676: 255 90 110;
  --p-red-708: 248 113 113;
  --p-red-745: 255 125 141;
  --p-red-818: 252 165 165;
  --p-red-894: 254 202 202;
  --p-red-941: 254 226 226;

  /* Oranye */
  --p-orange-239: 122 75 0;
  --p-orange-271: 138 82 0;
  --p-orange-314: 146 64 14;
  --p-orange-371: 180 83 9;
  --p-orange-502: 245 158 11;
  --p-orange-551: 245 165 36;

  /* Kuning / amber (peringatan) */
  --p-yellow-114: 58 37 0;
  --p-yellow-271: 138 93 0;
  --p-yellow-345: 176 125 0;
  --p-yellow-351: 170 111 9;
  --p-yellow-373: 190 130 0;
  --p-yellow-439: 224 168 0;
  --p-yellow-439a: 224 154 0;
  --p-yellow-484: 217 154 30;
  --p-yellow-598: 255 180 50;
  --p-yellow-610: 245 197 66;
  --p-yellow-645: 252 211 77;
  --p-yellow-661: 244 201 93;
  --p-yellow-751: 245 217 138;
  --p-yellow-767: 253 230 138;
  --p-yellow-888: 254 243 199;
  --p-yellow-908: 253 239 210;
  --p-yellow-941: 253 246 227;
  --p-yellow-961: 255 251 235;

  /* Hijau (sukses) */
  --p-green-200: 36 66 56;

  /* Cyan */
  --p-cyan-492: 34 158 217;

  /* Ungu / indigo */
  --p-violet-759: 176 132 255;

  /* Pink */
  --p-pink-124: 42 21 32;

  /* Peran di luar CSS: <meta theme-color>, manifest PWA, email, halaman offline (dibaca includes/palette.php) */
  --ext-theme-dark: var(--p-gray-47);   /* theme-color & manifest theme_color (mode gelap) */
  --ext-theme-light: var(--p-gray-959);   /* theme-color mode terang & manifest background_color */
  --ext-offline-bg: var(--p-gray-959);   /* halaman offline (sw.js): latar */
  --ext-offline-text: var(--p-blue-135);   /* halaman offline: teks */
  --ext-offline-muted: var(--p-blue-355);   /* halaman offline: teks sekunder */
  --ext-offline-btn: var(--p-blue-363);   /* halaman offline: tombol */
  --ext-offline-btn-text: var(--p-white);   /* halaman offline: teks tombol */
}
