.orgchart {
  width: min(100%, 1180px);
  margin: 0 auto;
  color: #22384d;
}

.org-node {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 18px 20px;
  text-align: center;
  border-radius: 22px;
  background: #eef5fb;
  border: 1px solid #d5e2ec;
  box-shadow: 0 14px 28px rgba(24, 49, 74, 0.07);
}

.org-node__label {
  display: block;
  line-height: 1.25;
  word-break: keep-all;
  letter-spacing: -0.03em;
  font-weight: 800;
  font-size: 22px;
}

.org-node--chief {
  /* overflow: hidden; */
  background: linear-gradient(135deg, #0c5797 0%, #2879bf 100%);
  border: 0;
  box-shadow: 0 16px 30px rgba(12, 87, 151, 0.16);
}
.org-node--chief .org-node__label {
  color: #fff;
  font-size: 24px;
}
.org-node--chief img {
  position: absolute;
  right: 9%;
  bottom: 0;
  width: 23%;
  opacity: 0.08;
  pointer-events: none;
}

.org-node--sub,
.org-node--vice {
  background: #f5f9fd;
}

.orgchart-head {
  --org-center-col: 220px;
  position: relative;
  width: min(100%, 1080px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) var(--org-center-col) minmax(180px, 1fr);
  grid-template-rows: 34px auto 124px auto;
  align-items: center;
}

.orgchart-head__lead {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: 2px;
  height: 34px;
  background: #b6cbde;
}

.org-node--chief {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
}

.org-node--ops {
  grid-column: 1;
  grid-row: 3;
  justify-self: center;
  align-self: center;
  width: min(100%, 260px);
}

.org-node--advisory {
  grid-column: 3;
  grid-row: 3;
  justify-self: center;
  align-self: center;
  width: min(100%, 260px);
}

.org-node--vice {
  grid-column: 2;
  grid-row: 4;
  width: 100%;
}

.org-bridge {
  pointer-events: none;
}

.org-bridge span {
  position: absolute;
  display: block;
  background: #b6cbde;
}

.org-bridge--head {
  grid-column: 1/-1;
  grid-row: 3;
  position: relative;
  width: 100%;
  height: 124px;
  align-self: stretch;
}

.org-bridge--head .org-bridge__v--top {
  top: 0;
  left: 50%;
  width: 2px;
  height: 46px;
  transform: translateX(-50%);
}

.org-bridge--head .org-bridge__h {
  /* top: 46px; */
  top: 58px;
  left: calc((100% - var(--org-center-col)) / 4);
  width: calc(50% + var(--org-center-col) / 2);
  height: 2px;
}

.org-bridge--head .org-bridge__dot {
  /* top: 41px; */
  top: 53px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: #b6cbde;
}

.org-bridge--head .org-bridge__v--bottom {
  top: 46px;
  left: 50%;
  width: 2px;
  height: 78px;
  transform: translateX(-50%);
}

.orgchart-teams {
  --team-gap: 26px;
  position: relative;
  width: min(100%, 1120px);
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--team-gap);
  padding-top: 92px;
  margin-top:0;
}

.org-bridge--teams {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 92px;
}

.org-bridge--teams .org-bridge__v--top {
  top: 0;
  left: 50%;
  width: 2px;
  height: 42px;
  transform: translateX(-50%);
}

.org-bridge--teams .org-bridge__h {
  top: 42px;
  left: calc(25% - var(--team-gap) / 4);
  width: calc(50% + var(--team-gap) / 2);
  height: 2px;
}

.org-bridge--teams .org-bridge__v--left {
  top: 42px;
  left: calc(25% - var(--team-gap) / 4);
  width: 2px;
  height: 50px;
  transform: translateX(-50%);
}

.org-bridge--teams .org-bridge__v--right {
  top: 42px;
  left: calc(75% + var(--team-gap) / 4);
  width: 2px;
  height: 50px;
  transform: translateX(-50%);
}

.org-team {
  position: relative;
  min-width: 0;
}

.org-team__title {
  padding: 18px 20px;
  border: 1px solid #c9dae8;
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background: #dceaf6;
  color: #22384d;
  text-align: center;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.03em;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(24, 49, 74, 0.05);
}

.org-team__body {
  padding: 24px 26px 26px;
  border: 1px solid #dbe6ef;
  border-radius: 0 0 22px 22px;
  background: #fbfdff;
  box-shadow: 0 8px 18px rgba(24, 49, 74, 0.05);
  height:calc(100% - 65px);
}
.org-team__body ul {
  display: grid;
  gap: 12px;
}
.org-team__body li {
  position: relative;
  padding-left: 18px;
  line-height: 1.75;
  word-break: keep-all;
  color: #5f7284;
}
.org-team__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7ca9d2;
  transform: translateY(-50%);
}

