:root {
  color-scheme: light dark;
  --page: #f4f5f2;
  --surface: #e8ebe7;
  --surface-strong: #dce1dc;
  --ink: #152126;
  --muted: #5b676b;
  --line: rgba(21, 33, 38, 0.18);
  --line-strong: rgba(21, 33, 38, 0.42);
  --accent: #a43c38;
  --accent-ink: #f8f3f1;
  --focus: #7e211f;
  --image-scrim: rgba(13, 21, 25, 0.68);
  --shadow: 0 24px 64px rgba(22, 34, 38, 0.13);
  --radius: 2px;
  --shell: min(1180px, calc(100vw - 48px));
  --shell-wide: min(1480px, calc(100vw - 48px));
  --header-height: 80px;
  --font-sans: "Avenir Next", Avenir, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #101719;
    --surface: #192225;
    --surface-strong: #222e31;
    --ink: #edf0ec;
    --muted: #a8b1b1;
    --line: rgba(237, 240, 236, 0.17);
    --line-strong: rgba(237, 240, 236, 0.42);
    --accent: #cf6a64;
    --accent-ink: #171011;
    --focus: #f08a83;
    --image-scrim: rgba(8, 13, 15, 0.74);
    --shadow: 0 26px 72px rgba(3, 7, 8, 0.42);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 28px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.68 var(--font-sans);
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button,
input,
select { font: inherit; }
button,
a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

::selection { background: var(--accent); color: var(--accent-ink); }

h1,
h2,
h3,
h4,
p { overflow-wrap: break-word; }

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.08;
  text-wrap: balance;
}

p { margin: 0; }
figure { margin: 0; }
ul { margin: 0; padding: 0; }

.shell { width: var(--shell); margin-inline: auto; }
.shell-wide { width: var(--shell-wide); margin-inline: auto; }
.section { padding-block: clamp(78px, 9vw, 136px); }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--page);
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }

[hidden] { display: none !important; }

.language-switch {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.language-switch button {
  padding: 7px 3px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.language-switch button:hover,
.language-switch button[aria-pressed="true"] { color: var(--accent); }

.header-actions { display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: 16px; }

html:not([data-language]) [data-lang="zh"],
html[data-language="en"] [data-lang="zh"],
html[data-language="zh"] [data-lang="en"] { display: none !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: var(--page);
}

.header-shell {
  display: flex;
  width: min(1480px, calc(100vw - 36px));
  height: 100%;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand { display: flex; min-width: 610px; align-items: center; gap: 20px; }
.brand img { width: 188px; height: auto; }
.brand span { display: grid; max-width: none; line-height: 1.18; }
.brand strong { font-size: 19px; font-weight: 650; letter-spacing: 0; white-space: nowrap; }
.brand small { margin-top: 5px; color: var(--muted); font-size: 10.5px; letter-spacing: 0.025em; }

.primary-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(11px, 1.05vw, 20px); white-space: nowrap; }
.primary-nav a { position: relative; padding-block: 10px; color: var(--muted); font-size: clamp(12px, .82vw, 13px); font-weight: 620; line-height: 1; }
.primary-nav a::after { content: ""; position: absolute; right: 0; bottom: 3px; left: 0; height: 2px; transform: scaleX(0); transform-origin: right; background: var(--accent); transition: transform 160ms ease; }
.primary-nav a:hover,
.primary-nav a[aria-current="page"] { color: var(--ink); }
.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; }

.text-link { display: inline-block; width: max-content; border-bottom: 1px solid var(--line-strong); font-size: 15px; font-weight: 650; line-height: 1.5; }
.text-link:hover { border-color: var(--accent); color: var(--accent); }

.page-title { padding-block: clamp(38px, 5vw, 64px) 28px; border-bottom: 1px solid var(--line); }
.page-title h1 { font-size: clamp(32px, 3.5vw, 44px); font-weight: 590; letter-spacing: -.025em; }
.content-section { padding-block: clamp(42px, 6vw, 78px); }

.news-rows { border-top: 1px solid var(--line-strong); }
.news-row { display: grid; grid-template-columns: 118px minmax(0, 1fr); align-items: start; gap: 24px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.news-row time { color: var(--muted); font: 600 11px/1.5 var(--font-mono); text-transform: uppercase; }
.news-row h3 { font-size: clamp(16px, 1.4vw, 20px); font-weight: 560; line-height: 1.45; }
.news-row h3 a:hover { color: var(--accent); }

.sidebar-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); padding-block: clamp(38px, 5vw, 68px); }
.side-nav { position: sticky; top: calc(var(--header-height) + 28px); align-self: start; display: grid; border-top: 1px solid var(--line-strong); }
.side-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.35; }
.side-nav a:hover { color: var(--accent); }

