/* ---------- Tokens ---------- */
/* Typography rules for the whole site: one family, two weights (400 text, 600 headings),
   one text colour. --muted is only for secondary information (captions, breadcrumbs,
   footer), never for running text. Hierarchy comes from size and spacing. */
:root {
  --navy: #00164b;   /* from the lab logo: wordmark, active markers */
  --ink: #111a2e;    /* all running text and headings */
  --muted: #4d5666;
  --link: #02706b;   /* the logo teal, darkened to pass contrast on white */
  --line: #d8dce4;
  --bg: #ffffff;

  --font-sans: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --nav-h: 72px;
  --container: 1120px;
  --measure: 44em;   /* widest comfortable line of running text */
  --radius: 3px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 600; color: var(--ink); }

img { max-width: 100%; height: auto; display: block; }

/* present for search engines and screen readers, not shown */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

a { color: inherit; text-decoration: none; }

/* Text links are coloured and underlined. Block links (a whole row or slide) stay plain
   and give their title the same look on hover. */
.ref-list a,
.area-figure figcaption a,
.more-link,
.breadcrumb a,
.jump-links a,
.thesis-text p a,
.person-areas a,
.news-links a,
.person h2 a:hover,
.news-row > a:hover .news-row-title,
.thesis-card h3 a:hover,
.funding-item > a:hover h2,
.carousel-slide > a:hover .carousel-title,
.area-row:hover .area-row-title,
.area-item > a:hover h2,
.pager-link:hover .pager-title {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.ref-list a:hover,
.area-figure figcaption a:hover,
a.more-link:hover,
.breadcrumb a:hover,
.jump-links a:hover,
.thesis-text p a:hover,
.person-areas a:hover,
.news-links a:hover { text-decoration-thickness: 2px; }

/* lists used for layout rather than prose */
.nav-menu,
.nav-sub,
.carousel-track,
.area-list,
.area-items,
.area-aside ul,
.thesis-list,
.people-list,
.person-links,
.news-list,
.news-links,
.funding-grid {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* secondary information: the only place for the muted colour */
.breadcrumb,
.area-figure figcaption,
.pager-label,
.thesis-meta,
.section-note,
.placeholder,
.ref-note,
.jump-count,
.person-label,
.news-meta,
.news-photos figcaption,
.photos-caption,
.embed-note,
.facts dt,
.site-footer { color: var(--muted); }
.breadcrumb,
.area-figure figcaption,
.pager-label,
.thesis-meta,
.section-note,
.news-photos figcaption,
.photos-caption,
.embed-note,
.facts dt,
.site-footer { font-size: 15px; }

/* white framed box around figures and portraits */
.carousel-viewport,
.area-item-media,
.area-figure img,
.person-photo img,
.person-portrait img,
.news-photos img,
.news-thumb img,
.funding-item > a,
.facts .funding-logo {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

/* A figure shown whole inside a box of fixed shape. The image is absolutely positioned so a
   tall figure cannot stretch the box; --pad is the white margin around it. */
.carousel-media,
.area-item-media { position: relative; }
.carousel-media img,
.area-item-media img {
  position: absolute;
  inset: var(--pad);
  width: calc(100% - 2 * var(--pad));
  height: calc(100% - 2 * var(--pad));
  object-fit: contain;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 200;
  padding: 8px 14px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  transition: top 0.15s;
}
.skip-link:focus { top: 12px; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-mark {
  height: 48px;
  width: auto;
  /* the PNG has an off-white background; multiply lets it sit cleanly on the bar */
  mix-blend-mode: multiply;
}
/* set in the site's own typeface, like every other piece of text */
.brand-name {
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--navy);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: block;
  padding: 10px 12px;
  font-size: 15.5px;
  color: var(--ink);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  background: var(--navy);
  opacity: 0;
  transition: opacity 0.15s;
}
.nav-link:hover::after { opacity: 0.35; }
.nav-link.is-active::after { opacity: 1; }

/* Dropdown under a nav item (Thesis Projects). Opens on hover and on keyboard focus. */
.has-sub { position: relative; }
.nav-caret {
  width: 11px;
  height: 11px;
  margin-left: 6px;
  vertical-align: -1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-sub {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 200px;
  padding: 6px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(17, 26, 46, 0.08);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, visibility 0.15s;
}
/* invisible bridge so the pointer can travel from the link down to the panel */
.nav-sub::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
.has-sub:hover .nav-sub,
.has-sub:focus-within .nav-sub {
  opacity: 1;
  visibility: visible;
}
.nav-sub-link {
  display: block;
  padding: 9px 16px;
  font-size: 15.5px;
  white-space: nowrap;
  color: var(--ink);
}
.nav-sub-link:hover { background: #f3f5f8; }
.nav-sub-link:focus-visible { outline-offset: -2px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* The eight links need about 1015px next to the brand; switch to the menu button with
   some margin, so a wider fallback font cannot wrap them onto a second row. */
@media (max-width: 1080px) {
  :root { --nav-h: 64px; }

  .brand-mark { height: 42px; }
  .brand-name { font-size: 20px; }

  .nav-toggle { display: flex; }

  .nav-menu {
    position: absolute;
    top: calc(var(--nav-h) + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-menu.is-open { display: flex; }

  .nav-link { padding: 12px 0; font-size: 17px; }
  .nav-link::after { display: none; }
  .nav-link.is-active { font-weight: 600; }

  .nav-caret { display: none; }
  .nav-sub {
    position: static;
    min-width: 0;
    padding: 0 0 6px 20px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
  }
  .nav-sub::before { display: none; }
  .nav-sub-link { padding: 9px 0; }
  .nav-sub-link:hover { background: none; text-decoration: underline; }
}

/* ---------- Hero ---------- */
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  /* Both columns share one height: the slideshow starts level with the top of the logo,
     and its dots line up with the last line of the intro text. */
  align-items: stretch;
  gap: 56px;
  padding-top: 48px;
  padding-bottom: 56px;
}
/* left column: a centred brand block, logo first, one sentence of introduction below */
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.lede {
  margin: 0;
  max-width: var(--measure);
  font-size: 19px;
  line-height: 1.55;
}
.hero .lede {
  margin-top: 4px;
  max-width: 26em;
  font-size: 17px;
  line-height: 1.6;
}
.hero-logo {
  width: 100%;
  max-width: 420px;
  margin-top: -6px; /* the artwork has a little built-in margin at the top */
  /* The PNG background is #fdfdfd, not pure white. Lifting brightness by 1.5% turns it
     into #fff, so no box shows around the logo. */
  filter: brightness(1.015);
  mix-blend-mode: multiply;
}

/* ---------- Carousel (home hero) ---------- */
/* A column that fills the hero row: the figure takes whatever height is left above the dots. */
.carousel {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.carousel-viewport {
  flex: 1;
  display: flex;
  overflow: hidden;
  touch-action: pan-y;
}
.carousel-track {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  transition: transform 0.5s ease;
}
.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
}
.carousel-slide > a {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.carousel-slide > a:focus-visible { outline-offset: -4px; }
.carousel-media {
  --pad: 20px;
  flex: 1;
  min-height: 280px;
  border-bottom: 1px solid var(--line);
}
.carousel-caption { padding: 14px 20px 15px; }
.carousel-title {
  font-weight: 600;
  line-height: 1.35;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 14px;
  /* dots are 24px tall, a line of the intro text 27px: this centres one on the other */
  margin-bottom: 2px;
}
.carousel-dots[hidden] { display: none; }
.carousel-dot {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.carousel-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid var(--muted);
  border-radius: 50%;
}
.carousel-dot:hover::before { border-color: var(--navy); }
.carousel-dot[aria-current="true"]::before {
  border-color: var(--navy);
  background: var(--navy);
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding-top: 32px;
    padding-bottom: 48px;
  }
  .hero-logo { max-width: 320px; }
  /* one column: nothing to stretch against, so the figure area gets a fixed shape */
  .carousel-media { flex: none; min-height: 0; aspect-ratio: 3 / 2; }
  .carousel-dots { margin-bottom: 0; }
}

/* ---------- Sections ---------- */
/* Ruled sections: heading in a narrow left column, content on the right */
.section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.section-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 16px 54px;
  align-items: start;
}
.section h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.section-head .more-link {
  display: inline-block;
  margin-top: 10px;
}
/* a quiet line under a section heading */
.section-note {
  margin: 8px 0 0;
  line-height: 1.5;
}
.section-body { min-width: 0; }
.placeholder { margin: 0; }
.more-link { font-size: 16px; }

@media (max-width: 860px) {
  .section { padding: 40px 0; }
  .section-grid { grid-template-columns: minmax(0, 1fr); }
  .section h2 { font-size: 24px; }
}

/* ---------- Home: research area list ---------- */
.area-row {
  display: block;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.area-list li:first-child .area-row { padding-top: 0; border-top: 0; }
.area-list li:last-child .area-row { padding-bottom: 0; }
.area-row-title {
  display: block;
  font-weight: 600;
}
.area-row-summary {
  display: block;
  margin-top: 2px;
  max-width: var(--measure);
}

/* ---------- Page header (inner pages) ---------- */
.page-head {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--line);
}
.page-head h1 {
  margin: 0;
  max-width: 24em;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.page-head .lede { margin-top: 16px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

/* ---------- Research overview: ruled list, figure left, text right ---------- */
.section-list { padding: 0 0 80px; }
.area-item > a {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.area-item:first-child > a { border-top: 0; }
.area-item-media {
  --pad: 10px;
  aspect-ratio: 16 / 9;
}
.area-item h2 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.3;
}
.area-item p { margin: 0; max-width: 40em; }

/* ---------- Research area page ---------- */
.area-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 72px;
  padding-top: 40px;
  padding-bottom: 88px;
}
.area-figure { margin: 0 0 40px; }
.area-figure img {
  width: 100%;
  padding: 16px;
}
.area-figure figcaption { margin-top: 10px; }
/* one line per source of a figure */
.area-figure .credit { display: block; }
.area-figure .credit + .credit { margin-top: 4px; }
.area-section { margin-bottom: 40px; }
.area-section h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.3;
}
.area-section p {
  margin: 0 0 16px;
  line-height: 1.7;
}
.question-list {
  margin: 0;
  padding-left: 22px;
}
.question-list li {
  margin-bottom: 10px;
  padding-left: 4px;
  line-height: 1.6;
}

/* numbered reference list, as in a paper */
.ref-list {
  margin: 0;
  padding-left: 26px;
  font-size: 16px;
  line-height: 1.55;
}
.ref-list li {
  margin-bottom: 10px;
  padding-left: 4px;
  overflow-wrap: anywhere;
}
/* a person's publications: the same citations, without numbers */
.pub-list {
  padding-left: 0;
  list-style: none;
}
.pub-list li { padding-left: 0; }
.ref-list cite,
.area-figure figcaption cite { font-style: italic; }

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.pager-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pager-next { text-align: right; }
.pager-title { color: var(--link); }

.area-aside {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  align-self: start;
}
.area-aside h2 {
  margin: 0 0 10px;
  font-size: 16px;
}
.area-aside ul { border-left: 1px solid var(--line); }
.area-aside a {
  display: block;
  margin-left: -1px;
  padding: 7px 0 7px 14px;
  border-left: 2px solid transparent;
  font-size: 16px;
  line-height: 1.4;
}
.area-aside a:hover { border-left-color: var(--line); }
.area-aside a.is-current {
  border-left-color: var(--navy);
  font-weight: 600;
}

@media (max-width: 960px) {
  .area-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding-bottom: 64px;
  }
  .area-aside { position: static; }
}

@media (max-width: 720px) {
  .page-head { padding: 32px 0 28px; }
  .area-item > a {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 24px 0;
  }
  .area-figure img { padding: 8px; }
  .pager { grid-template-columns: 1fr; }
  .pager-next { text-align: left; }
}

/* ---------- People ---------- */
/* list: one person per row, portrait on the left */
.person {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.person:first-child { border-top: 0; }
/* portraits are shown 4:5 and cropped from the bottom, so heads are never cut */
.person-photo img,
.person-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}
.person h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.3;
}
.person-position { margin: 2px 0 10px; }
.person-areas { margin: 0 0 14px; }
.person-label::after { content: ":"; }

.person-links {
  display: flex;
  gap: 8px;
}
.icon-link {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: color 0.15s, border-color 0.15s;
}
.icon-link svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}
.icon-link:hover {
  border-color: var(--link);
  color: var(--link);
}

/* a person's own page: portrait, name and position centred, profile below */
.person-head { text-align: center; }
.person-portrait {
  width: 220px;
  margin: 12px auto 22px;
}
.person-head h1 { margin: 0 auto; }
.person-head .person-position {
  margin: 6px 0 16px;
  font-size: 19px;
}
.person-head .person-links { justify-content: center; }
.narrow-content .person-areas { margin: 0; }

@media (max-width: 720px) {
  .person {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 18px;
    padding: 22px 0;
  }
  .person h2 { font-size: 19px; }
  .person-portrait { width: 170px; }
}

/* ---------- Text pages in one column (a person, a news item) ---------- */
.narrow-content {
  max-width: calc(var(--measure) + 48px);
  padding-top: 40px;
  padding-bottom: 88px;
}
@media (max-width: 720px) {
  .narrow-content { padding-top: 28px; padding-bottom: 56px; }
}

/* ---------- News ---------- */
/* list: date and kind on the left, the headline next to them, a thumbnail if there is one */
.news-row > a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 32px;
  align-items: center;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.news-row:first-child > a { border-top: 0; }
.news-row-text {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 54px;
  align-items: baseline;
}
.news-meta { line-height: 1.5; }
.news-meta time {
  display: block;
  color: var(--ink);
}
.news-row-title {
  max-width: var(--measure);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
}
.news-thumb img,
.news-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
/* Pictures of another shape keep it on their own page. Graphics, and anything that carries
   a funder's emblem, are not cropped in the list either: they sit whole inside the 4:3 box. */
.news-photos img.natural {
  aspect-ratio: auto;
  width: auto;
  max-height: 420px;
}
.news-thumb img.whole { object-fit: contain; }

/* a news item's own page */
.news-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 32px;
}
.news-photos figure { margin: 0; }
/* a picture that takes the full width, and a caption for all pictures together */
.news-photos .wide,
.news-photos .photos-caption { grid-column: 1 / -1; }
.news-photos .wide img.natural { max-height: none; }
.news-photos .photos-caption { margin: -6px 0 0; }
.news-photos figcaption { margin-top: 8px; }
/* A post or video from another site. Until the visitor asks for it, this box only says
   what it is; then js/main.js puts the frame in its place. */
.embed {
  max-width: 552px;
  margin: 0 0 32px;
  padding: 20px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f5f6f9;
}
.embed p { margin: 0 0 8px; }
.embed-title { font-weight: 600; }
.embed .embed-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin: 16px 0 0;
}
.embed-button {
  padding: 8px 16px;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.embed-button:hover {
  background: var(--navy);
  color: #fff;
}
.embed.is-loaded {
  padding: 0;
  overflow: hidden;
  background: #fff;
}
.embed iframe {
  display: block;
  width: 100%;
  height: 820px;
  border: 0;
}

/* links of an entry in one row, separated by a thin rule */
.news-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  font-size: 16px;
}
.news-links li + li {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

/* ---------- Funding ---------- */
/* list: one tile per project, logo on a tinted band and the name below */
.funding-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 40px 0 8px;
}
.funding-item > a {
  display: block;
  height: 100%;
  overflow: hidden;
  transition: border-color 0.15s;
}
.funding-item > a:hover { border-color: var(--link); }
.funding-logo {
  display: grid;
  place-items: center;
  height: 150px;
  padding: 24px 28px;
  background: #f5f6f9;
}
.funding-item .funding-logo { border-bottom: 1px solid var(--line); }
.funding-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
}
/* stands in for the logo until there is one */
.funding-logo-text {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--navy);
}
.funding-item h2 {
  margin: 0;
  padding: 16px 20px 18px;
  font-size: 19px;
  line-height: 1.35;
}

