.people-layout {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 1.2rem;
  align-items: start;
}

.people-layout.no-sidebar {
  grid-template-columns: 1fr;
  gap: 0;
}

.people-sidebar {
  position: sticky;
  top: 110px;
  background: #f7f9ff;
  border: 1px solid #e3e9f7;
  border-radius: 12px;
  padding: 0.95rem 0.75rem;
}

.people-sidebar h3 {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
  color: #1a2746;
}

.people-side-link {
  display: block;
  text-decoration: none;
  color: #2f3c58;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid #d7dfef;
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  background: #ffffff;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.people-side-link + .people-side-link {
  margin-top: 0.45rem;
}

.people-side-link:hover {
  border-color: rgba(77, 124, 255, 0.45);
  color: var(--accent);
  background: rgba(77, 124, 255, 0.06);
}

.people-content {
  min-width: 0;
}

.people-group + .people-group {
  margin-top: 3.2rem;
}

.people-group h3 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  padding-left: 0.75rem;
  border-left: 5px solid #1f2b67;
  line-height: 1.1;
}

#students {
  margin-top: 0.8rem;
}

#students > h3 {
  font-size: 3rem;
  line-height: 1.03;
  padding-left: 0.95rem;
  border-left-width: 6px;
  margin-bottom: 1.35rem;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  column-gap: 2rem;
  row-gap: 9em;
  margin-top: 5rem;
}

#students .people-grid {
  margin-top: 8.4rem;
}

.people-grid-lead {
  grid-template-columns: minmax(280px, 420px);
}

.person-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e3e8;
  border-radius: 0;
  box-shadow: 0 6px 16px rgba(17, 27, 54, 0.08);
  min-height: 0;
  padding: 0.12rem 1.25rem 1.45rem;
  overflow: visible;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.person-card:hover {
  transform: translateY(-3px);
  border-color: rgba(77, 124, 255, 0.42);
}

.person-card.lead {
  border-left: none;
}

.professor-detail-link {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
}

.professor-detail-link:hover {
  opacity: 0.8;
}

.person-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.62rem;
  margin-top: -74px;
  margin-bottom: 0;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid #e5e5e5;
}

.person-photo {
  width: 148px;
  height: 180px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #d5d8e2;
  background: transparent;
  box-shadow: none;
  flex-shrink: 0;
}

.person-photo-placeholder {
  width: 148px;
  height: 180px;
  border-radius: 12px;
  border: 1px dashed #b8c3dd;
  background: linear-gradient(135deg, #f7f9ff, #eef2fb);
  color: #7f8bb0;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.4rem;
  flex-shrink: 0;
}

.person-name {
  font-size: 1.52rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 0.7rem;
}

.person-role {
  font-size: 0.95rem;
  color: #2e3a58;
  font-weight: 500;
  letter-spacing: 0;
  margin-top: 0.15rem;
}

.person-meta {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.6;
}

.person-top + .person-meta {
  margin-top: 1rem;
}

.person-meta + .person-meta {
  margin-top: 0.22rem;
}

.meta-label {
  min-width: 54px;
  color: #202020;
  font-weight: 700;
}

.meta-label::after {
  content: "|";
  margin-left: 0.5rem;
  color: #c4c4c4;
  font-weight: 400;
}

.meta-value {
  color: #555f72;
  font-weight: 500;
  word-break: break-all;
}

.person-interest-title {
  margin-top: 0.9rem;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
  color: #1f2a44;
  font-weight: 700;
}

.person-interest-list {
  list-style: none;
  display: grid;
  gap: 0.24rem;
}

.person-interest-list li {
  padding-left: 0;
  font-size: 0.9rem;
  color: #555f72;
  line-height: 1.52;
}

@media (max-width: 680px) {
  .people-layout {
    grid-template-columns: 1fr;
  }

  .people-sidebar {
    position: static;
  }

  .people-grid {
    grid-template-columns: 1fr;
    row-gap: 6.2rem;
    margin-top: 4.5rem;
  }

  #students > h3 {
    font-size: 2.3rem;
    line-height: 1.06;
    padding-left: 0.7rem;
    border-left-width: 4px;
    margin-bottom: 1.1rem;
  }

  #students .people-grid {
    margin-top: 7rem;
  }

  .people-grid-lead {
    grid-template-columns: 1fr;
  }

  .person-photo,
  .person-photo-placeholder {
    width: 126px;
    height: 154px;
  }

  .person-card {
    min-height: 0;
    padding-bottom: 1.35rem;
  }

  .person-top {
    margin-top: -63px;
  }

  .person-name {
    font-size: 1.32rem;
  }

  .person-role {
    font-size: 0.88rem;
  }
}
