/* ── Design Tokens ── */
:root {
  color-scheme: light;
  --font-serif: "Newsreader", "Lora", "Noto Serif SC", "Songti SC", STSong, serif;
  --font-display: "Newsreader", "Lora", "Noto Serif SC", "Songti SC", STSong, serif;
  --font-sans: "Manrope", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Fira Code", "Roboto Mono", monospace;
  --v3-bg: #f7f5f1;
  --v3-panel: #ffffff;
  --v3-panel-strong: #ffffff;
  --v3-ink: #182227;
  --v3-muted: #5f6a70;
  --v3-copy: #46535a;
  --v3-line: rgba(24, 34, 39, 0.13);
  --v3-line-subtle: rgba(24, 34, 39, 0.08);
  --v3-accent: #8a4b3a;
  --v3-accent-hover: #7d3c2b;
  --v3-accent-soft: rgba(138, 75, 58, 0.08);
  --v3-shadow: 0 8px 24px rgba(24, 34, 39, 0.04);
  --v3-radius: 14px;
  --v3-radius-sm: 12px;
  --v3-max: 1180px;
  --v3-brand-size: clamp(1.18rem, 1.08rem + 0.28vw, 1.34rem);
  --v3-nav-size: 0.96rem;
  --v3-utility-size: var(--v3-nav-size);
  --v3-page-title-size: clamp(3.3rem, 2.4rem + 1.6vw, 4rem);
  --v3-page-lead-size: clamp(1.2rem, 1.12rem + 0.35vw, 1.45rem);
  --v3-body-size: clamp(1.12rem, 1.04rem + 0.28vw, 1.22rem);
  --v3-meta-size: 0.92rem;
  --v3-button-size: 0.98rem;
  --v3-page-offset: clamp(2rem, 4.5vw, 4.75rem);
}

/* ── Dark Mode Tokens ── */
[data-theme="dark"] {
  color-scheme: dark;
  --v3-bg: #1b1a17;
  --v3-panel: #24231f;
  --v3-panel-strong: #2b2a25;
  --v3-ink: #e2e3e7;
  --v3-muted: #9ca3af;
  --v3-copy: #b0b8c1;
  --v3-line: rgba(255, 255, 255, 0.18);
  --v3-line-subtle: rgba(255, 255, 255, 0.1);
  --v3-accent: #c4735e;
  --v3-accent-hover: #d4876f;
  --v3-accent-soft: rgba(196, 115, 94, 0.2);
  --v3-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] body {
  background: linear-gradient(180deg, #1e1d1a 0%, var(--v3-bg) 100%);
}

[data-theme="dark"] .v3-nav {
  background: rgba(27, 26, 23, 0.85);
}

[data-theme="dark"] .v3-nav.is-scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}


[data-theme="dark"] .v3-button--primary {
  background: var(--v3-ink);
  color: var(--v3-bg);
}

[data-theme="dark"] .v3-button--ghost {
  background: var(--v3-panel);
  color: var(--v3-ink);
}

[data-theme="dark"] .v3-surface,
[data-theme="dark"] .v3-person-card,
[data-theme="dark"] .v3-pi-card {
  background: var(--v3-panel);
}

[data-theme="dark"] .v3-pub-grid > .bib-entry {
  background: var(--v3-panel);
}

[data-theme="dark"] .v3-publication-surface {
  background: transparent;
  border: 0;
  box-shadow: none;
}

[data-theme="dark"] .v3-pub-grid > .bib-entry:hover {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .v3-logos__inner img {
  opacity: 0.45;
  filter: grayscale(40%) brightness(1.5);
}

[data-theme="dark"] .v3-logos__inner img:hover {
  opacity: 0.9;
  filter: grayscale(0%) brightness(1.3);
}

[data-theme="dark"] .bib-filters__search,
[data-theme="dark"] .bib-filters__select {
  background: var(--v3-panel);
  color: var(--v3-ink);
}

@media (max-width: 860px) {
  [data-theme="dark"] .v3-nav__menu {
    background: rgba(27, 26, 23, 0.98);
  }
}

/* Theme toggle button */
.v3-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  color: var(--v3-muted);
  font-size: 1rem;
  transition: color 0.2s ease;
}

.v3-theme-toggle:hover {
  color: var(--v3-accent);
}

/* Smooth transition between themes */
html.v3-theme-transition,
html.v3-theme-transition *,
html.v3-theme-transition *::before,
html.v3-theme-transition *::after {
  transition: background 0.4s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, filter 0.3s ease !important;
}

