/* The legal team is rendered in HTML, so contact options also work without JS. */
.team-contact-panel {
  background: #000e24;
  color: #fff;
  padding: 22px;
  border: 1px solid #c7a76555;
  box-shadow: 0 14px 34px #000e2414;
  text-align: start;
  min-width: 0;
}
.team-contact-panel .team-eyebrow {
  color: #e7c580;
  display: block;
  margin: 0 0 8px;
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.team-contact-panel .team-heading {
  color: #fff;
  font-family: var(--serif, Georgia, serif);
  font-size: 1.45rem;
  line-height: 1.22;
  margin: 0 0 10px;
}
.team-contact-panel .team-intro {
  color: #d1d9e6;
  font-size: .73rem;
  line-height: 1.65;
  margin: 0 0 16px;
}
.team-contact-panel .team-members { display: grid; gap: 11px; }
.team-contact-panel .team-member {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  border: 0;
  border-bottom: 1px solid #ffffff1f;
  padding: 0 0 11px;
  text-decoration: none;
  color: #fff;
  font-weight: 400;
}
.team-contact-panel .team-member:last-child { padding-bottom: 0; border-bottom: 0; }
.team-contact-panel .team-member img {
  width: 112px;
  height: 134.4px;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: 3px;
  display: block;
  margin: 0;
}
.team-contact-panel .team-member strong {
  font-family: var(--sans, Arial, sans-serif);
  font-size: .81rem;
  line-height: 1.4;
  color: #fff;
  display: block;
  margin: 0 0 3px;
}
.team-contact-panel .team-member .team-role {
  color: #c7cfdd;
  display: block;
  font-size: .64rem;
  line-height: 1.45;
  letter-spacing: normal;
  text-transform: none;
  font-weight: 400;
  margin: 0;
}
.team-contact-panel .team-member:hover strong { color: #efd598; }
.team-contact-panel .team-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}
.team-contact-panel .team-action,
.team-mobile-contact a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 8px;
  border: 1px solid #ffffff40;
  border-radius: 3px;
  color: #fff;
  font-size: .71rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  text-align: center;
}
.team-contact-panel .team-whatsapp,
.team-mobile-contact .team-whatsapp {
  background: #187b50;
  border-color: #239c69;
  color: #fff;
}
.team-contact-panel .team-action:hover { background: #ffffff18; color: #efd598; }
.team-contact-panel .team-whatsapp:hover { background: #13683f; color: #fff; }
.team-contact-panel .team-email { grid-column: 1 / -1; }
.team-contact-panel .team-profile-link {
  display: block;
  padding: 0;
  border: 0;
  margin-top: 12px;
  color: #e7c580;
  font-size: .68rem;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-align: center;
}
.team-contact-panel a:focus-visible,
.team-mobile-contact a:focus-visible { outline: 3px solid #efd598; outline-offset: 4px; }
.team-contact-page .profile-side:has(> .team-contact-panel) {
  grid-template-columns: 1fr;
  position: sticky;
  top: 96px;
}
.team-contact-page .about-aside > .team-contact-panel { margin-bottom: 26px; }
.team-mobile-contact { display: none; }
@media (max-width: 960px), (max-height: 700px) {
  .team-mobile-contact {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 7px;
    position: fixed;
    inset: auto 0 0;
    z-index: 90;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background: #000e24fa;
    border-top: 1px solid #c7a76580;
    box-shadow: 0 -6px 24px #000e2429;
  }
  .team-mobile-contact a { font-size: .72rem; min-height: 44px; }
  .team-contact-page { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .team-contact-page .floating-urgent { display: none; }
  .team-contact-page .topic-sidebar,
  .team-contact-page .profile-side:has(> .team-contact-panel),
  .team-contact-page .about-aside { position: static; }
}


/* Larger portraits reuse the compact 160 x 192 WebP thumbnails. */
@media (max-width: 360px) {
  .team-contact-panel { padding: 18px; }
  .team-contact-panel .team-member { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
  .team-contact-panel .team-member img { width: 96px; height: 115.2px; }
}
