/* Kawal WA — template artikel (bersama untuk semua halaman).
   Token: Kawal Design System (portal). Mobile-first: 360 → 768 → 1080 → 1200. */

@font-face {
  font-family: 'Lexend';
  src: url('Lexend.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-royal-blue: #264CC6;
  --color-royal-blue-dark: #1D3DA0;
  --color-royal-blue-pale: #D9E8F9;
  --color-sunflower: #FFC24F;
  --color-sunflower-dark: #FFA422;
  --color-sunflower-pale: #FFF7EE;
  --color-white: #FFFFFF;
  --color-off-white: #F8FAFF;
  --color-grey-50: #F5F6FA;
  --color-grey-400: #7C7C96;
  --color-grey-500: #555570;
  --color-grey-900: #1A1A2E;
  --border: #E4EBF5;
  --border-soft: #EEF2FA;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
  --shadow-card: 0 1px 2px rgba(23,35,82,.04), 0 14px 34px -18px rgba(23,35,82,.12);
  --shadow-float: 0 1px 2px rgba(23,35,82,.04), 0 24px 48px -28px rgba(23,35,82,.30);
  --shadow-btn: 0 10px 24px -6px rgba(38,76,198,.42);
  --font-body: 'Lexend', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --header-h: 64px;
}
@media (min-width: 1200px) { :root { --header-h: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 72px); }
@media (min-width: 1200px) { html { scroll-padding-top: calc(var(--header-h) + 20px); } }
body {
  margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.7; font-weight: 400;
  color: var(--color-grey-900); background: var(--color-off-white);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
a { color: var(--color-royal-blue); }
a:hover { color: var(--color-royal-blue-dark); }
:focus-visible { outline: 3px solid var(--color-royal-blue); outline-offset: 3px; border-radius: 8px; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.wrap--read { max-width: 740px; }
@media (min-width: 768px) { .wrap--read { max-width: 764px; } }
@media (min-width: 1200px) { .wrap--read { max-width: 1084px; } }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--radius-pill);
  font: 600 15px/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.btn--primary { background: var(--color-royal-blue); color: #fff; box-shadow: var(--shadow-btn); }
.btn--primary:hover { background: var(--color-royal-blue-dark); color: #fff; }
.btn--primary:active { transform: translateY(1px); }
.btn--ghost { background: #fff; color: var(--color-grey-900); border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(23,35,82,.05); }
.btn--ghost:hover { border-color: var(--color-royal-blue); color: var(--color-royal-blue); }
.btn .icon { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95); -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__bar { display: flex; align-items: center; gap: 8px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; }
.logo img { height: 30px; width: auto; }
.site-header .btn { padding: 0 16px; font-size: 14px; }
.menu-toggle {
  width: 44px; height: 44px; padding: 0; display: inline-grid; place-items: center; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; color: var(--color-grey-900);
}
.menu-toggle .icon-close, .menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-main {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  padding: 4px 20px 16px; background: #fff; border-bottom: 1px solid var(--border);
  box-shadow: 0 24px 40px -24px rgba(23,35,82,.28);
}
.nav-main.is-open { display: block; }
.nav-main ul { list-style: none; margin: 0; padding: 0; }
.nav-main a {
  display: flex; align-items: center; min-height: 52px; color: var(--color-grey-900);
  font-size: 17px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--border-soft);
}
.nav-main a:hover { color: var(--color-royal-blue); }
.nav-main li:last-child a { border-bottom: 0; }
@media (max-width: 379px) {
  .site-header__bar { gap: 6px; }
  .logo img { height: 26px; }
  .site-header .btn { padding: 0 12px; font-size: 13px; }
}

@media (min-width: 768px) { .nav-main { padding: 4px 32px 16px; } }
@media (min-width: 1200px) {
  .logo img { height: 36px; }
  .menu-toggle { display: none; }
  .nav-main { display: flex; align-items: center; position: static; padding: 0; margin-right: 12px; background: none; border: 0; box-shadow: none; }
  .nav-main ul { display: flex; gap: 2px; }
  .nav-main a { min-height: 44px; padding: 0 12px; font-size: 15px; border: 0; border-radius: var(--radius-pill); }
  .nav-main a:hover { background: var(--color-grey-50); }
  .site-header .btn { padding: 0 20px; font-size: 15px; }
}

/* ---------- Pola kategori (kartu Artikel terkait; sama dengan gambar OG) ---------- */
.band { --band-a: #D9E8F9; --band-b: #F8FAFF; --ring: rgba(38,76,198,.11); --blob: rgba(255,194,79,.45); position: relative; overflow: hidden; background: linear-gradient(160deg, var(--band-a) 0%, var(--band-b) 100%); }
.band::before, .band::after { content: ""; position: absolute; pointer-events: none; border-radius: 50%; }
.band::before {
  width: 520px; height: 520px; right: -240px; top: -250px;
  background: repeating-radial-gradient(circle, transparent 0 30px, var(--ring) 30px 31.5px);
  -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 70%); mask-image: radial-gradient(circle, #000 35%, transparent 70%);
}
.band::after { width: 280px; height: 280px; right: -70px; bottom: -170px; background: radial-gradient(circle, var(--blob), transparent 66%); }
.band--penipuan { --band-a: #D9E8F9; --band-b: #F8FAFF; --ring: rgba(38,76,198,.11); --blob: rgba(255,194,79,.45); }
.band--parental { --band-a: #FFF7EE; --band-b: #FFFFFF; --ring: rgba(255,164,34,.20); --blob: rgba(38,76,198,.14); }
.band--grooming { --band-a: #D9E8F9; --band-b: #FFF7EE; --ring: rgba(38,76,198,.10); --blob: rgba(255,194,79,.40); }
.band--judi     { --band-a: #FFF7EE; --band-b: #D9E8F9; --ring: rgba(255,164,34,.18); --blob: rgba(38,76,198,.16); }
.band--produk   { --band-a: #264CC6; --band-b: #1D3DA0; --ring: rgba(255,255,255,.12); --blob: rgba(255,194,79,.32); }

/* ---------- Kepala artikel ---------- */
.hero { padding: 4px 0 20px; background: #fff; border-bottom: 1px solid var(--border); }
.hero__body { position: relative; z-index: 1; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; font-size: 13.5px; line-height: 1.4; font-weight: 500; color: var(--color-grey-500); }
.crumbs li { display: flex; align-items: center; min-height: 44px; min-width: 0; max-width: 100%; }
.crumbs li + li::before { content: ""; flex: none; width: 6px; height: 6px; margin: 0 10px 0 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .55; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--color-royal-blue); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--color-grey-900); }
.crumbs li:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kat-chip {
  display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 14px; padding: 6px 12px 6px 10px;
  border-radius: var(--radius-pill); background: #fff; border: 1px solid rgba(38,76,198,.16);
  color: var(--color-royal-blue); font-size: 13px; font-weight: 600; line-height: 1.25;
}
.kat-chip::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--color-sunflower); }
.hero h1 { max-width: 22em; font-size: 29px; line-height: 1.18; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; color: var(--color-grey-900); }
.meta { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 16px; }
.meta__author { font-size: 14px; line-height: 1.45; color: var(--color-grey-900); }
.meta__name { font-weight: 600; }
.meta__role { color: var(--color-grey-500); }
.meta__info { display: flex; flex-wrap: wrap; column-gap: 8px; font-size: 13.5px; line-height: 1.5; color: var(--color-grey-500); }
/* Bagikan: ikon inline di bawah intro (pola Apple Newsroom) */
.share-inline { display: flex; align-items: center; gap: 4px; margin: 8px 0 0 -11px; }
.share-inline__btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: none; color: var(--color-grey-500); cursor: pointer; transition: color .15s, background-color .15s;
}
.share-inline__btn .icon { width: 22px; height: 22px; }
.share-inline__btn:hover { color: var(--color-royal-blue); background: var(--color-grey-50); }
.band--produk .share-inline__btn { color: rgba(255,255,255,.88); }
.band--produk .share-inline__btn:hover { color: #fff; background: rgba(255,255,255,.14); }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 8px); opacity: 0; pointer-events: none;
  padding: 10px 18px; border-radius: var(--radius-pill); background: var(--color-grey-900); color: #fff;
  font-size: 14px; font-weight: 500; line-height: 1.4; box-shadow: 0 10px 30px -10px rgba(23,35,82,.4); transition: opacity .2s, transform .2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 768px) {
  .hero { padding: 12px 0 28px; }
  .crumbs li:last-child { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .hero h1 { font-size: 40px; line-height: 1.14; }
  .meta { flex-direction: row; align-items: center; flex-wrap: wrap; column-gap: 8px; }
  .meta__role { color: var(--color-grey-900); }
  .meta__info { font-size: 14px; }
  .meta__info::before { content: "·"; }
}
@media (min-width: 1200px) { .hero h1 { font-size: 44px; line-height: 1.12; } }

/* Kategori Produk: banner biru, teks putih */
.band--produk .crumbs ol, .band--produk .meta__info, .band--produk .meta__role { color: rgba(255,255,255,.88); }
.band--produk .crumbs [aria-current], .band--produk .meta__author, .band--produk h1 { color: #fff; }
.band--produk .crumbs a:hover { color: #fff; }
.band--produk .kat-chip { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.30); color: #fff; }
.band--produk :focus-visible { outline-color: #fff; }

/* ---------- Tata letak baca ---------- */
.grid { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 700px; margin: 0 auto; }
@media (min-width: 1200px) {
  .grid { max-width: none; grid-template-columns: 240px minmax(0, 700px); column-gap: 80px; justify-content: center; }
  .grid--hero .hero__body { grid-column: 2; }
  .grid--body { grid-template-areas: "toc lead" "toc content"; grid-template-rows: auto 1fr; }
  .toc { grid-area: toc; }
  .lead { grid-area: lead; }
  .content { grid-area: content; }
}

/* ---------- Jawaban Singkat ---------- */
/* Ringkasan di alur baca (pola "Key takeaways"/standfirst): tidak menumpuk di atas banner. */
.answer { margin-top: 20px; padding: 18px 20px 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.answer__label { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--color-royal-blue); }
.answer__label::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--color-sunflower); box-shadow: 0 0 0 4px var(--color-sunflower-pale); }
.answer__text { font-size: 17px; line-height: 1.7; }
@media (min-width: 768px) { .answer { margin-top: 28px; padding: 24px 28px 26px; } .answer__text { font-size: 19px; line-height: 1.65; } }

/* ---------- Paragraf pembuka (jawaban langsung untuk AEO/GEO) ---------- */
.lead { margin-top: 24px; }
.lead p { margin: 0; font-size: 18px; line-height: 1.65; font-weight: 400; color: var(--color-grey-900); text-wrap: pretty; }
.lead a { color: var(--color-royal-blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(38,76,198,.45); }
@media (min-width: 768px) { .lead { margin-top: 28px; } .lead p { font-size: 20px; line-height: 1.6; } }
@media (min-width: 1200px) { .lead { margin-top: 32px; } .lead + .toc + .content .prose { margin-top: 24px; } }

/* ---------- Daftar Isi ----------
   Mobile/tablet: bilah tipis yang menempel di bawah header, menampilkan bagian yang sedang dibaca; ketuk untuk membuka daftar.
   Desktop (≥1200): sidebar sticky di kiri. */
.toc { position: sticky; top: var(--header-h); z-index: 30; margin: 16px -20px 0; }
.toc details {
  background: rgba(255,255,255,.96); -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.toc summary {
  list-style: none; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px 0 20px; cursor: pointer;
  font-size: 14px; line-height: 1.3; color: var(--color-grey-900);
}
.toc summary::-webkit-details-marker { display: none; }
.toc__label { flex: none; font-weight: 700; color: var(--color-royal-blue); }
.toc__current { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: var(--color-grey-500); }
.toc__current:not(:empty)::before { content: ""; display: inline-block; width: 1px; height: 14px; margin-right: 10px; vertical-align: -2px; background: var(--border); }
.toc summary .icon { flex: none; margin-left: auto; color: var(--color-royal-blue); transition: transform .2s; }
.toc details[open] summary .icon { transform: rotate(180deg); }
.toc ol {
  list-style: none; margin: 0; padding: 4px 0 8px; position: absolute; left: 0; right: 0; top: 100%;
  max-height: min(62vh, 440px); overflow: auto; overscroll-behavior: contain;
  background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 24px 40px -24px rgba(23,35,82,.30);
}
.toc a {
  display: flex; align-items: center; min-height: 48px; padding: 10px 20px; text-decoration: none;
  font-size: 15px; line-height: 1.4; color: var(--color-grey-900); border-bottom: 1px solid var(--border-soft);
}
.toc li:last-child a { border-bottom: 0; }
.toc a:hover { color: var(--color-royal-blue); background: var(--color-off-white); }
.toc a[aria-current] { color: var(--color-royal-blue); font-weight: 600; background: var(--color-off-white); }
@media (min-width: 768px) {
  .toc { margin: 16px 0 0; top: calc(var(--header-h) + 8px); }
  .toc details { border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
  .toc summary { border-radius: var(--radius-lg); }
  .toc ol { top: calc(100% + 6px); border: 1px solid var(--border); border-radius: var(--radius-lg); }
}
@media (min-width: 1200px) {
  .toc { top: calc(var(--header-h) + 28px); z-index: auto; align-self: start; margin-top: 32px; max-height: calc(100vh - var(--header-h) - 56px); overflow: auto; scrollbar-width: thin; padding-right: 8px; }
  .toc details { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; border-radius: 0; box-shadow: none; }
  .toc summary { min-height: 0; padding: 0 0 12px; cursor: default; }
  .toc__label { font-size: 14px; color: var(--color-grey-500); }
  .toc__current, .toc summary .icon { display: none; }
  .toc ol { position: static; max-height: none; overflow: visible; padding: 0; background: none; border: 0; border-left: 2px solid var(--border); border-radius: 0; box-shadow: none; }
  .toc a { min-height: 44px; margin-left: -2px; padding: 8px 0 8px 16px; border: 0; border-left: 2px solid transparent; font-size: 14px; color: var(--color-grey-500); }
  .toc a:hover, .toc a[aria-current] { background: none; }
  .toc a[aria-current] { border-left-color: var(--color-royal-blue); }
}

/* ---------- Isi artikel ---------- */
.prose { margin-top: 28px; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 14px; }
.prose h2, .h2 { font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; color: var(--color-grey-900); }
.prose h2 { margin: 24px 0 12px; }
.prose h3 { margin: 24px 0 12px; font-size: 19px; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
.prose h2 + h3 { margin-top: 12px; }
.prose strong { font-weight: 600; }
.prose a, .faq__answer a, .answer a {
  color: var(--color-royal-blue); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 3px; text-decoration-color: rgba(38,76,198,.45); padding: 6px 0; overflow-wrap: anywhere;
}
.prose a:hover, .faq__answer a:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.prose ol, .prose ul, .faq__answer ol, .faq__answer ul { list-style: none; margin: 0 0 14px; padding: 0; }
.prose li, .faq__answer li { position: relative; margin: 0 0 8px; padding-left: 44px; }
.prose ol > li::before, .faq__answer ol > li::before {
  content: counter(list-item); position: absolute; left: 0; top: .2em; width: 28px; height: 28px; border-radius: 50%;
  background: var(--color-royal-blue-pale); color: var(--color-royal-blue);
  font-size: 14px; font-weight: 700; line-height: 28px; text-align: center; font-variant-numeric: tabular-nums;
}
.prose ul > li, .faq__answer ul > li { padding-left: 28px; }
.prose ul > li::before, .faq__answer ul > li::before { content: ""; position: absolute; left: 6px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--color-royal-blue); }
.prose ul.checklist > li { padding-left: 34px; }
.prose ul.checklist > li::before { left: 0; top: .28em; width: 20px; height: 20px; border-radius: 6px; background: #fff; border: 2px solid var(--color-royal-blue); box-sizing: border-box; }
.prose ul.checklist > li.is-done::before { background: var(--color-royal-blue); }
.prose blockquote { margin: 4px 0 16px; padding: 18px 20px; border-radius: var(--radius-lg); background: var(--color-sunflower-pale); border: 1px solid #F5E4B8; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; height: 1px; background: var(--border); margin: 24px 0; }
@media (min-width: 768px) {
  .prose, .faq__answer { font-size: 18px; }
  .prose p { margin-bottom: 16px; }
  .prose ol, .prose ul { margin-bottom: 16px; }
  .prose h2, .h2 { font-size: 30px; }
  .prose h3 { font-size: 21px; }
}

/* Kutipan sumber [n] */
.cite { font-size: .66em; line-height: 0; vertical-align: super; margin-left: 2px; white-space: nowrap; }
.cite a {
  position: relative; padding: 1px 3px !important; border-radius: 6px; font-weight: 600;
  text-decoration: none !important; color: var(--color-royal-blue);
}
.cite a::after { content: ""; position: absolute; inset: -14px -8px; }
.cite a:hover { background: var(--color-royal-blue-pale); }

/* Tabel: gulir di dalam wadahnya sendiri */
.table-wrap {
  margin: 4px 0 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background:
    linear-gradient(to right, #fff 30%, rgba(255,255,255,0)) left / 40px 100% no-repeat local,
    linear-gradient(to left, #fff 30%, rgba(255,255,255,0)) right / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(23,35,82,.14), transparent) left / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(23,35,82,.14), transparent) right / 14px 100% no-repeat scroll,
    #fff;
}
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.table-wrap.cols-2 table { min-width: 480px; }
.table-wrap.cols-3 table { min-width: 600px; }
.table-wrap.cols-4 table { min-width: 720px; }
.table-wrap.cols-5 table { min-width: 840px; }
.table-wrap th { padding: 14px 16px; text-align: left; vertical-align: bottom; font-weight: 700; color: var(--color-grey-900); background: var(--color-off-white); border-bottom: 1px solid var(--border); }
.table-wrap td { padding: 14px 16px; vertical-align: top; border-bottom: 1px solid var(--border-soft); }
.table-wrap td:first-child { font-weight: 600; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap strong { font-weight: 700; }
@media (min-width: 768px) { .table-wrap table { font-size: 15.5px; } }

/* Contoh ilustrasi → gelembung chat */
.chat {
  margin: 4px 0 16px; padding: 14px 12px 16px; border-radius: var(--radius-xl);
  background-color: #EAF0FA; background-image: radial-gradient(rgba(38,76,198,.08) 1.2px, transparent 1.6px); background-size: 16px 16px;
}
.chat__cap { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 14px; }
.chat__label { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 12px; background: #fff; color: var(--color-grey-500); font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.chat__label .icon { width: 16px; height: 16px; color: var(--color-royal-blue); }
.chat__source { padding: 0 4px; font-size: 13.5px; line-height: 1.5; color: var(--color-grey-500); }
.chat__thread { display: flex; flex-direction: column; gap: 8px; }
.bubble { align-self: flex-start; max-width: min(88%, 520px); padding: 10px 14px 11px; border-radius: 4px 18px 18px 18px; background: #fff; box-shadow: 0 1px 1.5px rgba(23,35,82,.12); font-size: 16px; line-height: 1.55; }
.bubble--out { align-self: flex-end; background: var(--color-royal-blue-pale); border-radius: 18px 4px 18px 18px; }
.bubble p { margin: 0 !important; }
.bubble__name { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 600; color: var(--color-royal-blue); }
@media (min-width: 768px) { .chat { padding: 20px 24px 24px; } .chat__label { font-size: 13px; border-radius: var(--radius-pill); } .bubble { font-size: 16.5px; } }

/* Gambar produk & contoh chat (figure dari markdown) */
.prose .shot { width: 85%; max-width: 360px; margin: 32px auto 36px; }
.shot img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--border); background: var(--color-white); box-shadow: 0 1px 2px rgba(23,35,82,.05), 0 18px 40px -22px rgba(23,35,82,.28); }
.shot figcaption { margin-top: 12px; font-size: 14px; line-height: 1.55; color: #555570; text-align: left; text-wrap: pretty; }
.shot--chat img { border: 0; border-radius: 28px; box-shadow: 0 2px 6px rgba(23,35,82,.06), 0 24px 48px -24px rgba(23,35,82,.30); }
.shot figcaption a { color: var(--color-royal-blue); text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 768px) { .prose .shot { width: 100%; margin: 40px auto 44px; } .shot figcaption { font-size: 14.5px; } }

/* ---------- CTA Kawal WA (halus) ---------- */
.cta {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 40px; padding: 22px 20px;
  border-radius: var(--radius-xl); background: linear-gradient(135deg, #D9E8F9 0%, #FFF7EE 100%); border: 1px solid var(--border);
}
.cta__icon { width: 56px; height: 56px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(38,76,198,.12); }
.cta__icon img { width: 44px; height: 44px; }
.cta__title { font-size: 18px; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
.cta__text { margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--color-grey-500); }
.cta .btn { grid-column: 2; justify-self: start; margin-top: 4px; }
.cta__note { grid-column: 1 / -1; display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 0; padding-top: 14px; border-top: 1px solid rgba(38,76,198,.12); font-size: 13px; line-height: 1.55; color: var(--color-grey-500); text-wrap: pretty; }
.cta__note .icon { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--color-royal-blue); }
@media (min-width: 768px) {
  .cta { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 26px 28px; }
  .cta__title { font-size: 19px; }
  .cta .btn { grid-column: auto; margin-top: 0; }
}

/* ---------- FAQ ---------- */
.faq { margin-top: 40px; }
.faq__list { margin-top: 12px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.faq__item + .faq__item { border-top: 1px solid var(--border); }
.faq__q { margin: 0; font-size: 16.5px; line-height: 1.45; font-weight: 600; letter-spacing: -.005em; }
.faq__q button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px;
  padding: 16px 16px 16px 20px; border: 0; background: none; cursor: pointer; text-align: left;
  font: inherit; color: var(--color-grey-900); border-radius: var(--radius-lg);
}
.faq__q button:hover { color: var(--color-royal-blue); }
.faq__q button:focus-visible { outline-offset: -3px; }
.faq__icon { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--color-royal-blue-pale); color: var(--color-royal-blue); transition: transform .2s, background-color .2s, color .2s; }
.faq__icon .icon { width: 18px; height: 18px; }
.faq__q button[aria-expanded="true"] .faq__icon { transform: rotate(180deg); background: var(--color-royal-blue); color: #fff; }
.faq__answer { padding: 0 20px 20px; font-size: 16px; line-height: 1.7; }
.faq__answer p { margin: 0 0 1em; }
.faq__answer > :last-child { margin-bottom: 0; }
.faq__answer[hidden] { padding: 0 !important; }
@media (min-width: 768px) {
  .faq__q { font-size: 18px; }
  .faq__q button { padding: 20px 20px 20px 24px; }
  .faq__answer { padding: 0 24px 24px; font-size: 17px; }
}

/* ---------- Sumber ----------
   Daftar referensi rapat (pola NYT/Guardian/Wikipedia): tipe kecil, penerbit tebal, tanpa garis pemisah. */
.sources { margin-top: 40px; }
.sources .h2 { font-size: 20px; }
.sources ol { list-style: none; margin: 12px 0 0; padding: 0; }
.sources li {
  margin: 0 -10px; padding: 4px 10px; border-radius: 8px; font-size: 14px; line-height: 1.55; color: var(--color-grey-500);
  transition: background-color .6s;
}
.sources li:target { background: var(--color-sunflower-pale); }
.src__pub { font-weight: 600; color: var(--color-grey-900); }
.sources a { padding: 4px 0; color: var(--color-royal-blue); font-weight: 500; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: rgba(38,76,198,.4); }
.sources a:hover { text-decoration-color: currentColor; }
.sources a .icon { display: inline-block; width: 13px; height: 13px; margin-left: 3px; vertical-align: -1px; }
.sources strong { font-weight: 600; color: var(--color-grey-900); }
@media (min-width: 768px) {
  .sources .h2 { font-size: 22px; }
  .sources li { font-size: 14.5px; }
}

/* ---------- Artikel terkait ---------- */
.related { margin-top: 48px; padding: 40px 0 56px; border-top: 1px solid var(--border); }
.related__grid { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 16px; }
.card {
  display: flex; flex-direction: row; height: 100%; overflow: hidden; text-decoration: none; color: var(--color-grey-900);
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-card);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { color: var(--color-grey-900); transform: translateY(-2px); border-color: #D2DEF2; box-shadow: 0 1px 2px rgba(23,35,82,.05), 0 22px 40px -22px rgba(23,35,82,.24); }
.card__band { width: 76px; flex: none; }
.card__band::before { width: 260px; height: 260px; right: -110px; top: -120px; }
.card__band::after { width: 160px; height: 160px; right: -30px; bottom: -100px; }
.card__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.card__cat { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--color-royal-blue); }
.card__title { font-size: 17px; line-height: 1.4; font-weight: 600; letter-spacing: -.01em; text-wrap: pretty; }
.card__go { margin-top: auto; padding-top: 8px; color: var(--color-royal-blue); }
.card:hover .card__title { color: var(--color-royal-blue); }
@media (min-width: 768px) { .card__band { width: 112px; } }
@media (min-width: 1200px) {
  .related__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .card { flex-direction: column; }
  .card__band { width: auto; height: 72px; }
}

/* ---------- Bagikan: lihat .share-inline di kepala artikel ---------- */

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0 32px; background: #fff; border-top: 1px solid var(--border); }
.site-footer__top { display: flex; flex-direction: column; gap: 20px; }
.site-footer .logo img { height: 32px; }
.site-footer nav ul { list-style: none; margin: 0 0 0 -10px; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 4px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: var(--radius-pill); font-size: 15px; color: var(--color-grey-900); text-decoration: none; }
.site-footer nav a:hover { background: var(--color-grey-50); color: var(--color-royal-blue); }
.site-footer__copy { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-soft); font-size: 14px; color: var(--color-grey-500); }
@media (min-width: 1080px) {
  .site-footer__top { flex-direction: row; align-items: center; justify-content: space-between; }
  .site-footer nav ul { margin: 0; justify-content: flex-end; }
}

/* ---------- Indeks blog & kategori ---------- */
.nav-main a[aria-current] { color: var(--color-royal-blue); font-weight: 600; }
.blog-hero h1 { max-width: none; }
.blog-count { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--color-grey-500); }
.blog-tools { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.search { position: relative; display: flex; align-items: center; max-width: 520px; }
.search .icon { position: absolute; left: 16px; color: var(--color-grey-400); pointer-events: none; }
.search input {
  width: 100%; min-height: 48px; padding: 0 18px 0 46px; border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: var(--color-off-white); color: var(--color-grey-900); font: 400 16px/1.4 var(--font-body); -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--color-grey-400); }
.search input:focus { outline: none; border-color: var(--color-royal-blue); background: #fff; box-shadow: 0 0 0 3px rgba(38,76,198,.18); }
.chips { display: flex; gap: 8px; margin: 0 -20px; padding: 2px 20px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: #fff; color: var(--color-grey-900); font-size: 14.5px; font-weight: 500; line-height: 1; white-space: nowrap; text-decoration: none;
  transition: border-color .2s, color .2s, background-color .2s;
}
.chip span { font-size: 12.5px; font-weight: 600; color: var(--color-grey-500); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--color-royal-blue); color: var(--color-royal-blue); }
.chip[aria-current] { background: var(--color-royal-blue); border-color: var(--color-royal-blue); color: #fff; }
.chip[aria-current] span { color: rgba(255,255,255,.85); }
.blog-body { padding-top: 32px; padding-bottom: 80px; }
.blog-group + .blog-group { margin-top: 56px; }
.blog-group[hidden], .blog-grid > li[hidden] { display: none; }
.blog-group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.blog-group__count { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 500; color: var(--color-grey-500); white-space: nowrap; text-decoration: none; }
.blog-group__count:hover { color: var(--color-royal-blue); text-decoration: underline; text-underline-offset: 3px; }
.blog-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.card--post { flex-direction: column; }
.card--post .card__band { width: auto; height: 64px; }
.related .card { flex-direction: row; align-items: stretch; border-radius: var(--radius-lg); }
.related .card__band { width: 56px; height: auto; }
.related .card__body { gap: 4px; padding: 14px 16px; }
.related .card__title { font-size: 15px; line-height: 1.35; }
.related .card__cat { font-size: 12px; }
.related .card__go { display: none; }
@media (min-width: 1200px) { .related .card { flex-direction: row; } .related .card__band { width: 56px; height: auto; } }
.card__desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; line-height: 1.55; color: var(--color-grey-500); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; font-size: 13.5px; font-weight: 500; color: var(--color-grey-500); }
.card__foot .icon { color: var(--color-royal-blue); }
.blog-empty { padding: 48px 0; text-align: center; font-size: 16px; color: var(--color-grey-500); }
@media (min-width: 768px) {
  .chips { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
  .blog-body { padding-top: 40px; padding-bottom: 96px; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (min-width: 1200px) { .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover { transform: none; }
}

@media print {
  .site-header, .toc, .cta, .share-inline, .toast, .related, .site-footer { display: none; }
  .answer { margin-top: 16px; }
  .faq__answer[hidden] { display: block; }
}

/* ===== Kawal WA: header & footer seragam (v3) ===== */
.kws-h{position:sticky;top:0;z-index:50;background:#FFFFFF;border-bottom:1px solid #D5DCEF;font-family:'Lexend',system-ui,sans-serif}
.kws-wrap{max-width:1160px;margin:0 auto;padding:0 20px;box-sizing:border-box}
.kws-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;height:64px}
.kws-logo{flex:none;display:flex;align-items:center;text-decoration:none}
.kws-logo img{height:26px;width:auto;max-width:none;aspect-ratio:480/128;object-fit:contain;display:block}
.kws-nav{display:none;align-items:center;gap:28px}
.kws-nav a{color:#4A5578;font-size:15px;font-weight:500;text-decoration:none}
.kws-nav a:hover{color:#264CC6}
.kws-nav a[aria-current="page"]{color:#264CC6;font-weight:700}
.kws-act{display:flex;align-items:center;gap:4px}
.kws-pill{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border-radius:9999px;font-size:15px;line-height:1;font-weight:700;text-decoration:none;white-space:nowrap;box-sizing:border-box;transition:background-color .15s ease}
.kws-pill--out{border:1.5px solid #264CC6;background:#FFFFFF;color:#264CC6}
.kws-pill--out:hover{background:#EEF2FC;color:#264CC6}
.kws-pill--solid{background:#264CC6;color:#FFFFFF;box-shadow:0 4px 12px rgba(38,76,198,.25)}
.kws-pill--solid:hover{background:#193181;color:#FFFFFF}
.kws-burger,.kws-burger.menu-toggle{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:0;background:transparent;border-radius:10px;color:#193181;cursor:pointer;padding:0}
.kws-burger:hover{background:#EEF2FC}
.kws-burger svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.kws-drop{border-top:1px solid #D5DCEF;background:#FFFFFF;padding:8px 20px 20px;display:flex;flex-direction:column}
.kws-drop--js{display:none}
.kws-drop--js.is-open{display:flex}
.kws-drop a{padding:14px 0;font-size:17px;font-weight:500;color:#14204A;text-decoration:none;border-bottom:1px solid #EEF2FC}
.kws-drop a[aria-current="page"]{color:#264CC6;font-weight:700}
.kws-f{background:#0E1530;padding:36px 0 24px;font-family:'Lexend',system-ui,sans-serif}
.kws-fgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.kws-fwide{grid-column:1 / -1}
.kws-f img{height:30px;width:auto;max-width:none;aspect-ratio:480/128;object-fit:contain;display:block}
.kws-f .kws-tag{margin:12px 0 0;font-size:14px;line-height:22px;color:#A3ADCB;max-width:320px}
.kws-f h3{margin:0 0 8px;font-size:13px;line-height:20px;font-weight:700;color:#FFFFFF}
.kws-f a{display:block;color:#C9D1E8;font-size:15px;line-height:22px;text-decoration:none;padding:6px 0}
.kws-f a:hover{color:#FFFFFF}
.kws-soc{display:flex;flex-wrap:wrap;gap:0 18px;margin-top:4px}
.kws-copy{margin:24px 0 0;padding-top:16px;border-top:1px solid #2A3766;font-size:13px;color:#A3ADCB}
@media (min-width:861px){
  .kws-wrap{padding:0 32px}
  .kws-nav{display:flex}
  .kws-burger,.kws-burger.menu-toggle{display:none !important}
  .kws-drop,.kws-drop--js.is-open{display:none !important}
  .kws-logo img{height:32px}
  .kws-pill{padding:0 20px}
  .kws-fgrid{grid-template-columns:1.1fr 0.8fr 1.2fr 0.9fr 0.6fr 1.4fr;gap:28px}
  .kws-fwide{grid-column:auto}
}
