.emp-directory {
  --emp-green: #1f7a4c;
  --emp-green-dark: #14583a;
  --emp-green-soft: #eaf4ee;
  --emp-ink: #17251d;
  --emp-muted: #5c6f64;
  --emp-line: #dbe7df;
  --emp-surface: #ffffff;
  --emp-radius: 16px;
  color: var(--emp-ink);
  padding: 10px 6px 56px;
}

/* ---------- hero ---------- */
.emp-hero {
  padding: 18px 0 6px;
}
.emp-hero__eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--emp-green);
}
.emp-hero__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--emp-ink);
}
.emp-hero__lead {
  margin: 8px 0 0;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--emp-muted);
}

/* ---------- toolbar ---------- */
.emp-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 22px 0 12px;
}
.emp-search {
  position: relative;
  flex: 1 1 260px;
  max-width: 420px;
}
.emp-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.emp-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #7c9186;
  pointer-events: none;
  display: inline-flex;
}
.emp-search__input {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 40px;
  border: 1px solid var(--emp-line);
  border-radius: 12px;
  background: var(--emp-surface);
  font-size: 14px;
  color: var(--emp-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.emp-search__input::placeholder { color: #93a79b; }
.emp-search__input:focus {
  outline: none;
  border-color: var(--emp-green);
  box-shadow: 0 0 0 3px rgba(31, 122, 76, .14);
}
.emp-toolbar__status {
  margin: 0;
  font-size: 13px;
  color: var(--emp-muted);
}

/* ---------- department filter ---------- */
.emp-filter {
  position: relative;
  flex: 0 1 250px;
  min-width: 190px;
}
.emp-filter__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.emp-filter__select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 46px;
  padding: 0 38px 0 14px;
  border: 1px solid var(--emp-line);
  border-radius: 12px;
  background: var(--emp-surface);
  color: var(--emp-ink);
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.emp-filter__select:hover { border-color: #b9d3c4; }
.emp-filter__select:focus {
  outline: none;
  border-color: var(--emp-green);
  box-shadow: 0 0 0 3px rgba(31, 122, 76, .14);
}
.emp-filter__chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  color: #6d8578;
  pointer-events: none;
}

/* ---------- groups ---------- */
.emp-groups { margin-top: 26px; }
.emp-group { margin-bottom: 34px; }
.emp-group__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--emp-line);
}
.emp-group__title {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  color: var(--emp-green-dark);
}
.emp-group__count {
  font-size: 12.5px;
  color: var(--emp-muted);
  white-space: nowrap;
}

/* ---------- cards ---------- */
.emp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}
.emp-card {
  background: var(--emp-surface);
  border: 1px solid var(--emp-line);
  border-radius: var(--emp-radius);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.emp-card:hover,
.emp-card:focus-within {
  transform: translateY(-3px);
  border-color: #c4dccd;
  box-shadow: 0 10px 24px rgba(20, 88, 58, .10);
}
.emp-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.emp-card__photo {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #eaf4ee, #dfeee4);
  overflow: hidden;
}
.emp-card__photo::after {
  content: attr(data-initial);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
  color: rgba(31, 122, 76, .45);
}
.emp-card__photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}
.emp-card__photo.is-missing img { display: none; }
.emp-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px 15px;
}
.emp-card__name {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--emp-ink);
}
.emp-card__role {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--emp-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- empty / no results ---------- */
.emp-empty {
  margin: 34px 0 10px;
  padding: 46px 24px;
  border: 1px dashed #c9dccf;
  border-radius: 20px;
  background: #fbfdfb;
  text-align: center;
}
.emp-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--emp-green-soft);
  color: var(--emp-green);
}
.emp-empty__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
}
.emp-empty__text {
  margin: 0 auto 18px;
  max-width: 460px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--emp-muted);
}
.emp-empty__link {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--emp-green);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}
.emp-empty__link:hover { background: var(--emp-green-dark); color: #fff; }

.emp-no-results {
  margin: 26px 0;
  padding: 30px 18px;
  border: 1px dashed #c9dccf;
  border-radius: 14px;
  text-align: center;
  font-size: 14px;
  color: var(--emp-muted);
}

/* ---------- responsive ---------- */
@media (max-width: 575.98px) {
  .emp-hero__lead { font-size: 14px; }
  .emp-toolbar { margin-top: 16px; }
  .emp-search { max-width: none; }
  .emp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .emp-filter {
    flex: 1 1 100%;
    min-width: 0;
  }
  .emp-filter__select {
    height: 48px;
    font-size: 16px;
    padding: 0 38px 0 14px;
  }
  .emp-search__input { height: 48px; }
  .emp-card__body { padding: 10px 11px 13px; }
  .emp-card__name { font-size: 13.5px; }
  .emp-card__role { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .emp-card,
  .emp-search__input,
  .emp-filter__select { transition: none; }
  .emp-card:hover { transform: none; }
}
