/* Atlas 1.8.1 — contrast correction and clear two-level results hierarchy. */

/* The base selector uses :not() and is unusually specific. Match it here so
   the compact dark masthead always keeps WCAG-readable copy. */
.atlas-hero .atlas-hero__copy > p.atlas-hero__promise {
  margin-top: 10px;
  color: #fff;
  opacity: 1;
  text-shadow: 0 1px 2px rgba(0, 20, 12, .45);
}

.atlas-hero .atlas-hero__copy > p.atlas-hero__lead {
  margin-top: 6px;
  color: rgba(245, 255, 249, .9);
  opacity: 1;
  text-shadow: 0 1px 2px rgba(0, 20, 12, .35);
}

/* Left rail = compact map navigation. */
.results-summary--map {
  min-height: 58px;
  align-items: center;
}

.results-summary__primary {
  display: grid;
  gap: 2px;
}

.results-summary__primary > small {
  color: #64786e;
  font-size: 8.5px;
  font-weight: 850;
  letter-spacing: .055em;
  line-height: 1.2;
  text-transform: uppercase;
}

.results-summary__primary > span {
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
}

.results-foot {
  justify-content: space-between;
  gap: 10px;
}

.results-foot > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.results-foot a {
  flex: 0 0 auto;
  color: var(--forest-700);
  font-weight: 850;
  text-decoration: none;
}

.results-foot a:hover,
.results-foot a:focus-visible {
  color: #4f811d;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.result-list .empty-results .button-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  margin-top: 13px;
  padding-inline: 13px;
  border-radius: 8px;
  color: #fff;
  background: var(--forest-800);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

/* Below the map = fuller catalogue, not another compact rail. */
.results-catalog {
  padding-block-start: 14px;
}

.results-catalog__heading {
  padding-top: 30px;
}

.results-catalog__heading > div:first-child {
  max-width: 830px;
}

.results-catalog__grid .record-tile {
  min-height: 236px;
  border-color: rgba(23, 76, 49, .14);
  background: linear-gradient(180deg, #fff 0%, #fbfdf9 100%);
}

.results-catalog__grid .record-tile h3 {
  font-size: 20px;
}

.record-tile__source {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-top: auto;
  padding-top: 13px;
  color: #607269;
  font-size: 10.5px;
  font-weight: 720;
  line-height: 1.3;
}

.record-tile__source svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  color: var(--forest-700);
}

.record-tile__source span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.results-catalog__grid .record-tile footer {
  margin-top: 11px;
}

@media (max-width: 680px) {
  .atlas-hero .atlas-hero__copy > p.atlas-hero__promise { font-size: 17px; }
  .atlas-hero .atlas-hero__copy > p.atlas-hero__lead { font-size: 13px; }
  .results-foot { align-items: flex-start; flex-direction: column; }
  .results-catalog__heading { align-items: flex-start; flex-direction: column; padding-top: 22px; }
  .results-catalog__summary { align-self: flex-start; justify-items: start; }
}
