/* Tailfin colour tokens, light and dark.
   Token names match the shared Digivolve core kit (KIT-v2, section 3), so the shared
   Sign in and Accounting screens take on the Tailfin brand. Load this AFTER the kit's base.css.
   "Ember" is the kit's name for the brand accent. In Tailfin it is Board green, and it takes white text.
   Lime is Tailfin's own signal colour (--tf-lime). It is never a button and never takes white text.
   Checked by contrast.py (python -I contrast.py). */

:root, .dp {
  /* Tailfin brand */
  --tf-board:#0B5D46; --tf-night:#05261D; --tf-lime:#B5E046; --tf-lime-ink:#4B6B00; --tf-paper:#F3F6F1; --tf-mint:#E3F0EA;

  /* ground, surfaces, lines, text */
  --canvas:#F3F6F1; --surface:#FFFFFF; --surface-2:#F7F9F6; --surface-3:#EBF0EC;
  --line:#DDE5DF; --line-2:#C7D2CA;
  --ink:#0F1F19; --ink-2:#33463E; --muted:#4D6159; --faint:#8A9A92; --focus:#0F1F19;

  /* sidebar: Night board */
  --sb-bg:#05261D; --sb-raise:#0D3328; --sb-line:#164035;
  --sb-text:#E6F2EC; --sb-muted:#A9C4B8; --sb-label:#8FB3A4;

  /* brand accent (the kit calls it ember): Board green */
  --ember-a:#0E6B51; --ember:#0B5D46; --ember-b:#0A5640; --ember-c:#074534;
  --ember-grad:linear-gradient(135deg,#0E6B51 0%,#0A5640 55%,#074534 100%);
  --ember-ink:#0B5D46; --ember-tint:#E3F0EA;

  /* status: always with a word */
  --ok-bg:#E6F2DC; --ok-ink:#2E6315;
  --warn-bg:#FBEFD0; --warn-ink:#7A5000;
  --bad-bg:#FCEBEE; --bad-ink:#A3162F; --bad-line:#F1C6CE;
  --info-bg:#E7EDFB; --info-ink:#2747A3;
  --draft-bg:#E7ECE9; --draft-ink:#33463E;

  /* 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(10,35,28,.05),0 6px 20px -10px rgba(10,35,28,.10);
  --sh-2:0 2px 4px rgba(10,35,28,.05),0 18px 36px -16px rgba(10,35,28,.22);
  --sh-dlg:0 0 0 1px rgba(10,35,28,.06),0 32px 80px -24px rgba(5,18,14,.45);
  --sh-ember:0 1px 0 rgba(255,255,255,.22) inset,0 10px 24px -10px rgba(7,69,52,.6);
  --scrim:rgba(5,18,14,.52);
}

.dp.dp-dark, :root[data-theme="dark"] {
  --tf-lime-ink:#B5E046; --tf-paper:#0A1310; --tf-mint:#16301F;

  --canvas:#0A1310; --surface:#111C18; --surface-2:#15221D; --surface-3:#1C2B25;
  --line:#21312A; --line-2:#2E4239;
  --ink:#E8F0EC; --ink-2:#BCCBC4; --muted:#94A69D; --faint:#64766D; --focus:#FFFFFF;

  --sb-bg:#06120E; --sb-raise:#0F1F19; --sb-line:#182A22;
  --sb-text:#E3EEE8; --sb-muted:#9DB4A9; --sb-label:#82A092;

  /* the accent stays Board green with white text; green as text on dark switches to lime */
  --ember-ink:#B5E046; --ember-tint:#16301F;

  --ok-bg:#16291A; --ok-ink:#9BD58A;
  --warn-bg:#2E2512; --warn-ink:#F0C46A;
  --bad-bg:#351820; --bad-ink:#FF91A3; --bad-line:#5C2633;
  --info-bg:#18213A; --info-ink:#A0B6FF;
  --draft-bg:#1C2B25; --draft-ink:#BCCBC4;

  --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(14,107,81,.55);
  --scrim:rgba(0,0,0,.6);
}
