/* The Parish Trust — Our People
   Marker: TPT_PEOPLE_ELEMENTOR_V1_20261109 */

:root {
  --tptp-navy: #133256;
  --tptp-slate: #3D5979;
  --tptp-gold: #F8B133;
  --tptp-cream: #F7F3EA;
  --tptp-ink: #0F2438;
  --tptp-line: rgba(19, 50, 86, .10);
}

.tptp {
  --tptp-navy: #133256;
  --tptp-slate: #3D5979;
  --tptp-gold: #F8B133;
  --tptp-cream: #F7F3EA;
  --tptp-ink: #0F2438;
  --tptp-line: rgba(19, 50, 86, .10);
  font-family: Nunito, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--tptp-navy);
}
.tptp *,
.tptp *::before,
.tptp *::after { box-sizing: border-box; }
.tptp h2,
.tptp h3,
.tptp h4 { font-family: Raleway, Nunito, sans-serif; color: var(--tptp-navy); }

/* ---------------------------------------------------------------- headers */

.tptp-head { max-width: 760px; margin: 0 auto 2.6rem; text-align: center; }
.tptp-head--left { text-align: left; margin-left: 0; }
.tptp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .38rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 177, 51, .45);
  background: rgba(248, 177, 51, .14);
  color: #9a6400;
  font-family: Raleway, Nunito, sans-serif;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.tptp-title {
  margin: .7rem 0 .7rem;
  font-size: clamp(2.05rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.02em;
}
.tptp-title--sm { font-size: clamp(1.7rem, 3vw, 2.35rem); }
.tptp-intro { margin: 0; font-size: 1.05rem; line-height: 1.7; color: #55708a; }

/* -------------------------------------------------------------- departments */

.tptp-depts { display: grid; gap: 2.8rem; }
.tptp-dept-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.15rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--tptp-line);
}
.tptp-dept-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tptp-slate);
}
.tptp-dept-head h3::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: .6rem;
  border-radius: 3px;
  background: var(--tptp-gold);
  transform: translateY(-1px);
}
.tptp-count {
  margin-left: auto;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8aa0b5;
  white-space: nowrap;
}

/* ------------------------------------------------------------------- grid */

.tptp-grid { display: grid; gap: 16px; }
.tptp-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tptp-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tptp-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ------------------------------------------------------------------ cards */

