/* =============================================================
   person-card.css — Person Card Component
   ใช้ร่วมกัน board.php, staff.php, council.php
   ============================================================= */

.pc {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.15s;
}
.pc:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.pc-img-wrap {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #e8eef6;
}
.pc-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* Placeholder — icon กลางพื้นสีฟ้าอ่อน 300x300 */
.pc-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dbeafe;
}
.pc-img-placeholder i {
  font-size: 80px;
  color: #93c5fd;
}

/* Group placeholder */
.pc-img-placeholder.group i {
  font-size: 72px;
}

.pc-body {
  padding: 14px 14px 12px;
}
.pc-name {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 3px;
  line-height: 1.4;
}
.pc-role {
  font-size: 12.5px;
  color: #6b7280;
  margin-bottom: 8px;
}
.pc-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #1a4a8a;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 8px;
}
.pc-phone i {
  font-size: 13px;
}
.pc-phone:hover {
  text-decoration: underline;
}
.pc-zone-badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  background: #eff6ff;
  color: #1e40af;
  font-weight: 500;
}

/* Small variant */
.pc-sm .pc-img-placeholder i {
  font-size: 56px;
}
.pc-sm .pc-name {
  font-size: 13px;
}
.pc-sm .pc-role {
  font-size: 12px;
}

/* Accordion */
.pc-acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 500;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.pc-acc-btn:hover {
  background: #fde68a;
}
.pc-acc-btn i {
  font-size: 13px;
  transition: transform 0.2s;
}
.pc-acc-btn.open i {
  transform: rotate(180deg);
}
.pc-acc-body {
  display: none;
  padding: 6px 0 2px;
  list-style: none;
  counter-reset: acc;
}
.pc-acc-body.open {
  display: block;
}
.pc-acc-body li {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  padding: 3px 4px;
  font-size: 12px;
  color: #4b5563;
  line-height: 1.7;
}
.pc-acc-body li::before {
  content: counter(acc) ".";
  counter-increment: acc;
  color: #9ca3af;
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 1px;
}
