/* LegisConnect v11.9.1 — View Profile layout correction.
   Scoped to profile hero sections; no database or image file changes. */
.profile-page-hero {
  display:grid !important;
  grid-template-columns: minmax(150px,190px) minmax(0,1fr) !important;
  gap:clamp(16px,3vw,28px) !important;
  align-items:center !important;
  padding:clamp(18px,3vw,30px) !important;
  min-width:0;
}
.profile-page-hero > .avatar-profile-main {
  grid-column:1;
  grid-row:1 / span 2;
  width:100% !important;
  height:auto !important;
  aspect-ratio: 5 / 6;
  min-width:0;
  max-width:190px;
  align-self:center;
  overflow:hidden;
}
.profile-page-hero > .avatar-profile-main img {
  display:block;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center 25% !important;
}
.profile-page-hero > .profile-main-copy {
  grid-column:2;
  grid-row:1;
  min-width:0;
  width:100%;
  overflow-wrap:anywhere;
}
.profile-page-hero .profile-main-copy h2 {
  font-size:clamp(22px,2.7vw,34px) !important;
  line-height:1.18;
  overflow-wrap:break-word;
  margin:7px 0 9px;
}
.profile-page-hero .profile-main-copy p {line-height:1.45}
.profile-page-hero .meta-link {
  display:inline-flex;
  align-items:center;
  gap:6px;
  max-width:100%;
  white-space:normal;
  overflow-wrap:anywhere;
  border-radius:14px;
  line-height:1.35;
}
.profile-page-hero .profile-mini-meta {max-width:100%}
.profile-page-hero > .profile-actions,
.profile-page-hero > .profile-admin-actions {
  grid-column:2;
  grid-row:2;
  display:flex !important;
  flex-wrap:wrap;
  gap:10px;
  margin:0 !important;
  min-width:0;
  align-items:center;
  justify-content:flex-start;
}
.profile-page-hero > .profile-admin-actions form {margin:0}
.profile-page-hero > .profile-actions a,
.profile-page-hero > .profile-admin-actions a,
.profile-page-hero > .profile-admin-actions button {
  max-width:100%;
  white-space:normal;
  text-align:center;
}
@media(max-width:650px) {
  .profile-page-hero {
    grid-template-columns:minmax(0,1fr) !important;
    justify-items:center;
    text-align:center;
    gap:16px !important;
  }
  .profile-page-hero > .avatar-profile-main {
    grid-column:1;
    grid-row:auto;
    width:min(100%,190px) !important;
  }
  .profile-page-hero > .profile-main-copy {
    grid-column:1;
    grid-row:auto;
  }
  .profile-page-hero > .profile-actions,
  .profile-page-hero > .profile-admin-actions {
    grid-column:1;
    grid-row:auto;
    justify-content:center;
  }
  .profile-page-hero .profile-mini-meta {justify-content:center}
  .profile-page-hero .meta-link {text-align:left}
}