.site-footer { margin-top: clamp(66px, 8vw, 112px); padding-block: 34px; border-top: 1px solid var(--line-strong); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) auto; gap: 12px 40px; align-items: start; }
.site-footer address,
.footer-contact,
.maintainer { color: var(--muted); font-size: 13px; font-style: normal; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-contact a:hover { color: var(--accent); }
.maintainer { grid-column: 1 / -1; }

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

.home-carousel { position: relative; width: min(1600px, calc(100vw - 24px)); margin-top: clamp(18px, 2.4vw, 34px); }
.carousel-stage { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); overflow: hidden; background: var(--surface); }
.carousel-slide { position: relative; grid-area: 1 / 1; display: grid; width: 100%; min-width: 0; height: 100%; min-height: 0; transform: scale(.988); place-items: center; opacity: 0; pointer-events: none; transition: opacity 440ms cubic-bezier(.2,.7,.2,1), transform 520ms cubic-bezier(.2,.7,.2,1); }
.carousel-slide.is-active { z-index: 1; transform: scale(1); opacity: 1; pointer-events: auto; }
.carousel-slide > img,
.carousel-slide > video { width: auto; max-width: 100%; height: auto; max-height: 100%; object-fit: contain; }
.carousel-slide > video { background: var(--surface); }
.home-carousel .carousel-stage { height: min(88dvh, 920px); min-height: 600px; }
.carousel-slide::after { content: ""; position: absolute; inset: auto 0 0; height: 42%; background: linear-gradient(transparent, var(--image-scrim)); pointer-events: none; }
.carousel-slide-plain::after { display: none; }
.carousel-slide-copy { position: absolute; z-index: 2; right: clamp(22px, 4vw, 52px); bottom: clamp(20px, 3.5vw, 46px); left: clamp(22px, 4vw, 52px); max-width: 720px; color: #f4f4ef; }
.carousel-slide-copy h2,
.carousel-slide-copy h3 { font-size: clamp(24px, 3vw, 40px); font-weight: 570; letter-spacing: -.025em; }
.carousel-slide-copy p { margin-top: 8px; font-size: clamp(14px, 1.3vw, 17px); }
.carousel-arrow { position: absolute; z-index: 4; top: 50%; display: grid; width: 46px; height: 58px; padding: 0; transform: translateY(-50%); place-items: center; border: 1px solid rgba(255,255,255,.6); border-radius: 0; background: rgba(10,17,20,.54); color: #fff; cursor: pointer; font-size: 22px; opacity: 0; transition: opacity 140ms ease, background 140ms ease; }
.carousel-arrow-previous { left: 14px; }
.carousel-arrow-next { right: 14px; }
[data-carousel]:hover .carousel-arrow,
.carousel-arrow:focus-visible { opacity: 1; }
.carousel-arrow:hover { background: rgba(10,17,20,.82); }

.introduction-section { padding-block: clamp(48px, 6vw, 80px); }
.introduction-copy { display: grid; max-width: 88ch; gap: 20px; font-size: clamp(16px, 1.25vw, 18px); }
.introduction-copy p { color: var(--muted); }
.localized-prose { display: grid; gap: 20px; }
.home-news { padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.section-heading-with-link { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading-with-link h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 590; }

.research-language { max-width: 980px; }
.research-language-zh { border-top: 1px solid var(--line-strong); }
.research-lead { color: var(--muted); font-size: 17px; line-height: 1.8; }
.research-directions { display: grid; gap: 0; margin: 36px 0 0; padding-left: 28px; }
.research-direction { padding: 24px 0 26px 10px; border-top: 1px solid var(--line); }
.research-direction::marker { color: var(--accent); font-weight: 650; }
.research-direction h2 { font-size: clamp(20px, 2vw, 26px); font-weight: 620; line-height: 1.3; }
.research-direction p { max-width: 82ch; margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.82; }
.research-language-zh .research-direction p { line-height: 1.95; }

.technology-section { padding: 0 0 58px; scroll-margin-top: calc(var(--header-height) + 24px); }
.technology-section + .technology-section { padding-top: 54px; border-top: 1px solid var(--line-strong); }
.technology-section > h2 { margin-bottom: 24px; font-size: clamp(26px, 3vw, 36px); font-weight: 600; }
.technology-section > img { width: auto; max-width: 100%; height: auto; max-height: 660px; margin-bottom: 32px; object-fit: contain; background: var(--surface); }
.technology-copy { display: grid; gap: 28px; max-width: 88ch; }
.technology-introduction { margin-bottom: 54px; padding-bottom: 54px; border-bottom: 1px solid var(--line-strong); }
.technology-copy section { display: grid; gap: 10px; }
.technology-copy h3 { font-size: 19px; font-weight: 630; line-height: 1.35; }
.technology-copy p { color: var(--muted); font-size: 15px; line-height: 1.78; }

.members-layout { align-items: start; }
.members-side-nav a { line-height: 1.35; }
.member-directory { min-width: 0; }
.member-group { padding-block: 42px; scroll-margin-top: calc(var(--header-height) + 24px); }
.member-group + .member-group { border-top: 1px solid var(--line-strong); }
.member-group > h2 { margin-bottom: 28px; font-size: clamp(24px, 2.5vw, 32px); font-weight: 600; }
.pi-profile { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(30px, 5vw, 68px); padding-block: 34px; border-top: 1px solid var(--line); }
.member-photo { display: grid; width: 100%; aspect-ratio: 4 / 5; align-self: start; overflow: hidden; place-items: center; padding: 8px; background: var(--surface); }
.member-photo img { width: auto; max-width: 100%; height: auto; max-height: 100%; object-fit: contain; }
.pi-copy h3 { font-size: clamp(25px, 2.8vw, 36px); font-weight: 600; }
.member-role { margin-top: 7px; color: var(--accent); font-size: 13px; font-weight: 620; }
.pi-copy > a { display: inline-block; margin-top: 8px; border-bottom: 1px solid var(--line); }
.pi-biography { gap: 16px; margin-top: 16px; }
.pi-biography p { max-width: 76ch; color: var(--muted); }
.pi-copy h4 { margin-top: 8px; font-size: 17px; }
.pi-copy ul { display: grid; gap: 7px; margin-top: 0; padding-left: 20px; color: var(--muted); }
.member-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 20px; }
.member-card-copy h3 { margin-top: 12px; font-size: 17px; font-weight: 610; line-height: 1.3; }
.member-card-copy > p { margin-top: 3px; color: var(--muted); font-size: 13px; }
.member-details { display: grid; gap: 9px; margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.member-details strong { color: var(--ink); font-weight: 620; }
.member-details a { overflow-wrap: anywhere; }
.member-detail-lines { display: inline-grid; gap: 2px; vertical-align: top; }
.profile-row-group .member-grid { grid-template-columns: 1fr; gap: 0; }
.profile-row-group .member-card { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(30px, 5vw, 68px); padding-block: 34px; border-top: 1px solid var(--line); }
.profile-row-group .member-card-copy h3 { margin-top: 0; font-size: clamp(23px, 2.3vw, 30px); }
.compact-member-photo { width: min(100%, 216px); }
.compact-horizontal-group .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 28px; }
.compact-horizontal-group .member-card { display: grid; min-width: 0; grid-template-columns: 216px minmax(0, 1fr); gap: 20px; align-items: start; }
.compact-horizontal-group .member-card-copy h3 { margin-top: 0; }
.compact-tile-group .member-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 18px; }
.compact-tile-group .member-card { min-width: 0; }
.compact-tile-group .member-card-copy h3 { margin-top: 12px; overflow-wrap: anywhere; }
.compact-tile-group .member-description { margin-top: 7px; font-size: 13px; line-height: 1.65; }

.news-archive { padding-top: 34px; }
.publication-layout { align-items: start; }
.publication-side-nav a { padding-block: 8px; }
.publication-year { scroll-margin-top: calc(var(--header-height) + 24px); }
.publication-year + .publication-year { margin-top: 54px; }
.publication-year > h2 { margin-bottom: 18px; font-size: clamp(23px, 2.4vw, 30px); font-weight: 600; }
.publication-list { border-top: 1px solid var(--line-strong); }
.publication { display: grid; grid-template-columns: 48px minmax(0, 1fr) 60px; gap: 18px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.publication-index,
.publication time { color: var(--muted); font: 600 11px/1.65 var(--font-mono); }
.publication time { text-align: right; }
.publication p { max-width: 96ch; font-size: 15px; }
.publication a:hover { color: var(--accent); }

.gallery-section { padding-bottom: 64px; scroll-margin-top: calc(var(--header-height) + 24px); }
.gallery-section + .gallery-section { padding-top: 58px; border-top: 1px solid var(--line-strong); }
.gallery-section > h2 { margin-bottom: 26px; font-size: clamp(26px, 3vw, 36px); font-weight: 600; }
.gallery-carousel,
.life-carousel { position: relative; }
.gallery-carousel .carousel-stage,
.life-carousel .carousel-stage { height: min(74dvh, 720px); min-height: 440px; }
.gallery-carousel .carousel-slide > img,
.life-carousel .carousel-slide > img { width: auto; max-width: 100%; margin-inline: auto; }
.life-group { padding-block: 28px; }
.life-group + .life-group { border-top: 1px solid var(--line); }
.life-group h2 { margin-bottom: 18px; font-size: 20px; font-weight: 610; }
.life-photo-grid { columns: 3 240px; column-gap: 14px; }
.life-photo { display: block; width: 100%; margin: 0 0 14px; padding: 0; break-inside: avoid; border: 0; border-radius: 0; background: var(--surface); cursor: zoom-in; }
.life-photo img { width: 100%; height: auto; object-fit: contain; }
.gallery-dialog { width: min(1100px, calc(100vw - 36px)); max-height: calc(100dvh - 36px); padding: 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--page); color: var(--ink); box-shadow: var(--shadow); }
.gallery-dialog::backdrop { background: rgba(7,11,13,.82); }
.gallery-dialog > button { display: block; margin: 0 0 12px auto; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink); cursor: pointer; }
.gallery-dialog img { width: auto; max-width: 100%; height: auto; max-height: calc(100dvh - 150px); margin-inline: auto; object-fit: contain; }
.gallery-dialog > div { display: flex; justify-content: space-between; gap: 20px; margin-top: 12px; }
.gallery-dialog span { color: var(--muted); }

