/* PF Core — Frontend UI (directory + profile)
   Path: wp-content/mu-plugins/pf-core/frontend/assets/css/frontend.css */

/* Reset bits */
.pf-dir *,.pf-profile *{box-sizing:border-box}

/* Toolbar */
.pf-dir__toolbar{margin:8px 0 12px}
.pf-dir__search{
  width:100%;max-width:460px;height:40px;line-height:40px;
  padding:0 12px;border:1px solid #d9d9d9;border-radius:10px;
  background:#fff;outline:0;transition:border-color .15s ease-in-out
}
.pf-dir__search:focus{border-color:#9aa8ff}

/* Table */
.pf-dir__wrap{overflow:auto;border:1px solid #eee;border-radius:12px}
.pf-dir__table{width:100%;border-collapse:separate;border-spacing:0;min-width:720px}
.pf-dir__table thead th{
  position:sticky;top:0;z-index:1;background:#fafafa;
  font-weight:700;border-bottom:1px solid #e9e9e9;padding:12px
}
.pf-dir__table td{padding:12px;border-bottom:1px solid #f1f1f1;vertical-align:top}
.pf-dir__table tr:hover td{background:#fcfcff}
.pf-dir__firm{font-weight:600}
.pf-dir__cta{white-space:nowrap;text-align:right}

/* Button */
.pf-btn{
  display:inline-block;height:34px;line-height:32px;padding:0 12px;
  border:1px solid #111;border-radius:8px;text-decoration:none;color:#111;background:#fff
}
.pf-btn:hover{background:#111;color:#fff}

/* Profile */
.pf-profile__title{margin:0 0 10px 0;font-weight:700}
.pf-profile__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.pf-kv{border:1px solid #eee;border-radius:10px;padding:10px;background:#fff}
.pf-kv__k{font-size:12px;opacity:.7;margin-bottom:4px}
.pf-kv__v{font-weight:600;word-break:break-word}

/* Utilities */
.pf-msg{padding:12px;border:1px solid #eee;border-radius:8px;background:#fff}

/* Dark mode (respects system) */
@media (prefers-color-scheme: dark){
  .pf-dir__search{background:#0f0f12;border-color:#2a2a30;color:#e9e9ee}
  .pf-dir__search:focus{border-color:#5b6cff}
  .pf-dir__wrap{border-color:#24242a}
  .pf-dir__table thead th{background:#141418;border-bottom-color:#23232a;color:#e9e9ee}
  .pf-dir__table td{border-bottom-color:#1f1f25;color:#e9e9ee}
  .pf-dir__table tr:hover td{background:#151520}
  .pf-btn{border-color:#e9e9ee;color:#e9e9ee;background:transparent}
  .pf-btn:hover{background:#e9e9ee;color:#0b0b0d}
  .pf-kv{background:#0f0f12;border-color:#24242a}
  .pf-msg{background:#0f0f12;border-color:#24242a;color:#e9e9ee}
}

/* Small screens: pin first column */
@media (max-width: 640px){
  .pf-dir__table{min-width:600px}
}

/* Scroll wrapper to stop horizontal overflow */
.pf-dir-wrap{
  overflow-x:auto;
  overflow-y:visible;
  width:100%;
  padding-bottom:8px;
}
.pf-dir{min-width:1200px}

/* Scroll wrapper to stop horizontal overflow */
.pf-dir-wrap{
  overflow-x:auto;
  overflow-y:visible;
  width:100%;
  padding-bottom:8px;
}
.pf-dir{min-width:1200px}
