/* Team page (dark theme). Selectors are prefixed so they win over older rules in style.css. */

.team-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--ink-muted);
  margin: 0 0 2.5rem;
}

.team-circuit-container {
  max-width: 900px;
  margin: 0 auto;
  scroll-margin-top: 90px;
}

.team-circuit-container .team-construct-row {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

/* Fixed widths so the SVGs can never blow up to full size */
.team-circuit-container .sbol-left-segment  { flex: 0 0 140px; width: 140px; }
.team-circuit-container .sbol-right-segment { flex: 0 0 100px; width: 100px; }

.team-circuit-container .sbol-svg-element {
  display: block;
  width: 100%;
  height: auto;
  max-height: 60px;
}

.team-circuit-container .team-cds-card {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 1.5rem 1.25rem;
  background: var(--surface);
  border: 2px solid var(--green);
  border-radius: 8px 26px 26px 8px;
  color: var(--ink);
}

.team-circuit-container .cds-gene-tag {
  position: absolute;
  top: 8px;
  left: 16px;
  font-family: monospace;
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: var(--violet-text);
}

.team-circuit-container .team-photo-frame {
  width: 170px;
  height: 210px;
  flex: none;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid var(--violet-text);
  background: var(--surface-2);
}

.team-circuit-container .team-member-info { min-width: 0; padding-right: 0.5rem; }

.team-circuit-container .team-member-name {
  margin: 0;
  font-size: 1.3rem;
  color: var(--ink);
}

.team-circuit-container .team-member-role {
  display: block;
  margin: 0.15rem 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--violet-text);
}

.team-circuit-container .team-member-bio {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

.team-section {
  max-width: 900px;
  margin: 4rem auto;
  scroll-margin-top: 90px;
  color: var(--ink);
}

/* ===== Advisors: each advisor is a big RBS (dome) card on the strand ===== */
.advisors-lead {
  color: var(--ink-muted);
  margin: 0 0 2rem;
}

.advisor-list { max-width: 900px; margin: 0 auto; }

/* The RBS sits ON the strand, so the row aligns to the bottom edge:
   the card's bottom border and the strand line are both 3px and line up. */
.advisor-row {
  display: flex;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.advisor-left  { flex: 0 0 140px; width: 140px; }
.advisor-right { flex: 0 0 190px; width: 190px; }

.advisor-left svg,
.advisor-right svg {
  display: block;
  width: 100%;
  height: 60px;
}

.advisor-rbs-card {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 2.4rem 2.5rem 1.5rem;
  background: var(--surface);
  border: 3px solid var(--green);
  border-radius: 100px 100px 10px 10px;
  color: var(--ink);
}

.rbs-tag {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: monospace;
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: var(--violet-text);
}

.advisor-photo {
  width: 150px;
  height: 150px;
  flex: none;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--violet-text);
  background: var(--surface-2);
}

.advisor-info { min-width: 0; }

.advisor-name {
  margin: 0;
  font-size: 1.3rem;
  color: var(--ink);
}

.advisor-role {
  display: block;
  margin: 0.15rem 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--violet-text);
}

.advisor-note {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

@media (max-width: 768px) {
  .team-circuit-container .sbol-left-segment,
  .team-circuit-container .sbol-right-segment,
  .advisor-left,
  .advisor-right { display: none; }

  .team-circuit-container .team-cds-card {
    flex-direction: column;
    text-align: center;
    border-radius: 8px;
  }

  .advisor-rbs-card {
    flex-direction: column;
    text-align: center;
    padding-top: 2.6rem;
    border-radius: 60px 60px 10px 10px;
  }
}
.team-member-wonder {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.team-member-wonder strong { color: var(--ink); }

/* photo failed to load: keep the empty circle, hide alt text and broken icon */
.advisor-photo.no-photo,
.team-photo-frame.no-photo { color: transparent; font-size: 0; }

.advisor-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.2rem 0 1rem;
}
.advisor-divider::before,
.advisor-divider::after {
  content: "";
  flex: 1;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--green) 0 14px, transparent 14px 22px);
}
.advisor-divider span {
  padding: 0.3rem 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--box-accent);
  border-radius: 6px;
}