:root {
  --group-ink: #162831;
  --group-text: #31434b;
  --group-muted: #607178;
  --group-paper: #ffffff;
  --group-soft: #f3f6f4;
  --group-line: #d4dfdc;
  --group-accent: #007b84;
  --group-accent-dark: #075760;
  --group-gold: #d99a12;
  --group-blue: #2d68a0;
  --group-coral: #b9483b;
  --group-header-height: 66px;
  --group-page-width: 1120px;
  --group-serif: Georgia, "Times New Roman", serif;
  --group-sans: Aptos, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body.group-page {
  margin: 0;
  padding: 0;
  color: var(--group-text);
  background: var(--group-paper);
  font-family: var(--group-sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.group-page a {
  color: var(--group-accent-dark);
  text-underline-offset: 3px;
}

.group-page a:hover {
  color: var(--group-accent);
}

.group-page a:focus-visible,
.group-page button:focus-visible {
  outline: 3px solid var(--group-gold);
  outline-offset: 3px;
}

/* Group hero */

#main {
  padding: 0;
}

.group-hero {
  position: relative;
  display: grid;
  min-height: 410px;
  overflow: hidden;
  align-items: end;
  color: #fff;
  background: var(--group-ink);
}

.group-hero-image,
.group-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.group-hero-image {
  object-fit: cover;
  object-position: center 50%;
}

.group-hero-shade {
  background: rgba(8, 28, 34, 0.67);
}

.group-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 78px;
  padding-bottom: 60px;
}

.group-hero-kicker {
  margin: 0 0 10px;
  color: #8de2e4;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

.group-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-family: var(--group-serif);
  font-size: 56px;
  font-weight: 700;
  line-height: 1.06;
}

.group-hero p:last-child {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.6;
}

/* Research context */

.group-intro {
  padding: 66px 0 64px;
  background: #fff;
}

.group-intro-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.25fr);
  gap: 44px 76px;
  align-items: start;
}

.section-eyebrow {
  margin: 0 0 9px;
  color: var(--group-accent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

.group-intro h2,
.roster-heading h2 {
  margin: 0;
  color: var(--group-ink);
  font-family: var(--group-serif);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
}

.group-intro-copy {
  max-width: 720px;
}

.group-intro-copy p {
  margin: 0 0 16px;
  color: var(--group-muted);
  font-size: 16px;
  line-height: 1.72;
}

.group-intro-copy p:last-child {
  margin-bottom: 0;
}

.context-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 22px;
}

.context-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--group-accent-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.context-links a:hover {
  color: var(--group-accent);
}

.prospective-note {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--group-line);
}

.prospective-note > i {
  margin-top: 5px;
  color: var(--group-accent);
  font-size: 15px;
}

.group-intro-copy .prospective-note p {
  margin: 0;
  color: var(--group-text);
  font-size: 15px;
  line-height: 1.65;
}

.prospective-note strong {
  display: block;
  color: var(--group-ink);
}

.prospective-note a {
  font-weight: 700;
}
/* Student roster */

.roster-section {
  padding: 70px 0 86px;
  background: var(--group-soft);
  border-top: 1px solid var(--group-line);
}

.roster-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--group-ink);
}

.roster-heading p:last-child {
  max-width: 390px;
  margin: 0;
  color: var(--group-muted);
  font-size: 14px;
  justify-self: end;
  text-align: left;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.member-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  min-height: 150px;
  gap: 18px;
  align-items: start;
  margin: 0;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--group-line);
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(22, 40, 49, 0.05);
}

.member-mark,
.member-photo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  color: #fff;
  background: var(--group-accent-dark);
  border-radius: 6px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.member-photo {
  display: block;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--group-line);
}

.member-card:nth-child(4n + 2) .member-mark {
  background: var(--group-blue);
}

.member-card:nth-child(4n + 3) .member-mark {
  background: var(--group-coral);
}

.member-card:nth-child(4n + 4) .member-mark {
  color: var(--group-ink);
  background: var(--group-gold);
}

.member-copy {
  min-width: 0;
  padding-right: 72px;
}

.member-card h3 {
  margin: 0;
  color: var(--group-ink);
  font-family: var(--group-serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}

.member-role {
  margin: 4px 0 0;
  color: var(--group-muted);
  font-size: 13px;
  font-weight: 650;
}

.profile-link {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 8px;
  gap: 6px;
  color: var(--group-accent-dark);
  background: #fff;
  border: 1px solid #aac3c0;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
}

.profile-link:hover {
  color: #fff;
  background: var(--group-accent-dark);
  border-color: var(--group-accent-dark);
}

@media (max-width: 920px) {
  .group-intro-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .member-copy {
    padding-right: 0;
  }

  .profile-link {
    position: static;
    grid-column: 2;
    justify-self: start;
    margin-top: 14px;
  }
}

@media (max-width: 700px) {
  body.group-page {
    font-size: 15px;
  }

  .group-hero {
    min-height: 360px;
  }

  .group-hero-content {
    padding-top: 62px;
    padding-bottom: 50px;
  }

  .group-hero h1 {
    font-size: 44px;
  }

  .group-hero p:last-child {
    font-size: 16px;
  }

  .group-intro {
    padding: 52px 0;
  }

  .group-intro h2,
  .roster-heading h2 {
    font-size: 29px;
  }

  .roster-section {
    padding: 56px 0 68px;
  }

  .roster-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .roster-heading p:last-child {
    text-align: left;
  }

  .member-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .group-hero {
    min-height: 330px;
  }

  .group-hero h1 {
    font-size: 38px;
  }

  .member-card {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 0;
    gap: 14px;
    padding: 18px;
  }

  .member-mark,
  .member-photo {
    width: 56px;
    height: 56px;
    font-size: 14px;
  }

  .member-card h3 {
    font-size: 19px;
  }

  .profile-link {
    grid-column: 2;
  }
}

@media print {
  .group-hero-image,
  .group-hero-shade,
  .context-links,
  .profile-link {
    display: none;
  }

  .group-hero {
    min-height: 0;
    color: #000;
    background: #fff;
  }

  .group-hero-content {
    padding: 0 0 30px;
  }

  .group-hero h1,
  .group-hero-kicker,
  .group-hero p:last-child {
    color: #000;
  }

  .group-intro,
  .roster-section {
    padding: 28px 0;
    background: #fff;
  }

  .member-card {
    break-inside: avoid;
    box-shadow: none;
  }
}
