/* =========================================================================
   ep3-mem-card — Member card component.
   Used on the People directory (/people.html).

   The simpler photo-only ep3-mem-tile used in the home strip is defined in
   ep3-home.css; this is the richer directory variant with title, role, and
   per-member initiative count.

   All tokens from webshield-navy.css.
   ========================================================================= */

.ep3-mem-card {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  background: var(--ws-surface);
  border: 1px solid var(--ws-rule);
  padding: 28px 22px 22px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.ep3-mem-card[href]:hover {
  transform: translateY(-2px);
  border-color: var(--ws-ink-faint);
  box-shadow: 0 12px 28px rgba(11, 31, 58, 0.08);
}

.ep3-mem-card__photo {
  width: 108px; height: 108px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 18px;
  border: 1px solid var(--ws-rule);
  background: var(--ws-surface-2);
}
.ep3-mem-card__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.ep3-mem-card__name {
  font-family: var(--ws-font-display);
  font-size: 17px; font-weight: 500;
  line-height: 1.25; letter-spacing: -0.005em;
  color: var(--ws-ink);
  margin: 0 0 6px;
}
.ep3-mem-card__title {
  font-family: var(--ws-font-body);
  font-size: 12.5px; line-height: 1.5;
  color: var(--ws-ink-muted);
  margin: 0 0 6px;
}
.ep3-mem-card__role {
  font-family: var(--ws-font-body);
  font-size: 11.5px; line-height: 1.4;
  color: var(--ws-ink-faint); font-style: italic;
  margin: 0 0 14px;
}
.ep3-mem-card__inits {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--ws-rule-faint);
  font-family: var(--ws-font-mono);
  /* A·01 contrast bump + F·05 weight bump: the "N Accelerators →" line
     is the most interesting data on the card, but currently reads as a
     forgotten counter. Larger + bolder makes it visible as data; ink
     (not ink-faint) on hover teaches it's a cross-link. */
  font-size: 11.5px; font-weight: 500;
  letter-spacing: var(--ws-tracking-mono);
  text-transform: uppercase;
  color: var(--ws-ink-muted);
}
.ep3-mem-card[href]:hover .ep3-mem-card__inits { color: var(--ws-accent); }

/* Hidden states used by people-filter.js. */
.ep3-mem-card[hidden] { display: none; }

/* M·04 — On the 2-up grid (<820px), long "Title, Organization" lines
   were cascading some cards into 3-line ragged rows. Clamp to 2 lines
   with ellipsis so heights stay aligned without losing the meaningful
   leading words. */
@media (max-width: 820px) {
  .ep3-mem-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
