/* =========================================================
   ASATURA — ARTIKEL (artikel.css)

   Template bersama untuk semua halaman artikel di /artikel/*.
   Dimuat setelah style.css dan layanan.css.

   Urutan pemuatan:
     style.css    -> global (navbar, footer, tombol, tipografi)
     layanan.css  -> hero, breadcrumb, daftar isi, kartu bersama
     artikel.css  -> file ini, khusus badan artikel

   Prefix .ar- dipakai agar tidak bentrok dengan .lp- dan .ct-.
   Navbar dan footer tidak diatur di sini.
   ========================================================= */

.page-artikel{
  --lp-accent-ink: var(--lime-dark);
  --lp-accent-soft:#eef7cb;
  --ar-line:       #e7e0d6;
  --ar-measure:    68ch;   /* lebar baca nyaman */
}

/* ---------------------------------------------------------
   BADAN ARTIKEL
   Satu kolom sempit — panjang baris yang enak dibaca lebih
   penting daripada memenuhi lebar layar.
   --------------------------------------------------------- */
.ar-body{
  padding: 34px 20px 8px;
  max-width: 760px;
  margin: 0 auto;
}
.ar-body > * { max-width: var(--ar-measure); }

.ar-body p{
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink);
  margin: 0 0 20px;
}
.ar-body h2{
  font-size: clamp(20px, 4.4vw, 25px);
  line-height: 1.3;
  color: var(--ink);
  margin: 40px 0 12px;
  scroll-margin-top: 84px;   /* supaya tidak tertutup navbar sticky */
}
.ar-body h2:first-child{ margin-top: 0; }
.ar-body h3{
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink);
  margin: 28px 0 10px;
  scroll-margin-top: 84px;
}
.ar-body ul,
.ar-body ol{
  margin: 0 0 20px;
  padding-left: 0;
  list-style: none;
}
.ar-body li{
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}
.ar-body ul > li::before{
  content: "";
  position: absolute; left: 4px; top: 12px;
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--lp-accent-ink);
}
.ar-body ol{ counter-reset: arlist; }
.ar-body ol > li{ counter-increment: arlist; }
.ar-body ol > li::before{
  content: counter(arlist) ".";
  position: absolute; left: 0; top: 0;
  color: var(--lp-accent-ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ar-body strong{ color: var(--ink); font-weight: 700; }
.ar-body a{
  color: var(--lp-accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ar-body a:hover{ color: var(--ink); }

/* Gambar di dalam artikel */
.ar-figure{ margin: 0 0 24px; max-width: 100%; }
.ar-figure img{
  width: 100%; height: auto; display: block;
  border-radius: 14px; background: var(--bg-alt);
}
.ar-figure figcaption{
  margin-top: 9px;
  font-size: 12.5px; line-height: 1.6; color: var(--ink-muted);
}

/* ---------------------------------------------------------
   RINGKASAN DI ATAS — poin utama artikel
   --------------------------------------------------------- */
.ar-summary{
  background: var(--bg-alt);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 0 0 30px;
}
.ar-summary h2{
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 12px !important;
}
.ar-summary ul{ margin: 0; }
.ar-summary li{ font-size: 14px; margin-bottom: 8px; }
.ar-summary li:last-child{ margin-bottom: 0; }

/* ---------------------------------------------------------
   KOTAK CATATAN
   --------------------------------------------------------- */
.ar-note{
  background: var(--bg-alt);
  border-left: 3px solid var(--lp-accent-ink);
  border-radius: 0 12px 12px 0;
  padding: 16px 18px;
  margin: 0 0 24px;
  font-size: 14px; line-height: 1.75; color: var(--ink);
}
.ar-note b{ color: var(--ink); }

.ar-warn{ border-left-color: #a9412f; }

/* ---------------------------------------------------------
   TABEL
   --------------------------------------------------------- */
.ar-table-wrap{
  overflow-x: auto;
  margin: 0 0 24px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
}
.ar-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 460px;
}
.ar-table th,
.ar-table td{
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--ar-line);
  line-height: 1.55;
}
.ar-table thead th{
  background: var(--bg-alt);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.ar-table tbody tr:last-child td{ border-bottom: 0; }
.ar-table td:first-child{ font-weight: 600; color: var(--ink); }

/* ---------------------------------------------------------
   FAQ ARTIKEL
   --------------------------------------------------------- */
.ar-faq{ margin: 0 0 8px; }
.ar-faq details{
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: var(--card);
  margin-bottom: 10px;
  overflow: hidden;
}
.ar-faq summary{
  cursor: pointer;
  list-style: none;
  padding: 15px 44px 15px 17px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  line-height: 1.5;
}
.ar-faq summary::-webkit-details-marker{ display: none; }
.ar-faq summary svg{
  position: absolute; right: 16px; top: 17px;
  color: var(--ink-muted);
  transition: transform .2s ease;
}
.ar-faq details[open] summary svg{ transform: rotate(180deg); }
.ar-faq details p{
  margin: 0;
  padding: 0 17px 16px;
  font-size: 14px; line-height: 1.75; color: var(--ink-muted);
}

/* ---------------------------------------------------------
   AJAKAN DI TENGAH / AKHIR ARTIKEL
   --------------------------------------------------------- */
.ar-cta{
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 24px 22px;
  margin: 34px 0 8px;
  max-width: 100% !important;
  position: relative;
  overflow: hidden;
}
.ar-cta::before{
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 88% 8%, rgba(205,235,74,.16), transparent 58%);
  pointer-events: none;
}
.ar-cta h2{
  position: relative;
  color: #fff !important;
  font-size: 19px !important;
  margin: 0 0 8px !important;
}
.ar-cta p{
  position: relative;
  color: rgba(255,255,255,.74);
  font-size: 14px;
  margin: 0 0 18px;
}
.ar-cta .btn-lime{ position: relative; }

/* ---------------------------------------------------------
   PENULIS & TANGGAL DI BAWAH ARTIKEL
   --------------------------------------------------------- */
.ar-byline{
  display: flex; align-items: center; gap: 12px;
  padding: 18px 0 0;
  margin-top: 30px;
  border-top: 1px solid var(--ar-line);
  max-width: 100% !important;
}
.ar-byline-ava{
  flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink); color: var(--lime);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
}
.ar-byline h4{ font-size: 14px; color: var(--ink); margin: 0 0 2px; }
.ar-byline p{ font-size: 12.5px; color: var(--ink-muted); margin: 0; line-height: 1.5; }

/* ---------------------------------------------------------
   ARTIKEL LAINNYA
   --------------------------------------------------------- */
.ar-more-grid{ display: grid; grid-template-columns: 1fr; gap: 14px; }
.ar-more{
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 17px 18px;
  text-decoration: none;
  display: block;
}
.ar-more .tag{
  display: inline-block;
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--lp-accent-ink);
  background: var(--lp-accent-soft);
  padding: 3px 9px; border-radius: 999px;
  margin-bottom: 9px;
}
.ar-more h3{ font-size: 15px; color: var(--ink); margin: 0 0 6px; line-height: 1.4; }
.ar-more p{ font-size: 13px; color: var(--ink-muted); margin: 0; line-height: 1.6; }
.ar-more:hover{ border-color: var(--lp-accent-ink); }

/* ---------------------------------------------------------
   AKSESIBILITAS
   --------------------------------------------------------- */
.ar-faq summary:focus-visible,
.ar-more:focus-visible,
.ar-body a:focus-visible{
  outline: 2px solid var(--lp-accent-ink);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce){
  .ar-faq summary svg{ transition: none; }
}

/* ---------------------------------------------------------
   TABLET & DESKTOP
   --------------------------------------------------------- */
@media (min-width: 720px){
  .ar-body{ padding: 42px 40px 8px; }
  .ar-more-grid{ grid-template-columns: repeat(2, 1fr); }
  .ar-cta{ padding: 30px 30px; }
}
@media (min-width: 1080px){
  .ar-more-grid{ grid-template-columns: repeat(3, 1fr); }
}

/* ---------------------------------------------------------
   CETAK
   --------------------------------------------------------- */
@media print{
  .ar-cta, .ar-more-grid, .lp-toc{ display: none; }
  .ar-body{ max-width: none; padding: 0; }
}
