/* Molecular Infection Microbiology – Popp lab website (family look with Molinfect teal)
   Light design only: white page, because the molecular movies and schematics have white backgrounds.
   Family look with molmicro: white paper, Fira Sans (self-hosted, OFL-1.1); Molinfect teal accent from the lab logo. */
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/fira-sans-latin-300-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/fira-sans-latin-ext-300-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Fira Sans"; font-style: italic; font-weight: 300; font-display: swap; src: url(../fonts/fira-sans-latin-300-italic.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Fira Sans"; font-style: italic; font-weight: 300; font-display: swap; src: url(../fonts/fira-sans-latin-ext-300-italic.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/fira-sans-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/fira-sans-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Fira Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/fira-sans-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Fira Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/fira-sans-latin-ext-400-italic.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/fira-sans-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/fira-sans-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Fira Sans"; font-style: italic; font-weight: 500; font-display: swap; src: url(../fonts/fira-sans-latin-500-italic.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Fira Sans"; font-style: italic; font-weight: 500; font-display: swap; src: url(../fonts/fira-sans-latin-ext-500-italic.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/fira-sans-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/fira-sans-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Fira Sans"; font-style: italic; font-weight: 600; font-display: swap; src: url(../fonts/fira-sans-latin-600-italic.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Fira Sans"; font-style: italic; font-weight: 600; font-display: swap; src: url(../fonts/fira-sans-latin-ext-600-italic.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --ink: #1e2024;
  --ink-2: #3c4047;
  --muted: #666b73;
  --paper: #ffffff;
  --panel: #f3f5f7;
  --line: #d2d6da;         /* decorative rules and frames only (1.46:1 on white) */
  --control: #80868f;      /* borders of form fields and buttons: 3.67:1 on white, 3.36:1 on --panel (WCAG 1.4.11 needs 3:1) */
  --accent: #006080;       /* Molinfect teal */
  --accent-strong: #004860;
  --accent-tint: #e6f3f6;
  --accent-2: #30a0b8;     /* cyan highlight from lab logo */
  --dark: #15171b;
  --focus: #006080;
  --measure: 46rem;     /* about 90 characters per line (6 Oct 2026; before: 40rem) */
  --wide: 76rem;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 9rem; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 1.0625rem; line-height: 1.62; font-weight: 400; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent-strong); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0 0 0.55em; line-height: 1.18; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); font-weight: 300; letter-spacing: -0.015em; line-height: 1.1; }
h2 { font-size: clamp(1.55rem, 2.5vw, 2.05rem); font-weight: 400; letter-spacing: -0.008em; }
h3 { font-size: 1.2rem; font-weight: 500; }
h4 { font-size: 1.02rem; font-weight: 600; }
p { margin: 0 0 1em; }
b, strong { font-weight: 600; }
.lede { font-size: clamp(1.14rem, 1.55vw, 1.3rem); line-height: 1.5; color: var(--ink-2); font-weight: 300; max-width: 52rem; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -3rem; background: var(--ink); color: #fff; padding: 0.5rem 0.9rem; z-index: 100; }
.skip-link:focus { top: 0.6rem; color: #fff; }
.bilayer { height: 1px; border: 0; margin: 0; background: var(--line); }
.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: var(--measure); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.94); backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px); }
.site-header .bar { display: flex; align-items: center; gap: 1.2rem; min-height: 4.9rem; }
.brand { display: flex; align-items: center; gap: 0.8rem; flex: 0 0 auto; text-decoration: none; color: var(--ink); }
.brand img { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; font-weight: 600; font-size: 1rem; letter-spacing: 0.16em; text-transform: uppercase; }
.brand-text small { font-weight: 300; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: none; color: var(--muted); margin-top: 0.15rem; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 0.1rem; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { display: block; padding: 0.45rem 0.55rem; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; border-radius: 3px; }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--control); color: var(--ink); font: inherit; font-weight: 500; padding: 0.4rem 0.8rem; border-radius: 3px; cursor: pointer; }
@media (max-width: 1180px) and (min-width: 901px) {
  .nav a { padding: 0.4rem 0.36rem; font-size: 0.84rem; }
  .brand-text { font-size: 0.9rem; letter-spacing: 0.1em; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 0.5rem var(--gutter) 1rem; }
  .nav a { padding: 0.7rem 0.2rem; font-size: 1.05rem; }
  .brand img { height: 42px; }
  .brand-text { display: flex; font-size: 0.88rem; }
}

