/* Styles for the alternate staff page. */

/* Administration contact cards. */
.admin-section {
  padding-bottom: 200px;
}

@media (max-width: 767px) {
  .admin-section {
    padding-bottom: 80px;
  }
}

.admin-directory {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  align-items: flex-start;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 1.5rem 2rem;
  border: 1px solid #dae4d4;
  border-radius: 2.24rem;
  background: #fafbf8;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .admin-card:hover {
    transform: translateY(-4px);
    border-color: #b2c5a9;
    box-shadow: 0 8px 20px rgba(40, 75, 50, 0.12);
  }
}

.admin-card:focus-within {
  border-color: #b2c5a9;
  box-shadow: 0 8px 20px rgba(40, 75, 50, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .admin-card {
    transition: none;
  }

  .admin-card:hover {
    transform: none;
  }
}

.admin-card__name {
  margin: 0 0 0.375rem;
  color: #362c29;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
}

.admin-card__title {
  margin: 0 0 0.75rem;
  color: #625e56;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.admin-card__email {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
  padding-top: 0.75rem;
  border-top: 1px solid #dae4d4;
  color: #284b32;
  font-size: 0.9375rem;
  line-height: 1.5;
  text-underline-offset: 0.2em;
}

.admin-card__email svg {
  flex-shrink: 0;
}

.admin-card__email span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-card__email:hover {
  color: #203c2b;
}

.admin-card__email:focus-visible {
  outline: 2px solid #284b32;
  outline-offset: 4px;
  border-radius: 2px;
}

.faculty-section {
  margin-top: 4rem;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  border-top: 1px solid #e1e8dc;
  border-bottom: 1px solid #e1e8dc;
  background: #f4f7f1;
}

.faculty-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.faculty-section__heading {
  color: #362c29;
}

.faculty-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 1.25rem;
}

.faculty-group {
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid #dae4d4;
  border-radius: 1rem;
  background: #fff;
}

.faculty-group__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 4.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #dae4d4;
}

.faculty-group__heading {
  margin: 0.25rem 0 0;
  color: #362c29;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  text-transform: none;
}

.faculty-group__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.faculty-group__list > li {
  padding: 0.875rem 0;
  border-bottom: 1px solid #edf0e9;
  color: #414e43;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.faculty-group__list > li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

@media (max-width: 991px) {
  .faculty-section__header {
    display: block;
  }

  .faculty-directory {
    grid-template-columns: 1fr;
  }

  .faculty-group__header {
    align-items: center;
    min-height: 0;
  }

  .faculty-group__heading {
    margin: 0;
  }
}

@media (min-width: 576px) and (max-width: 991px) {
  .faculty-group__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
  }

  .faculty-group__list > li:last-child {
    padding-bottom: 0.875rem;
  }
}