/* ── Scroll Reveal ── */
.v3-reveal {
  opacity: 0;
  transform: translateY(1.2rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.v3-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for children */
.v3-reveal-stagger > .v3-reveal:nth-child(2) { transition-delay: 0.08s; }
.v3-reveal-stagger > .v3-reveal:nth-child(3) { transition-delay: 0.16s; }
.v3-reveal-stagger > .v3-reveal:nth-child(4) { transition-delay: 0.24s; }
.v3-reveal-stagger > .v3-reveal:nth-child(5) { transition-delay: 0.32s; }
.v3-reveal-stagger > .v3-reveal:nth-child(6) { transition-delay: 0.4s; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .v3-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--v3-ink);
  background: linear-gradient(180deg, #fbfaf7 0%, var(--v3-bg) 100%);
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

body::before {
  content: none;
}

a {
  color: inherit;
}

/* Content links — subtle accent for discoverability */
.v3-rich a,
.v3-utility-section a,
.v3-paper__doi a {
  color: var(--v3-accent);
  transition: color 0.2s ease;
}

.v3-rich a:hover,
.v3-utility-section a:hover,
.v3-paper__doi a:hover {
  color: var(--v3-accent-hover);
}

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

.v3-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Navigation ── */
.v3-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: 0.85rem;
  background: rgba(247, 245, 241, 0.82);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  border-bottom: 1px solid var(--v3-line);
  transition: box-shadow 0.3s ease;
}

.v3-nav.is-scrolled {
  box-shadow: 0 1px 12px rgba(24, 34, 39, 0.06);
}

.v3-nav__inner {
  max-width: var(--v3-max);
  margin: 0 auto;
  padding: 0 1.5rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.65rem;
}

.v3-brand {
  text-decoration: none;
  min-width: 0;
  color: var(--v3-accent);
  transition: color 0.2s ease;
}

.v3-brand__title {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.18rem, 1.08rem + 0.22vw, 1.32rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-top: 0.08rem;
  max-width: 18ch;
}

.v3-brand:hover {
  color: var(--v3-accent-hover);
}

.v3-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.v3-nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--v3-ink);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.v3-nav.is-open .v3-nav__toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.v3-nav.is-open .v3-nav__toggle span:nth-child(2) {
  opacity: 0;
}

.v3-nav.is-open .v3-nav__toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.v3-nav__menu {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.v3-nav__menu-main,
.v3-nav__utility {
  display: flex;
  align-items: center;
  gap: 1.05rem;
  flex-wrap: wrap;
}

.v3-nav__utility {
  margin-left: 0.2rem;
}

.v3-nav__menu a,
.v3-nav__utility a {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--v3-muted);
  padding: 0.32rem 0;
  border-radius: 0;
  font-size: var(--v3-nav-size);
  font-weight: 600;
  transition: color 0.2s ease;
}

.v3-nav__menu a::after,
.v3-nav__utility a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1.5px;
  background: var(--v3-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.v3-nav__utility a {
  font-size: var(--v3-utility-size);
  font-weight: 600;
}

.v3-nav__menu a:hover,
.v3-nav__utility a:hover {
  color: var(--v3-ink);
  background: transparent;
}

.v3-nav__menu a.is-active,
.v3-nav__utility a.is-active {
  color: var(--v3-accent);
  background: transparent;
}

.v3-nav__menu a:hover::after,
.v3-nav__menu a.is-active::after,
.v3-nav__utility a:hover::after,
.v3-nav__utility a.is-active::after {
  transform: scaleX(1);
}

/* ── Main Content & Footer ── */
.v3-main {
  flex: 1;
  width: 100%;
  max-width: var(--v3-max);
  margin: 0 auto;
  padding: 1.7rem 1.5rem 4rem;
}

/* ── Logo Bar ── */
.v3-logos {
  border-top: 1px solid var(--v3-line);
  padding: 1.8rem 1.5rem;
}

.v3-logos__inner {
  max-width: var(--v3-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.v3-logos__inner img {
  height: 44px;
  width: auto;
  object-fit: contain;
  opacity: 0.55;
  filter: grayscale(40%);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.v3-logos__inner img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.v3-logos__copy {
  margin: 1rem 0 0;
  text-align: center;
  font-size: var(--v3-meta-size);
  color: var(--v3-muted);
}

@media (max-width: 560px) {
  .v3-logos {
    padding: 1.4rem 1rem;
  }

  .v3-logos__inner {
    gap: 1.5rem;
  }

  .v3-logos__inner img {
    height: 34px;
  }
}

.v3-footer {
  width: 100%;
  max-width: var(--v3-max);
  margin: 0 auto;
  padding: 0 1.5rem 1.2rem;
}

.v3-footer__inner {
  border-top: 1px solid var(--v3-line);
  padding-top: 0.9rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--v3-muted);
  font-size: var(--v3-meta-size);
}

.v3-footer__copy,
.v3-footer__meta {
  display: grid;
  gap: 0.6rem;
}

.v3-footer__copy p {
  margin: 0;
  line-height: 1.7;
  max-width: 46ch;
}

.v3-footer__contact,
.v3-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.v3-footer__contact a,
.v3-footer__links a {
  text-decoration: none;
  color: var(--v3-ink);
  font-weight: 600;
}

/* ── Page Layout ── */
.v3-page,
.v3-home,
.v3-stack,
.v3-program-stack,
.v3-people {
  display: grid;
  gap: 2rem;
}

.v3-page__masthead {
  display: grid;
  gap: 1rem;
}

.v3-page__header {
  max-width: 840px;
  padding-top: 1.15rem;
  display: grid;
  gap: 0.72rem;
}

/* Page titles — Lora serif for editorial feel */
.v3-page__header h1,
.v3-pi-card__name {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* Section & card headings — Lora 700 */
.v3-section__intro h2,
.v3-group__title,
.v3-surface h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* Homepage hero — Lora */
.v3-hero__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.v3-page__header h1 {
  font-size: var(--v3-page-title-size);
  line-height: 0.95;
  margin-top: 0.08rem;
}

.v3-section__intro h2 {
  font-size: clamp(1.55rem, 1.4rem + 0.5vw, 1.85rem);
  line-height: 1.1;
}

.v3-page__lead {
  margin: 0;
  max-width: 46ch;
  color: var(--v3-ink);
  font-size: var(--v3-page-lead-size);
  line-height: 1.54;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.v3-page__content {
  padding-top: 0.3rem;
}

.v3-page--offset .v3-page__header,
.v3-page--offset .v3-page__content,
.v3-page--offset .v3-people {
  margin-left: var(--v3-page-offset);
}

.v3-page--offset .v3-page__header,
.v3-page--offset .v3-page__content {
  max-width: min(840px, calc(100% - var(--v3-page-offset)));
}

.v3-page--offset .v3-people {
  max-width: calc(100% - var(--v3-page-offset));
}

/* ── Rich Text Content ── */
.v3-rich {
  display: grid;
  gap: 1.1rem;
}

.v3-rich p,
.v3-rich li {
  color: var(--v3-copy);
  font-size: var(--v3-body-size);
  line-height: 1.86;
}

.v3-rich ul,
.v3-rich ol {
  margin: 0;
  padding-left: 1.25rem;
}

.v3-rich h2,
.v3-rich h3 {
  margin: 0;
  color: var(--v3-ink);
  font-family: var(--font-serif);
  letter-spacing: -0.02em;
}

.v3-rich h2 {
  font-size: clamp(1.45rem, 1.32rem + 0.45vw, 1.75rem);
}

.v3-rich h3 {
  font-size: clamp(1.2rem, 1.12rem + 0.3vw, 1.4rem);
}

/* Publications inside project detail pages */
.v3-rich .publications .bib-title {
  font-size: clamp(1.05rem, 0.98rem + 0.22vw, 1.18rem);
  line-height: 1.35;
}

.v3-rich .publications .bib-authors {
  font-size: 0.84rem;
  line-height: 1.55;
}

.v3-rich .publications .bib-meta {
  font-size: 0.84rem;
}

.v3-rich .publications .bib-link {
  font-size: 0.86rem;
}

.v3-rich .publications .bib-row {
  padding: 0.8rem 0;
}

.v3-rich .publications .bib-thumb {
  display: none;
}

.v3-rich .publications .bib-row,
.v3-rich .publications .bib-row--no-preview {
  grid-template-columns: 1fr;
  gap: 0;
}

.v3-rich .publications .bib-content {
  display: block;
}

/* ── Cards & Surfaces ── */
.v3-surface,
.v3-person-card,
.v3-program-entry,
.v3-pi-card {
  background: #fff;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius-sm);
  box-shadow: var(--v3-shadow);
}

.v3-surface {
  padding: 1.35rem;
}

.v3-surface h2 {
  font-size: clamp(1.45rem, 1.32rem + 0.45vw, 1.75rem);
}

.v3-surface h3 {
  font-size: clamp(1.2rem, 1.12rem + 0.3vw, 1.4rem);
}

.v3-surface p {
  margin: 0.75rem 0 0;
  color: var(--v3-muted);
  line-height: 1.8;
}

/* ── Hero ── */
.v3-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 2rem;
  align-items: stretch;
  padding-top: 1rem;
}

.v3-hero__copy {
  min-width: 0;
}

.v3-hero__title {
  font-size: clamp(3.2rem, 2.6rem + 3.6vw, 6.3rem);
  line-height: 0.9;
  max-width: 10.2ch;
  margin-top: 0.9rem;
  text-wrap: balance;
}

.v3-hero__dynamic {
  margin: 1.45rem 0 0;
  font-size: clamp(1.2rem, 1rem + 1.1vw, 2rem);
  line-height: 1.35;
  color: var(--v3-muted);
  font-weight: 600;
}

.v3-rotator {
  display: inline-block;
  min-width: 12ch;
  margin-left: 0.18rem;
  padding-bottom: 0.08rem;
  border-bottom: 2px solid var(--v3-accent-soft);
  color: var(--v3-ink);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.v3-rotator.is-leaving {
  opacity: 0;
  transform: translateY(0.4rem);
}

.v3-hero__lead {
  max-width: 62ch;
  color: var(--v3-muted);
  font-size: 1.05rem;
  line-height: 1.85;
  margin: 1.35rem 0 0;
}

.v3-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.v3-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.75rem 1.1rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: var(--v3-button-size);
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.v3-button:hover {
  transform: translateY(-1px);
}

.v3-button--primary {
  background: var(--v3-ink);
  color: #fff;
  box-shadow: 0 8px 20px rgba(23, 50, 58, 0.08);
}

.v3-button--ghost {
  background: #fff;
  border: 1px solid var(--v3-line);
  color: var(--v3-ink);
}

.v3-section {
  display: grid;
  gap: 1.5rem;
}

.v3-section__intro {
  display: grid;
  gap: 0.35rem;
  max-width: 760px;
}

.v3-section__intro p {
  margin: 0;
  color: var(--v3-muted);
  font-size: var(--v3-body-size);
  line-height: 1.8;
}

.v3-person-card__name,
.v3-pi-card__meta {
  margin: 0;
}

.v3-person-card__name {
  font-family: var(--font-serif);
  font-size: clamp(1.22rem, 1.14rem + 0.32vw, 1.42rem);
  letter-spacing: -0.02em;
}

.v3-person-card__meta,
.v3-person-card__bio,
.v3-pi-card__meta,
.v3-pi-card__bio {
  margin: 0;
  color: var(--v3-muted);
  line-height: 1.8;
}

.v3-publication-surface {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* ── Divider ── */

.v3-divider {
  border: none;
  border-top: 1px solid var(--v3-line);
  margin: 1.5rem 0;
}

/* ── Featured publications — card grid ──
   v3.js extracts li.bib-entry from jekyll-scholar's dirty <ol> into
   a clean div.v3-pub-grid. All featured card styles live here. ── */

.v3-pub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin: 0.6rem 0 0;
}

/* Card container — each li becomes a card */
.v3-pub-grid > .bib-entry {
  list-style: none;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius-sm);
  padding: 1.5rem 1.6rem;
  background: var(--v3-panel);
  box-shadow: var(--v3-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.v3-pub-grid > .bib-entry:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(24, 34, 39, 0.1);
  border-color: var(--v3-accent);
}

/* Reset bib-row inner padding */
.v3-pub-grid .bib-row,
.v3-pub-grid .bib-row--no-preview {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.v3-pub-grid .bib-content {
  display: block;
}

.v3-pub-grid .bib-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 1.02rem + 0.26vw, 1.28rem);
  line-height: 1.32;
  font-weight: 700;
}

.v3-pub-grid .bib-title a,
.v3-pub-grid .bib-title span {
  color: var(--v3-ink);
  text-decoration: none;
}

.v3-pub-grid .bib-authors {
  margin-top: 0.45rem;
  font-size: 0.86rem;
  color: var(--v3-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.v3-pub-grid .bib-journal {
  display: inline-block;
  padding: 0.15em 0.5em;
  border-radius: 6px;
  background: var(--v3-accent-soft);
  color: var(--v3-accent);
  font-weight: 600;
  font-size: 0.84rem;
  font-style: normal;
}

.v3-pub-grid .bib-meta {
  margin-top: 0.35rem;
  color: var(--v3-muted);
  font-size: 0.88rem;
}

.v3-pub-grid .bib-meta a {
  color: var(--v3-accent);
  font-size: 0.84rem;
}

.v3-pub-grid .bib-actions {
  margin-top: 0.5rem;
  padding: 0;
}

.v3-pub-grid .bib-link {
  text-decoration: none;
  color: var(--v3-accent);
  font-weight: 600;
  font-size: 0.92rem;
}

.v3-pub-grid .bib-link:hover {
  color: var(--v3-ink);
}

/* Hide any badges in featured cards */
.v3-pub-grid .bib-badges { display: none; }
.v3-pub-grid .bib-thumb { display: none; }

@media (max-width: 680px) {
  .v3-pub-grid {
    grid-template-columns: 1fr;
  }
  .v3-pub-grid > .bib-entry {
    padding: 1.2rem 1.2rem;
  }

}

.publications {
  margin-top: 0.2rem;
}

.publications h2.bibliography {
  margin: 2rem 0 0;
  padding-bottom: 0.5rem;
  border-bottom: 2.5px solid var(--v3-accent);
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.16rem + 0.3vw, 1.45rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--v3-accent);
}

.publications ol.bibliography {
  list-style: none;
  padding: 0;
  margin: 0;
}

.publications ol.bibliography > li {
  border-top: 1px solid var(--v3-line);
  transition: background 0.2s ease, opacity 0.2s ease;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  border-radius: 8px;
}

.publications ol.bibliography > li:first-child {
  border-top: 0;
}

@media (hover: hover) and (pointer: fine) {
  /* Spotlight: hover highlights one entry, dims siblings */
  .publications ol.bibliography:hover > li {
    opacity: 0.5;
  }

  .publications ol.bibliography > li:hover {
    opacity: 1;
    background: var(--v3-accent-soft);
  }
}

.publications .bib-row {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1.25rem 0;
  align-items: start;
}

.publications .bib-row--no-preview {
  grid-template-columns: 1fr;
}

.publications .bib-thumb img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
}

.publications .bib-content {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.publications .bib-main {
  min-width: 0;
}

.publications .bib-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 0.96rem + 0.32vw, 1.22rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.publications .bib-title a,
.publications .bib-title span {
  color: var(--v3-ink);
  text-decoration: none;
}

.publications .bib-authors {
  margin-top: 0.7rem;
  color: var(--v3-muted);
  line-height: 1.8;
}

.publications .bib-authors a {
  color: inherit;
}

.publications .bib-more-authors {
  color: var(--v3-accent);
  cursor: pointer;
  font-weight: 700;
}

.publications .bib-journal {
  font-style: italic;
}

.publications .bib-meta {
  margin-top: 0.55rem;
  color: var(--v3-muted);
  line-height: 1.75;
}

.publications .bib-meta a {
  color: var(--v3-accent);
}

.publications .bib-actions {
  flex-shrink: 0;
  padding-top: 0.2rem;
}

.publications .bib-link {
  text-decoration: none;
  color: var(--v3-accent);
  font-weight: 700;
  white-space: nowrap;
}

.publications .bib-badges {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.bib-citation-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--v3-accent);
  background: var(--v3-accent-soft);
  border-radius: 6px;
}

.bib-citation-badge i {
  font-size: 0.65rem;
}

.v3-publication-surface .publications .bib-thumb {
  display: none;
}

.v3-publication-surface .publications .bib-row,
.v3-publication-surface .publications .bib-row--no-preview {
  grid-template-columns: 1fr;
  gap: 0;
  padding: 1rem 0;
}

.v3-publication-surface .publications .bib-content {
  display: block;
}

.v3-publication-surface .publications .bib-title {
  font-size: clamp(1.05rem, 0.98rem + 0.22vw, 1.18rem);
  line-height: 1.35;
}

.v3-publication-surface .publications .bib-authors {
  margin-top: 0.35rem;
  font-size: 0.84rem;
  line-height: 1.55;
}

.v3-publication-surface .publications .bib-meta {
  margin-top: 0.25rem;
  font-size: 0.84rem;
}

.v3-publication-surface .publications .bib-link {
  font-size: 0.86rem;
}

.v3-publication-surface .publications .bib-actions {
  padding-top: 0;
  margin-top: 0.45rem;
}

.bib-filters {
  display: grid;
  gap: 0.6rem;
  margin: 0.5rem 0 1.2rem;
}

.bib-filters__search {
  width: 100%;
  max-width: 420px;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--v3-line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--v3-ink);
  font: inherit;
  outline: none;
}

.bib-filters__search:focus {
  border-color: rgba(45, 109, 119, 0.35);
  box-shadow: 0 0 0 4px rgba(45, 109, 119, 0.09);
}

.bib-filters__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bib-filters__select {
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--v3-line);
  background: #fff;
  color: var(--v3-ink);
  font: inherit;
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
}

.bib-filters__select:focus {
  border-color: rgba(45, 109, 119, 0.35);
}

.bib-filters__status {
  font-size: 0.85rem;
  color: var(--v3-muted);
  min-height: 1.2em;
}

/* ── Research Program Entries ── */
.v3-program-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 0 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius-sm);
  background: var(--v3-panel);
  box-shadow: var(--v3-shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.v3-program-entry:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(24, 34, 39, 0.1);
  border-color: var(--v3-accent);
}


.v3-program-entry__more {
  margin-top: 1rem;
}

.v3-program-entry__more a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--v3-accent);
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.v3-program-entry__more a:hover {
  color: var(--v3-ink);
  gap: 0.55rem;
}

.v3-program-entry > h2 {
  grid-column: 1 / -1;
  margin: 0 0 0.6rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.45rem, 1.32rem + 0.45vw, 1.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--v3-ink);
}

