:root {
  /* ── Palette ── */
  --cream-50:  #FEFBF3;
  --cream-100: #FAF3E0;
  --cream-200: #F2E6C4;
  --cream-300: #E4D1A0;

  --green-400: #5DDB8C;
  --green-500: #20D760;
  --green-600: #17A849;
  --green-700: #0F7533;

  --terra-300: #D4A55A;
  --terra-400: #C08830;
  --terra-500: #996616;
  --terra-600: #6E4810;
  --terra-700: #3E2808;

  --ink-900:   #110E07;
  --ink-700:   #2C2310;
  --ink-500:   #5C4A1E;
  --ink-300:   #9C8460;
  --ink-100:   #C8B48A;

  /* ── Semantic tokens ── */
  --bg:          var(--cream-100);
  --surface:     var(--cream-50);
  --surface-alt: var(--cream-200);
  --border:      var(--cream-300);

  --text-primary:   var(--ink-900);
  --text-secondary: var(--ink-500);
  --text-muted:     var(--ink-300);

  --accent:         var(--green-500);
  --accent-dark:    var(--green-700);
  --highlight:      var(--terra-500);
  --highlight-soft: var(--terra-300);

  /* ── Typography ── */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body:    "Inter", system-ui, sans-serif;

  --text-xs:   clamp(0.70rem, 1.2vw, 0.80rem);
  --text-sm:   clamp(0.85rem, 1.5vw, 0.95rem);
  --text-base: clamp(1.00rem, 1.8vw, 1.10rem);
  --text-lg:   clamp(1.15rem, 2.2vw, 1.35rem);
  --text-xl:   clamp(1.40rem, 3vw,   1.75rem);
  --text-2xl:  clamp(1.80rem, 4vw,   2.40rem);
  --text-3xl:  clamp(2.50rem, 6vw,   4.00rem);
  --text-4xl:  clamp(3.50rem, 9vw,   6.50rem);

  /* ── Spacing ── */
  --space-xs:  0.375rem;
  --space-sm:  0.75rem;
  --space-md:  1.25rem;
  --space-lg:  2.00rem;
  --space-xl:  3.50rem;
  --space-2xl: 6.00rem;

  /* ── Layout ── */
  --max-w: 720px;
  --radius: 4px;

  /* ── Transitions ── */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Page wrapper ── */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-xl) var(--space-lg);
  gap: var(--space-2xl);
}

/* ── Hero ── */
.hero {
  width: 100%;
  max-width: var(--max-w);
  padding-top: var(--space-xl);
  border-top: 3px solid var(--accent);
}

.hero__eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--highlight);
  margin-bottom: var(--space-sm);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 900;
  line-height: 1.0;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__sub {
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 58ch;
  line-height: 1.6;
}

/* ── Form shell ── */
.form-shell {
  width: 100%;
  max-width: var(--max-w);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* ── Section block (shared for each input group) ── */
.form-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border);
}

.form-section:first-child { border-top: none; }

.section-number {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-label {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}

.section-hint {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 400;
  margin-top: calc(-1 * var(--space-sm));
}

/* ── Results shell ── */
.results-shell {
  width: 100%;
  max-width: var(--max-w);
}

/* ── Footer ── */
.footer {
  width: 100%;
  max-width: var(--max-w);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ── Placeholder (temp) ── */
.placeholder-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-style: italic;
}

/* ── Select / Dropdown ─────────────────────────────────────────────────── */
.select-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 100%;
}

.select-input {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  background: var(--surface);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-2xl) var(--space-md) var(--space-md);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  outline: none;
}

.select-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.select-input:hover {
  border-color: var(--ink-300);
}

.select-input option,
.select-input optgroup {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  background: var(--surface);
  color: var(--text-primary);
}

.select-input optgroup {
  font-weight: 600;
  color: var(--highlight);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.select-arrow {
  position: absolute;
  right: var(--space-md);
  pointer-events: none;
  color: var(--highlight);
  font-size: var(--text-base);
  font-weight: 600;
  transition: transform 0.2s var(--ease);
}

.select-wrapper:focus-within .select-arrow {
  transform: rotate(180deg);
  color: var(--accent);
}

.select-meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  font-weight: 500;
  min-height: 1.4em;
  transition: color 0.2s var(--ease);
}

/* ── Slider rows ───────────────────────────────────────────────────────── */
.texture-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.slider-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.slider-row__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.slider-row__label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.slider-row__value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.slider-row__value .unit {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-muted);
}

/* ── Range input base ──────────────────────────────────────────────────── */
.slider-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 99px;
  outline: none;
  cursor: pointer;
  transition: opacity 0.2s var(--ease);
}

.slider-input:hover { opacity: 0.9; }

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  border: 2.5px solid currentColor;
  cursor: grab;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
  margin-top: -8px;
}

.slider-input::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.slider-input::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  border: 2.5px solid currentColor;
  cursor: grab;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

#claySlider  { color: var(--terra-400); }
#sandSlider  { color: var(--highlight-soft); }
#siltSlider  { color: var(--green-600); }
#phSlider    { color: var(--accent); }
#slopeSlider { color: var(--terra-500); }

