/* Young Associates theme overlay for LibreChat (preview).
   Loaded via a <link> injected into index.html. Overrides fonts + accent colour.
   Regenerate index.html if LibreChat is upgraded (bundle hashes change). */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Libre+Baskerville:wght@400;700&display=swap');

/* --- Accent colour -> YA royal #1E5AA8 (navy #0D2240 for deep surfaces) --- */
:root, .light {
  --primary: 214 70% 39%;
  --ring: 214 70% 39%;
  --brand-purple: #1E5AA8;
}
.dark {
  --primary: 214 65% 58%;
  --ring: 214 65% 58%;
  --brand-purple: #4f8fd6;
}

/* --- Fonts: DM Sans body, Libre Baskerville headings --- */
html, body, #root, button, input, textarea, select, p, span, div, li, a, label {
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif !important;
}
h1, h2, h3, h4, .text-3xl, .text-2xl, .text-xl {
  font-family: 'Libre Baskerville', Georgia, serif !important;
  letter-spacing: 0.1px;
}

/* --- Recolour the green primary/submit accents to YA royal --- */
.bg-green-500, .bg-green-600, .bg-green-700 { background-color: #1E5AA8 !important; }
.text-green-500, .text-green-600 { color: #1E5AA8 !important; }
.border-green-500, .border-green-600 { border-color: #1E5AA8 !important; }
.ring-green-500 { --tw-ring-color: #1E5AA8 !important; }

/* === v2: Background canvas + surfaces -> YA palette (tune live) === */
:root, .light {
  --surface-primary:   214 50% 98%;   /* main canvas / panels: faint blue-white */
  --surface-secondary: 214 46% 96%;   /* sidebar, hovers                        */
  --surface-tertiary:  214 44% 93%;
}
body, #root, .bg-presentation { background-color: #f7f9fc !important; }

/* === v3 diagnostic: obvious canvas tint to confirm CSS reaches the background === */
:root, .light {
  --surface-primary:   214 55% 92%;
  --surface-secondary: 214 50% 88%;
  --surface-tertiary:  214 48% 84%;
  --background:        214 55% 92%;
}
body, #root, main, .bg-presentation,
[class*="bg-surface-primary"] { background-color: #dde8f5 !important; }
