/*
 * Micro-eChem Group — academic visual system
 * Loaded after Quark 2 so the site remains upgradeable and content-first.
 */

:root,
:root[data-theme="light"] {
  --lab-ink: #16313b;
  --lab-ink-soft: #4f6570;
  --lab-blue: #0d6f73;
  --lab-blue-deep: #07555b;
  --lab-blue-soft: #e5f3f2;
  --lab-cyan: #78c4c2;
  --lab-paper: #f7faf9;
  --lab-white: #ffffff;
  --lab-line: #dbe7e5;
  --lab-warm: #f2eee6;
  --lab-shadow: 0 18px 50px rgba(22, 49, 59, 0.09);

  --q2-bg: var(--lab-paper);
  --q2-bg-elev: var(--lab-white);
  --q2-bg-muted: #edf4f2;
  --q2-text: var(--lab-ink);
  --q2-text-strong: #0e2933;
  --q2-text-muted: #6a7e86;
  --q2-divider: var(--lab-line);
  --q2-border-ring: rgba(13, 111, 115, 0.12);
  --q2-border-strong: rgba(13, 111, 115, 0.2);
  --q2-link: var(--lab-blue);
  --q2-accent: var(--lab-blue);
  --q2-accent-contrast: #ffffff;
  --q2-nav-bg: rgba(255, 255, 255, 0.94);
  --q2-nav-border: rgba(13, 111, 115, 0.11);
  --q2-nav-item-gap: clamp(0.7rem, 1.2vw, 1.1rem);
  --q2-focus-ring: rgba(13, 111, 115, 0.28);
  --pico-background-color: var(--lab-paper);
  --pico-color: var(--lab-ink);
  --pico-primary: var(--lab-blue);
  --pico-primary-hover: var(--lab-blue-deep);
  --pico-primary-background: var(--lab-blue);
  --pico-primary-border: var(--lab-blue);
}

:root[data-theme="dark"] {
  --lab-ink: #e8f1f1;
  --lab-ink-soft: #b2c3c5;
  --lab-blue: #72cfca;
  --lab-blue-deep: #96dfdb;
  --lab-blue-soft: #123b3f;
  --lab-cyan: #56aaa8;
  --lab-paper: #0c171b;
  --lab-white: #142329;
  --lab-line: #294047;
  --lab-warm: #2b2925;
  --lab-shadow: 0 20px 55px rgba(0, 0, 0, 0.3);

  --q2-bg: var(--lab-paper);
  --q2-bg-elev: var(--lab-white);
  --q2-bg-muted: #1a3036;
  --q2-text: var(--lab-ink);
  --q2-text-strong: #ffffff;
  --q2-text-muted: #91a7aa;
  --q2-divider: var(--lab-line);
  --q2-link: var(--lab-blue);
  --q2-accent: var(--lab-blue);
  --q2-accent-contrast: #092024;
  --q2-nav-bg: rgba(12, 23, 27, 0.95);
  --q2-nav-border: rgba(114, 207, 202, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--lab-ink);
  background:
    radial-gradient(circle at 85% 0%, rgba(120, 196, 194, 0.11), transparent 28rem),
    var(--lab-paper);
}

h1,
h2,
h3,
h4,
h5,
h6,
.display,
.h-display {
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--q2-text-strong);
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.45rem, 5.2vw, 5.2rem);
  font-weight: 650;
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.8rem);
  font-weight: 650;
  line-height: 1.12;
}

h2::before {
  display: none;
}

h3,
h4 {
  font-weight: 650;
}

p,
li {
  line-height: 1.78;
}

a {
  color: var(--lab-blue);
  text-underline-offset: 0.16em;
}

.container {
  width: min(100% - 2.5rem, 1240px);
  max-width: 1240px;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--lab-blue);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* Header and bilingual navigation */
#header {
  background: var(--q2-nav-bg) !important;
  border-color: var(--q2-nav-border) !important;
  backdrop-filter: saturate(150%) blur(18px) !important;
  -webkit-backdrop-filter: saturate(150%) blur(18px) !important;
}

#header .navbar {
  min-height: 84px;
  gap: 1rem;
}

.header-animated.scrolled #header .navbar {
  min-height: 70px;
}

.navbar-section.logo {
  min-width: 235px;
}

.navbar-brand {
  gap: 0.8rem;
  color: var(--q2-text-strong);
}

.navbar-brand img,
.navbar-brand svg {
  width: 46px;
  height: 46px;
  max-width: 46px;
  max-height: 46px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(13, 111, 115, 0.12);
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
  min-width: 0;
}

