/*
 * Sober AF -- public board directory (/team/) card grid.
 *
 * Self-contained: the OLD theme CSS is NOT enqueued on the Tier-D
 * Elementor + JTC front end (memory: tier-d-old-theme-css-not-enqueued),
 * so this ships the full grid + card styling. Scoped under
 * .saf-board-grid / .saf-board-card so nothing leaks to the global
 * JTC chrome.
 *
 * Bump SAF_BOARD_VERSION on every edit (LiteSpeed cache discipline).
 */

.saf-board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 24px;
  width: 100%;
}

.saf-board-card {
  display: flex;
  flex-direction: column;
  background: var(--saf-linen, #f5f1e7);
  border: 1px solid #e5dfd0;
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.saf-board-card:hover,
.saf-board-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(28, 23, 16, 0.12);
}

.saf-board-card__photo {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ece5d4;
  overflow: hidden;
}

.saf-board-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.saf-board-card__monogram {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 3rem;
  letter-spacing: 0.05em;
  color: var(--saf-burgundy, #7b181a);
  background: linear-gradient(135deg, #f5f1e7 0%, #e7dfcc 100%);
}

.saf-board-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px 24px;
}

.saf-board-card__name {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
}

.saf-board-card__name a {
  color: var(--saf-charcoal, #1c1710);
  text-decoration: none;
}

.saf-board-card__name a:hover,
.saf-board-card__name a:focus-visible {
  color: var(--saf-brick-red, #be2727);
  text-decoration: underline;
}

.saf-board-card__role {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--saf-burgundy, #7b181a);
}

.saf-board-card__bio {
  margin: 6px 0 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--saf-fg-muted, #5a554e);
}

.saf-board-card__linkedin {
  margin-top: 12px;
  align-self: flex-start;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--saf-brick-red, #be2727);
  text-decoration: underline;
}

.saf-board-card__linkedin:hover,
.saf-board-card__linkedin:focus-visible {
  color: var(--saf-burgundy, #7b181a);
}

.saf-board-card__sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.saf-board-empty {
  padding: 32px;
  text-align: center;
  color: var(--saf-fg-muted, #5a554e);
}
