/* cellpatri — design tokens (colour option C2 "Warm stone" with the teal-green accent, decision C-4).
   Harvested from 07_prototype/css/tokens.css; this is the only token set the portal ships.
   Measured contrast: white on accent 6.32:1, accent on bg 5.96:1, hover 8.75:1 (all AA). */

:root {
  /* Surfaces and text */
  --cp-bg: #FAF8F4;
  --cp-panel: #FFFFFF;
  --cp-panel-2: #F1EDE6;          /* subtle secondary surface: skeletons, table headers, code */
  --cp-text: #2B2622;
  --cp-muted: #5F574F;

  /* Accent (primary buttons, selected navigation, focus ring) and links */
  --cp-accent: #1F6B5E;
  --cp-accent-hover: #185448;
  --cp-accent-soft: #E3EFEB;      /* tint behind selected rows / current checklist item */
  --cp-link: #1F5C8A;

  /* Borders */
  --cp-border: #E4DED5;           /* separators, decorative */
  --cp-border-input: #7A8697;     /* input borders: ≥ 3:1 on all backgrounds */

  /* Semantic colours — always accompanied by text and an icon */
  --cp-success: #1B7F3B;
  --cp-warning: #9A5B00;
  --cp-danger: #B3261E;
  --cp-success-soft: #ECF8EF;
  --cp-warning-soft: #FFF7E6;
  --cp-danger-soft: #FDECEC;
  --cp-info-soft: #E3EFEB;

  /* Status chips (text on background) */
  --chip-success-fg: #14532D; --chip-success-bg: #DCFCE7;
  --chip-warning-fg: #7C3A00; --chip-warning-bg: #FEF3C7;
  --chip-danger-fg:  #7F1D1D; --chip-danger-bg:  #FEE2E2;
  --chip-info-fg:    #0F3F3B; --chip-info-bg:    #D5F0EC;
  --chip-neutral-fg: var(--cp-text); --chip-neutral-bg: #E8EEF4;

  /* Focus, radius, spacing */
  --cp-focus-width: 2px;
  --cp-focus-offset: 2px;
  --cp-radius: 6px;
  --cp-radius-lg: 10px;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px;

  /* Typography (brief §11.4): Inter first, Source Sans 3 second, then system fonts. No webfont files are shipped. */
  --cp-font: Inter, "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cp-font-mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --fs-title: 30px;   /* page titles 28–32 px, semibold */
  --fs-h2: 22px;      /* section headings 20–24 px, semibold */
  --fs-h3: 18px;
  --fs-body: 16px;    /* body and inputs */
  --fs-small: 14px;   /* secondary labels, table content */
  --lh-body: 1.55;

  /* Layout */
  --nav-width: 240px;
  --header-height: 64px;
  --content-max: 1120px;
  --form-max: 720px;
  --control-height: 44px;

  /* Scientific palette (separate from brand; colourblind-safe; Okabe–Ito order).
     A cell type keeps its colour across related figures. Never used for UI meaning. */
  --sci-1: #0072B2; --sci-2: #E69F00; --sci-3: #009E73; --sci-4: #CC79A7;
  --sci-5: #56B4E9; --sci-6: #D55E00; --sci-7: #F0E442; --sci-8: #999999;
  --sci-seq-low: #D5F0EC; --sci-seq-mid: #4FA8A0; --sci-seq-high: #0B4F4A;
}
