.team-page-custom {
  --team-ink: #082a55;
  --team-accent: #66c7f4;
  color: #10213a;
}

.team-page-custom [id^="team-"] {
  scroll-margin-top: 105px;
}

.team-page-custom .team-overview-card {
  display: grid;
  gap: clamp(24px, 3vw, 36px);
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  background:
    linear-gradient(105deg, var(--team-ink) 2%, rgba(7, 20, 35, .72) 56%, rgba(7, 20, 35, .4) 100%),
    var(--team-cover, none) center / cover no-repeat,
    var(--team-ink);
  color: #fff;
  box-shadow: 0 28px 60px rgba(5, 22, 47, .19);
  isolation: isolate;
}

.team-page-custom .team-overview-card::before {
  inset: 0 auto 0 0;
  width: 5px;
  height: auto;
  background: var(--team-accent);
}

.team-page-custom .team-overview-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -35%;
  right: 9%;
  width: 55%;
  height: 120%;
  transform: rotate(-23deg);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, .018), 0 0 0 150px rgba(255, 255, 255, .012);
  pointer-events: none;
}

.team-page-custom .team-overview-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 360px);
  gap: clamp(20px, 4vw, 55px);
  align-items: center;
}

.team-page-custom .team-overview-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 17px;
}

.team-profile-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--team-accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.team-profile-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.team-page-custom .team-overview-season {
  display: inline-flex;
  margin-top: 10px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50px;
  color: #e9f7fc;
  font-size: 12px;
  font-weight: 750 !important;
  letter-spacing: .09em;
}

.team-page-custom .team-overview-main h1 {
  margin: 0;
  max-width: 800px;
  color: #fff;
  font-size: clamp(52px, 7vw, 100px);
  font-weight: 950;
  letter-spacing: -.055em;
  line-height: .98;
  text-transform: uppercase;
  text-wrap: balance;
}

.team-profile-motto {
  margin: 0;
  max-width: 650px;
  color: #d1e4ed;
  font-size: clamp(17px, 1.6vw, 23px);
  font-weight: 600;
  line-height: 1.45;
}

.team-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.team-profile-actions a {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 7px;
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .2s;
}

.team-profile-actions a:first-child {
  border-color: var(--team-accent);
  background: var(--team-accent);
  color: var(--team-ink);
}

.team-profile-actions a:hover {
  transform: translateY(-2px);
  border-color: var(--team-accent);
  background: var(--team-accent);
  color: var(--team-ink);
}

.team-page-custom .team-overview-facts {
  display: flex;
  width: 100%;
  min-height: 0;
  margin-top: 7px;
  flex-wrap: wrap;
  gap: 10px 20px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.team-page-custom .team-overview-fact {
  flex: 0 0 auto;
  min-height: 0;
  padding: 0;
  color: #bdd1dc;
  font-size: 13px;
}

.team-page-custom .team-overview-fact + .team-overview-fact {
  border: 0;
}

.team-page-custom .team-overview-fact :is(svg, .hhl-fa-icon) {
  color: var(--team-accent);
}

.team-page-custom .team-overview-side {
  display: grid;
  gap: 13px;
  max-width: 100%;
}

.team-page-custom .team-overview-logo {
  display: grid;
  place-items: center;
  min-height: 330px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  background: rgba(0, 0, 0, .22);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, .14);
}

.team-page-custom .team-overview-logo img,
.team-page-custom .team-overview-side img {
  width: 100%;
  max-height: 310px;
  object-fit: contain;
}

.team-page-custom.is-darth-vepr .team-overview-logo img {
  mix-blend-mode: screen;
}

.team-page-custom .team-overview-select {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 7px;
  background-color: #fff;
  color: #132c4a;
  font-size: 14px;
}

.team-page-custom .team-overview-site {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 7px;
  background: transparent;
  color: #fff;
}

.team-page-custom .team-overview-site:hover {
  border-color: var(--team-accent);
  color: var(--team-accent);
}

.team-page-custom .team-overview-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 12px;
  background: rgba(255, 255, 255, .15);
}

.team-page-custom .team-overview-stat {
  padding: 19px 12px;
  background: rgba(0, 0, 0, .12);
}