.article-shell { max-width: 980px; }
.news-article > header { padding-bottom: 28px; border-bottom: 1px solid var(--line-strong); }
.news-article h1 { max-width: 34ch; font-size: clamp(28px, 3.4vw, 42px); font-weight: 590; line-height: 1.22; }
.news-article header p { margin-top: 14px; color: var(--muted); font: 600 11px/1.5 var(--font-mono); }
.wp_articlecontent { padding-top: 34px; color: var(--muted); font-size: 16px; line-height: 1.82; }
.wp_articlecontent > * + * { margin-top: 18px; }
.wp_articlecontent img { width: auto; max-width: 100%; height: auto; margin-inline: auto; object-fit: contain; }

.join-layout { align-items: start; }
.join-layout .sidebar-content { min-width: 0; }
.join-layout .side-nav-secondary { padding-left: 14px; font-size: 12px; }
.join-content { max-width: 980px; scroll-margin-top: calc(var(--header-height) + 24px); }
.join-content > img { width: auto; max-width: 100%; height: auto; max-height: 720px; margin-bottom: 36px; object-fit: contain; }
.join-introduction { margin-bottom: 34px; color: var(--muted); font-size: 17px; }
.join-content section { padding-block: 26px; border-top: 1px solid var(--line); }
.join-content section h2 { margin-bottom: 14px; font-size: 21px; font-weight: 620; line-height: 1.35; }
.join-content section p { max-width: 86ch; color: var(--muted); }
.join-content section p + p { margin-top: 10px; }
.join-gallery { margin-top: 72px; padding-top: 58px; border-top: 1px solid var(--line-strong); scroll-margin-top: calc(var(--header-height) + 24px); }
.join-gallery > h2 { margin-bottom: 42px; font-size: clamp(28px, 3vw, 38px); font-weight: 600; }

