/* Bank Peraturan JawaraPajak. Mobile first: aturan dasar untuk HP, layar lebar di bagian bawah. */

/* ---------- Bersama ---------- */
.pband { background: var(--kuning); }
.pic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; }
.pic img { width: 22px; height: 22px; }
.pic--l { width: 48px; height: 48px; border-radius: 14px; }
.pic--l img { width: 26px; height: 26px; }
.ptag { display: inline-flex; align-items: center; height: 22px; font-size: 12px; font-weight: 600; padding: 0 8px; border-radius: var(--radius-sm); }
.ptag:not([class*="jp-kat--"]) { background: var(--bg-subtle); color: var(--ink-muted); }
.btn-wa {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px;
  background: #12863F; color: var(--putih); border-radius: var(--r-pill);
  font-weight: 800; font-size: 14px; text-decoration: none; white-space: nowrap;
}
.btn-wa:hover { background: #0E6E33; color: var(--putih); }

/* ---------- Daftar ---------- */
.pband__in { padding-block: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.pband__in h1 { font-size: clamp(28px, 5vw, 46px); line-height: 1.04; }
.pband__in p { font-weight: 700; font-size: 14px; }

.plist { padding-top: 18px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 16px; overflow-wrap: anywhere; }

.pcats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pcat {
  display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0;
  padding: 8px 2px; border-radius: 14px; border: 2px solid transparent; background: transparent;
  font: inherit; color: var(--text); cursor: pointer;
}
.pcat:hover { background: var(--surface); }
.pcat[aria-pressed="true"] { background: var(--bg-card); border-color: var(--line); box-shadow: var(--shadow-sm); }
.pcat__l { font-weight: 800; font-size: 12px; line-height: 1.2; overflow-wrap: normal; word-break: keep-all; }
.pcat__n { display: none; font-size: 12px; color: var(--muted); }

.pbar { display: flex; flex-wrap: wrap; gap: 8px; }
.pbar__q {
  flex: 1 1 100%; height: var(--control-h); border: 1px solid var(--control-border); border-radius: var(--radius-md); padding: 0 14px;
  font: inherit; font-size: 16px; background: var(--putih); color: var(--text);
}
.seg { flex: 1 1 100%; display: flex; gap: 2px; padding: 3px; height: var(--control-h); background: var(--bg-subtle); border-radius: var(--radius-md); }
.seg button { flex: 1; border: 0; padding: 0 14px; white-space: nowrap; border-radius: var(--radius-sm); background: transparent; color: var(--ink-muted); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.pbar__q:focus, .pbar__sel:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(179, 32, 27, 0.18); }
.seg button[aria-pressed="true"] { background: var(--bg-card); color: var(--ink); font-weight: 700; box-shadow: var(--shadow-seg); }
.pbar__sel {
  flex: 1 1 30%; min-width: 0; height: var(--control-h); border: 1px solid var(--control-border); border-radius: var(--radius-md); padding: 0 8px;
  font: inherit; font-weight: 700; font-size: 14px; background: var(--putih); color: var(--text);
}

.phead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.phead h2 { font-size: 20px; letter-spacing: -0.02em; }
.phead__info { font-size: 13px; font-weight: 700; color: var(--muted); }
.phead__isi { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; color: var(--merah); }
.phead__reset { margin-left: auto; min-height: 44px; border: 0; background: none; color: var(--merah); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }

.pcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
.pcard {
  display: flex; gap: 12px; align-items: flex-start; height: 100%;
  padding: 12px; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--line); box-shadow: var(--shadow-xs);
  color: var(--text); text-decoration: none; transition: border-color .15s ease;
}
.pcard:hover { border-color: var(--control-border); box-shadow: var(--shadow-sm); color: var(--text); }
.pcard__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pcard__kode { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pcard__kode .jp-status { height: 22px; }
.pcard__judul { font-family: var(--font-display); font-weight: 800; font-size: 15px; line-height: 1.3; }
.pcard__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding-top: 8px; }
.pager button, .pager span {
  min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 800; font-size: 14px;
}
.pager button { border: 1px solid var(--line); background: var(--bg-card); color: var(--ink); box-shadow: var(--shadow-xs); cursor: pointer; }
.pager button[aria-current="page"] { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.pager .pager__nav { gap: 6px; }
.pager button:disabled { opacity: .35; cursor: default; }
.pager .pager__num { display: none; }
.pager .pager__num[aria-current="page"] { display: inline-flex; }
.pager span { min-width: 20px; padding: 0; color: var(--muted); display: none; }

/* ---------- Halaman peraturan ---------- */
.rhead { padding-block: 16px 22px; display: flex; gap: 20px; align-items: flex-start; }
.rhead__ic { display: none; width: 64px; height: 64px; border-radius: 18px; background: var(--putih); }
.rhead__ic img { width: 34px; height: 34px; }
.rhead__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pband .jp-crumbs a, .pband .jp-crumbs [aria-current] { color: var(--ink); }
.pband .jp-crumbs a:hover { background: rgba(255, 255, 255, .6); }
.rhead h1 { font-size: clamp(26px, 4vw, 42px); line-height: 1.06; overflow-wrap: anywhere; }
.rchips { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; font-weight: 800; }
.rchips > span:not(.jp-status) { background: var(--bg-card); padding: 4px 10px; border-radius: var(--radius-pill); }
.rchips .rchip--berlaku { color: #135C33; }
.rchips .rchip--diubah { color: #5C4300; }
.rchips .rchip--dicabut { color: #8A1A16; }
.rws { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; }
.rws__l { font-weight: 800; }
.rws__arr { font-weight: 800; }
.rw { background: rgba(255, 255, 255, .6); padding: 4px 10px; border-radius: var(--r-pill); font-weight: 700; color: var(--hitam); text-decoration: none; }
a.rw:hover { background: var(--putih); color: var(--hitam); }
.rw__note { color: #8A1A16; }
.rw--ini { background: var(--hitam); color: var(--putih); font-weight: 800; }

.rcols { padding-top: 20px; padding-bottom: 40px; }
.rside { display: none; }
.rmain { min-width: 0; max-width: 780px; display: flex; flex-direction: column; gap: 22px; overflow-wrap: anywhere; }

.rtoc-m { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-inline: calc(-1 * var(--s-4)); padding-inline: var(--s-4); scrollbar-width: none; }
.rtoc-m a {
  flex: none; padding: 8px 14px; border-radius: var(--r-pill); border: 1.5px solid var(--hitam);
  font-weight: 700; font-size: 13px; white-space: nowrap; text-decoration: none; color: var(--hitam); background: var(--putih);
}
.rfull { color: var(--muted); font-size: 15px; margin: -6px 0 0; }

.banner { padding: 12px 16px; border-radius: 12px; font-weight: 700; }
.banner--dicabut { background: #FBE4E3; color: #6E1411; }
.banner--diubah { background: #FFF1CC; color: #3D2D00; }
.banner a { color: inherit; }

.rinfo { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 14px; }
.rinfo div { background: var(--surface); padding: 10px 12px; }
.rinfo dt { font-size: 12px; font-weight: 700; color: var(--muted); }
.rinfo dd { margin: 0; font-weight: 800; }
.rinfo a { color: var(--merah); }

.ring { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 96px; }
.ring h2 { font-size: 22px; letter-spacing: -0.02em; }
.ring__lead { font-size: 17px; line-height: 1.55; }
.angka { width: 100%; border-collapse: collapse; font-size: 15px; }
.angka tr { border-top: 1px solid var(--line); }
.angka th { text-align: left; padding: 10px 14px 10px 0; width: 96px; font-size: 19px; font-weight: 800; color: var(--merah); vertical-align: top; line-height: 1.25; }
.angka td { padding: 10px 0; vertical-align: top; line-height: 1.45; }
.angka td strong { display: block; }
.angka td span { color: var(--muted); font-size: 14px; }
.ring__praktis { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.ring__praktis h3 { font-size: 16px; font-weight: 800; margin: 0 0 8px; }
.ring__praktis ul { margin: 0; padding-left: 20px; }
.ring__praktis li { margin-bottom: 8px; line-height: 1.5; }
.ring__praktis p { margin: 0 0 8px; }

.ad { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ad__l { margin: 0; padding: 4px 10px; font-size: 11px; font-weight: 800; color: var(--muted); background: var(--surface-2); }
.ad__body { display: flex; flex-direction: column; gap: 4px; padding: 14px; background: #FFF1CC; color: var(--hitam); text-decoration: none; }
.ad__body strong { font-size: 16px; line-height: 1.25; }
.ad__body span { font-size: 13px; color: var(--muted); }
.ad__body b { font-size: 14px; color: var(--merah); }

/* Teks peraturan */
.lawtext { font-size: 16px; line-height: 1.65; }
.lawtext h2 { font-size: clamp(20px, 2.4vw, 24px); letter-spacing: -0.02em; margin: 28px 0 12px; scroll-margin-top: 96px; padding-top: 16px; border-top: 2px solid var(--hitam); }
.lawtext h2:first-child { margin-top: 0; }
.lawtext h3 { font-size: 18px; margin: 20px 0 8px; }
.lawtext p, .lawtext ul, .lawtext ol, .lawtext table, .lawtext blockquote { margin: 0 0 12px; }
.lawtext ul, .lawtext ol { padding-left: 22px; }
.lawtext li { margin-bottom: 6px; }
.lawtext hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.lawtext blockquote { background: var(--surface-2); padding: 12px 16px; border-radius: 12px; color: var(--muted); font-size: 14px; }
.lawtext table { display: block; overflow-x: auto; max-width: 100%; border-collapse: collapse; font-size: 14px; }
.lawtext th, .lawtext td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
.lawtext th { background: var(--surface-2); }
.lawtext .editor-note { background: #FFF1CC; border-radius: 12px; padding: 12px 16px; font-size: 14px; margin-bottom: 12px; }
.lawtext .editor-note > :last-child { margin-bottom: 0; }
.lawtext .formal-block, .lawtext .memutuskan-line { text-align: center; }
.lawtext .formal-block p { margin-bottom: 6px; }
.lawtext .signature-block { margin: 16px 0; font-size: 15px; }
.lawtext .signature-block p { margin-bottom: 4px; }
.lawtext a { word-break: break-word; }
/* Baris menjorok di sumber terbaca sebagai blok kode; tampilkan sebagai teks biasa yang tetap dilipat */
.lawtext pre { margin: 0 0 12px; padding: 0 0 0 16px; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; background: none; }
.lawtext pre code, .lawtext code { font: inherit; }

.terkait { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 96px; }
.terkait h2 { font-size: 22px; letter-spacing: -0.02em; padding-top: 16px; border-top: 2px solid var(--hitam); }
.terkait__grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.terkait__grid > div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 14px; }
.terkait h3 { font-size: 14px; font-weight: 800; margin: 0 0 6px; color: var(--muted); }
.terkait ul { margin: 0; padding-left: 18px; }
.terkait li { margin-bottom: 6px; }

/* Bar WhatsApp nempel di bawah layar (HP) */
.rbar {
  position: sticky; bottom: 0; z-index: 15;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--putih); border-top: 1px solid var(--line); box-shadow: 0 -4px 12px rgba(0, 0, 0, .06);
}
.rbar span { flex: 1; font-weight: 800; font-size: 14px; line-height: 1.3; }

/* ---------- Layar lebar ---------- */
@media (min-width: 760px) {
  .pcats { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
  .pcat__n { display: block; }
  .pcat__l { font-size: 13px; }
  .pbar__q { flex: 1 1 240px; }
  .seg { flex: 0 0 auto; }
  .seg button { flex: none; }
  .pbar__sel { flex: 0 1 150px; }
  .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pager .pager__num { display: inline-flex; }
  .pager span { display: inline-flex; }
  .rinfo { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .terkait__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rtoc-m { margin-inline: 0; padding-inline: 0; }
}
@media (min-width: 960px) {
  .rhead__ic { display: grid; }
  .rcols { display: flex; gap: 40px; align-items: flex-start; }
  .rside {
    display: flex; flex-direction: column; gap: 14px; flex: 0 0 260px;
    position: sticky; top: 96px; max-height: calc(100vh - 112px); overflow-y: auto;
  }
  .rside__back { font-weight: 700; color: var(--muted); font-size: 14px; }
  .rside__toc { display: flex; flex-direction: column; gap: 2px; font-size: 14px; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 10px; background: var(--bg-card); }
  .rside__toc span { font-size: 12px; font-weight: 800; color: var(--muted); padding: 2px 10px 6px; }
  .rside__toc a { padding: 7px 10px; border-radius: 8px; color: var(--hitam); text-decoration: none; font-weight: 600; }
  .rside__toc a:hover, .rside__toc a.is-aktif { background: #FFF1CC; font-weight: 800; }
  .rside__help { background: var(--hitam); color: var(--putih); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
  .rside__help p { font-weight: 800; font-size: 15px; line-height: 1.35; }
  .rmain { flex: 1 1 auto; }
  .rtoc-m, .ad--m, .rbar { display: none; }
}

/* Catatan kaki editorial ([^1] di Catatan Editorial, sejak 13 Okt 2026) */
.lawtext sup[id^="fnref"] a { color: var(--brand); text-decoration: none; font-weight: 700; padding: 0 1px; }
.lawtext .footnote { margin-top: 24px; font-size: 14px; color: var(--ink-muted); }
.lawtext .footnote hr { border: 0; border-top: 1px solid var(--line); margin: 0 0 12px; }
.lawtext .footnote ol { padding-left: 20px; margin: 0; }
.lawtext .footnote li { margin-bottom: 6px; }
.lawtext .footnote li p { margin: 0; display: inline; }
.lawtext .footnote-backref { color: var(--ink-muted); text-decoration: none; margin-left: 4px; }

/* Tombol Salin per pasal dan per ayat (sejak 13 Okt 2026) */
.lawtext .pasal-judul { display: flex; align-items: center; justify-content: space-between; gap: 12px; scroll-margin-top: 96px; }
.lawtext .ayat-awal { position: relative; padding-right: 44px; scroll-margin-top: 96px; }
.lawtext .salin { font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--bg-card, #fff); color: var(--ink); border-radius: 999px; }
.lawtext .salin img { width: 16px; height: 16px; }
.lawtext .salin--pasal { flex: none; font-size: 13px; font-weight: 600; padding: 6px 12px; }
.lawtext .salin--ayat { position: absolute; top: -2px; right: 0; width: 34px; height: 34px; justify-content: center; padding: 0; opacity: 0.6; }
.lawtext .salin:hover, .lawtext .salin:focus-visible { opacity: 1; border-color: var(--ink); }
.lawtext .salin:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.lawtext .disalin { animation: disalin 1.6s ease-out; border-radius: 6px; }
@keyframes disalin { 0% { background: #fff1cc; } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .lawtext .disalin { animation: none; } }

/* Menu Salin (Salin gambar / Salin teks) dan lembar pratinjau kartu kutipan */
.salin-menu { position: absolute; z-index: 60; background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(26, 26, 26, 0.12); padding: 6px; display: flex; flex-direction: column; min-width: 180px; }
.salin-menu[hidden] { display: none; }
.salin-menu button { font: inherit; font-size: 15px; font-weight: 600; text-align: left; background: none; border: 0; border-radius: 8px; padding: 12px 14px; cursor: pointer; color: var(--ink); }
.salin-menu button:hover, .salin-menu button:focus-visible { background: var(--bg-subtle, #f1f0ec); outline: none; }
.kartu-lembar { position: fixed; inset: 0; z-index: 70; background: rgba(26, 26, 26, 0.55); display: flex; align-items: flex-end; justify-content: center; }
.kartu-lembar[hidden] { display: none; }
.kartu-lembar__kotak { background: var(--bg-card); width: min(560px, 100%); max-height: 92vh; border-radius: 20px 20px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 760px) { .kartu-lembar { align-items: center; } .kartu-lembar__kotak { border-radius: 20px; padding: 22px; } }
.kartu-lembar__kepala { display: flex; align-items: center; justify-content: space-between; }
.kartu-lembar__kepala h2 { margin: 0; font-family: var(--font-display); font-size: 20px; }
.kartu-lembar__tutup { font: inherit; font-size: 26px; line-height: 1; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; border-radius: 8px; }
.kartu-lembar__info { margin: 0; font-size: 14px; color: var(--ink-muted); }
.kartu-lembar__gambar { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; min-height: 200px; }
.kartu-lembar__gambar img { height: min(52vh, 500px); width: auto; flex: none; border-radius: 10px; border: 1px solid var(--line); }
.kartu-lembar__aksi { display: flex; gap: 10px; }
.kartu-lembar__aksi button { flex: 1; min-height: 44px; font: inherit; font-size: 15px; font-weight: 600; border-radius: 10px; cursor: pointer; }
.kartu-lembar__utama { background: var(--brand); color: #fff; border: 0; }
.kartu-lembar__utama[hidden] { display: none; }
.kartu-lembar__garis { background: var(--bg-card); color: var(--ink); border: 1px solid var(--ink); }
body.kartu-buka { overflow: hidden; }
.kartu-lembar__aksi button[hidden] { display: none; }
.kartu-lembar__satu { margin: 0; flex: none; display: flex; flex-direction: column; gap: 8px; scroll-snap-align: start; }
.kartu-lembar__salin1 { font: inherit; font-size: 14px; font-weight: 600; min-height: 40px; border: 1px solid var(--ink); background: var(--bg-card); color: var(--ink); border-radius: 10px; cursor: pointer; }

/* Perlindungan teks peraturan: tidak bisa diblok/disalin langsung; cetak hanya menampilkan pemberitahuan. */
.terlindung .rmain { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.terlindung .rmain a, .terlindung .rmain button { -webkit-touch-callout: default; }
.cetak-lindung { display: none; }
.lindung-dialog__isi { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink); }
@media print {
  .terlindung body > *:not(.cetak-lindung) { display: none !important; }
  .terlindung .cetak-lindung { display: block !important; padding: 48px; font-family: var(--font-sans, sans-serif); color: #1a1a1a; }
  .cetak-lindung h2 { font-family: var(--font-display, sans-serif); font-size: 28px; margin: 32px 0 12px; }
  .cetak-lindung p { font-size: 15px; line-height: 1.6; max-width: 60ch; }
  .cetak-lindung__url { font-weight: 700; }
}
