/* Layout: an editorial front page in the university palette. Oversized serif headlines sit over a
   tight working grid; full-width color bands (beige, blue-gray, brown, black) separate sections
   instead of boxes. Red marks action, gold marks emphasis on dark grounds. Light theme by design. */
:root {
  --black: #000000;
  --ink: #151515;
  --brown: #4e3629;
  --red: #c00404;
  --gold: #eba900;
  --white: #ffffff;
  --beige: #efece5;
  --bluegray: #f0f3f5;
  --muted: #687078;
  --muted-on-beige: #5c636b;
  --cyan: #008672;
  --cyan-soft: #7fd9cb;
  --blue: #007da0;
  --blue-light: #ace5f3;
  --line: #ddd8d0;
  --line-cool: #d3d9dd;
  --row-hover: #f8f7f4;

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", Arial, Helvetica, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --h1: clamp(3.1rem, 1.6rem + 6.2vw, 6.6rem);
  --h1-page: clamp(2.6rem, 1.6rem + 4vw, 4.6rem);
  --h2: clamp(2.3rem, 1.5rem + 2.8vw, 3.7rem);
  --h3: clamp(1.45rem, 1.2rem + 0.8vw, 1.85rem);

  --wrap: 1240px;
  --gap: clamp(16px, 1rem + 1.2vw, 32px);
  --section: clamp(56px, 2.5rem + 3.5vw, 92px);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
:root {
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 30; background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, h4, h5, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
ul, ol, dl, dd { margin: 0; padding: 0; }
a { color: inherit; text-decoration-color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--red); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.serif { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.03em; }
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 760px) {
  .wrap {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}
.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus { left: 16px; top: 16px; z-index: 40; background: var(--white); padding: 8px 12px; }

.eyebrow {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.19em; text-transform: uppercase; color: var(--red);
}
.rule { width: 42px; height: 3px; background: var(--red); }
.chip-example {
  display: inline-block; vertical-align: 0.15em;
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--brown); background: var(--beige);
  border: 1px solid var(--line); padding: 0 6px; line-height: 1.6;
}
.topnote {
  background: var(--black); color: var(--line); text-align: center;
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding-block: 8px; border-bottom: 3px solid var(--red);
}

/* ---------- Buttons and links ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--black); color: var(--white); border: 1px solid var(--black);
  padding: 13px 20px; font-size: 0.84rem; font-weight: 800; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--brown); border-color: var(--brown); color: var(--white); }
.button.light { background: transparent; color: var(--ink); border-color: #b7b0a6; }
.button.light:hover { background: var(--beige); color: var(--ink); }
.button .arr { color: var(--gold); }
.button.light .arr { color: var(--red); }
.more {
  display: inline-flex; gap: 8px; align-items: baseline; font-size: 0.84rem; font-weight: 800;
  text-decoration: none; white-space: nowrap;
}
.more::after { content: "→"; color: var(--red); }
.more:hover { color: var(--red); }
.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer; color: inherit;
  text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 0.2em; text-decoration-thickness: 1px;
}
.link-btn:hover { color: var(--red); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgb(255 255 255 / 0.97); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.nav { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand {
  display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink);
  font-size: 1.14rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; flex-shrink: 0;
}
.brand:hover { color: var(--ink); }
.mark { width: 52px; height: 52px; flex-shrink: 0; display: block; }
.links { display: flex; align-items: center; gap: 38px; font-size: 1.02rem; font-weight: 700; }
.links .nav-top { position: relative; display: block; padding-block: 39px; text-decoration: none; white-space: nowrap; }
.links .nav-top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 28px; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
}
.links .nav-item:hover .nav-top::after, .links .nav-top:focus-visible::after, .links .nav-top[aria-current="page"]::after { transform: scaleX(1); }
.links .nav-top[aria-current="page"] { color: var(--red); }
.nav-item { position: relative; }
.dropdown {
  list-style: none; position: absolute; top: 100%; left: -18px; min-width: 250px; z-index: 25;
  background: var(--white); border-top: 3px solid var(--red); padding: 8px 0;
  box-shadow: 0 14px 34px rgb(0 0 0 / 0.14);
  opacity: 0; visibility: hidden; transform: translateY(6px);
}
.nav-item:nth-last-child(-n+2) .dropdown { left: auto; right: -18px; }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 10px 20px; font-size: 0.92rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.dropdown a:hover, .dropdown a:focus-visible { background: var(--beige); color: var(--red); outline-offset: -3px; }
@media (max-width: 860px) {
  .nav { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 16px; min-height: 0; }
  .brand { font-size: 1.02rem; }
  .mark { width: 46px; height: 46px; }
  .links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); font-size: clamp(0.72rem, 3.3vw, 0.9rem); }
  .links .nav-top { text-align: center; padding: 13px 2px; }
  .links .nav-top::after { bottom: 6px; left: 18%; right: 18%; }
  .dropdown { display: none; }
}

/* ---------- Section scaffolding ---------- */
.section { padding-block: var(--section); }
.band-beige { background: var(--beige); }
.band-cool { background: var(--bluegray); }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 48px;
  flex-wrap: wrap; margin-bottom: 36px;
}
.section-head .rule { margin-bottom: 18px; }
.h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--h2); line-height: 1.02; letter-spacing: -0.045em; }
.head-aside { display: grid; gap: 12px; justify-items: start; max-width: 380px; }
.head-aside p { color: var(--muted); font-size: 0.95rem; }
.band-beige .head-aside p { color: var(--muted-on-beige); }