/* buttons */
.btn { display: inline-block; font: inherit; font-weight: 500; padding: 0.68rem 1.2rem; border-radius: 3px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; line-height: 1.2; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); color: #fff; }
.btn-ghost { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-ghost:hover { background: var(--accent-tint); color: var(--accent-strong); }
.icon-btn { background: rgba(255,255,255,0.9); color: var(--ink); border: 1px solid var(--control); border-radius: 999px; padding: 0.3rem 0.85rem; font: inherit; font-size: 0.85rem; cursor: pointer; }
.icon-btn:hover { border-color: var(--ink-2); }

/* hero: the white sky of the movie is the page; the headline stands in it */
.hero { position: relative; overflow: hidden; }
.hero-text { position: relative; z-index: 2; padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.hero-text > * { max-width: min(36rem, 39%); }
.hero h1 { margin-bottom: 0.4em; font-size: clamp(2.1rem, 3.7vw, 3.1rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.hero-media { position: relative; margin-top: -17vw; z-index: 1; }
.hero-media video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-media video { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%); mask-image: linear-gradient(to bottom, transparent 0, #000 14%); }
.hero-media .icon-btn { position: absolute; left: var(--gutter); bottom: 1rem; z-index: 3; }
@media (min-width: 1500px) { .hero-media { margin-top: -15.5rem; } }
@media (max-width: 1100px) { .hero-media { margin-top: -9vw; } .hero-text > * { max-width: min(34rem, 44%); } }
@media (max-width: 820px) { .hero-media { margin-top: 1.5rem; } .hero-text > * { max-width: 36rem; } }

/* page scaffolding */
main { display: block; }
.page-head { padding: clamp(2.5rem, 6vw, 4.2rem) 0 clamp(1.4rem, 3.5vw, 2.3rem); }
.page-head h1 { margin-bottom: 0.35em; max-width: 22ch; }
.section { padding: clamp(2.8rem, 6.5vw, 5rem) 0; }
.section + .section { padding-top: 0; }
.section--panel { background: var(--panel); padding: clamp(2.8rem, 6.5vw, 5rem) 0 !important; margin-bottom: clamp(2.8rem, 6.5vw, 5rem); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--ink); }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 500; }
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
@media (max-width: 860px) { .split, .split--even { grid-template-columns: 1fr; } }

/* figures */
.figure { margin: 1.6rem 0; }
.figure img, .figure video { width: 100%; }
.figure figcaption, figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 0.5rem; line-height: 1.45; }
.figure--frame img, .figure--frame video { border: 1px solid var(--line); }
.figure--plain { margin: 0; }

/* topic index */
.topic-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.2rem; }
.topic-index li { border-top: 1px solid var(--line); }
.topic-index a { display: block; padding: 1rem 0 1.4rem; text-decoration: none; color: var(--ink); height: 100%; }
.topic-name { display: block; font-size: 0.88rem; font-weight: 600; color: var(--accent); margin: 0 0 0.2rem; }
.topic-q { display: block; font-size: 1.14rem; font-weight: 400; line-height: 1.3; }
.topic-index a:hover .topic-q { color: var(--accent-strong); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
@media (max-width: 860px) { .topic-index { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .topic-index { grid-template-columns: 1fr; } }

/* research map (research overview page only) */
.topic-map { position: relative; margin: clamp(2rem, 5vw, 3.5rem) 0 2rem; }
.topic-map img { width: 100%; height: auto; }
.topic-map-note { margin: -1.2rem 0 2rem; }
.topic-map .spot { position: absolute; background: #fff; color: var(--accent); border: 1.5px solid var(--accent); text-decoration: none; font-weight: 500; font-size: clamp(0.7rem, 1.1vw, 0.92rem); padding: 0.12em 0.7em; border-radius: 999px; white-space: nowrap; }
.topic-map .spot:hover, .topic-map .spot:focus-visible { background: var(--accent); color: #fff; }
@media (max-width: 560px) { .topic-map .spot { font-size: 0.6rem; padding: 0.05em 0.45em; } }

/* news list */
.newslist { list-style: none; margin: 0; padding: 0; }
.newslist li { display: grid; grid-template-columns: 6.6rem 1fr; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.newslist li:first-child { padding-top: 0; }
.newslist time, .date { font-size: 0.88rem; color: var(--muted); padding-top: 0.12rem; }
.newslist a { color: var(--ink); text-decoration: none; font-weight: 500; }
.newslist a:hover { color: var(--accent); text-decoration: underline; }
.newslist .kicker { display: block; color: var(--muted); font-size: 0.88rem; font-weight: 400; margin-top: 0.1rem; }

/* movies */
.movie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.4rem; }
.movie-tile { text-decoration: none; color: var(--ink); display: block; }
.movie-tile .thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); }
.movie-tile .thumb img { width: 100%; height: 100%; object-fit: cover; }
.movie-tile .len { position: absolute; right: 0.5rem; bottom: 0.5rem; background: rgba(30,32,36,0.82); color: #fff; font-size: 0.78rem; font-weight: 500; padding: 0.08rem 0.45rem; border-radius: 2px; }
.movie-tile h3 { font-size: 1.02rem; font-weight: 500; margin: 0.6rem 0 0; }
.movie-tile:hover h3 { color: var(--accent); }
.player .wrap { padding-bottom: clamp(1.5rem, 3vw, 2.2rem); }
.player video { width: 100%; aspect-ratio: 16 / 9; background: #fff; border: 1px solid var(--line); }
.player-meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2rem; margin-top: 1.3rem; }
.player-meta h2 { font-size: clamp(1.4rem, 2.3vw, 1.85rem); margin-bottom: 0.3em; }
.player-meta .facts { font-size: 0.92rem; color: var(--muted); }
@media (max-width: 760px) { .player-meta { grid-template-columns: 1fr; gap: 0.4rem; } }
.playlist-group { font-size: 1.3rem; font-weight: 500; margin: 2.8rem 0 0.2rem; padding-top: 1rem; border-top: 1px solid var(--ink); }
.playlist-group:first-child { margin-top: 0; }
.playlist { list-style: none; margin: 0; padding: 0; }
.playlist li + li { border-top: 1px solid var(--line); }
.playlist button { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; }
.playlist button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.playlist .thumb { aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); }
.playlist .thumb img { width: 100%; height: 100%; object-fit: cover; }
.playlist h3 { margin: 0 0 0.2rem; font-size: 1.1rem; }
.playlist p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.playlist .meta { display: block; font-size: 0.86rem; color: var(--muted); margin-top: 0.35rem; }
.playlist button:hover h3, .playlist button[aria-current="true"] h3 { color: var(--accent); }
.playlist button[aria-current="true"] .thumb { outline: 3px solid var(--accent); outline-offset: -3px; }

/* news page */
.news-item { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: clamp(1rem, 3vw, 2.5rem); padding: 2.2rem 0; border-top: 1px solid var(--line); }
.news-item .date { padding-top: 0.4rem; line-height: 1.5; }
.news-item h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin-bottom: 0.5em; }
.news-body { max-width: var(--measure); }
.news-body figure { margin: 1.3rem 0; }
.news-body figure video, .news-body figure img { display: block; width: auto; max-width: 100%; max-height: 26rem; border: 1px solid var(--line); }
.news-body .ref { font-size: 0.92rem; color: var(--muted); border-left: 2px solid var(--accent); padding-left: 0.8rem; margin-top: 1rem; }
@media (max-width: 700px) { .news-item { grid-template-columns: 1fr; gap: 0.3rem; } }

/* publications */
.pub-tools { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; padding: 1rem 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); position: sticky; top: 4.9rem; background: #fff; z-index: 5; }
.seg { display: inline-flex; border: 1px solid var(--control); border-radius: 4px; overflow: hidden; flex-wrap: wrap; }
.seg button { font: inherit; font-size: 0.92rem; font-weight: 500; background: transparent; color: var(--ink); border: 0; padding: 0.45rem 0.8rem; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--control); }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.pub-search { flex: 1 1 14rem; max-width: 22rem; font: inherit; font-size: 0.95rem; padding: 0.45rem 0.7rem; border: 1px solid var(--control); border-radius: 4px; background: #fff; color: var(--ink); }
.pub-count { font-size: 0.9rem; color: var(--muted); margin-left: auto; }
.pub-year { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: clamp(1rem, 3vw, 2.5rem); padding: 1.6rem 0 0.4rem; }
.pub-year > h2 { font-size: 1.6rem; font-weight: 300; color: var(--muted); margin: 0; position: sticky; top: 10rem; align-self: start; }
.pubs { list-style: none; margin: 0; padding: 0; }
.pub { padding: 0 0 1.15rem; max-width: 48rem; }
/* the type filter and the search hide entries and empty years; display:grid above would otherwise override [hidden] */
.pub-year[hidden], .pub[hidden] { display: none; }
.pub .t { font-weight: 500; color: var(--ink); text-decoration: none; font-size: 1.02rem; line-height: 1.4; }
.pub a.t:hover { color: var(--accent); text-decoration: underline; }
.pub .a { font-size: 0.92rem; color: var(--ink-2); margin-top: 0.2rem; }
.pub .a b { font-weight: 600; color: var(--ink); }
.pub .j { font-size: 0.92rem; color: var(--muted); }
.pub .j cite { font-style: italic; color: var(--ink-2); }
.pub .kind, .refs .kind { font-size: 0.75rem; font-weight: 500; color: var(--muted); border: 1px solid var(--line); padding: 0 0.4rem; border-radius: 2px; margin-left: 0.4rem; white-space: nowrap; }
@media (max-width: 700px) { .pub-year { grid-template-columns: 1fr; } .pub-year > h2 { position: static; } .pub-tools { position: static; } }

/* people */
.people-group { padding: 1.6rem 0 0.6rem; }
.people-group > h2 { font-size: 1.3rem; font-weight: 500; margin-bottom: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--ink); }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1.8rem 1.5rem; }
.person { display: grid; grid-template-columns: 5.4rem 1fr; gap: 1rem; align-items: center; }
.person img, .person .initials { width: 5.4rem; height: 5.4rem; border-radius: 50%; object-fit: cover; background: var(--panel); }
.person .initials { display: grid; place-items: center; font-weight: 300; color: var(--accent); font-size: 1.5rem; border: 1px solid var(--line); }
.person h3 { font-size: 1.02rem; margin: 0; }
.person .role { font-size: 0.9rem; color: var(--muted); }
.person .mail { font-size: 0.88rem; }
.pi-card { display: grid; grid-template-columns: 9rem 1fr; gap: 1.6rem; align-items: center; padding: 0.5rem 0 0.5rem; }
.pi-card img { width: 9rem; height: 9rem; border-radius: 50%; object-fit: cover; }
@media (max-width: 520px) { .pi-card { grid-template-columns: 6rem 1fr; } .pi-card img { width: 6rem; height: 6rem; } }
.alumni { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0.5rem 2rem; align-items: start; }
.alumni h3 { font-size: 1.02rem; margin: 0.6rem 0 0.5rem; }
.alumni ul { list-style: none; margin: 0; padding: 0; }
.alumni li { display: grid; grid-template-columns: 6.6rem 1fr; gap: 0.6rem; padding: 0.28rem 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.alumni li span:first-child { color: var(--muted); font-size: 0.88rem; padding-top: 0.08rem; }
.alumni { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); margin-bottom: 1.4rem; }
.alumni li small, .alumni-more li small { display: block; color: var(--muted); font-size: 0.86rem; line-height: 1.35; padding: 0.1rem 0 0.15rem; }
/* collapsible thesis lists (Master, Bachelor) */
.alumni-more { border-top: 1px solid var(--line); }
.alumni-more:last-of-type { border-bottom: 1px solid var(--line); }
.alumni-more summary { cursor: pointer; padding: 0.7rem 0; font-size: 1.02rem; font-weight: 500; color: var(--ink); }
.alumni-more summary span { color: var(--muted); font-weight: 400; }
.alumni-more summary:hover { color: var(--accent); }
.alumni-more summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.alumni-more ul { list-style: none; margin: 0 0 1rem; padding: 0; columns: 17rem; column-gap: 2rem; }
.alumni-more li { display: grid; grid-template-columns: 6.6rem 1fr; gap: 0.6rem; padding: 0.28rem 0; border-top: 1px solid var(--line); font-size: 0.95rem; break-inside: avoid; }
.alumni-more li span:first-child { color: var(--muted); font-size: 0.88rem; padding-top: 0.08rem; }
.leaders { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.5rem; }
/* junior research groups (home page and People page) */
.leader { display: grid; grid-template-columns: 5.4rem 1fr; gap: 1.1rem; align-items: start; background: var(--panel); border-left: 3px solid var(--accent); padding: 1.2rem 1.3rem; }
.leader img { width: 5.4rem; height: 5.4rem; border-radius: 50%; object-fit: cover; }
.leader h3 { font-size: 1.12rem; margin: 0 0 0.1rem; }
.leader .who { font-weight: 500; color: var(--ink); font-size: 0.95rem; }
.leader p { font-size: 0.93rem; color: var(--ink-2); margin: 0.4rem 0 0.5rem; }
.leader a { font-weight: 500; font-size: 0.93rem; }
@media (max-width: 520px) { .leader { grid-template-columns: 4rem 1fr; padding: 1rem; } .leader img { width: 4rem; height: 4rem; } }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1.4rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery figcaption b { color: var(--ink); font-weight: 500; }

/* prose */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: 0.3rem 0; }
.refs { list-style: none; padding: 0; margin: 1rem 0 0; font-size: 0.93rem; max-width: 56rem; }
.refs li { padding: 0.6rem 0; border-top: 1px solid var(--line); }
.refs a { color: var(--ink); font-weight: 500; text-decoration: none; }
.refs a:hover { color: var(--accent); text-decoration: underline; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 0.5rem 0; border-top: 1px solid var(--line); }
.timeline li span:first-child { color: var(--muted); font-size: 0.92rem; padding-top: 0.06rem; }
.logos { display: flex; flex-wrap: wrap; gap: 1.7rem 2.6rem; align-items: center; }
.logos img { height: 76px; width: auto; max-width: 100%; }
.callout { background: var(--panel); padding: clamp(1.4rem, 3vw, 2rem); }
.callout h3 { margin-bottom: 0.4em; }
.photo-band { margin: 0; }
.photo-band img { width: 100%; max-height: 36rem; object-fit: cover; }

/* instruments */
.instrument-row, .instrument-cards { display: grid; grid-template-columns: 0.72fr 1fr 0.72fr; gap: 1.5rem; align-items: end; }
.instrument { margin: 0; }
.instrument video { width: 100%; background: var(--panel); }
.instrument figcaption { font-size: 0.95rem; font-weight: 500; color: var(--ink); margin-top: 0.5rem; }
.instrument-card h3 { margin: 0.8rem 0 0.2rem; }
.instrument-card p { margin: 0 0 0.3rem; }
@media (max-width: 700px) { .instrument-row { grid-template-columns: 1fr 1fr; } .instrument-row .instrument:nth-child(2) { grid-column: 1 / -1; order: -1; } .instrument-cards { grid-template-columns: 1fr; max-width: 28rem; } }

