/* Design tokens — Modern Pastoralist, from homitini src/static/css/root.css @ 10f41ec6.
 * Tokens only: no selectors, no utilities. The farm's own colour arrives as a
 * `:root` override in base.html; a second farm is a new .env, never a CSS edit.
 */

:root {
  /* Brand — legacy names kept for readability */
  --m-forest-green: #1a2e1a;
  --m-leaf-green: #4f8a46;
  --m-earth-green: #4a5d4a;
  --m-soft-beige: #f5f2ed;
  --m-card-bg: #ffffff;
  --m-border: #e2e0db;

  /* Health status */
  --m-health-green: #27ae60;
  --m-health-red: #e74c3c;
  --m-health-blue: #3498db;

  /* Primary */
  --m-primary: #3b5334;
  --m-primary-dim: #2f4229;
  --m-primary-container: #526b4a;
  --m-on-primary: #ffffff;
  --m-on-primary-container: #ceeac1;
  /* The grazing badge's pair. app.css asked for these with a hardcoded fallback, which is how a
     missing token stays invisible (D-WS-13). */
  --m-primary-fixed: #ceebc1;
  --m-on-primary-fixed: #0a2007;

  /* Secondary (terracotta) */
  --m-secondary: #95482b;
  --m-secondary-dim: #7a3a22;
  --m-secondary-container: #fc9a76;
  --m-on-secondary: #ffffff;
  --m-on-secondary-container: #753014;

  /* Tertiary (earth) */
  --m-tertiary: #4c4f34;
  --m-tertiary-dim: #3d3f2a;
  --m-tertiary-container: #64674a;
  --m-on-tertiary: #ffffff;
  --m-on-tertiary-container: #e3e5c1;

  /* Surface hierarchy — no lines, only surfaces */
  --m-surface: #f0f4ef;
  --m-surface-dim: #d2d8d0;
  --m-surface-bright: #f0f4ef;
  --m-surface-container-lowest: #ffffff;
  --m-surface-container-low: #edf2eb;
  --m-surface-container: #e6ebe4;
  --m-surface-container-high: #e1e7de;
  --m-surface-container-highest: #dbe3d9;
  --m-surface-variant: #dbe3d9;

  /* Content */
  --m-on-surface: #191d19;
  --m-on-surface-variant: #414941;
  --m-on-background: #191d19;
  --m-background: #f0f4ef;

  /* Outline */
  --m-outline: #707970;
  --m-outline-variant: #bfc9bf;

  /* Resting — a camp serving its rest days. Named because Today's row and its polygon read the
     same token, so the sentence and the shape cannot disagree (D-TS-14/15). */
  --m-resting: #c9a227;

  /* Warning — the resting badge's pair (D-TS-14). Named, so no hex lives in a component. */
  --m-warn: #6b5300;
  --m-warn-container: #fdf3cd;
  --m-on-warn-container: #3d2f00;

  /* One edge, one spelling: a sheet is `--m-surface-container-lowest` with this outline, because a
     2% shadow is invisible in midday glare (D-TS-11). */
  --m-edge: 1px solid var(--m-outline-variant);

  /* Error */
  --m-error: #ba1a1a;
  --m-error-dim: #931414;
  --m-error-container: #ffdad6;
  --m-on-error: #ffffff;
  --m-on-error-container: #93000a;

  /* Inverse */
  --m-inverse-surface: #2d322d;
  --m-inverse-on-surface: #eef3ed;
  --m-inverse-primary: #b2cfa7;

  /* Glass */
  --m-glass-bg: rgba(240, 244, 239, 0.8);
  --m-backdrop-blur: blur(12px);

  /* Shadows */
  --m-shadow-ambient: 0 12px 32px rgba(25, 29, 25, 0.06);
  --m-shadow-card: 0 8px 30px rgba(0, 0, 0, 0.02);
  --m-shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.04);
  --m-shadow-button: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  /* Floating chrome over the map — the polygon label asked for this and got no shadow at all. */
  --m-shadow-float: 0 4px 16px rgba(25, 29, 25, 0.14);

  /* Tap targets — D-WS-8's floor, one spelling for markup, CSS and the measured table */
  --m-tap-min: 44px;

  /* Workspace measurements — D-WS-2. Measured at 390/360/320 in PRD §12. */
  --m-workspace-rail: 400px;
  /* The map share on a phone: 287 px at 844, 218 at 640 (D-TS-2). */
  --m-workspace-map-phone: 34dvh;

  /* Spacing */
  /* One header height, used by the sticky plain pages and the workspace shell (D-TS-13). */
  --m-header-height: 56px;
  --m-space-xs: 0.25rem;
  --m-space-sm: 0.5rem;
  --m-space-md: 1rem;
  --m-space-lg: 1.5rem;
  --m-space-xl: 2rem;
  --m-space-2xl: 2.5rem;
  --m-space-3xl: 3rem;

  /* Radius */
  --m-radius-sm: 0.25rem;
  --m-radius-md: 0.375rem;
  --m-radius-lg: 0.5rem;
  --m-radius-xl: 0.75rem;
  --m-radius-2xl: 1rem;
  --m-radius-3xl: 1.5rem;
  --m-radius-full: 9999px;

  /* Type */
  --m-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --m-font-display: var(--m-font-body);
}
