/* Aetherix v9.7 — team page layout hotfix */

html {
  scroll-padding-top: calc(var(--header-height, 72px) + 24px);
}

.team-directory-group {
  scroll-margin-top: calc(var(--header-height, 72px) + 24px);
}

/* Activity data is inserted by team-live-status.js. Previously it had no CSS,
   so both values were rendered as one long, unreadable string. */
.team-activity-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.team-activity-mini > span {
  min-width: 0;
  display: flex;
  min-height: 46px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding: 7px 9px;
}

.team-activity-mini > span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.team-activity-mini strong {
  display: block;
  max-width: 100%;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-activity-mini small {
  display: block;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.42);
  font-size: 8px;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: 0.025em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-directory-card .team-card-content {
  overflow: hidden;
}

.team-directory-avatar img,
.team-review-avatar img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  image-rendering: pixelated;
  color: transparent;
}

@media (max-width: 1180px) {
  .team-directory-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .team-directory-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .team-directory-card .team-card-content {
    padding-inline: 17px;
  }
}

@media (max-width: 980px) {
  .team-directory-layout {
    grid-template-columns: 1fr;
  }

  .team-directory-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .team-directory-grid,
  .team-directory-sidebar {
    grid-template-columns: 1fr;
  }

  .team-directory-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }
}

@media (max-width: 430px) {
  .team-directory-card {
    grid-template-columns: 1fr;
  }

  .team-directory-head {
    min-height: 150px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .team-directory-card .team-online {
    width: auto;
    min-width: 110px;
  }
}


/* v10.0 hard fallback — exact runtime structure */
.team-directory-card .team-activity-mini {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  width: 100% !important;
  margin: 10px 0 0 !important;
  line-height: 1 !important;
}
.team-directory-card .team-activity-mini > span {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 4px !important;
  white-space: normal !important;
}
.team-directory-card .team-activity-mini strong,
.team-directory-card .team-activity-mini small {
  display: block !important;
  margin: 0 !important;
  white-space: nowrap !important;
}
