/* ==========================================================================
   Staff
   ========================================================================== */

.staff-list { border-top: 1px solid var(--line-strong); }
.staff-list:empty { border-top: 0; }
.staff-list:empty::after { content: "The team will be listed here shortly."; color: var(--stone); font-size: var(--fs-body-l); }

.staff-person {
  display: grid;
  grid-template-columns: 112px minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: 14px clamp(18px, 3vw, 48px);
  padding: clamp(18px, 2vw, 26px) 0;
  border-bottom: 1px solid var(--line);
}

.staff-avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; background: var(--ink-2); filter: var(--media-filter); transition: filter .8s ease; }
.staff-person:hover .staff-avatar,
.staff-person:focus-within .staff-avatar { filter: none; }

.staff-role { color: var(--stone); font-size: .9375rem; line-height: 1.45; }
.staff-person h3 { margin-top: 6px; font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.2; overflow-wrap: anywhere; }
.staff-name-link { text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat left 100% / 100% 1px; transition: background-size .45s var(--ease); }
.staff-name-link:hover { background-position: right 100%; background-size: 0 1px; }

.staff-contact { display: grid; justify-items: end; gap: 8px; text-align: right; font-size: 1rem; font-weight: 500; overflow-wrap: anywhere; }
.staff-contact span { color: var(--stone); font-size: .875rem; font-weight: 400; }
.staff-contact a { text-decoration-thickness: 1px; }
.staff-contact a:hover { text-decoration-thickness: 2px; }

@media (pointer: coarse) {
  .staff-contact a,
  .staff-name-link { position: relative; }
  .staff-contact a::before,
  .staff-name-link::before { content: ""; position: absolute; inset: -8px -6px; }
}

@media (max-width: 700px) {
  .staff-person { grid-template-columns: 72px minmax(0, 1fr); }
  .staff-avatar { width: 72px; height: 72px; }
  .staff-contact { grid-column: 2; justify-items: start; text-align: left; }
}