.v3-program-entry > h2 a {
  color: inherit;
  text-decoration: none;
}

.v3-program-entry__media {
  overflow: hidden;
  border-radius: 12px;
}

.v3-program-entry__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.35s ease;
}

.v3-program-entry:hover .v3-program-entry__media img {
  transform: scale(1.03);
}

.v3-program-entry__content {
  max-width: 100%;
  display: block;
  font-size: var(--v3-body-size);
  line-height: 1.7;
  color: var(--v3-muted);
}

/* Dense card: shrink text only on desktop when cards sit side-by-side */
@media (min-width: 861px) {
  .v3-program-entry:first-child .v3-program-entry__content {
    font-size: 0.88rem;
  }
}

.v3-program-entry__content p,
.v3-program-entry__content li {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.v3-program-entry__content p {
  margin: 0.9rem 0 0;
}

/* ── People & Team ── */
.v3-people {
  padding-top: 0.2rem;
  gap: 2rem;
}

.v3-team-page .v3-pi-card {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.v3-team-page .v3-pi-card img {
  width: 100%;
  max-width: 220px;
  border-radius: 18px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.v3-team-page .v3-pi-card__content {
  display: grid;
  gap: 0.65rem;
  align-content: start;
  max-width: 40rem;
}

.v3-pi-card__name {
  font-size: clamp(2.1rem, 1.78rem + 0.95vw, 3.05rem);
}

.v3-pi-card__meta {
  margin: 0;
  font-size: 1.02rem;
  color: var(--v3-muted);
}

.v3-pi-card__bio {
  display: grid;
  gap: 0.55rem;
}

.v3-pi-card__bio p {
  margin: 0;
  color: var(--v3-copy);
  font-size: var(--v3-body-size);
  line-height: 1.78;
}

.v3-person-group {
  display: grid;
  gap: 0.78rem;
}

.v3-person-group + .v3-person-group {
  padding-top: 1.5rem;
  border-top: 1px solid var(--v3-line);
}

.v3-group__title {
  font-size: clamp(1.45rem, 1.32rem + 0.45vw, 1.75rem);
}

.v3-team-page .v3-person-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.1rem;
}

.v3-team-page .v3-person-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 0.78rem;
  align-content: start;
  align-items: start;
  padding: 0.25rem 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

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

.v3-team-page .v3-person-card img {
  width: 108px;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
}

.v3-team-page .v3-person-card__body {
  display: grid;
  gap: 0.2rem;
  align-content: start;
  padding-top: 0.08rem;
}

.v3-team-page .v3-person-card__name {
  font-size: 1.32rem;
  line-height: 1.04;
}

.v3-team-page .v3-person-card__meta {
  margin: 0;
  font-size: 0.95rem;
  color: var(--v3-muted);
  line-height: 1.5;
}

.v3-person-card__bio {
  font-size: var(--v3-body-size);
}

.v3-pi-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-top: 0.3rem;
}

.v3-pi-card__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  text-decoration: none;
  color: var(--v3-muted);
  font-size: 1.15rem;
  border-radius: 50%;
  background: var(--v3-accent-soft);
  transition: color 0.2s ease, background 0.2s ease;
}

