/* ============================================================
   SerambiPikir — Article detail page styles
   Diekstrak dari inline <style> di view artikel publik supaya
   bisa di-cache browser. Isi identik dengan versi inline — tidak
   ada perubahan logika/gaya, hanya dipindah ke file statis.
   ============================================================ */

/* ── READ ARCHITECTURE SPECIFICS ── */
#reading-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--sp-primary); width: 0%; z-index: 2000; transition: width .1s linear; border-radius: 0 2px 2px 0; }
.action-bar { display: flex; gap: .5rem; justify-content: flex-end; margin-bottom: 1.25rem; }
.act-btn { display: flex; align-items: center; gap: .4rem; padding: .35rem .9rem; border-radius: 100px; font-size: .78rem; font-weight: 600; border: 1.5px solid var(--sp-border); background: var(--sp-surface); color: var(--sp-text); cursor: pointer; transition: border-color .2s, color .2s; text-decoration: none; }
.act-btn:hover { border-color: var(--sp-primary); color: var(--sp-primary); }
.act-btn.active { background: var(--sp-primary); border-color: var(--sp-primary); color: #fff; }
.sp-breadcrumb { font-size: .78rem; color: var(--sp-muted); margin-bottom: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; }
.sp-breadcrumb a { color: var(--sp-muted); text-decoration: none; }
.sp-breadcrumb a:hover { color: var(--sp-primary); }
.sp-breadcrumb span { margin: 0 .35rem; color: var(--sp-border); }
.art-title { font-family: 'Lora', serif; font-size: 2.25rem; font-weight: 700; line-height: 1.3; color: var(--sp-text); margin-bottom: .85rem; overflow-wrap: break-word; word-wrap: break-word; word-break: normal; }
.art-excerpt { font-size: 1.05rem; color: var(--sp-muted); line-height: 1.75; margin-bottom: 1.25rem; overflow-wrap: break-word; }
.art-meta-bar { display: flex; align-items: center; gap: .6rem; padding: .85rem 0; border-top: 1px solid var(--sp-border); border-bottom: 1px solid var(--sp-border); margin-bottom: 1.5rem; flex-wrap: wrap; }
.art-meta-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.art-meta-author { font-size: .875rem; font-weight: 600; color: var(--sp-text); text-decoration: none; }
.art-meta-author:hover { color: var(--sp-primary); }
.art-meta-info { font-size: .78rem; color: var(--sp-muted); }
.art-meta-actions { margin-left: auto; display: flex; gap: .4rem; }
.icon-btn { width: 34px; height: 34px; border-radius: 8px; border: 1.5px solid var(--sp-border); background: var(--sp-surface); color: var(--sp-muted); display: flex; align-items: center; justify-content: center; font-size: .9rem; cursor: pointer; transition: border-color .2s, color .2s; text-decoration: none; }
.icon-btn:hover { border-color: var(--sp-primary); color: var(--sp-primary); }
.icon-btn.liked { background: var(--sp-primary) !important; border-color: var(--sp-primary) !important; color: #fff !important; }
.like-btn { display: flex; align-items: center; gap: .35rem; padding: .35rem .85rem; border-radius: 8px; border: 1.5px solid var(--sp-border); background: var(--sp-surface); color: var(--sp-muted); font-size: .8rem; font-weight: 600; cursor: pointer; transition: all .2s; }
.like-btn:hover, .like-btn.liked { background: var(--sp-primary); border-color: var(--sp-primary); color: #fff; }

/* ── COVER UTAMA ── */
.art-cover { width: 100%; max-height: 480px; border-radius: var(--sp-card-radius); overflow: hidden; margin-bottom: 1.75rem; background: var(--sp-surface-alt); display: flex; align-items: center; justify-content: center; }
.art-cover img { max-width: 100%; max-height: 480px; width: auto; height: auto; object-fit: contain; display: block; margin: 0 auto; }
.art-cover-fallback { width: 100%; height: 270px; background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%); display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.08); font-family: 'Lora', serif; font-weight: 700; font-size: 4rem; letter-spacing: -0.04em; user-select: none; }

/* ── BODY ARTIKEL ── */
.art-body { font-size: 1.05rem; line-height: 1.95; color: var(--sp-text); overflow-wrap: break-word; }
.art-body p { margin-bottom: 1.4rem; }
.art-body h2 { font-family: 'Lora', serif; font-size: 1.45rem; font-weight: 700; margin: 2.5rem 0 1rem; color: var(--sp-text); }
.art-body h3 { font-family: 'Lora', serif; font-size: 1.2rem; font-weight: 700; margin: 2rem 0 .75rem; color: var(--sp-text); }
.art-body blockquote { border-left: 3px solid var(--sp-primary); padding: .85rem 1.25rem; background: #F5F3FF; border-radius: 0 8px 8px 0; margin: 1.75rem 0; font-style: italic; color: #4B5563; }
/* Kutipan ungu-muda didesain untuk latar terang; di mode gelap ditimpa lebih gelap & lembut. */
[data-theme="dark"] .art-body blockquote { background: #2f3741; border-left: 3px solid #F5F3FF; color: var(--sp-text); }
.art-body p.ql-puisi, .art-body .ql-puisi { margin-bottom: 0.1rem !important; line-height: 1.4 !important; text-align: left !important; white-space: pre-line; font-style: italic; color: var(--sp-text); }
.art-body .ql-puisi:empty::before { content: '\00a0'; }

/* ── FOTO DI DALAM BODY ── */
.art-body img { max-width: 100%; height: auto !important; width: 100%; object-fit: contain; border-radius: 12px; margin: 2rem auto 0 auto; display: block; }

/* ── CAPTION / HAK CIPTA FOTO ── */
.art-body p.ax-caption-line, .art-body .ax-caption-line { text-align: center !important; font-size: 0.78rem !important; font-style: italic !important; color: var(--sp-muted) !important; line-height: 1.55 !important; margin-top: 0.35rem !important; margin-bottom: 2rem !important; padding: 0.3rem 3rem 0 !important; display: block; border-top: none !important; max-width: 100%; }
.art-body p:has(img)+p.ax-caption-line { margin-top: -1.2rem !important; }
.art-body p.ax-caption-line::before, .art-body .ax-caption-line::before { content: '  '; font-style: normal; font-size: 0.68rem; opacity: 0.5; }

/* ── AVATAR INITIALS ENGINE ── */
.avatar-initials { display: inline-flex; align-items: center; justify-content: center; background: #EEF2FF; color: #4F46E5; font-weight: 700; border-radius: 50%; border: 1px solid #DDD6FE; flex-shrink: 0; text-transform: uppercase; user-select: none; }
[data-theme="dark"] .avatar-initials { background: rgba(99, 102, 241, 0.18); color: #A5B4FC; border-color: rgba(99, 102, 241, 0.35); }
.avatar-initials-xs { width: 22px; height: 22px; font-size: .65rem; }
.avatar-initials-sm { width: 40px; height: 40px; font-size: .85rem; }
.avatar-initials-md { width: 38px; height: 38px; font-size: .8rem; }
.avatar-initials-lg { width: 64px; height: 64px; font-size: 1.25rem; }
.avatar-initials-xl { width: 72px; height: 72px; font-size: 1.45rem; margin: 0 auto .75rem; }

/* ── KOMENTAR ── */
.sec-label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 700; color: var(--sp-text); margin: 2rem 0 1.25rem; }
.sec-label::before { content: ''; display: block; width: 3px; height: 1em; background: var(--sp-primary); border-radius: 2px; }
.comment-box { display: flex; align-items: flex-start; gap: .85rem; margin-bottom: 1.25rem; }
.cmt-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.cmt-bubble { flex: 1; background: var(--sp-surface-alt); border: 1px solid var(--sp-border); border-radius: 0 12px 12px 12px; padding: .85rem 1rem; }
.cmt-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .4rem; }
.cmt-name { font-size: .85rem; font-weight: 700; color: var(--sp-text); }
.cmt-time { font-size: .72rem; color: var(--sp-muted); }
.cmt-text { font-size: .85rem; line-height: 1.65; color: var(--sp-text); }
.cmt-actions { display: flex; gap: .75rem; margin-top: .5rem; }
.cmt-act { background: none; border: none; font-size: .75rem; color: var(--sp-muted); cursor: pointer; padding: 0; display: flex; align-items: center; gap: .25rem; }
.cmt-act.sp-comment-like-btn.is-liked { color: var(--sp-primary); font-weight: 700; }
[data-theme="dark"] .cmt-act.sp-comment-like-btn.is-liked { color: #FFFFFF; }
.replies { margin-left: 52px; margin-top: .75rem; border-left: 2px solid var(--sp-border); padding-left: .85rem; }
.reply-box { display: flex; align-items: flex-start; gap: .7rem; margin-bottom: .85rem; }
.reply-bubble { flex: 1; background: var(--sp-surface-alt); border-radius: 0 10px 10px 10px; padding: .7rem .85rem; }
.reply-name { font-size: .8rem; font-weight: 700; color: var(--sp-text); }
.reply-text { font-size: .8rem; line-height: 1.6; color: var(--sp-text); }
.reply-time { font-size: .7rem; color: var(--sp-muted); margin-top: .25rem; }
.sp-reply-expand-btn { background: none; border: none; color: var(--sp-primary); font-size: .78rem; font-weight: 600; cursor: pointer; padding: .3rem 0; display: flex; align-items: center; gap: .3rem; margin-top: .25rem; }
[data-theme="dark"] .sp-reply-expand-btn { background: none; border: none; color: var(--sp-surface); font-size: .78rem; font-weight: 600; cursor: pointer; padding: .3rem 0; display: flex; align-items: center; gap: .3rem; margin-top: .25rem; }
.sp-reply-expand-btn:hover { text-decoration: underline; }
.sp-reply-expand-btn i { transition: transform .2s ease; }
.sp-reply-expand-btn.is-open i { transform: rotate(180deg); }
.cmt-form-wrap { background: var(--sp-surface); border: 1.5px solid var(--sp-border); border-radius: var(--sp-card-radius); padding: 1.1rem; margin-bottom: 1.75rem; }
.cmt-form-wrap textarea { width: 100%; border: 1px solid var(--sp-border); border-radius: 8px; padding: .7rem .9rem; font-size: .875rem; text-align: left; resize: none; outline: none; font-family: 'Inter', sans-serif; color: var(--sp-text); background: var(--sp-surface); }

/* ── AUTHOR INLINE CARD ── */
.author-inline { background: linear-gradient(135deg, #F5F3FF, #EEF2FF); border: 1px solid #DDD6FE; border-radius: var(--sp-card-radius); padding: 1.5rem; display: flex; gap: 1.25rem; align-items: flex-start; margin: 2rem 0; }
[data-theme="dark"] .author-inline { background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(99, 102, 241, 0.1)); border-color: rgba(99, 102, 241, 0.3); }
.author-inline-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid var(--sp-surface); box-shadow: 0 2px 8px rgba(79, 70, 229, .15); }
.author-inline-name { font-size: 1rem; font-weight: 700; color: var(--sp-text); text-decoration: none; }
.author-inline-bio { font-size: .825rem; color: var(--sp-muted); line-height: 1.6; margin-bottom: .75rem; }
.btn-follow { background: var(--sp-primary); color: #fff; border: none; border-radius: 100px; padding: .3rem 1rem; font-size: .78rem; font-weight: 700; cursor: pointer; display: inline-block; text-decoration: none; }
.btn-follow.is-following { background: var(--sp-surface-alt); color: var(--sp-text); border: 1.5px solid var(--sp-border); }

/* ── ARTIKEL TERKAIT ── */
.related-card { border-radius: var(--sp-card-radius); border: 1px solid var(--sp-border); overflow: hidden; background: var(--sp-surface); transition: transform .2s, box-shadow .2s; height: 100%; display: block; text-decoration: none; color: inherit; cursor: pointer; }
.related-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08); border-color: var(--sp-muted); color: inherit; text-decoration: none; }
.related-card-img { aspect-ratio: 16/10; overflow: hidden; }
.related-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.related-card:hover .related-card-img img { transform: scale(1.04); }
.related-card-body { padding: .9rem 1rem 1rem; }
.related-cat { display: inline-block; font-size: .65rem; font-weight: 700; padding: .18rem .55rem; border-radius: 100px; margin-bottom: .5rem; background: #FEF3C7; color: #92400E; }
[data-theme="dark"] .related-cat { background: rgba(252, 211, 77, 0.15); color: #FCD34D; }
.related-title { font-size: .9rem; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: .6rem; color: var(--sp-text); }
.related-meta { display: flex; align-items: center; gap: .4rem; font-size: .72rem; color: var(--sp-muted); }
.related-meta-avatar { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }

/* ── SIDEBAR ── */
.sidebar-sticky { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 1.5rem; }
.widget { background: var(--sp-surface); border: 1px solid var(--sp-border); border-radius: var(--sp-card-radius); overflow: hidden; }
.author-side { text-align: center; padding: 1.5rem 1.25rem; }
.author-side-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 auto .75rem; border: 3px solid var(--sp-surface-alt); display: block; }
.author-side-name { font-weight: 700; font-size: .95rem; color: var(--sp-text); text-decoration: none; }
.author-side-bio { font-size: .78rem; color: var(--sp-muted); line-height: 1.6; margin-bottom: .85rem; }
.widget-hd { padding: .85rem 1.25rem; border-bottom: 1px solid var(--sp-border); font-size: .8rem; font-weight: 700; color: var(--sp-text); display: flex; align-items: center; gap: .4rem; background: var(--sp-surface-alt); text-transform: uppercase; letter-spacing: 0.02em; }
.widget-hd::before { content: '▎'; color: var(--sp-primary); font-size: .9rem; margin-right: 2px; }
.top-post { display: flex; gap: .7rem; padding: .85rem 1.25rem; border-bottom: 1px solid var(--sp-border); align-items: flex-start; transition: background 0.12s; text-decoration: none; }
.top-post:last-child { border-bottom: none; }
.top-post:hover { background: var(--sp-surface-alt); }
.top-post-img { width: 68px; height: 52px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.top-post-title { font-size: .825rem; font-weight: 600; line-height: 1.4; color: var(--sp-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.top-post-meta { font-size: .7rem; color: var(--sp-muted); margin-top: .35rem; display: flex; align-items: center; gap: 4px; }
.ad-box { border-radius: 12px; overflow: hidden; line-height: 0; display: block; border: 1px solid var(--sp-border, #E2E8F0); box-shadow: 0 6px 20px rgba(15, 23, 42, 0.14); transition: box-shadow .2s ease, transform .2s ease; }
.ad-box:hover { box-shadow: 0 10px 28px rgba(15, 23, 42, 0.2); transform: translateY(-3px); }
.ad-box img { width: 100%; max-height: 220px; object-fit: cover; display: block; border-radius: 12px; }

@media (max-width: 768px) {
    .action-bar { display: none; }
    .art-title { font-size: 1.75rem; }
    .art-body p.ax-caption-line, .art-body .ax-caption-line { padding: 0.3rem 1rem 0 !important; font-size: 0.72rem !important; }
}

/* ── SHARE MODAL ── */
.share-modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 1050; display: none; align-items: center; justify-content: center; backdrop-filter: blur(4px); padding: 1rem; }
.share-modal-overlay.open { display: flex; }
.share-modal { background: var(--sp-surface); border-radius: 16px; padding: 2rem; max-width: 440px; width: 100%; box-shadow: 0 20px 60px rgba(0, 0, 0, .2); position: relative; animation: modal-in .2s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.share-modal-close { position: absolute; top: 1rem; right: 1rem; width: 30px; height: 30px; border-radius: 50%; border: none; background: var(--sp-surface-alt); color: var(--sp-muted); font-size: .85rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.share-modal-close:hover { background: var(--sp-border); }
.share-modal-title { font-family: 'Lora', serif; font-size: 1.1rem; font-weight: 700; color: var(--sp-text); margin-bottom: 1.25rem; }
.share-platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: 1.25rem; }
.share-platform-btn { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .85rem .5rem; border-radius: 10px; border: 1.5px solid var(--sp-border); background: var(--sp-surface); font-size: .72rem; font-weight: 600; color: var(--sp-text); cursor: pointer; text-decoration: none; transition: all .15s; }
.share-platform-btn:hover { background: var(--sp-surface-alt); border-color: var(--sp-muted); color: var(--sp-text); }
.share-platform-btn .platform-icon { font-size: 1.35rem; }
.share-copy-row { display: flex; gap: .5rem; }
.share-copy-input { flex: 1; border: 1.5px solid var(--sp-border); border-radius: 8px; padding: .5rem .75rem; font-size: .8rem; color: var(--sp-muted); background: var(--sp-surface-alt); outline: none; }
.share-copy-btn { padding: .5rem 1rem; border-radius: 8px; border: none; background: var(--sp-primary); color: #fff; font-size: .78rem; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .15s; }
.share-copy-btn:hover { background: #4338CA; }
.share-copy-btn.copied { background: #16A34A; }
.share-story-btn { width:100%; display:flex; align-items:center; justify-content:center; gap:.5rem; padding:.8rem 1rem; margin-bottom:1rem; border:none; border-radius:10px; background:var(--sp-primary); color:#fff; font-size:.85rem; font-weight:700; cursor:pointer; transition:background .15s; }
.share-story-btn:hover { background:#4338CA; }
.share-story-btn:disabled { opacity:.7; cursor:not-allowed; }
.share-platform-btn .platform-icon { line-height: 1; }
.share-story-btn i { margin-right: .1rem; }
.share-more { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--sp-border); }

/* ── BADGE KANAL & COMMENT COUNT (dipindah dari inline supaya bisa ditimpa mode gelap) ── */
.channel-badge-wrap { display: inline-flex; align-items: center; gap: .25rem; margin-bottom: .85rem; background: #FEF3C7; padding: .3rem .75rem; border-radius: 100px; }
.channel-badge-link { display: inline-block; color: #92400E; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
[data-theme="dark"] .channel-badge-wrap { background: rgba(252, 211, 77, 0.15); }
[data-theme="dark"] .channel-badge-link { color: #FCD34D; }
.comment-count-badge { background: #EEF2FF; color: var(--sp-primary); border-radius: 100px; display: inline-block; }
[data-theme="dark"] .comment-count-badge { background: rgba(99, 102, 241, 0.18); color: #A5B4FC; }

/* ── KARTU DISCLAIMER ── */
.disclaimer-card { display: flex; gap: .85rem; align-items: flex-start; background: var(--sp-surface-alt); border: 1px solid var(--sp-border); border-left: 3px solid #F59E0B; border-radius: 10px; padding: 1rem 1.25rem; margin: 1.75rem 0; }
.disclaimer-card-icon { flex-shrink: 0; width: 34px; height: 34px; border-radius: 8px; background: rgba(245, 158, 11, 0.12); color: #B45309; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
[data-theme="dark"] .disclaimer-card-icon { background: rgba(245, 158, 11, 0.18); color: #FCD34D; }
.disclaimer-card-title { font-size: .82rem; font-weight: 700; color: var(--sp-text); margin-bottom: .3rem; }
.disclaimer-card-text { font-size: .8rem; line-height: 1.65; color: var(--sp-muted); margin-bottom: .4rem; }
.disclaimer-card-link { font-size: .78rem; font-weight: 600; color: var(--sp-primary); text-decoration: none; }
.disclaimer-card-link:hover { text-decoration: underline; }
[data-theme="dark"] .disclaimer-card-link { color: #FFFFFF; font-weight: 700; }
[data-theme="dark"] .disclaimer-card-link:hover { opacity: 0.85; }
.cmt-mention { color: #2563EB; font-weight: 600; }
[data-theme="dark"] .cmt-mention { color: #93C5FD; }
.cmt-side-name { font-weight: 600; color: var(--sp-text); text-decoration: none; }

/* ── KOTAK INFORMASI (INFO BOX) — tampilan publik. HTML tersimpan hanya
   <p class="ql-infobox-note">…; badge & judul dirender via CSS ini. ── */
.art-body .ql-infobox-note { --ib-accent: #2563EB; --ib-bg: #EFF4FF; --ib-title: "Catatan Redaksi"; --ib-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><rect width='40' height='40' rx='11' fill='%232563EB'/><rect x='13' y='10' width='14' height='20' rx='2.5' fill='%23fff'/><rect x='16' y='15' width='8' height='1.9' rx='.95' fill='%232563EB'/><rect x='16' y='19' width='8' height='1.9' rx='.95' fill='%232563EB'/><rect x='16' y='23' width='5' height='1.9' rx='.95' fill='%232563EB'/></svg>"); }
.art-body .ql-infobox-info { --ib-accent: #0284C7; --ib-bg: #E8F5FD; --ib-title: "Informasi"; --ib-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><rect width='40' height='40' rx='11' fill='%230284C7'/><circle cx='20' cy='14.5' r='2.1' fill='%23fff'/><rect x='18' y='18' width='4' height='11' rx='2' fill='%23fff'/></svg>"); }
.art-body .ql-infobox-warning { --ib-accent: #D97706; --ib-bg: #FEF6E7; --ib-title: "Peringatan"; --ib-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><rect width='40' height='40' rx='11' fill='%23D97706'/><path d='M20 11 30 28 10 28Z' fill='%23fff'/><rect x='18.7' y='17' width='2.6' height='6.4' rx='1.3' fill='%23D97706'/><circle cx='20' cy='25.6' r='1.5' fill='%23D97706'/></svg>"); }
.art-body .ql-infobox-verified { --ib-accent: #16A34A; --ib-bg: #EAFBF1; --ib-title: "Terverifikasi"; --ib-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><rect width='40' height='40' rx='11' fill='%2316A34A'/><path d='M20 10 28 13V19c0 5.2-3.4 8.9-8 10.8C15.4 27.9 12 24.2 12 19V13Z' fill='%23fff'/><path d='M16.4 19.8 19 22.4 23.8 17.5' fill='none' stroke='%2316A34A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
.art-body .ql-infobox-update { --ib-accent: #7C3AED; --ib-bg: #F3EEFE; --ib-title: "Koreksi \0026 Pembaruan"; --ib-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><rect width='40' height='40' rx='11' fill='%237C3AED'/><path d='M26.5 20a6.5 6.5 0 1 1-1.9-4.6' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round'/><path d='M24.2 11.6 27 16.4 21.6 16.2Z' fill='%23fff'/></svg>"); }
.art-body .ql-infobox-author { --ib-accent: #E11D48; --ib-bg: #FEF0F4; --ib-title: "Catatan Penulis"; --ib-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><rect width='40' height='40' rx='11' fill='%23E11D48'/><path d='M23 10.6 29.4 17 27.4 19l-1.3-.4-3.6 3.6.2 3.1-1.8 1.8-2.9-2.9-4.5 4.5-1.1-1.1 4.5-4.5-2.9-2.9 1.8-1.8 3.1.2 3.6-3.6-.4-1.3z' fill='%23fff'/></svg>"); }
.art-body [class*="ql-infobox-"] { background: var(--ib-bg); color: #334155 !important; margin: 0 !important; padding: .2rem 1.4rem .2rem 4.2rem !important; text-align: left !important; font-size: 1rem !important; line-height: 1.7 !important; font-style: normal !important; border: none !important; }
.art-body [class*="ql-infobox-"] a { color: var(--ib-accent) !important; }
.art-body .ql-infobox-note:not(.ql-infobox-note + .ql-infobox-note), .art-body .ql-infobox-info:not(.ql-infobox-info + .ql-infobox-info), .art-body .ql-infobox-warning:not(.ql-infobox-warning + .ql-infobox-warning), .art-body .ql-infobox-verified:not(.ql-infobox-verified + .ql-infobox-verified), .art-body .ql-infobox-update:not(.ql-infobox-update + .ql-infobox-update), .art-body .ql-infobox-author:not(.ql-infobox-author + .ql-infobox-author) { margin-top: 1.75rem !important; padding-top: 1.1rem !important; border-top-left-radius: 14px; border-top-right-radius: 14px; background: var(--ib-icon) 1.15rem 1.1rem / 40px 40px no-repeat, var(--ib-bg) !important; }
.art-body .ql-infobox-note:not(.ql-infobox-note + .ql-infobox-note)::before, .art-body .ql-infobox-info:not(.ql-infobox-info + .ql-infobox-info)::before, .art-body .ql-infobox-warning:not(.ql-infobox-warning + .ql-infobox-warning)::before, .art-body .ql-infobox-verified:not(.ql-infobox-verified + .ql-infobox-verified)::before, .art-body .ql-infobox-update:not(.ql-infobox-update + .ql-infobox-update)::before, .art-body .ql-infobox-author:not(.ql-infobox-author + .ql-infobox-author)::before { content: var(--ib-title); display: block; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1rem; color: var(--sp-text); margin-bottom: .3rem; }
.art-body .ql-infobox-note:not(:has(+ .ql-infobox-note)), .art-body .ql-infobox-info:not(:has(+ .ql-infobox-info)), .art-body .ql-infobox-warning:not(:has(+ .ql-infobox-warning)), .art-body .ql-infobox-verified:not(:has(+ .ql-infobox-verified)), .art-body .ql-infobox-update:not(:has(+ .ql-infobox-update)), .art-body .ql-infobox-author:not(:has(+ .ql-infobox-author)) { padding-bottom: 1.1rem !important; margin-bottom: 1.75rem !important; border-bottom-left-radius: 14px; border-bottom-right-radius: 14px; }
[data-theme="dark"] .art-body [class*="ql-infobox-"] { background: color-mix(in srgb, var(--ib-accent) 15%, transparent); color: var(--sp-text) !important; }
[data-theme="dark"] .art-body .ql-infobox-note:not(.ql-infobox-note + .ql-infobox-note), [data-theme="dark"] .art-body .ql-infobox-info:not(.ql-infobox-info + .ql-infobox-info), [data-theme="dark"] .art-body .ql-infobox-warning:not(.ql-infobox-warning + .ql-infobox-warning), [data-theme="dark"] .art-body .ql-infobox-verified:not(.ql-infobox-verified + .ql-infobox-verified), [data-theme="dark"] .art-body .ql-infobox-update:not(.ql-infobox-update + .ql-infobox-update), [data-theme="dark"] .art-body .ql-infobox-author:not(.ql-infobox-author + .ql-infobox-author) { background: var(--ib-icon) 1.15rem 1.1rem / 40px 40px no-repeat, color-mix(in srgb, var(--ib-accent) 15%, transparent) !important; }
[data-theme="dark"] .art-body [class*="ql-infobox-"]::before { color: var(--sp-text); }
[data-theme="dark"] .art-body [class*="ql-infobox-"] a { color: color-mix(in srgb, var(--ib-accent) 70%, white) !important; }
/* ── SKELETON SHIMMER kartu Artikel Terkait ── */
.related-card-img {
    background: linear-gradient(100deg,
        var(--sp-surface-alt) 28%,
        rgba(148, 163, 184, 0.20) 45%,
        var(--sp-surface-alt) 62%);
    background-size: 200% 100%;
    animation: sp-img-shimmer 1.4s ease-in-out infinite;
}

@keyframes sp-img-shimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .related-card-img { animation: none; background: var(--sp-surface-alt); }
}