.brand-lockup strong {
  color: var(--q2-text-strong);
  font-size: 1.14rem;
  font-weight: 720;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.brand-lockup small {
  color: var(--q2-text-muted);
  font-size: sem;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
}

.desktop-menu {
  justify-content: center;
}

.dropmenu > ul,
.dropmenu ul.navigation {
  gap: var(--q2-nav-item-gap);
  flex-wrap: nowrap;
}

.dropmenu a {
  min-height: 3.15rem;
  padding: 0.5rem 0.64rem;
  justify-content: center;
  color: var(--lab-ink-soft);
  font-size: 0.9rem;
  font-weight: 620;
  border-radius: 0;
  background: transparent !important;
  position: relative;
}

.dropmenu a::before {
  content: "";
  position: absolute;
  right: 0.62rem;
  bottom: 0.25rem;
  left: 0.62rem;
  height: 2px;
  border-radius: 2px;
  background: var(--lab-blue);
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.dropmenu a:hover,
.dropmenu a.active {
  color: var(--lab-blue);
}

.dropmenu a:hover::before,
.dropmenu a.active::before {
  opacity: 1;
  transform: scaleX(1);
}

.menu-label {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.04;
  text-align: center;
}

.menu-label-primary,
.menu-label-secondary {
  display: block;
}

.menu-label-secondary {
  margin-top: 0.24rem;
  color: var(--q2-text-muted);
  font-size: 1em;
  font-weight: 560;
}

.dropmenu li > ul {
  border: 1px solid var(--lab-line);
  background: var(--lab-white);
  box-shadow: var(--lab-shadow);
}

.dropmenu li > ul a {
  justify-content: flex-start;
  border-radius: 0.5rem;
}

.dropmenu li > ul a::before {
  display: none;
}

.navbar-section.actions {
  flex: 0 0 auto;
}

.theme-toggle {
  color: var(--lab-blue) !important;
}

/* Reusable controls */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.2rem;
  border-radius: 0.65rem;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
  color: #fff;
  background: var(--lab-blue);
  box-shadow: 0 10px 24px rgba(13, 111, 115, 0.22);
}

.btn-primary:hover {
  color: #fff;
  background: var(--lab-blue-deep);
  transform: translateY(-1px);
}

.btn-secondary {
  color: var(--lab-ink);
  border: 1px solid var(--lab-line);
  background: var(--lab-white);
}

.btn-secondary:hover {
  color: var(--lab-blue);
  border-color: var(--lab-cyan);
  transform: translateY(-1px);
}

.text-link {
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* Homepage */
.lab-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 4.5vw, 4.5rem) 0 clamp(3rem, 4vw, 4rem);
  background:
    linear-gradient(120deg, rgba(229, 243, 242, 0.92), rgba(247, 250, 249, 0.55)),
    var(--lab-paper);
}

.lab-hero::after {
  content: "";
  position: absolute;
  top: -14rem;
  right: -10rem;
  width: 36rem;
  height: 36rem;
  border: 1px solid rgba(13, 111, 115, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(120, 196, 194, 0.05), 0 0 0 10rem rgba(120, 196, 194, 0.035);
  pointer-events: none;
}

.lab-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 6.5rem);
  position: relative;
  z-index: 1;
}

.lab-hero-copy h1 {
  max-width: 9em;
  margin: 0;
  color: var(--q2-text-strong);
  font-size: clamp(2.9rem, 5.2vw, 5.6rem);
}

.hero-english,
.hero-markdown h2 {
  margin: 1rem 0 0;
  color: var(--lab-blue);
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  font-weight: 650;
  letter-spacing: 0.01em;
}

.hero-markdown h2::before {
  display: none;
}

.hero-summary,
.hero-markdown p {
  max-width: 39rem;
  margin: 1.6rem 0 0;
  color: var(--lab-ink-soft);
  font-size: 1.04rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.lab-hero-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.78);
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: var(--lab-shadow);
  transform: rotate(1deg);
}

.lab-hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
}

.lab-hero-visual figcaption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  max-width: calc(100% - 2rem);
  padding: 0.55rem 0.8rem;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 650;
  border-radius: 0.5rem;
  background: rgba(7, 50, 56, 0.82);
  backdrop-filter: blur(8px);
}

.home-introduction,
.home-news,
.home-research,
.home-invitation {
  padding: clamp(2.75rem, 4vw, 4rem) 0;
}

.home-introduction {
  background: var(--lab-white);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
}

.intro-grid h2 {
  max-width: 12em;
  margin: 0;
}

.intro-copy {
  padding-top: 0.1rem;
  color: var(--lab-ink-soft);
  font-size: 1.08rem;
}

.intro-copy p:first-child {
  margin-top: 0;
  color: var(--lab-ink);
  font-size: 1.18rem;
}

.home-news {
  background: var(--lab-paper);
}

