/* THREADS Lab custom styles */

/* Small, understated separators inside the T.H.R.E.A.D.S. wordmark */
.acronym-dot {
  font-size: 0.32em;
  opacity: 0.55;
  vertical-align: middle;
  margin: 0 0.02em;
}

/* Second (smaller) line under the main subtitle in the page header */
.subheading-secondary {
  display: block;
  margin-top: 6px;
  font-size: 0.85em;
  opacity: 0.8;
}

/* ---- Team member cards ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 18px 0 34px;
}
.member-card {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 16px;
  border: 1px solid #e1e4e8;
  border-radius: 10px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.member-card:hover {
  border-color: #3A6A74;
  box-shadow: 0 6px 18px rgba(20, 24, 29, .07);
}
.member-avatar {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #3A6A74;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.member-card.is-alum .member-avatar { background: #6b7a82; }
.member-body { min-width: 0; }
.member-name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
  margin: 0 0 3px;
}
.member-name a { text-decoration: none; }
.member-name a:hover { text-decoration: underline; }
.member-role {
  font-size: 12.5px;
  color: #5b6470;
  line-height: 1.45;
  margin: 0;
}
.member-role em { font-style: italic; }

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ---- Principal investigator box: text left, portrait right ---- */
.pi-block {
  display: flex;
  align-items: stretch;
  gap: 24px;
  padding: 22px 24px;
  border: 1px solid #e1e4e8;
  border-radius: 10px;
  background: #fff;
  margin: 6px 0 30px;
}
.pi-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pi-text > p:first-child { margin-top: 0; }
.pi-text > p:last-child { margin-bottom: 0; }
.pi-photo {
  flex: 0 0 auto;
  width: 168px;
  display: flex;
}
.pi-photo img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  display: block;
  border-radius: 8px;
  border: 1px solid #e1e4e8;
}

@media (max-width: 700px) {
  .pi-block { flex-direction: column-reverse; align-items: flex-start; gap: 16px; }
  .pi-photo { width: 150px; }
  .pi-photo img { height: auto; min-height: 0; }
}

/* Acronym expansion line: noticeably smaller than the default subheading */
.intro-header .page-heading .page-subheading.subheading-expansion {
  font-size: 1.125rem;
  line-height: 1.35;
  margin-top: 0.5rem;
}

/* Photos on member cards, where the person's photo is already in the repo */
.member-avatar.has-photo {
  background: none;
  overflow: hidden;
  padding: 0;
}
.member-avatar.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* ---- Partner strip ---- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin: 14px 0 26px;
}
.partner-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 12px 13px;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.partner-card:hover {
  border-color: #3A6A74;
  box-shadow: 0 4px 12px rgba(20, 24, 29, .06);
  text-decoration: none;
}
.partner-name {
  font-weight: 700;
  font-size: 13.5px;
  color: #14181D;
  line-height: 1.25;
}
.partner-role {
  font-size: 11.5px;
  color: #5b6470;
  line-height: 1.35;
}
