/* ============================================================================
   WPPBX(TM) legacy bridge, v1. Load AFTER tokens.css.

   The estate's older stylesheets read a set of --brand-* custom properties that
   predate the design system. Two of them are not decoration: portal-polish.css
   and mc-polish.css both compute

       --pp-y-glow: rgba(var(--brand-primary-rgb), 0.35)

   so a page that drops --brand-primary-rgb makes those sheets resolve an
   invalid colour, and the glow silently disappears rather than erroring.

   The RGB triples are written out per theme because CSS cannot pull the
   channels out of a hex custom property. They are the same colours as --pri and
   --info in tokens.css, converted once here rather than in every page.

   This file exists to be DELETED. Once a surface no longer references any
   --brand-* name, stop linking it there.
   ============================================================================ */

:root{
  --brand-primary:#077045;
  --brand-primary-rgb:7, 112, 69;
  --brand-primary-hover:#015D38;
  --brand-text:#F7FEF9;
  --brand-accent:#1666AA;
  --brand-accent-rgb:22, 102, 170;
}

@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --brand-primary:#51BD85;
    --brand-primary-rgb:81, 189, 133;
    --brand-primary-hover:#69D49A;
    --brand-text:#05160C;
    --brand-accent:#6DB0F4;
    --brand-accent-rgb:109, 176, 244;
  }
}

:root[data-theme="dark"]{
  --brand-primary:#51BD85;
  --brand-primary-rgb:81, 189, 133;
  --brand-primary-hover:#69D49A;
  --brand-text:#05160C;
  --brand-accent:#6DB0F4;
  --brand-accent-rgb:109, 176, 244;
}
