/*
 * Design tokens for the Estate Field Officer App.
 *
 * Palette taken from the approved screen designs: a deep forest sidebar (#013726) with a bright
 * estate green for the active item, one clear green accent, and a cool near-white canvas so the
 * white cards and their soft tints read cleanly. Status colours: amber for pending, sky blue for
 * in progress, red for anything overdue or failed.
 */
:root {
  /* Canvas and surfaces */
  --bg: #f5f9f9;
  --surface: #ffffff;
  --surface-2: #f1f4f6;
  --line: #e4e9ed;
  --line-soft: #eef1f4;
  --line-strong: #cfd7dd;

  /* Text */
  --ink: #171d26;
  --ink-2: #4f575f;
  --ink-3: #8a929b;
  --on-dark: #f4f7f5;
  --on-dark-2: rgba(244, 247, 245, 0.68);

  /* Forest sidebar */
  --sidebar: #013726;
  --sidebar-gradient: linear-gradient(180deg, #013726 0%, #002a20 100%);
  --sidebar-line: rgba(244, 247, 245, 0.1);
  --sidebar-hover: rgba(244, 247, 245, 0.07);
  --sidebar-active: linear-gradient(135deg, #19833b 0%, #127a39 100%);
  --leaf: #4dbe2a;

  /* Estate green: the accent */
  --green: #0b7a3e;
  --green-deep: #05622f;
  --green-bright: #12a01f;
  --green-soft: #e7f7e5;
  --green-ink: #1b7a3a;

  /* Secondary tints */
  --cinnamon: #b8763a;
  --cinnamon-soft: #f7eadb;
  --cinnamon-ink: #8e5520;
  --slate: #45586a;
  --slate-soft: #e6ebf0;
  --slate-ink: #3a4b5b;
  --sky: #3b7fd3;
  --sky-soft: #e0eefd;
  --sky-ink: #2a63b8;

  /* Status */
  --amber: #d98c1a;
  --amber-soft: #fef3db;
  --amber-ink: #a86a0f;
  --red: #d9382f;
  --red-soft: #fdeaec;
  --red-ink: #b5281f;

  /* Type */
  --font: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --fs-12: 0.75rem;
  --fs-13: 0.8125rem;
  --fs-14: 0.875rem;
  --fs-15: 0.9375rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;
  --fs-28: 1.75rem;
  --fs-34: 2.125rem;

  /* Spacing (4px grid) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;

  /* Shape and depth */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 999px;
  --shadow-card: 0 1px 2px rgba(23, 29, 38, 0.04), 0 8px 24px -16px rgba(23, 29, 38, 0.16);
  --shadow-hover: 0 2px 4px rgba(23, 29, 38, 0.05), 0 16px 32px -18px rgba(23, 29, 38, 0.26);
  --shadow-float: 0 18px 40px -12px rgba(23, 29, 38, 0.3);
  --focus: 0 0 0 3px rgba(11, 122, 62, 0.3);

  /* Layout */
  --sidebar-w: 250px;
  --rail-w: 76px;
  --topbar-h: 72px;
  --tabbar-h: 64px;
  --tap: 44px;
  --gutter: 24px;

  /* Motion */
  --dur: 160ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur: 0ms;
  }
}
