/* GeoCARE People — front-end styles for [geocare_people].
   Ported from the hand-written People page (same maroon system as Publications),
   with the Sept 2026 compact-card refresh, anchor strip, meta/links rows and
   the Join the Lab panel. Loaded after publications.css (shares .pub-* pills). */

.people-page, .people-page * { box-sizing: border-box; }
:where(.people-page) :where(h2, h3, h4, p, ul, ol) { margin: 0; padding: 0; }
.people-page { font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif; color: #322427; }

/* ---------- Quick links ---------- */
.people-anchors {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  max-width: 1160px; margin: 8px auto 0;
}
.people-anchors a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border: 1.8px solid #d9bcd5; border-radius: 999px;
  background: #fff; color: #6b1239;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; font-size: 0.82em; font-weight: 700; letter-spacing: .03em;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.people-anchors a:hover, .people-anchors a:focus-visible { background: #6b1239; border-color: #6b1239; color: #fff; }
.people-anchor__n { padding: 0 7px; border-radius: 999px; background: #f6eef2; font-size: 0.85em; }
.people-anchors a:hover .people-anchor__n { background: rgba(255,255,255,.2); }
.people-anchor--join { border-style: dashed; }

/* ---------- Section shell ---------- */
.people-section { margin: 52px auto 48px; max-width: 1160px; scroll-margin-top: 96px; }
.people-section:first-of-type { margin-top: 4px; }
.people-section--tight { margin-top: 28px; }
.people-title {
  text-align: center; color: #6b1239;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; font-size: 2.2em; font-weight: 800; letter-spacing: .5px;
  margin: 0 0 30px;
}
.people-title::after { content: ""; display: block; width: 64px; height: 4px; margin: 14px auto 0; background: #6b1239; border-radius: 2px; }
.people-intro { text-align: center; color: #7f4862; font-size: 0.98em; max-width: 720px; margin: -16px auto 28px; line-height: 1.55; }

/* ---------- Director ---------- */
.director-card {
  position: relative;
  display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start;
  max-width: 1000px; margin: 0 auto; padding: 32px;
  background: linear-gradient(135deg, #ffffff 55%, #f8f0f4 100%);
  border: 1.8px solid #d9bcd5; border-radius: 20px;
  box-shadow: 0 6px 18px rgba(107, 18, 57, 0.12);
}
.director-photo {
  flex: 0 0 264px; width: 264px; max-width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 18px; background: #f6eef2; border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(107, 18, 57, 0.2);
}
.director-info { flex: 1 1 380px; min-width: 0; position: relative; }
.director-info .people-name, .director-info .people-role, .director-info .people-meta { text-align: left; }
.director-info .people-name { font-size: 1.6em; }
.director-info .people-tags, .director-info .people-links { justify-content: flex-start; }
.people-bio.people-bio--full { display: block; -webkit-line-clamp: none; line-clamp: none; overflow: visible; }
.director-more { display: none; margin-top: 6px; }
.bio-toggle:checked ~ .director-more { display: block; }
.director-more p { color: #322427; font-size: 0.98em; line-height: 1.65; margin: 0 0 16px; }
.director-subhead { color: #6b1239; font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; font-size: 0.86em; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; margin: 0 0 8px; }
.director-list { margin: 0 0 20px; padding-left: 20px; list-style: disc; color: #322427; font-size: 0.94em; line-height: 1.6; }
.director-list li { margin: 0 0 6px; padding: 0; }
.director-list li::marker { color: #6b1239; }

/* ---------- Card grid ---------- */
.people-grid {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 22px;
  max-width: 1120px; margin: 0 auto; padding: 0; width: 100%; list-style: none;
}
.people-card {
  position: relative;
  flex: 1 1 260px; min-width: 0; max-width: 352px; margin: 0;
  display: flex; flex-direction: column; align-items: stretch;
  padding: 22px 20px 18px;
  background: #fff; border: 1.8px solid #d9bcd5; border-radius: 16px;
  box-shadow: 0 6px 16px rgba(107, 18, 57, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.people-card:hover { transform: translateY(-4px); box-shadow: 0 16px 35px rgba(107, 18, 57, 0.2); border-color: #6b1239; }
.people-photo {
  display: block; width: 100%; max-width: 150px; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  margin: 0 auto 14px;
  border-radius: 50%; background: #f6eef2; border: 3px solid #6b1239;
  box-shadow: 0 6px 18px rgba(107, 18, 57, 0.16);
}
.people-photo--initials {
  display: flex; align-items: center; justify-content: center;
  color: #6b1239; font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; font-size: 2.2em; font-weight: 800; letter-spacing: .04em;
  background: linear-gradient(135deg, #fff 40%, #f6eef2 100%);
}
.director-photo.people-photo--initials { font-size: 4em; }
.people-info { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; width: 100%; }

/* ---------- Card text ---------- */
.people-name {
  text-align: center; color: #6b1239;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; font-size: 1.18em; font-weight: 800; line-height: 1.3;
  margin: 0 0 2px;
}
.people-cred { font-size: 0.72em; font-weight: 700; letter-spacing: .04em; color: #7f4862; white-space: nowrap; }
.people-role { text-align: center; color: #7f4862; font-size: 0.8em; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; margin: 0 0 8px; }
.people-meta { text-align: center; color: #7f4862; font-size: 0.82em; margin: -4px 0 8px; }
.people-meta__sep { color: #c9a7bd; padding: 0 2px; }
.people-role__since { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 1.05em; }
.people-page .people-name, .people-page .people-role, .people-page .people-meta, .people-page .people-now { padding-bottom: 0 !important; }
.people-card .people-name { margin-bottom: 2px; }
.people-card .people-role { margin: 2px 0 10px; line-height: 1.4; }

.people-now { text-align: center; color: #322427; font-size: 0.86em; font-weight: 600; line-height: 1.45; margin: -2px 0 8px; }
.people-now__k {
  display: inline-block; margin-right: 6px; padding: 1px 8px;
  background: #6b1239; border-radius: 999px; color: #fff;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; font-size: 0.72em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  vertical-align: 1px;
}
.people-now__loc { display: block; margin-top: 1px; color: #7f4862; font-size: 0.86em; font-weight: 400; }

.people-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 12px; }
.people-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border: 1.8px solid #d9bcd5; border-radius: 999px; background: #fff; color: #6b1239;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; font-size: 0.74em; font-weight: 700; letter-spacing: .03em;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.people-link svg { width: 13px; height: 13px; flex: 0 0 auto; }
.people-link:hover, .people-link:focus-visible { background: #f8eef3; border-color: #6b1239; color: #6b1239; }
.people-link svg.people-brand { width: 16px; height: 16px; }   /* LinkedIn, Scholar and ORCID in their own colours */

.people-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin: 0 0 12px; padding: 0; list-style: none; }
.people-tags li {
  margin: 0; padding: 3px 9px; list-style: none;
  background: #f6eef2; border: 1px solid #e2cdd9; border-radius: 999px; color: #6b1239;
  font-size: 0.72em; font-weight: 600; line-height: 1.4;
}
.people-tags li::marker { content: ""; }
.people-tags li::before { content: none; display: none; }

.people-bio {
  text-align: left; color: #322427; font-size: 0.92em; line-height: 1.55; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.bio-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bio-toggle:checked ~ .people-bio { display: block; -webkit-line-clamp: none; line-clamp: none; overflow: visible; }
.bio-more {
  display: inline-block; align-self: flex-start; margin-top: 8px; cursor: pointer; color: #6b1239;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; font-size: 0.8em; font-weight: 700; letter-spacing: .3px;
  border-bottom: 2px solid rgba(107, 18, 57, 0.3); padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.bio-more__close { display: none; }
.bio-copy { display: inline-block; margin: 8px 0 0 14px; padding: 0; background: none; border: 0; cursor: pointer; color: #7f6a72; font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; font-size: 0.75em; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.bio-copy:hover { color: #6b1239; }
.bio-copy[hidden] { display: none; }
.bio-toggle:checked ~ .bio-more .bio-more__open { display: none; }
.bio-toggle:checked ~ .bio-more .bio-more__close { display: inline; }
.bio-more:hover { color: #4d0c29; border-bottom-color: #6b1239; }
.bio-more:focus-visible, .bio-toggle:focus-visible ~ .bio-more { outline: 2px solid #6b1239; outline-offset: 3px; border-radius: 3px; }

.people-thesis { margin: 10px 0 0; color: #322427; font-size: 0.86em; line-height: 1.5; text-align: left; }
.people-thesis__k { display: inline-block; margin-right: 6px; color: #7f4862; font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; font-size: 0.78em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* Publications block pinned to the card bottom (from publications.css .ppubs). */
.people-card .ppubs { margin-top: auto; padding-top: 10px; }
.people-card .ppubs__s { font-size: 0.84em; }
.director-info .ppubs { margin-top: 14px; }

/* Editor-only edit pill, top-right of a card. */
.people-edit { position: absolute; top: 10px; right: 10px; z-index: 2; }

/* ---------- Join the Lab ---------- */
.people-join__card {
  max-width: 1000px; margin: 0 auto; padding: 34px 36px;
  background: linear-gradient(135deg, #6b1239 0%, #4e0c29 100%);
  border-radius: 20px; color: #fff;
  box-shadow: 0 10px 28px rgba(107, 18, 57, 0.28);
}
.people-title--join { color: #fff; text-align: left; font-size: 1.7em; margin-bottom: 16px; }
.people-title--join::after { margin-left: 0; background: #f0c14b; }
.people-join__text p { color: rgba(255,255,255,.92); font-size: 1em; line-height: 1.65; margin: 0 0 12px; max-width: 760px; }
.people-join__text a { color: #f0c14b; }
.people-join__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.people-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border: 2px solid rgba(255,255,255,.55); border-radius: 999px;
  color: #fff; background: transparent;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; font-size: 0.86em; font-weight: 700; letter-spacing: .03em;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.people-btn svg { width: 16px; height: 16px; }
.people-btn:hover, .people-btn:focus-visible { background: #fff; color: #6b1239; border-color: #fff; }
.people-btn--primary { background: #f0c14b; border-color: #f0c14b; color: #4e0c29; }
.people-btn--primary:hover, .people-btn--primary:focus-visible { background: #fff; border-color: #fff; color: #6b1239; }

/* ---------- Preferences, print, small screens ---------- */
@media (prefers-reduced-motion: reduce) {
  .people-card, .people-photo, .bio-more, .people-link, .people-anchors a, .people-btn { transition: none; }
  .people-card:hover { transform: none; }
}
@media print {
  .people-bio { display: block; -webkit-line-clamp: none; line-clamp: none; overflow: visible; }
  .director-more { display: block; }
  .bio-more, .people-anchors, .people-edit, .pub-admin-bar { display: none; }
  .people-card, .director-card { box-shadow: none; break-inside: avoid; page-break-inside: avoid; }
  .people-join__card { background: none; color: #322427; border: 1.5px solid #d9bcd5; }
  .people-title--join, .people-join__text p { color: #322427; }
}
@media (max-width: 780px) {
  .people-grid { max-width: 96vw; align-items: flex-start; }
  .people-card { flex-basis: 100%; max-width: 440px; }
  .people-photo { max-width: 160px; }
  .director-card { flex-direction: column; align-items: center; padding: 24px 20px; gap: 22px; }
  .director-photo { flex: 0 0 auto; width: 240px; }
  .director-info .people-name, .director-info .people-role, .director-info .people-meta { text-align: center; }
  .director-info .people-tags, .director-info .people-links { justify-content: center; }
  .people-join__card { padding: 26px 22px; }
  .people-title--join { text-align: center; }
  .people-title--join::after { margin-left: auto; }
  .people-join__actions { justify-content: center; }
}

/* =====================================================================
   Modern layout (.pv): page header with numbers, director profile,
   compact two-column cards. Same maroon/gold system as Outreach and
   Publications so it reads as part of the site.
   ===================================================================== */
.pv { max-width: 1120px; margin: 0 auto; }
.pv-head { text-align: center; margin: 6px auto 26px; }
.pv-title { color: #6b1239; font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; font-size: 2.2em; font-weight: 800; line-height: 1.2; letter-spacing: .02em; }
.pv-title::after { content: ""; display: block; width: 64px; height: 4px; margin: 14px auto 0; background: #6b1239; border-radius: 2px; }
.pv-intro { margin: 14px auto 0; max-width: 52em; color: #7f4862; font-size: 1.02em; line-height: 1.6; }

.pv-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 22px; }
.pv-stats--3 { grid-template-columns: repeat(3, 1fr); }
.pv-stats--2 { grid-template-columns: repeat(2, minmax(0, 260px)); justify-content: center; }
.pv-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px 12px; text-align: center; background: linear-gradient(160deg, #fff, #f8f0f4); border: 1.5px solid #e2cdd9; border-radius: 14px; box-shadow: 0 4px 12px rgba(107, 18, 57, 0.07); }
.pv-stat__n { color: #6b1239; font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; font-size: 2em; font-weight: 800; line-height: 1.1; }
.pv-stat__l { color: #7f4862; font-size: 0.72em; font-weight: 700; letter-spacing: .07em; line-height: 1.35; text-transform: uppercase; padding: 0 !important; }

.pv-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 34px; }
.pv-nav .news-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 15px; border-radius: 999px; border: 1.5px solid #d9bcd5; background: #fff; color: #6b1239; font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; font-size: 0.84em; font-weight: 700; line-height: 1; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.pv-nav .news-chip:hover, .pv-nav .news-chip:focus-visible { background: #6b1239; border-color: #6b1239; color: #fff; }
.pv-nav .news-chip__n { font-size: 0.82em; padding: 2px 7px; border-radius: 999px; background: #f6eef2; color: #7f4862; }
.pv-nav .news-chip:hover .news-chip__n { background: rgba(255,255,255,.2); color: #fff; }

.pv-section { margin: 0 0 44px; scroll-margin-top: 100px; }
.pv-section__head { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.pv-section__h { color: #6b1239; font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; font-size: 1.45em; font-weight: 800; letter-spacing: .01em; white-space: nowrap; padding: 0 !important; }
.pv-section__n { line-height: 1.2; padding: 3px 10px; border-radius: 999px; background: #6b1239; color: #fff; font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; font-size: 0.78em; font-weight: 800; }
.pv-section__rule { flex: 1 1 auto; height: 2px; background: linear-gradient(90deg, #e2cdd9, rgba(226, 205, 217, 0)); border-radius: 2px; }
.pv-section__intro { margin: -8px 0 18px; color: #7f4862; font-size: 0.96em; line-height: 1.55; }

/* Director profile */
.pv-lead { position: relative; display: block; padding: 26px 30px; background: linear-gradient(135deg, #ffffff 55%, #f8f0f4 100%); border: 1.8px solid #d9bcd5; border-top: 5px solid #6b1239; border-radius: 18px; box-shadow: 0 6px 18px rgba(107, 18, 57, 0.10); }
.pv-lead__head { display: flex; align-items: center; gap: 20px; margin: 0 0 16px; }   /* round photo the same size as the student cards */
.pv-lead__id { min-width: 0; }
.pv-lead__id .people-links { justify-content: flex-start; gap: 6px; margin: 8px 0 0; }
.pv-lead__id .people-link svg { width: 14px; height: 14px; }
.pv-lead__id .people-link svg.people-brand { width: 16px; height: 16px; }
.pv-eyebrow { display: inline-block; margin: 0 0 8px; padding: 4px 11px; border-radius: 999px; background: #f0c14b; color: #4d0c29; font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; font-size: 0.7em; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.pv-lead .people-name { text-align: left; font-size: 1.6em; margin: 0 0 2px; }
.pv-lead__role { margin: 0; color: #7f4862; font-size: 0.98em; font-weight: 600; line-height: 1.45; padding: 0 !important; }
.pv .pv-lead__bio { display: block; -webkit-line-clamp: none; line-clamp: none; overflow: visible; font-size: 1em; line-height: 1.7; margin: 0 0 18px; }
.pv .pv-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 10px; margin: 0 0 16px; padding: 0 !important; list-style: none; }
.pv-metrics li { margin: 0; padding: 10px 6px; list-style: none; text-align: center; background: #fff; border: 1.5px solid #e2cdd9; border-radius: 12px; }
.pv-metrics li::before { content: none; }
.pv-metric__n { display: block; color: #6b1239; font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; font-size: 1.35em; font-weight: 800; line-height: 1.15; }
.pv-metric__l { display: block; margin-top: 2px; color: #7f4862; font-size: 0.66em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pv-lead .people-tags { justify-content: flex-start; margin: 0 0 14px; }
.pv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0; }
.pv-actions .bio-more, .pv-actions .bio-copy { margin: 0; }
.pv-more { display: none; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; margin: 4px 0 18px; padding: 22px 0 0; border-top: 1.5px solid #ecdde5; }
.bio-toggle:checked ~ .pv-more { display: grid; }
.pv-more__side { padding-left: 24px; border-left: 1.5px solid #ecdde5; }
.pv-more__side .director-list { list-style: none; padding-left: 0; }
.pv-more__side .director-list li { position: relative; padding-left: 16px; }
.pv-more__side .director-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: #6b1239; }
.pv-more__main .director-list li::marker { color: #f0c14b; }
.pv-lead .ppubs { margin-top: 16px; }

/* Student and alumni cards */
.pv .pv-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin: 0; padding: 0 !important; list-style: none; }
.pv .people-tags, .pv .people-links { padding: 0 !important; }
.pv .people-bio { padding-bottom: 0 !important; }
.pv-card { position: relative; display: flex; flex-direction: column; margin: 0; padding: 22px 30px 16px; list-style: none; background: #fff; border: 1.8px solid #e2cdd9; border-radius: 16px; box-shadow: 0 4px 14px rgba(107, 18, 57, 0.08); transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease; }
.pv-card::before { content: none; }
.pv-card:hover { border-color: #6b1239; box-shadow: 0 12px 28px rgba(107, 18, 57, 0.16); transform: translateY(-2px); }
.pv-card__top { display: flex; gap: 20px; align-items: center; margin: 0 0 12px; }
.people-card--editable .pv-card__top { padding-right: 58px; }
.pv-card__photo { flex: 0 0 96px; width: 96px; height: 96px; object-fit: cover; border-radius: 50%; background: #f6eef2; border: 3px solid #6b1239; box-shadow: 0 4px 12px rgba(107, 18, 57, 0.14); }
.pv-card__photo.people-photo--initials { font-size: 1.8em; }
.pv-card__id { min-width: 0; }
.pv-card .people-name { text-align: left; font-size: 1.3em; margin: 0 0 2px; }
.pv-card__role { margin: 0 0 8px; color: #7f4862; font-size: 0.9em; font-weight: 600; line-height: 1.4; padding: 0 !important; }
.pv-card__now { margin: -2px 0 8px; color: #322427; font-size: 0.84em; font-weight: 600; line-height: 1.45; }
.pv-card__loc { color: #7f4862; font-weight: 400; }
.pv-card .people-links { justify-content: flex-start; gap: 6px; margin: 0; }
/* a row has room for the names: logo + label pills for everyone (director and students) */
.pv-card .people-link, .pv-lead__id .people-link { gap: 6px; padding: 4px 12px 4px 9px; font-size: 0.72em; }
.pv-card .people-link svg { width: 14px; height: 14px; }
.pv-card .people-link svg.people-brand { width: 16px; height: 16px; }
.pv-card .people-tags { justify-content: flex-start; margin: 0 0 10px; }
.pv-card .people-bio { font-size: 0.95em; line-height: 1.65; -webkit-line-clamp: 4; line-clamp: 4; }   /* one person per row, like the director: full-width bio, short enough to read whole */
.pv-card .bio-more { margin-top: 6px; }
.pv-card .people-thesis { margin-top: 10px; }
.pv-card__foot { margin-top: auto; padding-top: 10px; }
.pv-card__foot:empty { display: none; }
.pv-card__foot .ppubs { margin: 0; }
.pv-card .people-edit { top: 14px; right: 14px; }
.pv-lead .people-edit { top: 16px; right: 16px; }
.bio-more[aria-expanded="true"] .bio-more__open { display: none; }
.bio-more[aria-expanded="true"] .bio-more__close { display: inline; }
.pv .people-join { max-width: none; margin: 10px 0 0; }

@media (max-width: 1040px) {
  .pv-card__photo { flex-basis: 84px; width: 84px; height: 84px; }
}
@media (max-width: 1100px) {
  .pv-more { grid-template-columns: 1fr; }
  .pv-more__side { padding-left: 0; border-left: 0; }
}
@media (max-width: 860px) {
  .pv-lead { padding: 22px 18px; }
  .pv-card { padding: 20px 18px 14px; }
  .pv-card .people-name { font-size: 1.15em; }
  .pv-more { grid-template-columns: 1fr; }
  .pv-more__side { padding-left: 0; border-left: 0; }
}
@media (max-width: 760px) {
  .pv-stats, .pv-stats--3 { grid-template-columns: repeat(2, 1fr); }
  .pv .pv-grid { grid-template-columns: 1fr; }
  .pv-title { font-size: 1.7em; }
  .pv-lead .people-name { font-size: 1.5em; }
}
@media (max-width: 420px) {
  .pv-card__photo { flex-basis: 72px; width: 72px; height: 72px; }
  .pv-stat__n { font-size: 1.6em; }
}
@media print {
  .pv-nav, .pv-actions { display: none; }
  .pv-more { display: grid; }
}

/* Modern layout: Join the Lab as a compact band (text left, button right) */
.pv .people-join__card { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; align-items: center; max-width: none; padding: 24px 30px; border-radius: 16px; box-shadow: 0 6px 18px rgba(107, 18, 57, 0.18); }
.pv .people-title--join { grid-column: 1; font-size: 1.3em; margin: 0 0 10px; padding: 0 !important; }
.pv .people-title--join::after { width: 44px; height: 3px; margin-top: 8px; }
.pv .people-join__text { grid-column: 1; }
.pv .people-join__text p { font-size: 0.9em; line-height: 1.55; margin: 0 0 6px; padding: 0 !important; max-width: 720px; }
.pv .people-join__text p:last-child { margin-bottom: 0; }
.pv .people-join__actions { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding: 0 !important; flex-direction: column; align-items: stretch; }
.pv .people-btn { padding: 9px 18px; font-size: 0.82em; line-height: 1.2; justify-content: center; white-space: nowrap; }
@media (max-width: 760px) {
  .pv .people-join__card { grid-template-columns: 1fr; padding: 22px 20px; }
  .pv .people-join__actions { grid-column: 1; grid-row: auto; margin-top: 14px; flex-direction: row; }
}

/* Career-stage filter (appears only when the team has more than one stage) */
.pv-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.pv-filter__b { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1.5px solid #d9bcd5; border-radius: 999px; background: #fff; color: #6b1239; cursor: pointer; font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; font-size: 0.82em; font-weight: 700; line-height: 1.2; transition: background .2s, color .2s, border-color .2s; }
.pv-filter__b span { padding: 1px 7px; border-radius: 999px; background: #f6eef2; color: #7f4862; font-size: 0.85em; }
.pv-filter__b:hover { border-color: #6b1239; }
.pv-filter__b.is-on { background: #6b1239; border-color: #6b1239; color: #fff; }
.pv-filter__b.is-on span { background: rgba(255,255,255,.2); color: #fff; }
.pv-card[hidden] { display: none; }

/* Read more is hidden when the whole bio already shows (the [hidden] attribute set by the page script) */
.people-page .bio-more[hidden] { display: none !important; }

/* Student / alumni rows — header: name with programme and start term on one line, contact links on the next;
   research tags on the Publications line at the bottom (right side), so the card reads top to bottom: who, contact, work */
.pv-card__line { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; row-gap: 2px; margin: 0 0 9px; }
.pv-card__line .people-name { margin: 0; }
.pv-card__line .pv-card__role { margin: 0; }
.pv-card__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: 16px; margin-top: 12px; padding-top: 10px; border-top: 1.5px dashed #e2cdd9; }
.pv-card__foot .ppubs { grid-column: 1 / -1; grid-row: 1; margin: 0; border-top: 0; padding-top: 0; }
.pv-card__foot .people-tags { grid-column: 2; grid-row: 1; justify-self: end; justify-content: flex-end; margin: 0; position: relative; z-index: 1; }
@media (max-width: 760px) {
  .pv-card__foot { grid-template-columns: minmax(0, 1fr); }
  .pv-card__foot .people-tags { grid-column: 1; grid-row: 2; justify-self: start; justify-content: flex-start; margin-top: 8px; }
}

/* Section chips with Join the Lab at the top right (highlighted), opening a small panel */
.pv-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin: 0 0 34px; }
.pv-bar .pv-nav { flex: 1 1 auto; justify-content: flex-start; margin: 0; }
.pv-join { position: relative; margin-left: auto; }
.pv-join__btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; background: #f0c14b; color: #4e0c29; border: 2px solid #f0c14b; font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; font-size: 0.86em; font-weight: 800; letter-spacing: .02em; cursor: pointer; list-style: none; box-shadow: 0 4px 14px rgba(240, 193, 75, 0.45); transition: background-color .2s ease, box-shadow .2s ease; }
.pv-join__btn::-webkit-details-marker { display: none; }
.pv-join__btn::marker { content: ""; }
.pv-join__btn svg { width: 15px; height: 15px; }
.pv-join__btn:hover, .pv-join[open] .pv-join__btn { background: #ffd56b; box-shadow: 0 6px 18px rgba(240, 193, 75, 0.6); }
.pv-join__btn:focus-visible { outline: 2px solid #6b1239; outline-offset: 3px; }
.pv-join__panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 20; width: min(440px, calc(100vw - 32px)); padding: 20px 22px; background: #fff; border: 1.8px solid #d9bcd5; border-top: 5px solid #6b1239; border-radius: 16px; box-shadow: 0 18px 40px rgba(78, 12, 41, 0.22); text-align: left; }
.pv-join__h { margin: 0 0 8px; color: #6b1239; font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; font-size: 1.05em; font-weight: 800; padding: 0 !important; }
.pv-join__text p { margin: 0 0 8px; color: #322427; font-size: 0.9em; line-height: 1.55; padding: 0 !important; }
.pv-join__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0 !important; }
.pv-join__go, .pv-join__alt { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px; font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; font-size: 0.82em; font-weight: 700; text-decoration: none; }
.pv-join__go { background: #6b1239; color: #fff; border: 2px solid #6b1239; }
.pv-join__go svg { width: 14px; height: 14px; }
.pv-join__go:hover, .pv-join__go:focus-visible { background: #4e0c29; border-color: #4e0c29; color: #fff; }
.pv-join__alt { color: #6b1239; border: 2px solid #d9bcd5; background: #fff; }
.pv-join__alt:hover, .pv-join__alt:focus-visible { border-color: #6b1239; }
@media (max-width: 760px) {
  .pv-bar { justify-content: center; }
  .pv-bar .pv-nav { justify-content: center; }
  .pv-join { margin: 0 auto; }
  .pv-join__panel { right: 50%; transform: translateX(50%); }
}
@media print { .pv-join { display: none; } }
/* a thin divider between the name and "M.S. student · Fall 2024" */
.pv-card__line .pv-card__role::before { content: "|"; margin-right: 14px; color: #d9bcd5; font-weight: 400; }
@media (max-width: 520px) { .pv-card__line .pv-card__role::before { content: none; } }

/* Join the Lab level with the page title: title centred, button at the right of the same row */
.pv-head__row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; column-gap: 16px; }
.pv-head__row .pv-title { grid-column: 2; margin: 0; }
.pv-head__join { grid-column: 3; justify-self: end; padding-top: .35em; }
.pv-head .pv-join { margin: 0; }
.pv-head .pv-join__panel { text-align: left; }
@media (max-width: 760px) {
  .pv-head__row { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .pv-head__row .pv-title { grid-column: 1; }
  .pv-head__pad { display: none; }
  .pv-head__join { grid-column: 1; justify-self: center; padding-top: 0; }
}

.pv-head { margin-bottom: 30px; }
/* Join the Lab: small, in the site maroon */
.pv-join__btn { line-height: 1.2 !important; gap: 6px; padding: 6px 13px; background: #6b1239; border-color: #6b1239; color: #fff; font-size: 0.74em; font-weight: 700; box-shadow: 0 2px 8px rgba(107, 18, 57, 0.22); }
.pv-join__btn svg { width: 13px; height: 13px; }
.pv-join__btn:hover, .pv-join[open] .pv-join__btn { background: #4e0c29; border-color: #4e0c29; box-shadow: 0 4px 12px rgba(78, 12, 41, 0.3); }

/* Director card in the same style as the student rows (name size, role line, body text, spacing) */
.pv-lead { padding: 22px 30px 16px; }
.pv-lead .pv-card__line .people-name { font-size: 1.3em; margin: 0; }
.pv .pv-lead__bio { font-size: 0.95em; line-height: 1.65; margin: 0 0 16px; }
.pv-lead__head { gap: 20px; margin: 0 0 12px; }
@media (max-width: 860px) { .pv-lead { padding: 20px 18px 14px; } .pv-lead .pv-card__line .people-name { font-size: 1.15em; } }
.pv-lead__id .people-links { margin: 0; }

/* Director bio: first five lines, the rest with Read more (the same switch opens the full biography below) */
.pv .pv-lead__bio { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; }
.pv .pv-lead:has(.bio-toggle:checked) .pv-lead__bio { display: block; -webkit-line-clamp: none; line-clamp: none; overflow: visible; }

/* the page script keeps the reading position itself when an opened card folds away, so the browser should not also shift it */
body:has(.people-page) { overflow-anchor: none; }

/* Read more / Copy bio sit right under the bio; the number boxes are a size smaller */
.pv-lead .pv-lead__bio { margin-bottom: 8px; }
.pv-lead .pv-actions { margin: 0 0 14px; }
.pv-lead .pv-metrics { gap: 8px; margin: 0 0 6px; }
.pv-lead .pv-metrics li { padding: 7px 6px; border-radius: 10px; }
.pv-lead .pv-metric__n { font-size: 1.1em; }
.pv-lead .pv-metric__l { font-size: 0.6em; }

/* Full biography: research areas in two columns across the card, then Education | Professional Experience */
.pv .pv-more { grid-template-columns: minmax(0, 1fr); gap: 0; }
.pv .pv-more__main .director-list { columns: 2; column-gap: 34px; margin-bottom: 14px; }
.pv .pv-more__main .director-list li { break-inside: avoid; }
.pv .pv-more__side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; padding: 16px 0 0; border-left: 0; border-top: 1.5px solid #ecdde5; }
.pv .pv-more__col .director-list { margin-bottom: 4px; }
@media (max-width: 760px) {
  .pv .pv-more__main .director-list { columns: 1; }
  .pv .pv-more__side { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

/* Director bio cut at the {more} mark (a whole sentence) instead of after a fixed number of lines */
.pv .pv-lead__bio--split { display: block; -webkit-line-clamp: none; line-clamp: none; overflow: visible; }
.pv-lead__bio--split .pv-bio__rest { display: none; }
.pv-lead:has(.bio-toggle:checked) .pv-lead__bio--split .pv-bio__rest { display: inline; }

/* Read more at the end of the bio text; Copy bio in the top right corner */
.pv-lead .pv-lead__bio { margin-bottom: 14px; }
.pv-lead .pv-bio__more { display: inline; margin: 0 0 0 6px; padding-bottom: 0; font-size: 0.84em; white-space: nowrap; }
.pv-lead__copy { text-decoration: none; position: absolute; top: 16px; right: 16px; z-index: 2; margin: 0; padding: 5px 12px; border: 0; border-radius: 999px; background: #6b1239; color: #fff; font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; font-size: 0.7em; font-weight: 700; line-height: 1.3; cursor: pointer; box-shadow: 0 2px 8px rgba(107, 18, 57, 0.22); }
.pv-lead__copy:hover, .pv-lead__copy:focus-visible { background: #4e0c29; color: #fff; }
.people-card--editable .pv-lead__copy { right: 78px; }   /* leave room for the editors' Edit button */
@media print { .pv-lead__copy { display: none; } }

/* research areas: fill the left column first (three), then the right (two), in the order written */
.pv .pv-more__main .director-list { columns: auto; display: grid; grid-auto-flow: column; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(3, auto); column-gap: 34px; row-gap: 0; align-items: start; }
@media (max-width: 760px) { .pv .pv-more__main .director-list { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; } }
/* each column stacks on its own (no shared row heights): three in the left column, the rest start the right column */
.pv .pv-more__main .director-list { display: block; columns: 2; column-gap: 34px; }
.pv .pv-more__main .director-list li:nth-child(4) { break-before: column; }
@media (max-width: 760px) { .pv .pv-more__main .director-list { columns: 1; } .pv .pv-more__main .director-list li:nth-child(4) { break-before: auto; } }

/* Student bios: "Read more" at the end of the fourth line, over the cut, instead of on a fifth line */
.pv-bio { position: relative; }
.pv-card .pv-bio .people-bio { margin: 0; }
.pv-card:has(.bio-toggle:checked) .pv-bio .people-bio { display: block; -webkit-line-clamp: none; line-clamp: none; overflow: visible; }
.pv-card .pv-bio__more { position: absolute; right: 0; bottom: 0; margin: 0; padding: 0 0 0 3.2em; border-bottom: 0; line-height: 1.65; font-size: 0.86em; background: linear-gradient(90deg, rgba(255,255,255,0), #fff 2.6em); }
.pv-card .pv-bio__more .bio-more__open { border-bottom: 2px solid rgba(107, 18, 57, 0.3); }
.pv-card:has(.bio-toggle:checked) .pv-bio__more { position: static; display: inline-block; margin-top: 6px; padding: 0; background: none; }
.pv-card:has(.bio-toggle:checked) .pv-bio__more .bio-more__open { display: none; }
.pv-card:has(.bio-toggle:checked) .pv-bio__more .bio-more__close { display: inline; border-bottom: 2px solid rgba(107, 18, 57, 0.3); }
/* "… Read more" at the end of the fourth line: a plain ellipsis then the link, on a solid background (no fade) */
.pv-card .pv-bio__more { padding: 0 0 0 4px; background: #fff; }
.pv-card .pv-bio__more::before { content: "\2026\00a0"; color: #322427; font-weight: 400; }
.pv-card:has(.bio-toggle:checked) .pv-bio__more::before { content: none; }
