/* ============================================================
   Goodwill AI Visibility & Social Intelligence Command Center
   Design tokens — prepared by ASTACKRA for proposal evaluation
   ============================================================ */

:root {
  /* ---- Brand: respectful nonprofit-enterprise blue ---- */
  --brand-50:  #eef4fd;
  --brand-100: #d8e6fa;
  --brand-200: #b3cdf4;
  --brand-300: #7fabea;
  --brand-400: #4a84da;
  --brand-500: #2563c4;
  --brand-600: #1b4f9c;
  --brand-700: #163f7d;
  --brand-800: #133360;
  --brand-900: #0f2545;

  /* ---- Accents ---- */
  --teal-50:  #e6f6f7;
  --teal-500: #0d8a99;
  --teal-600: #0b6f7b;
  --ai-50:    #f0edff;
  --ai-100:   #e0d9ff;
  --ai-500:   #6d4aff;
  --ai-600:   #5a37e0;

  /* ---- Semantic ---- */
  --ok-50:   #e7f6ef;  --ok-500:   #0f8a5f;  --ok-600: #0b6f4c;
  --warn-50: #fdf3e2;  --warn-500: #b5741a;  --warn-600: #955f13;
  --risk-50: #fdecea;  --risk-500: #c0392f;  --risk-600: #9d2b22;
  --info-50: #eaf3fb;  --info-500: #2372b8;

  /* ---- Neutrals (slightly cool) ---- */
  --n-0:   #ffffff;
  --n-25:  #fbfcfd;
  --n-50:  #f5f7fa;
  --n-100: #eceff4;
  --n-200: #dee3ea;
  --n-300: #c6cdd8;
  --n-400: #9aa4b2;
  --n-500: #6b7685;
  --n-600: #505a68;
  --n-700: #3a434f;
  --n-800: #262d37;
  --n-900: #151b23;
  --n-950: #0c1016;

  /* ---- Surfaces ---- */
  --bg:          var(--n-50);
  --surface:     var(--n-0);
  --surface-2:   var(--n-25);
  --surface-3:   var(--n-100);
  --surface-inv: var(--brand-900);
  --line:        var(--n-200);
  --line-soft:   var(--n-100);
  --line-strong: var(--n-300);

  /* ---- Text ---- */
  --tx:        var(--n-900);
  --tx-2:      var(--n-600);
  --tx-3:      var(--n-500);
  --tx-weak:   var(--n-400);
  --tx-inv:    #ffffff;
  --tx-brand:  var(--brand-600);

  /* ---- Type ---- */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-editorial: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;

  --t-xs:   0.75rem;    /* 12 */
  --t-sm:   0.8125rem;  /* 13 */
  --t-base: 0.9375rem;  /* 15 */
  --t-md:   1rem;       /* 16 */
  --t-lg:   1.125rem;   /* 18 */
  --t-xl:   1.375rem;   /* 22 */
  --t-2xl:  1.75rem;    /* 28 */
  --t-3xl:  2.25rem;    /* 36 */
  --t-4xl:  2.875rem;   /* 46 */

  /* ---- Space ---- */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-7: 32px; --s-8: 40px;
  --s-9: 48px; --s-10: 64px;

  /* ---- Radius ---- */
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-full: 999px;

  /* ---- Elevation ---- */
  --sh-xs: 0 1px 2px rgba(15,37,69,.05);
  --sh-sm: 0 1px 3px rgba(15,37,69,.07), 0 1px 2px rgba(15,37,69,.04);
  --sh-md: 0 4px 14px rgba(15,37,69,.08), 0 1px 3px rgba(15,37,69,.05);
  --sh-lg: 0 12px 36px rgba(15,37,69,.12), 0 2px 8px rgba(15,37,69,.06);
  --sh-xl: 0 28px 70px rgba(15,37,69,.18), 0 4px 14px rgba(15,37,69,.08);

  /* ---- Layout ---- */
  --sidebar-w: 268px;
  --topbar-h: 64px;
  --notice-h: 34px;
  --page-max: 1560px;


  /* ---- Data-viz categorical slots (validated: adjacent CVD ΔE 9.1, normal ΔE 19.6) ----
     Slot 1 is the brand blue; slots 2-8 follow the validated hue order.
     Three light slots sit below 3:1 on the surface, so every chart ships a
     legend with direct values and a table view (the relief rule). */
  --viz-1: #2563c4;  --viz-2: #eb6834;  --viz-3: #1baf7a;  --viz-4: #eda100;
  --viz-5: #e87ba4;  --viz-6: #008300;  --viz-7: #4a3aa7;  --viz-8: #e34948;
  --viz-grid: var(--n-200);
  --viz-surface: var(--surface);
  /* sequential single-hue ramp (blue, light to dark) */
  --seq-1: #cde2fb; --seq-2: #9ec5f4; --seq-3: #6da7ec; --seq-4: #3987e5;
  --seq-5: #256abf; --seq-6: #184f95; --seq-7: #0d366b;

  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: 180ms;

  color-scheme: light;
}

/* ============================ Dark theme ============================ */
[data-theme="dark"] {
  --bg:          var(--n-950);
  --surface:     #141a22;
  --surface-2:   #101720;
  --surface-3:   #1c242e;
  --surface-inv: #060a0f;
  --line:        #263039;
  --line-soft:   #1d262f;
  --line-strong: #364453;

  --tx:      #e8edf3;
  --tx-2:    #a8b4c2;
  --tx-3:    #8b98a8;
  --tx-weak: #6c7a8a;
  --tx-brand:#7fabea;

  --brand-50:  #16243a;
  --brand-100: #1b3252;
  --ok-50:     #13291f;
  --warn-50:   #2c2312;
  --risk-50:   #301916;
  --info-50:   #152532;
  --ai-50:     #1e1a38;
  --ai-100:    #2a2350;
  --teal-50:   #10262a;


  /* dark steps of the same eight hues, validated against #141a22 */
  --viz-1: #4a84da;  --viz-2: #d95926;  --viz-3: #199e70;  --viz-4: #c98500;
  --viz-5: #d55181;  --viz-6: #008300;  --viz-7: #9085e9;  --viz-8: #e66767;
  --viz-grid: #263039;
  --seq-1: #0d366b; --seq-2: #184f95; --seq-3: #256abf; --seq-4: #3987e5;
  --seq-5: #6da7ec; --seq-6: #9ec5f4; --seq-7: #cde2fb;

  --sh-xs: 0 1px 2px rgba(0,0,0,.4);
  --sh-sm: 0 1px 3px rgba(0,0,0,.45);
  --sh-md: 0 4px 14px rgba(0,0,0,.5);
  --sh-lg: 0 12px 36px rgba(0,0,0,.55);
  --sh-xl: 0 28px 70px rgba(0,0,0,.6);

  color-scheme: dark;
}
