/* RPDGroup — a photo-led academic website inspired by the Baker Lab layout. */
:root {
  --paper: #fafafa;
  --white: #fff;
  --ink: #30383e;
  --muted: #60696f;
  --blue: #405486;
  --blue-pale: #f0f2f8;
  --coral: #885b64;
  --line: #e0e3e7;
  --navy: #222741;
  --gradient: linear-gradient(115deg, #3b507f 0%, #45467d 55%, #603778 100%);
  --max: 1180px;
  --gutter: clamp(22px, 4vw, 56px);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.7 Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #8fa8ee; outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }
button:disabled { cursor: default; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
figure, p { margin: 0; }
p + p { margin-top: 20px; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 600; letter-spacing: -.015em; }
h1, h2 { text-wrap: balance; }
h2 { font-size: clamp(28px, 3vw, 36px); }
h3 { font-size: 24px; }
em { font-family: inherit; font-weight: inherit; font-style: normal; }
.wrap { width: min(100%, calc(var(--max) + var(--gutter) * 2)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 6vw, 78px); }
.eyebrow, .label, .project-type, .tag { font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: .065em; text-transform: uppercase; }
.eyebrow { color: var(--blue); margin-bottom: 17px; }
.tag { display: block; color: var(--blue); margin-bottom: 18px; }
.caption, figcaption { color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; padding-block: 5px; text-decoration: none; border-bottom: 1px solid currentColor; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 11px 23px; min-height: 45px; text-decoration: none; font-size: 13px; font-weight: 600; background: #46515c; border: 1px solid #46515c; border-radius: 6px; color: white; }
.button:hover { color: #fff; background: #303a47; }
.skip { position: fixed; top: -100px; left: 16px; padding: 13px 22px; z-index: 100; background: white; color: var(--ink); }
.skip:focus { top: 14px; }
.site-header { position: relative; z-index: 30; background: var(--gradient); padding: 24px var(--gutter) 28px; }
.nav.wrap { width: 100%; max-width: 1392px; padding: 10px 28px 10px 14px; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; background: #20233de6; border-radius: 60px; }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; color: white; text-decoration: none; }
.brand:hover { color: white; }
.brand .brand-logo { width: 54px; height: 54px; object-fit: contain; border-radius: 5px; }
.brand-name { font-size: 25px; line-height: 1.12; font-weight: 700; letter-spacing: -.015em; }
.brand-name small { display: block; font-size: 9px; letter-spacing: .04em; font-weight: 400; margin-top: 5px; color: #d8dced; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); }
.nav-links > a, .nav-info summary { position: relative; display: inline-flex; align-items: center; min-height: 40px; font-size: 15px; color: #e8eaf4; text-decoration: none; white-space: nowrap; }
.nav-links a:hover, .nav-info summary:hover { color: white; text-decoration: underline; text-underline-offset: 7px; }
.nav-links a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 7px; }
.nav-github { gap: 12px; padding: 0 15px; border: 1px solid #ffffff62; border-radius: 25px; }
.nav-info { position: relative; }
.nav-info summary { list-style: none; gap: 7px; }
.nav-info summary::-webkit-details-marker { display: none; }
.nav-info:has(a[aria-current="page"]:not([href="#home"])) summary { color: white; text-decoration: underline; text-underline-offset: 7px; }
.info-links { position: absolute; right: -20px; top: calc(100% + 12px); width: 165px; padding: 10px; background: #fff; color: var(--ink); border-radius: 8px; box-shadow: 0 12px 35px #16203d25; }
.info-links a { display: block; padding: 8px 12px; font-size: 14px; text-decoration: none; border-radius: 4px; }
.info-links a:hover, .info-links a[aria-current="page"] { color: var(--blue); background: #f0f2f8; text-decoration: none; }
.menu-toggle { display: none; align-items: center; gap: 10px; background: none; border: 1px solid #ffffff70; padding: 8px 13px; border-radius: 25px; color: white; font-size: 13px; }
.menu-toggle svg { width: 17px; height: 17px; }
.page[hidden], .project[hidden] { display: none !important; }
.photo-hero { padding-top: 5px; background: white; }
.photo-wall { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 5px; height: clamp(440px, 49vw, 780px); max-width: 1800px; margin-inline: auto; background: white; }
.wall-photo { position: relative; display: block; min-width: 0; min-height: 0; overflow: hidden; background: #e9ecee; color: white; }
.wall-photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--photo-focus, center); transition: filter .2s ease; }
.wall-photo:hover img { filter: brightness(.9); }
.wall-photo:focus-visible { outline-offset: -5px; z-index: 1; }
.wall-1 { grid-column: 1 / span 4; grid-row: 1; }
.wall-1 img { object-fit: contain; }
.wall-2 { grid-column: 5 / span 5; grid-row: 1; }
.wall-3 { grid-column: 10 / span 3; grid-row: 1; }
.wall-3 img { object-position: 55% 60%; }
.wall-4 { grid-column: 1 / span 5; grid-row: 2; }
.wall-4 img { object-position: 50% 40%; }
.wall-5 { grid-column: 6 / span 3; grid-row: 2; }
.wall-5 img { object-position: 50% 75%; }
.wall-6 { grid-column: 9 / span 4; grid-row: 2; }
.wall-6 img { object-position: 66% 65%; }
.photo-caption { position: absolute; bottom: 0; inset-inline: 0; padding: 30px 15px 12px; display: flex; justify-content: space-between; gap: 10px; background: linear-gradient(transparent, #111e30bc); color: white; font-size: 12px; opacity: 0; transition: opacity .2s ease; }
.wall-photo:hover .photo-caption, .wall-photo:focus-visible .photo-caption { opacity: 1; }
[data-photo-carousel] .photo-wall { position: relative; display: block; height: auto; min-height: 0; aspect-ratio: 16 / 7; max-width: 1600px; background: #17233a; }
[data-photo-carousel] .photo-slide { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 5px; }
[data-photo-carousel] .photo-slide[hidden], .photo-controls[hidden] { display: none; }
[data-photo-carousel] .wall-1 { grid-column: 1 / span 7; grid-row: 1 / span 2; }
[data-photo-carousel] .wall-2 { grid-column: 8 / span 5; grid-row: 1; }
[data-photo-carousel] .wall-3 { grid-column: 8 / span 5; grid-row: 2; }
[data-photo-carousel] .is-single .wall-1 { grid-column: 1 / -1; }
[data-photo-carousel] .is-pair .wall-2 { grid-row: 1 / span 2; }
[data-photo-carousel] .wall-photo { background: #17233a; }
[data-photo-carousel] .wall-photo img { object-position: var(--photo-focus, center); }
[data-photo-carousel] .wall-1 img { object-fit: contain; }
[data-photo-carousel] .photo-caption { opacity: 1; font-size: 12px; padding: 36px 18px 12px; align-items: end; }
[data-photo-carousel] .wall-1 .photo-caption { font-size: 15px; padding: 50px 24px 20px; }
.photo-slide.is-entering { animation: photo-set-in .45s ease both; }
@keyframes photo-set-in { from { opacity: .35; } to { opacity: 1; } }
.photo-controls { max-width: 1600px; margin-inline: auto; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 26px; background: white; border-bottom: 1px solid var(--line); }
.photo-set-name { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 600; }
.photo-set-count { font-size: 11px; font-weight: 400; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.photo-control-actions { display: flex; align-items: center; gap: 8px; }
.photo-controls button { color: var(--ink); border: 1px solid transparent; background: transparent; min-height: 42px; border-radius: 24px; }
.photo-controls button:hover { color: var(--blue); background: var(--blue-pale); }
.photo-play { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; font-size: 12px; }
[data-photo-play-icon] { width: 14px; text-align: center; }
.photo-arrow { width: 42px; font-size: 20px; padding: 0; }
.photo-select { font: inherit; font-size: 12px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 20px; min-height: 42px; width: 92px; padding: 7px 10px; cursor: pointer; font-variant-numeric: tabular-nums; }
.photo-select:focus-visible { outline: 3px solid #8fa8ee; outline-offset: 3px; }
.photo-all { font-size: 12px; text-decoration: none; white-space: nowrap; }
.photo-all span { margin-left: 8px; }
.photo-announcement { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mission-band { background: var(--gradient); color: white; text-align: center; margin-top: 28px; padding: 66px var(--gutter) 70px; }
.mission-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: #e1e4f1; margin-bottom: 19px; }
.mission-band h1 { font-size: clamp(36px, 4.2vw, 54px); font-weight: 500; line-height: 1.18; letter-spacing: -.025em; }
.mission-band > p:last-child { font-size: 17px; margin-top: 23px; color: #e7e8f2; }
.home-overview { padding-block: 66px 76px; text-align: center; }
.mission-copy { max-width: 810px; margin-inline: auto; text-align: left; font-size: 18px; line-height: 1.8; }
.mission-copy p + p { font-size: 16px; margin-top: 20px; }
.mission-copy a { color: var(--blue); }
.home-overview h2 { margin-top: 70px; }
.research-topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 31px; }
.research-topics a { padding: 10px 19px; background: #555f68; color: white; border-radius: 6px; text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .035em; }
.research-topics a:hover { background: #3f4c5b; }
.home-research { padding-block: 14px 77px; }
.centered-heading { text-align: center; margin-bottom: 43px; }
.centered-heading p { color: var(--muted); margin-top: 13px; font-size: 16px; }
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
.home-projects { column-gap: 54px; row-gap: 50px; }
.project { min-width: 0; }
.project-figure { height: 226px; padding: 21px 19px; display: flex; align-items: center; background: white; }
.architecture-link { display: block; width: 100%; color: var(--muted); text-decoration: none; }
.architecture-link img { width: 100%; height: auto; max-height: 172px; object-fit: contain; }
.figure-action { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 15px; margin-top: 12px; font-size: 11px; color: var(--muted); }
.figure-action span { color: var(--blue); }
.project-body { padding-top: 23px; }
.project-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 11px; }
.project-type, .project-index { color: var(--muted); font-size: 11px; }
.project h3 { font-size: 27px; line-height: 1.25; margin-bottom: 13px; }
.project h3 a { text-decoration: none; }
.project h3 a:hover { text-decoration: underline; }
.project p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.project-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 19px; }
.project-links a { font-size: 13px; color: var(--blue); }
.dataset-cover { height: 226px; padding: 26px 28px; display: flex; flex-direction: column; justify-content: center; background: #edf0f7; }
.dataset-cover .label { color: #68718a; font-size: 11px; }
.dataset-cover strong { font-size: 40px; line-height: 1.1; font-weight: 600; color: #394467; margin-top: 11px; letter-spacing: -.035em; }
.dataset-cover p { font-size: 14px; margin-top: 10px; color: #59647c; }
.dataset-topics { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 19px; }
.dataset-topics span { color: #59647c; font-size: 12px; }
.section-more { text-align: center; margin-top: 49px; }
.home-news { padding-block: 8px 85px; }
.home-news > h2 { text-align: center; margin-bottom: 39px; }
.news-summary { display: grid; grid-template-columns: 160px 1fr; gap: 37px; max-width: 870px; margin-inline: auto; padding-block: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.news-summary time { color: var(--muted); font-size: 13px; padding-top: 5px; }
.news-summary h3 { font-size: 25px; margin-bottom: 13px; }
.news-summary h3 a { text-decoration: none; }
.news-summary p { color: var(--muted); font-size: 15px; }
.news-summary .text-link { margin-top: 19px; font-size: 13px; }
.page-banner { text-align: center; padding-block: 62px 47px; border-bottom: 1px solid var(--line); }
.page-banner .eyebrow { margin-bottom: 14px; }
.page-banner h1 { font-size: clamp(38px, 4.5vw, 52px); }
.page-banner p:last-child { color: var(--muted); font-size: 16px; max-width: 680px; margin: 20px auto 0; }
.reading { max-width: 940px; margin: 0 auto; }
.research-detail { display: grid; grid-template-columns: 55px 1fr; gap: 28px; padding-block: 47px; border-bottom: 1px solid var(--line); scroll-margin-top: 8px; }
.research-detail:first-child { padding-top: 0; }
.research-detail:last-child { border: 0; padding-bottom: 0; }
.detail-number { font-size: 14px; color: var(--muted); padding-top: 7px; }
.research-detail h2 { font-size: 30px; margin-bottom: 23px; }
.research-detail p, .research-detail ul { color: var(--muted); }
.research-detail ul { padding-left: 20px; }
.research-detail li + li { margin-top: 10px; }
.model-figure { margin-top: 29px; padding: 25px; background: white; }
.model-figure img { width: 100%; max-height: none; }
.model-figure figcaption { font-size: 12px; margin-top: 17px; }
.people-layout { display: grid; grid-template-columns: 1.3fr .8fr; gap: 60px; align-items: start; }
.people-layout figure { max-width: 670px; }
.people-layout figure img, .about-layout img { width: 100%; height: auto; }
.people-note h2 { font-size: 30px; margin-bottom: 23px; }
.people-note p { color: var(--muted); margin-bottom: 26px; }
.citation { display: grid; grid-template-columns: 75px 1fr; gap: 35px; padding-block: 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.citation-year { color: var(--muted); font-size: 15px; }
.citation h2 { font-size: 27px; line-height: 1.4; margin-bottom: 19px; }
.citation p { font-size: 15px; color: var(--muted); }
.notice { margin-top: 33px; padding-top: 23px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.news-item { display: grid; grid-template-columns: 160px 1fr; gap: 40px; padding-block: 30px; border-block: 1px solid var(--line); }
.news-date { display: block; color: var(--muted); font-size: 13px; }
.news-item h2 { font-size: 30px; margin-bottom: 22px; }
.news-item p { color: var(--muted); }
.about-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 65px; align-items: start; }
.about-copy h2 { font-size: 30px; margin-bottom: 24px; }
.about-copy p { color: var(--muted); }
.about-copy > a { display: inline-block; margin-top: 25px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 65px; }
.contact-box h2 { font-size: 29px; margin-bottom: 22px; }
.contact-box p { color: var(--muted); }
.contact-box > a { display: inline-block; margin-top: 22px; }
.resource-controls { display: flex; flex-direction: column; gap: 22px; margin-bottom: 19px; }
#resources > .section { padding-top: 42px; }
.search-label { font-size: 14px; font-weight: 600; display: block; margin-bottom: 10px; }
.search-field { display: flex; align-items: center; gap: 14px; background: white; border: 1px solid #bdc4d0; border-radius: 7px; padding: 0 18px; max-width: 760px; }
.search-field svg { width: 18px; height: 18px; color: var(--muted); flex: 0 0 auto; }
.search-field input { width: 100%; min-width: 0; border: 0; background: transparent; padding: 13px 0; font-size: 15px; color: var(--ink); }
.search-field:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.search-field input:focus-visible { outline: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 9px; }
.filter { padding: 8px 17px; border: 1px solid #c7ccd5; background: transparent; border-radius: 6px; color: var(--muted); font-size: 13px; }
.filter[aria-pressed="true"] { color: white; background: #46515c; border-color: #46515c; }
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 25px; min-height: 30px; color: var(--muted); font-size: 13px; }
.reset-filters { background: none; border: 0; color: var(--blue); text-decoration: underline; text-underline-offset: 4px; padding: 5px 0; font-size: 13px; }
.resource-card { padding: 25px 27px; background: white; border: 1px solid var(--line); }
.resource-card .project-body { padding-top: 0; }
.resource-card .project-topline { margin-bottom: 17px; }
.resource-card h2 { font-size: 29px; margin-bottom: 17px; }
.empty-state { padding: 45px 20px; text-align: center; border: 1px dashed #bdc4d0; border-radius: 6px; }
.empty-state h2 { font-size: 26px; margin-bottom: 12px; }
.empty-state p { color: var(--muted); font-size: 15px; }
.resource-controls[hidden], .result-bar[hidden], .empty-state[hidden] { display: none; }
.site-footer { background: var(--gradient); color: #e5e8f3; padding-block: 44px 25px; }
.footer-top { display: grid; grid-template-columns: 1fr auto; gap: 45px; margin-bottom: 35px; }
.footer-brand { font-size: 23px; color: white; font-weight: 600; text-decoration: none; }
.footer-top p { font-size: 14px; margin-top: 9px; color: #d9dfee; }
.footer-nav { display: grid; grid-template-columns: repeat(3, auto); gap: 8px 29px; }
.footer-nav a { font-size: 13px; text-decoration: none; }
.site-footer a:hover { color: white; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid #ffffff32; padding-top: 22px; font-size: 12px; color: #d9dfee; }
.footer-bottom a { color: inherit; }
.media-viewer { border: 0; border-radius: 9px; padding: 20px 24px; width: min(1440px, 96vw); max-width: 96vw; max-height: 94svh; background: white; color: var(--ink); box-shadow: 0 24px 100px #06172350; overflow: auto; }
.media-viewer::backdrop { background: #1b203be8; }
.media-viewer-header { display: flex; justify-content: space-between; align-items: center; gap: 25px; margin-bottom: 20px; }
.media-viewer h2 { font-size: 17px; line-height: 1.4; }
.media-viewer-close { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border: 1px solid #c8cdd5; border-radius: 50%; background: white; color: var(--ink); font-size: 25px; }
.media-viewer-image { width: 100%; height: auto; max-height: 74svh; object-fit: contain; }
.media-viewer-source { display: inline-block; font-size: 13px; margin-top: 20px; color: var(--blue); }
.media-viewer.has-gallery .media-viewer-image { max-height: 64svh; }
.media-viewer-navigation { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 17px; }
.media-viewer-navigation button { min-height: 44px; padding: 8px 14px; border: 1px solid #c8cdd5; border-radius: 5px; background: white; color: var(--ink); font-size: 13px; }
.media-counter { color: var(--muted); font-size: 12px; }
.media-viewer-navigation[hidden] { display: none; }
body.has-media-viewer { overflow: hidden; }
.icon-defs { display: none; }
/* Activities: a full photo journal with compact category filters. */
.home-activities { padding-block: 8px 75px; }
.home-activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 27px; }
.activity-photo { display: block; overflow: hidden; background: #edf0f4; border-radius: 3px; }
.activity-photo img { width: 100%; height: auto; transition: opacity .2s ease; }
.activity-photo:hover img { opacity: .9; }
.activity-preview .activity-photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.activity-tag { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .065em; margin-bottom: 7px; }
.activity-preview h3 { font-size: 20px; line-height: 1.35; }
.activities-banner { text-align: left; padding-block: 64px 43px; border-bottom: 0; }
.activities-banner h1 { font-size: 40px; }
.activities-banner p:last-child { margin: 18px 0 0; font-size: 18px; }
.activities-directory { padding-bottom: 78px; }
.activities-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 35px; }
.activity-filters { display: flex; flex-wrap: wrap; gap: 9px; }
.activity-filters button { min-height: 42px; padding: 9px 15px; border: 1px solid #cbd1db; border-radius: 5px; background: transparent; color: var(--muted); font-size: 13px; }
.activity-filters button[aria-pressed="true"] { background: #46515c; border-color: #46515c; color: white; }
#activity-count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.activity-gallery { columns: 3; column-gap: 25px; }
.activity-card { display: inline-block; vertical-align: top; width: 100%; break-inside: avoid; margin-bottom: 28px; }
.activity-card figcaption { margin-top: 12px; }
.activity-card h3 { font-size: 17px; line-height: 1.4; }
.activity-empty { padding: 45px 20px; text-align: center; color: var(--muted); }
.activity-card[hidden], .activity-filters[hidden], .activity-empty[hidden] { display: none !important; }
@media (max-width: 1020px) {
  .home-activity-grid { gap: 20px; }
  .activity-gallery { columns: 2; column-gap: 22px; }
  .activities-toolbar { align-items: start; }
  .activity-preview h3 { font-size: 18px; }
}
@media (max-width: 640px) {
  .home-activities { padding-block: 0 55px; }
  .home-activity-grid { grid-template-columns: 1fr; gap: 30px; }
  #activities .activities-banner { padding-block: 42px 30px; }
  #activities .activities-banner h1 { font-size: 34px; }
  #activities .activities-banner p:last-child { font-size: 16px; }
  .activities-toolbar { flex-direction: column; gap: 15px; margin-bottom: 24px; }
  .activity-filters { gap: 7px; }
  .activity-filters button { font-size: 12px; padding: 8px 11px; }
  .activity-gallery { columns: 1; }
  .activities-directory { padding-bottom: 45px; }
  .activity-card { margin-bottom: 27px; }
  .activity-card h3 { font-size: 18px; }
}
/* Member directory: round portraits, simple categories, and full profiles. */
.people-banner { text-align: left; border-bottom: 0; padding-block: 68px 48px; }
.people-banner h1 { font-size: 38px; }
.people-banner p:last-child { margin: 19px 0 0; max-width: 520px; font-size: 18px; }
.people-directory { padding-bottom: 76px; }
.people-controls { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.member-filters { display: flex; flex-wrap: wrap; gap: 26px; }
.member-filters button { border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); padding: 10px 0; min-height: 44px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.member-filters button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--blue); }
.member-search { width: 275px; flex: 0 1 275px; }
.member-search input { width: 100%; min-width: 0; border: 0; border-bottom: 1px solid #bcc3cd; border-radius: 0; background: transparent; padding: 10px 1px; color: var(--ink); font-size: 14px; }
.member-result-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 30px; margin: 10px 0 24px; }
.member-section { border-top: 1px solid var(--line); padding-block: 28px 37px; }
.member-section:first-child { border-top: 0; padding-top: 12px; }
.member-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.member-section-heading h2 { font-size: 27px; }
.member-section-heading p { color: var(--muted); font-size: 12px; white-space: nowrap; }
#member-count { color: var(--muted); font-size: 12px; }
#member-reset { padding: 3px 0; border: 0; background: none; color: var(--blue); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.members-grid, .member-placeholder-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 39px 28px; }
.member-profile { min-width: 0; }
.member-card { list-style: none; text-align: center; }
.member-card::-webkit-details-marker { display: none; }
.member-portrait, .member-placeholder { display: block; width: min(100%, 148px); aspect-ratio: 1; margin: 0 auto 20px; border-radius: 50%; overflow: hidden; background: #eef0f5; }
.member-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.member-initials { display: grid; place-items: center; color: #62708d; font-size: 35px; letter-spacing: -.035em; }
.member-name { font-size: 14px; line-height: 1.5; letter-spacing: .045em; text-transform: uppercase; overflow-wrap: anywhere; }
.member-local { font-size: 13px; color: var(--muted); margin-top: 6px; }
.member-role { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.6; }
.member-intake { color: var(--blue); font-size: 12px; line-height: 1.6; margin-top: 4px; }
.member-hint { display: inline-block; font-size: 11px; color: var(--blue); margin-top: 11px; }
.member-card:hover .member-name { color: var(--blue); }
.member-details { font-size: 15px; color: var(--muted); }
.member-profile[open] .member-details { margin-top: 21px; }
.member-details section { margin-top: 25px; }
.member-details h4 { margin: 0 0 10px; color: var(--ink); font-size: 18px; font-weight: 600; }
.member-details ul { list-style: none; margin: 0; padding: 0; }
.member-details li + li { margin-top: 6px; }
.member-details p + p { margin-top: 15px; }
.member-period { font-size: 13px; }
.member-links { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 25px; }
.member-links a { font-size: 13px; color: var(--blue); }
.members-empty { text-align: center; }
.members-empty h2 { font-size: 21px; font-weight: 500; margin-top: 23px; }
.members-empty > p { max-width: 560px; margin: 13px auto 0; font-size: 15px; color: var(--muted); }
.member-placeholder { position: relative; margin-bottom: 0; }
.member-placeholder:nth-child(2n) { background: #f0edf4; }
.member-placeholder i::before { content: ""; position: absolute; width: 30%; height: 30%; border-radius: 50%; background: #d8dce7; top: 22%; left: 35%; }
.member-placeholder i::after { content: ""; position: absolute; width: 61%; height: 50%; border-radius: 50% 50% 0 0; background: #d8dce7; top: 60%; left: 19.5%; }
.member-group { max-width: 860px; margin: 66px auto 0; padding-top: 42px; border-top: 1px solid var(--line); }
.member-group > h2 { font-size: 29px; margin-bottom: 25px; }
.member-group img { width: 100%; height: auto; }
.member-group > .text-link { margin-top: 21px; font-size: 13px; }
.member-viewer { border: 0; border-radius: 9px; padding: 22px 29px 32px; width: min(1080px, 96vw); max-width: 96vw; max-height: 94svh; overflow: auto; background: white; color: var(--ink); box-shadow: 0 24px 100px #06172350; }
.member-viewer::backdrop { background: #1b203be8; }
.member-viewer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 20px; }
.member-viewer-toolbar > span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.member-viewer-close { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border: 1px solid #c8cdd5; border-radius: 50%; background: white; color: var(--ink); font-size: 25px; }
.member-viewer-layout { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.4fr); gap: 45px; align-items: start; }
.member-viewer-portrait .member-portrait { width: 100%; max-width: 330px; margin: 0 auto; }
.member-viewer-portrait .member-initials { font-size: 64px; }
.member-viewer-copy h2 { font-size: 32px; overflow-wrap: anywhere; }
.member-viewer-local, .member-viewer-role { color: var(--muted); margin-top: 12px; font-size: 16px; }
.member-viewer-details { margin-top: 27px; }
body.has-member-viewer { overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.people-controls[hidden], .member-result-bar[hidden], .members-empty[hidden], .member-profile[hidden], .member-section[hidden], #member-reset[hidden] { display: none !important; }
@media (max-width: 1020px) {
  .members-grid, .member-placeholder-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 33px 24px; }
  .member-placeholder:nth-child(n+5) { display: none; }
  .member-viewer-layout { gap: 30px; }
}
@media (max-width: 640px) {
  #members .people-banner { padding-block: 42px 30px; }
  #members .people-banner h1 { font-size: 32px; }
  #members .people-banner p:last-child { font-size: 16px; }
  .people-directory { padding-bottom: 47px; }
  .people-controls { flex-direction: column; align-items: stretch; gap: 14px; }
  .member-filters { justify-content: space-between; gap: 12px; }
  .member-filters button { font-size: 12px; }
  .member-search { width: 100%; flex: auto; }
  .member-result-bar { margin-bottom: 19px; }
  .member-section { padding-block: 23px 29px; }
  .member-section-heading { margin-bottom: 23px; }
  .member-section-heading h2 { font-size: 23px; }
  .members-grid, .member-placeholder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 23px; }
  .member-placeholder:nth-child(n+3) { display: none; }
  .member-portrait, .member-placeholder { max-width: 136px; }
  .member-name { font-size: 13px; }
  .members-empty h2 { font-size: 20px; }
  .members-empty > p { font-size: 14px; }
  .member-group { margin-top: 41px; padding-top: 30px; }
  .member-group > h2 { font-size: 26px; margin-bottom: 21px; }
  .member-viewer { padding: 17px 19px 25px; }
  .member-viewer-layout { grid-template-columns: 1fr; gap: 25px; }
  .member-viewer-portrait .member-portrait { width: 160px; }
  .member-viewer-copy h2 { font-size: 27px; }
  .member-viewer-local, .member-viewer-role { font-size: 15px; }
}
@media (max-width: 1100px) {
  .nav.wrap { gap: 18px; padding-right: 22px; }
  .nav-links { gap: 17px; }
  .nav-links > a, .nav-info summary { font-size: 14px; }
  .brand-name { font-size: 23px; }
  .brand-name small { font-size: 8px; }
}
@media (max-width: 1020px) {
  .site-header { padding: 17px 22px 20px; }
  .nav.wrap { border-radius: 30px; min-height: 73px; flex-wrap: wrap; gap: 0; padding: 10px 16px 10px 12px; }
  .brand .brand-logo { width: 49px; height: 49px; }
  .js .menu-toggle { display: inline-flex; }
  .nav-links { flex-basis: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 22px; padding: 18px 10px 8px; }
  .js .nav-links:not(.open) { display: none; }
  .nav-links > a, .nav-info summary { font-size: 15px; padding-block: 7px; }
  .nav-github { justify-content: center; }
  .info-links { right: auto; left: 0; top: 100%; z-index: 1; }
  .photo-wall { height: 51vw; min-height: 360px; }
  .photo-controls { flex-wrap: wrap; gap: 8px 16px; }
  .photo-set-name { flex-basis: 100%; justify-content: space-between; }
  .home-projects { gap: 39px 32px; }
  .project-figure, .dataset-cover { height: 210px; }
  .project-figure { padding: 17px 15px; }
  .architecture-link img { max-height: 157px; }
  .project-body { padding-top: 20px; }
  .project-links { gap: 10px 18px; }
  .people-layout, .about-layout, .contact-grid { gap: 36px; }
  .footer-nav { grid-template-columns: repeat(2, auto); gap: 9px 28px; }
}
@media (max-width: 640px) {
  :root { --gutter: 22px; }
  .site-header { padding: 13px 14px 17px; }
  .nav.wrap { padding: 9px 13px 9px 10px; min-height: 69px; border-radius: 28px; }
  .brand { gap: 9px; }
  .brand .brand-logo { width: 47px; height: 47px; }
  .brand-name { font-size: 21px; }
  .brand-name small { font-size: 7px; letter-spacing: .025em; }
  .menu-toggle { padding: 7px 10px; font-size: 12px; gap: 8px; }
  .photo-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto repeat(2, min(35vw, 175px)); gap: 4px; height: auto; min-height: 0; }
  .wall-1 { grid-column: 1 / -1; grid-row: 1; }
  .wall-1 img { height: auto; aspect-ratio: 4 / 3; }
  .wall-2 { grid-column: 1 / span 2; grid-row: 2; }
  .wall-3 { grid-column: 3 / span 2; grid-row: 2; }
  .wall-4 { grid-column: 1 / span 2; grid-row: 3; }
  .wall-5 { grid-column: 3; grid-row: 3; }
  .wall-6 { grid-column: 4; grid-row: 3; }
  .photo-caption { font-size: 10px; padding: 25px 9px 9px; }
  [data-photo-carousel] .photo-wall { aspect-ratio: auto; }
  [data-photo-carousel] .photo-slide { position: relative; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto min(35vw, 175px); gap: 4px; }
  [data-photo-carousel] .wall-1 { grid-column: 1 / -1; grid-row: 1; }
  [data-photo-carousel] .wall-2 { grid-column: 1 / span 2; grid-row: 2; }
  [data-photo-carousel] .wall-3 { grid-column: 3 / span 2; grid-row: 2; }
  [data-photo-carousel] .is-single { grid-template-rows: auto; }
  [data-photo-carousel] .is-pair .wall-2 { grid-column: 1 / -1; grid-row: 2; }
  [data-photo-carousel] .wall-1 img { height: auto; aspect-ratio: 4 / 3; }
  [data-photo-carousel] .photo-caption { font-size: 10px; padding: 25px 10px 9px; }
  [data-photo-carousel] .wall-1 .photo-caption { font-size: 12px; padding: 35px 15px 12px; }
  .photo-controls { flex-wrap: wrap; gap: 7px 12px; padding: 12px 16px; }
  .photo-set-name { width: 100%; justify-content: space-between; font-size: 13px; }
  .photo-control-actions { gap: 2px; }
  .photo-play { padding-inline: 7px; gap: 6px; }
  .photo-arrow { width: 32px; }
  .photo-select { width: 83px; }
  .mission-band { margin-top: 20px; padding-block: 43px 47px; }
  .mission-kicker { font-size: 10px; margin-bottom: 16px; }
  .mission-band h1 { font-size: 38px; }
  .mission-band > p:last-child { font-size: 14px; max-width: 290px; margin: 20px auto 0; }
  .home-overview { padding-block: 41px 48px; }
  .mission-copy { font-size: 16px; }
  .mission-copy p + p { font-size: 15px; }
  .home-overview h2 { margin-top: 43px; }
  .research-topics { gap: 8px; margin-top: 23px; }
  .research-topics a { font-size: 12px; padding: 9px 15px; }
  .home-research { padding-block: 4px 55px; }
  .centered-heading { margin-bottom: 29px; }
  .centered-heading p { font-size: 15px; }
  .projects { grid-template-columns: 1fr; gap: 26px; }
  .home-projects { gap: 38px; }
  .project-figure, .dataset-cover { height: 205px; }
  .project-figure { padding: 20px 13px; }
  .architecture-link img { max-height: 146px; }
  .project h3 { font-size: 25px; }
  .project p { font-size: 15px; }
  .dataset-cover strong { font-size: 36px; }
  .section-more { margin-top: 36px; }
  .home-news { padding-block: 0 54px; }
  .home-news > h2 { margin-bottom: 26px; }
  .news-summary { grid-template-columns: 1fr; gap: 12px; padding-block: 23px; }
  .news-summary h3 { font-size: 23px; }
  .page-banner { padding-block: 40px 33px; }
  .page-banner h1 { font-size: 38px; }
  .page-banner p:last-child { font-size: 15px; margin-top: 17px; }
  .section { padding-block: 40px; }
  .research-detail { grid-template-columns: 1fr; gap: 13px; padding-block: 34px; }
  .research-detail h2 { font-size: 27px; }
  .research-detail p, .research-detail ul { font-size: 15px; }
  .model-figure { padding: 15px; margin-top: 24px; }
  .people-layout, .about-layout, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .people-note h2, .about-copy h2, .contact-box h2 { font-size: 27px; }
  .people-note p, .about-copy p, .contact-box p { font-size: 15px; }
  .citation, .news-item { grid-template-columns: 1fr; gap: 19px; }
  .citation h2 { font-size: 24px; }
  .news-item h2 { font-size: 27px; }
  .news-item p { font-size: 15px; }
  .search-field { padding-inline: 14px; }
  .search-field input { font-size: 14px; }
  .filter { font-size: 12px; padding: 8px 14px; }
  .resource-card { padding: 23px; }
  .footer-top { grid-template-columns: 1fr; gap: 27px; margin-bottom: 30px; }
  .footer-nav { grid-template-columns: repeat(3, auto); gap: 13px 20px; justify-content: start; }
  .footer-nav a { font-size: 12px; }
  .footer-brand { font-size: 22px; }
  .footer-bottom { flex-direction: column; gap: 12px; font-size: 11px; }
  .site-footer { padding-block: 35px 23px; }
  .media-viewer { width: 96vw; padding: 17px; }
  .media-viewer h2 { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
