/* Shared LPPM UNUSIA Public Profil Pages (Tupoksi Pegawai & Struktur Pengurus) — DESIGN.md Emerald/Slate */
.lppm-profil-section {
  padding: 36px 0 72px;
}

.lppm-profil-block {
  margin-bottom: 44px;
}

.lppm-profil-block:last-child {
  margin-bottom: 0;
}

.lppm-profil-block-head {
  margin-bottom: 24px;
}

.lppm-profil-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #047857;
  background-color: #ecfdf5;
  border: 1px solid rgba(167, 243, 208, 0.8);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.lppm-profil-heading {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #0f172a;
}

.lppm-profil-desc {
  margin: 6px 0 0;
  font-size: 14.5px;
  color: #64748b;
  max-width: 680px;
}

/* Tupoksi 10-item numbered grid */
.lppm-tupoksi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.lppm-tupoksi-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px -10px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.lppm-tupoksi-item:hover {
  transform: translateY(-2px);
  border-color: #a7f3d0;
  box-shadow: 0 12px 24px -14px rgba(4, 120, 87, 0.2);
}

.lppm-tupoksi-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.lppm-tupoksi-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: #334155;
}

/* Role responsibility cards (Uraian Tugas Jabatan) */
.lppm-role-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.lppm-role-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 8px 24px -14px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.lppm-role-card:hover {
  transform: translateY(-2px);
  border-color: #a7f3d0;
  box-shadow: 0 14px 28px -14px rgba(4, 120, 87, 0.18);
}

.lppm-role-card.is-lead {
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 70%);
  border-color: #a7f3d0;
}

.lppm-role-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.lppm-role-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: #047857;
  color: #ffffff;
  font-size: 17px;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(4, 120, 87, 0.2);
}

.lppm-role-icon.is-slate {
  background-color: #0f172a;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
}

.lppm-role-kicker {
  margin: 0 0 3px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #047857;
}

.lppm-role-title {
  margin: 0;
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
}

.lppm-role-body {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: #475569;
}

.lppm-role-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  font-size: 12px;
  font-weight: 600;
  color: #065f46;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Struktur Pengurus Org Chart */
.lppm-org-board {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 36px 24px;
  box-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.07);
}

.lppm-org-level {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lppm-org-level-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #64748b;
  margin-bottom: 14px;
}

.lppm-org-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.lppm-org-card {
  flex: 1 1 240px;
  max-width: 310px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 18px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 6px 18px -10px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lppm-org-card:hover {
  transform: translateY(-3px);
  border-color: #059669;
  box-shadow: 0 16px 30px -14px rgba(4, 120, 87, 0.22);
}

.lppm-org-card.is-top {
  max-width: 360px;
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 62%);
  border-color: #a7f3d0;
}

.lppm-org-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px #a7f3d0, 0 6px 14px rgba(15, 23, 42, 0.1);
  margin-bottom: 14px;
  display: block;
}

.lppm-org-initials {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px #a7f3d0, 0 6px 14px rgba(4, 120, 87, 0.18);
  margin-bottom: 14px;
}

.lppm-org-role-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background-color: #ecfdf5;
  color: #065f46;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}

.lppm-org-name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.lppm-org-bidang {
  margin: 5px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #64748b;
}

.lppm-org-view-hint {
  margin-top: 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: #047857;
  opacity: 0.85;
}

.lppm-org-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 6px 0;
}

.lppm-org-vline {
  width: 2px;
  height: 28px;
  background-color: #cbd5e1;
}

.lppm-org-branch {
  width: min(64%, 520px);
  height: 18px;
  border-top: 2px solid #cbd5e1;
  border-left: 2px solid #cbd5e1;
  border-right: 2px solid #cbd5e1;
  border-radius: 10px 10px 0 0;
}

/* Lightweight Vanilla Detail Modal */
.lppm-org-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lppm-org-modal-backdrop.is-open {
  display: flex;
}

.lppm-org-modal-dialog {
  width: 100%;
  max-width: 400px;
  background-color: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  text-align: center;
}

.lppm-org-modal-top {
  background: linear-gradient(135deg, #065f46 0%, #047857 100%);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
}

.lppm-org-modal-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  text-align: left;
}

.lppm-org-modal-close {
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lppm-org-modal-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lppm-org-modal-body {
  padding: 28px 24px 24px;
}

.lppm-org-modal-photo {
  width: 140px;
  height: 140px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid #a7f3d0;
  margin: 0 auto 16px;
  display: block;
}

.lppm-org-modal-name {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
}

.lppm-org-modal-bidang {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: #475569;
  line-height: 1.5;
}

.lppm-org-modal-foot {
  padding: 0 24px 22px;
}

@media (min-width: 768px) {
  .lppm-tupoksi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lppm-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lppm-org-board {
    padding: 44px 36px;
  }
}
