/* Shared: public directory + member listing preview (same card look). */
body.dir-public-page {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: #f1f5f9;
  color: #0f172a;
}
.dir-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 45%, #0c4a6e 100%);
  color: #fff;
  padding: 2.5rem 0 2rem;
}
.dir-hero-brand {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.dir-hero-logo-link {
  display: block;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.dir-hero-logo-link:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}
.dir-hero-logo {
  height: 3.25rem;
  width: auto;
  max-width: min(220px, 42vw);
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.35));
}
@media (min-width: 768px) {
  .dir-hero-logo {
    height: 4rem;
    max-width: 260px;
  }
}
.dir-hero-copy {
  flex: 1;
  min-width: min(100%, 280px);
}
.dir-hero h1 {
  font-weight: 700;
  letter-spacing: -0.02em;
}
.dir-card {
  border: none;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  background: #fff;
}
.dir-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}
.dir-card.featured {
  box-shadow: 0 0 0 2px #0ea5e9, 0 12px 40px rgba(14, 165, 233, 0.2);
}
.dir-photo-wrap {
  aspect-ratio: 1;
  background: linear-gradient(145deg, #e2e8f0, #f8fafc);
  position: relative;
}
.dir-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dir-featured-pill {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #0ea5e9;
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}
.dir-name {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
}
.dir-company {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.15rem;
}
.dir-loc {
  font-size: 0.875rem;
  color: #334155;
  margin-top: 0.5rem;
}
.dir-exp {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.35rem;
}
.dir-badge {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
  flex-shrink: 0;
}
.dir-links a {
  font-size: 0.8rem;
  margin-right: 0.65rem;
  color: #0369a1;
  text-decoration: none;
}
.dir-links a:hover {
  text-decoration: underline;
}
.dir-search {
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
}

/* Member preview strip */
.dir-preview-banner {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-bottom: 1px solid #f59e0b;
  color: #78350f;
  padding: 0.85rem 0;
}
.dir-preview-banner strong {
  color: #451a03;
}
