/* System font stacks — no external dependency, no compression artifacts */

/* ─── RESET & TOKENS ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #f8f9fc;
  --bg-2:      #f0f2f7;
  --bg-3:      #e8ecf5;
  --surface:   #ffffff;
  --surface-2: #f3f5fb;
  --border:    rgba(60,80,160,.1);
  --border-2:  rgba(60,80,160,.2);

  --blue:      #2a58d4;
  --blue-dim:  #3a5acc;
  --teal:      #0a9e7a;
  --amber:     #c47a00;
  --red-dim:   #d94f4f;

  --text:      #111827;
  --text-muted:#4b5675;
  --text-faint:#8a94b0;

  --radius:    10px;
  --radius-lg: 18px;
  --font-head: 'Trebuchet MS', 'Gill Sans MT', Calibri, 'Segoe UI', sans-serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Cascadia Code', Consolas, 'SF Mono', 'Fira Code', 'Courier New', monospace;
  --max-w:     1060px;
  --nav-h:     64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── NOISE TEXTURE OVERLAY ──────────────────────────────────────── */
/* removed for light theme */

/* ─── NAV ─────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(248,249,252,.92);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 2rem;
  z-index: 100;
  gap: 0;
}

.nav-brand {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0em;
  color: var(--text);
  text-decoration: none;
  display: flex; align-items: center; gap: .55rem;
  flex-shrink: 0;
}

.nav-brand .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px rgba(10,158,122,.5);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

.nav-logo {
  height: 60px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

@keyframes pulse-dot {
  0%,100% { opacity: 1; box-shadow: 0 0 10px rgba(10,158,122,.5); }
  50%      { opacity: .5; box-shadow: 0 0 4px rgba(10,158,122,.3); }
}

.nav-links {
  display: flex; align-items: center; gap: .15rem;
  margin-left: auto;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  padding: .45rem .85rem;
  border-radius: 6px;
  transition: color .2s, background .2s;
  letter-spacing: .01em;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: rgba(42,88,212,.08);
}

/* ─── NAV TOGGLE (mobile hamburger) ──────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 0;
  flex-shrink: 0;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── PAGE WRAPPER ────────────────────────────────────────────────── */
.page {
  position: relative; z-index: 1;
  padding-top: var(--nav-h);
  min-height: 100vh;
}

/* ─── HERO ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 6rem 2rem 5rem;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 20%, rgba(42,88,212,.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(10,158,122,.05) 0%, transparent 60%),
    radial-gradient(ellipse 35% 25% at 10% 60%, rgba(196,122,0,.04) 0%, transparent 60%);
  pointer-events: none;
}

/* animated grid */
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(42,88,212,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,88,212,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
  pointer-events: none;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--teal);
  background: rgba(10,158,122,.08);
  border: 1px solid rgba(10,158,122,.2);
  border-radius: 99px;
  padding: .3rem .85rem;
  margin-bottom: 1.6rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0em;
  max-width: 820px;
  margin: 0 auto 1.2rem;
  color: var(--text);
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  line-height: 1.75;
}

.hero-actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 28px rgba(42,88,212,.2);
}
.btn-primary:hover {
  background: #7aa2ff;
  box-shadow: 0 0 36px rgba(42,88,212,.35);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(99,140,255,.4);
  background: rgba(42,88,212,.06);
  transform: translateY(-1px);
}

/* ─── SECTION STRUCTURE ───────────────────────────────────────────── */
.section {
  padding: 5rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--blue);
  margin-bottom: .75rem;
  display: flex; align-items: center; gap: .6rem;
}
.section-label::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--blue);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -.005em;
  color: var(--text);
  margin-bottom: .6rem;
  line-height: 1.2;
}

.section-sub {
  font-size: .95rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

/* divider */
hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ─── RESEARCH AREAS ──────────────────────────────────────────────── */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.research-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
}

.research-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(42,88,212,.05), transparent);
  opacity: 0;
  transition: opacity .3s;
}

.research-card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.1);
}
.research-card:hover::before { opacity: 1; }

.rc-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  display: block;
}

.rc-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .4rem;
}

.rc-desc {
  font-size: .84rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── PUBLICATIONS ────────────────────────────────────────────────── */
.pub-list {
  display: flex; flex-direction: column; gap: 1rem;
}

.pub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.8rem;
  display: flex; align-items: flex-start; gap: 1.4rem;
  transition: border-color .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
}

.pub-card:hover {
  border-color: var(--border-2);
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
}

.pub-year {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text-faint);
  min-width: 36px;
  padding-top: .2rem;
  letter-spacing: .04em;
}

.pub-body { flex: 1; }

.pub-badges {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin-bottom: .6rem;
}

.badge {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: 4px;
  font-weight: 500;
}

