/* Cultivera final award pass · Crop Intelligence production instrument.
   Owns the Select → Refine → Inspect → Verify → Prepare composition only. */
body.page-crop-intelligence {
  --crop-route-ink: #315444;
  --crop-route-muted: rgba(20, 26, 22, 0.34);
  --crop-route-line: rgba(20, 26, 22, 0.16);
  --crop-route-surface: #f8f8f3;
}

/* The route is part of the command system, not a separate explanatory rail. */
body.page-crop-intelligence .atlas-command-route {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(190px, .34fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 42px);
  align-items: end;
  padding: 0 0 17px;
  border-bottom: 1px solid var(--crop-route-line);
}
body.page-crop-intelligence .atlas-command-route__head {
  display: grid;
  gap: 5px;
}
body.page-crop-intelligence .atlas-command-route__label {
  color: var(--crop-route-ink);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}
body.page-crop-intelligence .atlas-command-route__head strong {
  color: var(--atlas-deep);
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(1.05rem, 1.25vw, 1.25rem);
  font-weight: 400;
  line-height: 1.15;
}
body.page-crop-intelligence .atlas-command-route__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.page-crop-intelligence .atlas-command-route__steps::before,
body.page-crop-intelligence .atlas-command-route__steps::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 10px;
  left: 10%;
  right: 10%;
  height: 1px;
}
body.page-crop-intelligence .atlas-command-route__steps::before {
  background: var(--crop-route-line);
}
body.page-crop-intelligence .atlas-command-route__steps::after {
  right: auto;
  width: calc((var(--crop-route-progress, 0) / 4) * 80%);
  background: var(--crop-route-ink);
  transition: width var(--cultivera-route-repeat-duration, 380ms) var(--cultivera-route-ease, ease);
}
body.page-crop-intelligence [data-route-progress="0"] .atlas-command-route__steps { --crop-route-progress: 0; }
body.page-crop-intelligence [data-route-progress="1"] .atlas-command-route__steps { --crop-route-progress: 1; }
body.page-crop-intelligence [data-route-progress="2"] .atlas-command-route__steps { --crop-route-progress: 2; }
body.page-crop-intelligence [data-route-progress="3"] .atlas-command-route__steps { --crop-route-progress: 3; }
body.page-crop-intelligence [data-route-progress="4"] .atlas-command-route__steps { --crop-route-progress: 4; }
body.page-crop-intelligence .atlas-command-route__steps li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--crop-route-muted);
  text-align: center;
}
body.page-crop-intelligence .atlas-command-route__steps li::before {
  content: "";
  width: 19px;
  height: 19px;
  border: 1px solid rgba(49, 84, 68, .32);
  border-radius: 50%;
  background: var(--crop-route-surface);
  box-shadow: 0 0 0 4px var(--crop-route-surface);
  transition: background-color var(--cultivera-route-repeat-duration, 380ms) var(--cultivera-route-ease, ease), border-color var(--cultivera-route-repeat-duration, 380ms) var(--cultivera-route-ease, ease), transform var(--cultivera-route-repeat-duration, 380ms) var(--cultivera-route-ease, ease);
}
body.page-crop-intelligence .atlas-command-route__steps li.is-complete::before {
  border-color: var(--crop-route-ink);
  background: var(--crop-route-ink);
}
body.page-crop-intelligence .atlas-command-route__steps li.is-current {
  color: var(--crop-route-ink);
}
body.page-crop-intelligence .atlas-command-route__steps li.is-current::before {
  border-color: var(--crop-route-ink);
  background: #b9d875;
  box-shadow: 0 0 0 5px rgba(185, 216, 117, .2);
  transform: scale(1.08);
}
body.page-crop-intelligence .atlas-command-route__steps span {
  display: none;
}
body.page-crop-intelligence .atlas-command-route__steps b {
  max-width: 11ch;
  overflow: hidden;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .055em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

/* One command surface: crop, refine and evidence context align. */
body.page-crop-intelligence .atlas-command-bar {
  grid-template-columns: minmax(300px, 1.05fr) auto minmax(290px, .76fr);
  gap: 17px clamp(18px, 2.6vw, 34px);
  align-items: end;
  padding: 21px 22px 22px;
  border: 1px solid rgba(20, 26, 22, .13);
  background: rgba(248, 248, 243, .92);
  box-shadow: 0 18px 44px rgba(24, 54, 46, .06);
}
body.page-crop-intelligence .atlas-crop-picker {
  max-width: none;
}
body.page-crop-intelligence .atlas-refine-summary {
  min-height: 58px;
  border-radius: 6px;
  padding-inline: 20px;
  background: #fff;
}
body.page-crop-intelligence .atlas-refine[open] .atlas-refine-summary {
  border-color: var(--crop-route-ink);
  box-shadow: 0 0 0 3px rgba(49, 84, 68, .1);
}
body.page-crop-intelligence .atlas-coverage-line {
  grid-column: 3;
  align-self: center;
  padding-left: clamp(16px, 2vw, 26px);
  border-left: 1px solid var(--crop-route-line);
}
body.page-crop-intelligence .atlas-coverage-line strong {
  font-size: .9rem;
  line-height: 1.35;
}
body.page-crop-intelligence .atlas-coverage-line span {
  max-width: 34ch;
}

/* Map and district intelligence are equal members of one instrument. */
body.page-crop-intelligence .atlas-decision-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(390px, .92fr);
  gap: clamp(22px, 2.5vw, 34px);
}
body.page-crop-intelligence .atlas-map-card {
  min-height: clamp(600px, 65vh, 680px);
}
body.page-crop-intelligence .atlas-intelligence-pane {
  overflow: hidden;
  border: 1px solid rgba(20, 26, 22, .13);
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 18px 44px rgba(24, 54, 46, .055);
}
body.page-crop-intelligence .atlas-pane-panel {
  padding: 24px clamp(20px, 2vw, 28px) 28px;
}
body.page-crop-intelligence .atlas-pane-tabs {
  background: rgba(248, 248, 243, .9);
}
body.page-crop-intelligence .atlas-pane-tab,
body.page-crop-intelligence .atlas-mode-button {
  min-height: 48px;
}
body.page-crop-intelligence .atlas-detail > .atlas-label {
  color: var(--crop-route-ink);
  font-weight: 600;
}
body.page-crop-intelligence .atlas-field-brief-link {
  min-height: 44px;
  align-items: center;
  margin-top: 18px;
  border: 1px solid var(--atlas-deep);
  background: var(--atlas-deep);
  color: #fff;
  padding: 10px 14px;
  text-decoration: none;
}
body.page-crop-intelligence .atlas-field-brief-link:hover,
body.page-crop-intelligence .atlas-field-brief-link:focus-visible {
  border-color: var(--atlas-green);
  background: var(--atlas-green);
  color: #fff;
}
body.page-crop-intelligence .atlas-selection-label text {
  font-size: 12.5px;
}

