/* DesainKita — Pusat Bantuan / Dokumentasi (/bantuan/ & /bantuan/<slug>/).
   Layout: sidebar (kategori + pencarian) + artikel. Dipakai oleh
   archive-dk_doc.php & single-dk_doc.php (template-parts/docs-layout.php). */

.docs-page {
  background: linear-gradient(180deg, #f4f7ff 0, #fff 340px);
  padding: 26px 0 56px;
  min-height: 70vh;
}

.docs-wrap {
  width: min(1280px, 100% - 48px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 308px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

/* ---------------------------------------------------------------- sidebar */
.docs-side {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 112px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line, #e4eaf2);
  border-radius: 18px;
  padding: 16px 14px 14px;
  box-shadow: 0 10px 30px rgba(28, 35, 61, 0.06);
  scrollbar-width: thin;
}
.docs-side-head { padding: 0 4px 12px; border-bottom: 1px solid var(--line, #e4eaf2); }
.docs-kicker {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue, #3764d8);
}
.docs-side-title {
  display: block;
  font-family: Teachers, "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy, #1c233d);
  text-decoration: none;
  margin-top: 2px;
}
.docs-side-sub { font-size: 12px; color: var(--slate, #64748b); margin: 2px 0 0; }

.docs-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 8px;
  padding: 0 10px;
  height: 40px;
  border: 1px solid var(--line, #e4eaf2);
  border-radius: 12px;
  background: #f8fafc;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.docs-search:focus-within {
  background: #fff;
  border-color: var(--blue, #3764d8);
  box-shadow: 0 0 0 3px rgba(55, 100, 216, 0.12);
}
.docs-search svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--slate, #64748b); }
.docs-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: 13.5px;
  color: var(--navy, #1c233d);
}
.docs-search-x {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--slate, #64748b);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}
.docs-search-hint { font-size: 12px; color: var(--slate, #64748b); margin: 0 4px 8px; }

.docs-nav { display: flex; flex-direction: column; gap: 14px; }
.docs-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 4px 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate, #64748b);
}
.docs-nav-head em {
  font-style: normal;
  min-width: 20px;
  text-align: center;
  padding: 1px 6px;
  border-radius: 99px;
  background: #eef2ff;
  color: var(--blue, #3764d8);
  font-size: 10px;
}
.docs-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.docs-nav-link {
  display: block;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--navy, #1c233d);
  text-decoration: none;
  transition: background 0.14s, color 0.14s;
}
.docs-nav-link:hover { background: #f1f5ff; color: var(--blue, #3764d8); }
.docs-nav-link.is-on {
  background: var(--blue, #3764d8);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(55, 100, 216, 0.24);
}
.docs-nav-item.is-hidden, .docs-nav-group.is-hidden { display: none; }

.docs-side-cta {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #eef4ff, #f8fafc);
  border: 1px solid #e0e9ff;
}
.docs-side-cta strong { display: block; font-size: 13px; color: var(--navy, #1c233d); }
.docs-side-cta p { font-size: 12.5px; color: var(--slate, #64748b); margin: 4px 0 10px; line-height: 1.5; }
.docs-side-cta .btn { width: 100%; justify-content: center; }

/* ------------------------------------------------------------------- main */
.docs-main { min-width: 0; }
.docs-side-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 14px;
  padding: 11px 14px;
  border: 1px solid var(--line, #e4eaf2);
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--navy, #1c233d);
  cursor: pointer;
}
.docs-side-toggle svg { width: 17px; height: 17px; }

.docs-article {
  background: #fff;
  border: 1px solid var(--line, #e4eaf2);
  border-radius: 20px;
  padding: 30px clamp(20px, 3vw, 40px) 34px;
  box-shadow: 0 14px 40px rgba(28, 35, 61, 0.07);
}

.docs-crumb { font-size: 12.5px; color: var(--slate, #64748b); display: flex; gap: 6px; flex-wrap: wrap; }
.docs-crumb a { color: var(--slate, #64748b); text-decoration: none; }
.docs-crumb a:hover { color: var(--blue, #3764d8); }

.docs-pill {
  display: inline-block;
  margin: 14px 0 0;
  padding: 4px 10px;
  border-radius: 99px;
  background: #eef4ff;
  color: var(--blue, #3764d8);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.docs-head h1 {
  font-family: Teachers, "Segoe UI", sans-serif;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--navy, #1c233d);
  margin: 10px 0 8px;
}
.docs-lead { font-size: 15.5px; line-height: 1.65; color: var(--slate, #64748b); margin: 0 0 14px; }
.docs-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line, #e4eaf2); }
.docs-updated { font-size: 12px; color: var(--slate, #64748b); }
.docs-mini {
  border: 1px solid var(--line, #e4eaf2);
  background: #fff;
  color: var(--navy, #1c233d);
  border-radius: 9px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.docs-mini:hover { border-color: #c7d6f5; background: #f7faff; }
.docs-mini.is-admin { color: var(--blue, #3764d8); border-color: #cddcff; background: #f5f9ff; }

/* isi artikel */
.docs-body { font-size: 15px; line-height: 1.75; color: #2b3350; }
.docs-body > *:first-child { margin-top: 0; }
.docs-body h2 {
  font-family: Teachers, "Segoe UI", sans-serif;
  font-size: 20px;
  color: var(--navy, #1c233d);
  margin: 30px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line, #e4eaf2);
}
.docs-body h3 { font-size: 16px; color: var(--navy, #1c233d); margin: 22px 0 8px; }
.docs-body p { margin: 0 0 14px; }
.docs-body ul, .docs-body ol { margin: 0 0 16px; padding-left: 22px; }
.docs-body li { margin-bottom: 7px; }
.docs-body li::marker { color: var(--blue, #3764d8); font-weight: 700; }
.docs-body a { color: var(--blue, #3764d8); text-decoration: underline; text-underline-offset: 2px; }
.docs-body strong { color: var(--navy, #1c233d); }
.docs-body code {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 13px;
  color: #0f172a;
  white-space: nowrap;
}
.docs-body table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14px; }
.docs-body th, .docs-body td { border: 1px solid var(--line, #e4eaf2); padding: 9px 11px; text-align: left; vertical-align: top; }
.docs-body th { background: #f8fafc; font-weight: 700; color: var(--navy, #1c233d); }
.docs-body blockquote {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-left: 3px solid var(--blue, #3764d8);
  background: #f7faff;
  border-radius: 0 10px 10px 0;
  color: #33415c;
}
.docs-body img { max-width: 100%; height: auto; border-radius: 12px; }
.docs-body figure { margin: 0 0 18px; }
.docs-body .wp-block-heading { margin-top: 26px; }

/* navigasi bawah */
.docs-pager { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 30px; }
.docs-pager-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 15px;
  border: 1px solid var(--line, #e4eaf2);
  border-radius: 14px;
  text-decoration: none;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.docs-pager-item:hover { border-color: #c7d6f5; box-shadow: 0 8px 22px rgba(28, 35, 61, 0.08); transform: translateY(-1px); }
.docs-pager-item em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate, #64748b); }
.docs-pager-item strong { font-size: 14px; color: var(--navy, #1c233d); }
.docs-pager-item.is-next { text-align: right; }

.docs-help {
  margin-top: 26px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(120deg, #eef4ff, #f7f9ff);
  border: 1px solid #e0e9ff;
}
.docs-help strong { display: block; color: var(--navy, #1c233d); font-size: 14.5px; }
.docs-help p { font-size: 13.5px; color: var(--slate, #64748b); margin: 4px 0 10px; }

.docs-foot { font-size: 12.5px; color: var(--slate, #64748b); text-align: center; margin: 18px 0 0; }

/* --------------------------------------------------------------- halaman indeks */
.docs-hero { margin-bottom: 22px; }
.docs-hero h1 {
  font-family: Teachers, "Segoe UI", sans-serif;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--navy, #1c233d);
  margin: 8px 0 10px;
}
.docs-hero-meta { font-size: 13.5px; color: var(--slate, #64748b); }

.docs-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 18px 0 26px; }
.docs-quick-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px;
  border: 1px solid var(--line, #e4eaf2);
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.docs-quick-card:hover { border-color: #c7d6f5; box-shadow: 0 10px 26px rgba(28, 35, 61, 0.09); transform: translateY(-2px); }
.docs-quick-ico { font-size: 20px; }
.docs-quick-card strong { font-size: 15px; color: var(--navy, #1c233d); }
.docs-quick-card em { font-style: normal; font-size: 12.5px; color: var(--slate, #64748b); line-height: 1.45; }
.docs-quick-card b { margin-top: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--blue, #3764d8); }

.docs-index { display: flex; flex-direction: column; gap: 22px; }
.docs-cat { scroll-margin-top: 96px; }
.docs-cat h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: Teachers, "Segoe UI", sans-serif;
  font-size: 18px;
  color: var(--navy, #1c233d);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line, #e4eaf2);
}
.docs-cat-n { font-family: "DM Sans", "Segoe UI", sans-serif; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--blue, #3764d8); background: #eef4ff; border-radius: 99px; padding: 3px 9px; }
.docs-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.docs-list a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  height: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line, #e4eaf2);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.docs-list a:hover { border-color: #c7d6f5; box-shadow: 0 8px 22px rgba(28, 35, 61, 0.07); transform: translateY(-1px); }
.docs-list strong { font-size: 14.5px; color: var(--navy, #1c233d); }
.docs-list span { font-size: 12.5px; color: var(--slate, #64748b); line-height: 1.5; }

/* -------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .docs-wrap { grid-template-columns: minmax(0, 1fr); }
  .docs-side {
    position: static;
    max-height: none;
    display: none;
  }
  .docs-side.is-open { display: block; margin-bottom: 16px; }
  .docs-side-toggle { display: inline-flex; }
  .docs-article { padding: 22px 18px 26px; border-radius: 16px; }
}
@media (max-width: 560px) {
  .docs-wrap { width: min(1280px, 100% - 28px); }
  .docs-body { font-size: 14.5px; }
  .docs-pager-item.is-next { text-align: left; }
  .docs-quick { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------- cetak */
@media print {
  .docs-side, .docs-side-toggle, .nav, .footer, .docs-meta, .docs-pager, .docs-help, .docs-foot { display: none !important; }
  .docs-page { padding: 0; background: #fff; }
  .docs-wrap { display: block; width: 100%; }
  .docs-article { border: 0; box-shadow: none; border-radius: 0; padding: 0; }
  .docs-body a { color: #000; }
}