.badge-blue   { background: rgba(42,88,212,.08); color: var(--blue); border: 1px solid rgba(42,88,212,.18); }
.badge-teal   { background: rgba(10,158,122,.08);  color: var(--teal); border: 1px solid rgba(10,158,122,.2); }
.badge-amber  { background: rgba(196,122,0,.08);  color: var(--amber); border: 1px solid rgba(196,122,0,.2); }
.badge-green { background: rgba(26,157,92,.08); color: #1a9d5c; border: 1px solid rgba(26,157,92,.2);}

.badge-purple {
  background: rgba(139,63,217,.08);
  color: #8b3fd9;
  border: 1px solid rgba(139,63,217,.2);
}

.badge-red {
  background: rgba(217,79,79,.08);
  color: var(--red-dim);
  border: 1px solid rgba(217,79,79,.2);
}

.badge-cyan {
  background: rgba(8,145,178,.08);
  color: #0891b2;
  border: 1px}
.pub-title {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .3rem;
  line-height: 1.35;
}

.pub-desc {
  font-size: .84rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: .7rem;
}

.pub-link {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--blue);
  text-decoration: none;
  letter-spacing: .04em;
  display: inline-flex; align-items: center; gap: .3rem;
}
.pub-link:hover { text-decoration: underline; }
.pub-link::after { content: '↗'; }

/* ─── MEMBERS ─────────────────────────────────────────────────────── */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.member-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  position: relative;
}

.member-card:hover {
  border-color: var(--border-2);
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

.member-card.pi {
  background: linear-gradient(135deg, var(--surface) 60%, rgba(42,88,212,.05));
  border-color: rgba(42,88,212,.2);
}

.member-avatar {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-dim), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.1rem;
  letter-spacing: 0em;
  overflow: hidden;
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.member-avatar.teal  { background: linear-gradient(135deg, #0a7a5a, var(--teal)); }
.member-avatar.amber { background: linear-gradient(135deg, #7a4a00, var(--amber)); }
.member-avatar.pink  { background: linear-gradient(135deg, #7a1a4a, #f06292); }

.pi-badge {
  position: absolute; top: 1.2rem; right: 1.2rem;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(42,88,212,.08);
  border: 1px solid rgba(42,88,212,.18);
  padding: .2rem .55rem;
  border-radius: 4px;
}

.member-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .15rem;
}

.member-role {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--teal);
  letter-spacing: .04em;
  margin-bottom: .5rem;
}

.member-desc {
  font-size: .83rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.member-links { margin-top: .9rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.member-link {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--text-faint);
  text-decoration: none;
  padding: .25rem .55rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  transition: color .2s, border-color .2s;
  letter-spacing: .03em;
}
.member-link:hover { color: var(--blue); border-color: rgba(99,140,255,.3); }

/* ─── FACILITY ────────────────────────────────────────────────────── */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.facility-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
}

.fac-header {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1rem;
}

.fac-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(42,88,212,.07);
  border: 1px solid rgba(42,88,212,.14);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

.fac-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.fac-spec {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--teal);
  padding: .5rem .9rem;
  background: rgba(10,158,122,.06);
  border: 1px solid rgba(10,158,122,.14);
  border-radius: 7px;
  margin-bottom: .5rem;
}

.fac-note {
  font-size: .82rem;
  color: var(--text-faint);
}

/* ─── CONTACT ─────────────────────────────────────────────────────── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.contact-item {
  display: flex; align-items: flex-start; gap: .75rem;
  margin-bottom: .9rem;
}

.ci-icon {
  font-size: 1rem;
  min-width: 22px;
  color: var(--blue);
  padding-top: .1rem;
}

.ci-text { font-size: .88rem; color: var(--text-muted); line-height: 1.5; }
.ci-text a { color: var(--blue); text-decoration: none; }
.ci-text a:hover { text-decoration: underline; }

/* ─── FOOTER ──────────────────────────────────────────────────────── */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative; z-index: 1;
}

.footer-brand {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: .4rem;
}

.footer-copy {
  font-size: .8rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

/* ─── STAT ROW ────────────────────────────────────────────────────── */
.stats-row {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 4rem;
}

.stat-item {
  flex: 1;
  padding: 1.6rem;
  text-align: center;
  border-right: 1px solid var(--border);
  background: var(--surface);
}
.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0em;
  display: block;
}
.stat-num em {
  font-style: normal;
  color: var(--teal);
}

.stat-label {
  font-size: .78rem;
  color: var(--text-faint);
  margin-top: .2rem;
  font-family: var(--font-mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ─── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 700px) {
  nav { padding: 0 1rem; }
  .hero { padding: 4rem 1.2rem 3rem; }
  .section { padding: 3.5rem 1.2rem; }
  .contact-wrap { grid-template-columns: 1fr; }
  .stats-row { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .mini-stats { flex-direction: column; }
  .mini-stat { border-right: none; border-bottom: 1px solid var(--border); }
  .mini-stat:last-child { border-bottom: none; }
}

/* ─── RESPONSIVE NAV (hamburger menu) ────────────────────────────── */
@media (max-width: 780px) {
  nav { padding: 0 1rem; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(248,249,252,.98);
    backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }

  nav.nav-open .nav-links {
    max-height: 500px;
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
  }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 1rem 1.2rem;
    font-size: .95rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .nav-links li:last-child a { border-bottom: none; }
}

/* ─── PAGE-SPECIFIC HERO VARIANTS ─────────────────────────────────── */
.hero-sm {
  padding: 4rem 2rem 3rem;
  text-align: left;
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-sm h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 0em;
  color: var(--text);
  margin-bottom: .5rem;
}
.hero-sm p {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 520px;
}

/* ─── SECTION SEPARATOR ───────────────────────────────────────────── */
.sep {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 0;
}
/* ─── UTILITY CLASSES (formerly inline styles) ──────────────────── */
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }
.text-center { text-align: center; }
.mt-sm { margin-top: .9rem; }
.mt-md { margin-top: 1.5rem; }
.mt-lg { margin-top: 2rem; }

/* PI card on index */
.pi-card {
  background: var(--surface);
  border: 1px solid rgba(42,88,212,.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  gap: 1.8rem;
  align-items: flex-start;
  max-width: 700px;
}
.pi-avatar {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue-dim), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.pi-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.pi-name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .2rem;
}
.pi-role {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--teal);
  letter-spacing: .04em;
  margin-bottom: .65rem;
}
.pi-dept {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Join us card */
.join-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.join-icon { font-size: 1.8rem; margin-bottom: .8rem; }
.join-title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .6rem;
}
.join-desc {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

/* Mini stats row (facility page) */
.mini-stats {
  margin-top: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
}
.mini-stat {
  flex: 1;
  text-align: center;
  padding: 1.5rem;
  border-right: 1px solid var(--border);
}
.mini-stat:last-child { border-right: none; }
.mini-stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
}
.mini-stat-num.blue  { color: var(--blue); }
.mini-stat-num.teal  { color: var(--teal); }
.mini-stat-num.amber { color: var(--amber); }
.mini-stat-num.text  { color: var(--text); }
.mini-stat-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-top: .25rem;
}

/* Publication meta */
.pub-authors {
  font-size: .8rem;
  color: var(--text-faint);
  margin-bottom: .5rem;
}
.pub-affil { font-size: .8rem; color: var(--text-faint); }
.pub-list-mb { margin-bottom: 3rem; }
.pub-card-static { pointer-events: none; }

/* Contact page */
.interest-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.3rem;
}
.interest-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .84rem;
  color: var(--text-muted);
}
.interest-arrow { color: var(--teal); }
.contact-note {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.2rem;
}
.contact-disclaimer {
  font-size: .85rem;
  color: var(--text-faint);
  line-height: 1.55;
}

