/* PRISM token extensions.
 *
 * Everything the approved design system export (tokens.css, untouched) does not
 * define but the build needs.  Same selectors as tokens.css, so both themes are
 * covered: dark on :root and [data-theme="dark"], light on [data-theme="light"].
 * Each addition is listed in docs/prism/design-system-additions.md.
 *
 * Sources
 *   rgb triples            derived from the hex values in tokens.css
 *   amber ramp             board A30 "Amber ramp, six values" (owner decision, D43)
 *   environment marker     board A30 and spec-text/6-environments.md
 *   motion                 the export's components/bundle.css :root block (values copied
 *                          exactly; tokens.css omits them) and docs/03-themes-and-tokens.md
 *   text on warning        the export's bundle.css .pr-banner--live ink (#0f172a), named
 */
:root, [data-theme="dark"] {
  /* Department accents as r, g, b for rgba(var(--x), a). Match the -fill tokens. */
  --pr-dept-ops-rgb: 245, 158, 11;
  --pr-dept-maint-rgb: 139, 92, 246;
  --pr-dept-mkt-rgb: 6, 182, 212;
  --pr-dept-hr-rgb: 16, 185, 129;
  --pr-dept-none-rgb: 100, 116, 139;
  /* Favorable / unfavorable as r, g, b. Match --pr-delta-fav / --pr-delta-unfav. */
  --pr-delta-fav-rgb: 34, 197, 94;
  --pr-delta-unfav-rgb: 239, 68, 68;
  --color-positive-rgb: var(--pr-delta-fav-rgb);
  --color-negative-rgb: var(--pr-delta-unfav-rgb);

  /* Amber sequential ramp, lightest step first: --pr-dept-ops-fill mixed into --pr-surface-nested at 10, 26, 44, 62, 80, 100 percent. */
  --pr-seq-amber-1: #302b25;
  --pr-seq-amber-2: #533f20;
  --pr-seq-amber-3: #7a561b;
  --pr-seq-amber-4: #a26d16;
  --pr-seq-amber-5: #c98411;
  --pr-seq-amber-6: #f59e0b;

  /* Environment marker (beta strip, local strip, withheld-action note). */
  --pr-env-fill: #f0abfc;
  --pr-env-text: #4a044e;
  --pr-env-hatch: #a21caf;
  --pr-env-line: #f0abfc;

  /* Ink on --pr-warning-fill (live banner). The export writes #0f172a in both themes. */
  --pr-text-on-warning: #0f172a;
}
[data-theme="light"] {
  --pr-dept-ops-rgb: 194, 112, 10;
  --pr-dept-maint-rgb: 124, 58, 237;
  --pr-dept-mkt-rgb: 8, 145, 178;
  --pr-dept-hr-rgb: 5, 150, 105;
  --pr-dept-none-rgb: 100, 116, 139;
  --pr-delta-fav-rgb: 22, 101, 52;
  --pr-delta-unfav-rgb: 185, 28, 28;
  --color-positive-rgb: var(--pr-delta-fav-rgb);
  --color-negative-rgb: var(--pr-delta-unfav-rgb);

  --pr-seq-amber-1: #eee8e1;
  --pr-seq-amber-2: #e6d2bb;
  --pr-seq-amber-3: #ddba90;
  --pr-seq-amber-4: #d5a365;
  --pr-seq-amber-5: #cc8b3a;
  --pr-seq-amber-6: #c2700a;

  --pr-env-fill: #86198f;
  --pr-env-text: #ffffff;
  --pr-env-hatch: #d946ef;
  --pr-env-line: #86198f;

  --pr-text-on-warning: #0f172a;
}
/* Theme-independent. */
:root {
  --pr-env-height: 28px; /* 32px under .pr-phone */

  /* Motion, from the export's components/bundle.css. Theme-independent, so one
     definition on :root covers both themes. Exit uses --pr-dur-fast (the docs:
     "things leaving (at 150ms)"). */
  --pr-dur-instant: 0ms;
  --pr-dur-fast: 150ms;
  --pr-dur-base: 250ms;
  --pr-dur-expand: 350ms;
  --pr-dur-slow: 400ms;
  --pr-dur-skeleton: 1500ms;
  --pr-dur-toast: 5000ms;
  --pr-ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --pr-ease-enter: cubic-bezier(0, 0, 0.2, 1);
  --pr-ease-exit: cubic-bezier(0.4, 0, 1, 1);
}
@media (max-width: 768px) { body { --pr-env-height: 32px; } }
.pr-phone { --pr-env-height: 32px; }