/* ── Texture total ─────────────────────────────────────────────────────── */
.texture-total {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
  margin-top: var(--space-sm);
}

.texture-total__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex: 1;
}

.texture-total__num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--accent);
}

.texture-total__unit {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ── pH & slope scale labels ───────────────────────────────────────────── */
.ph-scale-labels,
.slope-scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: calc(-1 * var(--space-xs));
}

#slopeLabel {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--terra-500);
  letter-spacing: 0.04em;
  text-transform: none;
}

/* ── Number inputs ─────────────────────────────────────────────────────── */
.num-group {
  display: grid;
  gap: var(--space-lg);
}

.num-group--1 { grid-template-columns: 1fr; max-width: 280px; }
.num-group--3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 480px) {
  .num-group--3 { grid-template-columns: 1fr; }
}

.num-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.num-field__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.num-field__wrap {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
  border-bottom: 2px solid var(--border);
  padding-bottom: var(--space-xs);
  transition: border-color 0.2s var(--ease);
}

.num-field__wrap:focus-within {
  border-color: var(--accent);
}

.num-input {
  -moz-appearance: textfield;
  appearance: textfield;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  width: 100%;
  line-height: 1;
}

.num-input::-webkit-outer-spin-button,
.num-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.num-input::placeholder {
  color: var(--ink-100);
  font-weight: 400;
}

.num-field__unit {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--highlight);
  white-space: nowrap;
  letter-spacing: 0.04em;
}

/* ── Analyse button ────────────────────────────────────────────────────── */
.submit-section {
  border-top: 2px solid var(--accent) !important;
  padding-top: var(--space-xl) !important;
}

.btn-analyse {
  display: inline-block;
  background: var(--accent);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-xl);
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}

.btn-analyse:hover {
  background: var(--green-600);
  transform: translateY(-1px);
}

.btn-analyse:active { transform: translateY(0); }

.submit-hint {
  font-size: var(--text-sm);
  color: var(--terra-500);
  font-weight: 500;
  min-height: 1.5em;
}

/* ── Results panel ─────────────────────────────────────────────────────── */
.results-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 3px solid var(--highlight);
}

.results-header__eyebrow {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--highlight);
  margin-bottom: var(--space-sm);
}

.results-header__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 900;
  line-height: 1.05;
  color: var(--text-primary);
}

/* ── Result block ──────────────────────────────────────────────────────── */
.result-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.result-block__eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.result-block__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.result-crop-name {
  font-style: italic;
  font-weight: 400;
  color: var(--text-secondary);
  font-size: var(--text-lg);
}

.result-block__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  max-width: 60ch;
  line-height: 1.65;
}

/* ── Rating display ────────────────────────────────────────────────────── */
.result-rating {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
}

.result-rating__num {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.result-rating__label {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ── Parameter feedback ────────────────────────────────────────────────── */
.param-feedback {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--space-sm);
  border-top: 1px solid var(--border);
}

.param-row {
  display: grid;
  grid-template-columns: 130px 80px 1fr;
  align-items: baseline;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
}

.param-row__label {
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.param-row__val {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  font-size: var(--text-base);
}

.param-row__status { font-weight: 400; }
.param--ok   { color: var(--green-600); }
.param--low  { color: var(--terra-500); }
.param--high { color: var(--terra-500); }

/* ── Suggestions ───────────────────────────────────────────────────────── */
.result-block--suggest { border-top: 1px dashed var(--border); }

.suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--space-sm);
}

.suggestion-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
}

.suggestion-item__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
}

.suggestion-item__cat {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.suggestion-item__rating {
  font-size: var(--text-sm);
  font-weight: 600;
}

/* ── Reset button ──────────────────────────────────────────────────────── */
.btn-reset {
  display: inline-block;
  background: transparent;
  color: var(--highlight);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid var(--highlight);
  border-radius: var(--radius);
  padding: var(--space-sm) var(--space-lg);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  align-self: flex-start;
}

.btn-reset:hover {
  background: var(--highlight);
  color: var(--cream-50);
}

/* ── FAO class badges ──────────────────────────────────────────────────── */
.param-row {
  grid-template-columns: 130px 80px 40px 1fr;
}

.param-row__cls {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 1px 5px;
  border-radius: 3px;
  align-self: center;
}

.param-cls--S1 { background: color-mix(in srgb, var(--green-500) 15%, transparent); color: var(--green-700); }
.param-cls--S2 { background: color-mix(in srgb, var(--terra-300) 20%, transparent); color: var(--terra-600); }
.param-cls--S3 { background: color-mix(in srgb, var(--terra-500) 15%, transparent); color: var(--terra-700); }
.param-cls--N  { background: color-mix(in srgb, var(--terra-700) 15%, transparent); color: var(--terra-700); }

.param--warn { color: var(--terra-400); }

/* ── Bottom sheet ──────────────────────────────────────────────────────── */
body.sheet-open { overflow: hidden; }

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 14, 7, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
  z-index: 10;
}

