/* YourCryptoPal Merchants design tokens.
   Brand colour and font come from yourcryptopal.com (/css/main.css: poppins, links rgb(21,87,145)).
   Theme follows the OS unless <html data-theme="light|dark"> is set by the header toggle. */

:root {
  color-scheme: light;

  --font-sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef2f7;
  --border: #e3e8ef;
  --border-strong: #cfd7e3;

  --text: #0f1b2d;
  --text-2: #4a5668;
  --text-3: #7b8799;

  --brand: #155791;
  --brand-hover: #114a7c;
  --brand-soft: #e7f0f8;
  --brand-contrast: #ffffff;
  --brand-grad-from: #155791;
  --brand-grad-to: #0b2f52;

  --success: #15803d;
  --success-soft: #e7f6ec;
  --warning: #b45309;
  --warning-soft: #fdf3e2;
  --danger: #b91c1c;
  --danger-soft: #fdecec;
  --info: #155791;
  --info-soft: #e7f0f8;
  --neutral-soft: #eef2f7;

  /* chart series: validated categorical order (dataviz reference palette), fixed, never cycled */
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-4: #eda100;
  --series-5: #e87ba4;
  --series-6: #008300;
  --grid: #e8edf3;

  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .06);
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 8px 24px rgba(15, 27, 45, .07);
  --shadow-lg: 0 12px 40px rgba(15, 27, 45, .18);

  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  --sidebar-w: 248px;
  --topbar-h: 60px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b1220;
    --surface: #111a2b;
    --surface-2: #16223a;
    --surface-3: #1b2945;
    --border: #22304a;
    --border-strong: #2e3f5f;
    --text: #e6edf7;
    --text-2: #a8b3c7;
    --text-3: #7886a0;
    --brand: #5ea3e0;
    --brand-hover: #7ab4e8;
    --brand-soft: #15304d;
    --brand-contrast: #06121f;
    --brand-grad-from: #174f82;
    --brand-grad-to: #07192e;
    --success: #4ade80;
    --success-soft: #0f2e1d;
    --warning: #fbbf24;
    --warning-soft: #33250b;
    --danger: #f87171;
    --danger-soft: #3a1515;
    --info: #5ea3e0;
    --info-soft: #15304d;
    --neutral-soft: #1b2945;
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --series-4: #c98500;
    --series-5: #d55181;
    --series-6: #008300;
    --grid: #1f2c44;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .35);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, .55);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1220;
  --surface: #111a2b;
  --surface-2: #16223a;
  --surface-3: #1b2945;
  --border: #22304a;
  --border-strong: #2e3f5f;
  --text: #e6edf7;
  --text-2: #a8b3c7;
  --text-3: #7886a0;
  --brand: #5ea3e0;
  --brand-hover: #7ab4e8;
  --brand-soft: #15304d;
  --brand-contrast: #06121f;
  --brand-grad-from: #174f82;
  --brand-grad-to: #07192e;
  --success: #4ade80;
  --success-soft: #0f2e1d;
  --warning: #fbbf24;
  --warning-soft: #33250b;
  --danger: #f87171;
  --danger-soft: #3a1515;
  --info: #5ea3e0;
  --info-soft: #15304d;
  --neutral-soft: #1b2945;
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --series-4: #c98500;
  --series-5: #d55181;
  --series-6: #008300;
  --grid: #1f2c44;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .55);
}