/* ---------- Hero ---------- */
.hero {
  display: grid; gap: 32px; align-items: end;
  padding-block: clamp(48px, 2rem + 5vw, 96px) clamp(48px, 2rem + 4vw, 84px);
}
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.7fr); gap: 7%; } }
.hero .rule { margin-bottom: 30px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 400; font-size: var(--h1);
  line-height: 0.97; letter-spacing: -0.05em;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero-side { display: grid; gap: 26px; padding-bottom: 8px; }
.hero-side p { font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.18rem); line-height: 1.7; color: var(--muted); }

/* ---------- Research areas ---------- */
.areas {
  display: grid; grid-template-columns: 1fr;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
@media (min-width: 760px) { .areas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.area {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  padding: 28px 30px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink); background: var(--white);
}
.area svg { width: 52px; height: 52px; color: var(--brown); margin-bottom: 22px; }
.area h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--h3); line-height: 1.15; letter-spacing: -0.035em; margin-bottom: 12px; }
.area p { color: var(--muted); font-size: 0.92rem; }
.area .area-foot {
  margin-top: auto; padding-top: 22px; display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.8rem; font-weight: 800;
}
.area .area-foot .arr { color: var(--red); font-size: 1.2rem; }
a.area:hover { background: var(--beige); color: var(--ink); }

