/* ==========================================================================
   team.css  -  TEAM (CONTENT)
   Used by: <section id="team"> in index.html (team members with avatar, name and role).
   ========================================================================== */

/* The team section uses less space above and below than other sections. */
#team .wrap { gap: 32px; padding-block: clamp(56px, 6vw, 88px); }
/* A smaller heading for this section. */
#team h2 { font-size: clamp(2.1rem, 3.6vw, 3.4rem); }
/* TEAM: the grid of member boxes. 2 columns on phones. */
.team { grid-template-columns: repeat(2, 1fr); background: var(--border-light); border: 1px solid var(--border-light); border-radius: 8px; overflow: hidden; }
/* The last box stretches across the full width. */
.team > div:last-child { grid-column: 1 / -1; }
/* Tablet layout. */
@media (min-width: 560px) {
  .team { grid-template-columns: repeat(6, 1fr); }
  .team > div { grid-column: span 2; }
  .team > div:nth-child(n+4) { grid-column: span 3; }
}
/* Desktop layout. */
@media (min-width: 1000px) {
  .team { grid-template-columns: repeat(5, 1fr); }
  .team > div, .team > div:nth-child(n+4) { grid-column: auto; }
}
/* One member box. */
.team > div { background: var(--page-bg); padding: 20px; display: flex; align-items: center; gap: 14px; }
/* The round picture / initials of a member. */
.team .avatar-box {
  flex: 0 0 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(10, 91, 255, 0.10) 0%, rgba(29, 78, 216, 0.20) 100%);
  border: 1px solid var(--brand-line);
  font-weight: 600;
  font-size: 18px;
  color: var(--brand-blue);
}


/* Name and role text. */
.team span { display: flex; flex-direction: column; gap: 3px; font-size: 18px; line-height: 1.2; letter-spacing: -.02em; }
/* The role (small capital letters). */
.team small { font: 500 11px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--brand-blue-dark); }
/* Grey text style. NOTE: no element in index.html uses this class right now, so it can be deleted. */

/* LinkedIn link: sits on its own line right AFTER the role, with the same pulsing blue dot as the hero  tagline. */ 
.team .linkedin { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; align-self:  flex-start; font: 500 11px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color:  var(--brand-blue-dark); text-decoration: none; transition: color .2s; }
.team .linkedin::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background:  var(--brand-blue); box-shadow: 0 0 0 0 rgba(10, 91, 255, .45); animation: tagPulse 2.4s ease-out  infinite; } 
.team .linkedin:hover, .team .linkedin:focus-visible { color: var(--brand-blue); text-decoration:  underline; }
/* The line under the team cards (group name and supervisor). */
.foot-text { color: var(--text-body); font-size: 16px; }
