/* Genesis AI Design System tokens (design handoff _ds/…/tokens), with the fonts served from the theme. */
/* Inter static instances (the Google Fonts ones the design loads): the variable font sets bold narrower. */
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-ext-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-ext-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-ext-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-ext-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('../fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('../fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }

/* Genesis AI — Color tokens
   Base palette + semantic aliases. Data-focused UI: dark navy chrome,
   light surfaces, cyan for active/accent/positive. No yellow. */
:root {
  /* ---- Base brand palette ---- */
  --ga-blue: #1A4BAF;          /* primary action blue */
  --ga-blue-hover: #163f93;    /* primary hover (darker) */
  --ga-blue-active: #123480;   /* primary press */
  --ga-navy: #1C2940;          /* dark navy — sidebar, chart bars, emphasis rows */
  --ga-navy-medium: #2D3C58;   /* medium navy — raised navy surfaces, hovers */
  --ga-cyan: #33CCFF;          /* cyan accent — active states, highlights, key data */
  --ga-cyan-strong: #14b8e6;   /* cyan for text/on-light where #33CCFF is too light */
  --ga-cyan-light: #CAF0FF;    /* light cyan — soft fills, tints */
  --ga-blue-grey: #98A5C4;     /* muted blue-grey — secondary/muted text on navy */

  /* ---- Neutrals / greys ---- */
  --ga-white: #FFFFFF;
  --ga-grey-50: #F6F7F9;       /* app background (lightest) */
  --ga-grey-100: #F0F2F9;      /* main content background */
  --ga-grey-200: #E6E9F2;      /* borders, dividers, chart neutral bars */
  --ga-grey-300: #D3D9E6;      /* stronger border */
  --ga-grey-400: #A9B2C6;      /* disabled / faint icon */
  --ga-grey-500: #6B7690;      /* muted text on light */
  --ga-grey-600: #4A5570;      /* secondary text on light */
  --ga-grey-700: #2D3C58;      /* body-strong on light */
  --ga-ink: #1C2940;           /* primary text on light */

  /* ---- Semantic: text ---- */
  --text-primary: var(--ga-ink);
  --text-secondary: var(--ga-grey-600);
  --text-muted: var(--ga-grey-500);
  --text-on-dark: var(--ga-white);
  --text-on-dark-muted: var(--ga-blue-grey);
  --text-accent: var(--ga-cyan-strong);
  --text-link: var(--ga-blue);

  /* ---- Semantic: surfaces ---- */
  --surface-app: var(--ga-grey-100);
  --surface-card: var(--ga-white);
  --surface-sidebar: var(--ga-navy);
  --surface-sidebar-raised: var(--ga-navy-medium);
  --surface-inset: var(--ga-grey-50);
  --surface-emphasis: var(--ga-navy);      /* dark highlighted table rows */
  --surface-tint-cyan: var(--ga-cyan-light);

  /* ---- Semantic: borders ---- */
  --border-subtle: var(--ga-grey-200);
  --border-default: var(--ga-grey-300);
  --border-accent: var(--ga-cyan);
  --border-focus: var(--ga-blue);
  --border-on-dark: rgba(152, 165, 196, 0.24);

  /* ---- Semantic: interactive ---- */
  --action-primary: var(--ga-blue);
  --action-primary-hover: var(--ga-blue-hover);
  --action-primary-active: var(--ga-blue-active);
  --accent: var(--ga-cyan);

  /* ---- Data / status ---- */
  --data-bar-strong: var(--ga-navy);       /* primary bars */
  --data-bar-neutral: var(--ga-grey-300);  /* comparison bars */
  --data-bar-accent: var(--ga-cyan);       /* highlighted / result bars */
  --data-line: var(--ga-cyan);             /* line series */
  --status-positive: #1F9D57;              /* upward deltas (sparingly) */
  --status-negative: #D2483F;              /* downward deltas (sparingly) */
  --status-positive-soft: #E4F4EB;
  --status-negative-soft: #FBEAE8;
}

