/* The AREAI colour theme: the one file that holds this theme's colours, light and dark.
   No other stylesheet and no template holds a colour. A new theme is a copy of this
   file with other values (see docs/themes.md); the gate refuses a theme that lacks a
   token, whose two dark blocks differ, or whose text pairs fall under 4.5:1.

   The values are the redesign canvas's (docs/mockups/2026-11-30-redesign/theme.css),
   with two light-mode part colours darkened just enough to reach 4.5:1 on their tints
   (ruled 2026-11-30): --money from #0E7C74 (4.41:1) to #0E7A72 (4.53:1) and --property
   from #A45F0A (4.42:1) to #A25E0A (4.50:1). Part colours name a part of the lease;
   they never mean good or bad. --danger-ink is the text on a --danger button.

   Three blocks, and the two dark ones are the same list: the device's choice
   (prefers-color-scheme, unless the page forced light) and a forced choice
   (data-theme="dark", which the light/dark switch sets). Each block also says which mode the
   browser draws its own controls and scrollbars in, so a forced choice does not leave them behind. */
:root{
  color-scheme:light;
  --bg:#F4F6F8; --surface:#FFFFFF; --surface-2:#EEF1F4; --line:#DDE3E8; --line-2:#C5CFD7;
  --ink:#13202A; --ink-2:#4A5B68; --accent:#0F5F7A; --accent-ink:#FFFFFF; --accent-tint:#E3F0F4;
  --doc:#FBFAF5; --doc-line:#E2DCC6; --mark:#FFF1B8;
  --dates:#2F62B8; --dates-t:#E7EEFA; --money:#0E7A72; --money-t:#E2F3F1;
  --property:#A25E0A; --property-t:#FBF0E1; --rules:#6B4BB8; --rules-t:#EFEAFA;
  --ending:#9A3E6B; --ending-t:#F8E9F0; --danger:#B42318; --danger-ink:#FFFFFF; --danger-t:#FDECEA;
  --shadow:0 1px 2px rgba(19,32,42,.05),0 6px 20px rgba(19,32,42,.07);
  --scrim:#0C1217;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    color-scheme:dark;
    --bg:#0C1217; --surface:#151E25; --surface-2:#1C2730; --line:#283540; --line-2:#3A4A56;
    --ink:#E8EEF2; --ink-2:#A3B3BE; --accent:#7FC4DC; --accent-ink:#0C1217; --accent-tint:#16303A;
    --doc:#1D2327; --doc-line:#3A4046; --mark:#4A4120;
    --dates:#8AB1F0; --dates-t:#1A2740; --money:#5CC8BD; --money-t:#123230;
    --property:#E2A75A; --property-t:#33261A; --rules:#B39BF0; --rules-t:#251F3A;
    --ending:#E28AB5; --ending-t:#3A1F2D; --danger:#F28B82; --danger-ink:#1A0B0A; --danger-t:#3A1C1A;
    --shadow:0 1px 2px rgba(0,0,0,.4),0 8px 24px rgba(0,0,0,.35);
    --scrim:#000000;
  }
}
:root[data-theme="dark"]{
  color-scheme:dark;
  --bg:#0C1217; --surface:#151E25; --surface-2:#1C2730; --line:#283540; --line-2:#3A4A56;
  --ink:#E8EEF2; --ink-2:#A3B3BE; --accent:#7FC4DC; --accent-ink:#0C1217; --accent-tint:#16303A;
  --doc:#1D2327; --doc-line:#3A4046; --mark:#4A4120;
  --dates:#8AB1F0; --dates-t:#1A2740; --money:#5CC8BD; --money-t:#123230;
  --property:#E2A75A; --property-t:#33261A; --rules:#B39BF0; --rules-t:#251F3A;
  --ending:#E28AB5; --ending-t:#3A1F2D; --danger:#F28B82; --danger-ink:#1A0B0A; --danger-t:#3A1C1A;
  --shadow:0 1px 2px rgba(0,0,0,.4),0 8px 24px rgba(0,0,0,.35);
  --scrim:#000000;
}