/* a project's own page: text on the left, logo and facts on the right */
.facts { align-self: start; }
.facts dl { margin: 0; }
.facts .funding-logo + dl { margin-top: 20px; }
.facts dl > div {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.facts dl > div:first-child { border-top: 0; padding-top: 0; }
.facts dd { margin: 2px 0 0; }
.facts dd a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (max-width: 860px) {
  .news-row > a { grid-template-columns: minmax(0, 1fr) 96px; gap: 18px; padding: 22px 0; align-items: start; }
  .news-row-text { display: block; }
  .news-meta time { display: inline; }
  .news-meta time::after { content: " · "; color: var(--muted); }
  .news-row-title { display: block; margin-top: 4px; font-size: 18px; }
  .funding-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding-top: 28px; }
}
@media (max-width: 560px) {
  .news-photos { grid-template-columns: minmax(0, 1fr); }
  .funding-grid { grid-template-columns: minmax(0, 1fr); }
  .funding-logo { height: 120px; }
}

/* ---------- Thesis projects page ---------- */
.jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 20px;
}
.jump-count::before { content: "("; }
.jump-count::after { content: ")"; }
/* list: the title, and the kind of position after it on the same line */
.thesis-card {
  display: flex;
  align-items: baseline;
  gap: 2px 28px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.thesis-card:first-child { padding-top: 0; border-top: 0; }
.thesis-card:last-child { padding-bottom: 0; }
.thesis-card h3 {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 1em; /* as the titles in the lists on the home page */
  line-height: 1.4;
  text-wrap: balance;
}
.thesis-meta {
  flex: none;
  margin: 0;
  white-space: nowrap;
}
/* too narrow for one line: the kind of position goes below the title */
@media (max-width: 720px) {
  .thesis-card { flex-direction: column; }
  .thesis-meta { white-space: normal; }
}

/* a thesis project's own page: the advert as running text, facts on the right */
.thesis-text > p {
  margin: 0 0 18px;
  line-height: 1.7;
}
.thesis-text > .thesis-lead { margin-bottom: 8px; }
.thesis-text .question-list { margin-bottom: 22px; }
.thesis-text .area-figure { margin: 28px 0 30px; }
/* never enlarge a figure beyond its own size: small ones would turn soft */
.thesis-text .area-figure img {
  width: auto;
  max-width: 100%;
}
.thesis-text .thesis-back { margin-top: 40px; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
