/* Founder Phase 1: action-first public professional profile. */
body.route-profile .profile-public-v2 {
  --profile-accent: var(--ms-color-brand, #a90d17);
  --profile-accent-dark: var(--ms-color-brand-hover, #760810);
  --profile-accent-soft: #fff0f1;
  display: grid;
  min-width: 0;
  gap: clamp(14px, 2vw, 24px);
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  padding: clamp(16px, 2.7vw, 42px) 0 clamp(40px, 6vw, 88px);
  overflow: visible;
  background: #f7f2ec;
}

body.route-profile .profile-public-v2,
body.route-profile .profile-public-v2 * {
  box-sizing: border-box;
}

body.route-profile .profile-public-v2--tutor {
  --profile-accent: #175d9c;
  --profile-accent-dark: #0d3f70;
  --profile-accent-soft: #edf6ff;
}

body.route-profile .profile-public-v2--vendor {
  --profile-accent: #a94b08;
  --profile-accent-dark: #733004;
  --profile-accent-soft: #fff4e8;
}

body.route-profile .profile-public-v2--supplier {
  --profile-accent: #197246;
  --profile-accent-dark: #0d4d2e;
  --profile-accent-soft: #eaf8f0;
}

body.route-profile .profile-public-v2--manufacturer {
  --profile-accent: #5a4195;
  --profile-accent-dark: #392568;
  --profile-accent-soft: #f2efff;
}

body.route-profile .profile-public-v2 > .discovery-v1-profile__hero,
body.route-profile .profile-public-v2 > .discovery-v1-profile__section {
  width: calc(100% - clamp(24px, 4vw, 72px)) !important;
  max-width: none !important;
  margin: 0 auto !important;
  border: 1px solid rgba(111, 77, 58, .18) !important;
  border-radius: clamp(18px, 2vw, 28px) !important;
  box-shadow: 0 14px 34px rgba(69, 39, 25, .07);
}

body.route-profile .profile-public-v2 > .discovery-v1-profile__hero {
  display: grid !important;
  grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr) !important;
  gap: clamp(20px, 3vw, 48px) !important;
  align-items: stretch;
  padding: clamp(16px, 2.2vw, 30px) !important;
  background: linear-gradient(135deg, var(--profile-accent-soft), #fff 62%) !important;
}

body.route-profile .profile-public-v2 .discovery-v1-profile__media {
  position: relative;
  display: grid !important;
  min-height: clamp(310px, 35vw, 520px) !important;
  place-content: center;
  gap: 8px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--profile-accent) 34%, #fff) !important;
  border-radius: 22px !important;
  color: var(--profile-accent-dark);
  background:
    radial-gradient(circle at 70% 24%, color-mix(in srgb, var(--profile-accent) 15%, transparent), transparent 38%),
    linear-gradient(145deg, #fff, var(--profile-accent-soft));
  text-align: center;
}

body.route-profile .profile-public-v2 .discovery-v1-profile__media::after {
  content: '';
  position: absolute;
  inset: auto -12% -32% 30%;
  height: 60%;
  border-radius: 50%;
  background: color-mix(in srgb, var(--profile-accent) 12%, transparent);
  pointer-events: none;
}

.profile-public-v2 .profile-photo-zoom {
  position: absolute;
  inset: auto .5rem .5rem auto;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #dbc6ba;
  border-radius: 50%;
  color: #76203a;
  background: #fffaf5;
}
.profile-photo-zoom:focus-visible { outline: 3px solid #76203a; outline-offset: -4px; }
.profile-public-v2 .detail-related-jump {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: .35em;
  min-height: 44px;
  font-size: .9rem;
  font-weight: 600;
}

body.route-profile .profile-public-v2 .discovery-v1-profile__media > img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
}

body.route-profile .profile-public-v2 .discovery-v1-profile__media.has-default-profile-icon {
  background: #f5e8e0 !important;
}

body.route-profile .profile-public-v2 .discovery-v1-profile__media.has-default-profile-icon::after {
  display: none;
}

body.route-profile .profile-public-v2 .discovery-v1-profile__media.has-default-profile-icon > img {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

body.route-profile .profile-public-v2__identity-preview {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  place-items: center;
  gap: 8px;
  padding: 20px;
}

body.route-profile .profile-public-v2__identity-preview img {
  display: block;
  width: clamp(150px, 18vw, 260px);
  height: clamp(150px, 18vw, 260px);
  border: 6px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 18px 40px color-mix(in srgb, var(--profile-accent) 24%, transparent);
}

body.route-profile .profile-public-v2__identity-preview strong,
body.route-profile .profile-public-v2__identity-preview span {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
}

body.route-profile .profile-public-v2__media-mark {
  display: grid;
  width: 94px;
  height: 94px;
  place-items: center;
  margin: 0 auto 8px;
  border: 4px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--profile-accent), var(--profile-accent-dark));
  font-size: 2.35rem;
  font-weight: 900;
  box-shadow: 0 14px 30px color-mix(in srgb, var(--profile-accent) 24%, transparent);
}

body.route-profile .profile-public-v2 .discovery-v1-profile__details {
  display: grid !important;
  min-width: 0;
  align-content: center;
  gap: 14px !important;
}

body.route-profile .profile-public-v2 .discovery-v1-eyebrow {
  color: var(--profile-accent) !important;
}

body.route-profile .profile-public-v2 .discovery-v1-profile__identity {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

body.route-profile .profile-public-v2 .discovery-v1-profile__avatar {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 50%;
  outline: 1px solid color-mix(in srgb, var(--profile-accent) 35%, #d4b7a5);
  color: #fff;
  background: linear-gradient(135deg, var(--profile-accent), var(--profile-accent-dark));
  font-size: 1.9rem;
  font-weight: 900;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--profile-accent) 22%, transparent);
}

body.route-profile .profile-public-v2 .discovery-v1-profile__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body.route-profile .profile-public-v2 .discovery-v1-profile__details h1 {
  max-width: 100% !important;
  margin: 0 0 5px;
  overflow-wrap: anywhere;
  font-size: var(--ms-type-title, clamp(2rem, 4.2vw, 4.4rem)) !important;
  line-height: 1.2 !important;
}

body.route-profile .profile-public-v2 .discovery-v1-profile__role {
  color: var(--profile-accent-dark);
}

body.route-profile .profile-public-v2__trust {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid #dbc8b9;
  border-radius: 12px;
  color: #55453e;
  background: #fff;
  font-size: var(--ms-type-small, 13px);
  line-height: 1.35;
}

body.route-profile .profile-public-v2__trust strong {
  color: #744a1e;
  white-space: nowrap;
}

body.route-profile .profile-public-v2__trust.is-verified {
  border-color: #abd7bf;
  background: #edf9f2;
}

body.route-profile .profile-public-v2__trust.is-verified strong {
  color: #126239;
}

body.route-profile .profile-tagline {
  margin: 0;
  max-width: 58ch;
  color: var(--text-secondary, #654c42);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  body.route-profile #main-content .profile-tagline { font-size: .875rem !important; }
}

body.route-profile .profile-public-v2 .discovery-v1-profile__location,
body.route-profile .profile-public-v2 .discovery-v1-lead,
body.route-profile .profile-public-v2 .u1-profile-share-status {
  margin: 0;
}

body.route-profile .profile-public-v2 .u1-profile-actions {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

body.route-profile .profile-public-v2 .u1-profile-actions > * {
  min-width: 0;
  min-height: 46px;
}

body.route-profile .profile-public-v2 .ui-button:not(.is-secondary):not(.is-whatsapp) {
  border-color: var(--profile-accent) !important;
  background: var(--profile-accent) !important;
}

body.route-profile .profile-public-v2 .ui-button:not(.is-secondary):not(.is-whatsapp):hover {
  background: var(--profile-accent-dark) !important;
}

body.route-profile .profile-public-v2 .discovery-v1-profile__sections {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px !important;
  width: 100% !important;
  max-width: none !important;
  margin-top: 2px;
  overflow: visible;
}

body.route-profile .profile-public-v2 .discovery-v1-profile__sections a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid color-mix(in srgb, var(--profile-accent) 28%, #d9c7bb);
  border-radius: 12px;
  background: #fff;
}

body.route-profile .profile-public-v2 .discovery-v1-profile__sections a > strong {
  color: var(--profile-accent);
}

body.route-profile .profile-public-v2 .discovery-v1-profile__sections a span {
  min-width: 0;
  color: #32241f;
  text-align: left;
}

body.route-profile .profile-public-v2 .discovery-v1-profile__sections a small {
  display: block;
  overflow: hidden;
  color: #705d54;
  font-size: var(--ms-type-small, 12px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.route-profile .profile-public-v2 > .discovery-v1-profile__section {
  display: grid !important;
  gap: clamp(18px, 2.2vw, 30px) !important;
  padding: clamp(24px, 3.5vw, 52px) !important;
}

body.route-profile .profile-public-v2 > #profile-overview {
  background: linear-gradient(145deg, #fff2ea, #fffaf6) !important;
}

body.route-profile .profile-public-v2 > #profile-portfolio {
  background: linear-gradient(145deg, #eef4ff, #fbfdff) !important;
}

body.route-profile .profile-public-v2 > #profile-services {
  background: linear-gradient(145deg, #eaf8f1, #fbfffd) !important;
}

body.route-profile .profile-public-v2 > #profile-reviews {
  background: linear-gradient(145deg, #fff6d9, #fffdf6) !important;
}

body.route-profile .profile-public-v2 > #profile-related {
  background: linear-gradient(145deg, #edf8fb, #fbfeff) !important;
}

/* Keep related providers before the FAQ in the profile's reading order. */
body.route-profile #main-content .profile-mobile-pilot > #profile-related { order: 0 !important; }
body.route-profile #main-content .profile-mobile-pilot > #profile-related .discovery-v1-section-heading { max-width: none !important; }

body.route-profile .profile-public-v2 > #profile-inquiry {
  background: linear-gradient(145deg, #eaf7ef, #fff) !important;
}

body.route-profile .profile-public-v2 > #profile-review-form {
  background: linear-gradient(145deg, #fff2e3, #fffaf5) !important;
}

body.route-profile .profile-public-v2 .discovery-v1-section-heading {
  max-width: 860px;
}

body.route-profile .profile-public-v2 .discovery-v1-section-heading :is(h2, p),
body.route-profile .profile-public-v2 .u1-profile-review-form-copy :is(h2, p) {
  margin-top: 0;
}

body.route-profile .profile-public-v2 .discovery-v1-section-heading h2,
body.route-profile .profile-public-v2 .u1-profile-review-form-copy h2 {
  font-size: var(--ms-type-section, clamp(1.65rem, 3vw, 3rem));
  line-height: 1.08;
}

body.route-profile .profile-public-v2 .ui-card,
body.route-profile .profile-public-v2 .ui-state,
body.route-profile .profile-public-v2 .u1-profile-coverage article {
  min-width: 0;
  border-color: rgba(105, 76, 61, .2) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, .9) !important;
  box-shadow: 0 8px 22px rgba(70, 45, 30, .05);
}

body.route-profile .profile-public-v2 .u1-profile-overview-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr) !important;
}

body.route-profile .profile-public-v2 .u1-profile-coverage {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

body.route-profile .profile-public-v2 .discovery-v1-portfolio-grid,
body.route-profile .profile-public-v2 .discovery-v1-offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 14px;
}

body.route-profile .profile-public-v2 .discovery-v1-portfolio-grid figure {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(61, 86, 129, .2);
  border-radius: 16px;
  background: #fff;
}

body.route-profile .profile-public-v2 .discovery-v1-portfolio-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
}

body.route-profile .profile-public-v2 .discovery-v1-portfolio-grid figcaption {
  display: grid;
  gap: .25rem;
  padding: .65rem .8rem;
  overflow-wrap: anywhere;
}

body.route-profile .profile-public-v2 .discovery-v1-portfolio-grid .catalog-actions {
  padding: 0 .8rem .7rem;
  margin-top: auto;
  align-self: center;
}

body.route-profile .profile-public-v2 .discovery-v1-portfolio-grid .portfolio-view { justify-self: start; font-weight: 650; }
@media (min-width: 1200px) {
  body.route-profile .profile-public-v2 .discovery-v1-portfolio-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

body.route-profile .profile-public-v2 .u1-profile-review-layout {
  grid-template-columns: minmax(210px, 260px) minmax(0, 1fr) !important;
}

body.route-profile .profile-public-v2 .u1-profile-related-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

body.route-profile .profile-public-v2 .u1-profile-related-card > :is(img, .u1-profile-related-placeholder) {
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

body.route-profile .profile-public-v2 .u1-profile-contact-intro {
  width: 100% !important;
  align-items: end;
}

body.route-profile .profile-public-v2 .u1-profile-direct-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

body.route-profile .profile-public-v2 .discovery-v1-inquiry,
body.route-profile .profile-public-v2 .u1-profile-review-form {
  width: 100% !important;
  max-width: 920px !important;
}

body.route-profile .profile-public-v2 .u1-profile-review-form-section {
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr) !important;
}

body.route-profile .profile-public-v2 :is(input, select, textarea, button, a) {
  max-width: 100%;
}

@media (max-width: 1080px) {
  body.route-profile .profile-public-v2 > .discovery-v1-profile__hero {
    grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr) !important;
  }

  body.route-profile .profile-public-v2 .u1-profile-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.route-profile .profile-public-v2 .discovery-v1-profile__sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body.route-profile .profile-public-v2 > .discovery-v1-profile__hero {
    grid-template-columns: 1fr !important;
  }

  body.route-profile .profile-public-v2 .discovery-v1-profile__media {
    min-height: clamp(240px, 58vw, 430px) !important;
  }

  body.route-profile .profile-public-v2 .discovery-v1-profile__details {
    order: -1;
  }

  body.route-profile .profile-public-v2 .u1-profile-overview-grid,
  body.route-profile .profile-public-v2 .u1-profile-review-layout,
  body.route-profile .profile-public-v2 .u1-profile-review-form-section {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 600px) {
  body.route-profile .profile-public-v2 {
    gap: 12px;
    padding-top: 12px;
  }

  body.route-profile .profile-public-v2 > .discovery-v1-profile__hero,
  body.route-profile .profile-public-v2 > .discovery-v1-profile__section {
    width: calc(100% - 20px) !important;
    border-radius: 18px !important;
  }

  body.route-profile .profile-public-v2__identity-preview img {
    width: clamp(112px, 36vw, 160px);
    height: clamp(112px, 36vw, 160px);
  }

  body.route-profile .profile-public-v2 .discovery-v1-profile__media {
    min-height: 200px !important;
  }

  body.route-profile .profile-public-v2 > .discovery-v1-profile__hero,
  body.route-profile .profile-public-v2 > .discovery-v1-profile__section {
    padding: 14px !important;
  }

  body.route-profile .profile-public-v2 .discovery-v1-profile__details {
    gap: 11px !important;
  }

  body.route-profile .profile-public-v2 .discovery-v1-profile__identity {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 11px;
  }

  body.route-profile .profile-public-v2 .discovery-v1-profile__avatar {
    width: 70px;
    height: 70px;
    border-width: 3px;
    font-size: 1.45rem;
  }

  body.route-profile .profile-public-v2 .discovery-v1-profile__details h1 {
    font-size: var(--ms-type-title, 24px) !important;
  }

  body.route-profile .profile-public-v2__trust {
    display: grid;
    gap: 2px;
    width: 100%;
  }

  body.route-profile .profile-public-v2 .u1-profile-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.route-profile .profile-public-v2 .discovery-v1-profile__sections {
    display: flex !important;
    width: calc(100% + 14px) !important;
    margin-right: -14px;
    padding: 1px 14px 5px 0;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  body.route-profile .profile-public-v2 .discovery-v1-profile__sections a {
    flex: 0 0 164px;
    scroll-snap-align: start;
  }

  body.route-profile .profile-public-v2 .discovery-v1-section-heading h2,
  body.route-profile .profile-public-v2 .u1-profile-review-form-copy h2 {
    font-size: var(--ms-type-section, 20px);
  }

  body.route-profile .profile-public-v2 .u1-profile-contact-intro {
    align-items: stretch;
  }

  body.route-profile .profile-public-v2 .u1-profile-direct-actions,
  body.route-profile .profile-public-v2 .discovery-v1-inquiry__navigation {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.route-profile .profile-public-v2 .u1-profile-direct-actions > *,
  body.route-profile .profile-public-v2 .discovery-v1-inquiry__navigation > * {
    width: 100%;
  }

  body.route-profile .profile-public-v2 .u1-profile-offer-group__heading {
    grid-template-columns: 1fr;
  }

  body.route-profile .profile-public-v2 .u1-profile-offer-group__heading > span {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }
}

@media (max-width: 370px) {
  body.route-profile .profile-public-v2 .u1-profile-actions {
    grid-template-columns: 1fr;
  }
}

/* One compact control row and a flat tab strip for every professional role. */
body.route-profile #main-content .profile-mobile-pilot .u1-profile-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
}

body.route-profile #main-content .profile-mobile-pilot .u1-profile-actions.has-no-direct-contact {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.route-profile #main-content .profile-mobile-pilot .u1-profile-actions :is(.ui-button, summary) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0 !important;
  min-height: 44px !important;
  padding: 8px !important;
  border-radius: 10px;
  font-size: var(--ms-type-control, 14px) !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  box-shadow: none;
}

body.route-profile .profile-action-icon,
body.route-profile .profile-mobile-pilot .shortlist-action::before {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

body.route-profile .profile-mobile-pilot .profile-share-menu__options :is(a, button) {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

/* The shortlist renderer updates textContent; a CSS icon survives Save/Saved. */
body.route-profile .profile-mobile-pilot .shortlist-action::before {
  content: "";
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3h12v18l-6-4-6 4Z' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3h12v18l-6-4-6 4Z' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.route-profile #main-content .profile-mobile-pilot .profile-pilot-tabs {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 0 !important;
  width: 100% !important;
  margin-top: 12px !important;
  padding: 0 !important;
  border: 0;
  border-bottom: 1px solid var(--ms-color-border, #ead8ce);
  border-radius: 0;
  background: transparent;
  overflow: visible !important;
}

body.route-profile #main-content .profile-mobile-pilot .profile-pilot-tabs [data-profile-link] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 44px !important;
  padding: 10px 2px !important;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--ms-color-text, #39271f);
  font-size: var(--ms-type-control, 14px) !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  text-decoration: none;
}

body.route-profile #main-content .profile-mobile-pilot .profile-pilot-tabs [data-profile-link] svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

body.route-profile #main-content .profile-mobile-pilot .profile-pilot-tabs [aria-current="location"] {
  border-bottom-color: var(--profile-accent);
  background: transparent;
  color: var(--profile-accent-dark);
}

@media (max-width: 600px) {
  body.route-profile #main-content .profile-mobile-pilot .profile-pilot-tabs {
    --ms-type-control: 12px;
  }

  body.route-profile #main-content .profile-mobile-pilot .u1-profile-actions :is(.ui-button, summary) {
    gap: 4px;
    padding: 8px 3px !important;
    font-size: 13px !important;
  }

  body.route-profile #main-content .profile-mobile-pilot .profile-pilot-tabs [data-profile-link] {
    font-size: 12px !important;
  }
}