/* ---------- Dataset cards ---------- */
.dataset-grid { display: grid; gap: var(--gap); }
@media (min-width: 820px) { .dataset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dataset-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; min-width: 0;
  background: var(--white); border: 1px solid #d8d0c5; border-top: 4px solid var(--brown);
  padding: 28px 30px 26px;
}
.dataset-card::after {
  content: ""; position: absolute; width: 56px; height: 3px; background: var(--gold); bottom: 0; right: 30px;
}
.dc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.dc-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dc-top svg { width: 44px; height: 44px; color: var(--brown); flex-shrink: 0; }
.dc-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.12; letter-spacing: -0.04em; }
.dc-title a { text-decoration: none; }
.dc-title a::after { content: ""; position: absolute; inset: 0; }
.dc-short { color: var(--muted); font-size: 0.95rem; max-width: 52ch; }
.dc-coverage { font-family: var(--font-mono); font-size: 0.8rem; color: var(--brown); border: 1px solid var(--line); padding: 2px 8px; }
.dc-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.82rem; }
.dc-meta dt { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.dc-meta dd { font-weight: 600; }
.access {
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 3px 8px; border: 1px solid currentColor;
}
.access-open { color: var(--cyan); }
.access-restricted { color: var(--brown); }
.access-coming-soon { color: var(--muted); }

/* ---------- Publications ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips button {
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  padding: 8px 14px; font-size: 0.78rem; font-weight: 700; cursor: pointer;
}
.chips button:hover { border-color: var(--brown); }
.chips button[aria-pressed="true"] { background: var(--brown); border-color: var(--brown); color: var(--white); }
.chips .n { font-family: var(--font-mono); font-weight: 400; opacity: 0.75; margin-left: 4px; }

.pub-list { border-top: 2px solid var(--black); }
.pub {
  display: grid; gap: 6px 24px; grid-template-columns: 1fr;
  padding: 22px 4px; border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) {
  .pub { grid-template-columns: 150px minmax(0, 1fr) 190px 22px; align-items: start; }
  .pub-list .pub:hover { background: var(--row-hover); padding-left: 14px; }
}
.pub-meta { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding-top: 4px; }
@media (max-width: 899px) { .pub-meta { flex-direction: row; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; } }
.tag { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.pub-meta time { font-size: 0.8rem; color: var(--muted); }
.pub-main { display: grid; gap: 6px; min-width: 0; }
.pub-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.65rem); line-height: 1.2; letter-spacing: -0.03em; }
.pub-title a { text-decoration: none; }
.pub-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.pub-byline { font-size: 0.86rem; color: var(--muted); }
.pub-byline .venue { font-style: italic; }
.author-team { color: inherit; font-weight: inherit; }
a.author-team { text-decoration-color: var(--line); }
.pub-summary { font-size: 0.9rem; color: var(--ink); max-width: 68ch; }
.pub-links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.82rem; font-weight: 700; padding-top: 2px; }
.pub-links a { text-decoration: none; }
.pub-links a:hover { text-decoration: underline; }
.pub-links .data-link { color: var(--cyan); }
.pub-topics { display: flex; flex-direction: column; gap: 4px; font-size: 0.78rem; color: var(--muted); padding-top: 5px; }
.pub .go { color: var(--brown); font-size: 1.25rem; line-height: 1; padding-top: 6px; }
@media (max-width: 899px) { .pub .go { display: none; } .pub-topics { flex-direction: row; flex-wrap: wrap; gap: 4px 14px; } }

/* ---------- Team ---------- */
.team-group { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px 36px; padding-block: 28px; border-top: 1px solid var(--line-cool); }
@media (min-width: 760px) { .team-group { grid-template-columns: 190px minmax(0, 1fr); } }
@media (min-width: 1000px) { .team-group { grid-template-columns: 220px minmax(0, 1fr); } }
.team-group > .group-label { font-family: var(--font-display); font-weight: 400; font-size: 1.65rem; line-height: 1.15; letter-spacing: -0.035em; }
.people { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.people.lead { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 28px 24px; }
.person { display: flex; gap: 14px; align-items: center; min-width: 0; }
.person .portrait { width: 56px; height: 56px; flex-shrink: 0; }
.lead .person { flex-direction: column; align-items: flex-start; gap: 14px; }
.lead .person .portrait { width: 100%; height: auto; aspect-ratio: 1 / 1; max-width: 210px; }
.portrait { object-fit: cover; background: var(--beige); }
.portrait-initials {
  display: grid; place-items: center; background: var(--beige); border-bottom: 3px solid var(--brown);
  font-family: var(--font-display); color: var(--brown); font-size: 1.3rem; letter-spacing: 0.02em;
}
.lead .portrait-initials { font-size: 3rem; }
.person-text { display: grid; gap: 3px; min-width: 0; }
.person-name { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.025em; }
.lead .person-name { font-size: 1.55rem; line-height: 1.12; }
.lead .person-title { line-height: 1.45; }
.person-name a { text-decoration: none; }
.person-name a:hover { text-decoration: underline; }
.degrees { font-size: 0.8em; color: var(--muted); }
.person-title { font-size: 0.82rem; font-weight: 700; }
.person-dept, .person-aff { font-size: 0.82rem; color: var(--muted); line-height: 1.45; }
.person-short { font-size: 0.82rem; color: var(--muted); }
.alumni { list-style: none; display: grid; }
.alumni li { display: grid; gap: 2px 24px; padding-block: 10px; border-bottom: 1px solid var(--line-cool); font-size: 0.9rem; }
@media (min-width: 700px) { .alumni li { grid-template-columns: 220px 1fr 1fr; } }
.alumni .a-name { font-weight: 700; }
.alumni .a-role, .alumni .a-now { color: var(--muted); }

/* ---------- Join block ---------- */
.join { background: var(--brown); color: var(--white); position: relative; overflow: hidden; }
.join::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgb(255 255 255 / 0.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgb(255 255 255 / 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
}
.join::after {
  content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: var(--gold);
  right: max(-60px, calc((100% - var(--wrap)) / 2 - 90px)); top: 36px;
}
.join-inner { position: relative; z-index: 2; display: grid; gap: 36px; padding-block: clamp(52px, 2.5rem + 3vw, 84px); align-items: center; }
@media (min-width: 900px) { .join-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 8%; } }
.join .eyebrow { color: var(--gold); margin-bottom: 18px; }
.join h2 { color: var(--white); }
.join-lead { color: var(--beige); font-size: 1.05rem; line-height: 1.7; max-width: 46ch; margin-top: 18px; }
.work-card {
  background: var(--white); color: var(--ink); padding: 30px 32px 30px;
  border-top: 4px solid var(--red); box-shadow: 12px 12px 0 rgb(0 0 0 / 0.27);
}
.paths { list-style: none; border-top: 1px solid var(--line); margin-bottom: 24px; }
.paths li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding-block: 13px; border-bottom: 1px solid var(--line); }
.paths strong { font-size: 0.9rem; }
.paths span { grid-column: 1; font-size: 0.86rem; color: var(--muted); }
.paths .arr { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--red); }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 0.9rem; }
.contact-row .mono { font-size: 0.85rem; word-break: break-all; }
@media (max-width: 600px) {
  .join::after { width: 220px; height: 220px; right: -80px; top: 24px; }
  .work-card { padding: 24px 22px; box-shadow: 8px 8px 0 rgb(0 0 0 / 0.27); }
}

