/* Restored from the original lab page: individual profile cards. */

        .content {
            margin-top: 0;
            margin-bottom: 0
        }

        .lab-intro {
            font-size: var(--text-size);
            line-height: 1.7;
        }

        .section-kicker {
            color: #037FFB;
            font-size: 0.85rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            margin-bottom: 0.35rem;
            text-transform: uppercase;
        }

        .member-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 260px));
            justify-content: start;
            gap: 1.25rem;
        }

        .pi-grid {
            grid-template-columns: minmax(240px, 320px);
        }

        .member-card {
            background: #ffffff;
            border: 1px solid #e4e9f2;
            border-radius: 8px;
            box-shadow: 0 8px 22px rgba(31, 82, 176, 0.08);
            display: flex;
            flex-direction: column;
            height: 100%;
            padding: 1rem;
        }

        .member-portrait {
            align-items: center;
            aspect-ratio: 1 / 1;
            background: #eef6ff;
            border: 1px solid #dce9f8;
            border-radius: 8px;
            color: #1f52b0;
            display: flex;
            font-size: 3rem;
            font-weight: 700;
            justify-content: center;
            margin-bottom: 1rem;
            object-fit: cover;
            object-position: center;
            width: 100%;
        }

        img.member-portrait {
            display: block;
        }

        .member-initials {
            line-height: 1;
            text-transform: uppercase;
        }

        .member-initials:empty::before {
            content: attr(data-initials);
        }

        .member-name {
            margin-bottom: 0.25rem;
            font-size: 1.2rem;
            line-height: 1.3;
        }

        .member-title {
            color: #2c3e50;
            font-size: var(--text-size);
            font-weight: 600;
        }

        .member-period {
            color: #8a8a8a;
            font-size: var(--text-size);
            margin-bottom: 0.75rem;
        }

        .member-interest {
            color: #4d5b6a;
            font-size: var(--text-size);
            line-height: 1.55;
            margin-bottom: 0.75rem;
        }

        .member-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.35rem;
            margin-top: auto;
        }

        .member-tag {
            background: #f4f9ff;
            border: 1px solid rgba(3, 127, 251, 0.18);
            border-radius: 999px;
            color: #1f52b0;
            font-size: var(--small-text-size);
            line-height: 1.3;
            padding: 0.18rem 0.55rem;
        }

        .member-links {
            display: flex;
            flex-wrap: wrap;
            gap: 0.7rem;
            margin-top: 0.9rem;
        }

        .member-link {
            color: #8a8a8a;
            font-size: var(--small-text-size);
        }

        .member-link:hover {
            color: #1f52b0;
            text-decoration: none;
        }

        @media (max-width: 575.98px) {

            .member-grid,
            .pi-grid {
                grid-template-columns: 1fr;
            }
        }

/* Each role has its own section; all card rows share a left edge. */
.lab-page { padding-top: 32px; }
.lab-intro { margin-bottom: 32px; }
.lab-title { margin-bottom: 10px; }
.lab-intro > p { max-width: 900px; margin-bottom: 0; }
.lab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 22px;
  padding: 13px 0;
  border-top: 1px solid #dde3ea;
  border-bottom: 1px solid #dde3ea;
  font-size: var(--small-text-size);
}
.lab-nav a { color: #24496d; }
.people-section { min-width: 0; scroll-margin-top: 22px; }
.people-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 18px;
  font-size: var(--section-title-size);
  color: #12385b;
}
.people-heading::after {
  content: "";
  flex: 1;
  min-width: 12px;
  height: 1px;
  background: #dde3ea;
}
.people-section + .people-section { margin-top: 40px; }
.lab-page .member-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: start;
  margin-inline: 0;
}
.lab-page .member-portrait { height: auto; }
.lab-page .member-name a { color: #1f52b0; }
.lab-page .member-period, .lab-page .member-link { color: #616970; }
.lab-page .member-title:last-of-type { margin-bottom: 6px; }
.lab-join { border-top: 1px solid #dde3ea; padding-top: 20px; margin-top: 36px; font-size: var(--text-size); }
.lab-join p { margin-bottom: 0; }
@media (max-width: 1020px) {
  .lab-page .member-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .lab-page .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-page { padding-top: 26px; }
  .lab-nav { gap: 8px 22px; }
  .people-section + .people-section { margin-top: 34px; }
}
@media (max-width: 575.98px) {
  .lab-intro { margin-bottom: 28px; }
  .lab-nav { gap: 8px 20px; margin-top: 18px; }
  .lab-page .member-grid { grid-template-columns: minmax(0, 1fr); max-width: 360px; }
}
