/* pv-tokens.v1.css: Sandbox Apps Design System v2 tokens (decision D1, 2026-10-04).
   Pit Viper v2 values (pitviper.turquoise.health, pit-viper-v2.css 2.247.0) as CSS custom
   properties, plus the names older apps already use as aliases so a migration changes
   one <link>. Versioned: never edit in place, copy to pv-tokens.v2.css for breaking changes.

   Usage (first in <head>, before pv-common.v1.css):
     <link rel="stylesheet" href="/play/_static/shared/pv-tokens.v1.css">
   Inter is self-hosted from static.turquoise.health (the same files Pit Viper v2 uses),
   so apps must not also load Inter from Google Fonts. */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap;
  src: url(https://static.turquoise.health/static/fonts/Inter-Regular.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap;
  src: url(https://static.turquoise.health/static/fonts/Inter-Medium.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap;
  src: url(https://static.turquoise.health/static/fonts/Inter-SemiBold.woff2) format("woff2"); }

/* GT Standard M is Turquoise's marketing display face, self-hosted from static.turquoise.health
   (the same files the marketing site uses). Opt-in via --pv-font-display; body text stays Inter. */
@font-face { font-family: "GT Standard M"; font-weight: 400; font-style: normal; font-display: swap;
  src: url(https://static.turquoise.health/static/fonts/GT-Standard-M-Standard-Regular.woff2) format("woff2"); }
@font-face { font-family: "GT Standard M"; font-weight: 500; font-style: normal; font-display: swap;
  src: url(https://static.turquoise.health/static/fonts/GT-Standard-M-Standard-Medium.woff2) format("woff2"); }
@font-face { font-family: "GT Standard M"; font-weight: 600; font-style: normal; font-display: swap;
  src: url(https://static.turquoise.health/static/fonts/GT-Standard-M-Standard-Semibold.woff2) format("woff2"); }

:root {
  /* brand */
  --pv-primary: #16696D;          /* $main-primary: buttons, links, active tabs, focus ring */
  --pv-primary-hover: #0D5256;    /* $main-hover */
  --pv-primary-pressed: #02363D;  /* $main-pressed: also the deep brand for key figures */
  --pv-brand-border: #36C5BA;
  --pv-interactive: #A8E6E1;      /* --color-background-interactive */
  --pv-highlight: #E4F8F6;        /* selected rows, active inputs, chips */
  --pv-brand-accent: #E8F2F4;

  /* neutrals */
  --pv-text: #121313;
  --pv-text-2: #4B595C;           /* subdued */
  --pv-text-3: #6E8081;           /* tertiary: labels, captions */
  --pv-text-4: #89989B;           /* quaternary: 18px+ text only (3.1:1) */
  --pv-text-disabled: #7D898D;
  --pv-stroke: #E3E7EA;           /* $stroke-light */
  --pv-stroke-dark: #D2D8DC;      /* inputs */
  --pv-surface: #F7F8F8;          /* page background */
  --pv-surface-2: #FAFBFB;        /* table header, hover */
  --pv-card: #FFFFFF;
  --pv-inverse: #242626;

  /* semantic */
  --pv-success: #0E8019; --pv-success-bg: #E8FDEA;
  --pv-warning: #B26500; --pv-warning-bg: #FFEED9; --pv-warning-border: #FFA632;
  --pv-error: #FF471A;   --pv-error-bg: #FFEFEB;   --pv-error-border: #FFC4B0;
  --pv-info: #3B4BB5; --pv-info-bg: #EEF0FE;   /* .pv-tag.info, 6.5:1; the indigo of --pv-viz-6 darkened to pass AA (2026-10-05) */

  /* data visualization (pv-data-*-visualization-1..7, reordered to start with primary) */
  --pv-viz-1: #16696D; --pv-viz-2: #36C5BA; --pv-viz-3: #FF7A4E; --pv-viz-4: #C97AEB;
  --pv-viz-5: #F2AD0D; --pv-viz-6: #7C8AF4; --pv-viz-7: #95C54C;
  --pv-up: #0E8019; --pv-down: #FF471A;

  /* shape and type */
  --pv-radius: 4px;               /* controls, tags, buttons */
  --pv-radius-card: 8px;          /* cards, drawers, popovers */
  --pv-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pv-font-display: "GT Standard M", var(--pv-font);  /* opt-in: hero headings, large figures */
  --pv-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --pv-shadow-pop: 0 8px 24px rgba(2, 54, 61, 0.14);
  --pv-shadow-drawer: -8px 0 24px rgba(2, 54, 61, 0.12);
  --pv-main-width: 1500px;
  --pv-drawer-width: 480px;
  --pv-sidebar-width: 240px;

  /* aliases used by the pre-v2 apps and pv-common.css (same names, v2 values) */
  --brand: var(--pv-primary); --highlight: var(--pv-primary); --accent: var(--pv-interactive);
  --bg: var(--pv-card); --bg-alt: var(--pv-surface); --text: var(--pv-text); --muted: var(--pv-text-2);
  --border: var(--pv-stroke); --red: var(--pv-error); --green: var(--pv-success);
}
