/* Rich public profile surface. Uses the flyer MESH palette. */
.mesh-photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.mesh-photo-btn { width: auto; }
.mesh-profile-photo {
  display: inline-block;
  object-fit: cover;
  background: var(--ink-850, #F7F0E6);
  border: 1px solid color-mix(in srgb, var(--terracotta, #FF5F3D) 45%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--terracotta, #FF5F3D) 8%, transparent);
}

.person .mesh-profile-photo {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 50%;
}

.mesh-person-headline {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--bone-dim, rgba(26, 26, 26, 0.68));
  white-space: normal;
}

.mesh-public-profile-intro {
  margin: 4px 0 18px;
  padding: 16px 0 2px;
  border-top: 1px solid color-mix(in srgb, var(--terracotta, #FF5F3D) 26%, transparent);
}

.mesh-profile-headline {
  margin: 0 0 5px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--bone, #1A1A1A);
}

.mesh-profile-location {
  margin: 0 0 12px;
  color: var(--terracotta, #FF5F3D);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.mesh-profile-bio {
  margin: 0;
  max-width: 58ch;
  white-space: pre-wrap;
  color: var(--bone-dim, rgba(26, 26, 26, 0.68));
  font-size: 15px;
  line-height: 1.58;
}

.mesh-profile-settings {
  position: relative;
}

.mesh-profile-settings::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 -16px;
  width: 2px;
  border-radius: 2px;
  background: var(--terracotta, #FF5F3D);
  opacity: .55;
}

.mesh-bio-input {
  min-height: 108px;
  resize: vertical;
  line-height: 1.5;
}

.mesh-field-help {
  margin: -8px 0 10px;
}

.mesh-avatar-preview {
  width: 72px;
  height: 72px;
  margin: 2px 0 16px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px dashed color-mix(in srgb, var(--terracotta, #FF5F3D) 40%, transparent);
  background: color-mix(in srgb, var(--terracotta, #FF5F3D) 5%, transparent);
}

.mesh-avatar-preview:empty {
  display: none;
}

.mesh-avatar-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 520px) {
  .mesh-profile-headline { font-size: 16px; }
  .mesh-profile-bio { font-size: 14px; }
}
