/* =====================================================================
   Qwise brand tokens — sampled directly from the logo artwork.

   This is the single source of truth for brand colour. Every surface
   (hq, admin, board, patient, display, reports) maps its own semantic
   names onto these, so changing the brand happens here and nowhere else.

   Contrast figures are WCAG 2.1 ratios against the ground named, and
   they are the reason the palette has more than five entries: the logo
   emerald is beautiful and unreadable as body text on white (2.93:1),
   so text gets a deepened version and the true emerald is kept for
   fills, marks, bars and indicators where contrast is not a legibility
   question.
   ===================================================================== */

:root {
  /* ---- the logo, exactly as drawn ------------------------------- */
  --qw-emerald: #0BAC75; /* "wise" wordmark, middle of the ring      */
  --qw-leaf:    #4CC76B; /* bright end of the ring gradient          */
  --qw-teal:    #06675C; /* dark end of the ring gradient            */
  --qw-mint:    #7ACAA6; /* the three standing figures               */
  --qw-navy:    #0F1D2A; /* the "Q" and the tagline                  */

  /* ---- brand on a light ground ---------------------------------- */
  --qw-brand:   #077A53; /* 5.36:1 on white — links, brand text      */
  --qw-solid:   #077A53; /* button fills, white label at 5.36:1      */
  --qw-fill:    #0BAC75; /* bars, dots, marks — never text on white  */
  --qw-wash:    #E6F6EF; /* tinted panels; ink reads 4.80:1 on it    */
  --qw-line:    #BEE6D5; /* hairline that belongs to the wash        */
  --qw-deep:    #06675C; /* 6.77:1 on white — the sober alternative  */

  /* ---- brand on the navy rail ----------------------------------- */
  --qw-navy-ink:   #EAF1F0; /* 14.92:1 — primary rail text           */
  --qw-navy-soft:  #93A6B4; /*  6.79:1 — secondary rail text         */
  --qw-navy-faint: #7D91A1; /*  5.19:1 — rail section labels         */
  --qw-navy-line:  #1D3040; /* rail dividers                         */
  --qw-navy-on:    #17293A; /* active / hovered rail item            */
  --qw-on-navy:    #7ACAA6; /*  8.81:1 — the accent on the rail      */
  --qw-on-navy-hi: #4CC76B; /*  7.88:1 — the brighter accent         */

  /* ---- the rail --------------------------------------------------
     The left rail is the logo's green, not a neutral dark. The range
     is deliberately the DARK half of the ring gradient: run it up to
     the emerald and white text drops to 2.93:1, so the gradient stops
     where legibility does. Every rail colour below is measured against
     the LIGHTEST point of the gradient, which is the worst case. ---- */
  --qw-rail-top:   #06614E; /* under the brand mark                   */
  --qw-rail-mid:   #053F3A;
  --qw-rail-bot:   #043733;
  --qw-rail-solid: #054A44; /* flat stand-in where a gradient can't go */
  --qw-rail-grad:  linear-gradient(165deg, var(--qw-rail-top) 0%, var(--qw-rail-mid) 62%, var(--qw-rail-bot) 100%);

  --qw-rail-ink:    #FFFFFF; /*  7.43:1 at the lightest point         */
  --qw-rail-soft:   #CFE6DA; /*  5.65:1 — inactive items              */
  --qw-rail-faint:  #BCDCCC; /*  5.04:1 — group labels and counts     */
  --qw-rail-accent: #A0E0C4; /*  4.93:1 — the accent, as small text   */
  --qw-rail-mark:   #7ACAA6; /*  3.83:1 — indicators only, never text */
  --qw-rail-line:   rgba(255,255,255,.10);
  --qw-rail-line-firm: rgba(255,255,255,.22);
  --qw-rail-on:     rgba(255,255,255,.12);

  /* ---- shared neutrals ------------------------------------------
     The greys are cool and very slightly blue so they sit under the
     navy rather than fighting it. Before this file the product had
     four different green-tinted grey scales; these replace them so a
     card looks like a card everywhere. ---------------------------- */
  --qw-paper:     #F4F5F7;
  --qw-surface:   #FFFFFF;
  --qw-surface-2: #F8F9FB;
  --qw-ink:       #0F1D2A; /* 17.08:1 on white — same navy as the "Q" */
  --qw-ink-soft:  #4B5160; /*  7.94:1 on white                        */
  --qw-ink-faint: #686F7D; /*  5.05:1 on white, 4.63:1 on paper — the
                              faintest grey that still clears AA on the
                              lighter of the two grounds it sits on     */
  --qw-hairline:  #E7E9EE;
  --qw-hairline-firm: #DBDEE5;

  /* ---- the gradient, for the mark and any brand furniture -------- */
  --qw-gradient: linear-gradient(135deg, var(--qw-teal) 0%, var(--qw-emerald) 55%, var(--qw-leaf) 100%);
}
