/* SPIKE Pilot design tokens: the ONLY file allowed to hold a raw colour (npm run pilot:check enforces it).
   Jules's style guide (docs/design/STYLE-GUIDE.md): neutral surfaces without outer borders, cards 10px, controls 8px,
   Satoshi 400/500/700 only, nothing under 12px, tabular figures, colour by role. */
@font-face { font-family: Satoshi; src: url(../fonts/Satoshi-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Satoshi; src: url(../fonts/Satoshi-Medium.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Satoshi; src: url(../fonts/Satoshi-Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  /* Surfaces and text */
  --page: #F6F7F8; --card: #FFFFFF; --soft: #F2F4F5; --text: #202425; --muted: #59636A; --line: #DCE1E4;
  --logo-bg: #FFFFFF;             /* third-party logos keep a white tile in both themes */
  --on-tint: #0B0B0B;             /* text drawn on a coloured pill */
  /* Measures of the Pilotage chart: muted accents by role; mint = what we want to see grow */
  --m-shown: #6F8FA3; --m-clicks: #34D399; --m-position: #C99A3F; --m-visits: #C08A6B;   /* steel, SPIKE mint, amber, copper (Jules's accents) */
  /* States: one colour per meaning */
  --ok: #10B981; --ok-text: #0F7A52; --ok-soft: #10B98114;
  --bad: #C83845; --bad-soft: #EF44441A; --on-bad: #FFFFFF;
  --warn: #966000; --warn-soft: #F59E0B1F; --pending: #F59E0B;
  --changed: #3B82F6;             /* modified here, not yet online */
  --focus: #34D399;
  /* Silos: six calm tints, picked by index */
  /* Depth */
  --shadow-hover: 0 6px 24px #0000000F; --shadow-float: 0 8px 30px #00000066; --shadow-drawer: 0 0 40px #00000033; --scrim: #00000055;
  /* Rhythm: an 8px scale; one radius per family */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --r-ctl: 8px; --r-card: 12px; --r-pill: 999px;
  --side-w: 248px; --content-w: 1240px;
  color-scheme: light;
}
/* Dark: graphite surfaces, softened contrast, states kept readable. Same values for « Auto » on a dark Mac
   and for the explicit « Sombre » switch (data-theme), so both look identical. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0D0F12; --card: #15181C; --soft: #1D2126; --text: #E8EBEE; --muted: #959DA5; --line: #2A2F35;
    --logo-bg: #F4F5F6; --ok-text: #4ADE9F; --ok-soft: #10B9811F; --ok-area: #10B98129; --mint: #34D399;
    --bad: #FF6B6B; --bad-soft: #FF6B6B1F; --warn: #F5C451; --warn-soft: #F5C4511C; --pending: #F5B041; --changed: #60A5FA;
    --shadow-hover: 0 6px 24px #00000059; --shadow-float: 0 12px 32px #000000A6; --shadow-drawer: 0 0 40px #00000080; --scrim: #000000A0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --page: #0D0F12; --card: #15181C; --soft: #1D2126; --text: #E8EBEE; --muted: #959DA5; --line: #2A2F35;
    --logo-bg: #F4F5F6; --ok-text: #4ADE9F; --ok-soft: #10B9811F; --ok-area: #10B98129; --mint: #34D399;
    --bad: #FF6B6B; --bad-soft: #FF6B6B1F; --warn: #F5C451; --warn-soft: #F5C4511C; --pending: #F5B041; --changed: #60A5FA;
    --shadow-hover: 0 6px 24px #00000059; --shadow-float: 0 12px 32px #000000A6; --shadow-drawer: 0 0 40px #00000080; --scrim: #000000A0;
    color-scheme: dark;
}
