.am-directory-page {
  padding: 28px 0 56px;
  background: linear-gradient(180deg, #f8fafc 0%, #f4f6fb 100%);
}

.pub-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 26px;
  background: linear-gradient(135deg, #312e81 0%, #4f46e5 58%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 18px 44px rgba(79,70,229,.13);
}
.pub-kicker,
.pub-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.pub-kicker { color: #ddd6fe; }
.pub-hero h1 { margin: 7px 0 10px; color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -.04em; }
.pub-hero p { max-width: 670px; margin: 0; color: rgba(255,255,255,.82); font-size: 1rem; }
.pub-hero-mark { display: grid; place-items: center; width: 104px; height: 104px; flex: 0 0 104px; border: 1px solid rgba(255,255,255,.18); border-radius: 24px; background: rgba(255,255,255,.08); }
.pub-hero-mark svg { width: 44px; fill: none; stroke: #fff; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }

.pub-panel,
.pub-results {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(15,23,42,.04);
}
.pub-panel-head,
.pub-results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.pub-label { color: #4f46e5; }
.pub-panel h2,
.pub-results h2 { margin: 4px 0 0; font-size: 1.35rem; letter-spacing: -.02em; }
.pub-total { padding: 7px 11px; border-radius: 999px; background: #eef2ff; color: #4338ca; font-size: .82rem; font-weight: 800; white-space: nowrap; }

.pub-filters { display: grid; grid-template-columns: minmax(260px, 1.35fr) 1fr 1fr auto; gap: 12px; align-items: end; }
.pub-search-field { position: relative; display: block; }
.pub-search-field svg { position: absolute; left: 14px; top: 50%; width: 19px; transform: translateY(-50%); fill: none; stroke: #64748b; stroke-width: 1.8; stroke-linecap: round; }
.pub-search-field input,
.pub-select-field select { width: 100%; min-height: 46px; border: 1px solid #dbe2ea; border-radius: 12px; background: #fff; color: #0f172a; outline: none; }
.pub-search-field input { padding: 0 14px 0 42px; }
.pub-select-field { display: grid; gap: 6px; color: #475569; font-size: .8rem; font-weight: 700; }
.pub-select-field select { padding: 0 36px 0 12px; }
.pub-search-field input:focus,
.pub-select-field select:focus { border-color: #818cf8; box-shadow: 0 0 0 3px rgba(99,102,241,.10); }
.pub-reset { min-height: 46px; padding: 0 16px; border: 1px solid #dbe2ea; border-radius: 12px; background: #f8fafc; color: #334155; font-weight: 750; cursor: pointer; }
.pub-reset:hover { border-color: #c7d2fe; background: #eef2ff; color: #4338ca; }
.pub-privacy-note { margin: 16px 0 0; color: #64748b; font-size: .84rem; }

.pub-table-wrap { overflow-x: auto; border: 1px solid #e5e7eb; border-radius: 16px; }
.pub-table { width: 100%; border-collapse: collapse; }
.pub-table th { padding: 12px 16px; background: #f8fafc; color: #475569; font-size: .76rem; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.pub-table td { padding: 14px 16px; border-top: 1px solid #eef2f7; color: #475569; font-size: .92rem; }
.pub-table td:first-child { width: 50%; color: #0f172a; }
.pub-chip { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #eef2ff; color: #4338ca; font-size: .76rem; font-weight: 750; }
.pub-table tbody tr:hover { background: #fafbff; }

.pub-cards { display: none; }
.pub-card { padding: 15px 16px; border: 1px solid #e2e8f0; border-radius: 15px; background: #fff; }
.pub-card h3 { margin: 0 0 9px; font-size: 1rem; line-height: 1.35; }
.pub-card-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.pub-card-meta span { padding: 5px 8px; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: .75rem; font-weight: 700; }

.pub-loading,
.pub-empty { display: flex; align-items: center; justify-content: center; gap: 11px; min-height: 140px; color: #64748b; text-align: center; }
.pub-loading[hidden], .pub-empty[hidden] { display: none; }
.pub-empty { flex-direction: column; }
.pub-spinner { width: 22px; height: 22px; border: 2px solid #c7d2fe; border-top-color: #4f46e5; border-radius: 50%; animation: pub-spin .7s linear infinite; }
@keyframes pub-spin { to { transform: rotate(360deg); } }

.pub-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 22px; }
.pub-pagination button { min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid #dbe2ea; border-radius: 10px; background: #fff; color: #334155; font-weight: 750; cursor: pointer; }
.pub-pagination button:hover:not(:disabled),
.pub-pagination button.active { border-color: #4f46e5; background: #4f46e5; color: #fff; }
.pub-pagination button:disabled { opacity: .4; cursor: default; }
.pub-page-gap { display: grid; place-items: center; min-width: 28px; color: #94a3b8; }
.pub-source-note { margin-top: 18px; color: #64748b; font-size: .8rem; text-align: center; }

@media (max-width: 920px) {
  .pub-filters { grid-template-columns: 1fr 1fr; }
  .pub-search-field { grid-column: 1 / -1; }
  .pub-reset { width: 100%; }
}

@media (max-width: 680px) {
  .am-directory-page { padding-top: 16px; }
  .pub-hero { padding: 26px 22px; border-radius: 20px; }
  .pub-hero-mark { display: none; }
  .pub-hero h1 { font-size: 2rem; }
  .pub-panel,
  .pub-results { padding: 18px; border-radius: 18px; }
  .pub-panel-head,
  .pub-results-head { align-items: flex-start; }
  .pub-filters { grid-template-columns: 1fr; }
  .pub-search-field { grid-column: auto; }
  .pub-table-wrap { display: none; }
  .pub-cards { display: grid !important; gap: 10px; }
  .pub-cards[hidden] { display: none !important; }
  .pub-privacy-note { line-height: 1.55; }
}

@media (prefers-reduced-motion: reduce) {
  .pub-spinner { animation: none; }
}
