.cd-org {
  --cd-orange: #ef5a41;
  --cd-orange-2: #ff8a5c;
  --cd-teal: #018094;
  --cd-teal-dark: #035f79;
  --cd-ink: #14202b;
  --cd-muted: #5d6b78;
  --cd-line: #a9cdd4;
  --cd-card-h: 76px;
  font-family: "Roboto", sans-serif;
  color: var(--cd-ink);
  padding: 20px 0 40px;
}

.cd-org *, .cd-org *::before, .cd-org *::after { box-sizing: border-box; }

.cd-org__head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.cd-org__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 14px/1 "Poppins", sans-serif; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cd-orange);
}
.cd-org__eyebrow::before, .cd-org__eyebrow::after {
  content: ""; width: 36px; height: 2px; background: var(--cd-orange); border-radius: 2px;
}
.cd-org__title {
  margin: 14px 0 12px; font: 700 clamp(30px, 4.4vw, 46px)/1.15 "Poppins", sans-serif;
  color: var(--cd-ink); letter-spacing: -.01em;
}
.cd-org__title span {
  background: linear-gradient(90deg, var(--cd-teal-dark), var(--cd-teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cd-org__lead { margin: 0; font-size: 17px; line-height: 1.7; color: var(--cd-muted); }

.cd-org__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px;
  max-width: 1080px; margin: 0 auto; align-items: start;
}

.cd-branch {
  position: relative; padding: 28px 28px 32px; border-radius: 28px;
  background: linear-gradient(180deg, #f3f9fa 0%, #ffffff 70%);
  border: 1px solid #e3eef0;
}
.cd-card {
  display: flex; align-items: center; gap: 14px; min-height: var(--cd-card-h);
  padding: 10px 22px 10px 10px; border-radius: 999px; background: #fff;
  border: 1px solid #edf1f3;
  box-shadow: 0 10px 24px -14px rgba(3, 95, 121, .35);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.cd-card:hover {
  transform: translateY(-3px); border-color: rgba(239, 90, 65, .35);
  box-shadow: 0 18px 32px -16px rgba(239, 90, 65, .45);
}
.cd-avatar {
  flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 18px/1 "Poppins", sans-serif; color: #fff; letter-spacing: .02em;
  background: linear-gradient(135deg, var(--cd-orange-2), var(--cd-orange));
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(239, 90, 65, .25);
}
.cd-card__name {
  display: block; font: 700 16px/1.25 "Poppins", sans-serif; color: var(--cd-ink);
  text-transform: uppercase; letter-spacing: .02em;
}
.cd-card__role { display: block; margin-top: 3px; font-size: 14px; line-height: 1.35; color: var(--cd-muted); }

.cd-card--lead {
  min-height: 92px; padding: 12px 28px 12px 12px; border: 0;
  background: linear-gradient(120deg, var(--cd-teal-dark) 0%, var(--cd-teal) 100%);
  box-shadow: 0 20px 36px -18px rgba(3, 95, 121, .7);
}
.cd-card--lead:hover { border-color: transparent; box-shadow: 0 24px 40px -18px rgba(3, 95, 121, .8); }
.cd-card--lead .cd-avatar {
  flex-basis: 68px; width: 68px; height: 68px; font-size: 22px;
  color: var(--cd-teal-dark); background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .25);
}
.cd-card--lead .cd-card__name { font-size: 19px; color: #fff; }
.cd-card--lead .cd-card__role { color: rgba(255, 255, 255, .85); }

/* Connector tree: vertical spine under each parent avatar, rounded elbow to each child. */
.cd-tree, .cd-tree ul { list-style: none; margin: 0; padding: 0; }
.cd-tree { margin-left: 45px; }
.cd-tree ul { margin-left: 37px; }
.cd-tree li { position: relative; padding: 18px 0 0 34px; margin: 0; }
.cd-tree li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 28px;
  height: calc(18px + var(--cd-card-h) / 2);
  border-left: 2px solid var(--cd-line); border-bottom: 2px solid var(--cd-line);
  border-bottom-left-radius: 14px;
}
.cd-tree li:not(:last-child)::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  border-left: 2px solid var(--cd-line);
}
.cd-tree li > .cd-card { position: relative; z-index: 1; }

/* Peer link between the two directors. */
.cd-branch:first-child { z-index: 2; }
.cd-branch:first-child::after {
  content: ""; position: absolute; top: 72px; left: calc(100% - 28px); width: calc(32px + 56px); height: 4px;
  border-radius: 4px; background: linear-gradient(90deg, var(--cd-teal-dark), var(--cd-teal));
}

@media (max-width: 991px) {
  .cd-org__grid { grid-template-columns: 1fr; max-width: 560px; }
  .cd-branch:first-child::after { top: 100%; left: 72px; width: 4px; height: calc(32px + 28px); }
}
@media (max-width: 480px) {
  .cd-org { --cd-card-h: 68px; }
  .cd-branch { padding: 22px 14px 26px; border-radius: 22px; }
  .cd-card { gap: 12px; padding-right: 16px; }
  .cd-avatar { flex-basis: 48px; width: 48px; height: 48px; font-size: 16px; }
  .cd-card--lead .cd-avatar { flex-basis: 56px; width: 56px; height: 56px; font-size: 19px; }
  .cd-card__name { font-size: 14px; }
  .cd-card--lead .cd-card__name { font-size: 16px; }
  .cd-card__role { font-size: 13px; }
  .cd-tree { margin-left: 39px; }
  .cd-tree ul { margin-left: 33px; }
  .cd-tree li { padding-left: 22px; }
  .cd-tree li::before { width: 18px; }
  .cd-tree ul li { padding-left: 16px; }
  .cd-tree ul li::before { width: 12px; }
  .cd-branch:first-child::after { left: 48px; height: calc(32px + 22px); }
  .cd-branch { padding-left: 10px; padding-right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .cd-card { transition: none; }
  .cd-card:hover { transform: none; }
}

/* Team page banner (overrides the global Redux page-title image on this page only). */
body.page-id-28 .site #pagetitle.page-title {
  background-image: url("team-banner.jpg");
  background-size: cover;
  background-position: right center;
}
body.page-id-28 #pagetitle .page-title, body.page-id-28 #pagetitle h1 { text-shadow: 0 2px 18px rgba(3, 40, 55, .55); }
@media (max-width: 767px) {
  body.page-id-28 .site #pagetitle.page-title { background-position: 90% center; }
}
