/* The dark theme in the company's colours (spec 04 RE-WLB-17). The greys the library draws dark surfaces and light text
   from take the company's hue in low chroma, the brand colour is lifted so it still shows on them, and the bars are the
   darkest step of the same ramp: darker than the page, as they are in the light theme. The ramps are computed per
   company (apps/ui/theme.py) and come as --color-base-dark-*, --color-primary-dark-* and --color-chrome-dark-*; only the
   company's own back office and its signed-out screens have them, hence :has(.lre-main) and :has(.lre-door). Set on the root, so what is derived from them follows. */
html.dark:has(.lre-main), html.dark:has(.lre-door) {
  --color-base-50: var(--color-base-dark-50);
  --color-base-100: var(--color-base-dark-100);
  --color-base-200: var(--color-base-dark-200);
  --color-base-300: var(--color-base-dark-300);
  --color-base-400: var(--color-base-dark-400);
  --color-base-500: var(--color-base-dark-500);
  --color-base-600: var(--color-base-dark-600);
  --color-base-700: var(--color-base-dark-700);
  --color-base-800: var(--color-base-dark-800);
  --color-base-900: var(--color-base-dark-900);
  --color-base-950: var(--color-base-dark-950);
  --color-primary-50: var(--color-primary-dark-50);
  --color-primary-100: var(--color-primary-dark-100);
  --color-primary-200: var(--color-primary-dark-200);
  --color-primary-300: var(--color-primary-dark-300);
  --color-primary-400: var(--color-primary-dark-400);
  --color-primary-500: var(--color-primary-dark-500);
  --color-primary-600: var(--color-primary-dark-600);
  --color-primary-700: var(--color-primary-dark-700);
  --color-primary-800: var(--color-primary-dark-800);
  --color-primary-900: var(--color-primary-dark-900);
  --color-primary-950: var(--color-primary-dark-950);
  --color-chrome-bar: var(--color-chrome-dark-bar);
  --color-chrome-text: var(--color-chrome-dark-text);
  --color-chrome-soft: var(--color-chrome-dark-soft);
  --color-chrome-edge: var(--color-chrome-dark-edge);
  --color-chrome-rule: var(--color-chrome-dark-rule);
  --color-chrome-highlight: var(--color-chrome-dark-highlight);
  --lre-on-primary: var(--color-base-900); /* what is written on the brand colour as a fill, as the library does in the dark theme */
}
