/* Sovra Cloud design tokens.
   Material 3 Expressive with Sovra Office's own values (sovrahub-tools/sovra_office_spec.json):
   seed #3B4CB8 light / #BAC3FF dark, its colour roles, Roboto Flex, its radii and springs.
   Every colour, curve and shadow used anywhere in the app is defined here. */
:root {
  --primary:#3B4CB8; --on-primary:#FFFFFF; --primary-c:#DEE0FF; --on-primary-c:#00105C;
  --secondary-c:#E0E1F9; --on-secondary-c:#181A2C;
  --tertiary:#8A4A7B; --on-tertiary:#FFFFFF; --tertiary-c:#FFD7F1; --on-tertiary-c:#38072F;
  --error:#BA1A1A; --warn:#8C5000; --ok:#146C2E;
  --surface:#FBF8FF; --low:#F5F2FA; --cont:#EFEDF4; --high:#E9E7EF; --highest:#E3E1E9;
  --on:#1B1B21; --on-v:#46464F; --outline:#767680; --outline-v:#C6C5D0;
  --inverse:#303036; --inverse-on:#F2EFF7;
  /* Sovra Office's app colours, used for file-type letters */
  --writer:#3B4CB8; --writer-bg:#DEE0FF; --calc:#256A36; --calc-bg:#B7F1BF;
  --impress:#9A3F17; --impress-bg:#FFDBCD; --draw:#8A4A7B; --draw-bg:#FFD7F1;
  /* The colour band behind the greeting when no photo is chosen */
  --hero-band: linear-gradient(115deg, #24338F 0%, #3B4CB8 42%, #7A4A9E 78%, #8A4A7B 100%);
  --el1:0 1px 2px rgba(0,0,0,.18),0 1px 3px 1px rgba(0,0,0,.08);
  --el3:0 1px 3px rgba(0,0,0,.20),0 6px 14px 4px rgba(0,0,0,.12);
  /* Springs */
  --spring:cubic-bezier(.38,1.21,.22,1); --spring-fast:cubic-bezier(.42,1.67,.21,.9);
  --spring-slow:cubic-bezier(.39,1.29,.35,.98); --fx:cubic-bezier(.34,.8,.34,1);
  /* Type */
  --font: 'Roboto Flex', system-ui, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --primary:#BAC3FF; --on-primary:#08218A; --primary-c:#2A3BA0; --on-primary-c:#DEE0FF;
  --secondary-c:#434659; --on-secondary-c:#E0E1F9;
  --tertiary:#FEAFE6; --on-tertiary:#541C4A; --tertiary-c:#6F3362; --on-tertiary-c:#FFD7F1;
  --error:#FFB4AB; --warn:#FFB870; --ok:#7EDB8F;
  --surface:#121318; --low:#1B1B21; --cont:#1F1F25; --high:#2A292F; --highest:#34343A;
  --on:#E4E1E9; --on-v:#C6C5D0; --outline:#90909A; --outline-v:#46464F;
  --inverse:#E4E1E9; --inverse-on:#303036;
  --writer:#BAC3FF; --writer-bg:#2A3BA0; --calc:#9CD5A4; --calc-bg:#0B5222;
  --impress:#FFB59A; --impress-bg:#7A2900; --draw:#FEAFE6; --draw-bg:#6F3362;
  color-scheme: dark;
}

/* Dossier and calendar tones: set --dc (strong), --dbg (background), --don (text on it) */
.c1 { --dc: var(--primary); --dbg: var(--primary-c); --don: var(--on-primary-c); }
.c2 { --dc: var(--tertiary); --dbg: var(--tertiary-c); --don: var(--on-tertiary-c); }
.c3 { --dc: var(--calc); --dbg: var(--calc-bg); --don: var(--calc); }
.c4 { --dc: var(--impress); --dbg: var(--impress-bg); --don: var(--impress); }
.cerr { --dc: var(--error); --dbg: color-mix(in srgb, var(--error) 14%, var(--surface)); --don: var(--error); }
.cme { --dbg: var(--high); --don: var(--on); --dc: var(--outline); }
.cfin { --dbg: var(--tertiary-c); --don: var(--on-tertiary-c); --dc: var(--tertiary); }
.croom { --dbg: transparent; --don: var(--on-v); --dc: var(--outline); }