.sheet-backdrop.is-visible {
  opacity: 1;
  pointer-events: all;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80vh;
  background: var(--cream-50);
  border-top: 3px solid var(--highlight);
  border-radius: 16px 16px 0 0;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
  z-index: 20;
  display: flex;
  flex-direction: column;
}

.bottom-sheet.is-open {
  transform: translateY(0);
}

.sheet-handle-bar {
  display: flex;
  justify-content: center;
  padding: var(--space-md) 0 var(--space-sm);
  flex-shrink: 0;
}

.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 99px;
  background: var(--border);
}

.sheet-inner {
  flex: 1;
  overflow-y: auto;
  padding: 0 var(--space-xl) var(--space-2xl);
  -webkit-overflow-scrolling: touch;
}

/* Scrollbar styling inside sheet */
.sheet-inner::-webkit-scrollbar { width: 4px; }
.sheet-inner::-webkit-scrollbar-track { background: transparent; }
.sheet-inner::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 99px;
}

/* Reset button sits at bottom of sheet content */
.results-panel .btn-reset {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xl);
}

/* ── Sheet close button ────────────────────────────────────────────────── */
.sheet-handle-bar {
  position: relative;
}

.sheet-close {
  position: absolute;
  right: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius);
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
  line-height: 1;
}

.sheet-close:hover {
  color: var(--text-primary);
  background: var(--surface-alt);
}

/* ── Sheet content centred ─────────────────────────────────────────────── */
.sheet-inner .results-panel {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

/* ── Methodology note ──────────────────────────────────────────────────── */
.methodology-note {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg) 0;
  border-top: 1px dashed var(--border);
  margin-top: var(--space-sm);
}

.methodology-note__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.methodology-note__text {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 68ch;
}

.methodology-note__text strong {
  font-weight: 600;
  color: var(--ink-500);
}

/* ── Site header ───────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-xl);
  background: color-mix(in srgb, var(--cream-100) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  width: 100%;
}

/* ── Logo ──────────────────────────────────────────────────────────────── */
.site-header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.logo-mark {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 900;
  color: var(--cream-50);
  background: var(--accent);
  padding: 2px 8px 3px;
  border-radius: var(--radius);
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.logo-name {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

@media (max-width: 480px) {
  .logo-name { display: none; }
}

/* ── Nav links ─────────────────────────────────────────────────────────── */
.site-header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.15s var(--ease);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link--cta {
  color: var(--highlight);
  font-weight: 600;
  border-bottom: 1.5px solid var(--highlight);
  padding-bottom: 1px;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.nav-link--cta:hover {
  color: var(--terra-700);
  border-color: var(--terra-700);
}

/* ── Coordinate input ──────────────────────────────────────────────────── */
.coord-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.coord-intro {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  padding: var(--space-sm) var(--space-md);
  background: var(--surface-alt);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.coord-input-row {
  display: flex;
  align-items: flex-end;
  gap: var(--space-md);
}

.coord-field { flex: 1; }

.coord-text-input {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.btn-fetch {
  flex-shrink: 0;
  background: var(--surface);
  color: var(--highlight);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid var(--highlight);
  border-radius: var(--radius);
  padding: var(--space-sm) var(--space-lg);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
  margin-bottom: 2px;
}

.btn-fetch:hover:not(:disabled) {
  background: var(--highlight);
  color: var(--cream-50);
}

.btn-fetch:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.coord-meta {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
  min-height: 1.4em;
  letter-spacing: 0.01em;
}

/* ── Season picker ─────────────────────────────────────────────────────── */
.season-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.season-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: calc(-1 * var(--space-xs));
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-xs);
}

@media (max-width: 480px) {
  .month-grid { grid-template-columns: repeat(4, 1fr); }
}

.month-btn {
  background: var(--surface-alt);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  padding: var(--space-xs) 0;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.month-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.month-btn.is-active {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent-dark);
  border-color: var(--accent);
}

.season-presets {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.season-preset {
  background: none;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 2px var(--space-sm);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}

.season-preset:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* ── Climate sub-fields ────────────────────────────────────────────────── */
.climate-fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.climate-fields__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.slope-header-right {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
}

/* ── Fetch badges ──────────────────────────────────────────────────────── */
.fetch-badge {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 3px;
  min-height: 1.2em;
}

.fetch-badge--ok {
  background: color-mix(in srgb, var(--green-500) 12%, transparent);
  color: var(--green-700);
}

.fetch-badge--err {
  background: color-mix(in srgb, var(--terra-500) 12%, transparent);
  color: var(--terra-600);
}

/* ── Chief referral link ───────────────────────────────────────────────── */
.chief-link {
  display: inline-block;
  margin-top: var(--space-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--highlight);
  text-decoration: none;
  letter-spacing: 0.02em;
  border-bottom: 1px dashed var(--highlight);
  padding-bottom: 1px;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.chief-link:hover {
  color: var(--terra-700);
  border-color: var(--terra-700);
}