/* A short introduction for discovery; the complete story stays in the profile. */
:root .person-card.exp-discovery-card.nm-profile-palette>.person-card-body{
  display:flex;flex-direction:column;gap:12px;min-width:0;padding:20px!important;
}
:root .person-card.exp-discovery-card.nm-profile-palette .nm-card-person{
  --nm-avatar-size:56px;margin:0!important;min-height:56px;gap:12px!important;
}
:root .person-card.exp-discovery-card.nm-profile-palette .nm-avatar-showcase.nm-avatar-card,
:root .person-card.exp-discovery-card.nm-profile-palette .nm-avatar-showcase.nm-avatar-card>svg.nm-avatar{
  width:56px!important;height:56px!important;min-width:0!important;margin:0!important;
}
:root .person-card.exp-discovery-card.nm-profile-palette .photo-identity h2{margin:0!important;line-height:1.3!important}
:root .person-card.exp-discovery-card.nm-profile-palette .exp-card-bio{
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
  overflow:hidden;overflow-wrap:anywhere;white-space:normal;
  margin:0!important;font-size:var(--nm-readable-body,16px)!important;line-height:1.5!important;
  color:var(--profile-ink);
}
:root .person-card.exp-discovery-card.nm-profile-palette .nm-card-context{
  display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;min-width:0;
}
:root .person-card.exp-discovery-card.nm-profile-palette .nm-card-context :is(.exp-card-seeking,.exp-key-facts){margin:0!important;gap:6px}
:root .person-card.exp-discovery-card.nm-profile-palette .nm-card-context .exp-key-facts:empty{display:none}
.nm-card-location{display:inline-flex;align-items:center;gap:4px;max-width:100%;overflow-wrap:anywhere;font-size:var(--nm-readable-small,13px);line-height:1.5}
:root .person-card.exp-discovery-card.nm-profile-palette .nm-card-interests>h3{
  margin:0 0 8px!important;font-size:var(--nm-readable-small,13px)!important;line-height:1.5!important;
}
:root .person-card.exp-discovery-card.nm-profile-palette .read-profile{
  min-height:44px;margin:0!important;padding:8px 0!important;font-size:var(--nm-readable-control,15px)!important;
}
:root .person-card.exp-discovery-card.nm-profile-palette .person-card-actions{
  gap:8px!important;margin:0!important;padding-top:12px;
}
:root .person-card.exp-discovery-card.nm-profile-palette .person-card-actions button{
  min-height:56px!important;padding:8px 6px!important;gap:4px;
}
/* Keep the companion visible without letting it displace the person's details. */
:root .exp-profile.nm-profile-palette .exp-profile-name{--nm-avatar-size:72px}

@media(min-width:1100px){
  :root .people-grid.exp-swipe-deck:has(.exp-discovery-card.nm-profile-palette){max-width:960px!important}
  :root .person-card.exp-discovery-card.nm-profile-palette{
    display:grid;grid-template-columns:minmax(260px,.9fr) minmax(0,1.1fr);align-items:stretch;
  }
  :root .person-card.exp-discovery-card.nm-profile-palette>.card-photo-wrap{
    height:100%!important;min-height:360px!important;max-height:none!important;aspect-ratio:auto!important;
    border-right:1px solid var(--profile-line);
  }
  :root .person-card.exp-discovery-card.nm-profile-palette .nm-photo-gallery{container-type:size;background:var(--profile-card)}
  :root .person-card.exp-discovery-card.nm-profile-palette .nm-photo-gallery>.nm-gallery-image{
    display:grid;place-items:center;object-fit:contain!important;object-position:center;background:var(--profile-card);
  }
  :root .person-card.exp-discovery-card.nm-profile-palette .nm-gallery-image>.nm-portrait-sprite{
    width:min(100cqw,100cqh)!important;height:min(100cqw,100cqh)!important;
  }
  :root .person-card.exp-discovery-card.nm-profile-palette .read-profile{margin-top:auto!important}
}
@media(max-width:760px){
  :root .person-card.exp-discovery-card.nm-profile-palette>.nm-discovery-person-heading{
    display:grid;gap:4px;padding:6px 14px 10px;
  }
  :root .page-discover .person-card.exp-discovery-card.nm-profile-palette .nm-discovery-person-heading>.nm-card-person{min-height:44px}
  :root .person-card.exp-discovery-card.nm-profile-palette .nm-avatar-showcase.nm-avatar-card,
  :root .person-card.exp-discovery-card.nm-profile-palette .nm-avatar-showcase.nm-avatar-card>svg.nm-avatar{
    width:40px!important;height:40px!important;
  }
  :root .person-card.exp-discovery-card.nm-profile-palette>.nm-discovery-person-heading>.exp-card-bio{
    font-size:var(--nm-readable-control,15px)!important;line-height:1.4!important;
  }
  :root .page-discover .person-card.exp-discovery-card>.card-photo-wrap{height:clamp(180px,24dvh,220px)!important}
  :root .person-card.exp-discovery-card.nm-profile-palette>.person-card-body{padding:14px!important;gap:10px}
  :root .page-discover .person-card.exp-discovery-card>.person-card-actions{padding:10px 12px!important}
  :root .person-card.exp-discovery-card.nm-profile-palette>.person-card-actions button{min-height:48px!important}
}
@media(max-width:360px){
  :root .person-card.exp-discovery-card.nm-profile-palette>.nm-discovery-person-heading{padding:4px 12px 6px;gap:2px}
  :root .page-discover .person-card.exp-discovery-card>.person-card-actions{padding-block:8px!important}
  :root .person-card.exp-discovery-card.nm-profile-palette>.person-card-actions .nm-profile-emoji{display:none!important}
  :root .page-discover .person-card.exp-discovery-card>.card-photo-wrap{height:180px!important}
  :root .person-card.exp-discovery-card.nm-profile-palette>.nm-discovery-person-heading>.exp-card-bio{-webkit-line-clamp:1}
}
