/**
 * FIDNT Design Tokens — family-resemblance to Royal Sovereign Crown
 * ═══════════════════════════════════════════════════════════════
 * Inherits all primitives from rsc-shell.css. Overrides only the
 * Provider-specific accent so FIDNT reads as kin, not clone.
 *
 * Crown:  #FCD116 KFH-bright yellow      → sovereign authority
 * FIDNT:  #C9A961 muted historical gold  → fiduciary trust
 *
 * Same navy `#0B1538`, same typography stack, same component patterns.
 *
 * @license LicenseRef-SovereignProtocol-1.0
 */

:root {
  /* Ground — same as Crown */
  --bg:           #0B1538;
  --bg-mid:       #0f1d4a;
  --bg-surface:   rgba(255,255,255,.04);
  --bg-hover:     rgba(255,255,255,.06);

  /* Text — same as Crown */
  --text:         #F4F3EF;
  --text-muted:   #8a8a7a;
  --text-dim:     #6a6a5a;

  /* GOLD — FIDNT's muted historical gold (different from Crown's #FCD116) */
  --gold:         #C9A961;                  /* FIDNT differentiator */
  --gold-dim:     #9C8047;
  --gold-glow:    rgba(201,169,97,.16);

  /* Borders — recomputed against the FIDNT gold */
  --border:       rgba(201,169,97,.20);
  --border-solid: rgba(201,169,97,.42);

  /* Status pills — same semantics as Crown */
  --ok:           #3a7a52;
  --ok-bg:        rgba(42,92,58,.15);
  --fail:         #7a3a3a;
  --fail-bg:      rgba(122,58,58,.15);
  --pending:      #b08a3c;
  --pending-bg:   rgba(176,138,60,.12);

  /* Layout */
  --sidebar-w:    56px;
  --radius:       6px;
  --transition:   0.22s ease;

  /* Faces */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --mono:  'JetBrains Mono', 'SF Mono', monospace;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  /* FIDNT-specific extras (preserve existing app references) */
  --bg-primary:   var(--bg);
  --bg-secondary: var(--bg-mid);
  --bg-tertiary:  rgba(255,255,255,.07);
  --bg-card:      var(--bg-surface);
  --text-primary:    var(--text);
  --text-secondary:  var(--text-muted);
  --text-accent:     var(--gold);
  --accent:          var(--gold);
  --accent-soft:     var(--gold-glow);
  --trust:           #22D3A5;        /* preserved — FIDNT trust-green for live indicators */
  --trust-soft:      rgba(34,211,165,.15);
  --danger:          var(--fail);
  --warn:            var(--pending);
  --success:         var(--ok);
  --font:        var(--sans);
  --font-serif:  var(--serif);
  --radius-full: 999px;
  --radius-sm:   3px;
}

[data-theme="light"] {
  --bg:           #FFFFFF;
  --bg-mid:       #F8F6EF;
  --bg-surface:   rgba(11,21,56,.035);
  --bg-hover:     rgba(11,21,56,.07);

  --text:         #0A1020;
  --text-muted:   #3A4660;
  --text-dim:     #6E7A92;

  /* On light, gold becomes near-black for text readability */
  --gold:         #1A1A2E;
  --gold-dim:     #3A4660;
  --gold-glow:    rgba(201,169,97,.18);

  --border:       rgba(11,21,56,.16);
  --border-solid: rgba(11,21,56,.38);

  /* True FIDNT gold for accent backgrounds in light mode */
  --kfh-yellow:   #C9A961;
  --kfh-blue:     #0B1538;
  --kfh-red:      #CE1126;

  /* FIDNT-specific extras */
  --bg-primary:   var(--bg);
  --bg-secondary: var(--bg-mid);
  --bg-tertiary:  rgba(11,21,56,.06);
  --bg-card:      var(--bg-surface);
  --text-primary:    var(--text);
  --text-secondary:  var(--text-muted);
  --text-accent:     #0B1538;
  --accent:          var(--kfh-yellow);
  --accent-soft:     rgba(201,169,97,.18);
  --trust:           #1B7F5C;
  --trust-soft:      rgba(27,127,92,.15);
  --danger:          #B33232;
  --warn:            var(--pending);
  --success:         var(--ok);
}
