@keyframes pl-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin: 0;
  background-color: transparent;
  color: #374151;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

.pl-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(0.5rem, 2vw, 2rem);
  box-sizing: border-box;
}

.pl-container {
  width: 100%;
  max-width: 60rem;
}

.pl-back-row {
  margin-bottom: clamp(0.5rem, 1.5vw, 0.75rem);
}

.pl-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.15s ease;
}
.pl-back-btn:hover {
  color: #1565c0;
}

.pl-header {
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}
.pl-header__title {
  margin: 0 0 0.25rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
}
.pl-header__subtitle {
  margin: 0 0 0.5rem;
  font-size: clamp(0.875rem, 2vw, 1rem);
  color: #6b7280;
}
.pl-header__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #6b7280;
}
.pl-header__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}
.pl-header__online strong {
  color: #047857;
  font-weight: 700;
}

.pl-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
}

.pl-search {
  position: relative;
  flex: 1 1 16rem;
  display: flex;
  align-items: center;
}
.pl-search svg {
  position: absolute;
  left: 0.75rem;
  width: 1rem;
  height: 1rem;
  stroke: #9ca3af;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.pl-search input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  font-family: inherit;
  font-size: 0.875rem;
  color: #111827;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pl-search input::placeholder {
  color: #9ca3af;
}
.pl-search input:focus {
  outline: none;
  border-color: #1565c0;
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}

.pl-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  user-select: none;
}
.pl-toggle input {
  width: 1rem;
  height: 1rem;
  accent-color: #1565c0;
  cursor: pointer;
}

.pl-list {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1.2vw, 0.75rem);
}

.pl-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: clamp(0.75rem, 2vw, 1rem) clamp(0.875rem, 2vw, 1.125rem);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
@media (hover: hover) {
  .pl-card:hover {
    background: #f0f7ff;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.06);
  }
}
.pl-card__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem clamp(1rem, 2.5vw, 1.75rem);
}
.pl-card__identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1 1 16rem;
  min-width: 0;
}
.pl-card__logo, .pl-card__logo-placeholder {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  object-fit: contain;
}
.pl-card__logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.pl-card__logo-placeholder svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: #9ca3af;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pl-card__id-text {
  min-width: 0;
}
.pl-card__name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.pl-card__name {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.25;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl-card__address {
  margin: 0.125rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: #6b7280;
}
.pl-card__stats {
  display: flex;
  gap: clamp(0.875rem, 2.5vw, 1.5rem);
  flex-shrink: 0;
}
.pl-card__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}
.pl-card__stat-num {
  font-size: clamp(1.125rem, 3vw, 1.375rem);
  font-weight: 700;
  color: #111827;
  font-variant-numeric: tabular-nums;
}
.pl-card__stat-label {
  margin-top: 0.125rem;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}
.pl-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  flex-shrink: 0;
  margin-left: auto;
  padding: 0.5rem 0.875rem;
  background: transparent;
  color: #1565c0;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.pl-card__cta svg {
  width: 0.875rem;
  height: 0.875rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pl-card__cta:hover {
  background: #1565c0;
  border-color: #1565c0;
  color: #fff;
}
.pl-card__sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 1rem;
  margin-top: 0.75rem;
  padding-top: 0.625rem;
  border-top: 1px solid #f3f4f6;
}

@media (max-width: 575.98px) {
  .pl-card__identity {
    flex-basis: 100%;
  }
  .pl-card__stats {
    order: 1;
  }
  .pl-card__cta {
    order: 2;
    width: 100%;
    margin-left: 0;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
  }
}
.pl-status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pl-status--live {
  color: #047857;
}
.pl-status--closed {
  color: #9ca3af;
}
.pl-status__dot {
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: currentColor;
  animation: pl-pulse 2s infinite;
}

.pl-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
}
.pl-meta svg {
  width: 0.875rem;
  height: 0.875rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  opacity: 0.7;
}
.pl-meta--gold {
  color: #b45309;
  font-weight: 600;
}
.pl-meta--gold svg {
  opacity: 1;
}
.pl-meta--link {
  color: #1565c0;
}
.pl-meta--link:hover {
  color: #0d4f9e;
  text-decoration: underline;
}
.pl-meta--link svg {
  opacity: 1;
}

.pl-empty {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  font-size: 0.9375rem;
  color: #6b7280;
  background: #ffffff;
  border: 1px dashed #e5e7eb;
  border-radius: 0.75rem;
}

.pl-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: clamp(1rem, 2vw, 1.5rem);
  padding: clamp(1rem, 2.5vw, 1.5rem);
  background: linear-gradient(135deg, #1565c0 0%, #0d4f9e 100%);
  color: #fff;
  border-radius: 0.75rem;
}
.pl-banner__tag {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}
.pl-banner__text {
  flex: 1 1 12rem;
  margin: 0;
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  font-weight: 600;
  line-height: 1.3;
}
.pl-banner__cta {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  background: #fff;
  color: #1565c0;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: color 0.15s ease;
}
.pl-banner__cta:hover {
  color: #0d4f9e;
}

.pl-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: clamp(1rem, 2vw, 1.5rem);
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
  font-size: 0.75rem;
  color: #6b7280;
}
.pl-footer__credit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.pl-footer__credit a {
  display: inline-flex;
  align-items: center;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.15s ease;
}
.pl-footer__credit a:hover {
  color: #1565c0;
}
.pl-footer__logo {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
}

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