/* Final results layout: concise, readable, and mobile-first. */
body:not(.compare-page) .main-narrow {
  width: min(100% - 40px, 1180px) !important;
  max-width: 1180px !important;
}

.rr-first-results {
  margin: 42px 0 56px !important;
}

.rr-first-results > .rr-section-heading {
  max-width: 760px !important;
  margin: 0 0 28px !important;
}

.rr-first-results > .rr-section-heading h2 {
  max-width: 12ch !important;
  margin: 8px 0 12px !important;
  font-size: clamp(2.9rem, 6vw, 5.4rem) !important;
  line-height: .94 !important;
}

.rr-first-results-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
  align-items: start !important;
}

.rr-first-result-card {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  overflow: hidden !important;
  background: #fbfaf7 !important;
  border: 1px solid rgba(29, 45, 64, .16) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 48px rgba(23, 40, 63, .07) !important;
}

.rr-first-result-card .rr-almost-image {
  width: 100% !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 10 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.rr-first-result-card .rr-almost-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.rr-first-result-copy {
  display: block !important;
  padding: 24px 24px 26px !important;
}

.rr-first-result-copy .section-kicker {
  margin: 0 0 12px !important;
}

.rr-first-result-copy h3 {
  margin: 0 0 16px !important;
  font-size: clamp(2.25rem, 3.5vw, 3.45rem) !important;
  line-height: .98 !important;
}

.rr-first-result-copy h4 {
  margin: 22px 0 8px !important;
  padding-top: 18px !important;
  border-top: 1px solid rgba(29, 45, 64, .12) !important;
  font-size: .78rem !important;
  line-height: 1.25 !important;
  letter-spacing: .11em !important;
  text-transform: uppercase !important;
}

.rr-first-result-copy p,
.rr-first-result-copy li {
  font-size: .98rem !important;
  line-height: 1.55 !important;
}

.rr-first-result-copy ul {
  margin: 0 !important;
  padding-left: 1.1rem !important;
}

.rr-first-result-copy li + li {
  margin-top: 7px !important;
}

.rr-ranking-explanation {
  margin: 0 !important;
  padding: 16px 18px !important;
  background: #eef2f4 !important;
  border-radius: 12px !important;
  font-size: .96rem !important;
  line-height: 1.5 !important;
}

.rr-ranking-reasons {
  margin: 18px 0 0 !important;
  padding: 16px 18px !important;
  background: rgba(238, 242, 244, .65) !important;
  border-radius: 12px !important;
}

.rr-ranking-reasons h4 {
  margin: 0 0 8px !important;
  padding: 0 !important;
  border: 0 !important;
}

.rr-ranking-reasons ul {
  list-style: none !important;
  padding: 0 !important;
}

.rr-ranking-reasons li {
  margin: 0 !important;
}

.rr-ranking-reasons li + li {
  margin-top: 8px !important;
}

.rr-first-result-copy .btn-primary {
  width: 100% !important;
  justify-content: center !important;
  margin-top: 6px !important;
}

.rr-result-sensitivity,
.rr-current-city-comparison,
.optional-refine-shell,
#ask-reroot-promo-section > *,
#share-card-section > * {
  border-radius: 18px !important;
}

.rr-result-sensitivity {
  margin: 0 0 28px !important;
  padding: 28px !important;
}

#optional-refine-form {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px 22px !important;
}

#optional-refine-form > .optional-q,
#optional-refine-form > details,
#optional-refine-form > button,
#optional-refine-form > .form-actions {
  margin: 0 !important;
}

#optional-refine-form > details,
#optional-refine-form > button,
#optional-refine-form > .form-actions {
  grid-column: 1 / -1 !important;
}

.optional-q {
  padding: 18px !important;
  border: 1px solid rgba(29, 45, 64, .12) !important;
  border-radius: 12px !important;
  background: #fff !important;
}

.optional-q legend {
  margin-bottom: 12px !important;
}

.optional-advanced {
  padding: 16px 18px !important;
  border: 1px solid rgba(29, 45, 64, .12) !important;
  border-radius: 12px !important;
}

.results-destinations-intro,
#matches-grid,
#personality,
#results-screenshot-hero,
#results-share-top,
#results-insights {
  margin-top: 0 !important;
}

body.rr-has-first-results .results-destinations-intro,
body.rr-has-first-results #matches-grid,
body.rr-has-first-results #personality,
body.rr-has-first-results #results-screenshot-hero,
body.rr-has-first-results #results-share-top,
body.rr-has-first-results #results-insights {
  display: none !important;
}

@media (max-width: 980px) {
  .rr-first-results-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .rr-first-result-card {
    display: grid !important;
    grid-template-columns: minmax(260px, .82fr) minmax(0, 1.18fr) !important;
  }

  .rr-first-result-card .rr-almost-image {
    height: 100% !important;
    aspect-ratio: auto !important;
  }
}

@media (max-width: 720px) {
  body:not(.compare-page) .main-narrow {
    width: calc(100% - 24px) !important;
  }

  .rr-first-results {
    margin-top: 28px !important;
  }

  .rr-first-results-grid {
    gap: 18px !important;
  }

  .rr-first-result-card {
    display: flex !important;
  }

  .rr-first-result-card .rr-almost-image {
    aspect-ratio: 16 / 10 !important;
  }

  .rr-first-result-copy {
    padding: 22px 20px 24px !important;
  }

  .rr-first-result-copy h3 {
    font-size: clamp(2.25rem, 11vw, 3.15rem) !important;
  }

  .rr-first-result-copy h4 {
    margin-top: 18px !important;
    padding-top: 16px !important;
  }

  #optional-refine-form {
    grid-template-columns: 1fr !important;
  }
}