.v3-pi-card__links a:hover {
  color: #fff;
  background: var(--v3-accent);
}

.v3-person-roster {
  display: grid;
  gap: 0;
}

.v3-person-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--v3-line-subtle);
}

.v3-person-row:first-child {
  border-top: 0;
}

.v3-person-row .v3-person-card__name {
  font-size: 1.15rem;
}

.v3-person-row .v3-person-card__meta {
  font-size: 0.92rem;
}

/* ── Responsive: 980px ── */
@media (max-width: 980px) {
  .v3-page--offset .v3-page__header,
  .v3-page--offset .v3-page__content,
  .v3-page--offset .v3-people {
    margin-left: 0;
    max-width: 100%;
  }

  .v3-hero,
  .v3-pi-card {
    grid-template-columns: 1fr;
  }

  .v3-person-grid {
    grid-template-columns: 1fr 1fr;
  }

}

/* ── Responsive: 860px (mobile nav + layout) ── */
@media (max-width: 860px) {
  .v3-nav__toggle {
    display: flex;
  }

  .v3-nav__menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--v3-line);
    background: rgba(247, 245, 241, 0.98);
    backdrop-filter: blur(14px) saturate(1.6);
    -webkit-backdrop-filter: blur(14px) saturate(1.6);
    z-index: 30;
  }

  .v3-nav__menu.is-open {
    display: flex;
    animation: v3-menu-slide 0.25s ease;
  }

  @keyframes v3-menu-slide {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .v3-nav__menu-main,
  .v3-nav__utility {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .v3-nav__menu a,
  .v3-nav__utility a {
    padding: 0.7rem 0;
    font-size: 1rem;
  }

  .v3-nav__menu a::after,
  .v3-nav__utility a::after {
    display: none;
  }

  .v3-nav__utility {
    margin-left: 0;
    padding-left: 0;
    padding-top: 0;
    margin-top: 0;
    border-left: 0;
    border-top: 0;
  }

  .v3-nav.is-open {
    border-bottom-color: transparent;
  }

  .v3-person-grid {
    grid-template-columns: 1fr;
  }

  .v3-hero__title {
    max-width: 11ch;
  }

  .v3-footer__inner {
    flex-direction: column;
  }

  .v3-footer__meta {
    justify-items: start;
  }

  .v3-footer__contact,
  .v3-footer__links {
    justify-content: flex-start;
  }

  .v3-page__header {
    padding-top: 0.6rem;
    gap: 0.55rem;
  }

  .v3-page__header h1 {
    font-size: clamp(2.35rem, 1.95rem + 2.5vw, 3rem);
    line-height: 0.98;
    text-wrap: balance;
  }

  .v3-page__content {
    padding-top: 0.1rem;
  }

  .v3-rich {
    gap: 0.95rem;
  }

  .v3-rich p,
  .v3-rich li {
    line-height: 1.74;
  }

  .v3-group__title {
    font-size: clamp(1.32rem, 1.2rem + 0.42vw, 1.58rem);
  }

  .v3-people {
    gap: 1.7rem;
  }

  .v3-person-group + .v3-person-group {
    padding-top: 1.15rem;
  }

  .publications .bib-row {
    grid-template-columns: 1fr;
    padding: 1rem 0;
  }

  .publications .bib-thumb {
    max-width: 220px;
  }

  .publications .bib-content {
    display: block;
  }

  .publications .bib-actions {
    margin-top: 0.9rem;
  }

  .publications .bib-title {
    font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem);
    line-height: 1.22;
  }

  .publications .bib-authors {
    margin-top: 0.5rem;
    line-height: 1.68;
  }

  .publications .bib-meta {
    line-height: 1.62;
  }

  .publications .bib-link {
    white-space: normal;
  }

  .v3-team-page .v3-person-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .v3-team-page .v3-pi-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .v3-team-page .v3-pi-card img {
    max-width: 180px;
  }

  .v3-pi-card__links {
    justify-content: center;
  }

  .v3-team-page .v3-person-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 0.6rem;
  }

  .v3-team-page .v3-person-card img {
    width: 72px;
  }

  .v3-team-page .v3-person-card__name {
    font-size: 1.1rem;
  }

  .v3-team-page .v3-person-card__meta {
    font-size: 0.88rem;
    line-height: 1.42;
  }

  .v3-program-entry > h2 {
    margin-bottom: 0.75rem;
  }

  .v3-program-entry {
    grid-template-columns: 1fr;
  }

  .v3-program-entry__media img {
    max-width: 24rem;
  }

}

