/* ==========================================================================
   CARDS - shift cards (View "shifts" band) and team portraits (View "team").
   Markup: templates/content/node--shift--teaser.html.twig,
           node--team-member--teaser.html.twig, views-view-unformatted--*.
   ========================================================================== */
/* --- Shifts band (full-bleed section placed in a page by the Paragraph) --- */
.shifts-band {
  /* padding: var(--epsa-section-y) var(--epsa-side); */
  /* background: var(--epsa-navy-mid); */
}
.shifts-band__inner { max-width: 1240px; margin: 0 auto; }
.shifts-band__title { margin: 1rem 0 0; font-size: clamp(1.7rem, 3.1vw, 2.75rem); line-height: 1.1; letter-spacing: -0.015em; }
.shifts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
  margin-top: clamp(1.75rem, 3.4vw, 2.75rem);
}
.shift-card {
  position: relative;
  display: flex; flex-direction: column;
  overflow: hidden;
  border-radius: var(--epsa-radius-card);
  background: var(--epsa-navy);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.shift-card:hover, .shift-card:focus-within { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.5); }
.shift-card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--epsa-radius-card); }
.shift-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.shift-card__body { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 6.5rem; padding: 1.5rem 1.625rem 1.75rem; }
.shift-card__title { margin: 0; font-size: clamp(1.17rem, 1.7vw, 1.5rem); font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.15; }
.shift-card__title a { color: var(--epsa-gold); }
.shift-card__title a::after { content: ''; position: absolute; inset: 0; } /* stretched link */
.shift-card__subtitle { margin: 0.375rem 0 0; font-size: 1.125rem; color: var(--epsa-ink); }
.shift-card__arrow {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--epsa-gold);
}
.shift-card__arrow::before {
  content: ''; width: 0.65rem; height: 0.85rem; background: var(--epsa-navy);
  -webkit-mask: url('../images/chevron.png') center / contain no-repeat;
  mask: url('../images/chevron.png') center / contain no-repeat;
}
.shifts-band .btn-row { margin-top: clamp(2.25rem, 4vw, 3.25rem); }

/* --- Team grid ---------------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: clamp(0.875rem, 2vw, 1.5rem);
  margin-top: 2rem;
}
.team-card { margin: 0; text-align: left; }
.team-card__photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 0.75rem; background: repeating-linear-gradient(135deg, #1E2A36 0 10px, #223040 10px 20px); }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-card__name { margin: 0.875rem 0 0; font-size: 1.125rem; font-weight: 600; text-align: center; }
.team-card__role { margin: 0.125rem 0 0; font-size: 0.9rem; text-align: center; color: var(--epsa-muted); }

/* --- Generic image card (3col / multicol with images) -------------------- */
.card-epsa { background: var(--epsa-navy-light); border: 1px solid var(--epsa-line-soft); border-radius: var(--epsa-radius-card); overflow: hidden; height: 100%; }
