/* ReRoot results editorial refresh: clearer hierarchy, roomier spacing, and more visual comparison notes */

#results-main {
  --rr-editorial-ink: #1f3447;
  --rr-editorial-muted: #5f7181;
  --rr-editorial-line: rgba(31, 52, 71, 0.14);
  --rr-editorial-surface: #f7f8f7;
  --rr-editorial-card: #ffffff;
}

#results-main .section-kicker,
#results-main .conversion-type-eyebrow,
#results-main .rr-card-eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #506c85;
}

#results-main .conversion-section-title,
#results-main .rr-narrative-copy h2,
#results-main .results-destinations-intro h2,
#results-main .rr-ranked-lower-card h3 {
  color: var(--rr-editorial-ink);
}

#results-main .conversion-section-title,
#results-main .results-destinations-intro h2 {
  max-width: 16ch;
  margin-top: 0.85rem;
  margin-bottom: 1rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.55rem, 6vw, 4.6rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

#results-main .conversion-section-lead {
  max-width: 54ch;
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: clamp(1rem, 1.7vw, 1.14rem);
  line-height: 1.75;
  color: var(--rr-editorial-muted);
}

/* Top match feature */
#results-main .rr-narrative-top-match {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  min-height: 680px;
  overflow: hidden;
  border: 1px solid var(--rr-editorial-line);
  border-radius: 30px;
  background: var(--rr-editorial-card);
  box-shadow: 0 28px 70px rgba(23, 42, 57, 0.11);
}

#results-main .rr-narrative-photo {
  position: relative;
  min-height: 680px;
  background: #dfe5e7;
}

#results-main .rr-narrative-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(18, 35, 48, 0.02) 45%, rgba(18, 35, 48, 0.34) 100%);
}

#results-main .rr-narrative-photo img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

#results-main .rr-top-match-score {
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1;
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.8rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(22, 38, 50, 0.82);
  color: #fff;
  box-shadow: 0 12px 30px rgba(14, 28, 38, 0.2);
  backdrop-filter: blur(14px);
}

#results-main .rr-top-match-score strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1;
}

#results-main .rr-top-match-score span {
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#results-main .rr-narrative-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(2.2rem, 5vw, 4.75rem);
  font-family: "Inter", sans-serif;
}

#results-main .rr-narrative-copy h2 {
  max-width: 9ch;
  margin: 0.7rem 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.1rem, 7vw, 5.5rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.035em;
}

#results-main .conversion-match-rank {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #506c85;
}

#results-main .conversion-top-match-meta {
  margin-top: 1.15rem;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: #6a7a87;
}

#results-main .rr-human-match-label {
  width: fit-content;
  margin-top: 1.15rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(70, 100, 120, 0.18);
  border-radius: 999px;
  background: #f1f4f4;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #486476;
}

#results-main .rr-narrative-copy .vibe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

#results-main .rr-narrative-copy .vibe-tags .tag {
  padding: 0.5rem 0.72rem;
  border: 1px solid var(--rr-editorial-line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.78rem;
  line-height: 1.2;
  color: #526879;
}

#results-main .conversion-why-fit {
  max-width: 44ch;
  margin-top: 1.5rem;
  font-size: clamp(1.02rem, 1.6vw, 1.12rem);
  line-height: 1.75;
  color: var(--rr-editorial-muted);
}

#results-main .rr-top-match-detail {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rr-editorial-line);
}

#results-main .rr-top-match-detail h3 {
  margin: 0 0 0.8rem;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #425d70;
}

#results-main .rr-narrative-bullets {
  display: grid;
  gap: 0.72rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

#results-main .rr-narrative-bullets li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.94rem;
  line-height: 1.58;
  color: #566978;
}

#results-main .rr-narrative-bullets li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7890a0;
}

#results-main .rr-narrative-copy .btn-primary {
  align-self: flex-start;
  margin-top: 1.8rem;
}

/* Lower-ranked comparison cards */
#results-main .rr-ranked-lower {
  margin-top: clamp(3.5rem, 8vw, 7rem);
  padding: clamp(2rem, 5vw, 4.25rem);
  border: 1px solid var(--rr-editorial-line);
  border-radius: 28px;
  background: linear-gradient(145deg, #f8f9f8 0%, #f1f4f5 100%);
}

#results-main .rr-ranked-lower > .conversion-section-lead {
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

#results-main .rr-ranked-lower-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: 0;
}

#results-main .rr-ranked-lower-card {
  position: relative;
  min-width: 0;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--rr-editorial-line);
  border-radius: 20px;
  background: var(--rr-editorial-card);
  box-shadow: 0 16px 38px rgba(27, 47, 63, 0.06);
}

#results-main .rr-ranked-lower-card::before {
  content: "";
  display: block;
  width: 2.4rem;
  height: 2px;
  margin-bottom: 1.35rem;
  background: #7990a1;
}

#results-main .rr-ranked-lower-card > span + h3 {
  margin-top: 0.8rem;
}

#results-main .rr-ranked-lower-card h3 {
  margin-bottom: 0;
  font-family: "Inter", sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

#results-main .rr-ranked-lower-card h3 + ul {
  margin-top: 1.15rem;
}

#results-main .rr-ranked-lower-card ul {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}

#results-main .rr-ranked-lower-card li {
  position: relative;
  max-width: none;
  padding-left: 1.15rem;
  font-family: "Inter", sans-serif;
  font-size: 0.96rem;
  line-height: 1.65;
  color: #526576;
}

#results-main .rr-ranked-lower-card li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6f8799;
}

#results-main .rr-future-copy,
#results-main .conversion-top-match-body {
  font-family: "Inter", sans-serif;
}

#results-main .rr-future-copy p,
#results-main .conversion-type-body {
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  line-height: 1.8;
  color: var(--rr-editorial-muted);
}

#results-main > div:not(:empty) + div:not(:empty) {
  margin-top: clamp(3.5rem, 8vw, 7rem);
}

@media (max-width: 1080px) {
  #results-main .rr-narrative-top-match {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.9fr);
  }
}

@media (max-width: 880px) {
  #results-main .rr-narrative-top-match {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  #results-main .rr-narrative-photo {
    min-height: clamp(360px, 62vw, 540px);
  }

  #results-main .rr-narrative-copy h2 {
    max-width: 13ch;
  }
}

@media (max-width: 980px) {
  #results-main .rr-ranked-lower-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #results-main .conversion-section-title,
  #results-main .results-destinations-intro h2 {
    max-width: 18ch;
    font-size: clamp(2.25rem, 12vw, 3.25rem);
  }

  #results-main .rr-narrative-top-match {
    border-radius: 22px;
  }

  #results-main .rr-narrative-photo {
    min-height: 330px;
  }

  #results-main .rr-top-match-score {
    right: 1rem;
    bottom: 1rem;
  }

  #results-main .rr-narrative-copy {
    padding: 1.6rem;
  }

  #results-main .rr-narrative-copy h2 {
    font-size: clamp(2.9rem, 15vw, 4rem);
  }

  #results-main .rr-ranked-lower {
    margin-inline: -0.25rem;
    padding: 1.5rem;
    border-radius: 22px;
  }

  #results-main .rr-ranked-lower-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  #results-main .rr-ranked-lower-card {
    padding: 1.35rem;
  }

  #results-main > div:not(:empty) + div:not(:empty) {
    margin-top: 3.75rem;
  }
}
