/**
 * Team Block — Figma section 7 (node 683:33628).
 */

.teamBlock {
  background: #f6f8fb;
  box-sizing: border-box;
  overflow: hidden;
  padding: 112px 64px;
  width: 100%;
}

.teamBlock__container {
  display: flex;
  flex-direction: column;
  gap: 34px;
  margin: 0 auto;
  max-width: 1280px;
  width: 100%;
}

.teamBlock__header {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.teamBlock__tagline {
  color: rgba(74, 85, 101, 0.7);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.5;
  margin: 0;
  text-transform: uppercase;
}

.teamBlock__headerRow {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  width: 100%;
}

.teamBlock__title {
  color: #101828;
  font-family: "Inter", sans-serif;
  font-size: 48px;
  font-style: normal;
  font-weight: 300;
  letter-spacing: 0.168px;
  line-height: 1.2;
  margin: 0;
}

.teamBlock__actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
}

.teamBlock__button {
  flex: 0 0 auto;
}

.teamBlock__filters {
  align-items: flex-start;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  min-height: 51px;
  width: 100%;
}

.teamBlock__filterBtn {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #6a7282;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.5004px;
  line-height: 20px;
  margin: 0;
  min-height: 50px;
  padding: 11px 25px 0;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.teamBlock__filterBtn.is-active {
  border-bottom-color: #082044;
  color: #082044;
}

.teamBlock__filterBtn:hover,
.teamBlock__filterBtn:focus-visible {
  color: #082044;
}

.teamBlock__filterBtn:focus-visible {
  outline: 2px solid rgba(8, 32, 68, 0.28);
  outline-offset: 2px;
}

.teamBlock__grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
}

.teamBlock__card[hidden] {
  display: none;
}

.teamBlock__card {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.teamBlock__photoWrap {
  aspect-ratio: 1 / 1;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.teamBlock__photo,
.teamBlock__photoWrap img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.teamBlock__photoPlaceholder {
  background: #e5e7eb;
  height: 100%;
  width: 100%;
}

.teamBlock__cardBody {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.teamBlock__identity {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.teamBlock__name {
  color: #101828;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  width: 100%;
}

.teamBlock__role {
  color: #4a5565;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
  width: 100%;
}

.teamBlock__contact {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.teamBlock__contactItem {
  align-items: center;
  display: flex;
  gap: 5px;
  margin: 0;
}

.teamBlock__contactIcon {
  display: inline-flex;
  flex-shrink: 0;
  height: 16px;
  width: 16px;
}

.teamBlock__contactIcon img {
  display: block;
  height: 16px;
  width: 16px;
}

.teamBlock__contactItem--link {
  color: inherit;
  text-decoration: none;
}

.teamBlock__contactLink,
.teamBlock__contactText {
  color: #4a5565;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
}

.teamBlock__contactLink:hover,
.teamBlock__contactLink:focus-visible,
.teamBlock__contactItem--link:hover .teamBlock__contactLink,
.teamBlock__contactItem--link:focus-visible .teamBlock__contactLink {
  text-decoration: underline;
}

.teamBlock__moreWrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.teamBlock__moreWrap[hidden] {
  display: none;
}

.teamBlock__empty {
  color: #717182;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 1199px) {
  .teamBlock__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .teamBlock {
    padding: 72px 48px;
  }

  .teamBlock__title {
    font-size: 40px;
  }

  .teamBlock__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .teamBlock {
    padding: 72px 24px;
  }

  .teamBlock__container {
    gap: 28px;
  }

  .teamBlock__header {
    gap: 16px;
  }

  .teamBlock__headerRow {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .teamBlock__titleWrap {
    max-width: none;
  }

  .teamBlock__title {
    font-size: 32px;
  }

  /* Filter tabs: one scrollable row instead of wrapping into several lines. */
  .teamBlock__filters {
    -ms-overflow-style: none;
    flex-wrap: nowrap;
    gap: 4px;
    margin: 0 -24px;
    min-height: 0;
    overflow-x: auto;
    padding: 0 24px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    width: auto;
  }

  .teamBlock__filters::-webkit-scrollbar {
    display: none;
  }

  .teamBlock__filterBtn {
    flex: 0 0 auto;
    font-size: 15px;
    letter-spacing: -0.2px;
    min-height: 44px;
    padding: 10px 14px 0;
    white-space: nowrap;
  }

  .teamBlock__grid {
    gap: 40px 24px;
    grid-template-columns: minmax(0, 1fr);
  }

  .teamBlock__card {
    gap: 16px;
  }

  .teamBlock__cardBody {
    gap: 12px;
  }

  /* Long emails should wrap instead of overflowing the card. */
  .teamBlock__contactItem {
    align-items: flex-start;
    min-width: 0;
  }

  .teamBlock__contactIcon {
    margin-top: 3px;
  }

  .teamBlock__contactLink,
  .teamBlock__contactText {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* On mobile, linked phone/email collapse to icon-only tap targets. */
  .teamBlock__contact {
    flex-direction: row;
    gap: 10px;
  }

  .teamBlock__contactItem--link {
    align-items: center;
    background: #f6f8fb;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    display: inline-flex;
    height: 44px;
    justify-content: center;
    width: 44px;
  }

  .teamBlock__contactItem--link .teamBlock__contactIcon {
    height: 18px;
    margin-top: 0;
    width: 18px;
  }

  .teamBlock__contactItem--link .teamBlock__contactIcon img {
    height: 18px;
    width: 18px;
  }

  .teamBlock__contactItem--link .teamBlock__contactLink {
    display: none;
  }

  .teamBlock__moreBtn {
    width: 100%;
  }
}

@media (max-width: 479px) {
  .teamBlock {
    padding: 56px 20px;
  }

  .teamBlock__title {
    font-size: 28px;
    letter-spacing: 0.2px;
  }

  .teamBlock__filters {
    margin: 0 -20px;
    padding: 0 20px;
  }
}
