/* The featured cards, directory cards and full profiles share the phone treatment. */
.rose { --avatar: #ffd6de; --avatar-ink: #702944; }
.yellow { --avatar: #f5e8a4; --avatar-ink: #514408; }
.peach { --avatar: #ffdcb9; --avatar-ink: #633a21; }
.lavender { --avatar: #e9dbff; --avatar-ink: #533680; }

.phone-preview, .phone-frame {
  background: var(--bg-gradient);
  border: solid #141818;
  box-shadow: 0 12px 28px #173e3926;
  color: var(--text-main);
}
.phone-preview {
  display: flex;
  flex-direction: column;
  width: 100%;
  aspect-ratio: 4 / 7;
  overflow: hidden;
  container-type: inline-size;
  border-width: .42rem;
  border-radius: 1.65rem;
  text-align: center;
}
.phone-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.phone-type, .phone-status {
  display: inline-block;
  border-radius: 999px;
  font-weight: 750;
  line-height: 1.2;
}
.phone-type { background: #ffffffa6; color: #20443c; }
.phone-status { background: #b53043; color: white; text-transform: uppercase; }
.phone-status.phone-status-verified { background: #096745; }
 .phone-top .phone-status { border-radius: 999px 0 0 999px; }
.phone-preview .phone-top { align-items: center; padding: 6cqw 0 0 5cqw; }
.phone-preview .phone-type { padding: 2cqw 2.5cqw; }
.phone-preview .phone-status { padding: 2cqw 3.2cqw; }
.phone-preview .phone-type, .phone-preview .phone-status {
  font-size: clamp(.56rem, 5.2cqw, .75rem);
}
.phone-identity { display: flex; flex-direction: column; align-items: center; text-align: center; }
.phone-avatar {
  display: grid;
  place-items: center;
  border: solid white;
  border-radius: 50%;
  background: var(--avatar);
  color: var(--avatar-ink);
  font-weight: 850;
  box-shadow: 0 5px 14px #16382f21;
}
.phone-handle { color: var(--text-main); font-weight: 850; overflow-wrap: anywhere; }
.phone-bio { color: var(--text-muted); line-height: 1.4; overflow-wrap: anywhere; }
.phone-preview .phone-identity { padding: 6cqw 5cqw 0; }
.phone-preview .phone-avatar { width: 36cqw; height: 36cqw; border-width: 2px; font-size: 13cqw; margin-bottom: 5cqw; }
.phone-preview .phone-handle { width: 100%; line-height: 1.15; font-size: clamp(.75rem, 7.5cqw, 1.25rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-preview .phone-bio {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: clamp(.64rem, 6.5cqw, .95rem);
  min-height: 2.8em;
  margin-top: 3cqw;
}
.phone-preview-tags, .phone-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
}
.phone-preview-tags { gap: 2cqw; padding: 4cqw 5cqw; font-size: clamp(.57rem, 5.3cqw, .75rem); }
.phone-preview-tags span, .phone-tags li { background: #ffffffb0; border-radius: 999px; padding: .18em .65em; }
.phone-preview-links { display: grid; gap: 3cqw; padding: 3cqw 5cqw 7cqw; margin-top: auto; }
.phone-preview-links span { background: #fff9; padding: 2.8cqw 2cqw; border-radius: .65rem; font-size: clamp(.64rem, 6.5cqw, .9rem); font-weight: 750; }

.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: 1.15rem; margin-top: 1.2rem; }
.profile-card { display: block; width: min(100%, 14rem); margin-inline: auto; border-radius: 1.65rem; }
.profile-card:hover .phone-preview, .profile-card:focus-visible .phone-preview { border-color: #0f766e; }
.profile-scroll-wrapper { display: flex; width: 100%; overflow-x: auto; white-space: normal; mask-image: none; padding: .45rem .25rem 1.1rem; scrollbar-width: thin; }
.profile-scroll-track { display: flex; flex: 0 0 auto; width: max-content; gap: 1.15rem; padding-right: 1.15rem; margin: 0; animation: none; }
.profile-scroll-track .profile-card { flex: 0 0 auto; width: clamp(11rem, 30vw, 13rem); margin: 0; }
.featured-controls { display: flex; justify-content: flex-end; margin-bottom: .65rem; }
.featured-controls .btn { border: 1px solid #8fb5aa; font: inherit; font-weight: 650; color: #0d6059; background: #fff9; padding: .5rem .9rem; }
.hero-gallery .gallery-card { height: auto; aspect-ratio: 4 / 7; border: 0; border-radius: 1.65rem; overflow: visible; box-shadow: none; }
.hero-gallery .phone-preview { height: 100%; }

.profile-page {
  display: grid;
  justify-items: center;
  min-height: 100dvh;
  background: #f8fafc;
  padding: .65rem 1rem;
}
.phone-frame {
  width: min(60rem, max(36rem, 55vw), 100%);
  min-width: 0;
  height: calc(100dvh - 1.3rem);
  border-width: clamp(.65rem, 1.35vw, 1rem);
  border-radius: 2.75rem;
  overflow: auto;
  scrollbar-width: thin;
}
.phone-frame .phone-top {
  position: sticky;
  z-index: 2;
  top: 0;
  padding: 1rem 0 .6rem 1.3rem;
  background: #e9faf5f5;
}
.phone-frame .phone-type { padding: .5rem .85rem; font-size: .88rem; }
.phone-frame .phone-status { padding: .5rem 1.2rem; font-size: .86rem; letter-spacing: .045em; }
.phone-actions { display: grid; justify-items: end; gap: .35rem; }
.profile-support { position: relative; margin-right: 1.1rem; }
.profile-support summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .45rem .85rem;
  min-height: 2.75rem;
  border: 1px solid #83ad9f;
  border-radius: 999px;
  background: #fff;
  color: #0f655c;
  cursor: pointer;
  font-size: .92rem;
  font-weight: 750;
  list-style: none;
}
.profile-support summary::-webkit-details-marker { display: none; }
.profile-support summary:hover, .profile-support[open] summary { background: #dff4ec; }
.support-info {
  position: absolute;
  z-index: 3;
  inset: calc(100% + .45rem) 0 auto auto;
  width: min(17rem, calc(100vw - 5rem));
  padding: .75rem .9rem;
  border: 1px solid #bed8ce;
  border-radius: .85rem;
  background: #fff;
  box-shadow: 0 10px 24px #173e3926;
  color: var(--text-main);
  font-size: .94rem;
  text-align: left;
}
.support-info p + p { margin-top: .35rem; color: var(--text-muted); }
.claim-link { margin-right: 1.1rem; color: var(--accent-dark); text-decoration: underline; font-size: .86rem; }
.phone-frame .phone-identity { padding: .6rem 1rem 1rem; }
.phone-frame .phone-avatar { width: 6.8rem; height: 6.8rem; border-width: 4px; font-size: 2.2rem; margin-bottom: .85rem; }
.phone-frame .phone-handle { font-size: clamp(1.65rem, 4.4vw, 2.4rem); margin-bottom: .25rem; }
.phone-name { font-weight: 700; color: #244b42; }
.phone-frame .phone-bio { max-width: 36rem; margin-top: .55rem; }
.phone-socials { display: flex; gap: .55rem; flex-wrap: wrap; justify-content: center; list-style: none; margin-top: 1rem; }
.phone-socials a { display: block; padding: .43rem .8rem; border-radius: 999px; background: white; color: var(--accent-dark); font-weight: 700; }
.phone-tags { gap: .5rem; padding: 0 1rem; font-size: .92rem; }
.phone-content { text-align: center; padding: 1.35rem clamp(1rem, 4vw, 2.3rem) 1.75rem; }
.profile-links { display: grid; gap: .65rem; list-style: none; margin: 0 auto 1.3rem; max-width: 38rem; }
.profile-links a { display: block; padding: .8rem; border: 1px solid #fff; border-radius: 1rem; background: #ffffffbd; font-weight: 750; box-shadow: 0 5px 15px #173e390b; }
.profile-links a:hover, .phone-socials a:hover { background: white; text-decoration: underline; }
.no-links { color: var(--text-muted); margin-bottom: 1rem; }
.share { border: 1px solid #8fb5aa; background: #fff9; color: var(--accent-dark); font: inherit; font-weight: 700; }
.share-status:not(:empty) { margin-top: .5rem; color: var(--text-muted); }
.phone-footer { background: none; border-top: 1px solid #cfe5dd; color: var(--text-muted); padding: 1.15rem; text-align: center; }
.phone-footer .logo { justify-content: center; margin-bottom: .3rem; }
.directory-link { color: var(--accent-dark); text-decoration: underline; }
@media (max-width: 600px) {
  .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .phone-preview { border-width: .34rem; border-radius: 1.3rem; }
  .phone-frame { border-radius: 1.9rem; }
  .phone-frame .phone-top { padding-left: .6rem; }
}
@media (max-width: 340px) {
  .profile-grid { grid-template-columns: 1fr; }
}

.phone-footer { flex-wrap: wrap; }
.profile-footer-legal { flex-basis: 100%; text-align: center; font-size: .82rem; color: var(--text-muted); }
.profile-footer-legal a { text-decoration: underline; }
