/* =============================================================================
 * HRD-Mobile — Web CSS Token Mapping (M00 PART 04B)
 *
 * Platform mapping of the semantic design-token source of truth:
 *
 *   src/config/design-tokens.js
 *           ↓
 *   styles/tokens.css
 *           ↓
 *   HRD-Mobile Web UI
 *
 * src/config/design-tokens.js remains authoritative. This file maps the
 * existing semantic tokens to CSS custom properties only — it introduces no
 * new product semantics, no component styling, and no business rules.
 * ===========================================================================*/

:root {
  /* ---- color — mapped from design-tokens.js `color` group ------------------ */

  --color-surface-default: #ffffff;
  --color-surface-subtle: #f8fafc;

  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;

  --color-border-default: #e2e8f0;

  --color-action-primary: #2563eb;
  --color-action-primary-contrast: #ffffff;

  --color-status-success: #16a34a;
  --color-status-warning: #d97706;
  --color-status-danger: #dc2626;
  --color-status-info: #0284c7;

  /* ---- typography — mapped from design-tokens.js `typography` group -------- */

  --typography-display-font-size: 32px;
  --typography-display-line-height: 40px;
  --typography-display-font-weight: 700;

  --typography-heading-font-size: 20px;
  --typography-heading-line-height: 28px;
  --typography-heading-font-weight: 600;

  --typography-body-font-size: 16px;
  --typography-body-line-height: 24px;
  --typography-body-font-weight: 400;

  --typography-label-font-size: 14px;
  --typography-label-line-height: 20px;
  --typography-label-font-weight: 500;

  --typography-caption-font-size: 12px;
  --typography-caption-line-height: 16px;
  --typography-caption-font-weight: 400;

  /* ---- spacing — mapped from design-tokens.js `spacing` group -------------- */

  --spacing-none: 0px;
  --spacing-xxs: 4px;
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 20px;
  --spacing-xl: 24px;
  --spacing-xxl: 32px;

  /* ---- radius — mapped from design-tokens.js `radius` group ---------------- */

  --radius-control: 12px;
  --radius-card: 16px;
  --radius-surface: 20px;
  --radius-pill: 9999px;

  /* ---- elevation — Web-specific shadow composition --------------------------
   * The portable source primitives (level/offsetY/blur/alpha) are translated
   * here into CSS box-shadow values. The source of truth keeps its portable
   * representation; only this platform mapping composes shadows.
   * Shadow color uses the slate text-primary hue for subtle, neutral depth. */

  --elevation-none: 0 0 0 rgba(15, 23, 42, 0);
  --elevation-low: 0 1px 2px rgba(15, 23, 42, 0.06);
  --elevation-medium: 0 2px 6px rgba(15, 23, 42, 0.08);
  --elevation-high: 0 4px 12px rgba(15, 23, 42, 0.1);

  /* ---- motion — mapped from design-tokens.js `motion` group ---------------- */

  --motion-duration-fast: 150ms;
  --motion-duration-normal: 250ms;
  --motion-duration-slow: 400ms;

  --motion-easing-standard: cubic-bezier(0.2, 0, 0, 1);
  --motion-easing-enter: cubic-bezier(0, 0, 0.2, 1);
  --motion-easing-exit: cubic-bezier(0.4, 0, 1, 1);

  /* ---- layout — mapped from design-tokens.js `layout` group ---------------- */

  --layout-content-max-width: 640px;
  --layout-page-padding-horizontal: 16px;
  --layout-touch-target-min: 44px;
  --layout-bottom-navigation-height: 56px;
}
