/* ============================================================
   CAIRN · SPACING & LAYOUT
   4px base grid. Tight, dense, operator-grade. Cairn UIs pack
   information; whitespace is earned, not default.
   ============================================================ */

:root {
  --space-0:   0;
  --space-1:   2px;
  --space-2:   4px;
  --space-3:   6px;
  --space-4:   8px;
  --space-5:   12px;
  --space-6:   16px;
  --space-7:   20px;
  --space-8:   24px;
  --space-9:   32px;
  --space-10:  40px;
  --space-11:  48px;
  --space-12:  64px;
  --space-13:  80px;
  --space-14:  96px;
  --space-15:  128px;

  /* ---- Radii — small & sharp. Cairn is engineered, not friendly. ---- */
  --radius-0:   0;
  --radius-xs:  2px;
  --radius-sm:  3px;
  --radius-md:  4px;   /* default control radius */
  --radius-lg:  6px;   /* cards / panels */
  --radius-xl:  10px;  /* large surfaces */
  --radius-pill:999px;

  /* ---- Control sizing ---- */
  --control-h-sm: 28px;
  --control-h:    34px;
  --control-h-lg: 42px;

  /* ---- Layout rails ---- */
  --rail-nav:     56px;   /* app icon rail */
  --rail-side:    260px;  /* app sidebar */
  --container:    1200px; /* marketing content width */
  --container-wide:1400px;

  /* ---- Z-index ---- */
  --z-base:    0; /* @kind other */
  --z-raised:  10; /* @kind other */
  --z-sticky:  100; /* @kind other */
  --z-overlay: 1000; /* @kind other */
  --z-toast:   1100; /* @kind other */
}