@media (forced-colors: active) {
  body.route-profile .profile-mobile-pilot .shortlist-action::before {
    forced-color-adjust: none;
    background: ButtonText;
  }

  body.route-profile #main-content .profile-mobile-pilot .profile-pilot-tabs [data-profile-link]:not([aria-current]) {
    border-bottom-style: none;
  }
}

/* Native disclosures keep empty sections compact without hiding published content. */
body.route-profile #main-content .profile-mobile-pilot > [id^="profile-"] {
  scroll-margin-top: calc(var(--ms-header-height, 80px) + 16px);
}
body.route-profile #main-content .profile-mobile-pilot > details.profile-section-disclosure {
  display: block !important;
  border-top: 1px solid var(--ms-public-border, #ead8ce) !important;
}
body.route-profile #main-content .profile-mobile-pilot > details.profile-section-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 10px 0;
  color: var(--ms-color-text, #39271f);
  cursor: pointer;
  list-style: none;
  text-align: left !important;
}
body.route-profile #main-content .profile-mobile-pilot > details.profile-section-disclosure > summary h2 {
  min-width: 0;
  text-align: left !important;
}
body.route-profile #main-content .profile-mobile-pilot > details.profile-section-disclosure > summary::-webkit-details-marker {
  display: none;
}
body.route-profile #main-content .profile-mobile-pilot > details.profile-section-disclosure > summary::after {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
body.route-profile #main-content .profile-mobile-pilot > details.profile-section-disclosure[open] > summary::after {
  transform: rotate(225deg);
}
body.route-profile #main-content .profile-mobile-pilot > details.profile-section-disclosure[open] > :not(summary) {
  margin-top: 12px;
}
body.route-profile #main-content .profile-mobile-pilot :is([data-profile-link],.profile-section-disclosure > summary):focus-visible {
  outline: 2px solid var(--profile-accent);
  outline-offset: 3px;
}

