/**
 * TendersInfo — design tokens (single source of truth)
 * Load first, before shared-shell and page CSS.
 * Theme updates: edit this file only; components consume variables.
 */

:root {
  /* ── Breakpoints (reference only — use in @media, not as var()) ── */
  --bp-xs: 380px;
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1200px;
  --bp-2xl: 1366px;
  --bp-nav-collapse: 991px;

  /* ── Layout / container contract ──
     Large desktop: centered shell at 80% width.
     1366px and below: full width with horizontal gutters. */
  --layout-shell-max: 80%;
  --layout-gutter: clamp(12px, 2.4vw, 24px);
  --layout-content-max: 1280px;

  /* ── Colors ── */
  --brand: #ff7600;
  --brand-dark: #d96400;
  --brand-light: #fff3e6;
  --orange: #e8620a;
  --orange-light: #fff3eb;
  --orange-dark: #b84a00;
  --navy: #002d5a;
  --navy-mid: #1a4a7a;
  --slate: #354160;
  --muted: #6b7a99;
  --green: #0a7a45;
  --green-light: #e6f5ee;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-mid: #555555;
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #888888;
  --surface: #ffffff;
  --surface-soft: #f8f6f2;
  --surface-warm: #fdfaf6;
  --border: #e8e3da;
  --border-light: #f0ebe1;

  /* ── Spacing scale (4px base) ── */
  --space-0: 0;
  --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;

  /* ── Typography ── */
  --font-display: sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-md: 15px;
  --text-lg: 18px;
  --text-xl: 22px;
  --text-2xl: 26px;
  --leading-tight: 1.35;
  --leading-normal: 1.65;
  --leading-relaxed: 1.75;

  /* ── Radius ── */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* ── Shadows ── */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);

  /* ── Z-index scale ── */
  --z-base: 1;
  --z-sticky: 100;
  --z-dropdown: 300;
  --z-overlay: 800;
  --z-drawer: 900;
  --z-modal: 1000;
  --z-toast: 1100;

  /* ── Motion ── */
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 0.15s;
  --dur-normal: 0.2s;
  --dur-slow: 0.28s;
}

/* Container tightening at 1366px and below */
@media (max-width: 1366px) {
  :root {
    --layout-shell-max: 100%;
  }
}
