/* Krishi Compass Community — design tokens (everything except colours; colours live in themes.css).
   Radii, hover behaviour and pill shapes mirror the main site. */
:root {
  --kc-font-bn: 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --kc-font-en: 'Outfit', 'Hind Siliguri', system-ui, sans-serif;

  --kc-r-pill: 50px;
  --kc-r-card: 20px;
  --kc-r-lg: 25px;
  --kc-r-md: 14px;
  --kc-r-chip: 5px;

  --kc-s1: 4px; --kc-s2: 8px; --kc-s3: 12px; --kc-s4: 16px; --kc-s5: 24px; --kc-s6: 32px;

  --kc-header-h: 60px;
  --kc-nav-h: 68px;
  --kc-tap: 44px;
  --kc-col-side: 248px;
  --kc-col-main: 680px;
  --kc-col-rail: 320px;

  --kc-z-header: 900;
  --kc-z-fab: 940;
  --kc-z-nav: 950;
  --kc-z-overlay: 2000;
  --kc-z-toast: 3000;

  --kc-ease: cubic-bezier(0.4, 0, 0.2, 1);

  --kc-safe-t: env(safe-area-inset-top, 0px);
  --kc-safe-b: env(safe-area-inset-bottom, 0px);
  --kc-safe-l: env(safe-area-inset-left, 0px);
  --kc-safe-r: env(safe-area-inset-right, 0px);
}

/* Reader font size (Settings -> লেখার আকার). rem-based sizes scale with this. */
html[data-fs="sm"] { font-size: 93.75%; }
html[data-fs="md"] { font-size: 100%; }
html[data-fs="lg"] { font-size: 112.5%; }
html[data-fs="xl"] { font-size: 125%; }

/* ---------- 1D-2: icon tokens (blueprint 19.13) - additive, nothing above this line was changed ----------
   Sizes (js/ui/icons.js ICON_SIZES must match these three numbers; tests/icon-tokens.test.mjs checks it).
   The default colours are ALIASES of the skin tokens in themes.css, so they follow theme x skin and can never drift.
   Every other icon colour (muted, domain accents, status) lives per theme in themes.css.
   A tone class only sets `color`; a component that colours its own icons with a more specific rule still wins. */
:root {
  --kc-icon-size-text: 1em;       /* inline with text */
  --kc-icon-size-ui: 1.125rem;    /* buttons, list rows, nav */
  --kc-icon-size-lg: 1.5rem;      /* empty states, hero */
  --kc-icon-gap: var(--kc-s2);

  --kc-icon: var(--kc-accent-text);          /* dark: the skin accent. light: the skin dark variant */
  --kc-icon-on-accent: var(--kc-on-accent);  /* icon placed ON a filled accent pill or button */
  --kc-icon-info: var(--kc-icon);
}

.kc-icon--text { font-size: var(--kc-icon-size-text); }
.kc-icon--ui { font-size: var(--kc-icon-size-ui); }
.kc-icon--lg { font-size: var(--kc-icon-size-lg); }

.kc-icon--default { color: var(--kc-icon); }
.kc-icon--muted { color: var(--kc-icon-muted); }
.kc-icon--on-accent { color: var(--kc-icon-on-accent); }
.kc-icon--animal { color: var(--kc-icon-animal); }
.kc-icon--fisheries { color: var(--kc-icon-fisheries); }
.kc-icon--badge { color: var(--kc-icon-badge); }
.kc-icon--success { color: var(--kc-icon-success); }
.kc-icon--warning { color: var(--kc-icon-warning); }
.kc-icon--danger { color: var(--kc-icon-danger); }
.kc-icon--info { color: var(--kc-icon-info); }

.kc-icon-label { display: inline-flex; align-items: center; gap: var(--kc-icon-gap); }
