/* NQN v1.3 profile — Figure 15 / 15A. Tokens stay in nqn.css. */

.nq-profile {
  max-width: 100%;
  min-width: 0;
}

.nq-profile .nq-card {
  background: var(--card, #FFFFFF);
  border: 1px solid var(--line, rgba(17, 24, 39, 0.08));
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
}

.nq-profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin: 0 0 1.15rem;
  padding: 1.15rem 1.25rem;
  max-width: 100%;
  min-width: 0;
}

.nq-profile-id {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  flex: 1 1 auto;
}

.nq-profile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  flex: 0 0 104px;
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
  background: #F3F4F6;
  color: var(--ink, #111827);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  overflow: hidden;
}

img.nq-profile-avatar {
  display: block;
  object-fit: cover;
  background: #fff;
}

.nq-profile-copy {
  min-width: 0;
}

.nq-profile-name {
  margin: 0;
  color: var(--ink, #111827);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.nq-profile-meta {
  margin: 0.35rem 0 0;
  color: var(--muted, #6B7280);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.nq-profile-bio {
  margin: 0.45rem 0 0;
  color: var(--ink, #111827);
  overflow-wrap: anywhere;
}

.nq-profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  max-width: 100%;
  min-width: 0;
  flex: 0 1 auto;
}

.nq-profile .nqn-socials {
  display: contents;
  margin: 0;
}

.nq-profile-qr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  line-height: 0;
  color: var(--ink, #111827);
  background: #fff;
  border-radius: 8px;
}

.nq-profile-qr .nq-qr {
  width: 48px;
  height: 48px;
  max-width: 100%;
}

.nq-profile-follow {
  display: inline-flex;
  margin: 0;
  max-width: 100%;
}

.nq-profile-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  max-width: 100%;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--ink, #111827);
  border-radius: 999px;
  background: var(--ink, #111827);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
}

.nq-profile-pill svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.nq-profile a.nq-profile-pill:hover,
.nq-profile a.nq-profile-pill:focus-visible,
.nq-profile-pill:hover,
.nq-profile-pill:focus-visible {
  color: #fff;
  text-decoration: none;
}

.nq-profile-pill.is-on {
  background: transparent;
  color: var(--ink, #111827);
}

.nq-profile-pill.is-on:hover,
.nq-profile-pill.is-on:focus-visible {
  color: var(--ink, #111827);
}

.nq-profile .nqn-views {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.15rem;
}

.nq-profile .nqn-views a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line, rgba(17, 24, 39, 0.08));
  border-radius: 999px;
  background: var(--card, #FFFFFF);
  color: var(--muted, #6B7280);
  font-size: 0.9rem;
  font-weight: 800;
}

.nq-profile .nqn-views a[aria-current="page"] {
  background: var(--ink, #111827);
  border-color: var(--ink, #111827);
  color: #fff;
}

.nq-profile .nqn-views a:hover,
.nq-profile .nqn-views a:focus-visible {
  color: var(--ink, #111827);
  text-decoration: none;
}

.nq-profile .nqn-views a[aria-current="page"]:hover,
.nq-profile .nqn-views a[aria-current="page"]:focus-visible {
  color: #fff;
}

.nq-profile-paper {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem 1.15rem;
  max-width: 100%;
  min-width: 0;
}

.nq-profile-paper h2,
.nq-profile-paper h3 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.nq-profile-paper h3 {
  margin-top: 1rem;
  font-size: 0.92rem;
}

.nq-joke-tile-img {
  display: block;
  width: 100%;
  max-height: 16rem;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.45rem;
}

.nq-profile-tiles {
  display: grid;
  gap: 0.55rem;
}

.nq-profile-paper .nq-latest-item p {
  margin: 0.35rem 0 0;
  color: var(--muted, #6B7280);
}

.nq-profile-paper .nq-advertise a {
  font-weight: 800;
}

.nq-profile .nqn-my-people {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.nq-profile .nqn-my-people li {
  margin: 0 0 0.55rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line, rgba(17, 24, 39, 0.08));
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 575px) {
  .nq-profile .nq-card {
    border-radius: 18px;
  }
}

@media (max-width: 720px) {
  .nq-profile-card {
    flex-direction: column;
    align-items: stretch;
  }

  .nq-profile-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 390px) {
  .nq-profile-card {
    padding: 1rem;
    gap: 0.9rem;
  }

  .nq-profile-id {
    align-items: flex-start;
  }

  .nq-profile-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nq-profile .nq-iconbtn {
    transition: none;
  }
}