/* research pages */
.topic-rows { margin-top: 1rem; }
/* research overview: intro in two columns, then the map, then one card per topic */
.research-intro { columns: 2 22rem; column-gap: clamp(2rem, 5vw, 4.5rem); max-width: none; }
.research-intro p { break-inside: avoid; margin-top: 0; }
.topic-map { margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.topic-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem); margin: 1.6rem 0 clamp(2rem, 5vw, 3rem); }
.topic-card .thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); margin-bottom: 0.9rem; }
.topic-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.topic-card:hover .thumb img { transform: scale(1.03); }
.topic-card h3 { font-size: 1.2rem; line-height: 1.3; margin: 0 0 0.5em; }
.topic-card h3 a { color: var(--ink); text-decoration: none; }
.topic-card h3 a:hover { color: var(--accent); }
.topic-card p { font-size: 0.97rem; }
@media (max-width: 980px) { .topic-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .topic-cards { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .topic-card .thumb img { transition: none; } }
.topic-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding: clamp(1.8rem, 4vw, 2.8rem) 0; border-top: 1px solid var(--line); align-items: start; }
.topic-row .thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); }
.topic-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.topic-row h2 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); margin-bottom: 0.45em; }
.topic-row h2 a { color: var(--ink); text-decoration: none; }
.topic-row h2 a:hover { color: var(--accent); }
.topic-row p { max-width: var(--measure); }
.proj-list { margin: 0; padding-left: 1.1rem; font-size: 0.95rem; }
@media (max-width: 760px) { .topic-row { grid-template-columns: 1fr; } }
.research-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding: clamp(2rem, 5vw, 3.2rem) 0; border-top: 1px solid var(--line); align-items: start; }
@media (max-width: 860px) { .research-block { grid-template-columns: 1fr; } }
.subnav { display: flex; flex-wrap: wrap; gap: 0.3rem 0.4rem; margin-bottom: 1.8rem; font-size: 0.9rem; font-weight: 500; }
.subnav a { color: var(--ink-2); text-decoration: none; padding: 0.22rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; }
.subnav a:hover { border-color: var(--accent); color: var(--accent); }
.subnav a[aria-current] { background: var(--accent); color: #fff; border-color: var(--accent); }
.subnav a:first-child { border-color: transparent; padding-left: 0; color: var(--accent); }
.topic-head h1 { max-width: 32ch; font-size: clamp(2rem, 3.8vw, 3rem); }
.topic-head .lede { max-width: 52rem; }
.topic-hero { margin: 0 0 2rem; }
.topic-media { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.2rem); align-items: start; margin: 0 0 2rem; }
.topic-media .topic-hero { margin: 0; }
.keyfig { margin: 0; }
.keyfig > a { display: block; }
.keyfig img { width: 100%; max-height: 30rem; object-fit: contain; object-position: top left; background: #fff; border: 1px solid var(--line); }
.keyfig-label { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 0.2rem; }
@media (max-width: 860px) { .topic-media { grid-template-columns: minmax(0, 1fr); } .keyfig img { max-height: none; } }
.topic-hero video { aspect-ratio: 16 / 9; background: #fff; border: 1px solid var(--line); }
.topic-intro { font-size: 1.08rem; }
.block-title { margin: clamp(2.5rem, 6vw, 4rem) 0 0.4rem; padding-top: 1.1rem; border-top: 1px solid var(--ink); }
.finding { padding: 1.8rem 0; border-bottom: 1px solid var(--line); max-width: 48rem; }
.finding--media { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.finding h3 { font-size: clamp(1.22rem, 1.9vw, 1.5rem); font-weight: 500; margin-bottom: 0.45em; }
.finding p { margin-bottom: 0.6em; }
.finding .cite { font-size: 0.9rem; }
.finding .figure { margin: 0; }
.finding .figure video, .finding .figure img { border: 1px solid var(--line); }
@media (max-width: 820px) { .finding--media { grid-template-columns: 1fr; } }
.keyfig { margin: 0 0 0.5rem; display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap; }
.keyfig .v { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 300; line-height: 1; color: var(--accent); letter-spacing: -0.015em; }
.keyfig .l { font-size: 0.88rem; color: var(--muted); }
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1.5rem; margin-top: 1.2rem; }
.project { background: var(--panel); border-left: 3px solid var(--accent); padding: 1.3rem 1.5rem; }
.project h3 { margin-bottom: 0.3em; }
.project .programme { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.6em; }
.project p:last-child { margin-bottom: 0; }
.topic-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.5rem; margin-top: 2.5rem; align-items: start; }
.topic-gallery .figure { margin: 0; }
.topic-gallery .figure video, .topic-gallery .figure img { border: 1px solid var(--line); }
.next-topic { margin-top: 3rem; font-size: 1.1rem; }

/* footer */
.site-footer { margin-top: clamp(3rem, 8vw, 5rem); padding: 2.2rem 0 2.6rem; font-size: 0.93rem; color: var(--muted); background: var(--panel); }
.site-footer .bilayer { display: none; }
.site-footer .cols { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; }
.site-footer img { height: 54px; width: auto; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.4rem 1.2rem; flex-wrap: wrap; justify-content: flex-end; }
.site-footer a { color: var(--ink-2); }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } .site-footer ul { justify-content: flex-start; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .pub-tools { display: none !important; } }

