/* Team hierarchy connectors only. Keep the existing profile cards and spacing intact. */

/* Founder-to-leadership stem: a full-width anchor with a centred 1px stroke. */
#team-section-cards.team-section-cards > .team-ceo-connector{
  display:block!important;
  position:relative!important;
  box-sizing:border-box!important;
  width:100%!important;
  height:30px!important;
  min-height:30px!important;
  max-height:30px!important;
  flex:0 0 30px!important;
  margin:0!important;
  padding:0!important;
  align-self:stretch!important;
  background:transparent!important;
  border:0!important;
  transform:none!important;
}
#team-section-cards.team-section-cards > .team-ceo-connector::before{
  content:""!important;
  display:block!important;
  position:absolute!important;
  top:0!important;
  bottom:0!important;
  left:50%!important;
  width:2px!important;
  margin:0!important;
  padding:0!important;
  background:#789d8c!important;
  border:0!important;
  transform:translateX(-50%)!important;
}

/* Shared branch: centre stem meets the crossbar; both drops physically
   overlap the crossbar so the right-hand connection cannot show a gap. */
#team-section-cards.team-section-cards > .team-leadership-connector{
  display:block!important;
  position:relative!important;
  box-sizing:border-box!important;
  width:min(100%,760px)!important;
  max-width:760px!important;
  height:56px!important;
  min-height:56px!important;
  max-height:56px!important;
  flex:0 0 56px!important;
  margin:0 auto!important;
  padding:0!important;
  overflow:visible!important;
  background:transparent!important;
  border:0!important;
}
#team-section-cards.team-section-cards > .team-leadership-connector::before{
  content:""!important;
  display:block!important;
  position:absolute!important;
  top:28px!important;
  left:calc(25% - 4.5px)!important;
  right:calc(25% - 4.5px)!important;
  height:2px!important;
  background:#aebfb2!important;
  border:0!important;
}
#team-section-cards.team-section-cards > .team-leadership-connector::after{
  content:""!important;
  display:block!important;
  position:absolute!important;
  top:0!important;
  left:50%!important;
  height:29px!important;
  width:1px!important;
  background:#aebfb2!important;
  border:0!important;
  transform:translateX(-50%)!important;
}
#team-section-cards.team-section-cards > .team-leadership-connector > span.team-leadership-drop{
  display:block!important;
  position:absolute!important;
  top:28px!important;
  height:29px!important;
  width:1px!important;
  margin:0!important;
  padding:0!important;
  background:#aebfb2!important;
  border:0!important;
}
#team-section-cards.team-section-cards > .team-leadership-connector > .team-leadership-drop-left{
  left:var(--branch-left,calc(25% - 4.5px))!important;
}
#team-section-cards.team-section-cards > .team-leadership-connector > .team-leadership-drop-right{
  left:var(--branch-right,calc(75% + 4.5px))!important;
}
#team-section-cards.team-section-cards > .team-leadership-row{
  position:relative!important;
  width:min(100%,760px)!important;
  max-width:760px!important;
  margin:0 auto!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:18px!important;
}
#team-section-cards.team-section-cards > .team-leadership-row > .team-section-card{
  width:100%!important;
  min-width:0!important;
}
#team-section-cards.team-section-cards > .team-leadership-connector::before{
  /* Explicit branch endpoints align with the two leadership-card centres. */
}
#team-section-cards.team-section-cards > .team-leadership-connector{
  /* Both drops align to the exact centres of the two equal-width cards. */
  --branch-left:25%;
  --branch-right:75%;
}
#team-section-cards.team-section-cards > .team-leadership-connector::before{
  left:var(--branch-left)!important;
  right:calc(100% - var(--branch-right))!important;
}
/* Keep the right-hand drop visible so the branch visibly meets the right profile card. */
#team-section-cards.team-section-cards > .team-leadership-connector > .team-leadership-drop-right{
  display:block!important;
}
#team-section-cards.team-section-cards > .team-staff-connector{
  display:none!important;
}
#team-section-cards.team-section-cards > .team-staff-label{
  width:100%!important;
  max-width:760px!important;
  margin:30px auto 0!important;
  padding:18px 0 0!important;
  border-top:1px solid #e4e9e2!important;
}

@media(max-width:760px){
  #team-section-cards.team-section-cards > .team-ceo-connector{
    height:22px!important;
    min-height:22px!important;
    max-height:22px!important;
    flex-basis:22px!important;
  }
  #team-section-cards.team-section-cards > .team-leadership-connector{
    height:46px!important;
    min-height:46px!important;
    max-height:46px!important;
    flex-basis:46px!important;
  }
  #team-section-cards.team-section-cards > .team-leadership-connector::before{
    top:23px!important;
    left:calc(25% - 3px)!important;
    right:calc(25% - 3px)!important;
  }
  #team-section-cards.team-section-cards > .team-leadership-connector::after{
    height:24px!important;
  }
  #team-section-cards.team-section-cards > .team-leadership-connector{
    --branch-left:25%;
    --branch-right:75%;
  }
  #team-section-cards.team-section-cards > .team-leadership-connector > span.team-leadership-drop{
    top:23px!important;
    height:24px!important;
  }
  #team-section-cards.team-section-cards > .team-leadership-row{
    gap:12px!important;
  }
  #team-section-cards.team-section-cards > .team-staff-label{
    margin-top:30px!important;
    padding-top:15px!important;
  }
}
@media(max-width:420px){
  #team-section-cards.team-section-cards > .team-leadership-row{
    gap:8px!important;
  }
  #team-section-cards.team-section-cards > .team-leadership-connector{
    --branch-left:25%;
    --branch-right:75%;
  }
}