/**
 * @file
 * Fiche détail team member — design V7.
 *
 * Layout :
 *   - Hero 2 cols : photo polaroid grande à gauche + intro (kicker + nom
 *     Fraunces + since + bio + social) à droite.
 *   - Section "Outros membros" : reuse block_related_team de la vue team
 *     (mêmes cards team-card que /equipa).
 */

.team-full {
  max-width: 1080px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

/* ─────────── Hero ─────────── */
.team-full__hero {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

@media (max-width: 768px) {
  .team-full__hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
}

.team-full__photo {
  margin: 0;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--ocdm-text-strong, #1f1820);
  background: var(--ocdm-bg-sunken);
  box-shadow: 4px 4px 0 var(--ocdm-text-strong);
  justify-self: center;
}
.team-full__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-full__photo .field,
.team-full__photo .field__item { display: contents; }
.team-full__photo .ocdm-photo-placeholder {
  aspect-ratio: auto;
  width: 100%;
  height: 100%;
  font-family: var(--ocdm-font-display);
  font-size: 6rem;
  font-weight: 700;
  color: var(--ocdm-framboise);
}
.team-full__photo .ocdm-photo-placeholder::before { display: none; }

@media (max-width: 768px) {
  .team-full__photo { max-width: 220px; }
}

/* ─────────── Intro droite ─────────── */
.team-full__intro {
  min-width: 0;
}

.team-full__kicker {
  font-family: var(--ocdm-font-hand);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ocdm-framboise);
  margin: 0 0 0.5rem;
  line-height: 1;
}
.team-full__kicker .field,
.team-full__kicker .field__item { display: contents; }

.team-full__name {
  font-family: var(--ocdm-font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 1.8rem + 2.5vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ocdm-text-strong);
  margin: 0 0 0.5rem;
}

.team-full__since {
  font-family: var(--ocdm-font-body);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ocdm-text-muted);
  margin: 0 0 1.5rem;
}

.team-full__bio {
  font-family: var(--ocdm-font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ocdm-text);
  margin: 0 0 1.5rem;
}
.team-full__bio p { margin: 0 0 0.75rem; }
.team-full__bio p:last-child { margin-bottom: 0; }

.team-full__social {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .team-full__social { justify-content: center; }
}
.team-full__social .field__item {
  display: inline-flex;
}
.team-full__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--ocdm-text-strong);
  color: var(--ocdm-text-strong);
  text-decoration: none !important;
  transition: all 0.15s ease;
}
.team-full__social a:hover {
  background: var(--ocdm-framboise);
  color: #fff;
  border-color: var(--ocdm-framboise);
  transform: translateY(-1px);
}

/* ─────────── Section "Outros membros" ─────────── */
.team-full__related {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px dashed var(--ocdm-border);
}

.team-full__related-head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.team-full__related-head .ocdm-section-head__kicker {
  margin: 0 0 0.5rem;
}
.team-full__related-title {
  font-family: var(--ocdm-font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  letter-spacing: -0.025em;
  color: var(--ocdm-text-strong);
  margin: 0;
}

/* Les cards related reprennent le style .team-card de team-listing.css ;
   on neutralise juste la grille du wrap de la View embed (qui pourrait
   avoir un wrap views .view-content). On force le grid à 3 cols ici car
   c'est un bloc related (pas full listing 2 cols comme /equipa). */
.view-team-related .view-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.view-team-related .views-row { display: contents; }

@media (max-width: 900px) {
  .view-team-related .view-content { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .view-team-related .view-content { grid-template-columns: 1fr; }
}
