/*
 * The ApnaTrader theme: THE one file for the site's colours, fonts and corners, used by
 * every page (the home page, the course, every tool and the admin) in a light and a dark
 * theme. Change a value here and the whole site follows; no page has colours of its own
 * apart from the charts' data colours (VWAP lines, heatmap scale, ...) in each tool's CSS.
 *
 * Light or dark is chosen by data-theme="light|dark" on <html>, which /_assets/theme.js
 * sets before the page paints (the visitor's choice, else the system setting).
 *
 * Each tool maps its own variables onto these (e.g. --surface: var(--at-surface)), and the
 * course maps Material for MkDocs' colours onto them in /_assets/learn-menu.css. Load this
 * file before the page's own stylesheet.
 *
 * The light theme's colours below are the "Indigo" palette, the default. The admin can
 * switch the light theme to another palette on /tools/admin/ (Site colours), which then
 * replaces them through palette.php; with Indigo chosen, these values are the site's.
 */
@import url("palette.php");

:root {
  --at-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Devanagari", sans-serif;
  --at-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --at-radius: 12px;
  --at-radius-sm: 8px;

  /* Brand colours (the same in both themes) */
  --at-navy: #1a1a2e;
  --at-navy-2: #16213e;
  --at-navy-3: #0f1022;
  --at-cyan: #00d4ff;
  --at-indigo: #3d4db7;
  --at-cyan-hover: #4ee1ff;
  --at-cyan-ink: #06202a;
  --at-youtube: #e62117;
  --at-youtube-hover: #c81c13;
  --at-on-color: #ffffff; /* text on a solid accent, up, down or brand fill */

  /* The site header and the home page's hero: navy in both themes */
  --at-header-bg: var(--at-navy);
  --at-header-ink: #e4e9f4;
  --at-header-dim: #b8c6db;
  --at-logo-bg: #24264a;
  --at-on-navy-up: #34d399;
  --at-on-navy-down: #ff6b7d;
  --at-on-navy-line: #8d9bff;

  /* Light theme: the Indigo palette (the default; the admin can choose another) */
  --at-bg: #f5f6fb;
  --at-surface: #ffffff;
  --at-surface-2: #f0f2f9;
  --at-surface-3: #e5e8f4;
  --at-border: #e2e5f0;
  --at-border-strong: #c6cbe0;
  --at-text: #161a33;
  --at-text-2: #4a5070;
  --at-text-3: #666c8c;
  --at-accent: #3d4db7;
  --at-accent-hover: #2f3c96;
  --at-accent-ink: #ffffff;
  --at-accent-text: #2f3c96;
  --at-accent-soft: rgba(61, 77, 183, 0.1);
  --at-accent-softer: rgba(61, 77, 183, 0.05);
  --at-focus: #5b6be0;
  --at-up: #11845b;
  --at-down: #d03a52;
  --at-up-soft: rgba(17, 132, 91, 0.1);
  --at-down-soft: rgba(208, 58, 82, 0.09);
  --at-warn: #9a5a00;
  --at-warn-soft: #fff4e2;
  --at-gold: #e3a008;
  --at-shadow: 0 1px 2px rgba(22, 26, 51, 0.06), 0 6px 18px rgba(22, 26, 51, 0.06);
  --at-shadow-lg: 0 12px 32px rgba(20, 26, 43, 0.14);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --at-bg: #15162a;
  --at-surface: #1d1f36;
  --at-surface-2: #23263f;
  --at-surface-3: #2b2f4c;
  --at-border: #2c2f4c;
  --at-border-strong: #3d4166;
  --at-text: #eef1f8;
  --at-text-2: #b8c6db;
  --at-text-3: #8089a3;
  --at-accent: #00d4ff;
  --at-accent-hover: #4ee1ff;
  --at-accent-ink: #06202a;
  --at-accent-text: #7ee8ff;
  --at-accent-soft: rgba(0, 212, 255, 0.14);
  --at-accent-softer: rgba(0, 212, 255, 0.07);
  --at-focus: #33dcff;
  --at-up: #34d399;
  --at-down: #ff6b7d;
  --at-up-soft: rgba(52, 211, 153, 0.13);
  --at-down-soft: rgba(255, 107, 125, 0.12);
  --at-warn: #ffc857;
  --at-warn-soft: rgba(255, 200, 87, 0.12);
  --at-gold: #f5b83d;
  --at-header-bg: var(--at-navy-3);
  --at-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 6px 20px rgba(0, 0, 0, 0.3);
  --at-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

/* Checkboxes, radio buttons, range sliders and progress bars in the accent */
:root {
  accent-color: var(--at-accent);
}
