/* Site-wide basics for the pages on the standard navy theme: the colour
   palette (dark by default, light when nav.js puts .light on <html>, warm with
   .light.warm) and
   box sizing. Linked before each page's own <style>, which keeps every
   other rule: buttons, cards, top bar… still differ from page to page.
   Not used by the Quran reader (its own palette, cached for offline use),
   the lesson pages (static/css/lessons.css) or the games page. */

:root{
  --bg:#0d1320; --card:#162030; --card2:#1c2a3e;
  --txt:#ede8d8; --muted:#8b9199;
  --border:#2a3d56; --border-gold:rgba(201,150,45,.40);
  --accent:#1a7a56; --accent2:#22a370;
  --exact:#22c55e; --err:#ef4444; --mismatch:#ef4444; --warn:#f59e0b;
  --gold:#c9962d; --purple:#a855f7;
}
:root.light{
  --bg:#fdf6e3; --card:#fffcf0; --card2:#fff8e0;
  --txt:#1a1209; --muted:#7a6748;
  --border:#d4c4a0; --border-gold:rgba(6,95,70,.35);
  --accent:#065f46; --accent2:#047857;
  --exact:#16a34a; --err:#dc2626; --mismatch:#dc2626; --warn:#b45309;
  --gold:#8a5c15; --purple:#7c3aed;
}
/* Warm ("tiède"): between the two — muted sepia, dimmer than the light
   parchment, same dark-text-on-light structure. nav.js puts BOTH .light and
   .warm on <html>, so every :root.light rule applies and only the palette
   changes here. */
:root.light.warm{
  --bg:#dccaa8; --card:#e6d6b6; --card2:#e0cfad;
  --txt:#22180c; --muted:#66523a;
  --border:#bfa77c; --border-gold:rgba(6,95,70,.35);
  --accent:#065f46; --accent2:#047857;
  --exact:#15803d; --err:#b91c1c; --mismatch:#b91c1c; --warn:#92400e;
  --gold:#7a4f10; --purple:#6d28d9;
}
*{box-sizing:border-box;}
