/*
 * doctrine.css — brand-free structure for every Periplus room.
 * NO colour value may appear in this file (PH1A-NN2; check-parity.mjs
 * enforces it as COLOR_IN_DOCTRINE). Names and values adopted verbatim from
 * purser/src/app/tokens-doctrine.css (ADR-0030 desk density, ADR-0054 studio
 * ladder) — the reviewed authority for the house's structural scale.
 *
 * Two density ladders ship, both named. A room declares which it is on;
 * the kit does not choose (PH1A-NN6).
 */
:root {
  /* [doctrine] type scale, DESK ladder — dense ~1.09 (10/11/12/13), ×1.23 above.
     Ratio asserted by vectors/check-parity/ok-kit and PH1A-T2. */
  --type--3: 10px;   /* [doctrine] badges */
  --type--2: 11px;   /* [doctrine] table headers, group labels */
  --type--1: 12px;   /* [doctrine] mono data, statusbar */
  --type-0: 13px;    /* [doctrine] body */
  --type-0s: 14px;   /* [doctrine] palette input */
  --type-1: 16px;    /* [doctrine] page h1 */
  --type-1f: 13px;   /* [doctrine] fluid lede (desk: fixed) */
  --type-2: 22px;    /* [doctrine] tile values */
  --type-2f: 16px;   /* [doctrine] fluid rail steps (desk: fixed) */
  --type-3: 18px;    /* [doctrine] reserved larger step */
  --type-4: 24px;    /* [doctrine] reserved display step */
  --type-4s: 20px;   /* [doctrine] reserved sub-display step */
  --type-5: 28px;    /* [doctrine] reserved hero step */

  /* [doctrine] spacing scale — 4px base */
  --space-1: 4px;   /* [doctrine] */
  --space-2: 8px;   /* [doctrine] */
  --space-3: 12px;  /* [doctrine] */
  --space-4: 16px;  /* [doctrine] */
  --space-5: 24px;  /* [doctrine] */
  --space-6: 32px;  /* [doctrine] */
  --space-7: 48px;  /* [doctrine] */
  --space-8: 64px;  /* [doctrine] */
  --space-9: 96px;  /* [doctrine] */

  /* [doctrine] radii — small, tool-like */
  --radius-1: 3px;      /* [doctrine] controls, badges, cards */
  --radius-2: 4px;      /* [doctrine] tiles, board columns */
  --radius-3: 6px;      /* [doctrine] dialogs */
  --radius-4: 8px;      /* [doctrine] reserved large frame */
  --radius-pill: 999px; /* [doctrine] reserved pill */

  /* [doctrine] motion durations */
  --dur-1: 120ms;  /* [doctrine] press/keyboard feedback */
  --dur-2: 200ms;  /* [doctrine] hover */
  --dur-3: 350ms;  /* [doctrine] dialog entrance */
  --dur-4: 700ms;  /* [doctrine] reserved reveals */
  --dur-count: 1.6s;   /* [doctrine] reserved counters */
  --dur-amb-1: 2.4s;   /* [doctrine] reserved ambient */
  --dur-amb-2: 5.6s;   /* [doctrine] reserved ambient */
  --dur-marquee: 46s;  /* [doctrine] reserved crawl */
  --dur-pan: 300ms;    /* [doctrine] canvas pan */

  /* [doctrine] motion easings */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);   /* [doctrine] hover, dialogs */
  --ease-swift: cubic-bezier(0.2, 0.8, 0.2, 1); /* [doctrine] large moves */
  --ease-linear: linear;                        /* [doctrine] pulses */
  --ease-amb: ease-in-out;                      /* [doctrine] reserved ambient */
  --ease-stamp: steps(4, end);                  /* [doctrine] reserved stop-motion */

  /* [doctrine] z-layers */
  --z-status: 30;  /* [doctrine] statusbar */
  --z-overlay: 40; /* [doctrine] dialog scrim */
  --z-nav: 50;     /* [doctrine] shell nav (sticky) */
  --z-ghost: 60;   /* [doctrine] drag ghost */

  /* [doctrine] focus ring geometry */
  --focus-width: 2px;  /* [doctrine] */
  --focus-offset: 1px; /* [doctrine] */

  /* [doctrine] STUDIO ladder — ADR-0054: larger named steps for canvas and
     composer rooms; the only sanctioned deviation from the desk ladder. */
  --studio-type-0: 14px;   /* [doctrine] studio body/node label */
  --studio-type-1: 18px;   /* [doctrine] studio panel headings */
  --studio-type-2: 24px;   /* [doctrine] studio figure values */
  --studio-space-1: 8px;   /* [doctrine] studio inner padding */
  --studio-space-2: 16px;  /* [doctrine] studio block gap */
  --studio-space-3: 28px;  /* [doctrine] studio section gap */
  --studio-node-w: 240px;  /* [doctrine] flow node width */
  --studio-row-h: 32px;    /* [doctrine] studio list row height */
  --studio-bar-gap: 2px;   /* [doctrine] gap between chart marks */
  --studio-bar-h: 12px;    /* [doctrine] funnel/matrix bar height */
  --studio-port: 8px;      /* [doctrine] flow node connection port diameter */
  --studio-label-gap: 4px; /* [doctrine] gap between a label and its control */
  --studio-node-shadow: 0 1px 4px; /* [doctrine] node hover lift (offsets+blur; colour is a role token) */
  --studio-card-w: 260px;  /* [doctrine] attribution card min width */
  --studio-frame-h: 420px; /* [doctrine] composer preview iframe height */
  --studio-pane-w: 360px;  /* [doctrine] composer preview pane min width */
  --studio-track-caps: 0.04em; /* [doctrine] letterspacing for small-caps status pills */

  /* [doctrine] DESK density — ADR-0030 dense rows */
  --row-h: 22px;     /* [doctrine] table row height */
  --row-pad-y: 2px;  /* [doctrine] row vertical padding */
  --row-pad-x: 8px;  /* [doctrine] row horizontal padding */
  --cell-pad: 8px;   /* [doctrine] cell padding */
}
