/* =====================================================================
   GOCABAŞ AGRO — "Mera" design tokens  (v1.0, light theme)
   Reference implementation for docs/AGRO_PREMIUM_REDESIGN.md.
   All text/background pairs below were measured for WCAG 2.2 contrast;
   ratios are noted next to each text token (on --surface / --canvas).
   ===================================================================== */

@font-face{font-family:"Inter Var";font-style:normal;font-weight:100 900;font-display:swap;
  src:url(fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter Var";font-style:normal;font-weight:100 900;font-display:swap;
  src:url(fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Newsreader Var";font-style:normal;font-weight:200 800;font-display:swap;
  src:url(fonts/newsreader-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Newsreader Var";font-style:normal;font-weight:200 800;font-display:swap;
  src:url(fonts/newsreader-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

:root{
  /* ---------- Neutrals (warm, slightly green-shifted) ---------- */
  --canvas:        #F6F4EE;  /* app background — warm ivory */
  --surface:       #FCFBF8;  /* cards, sheets */
  --surface-sunk:  #EFECE4;  /* wells, inputs at rest, table zebra */
  --surface-raise: #FFFFFF;  /* popovers, menus */
  --hairline:      #E4E1D8;  /* dividers, card borders (decorative, 1px) */
  --line-strong:   #858A81;  /* input borders, focusable outlines — 3.4:1 */
  --sage:          #A8ADA0;  /* disabled marks, chart grid emphasis, decorative only */

  /* ---------- Ink ---------- */
  --ink:           #1E2420;  /* primary text — 14.4:1 */
  --ink-2:         #545B55;  /* secondary text — 6.8:1 / 6.4:1 */
  --ink-3:         #6A7069;  /* tertiary/meta text — 4.9:1 / 4.6:1 (AA) */
  --ink-inverse:   #F6F4EE;  /* on forest — 10.9:1 */
  --ink-inverse-2: #B9C2B8;  /* secondary on forest — 6.5:1 */

  /* ---------- Brand ---------- */
  --forest-900:    #1A2A24;  /* pressed */
  --forest:        #263B33;  /* primary brand, primary actions, active nav — 10.9:1 on canvas */
  --forest-700:    #34503F;  /* hover */
  --forest-100:    #E3E8E3;  /* selected rows, active chip bg */
  --forest-50:     #EEF1EC;
  --bronze:        #B39A74;  /* accent: target lines, focus ring, premium hairlines — decorative (2.6:1) */
  --bronze-700:    #7E6643;  /* bronze as text — 5.3:1 */
  --bronze-100:    #F1EADF;

  /* ---------- Semantic (muted, always paired with icon + label) ---------- */
  --positive:      #2F6248;  --positive-bg:#E7EEE8;  /* 6.9:1 / 6.0:1 on tint */
  --negative:      #9C3F31;  --negative-bg:#F5E6E2;  /* 6.4:1 / 5.5:1 */
  --warning:       #8A6216;  --warning-bg: #F4EBD8;  /* 5.3:1 / 4.6:1 */
  --info:          #35566E;  --info-bg:    #E5ECF1;  /* 7.5:1 / 6.5:1 */

  /* ---------- Data visualisation ----------
     Categorical order is fixed (never cycled). Validated with the dataviz
     palette checker on --surface: lightness band, chroma floor, CVD & normal
     vision separation, ≥3:1 contrast. Slots 1–4 pass all checks; slot 5 only
     with direct labels. Single-series charts use --forest. */
  --data-1:#117555; /* forest-teal */
  --data-2:#B88842; /* bronze      */
  --data-3:#3577AB; /* slate blue  */
  --data-4:#B1604C; /* terracotta  */
  --data-5:#8A9C4E; /* olive (labels required) */
  --data-grid:#E9E6DE;
  --data-axis:#6A7069;
  --data-target:#B39A74;    /* dashed target / benchmark lines */
  --data-projection:#263B33;/* projection band uses this at 8% opacity */

  /* ---------- Typography ---------- */
  --font-ui: "Inter Var", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Newsreader Var", "Newsreader", "Iowan Old Style", Georgia, serif;
  /* Scale (rem @16px root; respects iOS Dynamic Type via -apple-system-body if enabled) */
  --t-hero:   2.75rem;  /* 44 — one hero figure per screen, display serif */
  --t-title1: 2rem;     /* 32 — page title (display serif) */
  --t-title2: 1.5rem;   /* 24 — section/sheet title */
  --t-title3: 1.25rem;  /* 20 — card title, KPI value */
  --t-body:   1.0625rem;/* 17 — body (iOS native size) */
  --t-body-s: 0.9375rem;/* 15 — secondary body, table cells */
  --t-label:  0.8125rem;/* 13 — labels, overlines (never below 13 for text that carries meaning) */
  --t-caption:0.75rem;  /* 12 — chart axes and legal only */
  --lh-tight:1.15; --lh-snug:1.3; --lh-body:1.5;
  --track-overline:.06em;

  /* ---------- Space (4-pt grid) ---------- */
  --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px; --s-5:20px; --s-6:24px; --s-8:32px; --s-10:40px; --s-14:56px;
  --gutter-m:20px; --gutter-d:32px;

  /* ---------- Shape & depth ---------- */
  --r-xs:6px; --r-s:10px; --r-m:14px; --r-l:20px; --r-xl:28px; --r-full:999px;
  --shadow-0:none;
  --shadow-1:0 1px 2px rgba(30,36,32,.04);
  --shadow-sheet:0 -1px 0 rgba(30,36,32,.04), 0 -12px 40px rgba(30,36,32,.10);
  --shadow-pop:0 1px 2px rgba(30,36,32,.06), 0 12px 32px rgba(30,36,32,.12);
  --focus-ring:0 0 0 2px var(--surface), 0 0 0 4px var(--bronze);

  /* ---------- Motion ---------- */
  --ease-out:cubic-bezier(.2,.8,.2,1); --ease-sheet:cubic-bezier(.32,.72,0,1);
  --dur-1:120ms; --dur-2:200ms; --dur-3:320ms;

  /* ---------- Layout ---------- */
  --tabbar-h:64px; --topbar-h:56px; --sidebar-w:248px; --content-max:1360px;
  --touch:44px; --control-h-m:48px; --control-h-d:40px;
}
@media (prefers-reduced-motion:reduce){:root{--dur-1:0ms;--dur-2:0ms;--dur-3:0ms}}