.home-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.home-news-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--lab-line);
  border-radius: 1.1rem;
  background: var(--lab-white);
  box-shadow: 0 8px 28px rgba(22, 49, 59, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-news-card:hover {
  box-shadow: 0 18px 42px rgba(22, 49, 59, 0.1);
  transform: translateY(-3px);
}

.home-news-image {
  display: block;
  overflow: hidden;
  background: var(--lab-blue-soft);
}

.home-news-image img,
.news-image-placeholder {
  display: flex;
  width: 100%;
  aspect-ratio: 16 / 10;
  align-items: center;
  justify-content: center;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.home-news-card:hover .home-news-image img {
  transform: scale(1.035);
}

.news-image-placeholder {
  color: var(--lab-blue);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-news-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.35rem;
}

.home-news-copy time {
  color: var(--lab-blue);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-news-copy h3 {
  margin: 0.65rem 0 0;
  font-size: 1.12rem;
  line-height: 1.42;
}

.home-news-copy h3 a,
.news-read-more {
  color: var(--q2-text-strong);
  text-decoration: none;
}

.home-news-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0.8rem 0 1.2rem;
  color: var(--lab-ink-soft);
  font-size: 0.86rem;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.news-read-more {
  margin-top: auto;
  color: var(--lab-blue);
  font-size: 0.8rem;
  font-weight: 750;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.2rem;
}

.section-heading-row h2 {
  max-width: 16em;
  margin: 0;
}

.research-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.research-card {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border-radius: 1.1rem;
  background: var(--lab-white);
  box-shadow: 0 0 0 1px var(--lab-line);
  text-decoration: none;
}

.research-card img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.research-card::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(5, 39, 45, 0.88));
}

.research-card span {
  display: flex;
  position: absolute;
  right: 1.3rem;
  bottom: 1.2rem;
  left: 1.3rem;
  z-index: 1;
  flex-direction: column;
  gap: 0.28rem;
  color: #fff;
  line-height: 1.3;
}

.research-card strong {
  font-size: 1.12rem;
  font-weight: 700;
}

.research-card small {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  font-weight: 500;
}

.research-card:hover img {
  transform: scale(1.035);
}

.home-invitation {
  padding-top: 0;
}

.invitation-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: clamp(2.4rem, 5vw, 4.5rem);
  border-radius: 1.4rem;
  background: var(--lab-blue-soft);
  box-shadow: inset 0 0 0 1px rgba(13, 111, 115, 0.1);
}

.invitation-panel h2 {
  margin: 0;
}

.invitation-panel p:not(.eyebrow) {
  max-width: 48rem;
  margin: 1rem 0 0;
  color: var(--lab-ink-soft);
}

.invitation-panel .btn-primary {
  flex: 0 0 auto;
}

/* General content pages */
.page-shell,
#body-wrapper {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
  background: transparent;
}

.page-intro {
  max-width: 850px;
  margin: 0 0 clamp(3.5rem, 7vw, 6rem);
}

.page-intro h1 {
  margin: 0;
  font-size: clamp(2.8rem, 5.7vw, 5rem);
}

.page-intro > p:last-child {
  max-width: 680px;
  margin: 1.35rem 0 0;
  color: var(--lab-ink-soft);
  font-size: 1.08rem;
}

.directory-page .page-intro {
  margin-bottom: clamp(1.25rem, 1.9vw, 1.5rem);
}

.people-directory .directory-page {
  margin-bottom: 0;
  padding-top: clamp(2.25rem, 4vw, 3.25rem);
  padding-bottom: clamp(2rem, 3vw, 2.5rem);
}

.publications-index .page-intro {
  margin-bottom: clamp(1.25rem, 1.9vw, 1.5rem);
}

/* Compact the outer whitespace on the three main content indexes. */
.publications-page .publications-index,
.news-page #body-wrapper.blog-listing,
.news-item-page #body-wrapper.blog-listing,
.research-page #body-wrapper {
  margin-bottom: 0;
  padding-top: clamp(1.5rem, 2.6vw, 2.25rem);
  padding-bottom: clamp(1.5rem, 2.6vw, 2.25rem);
}

.imported-page #body-wrapper .container {
  max-width: 1040px;
}

.imported-page .content-item {
  max-width: 900px;
  margin-inline: auto;
}

.imported-page .content-item > h1:first-child {
  margin-bottom: clamp(3rem, 6vw, 5rem);
  color: var(--q2-text-strong);
}

.imported-page .content-item h3,
.imported-page .content-item h4 {
  margin-top: 3.4rem;
  margin-bottom: 1.1rem;
  color: var(--lab-blue-deep);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.28;
}

.imported-page .content-item > :is(h3, h4):first-child {
  margin-top: 0;
}

.imported-page .content-item p {
  color: var(--lab-ink-soft);
  font-size: 1.01rem;
}

.imported-page .content-item img {
  display: block;
  height: auto;
  margin: 2rem auto;
  border-radius: 0.9rem;
  box-shadow: 0 0 0 1px var(--lab-line), 0 16px 38px rgba(22, 49, 59, 0.08);
}

.imported-page .content-item table:has(td:empty) {
  display: none;
}

