/* AUTO-GENERATED by design-tokens/build.py from tokens.json. DO NOT EDIT. */
/* Values are the design decision (audit Section 6 + approved AgriSmart-structure scales). */
/* Edit tokens.json, then rerun. Nothing consumes this file yet - zero consumers by design. */
/* Regenerate: python build.py */

:root {
  /* ---- colour roles (AgriSmart layer = these names) ---- */
  --color-brand-green: #2e5e3e;
  --color-operator-blue: #0077b6;
  --color-success-green: #28a745;
  --color-error-red: #dc3545;
  --color-warning-amber: #ffc107;
  --color-accent-operator: #0077b6;
  --color-accent-farmer: #2e5e3e;
  --color-accent-orange: #e67e22;
  --color-accent-purple: #764ba2;
  --color-earth-brown: #8b4513;
  --color-text-primary: #333333;
  --color-text-secondary: #666666;
  /* --color-text-muted: TODO-DESIGN (no design value yet) */
  --color-border-default: #dddddd;
  --color-bg-subtle: #f5f5f5;
  --color-bg-surface: #ffffff;
  /* --color-info: TODO-DESIGN (no design value yet) */

  /* accent default = operator surface; overridden under [data-surface] */
  --color-accent: var(--color-accent-operator);

  /* ---- spacing (base-4) ---- */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;

  /* ---- font families ---- */
  --font-family-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mobile: Inter;
  --font-family-code: ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ---- font sizes ---- */
  --font-size-xs: 12px;
  --font-size-sm: 13px;
  --font-size-base: 14px;
  --font-size-md: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 32px;
  --font-size-display: 48px;

  /* ---- font weights ---- */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* ---- corner radii ---- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* ---- shadows (elevation) ---- */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-lg: 0 4px 6px rgba(0,0,0,0.1);

  /* ---- border widths ---- */
  --border-default: 1px;
  --border-emphasis: 2px;

  /* ---- motion (durations + easing curves) ---- */
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
  --ease-standard: cubic-bezier(0.4,0,0.2,1);
  --ease-in: cubic-bezier(0.4,0,1,1);
  --ease-out: cubic-bezier(0,0,0.2,1);

  /* ---- opacity ---- */
  --opacity-disabled: 0.5;
  --opacity-muted: 0.6;
  --opacity-hover: 0.8;

  /* ---- z-index ---- */
  --z-base: 1;
  --z-dropdown: 10;
  --z-sticky: 100;
  --z-modal: 1000;
  --z-toast: 1100;

  /* ---- line heights ---- */
  --line-height-tight: 1.2;
  --line-height-base: 1.5;
  --line-height-relaxed: 1.6;

  /* ---- letter spacing ---- */
  --letter-spacing-tight: -0.01em;
  --letter-spacing-base: 0;
  --letter-spacing-wide: 0.05em;

  /* ---- sizes (container max-widths + header height) ---- */
  --size-sm: 640px;
  --size-md: 768px;
  --size-lg: 1024px;
  --size-content: 1200px;
  --size-header-height: 60px;

  /* ---- blur radii ---- */
  --blur-sm: 4px;
  --blur-md: 8px;
  --blur-lg: 16px;

  /* ---- focus ring (fixes hardcoded outline:none) ---- */
  --focus-ring-width: 2px;
  --focus-ring-offset: 2px;
  --focus-ring-color: var(--color-accent);

  /* ---- gradients (existing palette only - no new colour) ---- */
  --gradient-brand: linear-gradient(135deg, #2e5e3e 0%, #28a745 100%);
  --gradient-accent-purple: linear-gradient(135deg, #764ba2 0%, #0077b6 100%);

  /* ---- aspect ratios ---- */
  --aspect-square: 1 / 1;
  --aspect-video: 16 / 9;
  --aspect-portrait: 9 / 16;

  /* ---- icon (sizes + stroke widths) ---- */
  --icon-size-sm: 16px;
  --icon-size-md: 20px;
  --icon-size-lg: 24px;
  --icon-size-xl: 32px;
  --icon-stroke-thin: 1;
  --icon-stroke-base: 1.5;
  --icon-stroke-bold: 2;

  /* ---- text shadow ---- */
  --text-shadow-sm: 0 1px 2px rgba(0,0,0,0.1);
}

/* accent is the ONLY per-surface role. Set data-surface on <html>/<body>: */
[data-surface="operator"] {
  --color-accent: var(--color-accent-operator);
}

[data-surface="farmer"] {
  --color-accent: var(--color-accent-farmer);
}

/* ---- breakpoints (px) - NOT custom properties: @media cannot use var(). ---- */
/* Consume via tokens.js constants (RN/JS) or hardcode from this reference: */
/*   xs: 480px */
/*   sm: 640px */
/*   md: 768px */
/*   lg: 1024px */
/*   xl: 1280px */
/*   2xl: 1536px */