/* Highlight helpers */
.hi-teal { color: var(--teal); }
.hi-text { color: var(--text); display: block; margin-bottom: .1rem; }

/* Section-label spacing variants */
.section-label-sm { margin-bottom: .5rem; }
.section-label-md { margin-bottom: 1rem; }
.section-label-lg { margin-bottom: 1.2rem; }

/* Member avatar colour variants */
.member-avatar.purple { background: linear-gradient(135deg, #4a1a7a, #9b59f0); }

/* Badge size variant */
.badge-sm { font-size: .65rem; padding: .2rem .55rem; }
/* ---------- Teaching section ---------- */
.teach-block {
  margin-bottom: 2rem;
}
.teach-block:last-child {
  margin-bottom: 0;
}
.teach-block-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .8rem;
  padding-left: .7rem;
  border-left: 3px solid var(--blue);
}
.teach-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.teach-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.teach-table thead th {
  text-align: left;
  font-family: var(--font-head);
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--surface-2);
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.teach-table tbody td {
  padding: .7rem 1rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.teach-table tbody tr:last-child td {
  border-bottom: none;
}
.teach-table tbody tr:hover {
  background: var(--bg-2);
}
.teach-period {
  color: var(--text-muted);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: .82rem;
}
.teach-code {
  color: var(--teal);
  font-family: var(--font-mono);
  font-weight: 700;
  white-space: nowrap;
}
.teach-sno {
  color: var(--text-faint);
  font-family: var(--font-mono);
  text-align: center;
  width: 1%;
}

@media (max-width: 640px) {
  .teach-table { font-size: .82rem; }
  .teach-table thead th,
  .teach-table tbody td { padding: .6rem .7rem; }
}