/* ════════════════════════════════════════════════════════════════════════
   QuantShip — QDT brand tokens (qdt.ai teal-ink palette)
   Loaded first by Dash (assets load alphabetically) and linked directly by
   the standalone pages (login.html, pending.html, cesium/tactical_globe.html).
   Every page stylesheet maps its local variables onto these --brand-* tokens,
   so a palette change only needs to happen here.
   ════════════════════════════════════════════════════════════════════════ */

/* ── Fonts ────────────────────────────────────────────────────────────────
   qdt.ai uses Gotham (UI) and PP Mori (display), both commercial fonts that
   are NOT committed to this repo. Montserrat + DM Mono (Google Fonts, OFL)
   are loaded as stand-ins via external_stylesheets in src/main.py.

   To use QDT's licensed files, drop them into src/assets/fonts/qdt/ and
   uncomment the @font-face blocks below — the font stacks already list
   'Gotham' first, so it takes over automatically once the files exist.

@font-face { font-family: "Gotham"; src: url("fonts/qdt/Gotham-Light.otf") format("opentype");  font-weight: 300; font-display: swap; }
@font-face { font-family: "Gotham"; src: url("fonts/qdt/Gotham-Book.ttf") format("truetype");   font-weight: 400; font-display: swap; }
@font-face { font-family: "Gotham"; src: url("fonts/qdt/Gotham-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Ppmori"; src: url("fonts/qdt/PPMori-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
   ──────────────────────────────────────────────────────────────────────── */

:root {
  /* Backgrounds */
  --brand-bg-page: #040809;
  --brand-bg-deep: #020505;
  --brand-bg-ink: #060c0e;
  --brand-bg-custom: #0c0f0e;
  --brand-bg-panel: #05090a;
  --brand-bg-card: #040e0e;
  --brand-bg-card-mid: #071818;
  --brand-bg-cta: #15272a;
  --brand-bg-cta-hover: #193236;
  --brand-bg-badge: #0c2b30;
  --brand-bg-glass: rgba(4, 8, 9, 0.72);
  --brand-bg-hover: rgba(126, 177, 181, 0.04);

  /* Accents */
  --brand-accent: #75aeb2;          /* sky-blue — primary accent */
  --brand-accent-rgb: 117, 174, 178;
  --brand-accent-light: #9ec4c9;
  --brand-accent-2: #5f8f93;        /* blue-button */
  --brand-accent-2-rgb: 95, 143, 147;
  --brand-accent-deep: #2d7477;     /* button-arrow */
  --brand-accent-solid: #376f75;    /* c-cta.white fill */

  /* Text */
  --brand-text: #ffffff;
  --brand-text-bright: #def1f3;
  --brand-text-body: #90bfc4;
  --brand-text-secondary: #6fa8b8;
  --brand-text-tertiary: #6795a3;
  --brand-text-badge: #7cb4b9;
  --brand-text-soft: #9ec4c9;
  --brand-text-dim: #3a6a70;

  /* Borders */
  --brand-border: #183031;
  --brand-border-alt: #192728;
  --brand-border-cta: #335e62;
  --brand-hairline: linear-gradient(90deg, transparent, #5f8f93 52%, transparent);

  /* Status (rust / sand are inferred — qdt.ai has no red or amber) */
  --brand-up: #7cb4b9;
  --brand-up-rgb: 124, 180, 185;
  --brand-rust: #c47a6a;            /* critical / losses */
  --brand-rust-rgb: 196, 122, 106;
  --brand-high: #c4886a;            /* high (between rust and sand) */
  --brand-high-rgb: 196, 136, 106;
  --brand-sand: #c4a46a;            /* watch / medium / warnings */
  --brand-sand-rgb: 196, 164, 106;
  --brand-sand-light: #d6c08f;
  --brand-critical-bg: #2a1212;
  --brand-warn-bg: #231c10;

  /* Type */
  --brand-font-sans: 'Gotham', 'Montserrat', Arial, sans-serif;
  --brand-font-display: 'Ppmori', 'Gotham', 'Montserrat', Arial, sans-serif;
  --brand-font-mono: 'DM Mono', ui-monospace, monospace;

  /* Shape */
  --brand-radius-sm: 6px;
  --brand-radius: 10px;             /* buttons */
  --brand-radius-card: 15px;        /* rounded cards */
  --brand-radius-pill: 100px;
}

/* ── Global base ────────────────────────────────────────────────────────── */
html, body {
  background: var(--brand-bg-page);
  color: var(--brand-text-bright);
  font-family: var(--brand-font-sans);
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(var(--brand-accent-rgb), 0.28); color: var(--brand-text); }
* { scrollbar-color: var(--brand-border-cta) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--brand-border-cta); border-radius: 8px; }
