/* Trade Finance BD design tokens (redesign blueprint step 1.1).
   Loaded before site-theme.css by scripts/site-design.mjs.

   Two layers:
   1. Palette: fixed brand values from the blueprint (--tfbd-navy-900 ...).
   2. Roles: what components should use (--tfbd-canvas, --tfbd-text ...).
      Each role currently aliases the existing --site-* variable, with the
      palette value as its fallback, so nothing on the live site changes when
      this file ships. A later step switches a role to its palette value on
      purpose, one role at a time.

   The --tfbd- prefix is deliberate: --tf-canvas, --tf-navy-900, --tf-line and
   others already exist in site-theme.css, site-redesign.css and
   advisor-theme.css with different meanings.

   Compliance status colours are reserved for compliance states (permitted,
   conditional or approval required, restricted or prohibited). Do not use them
   for decoration, links or general alerts.

   Breakpoints (CSS variables cannot be used in media queries):
   phone < 768 · tablet 768-1180 · desktop >= 1181 · wide >= 1440 */
:root{
  /* Palette: brand */
  --tfbd-navy-900:#0b2745;
  --tfbd-navy-700:#12395f;
  --tfbd-on-navy:#ffffff;
  --tfbd-on-navy-muted:#c7d6ea;
  --tfbd-on-navy-active:#9fc3f5;
  /* Palette: surfaces */
  --tfbd-slate-50:#f3f6fa;
  --tfbd-white:#ffffff;
  --tfbd-slate-100:#eef2f7;
  --tfbd-slate-200:#dbe3ec;
  --tfbd-slate-500:#7a8ba0;
  /* Palette: text */
  --tfbd-ink-900:#1d2939;
  --tfbd-ink-600:#5b6b7f;
  /* Palette: interactive */
  --tfbd-cobalt-600:#1463d6;
  --tfbd-cobalt-700:#0f4fae;
  --tfbd-cobalt-50:#eaf1fd;

  /* Compliance status (reserved; always pair with a text label and icon) */
  --tfbd-status-permitted-fg:#137a4a;   --tfbd-status-permitted-bg:#eaf7f0;
  --tfbd-status-conditional-fg:#9a6500; --tfbd-status-conditional-bg:#fff7df;
  --tfbd-status-restricted-fg:#b42318;  --tfbd-status-restricted-bg:#fff0ee;

  /* Roles: aliased to today's theme, palette value as fallback */
  --tfbd-canvas:var(--site-bg,var(--tfbd-slate-50));
  --tfbd-surface:var(--site-surface,var(--tfbd-white));
  --tfbd-surface-sunken:var(--site-raised,var(--tfbd-slate-100));
  --tfbd-border:var(--site-line,var(--tfbd-slate-200));
  --tfbd-border-control:var(--tfbd-slate-500);
  --tfbd-text:var(--site-text,var(--tfbd-ink-900));
  --tfbd-text-strong:var(--site-text,var(--tfbd-navy-900));
  --tfbd-text-muted:var(--site-muted,var(--tfbd-ink-600));
  --tfbd-accent:var(--site-accent,var(--tfbd-cobalt-600));
  --tfbd-accent-hover:var(--site-accent,var(--tfbd-cobalt-700));
  --tfbd-accent-subtle:var(--site-accent-bg,var(--tfbd-cobalt-50));
  --tfbd-on-accent:var(--tfbd-white);
  --tfbd-focus:0 0 0 3px var(--tfbd-accent);
  --tfbd-brand:var(--tfbd-navy-900);
  --tfbd-brand-active:var(--tfbd-navy-700);

  /* Type */
  --tfbd-font-sans:"Inter","TFBD Bengali",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --tfbd-font-bn:"TFBD Bengali","Noto Sans Bengali","Inter",sans-serif;
  --tfbd-font-mono:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;
  --tfbd-lh-body:1.55;
  --tfbd-lh-bn:1.7;
  --tfbd-lh-tight:1.25;
  --tfbd-fs-12:.75rem;--tfbd-fs-13:.8125rem;--tfbd-fs-14:.875rem;--tfbd-fs-16:1rem;
  --tfbd-fs-18:1.125rem;--tfbd-fs-20:1.25rem;--tfbd-fs-24:1.5rem;--tfbd-fs-30:1.875rem;
  --tfbd-num:tabular-nums;

  /* Space, radius, elevation */
  --tfbd-space-1:4px;--tfbd-space-2:8px;--tfbd-space-3:12px;--tfbd-space-4:16px;
  --tfbd-space-5:20px;--tfbd-space-6:24px;--tfbd-space-8:32px;--tfbd-space-12:48px;
  --tfbd-radius-sm:4px;--tfbd-radius-md:8px;--tfbd-radius-lg:12px;
  --tfbd-shadow-1:0 1px 2px rgba(11,39,69,.06);

  /* Layout */
  --tfbd-topbar-h:72px;
  --tfbd-sidebar-w:276px;
  --tfbd-sidebar-w-collapsed:72px;
  --tfbd-rail-w:280px;
  --tfbd-measure:760px;
  --tfbd-content-max:1200px;
  --tfbd-z-topbar:40;--tfbd-z-drawer:60;--tfbd-z-palette:80;
}
html[data-theme="dark"]{
  --tfbd-border-control:#6b84a3;
  --tfbd-on-accent:#0a1626;
  --tfbd-status-permitted-fg:#5fd39b;   --tfbd-status-permitted-bg:#0f2e22;
  --tfbd-status-conditional-fg:#f2c14e; --tfbd-status-conditional-bg:#33280c;
  --tfbd-status-restricted-fg:#ff8a7a;  --tfbd-status-restricted-bg:#3a1512;
}
