.ptf-directory,
.ptf-literature,
.ptf-discussions,
.ptf-cabinet {
  margin: 2rem 0;
}

.ptf-filters,
.ptf-public-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  align-items: end;
  padding: 1.2rem;
  border: 1px solid rgba(23, 37, 84, .1);
  border-radius: 24px;
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
  backdrop-filter: blur(14px);
}

.ptf-public-form {
  margin: 1.5rem 0;
  align-items: stretch;
}

.ptf-public-form h2 {
  grid-column: 1 / -1;
  margin: 0;
}

.ptf-filters label,
.ptf-public-form label {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  font-weight: 700;
  color: #172554;
}

.ptf-filters span {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748b;
}

.ptf-filters input,
.ptf-filters select,
.ptf-public-form input,
.ptf-public-form textarea,
.ptf-public-form select {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, .15);
  border-radius: 14px;
  padding: .82rem .9rem;
  background: #fff;
  color: #0f172a;
  font: inherit;
}

.ptf-filters button,
.ptf-public-form button {
  border: 0;
  border-radius: 16px;
  padding: .95rem 1.1rem;
  background: linear-gradient(135deg, #0f766e, #16a34a);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 15px 30px rgba(15, 118, 110, .24);
}

.ptf-reset,
.ptf-link {
  color: #0f766e;
  font-weight: 800;
  text-decoration: none;
}

.ptf-directory-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.25rem 0;
  color: #64748b;
}

.ptf-directory-toolbar strong {
  color: #0f172a;
}

.ptf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
}

.ptf-grid--literature {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.ptf-card {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  min-height: 230px;
  padding: 1.15rem;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 46px rgba(15, 23, 42, .08);
}

.ptf-card:hover {
  transform: translateY(-2px);
  transition: transform .2s ease;
}

.ptf-card__eyebrow {
  color: #0f766e;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 900;
}

.ptf-card h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
}

.ptf-card h3 a {
  color: #0f172a;
  text-decoration: none;
}

.ptf-card__meta {
  color: #64748b;
  margin: 0;
}

.ptf-card__facts {
  display: grid;
  gap: .55rem;
  margin: 0;
}

.ptf-card__facts div {
  display: grid;
  gap: .1rem;
}

.ptf-card__facts dt {
  font-size: .75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ptf-card__facts dd {
  margin: 0;
  color: #0f172a;
}

.ptf-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
}

.ptf-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .35rem .65rem;
  background: #eef2ff;
  color: #3730a3;
  font-size: .78rem;
  font-weight: 900;
}

.ptf-badge--verified {
  background: #dcfce7;
  color: #166534;
}

.ptf-badge--needs_update,
.ptf-badge--unverified {
  background: #fef3c7;
  color: #92400e;
}

.ptf-badge--draft {
  background: #e2e8f0;
  color: #334155;
}

.ptf-map {
  min-height: 460px;
  margin: 1.35rem 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 18px 55px rgba(15, 23, 42, .10);
  background: #e2e8f0;
}

.ptf-empty,
.ptf-notice {
  grid-column: 1 / -1;
  padding: 1rem;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, .08);
  color: #334155;
}

.ptf-notice {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
  margin: 1rem 0;
}

.ptf-pagination ul {
  display: flex;
  gap: .45rem;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.ptf-pagination a,
.ptf-pagination span {
  display: inline-flex;
  min-width: 2.4rem;
  min-height: 2.4rem;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  text-decoration: none;
}

.ptf-pagination .current {
  background: #0f766e;
  color: #fff;
}

.ptf-role-menu-wrap {
  margin: 1rem 0;
  padding: .65rem;
  border-radius: 18px;
  background: #f8fafc;
}

.ptf-role-menu {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ptf-role-menu a {
  display: inline-flex;
  padding: .65rem .85rem;
  border-radius: 999px;
  color: #0f172a;
  background: #fff;
  text-decoration: none;
  font-weight: 800;
}

.ptf-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.ptf-stats div {
  border-radius: 24px;
  padding: 1.2rem;
  background: #fff;
  box-shadow: 0 12px 35px rgba(15, 23, 42, .08);
}

.ptf-stats strong {
  display: block;
  font-size: clamp(2rem, 5vw, 3.8rem);
  color: #0f766e;
  line-height: 1;
}

.ptf-stats span {
  color: #64748b;
  font-weight: 800;
}

@media (max-width: 760px) {
  .ptf-directory-toolbar,
  .ptf-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .ptf-map {
    min-height: 340px;
  }
}
