/* ============================================================
   Artikel jurnal — blok konten kaya
   ============================================================ */

.jr {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 32px 88px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--pub-ink);
}

.jr-p { margin-bottom: 24px; }
.jr-p:last-child { margin-bottom: 0; }

.jr-h2 {
  font-family: var(--font-pub-display);
  font-size: clamp(24px, 2.8vw, 31px);
  font-weight: 600; letter-spacing: -0.025em; line-height: 1.2;
  margin: 52px 0 18px;
}
.jr-h3 {
  font-family: var(--font-pub-display);
  font-size: clamp(19px, 2.1vw, 23px);
  font-weight: 600; letter-spacing: -0.02em;
  margin: 40px 0 14px;
}
.jr-h4 { font-size: 17px; font-weight: 700; margin: 30px 0 10px; }

.jr-link {
  color: var(--pub-ink);
  border-bottom: 1px solid var(--pub-signal);
  transition: color 0.25s ease, background 0.25s ease;
}
.jr-link:hover { color: var(--pub-signal); }

.jr-code-inline {
  font-family: var(--font-pub-mono);
  font-size: 0.87em;
  background: #ecece6;
  border: 1px solid var(--pub-line-soft);
  padding: 2px 6px;
  border-radius: 4px;
  color: #2c5f24;
}

/* --- Blok kode --- */
.jr-codeblock {
  margin: 32px 0;
  border-radius: 10px;
  overflow: hidden;
  background: #0d0d0d;
  border: 1px solid #1f1f1f;
  box-shadow: 0 10px 28px rgba(10, 10, 10, 0.12);
}
.jr-codeblock__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: #151515;
  border-bottom: 1px solid #222;
}
.jr-codeblock__lang {
  font-family: var(--font-pub-mono);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--pub-signal);
}
.jr-copy {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  border: 1px solid #2e2e2e;
  color: #b8b8b2;
  padding: 5px 11px;
  border-radius: 6px;
  font-family: var(--font-pub-mono);
  font-size: 10.5px; letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.jr-copy:hover { background: #1e1e1e; color: #fff; border-color: #3a3a3a; }
.jr-copy.is-done {
  background: var(--pub-signal); color: #fff; border-color: var(--pub-signal);
}

.jr-pre {
  margin: 0;
  padding: 18px 16px;
  overflow-x: auto;
  font-family: var(--font-pub-mono);
  font-size: 13.5px;
  line-height: 1.65;
  color: #e6e6e0;
  tab-size: 2;
}
.jr-pre code { font-family: inherit; white-space: pre; }
.jr-pre::-webkit-scrollbar { height: 8px; }
.jr-pre::-webkit-scrollbar-thumb { background: #2e2e2e; border-radius: 999px; }

/* --- Gambar --- */
.jr-figure { margin: 36px 0; }
.jr-figure img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--pub-line-soft);
  display: block;
}
.jr-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--pub-ink-soft);
  text-align: center;
}

/* --- Video --- */
.jr-video { margin: 36px 0; }
.jr-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 10px;
  display: block;
  background: #0a0a0a;
}

/* --- Daftar --- */
/* list-style dimatikan: penanda bawaan browser ditimpa penanda kustom di ::before.
   Tanpa ini, daftar bernomor tampil dobel (angka bawaan + angka kustom). */
.jr-list { margin: 0 0 24px; padding-left: 4px; list-style: none; }
.jr-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
}
.jr-list li::before {
  content: '';
  position: absolute; left: 4px; top: 11px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--pub-signal);
}
.jr-list--ol { counter-reset: jr-ol; list-style: none; }
.jr-list--ol li::before {
  counter-increment: jr-ol;
  content: counter(jr-ol);
  width: auto; height: auto; top: 0; left: 0;
  background: none;
  font-family: var(--font-pub-mono);
  font-size: 12px;
  color: var(--pub-signal);
  font-weight: 600;
}

/* --- Kutipan --- */
.jr-quote {
  margin: 32px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--pub-signal);
  font-size: 18px;
  line-height: 1.65;
  color: var(--pub-ink-soft);
  font-style: italic;
}

.jr-divider {
  margin: 44px 0;
  border: 0;
  border-top: 1px solid var(--pub-line-soft);
}

@media (max-width: 640px) {
  .jr { padding: 52px 20px 68px; font-size: 16px; }
  .jr-pre { font-size: 12.5px; }
}

