:root {
  --esc-blue:        #183756;
  --esc-blue-light:  #e8f0f7;
  --esc-blue-mid:    #c8d9ea;
  --esc-blue-deep:   #ddeaf5;
  --esc-blue-deep-border: #a8c4dc;
  --card-radius:     13px;
  --grid-min:        400px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--grid-min), 1fr));
  gap: 20px;
  padding: 4px 0 16px;
  align-items: stretch;
}

/* ── Standard card ── */
.staff-card {
  display: flex;
  align-items: flex-start;
  align-self: stretch;
  gap: 16px;
  background: #fff;
  border: 1px solid #dce6f0;
  border-radius: var(--card-radius);
  padding: 20px;
  transition: box-shadow 0.15s ease;
}

.staff-card:hover {
  box-shadow: 0 2px 10px rgba(24, 55, 86, 0.12);
}

/* ── Leadership card ── */
.staff-card.leadership {
  background: var(--esc-blue-light);
  border-color: var(--esc-blue-mid);
}

.staff-card.leadership:hover {
  box-shadow: 0 2px 12px rgba(24, 55, 86, 0.18);
}

/* ── Featured card ── */
.staff-card.featured {
  background: var(--esc-blue-deep);
  border-color: var(--esc-blue-deep-border);
}

.profile-container {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  margin: 4px 0;
}

.profile-container img {
  width: 160px;
  height: 160px;
  border-radius: var(--card-radius);
  object-fit: cover;
  display: block;
}

.profile-container img:focus {
  outline: 2px solid var(--esc-blue);
  outline-offset: 2px;
}

.staff-info {
  flex: 1;
  min-width: 0;
  padding-top: 10px;
}

.staff-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--esc-blue);
  margin-bottom: 2px;
  line-height: 1.2;
}

.staff-title {
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 6px;
  font-style: italic;
}

.leadership .staff-title,
.featured .staff-title {
  color: #3a5a7a;
  font-style: normal;
  font-weight: 600;
}

.staff-contact {
  font-size: 0.875rem;
  color: #444;
  line-height: 1.7;
}

.staff-contact span {
  font-weight: 700;
}

.staff-contact a {
  color: var(--esc-blue);
  text-decoration: none;
  word-break: break-word;
  overflow-wrap: break-word;
}

.staff-contact a:hover,
.staff-contact a:focus {
  text-decoration: underline;
}

/* ── Optional notes list ── */
.staff-notes {
  margin-top: 8px;
  padding-left: 18px;
  font-size: 0.75rem;
  color: #555;
  line-height: 1.6;
}
