.profile-page {
  margin: 20px 36px 60px;
  min-height: calc(100vh - 220px);
  overflow-x: auto;
}

.profile-page #a-show {
  max-width: 100%;
}

.profile-user-header {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  margin: 0 0 10px;
}

.profile-avatar {
  background: #fff center/cover no-repeat;
  border: 1px solid var(--emalm-theme-border, #c7c7c7);
  border-radius: 50%;
  flex: 0 0 auto;
  height: 64px;
  width: 64px;
}

.profile-avatar-link {
  border-radius: 50%;
  color: inherit;
  display: inline-flex;
  flex: 0 0 auto;
  text-decoration: none;
}

.profile-avatar-link:hover .profile-avatar {
  border-color: var(--emalm-theme-accent, #D4AF37);
}

.profile-user-header-body {
  min-width: 0;
  padding-top: 2px;
}

.profile-user-header h1 {
  font-size: 28px;
  line-height: 1.12;
  margin: 0;
  word-break: break-word;
}

.profile-user-header h1 a {
  text-decoration: none;
}

.profile-description {
  line-height: 1.45;
  margin-top: 6px;
  max-width: 760px;
  overflow-wrap: anywhere;
}

.profile-overview {
  background: transparent;
  border: 0;
  margin: 0 0 10px;
}

.profile-overview h2 {
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 2px;
  padding: 0;
}

.profile-overview-table {
  background: transparent;
  border-collapse: collapse;
  margin: 0;
  max-width: 860px;
  width: auto;
}

.profile-overview-table th,
.profile-overview-table td {
  background: transparent;
  border: 0;
  line-height: 1.35;
  padding: 3px 8px;
  vertical-align: top;
}

.profile-overview-table th {
  font-weight: 700;
  min-width: 170px;
  text-align: right;
  white-space: nowrap;
}

.profile-overview-table td {
  text-align: left;
}

.profile-overview-table tr.profile-stat-pending th,
.profile-overview-table tr.profile-stat-pending td {
  background: #fff3a6;
}

.profile-overview-table tr.profile-stat-pending th {
  box-shadow: inset 4px 0 #D4AF37;
}

.profile-pending-badge {
  background: #D4AF37;
  border-radius: 3px;
  color: #111;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  margin-left: 6px;
  padding: 2px 5px;
  vertical-align: 1px;
}

.profile-muted {
  color: #666;
}

.profile-recent {
  clear: both;
  margin: 12px 0 24px;
}

.profile-recent h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
}

.profile-recent h2 a {
  text-decoration: none;
}

.profile-recent-gallery {
  max-width: 100%;
}

.profile-recent-posts-row {
  align-items: end;
  padding-bottom: 6px;
}

@media (max-width: 767px) {
  .profile-page {
    margin: 14px 12px 40px;
  }

  .profile-user-header {
    align-items: center;
  }

  .profile-avatar {
    height: 52px;
    width: 52px;
  }

  .profile-user-header h1 {
    font-size: 24px;
  }

  .profile-overview-table {
    width: 100%;
  }

  .profile-overview-table th,
  .profile-overview-table td {
    display: block;
    padding-left: 0;
    padding-right: 0;
    width: auto;
  }

  .profile-overview-table th {
    min-width: 0;
    padding-bottom: 0;
    text-align: left;
  }

  .profile-overview-table td {
    padding-top: 0;
  }
}
