
.related-profiles .related-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,180px),1fr));gap:10px}
.related-tile{display:grid;justify-items:center;align-content:center;gap:4px;min-width:0;padding:10px;text-align:center;text-decoration:none;border:1px solid #d4e2e8;border-radius:8px;background:#f4f7f8;color:#123f58;overflow-wrap:anywhere}
.related-tile strong,.related-tile small{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.related-initials{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#e1eff4;font-weight:700}
@media(max-width:760px){
  #cards.cards,.related-profiles .related-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
  #cards.cards>.card{aspect-ratio:1;min-height:100px;padding:5px;justify-content:center;align-items:center;background:white;border-radius:8px}
  #cards.cards>.card .card-avatar{width:clamp(26px,8vw,42px);height:clamp(26px,8vw,42px);min-height:0;flex:none;margin:0;border:0;font-size:14px}
  #cards.cards>.card .card-avatar img{object-fit:cover;padding:0}
  #cards.cards>.card .card-body{display:flex;flex:0 1 auto;flex-direction:column;align-items:center;gap:2px;width:100%;padding:3px 0 0;text-align:center}
  #cards.cards>.card .card-body>h3{align-self:center;font-size:12px;line-height:1.2;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
  #cards.cards>.card .card-body>.card-role{align-self:center;font-size:11px;line-height:1.2}
  #cards.cards>.card .card-body>:is(.badge,.card-location,.card-whatsapp,.card-opening,.card-rating),#cards.cards>.card .card-role svg{display:none}
  #cards.cards>.card .card-body>a{position:absolute;inset:0;z-index:2;margin:0;font-size:0;padding:0;background:transparent}
  #cards.cards>.card .card-body>a:focus-visible{outline:2px solid #087fa5;outline-offset:-3px}
  .related-tile{aspect-ratio:1;min-height:90px;padding:4px;font-size:12px}
}
@media(min-width:520px) and (max-width:760px){
  #cards.cards,.related-profiles .related-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
