/* KorelexOne tokens: load AFTER the Trampolyne token files in reference/_ds/.../tokens/.
   This file overrides the brand ramp (blue -> petrol teal), adds the Trust Center
   customer-brand vars and the full dark theme. Copy into static/css/ as-is. */

:root {
  --brand-800: #083B42;
  --brand-700: #0B4A53;
  --brand-600: #0F5C66;   /* primary action, active nav, chart line */
  --brand-500: #1A7380;
  --brand-300: #8DBEC5;
  --brand-100: #CFE4E7;
  --brand-50:  #EAF3F4;   /* active nav bg, selected row bg, "Do next" cell */
  --focus-ring: 0 0 0 3px rgba(15, 92, 102, .28);

  /* Trust Center: customer brand colour (per-tenant setting) */
  --bp: #B5441D;
  --bp-soft: #FBEDE6;
}

[data-theme="dark"] {
  --bg-app: #0A0D12; --bg-subtle: #11161D;
  --surface-card: #11161E; --surface-raised: #161C25; --surface-sunken: #0D1117;
  --surface-hover: #18202A; --surface-active: #1F2833; --surface-overlay: rgba(0,0,0,.62);
  --text-strong: #F2F5F9; --text-default: #D3DAE3; --text-muted: #949FAF; --text-subtle: #717C8C; --text-disabled: #4A5462;
  --border-subtle: #1D2530; --border-default: #29323E; --border-strong: #3A4552;
  --action-neutral-bg: #161C25; --action-neutral-bg-hover: #1D2530; --action-neutral-bg-active: #252E3A;
  --action-neutral-fg: #E4E9F0; --action-neutral-border: #2C3541;
  --action-primary-bg: #4FB3BF; --action-primary-bg-hover: #6CC3CD; --action-primary-bg-active: #8AD0D8; --action-primary-fg: #06161A;
  --text-link: #6CC3CD; --border-focus: #4FB3BF;
  --white: #121821; --ink-25: #0A0D12; --ink-50: #151B23; --ink-100: #1F2732; --ink-700: #C9D1DC;
  --success-50: #0D2A1E; --success-100: #123A2A; --success-500: #3CC487; --success-600: #4ACF94;
  --warning-50: #2A200C; --warning-100: #3A2D10; --warning-500: #E5A800; --warning-700: #EBB84E;
  --danger-50: #2D1513; --danger-100: #3D1C19; --danger-500: #F0463A; --danger-700: #F38C82;
  --vault-50: #0B2622; --vault-100: #103630; --vault-600: #3CCBA6; --vault-700: #5AD6B4;
  --brand-50: #0F2629; --brand-100: #15363B; --brand-300: #2E6E77; --brand-500: #3E9EAA; --brand-600: #4FB3BF; --brand-700: #7FCFD8;
  --bp: #F08A5D; --bp-soft: #2C1A12;
  --shadow-xs: 0 1px 2px rgba(0,0,0,.4); --shadow-sm: 0 1px 3px rgba(0,0,0,.45);
  --shadow-md: 0 4px 12px -2px rgba(0,0,0,.5); --shadow-lg: 0 12px 28px -8px rgba(0,0,0,.6); --shadow-xl: 0 24px 56px -12px rgba(0,0,0,.7);
}

/* Trust Center brand presets */
[data-brand="forest"] { --bp: #2F6B3A; --bp-soft: #EAF3EB; }
[data-brand="plum"]   { --bp: #6B2E5F; --bp-soft: #F5EAF2; }
[data-theme="dark"] [data-brand="forest"] { --bp: #7CC08A; --bp-soft: #13261A; }
[data-theme="dark"] [data-brand="plum"]   { --bp: #D08CC2; --bp-soft: #2A1726; }
[data-brand] {
  --action-primary-bg: var(--bp);
  --action-primary-bg-hover: color-mix(in oklch, var(--bp) 86%, black);
  --action-primary-bg-active: color-mix(in oklch, var(--bp) 76%, black);
}

body { margin: 0; background: var(--bg-app); color: var(--text-default); font: 14px/1.5 var(--font-sans); -webkit-font-smoothing: antialiased; }
a { color: var(--text-link); text-decoration: none; }
a:hover { color: var(--brand-700); text-decoration: underline; }
