/* Cultivera Crop Intelligence DTP correction.
   Page-owned, last-loaded refinements for legibility, hierarchy and text composition. */
body.page-crop-intelligence {
  --crop-dtp-label-size: 0.75rem;
  --crop-dtp-control-size: 0.8125rem;
  --crop-dtp-body-small: 0.9rem;
  --crop-dtp-track: 0.055em;
}

/* Consolidate the hero record into two readable lines. */
body.page-crop-intelligence .hero-media-banner > figcaption.image-caption {
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 5px;
  align-items: baseline;
}
body.page-crop-intelligence .hero-media-banner > figcaption.image-caption > strong,
body.page-crop-intelligence .hero-media-banner > figcaption.image-caption > .cd-freshness {
  font-size: var(--crop-dtp-label-size) !important;
  line-height: 1.45;
  letter-spacing: var(--crop-dtp-track);
}
body.page-crop-intelligence .hero-media-banner > figcaption.image-caption > span {
  min-width: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
}
body.page-crop-intelligence .hero-media-banner > figcaption.image-caption > .cd-freshness {
  grid-column: 1 / -1;
  margin-top: 2px;
  color: var(--muted);
  text-transform: none;
}

/* Functional microtype floor. */
body.page-crop-intelligence .atlas-shell :is(
  .atlas-label,
  .atlas-crop-picker > label,
  .atlas-control-compact label,
  .atlas-district-search label,
  .atlas-refine-summary,
  .atlas-coverage-line span,
  .atlas-legend-title,
  .atlas-legend-labels,
  .atlas-legend-missing,
  .atlas-pane-tab,
  .atlas-mode-button,
  .atlas-decision-block > span,
  .atlas-evidence-details summary,
  .atlas-evidence-list dt,
  .atlas-rank-toggle
) {
  font-size: var(--crop-dtp-label-size) !important;
  line-height: 1.4;
  letter-spacing: var(--crop-dtp-track);
}
body.page-crop-intelligence .atlas-shell :is(
  .atlas-refine-summary,
  .atlas-pane-tab,
  .atlas-mode-button,
  .atlas-evidence-details summary,
  .atlas-rank-toggle
) {
  font-size: var(--crop-dtp-control-size) !important;
}
body.page-crop-intelligence .atlas-selection-label text {
  font-size: 12px;
  letter-spacing: 0.03em;
}

/* Make the command summary scan as two grouped lines. */
body.page-crop-intelligence .atlas-coverage-line {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 5px 18px;
  align-items: baseline;
  font-size: var(--crop-dtp-control-size);
}
body.page-crop-intelligence .atlas-coverage-line strong {
  font-variant-numeric: tabular-nums;
}
body.page-crop-intelligence .atlas-coverage-line span {
  width: auto;
  min-width: 0;
  text-transform: none;
}

