
/* Balance the four-doctor roster without changing smaller teams. */
.doctor-grid--compact:has(> .doctor-card:nth-child(4):last-child){
  grid-template-columns:repeat(auto-fit,minmax(min(100%,max(270px,calc((100% - 24px) / 2))),1fr));
}
@media(min-width:761px){
  .doctor-grid:not(.doctor-grid--compact):has(> .doctor-card:nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(min-width:1180px){
  .doctor-grid:not(.doctor-grid--compact):has(> .doctor-card:nth-child(4):last-child){grid-template-columns:repeat(4,minmax(0,1fr))}
}
