.profile-contact:has(> .profile-reviews) {
  align-items: start;
}

.profile-reviews {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  padding-top: 5px;
}

.profile-contact:has(> .profile-reviews) > .profile-summary {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.business-profile .profile-reviews h2 {
  margin: 0 0 8px;
  color: #46536a;
  font: 650 .79rem/1.3 system-ui, sans-serif;
  letter-spacing: .02em;
}

.profile-review-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.profile-review-link {
  display: inline-block;
  max-width: 100%;
  border: 1px solid #d9dfe7;
  border-radius: 5px;
  padding: 5px 10px;
  color: #223047;
  background: #fff;
  font-size: .79rem;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.profile-review-link:hover,
.profile-review-link:focus-visible {
  border-color: #cfaa4c;
  background: #fff9e7;
}

.profile-more-reviews { margin-top: 6px; }
.profile-more-reviews summary {
  width: fit-content;
  padding: 3px 0;
  color: #46536a;
  font-size: .78rem;
  cursor: pointer;
}
.profile-more-reviews .profile-review-links { margin-top: 6px; }
.profile-show-less,
.profile-more-reviews[open] .profile-show-more { display: none; }
.profile-more-reviews[open] .profile-show-less { display: inline; }

@media (max-width: 768px) {
  .profile-contact:has(> .profile-reviews) > .profile-summary {
    margin-top: 12px;
    padding: 0;
    border: 0;
  }
  .profile-reviews { margin-top: 12px; padding-top: 0; }
}
