/* Panduan Pengguna (/panduan) — tema terang, ramah cetak (PDF dibuat dari halaman ini). */
:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --brand: #1d6fe0;
  --brand-2: #10b981;
  --brand-soft: #eaf2ff;
  --red: #ef4444;
  --tip-bg: #ecfdf5; --tip-line: #34d399; --tip-ink: #065f46;
  --warn-bg: #fffbeb; --warn-line: #f59e0b; --warn-ink: #78350f;
  --danger-bg: #fef2f2; --danger-line: #f87171; --danger-ink: #7f1d1d;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 Manrope, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
code, kbd, .pd-code {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: .86em;
}
code { background: #eef2f7; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; word-break: break-all; }
kbd { background: #fff; border: 1px solid #cbd5e1; border-bottom-width: 3px; border-radius: 6px; padding: 0 6px; }
h1, h2, h3, h4 { font-family: Sora, Manrope, sans-serif; line-height: 1.25; color: var(--ink); }

/* ── Header ── */
.pd-header {
  position: sticky; top: 0; z-index: 10;
  background: #0b1220; color: #fff;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--brand), var(--brand-2)) 1;
}
.pd-header-inner { max-width: 1040px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pd-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 700 17px Sora, sans-serif; }
.pd-brand img { width: 34px; height: 34px; }
.pd-header-nav { display: flex; align-items: center; gap: 14px; }
.pd-header-nav > a:not(.pd-btn) { color: #cbd5e1; text-decoration: none; font-weight: 600; font-size: 14px; }
.pd-lang { display: inline-flex; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; overflow: hidden; }
.pd-lang a { color: #cbd5e1; text-decoration: none; font-weight: 700; font-size: 13px; padding: 5px 11px; }
.pd-lang a.active { background: var(--brand-2); color: #04291d; }
.pd-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(90deg, var(--brand), #0ea5e9);
  color: #fff; text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 9px 16px; border-radius: 999px; white-space: nowrap;
}
.pd-btn-lg { font-size: 16px; padding: 13px 24px; margin-top: 18px; }

.pd-main { max-width: 1040px; margin: 0 auto; padding: 0 16px 40px; }

/* ── Sampul ── */
.pd-cover {
  margin: 28px 0 20px; padding: 44px 36px; border-radius: 22px; color: #fff;
  background: radial-gradient(circle at 85% 10%, rgba(16,185,129,.35), transparent 45%),
              radial-gradient(circle at 0% 100%, rgba(29,111,224,.55), transparent 55%), #0b1220;
}
.pd-cover h1 { color: #fff; font-size: clamp(28px, 5vw, 44px); margin: 6px 0 12px; }
.pd-cover-logo { width: 72px; height: 72px; margin-bottom: 14px; }
.pd-eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 700; color: #6ee7b7; }
.pd-lead { font-size: 18px; color: #cbd5e1; max-width: 680px; margin: 0; }
.pd-cover-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; color: #94a3b8; font-size: 14px; }
.pd-cover-meta i { color: #6ee7b7; margin-right: 4px; }
.pd-quick { margin-top: 30px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 18px 20px; }
.pd-quick h2 { color: #fff; font-size: 17px; margin: 0 0 12px; }
.pd-quick-steps { list-style: none; counter-reset: q; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.pd-quick-steps li { counter-increment: q; background: rgba(255,255,255,.07); border-radius: 12px; padding: 12px; font-size: 14px; color: #e2e8f0; line-height: 1.4; }
.pd-quick-steps li::before { content: counter(q); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-2); color: #04291d; font-weight: 800; margin-bottom: 8px; }
.pd-quick-steps b { color: #fff; }
.pd-quick-steps span { display: block; margin-top: 6px; color: #6ee7b7; font-size: 12px; font-weight: 700; }

/* ── Daftar isi ── */
.pd-toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; }
.pd-toc h2 { font-size: 20px; margin: 0 0 10px; }
.pd-toc h2 i { color: var(--brand); }
.pd-toc ol { columns: 2; column-gap: 32px; margin: 0; padding-left: 22px; }
.pd-toc li { padding: 3px 0; break-inside: avoid; }
.pd-toc a { color: var(--ink); text-decoration: none; font-weight: 600; }
.pd-toc a:hover { color: var(--brand); text-decoration: underline; }
.pd-note { margin: 16px 0 0; font-size: 14px; color: var(--ink-2); background: var(--brand-soft); border-radius: 10px; padding: 10px 14px; }

/* ── Bab ── */
.pd-bab { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 32px; margin-top: 22px; }
.pd-bab-no { margin: 0; color: var(--brand); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
.pd-bab > h2 { font-size: clamp(22px, 3.4vw, 30px); margin: 4px 0 16px; padding-bottom: 12px; border-bottom: 3px solid var(--brand-soft); }
.pd-bab h3 { font-size: 19px; margin: 26px 0 10px; display: flex; align-items: center; gap: 10px; }
.pd-bab h3 > i { color: var(--brand); }
.pd-bab h3.pd-sub { font-size: 22px; margin-top: 36px; padding: 10px 14px; background: var(--brand-soft); border-radius: 10px; }
.pd-bab h4 { font-size: 17px; margin: 22px 0 8px; display: flex; align-items: center; gap: 10px; }
.pd-bab p, .pd-bab li { color: var(--ink-2); }
.pd-bab li { margin: 4px 0; }
.pd-small { font-size: 14px; }
.pd-small li { margin: 6px 0; }

.pd-step-no {
  flex: none; display: inline-grid; place-items: center;
  min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px;
  background: var(--brand); color: #fff; font: 800 15px Sora, sans-serif;
}
.pd-num {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--red); color: #fff; font: 700 12px Arial, sans-serif;
  border: 2px solid #fff; box-shadow: 0 0 0 1px var(--red); vertical-align: 1px;
}

ul.pd-check { list-style: none; padding: 0; }
ul.pd-check li { position: relative; padding-left: 30px; }
ul.pd-check li::before { content: "\f00c"; font: 900 13px "Font Awesome 6 Free"; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--tip-bg); color: var(--brand-2); display: grid; place-items: center; }

/* Langkah: teks + gambar berdampingan */
.pd-step { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; margin-top: 18px; padding-top: 6px; }
.pd-step + .pd-step { border-top: 1px dashed var(--line); padding-top: 18px; }
.pd-step-text h3 { margin-top: 4px; }
.pd-step-figs { display: flex; gap: 14px; justify-content: flex-end; flex-wrap: wrap; max-width: 520px; }
.pd-step-figs .pd-fig:not(.pd-fig-phone) { max-width: 520px; }

/* Gambar */
.pd-fig { margin: 0; }
.pd-fig img { border-radius: 12px; border: 1px solid var(--line); background: #fff; width: 100%; height: auto; }
.pd-fig figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; line-height: 1.45; }
.pd-fig-phone { width: 240px; }
.pd-fig-phone img { border-radius: 22px; border: 6px solid #111827; }
.pd-fig-phone.pd-fig-crop { width: 320px; }
.pd-fig-wide { margin: 18px 0; }
.pd-fig-wide figcaption { text-align: left; }
.pd-tabs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 16px 0; }
.pd-tabs-2 { grid-template-columns: repeat(2, 1fr); }

/* Callout */
.pd-callout { display: flex; gap: 12px; padding: 13px 16px; border-radius: 12px; margin: 16px 0; border-left: 5px solid; font-size: 15px; }
.pd-callout > i { margin-top: 4px; font-size: 18px; }
.pd-callout div { color: inherit; }
.pd-tip { background: var(--tip-bg); border-color: var(--tip-line); color: var(--tip-ink); }
.pd-warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.pd-danger { background: var(--danger-bg); border-color: var(--danger-line); color: var(--danger-ink); }

/* Anatomi RTSP */
.pd-anatomy { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 18px 0; background: #0b1220; }
.pd-anatomy-url { font: 700 clamp(14px, 2.4vw, 21px) "JetBrains Mono", Consolas, monospace; color: #fff; word-break: break-all; padding: 10px 4px 18px; text-align: center; }
.pd-anatomy-url span { padding: 2px 1px; border-bottom: 4px solid; }
.pd-anatomy-url .a-sep { border: 0; color: #94a3b8; }
.pd-anatomy-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pd-anatomy-legend > div { background: #fff; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.pd-anatomy-legend p { margin: 2px 0 0; color: var(--ink-2); font-size: 13px; line-height: 1.45; }
.pd-anatomy-legend .sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 6px; vertical-align: -2px; }
.a-proto { border-color: #94a3b8 !important; } .sw.a-proto { background: #94a3b8; }
.a-user  { border-color: #38bdf8 !important; color: #7dd3fc; } .sw.a-user { background: #38bdf8; }
.a-pass  { border-color: #f472b6 !important; color: #f9a8d4; } .sw.a-pass { background: #f472b6; }
.a-host  { border-color: #34d399 !important; color: #6ee7b7; } .sw.a-host { background: #34d399; }
.a-port  { border-color: #fbbf24 !important; color: #fcd34d; } .sw.a-port { background: #fbbf24; }
.a-path  { border-color: #a78bfa !important; color: #c4b5fd; } .sw.a-path { background: #a78bfa; }

.pd-code { background: #0b1220; color: #6ee7b7; border-radius: 10px; padding: 14px 16px; font-size: 15px; word-break: break-all; margin: 10px 0 16px; }

/* Tabel */
.pd-table-wrap { overflow-x: auto; margin: 14px 0; border-radius: 12px; border: 1px solid var(--line); }
.pd-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.pd-table-wrap .pd-table { border: 0; }
.pd-table th, .pd-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.pd-table thead th { background: #f1f5f9; color: var(--ink); font-weight: 700; }
.pd-table tr:last-child td, .pd-table tr:last-child th { border-bottom: 0; }
.pd-table code { font-size: 12.5px; }
.pd-compare tbody th { width: 120px; background: #f8fafc; }
.pd-form { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pd-form th { width: 42%; background: #f8fafc; }
.pd-form td { height: 40px; }
.pd-hint { color: #cbd5e1; font-size: 13px; font-style: italic; }
.pd-ok, .pd-no { display: inline-block; font-weight: 700; padding: 2px 10px; border-radius: 999px; font-size: 13px; }
.pd-ok { background: var(--tip-bg); color: var(--tip-ink); }
.pd-no { background: var(--danger-bg); color: var(--danger-ink); }

.pd-verdict { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; margin: 10px 0 6px; }
.pd-verdict > div { border-radius: 12px; padding: 14px 16px; font-size: 14px; }
.pd-verdict i { margin-right: 6px; }
.pd-verdict p { margin: 6px 0 0; }
.pd-verdict .ok { background: var(--tip-bg); color: var(--tip-ink); }
.pd-verdict .no { background: var(--danger-bg); color: var(--danger-ink); }
.pd-verdict .ok p, .pd-verdict .no p { color: inherit; }

/* Bantuan */
.pd-contact { display: flex; flex-wrap: wrap; gap: 14px; margin: 16px 0; }
.pd-contact-card { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 20px; text-decoration: none; color: var(--ink); background: #fff; min-width: 240px; }
.pd-contact-card i { font-size: 28px; color: var(--brand-2); }
.pd-contact-card b { display: block; }
.pd-contact-card span { color: var(--muted); font-size: 14px; }
.pd-colophon { margin-top: 28px; font-size: 12px; color: var(--muted); text-align: center; }

.pd-footer { max-width: 1040px; margin: 0 auto; padding: 20px 16px 40px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pd-footer > a:first-child { color: var(--ink-2); text-decoration: none; font-weight: 600; }

/* ── Responsif ── */
@media (max-width: 860px) {
  .pd-quick-steps { grid-template-columns: 1fr 1fr; }
  .pd-step { grid-template-columns: 1fr; }
  .pd-step-figs { justify-content: center; max-width: none; }
  .pd-tabs-grid, .pd-tabs-2 { grid-template-columns: 1fr; }
  .pd-anatomy-legend { grid-template-columns: 1fr 1fr; }
  .pd-verdict { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .pd-cover { padding: 28px 20px; margin-top: 16px; }
  .pd-bab { padding: 22px 16px; }
  .pd-toc { padding: 18px 16px; }
  .pd-toc ol { columns: 1; }
  .pd-quick-steps { grid-template-columns: 1fr; }
  .pd-anatomy-legend { grid-template-columns: 1fr; }
  .pd-header-nav > a:not(.pd-btn) span { display: none; }
  .pd-brand span { display: none; }
  .pd-header-nav { gap: 10px; }
  .pd-table-wrap .pd-table { min-width: 620px; }
  .pd-table-wrap { position: relative; }
  .pd-table code { word-break: normal; white-space: nowrap; }
  .pd-fig-phone { width: min(260px, 100%); }
  .pd-step-figs .pd-fig-phone { width: calc(50% - 7px); min-width: 140px; }
  .pd-step-figs .pd-fig-phone:only-child { width: min(260px, 100%); }
  .pd-step-figs .pd-fig-crop:only-child { width: 100%; }
}

/* ── Cetak / PDF ── */
@page { size: A4; margin: 14mm 13mm 16mm; }
@media print {
  html { scroll-behavior: auto; }
  body { background: #fff; font-size: 10.5pt; line-height: 1.55; }
  .no-print { display: none !important; }
  .pd-main { max-width: none; padding: 0; }
  a { color: var(--ink); text-decoration: none; }
  .pd-cover { margin: 0; min-height: 252mm; display: flex; flex-direction: column; justify-content: center; border-radius: 0; padding: 18mm 14mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pd-toc { break-before: page; border: 0; padding: 0; }
  .pd-toc ol { columns: 1; font-size: 12pt; }
  .pd-toc li { padding: 5px 0; border-bottom: 1px dotted var(--line); }
  .pd-bab { break-before: page; border: 0; border-radius: 0; padding: 0; margin: 0; }
  .pd-step, .pd-fig, .pd-callout, .pd-table tr, .pd-anatomy, .pd-verdict, .pd-code { break-inside: avoid; }
  .pd-bab h3, .pd-bab h4 { break-after: avoid; }
  .pd-step { grid-template-columns: minmax(0, 1fr) auto; }
  .pd-fig-phone { width: 52mm; }
  .pd-fig-phone.pd-fig-crop { width: 80mm; }
  .pd-step-figs { max-width: 112mm; }
  .pd-tabs-grid { grid-template-columns: 1fr 1fr; }
  .pd-tabs-grid .pd-fig { break-inside: avoid; }
  .pd-table-wrap { overflow: visible; }
  .pd-fig-wide img { max-height: 150mm; width: auto; max-width: 100%; margin: 0 auto; }
  .pd-form, .pd-keep { break-inside: avoid; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
