* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: #1d3b6f;
  text-decoration: none;
}

a:hover {
  color: #163158;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}

/* Header */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 0 auto 40px;
  max-width: 820px;
}

.labname-link {
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.labname-link:hover {
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 16px;
  font-size: 14px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: inherit;
}

.nav a:hover {
  text-decoration: underline;
}

/* Main two-column layout */
.main-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  max-width: 820px;
  margin: 0 auto;
}

.profile-column {
  font-size: 15px;
}

.bio-column {
  max-width: 640px;
}

.bio-column p {
  margin: 0 0 14px;
}

/* Single column layout */
.single-column {
  max-width: 820px;
  margin: 0 auto;
}

.section {
  margin-bottom: 12px;
}

.section-label {
  margin: 0 0 6px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
}

.mission {
  margin: 0 0 10px;
  font-size: 17px;
}

.hero {
  border-bottom: 1px solid #eee;
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.hero-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Team */
.team-grid {
  display: grid;
  gap: 12px 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.team-section .team-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 0 2px;
}

.team-photo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}

.team-card .name,
.team-card .team-role {
  margin: 0;
}

.team-card .name {
  margin-top: -18px;
  background: #fff;
  padding: 0 6px;
  text-align: center;
}

.team-role {
  color: #555;
  font-size: 14px;
  margin-top: 3px;
  text-align: center;
}

/* Left column */
.portrait {
  width: 180px;
  height: 180px;
  object-fit: cover;
  object-position: center;
  display: block;
  margin-bottom: 20px;
  border-radius: 50%;
}

.identity,
.contact-block,
.profile-links {
  margin-bottom: 16px;
}

.identity p,
.contact-block p,
.profile-links p {
  margin: 0;
}

.name {
  font-weight: 700;
}

.muted {
  color: #555;
}

.profile-links p + p {
  margin-top: 4px;
}

.list {
  margin: 0;
  padding-left: 18px;
}

.list li {
  margin-bottom: 6px;
}

.section-divider {
  border: 0;
  border-top: 1px solid #eee;
  margin: 18px 0;
}

/* Responsive */
@media (max-width: 900px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 32px;
  }

  .main-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .bio-column {
    max-width: 100%;
  }

}
.section-gap {
  margin-top: 40px;
}
