/* Copied from medical-personal-vault-ui@37f37ef static/style.css - do not edit here; re-copy. */

/* One file, on purpose - a handful of screens don't need a design system.
   The tokens come first and everything below reads from them: change a value
   here and every screen follows. Every text/background pair that matters was
   measured against WCAG 2.2 AA (4.5:1 for text, 3:1 for control edges and
   focus rings) in both colour schemes. */

/* One self-hosted OFL face, Geist (variable weight, 29 KB), for headings and
   body alike. Nothing here is fetched from a third party, and the fallbacks
   are the platform's own sans. */
@font-face {
  font-family: "Geist";
  src: url("/static/fonts/geist-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  /* Colour: surfaces */
  --canvas: #f5f8fb;
  --surface: #ffffff;
  --surface-sunk: #ebf0f6;
  --line: #dbe4ee;          /* hairline between rows: decorative only */
  --line-strong: #5b6e82;   /* control edges: 3:1 or better on every surface */

  /* Colour: text */
  --ink: #0b1a2a;
  --ink-muted: #46586b;

  /* Colour: brand. The primary action is ink on white, not blue: it is the one
     thing on the page that should look like a decision. */
  --cta: #0b1a2a;
  --cta-hover: #23384e;
  --on-cta: #ffffff;
  --brand: #0a58b0;
  --brand-hover: #07458b;
  --on-brand: #ffffff;
  --link: #0a58b0;
  --focus: #0a58b0;

  /* Colour: states */
  --error-bg: #fdecea;
  --error-ink: #611a15;
  --notice-bg: #eaf3fb;
  --notice-ink: #0b1a2a;

  /* Colour: kind badges (text + tint, never colour alone: the word is there) */
  --kind-visit-bg: #dcebfb;      --kind-visit-ink: #0b3f7a;
  --kind-document-bg: #e4eaf0;   --kind-document-ink: #2a3c4d;
  --kind-diagnosis-bg: #d6f1ed;  --kind-diagnosis-ink: #0a4f4a;
  --kind-lab-bg: #d5eef7;        --kind-lab-ink: #0a4660;
  --kind-prescription-bg: #fbe9c8; --kind-prescription-ink: #653b00;

  /* Type */
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --step--1: 1.0625rem;                                   /* meta, 17px */
  --step-0: 1.125rem;                                     /* body, 18px */
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 1.5rem + 2vw, 2.75rem);           /* screen title */
  --leading: 1.55;

  /* Space: a 4px grid in rem */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 7rem;

  /* Shape. Eight pixels at most; the small radius is for inline labels only.
     Nothing casts a shadow: surfaces are told apart by a hairline. */
  --radius: 0.5rem;
  --radius-sm: 0.25rem;

  --target: 2.75rem;        /* 44px minimum hit area */
  --nav-height: 3.75rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --canvas: #070f18;
    --surface: #0f1b29;
    --surface-sunk: #0b1622;
    --line: #223548;
    --line-strong: #8296ab;

    --ink: #e9f1f8;
    --ink-muted: #b0bdcc;

    --cta: #f1f6fb;
    --cta-hover: #cfe0f0;
    --on-cta: #07121e;
    --brand: #7db9ff;
    --brand-hover: #a3cdff;
    --on-brand: #04152a;
    --link: #8cc2ff;
    --focus: #8cc2ff;

    --error-bg: #3a1613;
    --error-ink: #ffd9d4;
    --notice-bg: #112a42;
    --notice-ink: #e9f1f8;

    --kind-visit-bg: #17304d;      --kind-visit-ink: #bcdcff;
    --kind-document-bg: #223344;   --kind-document-ink: #cfdbe7;
    --kind-diagnosis-bg: #12403c;  --kind-diagnosis-ink: #aef0e6;
    --kind-lab-bg: #123a4d;        --kind-lab-ink: #b4e6f7;
    --kind-prescription-bg: #4a3410; --kind-prescription-ink: #ffdfa0;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --canvas: #070f18;
  --surface: #0f1b29;
  --surface-sunk: #0b1622;
  --line: #223548;
  --line-strong: #8296ab;

  --ink: #e9f1f8;
  --ink-muted: #b0bdcc;

  --cta: #f1f6fb;
  --cta-hover: #cfe0f0;
  --on-cta: #07121e;
  --brand: #7db9ff;
  --brand-hover: #a3cdff;
  --on-brand: #04152a;
  --link: #8cc2ff;
  --focus: #8cc2ff;

  --error-bg: #3a1613;
  --error-ink: #ffd9d4;
  --notice-bg: #112a42;
  --notice-ink: #e9f1f8;

  --kind-visit-bg: #17304d;      --kind-visit-ink: #bcdcff;
  --kind-document-bg: #223344;   --kind-document-ink: #cfdbe7;
  --kind-diagnosis-bg: #12403c;  --kind-diagnosis-ink: #aef0e6;
  --kind-lab-bg: #123a4d;        --kind-lab-ink: #b4e6f7;
  --kind-prescription-bg: #4a3410; --kind-prescription-ink: #ffdfa0;
}

:root[data-theme="light"] {
  color-scheme: light;
}