/* ==========================================================================
   MDGRUPPE OS — Design Tokens v1.0
   Locked: 2026-04-17 by MD (approved TOKEN-PROPOSAL-2026-04-17, decisions 1-6)
   Authority: STRAT-2026-04-17-UX01, SOP-007 (brand), SOP-015 (UX North Star)
   DO NOT edit values without ADR. Add new tokens freely; never modify locked ones.
   ========================================================================== */

:root {
  /* -- COLOR — FUNCTIONAL LAYER (always wins over BU identity) -- */
  --color-surface:           #FFFFFF;
  --color-surface-alt:       #F7F7F8;
  --color-border:            #E8E8E8;
  --color-border-strong:     #CCCCCC;
  --color-text:              #1A1A1A;
  --color-text-muted:        #666666;
  --color-text-subtle:       #999999;

  --color-primary:           #1E4488;
  --color-success:           #1B8A3A;
  --color-warning:           #C9920E;
  --color-danger:            #C0392B;
  --color-info:              #1E4488;

  /* Focus — SOP-007 gold glow, WCAG 2.2 AAA compliant */
  --focus-ring:              0 0 0 3px rgba(201, 146, 14, 0.45);
  --focus-ring-danger:       0 0 0 3px rgba(192, 57, 43, 0.45);

  /* -- COLOR — BU IDENTITY (decoration only, 1-2 surfaces per screen max) -- */
  --bu-mdrtg:    #1E4488;
  --bu-cempc:    #6D2A3C;
  --bu-mda:      #1D5732;
  --bu-rytek:    #B83D26;
  --bu-fasti:    #4CAF50;
  --bu-joyful:   #B5502A;
  --bu-gold:     #C9920E;

  /* -- SPACING — 4px grid (prefer in new code) -- */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* -- SPACING — LEGACY/TRANSITIONAL (do not use in new code) -- */
  --space-10px-legacy: 10px;   /* 99 existing usages */
  --space-13px-legacy: 13px;   /* btn-primary padding, legacy */
  --space-14px-legacy: 14px;   /* 34 existing usages */
  --space-18px-legacy: 18px;   /* 11 existing usages */

  /* -- TYPOGRAPHY -- */
  --font-primary:     'Gotham', system-ui, sans-serif;
  --font-mono:        'SF Mono', Menlo, Consolas, monospace;

  --type-xs:          11px;
  --type-sm:          12px;
  --type-body:        13px;    /* data-density context (tables, cells) */
  --type-prose:       14px;    /* running prose, paragraphs */
  --type-lg:          16px;    /* primary CTA, key labels */
  --type-xl:          18px;
  --type-2xl:         20px;
  --type-3xl:         28px;

  --weight-regular:   400;
  --weight-medium:    500;
  --weight-semibold:  600;
  --weight-bold:      700;

  --leading-tight:    1.25;
  --leading-normal:   1.5;
  --leading-snug:     1.4;

  /* -- RADIUS -- */
  --r-sm:       3px;
  --r:          6px;
  --r-lg:      10px;
  --r-xl:      16px;
  --r-full:  9999px;

  /* -- SHADOW -- */
  --shadow-sm:     0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md:     0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg:     0 10px 15px rgba(0, 0, 0, 0.10);
  --shadow-focus:  var(--focus-ring);

  /* -- MOTION -- */
  --ease-standard:   cubic-bezier(0.4, 0.0, 0.2, 1);
  --duration-fast:   150ms;
  --duration-medium: 250ms;
  --duration-slow:   400ms;
}

/* ==========================================================================
   DEPRECATED NAMESPACE — reserved for future aliases if/when live --mdg-*
   call sites are discovered. dashboard.css (the only --mdg-* consumer) is
   archived to app/static/_archive/ per Phase 0 Path A; no aliases are
   needed today and adding them would misrepresent the original values.
   ========================================================================== */
:root {
  /* Add aliases here as live --mdg-* call sites are discovered. */
}
