/* ─── Alumni page (/alumni/) ────────────────────────────
   Card grid grouped by "Class of YYYY-YYYY". Cards are
   smaller and denser than .ch-staff-card since alumni
   are historical and the list will keep growing.
   ──────────────────────────────────────────────────────── */

.ch-alumni-wrap {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.ch-alumni-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Tweak the section head used inside the alumni wrap — count chip on right */
.ch-alumni-section > .ch-section-head {
  margin-bottom: 0;
}

.ch-alumni-count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── Card grid ─────────────────────────────────────────── */
.ch-alumni-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ch-alumni-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  /* Strip default <a> styling — the card may render as an anchor when the
     player has a detail page on /player/{slug}/. */
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ch-alumni-card:hover,
.ch-alumni-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -16px rgba(20, 35, 63, 0.25);
  border-color: var(--line-strong);
  outline: none;
}

.ch-alumni-card:focus-visible {
  outline: 2px solid var(--tertiary-dark);
  outline-offset: 2px;
}

/* Title tints to ice-blue on hover for a small affordance hint */
.ch-alumni-card:hover .ch-alumni-card__name,
.ch-alumni-card:focus-visible .ch-alumni-card__name {
  color: var(--tertiary-dark);
}

/* Photo frame — square aspect, gradient placeholder behind */
.ch-alumni-card__photo {
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    linear-gradient(145deg, var(--primary-soft) 0%, var(--primary-dark) 100%);
  overflow: hidden;
}

.ch-alumni-card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.12), transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.ch-alumni-card__photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 1;
}

.ch-alumni-card__initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 48px);
  letter-spacing: 0.04em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.22);
}

/* Body */
.ch-alumni-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px 16px;
}

.ch-alumni-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--ink);
}

.ch-alumni-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
}

.ch-alumni-card__pos {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tertiary-dark);
}

.ch-alumni-card__hometown {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-soft);
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1100px) {
  .ch-alumni-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .ch-alumni-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ch-alumni-count {
    display: none;
  }
}

@media (max-width: 420px) {
  .ch-alumni-grid {
    grid-template-columns: 1fr;
  }
  .ch-alumni-card__photo {
    aspect-ratio: 16 / 10;
  }
}
