/*
 * Beam CSS variables — controls and radii.
 *
 * VARIABLES ONLY. No selector in this file renders or overrides anything; it
 * declares custom properties and nothing else. That is the contract the name
 * carries, and css_foundation_test.clj enforces it.
 *
 * This is one of three, split by domain on 23 September 2026 because the single
 * file it came from was called tokens.css and "token" means four different
 * things in this repo — the anti-forgery token on every form POST, the preview
 * and API auth tokens, this, and @beam/input-ui/tokens.css which the islands
 * import and which is a different file entirely. Same values, same names,
 * findable by what they are:
 *
 *   vars-colour.css   surfaces, text, borders, --status-*, charts, scrim
 *   vars-layout.css   spacing, drawer and globals widths, z-index
 *   vars-control.css  radii, control heights and padding, component sizing
 *
 * THE TYPE SCALE IS NOT HERE and never was. resources/styleguide.css owns
 * --headings-large-* and --body-*, and specs/presentation.allium
 * (TypographyPresentation) is its behavioural contract. Brand ramps
 * (--primary-*, --secondary-*, --dark-*, --light-*, --alert-*) are owned by
 * resources/tailwind.css. Where sources disagree, styleguide.css is canonical.
 *
 * Names are UNCHANGED by the split: every var() that resolved before resolves
 * now. Only the file a name lives in, and the <link> that pulls it in, moved.
 *
 * Placeholders with no platform precedent: --radius-xl, --radius-tooltip.
 *
 * Score chips are two sizes and only two (Listy, 23 September 2026): large for
 * the vendor rating and Overall Score, normal for everything else. The design
 * system carries the rule; when those chips stop being page CSS their sizes
 * belong here.
 */

:root {
  --select-badge-border-width: 1.5px; /* UX-05 Compare select badge: preserve the approved outline weight. */
  --cbt-mockup-unit: calc(1px / 1.5); /* CBT and Selected System headers: one pixel in the 1.5x mockup. */
  --border-width-medium: 1.5px; /* Existing compact info/add button stroke. */
  --rec-font-tiny: 10px; /* Existing weighting percentages and info glyph. */
  --rec-font-caption: 11px; /* Existing chart ticks and category badges. */
  --rec-font-label: 13px; /* Existing legend and ranking labels. */
  --rec-font-icon: 15px; /* Existing compact add/remove icon. */
  --rec-system-line-height: 21px; /* Existing category heading line height. */
  --rec-bar-height: 22px; /* Existing weighting bar and ranking dot. */
  --rec-dot-total-height: 26px;
  --rec-dot-min-width: 34px;
  --rec-dot-total-min-width: 42px;
  --rec-table-row-height: 44px;
  --border-width-thin: 1px; /* Existing recommendation dialog/table hairline. */
  --rec-chip-border-width: 1.25px; /* Preserve the recommendation chip's existing stroke. */
  --rec-chip-gap: 0.4em; /* Chip spacing scales with the host's font size. */
  --rec-chip-pad-y: 0.2em; /* Preserve chip height across card, grid and tooltip scales. */
  --rec-chip-pad-right: 1.2em; /* Room for the superscript information button. */
  --rec-chip-pad-left: 0.55em; /* Existing chip label inset. */
  --rec-chip-radius: 0.45em; /* Existing font-relative chip corner radius. */
  --rec-info-top: 0.18em; /* Preserve the chip information button's top inset. */
  --rec-info-right: 0.22em; /* Preserve the chip information button's right inset. */
  --rec-info-size: 0.78em; /* Square information button scales with the chip font. */
  --rec-hover-header-gap: 0.5em; /* Space between the chart header and its chips. */
  --rec-cbt-label-gap: 0.6em; /* Space between expanded CBT labels and chips. */
  /* Radii and controls. Values observed in site-setup.css and Tailwind markup. */
  --radius-xs: 2px; /* site-setup.css load-canvas legend swatch */
  --radius-sm: 4px; /* output.css .btn-* border-radius .25rem */
  --radius-md: 6px; /* site-setup.css segmented control and modal header */
  --radius-lg: 8px; /* site-setup.css map marker override */
  --radius-xl: 12px; /* platform idiom placeholder; no shared precedent */
  --radius-button: var(--radius-sm); /* output.css .btn-* */
  --radius-input: var(--radius-sm); /* full-systems-table.html rounded inputs/buttons */
  --radius-modal: var(--radius-md); /* site-setup.css modal header */
  --radius-tooltip: var(--radius-sm); /* new — no platform precedent */
  --systems-select-width: 180px; /* Fixed Contracts and Rank by dropdown width. */
  --globals-table-number-width: 9rem; /* Existing variables table numeric control width. */
  --control-height: 40px; /* output.css .btn-* height 2.5rem; FST buttons */
  --control-height-icon-compact: 26px; /* Compact icon buttons fit a 34px table row. */
  --control-height-sm: 36px; /* site-setup.css segmented button min-height */
  --control-pad-x: 20px; /* output.css .btn-* px 1.25rem */
  --control-pad-y: 4px; /* output.css .btn-* py .25rem */
  --tab-underline-width: 3px; /* components.css .workflow-tabs__tab border-bottom */
  --dropdown-menu-max-height: 320px; /* established energy-systems dropdown height */
  --table-header-font-size: var(--body-small-regular-font-size); /* 12px */
  --table-header-font-weight: 600;
  /* Shared ag-grid theme (WP-06). The sites list and Compare Systems each carried their own
     ad-hoc `--ag-*` block; comparing them showed they ALREADY AGREE on these six values and were
     simply re-declaring them (with `#35475C` hardcoded in both, and the header background spelled
     `#fff` in one and `#FFFFFF` in the other). Extracted here so there is one place to change,
     with the tokenisable value tokenised. Values the two grids genuinely disagree on — row
     hover, selected-row tint, row borders, row height — stay local to each grid, because those
     are visual decisions owned by WP-07 and WP-09 respectively, not shared theme. */
  --ag-beam-header-height: 40px; /* sites-grid.css + energy-systems-grid.css agreed */
  --ag-beam-font-size: 12px; /* both */
  --ag-beam-grid-borders: none; /* both */
}
