:root {
  --black: #070707;
  --black-2: #101010;
  --gold: #d8a92e;
  --gold-light: #f3d878;
  --white: #fff;
  --muted: #cfcfcf;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  color: var(--white);
  background:
    linear-gradient(rgba(5, 5, 5, 0.58), rgba(5, 5, 5, 0.72)),
    url("../../../assets/areas/central/central-bg.png") center / cover fixed;
  background-color: #050505;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}
body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  inset: 0;
  opacity: 1;
  pointer-events: none;
  position: fixed;
}
.page {
  padding: 30px clamp(18px, 4vw, 70px) 70px;
  position: relative;
}
.back-button {
  align-items: center;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(243, 216, 120, 0.75);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  gap: 10px;
  letter-spacing: 0.02em;
  padding: 11px 18px 11px 13px;
  transition: 0.25s ease;
  backdrop-filter: blur(8px);
}
.back-button:hover {
  background: rgba(216, 169, 46, 0.13);
  border-color: var(--gold-light);
  transform: translateX(-2px);
}
.back-icon {
  align-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-light);
  display: grid;
  font-size: 19px;
  height: 30px;
  justify-content: center;
  line-height: 1;
  transform: translateY(1px);
  width: 30px;
}
.hero {
  align-items: center;
  display: grid;
  gap: clamp(35px, 6vw, 100px);
  grid-template-columns: 1fr;
  margin: 38px auto 0;
  max-width: 1400px;
  min-height: 440px;
  text-align: center;
}
.hero > div:first-child {
  align-self: center;
  margin: 0 auto;
  max-width: 760px;
}
.eyebrow {
  justify-content: center;
}
.hero-subtitle {
  margin-left: auto;
  margin-right: auto;
}
.eyebrow {
  align-items: center;
  color: var(--gold-light);
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 15px;
  letter-spacing: 0.3em;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.eyebrow::before {
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  content: "";
  height: 2px;
  width: 48px;
}
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 76px);
  font-weight: 400;
  line-height: 0.98;
}
.hero h1 span {
  color: var(--gold-light);
}
.hero-subtitle {
  color: #d8d8d8;
  font-size: 16px;
  line-height: 1.75;
  margin-top: 25px;
  max-width: 580px;
}
.am-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.015)
  );
  border: 1px solid rgba(243, 216, 120, 0.9);
  border-radius: 26px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55);
  display: grid;
  gap: clamp(30px, 4vw, 52px);
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  justify-self: center;
  max-width: 1320px;
  overflow: hidden;
  padding: 30px clamp(28px, 3.5vw, 48px);
  position: relative;
  width: 100%;
}
.am-card::before {
  background: var(--gold);
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: 5px;
}
.am-info {
  min-width: 0;
  padding: 0;
  text-align: left;
}
.am-photo-wrap {
  align-self: center;
  aspect-ratio: 3 / 4;
  height: auto;
  min-height: 0;
  overflow: hidden;
  position: relative;
}
.am-photo {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}
.am-photo-wrap {
  min-width: 0;
}
.am-name-row {
  align-items: center;
  display: flex;
  gap: 16px;
}
.am-role,
.bm-role {
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.27em;
  text-transform: uppercase;
}
.am-name,
.bm-name {
  font-family: Georgia, "Times New Roman", serif;
}
.am-name {
  color: var(--white);
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.15;
  margin: 12px 0 15px;
}
.am-credentials {
  color: #bdbdbd;
  font-size: 12px;
  line-height: 1.7;
  margin-top: 5px;
}
.logo-slot,
.bm-logo {
  align-items: center;
  display: flex;
  justify-content: center;
  margin: 0;
  padding-top: 0;
}
.logo-slot {
  flex: 0 0 62px;
  height: 42px;
  width: 62px;
}
.logo-slot img {
  max-height: 36px;
  max-width: 62px;
  object-fit: contain;
}
.am-profile {
  border-top: 1px solid rgba(216, 169, 46, 0.35);
  display: grid;
  gap: 22px 30px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
  padding: 28px 12px 0;
  text-align: left;
}
.am-profile-group {
  border-top: 2px solid var(--gold);
  padding-top: 10px;
}
.am-profile-group h3 {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 12px;
}
.am-profile-group h4 {
  color: var(--white);
  font-size: 10px;
  letter-spacing: 0.13em;
  margin: 14px 0 7px;
  text-transform: uppercase;
}
.am-profile-group p,
.am-profile-group li {
  color: #c3c3c3;
  font-size: 12px;
  line-height: 1.65;
}
.am-profile-group ul {
  list-style: none;
}
.am-profile-group li {
  padding-left: 14px;
  position: relative;
}
.am-profile-group li::before {
  color: var(--gold-light);
  content: "•";
  left: 0;
  position: absolute;
}
.chart-section {
  margin: 90px auto 0;
  max-width: 1400px;
}
.chart-heading {
  margin-bottom: 35px;
  text-align: center;
}
.chart-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 400;
}
.chart-heading p {
  color: #a9a9a9;
  font-size: 13px;
  letter-spacing: 0.12em;
  margin-top: 9px;
  text-transform: uppercase;
}
.org-chart {
  --bm-gap: clamp(12px, 1.5vw, 25px);
  position: relative;
}
.horizontal-connector {
  background: var(--gold-light);
  height: 2px;
  left: calc((100% - 4 * var(--bm-gap)) / 10);
  position: absolute;
  right: calc((100% - 4 * var(--bm-gap)) / 10);
  top: 0;
  z-index: 1;
}
.main-connector {
  background: linear-gradient(var(--gold-light), var(--gold));
  height: 90px;
  left: 50%;
  position: absolute;
  top: -90px;
  transform: translateX(-50%);
  width: 2px;
}
.mobile-chart-title {
  display: none;
}
.bm-grid {
  display: grid;
  gap: var(--bm-gap);
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  padding-top: 30px;
}
.bm-branch {
  min-width: 0;
  position: relative;
  transition: padding-bottom 0.25s ease;
}
.bm-branch::before {
  background: linear-gradient(var(--gold-light), var(--gold));
  content: "";
  height: 30px;
  left: 50%;
  position: absolute;
  top: -30px;
  transform: translateX(-50%);
  width: 2px;
  z-index: 1;
}
@media (min-width: 1001px) and (max-width: 1699px) {
  .horizontal-connector {
    left: 16%;
    right: 16%;
  }
}
.bm-card {
  align-items: center;
  background: linear-gradient(
    145deg,
    rgba(40, 40, 40, 0.78),
    rgba(8, 8, 8, 0.94)
  );
  border: 1px solid rgba(226, 184, 62, 0.78);
  border-radius: 20px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.42);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: 400px;
  padding: 22px 14px 18px;
  position: relative;
  text-align: center;
  transition: 0.25s ease;
  z-index: 2;
}
.bm-branch > .bm-card {
  padding-bottom: 48px;
}
.um-card .bm-logo {
  display: none;
}
.um-card .bm-logo.has-team-logo {
  display: block;
}
.bm-card:hover {
  border-color: var(--gold-light);
  box-shadow: 0 20px 50px rgba(216, 169, 46, 0.16);
}
.avatar {
  background: #090909;
  border: 2px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(216, 169, 46, 0.18);
  height: 108px;
  padding: 5px;
  width: 108px;
}
.avatar-inner {
  align-items: center;
  background: linear-gradient(145deg, #ececec, #888);
  border-radius: 50%;
  color: #333;
  display: grid;
  font-size: 9px;
  height: 100%;
  justify-content: center;
  letter-spacing: 0.12em;
  overflow: visible;
  width: 100%;
}
.avatar-inner::before {
  content: "PHOTO";
}
.avatar > img {
  border-radius: 50%;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.bm-logo {
  height: 54px;
  margin-top: 12px;
  width: 154px;
}
.bm-logo img {
  max-height: 52px;
  max-width: 150px;
  object-fit: contain;
  height: auto;
  width: auto;
}
.crimson-sentinels-logo {
  width: 190px;
}
.crimson-sentinels-logo img {
  max-width: 180px;
  height: auto;
  width: auto;
}
.bm-name {
  align-items: center;
  color: #fff;
  display: flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  justify-content: center;
  line-height: 1.15;
  margin-top: 10px;
  min-height: 46px;
  width: 100%;
}
.bm-role {
  margin-top: 8px;
}
.bm-placeholder {
  color: #777;
  font-size: 10px;
  line-height: 1.45;
  margin-top: 14px;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
}
.bm-manager-name {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
}
.um-card > .bm-placeholder {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 700;
}
.bm-agents {
  border-top: 1px solid rgba(216, 169, 46, 0.3);
  margin-top: 14px;
  padding-top: 10px;
  width: 100%;
}
.bm-agents .agent-card {
  margin-top: 6px;
}
.team-expander {
  position: static;
  z-index: 3;
}
.team-expander summary {
  align-items: center;
  background: var(--gold);
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  color: var(--black);
  cursor: pointer;
  display: flex;
  font-size: 11px;
  height: 30px;
  justify-content: center;
  list-style: none;
  bottom: 14px;
  margin: 0 14px 0 auto;
  position: absolute;
  right: 0;
  transition: 0.25s ease;
  width: 30px;
}
.team-expander summary::-webkit-details-marker {
  display: none;
}
.expander-icon {
  display: block;
  line-height: 1;
  transition: transform 0.25s ease;
}
.team-expander[open] .expander-icon {
  transform: rotate(90deg);
}
.team-expander summary:hover,
.team-expander summary:focus-visible {
  background: rgba(216, 169, 46, 0.14);
  border-color: var(--gold-light);
  outline: none;
}
.team-expander summary:hover .expander-icon,
.team-expander summary:focus-visible .expander-icon {
  color: var(--gold-light);
}
.team-details {
  --um-gap: 18px;
  align-items: start;
  display: grid;
  gap: var(--um-gap);
  grid-template-columns: 1fr;
  left: 0;
  margin: 0;
  padding-top: 30px;
  position: absolute;
  text-align: left;
  top: calc(100% + 30px);
  opacity: 0;
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0.3s;
  visibility: hidden;
  width: 100%;
  z-index: 1;
}
.mobile-um-title {
  display: none;
}
.team-expander[open] .team-details {
  opacity: 1;
  transition-delay: 0s;
  visibility: visible;
}
.team-expander.is-closing .team-details {
  opacity: 0;
  transition-delay: 0s;
  visibility: visible;
}
.team-details:has(> .um-card + .um-card) {
  left: calc(-50% - (clamp(12px, 1.5vw, 25px) / 2));
  width: calc(200% + clamp(12px, 1.5vw, 25px));
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(200% + var(--um-gap)), calc(100vw - clamp(36px, 8vw, 140px)));
}
.team-details:has(> .um-card + .um-card) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.team-details:has(> .um-card:nth-of-type(3)) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  left: 50%;
  transform: translateX(-50%);
  width: min(
    calc(300% + (2 * var(--um-gap))),
    calc(100vw - clamp(36px, 8vw, 140px))
  );
}
.team-details:has(> .um-card:nth-of-type(4)) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  left: 50%;
  transform: translateX(-50%);
  width: min(
    calc(400% + (3 * var(--um-gap))),
    calc(100vw - clamp(36px, 8vw, 140px))
  );
}
.team-details:has(> .um-card:nth-of-type(5)) {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  left: 50%;
  transform: translateX(-50%);
  width: min(
    calc(500% + (4 * var(--um-gap))),
    calc(100vw - clamp(36px, 8vw, 140px))
  );
}
.tiger-eye-team-details > .um-card:nth-of-type(1) {
  order: 4;
}
.tiger-eye-team-details > .um-card:nth-of-type(2) {
  order: 2;
}
.tiger-eye-team-details > .um-card:nth-of-type(3) {
  order: 5;
}
.tiger-eye-team-details > .um-card:nth-of-type(4) {
  order: 3;
}
.tiger-eye-team-details > .um-card:nth-of-type(5) {
  order: 1;
}
.team-details::before {
  background: var(--gold);
  content: "";
  height: 2px;
  left: calc((100% - var(--um-gap)) / 4);
  right: calc((100% - var(--um-gap)) / 4);
  position: absolute;
  top: 0;
}
.team-details:not(:has(> .um-card + .um-card))::before {
  display: none;
}
.team-details:has(> .um-card:nth-of-type(3))::before {
  left: calc((100% - (2 * var(--um-gap))) / 6);
  right: calc((100% - (2 * var(--um-gap))) / 6);
}
.team-details:has(> .um-card:nth-of-type(4))::before {
  left: calc((100% - (3 * var(--um-gap))) / 8);
  right: calc((100% - (3 * var(--um-gap))) / 8);
}
.team-details:has(> .um-card:nth-of-type(5))::before {
  left: calc((100% - (4 * var(--um-gap))) / 10);
  right: calc((100% - (4 * var(--um-gap))) / 10);
}
.team-details::after {
  background: var(--gold);
  content: "";
  height: 30px;
  left: 50%;
  position: absolute;
  top: -30px;
  transform: translateX(-50%);
  width: 2px;
}
.team-details:has(> .um-card + .um-card)::after {
  left: 50%;
}
.team-details:has(> .um-card:nth-of-type(5)) {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(500% + (4 * var(--um-gap))), calc(100vw - 36px));
}
.um-card {
  background: linear-gradient(
    145deg,
    rgba(40, 40, 40, 0.78),
    rgba(8, 8, 8, 0.94)
  );
  border: 1px solid rgba(226, 184, 62, 0.78);
  border-radius: 20px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.42);
  height: auto;
  min-height: 0;
  min-width: 0;
  padding: 22px 14px 18px;
  position: relative;
  text-align: center;
}
.team-details > .um-card::before {
  background: linear-gradient(var(--gold), var(--gold-light));
  content: "";
  height: 30px;
  left: 50%;
  position: absolute;
  top: -30px;
  transform: translateX(-50%);
  width: 2px;
}
.um-avatar {
  align-items: center;
  background: linear-gradient(145deg, #ececec, #888);
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: #333;
  display: flex;
  font-size: 9px;
  height: 108px;
  justify-content: center;
  letter-spacing: 0.08em;
  margin: 0 auto 20px;
  width: 108px;
}
.um-card h4 {
  color: var(--gold-light);
  font-size: 16px;
  letter-spacing: 0.12em;
  line-height: 1.3;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.um-card p {
  color: #bdbdbd;
  font-size: 11px;
  line-height: 1.45;
}
.agent-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(216, 169, 46, 0.55);
  border-radius: 12px;
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding: 8px 10px;
  text-align: left;
  width: 100%;
}
.agent-card + .agent-card {
  margin-top: 6px;
}
.agent-photo {
  align-items: center;
  background: linear-gradient(145deg, #ececec, #888);
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: #333;
  display: flex;
  flex: 0 0 42px;
  font-size: 7px;
  height: 42px;
  justify-content: center;
  letter-spacing: 0.06em;
  width: 42px;
}
.agent-photo img {
  border-radius: 50%;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.agent-role {
  color: var(--gold-light);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.agent-name {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 3px;
  overflow-wrap: anywhere;
}
/* 0px-650px: mobile back-to-top button sizing. */
@media (max-width: 650px) {
  .team-details:has(> .um-card + .um-card) {
    width: 100%;
  }
  .team-details:has(> .um-card + .um-card) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.bottom-note {
  color: #7f7f7f;
  font-size: 11px;
  line-height: 1.6;
  margin: 22px auto 0;
  max-width: 760px;
  text-align: center;
}
.footer-accent {
  border-top: 1px solid rgba(216, 169, 46, 0.28);
  color: #777;
  display: flex;
  font-size: 10px;
  gap: 20px;
  justify-content: space-between;
  letter-spacing: 0.08em;
  margin: 55px auto 0;
  max-width: 1250px;
  padding-top: 22px;
  text-transform: uppercase;
  width: calc(100% - 36px);
}
.footer-accent strong {
  color: var(--gold-light);
  font-weight: 600;
}
.back-to-top {
  align-items: center;
  background: var(--gold);
  border-radius: 50%;
  bottom: 24px;
  box-shadow: 0 8px 22px rgba(3, 39, 63, 0.22);
  color: var(--black);
  display: flex;
  height: 48px;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 24px;
  text-decoration: none;
  transform: translateY(10px);
  transition:
    background 180ms ease,
    opacity 220ms ease,
    transform 220ms ease,
    visibility 220ms ease;
  visibility: hidden;
  width: 48px;
  z-index: 20;
}
.back-to-top > span:first-child {
  display: flex;
  font-size: 13px;
}
.back-to-top-label {
  display: none;
}
.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--gold-light);
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}
.back-to-top.is-visible:hover,
.back-to-top.is-visible:focus-visible {
  transform: translateY(-3px);
}
.back-to-top:hover .back-to-top-label,
.back-to-top:focus-visible .back-to-top-label {
  display: none;
}
/* 0px-650px: duplicate mobile chart/UM detail column fallback; later rules override earlier rules. */
@media (max-width: 650px) {
  .back-to-top {
    bottom: 18px;
    height: 44px;
    right: 18px;
    width: 44px;
  }
}

/* 0px-1000px: shared tablet/mobile hero, profile, BM card, and UM sizing. */
@media (max-width: 1000px) {
  body {
    background-attachment: scroll;
  }
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .eyebrow {
    justify-content: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .am-card {
    grid-template-columns: 1fr;
    max-width: 720px;
  }
  .am-profile {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .am-photo-wrap {
    height: 360px;
    min-height: 0;
    justify-self: center;
    width: min(100%, 300px);
  }
  .bm-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .bm-card {
    min-width: 0;
    padding: 14px 6px 42px;
  }
  .avatar {
    height: clamp(64px, 10vw, 88px);
    width: clamp(64px, 10vw, 88px);
  }
  .bm-logo {
    height: 42px;
    margin-top: 8px;
    width: 100%;
  }
  .bm-logo img,
  .crimson-sentinels-logo img {
    max-height: 40px;
    max-width: 100%;
  }
  .bm-name {
    font-size: clamp(12px, 1.8vw, 17px);
    min-height: 38px;
  }
  .bm-role {
    font-size: 8px;
    margin-top: 4px;
  }
  .bm-manager-name,
  .um-card > .bm-placeholder {
    font-size: clamp(12px, 1.8vw, 17px);
  }
  .team-details:has(> .um-card + .um-card),
  .team-details:has(> .um-card:nth-of-type(3)),
  .team-details:has(> .um-card:nth-of-type(4)),
  .team-details:has(> .um-card:nth-of-type(5)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100vw - 36px), 760px);
  }
  .team-details > .um-card {
    min-width: 0;
    width: 100%;
  }
  .team-expander[open] .team-details {
    position: relative;
    top: auto;
    left: auto;
    margin-top: 30px;
    padding-top: 0;
    transform: none;
    width: 100%;
    z-index: 1;
  }
  .mobile-um-title {
    color: var(--gold-light);
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 18px;
    text-align: center;
  }
}
/* 651px-1000px: tablet stacked BM branches and expanded UM cards. */
@media (min-width: 651px) and (max-width: 1000px) {
  .bm-grid {
    display: block;
    margin: auto;
    max-width: 420px;
    width: calc(100% - 48px);
  }
  .bm-grid > .bm-branch {
    display: block;
    margin-bottom: var(--bm-gap);
    width: 100%;
  }
  .bm-grid > .bm-branch > .bm-card {
    box-sizing: border-box;
    height: 300px;
    min-height: 0;
    padding-bottom: 34px;
    width: 100%;
  }
  .horizontal-connector,
  .main-connector,
  .bm-branch::before,
  .team-details::before,
  .team-details::after,
  .team-details > .um-card::before {
    display: block;
  }
  .mobile-chart-title {
    color: var(--gold-light);
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 auto 22px;
    max-width: 320px;
    text-align: center;
  }
  .mobile-um-title {
    color: var(--gold-light);
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 14px;
    text-align: center;
  }
  .team-details > .um-card {
    max-width: none;
    min-height: 0;
    padding: 18px 12px 16px;
    width: 100%;
  }
  .team-details:has(> .um-card + .um-card),
  .team-details:has(> .um-card:nth-of-type(3)),
  .team-details:has(> .um-card:nth-of-type(4)),
  .team-details:has(> .um-card:nth-of-type(5)) {
    grid-template-columns: 1fr;
    left: 0;
    transform: none;
    width: 100%;
  }
  .team-expander[open] .team-details {
    align-items: start;
    display: grid;
    grid-auto-rows: max-content;
    grid-template-columns: 1fr;
    left: 0;
    padding-top: 30px;
    position: absolute;
    row-gap: 18px;
    top: calc(100% + 30px);
    transform: none;
    width: 100%;
  }
  .team-expander[open] .um-card {
    height: auto;
    width: 100%;
  }
  .team-details > .um-card .avatar {
    height: 92px;
    width: 92px;
  }
  .team-details > .um-card .bm-name {
    font-size: 18px;
    min-height: 42px;
  }
  .team-expander[open] .team-details {
    z-index: 1;
  }
  .footer-accent {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
/* 651px-1100px landscape: duplicate tiger-eye five-column UM layout; overridden below by tablet rules. */
@media (min-width: 651px) and (max-width: 1100px) and (orientation: landscape) {
  .team-expander[open] .tiger-eye-team-details {
    grid-template-columns: repeat(5, 180px) !important;
    justify-content: center;
    justify-items: center;
    left: 50%;
    margin-left: 0;
    transform: translateX(-50%);
    width: 972px;
  }
  .team-expander[open] .tiger-eye-team-details > .mobile-um-title {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    text-align: center;
    justify-self: center;
  }
  .team-expander[open] .tiger-eye-team-details > .um-card {
    grid-row: 2 !important;
    justify-self: center;
    overflow-wrap: anywhere;
    width: 180px;
  }
}
/* 651px-1100px landscape: duplicate tiger-eye layout refinement; overrides the preceding block. */
@media (min-width: 651px) and (max-width: 1100px) and (orientation: landscape) {
  .team-expander[open] .tiger-eye-team-details {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    justify-items: center;
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100vw - 48px), 1000px);
  }
  .team-expander[open] .tiger-eye-team-details > .mobile-um-title {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    text-align: center;
  }
  .team-expander[open] .tiger-eye-team-details > .um-card {
    grid-row: 2 !important;
    justify-self: center;
    width: 100%;
  }
}
/* 1101px-1400px landscape: medium BM width and UM grid columns. */
@media (min-width: 1101px) and (max-width: 1400px) and (orientation: landscape) {
  .bm-grid {
    max-width: 560px;
    width: calc(100% - 48px);
  }
  .bm-grid > .bm-branch {
    margin-bottom: 18px;
  }
  .team-expander[open] .team-details {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    row-gap: 12px;
  }
  .team-expander[open] .team-details:has(> .um-card + .um-card) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .team-expander[open] .team-details:has(> .um-card:nth-of-type(3)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .team-expander[open] .team-details > .mobile-um-title {
    display: block !important;
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .team-expander[open] .team-details > .um-card {
    grid-row: 2;
  }
}
/* 651px-1100px portrait: two-column tiger-eye UM layout. */
@media (min-width: 651px) and (max-width: 1100px) and (orientation: portrait) {
  .team-expander[open] .tiger-eye-team-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(calc(100vw - 48px), 680px);
  }
  .team-expander[open] .tiger-eye-team-details > .mobile-um-title {
    display: block;
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    width: 100%;
  }
  .team-expander[open] .tiger-eye-team-details > .um-card {
    grid-row: auto;
  }
}
/* 651px-1400px landscape: duplicate tiger-eye five-column layout; later tablet overrides take precedence. */
@media (min-width: 651px) and (max-width: 1400px) and (orientation: landscape) {
  .team-expander[open] .tiger-eye-team-details {
    box-sizing: border-box;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    justify-items: center;
    left: 50%;
    margin-left: 0;
    transform: translateX(-50%);
    width: min(calc(100vw - 72px), 1200px);
  }
  .team-expander[open] .tiger-eye-team-details > .mobile-um-title {
    display: block;
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    text-align: center;
    width: 100%;
  }
  .team-expander[open] .tiger-eye-team-details > .um-card {
    box-sizing: border-box;
    grid-row: 2 !important;
    justify-self: center;
    max-width: none;
    min-width: 0;
    width: 100%;
  }
}
/* 1101px-1400px landscape: tiger-eye UM width override. */
@media (min-width: 1101px) and (max-width: 1400px) and (orientation: landscape) {
  .team-expander[open] .tiger-eye-team-details {
    margin-left: auto;
    margin-right: auto;
    width: min(calc(100vw - 96px), 1200px);
  }
}
/* 651px-1100px: shared tablet tiger-eye two-column layout. */
@media (min-width: 651px) and (max-width: 1100px) {
  .team-expander[open] .tiger-eye-team-details {
    box-sizing: border-box;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
    left: 50%;
    margin-left: 0;
    transform: translateX(-50%);
    width: min(calc(100vw - 48px), 680px);
  }
  .team-expander[open] .tiger-eye-team-details > .mobile-um-title {
    display: block;
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    text-align: center;
    width: 100%;
  }
  .team-expander[open] .tiger-eye-team-details > .um-card {
    box-sizing: border-box;
    grid-row: auto !important;
    justify-self: center;
    max-width: none;
    min-width: 0;
    width: 100%;
  }
}
/* 651px-1100px landscape: duplicate UM row/column placement override. */
@media (min-width: 651px) and (max-width: 1100px) and (orientation: landscape) {
  .team-expander[open] .team-details {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    row-gap: 12px;
  }
  .team-expander[open] .team-details:has(> .um-card + .um-card) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .team-expander[open] .team-details:has(> .um-card:nth-of-type(3)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .team-expander[open] .team-details > .mobile-um-title {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .team-expander[open] .team-details > .um-card {
    grid-row: 2;
  }
}
/* 651px-1400px portrait/landscape: duplicate tiger-eye grid-flow and title placement. */
@media (min-width: 651px) and (max-width: 1400px) and (orientation: portrait),
  (min-width: 651px) and (max-width: 1400px) and (orientation: landscape) {
  .team-expander[open] .tiger-eye-team-details {
    grid-auto-flow: row;
  }
  .team-expander[open] .tiger-eye-team-details > .mobile-um-title {
    grid-column: 1 / -1;
    grid-row: 1;
    order: 0;
  }
  .team-expander[open] .tiger-eye-team-details > .um-card {
    grid-row: auto;
  }
}
/* 1101px-1400px landscape: single-UM and expanded UM panel placement. */
@media (min-width: 1101px) and (max-width: 1400px) and (orientation: landscape) {
  .team-details:not(:has(> .um-card + .um-card)) {
    grid-template-columns: 1fr;
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100vw - 72px), 560px);
  }
  .team-expander[open] .team-details {
    align-items: start;
    display: grid;
    grid-auto-rows: max-content;
    gap: 12px;
    padding-top: 18px;
    row-gap: 12px;
    top: calc(100% + 18px);
  }
  .team-expander[open] .team-details > .mobile-um-title {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .team-expander[open] .team-details > .um-card {
    grid-row: 2;
  }
}
/* 651px-1100px portrait plus 1101px-1400px landscape: duplicate UM title/card row placement. */
@media (min-width: 651px) and (max-width: 1100px) and (orientation: portrait),
  (min-width: 1101px) and (max-width: 1400px) and (orientation: landscape) {
  .team-expander[open] .team-details > .mobile-um-title {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .team-expander[open] .team-details > .um-card {
    grid-row: 2;
  }
}
/* 651px-1100px portrait plus 1101px-1400px landscape: hide connector lines and use compact BM cards. */
@media (min-width: 651px) and (max-width: 1100px) and (orientation: portrait),
  (min-width: 1101px) and (max-width: 1400px) and (orientation: landscape) {
  .horizontal-connector,
  .main-connector,
  .bm-branch::before,
  .team-details::before,
  .team-details::after,
  .team-details > .um-card::before {
    display: none;
  }
  .mobile-chart-title {
    display: block;
    font-size: clamp(22px, 2.4vw, 28px);
    line-height: 1.2;
    margin: 0 auto 18px;
    max-width: 360px;
    text-align: center;
  }
  .bm-grid {
    gap: 16px;
    margin: 0 auto;
  }
  .bm-grid > .bm-branch {
    margin-bottom: 16px;
  }
  .bm-grid > .bm-branch > .bm-card {
    box-sizing: border-box;
    height: auto;
    min-height: clamp(340px, 28vw, 380px);
    padding: 20px 14px 36px;
  }
  .team-details > .mobile-um-title {
    grid-column: 1 / -1;
    margin: 0 0 12px;
    text-align: center;
    width: 100%;
  }
  .team-expander[open] .team-details {
    gap: 12px;
    left: 50%;
    padding-top: 18px;
    transform: translateX(-50%);
  }
  .team-details > .um-card {
    min-height: 0;
    width: 100%;
  }
}
/* 651px-1100px portrait: narrow BM grid and two-column UM details. */
@media (min-width: 651px) and (max-width: 1100px) and (orientation: portrait) {
  .bm-grid {
    max-width: 420px;
    width: calc(100% - 48px);
  }
  .team-details:has(> .um-card + .um-card),
  .team-details:has(> .um-card:nth-of-type(3)),
  .team-details:has(> .um-card:nth-of-type(4)),
  .team-details:has(> .um-card:nth-of-type(5)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(calc(100vw - 48px), 680px);
  }
}
/* 1101px-1400px landscape: medium BM grid and UM detail widths. */
@media (min-width: 1101px) and (max-width: 1400px) and (orientation: landscape) {
  .bm-grid {
    max-width: 560px;
    width: calc(100% - 48px);
  }
  .team-details:has(> .um-card + .um-card) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(calc(100vw - 48px), 900px);
  }
  .team-details:has(> .um-card:nth-of-type(3)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(calc(100vw - 48px), 1200px);
  }
}
/* 651px-1000px: duplicate UM card/avatar sizing from the earlier tablet block. */
@media (min-width: 651px) and (max-width: 1000px) {
  .team-details > .um-card {
    max-width: none;
    justify-self: center;
    padding: 22px 14px 18px;
  }
  .um-avatar {
    height: 108px;
    width: 108px;
  }
}
/* 651px-1400px: duplicate UM overflow and wrapping safeguards. */
/* 651px-1400px: intermediate BM grid arrangement; overlaps later 651px-1400px overrides. */
@media (min-width: 651px) and (max-width: 1400px) {
  .team-details > .um-card {
    min-width: 0;
    overflow: hidden;
  }
  .um-card .bm-name,
  .um-card > .bm-placeholder,
  .um-card .agent-name {
    overflow-wrap: anywhere;
    word-break: normal;
  }
}
/* 651px-1100px portrait plus 651px-1400px landscape: shared stacked BM and UM scaling. */
@media (min-width: 651px) and (max-width: 1100px) and (orientation: portrait),
  (min-width: 651px) and (max-width: 1400px) and (orientation: landscape) {
  .bm-grid {
    display: block;
    max-width: clamp(320px, 42vw, 560px);
    margin: 0 auto;
    width: calc(100% - 48px);
  }
  .horizontal-connector,
  .main-connector,
  .bm-branch::before,
  .team-details::before,
  .team-details::after,
  .team-details > .um-card::before {
    display: none;
  }
  .mobile-chart-title {
    color: var(--gold-light);
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(22px, 2.6vw, 28px);
    font-weight: 400;
    line-height: 1.2;
    margin: 0 auto 18px;
    max-width: 360px;
    text-align: center;
  }
  .mobile-um-title {
    color: var(--gold-light);
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 14px;
    text-align: center;
  }
  .bm-grid > .bm-branch {
    display: block;
    margin-bottom: 18px;
    width: 100%;
  }
  .bm-grid > .bm-branch > .bm-card {
    height: auto;
    min-height: clamp(340px, 28vw, 380px);
    padding: clamp(18px, 2vw, 24px) clamp(12px, 1.5vw, 18px)
      clamp(30px, 3vw, 42px);
    width: 100%;
  }
  .team-details > .um-card {
    max-width: none;
    padding: clamp(16px, 1.8vw, 22px) clamp(10px, 1.2vw, 14px)
      clamp(14px, 1.6vw, 18px);
    text-align: center;
    width: 100%;
  }
  .team-details > .um-card .avatar {
    height: clamp(86px, 8vw, 108px);
    width: clamp(86px, 8vw, 108px);
  }
  .team-details > .um-card .bm-name {
    font-size: clamp(16px, 1.8vw, 20px);
    min-height: clamp(38px, 4vw, 46px);
  }
  .bm-name {
    font-size: clamp(17px, 2vw, 20px);
  }
  .bm-manager-name,
  .um-card > .bm-placeholder {
    font-size: clamp(16px, 1.8vw, 20px);
  }
}
/* 651px-1100px portrait: final portrait BM/card dimensions. */
@media (min-width: 651px) and (max-width: 1100px) and (orientation: portrait) {
  .bm-grid {
    max-width: 420px;
    width: calc(100% - 48px);
  }
  .bm-grid > .bm-branch {
    margin-bottom: 18px;
  }
  .bm-grid > .bm-branch > .bm-card {
    height: auto;
    min-height: 360px;
    padding: 18px 14px 34px;
  }
  .mobile-chart-title {
    margin-bottom: 18px;
  }
  .team-expander[open] .team-details {
    padding-top: 18px;
    row-gap: 12px;
  }
  .team-details > .um-card {
    padding: 18px 12px 16px;
  }
  .bm-grid > .bm-branch > .bm-card .avatar,
  .team-details > .um-card .avatar {
    height: 108px;
    width: 108px;
  }
  .bm-grid > .bm-branch > .bm-card .bm-logo {
    height: 54px;
    margin-top: 12px;
    width: 154px;
  }
  .bm-grid > .bm-branch > .bm-card .bm-logo img,
  .bm-grid > .bm-branch > .bm-card .crimson-sentinels-logo img {
    max-height: 52px;
    max-width: 150px;
  }
  .bm-grid > .bm-branch > .bm-card .bm-name,
  .team-details > .um-card .bm-name {
    font-size: 20px;
    min-height: 46px;
  }
  .bm-grid > .bm-branch > .bm-card .bm-role {
    font-size: 10px;
    margin-top: 8px;
  }
  .bm-grid > .bm-branch > .bm-card .bm-manager-name,
  .team-details > .um-card > .bm-placeholder {
    font-size: 20px;
  }
}
/* 1101px-1400px landscape: final UM grid width and card placement. */
@media (min-width: 1101px) and (max-width: 1400px) and (orientation: landscape) {
  .team-details:has(> .um-card + .um-card) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100vw - 72px), 900px);
  }
  .team-details:has(> .um-card:nth-of-type(3)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100vw - 72px), 1200px);
  }
  .team-details > .mobile-um-title {
    grid-column: 1 / -1;
    width: 100%;
  }
  .team-expander[open] .team-details {
    left: 50%;
    transform: translateX(-50%);
  }
}
/* 651px-1100px portrait: final UM detail width and two-column placement. */
@media (min-width: 651px) and (max-width: 1100px) and (orientation: portrait) {
  .team-details:has(> .um-card + .um-card) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100vw - 48px), 680px);
  }
  .team-details:has(> .um-card:nth-of-type(3)),
  .team-details:has(> .um-card:nth-of-type(4)),
  .team-details:has(> .um-card:nth-of-type(5)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100vw - 48px), 680px);
  }
  .team-details > .mobile-um-title {
    grid-column: 1 / -1;
    width: 100%;
  }
  .team-expander[open] .team-details {
    left: 50%;
    transform: translateX(-50%);
  }
}
/* 0px-650px: final mobile page, BM stack, connector hiding, and UM stack. */
@media (max-width: 650px) {
  .page {
    padding-top: 20px;
  }
  .hero {
    margin-top: 28px;
  }
  .hero h1 {
    font-size: 43px;
  }
  .hero-subtitle {
    font-size: 14px;
  }
  .am-photo-wrap {
    justify-self: center;
    height: 285px;
    width: min(100%, 214px);
  }
  .am-profile {
    grid-template-columns: 1fr;
    padding-left: 0;
    padding-right: 0;
  }
  .bm-grid {
    grid-template-columns: 1fr;
    gap: var(--bm-gap);
    margin: auto;
    max-width: 350px;
  }
  .bm-card {
    height: 400px;
    min-height: 0;
    padding: 22px 14px 18px;
  }
  .avatar {
    height: 108px;
    width: 108px;
  }
  .bm-logo {
    height: 54px;
    margin-top: 12px;
    width: 154px;
  }
  .bm-logo img,
  .crimson-sentinels-logo img {
    max-height: 52px;
    max-width: 150px;
  }
  .bm-name {
    font-size: 20px;
    min-height: 46px;
  }
  .bm-role {
    font-size: 10px;
    margin-top: 8px;
  }
  .bm-manager-name,
  .um-card > .bm-placeholder {
    font-size: 20px;
  }
  .horizontal-connector,
  .main-connector,
  .bm-branch::before,
  .team-details::before,
  .team-details::after,
  .team-details > .um-card::before {
    display: none;
  }
  .mobile-chart-title {
    color: var(--gold-light);
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 auto 22px;
    max-width: 280px;
    text-align: center;
  }
  .team-details:has(> .um-card + .um-card),
  .team-details:has(> .um-card:nth-of-type(3)),
  .team-details:has(> .um-card:nth-of-type(4)),
  .team-details:has(> .um-card:nth-of-type(5)) {
    grid-template-columns: 1fr;
    left: 0;
    transform: none;
    width: 100%;
  }
  .team-expander[open] .team-details {
    align-items: start;
    grid-auto-rows: max-content;
    grid-template-columns: 1fr;
    row-gap: 18px;
  }
  .team-expander[open] .um-card {
    height: auto;
    min-height: 0;
    width: 100%;
  }
  .team-expander[open] .team-details {
    position: absolute;
    top: calc(100% + 30px);
    left: 0;
    margin-top: 0;
    padding-top: 30px;
    transform: none;
    width: 100%;
  }
  .footer-accent {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (min-width: 651px) and (max-width: 1400px) {
  .horizontal-connector,
  .main-connector,
  .bm-branch::before {
    display: none;
  }
  .mobile-chart-title {
    color: var(--gold-light);
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 400;
    line-height: 1.2;
    margin: 0 auto 28px;
    text-align: center;
  }
  .bm-grid {
    display: grid;
    gap: clamp(18px, 2.5vw, 34px);
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 0 auto;
    max-width: 1100px;
    width: min(calc(100% - 24px), 1100px);
  }
  .bm-grid > .bm-branch {
    grid-column: span 2;
    margin: 0;
    width: auto;
  }
  .bm-grid > .bm-branch:nth-child(1) {
    grid-column: 2 / span 2;
    grid-row: 2;
    order: 4;
  }
  .bm-grid > .bm-branch:nth-child(2) {
    grid-column: 1 / span 2;
    grid-row: 1;
    order: 1;
  }
  .bm-grid > .bm-branch:nth-child(3) {
    grid-column: 3 / span 2;
    grid-row: 1;
    order: 2;
  }
  .bm-grid > .bm-branch:nth-child(4) {
    grid-column: 5 / span 2;
    grid-row: 1;
    order: 3;
  }
  .bm-grid > .bm-branch:nth-child(5) {
    grid-column: 4 / span 2;
    grid-row: 2;
    order: 5;
  }
  .bm-grid > .bm-branch > .bm-card {
    height: auto;
    min-height: clamp(340px, 30vw, 400px);
    width: 100%;
  }
  .team-details::before,
  .team-details::after,
  .team-details > .um-card::before {
    display: block;
  }
  .team-expander[open] .team-details:not(.tiger-eye-team-details),
  .team-expander[open]
    .team-details:not(.tiger-eye-team-details):has(> .um-card + .um-card),
  .team-expander[open]
    .team-details:not(.tiger-eye-team-details):has(> .um-card:nth-of-type(3)),
  .team-expander[open]
    .team-details:not(.tiger-eye-team-details):has(> .um-card:nth-of-type(4)),
  .team-expander[open]
    .team-details:not(.tiger-eye-team-details):has(> .um-card:nth-of-type(5)) {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
    left: 0;
    margin: 0;
    padding-top: 24px;
    position: relative;
    row-gap: 16px;
    top: auto;
    transform: none;
    width: 100%;
  }
  .team-expander[open] .team-details > .mobile-um-title {
    grid-column: 1;
    grid-row: auto;
  }
  .team-expander[open] .team-details > .um-card {
    grid-row: auto;
    max-width: none;
    width: 100%;
  }
}

/* 0px-1400px: shared compact UM panel positioning; overrides many earlier UM rules. */
@media (max-width: 1400px) {
  .mobile-chart-title {
    display: block;
  }
  .bm-grid {
    justify-content: center;
  }
  .team-expander[open] .team-details,
  .team-expander[open] .team-details:has(> .um-card + .um-card),
  .team-expander[open] .team-details:has(> .um-card:nth-of-type(3)),
  .team-expander[open] .team-details:has(> .um-card:nth-of-type(4)),
  .team-expander[open] .team-details:has(> .um-card:nth-of-type(5)) {
    align-items: start;
    display: grid;
    left: 50%;
    margin: 0;
    padding-top: 30px;
    position: absolute;
    top: calc(100% + 30px);
    transform: translateX(-50%);
    width: min(calc(100vw - 48px), 1200px);
  }
  .team-expander[open] .team-details:has(> .um-card + .um-card) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .team-expander[open] .team-details:has(> .um-card:nth-of-type(3)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .team-expander[open] .team-details > .mobile-um-title {
    display: none;
  }
  .team-expander[open] .team-details::after {
    display: block;
    height: 30px;
    top: 0;
  }
  .team-expander[open] .team-details::before {
    display: block;
    top: 30px;
  }
  .team-expander[open] .team-details > .um-card::before {
    display: block;
    top: -30px;
  }
  .team-expander[open] .team-details > .um-card {
    padding: 14px 10px 14px;
  }
  .team-expander[open] .team-details > .um-card .avatar,
  .team-expander[open] .team-details > .um-card .um-avatar {
    height: 76px;
    width: 76px;
  }
  .team-expander[open] .team-details > .um-card .bm-name {
    font-size: 16px;
    min-height: 36px;
  }
  .team-expander[open] .team-details > .um-card > .bm-placeholder {
    font-size: 13px;
  }
  .team-expander[open] .tiger-eye-team-details::after {
    left: calc((100% - (4 * var(--um-gap))) / 10);
  }
}
/* ========================================================================== */
/* PARAGON CENTRAL RESPONSIVE STYLING                                        */
/* Pixel ranges:                                                            */
/* 1700px+ landscape = full desktop chart and five BM columns               */
/* 1400px-1699px landscape = compact desktop chart                          */
/* 1001px-1399px landscape = scaled landscape chart                         */
/* 651px-1000px = tablet layout                                               */
/* 0px-650px = mobile layout                                                  */
/* Rules below are ordered as late responsive overrides.                     */
/* ========================================================================== */

/* 1700px+ landscape: full-size connectors, five-column BM grid, BM branches, BM cards, and UM panels. */
@media (min-width: 1700px) and (orientation: landscape) {
  /* Connector geometry: keep the AM trunk, BM bus, BM drops, and UM drops aligned. */
  .org-chart {
    --bm-gap: clamp(14px, 1.8vw, 24px);
  }
  .horizontal-connector {
    left: calc((100% - (4 * var(--bm-gap))) / 10);
    right: calc((100% - (4 * var(--bm-gap))) / 10);
    top: 0;
  }
  .main-connector {
    height: 90px;
    top: -90px;
    z-index: 1;
  }
  .bm-branch::before,
  .team-details > .um-card::before {
    height: 30px;
    width: 2px;
    z-index: 1;
  }
  /* Connector elements: enable the AM trunk, BM bus, BM drops, and UM drops. */
  .horizontal-connector,
  .main-connector,
  .bm-branch::before,
  .team-details::before,
  .team-details::after,
  .team-details > .um-card::before {
    display: block;
  }
  /* BM grid element: restore five equal desktop columns. */
  .bm-grid {
    display: grid;
    gap: var(--bm-gap);
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    padding-top: 30px;
  }
  /* BM branch elements: restore normal desktop flow and ordering. */
  .bm-grid > .bm-branch {
    display: block;
    grid-column: auto;
    grid-row: auto;
    margin: 0;
    order: initial;
    width: auto;
  }
  /* BM card elements: restore the fixed desktop card height and spacing. */
  .bm-grid > .bm-branch > .bm-card {
    height: 400px;
    min-height: 0;
    padding: 22px 14px 48px;
  }
  /* UM detail elements: position expanded UM panels beneath each BM card. */
  .team-expander[open] .team-details,
  .team-expander[open] .team-details:has(> .um-card + .um-card),
  .team-expander[open] .team-details:has(> .um-card:nth-of-type(3)),
  .team-expander[open] .team-details:has(> .um-card:nth-of-type(4)),
  .team-expander[open] .team-details:has(> .um-card:nth-of-type(5)) {
    align-items: start;
    display: grid;
    left: 50%;
    padding-top: 30px;
    position: absolute;
    top: calc(100% + 30px);
    transform: translateX(-50%);
  }
  /* UM column elements: size expanded panels according to their card count. */
  .team-expander[open] .team-details:has(> .um-card + .um-card) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(calc(200% + var(--um-gap)), calc(100vw - 36px));
  }
  .team-expander[open] .team-details:has(> .um-card:nth-of-type(3)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(calc(300% + (2 * var(--um-gap))), calc(100vw - 36px));
  }
  .team-expander[open] .team-details:has(> .um-card:nth-of-type(4)) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(calc(400% + (3 * var(--um-gap))), calc(100vw - 36px));
  }
  .team-expander[open] .team-details:has(> .um-card:nth-of-type(5)) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: min(calc(500% + (4 * var(--um-gap))), calc(100vw - 36px));
  }
  /* UM card elements: keep expanded cards visible outside their BM container. */
  .team-expander[open] .team-details > .um-card {
    overflow: visible;
  }
}