/* ── Home Page ── */
.v3-home {
  max-width: var(--v3-max);
  margin: 0 auto;
  gap: 0;
}

.v3-home .v3-hero {
  display: flex;
  align-items: center;
  padding: 4.5rem 0 6rem;
}

.v3-home .v3-hero__copy {
  width: 100%;
  max-width: 66rem;
}

.v3-home .v3-hero__title {
  font-size: clamp(4.8rem, 4rem + 4vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  max-width: 10.2ch;
  margin-top: 0;
  text-wrap: pretty;
}

.v3-home .v3-hero__dynamic {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.22ch;
  width: fit-content;
  max-width: none;
  margin-top: 1.35rem;
  font-size: clamp(1.22rem, 1.02rem + 0.78vw, 1.82rem);
  line-height: 1.35;
  font-weight: 600;
  color: var(--v3-muted);
  white-space: nowrap;
}

.v3-home .v3-hero__dynamic-prefix {
  color: inherit;
  flex: 0 0 auto;
}

.v3-home .v3-hero__lead {
  max-width: 44rem;
  color: var(--v3-ink);
  font-size: clamp(1.04rem, 0.98rem + 0.28vw, 1.2rem);
  line-height: 1.82;
  margin-top: 1.45rem;
}

.v3-home .v3-rotator {
  display: inline-block;
  flex: 0 0 auto;
  min-width: 0;
  margin-left: 0;
  padding: 0 0.12em;
  border: 0;
  border-bottom: 0;
  border-radius: 0;
  transition: none;
  white-space: nowrap;
  background: var(--v3-rotator-bg, rgba(155, 67, 64, 0.1));
  color: var(--v3-rotator-color, #9b4340);
  font-weight: 500;
  font-style: italic;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.v3-home .v3-rotator::after {
  content: none;
}

.v3-home .v3-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

/* ── Utility Pages (Clinical, Careers) ── */
.v3-utility {
  display: grid;
  gap: 0;
}

.v3-utility-section {
  padding: 1.5rem 0;
  border-top: 1px solid var(--v3-line);
}

.v3-utility-section:first-child {
  padding-top: 0.5rem;
}

.v3-utility-section h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 1.32rem + 0.45vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--v3-ink);
}

.v3-utility-section p {
  margin: 0.5rem 0 0;
  color: var(--v3-copy);
  font-size: 0.97rem;
  line-height: 1.6;
}

.v3-utility-list {
  display: grid;
  gap: 0;
  margin-top: 0.55rem;
}

.v3-utility-list article {
  padding: 0.82rem 0;
  border-top: 1px solid var(--v3-line-subtle);
}

.v3-utility-list article:first-child {
  padding-top: 0.1rem;
  border-top: 0;
}

.v3-utility-list h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.12rem + 0.3vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.v3-utility-list p {
  margin: 0.22rem 0 0;
  font-size: 0.97rem;
}

@keyframes v3-rotator-caret {
  0%,
  49% {
    opacity: 0.6;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.v3-home .publications h2.bibliography,
.v3-home .publications .bib-thumb,
.v3-home .publications .bib-authors,
.v3-home .publications .bib-actions,
.v3-home .publications .bib-badges {
  display: none;
}

.v3-home .publications ol.bibliography > li:nth-child(n + 4) {
  display: none;
}

.v3-home .publications .bib-row,
.v3-home .publications .bib-row--no-preview {
  grid-template-columns: 1fr;
  padding: 1rem 0;
}

.v3-home .publications .bib-content {
  display: block;
}

.v3-home .publications .bib-title {
  font-size: clamp(1.25rem, 1.12rem + 0.45vw, 1.6rem);
  line-height: 1.18;
}

.v3-home .publications .bib-meta {
  margin-top: 0.35rem;
  font-size: 0.94rem;
}

/* ── Responsive: 720px ── */
@media (max-width: 720px) {
  .v3-nav,
  .v3-main,
  .v3-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .v3-hero {
    min-height: auto;
    padding: 3rem 0 4rem;
  }

  .v3-hero__title {
    max-width: 8.6ch;
    font-size: clamp(4rem, 3.4rem + 6vw, 5.5rem);
  }

  .v3-home .v3-hero__copy {
    max-width: 100%;
  }

  .v3-home .v3-hero__dynamic {
    display: block;
    white-space: normal;
    line-height: 1.45;
  }

  .v3-home .v3-hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

}

/* ── Responsive: 560px (small screens) ── */
@media (max-width: 560px) {
  .v3-nav__inner,
  .v3-main,
  .v3-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .v3-main {
    padding-top: 1.2rem;
  }

  .v3-hero__actions {
    flex-direction: column;
  }

  .v3-button {
    width: 100%;
  }

  .v3-page__header h1 {
    font-size: clamp(2.1rem, 1.95rem + 1vw, 2.45rem);
  }

  .v3-section__intro h2 {
    font-size: clamp(1.32rem, 1.24rem + 0.45vw, 1.55rem);
    line-height: 1.08;
  }

  .v3-program-entry > h2 {
    font-size: clamp(1.25rem, 1.16rem + 0.35vw, 1.45rem);
    line-height: 1.1;
  }

  .publications h2.bibliography {
    margin: 1.45rem 0 0.75rem;
    font-size: 1.32rem;
    line-height: 1.1;
  }

  .v3-utility-section {
    padding: 0.92rem 0;
  }

  .v3-utility-section:first-child {
    padding-top: 0.1rem;
  }

  .v3-utility-section h2 {
    font-size: clamp(1.18rem, 1.1rem + 0.3vw, 1.32rem);
  }

  .v3-utility-list {
    margin-top: 0.38rem;
  }

  .v3-utility-list article {
    padding: 0.72rem 0;
  }

  .v3-utility-list h3 {
    font-family: var(--font-serif);
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
  }

  .v3-utility-list p,
  .v3-utility-section p {
    margin-top: 0.34rem;
    font-size: 1rem;
    line-height: 1.62;
  }

  .v3-team-page .v3-pi-card img {
    max-width: 180px;
  }

  .v3-team-page .v3-person-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .v3-team-page .v3-person-card img {
    width: 76px;
  }

  .bib-filters__search {
    max-width: none;
    padding: 0.82rem 0.95rem;
    border-radius: 18px;
  }

  .bib-filters__row {
    flex-direction: column;
  }

  .bib-filters__select {
    width: 100%;
  }

}

/* ── Paper detail page (used by paper-detail-router.html) ── */

.v3-paper {
  max-width: 48rem;
  padding: 2rem 0;
}

.v3-paper__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--v3-muted);
  font-size: 0.92rem;
}

.v3-paper__venue {
  font-style: italic;
}

.v3-paper__title {
  margin: 0.5rem 0 0;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.9rem);
  font-weight: 700;
  line-height: 1.28;
}

