/* MSK PACS design tokens. Loaded first on every page (OHIF shell and the
   standalone upload / admin / share / spine3d pages). See ohif/DESIGN.md.
   Change a value here and in the DESIGN.md frontmatter together. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Mono";
  src: url("/fonts/atkinson-hyperlegible-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Header band: the one bold element. Lime only lives on the band. */
  --msk-band: #081a2e;
  --msk-signal: #9fcc3b;

  /* Page ground (Dr. Yoo's desaturated cyan-blue). Never behind text. */
  --msk-ground-1: #9bc4dc;
  --msk-ground-2: #5e9bbd;
  --msk-ground-3: #3d729a;
  --msk-ground: linear-gradient(160deg, var(--msk-ground-1) 0%, var(--msk-ground-2) 50%, var(--msk-ground-3) 100%);

  /* Light surfaces */
  --msk-surface: #ffffff;
  --msk-surface-2: #f3f6f9;
  --msk-line: #d5dee7;
  --msk-line-soft: #e6ecf1;
  --msk-field-line: #b6c4d2;

  /* Accent (MSK cobalt, same as the Medplum EHR) */
  --msk-accent: #1468b0;
  --msk-accent-strong: #0e4f8a;
  --msk-accent-tint: #e6eff8;

  /* Text on light surfaces. --msk-ink-3 is the lightest allowed for text. */
  --msk-ink: #13263a;
  --msk-ink-2: #3f5367;
  --msk-ink-3: #5a6e82;

  /* Reading room (viewer) */
  --msk-reading: #0b1626;
  --msk-panel: #0d2137;
  --msk-panel-line: #1f3a55;
  --msk-panel-ink: #dce7f1;
  --msk-panel-ink-2: #a9bccd;

  /* Status: semantic only */
  --msk-ok: #1e7a4a;
  --msk-ok-tint: #e3f3ea;
  --msk-warn: #8a5a00;
  --msk-warn-tint: #fbf0d9;
  --msk-err: #b42318;
  --msk-err-tint: #fbe7e5;

  /* Shape */
  --msk-r-control: 4px;
  --msk-r-card: 8px;
  --msk-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);

  /* Type */
  --msk-ui: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --msk-data: "Atkinson Hyperlegible Mono", "Cascadia Mono", Consolas, monospace;
}

::selection { background: #c7dcf0; color: var(--msk-ink); }
