/* Pembaca Manual Book (manual.js). Warna merek: navy + emas tipis dari tanda Digit, selebihnya token --dg-* */
:root {
  --mb-navy: oklch(0.25 0.075 254);
  --mb-navy-2: oklch(0.285 0.085 254);
  --mb-navy-3: oklch(0.33 0.1 253);
  --mb-emas: oklch(0.8 0.095 84);
  --mb-emas-gelap: oklch(0.55 0.09 78);
  --mb-teks: oklch(0.36 0.03 255);
  --mb-judul: oklch(0.24 0.05 255);
}
[data-bs-theme="dark"] {
  --mb-emas-gelap: oklch(0.8 0.095 84);
  --mb-teks: #cbd5e1;
  --mb-judul: #f1f5f9;
}
/* judul halaman sudah ada di panduan */
body:has(.mb) .page-header { display: none; }
body:has(.mb) .page-body { margin-top: 1.25rem; }

.mb { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: 3rem; align-items: start; max-width: 92rem; margin: 0 auto; color: var(--mb-teks); }
.mb:has(.mb-rel) { grid-template-columns: 17rem minmax(0, 1fr) 12rem; }
.mb button { font-family: inherit; }

/* daftar isi */
.mb-sisi { position: sticky; top: 1rem; }
.mb-buka { display: none; }
.mb-panel { position: relative; max-height: calc(100vh - 2rem); overflow-y: auto; overscroll-behavior: contain; padding: 0 .5rem 1.5rem 0; scrollbar-width: thin; scrollbar-color: var(--dg-garis-isian) transparent; }
.mb-merek { padding: .25rem .625rem 1rem; }
.mb-merek span { display: block; font-size: .8125rem; color: var(--dg-redup); }
.mb-merek b { display: block; font-size: 1.25rem; font-weight: 650; letter-spacing: -.02em; line-height: 1.3; color: var(--mb-judul); }
.mb-cari { display: flex; align-items: center; gap: .625rem; height: 40px; margin: 0; padding: 0 .75rem; border: 1px solid var(--dg-garis-isian); border-radius: 10px; background: var(--dg-permukaan); color: var(--dg-redup); }
.mb-cari:focus-within { border-color: var(--tblr-primary); outline: 2px solid var(--tblr-primary); outline-offset: 1px; }
.mb-cari input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; color: var(--dg-teks); font: inherit; font-size: .875rem; }
.mb-cari input::placeholder { color: var(--dg-redup); opacity: 1; }
.mb-maju { padding: .875rem .625rem .25rem; }
.mb-maju-garis { height: 3px; border-radius: 2px; background: var(--dg-garis); overflow: hidden; }
.mb-maju-garis span { display: block; height: 100%; background: var(--mb-emas); transform: scaleX(0); transform-origin: left; transition: transform 280ms cubic-bezier(.23, 1, .32, 1); }
.mb-maju-teks { display: block; margin-top: .375rem; font-size: .75rem; color: var(--dg-redup); font-variant-numeric: tabular-nums; }
.mb-grup { padding-top: 1rem; }
.mb-grup:first-child { padding-top: .5rem; }
.mb-grup-nama { padding: 0 .625rem .25rem; font-size: .8125rem; font-weight: 600; color: var(--mb-judul); }
.mb-tautan { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; min-height: 36px; padding: .3125rem .625rem; border: 0; border-radius: 8px; background: none; color: var(--mb-teks); font-size: .875rem; line-height: 1.4; text-align: left; transition: background-color 120ms ease; }
.mb-tautan i { flex: none; font-size: .75rem; color: var(--mb-emas-gelap); opacity: 0; }
.mb-tautan.sudah i { opacity: 1; }
.mb-tautan.kini { background: var(--dg-aksen-muda); color: var(--tblr-link-color); font-weight: 600; }
.mb-hasil { padding-top: .75rem; }
.mb-hasil-jumlah { padding: 0 .625rem .5rem; font-size: .75rem; color: var(--dg-redup); }
.mb-temu { display: block; width: 100%; padding: .5rem .625rem; border: 0; border-radius: 8px; background: none; text-align: left; color: var(--mb-teks); }
.mb-temu b { display: block; font-size: .875rem; font-weight: 600; color: var(--mb-judul); }
.mb-temu small { display: block; margin-top: .125rem; font-size: .75rem; line-height: 1.5; color: var(--dg-redup); overflow-wrap: anywhere; }
.mb mark { padding: 0 1px; border-radius: 3px; background: oklch(0.93 0.09 92); color: oklch(0.25 0.05 80); }

