@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Spectral:wght@500;600;700&display=swap');

:root {
  --ink: #1b2030;
  --muted: #484b59;
  --paper: #fcfbf8;
  --rule: #cecbd6;
  --purple: #513489;
  --lavender: #eee9f6;
  --gutter: clamp(20px, 5vw, 68px);
}
body { color: var(--ink); background: var(--paper); font: 16px/1.6 "DM Sans", system-ui, sans-serif; }
a { color: var(--purple); text-underline-offset: .22em; }
a:hover { color: #38215f; }
a:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
::selection { color: var(--ink); background: #dcd0f2; }
.navbar { background: var(--paper) !important; border-bottom: 1px solid var(--rule); }
.navbar-container, .nav-footer { max-width: 1280px; margin-inline: auto; }
.navbar-title { font-weight: 700; }
.navbar .nav-link { font-size: .94rem; font-weight: 600; }
.navbar .nav-link.active { color: var(--purple); text-decoration: underline; }
#quarto-content main { max-width: 1270px; width: 100%; margin: 0 auto; padding: 38px var(--gutter) 54px; }
h1,h2,h3 { color: var(--ink); margin-top: 0; border: 0; }
h1,h2 { font-family: Spectral, Georgia, serif; font-weight: 600; letter-spacing: -.025em; }
h1 { font-size: clamp(2.2rem,4vw,3.8rem); line-height: 1.01; }
h2 { font-size: clamp(1.55rem,2.4vw,2.1rem); line-height: 1.15; padding: 0; }
h3 { font: 700 1.05rem/1.35 "DM Sans", system-ui, sans-serif; }
p { max-width: 67ch; }
.lede, .software-intro p:first-child, .intro-text > p.lede { font-family: "DM Sans", system-ui, sans-serif; color: var(--muted); font-size: 1.08rem; margin-bottom: 26px; }
body:not(.home) #title-block-header {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.home #quarto-content main { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); column-gap: clamp(24px, 5vw, 65px); align-items: start; padding-top: 36px; }
.home #title-block-header { grid-column: 1; grid-row: 1; align-self: end; z-index: 1; margin: 0; }
.home .quarto-title-meta { display: none; }
.home .intro-grid { display: contents; }
.home .intro-text { grid-column: 1; grid-row: 2; padding-bottom: 20px; }
.home .intro-art { grid-column: 2; grid-row: 1 / span 2; }
.home .intro-art figure { margin: 0; }
.home .intro-art img { width: 100%; aspect-ratio: 1.68; object-fit: cover; background: #161426; }
.home .intro-art figcaption { margin-top: 5px; font-size: .78rem; color: var(--muted); }
.affiliation { color: var(--purple); font-size: .88rem; font-weight: 700; }
.intro-text > p:nth-child(2):not(.lede) { font-size: clamp(1.05rem,1.52vw,1.26rem); line-height: 1.48; }
.primary,.plain { display: inline-block; font-size: .92rem; font-weight: 700; }
.primary { padding: 8px 13px; background: var(--purple); color: white; text-decoration: none; margin-right: 12px; }

.home :is(.section-head,.research-grid,.home-index) { grid-column: 1 / -1; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 1px solid var(--rule); margin-top: 22px; padding-top: 15px; }
.section-head h2 { margin: 0 0 .45rem; }
.section-head p { margin: 0; font-size: .91rem; }
.research-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(15px,3vw,32px); margin: 6px 0 25px; }
.research-story > p { margin-bottom: 9px; }
.research-story img { display: block; width: 100%; aspect-ratio: 2.45; object-fit: cover; background: #161426; }
.research-story h3 { margin: 9px 0 4px; }
.research-story h3 a { color: var(--ink); }
.research-story p { color: var(--muted); }
.home-index { border-top: 1px solid var(--rule); padding-top: 15px; }
.directory { max-width: 900px; }
.directory h2 { margin-top: 28px; }
.index-row { display: grid; grid-template-columns: minmax(95px,.22fr) 1fr; column-gap: 22px; padding: 9px 0; border-top: 1px solid var(--rule); }
.index-row > :first-child { grid-column: 1; grid-row: 1 / span 2; }
.index-row > :not(:first-child) { grid-column: 2; }
.index-row p,.index-row h3 { margin: 0; }
.record-type { color: var(--purple); font-size: .86rem; font-weight: 700; }
.person-row { display: grid; grid-template-columns: 74px 1fr; gap: 0 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--rule); }
.person-row > p:first-child { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
.person-row > :not(:first-child) { grid-column: 2; margin: 0; }
.portrait-placeholder { display: grid; place-items: center; width: 74px; height: 74px; background: var(--lavender); color: var(--purple); font-size: .84rem; }
.nav-footer { border-top: 1px solid var(--rule); }
@media (max-width: 720px) {
  #quarto-content main { padding-top: 24px; }
  .home #quarto-content main { display: block; padding-top: 24px; }
  .home #title-block-header { margin-bottom: 8px; }
  .home .intro-art { margin-bottom: 17px; }
  .research-grid { grid-template-columns: 1fr; }
  .research-story img { aspect-ratio: 2.1; }
  .index-row { column-gap: 10px; }
}
@media (max-width: 720px) {
  .navbar .navbar-brand { max-width: none; }
  .navbar .navbar-title { font-size: .99rem; }
  .section-head > p { flex: 0 0 auto; }
}

.home .perspectives { grid-column: 1 / -1; margin: 20px 0 30px; border-top: 1px solid var(--rule); padding-top: 17px; }
.perspectives > h2, .perspectives > section > h2 { margin-bottom: 3px; }
.perspectives > p, .perspectives > section > p { color: var(--muted); margin-bottom: 12px; }
.lens-selector { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; margin: 0 0 15px; width: fit-content; border: 1px solid var(--rule); background: var(--lavender); }
.lens-selector input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.lens-selector label { color: var(--purple); padding: 6px 12px; font-size: .94rem; font-weight: 700; cursor: pointer; }
.lens-selector input:checked + label { background: var(--purple); color: white; }
.lens-selector input:focus-visible + label { outline: 2px solid var(--purple); outline-offset: 2px; }
.lens-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(18px, 4vw, 48px); align-items: start; }
.lens-layout h3 { font-size: 1.18rem; margin-bottom: 7px; }
.lens-copy p { margin-bottom: 10px; }
.lens-art img { width: 100%; aspect-ratio: 1.8; object-fit: cover; background: #161426; }
.lens-art figure { margin: 0; }
.lens-art figcaption { color: var(--muted); font-size: .78rem; margin-top: 5px; }
.lens-biology { display: none; }
.perspectives:has(#lens-biology:checked) .lens-methods { display: none; }
.perspectives:has(#lens-biology:checked) .lens-biology { display: block; }
.shared-projects { display: inline-block; margin-top: 4px; font-size: .92rem; }
@media (max-width: 720px) {
  .lens-layout { grid-template-columns: 1fr; }
  .lens-art { margin-bottom: 9px; }
}

.perspectives > h2, .perspectives > section > h2 { margin-bottom: 12px; }
.lens-layout { align-items: center; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); }
.lens-copy p { margin-bottom: 12px; }
.lens-art img { display: block; width: 100%; aspect-ratio: auto; object-fit: contain; background: transparent; mix-blend-mode: multiply; }
@media (max-width: 720px) {
  .lens-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .lens-selector label { font-size: .85rem; padding-inline: 8px; }
}

.tissue-plate {
  overflow: hidden;
  background: #10152e;
}
.home .tissue-plate img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
}
.population-key {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 15px;
  margin: 8px 0 3px;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-weight: 600;
}
.population-key li { display: flex; align-items: center; gap: 6px; }
.population-key li span { width: .66rem; height: .66rem; border-radius: 50%; }
.population-blue { background: #167788; }
.population-violet { background: #8852ad; }
.population-gold { background: #a37320; }
.tissue-populations figcaption p { margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .tissue-plate img { animation: tissue-focus 1.15s ease-out both; }
  @keyframes tissue-focus {
    from { transform: scale(1.045); filter: saturate(.72); }
    to { transform: scale(1); filter: saturate(1); }
  }
}

.tissue-plate { position: relative; }
.population-spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at var(--spot-x, 50%) var(--spot-y, 50%), transparent 14%, #080b21b8 72%);
  opacity: 0;
  pointer-events: none;
}
.population-selected .population-spotlight { opacity: 1; }
.population-pin {
  position: absolute;
  top: var(--pin-y);
  left: var(--pin-x);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: #10152ee8;
  color: var(--pin-ink);
  font: 700 .9rem/1 "DM Sans", sans-serif;
  cursor: pointer;
}
.population-pin[aria-pressed="true"] { background: var(--pin-ink); color: #14142a; border-color: var(--pin-ink); }
.population-pin:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.population-a { --pin-x: 19%; --pin-y: 73%; --pin-ink: #9deaff; }
.population-b { --pin-x: 52%; --pin-y: 47%; --pin-ink: #efb4ff; }
.population-c { --pin-x: 82%; --pin-y: 22%; --pin-ink: #ffda84; }
.population-hint { color: var(--purple); font-weight: 600; }
.population-trend { margin-top: 11px; padding: 11px 13px; border: 1px solid var(--rule); background: var(--paper); }
.population-trend-heading { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.population-trend-heading p { color: var(--muted); font-size: .79rem; margin-bottom: 7px; }
.population-reset { border: 0; background: none; padding: 0 2px; color: var(--purple); text-decoration: underline; font-size: .85rem; }
.population-bars { display: grid; gap: 5px; padding: 0; margin: 0; list-style: none; }
.population-bars li { display: grid; grid-template-columns: 80px 1fr 37px; gap: 8px; align-items: center; font-size: .8rem; }
.population-track { display: block; height: 6px; background: var(--lavender); }
.population-track span { display: block; width: var(--share); height: 100%; background: var(--trend-colour); transform-origin: left; }
.population-bars strong { text-align: right; font-variant-numeric: tabular-nums; }
.population-pin[hidden], .population-trend[hidden], .population-hint[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .population-spotlight { transition: opacity .25s ease; }
  .population-track span { animation: reveal-share .48s ease-out var(--delay) both; }
  @keyframes reveal-share { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

.figure-switch { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 5px; }
.figure-switch button { background: transparent; border: 0; color: var(--purple); min-width: 34px; min-height: 31px; font-size: 1.12rem; line-height: 1; }
.figure-name { min-width: 5.2rem; text-align: center; font-size: .88rem; }
.figure-switch[hidden], .figure-slide[hidden] { display: none; }
.home .tissue-plate img { aspect-ratio: 1.85; object-fit: cover; }
.figure-caption p, .tree-hint { margin: 4px 0 0; color: var(--muted); font-size: .77rem; }
.population-trend { margin-top: 6px; padding: 6px 9px; }
.population-trend-heading p { margin: 0; }
.population-bars { gap: 1px; }
.tree-plate { position: relative; background: #10152e; }
.tree-plate canvas { width: 100%; aspect-ratio: 1.85; display: block; }
.tree-a { --pin-x: 93%; --pin-y: 21.33%; --pin-ink: #7de5fc; }
.tree-b { --pin-x: 93%; --pin-y: 48.33%; --pin-ink: #e4a5ff; }
.tree-c { --pin-x: 93%; --pin-y: 77.5%; --pin-ink: #ffd885; }

.figure-switch { width: fit-content; gap: 2px; padding: 3px; margin: 0 0 8px; background: #eae6f0; border-radius: 6px; }
.figure-switch button { padding: 5px 13px; border-radius: 4px; min-height: 34px; font-size: .86rem; font-weight: 700; }
.figure-switch button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.tree-plate { background: #171a34; overflow: hidden; border-radius: 3px 3px 0 0; }
.tree-plate canvas { aspect-ratio: 1040 / 600; cursor: pointer; }
.tree-time { display: grid; grid-template-columns: 1fr auto 1fr; gap: 7px; padding: 6px 9px; background: #171a34; color: #d3cfe8; font-size: clamp(.61rem, 1.3vw, .77rem); }
.tree-time strong { color: #fff1c7; }
.tree-time span:last-child { text-align: right; }
.tree-tools { display: flex; gap: 7px; margin-top: 7px; }
.tree-tools button { display: inline-flex; gap: 5px; align-items: center; padding: 4px 9px; min-height: 34px; background: transparent; border: 1px solid var(--rule); border-radius: 4px; color: var(--ink); font-size: .8rem; }
.tree-tools button[aria-pressed="true"] { background: var(--lavender); border-color: var(--purple); }
.tree-tools button span { width: .55rem; height: .55rem; border-radius: 50%; background: var(--dot); }
.tree-tools [data-branch="A"] { --dot: #167788; }
.tree-tools [data-branch="B"] { --dot: #8852ad; }
.tree-tools [data-branch="C"] { --dot: #a37320; }
.tree-time { position: relative; display: flex; justify-content: space-between; }
.tree-time strong { position: absolute; left: 62.6%; transform: translateX(-50%); }

.cell-state-controls { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 5px 12px; padding: 8px; background: #171a34; border-radius: 3px 3px 0 0; color: #ded8f2; font-size: .79rem; }
.cell-state-plate { border-radius: 0; }
.cell-modality { display: flex; gap: 3px; }
.cell-modality button { border: 1px solid #625879; border-radius: 3px; padding: 3px 9px; min-height: 31px; background: transparent; color: #eee8ff; font-size: .8rem; }
.cell-modality button[aria-pressed="true"] { color: #23203a; background: #eee8ff; border-color: #eee8ff; font-weight: 700; }
.cell-modality button:focus-visible { outline-color: #eee8ff; }
.cell-clones [data-clone="A"] { --dot: #167788; }
.cell-clones [data-clone="B"] { --dot: #8852ad; }
.cell-clones [data-clone="C"] { --dot: #a37320; }
@media (max-width: 380px) {
  .figure-switch button { padding-inline: 8px; }
}

/* The modes share one plot frame and one reserved detail area. */
.figure-stage { display: grid; align-items: start; }
.figure-stage > .figure-slide { grid-area: 1 / 1; min-width: 0; }
.figure-stage > .figure-slide[hidden] { display: block; visibility: hidden; pointer-events: none; }
.home .tissue-plate img { aspect-ratio: 1040 / 600; }
.cell-state-controls { border-radius: 0; }
.space-details { min-height: 113px; }
@media (min-width: 721px) {
  .home #quarto-content main { grid-template-rows: min-content auto; }
  .home #title-block-header { align-self: start; }
}
.figure-stage > .figure-slide[hidden] { display: block !important; }
.space-details { min-height: 151px; }
@media (min-width: 721px) {
  .home #quarto-content main { align-content: start; }
}
.home #title-block-header { display: none; }
.home .intro-text h1 { margin-bottom: 5px; }
.intro-text > p:nth-of-type(2):not(.lede) { font-size: clamp(1.05rem,1.52vw,1.26rem); line-height: 1.48; }
.population-selected .figure-space .figure-caption { display: none; }
@media (min-width: 721px) {
  .home #quarto-content main { display: block; }
  .home .intro-grid { display: grid; grid-template-columns: minmax(0,.94fr) minmax(0,1.06fr); gap: clamp(24px, 5vw, 65px); align-items: start; }
  .home .intro-text, .home .intro-art { grid-area: auto; }
}
.space-details { display: flow-root; }

.home .perspectives { margin: 12px 0 17px; padding-top: 12px; }
.home .perspectives h2 { margin-bottom: 8px; }
.lens-selector { margin-bottom: 10px; }
.lens-stage {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  column-gap: clamp(24px, 5vw, 65px);
  align-items: start;
}
.lens-stage :is(.lens-methods, .lens-biology, .lens-layout),
.perspectives:has(#lens-biology:checked) .lens-stage :is(.lens-methods, .lens-biology) { display: contents; }
.lens-stage .lens-copy { grid-area: 1 / 1; }
.lens-stage .lens-art { grid-area: 1 / 2; }
.lens-stage .lens-biology :is(.lens-copy, .lens-art),
.perspectives:has(#lens-biology:checked) .lens-stage .lens-methods :is(.lens-copy, .lens-art) { visibility: hidden; }
.perspectives:has(#lens-biology:checked) .lens-stage .lens-biology :is(.lens-copy, .lens-art) { visibility: visible; }
.lens-copy p { margin-bottom: 9px; }
.lens-copy p:last-child { margin-bottom: 0; }
.lens-art img { height: clamp(150px, 21vw, 235px); object-position: center; }
.lens-art p { margin: 0; }
.home-index { padding-top: 11px; }
.home-index .index-row { padding-block: 6px; }
.population-trend { padding-block: 4px; line-height: 1.3; }
.population-trend-heading p { line-height: 1.3; }
.space-details { min-height: 128px; }
@media (max-width: 720px) {
  .lens-stage { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .lens-stage .lens-art { grid-area: 2 / 1; margin: 0; }
  .home .intro-art { margin-bottom: 8px; }
}
.home-index .index-row > p {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(85px, .19fr) 1fr;
  gap: 12px;
}

.research-overview { max-width: 70ch; }
.research-overview p { margin-bottom: 0; color: var(--muted); font-size: 1.06rem; }
.funded-projects { max-width: 940px; margin-top: 24px; }
.funded-projects h2 { margin-bottom: 12px; }
.funded-project {
  display: grid;
  grid-template-columns: minmax(110px, .28fr) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}
.project-illustration p, .project-illustration figure { margin: 0; }
.project-illustration img { display: block; width: 100%; aspect-ratio: 1.55; object-fit: cover; }
.project-description p { margin: 0 0 7px; }
.project-description p:last-child { margin-bottom: 0; }
.project-description h3 { margin: 0 0 5px; font-size: 1.11rem; }
.grant-label { color: var(--purple); font-weight: 700; font-size: .79rem; }
.project-meta { color: var(--muted); font-size: .84rem; }
@media (max-width: 590px) {
  .funded-project { grid-template-columns: 1fr; gap: 9px; }
  .project-illustration img { width: min(100%, 220px); }
}

.project-illustration img { object-fit: contain; mix-blend-mode: multiply; }
.project-source, .project-partner { font-size: .86rem; }
.project-partners { margin-block: 9px 5px; }
.project-partners p { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.project-partner { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); text-decoration-color: var(--rule); padding-block: 3px; }
.project-partner:hover { color: var(--purple); text-decoration-color: currentColor; }
.project-partner img { width: 46px; height: 22px; object-fit: contain; flex: none; }

.funded-projects { max-width: 990px; }
.funded-project {
  grid-template-columns: minmax(170px, .34fr) minmax(0, 1fr);
  column-gap: clamp(18px, 3vw, 37px);
  row-gap: 14px;
  padding: 18px 0 20px;
}
.project-heading {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 7px 22px;
}
.project-heading h3 {
  margin: 0;
  font: 600 clamp(1.25rem, 2.15vw, 1.68rem)/1.13 Spectral, Georgia, serif;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.project-heading p { margin: 0; white-space: nowrap; }
.project-illustration { background: #f0edf4; }
.project-illustration img { width: 100%; aspect-ratio: 1.67; }
.project-description > p { line-height: 1.53; margin-bottom: 12px; }
.project-facts {
  border-top: 1px solid var(--rule);
  padding-top: 8px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
}
.project-facts strong, .project-partners > p:first-child { color: var(--ink); }
.project-facts p { margin: 0; }
.project-partners {
  grid-column: 2;
  margin: 0;
  padding: 8px 11px;
  background: #f1eef5;
}
.project-partners p { margin: 0; }
.project-partners > p:first-child { font-size: .8rem; }
.project-partner { min-height: 34px; }
.project-partner img { width: 50px; height: 23px; }
@media (max-width: 660px) {
  .funded-project { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .project-heading { flex-wrap: wrap; }
  .project-illustration { width: min(100%, 300px); }
  .project-partners { grid-column: 1; }
  .project-partner { min-height: 38px; }
}

.grant-timeline {
  --grant-label-width: clamp(104px, 22%, 188px);
  --year-rule: #cfcae0;
  background: #f0edf5;
  margin: 15px 0 24px;
  padding: clamp(9px, 2vw, 18px);
}
.grant-timeline[hidden], .funded-project[hidden] { display: none; }
.grant-timeline-axis, .grant-track {
  display: grid;
  grid-template-columns: var(--grant-label-width) minmax(0, 1fr);
  gap: clamp(7px, 2vw, 17px);
  align-items: center;
}
.grant-timeline-axis { padding: 0 7px 5px; font-size: .79rem; }
.grant-timeline-years, .grant-plot {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.grant-timeline-years { font-size: clamp(.62rem, 1.4vw, .8rem); color: #4a4260; }
.grant-track {
  width: 100%;
  border: 0;
  text-align: left;
  min-height: 46px;
  padding: 2px 7px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.grant-track + .grant-track { border-top: 1px solid #dcd7e7; }
.grant-track[aria-expanded="true"] { background: #e6deef; }
.grant-track-name { font-size: clamp(.72rem, 1.5vw, .88rem); font-weight: 700; }
.grant-track-name small { display: block; color: #574e6b; font-size: .74rem; font-weight: 500; }
.grant-plot {
  align-items: center;
  min-height: 32px;
  background: repeating-linear-gradient(to right, var(--year-rule) 0 1px, transparent 1px calc(100% / 6));
  border-right: 1px solid var(--year-rule);
}
.grant-bar { grid-column: var(--start) / var(--end); margin-inline: 3px; height: 7px; background: #8673ad; }
.grant-track[aria-expanded="true"] .grant-bar { height: 10px; background: var(--purple); }
.project-funder {
  background: var(--paper);
  padding: 9px 10px 10px;
  text-align: center;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
}
.project-funder a { display: inline-flex; min-height: 48px; align-items: center; }
.project-funder img { width: min(100%, 140px); height: 41px; object-fit: contain; aspect-ratio: auto; }
@media (min-width: 661px) {
  .funded-project .project-illustration { grid-row: 2 / span 2; align-self: start; }
}

.funded-projects { max-width: none; }
.funded-project {
  grid-template-columns: minmax(0, .48fr) minmax(0, 1fr);
  column-gap: clamp(24px, 4vw, 52px);
  row-gap: 22px;
  padding: clamp(18px, 3vw, 36px);
  border: 1px solid var(--rule);
}
.project-heading h3 {
  font-size: clamp(1.38rem, 2.4vw, 2rem);
  text-wrap: pretty;
}
.project-heading .grant-label { font-size: .86rem; }
.funded-project .project-illustration { width: 100%; }
.funded-project .project-illustration > p > img { aspect-ratio: 1.5; }
.project-description > p { line-height: 1.62; margin-bottom: 20px; }
.project-facts { padding-top: 12px; line-height: 1.65; }
.project-funder { padding: 10px 12px; }
.project-funder img { height: 48px; }
.project-partners { padding: 12px 15px; }
@media (max-width: 660px) {
  .funded-project { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .funded-project .project-illustration { max-width: 365px; }
  .project-description > p { margin-bottom: 14px; }
}

.funded-project {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  column-gap: clamp(24px, 5vw, 64px);
  row-gap: 0;
  padding: clamp(20px, 3.4vw, 44px);
  border-inline: 0;
  border-bottom: 0;
}
.project-heading { margin-bottom: clamp(19px, 2.5vw, 32px); }
.funded-project .project-illustration {
  grid-area: 2 / 1;
  background: #f0edf4;
}
.funded-project .project-illustration > p > img { aspect-ratio: 1.66; }
.funded-project .project-description { grid-area: 2 / 2; align-self: center; }
.funded-project .project-description > p { margin: 0; font-size: 1.05rem; line-height: 1.67; }
.funded-project .project-facts,
.funded-project .project-partners {
  grid-row: 3;
  margin-top: clamp(22px, 3.4vw, 40px);
  border-top: 1px solid var(--rule);
  padding: 14px 0 0;
}
.funded-project .project-facts { grid-column: 1; }
.funded-project .project-partners { grid-column: 2; background: transparent; }
.project-partners > p:first-child { font-size: .88rem; margin-bottom: 8px; }
.project-partners > p:nth-child(2) { row-gap: 5px; column-gap: 16px; }
.project-funder { background: transparent; border: 0; padding: 8px 0 0; text-align: left; }
.project-funder img { mix-blend-mode: normal; }
@media (max-width: 660px) {
  .funded-project { grid-template-columns: minmax(0, 1fr); padding-inline: 0; }
  .funded-project :is(.project-description, .project-illustration, .project-facts, .project-partners) { grid-area: auto; }
  .funded-project .project-description { margin-top: 18px; }
  .funded-project .project-description > p { font-size: 1rem; }
}
.grant-timeline { padding: clamp(12px, 2vw, 18px); }

.funded-project .project-facts,
.funded-project .project-partners {
  margin-top: clamp(24px, 4vw, 48px);
  padding-top: 16px;
}
.project-partners > p:first-child { margin-bottom: 12px; }
.project-partners > p:nth-child(2) { gap: 12px 24px; align-items: center; }
.project-partner { padding: 5px 0; min-height: 56px; }
.project-partner img { display: block; width: auto; height: 44px; max-width: none; }
.project-funder { padding: 0; margin: 8px 0 16px; }
.project-funder a { gap: 10px; align-items: center; }
.project-funder img { width: 52px; height: 52px; flex: none; }
.project-facts > p:last-child { padding-top: 9px; border-top: 1px solid var(--rule); }

.funded-project .institution-link {
  display: inline-grid;
  grid-template-columns: 108px minmax(0, auto);
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 3px 0;
  color: var(--ink);
  text-decoration-color: var(--rule);
  font-size: .88rem;
  line-height: 1.35;
}
.funded-project .institution-link:hover { color: var(--purple); text-decoration-color: currentColor; }
.funded-project .institution-link img {
  display: block;
  width: 108px;
  height: 44px;
  object-fit: contain;
  object-position: left center;
}

.funded-project {
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  column-gap: clamp(20px, 4vw, 44px);
  padding-inline: 0;
  align-items: start;
}
.funded-project .project-map-slot { grid-area: 2 / 1 / span 3; min-width: 0; }
.research-map { position: relative; border: 1px solid var(--rule); background: #eceef6; }
.research-map canvas { display: block; width: 100%; height: auto; }
.research-map-pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  color: #271b40;
  text-decoration: none;
  z-index: 1;
}
.research-map-pin::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 2px solid white;
  border-radius: 50%;
  background: #54347e;
  box-shadow: 0 0 0 1px #54347e;
}
.research-map-pin span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: .76rem;
  font-weight: 700;
  padding: 1px 5px;
  background: #fcfbf8;
  border: 1px solid #d5ccdf;
}
.research-map-pin.above span { bottom: 25px; }
.research-map-pin.below span { top: 25px; }
.research-map-pin:hover, .research-map-pin:focus-visible { z-index: 2; }
.research-map-pin.units-pin { z-index: 3; }
.research-map-pin.units-pin::before { border-radius: 2px; background: #a23c50; box-shadow: 0 0 0 1px #a23c50; transform: rotate(45deg); }
.research-map-pin.units-pin span { color: #fff; background: #842e45; border-color: #842e45; }
.funded-project .project-description { align-self: start; }
.funded-project .project-facts,
.funded-project .project-partners { grid-column: 2; margin-top: 21px; padding-top: 12px; }
.funded-project .project-facts { grid-row: 3; }
.funded-project .project-partners { grid-row: 4; }
.project-collaborators { color: var(--muted); font-size: .87rem; }
.project-partners:has(.project-collaborators) p:nth-child(3) { gap: 8px 18px; }
@media (max-width: 660px) {
  .funded-project { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .funded-project :is(.project-map-slot,.project-description,.project-facts,.project-partners) { grid-area: auto; }
  .funded-project .project-heading { margin-bottom: 4px; }
  .funded-project :is(.project-description,.project-facts,.project-partners) { margin-top: 0; }
}

.project-map-column, .project-details-column { min-width: 0; }
.funded-project .project-map-column { grid-area: 2 / 1; }
.funded-project .project-details-column { grid-area: 2 / 2; }
.funded-project .project-map-column .project-partners { margin-top: 21px; }
.project-map-column .project-partners > p:nth-child(2) {
  display: grid;
  justify-items: start;
  gap: 7px;
}
.funded-project .project-facts { font-size: .94rem; }
.project-facts > p:first-child, .project-funder > p:first-child, .project-facts > p:nth-last-child(2) { margin-bottom: 4px; }
.project-funder { margin: 20px 0; padding-block: 12px; border-block: 1px solid var(--rule); }
.funded-project .project-funder .institution-link { display: inline-flex; min-height: 53px; }
.funded-project .project-funder .institution-link img { height: 48px; }
.project-facts > p:last-child { padding-top: 0; border-top: 0; }
@media (max-width: 660px) {
  .funded-project :is(.project-map-column,.project-details-column) { grid-area: auto; }
  .funded-project .project-details-column .project-description { margin-top: 0; }
}

.grant-timeline { --grant-label-width: clamp(235px, 42%, 400px); }
.grant-timeline-years, .grant-plot { grid-template-columns: repeat(var(--grant-years), minmax(0, 1fr)); }
.grant-plot { background: repeating-linear-gradient(to right, var(--year-rule) 0 1px, transparent 1px calc(100% / var(--grant-years))); }
.grant-track { padding-block: 7px; }
.grant-track-title { display: block; font-size: .89rem; line-height: 1.3; }
.grant-track-name small { margin-bottom: 3px; }
@media (max-width: 660px) {
  .grant-timeline-axis, .grant-track { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .grant-timeline-axis { padding-bottom: 8px; }
  .grant-track-title { font-size: .84rem; }
  .grant-plot { min-height: 16px; }
}

.publication-controls { position: sticky; top: var(--publication-nav-height, 0px); z-index: 20; max-width: 970px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; padding: 8px 0; background: var(--paper); border-bottom: 1px solid var(--rule); }
.publication-views { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--rule); border-radius: 6px; }
.publication-views[hidden] { display: none; }
.publication-views button { border: 0; border-radius: 4px; padding: 5px 10px; background: var(--view-tint); color: var(--view-ink); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.publication-views [data-paper-view="paper-preprints"] { --view-tint: #e3f2ee; --view-ink: #1d6254; }
.publication-views [data-paper-view="paper-highlights"] { --view-tint: #eee7f8; --view-ink: #54347e; }
.publication-views [data-paper-view="paper-all"] { --view-tint: #faecd8; --view-ink: #80511c; }
.publication-views button[aria-pressed="true"] { background: var(--view-ink); color: white; }
.publication-scholar { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid #b5c9f4; border-radius: 5px; background: #e8f0fe; color: #174ea6; text-decoration: none; font-size: .9rem; font-weight: 700; }
.publication-scholar i { color: #1967d2; font-size: 1.05rem; }
.publication-section { max-width: 970px; margin-top: 30px; }
.selected-paper { display: grid; grid-template-columns: minmax(0, 1fr); gap: 17px; padding: 14px 0; border-top: 1px solid var(--rule); }
.selected-paper:has(.paper-figure) { grid-template-columns: minmax(0, 1fr) minmax(190px, .7fr); }
.selected-paper h3 { margin: 4px 0 6px; font: 600 1.2rem/1.3 Spectral, Georgia, serif; }
.selected-paper h3 a, .archive-paper h4 a { color: var(--ink); }
.selected-paper h3 a:hover, .archive-paper h4 a:hover { color: var(--purple); }
.paper-meta, .paper-reason, .paper-output, .paper-count, .archive-authors { font-size: .86rem; color: var(--muted); margin: 0 0 3px; }
.paper-meta { color: var(--purple); }
.paper-figure { margin: 0; }
.paper-figure img { width: 100%; height: auto; display: block; background: white; }
.publication-filters { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 12px; }
.publication-filters label { display: grid; gap: 3px; font-size: .86rem; font-weight: 600; }
.publication-filters input, .publication-filters select { padding: 6px 8px; border: 1px solid var(--rule); background: white; }
.archive-paper { padding: 11px 0; border-top: 1px solid var(--rule); }
.archive-paper h4 { font-size: 1rem; margin: 3px 0; }
.publication-filters[hidden], .archive-paper[hidden] { display: none; }
@media (max-width: 620px) {
  .selected-paper:has(.paper-figure) { grid-template-columns: minmax(0, 1fr); }
}

.publication-section .selected-paper:has(.paper-figure) { align-items: start; column-gap: clamp(20px,4vw,48px); padding-block: 20px; }
.paper-figure a { display: block; }
.paper-figure img { max-height: 255px; object-fit: contain; }

.selected-paper .paper-authors { margin: 8px 0 3px; color: var(--ink); font-size: .92rem; }
.selected-paper .paper-meta { margin: 0; color: var(--muted); }
.selected-paper .paper-meta cite { font-weight: 600; }
.paper-figure > a { display: grid; place-items: center; aspect-ratio: 4 / 3; background: white; }
.paper-figure > a img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.paper-figure > a { position: relative; }
.paper-figure > a img { position: absolute; inset: 0; }

.publication-credits { margin-top: 24px; color: var(--muted); font-size: .82rem; }
.publication-credits summary { cursor: pointer; }
.publication-credits ul { margin-top: 8px; }

.software-intro { max-width: 70ch; margin-bottom: 24px; }
.software-intro p { margin-bottom: 7px; }

.software-intro a { font-size: .9rem; font-weight: 700; }
.tool-catalog { max-width: 1050px; }
.tool-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(155px, .42fr); gap: 12px; padding: 14px; background: var(--lavender); }
.tool-controls label { display: grid; gap: 4px; font-size: .83rem; font-weight: 700; }
.tool-controls input, .tool-controls select { width: 100%; padding: 7px 8px; border: 1px solid #a798ba; background: white; color: var(--ink); }
.tool-controls :is(input, select):focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.tool-summary { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding-block: 10px 7px; color: var(--muted); font-size: .81rem; }
.tool-summary p { margin: 0; }
#tool-count { color: var(--ink); font-weight: 700; }
.tool-entry { display: grid; grid-template-columns: 61px minmax(0, 1fr) minmax(105px, .24fr); gap: 17px; padding: 19px 0; border-top: 1px solid var(--rule); }
.tool-mark { display: grid; place-items: center; width: 61px; height: 61px; color: var(--purple); background: #f0edf5; font-weight: 700; }
.tool-mark img { width: 100%; height: 100%; padding: 5px; object-fit: contain; }
.tool-content h2 { font: 600 1.35rem/1.17 Spectral, Georgia, serif; margin-bottom: 4px; }
.tool-content p { margin-bottom: 7px; }
.tool-topics, .tool-links { display: flex; flex-wrap: wrap; gap: 5px 13px; font-size: .81rem; }
.tool-topics { margin: 0 0 7px; padding: 0; list-style: none; color: var(--muted); }
.tool-links .tool-docs { font-weight: 700; }
.tool-links span { margin-left: 4px; color: var(--muted); }
.tool-repo { font-size: .8rem; color: var(--muted); }
.tool-repo p { margin-bottom: 3px; }
.tool-controls[hidden], .tool-entry[hidden] { display: none; }
@media (max-width: 650px) {
  .tool-controls { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .tool-entry { grid-template-columns: 43px minmax(0, 1fr); gap: 7px 12px; }
  .tool-mark { width: 43px; height: 43px; }
  .tool-repo { grid-column: 2; display: flex; flex-wrap: wrap; gap: 0 10px; }
}

.navbar .navbar-brand { padding-block: .2rem; }
.navbar .lab-brand { display: flex; align-items: center; gap: clamp(8px, 1.2vw, 14px); }
.navbar .lab-brand-mark { display: block; flex: none; width: clamp(42px, 5vw, 58px); height: auto; }
.lab-brand-text { display: grid; gap: 3px; line-height: 1.12; }
.lab-brand-name { color: var(--ink); font-size: clamp(.88rem, 2.6vw, 1.05rem); font-weight: 700; }
.lab-brand-pi { color: var(--purple); font-size: .73rem; font-weight: 600; }

.outreach-intro { margin-bottom: clamp(24px, 4vw, 44px); }
.outreach-invite {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem .9rem;
  min-height: 44px;
  background: var(--purple);
  color: white;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
}

.outreach-invite svg { flex: none; }
.outreach-page main > section { margin-top: clamp(36px, 6vw, 64px); }
.outreach-page main > section > h2 + p { color: var(--muted); margin-bottom: 20px; }
.outreach-video {
  display: grid;
  --outreach-gap: clamp(18px, 4vw, 48px);
  grid-template-columns: minmax(0, calc((100% - var(--outreach-gap)) * .37447)) minmax(0, 1fr);
  gap: var(--outreach-gap);
  align-items: center;
  max-width: 1030px;
  border-top: 1px solid var(--rule);
  padding-block: 20px;
}
.outreach-page #public-engagement {
  padding: clamp(14px, 3vw, 32px);
  background: #f7edf2;
}
#public-engagement .outreach-video { max-width: none; }
.outreach-video h3 { font: 600 clamp(1.2rem, 2.15vw, 1.6rem)/1.2 Spectral, Georgia, serif; }
.outreach-copy p { margin-bottom: .65rem; }
.outreach-copy p:last-child, .outreach-media p { margin: 0; }
.outreach-meta { color: var(--purple); font-size: .88rem; font-weight: 650; }
.outreach-video-link { position: relative; display: block; color: white; }
.outreach-video-link:hover { color: white; }
.outreach-thumbnail { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ink); }
.outreach-play {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: white;
  background: var(--ink);
}
.outreach-play::before { content: ""; width: 0; height: 0; border-block: 6px solid transparent; border-left: 9px solid currentColor; margin-left: 2px; }
.outreach-video-link:focus-visible .outreach-play { background: var(--purple); }
@media (max-width: 650px) {
  .outreach-video { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .outreach-media { width: 80%; }
}


.grant-expand-hint { margin: 0 0 8px; color: var(--muted); font-size: .94rem; font-weight: 600; }
.funded-project .project-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr));
  gap: 14px 20px;
  margin-bottom: 0;
  padding-top: 16px;
}
.project-facts-grid dt { color: var(--ink); font-size: .82rem; }
.project-facts-grid dd { margin: 4px 0 0; }
.project-facts-grid img { max-width: 100%; max-height: 48px; object-fit: contain; }

.people-group { display: grid; grid-template-columns: minmax(160px, .7fr) minmax(0, 3fr); gap: 16px 30px; padding: 22px 0; border-top: 1px solid var(--rule); }
.people-group h2 { margin: 0; font-size: 1.35rem; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 116px), 1fr)); gap: 18px 12px; margin: 0; padding: 0; list-style: none; }
.people-trigger { display: grid; justify-items: start; gap: 7px; width: 100%; padding: 0; border: 0; background: transparent; color: var(--ink); text-align: left; font: 700 .88rem/1.3 "DM Sans", sans-serif; cursor: pointer; }
.people-trigger:hover { color: var(--purple); text-decoration: underline; }
.people-portrait { display: grid; width: min(112px, 100%); aspect-ratio: 1; place-items: center; overflow: hidden; border-radius: 6px; background: var(--lavender); color: var(--purple); }
.people-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.people-avatar { font-size: 2rem; line-height: 1; }
.people-dialog { position: fixed; width: min(920px, calc(100% - 32px)); max-height: 88dvh; padding: 32px; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); color: var(--ink); }
.people-dialog::backdrop { background: rgb(27 32 48 / 55%); }
.people-dialog h2 { padding-right: 28px; margin-bottom: 5px; }
.people-dialog .people-role { color: var(--muted); }
.people-close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 4px; background: var(--lavender); color: var(--purple); font-size: 1.35rem; cursor: pointer; }
.people-dialog .team-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.people-dialog .team-links :is(a,button) { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--rule); border-radius: 4px; font-size: .86rem; text-decoration: none; }
.people-grid:has(.people-profile-lead) { grid-template-columns: minmax(0, 1fr); }
.people-profile-lead .people-trigger { width: min(154px, 100%); font-size: 1.05rem; }
.people-profile-lead .people-portrait { width: min(154px, 100%); }
.people-profile-layout { display: grid; grid-template-columns: minmax(0, 248px) minmax(0, 1fr); align-items: start; gap: clamp(20px, 4vw, 42px); }
.people-profile-sidebar .people-portrait { width: 100%; aspect-ratio: 4 / 5; }
.people-profile-main h2 { font-size: clamp(1.45rem, 3.8vw, 2.45rem); overflow-wrap: anywhere; }
.people-profile-main .people-role { margin: 0 0 14px; }
.people-profile-section { padding: 12px 0; border-top: 1px solid var(--rule); }
.people-profile-section h3 { margin: 0 0 6px; color: var(--purple); }
.people-profile-section :is(ul,p):last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .people-group { grid-template-columns: minmax(0, 1fr); }
  .people-dialog { padding: 22px; }
  .people-profile-layout { grid-template-columns: minmax(0, 1fr); }
  .people-profile-sidebar .people-portrait { width: min(144px, 100%); }
}


.people-history { display: block; padding: 28px clamp(14px, 3vw, 32px); background: var(--history-bg); border-color: var(--history-rule); }
.people-alumni { --history-bg: #faedf2; --history-head: #f3dbe6; --history-rule: #e7cbd7; --history-ink: #71314e; }
.people-visiting { --history-bg: #edf4f2; --history-head: #dcebe6; --history-rule: #c9ded6; --history-ink: #285747; }
.people-history + .people-history { margin-top: 20px; }
.people-history h2 { margin: 0 0 16px; }
.people-history-scroll { overflow-x: auto; }
.people-history-scroll:focus-visible { outline: 2px solid var(--history-ink); outline-offset: 3px; }
.people-history .people-history-table {
  --bs-table-bg: var(--history-bg);
  --bs-table-color: var(--ink);
  --bs-table-border-color: var(--history-rule);
  width: 100%; margin: 0; border-collapse: collapse; text-align: left;
}
.people-history .people-history-table :is(th,td) { padding: 11px 12px; vertical-align: middle; font-size: .86rem; background: var(--history-bg); }
.people-history .people-history-table thead th { background: var(--history-head); color: var(--history-ink); font-size: .78rem; font-weight: 700; }
.people-history-table tbody tr { border-top: 1px solid var(--history-rule); }
.people-history-table tbody th { color: var(--ink); }
.people-period { white-space: nowrap; }
.alumni-thesis-cell { white-space: nowrap; }
.alumni-thesis { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border: 1px solid #dcb4c6; border-radius: 4px; background: var(--history-head); color: #71314e; font-weight: 700; text-decoration: none; }
.alumni-thesis-pending, .alumni-thesis-pending:hover { background: transparent; color: var(--muted); }
.alumni-next { color: var(--muted); }


.home-news ul { list-style: none; padding: 0; margin: 0; max-width: 900px; }
.home-news li { display: grid; grid-template-columns: clamp(72px, 13vw, 144px) minmax(0, 1fr); align-items: start; gap: clamp(12px, 2.5vw, 24px); padding: 14px 0; border-top: 1px solid var(--rule); }
.home-news li[hidden] { display: none; }
.home-news li:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.home-news li img { display: block; width: 100%; aspect-ratio: 1.65; object-fit: cover; border-radius: 4px; }
.home-news li h3 { margin: 2px 0 4px; }
.home-news li p { margin: 0; color: var(--muted); font-size: .92rem; }
.home-news li .home-news-date { color: var(--purple); font-size: .8rem; font-weight: 700; }

.home-news-navigation { display: flex; gap: 8px; margin-top: 6px; }
.home-news-navigation button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); color: var(--purple); cursor: pointer; }


.contact-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; max-width: 930px; }
.contact-panel { padding: clamp(16px, 3vw, 26px); border: 1px solid var(--rule); background: #f5f1f8; }
.contact-map { grid-column: 1 / -1; }
.contact-map iframe { display: block; width: 100%; height: clamp(280px, 42vw, 430px); border: 1px solid var(--rule); }
.contact-panel > :last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
}


.contact-float { position: fixed; right: 0; top: 50%; z-index: 20; display: grid; overflow: hidden; border-radius: 6px 0 0 6px; background: var(--purple); color: white; font-weight: 700; text-decoration: none; }
.contact-float a { display: grid; grid-template-columns: 1.15em auto; align-items: center; gap: .45em; text-align: left; padding: 7px 10px; color: white; font-size: .82rem; text-decoration: none; }
.contact-float a + a { border-top: 1px solid rgb(255 255 255 / 28%); }

@media (max-width: 700px) {
  .contact-float { top: auto; right: 10px; bottom: 10px; border-radius: 6px; }
}

#contact-email { scroll-margin-top: 85px; }



.join-views { width: fit-content; flex-wrap: wrap; margin-bottom: 20px; }
.join-panel { max-width: 930px; margin-bottom: 24px; }
.join-panel[hidden] { display: none; }
.join-panel h2 { margin-top: 24px; }
.thesis-meta { color: var(--muted); font-size: .9rem; }

/* Shared states for filled actions. */
:is(.primary, .outreach-invite, .contact-float a):hover { background: white; color: var(--purple); box-shadow: inset 0 0 0 1px var(--purple); }
:is(.primary, .outreach-invite, .contact-float a):active { background: #2b194a; color: white; }
:is(.primary, .outreach-invite, .contact-float a):focus-visible {
  background: white;
  color: var(--purple);
  outline: 2px solid var(--purple);
  outline-offset: -3px;
}

/* Shade the existing fill without changing the text or the selected state. */
@media (hover: hover) {
  button:enabled:hover,
  summary:hover,
  .lens-selector label:hover,
  :is(.publication-scholar, .alumni-thesis[href], .people-dialog .team-links a):hover,
  .research-map-pin:hover span,
  .outreach-video-link:hover .outreach-play {
    box-shadow: inset 0 0 0 100vmax rgb(0 0 0 / 9%);
  }
}

/* Project details use a shared facts block and full-width institution row. */
.funded-project .project-institutions { grid-area: 3 / 1 / 4 / -1; margin-top: 24px; padding: 14px 0 0; border-top: 1px solid var(--rule); background: transparent; }
.project-institution-logos { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; max-width: none; }
.project-institutions .project-partner img { width: clamp(72px, 11vw, 128px); height: 46px; object-fit: contain; }
.funded-project .project-funder-fact .institution-link img { width: min(100%, 150px); height: 64px; }
.project-facts-grid .project-source { display: inline-block; margin-top: 4px; font-size: .79rem; }
@media (min-width: 661px) {
  .funded-project { grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); }
  .funded-project .project-details-column { grid-area: 2 / 1; }
  .funded-project .project-map-column { grid-area: 2 / 2; }
}
@media (max-width: 660px) {
  .funded-project .project-institutions { grid-area: auto; margin-top: 8px; }
}

.project-host { display: grid; justify-items: start; font-size: .78rem; color: var(--muted); }
.project-funding-share { display: block; font-size: .82rem; }
.contact-units-logo { display: block; width: 140px; max-width: 100%; margin-bottom: 16px; }