@media all and (max-width: 1280px) {
  .orgchart-head {
    --org-center-col: 210px;
  }
  .org-node__label {
    font-size: 21px;
  }
  .org-node--chief .org-node__label {
    font-size: 23px;
  }
}
@media all and (max-width: 1024px) {
  .orgchart-head {
    --org-center-col: 190px;
    grid-template-columns: minmax(150px, 1fr) var(--org-center-col) minmax(150px, 1fr);
    grid-template-rows: 28px auto 112px auto;
  }
  .orgchart-head__lead {
    height: 28px;
  }
  .org-node {
    min-height: 76px;
    padding: 16px 16px;
    border-radius: 18px;
  }
  .org-node__label {
    font-size: 19px;
  }
  .org-node--chief .org-node__label {
    font-size: 21px;
  }
  .org-node--ops,
  .org-node--advisory {
    width: min(100%, 220px);
  }
  .org-bridge--head {
    height: 112px;
  }
  .org-bridge--head .org-bridge__v--top {
    height: 42px;
  }
  .org-bridge--head .org-bridge__h {
    top: 56px;
  }
  .org-bridge--head .org-bridge__dot {
    top: 52px;
    width: 10px;
    height: 10px;
  }
  .org-bridge--head .org-bridge__v--bottom {
    top: 42px;
    height: 70px;
  }
  .orgchart-teams {
    --team-gap: 18px;
    padding-top: 78px;
    /* margin-top: 24px; */
  }
  .org-bridge--teams {
    height: 78px;
  }
  .org-bridge--teams .org-bridge__v--top {
    height: 34px;
  }
  .org-bridge--teams .org-bridge__h {
    top: 34px;
  }
  .org-bridge--teams .org-bridge__v--left,
  .org-bridge--teams .org-bridge__v--right {
    top: 34px;
    height: 44px;
  }
  .org-team__title {
    padding: 16px 16px;
    font-size: 20px;
    border-radius: 16px 16px 0 0;
  }
  .org-team__body {
    padding: 20px 20px 22px;
    border-radius: 0 0 18px 18px;
    height:calc(100% - 59px);
  }
  .org-team__body li {
    font-size: 15px;
    line-height: 1.7;
  }
}
@media all and (max-width: 640px) {
  .orgchart-head {
    --org-center-col: 170px;
    grid-template-columns: minmax(120px, 1fr) var(--org-center-col) minmax(120px, 1fr);
    grid-template-rows: 24px auto 104px auto;
  }
  .orgchart-head__lead {
    height: 24px;
  }
  .org-node {
    min-height: 68px;
    padding: 14px 12px;
    border-radius: 16px;
  }
  .org-node__label {
    font-size: 17px;
  }
  .org-node--chief .org-node__label {
    font-size: 19px;
  }
  .org-node--ops,
  .org-node--advisory {
    width: min(100%, 180px);
  }
  .org-bridge--head {
    height: 104px;
  }
  .org-bridge--head .org-bridge__v--top {
    height: 38px;
  }
  .org-bridge--head .org-bridge__h {
    top: 50px;
  }
  .org-bridge--head .org-bridge__dot {
    top: 47px;
    width: 8px;
    height: 8px;
  }
  .org-bridge--head .org-bridge__v--bottom {
    top: 38px;
    height: 66px;
  }
  .orgchart-teams {
    --team-gap: 14px;
    padding-top: 70px;
  }
  .org-bridge--teams {
    height: 70px;
  }
  .org-bridge--teams .org-bridge__v--top {
    height: 30px;
  }
  .org-bridge--teams .org-bridge__h {
    top: 30px;
  }
  .org-bridge--teams .org-bridge__v--left,
  .org-bridge--teams .org-bridge__v--right {
    top: 30px;
    height: 40px;
  }
  .org-team__title {
    font-size: 18px;
  }
  .org-team__body {
    padding: 18px 16px 20px;
    height:calc(100% - 56px);
  }
  .org-team__body li {
    font-size: 14px;
    line-height: 1.65;
  }
}
@media all and (max-width: 560px) {
  .orgchart-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
  }
  .orgchart-head__lead {
    width: 2px;
    height: 24px;
  }
  .org-bridge--head {
    display: none;
  }
  .org-node--chief,
  .org-node--ops,
  .org-node--advisory,
  .org-node--vice {
    width: min(100%, 340px);
  }
  .org-node--chief::after,
  .org-node--ops::after,
  .org-node--advisory::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 2px;
    height: 14px;
    background: #b6cbde;
    transform: translateX(-50%);
  }
  .orgchart-teams {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 28px;
    /* margin-top: 18px; */
  }
  .org-bridge--teams {
    height: 28px;
  }
  .org-bridge--teams .org-bridge__v--top {
    top: 0;
    left: 50%;
    width: 2px;
    height: 28px;
    transform: translateX(-50%);
  }
  .org-bridge--teams .org-bridge__h,
  .org-bridge--teams .org-bridge__v--left,
  .org-bridge--teams .org-bridge__v--right {
    display: none;
  }
  .org-team::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 50%;
    width: 2px;
    height: 14px;
    background: #b6cbde;
    transform: translateX(-50%);
  }
}