/**
 * Trade Capital Finance (Thrive) — brand colour tokens.
 * --------------------------------------------------------------
 * Loaded on every page by components/_platform_foundation.html (straight after
 * platform-foundation.css) when BRAND_KEY=tcf. platform-foundation.css derives
 * --navy, --teal, --ink, --muted and the shadows from the --brand-* tokens, so
 * a brand changes its colours here and nowhere else. Every brand's tokens.css
 * must define the full set (branding.tests checks the list in branding/packs.py).
 *
 * Source: Thrive Branding/ (black, gold and cream), tuned for a fintech portal:
 * gold text on light surfaces uses the darker #7A5800 so it stays readable,
 * warnings are burnt orange so they never look like brand gold, and card
 * borders are neutral (gold is kept for active and selected states).
 * Contrast (WCAG): every text pair below is 4.5:1 or better on its surface.
 *
 * *-rgb tokens are bare channels so shared CSS can tint them:
 *   rgba(var(--brand-ink-rgb), 0.08)
 */

:root {
  /* Primary: dark brand surfaces (page headers, hero panels, dark buttons). */
  --brand-primary-rgb: 20, 20, 20;          /* #141414 near-black */
  --brand-primary-deep: #262217;            /* warm black, hero end */

  /* Ink: text, borders and shadows on light surfaces. */
  --brand-ink-rgb: 20, 20, 20;              /* #141414 */

  /* Accent: links, active states, progress, primary buttons (text-safe gold). */
  --brand-accent-rgb: 122, 88, 0;           /* #7A5800 — 6.5:1 on white, 5.9:1 on cream */
  --brand-accent-deep-rgb: 101, 73, 0;      /* #654900 hover */
  --brand-accent-strong: #523B00;           /* pressed / strongest gold text */
  --brand-accent-soft: #E2C06A;             /* bright gold on dark surfaces */
  --brand-highlight: #D4AF5A;               /* gold labels and links on dark */
  --brand-highlight-rgb: 212, 175, 90;      /* same, as channels for glows and tints */
  --brand-accent-mid: #976D00;              /* gradient partner of the title colour */

  /* Titles, links and secondary accents. */
  --brand-title-rgb: 20, 20, 20;            /* #141414 page titles, labels */
  --brand-link-rgb: 122, 88, 0;             /* #7A5800 links, active tabs (6.5:1) */
  --brand-link-hover: #654900;
  --brand-secondary-rgb: 122, 88, 0;        /* #7A5800 card links, secondary accents */

  /* Page frame: page background, top bar and side menu. */
  --brand-page-bg: #F7F3EA;                 /* cream */
  --brand-shell-top: #F7F3EA;
  --brand-shell-bg: #F7F3EA;
  --brand-shell-report-bg: #F3EEE3;
  --brand-portal-bg: #F7F3EA;
  --brand-topbar-bg: #000000;
  --brand-topbar-bg-scrolled: rgba(0, 0, 0, 0.96);
  --brand-topbar-fg: #E9E3D6;               /* 16.4:1 on black */
  --brand-topbar-hover-fg: #E2C06A;
  --brand-topbar-hover-bg: rgba(255, 255, 255, 0.08);
  --brand-sidebar-bg: linear-gradient(180deg, #141414 0%, #1E1E1E 100%);
  --brand-sidebar-fg: #E9E3D6;              /* 13:1 or better on the menu */
  --brand-sidebar-icon: #E2C06A;
  --brand-sidebar-heading: #C9A24A;         /* 7.7:1 */
  --brand-sidebar-hover-bg: rgba(212, 175, 90, 0.12);
  --brand-sidebar-hover-fg: #E2C06A;

  /* White hero pills fill with dark gold brown on hover. */
  --brand-hero-hover: #5c4c00;

  /* Dark header panels (pop-up headers, upload banner): black into warm black,
     ending in the gold-brown --teal, like the page heroes. */
  --brand-dark-panel-from: #141414;
  --brand-dark-panel-via: #262217;

  /* --- Platform tokens TCF sets differently (defaults in platform-foundation.css) --- */

  /* Trim, icons, card top rule and top-bar underline (4.7:1 on white). Not for small text. */
  --brand-accent: #976D00;
  --silver: #F3EEE3;

  /* Text and lines */
  --ink: #141414;
  --muted: #5E5648;                          /* 7.2:1 white, 6.5:1 cream */
  --border: #E5D9BE;

  /* Status: burnt-orange warning (amber would read as brand gold for colour-blind users). */
  --status-good: #1F6B43;
  --status-warn: #A33A0E;
  --status-danger: #C8323A;
  --status-info: #1F5A8F;

  /* Neutral scale, warmed to sit with cream and gold */
  --lm-slate-50: #FBF8F1;
  --lm-slate-100: #F3EEE3;
  --lm-slate-200: #E5D9BE;
  --lm-slate-300: #D3C6A6;
  --lm-slate-400: #A39A88;
  --lm-slate-500: #6E6553;                  /* 5.8:1 white */
  --lm-slate-600: #5E5648;
  --lm-slate-700: #3A352C;
  --lm-slate-900: #141414;
  --lm-gray-900: #141414;
  --lm-ink-soft: #5E5648;
  --lm-ui-gray-500: #6E6553;
  --lm-ui-gray-700: #3A352C;

  /* Status scales */
  --lm-green-50: #E8F3EC;
  --lm-green-600: #257A4C;                  /* 4.8:1 on cream */
  --lm-green-700: #1F6B43;
  --lm-green-800: #1F6B43;
  --lm-amber-50: #FDEEE4;
  --lm-amber-500: #E07B39;                  /* fills and on-dark only */
  --lm-amber-600: #C25A1E;                  /* icons and fills, not small text */
  --lm-amber-700: #A33A0E;
  --lm-amber-800: #7F2D0B;
  --lm-red-600: #C8323A;
  --lm-red-700: #C8323A;
  --lm-red-750: #A82A30;                    /* small text on red tints */
  --lm-red-800: #8A2228;
}
