/*
 * AgroTracer theme for Tucano 0.39.0: only the documented --tuc-* tokens.
 * Never style the internal .tuc-*__* classes. spec: 07-ui/tucano.md §3
 *
 * Brand: docs/comercial/marca (forest #1F3318, olive #5B7A1E, lime #DDE36A, off-white #F7F8F2).
 * Short corners (approved 25/10/2026): 6px controls, 8px cards, 4px badges.
 */

:root {
  --tuc-accent: #1F3318;
  --tuc-accent-hover: #2A4221;
  --tuc-accent-fg: #FFFFFF;
  --tuc-accent-text: #5B7A1E;
  --tuc-accent-soft: #EEF2C8;
  --tuc-thumb: #FFFFFF;

  --tuc-bg: #FFFFFF;
  --tuc-fg: #1F2A1A;
  --tuc-muted: #5C6656;
  --tuc-border: #DADBD2;
  --tuc-hover: #F1F2EA;
  --tuc-elevated: #FFFFFF;

  --tuc-radius: 0.375rem;
  --tuc-radius-md: 0.5rem;
  --tuc-radius-sm: 0.25rem;
  --tuc-radius-xs: 0.125rem;
  --tuc-font: "Figtree", Inter, system-ui, sans-serif;
}

/*
 * Inside the forest-green surfaces (site header, "não quer escolher?" band) the accent
 * flips to lime with forest text, as the brand guide asks for dark backgrounds.
 * Tokens only: the buttons and fields inside keep being plain Tucano components.
 */
.on-forest {
  --tuc-accent: #DDE36A;
  --tuc-accent-hover: #F0F08A;
  --tuc-accent-fg: #1F3318;
  --tuc-accent-text: #DDE36A;
  /* Outline and ghost buttons read light on the green. Only buttons and links sit on these
     surfaces: fields always go on white cards, outside .on-forest. */
  --tuc-fg: #F7F8F2;
  /* Menu icons and secondary text: the same colour as the labels. */
  --tuc-muted: #F7F8F2;
  --tuc-bg: transparent;
  --tuc-border: rgb(247 248 242 / 0.35);
  --tuc-hover: rgb(247 248 242 / 0.12);
}

/*
 * Read-only value shown as a field (e.g. "52 km da base" next to the area input): same
 * height and line as the real fields, but tinted so nobody tries to type in it.
 * Tucano 0.39.0 has no readonly style; tokens only.
 */
.readonly-field {
  --tuc-bg: #F1F2EA;
  --tuc-fg: #5C6656;
}

/* Full-screen photo viewer: a dark stage so the photos stand out. Tokens only. */
.photo-viewer {
  --tuc-bg: #0F170C;
  --tuc-fg: #F7F8F2;
  --tuc-muted: #A9B3A2;
  --tuc-border: rgb(247 248 242 / 0.25);
  --tuc-hover: rgb(247 248 242 / 0.1);
}

.dark {
  --tuc-accent: #DDE36A;
  --tuc-accent-hover: #F0F08A;
  --tuc-accent-fg: #1F3318;
  --tuc-accent-text: #DDE36A;
  --tuc-bg: #1A2218;
  --tuc-fg: #EEF1E8;
  --tuc-muted: #A9B3A2;
  --tuc-border: #2E382B;
  --tuc-hover: #232C21;
  --tuc-elevated: #121811;
}

/*
 * TEMPORARY: Tucano 0.39.0 hard-codes the badge corner (border-radius: 999px) instead of
 * reading a token, so the theme cannot reach it. Point it at the short-corner token until
 * Tucano exposes one (then delete this rule). Public class only, never a .tuc-*__* part.
 */
.tuc-badge {
  border-radius: var(--tuc-radius-sm);
}
