/* people: one card each — the photo at the left; name, their own words and their website at the right */
.mf-people .ppl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(26rem, 1fr)); gap: 1rem; }
.mf-people li { padding: 1.3rem; display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.3rem; align-items: start; }
.mf-people img, .mf-people .ini { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: calc(var(--radius) * .6); display: block; }
.mf-people .ini { display: grid; place-items: center; background: var(--surface-2); font-family: var(--font-display); font-size: 3rem; color: var(--muted); }
.mf-people .who { min-width: 0; }
.mf-people h3 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.55rem; line-height: 1.15; margin: 0; }
.mf-people h3 .alt { font-family: var(--font-body); font-size: .85rem; color: var(--muted); letter-spacing: 0; }
/* the role line (role · institute) and a visitor's research line: short, so the page scans */
.mf-people .role { color: var(--text-2); font-size: .9rem; font-weight: 500; letter-spacing: .005em; margin: .3rem 0 0; }
.mf-people .role .sep { color: var(--muted); font-weight: 400; }
.mf-people .role .rl, .mf-people .role .it { white-space: nowrap; }   /* a narrow card breaks after the dot, never before it */
.mf-people .interest { color: var(--muted); font-size: .88rem; font-style: italic; line-height: 1.5; margin: .35rem 0 0; }
.mf-people .bio { font-size: .9rem; color: var(--text-2); margin-top: .55rem; }
.mf-people .bio > :last-child { margin-bottom: 0; }
/* long words: about four lines (the page scans), then a fade and a "More" button (site.js) */
.mf-people .bio[data-clamp].cut { max-height: calc(1.6em * 4); overflow: hidden; }
.mf-people .bio[data-clamp].cut.open { max-height: none; }
.mf-people .clamp-btn { display: block; margin-top: .45rem; padding: 0; border: 0; background: none; cursor: pointer; font: 500 .8rem var(--font-body); color: var(--accent-ink); }
.mf-people .clamp-btn::after { content: " ↓"; } .mf-people .clamp-btn[aria-expanded="true"]::after { content: " ↑"; }
.mf-people .clamp-btn:hover { text-decoration: underline; }
.mf-people .site { display: inline-block; margin-top: .7rem; font-family: var(--font-body); font-size: .84rem; color: var(--muted); border-bottom: 1px solid var(--line-2); }
.mf-people .site::after { content: " ↗"; }
.mf-people .site:hover { color: var(--accent-ink); border-color: var(--accent); }
/* names only (visiting scholars): one line each — name, institute, website */
.mf-people .names { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 56rem; }
.mf-people .names li { display: grid; grid-template-columns: minmax(12rem, 18rem) 1fr auto; gap: .4rem 1.5rem; align-items: baseline; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.mf-people .names .nm { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.4rem; line-height: 1.2; }
.mf-people .names .nm .alt { font-family: var(--font-body); font-size: .82rem; color: var(--muted); }
.mf-people .names .inst { color: var(--text-2); font-size: .92rem; }
.mf-people .names .site { margin-top: 0; }
@media (max-width: 760px) { .mf-people .names li { grid-template-columns: 1fr; gap: .15rem; } .mf-people .names .site { justify-self: start; margin-top: .3rem; } }
/* phones: the photo beside the name, the words and the website full width below */
@media (max-width: 560px) {
  .mf-people .ppl { grid-template-columns: 1fr; }
  .mf-people li { grid-template-columns: 4.8rem 1fr; column-gap: 1rem; row-gap: 0; padding: 1.1rem; }
  .mf-people .who { display: contents; }
  .mf-people li > img, .mf-people li > .ini { grid-row: 1 / span 2; }
  .mf-people h3 { grid-column: 2; align-self: end; }
  .mf-people li:not(:has(.role)) h3 { grid-row: 1 / span 2; align-self: center; }
  .mf-people .role { grid-column: 2; align-self: start; }
  .mf-people .bio, .mf-people .site, .mf-people .clamp-btn, .mf-people .interest { grid-column: 1 / -1; }
  .mf-people .interest { margin-top: .8rem; }
  .mf-people .bio { margin-top: .9rem; }
  .mf-people .bio[data-clamp].cut { max-height: calc(1.6em * 5); }
  .mf-people .site, .mf-people .clamp-btn { justify-self: start; }
}
/* rows divided by a rule, not boxes */
.mf-people .ppl { column-gap: 3rem; row-gap: 0; }
.mf-people .ppl > li.mf-card { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 1.6rem 0; }
@media (max-width: 560px) { .mf-people .ppl > li.mf-card { padding: 1.3rem 0; } }
