
/* === Members page overrides (JP-like layout) === */

/* Faculty list base */
main .faculty-list{
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}
main .faculty-list > li.with-photo{
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px dashed rgba(0,0,0,.08);
}
main .faculty-list > li.with-photo:last-child{
  border-bottom: none;
}

img.member-photo{
  width: clamp(110px, 22vw, 150px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background-color: #f7f7f7;
  display: block;
}

.person-info{
  flex: 1 1 auto;
  min-width: 0;
}
.person-info .person-name{
  font-weight: 600;
  line-height: 1.35;
  display: inline-block;
  margin-right: .25rem;
}

/* Details */
.person-detail > summary{
  cursor: pointer;
  margin-top: .25rem;
}
.person-detail[open] summary{
  margin-bottom: .25rem;
}

/* Students section (separate) */
.students-section{
  margin-top: 1.25rem;
}
.students-section > h2{
  font-size: 1.25rem;
  margin: .5rem 0 .5rem;
}
.students-section .students-list{
  list-style: disc;
  margin-left: 1.25rem;
  padding-left: .25rem;
}
.students-section .students-list > li{
  margin: .15rem 0;
}
@media (min-width: 720px){
  img.member-photo{ width: clamp(120px, 18vw, 160px); }
}
@media (min-width: 1024px){
  img.member-photo{ width: clamp(130px, 14vw, 170px); }
}


/* Students filter buttons */
.students-filters{
  display:flex; gap:.5rem; flex-wrap:wrap;
  margin:.25rem 0 .75rem;
}
.students-filters .btn{
  border:1px solid rgba(0,0,0,.2);
  background:#fff;
  padding:.35rem .6rem;
  border-radius:8px;
  font-size:.95rem;
  line-height:1;
  cursor:pointer;
}
.students-filters .btn[aria-pressed="true"]{
  background:#1259ff;
  color:#fff;
  border-color:#1259ff;
}
.students-filters .btn .count{
  margin-left:.4rem;
  opacity:.8;
  font-variant-numeric: tabular-nums;
}


/* small left gutter for faculty photos */
main .faculty-list > li.with-photo{ padding-left: .5rem; }
@media (min-width: 720px){
  main .faculty-list > li.with-photo{ padding-left: .75rem; }
}


/* --- Student list left gutter (align names away from left edge) --- */
main .faculty-list > li:not(.with-photo){
  padding-left: .75rem;
}
@media (min-width: 720px){
  main .faculty-list > li:not(.with-photo){
    padding-left: 1rem;
  }
}

/* Keep headings aligned with student items */
main .faculty-list > li.heading-students{
  font-weight: 700;
  margin-top: .75rem;
  margin-bottom: .25rem;
}
