/* Pro Team: cartões de perfil em filas com rolagem lateral nativa.
   Adaptado de "Profile Card" (21st.dev, @waleedkibhen). Só HTML + CSS;
   team-cards.js acrescenta apenas as setas e a barra de posição. */
.pt-rail {
  --pt-ink: var(--brand-ink, #0E0E0E);
  --pt-tone: var(--brand-orange, #DE2A01);
  --pt-pad: max(24px, calc((100vw - 1280px) / 2 + 40px));
  position: relative; z-index: 1;
  /* sangra até as bordas da tela para a fila rolar de ponta a ponta */
  width: 100vw; margin-left: calc(50% - 50vw);
}
.pt-rail + .pt-rail { margin-top: 12px; }
.pt-rail ul {
  display: flex; gap: 16px; margin: 0; padding: 10px var(--pt-pad) 22px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pt-pad);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.pt-rail ul::-webkit-scrollbar { display: none; }
.pt-rail li {
  position: relative; flex: none; width: min(78vw, 300px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 10px;
  padding: 0 0 14px; overflow: hidden; border-radius: 24px; background: #fff;
  scroll-snap-align: start; box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
}
.pt-rail li img {
  grid-column: 1 / -1; width: 100%; aspect-ratio: 1; object-fit: cover;
  margin: 0 0 14px; background: #E5E5E3;
}
/* escurece topo e base da foto (quadrado = largura do cartão) para o texto ler bem */
.pt-rail li::before {
  content: ""; position: absolute; inset: 0 0 auto; z-index: 1; padding-bottom: 100%; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent 32%), linear-gradient(to top, rgba(0, 0, 0, .82), transparent 52%);
}
.pt-rail li a[data-profile] {
  position: absolute; left: 20px; right: 20px; top: 16px; z-index: 1; color: #fff;
  font-family: 'Anton', 'Arial Black', sans-serif; font-size: 26px; font-weight: 400;
  line-height: 1.05; text-transform: uppercase; letter-spacing: .01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}
.pt-rail li p {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
  position: absolute; left: 20px; right: 20px; top: 0; z-index: 1; margin: 100% 0 0;
  transform: translateY(-100%) translateY(-16px);
  font-size: 13.5px; font-weight: 500; line-height: 1.4; color: rgba(255, 255, 255, .92);
}
.pt-rail li a[data-instagram] {
  position: relative; z-index: 2; display: block; min-width: 0; padding-left: 60px;
  font-size: 13.5px; font-weight: 600; line-height: 1.25; color: var(--pt-ink);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.pt-rail li a[data-instagram]::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 34px; height: 34px; margin-top: -17px;
  border-radius: 999px; background: var(--pt-tone) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M17.5 6.5h.01'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.pt-rail li a[data-instagram]::after {
  content: "Pro Team"; display: block; font-size: 12px; font-weight: 500; color: #6B6B6B;
}
.pt-rail li .pt-go {
  display: inline-flex; align-items: center; margin-right: 16px; padding: 10px 16px;
  border-radius: 10px; background: var(--pt-ink); color: #fff;
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
}
/* o cartão inteiro leva ao perfil; o Instagram fica por cima */
.pt-rail li .pt-go::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* --- setas + barra de posição (montadas pelo team-cards.js) --- */
.pt-nav { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 24px; }
.pt-nav[hidden] { display: none; }
.pt-arrow {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer;
}
.pt-arrow svg { width: 18px; height: 18px; }
.pt-arrow:disabled { opacity: .3; cursor: default; }
.pt-arrow:focus-visible { outline: 2px solid var(--brand-sun, #F2B544); outline-offset: 2px; }
.pt-track { position: relative; width: min(46vw, 220px); height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.pt-thumb { position: absolute; left: 0; top: 0; height: 100%; border-radius: 999px; background: var(--pt-tone); }

@media (max-width: 639px) {
  .pt-rail li { scroll-snap-align: center; }
}
@media (hover: hover) {
  .pt-rail li img { transition: transform .7s ease-out; }
  .pt-rail li:hover img { transform: scale(1.03); }
  .pt-arrow:not(:disabled):hover { background: rgba(255, 255, 255, .18); }
}
@media (prefers-reduced-motion: reduce) {
  .pt-rail li img { transition: none; }
}
