/* Organization chart — shared inner-page theme with a clean light canvas. */

.org-chart-page .org-chart-hero {
  background: #111;
}

.org-chart-content {
  padding-bottom: 150px;
}

.cms-org-chart {
  width: min(100%, 1280px);
  margin: 0 auto;
  overflow-x: auto;
  padding: 10px 0 24px;
}

.org-chart-tree {
  min-width: 760px;
  display: flex;
  justify-content: center;
}

.org-chart-branch {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.org-chart-branch:not(.org-chart-depth-0) {
  padding: 30px 14px 0;
}

.org-chart-branch:not(.org-chart-depth-0)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  height: 30px;
  border-left: 1px solid #e3b7a6;
}

.org-chart-children {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  margin-top: 30px;
  padding-top: 1px;
}

.org-chart-children::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  border-top: 1px solid #e3b7a6;
}

.org-chart-children > .org-chart-branch::before {
  top: 0;
}

.org-chart-card {
  position: relative;
  width: 270px;
  min-height: 190px;
  padding: 24px 22px;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(22, 44, 67, .08);
  text-align: left;
  transition: box-shadow .3s ease, transform .3s ease;
}

.org-chart-card:hover {
  box-shadow: 0 17px 36px rgba(22, 44, 67, .13);
  transform: translateY(-3px);
}

.org-chart-card-organization {
  width: 330px;
  border-color: rgba(237, 112, 65, .55);
  background: linear-gradient(145deg, #fff8f4, #fff);
}

.org-chart-card-leadership {
  border-color: #b8d2ea;
}

.org-chart-avatar {
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 4px;
  background: #fff0e9;
  color: #d85e31;
  font: 700 18px/1 Poppins, var(--font-body);
  letter-spacing: 1px;
}

.org-chart-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.org-chart-label {
  display: block;
  margin-bottom: 7px;
  color: #ed7041;
  font: 600 10px/1.4 Poppins, var(--font-body);
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.org-chart-card h3 {
  margin: 0;
  color: #38383a;
  font: 600 22px/1.25 Poppins, var(--font-body);
}

.org-chart-title {
  margin: 8px 0 0;
  color: #55575b;
  font: 600 13px/1.5 Poppins, var(--font-body);
}

.org-chart-summary {
  margin: 10px 0 0;
  color: #777;
  font: 400 13px/1.7 Poppins, var(--font-body);
}

.org-chart-contact {
  display: inline-block;
  margin-top: 13px;
  color: #ed7041;
  font: 600 12px/1.5 Poppins, var(--font-body);
  text-decoration: none;
}

.org-chart-contact:hover,
.org-chart-contact:focus-visible {
  color: #c6532b;
  text-decoration: underline;
}

@media (max-width: 980px) {
  .org-chart-tree {
    justify-content: flex-start;
  }

  .org-chart-children {
    gap: 6px;
  }

  .org-chart-card {
    width: 235px;
  }

  .org-chart-card-organization {
    width: 290px;
  }
}

@media (max-width: 760px) {
  .cms-org-chart {
    overflow: visible;
  }

  .org-chart-tree {
    min-width: 0;
    display: block;
  }

  .org-chart-branch {
    align-items: stretch;
  }

  .org-chart-branch:not(.org-chart-depth-0) {
    padding: 24px 0 0 24px;
    margin-left: 12px;
    border-left: 1px solid #e3b7a6;
  }

  .org-chart-branch:not(.org-chart-depth-0)::before {
    top: 50px;
    left: 0;
    width: 24px;
    height: 0;
    border-top: 1px solid #e3b7a6;
    border-left: 0;
  }

  .org-chart-children {
    display: block;
    margin: 0;
    padding: 0 0 0 22px;
  }

  .org-chart-children::before {
    display: none;
  }

  .org-chart-card,
  .org-chart-card-organization {
    width: auto;
    min-height: 0;
  }

  .org-chart-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
  }

  .org-chart-avatar {
    flex: 0 0 48px;
    margin-bottom: 0;
  }

  .org-chart-card h3 {
    font-size: 19px;
  }

  .org-chart-summary {
    font-size: 12px;
  }
}
