/* ═══════════════════════════════════════════════════════════════
   Riseaxe — Global design tokens, reset & base
   Single source of truth. Imported first by the three root
   stylesheets (dashboard-shared.css, styles.css, login.css), so
   every page transitively receives these tokens.

   Breakpoints (CSS vars can't be used inside @media, documented here):
     mobile   < 600px
     tablet   600px – 1024px
     desktop  > 1024px
   ═══════════════════════════════════════════════════════════════ */

:root {
  color-scheme: light;

  /* ─── Brand palette (README) ─────────────────────────────── */
  --brand-blue:        #17479E;
  --brand-blue-dark:   #101c30;
  --brand-blue-soft:   #eaf0fa;
  --brand-gray:        #58595B;
  --brand-red:         #ED1C24;
  --brand-orange:      #F68A46;
  --brand-green:       #16a06b;

  /* Neutral ink / surfaces */
  --ink:               #101b2d;
  --ink-soft:          #344256;
  --muted:             #6b7280;
  --surface:           #ffffff;
  --surface-2:         #fafafa;
  --line:              #e6edf5;

  /* ─── Typography ─────────────────────────────────────────── */
  --font-sans:  "Gotham", "Montserrat", "Inter", ui-sans-serif, system-ui,
                -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* ─── Spacing scale ──────────────────────────────────────── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 48px;

  /* ─── Radii ──────────────────────────────────────────────── */
  --radius-sm:  6px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-2xl: 24px;
  --radius-pill: 999px;

  /* ─── Shadows ────────────────────────────────────────────── */
  --shadow-sm:   0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md:   0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
  --shadow-lg:   0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-xl:   0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.06);

  /* ─── Motion ─────────────────────────────────────────────── */
  --transition: all 0.2s ease;

  /* ─── Legacy aliases → tokens ────────────────────────────────
     Keeps every pre-existing variable name working while pointing
     it at the unified brand palette. Avoids a mass find/replace. */
  --blue:        var(--brand-blue);
  --riseax-blue: var(--brand-blue);
  --accent:      var(--brand-blue);
  --navy:        var(--ink);
  --red:         var(--brand-red);
  --orange:      var(--brand-orange);
  --amber:       var(--brand-orange);
  --green:       var(--brand-green);
  --border:      var(--line);
}

/* ─── Reset / normalize ────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
  hyphens: auto;
  overflow-x: hidden;
}

/* Media never overflows its container (key mobile-overflow fix).
   height left untouched so fixed-dimension elements keep their ratio. */
img,
svg,
video {
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
}

p {
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}
