/* ============================================================
   SEKCJA: Team (zespół — karty profili + sidebar credentials)
   Ładowana warunkowo (sr_enqueue_sections) tylko gdy strona renderuje
   sekcję 'team'. Nagłówek (.section-head) z section-commons.css.
   ============================================================ */
.team {
  background: var(--paper);
  padding: var(--s-10) 0;
  border-top: 1px solid var(--rule);
}
.team-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--s-8);
}
.team-eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--muted);
  margin-bottom: var(--s-3);
}
.team-header h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-snug);
  color: var(--ink);
  margin: 0;
}
.team-header h2 em { font-style: italic; color: var(--accent); }

/* Team layout: cards + credentials sidebar */
.team-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--s-8);
  align-items: stretch;
  margin-bottom: var(--s-7);
}
.team-credentials {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--rule);
  justify-content: space-between;
}
.team-cred-item {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  padding: var(--s-5) var(--s-5);
  border-bottom: 1px solid var(--rule);
  flex: 1;
  justify-content: center;
}
.team-cred-item:last-child { border-bottom: none; }
.team-cred-item__number {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 36px;
  line-height: 1;
  letter-spacing: var(--ls-tight);
  color: var(--ink);
}
.team-cred-item__number .mark { color: var(--accent); }
.team-cred-item__label {
  font-family: var(--font-body);
  font-size: var(--fs-meta);
  color: var(--muted);
  line-height: var(--lh-tight);
}
.team-cred-badges {
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  border-bottom: 1px solid var(--rule);
}
.team-cred-badges__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--muted);
}
.team-cred-badge {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: var(--lh-body);
  color: var(--ink-2);
}
.team-cred-badge svg {
  width: 16px; height: 16px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.team-cred-cta {
  padding: var(--s-5);
}
.team-cred-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  width: 100%;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  padding: var(--s-3) var(--s-5);
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--r-2);
  text-decoration: none;
  transition: background var(--t-base) var(--ease);
}
.team-cred-cta a:hover { background: #000; }
/* Panel boczny ukryty w panelu (ACF) — karty zajmują całą szerokość. */
.team-layout--full { grid-template-columns: 1fr; }
@media (max-width: 960px) {
  .team-layout {
    grid-template-columns: 1fr;
  }
}

.team-grid {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  margin: 0;
  flex: 1;
}
.team-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--s-6);
  align-items: center;
  flex: 1;
}
.team-card__portrait {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--paper-3) 0%, var(--paper-2) 100%);
  border: 1px solid var(--rule);
  overflow: hidden;
  filter: sepia(0.15) saturate(0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-card__portrait .ph-label {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  line-height: var(--lh-body);
  max-width: 22ch;
}
/* Zdjęcie wgrane w panelu (ACF) — wypełnia kwadratowy kadr portretu. */
.team-card__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-card__info {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.team-card__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: var(--lh-heading);
  color: var(--ink);
  margin: 0;
}
.team-card__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--accent);
}
.team-card__ora {
  font-family: var(--font-body);
  font-size: var(--fs-meta);
  color: var(--muted);
}
.team-card__bio {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: var(--lh-body);
  color: var(--ink-2);
  margin: var(--s-2) 0 0;
  max-width: 40ch;
}

.team-footer {
  text-align: center;
}
.team-footer a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  transition: color var(--t-base) var(--ease);
}
.team-footer a:hover { color: var(--accent-hover); }
.team-footer a svg {
  width: 16px; height: 16px;
  transition: transform var(--t-base) var(--ease);
}
.team-footer a:hover svg { transform: translateX(4px); }

@media (max-width: 960px) {
  .team-card {
    grid-template-columns: 120px 1fr;
    gap: var(--s-4);
  }
}
