/* LDP JPM v10.29 — struktur tim lebih proporsional & rapat */

/* Keep the whole team directory visually centered instead of inheriting the
   generic four-column grid that leaves two-card groups stuck to the left. */
.team-directory-section{
  padding-block:clamp(2.25rem,4vw,3.5rem);
}
.team-directory-section > .container{
  width:min(1180px,calc(100% - 2rem));
  margin-inline:auto;
}
.team-group{
  width:100%;
  margin-inline:auto;
}
.team-group + .team-group{
  margin-top:clamp(2rem,3.2vw,3rem);
}
.team-group-head{
  width:100%;
  max-width:760px;
  margin:0 auto clamp(1.15rem,2vw,1.6rem) !important;
  align-items:center;
  text-align:center;
}
.team-group-head .eyebrow,
.team-group-head h2{
  margin-inline:auto !important;
  text-align:center;
}

/* Dedicated grid sizes make 1/2/3-person rows stay centered. */
.team-structure-grid{
  display:grid;
  width:100%;
  margin-inline:auto;
  justify-content:center;
  align-items:stretch;
  gap:clamp(1rem,1.8vw,1.35rem);
}
.team-structure-grid.team-grid-count-1{
  max-width:380px;
  grid-template-columns:minmax(0,380px);
}
.team-structure-grid.team-grid-count-2{
  max-width:840px;
  grid-template-columns:repeat(2,minmax(320px,380px));
}
.team-structure-grid.team-grid-count-3{
  max-width:1110px;
  grid-template-columns:repeat(3,minmax(280px,340px));
}
.team-structure-grid.team-grid-count-4{
  max-width:1180px;
  grid-template-columns:repeat(4,minmax(240px,280px));
}
.team-structure-grid.team-grid-count-many{
  max-width:1180px;
  grid-template-columns:repeat(4,minmax(240px,1fr));
}

/* More balanced card proportions for an organisation chart / team directory. */
.team-person-card{
  width:100%;
  min-width:0;
  min-height:278px;
  padding:1.9rem 1.6rem 1.7rem;
  justify-content:flex-start !important;
  border-radius:22px;
  box-shadow:0 12px 30px -22px rgba(35,39,69,.28);
}
.team-person-card img{
  width:128px;
  height:128px;
  margin-bottom:1rem;
  border-width:3px;
}
.team-person-card h3{
  width:100%;
  margin:.1rem 0 .28rem;
  font-size:1.22rem;
  line-height:1.35;
  text-align:center;
}
.team-person-card .role{
  display:block;
  width:100%;
  line-height:1.45;
  text-align:center;
  font-size:1rem;
}
.team-person-card > *{
  max-width:100%;
}
.team-person-bio{
  display:-webkit-box;
  width:100%;
  margin:.85rem 0 0;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  line-clamp:3;
  text-align:center;
  line-height:1.55;
}

/* A subtle divider keeps the two chart groups distinct without making the
   page feel like separate unrelated blocks. */
.team-group + .team-group::before{
  content:"";
  display:block;
  width:min(620px,72%);
  height:1px;
  margin:0 auto clamp(1.5rem,2.4vw,2.1rem);
  background:linear-gradient(90deg,transparent,#e8e9f0 18%,#e8e9f0 82%,transparent);
}

@media (max-width:980px){
  .team-structure-grid.team-grid-count-3,
  .team-structure-grid.team-grid-count-4,
  .team-structure-grid.team-grid-count-many{
    max-width:780px;
    grid-template-columns:repeat(2,minmax(280px,360px));
  }
}

@media (max-width:680px){
  .team-directory-section > .container{
    width:min(100% - 1.25rem,1180px);
  }
  .team-group + .team-group{
    margin-top:2.15rem;
  }
  .team-group + .team-group::before{
    width:78%;
    margin-bottom:1.7rem;
  }
  .team-structure-grid.team-grid-count-1,
  .team-structure-grid.team-grid-count-2,
  .team-structure-grid.team-grid-count-3,
  .team-structure-grid.team-grid-count-4,
  .team-structure-grid.team-grid-count-many{
    max-width:420px;
    grid-template-columns:minmax(0,1fr);
  }
  .team-person-card{
    min-height:0;
    padding:1.55rem 1.25rem;
  }
  .team-person-card img{
    width:112px;
    height:112px;
  }
}
