:root {
  --accent: #c40c0c;
  --hyperref: #1b5f8c;
  --hyperref-hover: #0f4569;
  --text: #181818;
  --muted: #636363;
  --line: #d9d9d9;
  --line-strong: #a8a8a8;
  --background: #ffffff;
  --max-width: 76rem;
  --gutter: clamp(1rem, 3vw, 2.5rem);
  --section-space: clamp(2.5rem, 6vw, 5.5rem);
  --font: Arial, Helvetica, sans-serif;
}

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

html {
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 20rem;
  background: var(--background);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 55%, transparent);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 40%, white);
  outline-offset: 3px;
}

button,
input,
select,
summary {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
}

h1 {
  max-width: 18ch;
  margin-bottom: 0.55rem;
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.05rem;
}

.shell {
  width: min(100% - (2 * var(--gutter)), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.75rem 1rem;
  color: white;
  background: var(--accent);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--background);
}

.header-inner {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 2.8rem;
  height: 2.3rem;
  object-fit: contain;
}

.brand span {
  display: grid;
  line-height: 1.1;
}

.brand strong {
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.brand small {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.68rem;
}

.desktop-nav {
  display: flex;
  align-items: stretch;
  gap: clamp(1rem, 2.5vw, 2.25rem);
}

.desktop-nav a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  font-size: 0.9rem;
  text-decoration: none;
}

.desktop-nav a[aria-current="page"] {
  border-color: var(--accent);
  color: var(--accent);
}

.mobile-nav {
  display: none;
}

.page-header {
  padding-top: clamp(2.5rem, 7vw, 5rem);
  padding-bottom: clamp(1.75rem, 4vw, 3rem);
}

.page-intro {
  max-width: 70ch;
  margin-bottom: 0;
  color: var(--muted);
}

.content-section {
  padding-top: clamp(1.5rem, 4vw, 2.75rem);
  padding-bottom: var(--section-space);
  border-top: 1px solid var(--line);
}

.page-header + .content-section {
  border-top: 0;
}

.section-heading {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.section-heading .text-link {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.9rem;
}

.text-link,
.external-links a,
.publication-links a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.simple-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.simple-row {
  min-height: 4.25rem;
  padding-block: 0.85rem;
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--line);
}

.simple-row:first-child {
  border-top-color: var(--line-strong);
}

.simple-row time,
.row-meta {
  color: var(--muted);
  font-size: 0.83rem;
}

.simple-row a {
  font-weight: 600;
  text-decoration: none;
}

.arrow-link::after {
  content: "→";
  padding-left: 0.4rem;
  color: var(--accent);
}

.external-links,
.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.75rem;
}

.external-links a,
.publication-links a {
  color: var(--muted);
  font-size: 0.82rem;
}