@media (max-width: 1360px) {
  .header-shell { gap: 18px; }
  .brand { min-width: 570px; gap: 16px; }
  .brand img { width: 176px; }
  .brand strong { font-size: 17.5px; }
  .primary-nav { gap: 11px; }
  .primary-nav a { font-size: 12.25px; }
  .header-actions { gap: 10px; }
}

@media (max-width: 1120px) {
  :root {
    --shell: min(100% - 32px, 900px);
    --shell-wide: min(100% - 32px, 1060px);
    --header-height: 108px;
  }

  .header-shell {
    display: grid;
    width: calc(100% - 32px);
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 66px 34px;
    gap: 0;
    align-content: center;
  }

  .brand {
    z-index: 1;
    display: grid;
    min-width: 0;
    height: 100%;
    grid-column: 1 / -1;
    grid-row: 1 / 3;
    grid-template-rows: 66px 34px;
    gap: 0;
    align-items: center;
  }

  .brand img { width: 158px; grid-row: 1; }
  .brand span { grid-row: 2; }
  .brand strong { font-size: 15px; }
  .brand small { display: none; }

  .nav-toggle {
    z-index: 2;
    display: inline-flex;
    min-height: 40px;
    grid-column: 2;
    grid-row: 1;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--page);
    color: var(--ink);
    font-size: 12px;
    font-weight: 650;
  }

  .header-actions {
    z-index: 2;
    grid-column: 1 / 3;
    grid-row: 1;
    justify-self: end;
    padding-right: 72px;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: none;
    padding: 16px;
    border-bottom: 1px solid var(--line-strong);
    background: var(--page);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }

  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 10px; font-size: 13px; }
  .primary-nav a::after { display: none; }
  .sidebar-layout { grid-template-columns: 170px minmax(0, 1fr); gap: 36px; }
  .member-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-row-group .member-grid { grid-template-columns: 1fr; }
  .compact-horizontal-group .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compact-tile-group .member-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .members-layout { grid-template-columns: 1fr; padding-top: 28px; }
  .members-side-nav { position: static; display: flex; overflow-x: auto; gap: 20px; padding-bottom: 4px; border-top: 0; border-bottom: 1px solid var(--line-strong); }
  .members-side-nav a { flex: 0 0 auto; border-bottom: 0; }
}

