/* FM Design & Training — Shared Design Tokens
   Version: 1.0 | 2026-10-13
   Purpose: Common palette and theme variables for public/training and administration.
   Safe preparation: Does not alter existing pages until explicitly loaded and used.
   Dark theme variables are reserved for a future tested opt-in toggle.
*/
:root,
[data-fm-theme="light"] {
  color-scheme: light;
  --fm-page: #C0C9C2;
  --fm-card: #E5ECE7;
  --fm-border: #AAB8AE;
  --fm-primary: #586B68;
  --fm-heading: #2F4A3A;
  --fm-ivory: #F5F1E8;
  --fm-border-soft: #D4DFD7;
  --fm-soft: #E6ECE7;
  --fm-field: #FAF8F4;
  --fm-hover: #8EAF95;
  --fm-beige: #D8CBB8;
  --fm-gray: #A9A39A;
  --fm-text: #586B68;
  --fm-surface: #F5F1E8;
  --fm-white: #FFFFFF;
  --fm-shadow: 0 4px 16px rgba(47,74,58,.06);
  --fm-radius: 16px;
  --fm-hero-height: 180px;
  --fm-hero-height-mobile: 120px;
  --fm-font: Cairo, Tahoma, sans-serif;
}

/* PREPARATION ONLY: do not set data-fm-theme="dark" in production yet.
   The old hard-coded styles in style.php, mystyle.php and page templates
   must be migrated and tested before enabling dark mode. */
[data-fm-theme="dark"] {
  color-scheme: dark;
  --fm-page: #202C28;
  --fm-card: #33453D;
  --fm-border: #64776B;
  --fm-primary: #B8CDBB;
  --fm-heading: #EDF3EE;
  --fm-ivory: #202C28;
  --fm-border-soft: #4B6255;
  --fm-soft: #2C3C33;
  --fm-field: #43564B;
  --fm-hover: #90AF99;
  --fm-beige: #C9B9A2;
  --fm-gray: #B6B5AA;
  --fm-text: #DFE8E1;
  --fm-surface: #202C28;
  --fm-white: #EDF3EE;
  --fm-shadow: 0 4px 16px rgba(0,0,0,.18);
}