/* Verification and preparation belong to one closing decision. */
body.page-crop-intelligence .atlas-verification-grid {
  align-items: start;
}
body.page-crop-intelligence .atlas-field-proof {
  align-self: start;
  max-width: 610px;
  justify-self: end;
}
body.page-crop-intelligence .crop-editorial-close__copy {
  max-width: 48ch;
  margin: 15px 0 0;
  color: rgba(255,255,255,.76);
  font-size: 1rem;
  line-height: 1.55;
}
body.page-crop-intelligence .crop-editorial-close__link {
  min-height: 44px;
  align-items: center;
}

@media (max-width: 1100px) {
  body.page-crop-intelligence .atlas-command-bar {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  body.page-crop-intelligence .atlas-coverage-line {
    grid-column: 1 / -1;
    padding: 13px 0 0;
    border-top: 1px solid var(--crop-route-line);
    border-left: 0;
  }
  body.page-crop-intelligence .atlas-decision-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr);
  }
}

@media (max-width: 900px) {
  body.page-crop-intelligence .atlas-command-route {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  body.page-crop-intelligence .atlas-command-route__head {
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 12px;
  }
  body.page-crop-intelligence .atlas-command-route__head strong {
    text-align: right;
  }
  body.page-crop-intelligence .atlas-decision-grid {
    grid-template-columns: 1fr;
  }
  body.page-crop-intelligence .atlas-intelligence-pane {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  body.page-crop-intelligence .atlas-command-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 10px;
    padding: 16px 14px 17px;
  }
  body.page-crop-intelligence .atlas-command-route {
    grid-column: 1 / -1;
    padding-bottom: 14px;
  }
  body.page-crop-intelligence .atlas-command-route__head {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  body.page-crop-intelligence .atlas-command-route__head strong {
    text-align: left;
    font-size: 1.05rem;
  }
  body.page-crop-intelligence .atlas-command-route__steps b {
    font-size: .64rem;
    letter-spacing: .035em;
  }
  body.page-crop-intelligence .atlas-command-route__steps li::before {
    width: 17px;
    height: 17px;
  }
  body.page-crop-intelligence .atlas-command-route__steps::before,
  body.page-crop-intelligence .atlas-command-route__steps::after {
    top: 9px;
  }
  body.page-crop-intelligence .atlas-refine-summary {
    min-height: 52px;
    padding-inline: 13px;
  }
  body.page-crop-intelligence .atlas-coverage-line {
    grid-column: 1 / -1;
    padding-top: 11px;
  }
  body.page-crop-intelligence .atlas-pane-panel {
    padding: 18px 16px 22px;
  }
  body.page-crop-intelligence .atlas-selection-label text {
    font-size: 13px;
  }
  body.page-crop-intelligence .crop-editorial-close__copy {
    font-size: .96rem;
  }
}

@media (max-width: 460px) {
  body.page-crop-intelligence .atlas-command-route__steps b {
    max-width: 8ch;
    font-size: .6rem;
  }
  body.page-crop-intelligence .atlas-command-route__steps li::before {
    box-shadow: 0 0 0 3px var(--crop-route-surface);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-crop-intelligence .atlas-command-route__steps::after,
  body.page-crop-intelligence .atlas-command-route__steps li::before {
    transition-duration: var(--cultivera-motion-reduced, .00001ms) !important;
  }
}

/* The live status remains available to assistive technology only. */
body.page-crop-intelligence .atlas-status.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
}
body.page-crop-intelligence .atlas-action {
  min-width: 44px;
  min-height: 44px;
}
body.page-crop-intelligence .atlas-toggle {
  min-height: 44px;
}
/* Route labels meet the 12px functional microtype floor at every audited width. */
body.page-crop-intelligence .atlas-command-route__steps b {
  font-size: .75rem;
  letter-spacing: .02em;
}
@media (max-width: 460px) {
  body.page-crop-intelligence .atlas-command-route__steps b {
    font-size: .75rem;
    letter-spacing: .015em;
  }
}

/* Stage 5 · selected-result hierarchy.
   The existing route state distinguishes browsing from a deliberately verified district.
   Keep the command system primary while choosing; let the intelligence brief take over once verified. */
html[data-crop-route-phase="verify"] body.page-crop-intelligence .atlas-workbench-intro > p,
html[data-crop-route-phase="prepare"] body.page-crop-intelligence .atlas-workbench-intro > p {
  color: rgba(20, 26, 22, .48);
}

html[data-crop-route-phase="verify"] body.page-crop-intelligence .atlas-command-bar,
html[data-crop-route-phase="prepare"] body.page-crop-intelligence .atlas-command-bar {
  border-color: rgba(20, 26, 22, .10);
  background: rgba(248, 248, 243, .78);
  box-shadow: 0 12px 32px rgba(24, 54, 46, .035);
}

html[data-crop-route-phase="verify"] body.page-crop-intelligence .atlas-crop-picker,
html[data-crop-route-phase="verify"] body.page-crop-intelligence .atlas-refine,
html[data-crop-route-phase="prepare"] body.page-crop-intelligence .atlas-crop-picker,
html[data-crop-route-phase="prepare"] body.page-crop-intelligence .atlas-refine {
  opacity: .74;
  transition: opacity 180ms ease;
}

html[data-crop-route-phase="verify"] body.page-crop-intelligence .atlas-crop-picker:focus-within,
html[data-crop-route-phase="verify"] body.page-crop-intelligence .atlas-refine:focus-within,
html[data-crop-route-phase="verify"] body.page-crop-intelligence .atlas-refine[open],
html[data-crop-route-phase="prepare"] body.page-crop-intelligence .atlas-crop-picker:focus-within,
html[data-crop-route-phase="prepare"] body.page-crop-intelligence .atlas-refine:focus-within,
html[data-crop-route-phase="prepare"] body.page-crop-intelligence .atlas-refine[open] {
  opacity: 1;
}

html[data-crop-route-phase="verify"] body.page-crop-intelligence .atlas-coverage-line strong,
html[data-crop-route-phase="prepare"] body.page-crop-intelligence .atlas-coverage-line strong {
  color: var(--crop-route-ink);
  font-size: 1rem;
  font-weight: 600;
}

html[data-crop-route-phase="verify"] body.page-crop-intelligence .atlas-map-note,
html[data-crop-route-phase="prepare"] body.page-crop-intelligence .atlas-map-note {
  color: rgba(20, 26, 22, .44);
}

html[data-crop-route-phase="verify"] body.page-crop-intelligence .atlas-intelligence-pane,
html[data-crop-route-phase="prepare"] body.page-crop-intelligence .atlas-intelligence-pane {
  border-color: rgba(49, 84, 68, .28);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 24px 62px rgba(24, 54, 46, .105);
}

html[data-crop-route-phase="verify"] body.page-crop-intelligence .atlas-pane-panel--brief,
html[data-crop-route-phase="prepare"] body.page-crop-intelligence .atlas-pane-panel--brief {
  padding-top: clamp(26px, 2.4vw, 34px);
}

html[data-crop-route-phase="verify"] body.page-crop-intelligence .atlas-detail > .atlas-label,
html[data-crop-route-phase="prepare"] body.page-crop-intelligence .atlas-detail > .atlas-label {
  color: var(--crop-route-ink);
  letter-spacing: .075em;
}

html[data-crop-route-phase="verify"] body.page-crop-intelligence .atlas-brief-district,
html[data-crop-route-phase="prepare"] body.page-crop-intelligence .atlas-brief-district {
  max-width: 12ch;
  margin-top: 10px;
  color: var(--atlas-deep);
  font-size: clamp(2.65rem, 4vw, 4.15rem);
  line-height: .92;
  letter-spacing: -.035em;
}

html[data-crop-route-phase="verify"] body.page-crop-intelligence .atlas-decision-block--signal,
html[data-crop-route-phase="prepare"] body.page-crop-intelligence .atlas-decision-block--signal {
  margin-top: 26px;
  border-top: 0;
  border-left: 3px solid var(--crop-route-ink);
  background: rgba(185, 216, 117, .16);
  padding: 17px 18px 18px;
}

html[data-crop-route-phase="verify"] body.page-crop-intelligence .atlas-decision-block--signal > span,
html[data-crop-route-phase="prepare"] body.page-crop-intelligence .atlas-decision-block--signal > span {
  margin-bottom: 9px;
  color: var(--crop-route-ink);
  font-weight: 600;
}

html[data-crop-route-phase="verify"] body.page-crop-intelligence .atlas-decision-block--signal strong,
html[data-crop-route-phase="prepare"] body.page-crop-intelligence .atlas-decision-block--signal strong {
  max-width: 25ch;
  font-size: clamp(1.65rem, 2.65vw, 2.15rem);
  line-height: 1.08;
}

@media (max-width: 720px) {
  html[data-crop-route-phase="verify"] body.page-crop-intelligence .atlas-crop-picker,
  html[data-crop-route-phase="verify"] body.page-crop-intelligence .atlas-refine,
  html[data-crop-route-phase="prepare"] body.page-crop-intelligence .atlas-crop-picker,
  html[data-crop-route-phase="prepare"] body.page-crop-intelligence .atlas-refine {
    opacity: .86;
  }

  html[data-crop-route-phase="verify"] body.page-crop-intelligence .atlas-intelligence-pane,
  html[data-crop-route-phase="prepare"] body.page-crop-intelligence .atlas-intelligence-pane {
    box-shadow: 0 18px 42px rgba(24, 54, 46, .08);
  }

  html[data-crop-route-phase="verify"] body.page-crop-intelligence .atlas-brief-district,
  html[data-crop-route-phase="prepare"] body.page-crop-intelligence .atlas-brief-district {
    max-width: 14ch;
    font-size: clamp(2.35rem, 12vw, 3.2rem);
  }

  html[data-crop-route-phase="verify"] body.page-crop-intelligence .atlas-decision-block--signal,
  html[data-crop-route-phase="prepare"] body.page-crop-intelligence .atlas-decision-block--signal {
    margin-inline: -4px;
    padding: 15px 16px 17px;
  }

  html[data-crop-route-phase="verify"] body.page-crop-intelligence .atlas-decision-block--signal strong,
  html[data-crop-route-phase="prepare"] body.page-crop-intelligence .atlas-decision-block--signal strong {
    font-size: 1.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-crop-route-phase="verify"] body.page-crop-intelligence .atlas-crop-picker,
  html[data-crop-route-phase="verify"] body.page-crop-intelligence .atlas-refine,
  html[data-crop-route-phase="prepare"] body.page-crop-intelligence .atlas-crop-picker,
  html[data-crop-route-phase="prepare"] body.page-crop-intelligence .atlas-refine {
    transition-duration: var(--cultivera-motion-reduced, .00001ms) !important;
  }
}