/* sampul */
.mb-utama { min-width: 0; outline: 0; padding-bottom: 4rem; }
.mb-sampul { position: relative; overflow: hidden; border-radius: 20px; background: var(--mb-navy); color: #fff; }
.mb-lipatan { position: absolute; inset: 0; width: 100%; height: 100%; }
.mb-lipatan .a { fill: var(--mb-navy-2); } .mb-lipatan .b { fill: var(--mb-navy-3); } .mb-lipatan .c { fill: var(--mb-emas); }
.mb-sampul-isi { position: relative; max-width: 40rem; padding: 3.5rem 3rem 3rem; }
.mb-sampul-merek { font-size: .9375rem; font-weight: 500; color: var(--mb-emas); }
.mb-sampul h1 { margin: .75rem 0 0; font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -.035em; color: #fff; text-wrap: balance; }
.mb-sampul p { margin: 1rem 0 0; font-size: 1.0625rem; line-height: 1.6; color: oklch(0.87 0.03 250); text-wrap: pretty; }
.mb-sampul p :is(b, strong) { color: #fff; }
.mb-sampul-aksi { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 2rem; font-size: .875rem; color: oklch(0.83 0.035 250); }
.mb-sampul .mb-cta { min-height: 46px; padding: 0 1.25rem; border: 0; border-radius: 10px; background: #fff !important; color: oklch(0.25 0.075 254) !important; font-size: .9375rem; font-weight: 600; transition: background-color 150ms ease, transform 140ms cubic-bezier(.23, 1, .32, 1); }
.mb-cta:active, .mb-menu:active { transform: scale(.97); }
.mb-sampul + .mb-artikel { max-width: 60rem; margin-top: 2.5rem; }
.mb-sampul + .mb-artikel:empty { display: none; }
.mb-bab-daftar { margin-top: 3rem; }
.mb-bab-daftar > h2 { margin: 0 0 .5rem; font-size: 1.5rem; font-weight: 700; letter-spacing: -.025em; color: var(--mb-judul); }
.mb-bab { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 2rem; padding: 1.25rem 0; border-top: 1px solid var(--dg-garis); }
.mb-bab h3 { margin: .625rem 0 0; font-size: 1rem; font-weight: 600; line-height: 1.4; color: var(--mb-judul); }
.mb-bab ul { margin: 0; padding: 0; list-style: none; }
.mb-bab li button { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; width: 100%; min-height: 42px; padding: .5625rem .75rem; border: 0; border-radius: 8px; background: none; color: var(--mb-teks); font-size: .9375rem; text-align: left; }
.mb-bab li small { flex: none; font-size: .75rem; color: var(--dg-redup); font-variant-numeric: tabular-nums; }

/* artikel */
.mb-artikel { max-width: 46rem; }
.mb-kepala { padding: .5rem 0 2rem; }
.mb-jejak { font-size: .875rem; font-weight: 500; color: var(--mb-emas-gelap); }
.mb-kepala h1 { margin: .375rem 0 0; font-size: clamp(1.75rem, 2.6vw, 2.375rem); font-weight: 700; line-height: 1.15; letter-spacing: -.03em; color: var(--mb-judul); text-wrap: balance; }
.mb-kepala .mb-ringkas { margin: .875rem 0 0; font-size: 1.125rem; line-height: 1.6; color: var(--dg-redup); text-wrap: pretty; }
.mb-info { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 1.25rem; font-size: .8125rem; color: var(--dg-redup); }
.mb-menu { display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; padding: 0 1rem; border: 0; border-radius: 10px; background: var(--mb-navy); color: #fff; font-size: .875rem; font-weight: 600; transition: background-color 150ms ease, transform 140ms cubic-bezier(.23, 1, .32, 1); }
[data-bs-theme="dark"] .mb-menu { background: var(--tblr-primary); }
.mb-teks, .mb-sampul + .mb-artikel { font-size: 1rem; line-height: 1.75; }
.mb-artikel :is(p, ul, ol) { margin: 0 0 1rem; }
.mb-artikel :is(b, strong) { font-weight: 600; color: var(--mb-judul); }
.mb-artikel h3 { margin: 2.25rem 0 .625rem; font-size: 1.25rem; font-weight: 650; line-height: 1.35; letter-spacing: -.02em; color: var(--mb-judul); scroll-margin-top: 1rem; }
.mb-artikel h4 { margin: 0 0 .25rem; font-size: 1rem; font-weight: 600; line-height: 1.4; color: var(--mb-judul); }
.mb-teks > :first-child, .mb-teks > :first-child > :first-child, .mb-teks > :first-child > :first-child > :first-child, .mb-teks > :first-child > :first-child > :first-child > h3:first-child { margin-top: 0; }
.mb-artikel ul { padding-left: 1.25rem; }
.mb-artikel ul > li::marker { color: var(--mb-emas-gelap); }
.mb-artikel li { margin-bottom: .5rem; padding-left: .25rem; }
.mb-artikel li > :is(ul, ol) { margin: .5rem 0 .25rem; }
.mb-artikel ol:not(.mb-alur) { padding: 0; list-style: none; counter-reset: langkah; }
.mb-artikel ol:not(.mb-alur) > li { position: relative; padding: .125rem 0 .125rem 2.75rem; margin-bottom: .875rem; counter-increment: langkah; }
.mb-artikel ol:not(.mb-alur) > li::before { content: counter(langkah); position: absolute; left: 0; top: .125rem; display: grid; place-items: center; width: 1.875rem; height: 1.875rem; border: 1px solid var(--dg-garis-isian); border-radius: 50%; background: var(--dg-permukaan); font-size: .8125rem; font-weight: 600; color: var(--mb-judul); font-variant-numeric: tabular-nums; }
.mb-artikel code, .mb-kode { padding: .0625rem .3125rem; border-radius: 5px; background: var(--dg-garis-baris); color: var(--mb-judul); font-size: .875em; }
.mb-merah { color: #c92a2a !important; } .mb-hijau { color: #0b7a6b !important; }
[data-bs-theme="dark"] .mb-merah { color: #ff8787 !important; } [data-bs-theme="dark"] .mb-hijau { color: #2cc4ae !important; }
.mb-lencana { display: inline-block; padding: 0 .4375rem; border-radius: 6px; background: var(--dg-aksen-muda); color: var(--tblr-link-color); font-size: .8125em; font-weight: 600; }
.mb-sampul + .mb-artikel > .mb-lencana { display: none; }
.mb-kisi.pendek { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem 2rem; margin: 1.5rem 0; }
.mb-kisi.pendek .mb-kotak { padding: .875rem 0 0; border-top: 2px solid var(--mb-emas); }
.mb-kisi.pendek :is(p, ul, ol):last-child { margin-bottom: 0; }
.mb-kisi.pendek p { font-size: .9375rem; line-height: 1.6; }

/* catatan */
.mb-catatan { margin: 1.5rem 0; padding: 1rem 1.25rem; border-radius: 12px; background: var(--dg-aksen-muda); color: var(--mb-teks); font-size: .9375rem; line-height: 1.65; }
.mb-catatan.awas { background: oklch(0.965 0.035 85); }
[data-bs-theme="dark"] .mb-catatan.awas { background: oklch(0.33 0.045 80); }
.mb-catatan :is(p, ul, ol):last-child { margin-bottom: 0; }
.mb-catatan-judul { display: block; margin-bottom: .25rem; }

/* alur langkah */
.mb-alur { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 1.5rem 0; margin: 1.5rem 0 2rem !important; padding: 0; list-style: none; }
.mb-alur > li { position: relative; margin: 0 !important; padding: 0 1rem 0 0 !important; }
.mb-alur > li::before { content: ""; position: absolute; top: 20px; left: 48px; right: 8px; height: 1px; background: var(--dg-garis-isian); }
.mb-alur > li:last-child::before { display: none; }
.mb-alur-ikon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: .625rem; border-radius: 10px; background: var(--mb-navy); color: var(--mb-emas); font-size: 1.0625rem; }
.mb-alur-isi { display: block; font-size: .9375rem; line-height: 1.45; }
.mb-alur-isi > * { display: block; margin: 0 !important; }
.mb-deret { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0; }
.mb-tombol { display: inline-block; padding: .3125rem .75rem; border: 1px solid var(--dg-garis-isian); border-radius: 8px; background: var(--dg-permukaan); color: var(--mb-judul); font-size: .8125rem; font-weight: 600; line-height: 1.45; }
.mb-tombol small { display: block; font-weight: 400; color: var(--dg-redup); }
.mb-warna { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; }

/* tabel */
.mb-tabel { margin: 1.25rem 0 1.75rem; overflow-x: auto; border: 1px solid var(--dg-garis); border-radius: 12px; background: var(--dg-permukaan); }
.mb-tabel table { width: 100%; margin: 0; border-collapse: collapse; font-size: .9375rem; line-height: 1.55; }
.mb-tabel :is(th, td) { padding: .6875rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--dg-garis-baris); }
.mb-tabel th { font-size: .8125rem; font-weight: 600; color: var(--mb-judul); background: var(--dg-kepala-tabel); white-space: nowrap; }
.mb-tabel tbody tr:last-child td { border-bottom: 0; }
.mb-tabel td:first-child { font-weight: 500; color: var(--mb-judul); }
.mb-tabel .mb-kanan { text-align: right; }
.mb-tabel :is(p, ul, ol):last-child { margin-bottom: 0; }

/* contoh tampilan layar */
.mb-contoh { margin: 1.5rem 0; padding: 1.25rem; border: 1px solid var(--dg-garis); border-radius: 14px; background: var(--dg-blok); font-size: .875rem; line-height: 1.55; }
.mb-contoh-judul { margin: -1.25rem -1.25rem 1.25rem; padding: .625rem 1.25rem; border-bottom: 1px solid var(--dg-garis); font-size: .8125rem; font-weight: 500; color: var(--dg-redup); }
.mb-contoh .mb-tabel { margin: .75rem 0 0; }
.mb-contoh .mb-tabel table { font-size: .8125rem; }
.mb-contoh .mb-tombol { margin: 0 .375rem .375rem 0; }
.mb-contoh-tab { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: .875rem; border-bottom: 1px solid var(--dg-garis); }
.mb-contoh-aktif, .mb-contoh-item { padding: .375rem 0; color: var(--dg-redup); }
.mb-contoh-aktif { border-bottom: 2px solid var(--tblr-primary); color: var(--mb-judul); font-weight: 600; }
.mb-contoh :is(p, ul, ol):last-child { margin-bottom: 0; }
.mb-kisi.rapat { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .75rem; }
.mb-progres { height: 28px; border-radius: 8px; background: var(--dg-garis); overflow: hidden; }
.mb-progres-isi { display: flex; align-items: center; height: 100%; padding: 0 .75rem; background: #0f9d8a; color: #fff; font-size: .75rem; font-weight: 600; white-space: nowrap; }

/* pindah topik */
.mb-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--dg-garis); }
.mb-nav button { display: flex; flex-direction: column; gap: .125rem; padding: .875rem 1rem; border: 1px solid var(--dg-garis); border-radius: 12px; background: var(--dg-permukaan); text-align: left; transition: border-color 150ms ease, transform 140ms cubic-bezier(.23, 1, .32, 1); }
.mb-nav button:active { transform: scale(.985); }
.mb-nav .lanjut { grid-column: 2; text-align: right; }
.mb-nav small { font-size: .75rem; color: var(--dg-redup); }
.mb-nav b { font-size: .9375rem; font-weight: 600; color: var(--mb-judul); }

/* di halaman ini */
.mb-rel { position: sticky; top: 1.5rem; max-height: calc(100vh - 3rem); overflow-y: auto; scrollbar-width: none; font-size: .8125rem; }
.mb-rel div { padding-bottom: .375rem; font-weight: 600; color: var(--mb-judul); }
.mb-rel button { display: block; width: 100%; padding: .3125rem 0; border: 0; background: none; color: var(--dg-redup); font-size: .8125rem; line-height: 1.4; text-align: left; }

.mb button:focus-visible { outline: 2px solid var(--tblr-primary); outline-offset: 2px; }
.mb-sampul button:focus-visible { outline-color: var(--mb-emas); }
@media (hover: hover) and (pointer: fine) {
  .mb-tautan:not(.kini):hover, .mb-temu:hover, .mb-bab li button:hover { background: var(--dg-hover); }
  .mb-bab li button:hover { color: var(--mb-judul); }
  .mb-sampul .mb-cta:hover { background: oklch(0.95 0.02 250) !important; }
  .mb-menu:hover { background: var(--mb-navy-3); }
  .mb-nav button:hover { border-color: var(--dg-garis-isian); }
  .mb-rel button:hover { color: var(--mb-judul); }
}
@media (max-width: 1399.98px) {
  .mb, .mb:has(.mb-rel) { grid-template-columns: 16rem minmax(0, 1fr); gap: 2.5rem; }
  .mb-rel { display: none; }
}
@media (max-width: 991.98px) {
  .mb, .mb:has(.mb-rel) { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .mb-sisi { top: 0; z-index: 20; margin: 0 -.5rem; padding: .5rem; background: var(--dg-latar); }
  .mb-buka { display: flex; align-items: center; gap: .625rem; width: 100%; min-height: 46px; padding: 0 1rem; border: 1px solid var(--dg-garis-isian); border-radius: 10px; background: var(--dg-permukaan); color: var(--mb-judul); font-size: .9375rem; font-weight: 600; }
  .mb-panel { display: none; position: absolute; left: .5rem; right: .5rem; top: 100%; max-height: 70vh; max-height: 70dvh; margin-top: 0; padding: 1rem .75rem; border: 1px solid var(--dg-garis); border-radius: 14px; background: var(--dg-permukaan); box-shadow: 0 16px 40px rgba(16, 24, 40, .14); }
  .mb-sisi.buka .mb-panel { display: block; }
  .mb-sisi.buka { position: sticky; }
  .mb-tautan { min-height: 44px; }
  .mb-artikel { max-width: none; }
}
@media (max-width: 767.98px) {
  .mb-sampul { border-radius: 16px; }
  .mb-sampul-isi { padding: 2.25rem 1.5rem 2rem; }
  .mb-cta { width: 100%; }
  .mb-bab { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
  .mb-bab li button { padding-inline: 0; min-height: 44px; }
  .mb-kisi.pendek { grid-template-columns: minmax(0, 1fr); }
  .mb-nav { gap: .625rem; }
  .mb-alur { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .mb-alur > li { display: flex; align-items: center; gap: .875rem; }
  .mb-alur > li::before { display: none; }
  .mb-alur-ikon { margin: 0; flex: none; }
  .mb-tabel :is(th, td) { padding: .625rem .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mb-cta:active, .mb-menu:active, .mb-nav button:active { transform: none; }
  .mb-maju-garis span { transition: none; }
}
@media print {
  .mb-sisi, .mb-rel, .mb-nav, .mb-info { display: none !important; }
  .mb { display: block; }
}