/* ---------- Media ---------- */
.media-layout { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .media-layout { grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.65fr); gap: 56px; } }
.media-list { list-style: none; border-top: 2px solid var(--black); }
.media-item { padding-block: 20px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.media-kicker { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 0.75rem; color: var(--muted); }
.media-kicker .kind { font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); font-size: 0.68rem; }
.media-item h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem); line-height: 1.22; letter-spacing: -0.03em; }
.media-item h3 a { text-decoration: none; }
.media-item h3 a:hover { text-decoration: underline; }
.inquiries { background: var(--beige); border-top: 3px solid var(--brown); padding: 28px; display: grid; gap: 14px; }
.inquiries h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; letter-spacing: -0.035em; line-height: 1.1; }
.inquiries p { color: var(--muted-on-beige); font-size: 0.92rem; line-height: 1.7; }

/* ---------- Inner pages ---------- */
.page-head { padding-block: clamp(40px, 2rem + 3vw, 72px) clamp(28px, 1.5rem + 1.5vw, 44px); display: grid; gap: 18px; }
.page-head h1 { font-family: var(--font-display); font-weight: 400; font-size: var(--h1-page); line-height: 1; letter-spacing: -0.05em; }
.page-head .lede { font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.18rem); line-height: 1.7; color: var(--muted); max-width: 62ch; }
.crumbs { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.crumbs a { text-decoration: none; color: var(--red); }
.page-body { padding-bottom: var(--section); }
.sub-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 18px; }
.prose { display: grid; gap: 1em; max-width: 66ch; font-size: 1.02rem; line-height: 1.7; }

/* Research page */
.area-block { display: grid; gap: 28px 56px; padding-block: 44px; border-top: 1px solid var(--line); }
.area-block:first-child { border-top: 2px solid var(--black); }
@media (min-width: 960px) { .area-block { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); } }
.area-intro { display: grid; gap: 14px; align-content: start; justify-items: start; }
.area-intro svg { width: 56px; height: 56px; color: var(--brown); }
.area-intro h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.75rem); line-height: 1.05; letter-spacing: -0.045em; }
.area-intro p { color: var(--muted); max-width: 46ch; }
.area-data { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 0.84rem; font-weight: 700; }
.area-data a { color: var(--cyan); text-decoration: none; }
.area-data a:hover { text-decoration: underline; }
.area-block .pub-list { border-top-width: 1px; border-top-color: var(--line); }
@media (min-width: 900px) { .area-block .pub { grid-template-columns: 130px minmax(0, 1fr) 22px; } .area-block .pub-topics { display: none; } }

/* Publications page */
.toolbar { display: grid; gap: 14px; margin-bottom: 28px; }
.toolbar-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.field {
  font: inherit; font-size: 0.9rem; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); padding: 10px 12px; min-width: 0;
}
.field:focus-visible { outline-offset: 0; }
.field.search { flex: 1 1 260px; }
select.field { flex: 0 1 auto; cursor: pointer; }
.result-line { display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; font-size: 0.84rem; color: var(--muted); }
.year-group > h3 {
  font-family: var(--font-display); font-weight: 400; font-size: 2.2rem; letter-spacing: -0.04em;
  color: var(--brown); padding: 34px 0 10px;
}
.year-group:first-of-type > h3 { padding-top: 6px; }
.empty { padding-block: 36px; color: var(--muted); }

/* People profile */
.profile { display: grid; gap: 40px 56px; }
@media (min-width: 860px) { .profile { grid-template-columns: 260px minmax(0, 1fr); align-items: start; } }
.profile-side { display: grid; gap: 18px; align-content: start; }
.profile-side .portrait { width: 100%; max-width: 260px; aspect-ratio: 1 / 1; height: auto; }
.profile-side .portrait-initials { font-size: 3.4rem; }
.contact-list { list-style: none; display: grid; gap: 8px; font-size: 0.9rem; }
.contact-list .mono { font-size: 0.82rem; word-break: break-all; }
.profile-main { display: grid; gap: 44px; min-width: 0; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 0.8rem; font-weight: 700; border: 1px solid var(--line); padding: 4px 12px; }