.v3-paper__authors {
  margin-top: 0.6rem;
  color: var(--v3-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.v3-paper__doi {
  margin-top: 0.4rem;
}

.v3-paper__doi a {
  color: var(--v3-accent);
  font-size: 0.88rem;
}

.v3-paper__abstract {
  margin-top: 1.5rem;
  border-top: 1px solid var(--v3-line);
  padding-top: 1.2rem;
}

.v3-paper__abstract h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
}

.v3-paper__abstract p {
  color: var(--v3-copy);
  line-height: 1.8;
}

.v3-paper__back {
  margin-top: 2rem;
}

.v3-paper__back a {
  color: var(--v3-accent);
  font-weight: 600;
  text-decoration: none;
}

/* ── Member Profile Page ── */
.v3-member-profile {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.v3-member-profile__photo {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--v3-accent-soft);
}

.v3-member-profile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v3-member-profile__info {
  flex: 1;
  display: grid;
  gap: 0.4rem;
}

.v3-member-profile__alt-name {
  margin: 0;
  color: var(--v3-muted);
  font-size: var(--v3-body-size);
}

.v3-member-profile__dept {
  margin: 0;
  color: var(--v3-muted);
  font-size: var(--v3-meta-size);
}

.v3-member-profile__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.v3-member-profile__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--v3-accent);
  font-size: var(--v3-meta-size);
  transition: color 0.2s ease;
}

.v3-member-profile__links a:hover {
  color: var(--v3-accent-hover);
}

.v3-member-profile__bio {
  margin-top: 1.5rem;
  color: var(--v3-copy);
  font-size: var(--v3-body-size);
  line-height: 1.8;
}

@media (max-width: 560px) {
  .v3-member-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .v3-member-profile__photo {
    width: 140px;
    height: 140px;
  }

  .v3-member-profile__links {
    justify-content: center;
  }
}
