/* Detail Perangkat Desa — minimal, professional */

.staff-page {
  --staff-bg: #fafbfc;
  --staff-surface: #ffffff;
  --staff-ink: #0f172a;
  --staff-muted: #64748b;
  --staff-faint: #94a3b8;
  --staff-line: #e2e8f0;
  --staff-accent: #0c5440;
  --staff-accent-soft: #ecfdf5;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--staff-ink);
  background: var(--staff-bg);
}

.staff-page .staff-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 0 2rem;
}

.staff-page .staff-breadcrumb {
  margin: 0 0 1.35rem;
}

.staff-page .staff-breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--staff-muted);
  font-size: 0.875rem;
}

.staff-page .staff-breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.staff-page .staff-breadcrumb a:hover {
  color: var(--staff-accent);
}

.staff-page .staff-breadcrumb-sep {
  color: #cbd5e1;
}

.staff-page .staff-breadcrumb-current {
  color: var(--staff-ink);
  font-weight: 700;
}

.staff-page .staff-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.staff-page .staff-aside {
  position: sticky;
  top: 96px;
}

.staff-page .staff-portrait {
  position: relative;
  aspect-ratio: 3 / 4;
  max-height: 380px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(165deg, #f1f5f9 0%, #e8f5f0 100%);
  border: 1px solid var(--staff-line);
}

.staff-page .staff-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.staff-page .staff-portrait--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(12, 84, 64, 0.22);
  font-size: 3.5rem;
}

.staff-page .staff-identity {
  margin-top: 1.35rem;
}

.staff-page .staff-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--staff-accent);
}

.staff-page .staff-name {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--staff-ink);
}

.staff-page .staff-role {
  margin: 0.55rem 0 0;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--staff-muted);
}

.staff-page .staff-role-label {
  color: var(--staff-ink);
  font-weight: 700;
}

.staff-page .staff-meta {
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--staff-line);
}

.staff-page .staff-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--staff-line);
  font-size: 0.8125rem;
}

.staff-page .staff-meta-item dt {
  margin: 0;
  color: var(--staff-faint);
  font-weight: 500;
}

.staff-page .staff-meta-item dd {
  margin: 0;
  color: var(--staff-ink);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.staff-page .staff-meta-item a {
  color: inherit;
  text-decoration: none;
}

.staff-page .staff-meta-item a:hover {
  color: var(--staff-accent);
}

.staff-page .staff-main {
  min-width: 0;
  padding-top: 0.25rem;
}

.staff-page .staff-intro {
  margin: 0 0 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--staff-line);
}

.staff-page .staff-intro h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--staff-ink);
}

.staff-page .staff-intro p {
  margin: 0.85rem 0 0;
  max-width: 52ch;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--staff-muted);
}

.staff-page .staff-block + .staff-block {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--staff-line);
}

.staff-page .staff-block-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.staff-page .staff-block-num {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--staff-faint);
  letter-spacing: 0.04em;
}

.staff-page .staff-block-title {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--staff-ink);
}

.staff-page .staff-prose {
  font-size: 1rem;
  line-height: 1.85;
  color: #334155;
  font-weight: 400;
}

.staff-page .staff-prose p {
  margin: 0 0 1rem;
}

.staff-page .staff-prose p:last-child,
.staff-page .staff-prose ul:last-child,
.staff-page .staff-prose ol:last-child {
  margin-bottom: 0;
}

.staff-page .staff-prose strong {
  color: var(--staff-ink);
  font-weight: 600;
}

.staff-page .staff-prose h1,
.staff-page .staff-prose h2,
.staff-page .staff-prose h3,
.staff-page .staff-prose h4 {
  color: var(--staff-ink);
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  line-height: 1.3;
}

.staff-page .staff-prose h1 { font-size: 1.5rem; }
.staff-page .staff-prose h2 { font-size: 1.25rem; }
.staff-page .staff-prose h3 { font-size: 1.125rem; }
.staff-page .staff-prose h4 { font-size: 1rem; }

.staff-page .staff-prose blockquote {
  border-left: 4px solid var(--staff-accent);
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
  color: var(--staff-muted);
}

.staff-page .staff-prose a {
  color: var(--staff-accent);
  text-decoration: underline;
}