/* 1401px-1699px landscape: compact desktop chart, scaled connectors, cards, and UM panels. */
@media (min-width: 1401px) and (max-width: 1699px) and (orientation: landscape) {
  .org-chart {
    --bm-gap: clamp(14px, 1.8vw, 24px);
  }
  .horizontal-connector,
  .main-connector,
  .bm-branch::before,
  .team-details::before,
  .team-details::after,
  .team-details > .um-card::before {
    display: block;
  }
  .horizontal-connector {
    height: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: min(
      calc(100% - 36px - (4 * var(--bm-gap))),
      calc(995px - (4 * var(--bm-gap)))
    );
    top: 0;
  }
  .main-connector {
    height: 90px;
    top: -90px;
    width: 2px;
  }
  .bm-branch::before,
  .team-details > .um-card::before {
    height: 30px;
    width: 2px;
  }
  .bm-grid {
    display: grid;
    gap: clamp(14px, 1.8vw, 24px);
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-inline: auto;
    max-width: 1100px;
    padding-top: 30px;
    width: min(calc(100% - 36px), 1100px);
  }
  .bm-grid > .bm-branch {
    display: block;
    grid-column: auto;
    grid-row: auto;
    margin: 0;
    order: initial;
    width: auto;
  }
  .bm-grid > .bm-branch > .bm-card {
    height: clamp(250px, 23.55vw, 400px);
    min-height: 0;
    padding: clamp(12px, 1.3vw, 22px) clamp(8px, 0.85vw, 14px)
      clamp(22px, 2.8vw, 48px);
  }
  .bm-grid > .bm-branch > .bm-card .avatar {
    height: clamp(76px, 7vw, 108px);
    width: clamp(76px, 7vw, 108px);
  }
  .bm-grid > .bm-branch > .bm-card .bm-name {
    font-size: clamp(16px, 1.25vw, 20px);
    min-height: clamp(34px, 2.8vw, 40px);
  }
  .bm-grid > .bm-branch > .bm-card .bm-manager-name {
    font-size: clamp(14px, 1vw, 25px);
  }
  .team-expander[open] .team-details,
  .team-expander[open] .team-details:has(> .um-card + .um-card),
  .team-expander[open] .team-details:has(> .um-card:nth-of-type(3)),
  .team-expander[open] .team-details:has(> .um-card:nth-of-type(4)),
  .team-expander[open] .team-details:has(> .um-card:nth-of-type(5)) {
    align-items: start;
    display: grid;
    left: 50%;
    padding-top: 30px;
    position: absolute;
    top: calc(100% + 30px);
    transform: translateX(-50%);
  }
  .team-expander[open] .team-details:has(> .um-card + .um-card) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(calc(200% + var(--um-gap)), calc(100vw - 36px));
  }
  .team-expander[open] .team-details:has(> .um-card:nth-of-type(3)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(calc(300% + (2 * var(--um-gap))), calc(100vw - 36px));
  }
  .team-expander[open] .team-details:has(> .um-card:nth-of-type(4)) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(calc(400% + (3 * var(--um-gap))), calc(100vw - 36px));
  }
  .team-expander[open] .team-details:has(> .um-card:nth-of-type(5)) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: min(calc(500% + (4 * var(--um-gap))), calc(100vw - 36px));
  }
  .team-expander[open] .team-details > .um-card {
    box-sizing: border-box;
    justify-self: stretch;
    min-width: 0;
    overflow: visible;
    padding: clamp(16px, 1.5vw, 22px) clamp(10px, 1.1vw, 14px)
      clamp(14px, 1.3vw, 18px);
    width: 100%;
  }
  .team-expander[open] .team-details > .um-card .avatar,
  .team-expander[open] .team-details > .um-card .um-avatar {
    height: clamp(76px, 7vw, 108px);
    width: clamp(76px, 7vw, 108px);
  }
  .team-expander[open] .team-details > .um-card .bm-name {
    font-size: clamp(13px, 1.18vw, 20px);
    min-height: clamp(30px, 2.7vw, 46px);
  }
  .team-expander[open] .tiger-eye-team-details {
    grid-auto-flow: row;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    width: min(calc(500% + (4 * var(--um-gap))), calc(100vw - 36px)) !important;
  }
  .team-expander[open] .tiger-eye-team-details > .um-card {
    grid-column: auto !important;
    grid-row: 1 !important;
  }
  .team-expander[open] .tiger-eye-team-details::after {
    left: 50%;
  }
}