.imported-page .content-item blockquote {
  border-left-color: var(--lab-blue);
  background: var(--lab-blue-soft);
}

/* People directory */
.directory-section + .directory-section {
  margin-top: clamp(3rem, 5vw, 4.2rem);
}

.directory-heading {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--lab-line);
}

.directory-heading span {
  color: var(--lab-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.directory-heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.directory-alumni-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.62rem 0.9rem;
  border: 1px solid var(--lab-line);
  border-radius: 999px;
  color: var(--lab-blue);
  background: var(--lab-white);
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 5px 16px rgba(22, 49, 59, 0.04);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.directory-alumni-link:hover {
  color: var(--lab-blue-deep);
  border-color: rgba(13, 111, 115, 0.34);
  background: var(--lab-blue-soft);
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2rem;
  border-top: 1px solid var(--lab-line);
}

.people-grid-featured {
  grid-template-columns: minmax(0, 1fr);
  border-top: 0;
}

.person-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 0;
  border: 0;
  border-bottom: 1px solid var(--lab-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.person-card:hover {
  transform: none;
  box-shadow: none;
}

.person-portrait {
  width: 88px;
  height: 88px;
  overflow: hidden;
  align-self: start;
  border-radius: 50%;
  background: var(--lab-blue-soft);
  box-shadow: 0 0 0 1px var(--lab-line), 0 6px 18px rgba(22, 49, 59, 0.08);
}

.person-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  transform: scale(1.018);
}

.person-card:hover .person-portrait img {
  transform: scale(1.018);
}

.person-copy {
  min-width: 0;
  align-self: start;
  padding: 0.1rem 0 0;
}

.person-copy h3 {
  margin: 0;
  color: var(--q2-text-strong);
  font-size: 1.02rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.person-bio {
  margin-top: 0.45rem;
  color: var(--lab-ink-soft);
  font-size: 0.8rem;
}

.person-bio p {
  margin: 0.35rem 0 0;
  font-size: inherit;
  line-height: 1.58;
}

.person-card-featured {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border: 1px solid var(--lab-line);
  border-radius: 1rem;
  background: var(--lab-white);
  box-shadow: 0 10px 30px rgba(22, 49, 59, 0.045);
}

.person-card-featured .person-portrait {
  width: 150px;
  height: 150px;
  align-self: center;
}

.person-card-featured .person-copy {
  align-self: center;
  padding: 0;
}

.person-card-featured .person-copy h3 {
  color: var(--lab-blue-deep);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.person-card-featured .person-bio {
  font-size: 0.92rem;
}

.person-card-no-photo {
  grid-template-columns: minmax(0, 1fr);
}

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

.alumni-row {
  display: grid;
  grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 3.4rem);
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--lab-line);
}

.alumni-row h3 {
  margin: 0;
  color: var(--q2-text-strong);
  font-size: 1rem;
  line-height: 1.45;
  letter-spacing: -0.012em;
}

.alumni-details {
  min-width: 0;
}

.alumni-bio {
  color: var(--lab-ink-soft);
  font-size: 0.82rem;
}

.alumni-bio p {
  margin: 0;
  font-size: inherit;
  line-height: 1.58;
}

.alumni-bio p + p {
  margin-top: 0.42rem;
}

.alumni-period {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.65rem;
  margin: 0.58rem 0 0;
  color: var(--lab-blue-deep);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
}

.alumni-period span {
  color: var(--lab-ink-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Markdown-authored people and alumni directories. */
.directory-markdown {
  counter-reset: directory-section;
}

.directory-markdown > h2 {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 0 0 1.2rem;
  padding-bottom: 0.8rem;
  color: var(--q2-text-strong);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  border-bottom: 1px solid var(--lab-line);
}

.directory-markdown > h2:not(:first-child) {
  margin-top: clamp(3rem, 5vw, 4.2rem);
}

.directory-markdown > h2::before {
  display: inline-block;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  margin: 0;
  border-radius: 0;
  background: transparent;
  opacity: 1;
  counter-increment: directory-section;
  content: counter(directory-section, decimal-leading-zero);
  color: var(--lab-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.people-markdown > h2:not(:first-of-type) {
  position: relative;
  border-bottom: 0;
}

.people-markdown > h2:not(:first-of-type)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    var(--lab-line) 0,
    var(--lab-line) calc(50% - 0.5rem),
    transparent calc(50% - 0.5rem),
    transparent calc(50% + 0.5rem),
    var(--lab-line) calc(50% + 0.5rem),
    var(--lab-line) 100%
  );
}

.people-markdown > dl {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 88px minmax(0, 1fr);
  gap: 0 1rem;
  margin: 0;
  border-top: 0;
}

.people-markdown > dl > dt {
  position: relative;
  width: 88px;
  height: 88px;
  align-self: center;
  margin: 0;
  overflow: hidden;
  border-radius: 50%;
  background: var(--lab-blue-soft);
  box-shadow: 0 0 0 1px var(--lab-line), 0 6px 18px rgba(22, 49, 59, 0.08);
}

.people-markdown > dl > dt img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  box-shadow: none;
  transform: scale(1.018);
}

.people-markdown > dl > dd {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 1.15rem 0;
  color: var(--lab-ink-soft);
  font-size: 0.8rem;
  border-bottom: 0;
}

.people-markdown > h2:not(:first-of-type) + dl > dd::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: calc(-88px - 1rem);
  height: 1px;
  background: var(--lab-line);
}

.people-markdown > dl > dd p {
  margin: 0.35rem 0 0;
  color: inherit;
  font-size: inherit;
  line-height: 1.58;
}

.people-markdown > dl > dd > p:first-child {
  margin-top: 0;
  color: var(--q2-text-strong);
  font-size: 1.02rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.people-markdown > h2:first-of-type + dl {
  grid-template-columns: 150px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border: 1px solid var(--lab-line);
  border-radius: 1rem;
  background: var(--lab-white);
  box-shadow: 0 10px 30px rgba(22, 49, 59, 0.045);
}

.people-markdown > h2:first-of-type + dl > dt {
  width: 150px;
  height: 150px;
  align-self: center;
  margin: 0;
}

.people-markdown > h2:first-of-type + dl > dd {
  align-self: center;
  padding: 0;
  font-size: 0.92rem;
  border-bottom: 0;
}

.people-markdown > h2:first-of-type + dl > dd > p:first-child {
  color: var(--lab-blue-deep);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.alumni-markdown > dl {
  display: grid;
  grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr);
  gap: 0 clamp(1.25rem, 4vw, 3.4rem);
  margin: 0;
  overflow: hidden;
  border-top: 1px solid var(--lab-line);
}

.alumni-markdown > h2 {
  margin-bottom: 0.55rem;
  border-bottom: 0;
}

.alumni-markdown > dl > dt,
.alumni-markdown > dl > dd {
  margin: 0;
  padding: 0.72rem 0;
  border-bottom: 0;
}

.alumni-markdown > dl > dt {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  color: var(--q2-text-strong);
  font-size: 1rem;
  line-height: 1.45;
  letter-spacing: -0.012em;
  text-align: center;
}

.alumni-markdown > dl > dt::after {
  content: "";
  position: absolute;
  right: auto;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 1px;
  background: var(--lab-line);
}

.alumni-markdown > dl > dd {
  min-width: 0;
  color: var(--lab-ink-soft);
  font-size: 0.82rem;
}

.alumni-markdown > dl > dd p {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: 1.58;
}

.alumni-markdown > dl > dd p + p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.65rem;
  margin-top: 0.32rem;
  color: var(--lab-blue-deep);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
}

.alumni-markdown > dl > dd p + p strong {
  color: var(--q2-text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

:root[data-theme="dark"] .people-markdown > dl > dt {
  isolation: isolate;
  background: #0a1a1f;
  box-shadow: 0 0 0 1px rgba(114, 207, 202, 0.2), 0 8px 20px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .people-markdown > dl > dt::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(circle, transparent 54%, rgba(12, 23, 27, 0.28) 70%, rgba(12, 23, 27, 0.78) 88%, rgba(12, 23, 27, 0.96) 100%);
  box-shadow: inset 0 0 0 3px rgba(12, 23, 27, 0.88);
}

:root[data-theme="dark"] .people-markdown > dl > dt img {
  transform: scale(1.055);
}

:root[data-theme="dark"] .people-markdown img[src*="qiuyiyi.jpg"] {
  transform: scale(1.85);
  transform-origin: 50% 58%;
}

:root[data-theme="dark"] .people-markdown img[src*="tangchi.jpg"] {
  transform: scale(1.5);
  transform-origin: 50% 52%;
}

:root[data-theme="dark"] .people-markdown img[src*="zhangyiyan.jpg"] {
  transform: scale(1.5);
  transform-origin: 50% 53%;
}

/* Publications */
.publication-tabs-shell {
  max-width: 1040px;
}

.publication-tabs {
  display: inline-flex;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  padding: 0.35rem;
  border: 1px solid var(--lab-line);
  border-radius: 0.85rem;
  background: var(--lab-white);
  box-shadow: 0 8px 24px rgba(22, 49, 59, 0.04);
}

.publication-tab {
  min-height: 2.7rem;
  margin: 0;
  padding: 0.6rem 1.05rem;
  color: var(--lab-ink-soft);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  border: 0;
  border-radius: 0.58rem;
  background: transparent;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.publication-tab:hover {
  color: var(--lab-blue-deep);
  background: var(--lab-blue-soft);
}

.publication-tab[aria-selected="true"] {
  color: #fff;
  background: var(--lab-blue);
  box-shadow: 0 7px 18px rgba(13, 111, 115, 0.2);
}

.publication-tab:focus-visible {
  outline: 3px solid rgba(13, 111, 115, 0.24);
  outline-offset: 2px;
}

.publication-panel[hidden] {
  display: none;
}

.publication-tabs-ready .publication-panel > h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: -1px;
  padding: 0;
  white-space: nowrap;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.publication-panel h3 {
  margin: 0;
  padding: 1.6rem 1.7rem 0;
  color: var(--q2-text-strong);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.42;
  letter-spacing: -0.015em;
}

.publication-panel h3:not(:first-of-type) {
  margin-top: 1rem;
  border-top: 1px solid var(--lab-line);
}

.publication-panel {
  overflow: hidden;
  border: 1px solid var(--lab-line);
  border-radius: 1rem;
  background: var(--lab-white);
  box-shadow: 0 10px 34px rgba(22, 49, 59, 0.045);
}

.publication-panel > p,
.publication-panel > ul {
  margin: 0.55rem 1.7rem 0;
  color: var(--lab-ink-soft);
  font-size: 0.84rem;
  line-height: 1.65;
}

.publication-panel > p:last-child,
.publication-panel > ul:last-child {
  margin-bottom: 1.6rem;
}

.publication-panel > p strong,
.publication-panel > ul strong {
  color: var(--lab-ink);
  font-weight: 700;
}

.publication-panel > p:has(> strong:only-child) {
  margin-top: 0.8rem;
  color: var(--q2-text-strong);
  font-size: 0.88rem;
  line-height: 1.4;
}

.publication-panel > p:has(> strong:only-child) > strong {
  font: inherit;
  font-weight: 800;
}

.publication-panel > p:has(> strong:only-child) + ul {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  line-height: 1.55;
}

.publication-panel > p:has(> strong:only-child) + ul > li {
  font-size: inherit;
  line-height: inherit;
}

.publication-panel > p a,
.publication-panel > ul a {
  font-weight: 650;
}

.publication-panel > ul {
  padding-left: 1.2rem;
}

.publication-panel hr {
  height: 0;
  margin: 1.5rem 1.7rem 0;
  border: 0;
}

.publication-panel > p:only-of-type {
  padding: 2rem;
  margin: 0;
  color: var(--lab-ink-soft);
}

/* News */
.blog-listing {
  background: transparent;
}

.blog-page-header {
  max-width: 800px;
  margin-bottom: clamp(2.2rem, 4vw, 3.5rem);
  text-align: left;
}

.blog-page-header::before {
  content: "Group updates · 课题组动态";
  display: block;
  margin-bottom: 0.85rem;
  color: var(--lab-blue);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.blog-page-header h1 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 4.5rem);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.blog-grid > .card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--lab-line);
  border-radius: 0.85rem;
  background: var(--lab-white);
  box-shadow: 0 8px 28px rgba(22, 49, 59, 0.05);
}

.blog-grid > .card:hover {
  box-shadow: 0 18px 42px rgba(22, 49, 59, 0.1);
  transform: translateY(-3px);
}

.card-image {
  overflow: hidden;
}

.card-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card:hover .card-image img {
  transform: scale(1.025);
}

.card-header {
  padding: 0.9rem 0.95rem 0.45rem;
}

.card-body {
  flex: 1;
  padding: 0 0.95rem 0.95rem;
}

.card-footer {
  display: none;
}

.card-title :is(h1, h2, h3, h4) {
  display: -webkit-box;
  color: var(--q2-text-strong);
  overflow: hidden;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-title :is(h1, h2, h3, h4) a {
  word-spacing: 0.08em;
}

.card-body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--lab-ink-soft);
  font-size: 0.78rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-body img {
  display: none;
}

.card-subtitle,
.blog-date {
  color: var(--q2-text-muted);
  font-size: 0.7rem;
}

/* Individual news articles */
.news-article {
  max-width: 880px;
  margin: 0;
}

.news-article-header {
  max-width: 880px;
  margin: 0 0 clamp(1.25rem, 2.2vw, 1.8rem);
  text-align: left;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.3rem;
  color: var(--lab-blue);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.news-article-header h1 {
  max-width: 23em;
  margin: 0;
  color: var(--q2-text-strong);
  font-size: clamp(2rem, 3.6vw, 3.45rem);
  line-height: 1.13;
  letter-spacing: -0.035em;
}

.news-article-header h1 a {
  color: inherit;
  text-decoration: none;
}

.news-article-header .lead {
  max-width: 46rem;
  margin: 1rem 0 0;
  color: var(--lab-ink-soft);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 1.35rem;
  color: var(--q2-text-muted);
  font-size: 0.78rem;
}

.article-meta .blog-date,
.article-author {
  font-size: inherit;
}

.article-author::before {
  content: "By ";
  color: var(--q2-text-muted);
}

.news-article .e-content {
  max-width: 800px;
  margin: 0;
}

.news-article .e-content p {
  color: var(--lab-ink-soft);
  font-size: 1.03rem;
  line-height: 1.85;
}

.news-article .e-content > p:first-child {
  color: var(--lab-ink);
  font-size: 1.08rem;
}

.news-article .e-content img {
  display: block;
  width: auto;
  max-width: min(100%, 720px);
  max-height: min(52vh, 420px);
  height: auto;
  margin: 1.6rem auto;
  object-fit: contain;
  border-radius: 0.9rem;
  box-shadow: 0 0 0 1px var(--lab-line), 0 16px 38px rgba(22, 49, 59, 0.08);
}

.news-article .e-content p:has(> img) {
  max-width: 800px;
  margin: 1.6rem 0;
}

.news-article .e-content p:has(> img:nth-of-type(2)) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.news-article .e-content p:has(> img:nth-of-type(2)) > img {
  justify-self: center;
  max-width: 100%;
  max-height: 220px;
  margin: 0;
}

.news-article .e-content p:has(> img:nth-of-type(2)) > img:first-child {
  max-height: min(46vh, 360px);
  grid-column: 1 / -1;
}

.article-cover {
  max-width: 880px;
  margin: 0 0 2.4rem;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 0 0 1px var(--lab-line), 0 16px 38px rgba(22, 49, 59, 0.08);
}

.article-cover img {
  display: block;
  width: 100%;
  height: auto;
}

/* Keep bright image edges from glowing against the dark canvas. */
:root[data-theme="dark"] .lab-hero-visual {
  border-color: rgba(114, 207, 202, 0.16);
  background: #0a1a1f;
}

:root[data-theme="dark"] .lab-hero {
  background:
    linear-gradient(120deg, rgba(18, 59, 63, 0.58), rgba(12, 23, 27, 0.46)),
    var(--lab-paper);
}

:root[data-theme="dark"] .person-portrait {
  position: relative;
  isolation: isolate;
  background: #0a1a1f;
  box-shadow: 0 0 0 1px rgba(114, 207, 202, 0.2), 0 8px 20px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .person-portrait::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(circle, transparent 54%, rgba(12, 23, 27, 0.28) 70%, rgba(12, 23, 27, 0.78) 88%, rgba(12, 23, 27, 0.96) 100%);
  box-shadow: inset 0 0 0 3px rgba(12, 23, 27, 0.88);
}

:root[data-theme="dark"] .person-portrait img,
:root[data-theme="dark"] .person-card:hover .person-portrait img {
  transform: scale(var(--portrait-dark-zoom, 1.055));
  transform-origin: var(--portrait-dark-position, center);
}

:root[data-theme="dark"] :where(
  .lab-hero-visual img,
  .home-news-image img,
  .research-card img,
  .card-image img,
  .imported-page .content-item img,
  .news-article .e-content img,
  .article-cover img
) {
  filter: brightness(0.86) saturate(0.94);
}

:root[data-theme="dark"] :where(
  .home-news-image,
  .card-image,
  .article-cover
) {
  background: #0a1a1f;
}

:root[data-theme="dark"] :where(
  .imported-page .content-item img,
  .news-article .e-content img,
  .article-cover
) {
  box-shadow: 0 0 0 1px rgba(7, 16, 20, 0.9), 0 16px 38px rgba(0, 0, 0, 0.3);
}

.news-article + .prev-next {
  width: 100%;
  max-width: 880px;
  margin: clamp(1.75rem, 3vw, 2.5rem) auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--lab-line);
}

/* Footer */
#footer {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  padding: clamp(1.75rem, 3vw, 2.5rem) 0 1rem;
  color: #c7d7d8;
  background: #0d2d35;
}

.modular-home #footer {
  margin-top: 0;
}

.people-directory #footer {
  margin-top: 0;
}

