.profile-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 26rem);
  margin: 16px 0 20px;
}
.profile-contact form { min-width: 0; }
.profile-contact form .btn-secondary {
  border-color: #4b9664;
  color: #28623b;
  background: transparent;
}
.profile-contact form .btn-secondary:hover { background: #e6f4e7; }
.profile-contact .btn {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  font-size: clamp(.74rem, 2.9vw, .88rem);
  line-height: 1.15;
  white-space: normal;
}
.social-ui-icon { width: 18px; height: 18px; flex: 0 0 18px; }
@media (max-width: 340px) {
  .profile-contact { gap: 5px; }
  .profile-contact .btn { padding-inline: 6px; font-size: .7rem; }
  .social-ui-icon { width: 16px; height: 16px; flex-basis: 16px; }
}


/* Public profile: keep the avatar beside the complete heading, not on a
   separate line above it. Restrict these rules to the public profile. */
.public-profile .public-profile-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  column-gap: clamp(8px, 1.5vw, 14px);
  max-width: 100%;
}
.public-profile .public-profile-title-text {
  min-width: 0;
  overflow-wrap: anywhere;
}
.public-profile .public-profile-title > .identity-mark {
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: #e5eeeb;
  color: var(--petrol);
}
.public-profile .public-profile-title > .identity-mark svg,
.public-profile .public-profile-title > .identity-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 480px) {
  .public-profile .public-profile-title > .identity-mark {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }
}
