/* ─── Inspira Woo Add-ons — Design Tokens ─────────────────────────
   Global color primitives used across multiple modules. Matched 1:1
   by Inspira_Woo_Addons_Design_Tokens class constants in PHP.

   Scope: only the high-frequency primitives that appear in many
   places. Module-specific CSS custom properties (--iwa-mc-*, etc.)
   continue to live with their owning modules and may consume these
   tokens via cascade.
   ─────────────────────────────────────────────────────────────── */

:root {
    --iwa-color-ink:          #14130F;
    --iwa-color-paper:        #FFFFFF;
    --iwa-color-accent:       #C8472B;
    --iwa-color-heart:        #E2264D;
    /* Derived accent states — computed from --iwa-color-accent so when
       the admin publishes a new accent value, hover/soft/focus follow
       automatically. color-mix() supported in Chrome 111+ / Firefox 113+
       / Safari 16.2+ (May 2023 baseline). In older browsers, these
       declarations are invalid and consumers fall back to the second
       arg of var().
       - accent-hover: 15% darker (mix with black) — pre-v0.5.49 this
         was the literal #B33D24, now derived so custom accents cascade.
       - accent-soft:  low-opacity accent tint for soft backgrounds
       - accent-focus: mid-opacity accent for focus rings + selections */
    --iwa-color-accent-hover: color-mix(in srgb, var(--iwa-color-accent) 85%, black);
    --iwa-color-accent-soft:  color-mix(in srgb, var(--iwa-color-accent) 12%, transparent);
    --iwa-color-accent-focus: color-mix(in srgb, var(--iwa-color-accent) 40%, transparent);
    /* Button color scaffolding — the 4 vars below are INTENTIONALLY
       NOT declared here. Consumers use var() fallback chains like:
         background: var(--iwa-color-button-bg, var(--iwa-color-accent));
         color:      var(--iwa-color-button-text, #fff);
       So when the master palette toggle is off + no button pickers
       are published, CSS falls back to the pre-v0.5.49 behavior (accent
       + hardcoded contrast text). When admin publishes them via
       Inspira_Woo_Addons_Palette::inline_css(), the fallbacks are
       overridden. This keeps the palette an opt-in feature that never
       disrupts sites which aren't using it.
       Published vars (when palette enabled + picker set):
         --iwa-color-button-bg
         --iwa-color-button-text
         --iwa-color-button-hover-bg
         --iwa-color-button-hover-text */
}