.team-page-custom .team-overview-stat span {
  color: #b5ceda;
  font-size: 11px;
  letter-spacing: .05em;
}

.team-page-custom .team-overview-stat strong {
  color: #fff;
  font-size: clamp(26px, 2.7vw, 40px);
}

.team-page-custom .team-overview-highlights {
  gap: 12px;
}

.team-page-custom .team-overview-highlight {
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
}

.team-page-custom .team-overview-highlight span {
  color: var(--team-accent);
}

.team-page-custom .team-overview-highlight strong {
  color: #fff;
}

.team-page-custom .team-overview-highlight small {
  color: #c5d6de;
}

.team-profile-nav {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  gap: clamp(14px, 2vw, 30px);
  align-items: center;
  padding: 12px 22px;
  overflow-x: auto;
  border: 1px solid #d9e5ef;
  border-radius: 10px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 28px rgba(7, 28, 54, .07);
  scrollbar-width: thin;
}

.team-profile-nav a {
  flex: 0 0 auto;
  padding: 8px 0;
  color: #304862;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.team-profile-nav a:hover,
.team-profile-nav a:focus-visible {
  color: #006db5;
}

.team-profile-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: 18px;
}

.team-profile-info.is-contact-only {
  grid-template-columns: 1fr;
}

.team-page-custom .team-history-card,
.team-contact-card {
  margin: 0;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid #dae5ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(6, 29, 57, .06);
}

.team-page-custom .team-history-card .eyebrow {
  color: #007bb4;
}

.team-page-custom .team-history-card h2,
.team-contact-card h2 {
  margin: 7px 0 18px;
  color: #102841;
  font-size: clamp(25px, 2.3vw, 34px);
  line-height: 1.14;
}

.team-page-custom .team-history-card h2::before {
  display: none;
}

.team-contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #eef6fa;
}

.team-contact-card .eyebrow {
  color: #47718d;
}

.team-contact-name {
  margin-bottom: 15px;
  color: #102841;
  font-size: 21px;
}

.team-contact-card a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  padding: 12px 0;
  border-top: 1px solid #d3e3ed;
  color: #103f69;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.team-contact-card a span {
  color: #617e91;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.team-contact-card a strong {
  font-size: 17px;
}

.team-contact-card a:hover strong {
  text-decoration: underline;
}

.team-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin-top: 15px;
  padding-top: 16px;
  border-top: 1px solid #d3e3ed;
}

.team-contact-card .team-social-links a {
  display: inline-flex;
  width: auto;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid #bdd4e5;
  border-radius: 7px;
  background: #fff;
  color: #123e64;
  font-size: 13px;
  font-weight: 850;
}

.team-contact-card .team-social-links a:hover {
  border-color: #4389bd;
  background: #e6f3fc;
}

.team-vlog-block,
.team-partners-block {
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid #dbe5ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(6, 29, 57, .06);
}

.team-page-custom :is(.team-vlog-block, .team-partners-block) .section-heading {
  margin-bottom: 18px;
}

.team-page-custom :is(.team-vlog-block, .team-partners-block) .section-heading h2 {
  margin: 5px 0 0;
  color: #102841;
  font-size: clamp(27px, 2.6vw, 38px);
}

.team-page-custom .team-vlog-add {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 13px;
  border: 1px solid #bdd3e2;
  border-radius: 7px;
  color: #075b8f;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.team-page-custom .team-vlog-add:hover {
  background: #ebf7ff;
}

.team-vlog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 16px;
}

.team-vlog-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d9e5ef;
  border-radius: 11px;
  background: #f8fbfe;
}

.team-vlog-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #101923;
}

.team-vlog-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 19px;
}

.team-vlog-card-content .eyebrow {
  color: #4b718b;
  font-size: 11px;
}

.team-vlog-card-content h3 {
  margin: 0;
  color: #112e4c;
  font-size: 20px;
  line-height: 1.25;
}

.team-vlog-card-content h3 a {
  color: inherit;
  text-decoration: none;
}

.team-vlog-card-content h3 a:hover {
  color: #006db5;
}

