/* Shared profile components — used on Home, Posts, Links */

.profile-hero__avatar-wrap {
  display: inline-block;
  position: relative;
  margin-bottom: 12px;
}

.profile-hero__avatar-wrap--rotate {
  overflow: hidden;
  border-radius: 50%;
  width: 96px;
  height: 96px;
}

.profile-hero__avatar-wrap--rotate .profile-hero__avatar {
  width: 100%;
  height: 100%;
  transition: transform 0.25s ease;
}

.profile-hero__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-deep);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border);
  background: var(--bg-elevated);
}

.profile-hero__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-muted);
}

.profile-hero__name {
  margin: 0 0 6px;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.profile-hero__username-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.page-header h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
}

.page-header__sub {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.profile-card-mini {
  text-align: center;
  padding: 16px 0 20px;
  margin-bottom: 8px;
}

.profile-card-mini .profile-hero__avatar-wrap--rotate {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  display: block;
}

.profile-card-mini .profile-hero__avatar,
.profile-card-mini .profile-hero__avatar--placeholder {
  width: 72px;
  height: 72px;
  font-size: 1.5rem;
}

.profile-card-mini .profile-hero__name {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.profile-card-mini .profile-hero__username-row {
  justify-content: center;
  margin-bottom: 0;
}

.page-posts .site-wrapper,
.page-links .site-wrapper,
.page-home .site-wrapper {
  max-width: 640px;
  width: 100%;
}

.page-header {
  padding: 8px 0 24px;
  text-align: center;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* Shared profile strip — Posts & Links pages */
.subpage-profile {
  text-align: center;
  padding: 8px 0 24px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.subpage-profile__avatar-wrap {
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  display: block;
}

.subpage-profile__avatar-wrap .profile-hero__avatar,
.subpage-profile__avatar-wrap .profile-hero__avatar--placeholder {
  width: 88px;
  height: 88px;
  font-size: 1.75rem;
}

.subpage-profile__display-name {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.subpage-profile__username {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.subpage-profile__bio {
  margin: 14px auto 0;
  max-width: 340px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

@media (min-width: 1200px) {
  .page-posts .site-wrapper,
  .page-links .site-wrapper,
  .page-home .site-wrapper {
    max-width: 935px;
  }
}
