/* =========================================================================
   DESIGN TOKENS — Magic UI "agent" system, themed for Dynamic Government.
   Neutral zinc surfaces in a dark and a light theme, one brand accent
   (the logo cyan), hairline borders, pill controls, tight medium headings.
   Theme: <html data-theme="light|dark"> (light is the default).
   ========================================================================= */
:root {
  /* ---- Brand ---------------------------------------------------------- */
  --brand: #01aef2;            /* logo cyan: buttons, links, glows        */
  --brand-strong: #0189bf;     /* deeper cyan: text on light surfaces     */
  --brand-soft: #7fd6f9;       /* light cyan: highlights on dark surfaces */
  --brand-foreground: #04202c; /* text on a cyan fill                     */

  /* ---- Light theme ---------------------------------------------------- */
  --background: #f9fafb;
  --foreground: #0a0a0a;
  --card: #ffffff;
  --muted: #f5f5f5;
  --muted-foreground: #6b6b6b;
  --accent: #ffffff;           /* raised surface: badges, bands, rows     */
  --border: #e5e5e5;
  --ring: #a1a1a1;
  --link: var(--brand-strong);
  --shadow-xl: 0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;
  --shadow-pop: 0 24px 60px #0a0a0a1f;
  --hatch: #0a0a0a0d;
  --hero-glow: #01aef2;

  /* ---- Type ----------------------------------------------------------- */
  --font-sans: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --font-primary: var(--font-sans);
  --fw-normal: 400; --fw-medium: 500; --fw-semibold: 600; --fw-light: 300; --fw-bold: 700;
  --tracking-tighter: -0.045em;
  --tracking-tight: -0.02em;
  --fs-h1: clamp(34px, 5.2vw, 60px);
  --fs-h2: clamp(28px, 3.2vw, 36px);
  --fs-h3: 18px;
  --fs-lg: 18px;
  --fs-base: 16px;
  --fs-sm: 14px;
  --fs-xs: 12.5px;
  /* names the infographic styles still use */
  --fs-p: 16px; --fs-p-lg: 18px; --fs-p-sm: 14px; --fs-p-xs: 13px; --fs-h6: 20px;

  /* ---- Shape ---------------------------------------------------------- */
  --radius: 10px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-2xl: 16px;
  --r-lg: 16px; --r-md: 14px; --r-sm: 10px; --r-normal: 14px;

  /* ---- Layout --------------------------------------------------------- */
  --container: 1280px;
  --gutter: 56px;              /* hatched strip beside every section      */
  --pad: 56px;                 /* section-head and section-body padding   */

  /* ---- Motion --------------------------------------------------------- */
  --ease-out: cubic-bezier(.165, .84, .44, 1);
  --dur: .3s;

  /* ---- Old names kept as aliases for the diagram styles --------------- */
  --color-title: var(--foreground);
  --color-text: var(--muted-foreground);
  --color-white: #ffffff;
  --color-primary: var(--brand);
  --color-primary-strong: var(--brand-strong);
  --color-secondary: var(--brand-soft);
  --color-card-grey: var(--border);
  --color-bg: var(--background);
  --shadow-cta: none;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --background: #18181b;
  --foreground: #fafafa;
  --card: #0f0f11;
  --muted: #262626;
  --muted-foreground: #a1a1a1;
  --accent: #27272a;
  --border: #2b2b2e;
  --ring: #5c5c5c;
  --link: var(--brand-soft);
  --shadow-xl: 0 20px 25px -5px #00000066, 0 8px 10px -6px #00000066;
  --shadow-pop: 0 24px 60px #000000a6;
  --hatch: #fafafa0d;
  --brand-strong: #29bdf5;
  color-scheme: dark;
}

@media screen and (max-width: 991px) { :root { --gutter: 20px; --pad: 32px; } }
@media screen and (max-width: 600px) { :root { --gutter: 0px; --pad: 22px; } }