.team-vlog-card-content p {
  margin: 0;
  color: #516a82;
  font-size: 14px;
  line-height: 1.5;
}

.team-vlog-watch {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin-top: auto;
  color: #006eb2;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.team-vlog-watch:hover {
  text-decoration: underline;
}

.team-profile-empty {
  margin: 0;
  padding: 22px;
  border: 1px dashed #bed3e2;
  border-radius: 9px;
  background: #f5f9fc;
  color: #566f84;
  font-size: 15px;
}

.team-partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 12px;
}

.team-partner-card {
  display: flex;
  min-height: 145px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px;
  border: 1px solid #d7e4ed;
  border-radius: 10px;
  background: #f9fcfe;
  color: #183a59;
  text-align: center;
  text-decoration: none;
}

.team-partner-card img {
  max-width: 100%;
  max-height: 76px;
  object-fit: contain;
}

.team-partner-card strong {
  font-size: 14px;
  line-height: 1.3;
}

a.team-partner-card:hover {
  border-color: #62a7cd;
  background: #edf7fd;
}

.team-next-opponents {
  display: flex;
  align-items: center;
  gap: 16px;
}

.team-next-opponents img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.team-roster-featured {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.team-page-custom .team-player-tile {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 205px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 16px;
  border: 1px solid #d7e4ed;
  border-radius: 10px;
  background: linear-gradient(145deg, #fff, #eaf4fb);
  color: #102841;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(8, 38, 84, .07);
}

.team-player-tile > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-player-tile:has(> img)::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(0deg, rgba(4, 26, 52, .92), transparent);
  pointer-events: none;
}

.team-player-tile-mark {
  position: absolute;
  top: 8px;
  right: 12px;
  color: rgba(0, 106, 181, .12);
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: clamp(72px, 9vw, 145px);
  line-height: 1;
}

.team-player-tile-info,
.team-player-tile-arrow {
  position: relative;
  z-index: 1;
}

.team-player-tile-info {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.team-player-tile-info strong {
  color: #102841;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.team-player-tile-info small {
  color: #42647e;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.team-player-tile > img ~ .team-player-tile-info strong,
.team-player-tile > img ~ .team-player-tile-info small {
  color: #fff;
}

.team-player-tile-arrow {
  position: absolute;
  right: 13px;
  bottom: 12px;
  color: #0074b9;
}

.team-player-tile > img ~ .team-player-tile-arrow { color: #fff; }
.team-page-custom a.team-player-tile:hover { border-color: #62a7cd; transform: translateY(-2px); }

.team-page-custom .team-news-image {
  display: block;
  width: calc(100% + 40px);
  max-width: none;
  margin: -20px -20px 12px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (max-width: 1100px) {
  .team-page-custom .team-overview-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .team-roster-featured { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .team-page-custom .team-overview-top {
    grid-template-columns: minmax(0, 1fr) minmax(170px, 230px);
  }
  .team-page-custom .team-overview-logo {
    min-height: 220px;
  }
  .team-page-custom .team-overview-logo img,
  .team-page-custom .team-overview-side img {
    max-height: 200px;
  }
  .team-profile-info {
    grid-template-columns: 1fr;
  }
  .team-roster-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .team-page-custom .team-overview-card {
    padding: 25px 18px;
    border-radius: 16px;
  }
  .team-page-custom .team-overview-top {
    grid-template-columns: 1fr;
  }
  .team-page-custom .team-overview-main h1 {
    font-size: clamp(44px, 13vw, 68px);
  }
  .team-page-custom .team-overview-side {
    grid-template-columns: 1fr;
  }
  .team-page-custom .team-overview-logo {
    min-height: 180px;
    max-height: 210px;
    padding: 8px;
  }
  .team-page-custom .team-overview-logo img,
  .team-page-custom .team-overview-side img {
    max-height: 190px;
  }
  .team-page-custom .team-overview-controls {
    flex-wrap: wrap;
  }
  .team-page-custom .team-overview-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .team-page-custom .team-overview-stat strong {
    font-size: 30px;
  }
  .team-profile-nav {
    padding: 8px 14px;
  }
  .team-page-custom .team-player-tile { min-height: 170px; padding: 12px; }
}
