
.staff-directory {
  --dir-blue: #162f6a;
  --dir-accent: #2876b9;
  --dir-border: #e0e6ed;
  --dir-muted: #687587;

  font-family: inherit;
  color: #263445;
  width: 100%;
}

.staff-directory * {
  box-sizing: border-box;
}

.directory-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--dir-border);
}

.directory-header h1 {
  margin: 0 0 5px;
  color: #162f6a;
  font-size: 29px;
  font-weight: 600;
}

.directory-header p {
  margin: 0;
  color: var(--dir-muted);
  font-size: 14px;
}

.directory-badge {
  padding: 6px 10px;
  border: 1px solid #d6e4f1;
  background: #f0f6fc;
  color: var(--dir-blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .7px;
  white-space: nowrap;
}

.directory-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}

.directory-tools input {
  width: min(100%, 480px);
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #ccd6e1;
  border-radius: 4px;
  background: #fff;
  font: inherit;
  font-size: 14px;
}

.directory-tools input:focus {
  outline: 2px solid #d2e6f9;
  border-color: var(--dir-accent);
}

#directoryCount {
  flex-shrink: 0;
  color: var(--dir-muted);
  font-size: 12px;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.directory-card {
  position: relative;
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--dir-border);
  border-left: 3px solid #162f6a;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 2px 8px rgb(24 52 80 / 3%);
  transition: border-color .2s, box-shadow .2s;
}

.directory-card:hover {
  border-color: #d2dfff;
  border-left-color: var(--dir-accent);
  box-shadow: 0 5px 16px rgb(24 52 80 / 7%);
}

.staff-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.staff-heading h2 {
  margin: 0 0 5px;
  color: var(--dir-blue);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.staff-designation {
  display: inline-block;
  margin: 0;
  padding: 3px 8px;
  border-radius: 3px;
  background: #d2dfff;
  color: #000;
  font-size: 11px;
  line-height: 1.5;
}

.staff-number {
  color: #b0bbc7;
  font-size: 12px;
  font-weight: 600;
}

.staff-division {
  margin: 13px 0;
  color: var(--dir-muted);
  font-size: 13px;
}

.staff-details {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #edf0f4;
}

.staff-details div {
  display: grid;
  grid-template-columns: 53px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.staff-details span {
  padding-top: 2px;
  color: #788597;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .4px;
}

.staff-details a {
  min-width: 0;
  color: #000;
  font-size: 12px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.staff-details a:hover {
  text-decoration: underline;
}

.directory-card[hidden] {
  display: none !important;
}

#directoryEmpty {
  padding: 25px;
  border: 1px dashed var(--dir-border);
  color: var(--dir-muted);
  text-align: center;
}

#directoryEmpty[hidden] {
  display: none;
}

.directory-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 26px;
}

.directory-pagination button {
  min-width: 36px;
  min-height: 36px;
  padding: 6px 11px;
  border: 1px solid var(--dir-border);
  border-radius: 3px;
  background: #fff;
  color: var(--dir-blue);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.directory-pagination button:hover:not(:disabled) {
  background: #edf4fa;
}

.directory-pagination button.active {
  background: var(--dir-blue);
  border-color: var(--dir-blue);
  color: #fff;
}

.directory-pagination button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

@media (max-width: 760px) {
  .directory-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .directory-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .directory-header h1 {
    font-size: 25px;
  }

  .directory-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .directory-tools input {
    width: 100%;
  }

  .directory-card {
    padding: 15px;
  }
}
