/* FabLine shared design tokens
 *
 * One source of truth for the roles the product system speaks in. Loaded by
 * both the public frontend and PrintOps.
 *
 * Custom properties are used deliberately: they cannot collide with class
 * names, so this foundation can be shared today while the two surfaces still
 * define 19 identically-named classes with different values. Those renames wait
 * until something actually needs to share a class.
 *
 * The complete-site CIS uses these roles as the canonical palette. Surface
 * aliases reference them while workflow-specific semantic states stay intact.
 */

:root {
  /* --- Spacing scale ----------------------------------------------------- */
  --fl-space-1: 0.25rem;
  --fl-space-2: 0.5rem;
  --fl-space-3: 0.75rem;
  --fl-space-4: 1rem;
  --fl-space-5: 1.5rem;
  --fl-space-6: 2rem;
  --fl-space-7: 3rem;
  --fl-space-8: 4rem;

  /* --- Type scale -------------------------------------------------------- */
  --fl-font-size-caption: 0.8125rem;
  --fl-font-size-label: 0.875rem;
  --fl-font-size-body: 1rem;
  --fl-font-size-body-lg: 1.125rem;
  --fl-font-size-title: 2rem;
  --fl-font-size-display: 3rem;
  --fl-line-height-tight: 1.2;
  --fl-line-height-body: 1.6;

  /* --- Density ----------------------------------------------------------- *
   * One design language, three densities: comfortable for the public site,
   * standard for the member HUB, compact for PrintOps. Surfaces override
   * --fl-density-* rather than redefining component padding.
   */
  --fl-density-row: 44px;
  --fl-density-gap: var(--fl-space-3);
  --fl-density-pad: var(--fl-space-4);

  /* --- Colour roles ------------------------------------------------------ *
   * Defaults are the public frontend's current values. PrintOps overrides the
   * ones it renders differently, in its own :root block, so nothing shifts.
   */
  --fl-color-bg: #f5f8fc;
  --fl-color-surface: #ffffff;
  --fl-color-surface-muted: #f5f8fc;
  --fl-color-border: #dce4f0;
  --fl-color-text: #0d1729;
  --fl-color-text-muted: #596a82;
  --fl-color-brand: #0066ff;
  --fl-color-brand-hover: #004ed1;
  --fl-color-accent: #2e8c86;
  --fl-color-success: #137365;
  --fl-color-warning: #9a5a13;
  --fl-color-danger: #b24755;

  --fl-radius-sm: 6px;
  --fl-radius-md: 8px;
  --fl-radius-lg: 8px;
  --fl-shadow-sm: 0 6px 18px rgba(13, 17, 23, 0.06);
  --fl-shadow-md: 0 12px 32px rgba(13, 17, 23, 0.08);
}

/* PrintOps changes density only; shared components use the same semantic colors.
 * Verified by public/member/PrintOps computed-style canaries in TASK-025.
 */
body[data-surface="printops"],
.app-shell {
  /* Compact density: operational screens carry more rows per screen. */
  --fl-density-row: 36px;
  --fl-density-gap: var(--fl-space-2);
  --fl-density-pad: var(--fl-space-3);
}
