/* Direktori Peserta — TEP 2026 (memakai variabel dari profil.css) */

.dir-shell { max-width: 1040px; }

.dir-hero { text-align: center; padding: 18px 8px 26px; }
.dir-hero__eyebrow {
  display: inline-block;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-600);
  background: var(--gold-100);
  padding: 5px 14px; border-radius: 999px;
}
.dir-hero__title { margin: 14px 0 8px; font-size: 2.1rem; font-weight: 800; color: var(--ink-900); letter-spacing: -0.02em; }
.dir-hero__lead { margin: 0 auto; max-width: 560px; color: var(--ink-500); font-size: 0.96rem; line-height: 1.6; }

.dir-stats { display: flex; justify-content: center; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.dir-stat {
  background: #fff; border: 1px solid var(--ink-200); border-radius: 14px;
  padding: 12px 22px; min-width: 110px; box-shadow: var(--shadow-sm);
}
.dir-stat span { display: block; font-size: 1.5rem; font-weight: 800; color: var(--navy-800); }
.dir-stat small { color: var(--ink-500); font-size: 0.78rem; font-weight: 600; }

.dir-controls {
  display: flex; gap: 10px; flex-wrap: wrap;
  position: sticky; top: 64px; z-index: 10;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(6px);
  padding: 12px 0; margin-bottom: 8px;
}
.dir-search {
  flex: 1; min-width: 220px;
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--ink-200); border-radius: 999px;
  padding: 0 14px; box-shadow: var(--shadow-sm);
}
.dir-search svg { color: var(--ink-500); flex: none; }
.dir-search input { flex: 1; border: 0; outline: 0; font: inherit; padding: 11px 0; background: transparent; color: var(--ink-900); }
.dir-select {
  font: inherit; font-size: 0.88rem; font-weight: 600;
  color: var(--ink-700);
  background: #fff; border: 1px solid var(--ink-200); border-radius: 999px;
  padding: 10px 16px; cursor: pointer; box-shadow: var(--shadow-sm);
  max-width: 220px;
}

.dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.dir-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--ink-200); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  color: inherit;
  /* Lewati render kartu di luar layar (hemat saat ribuan kartu). */
  content-visibility: auto;
  contain-intrinsic-size: 240px;
}
.dir-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--navy-200); color: inherit; }
.dir-card__top {
  height: 56px;
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  position: relative;
}
.dir-card__avatar {
  width: 84px; height: 84px; border-radius: 50%;
  border: 4px solid #fff; margin: -42px auto 0;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
  color: #fff; display: grid; place-items: center;
  font-size: 1.5rem; font-weight: 800; overflow: hidden;
  position: relative; z-index: 1;
}
.dir-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.dir-card__body { padding: 12px 14px 18px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.dir-card__name { font-weight: 700; font-size: 0.98rem; color: var(--ink-900); line-height: 1.3; }
.dir-card__role { font-size: 0.76rem; font-weight: 700; color: var(--gold-600); text-transform: uppercase; letter-spacing: 0.04em; }
.dir-card__mitra { font-size: 0.82rem; color: var(--ink-500); margin-top: 4px; }
.dir-card__kawasan {
  margin-top: auto; padding-top: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 0.8rem; color: var(--navy-700); font-weight: 600;
}
.dir-card__kawasan svg { color: var(--navy-500); flex: none; }
.dir-card__kawasan--empty { color: var(--ink-300); font-weight: 500; }

.dir-noresult { text-align: center; color: var(--ink-500); padding: 50px 20px; font-size: 0.95rem; }

@media (max-width: 560px) {
  .dir-hero__title { font-size: 1.6rem; }
  .dir-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .dir-controls { top: 60px; }
  .dir-card__avatar { width: 70px; height: 70px; margin-top: -36px; }
}
