/* Team & Careers: the crew grid. */

/* Right under the page heading, so it sits close to it. */
.team-section { padding-top: var(--space-3); }
#apply { scroll-margin-top: 80px; }

.team-grid {
  list-style: none;
  padding: 0;
  display: grid;
  /* Small framed cards, a fixed size, centred: a row of faces, not posters. */
  grid-template-columns: repeat(auto-fill, 112px);
  justify-content: center;
  gap: 0.75rem;
  max-width: 980px;
  margin: 0 auto;
}
@media (max-width: 560px) {
  .team-grid { grid-template-columns: repeat(3, minmax(0, 96px)); gap: 0.6rem; }
}

/* A box round each person: white card, thin border, soft shadow, and the
   photo set inside it with a margin of its own. */
.team-card {
  background: #fff;
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.06);
}
.team-photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 6px;
  background: var(--surface);
}
.team-initial {
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 1.6rem var(--font-heading);
  color: var(--accent);
  background: linear-gradient(160deg, #262017, #161616);
}
.team-meta { padding: 0.4rem 0.2rem 0.15rem; text-align: center; }
.team-name { display: block; font: 600 0.85rem var(--font-heading); color: var(--text); }

/* The "this could be you" tile at the end of the grid. */
.team-grid > li:not(.team-card) { display: flex; }
.team-join {
  flex: 1;
  border: 1px dashed var(--accent);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  min-height: 100%;
}
.team-join strong { font: 600 0.85rem var(--font-heading); }
.team-join span { font-size: 0.72rem; opacity: 0.85; margin-top: 0.35rem; color: var(--text); }
.team-join:hover { background: rgba(255, 158, 0, 0.08); }

/* The careers page is three short sections; the site-wide section padding
   (built for long landing pages) left a screen of white between each. */
.careers > section:not(.page-hero) { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.careers > section.team-section { padding-top: var(--space-3); padding-bottom: var(--space-2); }
.careers .section-head { margin-bottom: var(--space-3); }