/* Public profile content uses the page canvas; cards identify individual items. */
body.route-profile #main-content .profile-mobile-pilot {
  gap: 24px !important;
  padding-top: 20px !important;
  background: transparent !important;
}
body.route-profile #main-content .profile-mobile-pilot > :is(.discovery-v1-profile__hero,.discovery-v1-profile__section) {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}
body.route-profile #main-content .profile-mobile-pilot :is(.u1-profile-about-card,.u1-profile-offer-group,.discovery-v1-inquiry,.u1-profile-review-form) {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}
body.route-profile #main-content .profile-mobile-pilot .discovery-v1-section-heading { margin-bottom: 12px !important; }
body.route-profile #main-content .profile-mobile-pilot .u1-profile-share-status:not(:empty) { display: block !important; margin: 0 !important; font-size: var(--ms-type-small, 13px) !important; line-height: 1.5 !important; }
body.route-profile #main-content .profile-mobile-pilot .u1-profile-share-status:empty { display: none !important; }
body.route-profile #main-content .profile-mobile-pilot :is(.u1-profile-review-summary,.discovery-v1-review-card,.u1-profile-review-login-gate,.ui-state) {
  padding: 12px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
}
body.route-profile #main-content .profile-mobile-pilot .u1-profile-review-summary { display: flex; flex-direction: row; align-items: center; gap: 12px; }
body.route-profile #main-content .profile-mobile-pilot .u1-profile-review-summary > strong { font-size: 24px !important; line-height: 1.3 !important; }
body.route-profile #main-content .profile-mobile-pilot .discovery-v1-review-card { border-bottom: 1px solid var(--ms-public-border) !important; }
body.route-profile #main-content .profile-mobile-pilot .discovery-v1-review-card h3 { font-size: 17px !important; line-height: 1.4 !important; }
body.route-profile #main-content .profile-mobile-pilot .discovery-v1-inquiry__review > div { padding: 10px 0 !important; border: 0 !important; border-bottom: 1px solid var(--ms-public-border) !important; background: transparent !important; }
body.route-profile #main-content .profile-mobile-pilot h1 { font-size: 36px !important; line-height: 1.2 !important; }
body.route-profile #main-content .profile-mobile-pilot h2 { font-size: 24px !important; line-height: 1.3 !important; }
body.route-profile #main-content .profile-mobile-pilot .profile-provider-social :is(a,.is-unlinked) { min-width: 44px; min-height: 44px; }
@media (max-width: 820px) {
  body.route-profile #main-content .profile-mobile-pilot { gap: 20px !important; padding-top: 12px !important; }
  body.route-profile #main-content .profile-mobile-pilot h1 { font-size: 24px !important; }
  body.route-profile #main-content .profile-mobile-pilot h2 { font-size: 20px !important; }
  body.route-profile #main-content .profile-mobile-pilot .discovery-v1-profile__details { gap: 12px !important; }
}
/* Listing artwork is separate from the professional's original-work portfolio. */
.profile-offer-image{margin:0 0 14px;position:relative;overflow:hidden;border-radius:12px;background:#f6ede3}
.profile-offer-image a{display:block}
.profile-offer-image img{display:block;width:100%;height:auto;max-height:260px;aspect-ratio:3/2;object-fit:contain}
.profile-offer-image figcaption{padding:6px 10px;color:#65554b;background:#fffaf4;font-size:11px;line-height:1.4}
.discovery-v1-offer-card{min-width:0}
.discovery-v1-offer-card>p{overflow-wrap:anywhere}

/* A profile's identity, contact actions and catalogue should fit together at reading sizes. */
body.route-profile #main-content .profile-mobile-pilot > .discovery-v1-profile__hero {
  display: grid !important;
  grid-template-columns: clamp(12rem, 27vw, 22rem) minmax(0, 1fr) !important;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem) !important;
}
body.route-profile #main-content .profile-mobile-pilot .discovery-v1-profile__media {
  order: 0 !important;
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  align-self: center;
  aspect-ratio: 1;
}
body.route-profile #main-content .profile-mobile-pilot .discovery-v1-profile__details {
  order: 1 !important;
  min-width: 0;
}
body.route-profile #main-content .profile-mobile-pilot .profile-provider-facts span,
body.route-profile #main-content .profile-mobile-pilot :is(h1, h3, dd, .discovery-v1-profile__location) {
  max-width: 100%;
  overflow-wrap: anywhere;
}
body.route-profile #main-content .profile-mobile-pilot .profile-provider-social a:not(:has(svg)) {
  width: auto;
  padding-inline: .65rem;
}
body.route-profile #main-content .profile-mobile-pilot .u1-profile-actions.has-no-direct-contact {
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)) !important;
}
body.route-profile #main-content .profile-mobile-pilot .u1-profile-coverage {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: .75rem;
  margin-top: .75rem;
}
body.route-profile #main-content .profile-mobile-pilot .u1-profile-coverage article {
  display: grid;
  align-content: start;
  gap: .3rem;
  padding: .35rem .75rem;
  border: 0;
  border-inline-start: 2px solid var(--ms-public-border, #e7d4c8);
  border-radius: 0;
  background: transparent;
  overflow-wrap: anywhere;
}
body.route-profile #main-content .profile-mobile-pilot #profile-services :is(.discovery-v1-offer-grid, .ms-product-grid):not(.profile-service-grid) {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)) !important;
  align-items: start;
  gap: clamp(.75rem, 1.6vw, 1.35rem) !important;
}
body.route-profile #main-content .profile-mobile-pilot .discovery-v1-offer-card {
  display: grid;
  align-content: start;
  gap: .55rem;
  padding: clamp(.85rem, 1.6vw, 1.1rem);
}
body.route-profile #main-content .profile-mobile-pilot .discovery-v1-offer-card > :is(h3, p, figure, dl, .discovery-v1-actions) {
  margin: 0;
}
body.route-profile #main-content .profile-mobile-pilot .profile-offer-facts {
  display: grid;
  gap: .3rem;
  margin: 0;
}
body.route-profile #main-content .profile-mobile-pilot .profile-offer-facts > div {
  display: grid;
  grid-template-columns: minmax(4.25rem, auto) minmax(0, 1fr);
  align-items: baseline;
  gap: .65rem;
  font-size: .9rem;
  line-height: 1.45;
}
body.route-profile #main-content .profile-mobile-pilot .profile-offer-facts dt { color: #65534c; }
body.route-profile #main-content .profile-mobile-pilot .profile-offer-facts dd { margin: 0; }
body.route-profile #main-content .profile-mobile-pilot .profile-product-offer .ms-product-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
body.route-profile #main-content .profile-mobile-pilot #profile-services :is(.discovery-v1-actions, .ms-product-card__actions) :is(a, button),
body.route-profile #main-content .profile-mobile-pilot .inquiry-extra-details > summary {
  min-height: 44px;
}
body.route-profile #main-content .profile-mobile-pilot .inquiry-extra-details > summary {
  align-content: center;
  cursor: pointer;
}
body.route-profile #main-content .profile-mobile-pilot .inquiry-extra-details > summary:focus-visible {
  outline: 2px solid var(--profile-accent);
  outline-offset: 3px;
}
@media (min-width: 40rem) {
  body.route-profile #main-content .profile-mobile-pilot #profile-services :is(.discovery-v1-offer-card, .profile-product-offer):only-child {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 58rem !important;
  }
  body.route-profile #main-content .profile-mobile-pilot #profile-services :is(.discovery-v1-offer-card:has(> figure), .profile-product-offer):only-child {
    display: grid !important;
    grid-template-columns: minmax(10rem, 36%) minmax(0, 1fr) !important;
    align-items: start;
    column-gap: clamp(1rem, 2vw, 2rem);
  }
  body.route-profile #main-content .profile-mobile-pilot .discovery-v1-offer-card:only-child > figure {
    grid-column: 1;
    grid-row: 1 / span 4;
  }
  body.route-profile #main-content .profile-mobile-pilot .discovery-v1-offer-card:only-child:has(> figure) > :not(figure) { grid-column: 2; }
  body.route-profile #main-content .profile-mobile-pilot .profile-product-offer:only-child .ms-product-card__media { grid-column: 1; grid-row: 1; }
  body.route-profile #main-content .profile-mobile-pilot .profile-product-offer:only-child .ms-product-card__body { grid-column: 2; grid-row: 1; padding: 1rem; }
}
@media (max-width: 39.99rem) {
  body.route-profile #main-content .profile-mobile-pilot > .discovery-v1-profile__hero {
    grid-template-columns: clamp(6.75rem, 32vw, 10.5rem) minmax(0, 1fr) !important;
    align-items: start;
    gap: .65rem .9rem !important;
  }
  body.route-profile #main-content .profile-mobile-pilot .discovery-v1-profile__details { display: contents !important; }
  body.route-profile #main-content .profile-mobile-pilot .discovery-v1-profile__details > :not(.discovery-v1-profile__identity, .discovery-v1-profile__location) {
    grid-column: 1 / -1;
  }
  body.route-profile #main-content .profile-mobile-pilot .discovery-v1-profile__media {
    grid-column: 1;
    grid-row: 1 / 3;
  }
  body.route-profile #main-content .profile-mobile-pilot .discovery-v1-profile__identity {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    order: 0 !important;
  }
  body.route-profile #main-content .profile-mobile-pilot .discovery-v1-profile__identity > div {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: start;
    gap: .25rem !important;
  }
  body.route-profile #main-content .profile-mobile-pilot .discovery-v1-profile__identity .discovery-v1-profile__role {
    text-align: left !important;
  }
  body.route-profile #main-content .profile-mobile-pilot .discovery-v1-profile__location {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    margin: 0 !important;
    font-size: .9rem !important;
  }
  body.route-profile #main-content .profile-mobile-pilot .profile-pilot-tabs {
    margin-top: 0 !important;
  }
  body.route-profile #main-content .profile-mobile-pilot .profile-pilot-tabs [data-profile-link] {
    white-space: normal !important;
    font-size: .8125rem !important;
  }
}