@media (max-width: 680px) {
  :root {
    --shell: calc(100% - 28px);
    --shell-wide: 100%;
    --header-height: 100px;
  }

  .header-shell {
    width: calc(100% - 24px);
    grid-template-rows: 60px 30px;
  }

  .brand { grid-template-rows: 60px 30px; }
  .brand img { width: 142px; }
  .brand strong { font-size: clamp(10.75px, 3.35vw, 13px); line-height: 1; }
  .header-actions { padding-right: 68px; }
  .page-title { padding-block: 30px 20px; }
  .home-carousel .carousel-stage { height: min(86vw, 420px); min-height: 300px; }
  .gallery-carousel .carousel-stage,
  .life-carousel .carousel-stage { height: min(86vw, 420px); min-height: 300px; }
  .carousel-arrow { width: 42px; height: 52px; }
  .carousel-arrow-previous { left: 8px; }
  .carousel-arrow-next { right: 8px; }
  .carousel-slide-copy { right: 18px; bottom: 18px; left: 18px; }
  .carousel-slide-copy h2,
  .carousel-slide-copy h3 { font-size: 23px; }
  .carousel-slide-copy p { font-size: 13px; }
  .section-heading-with-link { margin-bottom: 22px; }
  .news-row { grid-template-columns: 1fr; gap: 6px; }
  .news-row > span { text-align: left; }
  .sidebar-layout { grid-template-columns: 1fr; padding-top: 24px; }
  .side-nav { position: static; display: flex; overflow-x: auto; gap: 20px; padding-bottom: 4px; border-top: 0; border-bottom: 1px solid var(--line-strong); }
  .side-nav a { flex: 0 0 auto; border-bottom: 0; }
  .join-layout .side-nav-secondary { padding-left: 0; }
  .members-layout { width: calc(100% - 28px); }
  .members-side-nav { display: grid; overflow: visible; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding-bottom: 0; border-top: 1px solid var(--line-strong); border-bottom: 0; }
  .members-side-nav a { min-width: 0; padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); white-space: normal; }
  .pi-profile { grid-template-columns: 1fr; }
  .pi-profile .member-photo { max-width: 280px; }
  .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .profile-row-group .member-grid { grid-template-columns: 1fr; }
  .profile-row-group .member-card { grid-template-columns: 122px minmax(0, 1fr); gap: 16px; }
  .compact-horizontal-group .member-grid { grid-template-columns: 1fr; gap: 28px; }
  .compact-horizontal-group .member-card { grid-template-columns: minmax(132px, 42vw) minmax(0, 1fr); gap: 16px; }
  .compact-tile-group .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 14px; }
  .compact-member-photo { width: 100%; max-width: 216px; }
  .publication { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
  .publication time { grid-column: 2; text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  .maintainer { grid-column: 1; }
}

@media (hover: none) {
  .carousel-arrow { opacity: .9; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