.publication-links .publication-resource {
  min-width: 0;
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  color: var(--hyperref);
  background: transparent;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.015em;
  text-decoration-line: underline;
  text-decoration-color: color-mix(in srgb, var(--hyperref) 45%, transparent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

.publication-links .publication-resource:hover {
  color: var(--hyperref-hover);
  text-decoration-color: currentColor;
}

.publication-links .publication-resource:focus-visible {
  outline: 0;
  color: var(--hyperref-hover);
  text-decoration-color: currentColor;
  text-decoration-thickness: 0.16em;
}

.empty-marker {
  margin: 0;
  color: var(--muted);
}

.projects-list {
  border-top: 1px solid var(--line-strong);
}

.project-card {
  padding-block: clamp(1.25rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(10rem, 13rem);
  align-items: stretch;
  gap: clamp(1.25rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.project-card__copy {
  min-width: 0;
}

.project-card__title-row {
  margin-bottom: 0.65rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.project-card h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.project-card__period,
.project-card__funder {
  color: var(--muted);
  font-size: 0.83rem;
}

.project-card__period {
  flex: 0 0 auto;
  margin: 0;
  white-space: nowrap;
}

.project-card__copy > p:not(.project-card__funder) {
  max-width: 70ch;
  margin-bottom: 0.55rem;
}

.project-card__funder {
  margin: 0;
  font-weight: 600;
}

.project-card__logo {
  min-height: 6.75rem;
  padding: 0.9rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
}

.project-card__logo img {
  width: 100%;
  max-height: 5rem;
  object-fit: contain;
}

.project-card__logo img[src*="european-commission.svg"] {
  padding: 0.5rem;
  background: #004494;
}

.legal-copy {
  max-width: 76rem;
}

.legal-copy h2 {
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
}

.legal-copy h2:first-child {
  margin-top: 0;
}

.legal-copy address {
  font-style: normal;
}

.legal-copy li + li {
  margin-top: 0.35rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 0.7fr) minmax(22rem, 1.3fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.contact-details h2 {
  margin-bottom: 1rem;
}

.contact-details address {
  font-style: normal;
}

.contact-arrival {
  margin-top: 1.5rem;
}

.contact-map iframe {
  width: 100%;
  min-height: 24rem;
  display: block;
  border: 1px solid var(--line-strong);
}

.contact-map p {
  margin: 0.35rem 0 0;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  padding-block: 1.5rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.35rem 2rem;
  font-size: 0.78rem;
}

.footer-meta {
  display: grid;
  gap: 0.65rem;
}

.footer-meta p {
  margin: 0;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.footer-legal {
  grid-column: 2;
  grid-row: 1;
  justify-content: flex-end;
}

.footer-inner .footer-social {
  gap: 0.5rem;
}

.footer-social a {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  text-decoration: none;
}

.footer-social a:hover {
  color: var(--accent);
  border-color: currentColor;
}

.footer-social svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.footer-legal a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 56rem) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    position: static;
    display: block;
  }

  .mobile-nav summary {
    min-width: 4.5rem;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    cursor: pointer;
    list-style: none;
  }

  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav[open] nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 0.5rem var(--gutter) 1rem;
    display: grid;
    border-bottom: 1px solid var(--line);
    background: var(--background);
  }

  .mobile-nav nav a {
    min-height: 3rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
  }

  .mobile-nav nav a[aria-current="page"] {
    color: var(--accent);
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-legal {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 40rem) {
  .header-inner {
    min-height: 4.25rem;
  }

  .brand small {
    display: none;
  }

  .page-header {
    padding-top: 2.25rem;
    padding-bottom: 1.5rem;
  }

  .section-heading {
    align-items: flex-start;
  }

  .simple-row {
    min-height: 0;
    grid-template-columns: 1fr auto;
    gap: 0.35rem 0.75rem;
  }

  .simple-row time,
  .simple-row .row-meta {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .simple-row > a:not(.arrow-link) {
    grid-column: 1;
  }

  .simple-row .arrow-link {
    grid-column: 2;
  }

  .contact-map iframe {
    min-height: 19rem;
  }

  .project-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-card__logo {
    min-height: 5rem;
    max-width: 14rem;
  }

  .project-card__title-row {
    display: block;
  }

  .project-card__period {
    margin-top: 0.3rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.home-intro {
  padding-top: clamp(2.75rem, 8vw, 6rem);
  padding-bottom: clamp(2rem, 5vw, 3.75rem);
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-summary {
  max-width: 74ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.group-photo {
  margin-bottom: var(--section-space);
}

.group-photo__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 833;
  overflow: hidden;
}

.group-photo__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 700ms ease-in-out;
}

.group-photo__image.is-active {
  opacity: 1;
}

.group-photo__controls {
  display: flex;
  gap: 0.65rem;
}

.group-photo__control {
  flex: 1;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  display: flex;
  align-items: center;
  background: transparent;
}

.group-photo__progress {
  display: block;
  width: 100%;
  height: 0.3rem;
  background: #d3d3d3;
  overflow: hidden;
  transition: background 160ms ease;
}

.group-photo__progress::after {
  width: 100%;
  height: 100%;
  display: block;
  background: #5e5e5e;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
}

.group-photo__control:hover .group-photo__progress {
  background: #b7b7b7;
}

.group-photo__control.is-active .group-photo__progress::after {
  animation: group-photo-progress var(--image-duration, 8s) linear forwards;
}

@keyframes group-photo-progress {
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .group-photo__image {
    transition: none;
  }

  .group-photo__control.is-active .group-photo__progress::after {
    animation: none;
    transform: scaleX(1);
  }
}

.group-photo__footer {
  min-height: 4rem;
  padding-block: 0.55rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 0.45fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  background: var(--background);
  color: var(--muted);
  font-size: 0.75rem;
}

.group-photo + .content-section {
  border-top: 0;
}

.news-list {
  border-top: 1px solid var(--line-strong);
}

.news-listing {
  padding-block: clamp(1.25rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: minmax(12rem, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.news-placeholder {
  min-height: 10rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: #f4f4f4;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-listing-copy time,
.news-article-header time {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.83rem;
}

.news-listing-copy h2 {
  margin-bottom: 0.65rem;
}

.news-listing-copy h2 a {
  text-decoration: none;
}

.news-listing-copy p {
  max-width: 64ch;
  margin-bottom: 0.8rem;
  color: var(--muted);
}

.news-listing-copy .arrow-link,
.news-article-actions .arrow-link,
.news-article-actions .text-link {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.news-article {
  padding-top: clamp(2.5rem, 7vw, 5rem);
  padding-bottom: var(--section-space);
}

.news-article-header {
  max-width: 70ch;
  margin-bottom: clamp(1.5rem, 4vw, 2.75rem);
}

.news-article-header .page-intro {
  margin-bottom: 0;
}

.news-placeholder--hero {
  min-height: clamp(15rem, 40vw, 30rem);
  margin-bottom: clamp(1.5rem, 4vw, 2.75rem);
}

.news-article-body {
  max-width: 70ch;
}

.news-article-body h2 {
  margin-top: 2rem;
  margin-bottom: 0.7rem;
  font-size: 1.35rem;
}

.news-article-body p,
.news-article-body ul {
  margin-bottom: 1rem;
}

.news-article-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.selected-publications,
.linkedin-feed {
  border-top: 1px solid var(--line-strong);
}

.linkedin-feed {
  padding-block: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
}

.linkedin-embed {
  width: 100%;
  max-width: 504px;
  min-height: 42.5rem;
  border: 0;
}

.youtube-feed {
  max-width: 60rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
}

.youtube-card {
  min-width: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.youtube-card > a {
  height: 100%;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.youtube-card > a:hover .youtube-card__action,
.youtube-card > a:focus-visible .youtube-card__action {
  color: var(--accent);
  text-decoration: underline;
}

.youtube-card__image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: #222;
}

.youtube-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.youtube-card > a:hover .youtube-card__image img,
.youtube-card > a:focus-visible .youtube-card__image img {
  transform: scale(1.025);
}

.youtube-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3rem;
  height: 2rem;
  border-radius: 0.45rem;
  background: color-mix(in srgb, var(--accent) 92%, black);
  transform: translate(-50%, -50%);
}

.youtube-card__play::after {
  position: absolute;
  top: 50%;
  left: 52%;
  width: 0;
  height: 0;
  border-top: 0.45rem solid transparent;
  border-bottom: 0.45rem solid transparent;
  border-left: 0.7rem solid white;
  content: "";
  transform: translate(-50%, -50%);
}

.youtube-card__content {
  padding: 0.75rem;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}

.youtube-card time {
  color: var(--muted);
  font-size: 0.78rem;
}

.youtube-card h3 {
  margin: 0.3rem 0 0.75rem;
  font-size: 0.94rem;
}

.youtube-card__action {
  margin-top: auto;
  color: var(--hyperref);
  font-size: 0.86rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.team-section > h2,
.topic-list + h2,
.course-table-wrap + h2,
section > h2 {
  margin-bottom: 1.25rem;
}

.people-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}

.person {
  min-width: 0;
  padding: 1.1rem 1rem 1.1rem 0;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.people-list .person:last-child,
.people-list--two-columns .person:nth-last-child(2):nth-child(odd),
.people-list:not(.people-list--professor, .people-list--two-columns) .person:nth-last-child(2):not(:nth-child(3n)),
.people-list:not(.people-list--professor, .people-list--two-columns) .person:nth-last-child(3):nth-child(3n + 1) {
  border-bottom: 0;
}

.person:nth-child(3n + 2),
.person:nth-child(3n + 3) {
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.people-list--two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.people-list--two-columns .person:nth-child(n) {
  padding-left: 0;
  border-left: 0;
}

.people-list--two-columns .person:nth-child(even) {
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.person-initials,
.person-photo {
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid var(--line);
  object-fit: cover;
}

.person-initials {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.person h3 {
  margin-bottom: 0.25rem;
}

.person-name-link {
  text-decoration: none;
}

.person-name-link::after {
  content: "\2192";
  margin-left: 0.35rem;
  color: var(--accent);
  font-weight: 400;
}

.person p,
.person small {
  margin-bottom: 0.25rem;
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.person-details > a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
}

.people-list--professor {
  grid-template-columns: 1fr;
}

.people-list--professor .person {
  padding-left: 0;
  grid-template-columns: 12rem minmax(0, 1fr);
  border-left: 0;
}

.people-list--professor .person-photo {
  width: 12rem;
  height: 12rem;
}

.profile-hero {
  padding-top: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 7vw, 5rem);
}

.profile-back {
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
  color: var(--muted);
  font-size: 0.85rem;
}

.profile-hero__grid {
  display: grid;
  grid-template-columns: minmax(15rem, 21rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
}

.profile-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line-strong);
}

.profile-role {
  margin-bottom: 0.65rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
}

.profile-links a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  color: var(--hyperref);
  font-size: 0.82rem;
}

.profile-body {
  max-width: 70ch;
}

.profile-body h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
}

.profile-body h2:not(:first-child) {
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.profile-body p,
.profile-body ul {
  margin-bottom: 1rem;
}

.profile-body ul {
  padding-left: 1.2rem;
}

.profile-body li + li {
  margin-top: 0.75rem;
}

.profile-summary {
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.profile-records > .section-heading {
  margin-bottom: 0.5rem;
}

.profile-publication-group + .profile-publication-group {
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.profile-publication-group h3,
.profile-records > h3,
.profile-service-grid h3 {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.profile-publication-list,
.profile-timeline,
.profile-service-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-publication-list {
  counter-reset: profile-publication;
  border-top: 1px solid var(--line-strong);
}

.profile-publication-list li {
  position: relative;
  padding: 1rem 0 1rem 2.25rem;
  counter-increment: profile-publication;
  border-bottom: 1px solid var(--line);
}

.profile-publication-list li::before {
  content: counter(profile-publication, decimal-leading-zero);
  position: absolute;
  top: 1.05rem;
  left: 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}

.profile-publication-list strong,
.profile-publication-authors,
.profile-publication-venue {
  display: block;
}

.profile-publication-list strong {
  margin-bottom: 0.3rem;
}

.profile-publication-authors,
.profile-publication-venue {
  color: var(--muted);
  font-size: 0.82rem;
}

.profile-publication-venue {
  margin-top: 0.2rem;
  color: var(--text);
}

.profile-table-wrap {
  margin-bottom: 0;
}

.profile-table {
  font-size: 0.84rem;
}

.profile-table tbody th {
  min-width: 10rem;
}

.profile-table td:last-child {
  min-width: 18rem;
}

.profile-subsection-heading {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.profile-timeline {
  border-top: 1px solid var(--line-strong);
}

.profile-timeline li {
  padding-block: 0.9rem;
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.profile-timeline time {
  color: var(--muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.profile-timeline p,
.profile-timeline span {
  margin: 0;
}

.profile-timeline span {
  margin-top: 0.2rem;
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.profile-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}

.profile-service-grid section {
  padding: 1.25rem 1rem 0 0;
}

.profile-service-grid section + section {
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.profile-service-grid li {
  padding-block: 0.55rem;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
}

.course-table-wrap {
  overflow-x: auto;
}

.course-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.course-table th,
.course-table td {
  padding: 0.8rem 0.7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.course-table thead th {
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.course-table tbody th {
  min-width: 15rem;
  font-weight: 600;
}

.course-table tbody tr:last-child th,
.course-table tbody tr:last-child td {
  border-bottom: 0;
}

.teaching-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.teaching-semester + .teaching-semester {
  margin-top: 2.5rem;
}

.teaching-semester h3 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
}

.teaching-list li {
  min-height: 4rem;
  padding-block: 0.7rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.teaching-list small {
  color: var(--muted);
}

.topic-list {
  border-top: 1px solid var(--line-strong);
}

.topic-row {
  padding-block: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.topic-row h3,
.topic-row p {
  margin-bottom: 0.2rem;
}

.topic-row p,
.topic-row span {
  color: var(--muted);
  font-size: 0.82rem;
}

.topic-row > a,
.compact-section > a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.compact-section p {
  margin-bottom: 0.25rem;
  color: var(--muted);
}

.legal-list {
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.legal-list div {
  padding-block: 1rem;
  display: grid;
  grid-template-columns: minmax(10rem, 0.35fr) minmax(0, 1fr);
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.legal-list dt {
  font-weight: 700;
}

.legal-list dd {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 52rem) {
  .people-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .people-list .person {
    border-bottom: 1px solid var(--line);
  }

  .people-list .person:last-child,
  .people-list .person:nth-last-child(2):nth-child(odd) {
    border-bottom: 0;
  }

  .person:nth-child(n) {
    padding-left: 0;
    border-left: 0;
  }

  .person:nth-child(even) {
    padding-left: 1rem;
    border-left: 1px solid var(--line);
  }

  .profile-hero__grid {
    grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
    gap: clamp(1.5rem, 5vw, 3rem);
  }

  .profile-service-grid {
    grid-template-columns: 1fr;
  }

  .profile-service-grid section {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--line);
  }

  .profile-service-grid section + section {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 40rem) {
  .home-intro {
    padding-top: 2.25rem;
    padding-bottom: 1.75rem;
  }

  .home-intro h1 {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .group-photo {
    width: 100%;
  }

  .group-photo__footer {
    padding-inline: var(--gutter);
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .teaching-list li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .linkedin-feed {
    gap: 1rem;
  }

  .youtube-feed {
    max-width: none;
    grid-template-columns: 1fr;
    border-left: 0;
  }

  .youtube-card {
    border-right: 0;
  }

  .youtube-card > a {
    flex-direction: row;
  }

  .youtube-card__image {
    width: 42%;
    flex: 0 0 42%;
  }

  .people-list {
    grid-template-columns: 1fr;
  }

  .person:nth-child(n) {
    padding-inline: 0;
    border-left: 0;
  }

  .people-list.people-list .person:nth-child(n):not(:last-child) {
    border-bottom: 1px solid var(--line);
  }

  .people-list.people-list .person:last-child {
    border-bottom: 0;
  }

  .people-list--professor .person {
    grid-template-columns: 8rem minmax(0, 1fr);
  }

  .people-list--professor .person-photo {
    width: 8rem;
    height: 8rem;
  }

  .profile-hero__grid {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    max-width: 16rem;
  }

  .profile-timeline li {
    grid-template-columns: 3.5rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .course-table-wrap {
    overflow: visible;
  }

  .course-table,
  .course-table tbody,
  .course-table tr,
  .course-table th,
  .course-table td {
    display: block;
    width: 100%;
  }

  .course-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .course-table tr {
    padding-block: 0.65rem;
    border-top: 1px solid var(--line-strong);
  }

  .course-table tr + tr {
    border-top-color: var(--line);
  }

  .course-table th,
  .course-table td {
    min-width: 0;
    padding: 0.2rem 0;
    border: 0;
  }

  .course-table td::before {
    content: attr(data-label) ": ";
    color: var(--muted);
    font-size: 0.78rem;
  }

  .legal-list div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .news-listing {
    grid-template-columns: 1fr;
  }

  .news-placeholder {
    min-height: 12rem;
  }
}
