/**
 * ADAM CMS design tokens — single source of truth.
 * Refined editorial / clinical knowledge-work palette.
 * Fonts: loaded via includes/cms-fonts.htm (not @import — avoids render-blocking chain).
 */

:root {
  /* Surfaces */
  --cms-surface: #ffffff;
  --cms-surface-warm: #f7f5f0;
  --cms-surface-muted: #eef1f4;

  /* Brand */
  --cms-ink: #1a2332;
  --cms-ink-muted: #4a5568;
  --cms-accent: #2d6a6a;
  --cms-accent-hover: #245656;
  --cms-accent-warm: #c4a35a;
  --cms-accent-login: #2d6a6a;

  /* Legacy role mappings (CMS.css compatibility) */
  --cms-chrome: #d8e0e8;
  --cms-chrome-border: #9aa8b8;
  --cms-header-bg: #3d4f63;
  --cms-header-text: #ffffff;
  --cms-header-title: #3d4f63;
  --cms-row-hover: #e8f0f8;
  --cms-error: #b42318;

  /* Typography */
  --cms-font-ui: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
  --cms-font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --cms-font-size-base: 10pt;
  --cms-font-size-header: 12pt;
  --cms-font-size-menu: 9pt;

  /* Shell */
  --cms-menu-height: 36px;
  --cms-menu-bg: #1a2332;
  --cms-menu-text: #e8ecf0;
  --cms-menu-active: #2d6a6a;
  --cms-menu-hover: #2a3548;
  --cms-radius: 4px;
  --cms-shadow: 0 1px 3px rgba(26, 35, 50, 0.12);

  /* Motion */
  --cms-transition-fast: 0.15s ease;
  --cms-transition-med: 0.25s ease;

  /* Layout */
  /* Fallback when .cms-list-shell is not used */
  --cms-results-max-height: min(65vh, 650px);
  /* Main.aspx shell: measured header height (see syncShellHeaderHeight in Main.aspx) */
  --cms-app-header-height: 52px;
  --cms-edit-chrome-inset-fallback: 0px;
  --cms-frame-top-inset: 0px;
  --cms-list-viewport-height: 100%;
  --cms-focus-ring: 0 0 0 2px rgba(45, 106, 106, 0.35);
}