body.route-profile #main-content .profile-review-compose {
  min-width: 0;
  scroll-margin-top: calc(var(--ms-header-height, 80px) + 16px);
  border-block-start: 1px solid var(--ms-public-border, #ead8ce);
}
body.route-profile #main-content .profile-review-compose > summary {
  width: fit-content;
  padding: .8rem .25rem;
  color: var(--profile-accent);
  font-weight: 650;
  cursor: pointer;
}
body.route-profile #main-content .profile-review-compose .inquiry-extra-details {
  grid-column: 1 / -1;
  min-width: 0;
}
body.route-profile #main-content .profile-review-compose .inquiry-extra-details > label {
  margin-block-start: .7rem;
}
body.route-profile #main-content .profile-review-compose > summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

body.route-profile #main-content .profile-mobile-pilot .discovery-v1-profile__identity { grid-template-columns: minmax(0, 1fr) !important; }

body.route-profile #main-content #profile-services :is(.discovery-v1-offer-grid,.ms-product-grid) {
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: start;
}
body.route-profile #main-content #profile-services :is(.discovery-v1-offer-card,.ms-product-card,.profile-offer-facts dd) {
  min-width: 0; overflow-wrap: anywhere;
}
body.route-profile #main-content #profile-services .profile-offer-facts { display: grid; gap: .35rem; }
body.route-profile #main-content #profile-services .profile-offer-facts > div { display: block; }
body.route-profile #main-content #profile-services .profile-offer-facts :is(dt,dd) { display: inline; margin: 0; }
body.route-profile #main-content #profile-services :is(.discovery-v1-offer-card > h3,.ms-product-card__title) {
  font-weight: 400; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important;
}
body.route-profile #main-content #profile-services .profile-offer-facts dt { font-weight: 700; }
body.route-profile #main-content #profile-services .profile-offer-facts dd { font-weight: 400; }
body.route-profile #main-content #profile-services .profile-offer-facts dt::after { content: " · "; }
body.route-profile #main-content #profile-services .profile-service-grid { align-items: stretch; }
body.route-profile #main-content #profile-services .profile-service-grid > .discovery-v1-offer-card:not(:only-child) {
  display: flex; flex-direction: column; align-items: stretch; height: auto;
}
body.route-profile #main-content #profile-services .profile-service-grid > .discovery-v1-offer-card .discovery-v1-actions { margin-top: auto; }
@media (min-width: 1280px) {
  body.route-profile #main-content #profile-services .profile-service-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
@media (max-width: 1100px) {
  body.route-profile #main-content #profile-services :is(.discovery-v1-offer-grid,.ms-product-grid) { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  body.route-profile #main-content #profile-services :is(.discovery-v1-offer-grid,.ms-product-grid) { grid-template-columns: minmax(0,1fr); }
}

body.route-profile #main-content .profile-provider-facts span { gap: .3em; }
body.route-profile #main-content .profile-provider-social .social-linkedin { background: #0a66c2; color: white; }
body.route-profile #main-content .profile-provider-social .social-x { background: #222; color: white; }

body.route-profile #main-content .profile-provider-facts { gap: .35rem; }
body.route-profile #main-content .profile-provider-facts > span {
  display: inline-block;
  min-height: 0;
  padding: .35rem .65rem;
  font-size: .84rem;
  font-weight: 400;
}
body.route-profile #main-content .profile-provider-facts abbr { text-decoration: none; }

