/* PERKASA FAST OTP — dokumentasi API reseller: sidebar, sticky header, pencarian, blok kode gelap, glass, divider. */
.dk { min-height: 60vh; }
.dk-top { position: sticky; top: 0; z-index: 30; background: rgba(255, 250, 252, .78); backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); border-bottom: 1px solid var(--border); }
.dk-top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.dk-crumb { font: 700 14px/1.2 var(--sans); color: var(--text-muted); }
.dk-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; padding-top: 32px; padding-bottom: 60px; align-items: start; }

.dk-side { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; padding-right: 8px; }
.dk-side-title { font: 700 12px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--deep-rose); margin: 0 0 10px; }
.dk-search { display: block; width: 100%; margin: 0 0 12px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--white); color: var(--ink); font: 500 14px/1.3 var(--sans); }
.dk-search:focus { outline: 2px solid rgba(236, 120, 172, .5); outline-offset: 1px; }
.dk-empty { margin: 8px 4px; color: var(--text-muted); font-size: 14px; }
.dk-side nav { display: grid; gap: 2px; }
.dk-side nav a { display: block; padding: 7px 10px; border-radius: 10px; color: var(--text-muted); text-decoration: none; font: 600 14px/1.3 var(--sans); }
.dk-side nav a[hidden] { display: none; }
.dk-side nav a:hover, .dk-side nav a:focus-visible { background: var(--sakura-white); color: var(--ink); }
.dk-side nav a.on { background: #FFE3EE; color: var(--deep-rose); }

.dk-main { min-width: 0; }
.dk-hero { position: relative; isolation: isolate; padding-bottom: 20px; margin-bottom: 8px; }
.dk-hero::after { content: ""; position: absolute; right: 0; top: -6px; width: 64px; height: 64px; z-index: -1; pointer-events: none; background: url("/assets/svg/ornaments/daisy.svg") no-repeat center / contain; opacity: .6; animation: orn-float 9s ease-in-out infinite; }
.dk-hero h1 { margin: 8px 0; font-size: clamp(28px, 4vw, 40px); }

/* kotak notifikasi: glassmorphism + bingkai jahitan + washi tape */
.glass { background: rgba(255, 255, 255, .64); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border: 1px solid rgba(255, 255, 255, .85); box-shadow: 0 14px 34px -22px rgba(217, 79, 140, .55); }
.dk-notice { position: relative; margin-top: 24px; padding: 16px 18px; border-radius: 16px; outline: 2px dashed rgba(236, 120, 172, .45); outline-offset: -7px; font-size: 15px; line-height: 1.6; }
.dk-notice::before { content: ""; position: absolute; left: 20px; top: -12px; width: 78px; height: 24px; transform: rotate(-4deg); pointer-events: none; background: url("/assets/svg/ornaments/washi-tape.svg") no-repeat center / contain; }

/* bagian dokumentasi + pembatas dekoratif */
.dk-sec { position: relative; padding: 28px 0 4px; scroll-margin-top: 100px; }
.dk-sec::after { content: ""; display: block; height: 24px; margin-top: 26px; background: url("/assets/svg/ornaments/divider.svg") center / auto 24px no-repeat; }
.dk-sec h2 { margin: 6px 0 10px; font-size: 24px; }
.dk-sec p { line-height: 1.7; }
.dk-sec code { background: var(--sakura-white); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.dk-list { padding-left: 20px; line-height: 1.8; }

.dk-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font: 700 12px/1.2 var(--sans); }
.dk-ok { background: #E3F4E8; color: #1F6B3A; }
.dk-info { background: #E8EEFB; color: #2C4A8A; }
.dk-soon { background: #FFF1DC; color: #8A5A12; }

/* blok kode gelap (komponen reusable) dengan tombol salin */
.dk-code { margin: 14px 0; border-radius: 14px; overflow: hidden; background: #2A1F2D; color: #FFE3EE; box-shadow: 0 14px 30px -22px rgba(42, 31, 45, .9); }
.dk-code-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; background: #382A3C; font: 700 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #E9B6CC; }
.dk-copy { padding: 6px 12px; border: 1px solid rgba(255, 183, 213, .5); border-radius: 999px; background: transparent; color: #FFD6E6; font: 700 12px/1 var(--sans); cursor: pointer; }
.dk-copy:hover { background: rgba(255, 183, 213, .18); }
.dk-code pre { margin: 0; padding: 14px 16px; overflow-x: auto; font: 500 14px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.dk-code code { background: none; border: 0; padding: 0; color: inherit; font: inherit; }
.tk-m { color: #FFB86B; font-weight: 700; }
.tk-p { color: #8FE3C0; }

@media (max-width: 900px) {
  .dk-layout { grid-template-columns: 1fr; gap: 16px; }
  .dk-side { position: static; max-height: none; border-radius: 18px; padding: 14px; }
  .dk-side nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .dk-hero::after { animation: none; } }
