/* ═══════════════════════════════════════════════════════════════
   THEME VARIABLES — tweak colors and fonts here
═══════════════════════════════════════════════════════════════ */
:root {
  --navy:         #1a2e4a;
  --navy-mid:     #2a4166;
  --accent:       #c0832a;
  --accent-light: #e8a94a;
  --slate:        #4a5568;
  --muted:        #718096;
  --rule:         #d4d8de;
  --bg:           #f8f7f4;
  --white:        #ffffff;
}

/* ── RESET ─────────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--bg);
  color: var(--navy);
  line-height: 1.7;
}

/* ── NAV ────────────────────────────────────────────────────── */
nav {
  background: var(--navy);
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand {
  font-family: 'Libre Baskerville', serif;
  color: var(--white);
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
}
.nav-brand span { color: var(--accent-light); }
.nav-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-left: 2rem;
  transition: color 0.2s;
  cursor: pointer;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a.active {
  border-bottom: 2px solid var(--accent-light);
  padding-bottom: 2px;
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  padding: 3rem 2.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(192,131,42,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(42,65,102,0.8) 0%, transparent 60%);
}
.hero-inner { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; }
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: 2.6rem;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 1.25rem;
}
.hero-sub {
  color: rgba(255,255,255,0.7);
  font-size: 1.15rem;
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto 2rem;
}
.hero-badge {
  display: inline-block;
  border: 1px solid rgba(192,131,42,0.4);
  color: var(--accent-light);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.4rem 1rem;
  border-radius: 2px;
  text-decoration: none;
}
.hero-badge:hover { border-color: var(--accent-light); }

/* ── LAYOUT ─────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2.5rem; }
.panel { display: none; }
.panel.active { display: block; }

/* ── SECTIONS ───────────────────────────────────────────────── */
.page-section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.page-section:last-child { border-bottom: none; }

.section-heading {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.65rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.section-rule {
  width: 40px; height: 3px;
  background: var(--accent);
  margin-bottom: 2.5rem;
}
.subsection-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  margin-top: 2.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}
.subsection-label:first-of-type { margin-top: 0; }

/* ── PI CARDS ───────────────────────────────────────────────── */
.pi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.pi-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--navy);
  padding: 2rem;
  border-radius: 2px;
}
.pi-photo {
  width: 90px; height: 90px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--rule);
  background: var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--muted);
}
.pi-photo img { width: 100%; height: 100%; object-fit: cover; }
.pi-name {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.05rem;
  text-align: center;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.pi-bio { font-size: 0.88rem; color: var(--slate); line-height: 1.65; }

/* ── MEMBER CARDS ───────────────────────────────────────────── */
.member-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}
.member-chip {
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--navy-mid);
  padding: 1.25rem 1.1rem 1.1rem;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}
.chip-photo {
  width: 60px; height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--muted);
  margin-bottom: 0.75rem;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--rule);
}
.chip-photo img { width: 100%; height: 100%; object-fit: cover; }
.chip-text .name {
  font-weight: 600; font-size: 0.9rem;
  color: var(--navy);
  font-family: 'Libre Baskerville', serif;
}
.chip-text .role {
  font-size: 0.78rem; color: var(--accent);
  font-weight: 600; letter-spacing: 0.05em;
  margin-top: 0.15rem;
}
.chip-text .bio {
  font-size: 0.8rem; color: var(--slate);
  line-height: 1.55; margin-top: 0.6rem;
  text-align: left;
}

/* ── CLINICAL / ADVISORY (no photos) ───────────────────────── */
.member-chip.no-photo {
  border-top: 3px solid var(--rule);
  align-items: flex-start;
  text-align: left;
}

/* ── SITE GROUP ─────────────────────────────────────────────── */
.site-group { margin-bottom: 2rem; }
.site-label {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--navy-mid); margin-bottom: 0.75rem;
}

/* ── ABOUT ──────────────────────────────────────────────────── */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.funder-badge {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--navy-mid);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 2px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.funder-badge:hover { border-top-color: var(--accent); color: var(--accent); }
.funder-badge.grant {
  border-top-color: var(--accent);
  color: var(--accent);
  letter-spacing: 0.03em;
  text-transform: none;
}
.funder-badge.grant:hover { border-top-color: var(--navy); color: var(--navy); }
.abstract-body {
  font-size: 0.975rem; color: var(--slate);
  line-height: 1.8;
}
.abstract-body p { margin-bottom: 1.25rem; }
.nih-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  padding: 0.6rem 1rem; border-radius: 2px;
  font-size: 0.85rem; color: var(--slate);
  margin-bottom: 2rem; text-decoration: none;
}
.nih-badge strong { color: var(--navy); }

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  text-align: center;
  padding: 1.75rem;
}
footer a { color: rgba(255,255,255,0.65); text-decoration: none; }
footer a:hover { color: var(--white); }



/* Wide screens: 4-col member grid, side-by-side about layout */
@media (min-width: 1100px) {
  .member-grid { grid-template-columns: repeat(4, 1fr); }
  .member-grid.two-col { grid-template-columns: repeat(3, 1fr); }

  /* About page: abstract left, contact right */
  .about-wide-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 4rem;
    align-items: start;
  }
}

/* Medium screens: keep 3-col member grid (default) */
@media (min-width: 768px) and (max-width: 1099px) {
  .member-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Small screens */
@media (max-width: 767px) {
  .pi-grid { grid-template-columns: 1fr; }
  .member-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  nav { padding: 0 1rem; }
  .nav-brand { font-size: 0.82rem; }
}