/* WeeGo design tokens. Keep value changes separate from component styling. */
:root {
  color-scheme: light;

  /* Foundations: palette, typography, and base geometry. */
  --weego-color-ink: #0e1013;
  --weego-color-text: #171a1f;
  --weego-color-text-secondary: #545c67;
  --weego-color-muted: #737b87;
  --weego-color-white: #ffffff;
  --weego-color-black: #000000;
  --weego-color-line: #e2e5ea;
  --weego-color-line-strong: #cfd4db;
  --weego-font-family: "Google Sans", "Google Sans Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --weego-font-family-display: "Google Sans Flex", "Google Sans", sans-serif;
  --weego-font-size-caption: 11px;
  --weego-font-size-small: 12px;
  --weego-font-size-control: 13px;
  --weego-font-size-body: 14px;
  --weego-font-size-title-small: 15px;
  --weego-line-height-body: 1.5;
  --weego-line-height-control: 1.2;
  --weego-radius-sm: 10px;
  --weego-radius-md: 12px;
  --weego-radius-lg: 16px;
  --weego-radius-pill: 999px;
  --weego-shadow-xs: 0 1px 2px rgba(14, 16, 19, .05);
  --weego-shadow-sm: 0 2px 8px rgba(14, 16, 19, .06);

  /* Semantic surfaces. */
  --weego-surface-canvas: #f3f5f7;
  --weego-surface-primary: #ffffff;
  --weego-surface-sunken: #f8f9fb;

  /* Spacing: established WeeGo rhythm; no component geometry is changed here. */
  --weego-space-1: 4px;
  --weego-space-2: 8px;
  --weego-space-3: 12px;
  --weego-space-4: 16px;
  --weego-space-6: 24px;
  --weego-space-8: 32px;

  /* Controls: values match the existing shared controls asset. */
  --weego-control-height: 42px;
  --weego-control-height-touch: 44px;
  --weego-button-height: 38px;
  --weego-button-height-touch: 40px;
  --weego-search-height: 42px;
  --weego-form-icon-size: 16px;
  --weego-form-icon-inset: 12px;
  --weego-form-icon-gap: 8px;
  --weego-select-chevron-inset: 12px;
  --weego-select-text-inset: 36px;
  --weego-chevron-size: 16px;
  --weego-chevron-gap: 8px;
  --weego-chevron-motion: 150ms;

  /* Navigation: existing shell and subnavigation dimensions. */
  --weego-nav-width: 258px;
  --weego-nav-width-compact: 236px;
  --weego-nav-item-height: 36px;
  --weego-nav-icon-size: 18px;
  --weego-subnav-height: 40px;
  --weego-subnav-icon-size: 16px;
  --weego-subnav-icon-gap: 8px;

  /* Feedback: preserve existing semantic colors and verification meaning. */
  --weego-feedback-admit: #0f7b55;
  --weego-feedback-admit-ink: #0a5b3e;
  --weego-feedback-admit-soft: #e6f4ee;
  --weego-feedback-admit-line: #b9dfcf;
  --weego-feedback-hold: #a8620a;
  --weego-feedback-hold-ink: #854d06;
  --weego-feedback-hold-soft: #fbf1e3;
  --weego-feedback-hold-line: #ecd3ab;
  --weego-feedback-reject: #be2f36;
  --weego-feedback-reject-ink: #97242a;
  --weego-feedback-reject-soft: #fbeaeb;
  --weego-feedback-reject-line: #f0c4c6;
  --weego-verified-bg: #e0fec6;
  --weego-verified-text: #2b4b13;

  /* Legacy aliases: retain current consumers while new work adopts --weego-* tokens. */
  --w-ink: var(--weego-color-ink);
  --w-text: var(--weego-color-text);
  --w-text-secondary: var(--weego-color-text-secondary);
  --w-muted: var(--weego-color-muted);
  --w-line: var(--weego-color-line);
  --w-line-strong: var(--weego-color-line-strong);
  --w-surface: var(--weego-surface-primary);
  --w-surface-sunken: var(--weego-surface-sunken);
  --w-canvas: var(--weego-surface-canvas);
  --w-admit: var(--weego-feedback-admit);
  --w-admit-ink: var(--weego-feedback-admit-ink);
  --w-admit-soft: var(--weego-feedback-admit-soft);
  --w-admit-line: var(--weego-feedback-admit-line);
  --w-hold: var(--weego-feedback-hold);
  --w-hold-ink: var(--weego-feedback-hold-ink);
  --w-hold-soft: var(--weego-feedback-hold-soft);
  --w-hold-line: var(--weego-feedback-hold-line);
  --w-reject: var(--weego-feedback-reject);
  --w-reject-ink: var(--weego-feedback-reject-ink);
  --w-reject-soft: var(--weego-feedback-reject-soft);
  --w-reject-line: var(--weego-feedback-reject-line);
  --w-radius-sm: var(--weego-radius-sm);
  --w-radius-md: var(--weego-radius-md);
  --w-radius-lg: var(--weego-radius-lg);
  --w-radius-pill: var(--weego-radius-pill);
  --w-shadow-xs: var(--weego-shadow-xs);
  --w-shadow-sm: var(--weego-shadow-sm);
  --w-nav-width: var(--weego-nav-width);
}

/* Existing touch-control breakpoint and value, centralized without selector changes. */
@media (max-width: 640px) {
  :root { --weego-control-height: var(--weego-control-height-touch); }
}

/* Reference conventions only: CSS custom properties cannot be used as @media thresholds. */
/* Existing shared breakpoints include 1100, 900, 860, 820, 760, 720, 640, 560, 520, 480, and 380px. */
/* Keep page-specific breakpoints until a component migration explicitly reconciles its consumers. */
