/* Molecular Microbiology – Erhardt lab website (design version 5, 2 Oct 2026)
   Light design only: white page, because the molecular movies and schematics have white backgrounds.
   Typeface and colours follow the CV of the lab head: Fira Sans (self-hosted, OFL-1.1), petrol accent. */
@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: #00696e;       /* petrol */
  --accent-strong: #004f53;
  --accent-tint: #e6f0f0;
  --accent-2: #b94b62;     /* coral, from the filament of the hero render: key numbers and tags */
  --dark: #15171b;
  --focus: #00696e;
  --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 .site-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: 78.125em) { .brand-text { display: none; } .nav a { padding: 0.45rem 0.45rem; font-size: 0.92rem; } }   /* the 1100px block below restores the brand text */
@media (max-width: 68.75em) {
  .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: 93.75em) { .hero-media { margin-top: -15.5rem; } }
@media (max-width: 68.75em) { .hero-media { margin-top: -9vw; } .hero-text > * { max-width: min(34rem, 44%); } }
@media (max-width: 51.25em) { .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: 53.75em) { .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: 53.75em) { .topic-index { grid-template-columns: 1fr 1fr; } }
@media (max-width: 35em) { .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: 35em) { .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: 47.5em) { .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: 43.75em) { .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: 43.75em) { .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: 32.5em) { .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: 32.5em) { .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: 43.75em) { .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: 61.25em) { .topic-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 38.75em) { .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: 47.5em) { .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: 53.75em) { .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: 53.75em) { .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: 51.25em) { .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: 47.5em) { .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: 61.25em) { .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: 32.5em) { .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: 47.5em) { .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: 35em) { .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: 53.75em) { .topic-extras { grid-template-columns: 1fr; } }
.topic-index-mobile { display: none; }
@media (max-width: 35em) { .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: 53.75em) {
  .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: 43.75em) { .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: 61.25em) { .highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 35em) { .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: 53.75em) { .topic-mark { display: none; } }

/* HU seal in the header (v5.1) */
.hu-seal { flex: 0 0 auto; margin-left: 0.6rem; padding: 0.35rem 0; }
.hu-seal img { height: 96px; width: 96px; display: block; }
@media (max-width: 75em) { .hu-seal img { height: 80px; width: 80px; } }
@media (max-width: 68.75em) { .hu-seal { margin-left: auto; margin-right: 0.8rem; padding: 0.2rem 0; } .nav-toggle { margin-left: 0; } .hu-seal img { height: 56px; width: 56px; } }
/* 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: 53.75em) { .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: 61.25em) { .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: 43.75em) { .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: 56.25em) { .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: 47.5em) { .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: 53.75em) { .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: 35em) { .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: 43.75em) {
  .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: 40em) {
  .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: 61.25em) { .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .logo-grid a, .logo-grid li > span { height: 7.5rem; } }
@media (max-width: 40em) { .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: 47.5em) { .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: 53.75em) { .method-head, .ia-band { grid-template-columns: 1fr; } .method-head .method-links { margin-top: 0; } }
@media (max-width: 38.75em) { .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: 68.75em) { .workflow { grid-template-columns: repeat(3, minmax(0, 1fr)); } .workflow li:nth-child(3)::after { display: none; } }
@media (max-width: 47.5em) { .tool { grid-template-columns: 1fr; } }
@media (max-width: 35em) { .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: 53.75em) { .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: 61.25em) { .ms-strains { grid-template-columns: 1fr; } }
@media (max-width: 53.75em) { .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: 53.75em) { .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: 61.25em) { .ms-strains { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ms-strain-hooks b { font-size: 1.3rem; } }
@media (max-width: 38.75em) { .ms-strains { grid-template-columns: minmax(0, 1fr); } }

/* 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: 53.75em) { .home-lab { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .hl-thumb img { transition: none; } }

/* Header robustness (7 Oct 2026, report of a stacked, flickering menu with Chrome on Windows): media queries in em,
   no gap between paired queries, menu items do not wrap, opaque header without backdrop blur. */
.nav a { white-space: nowrap; }
.nav ul { flex-wrap: nowrap; }   /* the mobile menu (max-width: 68.75em) is a column */
.site-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* Test switches, only active with ?debug=... in the address (js/site.js; 7 Oct 2026) */
.dbg-nosticky .site-header, .dbg-all .site-header { position: static; }
.dbg-nofonts *, .dbg-all * { font-family: Arial, Helvetica, sans-serif !important; }
.dbg-noseal .hu-seal, .dbg-all .hu-seal { display: none; }
.dbg-nologo .brand img, .dbg-all .brand img { display: none; }
.dbg-novideo video, .dbg-all video { display: none !important; }

/* The header row has its own class name "site-bar" (8 Oct 2026; before: "bar"). A browser extension style sheet that matches
   the common class name "bar" can otherwise change its width (report: header row 80 px wide in Chrome 154 on Windows). */
.site-header .site-bar { width: 100%; max-width: var(--wide); }
