/* Nived design tokens — self-hosted fonts, no third-party requests. */

/* The only non-Latin character this dashboard needs is the rupee sign, so the
   extended subsets are cut down to that one glyph (36 kB -> 2 kB). */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/dm-sans-rupee.woff2') format('woff2');
  unicode-range: U+20B9;
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/manrope-rupee.woff2') format('woff2');
  unicode-range: U+20B9;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-primary: #0b7c64;
  --color-primary-dark: #0a5f4d;
  --color-primary-soft: #eef7f3;
  --color-contrast: #ffffff;
  --color-bg: #f4f6f7;
  --color-surface: #ffffff;
  --color-text: #14242f;
  --color-muted: #6b7c88;
  --color-border: #e3e9ec;
  --color-up: #0a7d5b;
  --color-down: #c8434f;
  --color-amber: #b0741a;
  --font-heading: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 0.875rem;
  --shadow-sm: 0 1px 2px rgba(17, 38, 50, .04), 0 6px 16px rgba(17, 38, 50, .035);
  --shadow-md: 0 2px 4px rgba(17, 38, 50, .05), 0 14px 34px rgba(17, 38, 50, .07);

  /* Semantic surfaces, so a theme is one block of overrides. */
  --surface: #ffffff;
  --surface-sunken: #f6f9f8;
  --surface-raised: #fbfcfc;
  --line: #eef2f1;
  --line-strong: #e3e9ec;
  --ink: #1b2c37;
  --ink-muted: #55666f;
  --ink-soft: #5b6b76;
  --chip: #f1f4f6;
}

:root[data-theme='dark'] {
    --color-bg: #0d161b;
    --color-surface: #16232b;
    --color-text: #e4edf1;
    --color-muted: #9db0bb;
    --color-border: #253741;
    --color-primary: #2ea88a;
    --color-primary-dark: #249c7f;
    --color-primary-soft: #16302a;
    --color-up: #43c39a;
    --color-down: #ef7f8a;
    --color-amber: #e0b062;

    --surface: #16232b;
    --surface-sunken: #1b2a33;
    --surface-raised: #131f26;
    --line: #24343e;
    --line-strong: #2c3f4a;
    --ink: #e4edf1;
    --ink-muted: #b3c4cd;
    --ink-soft: #a3b6c0;
    --chip: #22323b;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 16px rgba(0, 0, 0, .25);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, .35), 0 14px 34px rgba(0, 0, 0, .3);
    color-scheme: dark;
}