/* Data pages */
.policy-grid { display: grid; gap: 32px 48px; }
@media (min-width: 760px) { .policy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.policy-grid h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.55rem; letter-spacing: -0.03em; margin: 14px 0 8px; }
.policy-grid p { color: var(--muted-on-beige); font-size: 0.95rem; max-width: 56ch; }
.dataset-page { display: grid; gap: 48px 56px; }
@media (min-width: 980px) { .dataset-page { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .dataset-page.single { grid-template-columns: minmax(0, 1fr); } }
.dataset-main { display: grid; gap: 48px; min-width: 0; }
.dataset-side { display: grid; gap: 22px; align-content: start; min-width: 0; }
.ds-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.notice { background: var(--beige); border-top: 3px solid var(--brown); padding: 16px 18px; max-width: 66ch; font-size: 0.95rem; }

/* Facts panel, laid out like an over-the-counter Drug Facts label */
.facts { border: 2px solid var(--black); padding: 8px 14px 12px; background: var(--white); }
.facts-title { font-family: var(--font-body); font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; padding-bottom: 6px; border-bottom: 7px solid var(--black); }
.facts dl { display: grid; }
.facts dl > div { display: grid; gap: 1px; padding-block: 7px; border-bottom: 1px solid var(--black); }
.facts dl > div.thick { border-bottom-width: 4px; }
.facts dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { font-weight: 800; font-size: 0.86rem; }
.facts dd { font-size: 0.88rem; line-height: 1.45; }
.facts .mono { font-size: 0.82rem; }
.facts a { color: var(--blue); }

.cite-box { background: var(--beige); border-top: 3px solid var(--brown); padding: 18px; display: grid; gap: 12px; }
.cite-text { font-size: 0.88rem; line-height: 1.55; }
.bibtex { font-family: var(--font-mono); font-size: 0.74rem; line-height: 1.5; background: var(--white); border: 1px solid var(--line); padding: 10px; overflow-x: auto; white-space: pre; margin: 0; }
.cite-actions { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.86rem; font-weight: 700; }
.table-wrap { overflow-x: auto; }
.files { width: 100%; border-collapse: collapse; font-size: 0.9rem; border-top: 2px solid var(--black); }
.files th { text-align: left; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 800; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.files td { padding: 11px 16px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.files td.mono { white-space: nowrap; font-size: 0.82rem; }
.versions { list-style: none; border-top: 2px solid var(--black); }
.versions li { display: grid; grid-template-columns: 4.5rem 7.5rem minmax(0, 1fr); gap: 12px; padding-block: 11px; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.versions li > :first-child { font-weight: 700; }
@media (max-width: 520px) { .versions li { grid-template-columns: 4rem minmax(0, 1fr); } .versions li > :last-child { grid-column: 1 / -1; } }

/* About page */
.org-groups { display: grid; gap: 32px 48px; }
@media (min-width: 760px) { .org-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.org-list { list-style: none; border-top: 2px solid var(--black); margin-top: 12px; }
.org-list li { display: grid; gap: 2px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.org-list .o-name { font-weight: 700; }
.org-list .o-note { color: var(--muted); font-size: 0.9rem; }
.org-logo { max-height: 44px; width: auto; margin-bottom: 6px; }
.two-col { display: grid; gap: 40px 56px; }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--white); border-top: 4px solid var(--red); padding-block: 52px 28px; }
.footer-main { display: grid; gap: 32px 48px; }
@media (min-width: 900px) { .footer-main { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 32px 72px; } .footer-nav { justify-self: end; } }
.footer-name { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.025em; white-space: nowrap; }
.footer-tag { color: #bfc3c6; font-size: 0.82rem; margin-top: 12px; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 36px; font-size: 0.82rem; }
@media (min-width: 600px) { .footer-nav { grid-template-columns: repeat(4, minmax(0, auto)); } }
.footer-nav > div { display: grid; gap: 6px; align-content: start; }
.footer-nav a { color: #bfc3c6; }
.footer-nav a.fn-top { color: var(--white); font-weight: 800; font-size: 0.86rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover, .site-footer .link-btn:hover { color: var(--gold); }
.ft-label { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.19em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.footer-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 36px; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / 0.2); font-size: 0.86rem; }
.footer-contact .ft-label { margin: 0; }
.footer-contact .mono { font-size: 0.8rem; color: var(--white); text-decoration: none; word-break: break-all; }
.site-footer .link-btn { color: #bfc3c6; text-decoration-color: var(--gold); font-size: 0.8rem; }
.footline { margin-top: 14px; padding-top: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: #bfc3c6; font-size: 0.74rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  background: var(--black); color: var(--white); border-top: 3px solid var(--gold);
  padding: 10px 16px; font-size: 0.88rem; z-index: 40;
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .links .nav-top::after { transition: transform 0.2s; }
  .dropdown { transition: opacity 0.18s, transform 0.18s, visibility 0.18s; }
  .button { transition: background-color 0.2s, transform 0.2s; }
  .button:hover { transform: translateY(-2px); }
  .area { transition: background-color 0.2s, transform 0.2s; }
  a.area:hover { transform: translateY(-3px); }
  .dataset-card { transition: transform 0.2s, box-shadow 0.2s; }
  .dataset-card:hover { transform: translateY(-3px); box-shadow: 0 10px 0 -4px rgb(78 54 41 / 0.12); }
  .pub { transition: background-color 0.2s, padding 0.2s; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Topper ---------- */
/* The photo's gray backdrop was lightened to the palette's blue-gray, and its left edge fades into the band. */
.topper { position: relative; overflow: hidden; background: var(--bluegray); border-bottom: 1px solid var(--line-cool); }
.topper-photo {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(64%, 1000px);
  background: url("hero.jpg") right center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 18%);
  mask-image: linear-gradient(to right, transparent, #000 18%);
}
.topper-inner {
  position: relative; z-index: 1; min-height: clamp(340px, 36vw, 520px);
  display: flex; flex-direction: column; justify-content: center; padding-block: 56px;
}
.topper .rule { margin-bottom: 26px; }
.topper h1 {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(2.8rem, 0.4rem + 6vw, 6.8rem);
  line-height: 0.98; letter-spacing: -0.045em; color: var(--ink);
}
.topper h1 em { font-style: normal; color: var(--red); }
@media (max-width: 759px) {
  .topper { display: flex; flex-direction: column; }
  .topper-inner { min-height: 0; width: 100%; padding-block: 44px 28px; }
  .topper-photo { position: relative; order: 2; width: 100%; height: clamp(200px, 56vw, 300px); }
}

/* ---------- Our Mission ---------- */
.mission-text { max-width: 680px; font-size: clamp(1.08rem, 0.98rem + 0.45vw, 1.3rem); line-height: 1.6; color: var(--ink); }
.mission-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
@media (min-width: 1000px) { .mission-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mission-card { background: var(--white); border-top: 3px solid var(--brown); padding: 24px 22px 18px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.mission-card h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 1.4rem + 0.8vw, 2.1rem); line-height: 1.05; letter-spacing: -0.04em; }
.mission-card h3 a { text-decoration: none; }
.mission-links { list-style: none; display: grid; }
.text-link {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding-block: 9px; border-top: 1px solid var(--line); font-size: 0.8rem; font-weight: 800; text-decoration: none;
}
.text-link .arr { color: var(--red); flex-shrink: 0; }

/* ---------- Sub-sections ---------- */
.subhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px 32px; margin-bottom: 18px; }
.subhead h2, .subhead h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.4rem); line-height: 1.05; letter-spacing: -0.04em; }
.subhead-gap { margin-top: clamp(44px, 2rem + 2vw, 64px); }
.list-foot { margin-top: 20px; }
.subnav { display: flex; gap: 8px 28px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; font-size: 0.9rem; font-weight: 800; }
.subnav a { text-decoration: none; }
.subnav a::after { content: " ↓"; color: var(--red); }
.toolbar { margin-bottom: 22px; }
.toolbar .chips { margin-right: 6px; }
.band-beige .pub-byline, .band-beige .pub-topics, .band-beige .pub-meta time { color: var(--muted-on-beige); }
.band-beige .pub-list .pub:hover { background: rgb(255 255 255 / 0.55); }

/* ---------- Courses and funding ---------- */
.course-list { display: grid; gap: var(--gap); border-top: 2px solid var(--black); padding-top: 22px; }
@media (min-width: 820px) { .course-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.course { display: grid; gap: 6px; }
.course-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.8rem; color: var(--muted); }
.course h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.65rem); line-height: 1.2; letter-spacing: -0.03em; }
.course h3 a { text-decoration: none; }
.course-inst { font-size: 0.86rem; font-weight: 700; }
.course-desc { font-size: 0.92rem; line-height: 1.7; color: var(--muted); max-width: 62ch; margin-top: 4px; }
.course { align-content: start; }
#teaching .empty, #funding .empty { border-top: 2px solid var(--black); padding-top: 18px; padding-bottom: 0; }
.funding-list { max-width: 760px; }

/* ---------- Issue cards (home) ---------- */
.issue-grid { display: grid; gap: 28px var(--gap); }
@media (min-width: 760px) { .issue-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.issue-card { display: flex; flex-direction: column; min-width: 0; text-decoration: none; color: var(--ink); }
.issue-card:hover { color: var(--ink); }
.issue-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; background: var(--beige); }
.issue-media img { width: 100%; height: 100%; object-fit: cover; }
.issue-media::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 5px; background: var(--red); }
.issue-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding-top: 20px; }
.issue-body h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--h3); line-height: 1.12; letter-spacing: -0.035em; }
.issue-body p { color: var(--muted); font-size: 0.95rem; }
.issue-foot {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: baseline; font-size: 0.8rem; font-weight: 800;
}
.issue-foot .arr { color: var(--red); font-size: 1.05rem; }
.issue-card:hover h3 { color: var(--red); }
.issue-media-wide { aspect-ratio: 16 / 10; width: 100%; margin-bottom: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .issue-media img { transition: transform 0.5s ease; }
  .issue-card:hover .issue-media img { transform: scale(1.04); }
  .issue-card h3 { transition: color 0.2s; }
}
.disclosure { border-top: 2px solid var(--black); padding-top: 20px; max-width: 74ch; font-size: 0.98rem; }
.disclosure p:last-child { color: var(--muted); font-size: 0.92rem; }