/* Map title and qualification belong to one reading block. */
body.page-crop-intelligence .atlas-map-head {
  display: grid;
  justify-content: stretch;
  gap: 7px;
  padding: 24px 28px 0;
}
body.page-crop-intelligence .atlas-map-head > div {
  min-width: 0;
}
body.page-crop-intelligence .atlas-map-title {
  max-width: 29ch;
  margin-top: 5px;
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1.08;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
body.page-crop-intelligence .atlas-map-note {
  max-width: 52ch;
  font-size: 0.8125rem;
  line-height: 1.45;
}
body.page-crop-intelligence .atlas-legend-labels,
body.page-crop-intelligence .atlas-legend-missing {
  font-variant-numeric: tabular-nums;
}

/* Controlled two-sentence supporting heading. */
body.page-crop-intelligence .section-title--supporting {
  max-width: none;
}
body.page-crop-intelligence .section-title--supporting > span {
  display: block;
}
@media (min-width: 1100px) {
  body.page-crop-intelligence .section-title--supporting > span {
    white-space: nowrap;
  }
}

@media (max-width: 720px) {
  body.page-crop-intelligence .hero-media-banner > figcaption.image-caption {
    grid-template-columns: 1fr;
    row-gap: 3px;
  }
  body.page-crop-intelligence .hero-media-banner > figcaption.image-caption > .cd-freshness {
    grid-column: 1;
    max-width: 40ch;
  }
  body.page-crop-intelligence .atlas-coverage-line {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  body.page-crop-intelligence .atlas-coverage-line span {
    width: 100%;
  }
  body.page-crop-intelligence .atlas-map-head {
    gap: 6px;
    padding: 20px 20px 0;
  }
  body.page-crop-intelligence .atlas-map-title {
    max-width: 22ch;
    font-size: 1.52rem;
  }
}

/* P1 composition and pacing. */
@media (min-width: 901px) {
  body.main-page.page-crop-intelligence:not(.page-home):not(.page-insights) main:not(#home) > .hero.visual-hero {
    min-height: clamp(500px, 56svh, 550px);
    padding-block: 0;
  }
  body.main-page.page-crop-intelligence:not(.page-home):not(.page-insights) main:not(#home) > .hero.visual-hero .container.hero-content {
    min-height: clamp(500px, 56svh, 550px);
    gap: clamp(32px, 4vw, 58px);
    padding-top: 20px;
    padding-bottom: 20px;
  }
  body.main-page.page-crop-intelligence:not(.page-home) .hero-media-banner {
    max-width: 620px;
    justify-self: end;
    row-gap: 14px;
    gap: 14px;
  }
}

body.page-crop-intelligence .atlas-workbench-intro {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(24px, 3vw, 44px);
  max-width: 1120px;
  align-items: end;
}
body.page-crop-intelligence .atlas-workbench-intro .section-title {
  max-width: 16ch;
}
body.page-crop-intelligence .atlas-workbench-intro > p {
  max-width: 36ch;
}

body.page-crop-intelligence .atlas-map-card {
  min-height: clamp(600px, 66vh, 690px);
}
body.page-crop-intelligence .atlas-map-frame {
  min-height: 480px;
}

/* Keep the district brief to three principal evidence blocks. */
body.page-crop-intelligence .atlas-decision-block {
  margin-top: 18px;
  padding-top: 14px;
}
body.page-crop-intelligence .atlas-detail > .atlas-decision-block:first-of-type {
  margin-top: 18px;
  border-top: 0;
  padding-top: 0;
}
body.page-crop-intelligence .atlas-decision-block p,
body.page-crop-intelligence .atlas-evidence-list dd {
  font-size: var(--crop-dtp-body-small);
  line-height: 1.52;
}
body.page-crop-intelligence .atlas-evidence-details {
  margin-top: 20px;
  border-bottom: 0;
  padding: 13px 0 4px;
}
body.page-crop-intelligence .atlas-evidence-details summary {
  padding-block: 3px;
  font-weight: 600;
}
body.page-crop-intelligence .atlas-evidence-list > div:first-child {
  border-top: 0;
}

/* Stronger, quieter verification rhythm. */
body.page-crop-intelligence .atlas-verification-steps li {
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 17px 0;
}
body.page-crop-intelligence .atlas-verification-steps strong {
  font-size: 1rem;
  line-height: 1.42;
}
body.page-crop-intelligence .atlas-verification-copy > p {
  margin-top: 20px;
}

/* Keep the action within the closing argument rather than at the far edge. */
body.page-crop-intelligence .crop-editorial-close__inner {
  grid-template-columns: minmax(0, 0.72fr) minmax(220px, 0.28fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: end;
}
body.page-crop-intelligence .crop-editorial-close__link {
  justify-self: start;
  align-self: end;
  gap: 12px;
  font-size: 0.98rem;
}

@media (max-width: 900px) {
  body.page-crop-intelligence .atlas-workbench-intro {
    grid-template-columns: 1fr;
    max-width: none;
  }
  body.page-crop-intelligence .atlas-workbench-intro > p {
    max-width: 38ch;
  }
  body.page-crop-intelligence .atlas-map-card {
    min-height: 570px;
  }
  body.page-crop-intelligence .atlas-map-frame {
    min-height: 450px;
  }
}

@media (max-width: 720px) {
  body.page-crop-intelligence :is(.atlas-crop-input, .atlas-control-compact select, .atlas-district-search input) {
    font-size: 16px !important;
  }
  body.page-crop-intelligence .atlas-map-card {
    min-height: 0;
  }
  body.page-crop-intelligence .atlas-map-frame {
    min-height: 335px;
  }
  body.page-crop-intelligence .atlas-verification-steps li {
    grid-template-columns: 30px 1fr;
    gap: 8px;
    padding: 15px 0;
  }
  body.page-crop-intelligence .atlas-verification-steps strong {
    font-size: 0.9375rem;
  }
  body.page-crop-intelligence .crop-editorial-close__inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}