#main-content #profile-inquiry .u1-profile-contact-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin: 0;
}
#main-content #profile-inquiry .u1-profile-contact-intro :is(h2,.discovery-v1-section-heading) { margin: 0; }
#main-content #profile-inquiry .u1-profile-direct-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
#main-content #profile-inquiry .u1-profile-direct-actions > a { display: inline-flex; width: auto; }
body.route-profile #main-content .profile-mobile-pilot > #profile-inquiry { gap: .65rem !important; }
#main-content #profile-inquiry .profile-pilot-short-inquiry {
  width: 100%;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
#main-content #profile-inquiry .profile-pilot-short-inquiry__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: .55rem;
}
#main-content #profile-inquiry .profile-pilot-short-inquiry__fields > * {
  min-width: 0;
  margin: 0;
}
#main-content #profile-inquiry .profile-pilot-short-inquiry__fields > .ui-field { gap: .25rem; }
#main-content #profile-inquiry .profile-pilot-short-inquiry__fields > .ui-button {
  min-height: 46px;
  width: auto;
  margin: 0;
  padding-inline: .85rem;
}
#main-content #profile-inquiry .profile-pilot-short-inquiry__fields textarea {
  min-height: 46px !important;
  height: 46px;
  padding-block: .6rem;
  resize: vertical;
}
#main-content #profile-inquiry-form { scroll-margin-top: calc(var(--ms-header-height, 80px) + 1rem); }
@media (min-width: 960px) {
  #main-content #profile-inquiry .profile-pilot-short-inquiry__fields {
    grid-template-columns: minmax(0,1fr) minmax(0,1.1fr) minmax(0,1.5fr) auto;
  }
  #main-content #profile-inquiry .profile-pilot-short-inquiry__fields.has-offers {
    grid-template-columns: minmax(0,.85fr) minmax(0,1.35fr) minmax(0,1.05fr) minmax(0,1.4fr) auto;
  }
}
@media (max-width: 959px) {
  #main-content #profile-inquiry .profile-pilot-short-inquiry__fields > .ui-button { grid-column: 1 / -1; }
  #main-content #profile-inquiry .profile-pilot-short-inquiry__fields > .ui-phone-control { grid-column: auto; }
  #main-content #profile-inquiry .profile-pilot-short-inquiry__fields:not(.has-offers) > label:first-child { grid-column: 1 / -1; }
}
@media (max-width: 359px) {
  #main-content #profile-inquiry .profile-pilot-short-inquiry__fields { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 599px) {
  #main-content #profile-inquiry .profile-pilot-short-inquiry__fields:has(option[value]:not([value=""]):checked) > label:has(select),
  #main-content #profile-inquiry .profile-pilot-short-inquiry__fields:has(option[value]:not([value=""]):checked) > label:first-child { grid-column: 1 / -1; }
}
body.route-profile #main-content .profile-mobile-pilot .discovery-v1-portfolio-grid figcaption {
  display: grid; justify-items: start; align-content: start; text-align: start;
  padding: .45rem .65rem .25rem; gap: .12rem;
}
body.route-profile #main-content .discovery-v1-portfolio-grid figcaption > :is(strong, small) {
  display: block; max-width: 100%; min-width: 0; overflow: hidden;
  white-space: nowrap; text-overflow: ellipsis;
}
body.route-profile #main-content .discovery-v1-portfolio-grid .catalog-actions--with-view {
  align-self: stretch; width: auto; max-width: none; margin: 0; padding: 0 .65rem .5rem;
}
body.route-profile #main-content .profile-mobile-pilot #profile-reviews :is(.discovery-v1-review-card,.u1-profile-review-empty,.u1-profile-review-summary) { text-align: center; }
body.route-profile #main-content .profile-mobile-pilot #profile-reviews .profile-review-compose > summary { margin-inline: auto; }
@media (max-width: 480px) {
  body.route-profile #main-content .profile-mobile-pilot .profile-pilot-tabs { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
}
