/* ============================================================================
   MUVIN: agent accent set

   One accent per Partner Agent. Five families: pink, blue, green, lime,
   yellow. Load this file after whichever palette file is in use. It does not
   depend on the palette, and every value below clears WCAG AA against all
   three palette grounds.

   Four values per accent, and each has one job.

     --acc-<name>-fill       the chromatic colour, used as a background only
     --acc-<name>-on-fill    the text colour that goes on that background
     --acc-<name>-text       the accent used AS text on a light ground
     --acc-<name>-dark       the accent used AS text on a dark ground

   Pink, blue and green take white text on the fill. Lime and yellow cannot
   carry white at any usable saturation, so they take the ink colour instead.
   That flip is the whole reason --acc-<name>-on-fill exists. Never set text
   on an accent fill by hand.

   Measured ratios are in the design document. Lowest in the set is 4.62:1.
   ========================================================================== */

:root {
  /* pink */
  --acc-pink-fill:     #C42A66;
  --acc-pink-on-fill:  #FFFFFF;
  --acc-pink-text:     #B01F57;
  --acc-pink-dark:     #FF9CBE;

  /* blue */
  --acc-blue-fill:     #2458BC;
  --acc-blue-on-fill:  #FFFFFF;
  --acc-blue-text:     #1D50A8;
  --acc-blue-dark:     #96BCFF;

  /* green */
  --acc-green-fill:    #0F7A4E;
  --acc-green-on-fill: #FFFFFF;
  --acc-green-text:    #116B4A;
  --acc-green-dark:    #70DFAB;

  /* lime */
  --acc-lime-fill:     #B6E014;
  --acc-lime-on-fill:  #10140F;
  --acc-lime-text:     #4E6600;
  --acc-lime-dark:     #CDF24B;

  /* yellow */
  --acc-yellow-fill:   #F2C31A;
  --acc-yellow-on-fill:#10140F;
  --acc-yellow-text:   #7A5600;
  --acc-yellow-dark:   #F8D477;

  /* The active accent. A page with no agent on it resolves to Muvin's own
     green, so nothing on the site depends on an agent being chosen. */
  --accent:         var(--acc-green-fill);
  --accent-on:      var(--acc-green-on-fill);
  --accent-text:    var(--acc-green-text);
  --accent-on-dark: var(--acc-green-dark);
}

/* A Partner Agent page sets one attribute on <html> or on the section that
   carries their colour. Nothing else in the stylesheet changes. */
[data-accent='pink']   { --accent: var(--acc-pink-fill);   --accent-on: var(--acc-pink-on-fill);   --accent-text: var(--acc-pink-text);   --accent-on-dark: var(--acc-pink-dark); }
[data-accent='blue']   { --accent: var(--acc-blue-fill);   --accent-on: var(--acc-blue-on-fill);   --accent-text: var(--acc-blue-text);   --accent-on-dark: var(--acc-blue-dark); }
[data-accent='green']  { --accent: var(--acc-green-fill);  --accent-on: var(--acc-green-on-fill);  --accent-text: var(--acc-green-text);  --accent-on-dark: var(--acc-green-dark); }
[data-accent='lime']   { --accent: var(--acc-lime-fill);   --accent-on: var(--acc-lime-on-fill);   --accent-text: var(--acc-lime-text);   --accent-on-dark: var(--acc-lime-dark); }
[data-accent='yellow'] { --accent: var(--acc-yellow-fill); --accent-on: var(--acc-yellow-on-fill); --accent-text: var(--acc-yellow-text); --accent-on-dark: var(--acc-yellow-dark); }
