.marketplace-profile .profile-feature {
  padding-bottom: clamp(20px, 4vw, 40px);
  margin-bottom: 28px;
  border-bottom: 1px solid #d3dde6;
}
.marketplace-profile .profile-story h2 {
  max-width: 36ch;
  margin: 0 0 12px;
  font-size: clamp(1.22rem, 2.5vw, 1.68rem);
  line-height: 1.22;
}
.profile-feature p {
  max-width: 65ch;
  margin: 0 0 12px;
  color: #26394c;
  line-height: 1.65;
}
.profile-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 14px;
  margin-block: 20px;
}
.profile-gallery figure { margin: 0; min-width: 0; }
.profile-gallery img {
  display: block;
  width: 100%;
  height: clamp(170px, 24vw, 280px);
  object-fit: contain;
  border-radius: 12px;
  background: #f5f7f9;
}
.profile-gallery figcaption, .profile-feature .profile-sources {
  margin: 6px 0 0;
  color: #44586b;
  font-size: .88rem;
  line-height: 1.5;
}
.profile-sources a, .profile-faq-source { text-decoration: underline; text-underline-offset: 3px; }
.profile-faq-source { white-space: nowrap; font-size: .88rem; }
.profile-faq-topic > div { padding-inline-start: clamp(12px, 3vw, 28px); }
body .profile-faq-topic[open] details:not([open]) > summary::after { transform: rotate(45deg); }

.profile-hours ul { list-style: none; margin: 0; padding: 0; }
.profile-hours li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 3px 0; }
.profile-hours li span, .profile-hours p { font-weight: 400; }
.profile-hours p { margin: 4px 0; }
.profile-hours dd > a { display: inline-block; margin-top: 6px; text-decoration: underline; }
.profile-review { margin: 0 0 30px; border-inline-start: 3px solid #cf9c32; padding: 2px 0 2px 16px; }
.profile-review-label, .profile-review figcaption { font-size: .875rem; color: #43546a; }
.profile-review-label span { color: #946918; letter-spacing: .06em; margin-right: 5px; }
.profile-review blockquote { margin: 9px 0; color: #142b42; font-size: 1rem; line-height: 1.6; }
.profile-review a { text-decoration: underline; text-underline-offset: 3px; }

/* Profile overview and visit details share the same reading grid. */
.marketplace-profile :is(.profile-hero, .profile-details, .related-section) > .market-wrap {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}
.marketplace-profile .profile-hero { padding: 22px 0 28px; background: #f8fafb; }
.profile-hero .breadcrumbs { margin: 0 0 20px; }
.profile-identity { display: flex; align-items: center; gap: 18px; }
.profile-identity .profile-hero__media {
  flex: 0 0 auto;
  order: 0;
  width: clamp(70px, 8vw, 96px);
  aspect-ratio: 1;
  border: 1px solid #d7e0e8;
  border-radius: 16px;
  box-shadow: none;
}
.profile-identity .business-logo-stage { padding: 9px; }
.profile-identity .business-logo-stage .business-logo { width: 100%; height: 100%; object-fit: contain; }
.profile-location { margin: 0 0 3px; color: #425870; font-size: .925rem; }
.marketplace-profile .profile-hero h1 { font-size: clamp(1.65rem, 3vw, 2.45rem); overflow-wrap: anywhere; }
.marketplace-profile .profile-lead { max-width: 67ch; margin: 15px 0 0; color: #26394c; }
.marketplace-profile .profile-actions { margin-top: 17px; align-items: center; }
.profile-actions > :is(.button,.profile-call) { min-height: 44px; }
.profile-call { display: inline-flex; align-items: center; padding-inline: 5px; color: #075daa; text-underline-offset: 3px; }
.marketplace-profile .profile-details { padding-block: clamp(24px,4vw,48px); }
.marketplace-profile .profile-details__grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(275px,32%);
  grid-template-areas: "story contact";
  gap: clamp(26px,5vw,64px);
}
.marketplace-profile .profile-info { grid-area: contact; position: static; border-radius: 16px; padding: 20px; background: #f8fafb; }
.profile-info h2 { margin: 0 0 5px; color: #142b42; font-size: 1.2rem; }
.profile-info dl > div { padding: 11px 0; }
.profile-info dl > div:last-child { border-bottom: none; padding-bottom: 0; }
.profile-info dt { color: #405366; font-size: .825rem; text-transform: none; }
.profile-info dd { font-size: .95rem; }
.profile-story { grid-area: story; min-width: 0; }
.profile-story .profile-feature { margin: 0; padding: 0; border: none; }
.profile-offerings { margin: 26px 0; border-top: 1px solid #d3dde6; padding-top: 22px; }
.profile-offerings ul { margin: 0 0 12px; padding-left: 1.25em; }
.profile-offerings p { margin: 0; max-width: 65ch; color: #26394c; }
.marketplace-profile .profile-story .agency-faq { margin: 26px 0 0; padding: 0; width: 100%; }
.marketplace-profile .related-section { padding-block: 32px; }
@media (max-width: 760px) {
  .marketplace-profile .profile-details__grid { grid-template-columns: minmax(0,1fr); grid-template-areas: "contact" "story"; gap: 28px; }
  .profile-identity { gap: 12px; }
  .profile-hero .breadcrumbs { margin-bottom: 14px; }
  .marketplace-profile .profile-info { padding: 16px 18px; }
  .marketplace-profile .profile-hero { padding-block: 16px 22px; }
}
@media (min-width: 900px) {
  .marketplace-profile .profile-hero > .market-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(275px,32%);
    column-gap: clamp(26px,5vw,64px);
  }
  .profile-hero .breadcrumbs { grid-column: 1 / -1; }
  .profile-hero .profile-identity, .profile-hero .profile-lead { grid-column: 1; }
  .profile-hero .profile-actions {
    grid-column: 2;
    grid-row: 2 / 4;
    flex-direction: column;
    align-items: flex-start;
    align-self: center;
    margin: 0;
  }
}
