/* Equipe comercial em estilo revista — adaptação do Team Showcase (21st.dev, makviesainte).
   Três colunas de fotos desalinhadas + lista de nomes; passar o mouse numa foto ou num nome
   colore a foto e destaca o nome correspondente (classes aplicadas por _initTeamShowcase no index.html). */
.ts {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 56px;
  max-width: 1024px;
  margin: 48px auto 0;
  user-select: none;
}

.ts-photos {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.ts-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  --ts-w: 155px;
  --ts-h: 165px;
}

.ts-col-2 {
  margin-top: 68px;
  --ts-w: 172px;
  --ts-h: 182px;
}

.ts-col-3 {
  margin-top: 32px;
  --ts-w: 162px;
  --ts-h: 172px;
}

.ts-photo {
  display: block;
  width: var(--ts-w);
  height: var(--ts-h);
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 12px;
  transition: opacity 0.4s ease;
}

.ts-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.77);
  transition: filter 0.5s ease;
}

.ts-photo.is-active img {
  filter: grayscale(0) brightness(1);
}

.ts.has-active .ts-photo:not(.is-active) {
  opacity: 0.6;
}

.ts-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  min-width: 0;
  padding-top: 8px;
}

.ts-row {
  display: block;
  color: #ffffff;
  transition: opacity 0.3s ease;
}

.ts.has-active .ts-row:not(.is-active) {
  opacity: 0.5;
}

.ts-row-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ts-pill {
  width: 16px;
  height: 12px;
  flex-shrink: 0;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
}

.ts-row.is-active .ts-pill {
  width: 20px;
  background: #FF6B00;
}

.ts-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.ts-row.is-active .ts-name {
  color: #ffffff;
}

.ts-role {
  margin: 6px 0 0;
  padding-left: 27px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888888;
  transition: color 0.3s ease;
}

.ts-row.is-active .ts-role {
  color: #25D366;
}

/* sem mouse (celular/tablet) não há hover: fotos sempre coloridas */
@media (hover: none) {
  .ts-photo img {
    filter: none;
  }
}

@media (max-width: 860px) {
  .ts {
    flex-direction: column;
    align-items: center;
    gap: 36px;
  }

  .ts-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
    width: 100%;
    max-width: 520px;
    padding-top: 0;
  }
}

@media (max-width: 560px) {
  .ts-photos {
    gap: 8px;
  }

  .ts-col {
    gap: 8px;
    --ts-w: 96px;
    --ts-h: 104px;
  }

  .ts-col-2 {
    margin-top: 44px;
    --ts-w: 106px;
    --ts-h: 114px;
  }

  .ts-col-3 {
    margin-top: 20px;
    --ts-w: 100px;
    --ts-h: 108px;
  }

  .ts-name {
    font-size: 16px;
  }

  .ts-role {
    font-size: 9px;
    letter-spacing: 0.14em;
  }
}
