/* ============================================================================
   AGIO — Design tokens (Faz 0 extraction, 2026-10-08)
   ----------------------------------------------------------------------------
   WHAT: color, type, motion and variant-ground custom properties pulled out of
   agio-company/brand/tokens.md and agio/src/index.src.html + variants.css.
   This is an EXTRACTION, not a decision — nothing here has been applied to
   erp-panel, Şahinler Operations or agio/src yet (that is Faz 1/2 of
   atolye-hub/projects/agio/plans/tasarim-sistemi.md).

   WHEN TO USE WHICH BLOCK
   - :root (light)              → default theme, always loaded first
   - prefers-color-scheme: dark → auto dark, unless the page sets data-theme
   - :root[data-theme="dark"]   → explicit dark toggle (same values as above)
   - "Variant-ground" block     → --paper-p/--line-p, the grounds body.v-p70
                                   (Palantir-leaning) swaps in. AGIO-DEC-002
                                   (2026-10-08) made v-p70 the shared system's
                                   BASELINE, not a marketing-only variant — so
                                   these two properties are core tokens now.
                                   --paper-h stays variant-only (Harvey70 was
                                   evaluated and rejected as baseline).

   NAMING NOTE (read before using --f-display / --f-brand)
   The site uses FOUR type roles, not three:
     --f-display → Newsreader (serif)   → h1/h2 headlines
     --f-brand   → Michroma             → logo + tiny uppercase labels only
     --f-body    → Schibsted Grotesk    → running text, nav, buttons
     --f-data    → DM Mono              → numbers, tables, captions
   brand/tokens.md calls Michroma the "Display / brand" font. On the live site
   Michroma is NEVER used for display-size headings — Newsreader is. Treat
   "Display" and "Brand" as two different roles until the owner says otherwise.
   :: SOURCE = agio-company/brand/tokens.md:10-15 vs agio/src/index.src.html:24,26
   ============================================================================ */

:root {
  /* --- Core palette (light) --------------------------------------------- */
  --paper:    #F6F6F9;  /* page ground                 :: SOURCE = agio/src/index.src.html:19 */
  --surface:  #FFFFFF;  /* card/frame ground            :: SOURCE = agio/src/index.src.html:19 */
  --ink:      #16152A;  /* primary text / CTA fill      :: SOURCE = agio/src/index.src.html:19 */
  --ink-2:    #3A3850;  /* secondary text               :: SOURCE = agio/src/index.src.html:19 */
  --muted:    #67647C;  /* tertiary / caption text      :: SOURCE = agio/src/index.src.html:19 */
  --line:     #E2E0EB;  /* hairline, low contrast       :: SOURCE = agio/src/index.src.html:19 */
  --line-2:   #CFCCDD;  /* hairline, higher contrast    :: SOURCE = agio/src/index.src.html:19 */
  --violet:   #43297F;  /* brand accent (= print "Deep purple") :: SOURCE = agio/src/index.src.html:20; agio-company/brand/tokens.md:7 */
  --lilac:    #9B83E0;  /* brand accent, lighter (= print "Lilac") :: SOURCE = agio/src/index.src.html:20; agio-company/brand/tokens.md:8 */
  --tint:     #F0EDF8;  /* accent-tinted fill (active nav, etc.) :: SOURCE = agio/src/index.src.html:20 */
  --cta:      #16152A;  /* primary button fill          :: SOURCE = agio/src/index.src.html:21 */
  --cta-fg:   #FFFFFF;  /* primary button text           :: SOURCE = agio/src/index.src.html:21 */
  --logo-acc: var(--violet); /* logo mark accent         :: SOURCE = agio/src/index.src.html:22 */
  --logo-mut: var(--muted);  /* logo mark muted stroke   :: SOURCE = agio/src/index.src.html:22 */

  /* --- System-map / signature-diagram palette (light) -------------------- */
  --map-top:    #FFFFFF; /* isometric slab top face     :: SOURCE = agio/src/index.src.html:23 */
  --map-l:      #ECEAF3; /* isometric slab left face    :: SOURCE = agio/src/index.src.html:23 */
  --map-r:      #E1DEEC; /* isometric slab right face   :: SOURCE = agio/src/index.src.html:23 */
  --map-stroke: #16152A; /* slab outline                :: SOURCE = agio/src/index.src.html:23 */
  --map-flow:   #43297F; /* animated flow line / gate   :: SOURCE = agio/src/index.src.html:23 */
  --map-text:   #16152A; /* diagram label text          :: SOURCE = agio/src/index.src.html:23 */
  --map-sub:    #67647C; /* diagram caption text        :: SOURCE = agio/src/index.src.html:23 */

  /* --- Type roles (4, see naming note above) ------------------------------ */
  --f-display: "Newsreader","Iowan Old Style","Palatino Linotype",Georgia,serif;
  /* :: SOURCE = agio/src/index.src.html:24 */
  --f-body: "Schibsted Grotesk",system-ui,"Segoe UI",sans-serif;
  /* :: SOURCE = agio/src/index.src.html:25; agio-company/brand/tokens.md:14 ("Text") */
  --f-brand: "Michroma","Eurostile",Arial,sans-serif;
  /* :: SOURCE = agio/src/index.src.html:26; agio-company/brand/tokens.md:13 ("Display / brand" — see naming note) */
  --f-data: "DM Mono",ui-monospace,"Cascadia Mono",monospace;
  /* :: SOURCE = agio/src/index.src.html:27; agio-company/brand/tokens.md:15 ("Mono") */

  /* --- Motion (not present in brand/tokens.md — site-only) ---------------- */
  --ease-standard: cubic-bezier(.2,.7,.2,1);
  --ease-emphasis: cubic-bezier(.16,1,.3,1);
  --dur-fast: 160ms;
  --dur-slow: 1100ms;
  /* :: SOURCE = agio/src/index.src.html:28-29 */
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E0D18; --surface: #15142A; --ink: #EAE9F4; --ink-2: #C6C3D8;
    --muted: #9894AC; --line: #25233A; --line-2: #34314D;
    --violet: #B39BFF; --tint: #1C1A33; --cta: #EAE9F4; --cta-fg: #0E0D18;
    --logo-acc: #9B83E0; --logo-mut: #9894AC;
    --map-top: #1B1A30; --map-l: #141326; --map-r: #100F20;
    --map-stroke: #8C88A8; --map-flow: #9B83E0; --map-text: #EAE9F4; --map-sub: #9894AC;
    /* --lilac is not redefined for dark on the live site; #9B83E0 (light value) is reused as-is.
       :: SOURCE = agio/src/index.src.html:31-35 (no --lilac line inside the dark block) */
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E0D18; --surface: #15142A; --ink: #EAE9F4; --ink-2: #C6C3D8;
  --muted: #9894AC; --line: #25233A; --line-2: #34314D;
  --violet: #B39BFF; --tint: #1C1A33; --cta: #EAE9F4; --cta-fg: #0E0D18;
  --logo-acc: #9B83E0; --logo-mut: #9894AC;
  --map-top: #1B1A30; --map-l: #141326; --map-r: #100F20;
  --map-stroke: #8C88A8; --map-flow: #9B83E0; --map-text: #EAE9F4; --map-sub: #9894AC;
  color-scheme: dark;
  /* :: SOURCE = agio/src/index.src.html:36-40 */
}