.publications-page #footer,
.news-page #footer,
.news-item-page #footer,
.research-page #footer {
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(150px, 0.55fr) minmax(230px, 0.75fr);
  column-gap: clamp(2rem, 5vw, 4rem);
  row-gap: 1.5rem;
}

.footer-identity,
.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.footer-identity strong {
  color: #fff;
  font-size: 1.35rem;
}

.footer-identity > span {
  color: #8fb3b5;
  font-size: 0.82rem;
}

.footer-identity p {
  max-width: 34rem;
  margin: 0.65rem 0 0;
  color: #a9c0c1;
  font-size: 0.9rem;
}

.footer-links strong,
.footer-contact strong {
  margin-bottom: 0.4rem;
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#footer .footer-links a,
#footer .footer-contact a,
.footer-contact span {
  color: #b6cbcc;
  font-size: 0.84rem;
  text-decoration: none;
}

#footer .footer-links a:hover,
#footer .footer-contact a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  color: #77999b;
  font-size: 0.74rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#footer .footer-bottom a {
  color: #9fbbbd;
  text-decoration: none;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
}

#footer .footer-bottom a:hover {
  color: #fff;
}

/* Mobile navigation and responsive layout */
.overlay .overlay-menu .menu-label {
  align-items: flex-start;
  text-align: left;
}

