/* Research entry and the Buying Guides directory use the Research palette. */
.rh .rh-comparisons {
  align-items: start;
  row-gap: 16px;
}

.rh .rh-comparisons-intro h3 {
  padding: 0;
  font-size: 17px;
}

.rh-comparisons-intro p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.rh-comparisons-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
}

.rh-comparisons-link span:first-child,
.buying-guide-note a {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
}

.rh-comparisons-link:hover span:first-child,
.buying-guide-note a:hover {
  text-decoration-color: currentColor;
}

.rh .rh-comparisons .rh-list {
  border-top: 1px solid var(--line);
}

.rh .rh-comparisons .rh-row {
  transition: background-color .2s var(--ease);
}

.rh .rh-comparisons .rh-row:hover {
  padding-inline: 0;
}

.rh-buying-guides .rh-hero {
  padding: clamp(26px, 4vw, 56px) 0 clamp(26px, 4vw, 44px);
  border: 0;
}

.rh-buying-guides .rh-crumbs ol {
  margin-bottom: 16px;
}

.rh-buying-guides .rh-hero h1 {
  font-size: clamp(38px, 5.4vw, 68px);
}

.rh-buying-guides .rh-deck {
  max-width: 55ch;
  margin-top: 12px;
}

.buying-guide-directory {
  padding-bottom: clamp(36px, 5vw, 68px);
}

.buying-guide-groups {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
}

.buying-guide-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.buying-guide-group h2 {
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.rh .buying-guide-list {
  display: grid;
  flex: 1;
  grid-auto-rows: 1fr;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.buying-guide-list li + li {
  border-top: 1px solid var(--line);
}

.buying-guide-list li:first-child .buying-guide-card {
  border-radius: 13px 13px 0 0;
}

.buying-guide-list li:last-child .buying-guide-card {
  border-radius: 0 0 13px 13px;
}

.buying-guide-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
  min-height: 100%;
  padding: clamp(16px, 2.1vw, 26px);
}

.buying-guide-card:hover {
  background: var(--paper);
}

.rh .buying-guide-card:focus-visible {
  outline-offset: -4px;
}

.buying-guide-copy,
.buying-guide-title,
.buying-guide-desc {
  display: block;
}

.buying-guide-title {
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 600;
  letter-spacing: -.018em;
  line-height: 1.25;
}

.buying-guide-desc {
  margin-top: 7px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.buying-guide-arrow {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
}

.buying-guide-card:is(:hover, :focus-visible) .buying-guide-arrow {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--card);
}

.buying-guide-note {
  display: grid;
  gap: 6px 32px;
  margin-top: clamp(26px, 4vw, 44px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.buying-guide-note h2 {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.buying-guide-note p {
  max-width: 66ch;
  margin-top: 4px;
}

.buying-guide-note a {
  justify-self: start;
  padding: 11px 0;
  color: var(--ink);
  font-weight: 600;
}

@media (min-width: 760px) {
  .buying-guide-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .buying-guide-note {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .rh-comparisons-intro {
    padding-top: 16px;
  }
}
