/* ============================================================================
   Cosmos primitives — theme-invariant.
   Typography, geometry and density. NO palette tokens: a theme must never need
   to restate these, and ThemeCompletenessTests.Primitives_DeclareNoPaletteTokens
   enforces the separation.
   Absorbs the former Cosmos.Common.AspNetCore.Compact.css.
   ============================================================================ */
:root {
  /* Type */
  --cosmos-font-sans: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --cosmos-font-code: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

  /* Geometry */
  --cosmos-radius-sm:   4px;
  --cosmos-radius-md:   7px;
  --cosmos-radius-lg:   12px;
  --cosmos-radius-pill: 999px;

  /* Spacing */
  --cosmos-space-1: 4px;
  --cosmos-space-2: 8px;
  --cosmos-space-3: 12px;
  --cosmos-space-4: 16px;
  --cosmos-space-5: 24px;
  --cosmos-space-6: 32px;
}

/* DataGrid geometry + density. Values lifted verbatim from the former
   DataGrid.css blocks so row heights do not shift. */
:root,
[data-density="comfortable"] {
  --cosmos-table-cell-font-size:   0.8125rem;  /* 13px */
  --cosmos-table-header-font-size: 0.75rem;    /* 12px */
  --cosmos-table-cell-pad-y:       7px;
  --cosmos-table-cell-pad-x:       10px;
  --cosmos-table-row-line:         1.4;
  --cosmos-table-gutter-x:         1.5rem;
  --cosmos-table-gutter-y:         0.5rem;
}

[data-density="compact"] {
  --cosmos-table-cell-font-size:   0.7rem;     /* 11px */
  --cosmos-table-header-font-size: 0.65rem;    /* ~10px */
  --cosmos-table-cell-pad-y:       4px;
  --cosmos-table-cell-pad-x:       8px;
  --cosmos-table-row-line:         1.3;
  --cosmos-table-gutter-x:         1rem;
  --cosmos-table-gutter-y:         0.25rem;
}