.tptp-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--tptp-line);
  border-radius: 20px;
  box-shadow: 0 10px 26px rgba(19, 50, 86, .06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tptp-card:hover {
  transform: translateY(-4px);
  border-color: rgba(248, 177, 51, .55);
  box-shadow: 0 20px 44px rgba(19, 50, 86, .14);
}
.tptp-card h4 { margin: 0; font-size: 1.05rem; font-weight: 800; line-height: 1.25; }
.tptp-role { margin: .28rem 0 0; font-size: .9rem; font-weight: 700; color: var(--tptp-slate); line-height: 1.35; }
.tptp-extra { margin: .3rem 0 0; font-size: .8rem; color: #7d93a7; }
.tptp-mail {
  display: inline-block;
  margin-top: .5rem;
  font-size: .78rem;
  font-weight: 700;
  color: #2a5f91;
  text-decoration: none;
  word-break: break-word;
}
.tptp-mail:hover { text-decoration: underline; }

.tptp-avatar {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #133256, #3D5979);
  color: #fff;
  font-family: Raleway, Nunito, sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: .02em;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(248, 177, 51, .55);
}
.tptp-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tptp-avatar--vacant {
  background: #fff;
  color: #9fb2c3;
  border: 2px dashed #c7d5e2;
  box-shadow: none;
  font-size: 1.7rem;
  line-height: 1;
}
.tptp-card--vacant { border-style: dashed; background: linear-gradient(180deg, #fff, #fbfdff); }
.tptp-card--vacant:hover { border-color: rgba(61, 89, 121, .45); }

/* ------------------------------------------------------------ org chart link */

.tptp-org-link-row { margin-top: 2.6rem; text-align: center; }
.tptp-org-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.35rem;
  border-radius: 999px;
  background: var(--tptp-navy);
  color: #fff;
  font-family: Raleway, Nunito, sans-serif;
  font-size: .95rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(19, 50, 86, .18);
  transition: transform .2s ease, background .2s ease;
}
.tptp-org-link:hover { background: var(--tptp-slate); color: #fff !important; transform: translateY(-2px); }
.tptp-org-link span { color: #fff !important; }
.tptp-org-link span:last-child { transition: transform .2s ease; }
.tptp-org-link:hover span:last-child { transform: translateX(3px); }

/* ---------------------------------------------------------------- trustees */

.tptp-trustees {
  position: relative;
  overflow: hidden;
  margin-top: 4rem;
  padding: clamp(1.6rem, 4vw, 3rem);
  border-radius: 30px;
  background: linear-gradient(135deg, #133256 0%, #1d4468 100%);
  box-shadow: 0 30px 70px rgba(19, 50, 86, .22);
}
.tptp-trustees::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 177, 51, .25), transparent 68%);
  pointer-events: none;
}
.tptp-trustees > * { position: relative; }
.tptp-trustees .tptp-head { margin-bottom: 2rem; }
.tptp-trustees .tptp-title { color: #fff; }
.tptp-trustees .tptp-intro { color: #c9d9e8; }
.tptp-trustees .tptp-eyebrow {
  color: #ffd27a;
  background: rgba(248, 177, 51, .16);
  border-color: rgba(248, 177, 51, .45);
}
.tptp-trustee {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
  transition: transform .2s ease, background .2s ease;
}
.tptp-trustee:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .10); }
.tptp-trustee h4 { margin: 0; color: #fff; font-size: 1rem; line-height: 1.25; }
.tptp-trustee p { margin: .25rem 0 0; color: #c9d9e8; font-size: .84rem; font-weight: 700; }
.tptp-trustee-mark {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--tptp-gold), #f6c66a);
  color: #133256;
  font-family: Raleway, Nunito, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}
.tptp-trustee-mark--photo { padding: 0; overflow: hidden; background: #eef4f9; }
.tptp-trustee-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------------ empty */

.tptp-empty {
  padding: 2rem;
  border-radius: 20px;
  border: 1px dashed #c7d5e2;
  background: #fff;
  text-align: center;
  color: #55708a;
}
.tptp-empty a { color: #2a5f91 !important; font-weight: 800; }

/* ------------------------------------------------- responsive adjustments */

@media (max-width: 1024px) {
  .tptp-cols-3,
  .tptp-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tptp-cols-2,
  .tptp-cols-3,
  .tptp-cols-4 { grid-template-columns: 1fr; }
  .tptp-card { padding: 16px; }
  .tptp-avatar { flex-basis: 56px; width: 56px; height: 56px; font-size: 1rem; }
  .tptp-dept-head { flex-wrap: wrap; }
  .tptp-count { margin-left: 0; }
}

/* ======================================================================
   Our People page sections (used by the Elementor page 59766)
   ====================================================================== */

/* Hero ------------------------------------------------------------------ */
.tptp-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 82% 18%, rgba(248, 177, 51, .20), transparent 62%),
    linear-gradient(135deg, #0b1d31 0%, #133256 48%, #1c4469 100%) !important;
}
.tptp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .22;
  pointer-events: none;
}
.tptp-hero .elementor-container { position: relative; z-index: 1; }
.tptp-hero .tptp-hero-title .elementor-heading-title { color: #fff !important; }
.tptp-hero .tptp-hero-eyebrow .elementor-heading-title { color: #F8B133 !important; }
.tptp-hero .tptp-hero-note .elementor-widget-container { color: #8FB0CC !important; }
.tptp-hero .tptp-hero-copy .elementor-widget-container { color: #cfe0f0 !important; }
.tptp-hero .tptp-hero-copy p { color: #cfe0f0 !important; }

.tptp-photo .elementor-widget-container {
  position: relative;
  padding: 12px;
  border-radius: 30px;
}
.tptp-photo .elementor-widget-container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;
  border: 1px solid rgba(248, 177, 51, .5);
  transform: rotate(1.4deg);
  pointer-events: none;
}
.tptp-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .38);
}
.tptp-photo .elementor-image-caption,
.tptp-photo figcaption {
  margin: .75rem 0 0;
  color: #9fb8cf;
  font-size: .78rem;
  text-align: center;
}

/* Hero button tweaks ---------------------------------------------------- */
.tptp-hero .elementor-button {
  font-family: Raleway, Nunito, sans-serif;
  font-weight: 800;
  letter-spacing: .01em;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.tptp-hero .elementor-button:hover { transform: translateY(-2px); }

/* Stats ----------------------------------------------------------------- */
.tptp-stats { background: #fff; }
.tptp-stat-number .elementor-heading-title {
  font-family: Raleway, Nunito, sans-serif !important;
  font-weight: 800 !important;
  color: #133256 !important;
  line-height: 1 !important;
}
.tptp-stat-label .elementor-heading-title {
  font-family: Nunito, sans-serif !important;
  font-weight: 800 !important;
  color: #6b8299 !important;
  letter-spacing: .16em !important;
  text-transform: uppercase;
}
.tptp-stat-label .elementor-widget-container { margin-top: -4px; }
.tptp-stat .elementor-counter-number-wrapper {
  font-family: Raleway, Nunito, sans-serif;
  font-weight: 800;
  color: var(--tptp-navy);
}
.tptp-stat .elementor-counter-title {
  color: #6b8299;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Values ---------------------------------------------------------------- */
.tptp-values { background: linear-gradient(180deg, #F7F3EA 0%, #FBF8F2 100%); }
.tptp-value .elementor-widget-container {
  height: 100%;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: #fff;
  border: 1px solid rgba(19, 50, 86, .08);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(19, 50, 86, .07);
  transition: transform .25s ease, box-shadow .25s ease;
}
.tptp-value .elementor-widget-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(19, 50, 86, .13);
}
.tptp-value .elementor-icon-box-title { margin-bottom: .5rem; }
.tptp-value .elementor-icon-box-description { color: #55708a; line-height: 1.65; }

/* Team band ------------------------------------------------------------- */
.tptp-team-band { background: linear-gradient(180deg, #F7F3EA 0%, #FBF8F2 100%); }

/* CTA ------------------------------------------------------------------- */
.tptp-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #133256 0%, #1d4468 100%) !important;
}
.tptp-cta::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 177, 51, .28), transparent 68%);
  pointer-events: none;
}
.tptp-cta .elementor-container { position: relative; z-index: 1; }
.tptp-cta .elementor-heading-title { color: #fff; }
.tptp-cta .elementor-widget-text-editor,
.tptp-cta .elementor-widget-text-editor p { color: #cfe0f0; }
.tptp-cta .elementor-button { font-family: Raleway, Nunito, sans-serif; font-weight: 800; }
.tptp-cta .elementor-button:hover { transform: translateY(-2px); }

.tptp-hero-note .elementor-widget-container {
  color: #8FB0CC;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.tptp-cta-actions { margin-left: auto; margin-right: auto; }
.tptp-value-heading { margin-bottom: .6rem; }

@media (prefers-reduced-motion: reduce) {
  .tptp-card,
  .tptp-trustee,
  .tptp-value .elementor-widget-container,
  .tptp-org-link,
  .tptp-hero .elementor-button { transition: none; }
}

/* ======================================================================
   Interactive organisation chart + profile modal
   ====================================================================== */

.tptp-org-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}
.tptp-seg {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--tptp-line);
  box-shadow: 0 6px 16px rgba(19, 50, 86, .05);
}
.tptp-seg button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: .55rem 1rem;
  font-family: Raleway, Nunito, sans-serif;
  font-weight: 800;
  font-size: .82rem;
  color: #55708a;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.tptp-seg button.is-active { background: #133256; color: #fff; }
.tptp-org-actions { display: flex; gap: 8px; }
.tptp-org-actions button {
  border: 1px solid var(--tptp-line);
  background: #fff;
  border-radius: 999px;
  padding: .5rem .8rem;
  font-family: Nunito, sans-serif;
  font-weight: 800;
  font-size: .75rem;
  color: #133256;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.tptp-org-actions button:hover { background: #F7F3EA; border-color: rgba(248, 177, 51, .5); }
.tptp-org-hint { margin: 0 0 1.1rem; text-align: center; color: #7d93a7; font-size: .82rem; }
.tptp-org-hint strong { color: #133256; }

.tptp-tree-scroll {
  overflow-x: auto;
  padding: 6px 4px 1.2rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.tptp-tree,
.tptp-tree ul { list-style: none; margin: 0; padding: 0; }
.tptp-tree {
  display: flex;
  justify-content: center;
  min-width: max-content;
  padding-top: 4px;
}
.tptp-tree ul {
  display: flex;
  justify-content: center;
  position: relative;
  padding-top: 34px;
}
.tptp-tree li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 3px 0;
}
.tptp-tree > li { padding-top: 0; }
.tptp-tree li::before,
.tptp-tree li::after {
  content: "";
  position: absolute;
  top: 0;
  right: 50%;
  width: 50%;
  height: 34px;
  border-top: 2px solid rgba(19, 50, 86, .16);
}
.tptp-tree li::after { right: auto; left: 50%; border-left: 2px solid rgba(19, 50, 86, .16); }
.tptp-tree li:only-child::before,
.tptp-tree li:only-child::after { display: none; }
.tptp-tree li:only-child { padding-top: 0; }
.tptp-tree li:first-child::before,
.tptp-tree li:last-child::after { border: 0 none; }
.tptp-tree li:last-child::before { border-right: 2px solid rgba(19, 50, 86, .16); border-radius: 0 8px 0 0; }
.tptp-tree li:first-child::after { border-radius: 8px 0 0 0; }
.tptp-tree ul::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 34px;
  border-left: 2px solid rgba(19, 50, 86, .16);
}
.tptp-tree-node.is-collapsed > .tptp-tree-children { display: none; }

.tptp-node { display: flex; flex-direction: column; align-items: center; }
.tptp-node-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 142px;
  max-width: 152px;
  padding: 11px 8px;
  min-height: 150px;
  background: #fff !important;
  color: #133256 !important;
  border: 1px solid var(--tptp-line) !important;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(19, 50, 86, .07);
  text-align: center;
  cursor: pointer;
  font: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tptp-node-card:hover {
  transform: translateY(-3px);
  border-color: rgba(248, 177, 51, .6);
  box-shadow: 0 16px 34px rgba(19, 50, 86, .14);
}
.tptp-node-card.is-vacant { border-style: dashed !important; background: #fbfdff !important; }
.tptp-node-avatar {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #133256, #3D5979);
  color: #fff;
  font-family: Raleway, Nunito, sans-serif;
  font-weight: 800;
  font-size: .85rem;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(248, 177, 51, .5);
}
.tptp-node-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tptp-node-body { display: flex; flex-direction: column; align-items: center; min-width: 0; width: 100%; }
.tptp-node-body strong {
  font-family: Raleway, Nunito, sans-serif;
  font-size: .84rem;
  font-weight: 800;
  color: #133256 !important;
  line-height: 1.18;
  max-width: 100%;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  text-align: center;
}
.tptp-node-role {
  display: block;
  margin-top: .18rem;
  font-size: .68rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal !important;
  max-width: 100%;
  font-weight: 700;
  line-height: 1.3;
  color: #3D5979;
}
.tptp-node-body em {
  display: block;
  margin-top: .28rem;
  font-style: normal;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8aa0b5;
  white-space: normal !important;
  max-width: 100%;
}
.tptp-node-extra {
  position: absolute;
  top: -7px;
  right: -7px;
  padding: .12rem .4rem;
  border-radius: 999px;
  background: var(--tptp-gold);
  color: #133256;
  font-size: .65rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
}
.tptp-node-toggle {
  z-index: 2;
  width: 26px;
  height: 26px;
  margin-top: -12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(19, 50, 86, .18);
  border-radius: 50%;
  background: #fff;
  color: #133256;
  font-weight: 800;
  font-size: .9rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(19, 50, 86, .12);
  transition: background .2s ease, color .2s ease;
}
.tptp-node-toggle:hover { background: #133256; color: #fff; }

/* Profile modal */
.tptp-modal { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 1rem; }
.tptp-modal[hidden] { display: none; }
.tptp-modal-backdrop { position: absolute; inset: 0; background: rgba(9, 22, 38, .62); backdrop-filter: blur(3px); }
.tptp-modal-box {
  position: relative;
  width: min(540px, 100%);
  max-height: 86vh;
  overflow: auto;
  padding: 1.6rem;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.tptp-modal-close {
  position: absolute;
  top: .9rem;
  right: .9rem;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #eef4f9;
  color: #133256;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.tptp-modal-close:hover { background: #dde9f3; }
.tptp-modal-head { display: flex; gap: 1rem; align-items: flex-start; padding-right: 2rem; }
.tptp-modal-avatar {
  flex: 0 0 84px;
  width: 84px;
  height: 84px;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #133256, #3D5979);
  color: #fff;
  font-family: Raleway, Nunito, sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
}
.tptp-modal-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tptp-modal-box h3 { margin: 0; font-family: Raleway, Nunito, sans-serif; font-size: 1.35rem; color: #133256; }
.tptp-modal-role { margin: .2rem 0 0; color: #3D5979; font-weight: 700; font-size: .9rem; }
.tptp-modal-dept { margin: .15rem 0 0; color: #8aa0b5; font-weight: 800; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.tptp-modal-bio { margin: 1rem 0 0; color: #55708a; line-height: 1.6; font-size: .95rem; }
.tptp-modal-bio[hidden] { display: none; }
.tptp-modal-contact { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid #edf3f8; display: flex; flex-direction: column; gap: .35rem; }
.tptp-modal-contact a { color: #2a5f91; font-weight: 800; text-decoration: none; word-break: break-word; }
.tptp-modal-contact a:hover { text-decoration: underline; }
body.tptp-modal-open { overflow: hidden; }

/* Vertical tree for small screens */
.tptp-vtree-wrap { display: none; }
@media (max-width: 700px) {
  .tptp-tree-scroll { display: none; }
  .tptp-vtree-wrap { display: block; }
  .tptp-vtree, .tptp-vtree ul { list-style: none; margin: 0; padding: 0; }
  .tptp-vtree > .tptp-vtree-node + .tptp-vtree-node { margin-top: 12px; }
  .tptp-vtree .tptp-vtree-children {
    display: grid;
    gap: 10px;
    margin: 10px 0 0 18px;
    padding-left: 14px;
    border-left: 2px solid rgba(19, 50, 86, .14);
  }
  .tptp-vtree-node.is-collapsed > .tptp-vtree-children { display: none; }
  .tptp-vtree .tptp-node { position: relative; width: 100%; flex-direction: row; align-items: center; gap: 8px; }
  .tptp-vtree .tptp-node-card {
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    min-width: 0;
    max-width: none;
    min-height: 0;
    width: 100%;
    padding: 10px 44px 10px 11px;
    gap: 10px;
    text-align: left;
  }
  .tptp-vtree .tptp-node-avatar { flex: 0 0 44px; width: 44px; height: 44px; font-size: .78rem; }
  .tptp-vtree .tptp-node-body { align-items: flex-start; width: auto; flex: 1 1 auto; }
  .tptp-vtree .tptp-node-body strong { text-align: left; font-size: .86rem; }
  .tptp-vtree .tptp-node-role { text-align: left; font-size: .68rem; }
  .tptp-vtree .tptp-node-body em { text-align: left; }
  .tptp-vtree .tptp-node-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); margin: 0; }
}

/* ======================================================================
   Teams view — large pictures, direct reports, interactive profiles
   Marker: TPT_PEOPLE_TEAMS_VIEW_V1_20261109
   ====================================================================== */

.tptp-teams { width: 100%; }
.tptp-teams-overview { display: grid; gap: 2.8rem; }
.tptp-ceo { width: 100%; }

.tptp-person {
  display: flex !important;
  flex-direction: column !important;
  width: 100%;
  padding: 0 !important;
  background: #fff !important;
  border: 1px solid var(--tptp-line) !important;
  border-radius: 22px !important;
  overflow: hidden;
  text-align: left !important;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 12px 30px rgba(19, 50, 86, .07);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.tptp-person:hover {
  transform: translateY(-5px);
  border-color: rgba(248, 177, 51, .65);
  box-shadow: 0 24px 50px rgba(19, 50, 86, .16);
}
.tptp-person-photo {
  position: relative;
  display: block !important;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(135deg, #133256, #3D5979);
}
.tptp-person-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.tptp-person:hover .tptp-person-photo img { transform: scale(1.05); }
.tptp-person-initials {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 120px;
  color: #fff;
  font-family: Raleway, Nunito, sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: .03em;
}
.tptp-person-badge {
  position: absolute;
  top: .7rem;
  left: .7rem;
  padding: .22rem .55rem;
  border-radius: 999px;
  background: var(--tptp-gold);
  color: #133256;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tptp-person-body {
  display: flex !important;
  flex-direction: column !important;
  gap: .22rem;
  padding: 1rem 1.05rem 1.15rem;
}
.tptp-person-body strong {
  font-family: Raleway, Nunito, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  color: #133256;
}
.tptp-person-role {
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.3;
  color: #3D5979;
}
.tptp-person-reports {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .35rem;
  font-size: .72rem;
  font-weight: 800;
  color: #9a6400;
}
.tptp-person-reports-icon { flex: 0 0 auto; opacity: .9; }
.tptp-person.is-vacant { border-style: dashed; background: #fbfdff; }
.tptp-person.is-vacant .tptp-person-initials { color: #9fb2c3; }

.tptp-people-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 1100px) {
  .tptp-people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .tptp-people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 420px) {
  .tptp-people-grid { grid-template-columns: 1fr; }
}

.tptp-group-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--tptp-line);
}
.tptp-group-head h3 {
  margin: 0;
  font-family: Raleway, Nunito, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tptp-slate);
}
.tptp-group-head h3::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: .6rem;
  border-radius: 3px;
  background: var(--tptp-gold);
  transform: translateY(-1px);
}
.tptp-group-head > span {
  margin-left: auto;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8aa0b5;
  white-space: nowrap;
}

/* Featured leadership card */
.tptp-person--feature {
  display: grid !important;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr) !important;
  align-items: stretch;
  gap: 0;
  border-color: rgba(248, 177, 51, .45);
  background: linear-gradient(135deg, #fff 0%, #fbf6ea 100%);
  box-shadow: 0 24px 60px rgba(19, 50, 86, .12);
}
.tptp-person--feature .tptp-person-photo {
  aspect-ratio: auto;
  height: 100%;
  min-height: 320px;
}
.tptp-person--feature .tptp-person-photo img { height: 100%; }
.tptp-person--feature .tptp-person-body {
  justify-content: center;
  gap: .45rem;
  padding: clamp(1.4rem, 3vw, 2.4rem);
}
.tptp-person--feature .tptp-eyebrow { align-self: flex-start; }
.tptp-person--feature .tptp-person-body strong {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.05;
}
.tptp-person--feature .tptp-person-role { font-size: 1rem; }
.tptp-person-bio {
  display: block;
  margin-top: .5rem;
  max-width: 60ch;
  font-size: .95rem;
  line-height: 1.6;
  color: #55708a;
}
.tptp-person-cta {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: .8rem;
  font-family: Raleway, Nunito, sans-serif;
  font-weight: 800;
  font-size: .9rem;
  color: #133256;
}
.tptp-person--feature:hover .tptp-person-cta { color: #9a6400; }
@media (max-width: 760px) {
  .tptp-person--feature { grid-template-columns: 1fr !important; }
  .tptp-person--feature .tptp-person-photo {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 3;
  }
  .tptp-person--feature .tptp-person-body { text-align: center; align-items: center; }
  .tptp-person--feature .tptp-eyebrow { align-self: center; }
  .tptp-person-bio { text-align: center; }
}

/* Profile and direct reports */
.tptp-profile { display: block; }
.tptp-profile[hidden] { display: none; }
.tptp-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: 1.2rem;
  padding: .55rem .9rem;
  border: 1px solid var(--tptp-line);
  border-radius: 999px;
  background: #fff;
  color: #133256;
  font-family: Raleway, Nunito, sans-serif;
  font-weight: 800;
  font-size: .82rem;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.tptp-back:hover { background: #F7F3EA; border-color: rgba(248, 177, 51, .55); }
.tptp-profile-card {
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2.2rem);
  align-items: start;
  padding: clamp(1.2rem, 3vw, 2rem);
  background: #fff;
  border: 1px solid var(--tptp-line);
  border-radius: 26px;
  box-shadow: 0 20px 50px rgba(19, 50, 86, .10);
}
.tptp-profile-photo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, #133256, #3D5979);
}
.tptp-profile-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tptp-profile-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .3rem;
}
.tptp-profile-info h2 {
  margin: .3rem 0 0;
  font-family: Raleway, Nunito, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.05;
  color: #133256;
}
.tptp-profile-role {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #3D5979;
}
.tptp-profile-manager {
  margin: .35rem 0 0;
  font-size: .86rem;
  color: #6b8299;
}
.tptp-linkish {
  border: 0;
  background: transparent;
  padding: 0;
  color: #2a5f91;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: .15em;
}
.tptp-profile-bio {
  margin: .7rem 0 0;
  font-size: .95rem;
  line-height: 1.65;
  color: #55708a;
}
.tptp-profile-email {
  margin-top: .7rem;
  font-size: .85rem;
  font-weight: 800;
  color: #2a5f91;
  text-decoration: none;
  word-break: break-word;
}
.tptp-profile-email:hover { text-decoration: underline; }
.tptp-profile-team { margin-top: 2.4rem; }
.tptp-profile-empty { margin: 0; color: #7d93a7; }
@media (max-width: 760px) {
  .tptp-profile-card { grid-template-columns: 1fr; }
  .tptp-profile-photo { max-width: 320px; margin: 0 auto; }
  .tptp-profile-info { align-items: center; text-align: center; }
}

/* Keep card copy wrapping inside the button element */
.tptp-person-body strong,
.tptp-person-role,
.tptp-person-bio,
.tptp-person-cta {
  white-space: normal !important;
  overflow-wrap: anywhere;
}
.tptp-person--feature .tptp-person-bio {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Profile links must never inherit the theme button chrome */
.tptp-linkish {
  display: inline !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  color: #2a5f91 !important;
  font: inherit !important;
  font-weight: 800 !important;
  text-decoration: underline !important;
  text-underline-offset: .15em;
  box-shadow: none !important;
  text-transform: none !important;
}
.tptp-profile-photo img,
.tptp-person-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
