/* Region Midtjylland colour theme. Active when <html data-brand="region-midtjylland">.
   Staff side uses the region's bordeaux (logo colour), the patient side the green from rm.dk,
   and surfaces use rm.dk's lavender tints. Bubble tints are deliberately not pink, so they
   can never be mistaken for the red "translation not possible" state. All pairs meet WCAG AA. */

:root[data-brand="region-midtjylland"] {
  --color-canvas: #ececf4;
  --color-surface: #ffffff;
  --color-sunken: #f6f6fb;
  --color-ink: #212121;
  --color-muted: #5d5d6b;
  --color-line: #dcdce7;
  --color-line-strong: #c4c4d4;
  --color-focus: #ffc72e;

  --color-staff: #990033;
  --color-staff-tint: #ededf4;
  --color-staff-ink: #7d0029;
  --color-on-staff: #ffffff;

  --color-patient: #5f6c4b;
  --color-patient-tint: #e7ebe1;
  --color-patient-ink: #4a5638;
  --color-on-patient: #ffffff;
}

:root[data-brand="region-midtjylland"][data-theme="dark"] {
  --color-canvas: #111116;
  --color-surface: #1b1b22;
  --color-sunken: #16161c;
  --color-ink: #ececf2;
  --color-muted: #a3a3b3;
  --color-line: #2c2c38;
  --color-line-strong: #3d3d4c;

  --color-staff: #e2557a;
  --color-staff-tint: #2a1d27;
  --color-staff-ink: #f2a5b9;
  --color-on-staff: #1a0510;

  --color-patient: #a9b98f;
  --color-patient-tint: #232a1b;
  --color-patient-ink: #c9d6b2;
  --color-on-patient: #141a0c;
}

@media (prefers-color-scheme: dark) {
  :root[data-brand="region-midtjylland"]:not([data-theme="light"]) {
    --color-canvas: #111116;
    --color-surface: #1b1b22;
    --color-sunken: #16161c;
    --color-ink: #ececf2;
    --color-muted: #a3a3b3;
    --color-line: #2c2c38;
    --color-line-strong: #3d3d4c;

    --color-staff: #e2557a;
    --color-staff-tint: #2a1d27;
    --color-staff-ink: #f2a5b9;
    --color-on-staff: #1a0510;

    --color-patient: #a9b98f;
    --color-patient-tint: #232a1b;
    --color-patient-ink: #c9d6b2;
    --color-on-patient: #141a0c;
  }
}

/* Chart tokens (see app.css): the single-series hue follows the bordeaux, and the ordered ramp for score buckets is four steps of it,
   validated light to dark against the region's surfaces. */
:root[data-brand="region-midtjylland"] {
  --viz-ord-1: #d4809b;
  --viz-ord-2: #bb4d74;
  --viz-ord-3: #990033;
  --viz-ord-4: #5e001f;
}
:root[data-brand="region-midtjylland"][data-theme="dark"] {
  --viz-ord-1: #8a3352;
  --viz-ord-2: #b84569;
  --viz-ord-3: #e2557a;
  --viz-ord-4: #f49ab4;
}
@media (prefers-color-scheme: dark) {
  :root[data-brand="region-midtjylland"]:not([data-theme="light"]) {
    --viz-ord-1: #8a3352;
    --viz-ord-2: #b84569;
    --viz-ord-3: #e2557a;
    --viz-ord-4: #f49ab4;
  }
}
