/**
 * Global theme — CSS custom properties (single source of truth).
 * Loaded after school.css, custom.css, and olive.css so these tokens win the cascade.
 * Primary accent: wine / burgundy (replaces the legacy olive green in earlier layers).
 */

:root {
  --primary: #8B2F2F;
  --primary-hover: #A94442;
  --accent: #5C3A2E;

  --background: #FFFFFF;
  --section-bg: #FAFAFA;

  --text: #1F2937;
  --text-secondary: #6B7280;

  --border: #E5E7EB;

  /* Common aliases */
  --card: var(--background);
  --bg: var(--background);

  /* Bootstrap 5 — keep components aligned with the palette */
  --bs-primary: var(--primary);
  --bs-primary-rgb: 139, 47, 47;
  --bs-link-color: var(--primary);
  --bs-link-hover-color: var(--primary-hover);
  --bs-border-color: var(--border);
  --bs-body-bg: var(--background);
  --bs-body-color: var(--text);

  /* Public site (school.css) — map legacy tokens to the global theme */
  --school-primary: var(--primary);
  --school-highlight: var(--primary-hover);
  --school-accent: var(--accent);
  --school-dark: color-mix(in srgb, var(--accent) 88%, #000000);
  --school-footer: color-mix(in srgb, var(--accent) 72%, #000000);
}