.staff-page .staff-prose a:hover {
  text-decoration: none;
}

.staff-page .staff-prose ul,
.staff-page .staff-prose ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.staff-page .staff-prose ul {
  list-style-type: disc;
}

.staff-page .staff-prose ol {
  list-style-type: decimal;
}

.staff-page .staff-prose ul ul,
.staff-page .staff-prose ol ul,
.staff-page .staff-prose ul ol,
.staff-page .staff-prose ol ol {
  margin-top: 0.35rem;
  margin-bottom: 0;
}

.staff-page .staff-prose ul ul {
  list-style-type: circle;
}

.staff-page .staff-prose ul ul ul {
  list-style-type: square;
}

.staff-page .staff-prose li + li {
  margin-top: 0.35rem;
}

.staff-page .staff-empty {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--staff-faint);
  font-style: italic;
}

.staff-page .staff-foot {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--staff-line);
}

.staff-page .staff-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--staff-muted);
  text-decoration: none;
  transition: color 0.15s ease, gap 0.15s ease;
}

.staff-page .staff-back:hover {
  color: var(--staff-accent);
  gap: 0.65rem;
}

@media (max-width: 900px) {
  .staff-page .staff-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .staff-page .staff-aside {
    position: static;
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
  }

  .staff-page .staff-portrait {
    max-height: 180px;
    border-radius: 16px;
  }

  .staff-page .staff-identity {
    margin-top: 0;
  }

  .staff-page .staff-intro {
    display: none;
  }

  .staff-page .staff-name {
    font-size: 1.35rem;
  }
}

@media (max-width: 640px) {
  .staff-page .pub-page-section {
    padding-top: 1rem;
    padding-bottom: 1.25rem;
  }

  .staff-page .staff-wrap {
    padding: 0 1rem 1rem;
  }

  .staff-page .staff-breadcrumb {
    margin: 0 auto 0.85rem;
    width: fit-content;
    max-width: calc(100vw - 2rem);
    padding: 0.3rem 0.55rem;
    border: 1px solid rgba(12, 84, 64, 0.13);
    border-radius: 999px;
    background: rgba(236, 253, 245, 0.78);
  }

  .staff-page .staff-breadcrumb-list {
    flex-wrap: nowrap;
    gap: 0.3rem;
    max-width: 72vw;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    font-size: 0.7rem;
    white-space: nowrap;
  }

  .staff-page .staff-breadcrumb-list::-webkit-scrollbar {
    display: none;
  }

  .staff-page .staff-breadcrumb a,
  .staff-page .staff-breadcrumb-current {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
  }

  .staff-page .staff-breadcrumb-current {
    max-width: 28vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .staff-page .staff-aside {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .staff-page .staff-portrait {
    max-width: 150px;
    margin: 0 auto;
    border-radius: 14px;
  }

  .staff-page .staff-identity {
    margin-top: 1rem;
  }

  .staff-page .staff-kicker {
    margin-bottom: 0.35rem;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .staff-page .staff-name {
    font-size: 1.2rem;
  }

  .staff-page .staff-role {
    margin-top: 0.35rem;
    font-size: 0.86rem;
  }

  .staff-page .staff-main {
    padding-top: 0.4rem;
  }

  .staff-page .staff-block,
  .staff-page .staff-foot {
    padding-left: 0.15rem;
    padding-right: 0.15rem;
  }

  .staff-page .staff-block + .staff-block {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
  }

  .staff-page .staff-block-head {
    gap: 0.5rem;
    margin-bottom: 0.65rem;
  }

  .staff-page .staff-block-num {
    font-size: 0.64rem;
  }

  .staff-page .staff-block-title {
    font-size: 0.68rem;
  }

  .staff-page .staff-prose {
    font-size: 0.86rem;
    line-height: 1.6;
  }

  .staff-page .staff-empty {
    font-size: 0.84rem;
  }

  .staff-page .staff-foot {
    margin-top: 1.4rem;
    padding-top: 1rem;
  }

  .staff-page .staff-back {
    font-size: 0.82rem;
  }

  .staff-page .staff-meta-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .staff-page .staff-meta-item dd {
    text-align: left;
  }
}
