/* Ethiqs theme overlay for LibreChat.
   Injected as <link href="/assets/ethiqs-theme.css"> at container boot (see inject-theme.sh).
   Update-safe: it overrides LibreChat's own tokens via !important, so load order doesn't matter,
   and it re-injects on every image update. Self-hosted fonts (no Google Fonts calls) — sovereign.
   Tune the accent below (brand #244B55 · brand-light #3D7D90 · accent #4ECDC4). */

@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/fonts/InstrumentSans.ttf') format('truetype');
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Hedvig Letters Serif';
  src: url('/assets/fonts/HedvigLettersSerif.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}

/* --- Accent: LibreChat's #ab68ff purple -> Ethiqs teal (light + dark; !important beats .dark) --- */
:root, .dark {
  --brand-purple: #3D7D90 !important;   /* brand-light teal — readable on both themes */
}

/* --- UI font -> Instrument Sans. Form controls + Tailwind font-sans don't inherit, so name them. --- */
html, body, button, input, textarea, select, optgroup,
[class*="font-sans"] {
  font-family: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif !important;
}

/* Keep code / monospace intact (brand's code face is Roboto Mono — LibreChat already uses it). */
code, pre, kbd, samp, [class*="font-mono"] {
  font-family: 'Roboto Mono', ui-monospace, Consolas, Monaco, monospace !important;
}