/* Genesis AI — Typography tokens. Inter throughout. */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'SFMono-Regular', ui-monospace, 'Menlo', 'Consolas', monospace;

  /* Weights */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Type scale (px) — data-dense app UI */
  --fs-display: 34px;   /* big hero metric */
  --fs-h1: 26px;
  --fs-h2: 21px;        /* panel/section title */
  --fs-h3: 17px;        /* card title */
  --fs-body-lg: 16px;   /* chat body */
  --fs-body: 14px;      /* default UI body */
  --fs-sm: 13px;        /* secondary */
  --fs-xs: 12px;        /* labels, captions */
  --fs-2xs: 11px;       /* overline / eyebrow */

  /* Line heights */
  --lh-tight: 1.2;
  --lh-snug: 1.35;
  --lh-normal: 1.5;
  --lh-relaxed: 1.6;

  /* Letter spacing */
  --ls-overline: 0.06em;
  --ls-tight: -0.01em;
  --ls-normal: 0;

  /* Semantic roles */
  --text-display: var(--fw-bold) var(--fs-display)/var(--lh-tight) var(--font-sans);
  --text-h1: var(--fw-bold) var(--fs-h1)/var(--lh-tight) var(--font-sans);
  --text-h2: var(--fw-bold) var(--fs-h2)/var(--lh-snug) var(--font-sans);
  --text-h3: var(--fw-semibold) var(--fs-h3)/var(--lh-snug) var(--font-sans);
  --text-body-lg: var(--fw-regular) var(--fs-body-lg)/var(--lh-relaxed) var(--font-sans);
  --text-body: var(--fw-regular) var(--fs-body)/var(--lh-normal) var(--font-sans);
  --text-label: var(--fw-semibold) var(--fs-xs)/var(--lh-snug) var(--font-sans);
}

/* Genesis AI — Spacing & layout tokens. 4px base grid. */
:root {
  --sp-0: 0;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;

  /* Radii — soft, friendly, not pill-heavy except badges/inputs */
  --radius-sm: 6px;
  --radius-md: 10px;   /* buttons, list items */
  --radius-lg: 14px;   /* cards, panels */
  --radius-xl: 18px;   /* composer, large surfaces */
  --radius-pill: 999px;

  /* Layout */
  --sidebar-w: 300px;
  --insights-w: 380px;
  --content-max: 760px;
}

/* Genesis AI — Effects: shadows, focus rings, transitions.
   Soft, subtle elevation — cards float gently on the light app background. */
:root {
  /* Shadows — soft and low-contrast */
  --shadow-xs: 0 1px 2px rgba(28, 41, 64, 0.06);
  --shadow-sm: 0 1px 3px rgba(28, 41, 64, 0.08), 0 1px 2px rgba(28, 41, 64, 0.04);
  --shadow-md: 0 4px 12px rgba(28, 41, 64, 0.08), 0 1px 3px rgba(28, 41, 64, 0.05);
  --shadow-lg: 0 12px 28px rgba(28, 41, 64, 0.12), 0 2px 6px rgba(28, 41, 64, 0.06);
  --shadow-card: 0 1px 2px rgba(28, 41, 64, 0.05), 0 6px 16px rgba(28, 41, 64, 0.06);

  /* Focus ring — brand blue, offset */
  --ring-focus: 0 0 0 3px rgba(26, 75, 175, 0.28);
  --ring-cyan: 0 0 0 3px rgba(51, 204, 255, 0.30);

  /* Cyan glow — for active/connected accents */
  --glow-cyan: 0 0 0 1px rgba(51, 204, 255, 0.5), 0 0 12px rgba(51, 204, 255, 0.25);

  /* Transitions */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --dur-fast: 120ms;
  --dur-base: 180ms;
  --transition-base: all var(--dur-base) var(--ease-standard);
}

