/* WUI theme overrides — elm-asma (flatsome-child context)
   Source of brand values: C:/wamp64/www/elm-asma/themes/flatsome-child/style.css
   (--elm-* token law, v1.3.0 chain). Pure token remap — never restyles
   .wui-* classes directly (upgrade-path rule, docs/adoption.md).
   Fonts: Peyda (headings) / IRANSansXV (body) per project brand chain —
   loaded by the theme itself; WUI only points the stacks at them. */

:root {
  /* ---- Brand remap onto --wui-* semantics ---- */
  --wui-brand: var(--elm-color-primary, #253e88);
  --wui-brand-hover: var(--elm-color-primary-dark, #1c2f68);
  --wui-brand-on: #ffffff;
  --wui-brand-soft: var(--elm-color-primary-soft, rgba(37, 62, 136, 0.08));
  --wui-brand-border: #c3cde8; /* derived: elm primary-soft edge on white */
  --wui-brand-focus-ring: rgba(37, 62, 136, 0.22);

  /* ---- Library defaults that are purple-leaning, remapped onto brand ----
     The library's neutral ramp is violet-tinged (#8b89a6, #f7f7fd, #eef1fb),
     which reads foreign against the elm-asma blue/gold brand. These remap
     only; no new design token is introduced (WUI-STYLE-001). */
  --wui-ink-subtle:      color-mix(in srgb, var(--elm-color-muted) 70%, var(--elm-color-bg));
  --wui-ink-on-dark:     var(--elm-color-bg);
  --wui-surface-soft:    var(--elm-color-surface);
  --wui-surface-subtle:  color-mix(in srgb, var(--elm-color-surface) 60%, var(--elm-color-bg));
  --wui-border-soft:     color-mix(in srgb, var(--elm-color-border) 55%, var(--elm-color-bg));
  --wui-border-strong:   color-mix(in srgb, var(--elm-color-muted) 60%, var(--elm-color-border));
  --wui-success-soft:    var(--elm-color-success-soft);
  --wui-danger-soft:     var(--elm-color-danger-soft);
  --wui-info:            var(--elm-color-primary);
  --wui-info-soft:       var(--elm-color-primary-soft);

  /* Radius tiers the project had not remapped: 4px sits below --elm-radius-sm
     (5px) per the concentric law; 16px sits above --elm-radius-lg (12px). */
  --wui-r-xs: 4px;
  --wui-r-xl: 16px;

  /* Secondary (gold #e4b823) maps to warn-family accents, NOT to brand */
  --wui-warn: var(--elm-color-secondary-dark, #c49d15);
  --wui-warn-soft: #fdf6e0;

  /* ---- Text & surfaces ---- */
  --wui-ink: var(--elm-color-ink, #0b0b0b);
  --wui-ink-muted: var(--elm-color-muted, #6b7280);
  --wui-surface: var(--elm-color-surface, #f7f8fa);
  --wui-bg: #ffffff;
  --wui-border: var(--elm-color-border, #e5e5e5);

  /* ---- States (from --elm-* success/danger families) ---- */
  --wui-success: var(--elm-color-success-dark, #047857);
  --wui-danger: var(--elm-color-danger, #b60303);
  --wui-danger-focus-ring: rgba(182, 3, 3, 0.18);

  /* ---- Typography (project brand fonts) ---- */
  --wui-font-body: var(--elm-font-body, 'iransansxv', 'DanaFaNum', Tahoma, sans-serif);
  --wui-font-heading: var(--elm-font-heading, 'PeydaWebFaNum', 'iransansxv', Tahoma, sans-serif);
  --wui-fa-font-body: var(--wui-font-body);
  --wui-fa-font-heading: var(--wui-font-heading);

  /* ---- Geometry (project radius law) ---- */
  --wui-r-sm: var(--elm-radius-sm, 5px);
  --wui-r-md: var(--elm-radius-md, 8px);
  --wui-r-lg: var(--elm-radius-lg, 12px);
}