/* All widths: hide the mobile-only UM heading element by default. */
.mobile-um-title {
  display: none !important;
}
/* 1101px-1400px landscape: UM detail grid, UM cards, and tiger-eye UM grid. */
/* 1101px-1400px landscape: final three-column UM detail and tiger-eye grid. */
@media (min-width: 1101px) and (max-width: 1400px) and (orientation: landscape) {
  .team-expander[open] .team-details:has(> .um-card + .um-card) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(calc(100vw - 72px), 1200px);
  }
  .team-expander[open] .team-details > .um-card {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
  }
  .team-expander[open] .tiger-eye-team-details {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(calc(100vw - 72px), 1200px);
  }
}
/* 651px-1100px: UM detail grid and UM card sizing. */
/* 651px-1100px: final two-column tablet UM detail grid. */
@media (min-width: 651px) and (max-width: 1100px) {
  .team-expander[open] .team-details:has(> .um-card + .um-card) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(calc(100vw - 48px), 680px);
  }
  .team-expander[open] .team-details > .um-card {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
  }
}
/* 0px-650px: UM detail grid and UM cards become one full-width column. */
/* 0px-650px: final one-column mobile UM detail grid. */
@media (max-width: 650px) {
  .team-expander[open] .team-details,
  .team-expander[open] .team-details:has(> .um-card + .um-card) {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .team-expander[open] .team-details > .um-card {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
  }
}
/* 1400px+ landscape: UM detail positioning, UM columns, cards, avatars, and names. */
/* 1400px+ landscape: large UM card scale and one-to-five-column UM grids. */
@media (min-width: 1400px) and (orientation: landscape) {
  .team-expander[open] .team-details,
  .team-expander[open] .team-details:has(> .um-card + .um-card),
  .team-expander[open] .team-details:has(> .um-card:nth-of-type(3)),
  .team-expander[open] .team-details:has(> .um-card:nth-of-type(4)),
  .team-expander[open] .team-details:has(> .um-card:nth-of-type(5)) {
    align-items: start;
    display: grid;
    left: 50%;
    padding-top: 30px;
    position: absolute;
    top: calc(100% + 30px);
    transform: translateX(-50%);
  }
  .team-expander[open] .team-details:has(> .um-card + .um-card) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(calc(200% + var(--um-gap)), calc(100vw - 36px));
  }
  .team-expander[open] .team-details:has(> .um-card:nth-of-type(3)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(calc(300% + (2 * var(--um-gap))), calc(100vw - 36px));
  }
  .team-expander[open] .team-details:has(> .um-card:nth-of-type(4)) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(calc(400% + (3 * var(--um-gap))), calc(100vw - 36px));
  }
  .team-expander[open] .team-details:has(> .um-card:nth-of-type(5)) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: min(calc(500% + (4 * var(--um-gap))), calc(100vw - 36px));
  }
  .team-expander[open] .team-details > .um-card {
    padding: 22px 14px 18px;
    width: 100%;
  }
  .team-expander[open] .team-details > .um-card .avatar,
  .team-expander[open] .team-details > .um-card .um-avatar {
    height: 108px;
    width: 108px;
  }
  .team-expander[open] .team-details > .um-card .bm-name {
    font-size: 20px;
    min-height: 46px;
  }
}
/* 1001px-1399px landscape: connectors, BM grid, BM branches, BM cards, avatars, names, and UM panels. */
/* 1001px-1399px landscape: scaled desktop connectors, BM grid, cards, and UM panels. */
@media (min-width: 1001px) and (max-width: 1399px) and (orientation: landscape) {
  .horizontal-connector,
  .main-connector,
  .bm-branch::before,
  .team-details::before,
  .team-details::after,
  .team-details > .um-card::before {
    display: block;
  }
  .bm-grid {
    display: grid;
    gap: clamp(12px, 1.5vw, 20px);
    grid-template-columns: repeat(6, minmax(0, 1fr));
    max-width: 1100px;
    width: calc(100% - 36px);
  }
  .bm-grid > .bm-branch {
    display: block;
    margin: 0;
    width: auto;
  }
  .bm-grid > .bm-branch:nth-child(1) {
    grid-column: 2 / span 2;
    grid-row: 2;
  }
  .bm-grid > .bm-branch:nth-child(2) {
    grid-column: 1 / span 2;
    grid-row: 1;
  }
  .bm-grid > .bm-branch:nth-child(3) {
    grid-column: 3 / span 2;
    grid-row: 1;
  }
  .bm-grid > .bm-branch:nth-child(4) {
    grid-column: 5 / span 2;
    grid-row: 1;
  }
  .bm-grid > .bm-branch:nth-child(5) {
    grid-column: 4 / span 2;
    grid-row: 2;
  }
  .bm-grid > .bm-branch > .bm-card {
    height: clamp(320px, 27vw, 400px);
    min-height: 0;
    padding: clamp(16px, 1.5vw, 22px) clamp(10px, 1.1vw, 14px)
      clamp(30px, 3vw, 48px);
  }
  .bm-grid > .bm-branch > .bm-card .avatar {
    height: clamp(76px, 7vw, 108px);
    width: clamp(76px, 7vw, 108px);
  }
  .bm-grid > .bm-branch > .bm-card .bm-name {
    font-size: clamp(15px, 1.6vw, 20px);
    min-height: clamp(36px, 3.6vw, 46px);
  }
  .bm-grid > .bm-branch > .bm-card .bm-manager-name {
    font-size: clamp(14px, 1.5vw, 20px);
  }
  .team-expander[open] .team-details,
  .team-expander[open] .team-details:has(> .um-card + .um-card),
  .team-expander[open] .team-details:has(> .um-card:nth-of-type(3)),
  .team-expander[open] .team-details:has(> .um-card:nth-of-type(4)),
  .team-expander[open] .team-details:has(> .um-card:nth-of-type(5)) {
    align-items: start;
    display: grid;
    left: 50%;
    padding-top: 30px;
    position: absolute;
    top: calc(100% + 30px);
    transform: translateX(-50%);
  }
  .team-expander[open] .team-details:has(> .um-card + .um-card) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(calc(200% + var(--um-gap)), calc(100vw - 36px));
  }
  .team-expander[open] .team-details:has(> .um-card:nth-of-type(3)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(calc(300% + (2 * var(--um-gap))), calc(100vw - 36px));
  }
  .team-expander[open] .team-details:has(> .um-card:nth-of-type(4)) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(calc(400% + (3 * var(--um-gap))), calc(100vw - 36px));
  }
  .team-expander[open] .team-details:has(> .um-card:nth-of-type(5)) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: min(calc(500% + (4 * var(--um-gap))), calc(100vw - 36px));
  }
  .team-expander[open] .team-details > .um-card {
    box-sizing: border-box;
    min-width: 0;
    padding: clamp(16px, 1.5vw, 22px) clamp(10px, 1.1vw, 14px)
      clamp(14px, 1.3vw, 18px);
    width: 100%;
  }
  .team-expander[open] .team-details > .um-card .avatar,
  .team-expander[open] .team-details > .um-card .um-avatar {
    height: clamp(76px, 7vw, 108px);
    width: clamp(76px, 7vw, 108px);
  }
  .team-expander[open] .team-details > .um-card .bm-name {
    font-size: clamp(15px, 1.6vw, 20px);
    min-height: clamp(36px, 3.6vw, 46px);
  }
}
/* 651px-1400px: hide desktop connectors; reposition BM grid, branches, cards, and UM panels. */
/* 651px-1400px: final compact chart override; hides connectors and stacks non-tiger-eye UM panels. */
@media (min-width: 651px) and (max-width: 1400px) {
  .horizontal-connector,
  .main-connector,
  .bm-branch::before,
  .team-details::before,
  .team-details::after,
  .team-details > .um-card::before {
    display: none;
  }
  .mobile-chart-title,
  .mobile-um-title {
    display: block !important;
  }
  .bm-grid {
    display: grid;
    gap: clamp(16px, 2vw, 28px);
    grid-template-columns: repeat(6, minmax(0, 1fr));
    max-width: 900px;
    width: min(calc(100% - 48px), 900px);
  }
  .bm-grid > .bm-branch {
    grid-column: span 2;
    grid-row: 1;
    margin: 0;
    width: auto;
  }
  .bm-grid > .bm-branch:nth-child(1) {
    grid-column: 2 / span 2;
    grid-row: 2;
  }
  .bm-grid > .bm-branch:nth-child(2) {
    grid-column: 1 / span 2;
    grid-row: 1;
  }
  .bm-grid > .bm-branch:nth-child(3) {
    grid-column: 3 / span 2;
    grid-row: 1;
  }
  .bm-grid > .bm-branch:nth-child(4) {
    grid-column: 5 / span 2;
    grid-row: 1;
  }
  .bm-grid > .bm-branch:nth-child(5) {
    grid-column: 4 / span 2;
    grid-row: 2;
  }
  .bm-grid > .bm-branch > .bm-card {
    height: auto;
    min-height: clamp(320px, 30vw, 350px);
    width: 100%;
  }
  .team-expander[open] .team-details:not(.tiger-eye-team-details),
  .team-expander[open]
    .team-details:not(.tiger-eye-team-details):has(> .um-card + .um-card),
  .team-expander[open]
    .team-details:not(.tiger-eye-team-details):has(> .um-card:nth-of-type(3)),
  .team-expander[open]
    .team-details:not(.tiger-eye-team-details):has(> .um-card:nth-of-type(4)),
  .team-expander[open]
    .team-details:not(.tiger-eye-team-details):has(> .um-card:nth-of-type(5)) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    left: 50%;
    max-width: 500px;
    padding-top: 24px;
    position: absolute;
    top: calc(100% + 24px);
    transform: translateX(-50%);
    width: min(calc(100vw - 48px), 500px);
  }
  .team-expander[open] .team-details > .mobile-um-title {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .team-expander[open] .team-details > .um-card {
    grid-row: auto;
    max-width: none;
    width: 100%;
  }
  .team-expander[open] .tiger-eye-team-details {
    display: grid !important;
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: auto 1fr;
    max-width: 1100px !important;
    padding-top: 24px;
    width: min(calc(100vw - 48px), 1100px) !important;
  }
  .team-expander[open] .tiger-eye-team-details > .mobile-um-title {
    display: block !important;
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    position: static !important;
    justify-self: center;
    text-align: center;
    width: max-content !important;
  }
  .team-expander[open] .tiger-eye-team-details > .um-card {
    grid-column: auto !important;
    grid-row: 2 !important;
  }
  .team-expander[open] .team-details > .mobile-um-title {
    align-items: center;
    left: auto;
    display: block !important;
    position: static;
    text-align: center;
    transform: none;
    width: 100%;
  }
  .team-expander[open] .team-details::before,
  .team-expander[open] .team-details::after,
  .team-expander[open] .team-details > .um-card::before {
    display: none;
  }
}
