/* People catalog - static replacement for Tilda t-store */
.pc-root {
  font-family: inherit;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* Controls bar */
.pc-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}

.pc-search {
  flex: 1 1 220px;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s;
}
.pc-search:focus {
  border-color: #ff566f;
}

.pc-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pc-filter-label {
  font-size: 13px;
  color: #888;
  margin-right: 4px;
}

.pc-filter-btn {
  padding: 6px 14px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  color: #444;
  white-space: nowrap;
}
.pc-filter-btn:hover {
  border-color: #ff566f;
  color: #ff566f;
}
.pc-filter-btn.active {
  border-color: #ff566f;
  background: #ff566f;
  color: #fff;
}

.pc-count {
  font-size: 13px;
  color: #999;
  margin-left: auto;
  white-space: nowrap;
}

/* Grid */
.pc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

@media (max-width: 600px) {
  .pc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

/* Card */
.pc-card {
  cursor: pointer;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #fff;
}
.pc-card:hover {
  border-color: #ff566f;
  box-shadow: 0 2px 10px rgba(255, 86, 111, 0.1);
}

.pc-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #f5f5f5;
}
.pc-card-img-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 40px;
}

.pc-card-body {
  padding: 12px 14px 14px;
}
.pc-card-name {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  margin: 0 0 4px;
  line-height: 1.3;
}
.pc-card-snippet {
  font-size: 13px;
  color: #666;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* No results */
.pc-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #aaa;
  padding: 40px 0;
  font-size: 15px;
}

/* Modal overlay */
.pc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.18s;
}
.pc-modal-overlay.visible {
  opacity: 1;
}

.pc-modal {
  background: #fff;
  border-radius: 8px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(12px);
  transition: transform 0.18s;
}
.pc-modal-overlay.visible .pc-modal {
  transform: translateY(0);
}

.pc-modal-close {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: flex-end;
  padding: 10px 14px 0;
  background: #fff;
  z-index: 1;
}
.pc-modal-close button {
  border: none;
  background: none;
  font-size: 26px;
  cursor: pointer;
  color: #aaa;
  line-height: 1;
  padding: 0;
}
.pc-modal-close button:hover {
  color: #ff566f;
}

.pc-modal-inner {
  padding: 0 28px 28px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 520px) {
  .pc-modal-inner {
    grid-template-columns: 1fr;
  }
}

.pc-modal-photo {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  display: block;
  background: #f5f5f5;
}
.pc-modal-photo-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 48px;
}

.pc-modal-content {}
.pc-modal-name {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin: 0 0 12px;
  line-height: 1.3;
}
.pc-modal-text {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
}
.pc-modal-text p {
  margin: 0 0 10px;
}
.pc-modal-tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pc-modal-tag {
  font-size: 12px;
  background: #f5f5f5;
  border-radius: 20px;
  padding: 3px 10px;
  color: #666;
}