.pub-note { font-size: 0.8rem; font-weight: 700; color: var(--brown); }
.pub-note::before { content: "★ "; color: var(--gold); }

/* Icon-only copy button for email addresses */
.icon-btn {
  display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0;
  background: none; border: 1px solid transparent; border-radius: 4px; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { color: var(--red); border-color: var(--line); }
.site-footer .icon-btn { color: #bfc3c6; }
.site-footer .icon-btn:hover { color: var(--gold); border-color: rgb(255 255 255 / 0.25); }
.pub-source { font-size: 0.86rem; color: var(--muted); }
.pub-source .venue { font-style: italic; }
.pub-source .dot { padding-inline: 2px; }
.band-beige .pub-source { color: var(--muted-on-beige); }

/* ---------- Sign-up strip ---------- */
.subscribe { background: var(--beige); border-top: 1px solid var(--line); }
.subscribe-inner { display: grid; gap: 16px 48px; align-items: center; padding-block: 34px; }
@media (min-width: 860px) { .subscribe-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 540px); } }
.sub-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; }
.sub-text h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 1.3rem + 1vw, 2.2rem); letter-spacing: -0.04em; line-height: 1; position: relative; padding-left: 18px; }
.sub-text h2::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; background: var(--red); transform: translateY(-50%); }
.sub-text p { color: var(--muted-on-beige); font-size: 0.98rem; }
.sub-form { display: flex; gap: 8px; }
.sub-form .field { flex: 1 1 auto; min-width: 0; background: var(--white); }
.sub-form .button { flex: none; }
.sub-msg { margin-top: 10px; font-size: 0.88rem; color: var(--brown); font-weight: 600; }
@media (max-width: 480px) { .sub-form { flex-direction: column; } .sub-form .button { justify-content: center; } }