/* ============================================================================
   Variant grounds — --paper-p/--line-p are CORE tokens as of AGIO-DEC-002
   (2026-10-08): the baseline is body.v-p70 (Palantir-leaning), so these are
   the grounds every component in components/ is built against. --paper-h
   stays variant-only — Harvey70 was screenshotted and rejected as baseline.
   :: SOURCE = atolye-hub/decisions/agio-dec-002-tasarim-referansi.md; agio/src/variants.css:1-4
   ============================================================================ */
:root { --paper-h: #FAFAFC; --paper-p: #FFFFFF; --line-p: #DEDDE6; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper-h: #0E0D18; --paper-p: #0B0A14; --line-p: #2A2840; }
}
:root[data-theme="dark"] { --paper-h: #0E0D18; --paper-p: #0B0A14; --line-p: #2A2840; }

/* ============================================================================
   Brand-style axis — AGIO (branded) / Neutral (white-label), 2026-10-08
   ----------------------------------------------------------------------------
   WHAT: a SECOND, independent axis next to light/dark. The skeleton (button
   shape, card structure, nav, KPI/table/chart layout, spacing) stays identical
   in all four combinations; only the identity layer changes.

              light              dark
   AGIO       AGIO light         AGIO dark        (blocks above — default, unchanged)
   Neutral    neutral light      neutral dark     (this block — data-brand="neutral")

   data-brand="neutral" swaps --violet/--lilac/--tint/--logo-acc for a slate
   gray-blue scale (no purple, chosen to read alongside the --ink-2/--muted
   gray scale above) and drops --f-brand (Michroma) to --f-body — a white-label
   customer brings their own wordmark, so the brand typeface is not forced.
   No AGIO token above is changed or removed; this only ADDS a third selector
   dimension (data-brand), combined with the existing data-theme/prefers-color-
   scheme dimension exactly like the dark blocks above do.
   :: SOURCE = owner decision 2026-10-08 (new design decision, not extracted
   from brand/tokens.md or agio/src — AGIO has no white-label mode there yet)
   ============================================================================ */
:root[data-brand="neutral"] {
  --violet:   #4B5563; /* neutral accent (replaces AGIO purple)   :: SOURCE = owner decision 2026-10-08 */
  --lilac:    #94A3B8; /* neutral accent, lighter                 :: SOURCE = owner decision 2026-10-08 */
  --tint:     #F1F2F4; /* neutral accent-tinted fill               :: SOURCE = owner decision 2026-10-08 */
  --logo-acc: var(--violet);
  --f-brand:  var(--f-body); /* no Michroma under white-label — customer's own wordmark */
}
@media (prefers-color-scheme: dark) {
  :root[data-brand="neutral"]:not([data-theme="light"]) {
    --violet:   #A8B3C2; /* lightened for dark ground, same role as --violet:#B39BFF above */
    --tint:     #1E2126;
    --logo-acc: var(--violet);
    --f-brand:  var(--f-body);
  }
}
:root[data-theme="dark"][data-brand="neutral"] {
  --violet:   #A8B3C2;
  --tint:     #1E2126;
  --logo-acc: var(--violet);
  --f-brand:  var(--f-body);
}
/* --lilac is intentionally not redefined for dark-neutral, mirroring the
   base --lilac pattern above (not redefined for AGIO dark either). */