@media (max-width: 1120px) {
  .navbar-section.logo {
    min-width: 52px;
  }

  #header .brand-lockup {
    display: none;
  }

  .dropmenu a {
    padding-inline: 0.54rem;
  }

  .lab-hero-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(390px, 1.08fr);
    gap: 3rem;
  }

  .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .container {
    width: min(100% - 2rem, 1240px);
  }

  #header .navbar {
    min-height: 68px;
  }

  #header .brand-lockup {
    display: flex;
  }

  .navbar-section.logo {
    min-width: 0;
  }

  .navbar-brand img,
  .navbar-brand svg {
    width: 40px;
    height: 40px;
  }

  .mobile-menu {
    top: 17px;
    right: 1rem;
  }

  .overlay {
    background: var(--lab-paper);
  }

  .overlay .overlay-menu a {
    color: var(--lab-ink);
  }

  .lab-hero-grid,
  .intro-grid {
    grid-template-columns: 1fr;
  }

  .lab-hero-copy h1 {
    max-width: 11em;
  }

  .lab-hero-visual {
    max-width: 680px;
    transform: none;
  }

  .home-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .home-news-card:last-child {
    grid-column: 1 / -1;
  }

  .person-card-featured {
    grid-template-columns: 128px minmax(0, 1fr);
  }

  .person-card-featured .person-portrait {
    width: 128px;
    height: 128px;
  }

  .people-markdown > h2:first-of-type + dl {
    grid-template-columns: 128px minmax(0, 1fr);
  }

  .people-markdown > h2:first-of-type + dl > dt {
    width: 128px;
    height: 128px;
  }

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

  .footer-identity {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(2.3rem, 11vw, 3.7rem);
  }

  .directory-markdown > h2 {
    gap: 0.65rem;
  }

  .brand-lockup small {
    display: none;
  }

  .lab-hero {
    padding-top: 3.5rem;
  }

  .lab-hero-copy h1 {
    font-size: clamp(2.55rem, 12vw, 4.2rem);
  }

  .hero-actions,
  .section-heading-row,
  .invitation-panel,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .research-card-grid,
  .home-news-grid,
  .blog-grid,
  .people-grid {
    grid-template-columns: 1fr;
  }

  .home-news-card:last-child {
    grid-column: auto;
  }

  .research-card,
  .research-card img {
    min-height: 250px;
  }

  .person-card-featured {
    display: block;
  }

  .person-card-featured .person-portrait {
    width: 112px;
    height: 112px;
    margin: 0 auto 1.2rem;
  }

  .alumni-row {
    grid-template-columns: 1fr;
    gap: 0.42rem;
    padding: 1rem 0;
  }

  .people-markdown > dl {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 0 0.85rem;
  }

  .people-markdown > h2:not(:first-of-type) {
    border-bottom: 1px solid var(--lab-line);
  }

  .people-markdown > h2:not(:first-of-type)::after {
    display: none;
  }

  .people-markdown > h2:not(:first-of-type) + dl > dd::after {
    left: calc(-72px - 0.85rem);
  }

  .people-markdown > dl > dt {
    width: 72px;
    height: 72px;
  }

  .people-markdown > h2:first-of-type + dl {
    display: block;
  }

  .people-markdown > h2:first-of-type + dl > dt {
    width: 112px;
    height: 112px;
    margin: 0 auto 1.2rem;
  }

  .alumni-markdown > dl {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .alumni-markdown > dl > dt {
    padding-bottom: 0.18rem;
    border-bottom: 0;
  }

  .alumni-markdown > dl > dt::after {
    display: none;
  }

  .alumni-markdown > dl > dd {
    position: relative;
    padding-top: 0;
    padding-bottom: 0.72rem;
  }

  .alumni-markdown > dl > dd::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: var(--lab-line);
  }

  .news-article .e-content p:has(> img:nth-of-type(2)) {
    grid-template-columns: 1fr;
  }

  .news-article .e-content p:has(> img:nth-of-type(2)) > img:first-child {
    grid-column: auto;
  }

  .publication-tabs {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .publication-tab {
    min-width: 0;
    padding-inline: 0.45rem;
    font-size: 0.76rem;
  }

  .publication-panel h3 {
    padding-inline: 1.15rem;
  }

  .publication-panel > p,
  .publication-panel > ul {
    margin-inline: 1.15rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1.25rem;
  }

  .footer-identity {
    grid-column: 1 / -1;
  }

  .footer-contact a {
    overflow-wrap: anywhere;
  }

  .footer-bottom {
    gap: 0.65rem;
    margin-top: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
