/* Evens colour tokens, light and dark.
   Token names match the shared Digivolve core kit (KIT-v2 section 3 calls the accent --ember*,
   Core/design/src/base.css calls it --brand*; both are set here to the same values), so the shared
   Sign in and Accounting screens take on the Evens brand. Load this AFTER the kit's base.css.
   The accent is Match red, and it takes white text. Evens is the only demo with a LIGHT sidebar.
   On dark grounds, red as text switches to Live red (--ev-live); red fills keep white text.
   Checked by contrast.py (python -I contrast.py). */

:root, .dp {
  /* Evens brand */
  --ev-red:#C4122F; --ev-ink:#16161A; --ev-live:#FF6B7C; --ev-blush:#FBE7EA; --ev-paper:#F6F5F3; --ev-row:#26262C;

  /* ground, surfaces, lines, text */
  --canvas:#F6F5F3; --surface:#FFFFFF; --surface-2:#FAF9F8; --surface-3:#EFEEEB;
  --line:#E4E2DF; --line-2:#CFCDC9;
  --ink:#16161A; --ink-2:#3A393E; --muted:#5E5D63; --faint:#8E8D92; --focus:#16161A;

  /* sidebar: white, with a hairline */
  --sb-bg:#FFFFFF; --sb-raise:#F6F5F3; --sb-line:#E4E2DF;
  --sb-text:#16161A; --sb-muted:#5E5D63; --sb-label:#5E5D63;

  /* brand accent (KIT-v2 "ember", base.css "brand"): Match red */
  --ember-a:#CF1735; --ember:#C4122F; --ember-b:#B30F2A; --ember-c:#920B22;
  --ember-grad:linear-gradient(135deg,#CF1735 0%,#B30F2A 55%,#920B22 100%);
  --ember-ink:#C4122F; --ember-tint:#FBE7EA;
  --brand-a:#CF1735; --brand:#C4122F; --brand-b:#B30F2A; --brand-c:#920B22;
  --brand-grad:linear-gradient(135deg,#CF1735 0%,#B30F2A 55%,#920B22 100%);
  --brand-ink:#C4122F; --brand-tint:#FBE7EA;

  /* status: always with a word. "Bad" is a brick red, kept apart from Match red, and always has an icon */
  --ok-bg:#E5F2E2; --ok-ink:#21622C;
  --warn-bg:#FBEFD0; --warn-ink:#7A5000;
  --bad-bg:#FCEDE6; --bad-ink:#A3290C; --bad-line:#F2CDBF;
  --info-bg:#E7EDFB; --info-ink:#2747A3;
  --draft-bg:#ECEBE8; --draft-ink:#3A393E;

  /* document tints: bg / ink / stroke */
  --t-green-bg:#E2F1E6; --t-green-ink:#0E5331; --t-green:#13804A;
  --t-blue-bg:#E6ECFC;  --t-blue-ink:#1B3B9A;  --t-blue:#2352D4;
  --t-navy-bg:#E8EAF5;  --t-navy-ink:#102F61;  --t-navy:#12407C;
  --t-sky-bg:#E2F0FA;   --t-sky-ink:#0B5287;   --t-sky:#1A84D2;
  --t-butter-bg:#FBF1D2; --t-butter-ink:#6B4800; --t-butter:#C48900;

  /* depth */
  --sh-1:0 1px 2px rgba(22,22,26,.05),0 6px 20px -10px rgba(22,22,26,.10);
  --sh-2:0 2px 4px rgba(22,22,26,.05),0 18px 36px -16px rgba(22,22,26,.22);
  --sh-dlg:0 0 0 1px rgba(22,22,26,.06),0 32px 80px -24px rgba(14,14,17,.45);
  --sh-ember:0 1px 0 rgba(255,255,255,.22) inset,0 10px 24px -10px rgba(146,11,34,.55);
  --sh-brand:0 1px 0 rgba(255,255,255,.22) inset,0 10px 24px -10px rgba(146,11,34,.55);
  --scrim:rgba(14,14,17,.52);
}

.dp.dp-dark, :root[data-theme="dark"] {
  --ev-paper:#121214; --ev-blush:#3A1219;

  --canvas:#121214; --surface:#1A1A1E; --surface-2:#1F1F23; --surface-3:#26262B;
  --line:#2C2C32; --line-2:#3B3B42;
  --ink:#EDEDEF; --ink-2:#C5C4CA; --muted:#9D9CA4; --faint:#6E6D75; --focus:#FFFFFF;

  /* in dark the sidebar goes dark too, a step below the canvas */
  --sb-bg:#0E0E10; --sb-raise:#1A1A1E; --sb-line:#232328;
  --sb-text:#E9E8EC; --sb-muted:#A6A5AD; --sb-label:#97969E;

  /* the accent lifts one step (#D41C3A) so it still stands out on dark cards, and keeps white text;
     red as text on dark switches to Live red */
  --ev-red:#D41C3A;
  --ember-a:#DC2744; --ember:#D41C3A; --ember-b:#C4122F; --ember-c:#A30E27;
  --ember-grad:linear-gradient(135deg,#DC2744 0%,#C4122F 55%,#A30E27 100%);
  --ember-ink:#FF6B7C; --ember-tint:#3A1219;
  --brand-a:#DC2744; --brand:#D41C3A; --brand-b:#C4122F; --brand-c:#A30E27;
  --brand-grad:linear-gradient(135deg,#DC2744 0%,#C4122F 55%,#A30E27 100%);
  --brand-ink:#FF6B7C; --brand-tint:#3A1219;

  --ok-bg:#16291A; --ok-ink:#9BD58A;
  --warn-bg:#2E2512; --warn-ink:#F0C46A;
  --bad-bg:#35190F; --bad-ink:#FF9C80; --bad-line:#5C2A1C;
  --info-bg:#18213A; --info-ink:#A0B6FF;
  --draft-bg:#26262B; --draft-ink:#C5C4CA;

  --t-green-bg:#14251B; --t-green-ink:#93D8AF; --t-green:#40B07A;
  --t-blue-bg:#172040;  --t-blue-ink:#AABFFF;  --t-blue:#5C83EE;
  --t-navy-bg:#1A1F36;  --t-navy-ink:#AFB9EE;  --t-navy:#6F80D6;
  --t-sky-bg:#122634;   --t-sky-ink:#8ECBF3;   --t-sky:#3FA0E4;
  --t-butter-bg:#2C2412; --t-butter-ink:#EFCA70; --t-butter:#D6A226;

  --sh-1:0 1px 0 rgba(255,255,255,.03) inset,0 10px 30px -14px rgba(0,0,0,.65);
  --sh-2:0 1px 0 rgba(255,255,255,.04) inset,0 22px 44px -18px rgba(0,0,0,.75);
  --sh-dlg:0 0 0 1px rgba(255,255,255,.06),0 32px 80px -24px rgba(0,0,0,.8);
  --sh-ember:0 1px 0 rgba(255,255,255,.18) inset,0 14px 34px -12px rgba(207,23,53,.5);
  --sh-brand:0 1px 0 rgba(255,255,255,.18) inset,0 14px 34px -12px rgba(207,23,53,.5);
  --scrim:rgba(0,0,0,.6);
}
