/* adia:primitive/size — Component / chrome / icon sizing primitives (L1).
   Component heights scale with --a-density (registered in space.css).
   Chrome heights are fixed structural measurements (not density-scaled).
   Moved verbatim out of tokens.css (v0.6.48 foundation reorg, ADR-0035). */

:root {
  /* ── Sizing (component heights) ──
     Heights scale with density via the space tokens. */
  --a-size-sm: calc(var(--a-density) * 1.5rem); /* 24px at d=1 */
  --a-size-md: calc(var(--a-density) * 1.875rem); /* 30px at d=1 */
  --a-size-lg: calc(var(--a-density) * 2.25rem); /* 36px at d=1 */
  --a-size: var(--a-size-md);

  /* ── Chrome heights — global app/feature UI ──
     App-level chrome (top-level headers, footers, toolbars) is 48px;
     pane-level chrome (pane headers, footers, toolbars) is 36px.
     Fixed values — these are structural measurements, not typographic,
     so they don't scale with --a-density. */
  --a-chrome-app-header-height:   48px;
  --a-chrome-app-footer-height:   48px;
  --a-chrome-app-toolbar-height:  48px;
  --a-chrome-pane-header-height:  36px;
  --a-chrome-pane-footer-height:  36px;
  --a-chrome-pane-toolbar-height: 36px;

  /* ── Toggle-control size (check, radio, switch) ──
     Tighter additive scale than --a-size: 16 / 20 / 24 px at d=1. */
  --a-toggle-size: calc(var(--a-size-sm) - var(--a-space-1)); /* 20px at d=1 — md default */

  /* ── Icon / caret ── */
  --a-icon-size: 1.00rem;
  --a-caret-size: 0.875rem;
}