/* ---------- Header Subscribe button ---------- */
.sub-cta {
  flex: none; display: inline-flex; align-items: center; background: transparent; color: var(--red);
  font-size: 0.86rem; font-weight: 800; letter-spacing: 0.02em; text-decoration: none;
  padding: 10px 17px; border: 1.5px solid var(--red);
}
.sub-cta:hover { background: var(--red); color: var(--white); }
@media (min-width: 861px) { .links { margin-left: auto; } }
@media (max-width: 860px) {
  .nav { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand cta" "links links"; align-items: center; }
  .brand { grid-area: brand; }
  .links { grid-area: links; }
  .sub-cta { grid-area: cta; padding: 9px 14px; font-size: 0.8rem; }
}

.nw { white-space: nowrap; }
.tseg { display: inline-block; max-width: 100%; text-decoration: inherit; }

.swipe-hint { display: none; margin-top: 8px; font-size: 0.78rem; color: var(--muted-on-beige); }

/* ---------- Phone layout refinements ---------- */
@media (max-width: 759px) {
  /* Topper: bigger headline, photo as a full-width band that fades in from the top */
  .topper-inner { padding-block: 40px 8px; }
  .topper h1 { font-size: clamp(2.9rem, 12.5vw, 3.9rem); }
  .topper-photo {
    height: clamp(230px, 70vw, 340px);
    background-position: 88% 40%;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%);
    mask-image: linear-gradient(to bottom, transparent, #000 22%);
  }

  /* Our Mission: swipeable row of cards instead of four stacked boxes */
  .mission-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
    padding-inline: max(16px, env(safe-area-inset-left, 0px));
    scroll-padding-inline: max(16px, env(safe-area-inset-left, 0px));
    padding-bottom: 10px; scrollbar-width: none;
  }
  .mission-grid::-webkit-scrollbar { display: none; }
  .mission-card { scroll-snap-align: start; }
  .mission-card:nth-child(1) { border-top-color: var(--brown); }
  .mission-card:nth-child(2) { border-top-color: var(--red); }
  .mission-card:nth-child(3) { border-top-color: var(--gold); }
  .mission-card:nth-child(4) { border-top-color: var(--cyan); }
  .swipe-hint { display: block; }

  /* Issues: image cards keep their color, with the title set over the photo */
  .issue-grid { gap: 22px; }
  .issue-media { aspect-ratio: 5 / 4; }
  .issue-body { padding-top: 16px; }

  /* Team: leadership and collaborators two across, like the desktop grid */
  .people.lead { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .lead .person .portrait { max-width: none; }
  .lead .person-name { font-size: 1.3rem; }
  .lead .person-title, .lead .person-dept, .lead .person-aff { font-size: 0.78rem; }
  .people:not(.lead) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .people:not(.lead) .person { gap: 10px; }
  .people:not(.lead) .person .portrait { width: 46px; height: 46px; font-size: 1.05rem; }
  .people:not(.lead) .person-name { font-size: 1.08rem; }

  /* Section rhythm: tighter vertical spacing so color bands follow each other more closely */
  .section { padding-block: 52px; }
  .section-head { margin-bottom: 24px; }
}

/* ---------- The two of us: left-aligned, names beside portraits ---------- */
.team-group.team-pi { grid-template-columns: minmax(0, 1fr); }
.pi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; max-width: 1000px; }
.pi-grid .person { flex-direction: row; align-items: center; gap: 24px; }
.pi-grid .person .portrait { width: clamp(220px, 19vw, 260px); height: auto; aspect-ratio: 1 / 1; flex: none; }
@media (max-width: 819px) { .pi-grid { grid-template-columns: minmax(0, 1fr); } }
.pi-grid .person-name { font-size: clamp(1.6rem, 1.3rem + 0.9vw, 2.05rem); line-height: 1.08; margin-bottom: 6px; }
.pi-grid .person-title { font-size: 0.9rem; }
.pi-grid .person-dept, .pi-grid .person-aff { font-size: 0.86rem; }
@media (max-width: 759px) {
  .pi-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .pi-grid .person { gap: 16px; }
  .pi-grid .person .portrait { width: calc(50% - 7px); }
  .pi-grid .person-name { font-size: 1.45rem; }
  .pi-grid .person-title { font-size: 0.82rem; }
  .pi-grid .person-dept, .pi-grid .person-aff { font-size: 0.78rem; }
}

