/* WiseTech Global — Color tokens
   Source of truth: "WiseTech Global 2025 RGB" brand swatch library.
   Layer 1 = raw brand palette. Layer 2 = neutral ink scale.
   Layer 3 = semantic aliases (use these in product work). */

:root {
  /* ---- Layer 1 · Brand palette (verbatim from the 2025 swatch set) ---- */
  --wtg-white:        #ffffff;
  --wtg-black:        #231f20;  /* brand black, slightly warm */

  --wtg-blue:         #1d1765;  /* WiseTech Blue — deep midnight indigo, the core brand color */
  --wtg-cobalt:       #371ee1;  /* Cobalt — electric primary action color */
  --wtg-navy:         #141e30;  /* Midnight — dark surfaces & deep backgrounds */

  --wtg-sky:          #3f80c2;  /* Sky Blue */
  --wtg-sky-200:      #a7cff8;  /* Sky Blue light */
  --wtg-sky-100:      #d7e6fa;  /* Sky Blue pale */

  /* Expressive secondary accents — use sparingly, one per surface.
     NOTE: Mint & Highlighter are NOT permitted as section/Card background
     surfaces — reserve them for text, borders, data-viz & small accents. */
  --wtg-mint:         #c6ffd1;  /* Mint */
  --wtg-periwinkle:   #b7b3ff;  /* Violet */
  --wtg-peach:        #ffbf98;  /* Peach */
  --wtg-lime:         #eafc88;  /* Highlighter */
  --wtg-maroon:       #651d32;  /* Cherry */
  --wtg-teal:         #244349;  /* Pine */

  /* ---- Layer 2 · Neutral ink scale (cool, tuned to Midnight) ---- */
  --ink-900: #0e1726;
  --ink-800: #141e30;  /* = Midnight */
  --ink-700: #243450;
  --ink-600: #3a4a66;
  --ink-500: #5d6b82;
  --ink-400: #8b96a8;
  --ink-300: #b9c0cc;
  --ink-200: #dde1e8;
  --ink-100: #eef0f4;
  --ink-50:  #f7f8fb;

  /* Interaction tints for the primary action color */
  --cobalt-hover:  #2c16c4;  /* cobalt, pressed darker */
  --cobalt-active: #220fa0;
  --cobalt-050:    #ecebff;  /* faint cobalt wash for selected/hover surfaces */

  /* ---- Layer 3 · Semantic aliases ---- */
  /* Text */
  --text-strong:     var(--ink-900);
  --text-body:       var(--ink-800);
  --text-muted:      var(--ink-500);
  --text-subtle:     var(--ink-400);
  --text-inverse:    var(--wtg-white);
  --text-link:       var(--wtg-cobalt);
  --text-brand:      var(--wtg-blue);

  /* Surfaces */
  --surface-page:    var(--wtg-white);
  --surface-subtle:  var(--ink-50);
  --surface-card:    var(--wtg-white);
  --surface-sunken:  var(--ink-100);
  --surface-inverse: var(--wtg-navy);
  --surface-brand:   var(--wtg-blue);

  /* ---- "On" tokens · the ONLY text color allowed on each surface ----
     Pair text to its background with these instead of picking a text color
     ad hoc — each pair below is pre-verified to meet WCAG AA (4.5:1 body /
     3:1 large & UI). Light expressive accents take dark ink ONLY; deep brand
     colors take white ONLY. */
  --on-surface-page:     var(--ink-900);   /* dark ink on white / subtle / card  — ~16:1 */
  --on-surface-inverse:  var(--wtg-white);  /* white on Midnight navy             — ~15:1 */
  --on-surface-brand:    var(--wtg-white);  /* white on WiseTech Blue             — ~14:1 */
  --on-accent-light:     var(--ink-900);   /* dark ink on mint/periwinkle/peach/lime/sky-100/200 — white FAILS here */
  --on-accent-dark:      var(--wtg-white);  /* white on cobalt/navy/maroon/teal/sky */

  /* Borders */
  --border-subtle:   var(--ink-200);
  --border-default:  var(--ink-300);
  --border-strong:   var(--ink-500);
  --border-focus:    var(--wtg-cobalt);

  /* Actions */
  --action-primary:        var(--wtg-cobalt);
  --action-primary-hover:  var(--cobalt-hover);
  --action-primary-active: var(--cobalt-active);
  --action-on-primary:     var(--wtg-white);

  /* Status / feedback */
  --status-success:     #1f8a4c;
  --status-success-bg:  var(--wtg-mint);
  --status-warning:     #9a5a00;
  --status-warning-bg:  var(--wtg-peach);
  --status-danger:      #b3261e;
  --status-danger-bg:   #ffdad6;
  --status-info:        var(--wtg-sky);
  --status-info-bg:     var(--wtg-sky-100);

  /* Focus ring */
  --focus-ring: 0 0 0 3px rgba(55, 30, 225, 0.35);
}