/* ---- version 5 ---- */
/* key numbers under the hero */
.numbers { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.keynums { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.keynums li + li { border-left: 1px solid var(--line); }
.keynums a { display: block; padding: 1.1rem 1rem 1rem; text-decoration: none; color: var(--ink); height: 100%; }
.keynums a:hover { background: var(--panel); }
.keynums .v { display: block; font-size: clamp(1.3rem, 1.9vw, 1.8rem); font-weight: 300; line-height: 1.05; color: var(--accent-2); letter-spacing: -0.01em; white-space: nowrap; }
.keynums .l { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 0.3rem; line-height: 1.3; }
@media (max-width: 980px) { .keynums { grid-template-columns: repeat(3, minmax(0, 1fr)); } .keynums li:nth-child(4) { border-left: 0; } .keynums li:nth-child(n+4) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .keynums { grid-template-columns: repeat(2, minmax(0, 1fr)); } .keynums li:nth-child(odd) { border-left: 0; } .keynums li:nth-child(n+3) { border-top: 1px solid var(--line); } .keynums li:nth-child(4) { border-left: 1px solid var(--line); } }
/* topic index with icons */
.topic-index a { display: grid; grid-template-columns: 4rem 1fr; gap: 0.9rem; align-items: center; }
.topic-index img { width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); background: #fff; }
.topic-index a:hover img { border-color: var(--accent); }
/* dark band (movies) */
.section--dark { background: var(--dark) center / cover no-repeat; color: #fff; position: relative; padding: clamp(2.8rem, 6.5vw, 5rem) 0 !important; margin: clamp(2.8rem, 6.5vw, 5rem) 0; isolation: isolate; }
.section--dark::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21,23,27,0.96) 0%, rgba(21,23,27,0.9) 55%, rgba(21,23,27,0.72) 100%); z-index: -1; }
.section--dark .section-head { border-top-color: rgba(255,255,255,0.5); }
.section--dark h2, .section--dark h3, .section--dark .movie-tile, .section--dark .movie-tile h3 { color: #fff; }
.section--dark .section-head a { color: #fff; }
.section--dark .movie-tile .thumb { border-color: rgba(255,255,255,0.18); }
.section--dark .movie-tile:hover h3 { color: #9fd3d5; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: #e6f0f0; color: var(--accent-strong); }
.story-teaser { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin-top: clamp(2rem, 4vw, 3rem); padding-top: clamp(1.5rem, 3vw, 2.2rem); border-top: 1px solid rgba(255,255,255,0.25); }
.story-teaser img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid rgba(255,255,255,0.18); }
.story-teaser h3 { font-size: clamp(1.4rem, 2.3vw, 1.9rem); font-weight: 400; margin-bottom: 0.3em; }
.story-teaser p { color: rgba(255,255,255,0.82); max-width: 30rem; }
@media (max-width: 760px) { .story-teaser { grid-template-columns: 1fr; } }
/* lab block on the home page; instruments at 4:5 */
.split--lab { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; }
.instrument video { aspect-ratio: 4 / 5; object-fit: cover; }
.instrument-row, .instrument-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.plain { list-style: none; padding: 0; margin: 0.4rem 0 1rem; }
.plain li { padding: 0.35rem 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.plain li:last-child { border-bottom: 1px solid var(--line); }
/* research map: loop clips over the round panels */
.topic-map .panel-loop { position: absolute; border-radius: 50%; object-fit: cover; opacity: 0; transition: opacity 0.35s ease; cursor: pointer; -webkit-mask-image: radial-gradient(circle, #000 62%, transparent 72%); mask-image: radial-gradient(circle, #000 62%, transparent 72%); }
.topic-map .panel-loop.on { opacity: 1; }
@media (max-width: 560px) { .topic-map .spot { display: none; } .topic-map .panel-loop { display: none; } }
/* key figures in findings: coral like the numbers strip */
.keyfig .v { color: var(--accent-2); }
.finding:target { scroll-margin-top: 6rem; }
/* tags */
.pub .kind, .refs .kind { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 45%, #fff); }
.pub .a .m, .refs .m { text-decoration: underline dotted; text-decoration-color: var(--muted); text-underline-offset: 0.2em; }
/* footer */
.footer-links { display: inline-block; margin-top: 0.3rem; }
/* topic pages: open questions, methods, people */
.topic-extras { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.topic-extras .block-title { margin-top: clamp(2rem, 5vw, 3.2rem); }
.questions ol { margin: 0.8rem 0 0; padding-left: 1.4rem; }
.questions li { padding: 0.5rem 0 0.5rem 0.4rem; border-top: 1px solid var(--line); font-size: 1.05rem; }
.questions li::marker { color: var(--accent-2); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.9rem; }
.chips a { text-decoration: none; color: var(--ink-2); font-size: 0.9rem; font-weight: 500; padding: 0.3rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }
.people-row { list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; gap: 0.8rem; }
.people-row li { display: grid; grid-template-columns: 4rem 1fr; gap: 0.9rem; align-items: center; font-size: 0.95rem; }
.people-row img, .people-row .initials { width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; background: var(--panel); }
.people-row .initials { display: grid; place-items: center; font-weight: 300; color: var(--accent); font-size: 1.2rem; border: 1px solid var(--line); }
@media (max-width: 860px) { .topic-extras { grid-template-columns: 1fr; } }
.topic-index-mobile { display: none; }
@media (max-width: 560px) { .topic-index-mobile { display: block; margin: -0.5rem 0 1rem; } }
/* scroll story (assembly.html) */
.story { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.story-stage { position: sticky; top: 5.4rem; }
.story-stage canvas, .story-fallback { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 1px solid var(--line); background: #fff; display: block; }
.story-stage canvas { display: none; }
.story.ready .story-stage canvas { display: block; }
.story.ready .story-fallback { display: none; }
.story-bar { height: 3px; background: var(--line); margin-top: 0.6rem; }
.story-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.1s linear; }
.story-time { font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; font-variant-numeric: tabular-nums; }
.story-steps { padding: 20vh 0 40vh; }
.story-step { min-height: 55vh; padding: 1rem 0 3rem; opacity: 0.35; transition: opacity 0.3s ease; }
.story-step.on { opacity: 1; }
.story-step h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin: 0.3rem 0 0.5em; }
.story-step p { font-size: 1.05rem; max-width: 34rem; }
.story-label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2); }
.story-step:first-child { min-height: 40vh; }
@media (max-width: 860px) {
  .story { display: block; }
  .story-stage { top: 4.6rem; background: #fff; padding-bottom: 0.4rem; z-index: 3; }
  .story-stage canvas, .story-fallback { aspect-ratio: 16 / 9; }
  .story-steps { padding: 1rem 0 30vh; }
  .story-step { min-height: 45vh; }
}
@media (prefers-reduced-motion: reduce) { .story-step { opacity: 1; } }

/* movies page: chapter bar and tile grid (v5) */
.chapters { position: sticky; top: 4.9rem; z-index: 5; background: rgba(255,255,255,0.96); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.chapters .wrap { display: flex; flex-wrap: wrap; gap: 0.2rem 1.4rem; padding-top: 0.55rem; padding-bottom: 0.55rem; font-size: 0.9rem; font-weight: 500; }
.chapters a { color: var(--ink-2); text-decoration: none; }
.chapters a:hover { color: var(--accent); }
.playlist-group { scroll-margin-top: 9rem; }
.playlist-group .muted { font-weight: 300; }
.playlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1.4rem 1.3rem; }
.playlist li + li { border-top: 0; }
.playlist button { display: block; padding: 0; }
.playlist .thumb { display: block; position: relative; }
.playlist .tile-text { display: block; }
.playlist .thumb .len { white-space: nowrap; }
.playlist .thumb .len { position: absolute; right: 0.5rem; bottom: 0.5rem; background: rgba(30,32,36,0.82); color: #fff; font-size: 0.78rem; font-weight: 500; padding: 0.08rem 0.45rem; border-radius: 2px; }
.playlist h3 { font-size: 1rem; margin: 0.55rem 0 0; line-height: 1.3; }
.player-extra { font-size: 0.9rem; color: var(--muted); }
.player-extra .dl, .player-extra .cite { display: block; margin-top: 0.4rem; }
.player-extra .cite { font-size: 0.85rem; }
.player-extra .dl a { font-weight: 500; }
@media (max-width: 700px) { .chapters { position: static; } .playlist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 0.8rem; } .playlist button { grid-template-columns: 1fr; } }
/* publications: highlights and year counts (v5) */
.highlights { list-style: none; margin: 0 0 2.2rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem 1.3rem; }
.highlights a { display: grid; grid-template-columns: 7rem 1fr; gap: 0.9rem; text-decoration: none; color: var(--ink); align-items: start; }
.highlights img { width: 7rem; height: 7rem; object-fit: cover; border: 1px solid var(--line); border-radius: 50%; }
.highlights .hl-text { display: block; font-size: 0.9rem; line-height: 1.4; }
.highlights .hl-journal { display: block; font-style: normal; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0.15rem 0 0.25rem; }
.highlights .hl-text b { display: block; font-weight: 500; color: var(--ink); font-size: 0.95rem; margin-bottom: 0.2rem; }
.highlights .hl-text span { display: block; color: var(--ink-2); }
.highlights .hl-text small { display: block; color: var(--muted); margin-top: 0.25rem; }
.highlights a:hover b { color: var(--accent); }
@media (max-width: 980px) { .highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .highlights { grid-template-columns: 1fr; } }
.pub-year > h2 .year-n { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 400; margin-top: 0.1rem; }
.lede .m { text-decoration: underline dotted; text-underline-offset: 0.2em; font-weight: 400; }
/* news tools */
.news-tools { margin-bottom: 0.5rem; }
.news-tools .years { display: flex; flex-wrap: wrap; gap: 0.2rem 0.8rem; font-size: 0.9rem; }
.news-tools .years a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.news-tools .years a:hover { color: var(--accent); }
.year-anchor { display: block; position: relative; top: -9rem; visibility: hidden; height: 0; }
.news-item[hidden] { display: none; }
/* people: project lines, alumni careers (v5) */
.person .proj { font-size: 0.86rem; line-height: 1.35; margin-top: 0.15rem; }
.person .proj a { color: var(--ink-2); }
.careers { margin-top: 1.6rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.careers h3 { font-size: 1.02rem; margin-bottom: 0.6rem; }
.careers ul { list-style: none; margin: 0; padding: 0; columns: 22rem; column-gap: 2rem; }
.careers li { font-size: 0.93rem; padding: 0.3rem 0; break-inside: avoid; border-top: 1px solid var(--line); }
/* jobs: thesis table */
.thesis-table { border-collapse: collapse; width: 100%; font-size: 0.93rem; margin: 0.6rem 0 1rem; }
.thesis-table th, .thesis-table td { text-align: left; padding: 0.45rem 0.6rem 0.45rem 0; border-top: 1px solid var(--line); vertical-align: top; }
.thesis-table th { font-weight: 500; color: var(--muted); font-size: 0.85rem; border-top: 0; }
/* print: CV page */
@media print {
  .chapters, .numbers, .skip-link, .icon-btn, .nav-toggle, video { display: none !important; }
  body { font-size: 11pt; color: #000; }
  a { color: #000; text-decoration: none; }
  .split { display: block; }
  .pubs .t, .refs a { font-weight: 600; }
}
.topic-head { position: relative; }
.topic-mark { display: none; }
@media (max-width: 860px) { .topic-mark { display: none; } }

/* HU seal in the header */
.hu-seal { flex: 0 0 auto; margin-left: 0.55rem; padding: 0; display: flex; align-items: center; }
.hu-seal img { height: 54px; width: 54px; display: block; object-fit: contain; }
@media (max-width: 900px) {
  .hu-seal { margin-left: 0.5rem; }
  .nav-toggle { margin-left: auto; }
  .hu-seal img { height: 48px; width: 48px; }
}
/* scroll-story feature on the home page */
.story-feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; border-top: 1px solid var(--ink); padding-top: clamp(1.4rem, 3vw, 2.2rem); }
.story-img { position: relative; display: block; }
.story-img img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); }
.story-play { position: absolute; left: 1rem; bottom: 1rem; background: var(--accent); color: #fff; font-weight: 500; font-size: 0.9rem; padding: 0.35rem 0.9rem; border-radius: 999px; }
.story-feature h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 300; margin: 0.1em 0 0.4em; }
.story-feature .lede { margin-bottom: 1.4rem; }
@media (max-width: 860px) { .story-feature { grid-template-columns: minmax(0, 1fr); } }
.modules-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* topic extras without open questions: two columns */
.topic-extras { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.topic-extras--two { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.topic-extras--two > div:last-child { grid-column: 2; }
/* map on the contact page */
.map { aspect-ratio: 4 / 3; max-width: 40rem; background: var(--panel); border: 1px solid var(--line); display: grid; place-items: center; margin: 1rem 0 1.5rem; }
.map-consent { padding: 1.5rem; text-align: center; max-width: 26rem; }
.map-consent p { font-size: 0.92rem; color: var(--ink-2); }
.map-consent a { display: block; margin-top: 0.8rem; font-size: 0.9rem; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* v5.3: funding badges, lab numbers, teaching and press pages, plain-language page */
.logo-badge { display: inline-block; border: 1px solid var(--line); color: var(--ink-2); font-size: 0.9rem; font-weight: 500; line-height: 1.25; padding: 0.55rem 0.9rem; border-radius: 3px; max-width: 16rem; }
.logos a { text-decoration: none; }
.logos a:hover .logo-badge { color: var(--accent); border-color: var(--accent); }
.logos--small { gap: 1.4rem 2.2rem; }
.logos--small .logo-badge { font-size: 0.82rem; padding: 0.4rem 0.7rem; }
.keynums--people { margin-bottom: 2.4rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.keynums--four { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 1.2rem 0 3rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.keynums--four li { padding: 1.1rem 1rem 1rem; }
.keynums--four li + li { border-left: 1px solid var(--line); }
@media (max-width: 980px) { .keynums--four { grid-template-columns: repeat(4, minmax(0, 1fr)); } .keynums--four li:nth-child(4) { border-left: 1px solid var(--line); } .keynums--four li:nth-child(n+4) { border-top: 0; } }
@media (max-width: 700px) { .keynums--four { grid-template-columns: 1fr 1fr; } .keynums--four li:nth-child(3) { border-left: 0; } .keynums--four li:nth-child(n+3) { border-top: 1px solid var(--line); } }
.modules-wrap { max-width: 64rem; margin-bottom: 2.5rem; }
.modules { margin-top: 0; }
.modules td:nth-child(1) { white-space: nowrap; color: var(--muted); }
.modules td:nth-child(3) { white-space: nowrap; }
.modules td:nth-child(2) b { font-weight: 600; }
.alumni-more .modules { margin-top: 0.6rem; }
.teach-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 1rem; }
.teach-topic h3 { font-size: 1rem; margin-bottom: 0.6rem; }
.movie-links { list-style: none; margin: 0; padding: 0; }
.movie-links li { border-top: 1px solid var(--line); }
.movie-links a { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.7rem; align-items: center; padding: 0.5rem 0; text-decoration: none; color: var(--ink); font-size: 0.93rem; }
.movie-links img { width: 5.5rem; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.movie-links small { display: block; color: var(--muted); font-size: 0.8rem; }
.movie-links a:hover { color: var(--accent); }
@media (max-width: 900px) { .teach-topics { grid-template-columns: 1fr; gap: 1.2rem; } }
.loop-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin: 0.5rem 0 1rem; }
.loop-row .figure { margin: 0; }
@media (max-width: 760px) { .loop-row { grid-template-columns: 1fr; } }
#press-list .news-item h2 a { text-decoration: none; color: var(--ink); }
#press-list .news-item h2 a:hover { color: var(--accent); }


/* Research overview head (4 Oct 2026): title on its own line, lede and second paragraph side by side, tops aligned */
.research-head h1 { margin-bottom: 0.5rem; }
.research-head-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.research-head-row .lede { margin: 0; }
.research-head-side { margin: 0.35rem 0 0; color: var(--ink-2); }
@media (max-width: 860px) { .research-head-row { display: block; } .research-head-side { margin-top: 1rem; } }

/* Mobile review of 4 Oct 2026 */
/* Research map: each round panel is a link to its topic page; the loop clip plays inside the link on hover. */
.topic-map .panel { position: absolute; display: block; border-radius: 50%; }
.topic-map .panel .panel-loop { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.topic-map .panel:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 560px) { .topic-map .panel .panel-loop { display: none; } }
/* Filter buttons (news, publications): separate chips on narrow screens instead of one box that breaks into two rows. */
@media (max-width: 700px) {
  .seg { display: flex; flex-wrap: wrap; gap: 0.4rem; border: 0; border-radius: 0; overflow: visible; width: 100%; }
  .seg button { border: 1px solid var(--control); border-radius: 999px; padding: 0.35rem 0.85rem; font-size: 0.88rem; }
  .seg button + button { border-left: 1px solid var(--control); }
  .seg button[aria-pressed="true"] { border-color: var(--accent); }
  .pub-tools { gap: 0.7rem 1rem; padding: 0.9rem 0; }
  .pub-search { flex: 1 1 100%; max-width: none; }
  .news-tools .years { flex: 1 1 auto; gap: 0.2rem 0.9rem; }
}
/* Module tables (teaching): one block per module on narrow screens. */
@media (max-width: 640px) {
  .modules-wrap { overflow-x: visible; }
  .thesis-table.modules thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .thesis-table.modules, .thesis-table.modules tbody, .thesis-table.modules tr, .thesis-table.modules td { display: block; width: auto; }
  .thesis-table.modules tr { padding: 0.75rem 0; border-top: 1px solid var(--line); }
  .thesis-table.modules td { border: 0; padding: 0; }
  .thesis-table.modules td:nth-child(1) { font-size: 0.85rem; color: var(--muted); }
  .thesis-table.modules td:nth-child(2) { font-size: 1rem; margin: 0.1rem 0 0.2rem; }
  .thesis-table.modules td:nth-child(3), .thesis-table.modules td:nth-child(4) { display: inline; color: var(--ink-2); }
  .thesis-table.modules td:nth-child(3)::after { content: ". "; }
}

/* job advertisements (Open positions) */
.job-ads { display: grid; gap: 1.5rem; max-width: 52rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.job-ad p { margin: 1.1em 0 0; }
.job-ad { border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: clamp(1.2rem, 3vw, 1.8rem); }
.job-ad h2 { margin-top: 0; font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.job-ad h3 { font-size: 1rem; margin: 1.1em 0 0.3em; }
.job-ad ul { margin: 0; padding-left: 1.2em; }
.job-facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1.2rem; margin: 0.6rem 0 0.4rem; font-size: 0.95rem; }
.job-facts dt { color: var(--muted); }
.job-facts dd { margin: 0; }

/* Review of 6 Oct 2026 */
/* one-sentence intros (junior research groups) may use the full width */
.intro-line { max-width: 64rem; }
/* map consent: the link inside the sentence stays inline (only the OpenStreetMap link below the button is a block) */
.map-consent p a { display: inline; margin: 0; font-size: inherit; }
/* Lab page: code and lab database (top of the page) */
.resource-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: clamp(1rem, 2.5vw, 1.6rem); margin: 1.4rem 0 clamp(1rem, 3vw, 2rem); }
.resource-card { display: flex; flex-direction: column; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.resource-card:hover, .resource-card:focus-visible { border-color: var(--accent); box-shadow: 0 6px 22px rgba(0, 60, 64, .12); transform: translateY(-2px); }
.resource-logo { display: flex; align-items: center; gap: 0.9rem; min-height: 6.5rem; padding: 1.2rem 1.6rem; background: var(--panel); border-bottom: 1px solid var(--line); }
.resource-logo img { width: auto; max-width: 70%; }
.resource-name { font-size: 1.6rem; font-weight: 500; letter-spacing: -0.01em; color: #1f2328; }
.resource-tag { margin-left: auto; align-self: flex-start; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent-strong); background: var(--accent-tint); border-radius: 999px; padding: 0.25rem 0.7rem; white-space: nowrap; }
.resource-body { display: flex; flex-direction: column; gap: 0.9rem; padding: 1.3rem 1.6rem 1.5rem; flex: 1; }
.resource-text { color: var(--ink-2); }
.resource-cta { margin-top: auto; font-weight: 500; color: var(--accent); }
.resource-card:hover .resource-cta { text-decoration: underline; text-underline-offset: 0.2em; }
.resource-url { font-size: 0.85rem; color: var(--muted); }
/* Research page: funding block with logo tiles */
.funding { padding: clamp(2rem, 5vw, 3.2rem) 0; border-top: 1px solid var(--line); }
.funding .prose h2 { margin-top: 0; }
.logo-grid-title { font-size: 0.9rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin: clamp(1.8rem, 4vw, 2.6rem) 0 0.9rem; }
.logo-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 1rem; }
.logo-grid li.wide { grid-column: span 2; }
.logo-grid a, .logo-grid li > span { display: flex; align-items: center; justify-content: center; height: 8.5rem; padding: 1.1rem 1.4rem; background: #fff;
  border: 1px solid var(--line); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.logo-grid a:hover, .logo-grid a:focus-visible { border-color: var(--accent); box-shadow: 0 4px 16px rgba(0, 60, 64, .10); }
.logo-grid img { width: auto; height: auto; max-width: 100%; object-fit: contain; }
.logo-grid .logo-badge { font-size: 0.9rem; }
@media (max-width: 980px) { .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .logo-grid a, .logo-grid li > span { height: 7.5rem; } }
@media (max-width: 640px) { .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; } .logo-grid a, .logo-grid li > span { height: 6.2rem; padding: 0.8rem; }
  .resource-logo { min-height: 5.5rem; padding: 1rem 1.2rem; } .resource-body { padding: 1.1rem 1.2rem 1.3rem; } }
/* Lab page: lab tour, methods (6 Oct 2026) */
.resource-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.resource-name { font-size: 1.4rem; }
.resource-logo img[src*="icon-"] { border-radius: 50%; }
.labtour { margin: 1.4rem 0 0; }
.labtour video { width: 100%; aspect-ratio: 16 / 9; background: #000; display: block; }
.methods-lede { margin-top: 0.4rem; }
.method-nav { margin: 1.2rem 0 0.5rem; }
.method-nav a:hover { border-color: var(--accent); color: var(--accent); }
.methods { display: grid; gap: 0; }
.method { padding: clamp(2rem, 5vw, 3.2rem) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 8rem; }
.method-head { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(1.2rem, 4vw, 3.5rem); align-items: start; margin-bottom: 1.4rem; }
.method h3, .ia-band h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin: 0 0 0.7rem; }
.method-text p { margin: 0 0 0.8rem; max-width: var(--measure); }
.method-links { list-style: none; padding: 0; margin: 0.2rem 0 0; display: grid; gap: 0.5rem; font-size: 0.95rem; }
.method-head .method-links { padding: 1rem 1.2rem; background: var(--panel); border-left: 3px solid var(--accent); margin-top: 2.6rem; }
.method-links a::after { content: " →"; }
/* media strip: figures share one row with equal heights (flex-grow = aspect ratio, set in --ar by build.py) */
.method-strip { display: flex; gap: 1rem; align-items: flex-start; }
.method-strip .method-figure { flex: var(--ar) 1 0%; min-width: 0; margin: 0; }
.method-figure video, .method-figure img, .ia-figure video { width: 100%; height: auto; display: block; background: #000; }
.method-figure figcaption { margin-top: 0.45rem; }
.ia-figure { margin: 0; }
@media (max-width: 760px) { .method-strip { flex-direction: column; } .method-strip .method-figure { flex: none; width: 100%; } }
/* image analysis: highlighted band */
.ia-band { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  margin: clamp(2rem, 5vw, 3.2rem) 0; padding: clamp(1.6rem, 4vw, 2.6rem); background: var(--accent-tint); border-left: 4px solid var(--accent); scroll-margin-top: 8rem; }
.ia-band .eyebrow { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-strong); margin: 0 0 0.4rem; }
.ia-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.3rem; }
/* further methods: cards */
.method-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.6rem); }
.method-card { display: flex; flex-direction: column; border: 1px solid var(--line); background: #fff; scroll-margin-top: 8rem; }
.method-card-figure { margin: 0; }
.method-card-figure img, .method-card-figure video { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; display: block; background: #000; }
.method-card-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.method-card h3 { font-size: 1.22rem; margin: 0 0 0.6rem; }
.method-card-body p { margin: 0 0 0.8rem; font-size: 0.97rem; }
.method-card-body .method-card-caption { font-size: 0.84rem; color: var(--muted); }
.method-card-body .method-links { margin-top: auto; padding-top: 0.3rem; }

@media (max-width: 860px) { .method-head, .ia-band { grid-template-columns: 1fr; } .method-head .method-links { margin-top: 0; } }
@media (max-width: 620px) { .method-cards { grid-template-columns: 1fr; } }
.method-card--text { border-top: 4px solid var(--accent); background: var(--panel); }
.method-card--text .method-card-body { padding-top: 1.6rem; }
/* Image analysis page: workflow, tools, code (6 Oct 2026) */
.topic-hero--natural video { aspect-ratio: auto; background: #000; }
.workflow { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.8rem; counter-reset: wf; }
.workflow li { position: relative; display: flex; flex-direction: column; gap: 0.3rem; padding: 1rem 1rem 1.1rem; background: var(--panel); border-top: 3px solid var(--accent); }
.workflow li:not(:last-child)::after { content: "→"; position: absolute; right: -0.75rem; top: 1.05rem; color: var(--accent); font-weight: 600; z-index: 1; }
.wf-n { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--accent); color: #fff; font-size: 0.85rem; font-weight: 600; }
.wf-t { font-weight: 600; margin-top: 0.3rem; }
.wf-d { font-size: 0.88rem; color: var(--ink-2); line-height: 1.4; }
.tools { display: grid; }
.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding: clamp(1.8rem, 4vw, 2.6rem) 0; border-bottom: 1px solid var(--line); align-items: start; }
.tool-tag { display: inline-block; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-strong); background: var(--accent-tint); border-radius: 999px; padding: 0.22rem 0.7rem; margin: 0 0 0.7rem; }
.tool h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 0.8rem; display: flex; flex-direction: column; gap: 0.15rem; }
.tool-full { font-size: 1rem; font-weight: 400; color: var(--muted); }
.tool-text p { max-width: var(--measure); }
.tool-features { list-style: none; padding: 1.1rem 1.3rem; margin: 0; background: var(--panel); display: grid; gap: 0.5rem; }
.tool-features li { padding-left: 1.5rem; position: relative; }
.tool-features li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 600; }
.tool-media { margin: 1rem 0 0; }
.tool-media video { width: 100%; display: block; background: #000; }
.repos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; margin-top: 1.2rem; }
.repo { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.repo:hover, .repo:focus-visible { border-color: var(--accent); box-shadow: 0 4px 16px rgba(0, 60, 64, .10); }
.repo-name { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9rem; font-weight: 600; word-break: break-word; }
.repo-desc { font-size: 0.92rem; color: var(--ink-2); }
.repo-cta { margin-top: auto; font-size: 0.9rem; font-weight: 500; color: var(--accent); }
@media (max-width: 1100px) { .workflow { grid-template-columns: repeat(3, minmax(0, 1fr)); } .workflow li:nth-child(3)::after { display: none; } }
@media (max-width: 760px) { .tool { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .workflow { grid-template-columns: 1fr; } .workflow li::after { display: none; } }
.repos + .small { margin-top: 1rem; }
/* Motility simulation page (6 Oct 2026) */
.resource-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.motsim { margin-top: 0.5rem; }
.ms-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 1.6rem; padding: 1rem 1.2rem; background: var(--panel); border-left: 3px solid var(--accent); }
.ms-group { display: flex; flex-direction: column; gap: 0.35rem; }
.ms-label { font-size: 0.82rem; font-weight: 500; color: var(--ink-2); }
.ms-label output { font-weight: 600; color: var(--ink); margin-left: 0.3rem; }
.ms-group input[type=range] { width: 11rem; accent-color: var(--accent); }
.ms-check { display: flex; align-items: center; gap: 0.45rem; font-size: 0.92rem; padding-bottom: 0.45rem; }
.ms-check input { accent-color: var(--accent); width: 1.05rem; height: 1.05rem; }
.ms-actions { display: flex; align-items: center; gap: 0.7rem; margin-left: auto; }
.ms-time { font-variant-numeric: tabular-nums; font-size: 0.9rem; color: var(--ink-2); min-width: 7.5rem; }
.ms-panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.ms-panel { margin: 0; }
.ms-panel figcaption { display: flex; align-items: baseline; gap: 0.45rem; flex-wrap: wrap; font-size: 0.92rem; color: var(--ink-2); margin: 0 0 0.45rem; }
.ms-panel figcaption b { color: var(--ink); font-weight: 600; }
.ms-dot { width: 0.75rem; height: 0.75rem; border-radius: 50%; display: inline-block; transform: translateY(0.05rem); }
.ms-panel canvas { width: 100%; aspect-ratio: 148 / 96; display: block; background: #0e1518; border-radius: 3px; }
.ms-read { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; font-size: 0.85rem; color: var(--ink-2); margin: 0.5rem 0 0; font-variant-numeric: tabular-nums; }
.ms-read b { color: var(--ink); font-weight: 600; }
.ms-legend { margin-top: 0.8rem; }
.ms-chart { margin-top: 1.8rem; max-width: 46rem; }
.ms-chart h3 { font-size: 1.1rem; margin: 0 0 0.5rem; }
.ms-chart-box { position: relative; }
.ms-chart svg { width: 100%; height: auto; display: block; overflow: visible; touch-action: none; }
.ms-grid line { stroke: #e4e7ea; stroke-width: 1; }
.ms-grid text, .ms-lab { font-size: 12px; fill: var(--muted); font-family: inherit; }
.ms-lab { fill: var(--ink-2); font-weight: 500; font-size: 13px; }
.ms-cross { stroke: #9aa3aa; stroke-width: 1; stroke-dasharray: 3 3; }
.ms-tip { position: absolute; top: 0.4rem; display: none; background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(0,0,0,.08); padding: 0.45rem 0.6rem; font-size: 0.82rem; pointer-events: none; white-space: nowrap; }
.ms-tip span { display: block; }
.ms-tip i { display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 50%; margin-right: 0.35rem; }
.ms-text { margin-top: clamp(2rem, 5vw, 3rem); }
.ms-table-wrap { overflow-x: auto; }
.ms-table { border-collapse: collapse; font-size: 0.9rem; min-width: 44rem; width: 100%; margin-top: 0.6rem; font-variant-numeric: tabular-nums; }
.ms-table th, .ms-table td { padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--line); text-align: right; }
.ms-table th[scope=row], .ms-table thead th:first-child { text-align: left; font-weight: 500; }
.ms-table td:last-child, .ms-table thead th:last-child { text-align: left; color: var(--ink-2); }
.ms-table thead th { font-size: 0.82rem; color: var(--ink-2); font-weight: 600; }
@media (max-width: 860px) { .ms-panels { grid-template-columns: 1fr; } .ms-actions { margin-left: 0; } }
.ms-actions .btn { white-space: nowrap; }
/* Motility simulation, redesign (6 Oct 2026) */
.ms-strains { list-style: none; padding: 0; margin: 0 0 0.4rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ms-panel canvas { background: #f6f8f9; border: 1px solid var(--line); }
.ms-bottom { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; margin-top: 1.6rem; }
.ms-bottom .ms-chart { margin-top: 0; max-width: none; }
.ms-look { background: var(--panel); border-left: 3px solid var(--accent); padding: 1.1rem 1.3rem; }
.ms-look h3 { font-size: 1.1rem; margin: 0 0 0.6rem; }
.ms-look ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.5rem; font-size: 0.95rem; }
.ms-movie { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin-top: clamp(2.2rem, 5vw, 3.4rem); padding-top: clamp(2rem, 4vw, 2.8rem); border-top: 1px solid var(--ink); }
.ms-movie .figure { margin: 0; }
.ms-movie video { width: 100%; display: block; background: #000; }
.ms-movie .eyebrow { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-strong); margin: 0 0 0.3rem; }
.ms-movie h2 { margin-top: 0; }
@media (max-width: 980px) { .ms-strains { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .ms-bottom, .ms-movie { grid-template-columns: 1fr; } }

/* Topic pages: movie, intro text below it, key figure on the right over both rows (6 Oct 2026). Before, the intro started
   below the key figure, and a tall key figure left an empty space below the movie. figure.keyfig must not take the flex
   layout of the number badges (p.keyfig) in the findings. */
.topic-media { grid-template-areas: "hero fig" "intro fig"; grid-template-rows: auto 1fr; row-gap: 1.6rem; }
.topic-media > .topic-hero { grid-area: hero; }
.topic-media > figure.keyfig { grid-area: fig; display: block; margin: 0; }
.topic-media > .topic-intro { grid-area: intro; margin: 0; }
.topic-media > .topic-intro p:first-child { margin-top: 0; }
figure.keyfig { display: block; }
@media (max-width: 860px) { .topic-media { grid-template-areas: "hero" "intro" "fig"; grid-template-rows: auto; } }

/* Strain cards of the motility simulation (6 Oct 2026): schematic cell on a light tint of the strain colour, then name,
   role, mean number of hooks and promoter. */
.ms-strain { display: flex; flex-direction: column; border: 1px solid var(--line); border-top: 4px solid var(--c); background: #fff; }
.ms-strain-pic { display: flex; justify-content: center; align-items: center; padding: 0.9rem 1rem 0.7rem; background: #f7f8f8; background: color-mix(in srgb, var(--c) 7%, #fff); }
.ms-strain-pic svg { width: 100%; max-width: 15.5rem; height: auto; display: block; }
.ms-strain-name { padding: 0.8rem 1.1rem 0; font-weight: 700; font-size: 1.15rem; color: var(--c); }
.ms-strain:nth-child(2) .ms-strain-name { color: var(--ink); }
.ms-strain-what { padding: 0 1.1rem; font-weight: 500; color: var(--ink); }
.ms-strain-hooks { padding: 0.55rem 1.1rem 0; font-size: 0.9rem; color: var(--ink-2); }
.ms-strain-hooks b { font-size: 1.6rem; font-weight: 300; color: var(--ink); margin-right: 0.2rem; letter-spacing: -0.01em; }
.ms-strain-note { padding: 0.15rem 1.1rem 1rem; font-size: 0.84rem; color: var(--muted); line-height: 1.35; }
.ms-strains-note { margin: 0 0 1.4rem; }
@media (max-width: 980px) and (min-width: 621px) { .ms-strains { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ms-strain-hooks b { font-size: 1.3rem; } }

/* Home page, block "Lab, software and equipment" (6 Oct 2026; before: a tall microscope video and two text lines). */
.home-lab { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.home-lab-tour { margin: 0; }
.home-lab-tour video { width: 100%; aspect-ratio: 16 / 9; background: var(--panel); display: block; }
.home-lab-tour figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; }
.home-lab-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.home-lab-links li { border-bottom: 1px solid var(--line); }
.home-lab-links a { display: flex; gap: 1rem; align-items: center; padding: 0.7rem 0; color: inherit; text-decoration: none; }
.hl-thumb { flex: 0 0 6.2rem; height: 4.2rem; overflow: hidden; background: var(--panel); display: flex; align-items: center; justify-content: center; }
.hl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s ease; }
.hl-thumb--logo { background: #f3f5f6; }
.hl-thumb--logo img { width: 2.2rem; height: 2.2rem; object-fit: contain; }
.hl-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.hl-text b { font-weight: 600; color: var(--accent); }
.hl-text span { font-size: 0.9rem; color: var(--ink-2); line-height: 1.35; }
.home-lab-links a:hover b, .home-lab-links a:focus-visible b { text-decoration: underline; text-underline-offset: 0.18em; }
.home-lab-links a:hover .hl-thumb img:not(.x) { transform: scale(1.04); }
.hl-thumb--logo img { transform: none !important; }
@media (max-width: 860px) { .home-lab { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .hl-thumb img { transition: none; } }


/* ——— Molinfect overrides ——— */
.section-head { border-top: 0; padding-top: 0; }
.bilayer { display: none; }
.site-header .header-rule {
  display: block; height: 1px; border: 0; margin: 0; background: var(--line);
}

/* Header — molmicro family: brand | spelled-out nav | HU seal */
.site-header {
  background: #fff;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-header .bar {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 6.2rem; padding-top: 0.45rem; padding-bottom: 0.45rem;
}
.brand { flex: 0 0 auto; gap: 0.85rem; align-items: center; }
.brand img { height: 60px; width: auto; }
.brand-text {
  font-size: 1.1rem; font-weight: 600; letter-spacing: 0.14em; line-height: 1.05;
  text-transform: uppercase; color: var(--ink);
}
.brand-text small {
  display: block; margin-top: 0.25rem; font-weight: 400; font-size: 0.86rem;
  letter-spacing: 0.04em; text-transform: none; color: var(--muted);
}
/* Nav sits right after the brand (not pushed to the far right); the HU seal takes the free space */
.nav {
  margin-left: 2.5rem !important; flex: 0 1 auto; position: static !important;
  display: block !important; background: transparent; border: 0; min-width: 0;
}
.nav ul {
  display: flex; flex-wrap: nowrap; justify-content: flex-start;
  align-items: center; gap: 0; margin: 0; padding: 0; list-style: none;
}
.nav a {
  display: block; padding: 0.5rem 0.6rem; color: var(--ink);
  text-decoration: none; font-weight: 500; font-size: 1.02rem;
  border-radius: 0; white-space: nowrap; line-height: 1.2;
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] {
  color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent);
}
.hu-seal {
  flex: 0 0 auto; margin-left: auto; padding: 0;
  display: flex; align-items: center;
}
.hu-seal img { height: 76px; width: 76px; object-fit: contain; display: block; }
.nav-toggle {
  display: none !important; width: 2.55rem; height: 2.55rem; padding: 0;
  margin-left: auto; border: 1px solid var(--control); border-radius: 3px;
  background: none; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 1.1rem; height: 2px; background: var(--ink); border-radius: 1px;
  position: relative; content: "";
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }
/* Keep MOLINFECT / Popp lab always visible; only tighten nav spacing */
@media (max-width: 1000px) and (min-width: 761px) {
  .nav { margin-left: 1.5rem !important; }
  .nav ul { flex-direction: row; padding: 0; }  /* base CSS stacks the menu below 900px */
  .nav a { padding: 0.45rem 0.4rem; font-size: 0.94rem; }
  .brand img { height: 52px; width: auto; }
  .brand-text { font-size: 0.98rem; letter-spacing: 0.1em; }
  .hu-seal img { height: 62px; width: 62px; }
}
/* Hamburger only when the spelled-out nav no longer fits */
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex !important; }
  .nav {
    position: absolute !important; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    display: none !important; margin-left: 0 !important; flex: none;
  }
  .nav.open { display: block !important; }
  .nav ul {
    flex-direction: column; flex-wrap: wrap; justify-content: flex-start;
    padding: 0.55rem var(--gutter) 1rem; gap: 0;
  }
  .nav a { white-space: normal; font-size: 1.05rem; padding: 0.7rem 0.2rem; }
  .brand-text { display: flex !important; }
  .brand img { height: 44px; width: auto; }
  .hu-seal { margin-left: 0.6rem; }  /* menu button takes the free space, seal sits next to it */
  .hu-seal img { height: 48px; width: 48px; }
  .site-header .bar { min-height: 4.4rem; gap: 1rem; }
}

/* Jumps (menu anchors) land just under the sticky header, without the end of the previous section showing */
html { scroll-padding-top: 6.6rem; }
#research, #people { scroll-margin-top: -2.4rem; }
#news { scroll-margin-top: 1.2rem; }   /* follows a section, so it has no top padding of its own */

/* Text: no orphans and ragged single words at the end of paragraphs */
p, li, figcaption { text-wrap: pretty; }
/* Running text is justified to the full column (flush with the figures), with hyphenation against wide gaps */
main p, main li:not(.step):not([class*="people"]), main figcaption, main .step-cap {
  text-align: justify; hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 7 3 3;
}
main .section-head p, main .person-card *, main .concert-name, main .step-links, main .concert-credit, main .step-cap,
main .hero-caption, main figcaption,
main .playlist *, main .pub-links, main .hero-foot .icon-btn, main .alumni-list * { text-align: left; hyphens: manual; }
h1, h2, h3, h4 { text-wrap: balance; }

/* Research: approach as numbered steps with loops; a shared grid lines up heads, media, captions, texts and links */
.concert-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: 2.6rem; }
.concert-head .concert-title { margin-top: 0; }
.concert-head a { font-weight: 500; font-size: 0.95rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: auto; column-gap: 1.5rem; row-gap: 0; }
.step { display: grid; grid-row: span 5; grid-template-rows: subgrid; align-content: start; margin-bottom: 1.6rem; }
.step-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; min-height: 2rem; }
.step-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.step-n { width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 0.9rem; }
.step h4 { margin: 0; font-size: 1.08rem; font-weight: 600; }
.step-logo { width: 26px; height: 26px; object-fit: contain; flex: 0 0 auto; }
.step-medias { aspect-ratio: 4 / 3; display: grid; grid-template-columns: 1fr; gap: 6px; border-radius: 4px; overflow: hidden; background: #0d0f14; }
.step-medias--two { grid-template-columns: 1fr 27%; background: transparent; }
.step-medias video { display: block; width: 100%; height: 100%; object-fit: cover; background: #0d0f14; }
.step-medias video.fit-contain { object-fit: contain; background: #fff; }
.step-medias video.fit-tall { background: #fff; }
.step-medias:has(.fit-contain) { background: #fff; border: 1px solid var(--line); }
.step-cap { font-size: 0.74rem; color: var(--muted); margin: 0.4rem 0 0; line-height: 1.4; }
.step-text { font-size: 0.93rem; margin: 0.7rem 0 0.4rem; }
.step-links { font-size: 0.85rem; font-weight: 500; margin: 0; }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } .step-head::after { display: none; } }

/* Research texts use the full width of the figure */
.research-lede, .concert-lede { max-width: none !important; }

/* Research: "Defence in concert" figure with numbered markers and question cards */
.concert-title { margin: 2.2rem 0 0.3rem; font-size: 1.35rem; font-weight: 500; }
.concert-lede { color: var(--ink-2); margin: 0 0 1.2rem; }
.concert-figure { position: relative; margin: 0; }
.concert-figure img { display: block; width: 100%; height: auto; border-radius: 4px; }
.concert-leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.concert-leaders line { stroke-width: 1.6; vector-effect: non-scaling-stroke; opacity: .9; }
.concert-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; transform: translate(-50%, -50%);
  background: #fff; border: 2.5px solid var(--c); box-shadow: 0 0 0 1px rgba(0,0,0,.15); pointer-events: none; }
.concert-mark { left: var(--lx); top: var(--ly); }
@media (max-width: 760px) {
  .concert-leaders, .concert-dot { display: none; }
  .concert-mark { left: var(--px); top: var(--py); }
}
.concert-mark {
  position: absolute; transform: translate(-50%, -50%); width: 1.9rem; height: 1.9rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 600; font-size: 0.95rem; text-decoration: none;
  color: #fff; background: var(--c); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35);
  transition: transform .15s ease;
}
.concert-mark:hover, .concert-mark.on { transform: translate(-50%, -50%) scale(1.12); }
.concert-pill {
  position: absolute; left: calc(100% + 6px); top: 50%; transform: translateY(-50%); white-space: nowrap;
  background: rgba(255,255,255,.94); color: var(--ink); font-size: 0.78rem; font-weight: 600; letter-spacing: .01em;
  padding: 0.12rem 0.5rem; border-radius: 999px; border-left: 3px solid var(--c); box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.concert-pill--left { left: auto; right: calc(100% + 6px); border-left: 0; border-right: 3px solid var(--c); }
@media (max-width: 760px) { .concert-pill { display: none; } }
.concert-credit { margin: 0.4rem 0 1.2rem; font-size: 0.78rem; }
.concert-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.4rem; }
.concert-card { border-top: 3px solid var(--c); padding: 0.7rem 0 0.2rem; transition: background .15s ease; }
.concert-card.on { background: color-mix(in srgb, var(--c) 7%, transparent); }
.concert-name { display: flex; align-items: center; gap: 0.55rem; margin: 0 0 0.35rem; font-weight: 600; }
.concert-num {
  width: 1.45rem; height: 1.45rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--c); color: #fff; font-size: 0.8rem;
}
.concert-known { margin: 0 0 0.4rem; font-size: 0.92rem; color: var(--ink-2); }
.concert-ask { margin: 0; font-size: 0.95rem; font-style: italic; color: var(--ink); }
.concert-ask::before { content: "Open question · "; font-style: normal; font-size: 0.72rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--c); font-weight: 600; margin-right: 0.15rem; }
@media (max-width: 900px) { .concert-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .concert-cards { grid-template-columns: 1fr; } .concert-mark { width: 1.5rem; height: 1.5rem; font-size: .8rem; } }

/* Hero (as on molmicro): the white sky of the movie is the page; headline and summary stand in it */
.hero { overflow: hidden; }
.hero-text { position: relative; z-index: 2; padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.hero-text > * { max-width: min(36rem, 41%); }
.hero h1 { font-size: clamp(2.1rem, 3.5vw, 3rem); margin-bottom: 0.4em; }
.hero .lede { white-space: normal; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.hero-media { position: relative; z-index: 1; margin-top: -15vw; }
.hero-media video {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #fff;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 12%);
}
/* Caption and pause button sit below the movie, so nothing covers its labels */
.hero-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.25rem; margin-top: 0.7rem; }
.hero-caption { margin: 0; font-size: 0.82rem; max-width: 62rem; }
.hero-foot .icon-btn { position: static; flex: 0 0 auto; }
@media (max-width: 600px) { .hero-foot { flex-direction: column; gap: 0.6rem; } }
@media (min-width: 1500px) { .hero-media { margin-top: -14rem; } }
@media (max-width: 1100px) { .hero-media { margin-top: -8vw; } .hero-text > * { max-width: min(34rem, 46%); } }
@media (max-width: 820px) { .hero-media { margin-top: 1.2rem; } .hero-text > * { max-width: 36rem; } }

/* Highlights: default cover fills the circle; optional contain kept for odd assets */
.highlights img.hl-thumb {
  object-fit: cover; object-position: center; background: #0a1628;
}
.highlights img.hl-thumb--contain {
  object-fit: contain; background: #fff; padding: 0.55rem;
}

/* Research: image-led tiles, short copy */
.research-lede { max-width: 52rem; }
.topic-cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem; margin-top: 2rem;
}
.topic-tile {
  display: flex; flex-direction: column; background: var(--panel);
  border: 1px solid var(--line); min-height: 100%;
}
.topic-media { margin: 0; }
.topic-media img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center;
  display: block; background: #fff;
}
.topic-copy { padding: 1.1rem 1.15rem 1.35rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.topic-copy .topic-name { margin: 0; }
.topic-copy h3 { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.topic-lede { margin: 0.35rem 0 0; font-size: 0.98rem; color: var(--ink-2); line-height: 1.45; }
.topic-copy .pub-links { margin-top: auto; padding-top: 0.7rem; }
@media (max-width: 980px) { .topic-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .topic-cards { grid-template-columns: 1fr; } }

/* Lab clips: equal 16:9 frames */
.lab-clips {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem;
}
.lab-clip { margin: 0; }
.lab-clip-frame {
  aspect-ratio: 16 / 9; overflow: hidden; background: #000; border: 1px solid var(--line);
}
.lab-clip-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lab-clip figcaption { margin-top: 0.55rem; font-size: 0.92rem; color: var(--muted); }
@media (max-width: 720px) { .lab-clips { grid-template-columns: 1fr; } }

/* Expandable news — hairline rows, no boxes */
.news-expand { display: flex; flex-direction: column; }
.news-row {
  border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 0;
}
.news-row:first-child { border-top: 1px solid var(--line); }
.news-row > summary {
  list-style: none; cursor: pointer; display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr) auto 1rem;
  gap: 0.35rem 0.9rem; align-items: start;
  padding: 1.05rem 0;
}
.news-row > summary::-webkit-details-marker { display: none; }
.news-row > summary::after {
  content: "+"; grid-column: 4; justify-self: end; align-self: start;
  font-weight: 400; color: var(--muted); font-size: 1.05rem; line-height: 1.4;
}
.news-row[open] > summary::after { content: "–"; color: var(--accent); }
.news-row > summary:hover .news-row-title { color: var(--accent); }
.news-row time {
  font-size: 0.88rem; color: var(--muted); font-variant-numeric: tabular-nums;
  padding-top: 0.15rem;
}
.news-row-main { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.news-row-title { font-weight: 500; color: var(--ink); line-height: 1.35; }
.news-row-teaser {
  display: block; font-size: 0.92rem; font-weight: 400; line-height: 1.4;
  color: var(--muted); max-width: 42rem;
}
.news-row[open] .news-row-teaser { display: none; }
.news-row .kicker {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); justify-self: end; padding-top: 0.2rem;
}
.news-row-body {
  padding: 0 0 1.15rem; max-width: var(--measure); color: var(--ink-2);
  padding-left: calc(5.2rem + 0.9rem);
}
.news-row-body a { color: var(--accent); }
.news-expand .fold { margin-top: 0.35rem; border-bottom: 0; }

/* Shared teal fold (Archive, Alumni) */
.fold { margin-top: 1.35rem; border: 0; background: transparent; }
.fold > summary {
  list-style: none; cursor: pointer; font-weight: 500; color: var(--accent);
  padding: 0.35rem 0; display: inline-flex; align-items: center; gap: 0.45rem;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::before {
  content: "+"; font-weight: 400; font-size: 1.05rem; line-height: 1;
}
.fold[open] > summary::before { content: "–"; }
.fold > summary:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.fold .news-expand { margin-top: 0.35rem; }
.fold .alumni-list { margin-top: 0.55rem; }

/* People: equal circular face crops */
.people-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 1.75rem 1.4rem; align-items: start;
}
.person-card { display: flex; flex-direction: column; align-items: center; gap: 0.85rem; text-align: center; }
/* No photo: push the text down by one photo + gap so names line up with the others */
.person-card--text {
  justify-content: flex-start; padding: calc(9.5rem + 0.85rem) 0.4rem 0; border-top: 0;
  min-height: 0;
}
.person-photo {
  width: 9.5rem; height: 9.5rem; flex: 0 0 auto;
  border-radius: 50%; overflow: hidden;
  border: 1px solid var(--line); background: var(--panel);
}
.person-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 32%; display: block;
}
.person-body { width: 100%; }
.person-card h3 { margin: 0; font-size: 1.05rem; font-weight: 500; }
.person-role { color: var(--ink-2); font-size: 0.92rem; }
.person-meta { font-size: 0.85rem; }
.person-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.15rem 0.15rem;
  margin-top: 0.55rem; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em;
}
.person-links a {
  color: var(--accent); text-decoration: none;
  padding: 0.15rem 0.35rem; border-radius: 2px;
}
.person-links a:hover {
  color: var(--accent-strong);
  background: var(--accent-tint, rgba(0, 96, 128, 0.08));
  text-decoration: underline; text-underline-offset: 0.18em;
}
.person-links .sep { color: var(--line); font-weight: 400; padding: 0.15rem 0; user-select: none; }
#people .fold { margin-top: 2rem; }

/* Publications catalogue line */
.pub-stats { max-width: 52rem; margin: 0 0 0.55rem; font-size: 0.98rem; line-height: 1.5; }
.pub-meta { max-width: 52rem; margin: 0.35rem 0 0; font-size: 0.95rem; color: var(--muted); }
.page-head .pub-meta { margin-top: 0.6rem; }
.page-head + .pub-tools { margin-top: 0; }
#pub-list.section, .section:has(#pub-list) { padding-top: 1.2rem; }
.publist { list-style: none; margin: 0; padding: 0; }
.publist .pub { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.publist .t { font-weight: 500; color: var(--ink); }
.publist .a { color: var(--ink-2); font-size: 0.95rem; margin: 0.25rem 0; }
.publist .a .m { border-bottom: 1px dotted var(--ink-2); }
.publist .j { font-size: 0.9rem; color: var(--muted); }
.pub-tools input[type="search"] {
  font: inherit; padding: 0.45rem 0.7rem; border: 1px solid var(--control); border-radius: 3px; min-width: 14rem;
}

/* Funding: white tiles on white page (no grey clash with logo plates) */
#funding.section { background: #fff; }
#funding.section--panel { background: #fff; }
.logo-grid-title {
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 0.9rem;
}
.logo-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
}
.logo-grid li.wide { grid-column: span 2; }
.logo-grid a {
  display: flex; align-items: center; justify-content: center; height: 8.5rem;
  padding: 1.1rem 1.4rem; background: #fff; border: 1px solid var(--line); text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.logo-grid a:hover, .logo-grid a:focus-visible {
  border-color: var(--accent); box-shadow: 0 4px 16px rgba(0, 60, 64, .10);
}
.logo-grid img { width: auto; height: auto; max-width: 100%; object-fit: contain; }
@media (max-width: 720px) {
  .logo-grid { grid-template-columns: 1fr 1fr; }
  .logo-grid li.wide { grid-column: span 2; }
  .logo-grid a { height: 6.5rem; }
}

.alumni-list { list-style: none; margin: 0; padding: 0; }
.alumni-list li {
  display: grid; grid-template-columns: 1fr auto auto; gap: 1rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.alumni-list li:first-child { border-top: 1px solid var(--line); }
.alumni-name { font-weight: 500; color: var(--ink); }
.map-box {
  min-height: 16rem; border: 1px solid var(--line); background: var(--panel);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 0.75rem; padding: 1.5rem;
}
.map-box.loaded { padding: 0; }
.map-box.loaded iframe { width: 100%; height: 22rem; border: 0; display: block; }
/* Publication highlights (home and publications page): left-aligned, no justified gaps in short titles */
.highlights, .highlights * { text-align: left !important; hyphens: manual !important; }
.pub-highlights { padding: 0.4rem 0 2.2rem; }
.pub-hl-title { font-size: 1.15rem; font-weight: 600; margin: 0 0 1rem; }

/* News (home): three latest, compact rows */
.news-latest { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.6rem; }
.news-latest a { display: flex; flex-direction: column; gap: 0.3rem; height: 100%; padding: 0.9rem 0 0.4rem; border-top: 2px solid var(--accent);
  text-decoration: none; color: inherit; }
.news-latest a:hover .nl-title { color: var(--accent); }
.nl-date { font-size: 0.8rem; color: var(--muted); display: flex; gap: 0.6rem; }
.nl-tag { text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--accent); }
.nl-title { font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.nl-teaser { font-size: 0.9rem; color: var(--ink-2); }
.news-latest li, .news-latest li * { text-align: left !important; hyphens: manual !important; }
@media (max-width: 860px) { .news-latest { grid-template-columns: 1fr; } }

/* People (home): PI row, members by role with their project, alumni */
.pi-row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1.6rem; align-items: center; margin: 0.4rem 0 1.8rem; }
.pi-photo { width: 8.5rem; height: 8.5rem; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); background: #fff; }
.pi-row h3 { margin: 0 0 0.35rem; font-size: 1.45rem; font-weight: 500; }
.pi-bio { margin: 0 0 0.5rem; color: var(--ink-2); max-width: 60rem; }
.pi-links, .member-links { margin: 0; font-size: 0.88rem; font-weight: 500; text-align: left !important; }
.pi-links .sep, .member-links .sep { color: var(--line); margin: 0 0.45rem; }
.people-group-title { font-size: 1.05rem; font-weight: 600; margin: 1.6rem 0 0.8rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.1rem 1.6rem; }
.member { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: 0.9rem; align-items: start; }
.member-photo { width: 4.6rem; height: 4.6rem; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); background: #fff; display: block; }
.member-initials { display: grid; place-items: center; font-weight: 600; color: var(--accent); background: var(--accent-tint, #e8f1f2); }
.member p { margin: 0; text-align: left !important; hyphens: manual !important; }
.member-name { font-weight: 600; }
.member-role { font-size: 0.86rem; color: var(--muted); }
.member-project { font-size: 0.9rem; color: var(--ink); margin-top: 0.2rem !important; }
.member-links { margin-top: 0.25rem !important; }
#people .alumni-list { margin-top: 0.6rem; }
.join-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.6rem; }
.join-item { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: 0.9rem 1.1rem; }
.join-name { font-weight: 600; margin: 0 0 0.3rem; }
.join-text { margin: 0 0 0.5rem; font-size: 0.93rem; }
.join-link { margin: 0; font-weight: 500; font-size: 0.9rem; text-align: left !important; }
@media (max-width: 760px) { .join-grid { grid-template-columns: 1fr; } }
.people-alumni { margin-top: 1.6rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.people-alumni summary { font-size: 1.05rem; font-weight: 600; cursor: pointer; }
@media (max-width: 600px) { .pi-row { grid-template-columns: 5.5rem 1fr; gap: 1rem; } .pi-photo { width: 5.5rem; height: 5.5rem; } }

/* Legal pages: full measure, less space under the headings */
.legal { padding-top: 1rem; }
.legal .prose { max-width: 52rem; }
.legal .prose h2 { font-size: 1.2rem; margin-top: 1.6rem; }

/* News page: compact list, text over the full width */
.news-section { padding-top: 1rem; }
.news-section .news-item { grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.4rem 2rem; padding: 1.25rem 0; }
.news-section .news-body { max-width: none; }
.news-section .news-body h2 { margin: 0 0 0.4rem; font-size: 1.25rem; }
.news-section .news-body p { margin: 0; max-width: none; }
@media (max-width: 700px) { .news-section .news-item { grid-template-columns: 1fr; } }

/* Contact: compact head, details in two columns, the map fills the height of the details */
.page-head--tight { padding-bottom: 0.4rem; }
.contact-section { padding-top: 1.2rem; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 2.5rem; align-items: stretch; }
.contact-info h2 { margin: 0 0 0.6rem; }
.contact-addr { margin: 0 0 1.4rem; text-align: left !important; }
.contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; margin: 0 0 1.5rem; }
.contact-list dt { font-weight: 600; margin-bottom: 0.15rem; }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }
.contact-actions { margin: 0; text-align: left !important; }
.contact-map { min-height: 22rem; height: 100%; margin: 0; display: grid; place-content: center; text-align: center; }
.contact-map.loaded { display: block; }
.contact-map.loaded iframe { height: 100%; min-height: 22rem; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; } .contact-list { grid-template-columns: 1fr 1fr; } }

/* Footer: aligned columns, no hairline above */
.site-footer { background: var(--panel); }
.site-footer .cols {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.5rem 2rem; align-items: start; padding: 2rem 0 2.4rem;
  font-size: 0.92rem; color: var(--muted);
}
.site-footer .footer-about { line-height: 1.55; }
.site-footer .footer-nav {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap;
  gap: 0.35rem 1.15rem; justify-content: flex-end; align-items: baseline;
}
.site-footer .footer-nav a,
.site-footer .footer-links a {
  color: var(--ink-2); text-decoration: none;
}
.site-footer .footer-nav a:hover,
.site-footer .footer-links a:hover {
  color: var(--accent); text-decoration: underline; text-underline-offset: 0.2em;
}
.site-footer .footer-copy { color: var(--muted); }
@media (max-width: 760px) {
  .site-footer .cols { grid-template-columns: 1fr; }
  .site-footer .footer-nav { justify-content: flex-start; }
  .alumni-list li { grid-template-columns: 1fr; gap: 0.15rem; }
}