/* ---------- Setting the two of us apart ---------- */
.team-group.team-pi { border-top: 0; padding-top: 4px; padding-bottom: 36px; }
.pi-panel {
  max-width: none; background: var(--white); border-top: 4px solid var(--red);
  padding: clamp(20px, 1rem + 1vw, 32px); gap: 24px clamp(28px, 3.5vw, 56px);
  box-shadow: 0 1px 0 var(--line-cool);
}
.pi-grid .person .portrait { width: clamp(140px, 14vw, 200px); }
.pi-grid .person-name { font-size: clamp(1.55rem, 1.3rem + 0.6vw, 1.95rem); line-height: 1.06; margin-bottom: 8px; }
.pi-grid .person-title { font-size: 0.88rem; color: var(--ink); }
.pi-grid .person-dept, .pi-grid .person-aff { font-size: 0.84rem; }
.pi-grid .person-text { gap: 3px; }
.pi-grid .person-text::after { content: ""; width: 42px; height: 3px; background: var(--gold); margin-top: 12px; }

/* Collaborators: smaller photos, one row */
.group-collaborators .people.lead { grid-template-columns: repeat(auto-fill, minmax(min(100%, 138px), 1fr)); gap: 22px 18px; }
.group-collaborators .lead .person { gap: 10px; }
.group-collaborators .lead .person .portrait { max-width: 150px; }
.group-collaborators .lead .person-name { font-size: 1.12rem; }
.group-collaborators .lead .person-title, .group-collaborators .lead .person-dept, .group-collaborators .lead .person-aff { font-size: 0.74rem; line-height: 1.4; }
.group-label { font-size: 1.35rem !important; }

@media (max-width: 759px) {
  .pi-panel { padding: 18px 16px; }
  .pi-grid .person .portrait { width: 40%; }
  .pi-grid .person-name { font-size: 1.4rem; }
  .pi-grid .person-title { font-size: 0.82rem; }
  .pi-grid .person-dept, .pi-grid .person-aff { font-size: 0.78rem; }
  .group-collaborators .people.lead { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; }
  .group-collaborators .lead .person-name { font-size: 1rem; }
  .group-collaborators .lead .person-title, .group-collaborators .lead .person-dept, .group-collaborators .lead .person-aff { font-size: 0.68rem; }
}

/* Students: name on one line, school beneath */
.team-group.oneline .people { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.team-group.oneline .person-name { white-space: nowrap; }
@media (max-width: 759px) {
  .team-group.oneline .people:not(.lead) { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