/* ============================================================
   Halaman detail layanan
   ============================================================ */
.svc-detail { background: var(--pub-paper); }

.svc-sec { padding: 56px 0; border-bottom: 1px solid var(--pub-line-soft); }
.svc-sec:last-child { border-bottom: none; }
.svc-sec__grid {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.svc-sec__head h2 {
  font-family: var(--font-pub-display);
  font-size: clamp(20px, 2.3vw, 27px);
  font-weight: 600; letter-spacing: -0.025em; line-height: 1.2;
  position: sticky; top: 110px;
}
.svc-sec__body { font-size: 16px; line-height: 1.75; color: var(--pub-ink-soft); }
.svc-sec__body p { margin-bottom: 18px; }
.svc-sec__body p:last-child { margin-bottom: 0; }

.svc-sec__figure { margin-top: 24px; }
.svc-sec__figure img {
  width: 100%; border-radius: 10px;
  border: 1px solid var(--pub-line-soft); display: block;
}

.svc-list { display: grid; gap: 12px; }
.svc-list li {
  position: relative; padding-left: 30px;
  color: var(--pub-ink); font-size: 15.5px;
}
.svc-list li::before {
  content: '';
  position: absolute; left: 0; top: 7px;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(76,175,62,0.16);
}
.svc-list li::after {
  content: '';
  position: absolute; left: 5px; top: 12px;
  width: 5px; height: 8px;
  border-right: 2px solid var(--pub-signal);
  border-bottom: 2px solid var(--pub-signal);
  transform: rotate(45deg);
}

.svc-faq { display: grid; gap: 2px; }
.svc-faq__item { border-bottom: 1px solid var(--pub-line-soft); }
.svc-faq__item summary {
  cursor: pointer; list-style: none;
  padding: 16px 30px 16px 0;
  font-size: 16px; font-weight: 600; color: var(--pub-ink);
  position: relative;
}
.svc-faq__item summary::-webkit-details-marker { display: none; }
.svc-faq__item summary::after {
  content: '+';
  position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 20px; color: var(--pub-signal);
  transition: transform 0.3s ease;
}
.svc-faq__item[open] summary::after { content: '−'; }
.svc-faq__item p { padding: 0 0 18px; font-size: 15.5px; color: var(--pub-ink-soft); }

.svc-cta {
  background: var(--pub-void); color: var(--pub-on-void);
  padding: 72px 0; text-align: center;
}
.svc-cta h2 {
  font-family: var(--font-pub-display);
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 600; letter-spacing: -0.03em;
  margin-bottom: 14px; color: #fff;
}
.svc-cta p { color: var(--pub-on-void-soft); max-width: 52ch; margin: 0 auto 28px; font-size: 15.5px; }
.svc-cta .mbtn--dark { background: #fff; color: var(--pub-void); }
.svc-cta .mbtn--dark:hover { background: var(--pub-signal); color: #fff; }

@media (max-width: 780px) {
  .svc-sec__grid { grid-template-columns: 1fr; gap: 18px; }
  .svc-sec__head h2 { position: static; }
}

/* Pemutar video lokal (berkas yang diunggah sendiri) */
.jr-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  display: block;
  background: #0a0a0a;
  border: 1px solid var(--pub-line-soft);
}

/* --- Tabel --- */
.jr-table-wrap {
  margin: 32px 0;
  overflow-x: auto;               /* tabel lebar tetap terbaca di layar kecil */
  border: 1px solid var(--pub-line-soft);
  border-radius: 10px;
}
.jr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.jr-table th {
  background: var(--pub-paper-alt);
  font-weight: 600;
  color: var(--pub-ink);
  padding: 12px 16px;
  border-bottom: 1px solid var(--pub-line-soft);
  white-space: nowrap;
}
.jr-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--pub-line-soft);
  color: var(--pub-ink-soft);
  vertical-align: top;
}
.jr-table tbody tr:last-child td { border-bottom: none; }
.jr-table tbody tr:hover { background: rgba(76, 175, 62, 0.04); }
.jr-table strong { color: var(--pub-ink); }
.jr-table code { font-size: 0.86em; }

@media (max-width: 640px) {
  .jr-table { font-size: 13.5px; }
  .jr-table th, .jr-table td { padding: 9px 12px; }
}
