/*
  QuarryIQ design tokens: the single place where the look of the app is decided.
  Everything else (theme.css, layout.css, components.css) reads these variables.

  Palette idea: stone and basalt. A cool limestone page, white working surfaces, a dark basalt
  sidebar, graphite for actions, and ochre (sand/aggregate) used only as a small accent.
*/

/* Inter, self-hosted variable font (latin subset covers French accents, œ and €) */
@font-face { font-family: "Inter"; font-weight: 100 900; font-style: normal; font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.260c81a4759b.woff2") format("woff2"); }

:root {
  color-scheme: light;

  /* ---- Surfaces & ink ------------------------------------------------------------------ */
  --q-bg:            #eef0ee;   /* page: limestone */
  --q-surface:       #ffffff;   /* cards, tables, forms */
  --q-surface-sunk:  #f6f7f6;   /* table header, inset areas, hover */
  --q-ink:           #1b2529;   /* primary text */
  --q-ink-2:         #46535a;   /* secondary text */
  --q-ink-3:         #66737a;   /* muted text (4.8:1 on white) */
  --q-line:          #dce1df;   /* hairlines */
  --q-line-strong:   #c4ccc9;   /* control borders, table header rule */

  /* ---- Basalt (sidebar) ---------------------------------------------------------------- */
  --q-basalt:        #1b2427;
  --q-basalt-raise:  #232e32;
  --q-basalt-line:   #2f3c41;
  --q-basalt-ink:    #c5cfd2;
  --q-basalt-muted:  #8a989d;

  /* ---- Action (graphite) and accent (ochre) ------------------------------------------ */
  --q-primary:       #252f33;   /* buttons, links: graphite */
  --q-primary-hover: #111a1d;
  --q-primary-soft:  #e8ebeb;   /* selected rows, soft fills */
  --q-primary-ring:  rgba(37, 47, 51, .3);
  --q-accent:        #e0a21b;   /* active indicator on dark, never text on white */
  --q-accent-ink:    #8a5a00;

  /* ---- Chart series (validated: lightness band, chroma, colorblind separation, 3:1 contrast) */
  --q-s1: #2563a8;  /* Blue */
  --q-s2: #d9730d;  /* Orange */
  --q-s3: #2f8f5b;  /* Green */
  --q-s4: #7c5cbf;  /* Violet */
  --q-s5: #c23b3b;  /* Red */
  --q-s6: #1f9fb0;  /* Cyan */
  --q-s7: #a38519;  /* Gold */
  --q-s8: #d6558f;  /* Pink */
  --q-context: #b3bcb9;  /* de-emphasised series ("everything else") */

  /* Sequential ramp (one hue, light -> dark) for magnitude */
  --q-seq-100: #dbe7f6; --q-seq-200: #b4cdea; --q-seq-300: #86addb; --q-seq-400: #5589c6;
  --q-seq-500: #2563a8; --q-seq-600: #1b4a80; --q-seq-700: #12335a;

  /* ---- Status (fixed, always paired with an icon and a label) -------------------------- */
  --q-good:          #0ca30c;  --q-good-ink:     #006300;  --q-good-soft:     #e4f4e4;
  --q-warning:       #fab219;  --q-warning-ink:  #7a5200;  --q-warning-soft:  #fdf2d8;
  --q-serious:       #ec835a;  --q-serious-ink:  #9a4318;  --q-serious-soft:  #fce9e1;
  --q-critical:      #d03b3b;  --q-critical-ink: #a12b2b;  --q-critical-soft: #f9e3e3;

  /* ---- Type ---------------------------------------------------------------------------- */
  --q-font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --q-font-display: var(--q-font-body);  /* Inter only: one family everywhere */
  /* Scale (minor third, 1.2) */
  --q-text-xs:   .75rem;     /* 12 */
  --q-text-sm:   .8125rem;   /* 13 */
  --q-text-base: .9375rem;   /* 15 */
  --q-text-md:   1.0625rem;  /* 17 */
  --q-text-lg:   1.25rem;    /* 20 */
  --q-text-xl:   1.5rem;     /* 24 */
  --q-text-2xl:  1.875rem;   /* 30 */
  --q-text-3xl:  2.5rem;     /* 40: figures in KPI tiles */

  /* ---- Shape & depth: radius follows hierarchy (controls < cards < pills) -------------- */
  --q-r-ctrl: 6px;
  --q-r-card: 10px;
  --q-r-pill: 999px;
  --q-shadow-card: 0 1px 2px rgba(27, 37, 41, .05);
  --q-shadow-pop:  0 10px 28px rgba(27, 37, 41, .16);

  /* ---- Layout -------------------------------------------------------------------------- */
  --q-sidebar-w:   248px;
  --q-topbar-h:    60px;
  --q-bottomnav-h: 64px;
  --q-content-max: 1800px;
  --q-focus: 0 0 0 3px var(--q-primary-ring);
}

@media (max-width: 991.98px) {
  :root {
    --q-topbar-h: 56px;
    --q-text-3xl: 2.25rem;   /* 36 */
  }
}
