/* ===== Pelayanan page ===== */

.pl-hero {
  padding-block: clamp(52px, 8vw, 96px);
  background: var(--primary);
  color: var(--cream);
}

.pl-hero__inner { max-width: 860px; }
.pl-hero h1 { max-width: 14ch; text-wrap: balance; }
.pl-hero__lead { max-width: 46rem; margin-top: 20px; color: rgba(254, 248, 232, .9); }

.pl-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pl-chips, .pl-bidang, .pl-unit { scroll-margin-top: calc(var(--pelayanan-header-height, 11rem) + 1rem); }
.pl-chip {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid rgba(254, 248, 232, .7);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--cream);
  transition: background-color .15s, color .15s, border-color .15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.pl-chip:hover, .pl-chip:focus-visible { background: var(--cream); border-color: var(--cream); color: var(--primary); }

.pl-index {
  padding-block: clamp(36px, 6vw, 64px);
  background: var(--primary);
  color: var(--cream);
}
.pl-index__inner { max-width: 860px; }
.pl-index h2 { text-wrap: balance; }
.pl-index__lead { margin-top: 12px; color: rgba(254, 248, 232, .9); }

.pl-back-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  color: var(--primary);
  font-size: .86rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  touch-action: manipulation;
}

.pl-body { padding-bottom: clamp(48px, 7vw, 84px); }
.pl-bidang { margin-top: clamp(48px, 7vw, 72px); }
.pl-bidang__head {
  padding: 0 0 18px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--line);
}
.pl-bidang__head h2 { text-wrap: balance; }
.pl-bidang__term { color: var(--ink-soft); font-family: var(--font-sans); font-size: .75em; font-style: normal; }
.pl-bidang__fokus { max-width: 54rem; margin-top: 10px; color: var(--ink-soft); }

.pl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.pl-unit {
  min-width: 0;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(61, 49, 43, .06);
  overflow-wrap: break-word;
}
.pl-unit__head { margin-bottom: 14px; }
.pl-unit__kind {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.pl-unit__title { margin: 0; font-size: clamp(1.25rem, 2vw, 1.55rem); text-wrap: balance; }
.pl-unit__abbr { color: var(--ink-soft); font-family: var(--font-sans); font-size: .72em; }
.pl-unit__desc { color: var(--ink-soft); font-size: .92rem; }
.pl-unit__section { margin-top: 18px; }
.pl-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  list-style: disc;
  color: var(--ink-soft);
  font-size: .88rem;
}
.pl-list li { padding-left: 3px; }
.pl-list--nested { margin-top: 8px; list-style: circle; }

.pl-label {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pl-more {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(46, 125, 50, .18);
}
.pl-more > summary {
  min-height: 44px;
  display: list-item;
  align-items: center;
  cursor: pointer;
  color: var(--primary);
  font-size: .86rem;
  font-weight: 700;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.pl-more[open] > summary { margin-bottom: 12px; }
.pl-more .pl-unit__section { margin-top: 12px; }

.pl-note {
  margin-top: 18px;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  font-size: .82rem;
}
.pl-note .pl-list { margin: 0; color: var(--ink-soft); }

.pl-subs {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.pl-subs__title {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-wrap: balance;
}
.pl-unit .pl-unit {
  padding: 18px;
  background: var(--cream);
  box-shadow: none;
}
.pl-unit .pl-unit .pl-unit__title { font-size: 1.05rem; }

.pl-foot {
  max-width: 54rem;
  margin-top: 48px;
  color: var(--ink-soft);
}
.pl-foot a { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .pl-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .pl-chips { display: grid; grid-template-columns: 1fr 1fr; }
  .pl-chip { justify-content: center; text-align: center; }
  .pl-unit { padding: 18px; }
  .pl-bidang__head h2 { font-size: 1.75rem; }
}

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

.pl-intro {
  padding-block: 2rem 0;
}

.pl-intro__title {
  margin: 0 0 1.25rem;
}

.pl-intro__cols {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  align-items: start;
}

.pl-intro__card {
  padding: 1.25rem;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: .75rem;
  background: #fff;
}

.pl-intro__card h3 {
  margin: 0 0 .75rem;
}

.pl-intro__card p:last-child {
  margin-bottom: 0;
}

.pl-intro__card p + p { margin-top: 1rem; }

.pl-cite {
  font-size: .85em;
  opacity: .75;
  white-space: nowrap;
}

.pl-intro__closing {
  max-width: 70ch;
  margin-top: 1.5rem;
}
