/* ============================================================
   Blog — /blog, /blog/kategori/{slug}, /blog/{slug}
   Gaya bersih: latar putih, kartu bergambar, daftar isi di kiri.
   ============================================================ */
.blog-page {
  --ease: cubic-bezier(.22,1,.36,1);
  --ink: #16241c;
  --body: #3d4f45;
  --muted: #74867c;
  --line: #e7ece9;
  --brand: var(--green-600);
  background: #fff;
  color: var(--ink);
}
.blog-wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--sp-6); }

/* ─── Breadcrumb & byline ───────────────────────────── */
.crumbs { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--sp-4); }
.crumbs a { color: var(--brand); font-weight: 500; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .crumb-current { color: var(--body); font-weight: 500; }
.crumbs svg { color: var(--gray-400); }

.byline { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; font-size: var(--fs-xs); color: var(--muted); }
.byline-avatar {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: var(--fs-2xs); font-weight: 700; color: #fff; background: var(--green-600);
}
.byline-avatar-lg { width: 42px; height: 42px; font-size: var(--fs-lg); }
.byline-name { color: var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.byline-dot { width: 4px; height: 4px; border-radius: 50%; background: #c8d3cd; flex-shrink: 0; }
.byline time { white-space: nowrap; }

/* ─── Header halaman blog ───────────────────────────── */
.blog-head {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: var(--sp-8);
  margin: var(--sp-6) 0 var(--sp-6); padding: var(--sp-12) var(--sp-12) var(--sp-12); border-radius: 28px; color: #fff;
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(245,166,35,.28), transparent 60%),
    radial-gradient(50% 80% at 0% 100%, rgba(61,170,114,.35), transparent 60%),
    linear-gradient(135deg, var(--green-700), var(--green-900));
  box-shadow: 0 24px 60px -24px rgba(13,46,31,.55);
}
.blog-head::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(80% 100% at 70% 30%, #000, transparent 75%);
}
.head-glow { position: absolute; z-index: -1; width: 340px; aspect-ratio: 1; right: -80px; bottom: -160px; border-radius: 50%; border: 48px solid rgba(245,166,35,.16); }
.head-copy { min-width: 0; }
.head-eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-4); padding: var(--sp-2) var(--sp-4) var(--sp-2) var(--sp-2);
  font-size: var(--fs-xs); font-weight: 500; color: var(--gold-soft); border-radius: 100px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(6px);
}
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.pulse-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--gold); animation: blogPulse 2s ease-out infinite; }
@keyframes blogPulse { to { transform: scale(3); opacity: 0; } }
.blog-head h1 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h1); letter-spacing: var(--ls-tight); line-height: var(--lh-tight); }
.blog-head h1 span {
  color: var(--gold);
  background: linear-gradient(transparent 72%, rgba(245,166,35,.28) 72%, rgba(245,166,35,.28) 92%, transparent 92%);
}
.blog-head p { font-size: var(--fs-lg); color: rgba(255,255,255,.78); margin-top: var(--sp-4); max-width: 520px; line-height: var(--lh-normal); }
.blog-head .crumbs { color: rgba(255,255,255,.6); }
.blog-head .crumbs a { color: var(--gold); }
.blog-head .crumbs svg { color: rgba(255,255,255,.5); }

.blog-search {
  display: flex; align-items: center; gap: var(--sp-2); max-width: 540px; margin-top: var(--sp-6);
  border-radius: 16px; padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-4); background: #fff;
  box-shadow: 0 14px 34px -12px rgba(0,0,0,.4); transition: box-shadow .2s, transform .2s var(--ease);
}
.blog-search:focus-within { box-shadow: 0 0 0 4px rgba(245,166,35,.45), 0 14px 34px -12px rgba(0,0,0,.4); transform: translateY(-1px); }
.blog-search svg { color: var(--green-600); flex-shrink: 0; }
.blog-search input { flex: 1; min-width: 0; border: none; outline: none; background: none; font-family: var(--font-body); font-size: var(--fs-base); color: var(--ink); padding: var(--sp-3) 0; }
.blog-search kbd { font-family: var(--font-body); font-size: var(--fs-2xs); font-weight: 500; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px var(--sp-2); }
.blog-search button {
  flex-shrink: 0; border: none; cursor: pointer; border-radius: 11px; padding: var(--sp-3) var(--sp-6);
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-md); color: var(--green-900); background: var(--gold);
  transition: filter .2s, transform .2s var(--ease);
}
.blog-search button:hover { filter: brightness(1.06); transform: translateY(-1px); }

.head-topics { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-top: var(--sp-4); font-size: var(--fs-sm); color: rgba(255,255,255,.6); }
.head-topics a {
  padding: var(--sp-1) var(--sp-3); border-radius: 100px; font-weight: 500; color: #fff;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); transition: background .2s, border-color .2s;
}
.head-topics a:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.3); }

.head-visual { position: relative; height: 280px; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4) var(--sp-4) var(--sp-4) var(--sp-4); min-width: 210px;
  border-radius: 18px; color: var(--ink); background: #fff;
  box-shadow: 0 18px 40px -14px rgba(0,0,0,.45); animation: blogFloat 6s ease-in-out infinite;
}
.float-card strong { display: block; font-family: var(--font-display); font-size: var(--fs-base); font-weight: 700; }
.float-card small { font-size: var(--fs-xs); color: var(--muted); }
.float-icon {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; font-size: var(--fs-2xl);
  background: color-mix(in srgb, var(--c) 16%, #fff);
}
.float-card-0 { top: 4px; right: 10%; transform: rotate(-3deg); }
.float-card-1 { top: 104px; left: 0; transform: rotate(2deg); animation-delay: -2s; }
.float-card-2 { bottom: 4px; right: 0; transform: rotate(-1deg); animation-delay: -4s; }
@keyframes blogFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.cat-tabs { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-8); padding: var(--sp-1) 0; overflow-x: auto; scrollbar-width: none; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs a {
  display: inline-flex; align-items: center; gap: var(--sp-2); flex-shrink: 0; padding: var(--sp-2) var(--sp-4); border-radius: 100px;
  font-size: var(--fs-md); font-weight: 500; color: var(--body); background: #fff; border: 1px solid var(--line);
  transition: color .2s, background .2s, border-color .2s, transform .2s var(--ease);
}
.cat-tabs a span { font-size: var(--fs-2xs); font-weight: 600; color: var(--muted); background: var(--green-50); border-radius: 100px; padding: 1px var(--sp-2); }
.cat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--brand)); }
.cat-tabs a:hover { color: var(--ink); border-color: #cfd9d3; transform: translateY(-1px); }
.cat-tabs a.active { color: #fff; background: var(--green-700); border-color: var(--green-700); }
.cat-tabs a.active span { color: var(--green-900); background: var(--gold); }
.cat-tabs a.active .cat-dot { background: #fff; }

/* ─── Sampul ────────────────────────────────────────── */
.post-cover { position: relative; overflow: hidden; background: var(--c); aspect-ratio: 16 / 10; border-radius: 14px; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-cover--sm { aspect-ratio: 4 / 3; border-radius: 12px; }
.post-cover--lg { aspect-ratio: auto; height: 100%; border-radius: 18px; }
.post-cover--xl { aspect-ratio: 21 / 9; border-radius: 18px; }

/* Sampul otomatis ala banner: logo, label kategori, judul */
.cover-art {
  position: absolute; inset: 0; overflow: hidden; container-type: inline-size;
  background:
    radial-gradient(circle at 85% 10%, rgba(255,255,255,.22), transparent 40%),
    linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 50%, #0d2e1f));
  transition: transform .6s var(--ease);
}
.cover-art::before { content: ''; position: absolute; inset: 0; opacity: .12; background-image: radial-gradient(#fff 1px, transparent 1.5px); background-size: 14px 14px; }
.cover-shape { position: absolute; display: block; }
.variant-0 .s1 { width: 42%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.12); bottom: -16%; right: -8%; }
.variant-0 .s2 { width: 20%; aspect-ratio: 1; border-radius: 50%; border: 8px solid var(--gold); top: 14%; right: 10%; opacity: .9; }
.variant-1 .s1 { width: 60%; height: 18%; border-radius: 100px; background: rgba(255,255,255,.12); bottom: 10%; right: -14%; transform: rotate(-14deg); }
.variant-1 .s2 { width: 34%; height: 12%; border-radius: 100px; background: var(--gold); top: 16%; right: -6%; transform: rotate(-14deg); opacity: .9; }
.variant-2 .s1 { width: 36%; aspect-ratio: 1; border-radius: 50%; border: 12px solid rgba(255,255,255,.14); bottom: -10%; right: 4%; }
.variant-2 .s2 { width: 14%; aspect-ratio: 1; border-radius: 6px; background: var(--gold); top: 14%; right: 12%; transform: rotate(18deg); opacity: .9; }
.variant-3 .s1 { width: 40%; aspect-ratio: 1; border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%; background: rgba(255,255,255,.12); bottom: -12%; right: -4%; }
.variant-3 .s2 { width: 18%; aspect-ratio: 1; border-radius: 50%; background: var(--gold); top: 12%; right: 14%; opacity: .9; }
.cover-shape.s3 { display: none; }
.cover-brand { position: absolute; top: 8%; left: 6%; }
.cover-brand img { height: clamp(12px, 6cqi, 26px); width: auto; transition: none; }
.cover-chip {
  position: absolute; left: 6%; top: 24%; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(.55rem, 3.2cqi, .85rem); /* ds-exempt: sampul artikel ikut lebar kartu */ letter-spacing: var(--ls-wide); text-transform: uppercase;
  color: var(--green-900); background: var(--gold); border-radius: 100px; padding: .3em .9em;
}
.cover-title {
  position: absolute; left: 6%; right: 30%; top: 38%; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(.8rem, 6.2cqi, 2.4rem); /* ds-exempt: sampul artikel ikut lebar kartu */ line-height: var(--lh-tight); letter-spacing: var(--ls-tight); color: #fff;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-cover--sm .cover-brand { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.post-cover--sm .cover-brand img { height: clamp(14px, 16cqi, 24px); }

/* ─── Hero: unggulan + daftar samping ───────────────── */
.blog-hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: var(--sp-8); margin-bottom: var(--sp-14); }
.hero-main { min-height: 440px; }
.hero-main-link { position: relative; display: block; height: 100%; border-radius: 18px; overflow: hidden; }
.hero-main-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.hero-main .post-cover { position: absolute; inset: 0; }
.hero-main .cover-chip, .hero-main .cover-title { display: none; }
.hero-main-overlay {
  position: absolute; inset: auto 0 0 0; padding: var(--sp-32) var(--sp-8) var(--sp-8); color: #fff;
  background: linear-gradient(to top, rgba(8,24,16,.92) 10%, rgba(8,24,16,.55) 55%, transparent);
}
.hero-tags { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-3); }
.hero-cat, .hero-pick { display: inline-block; font-size: var(--fs-xs); font-weight: 600; border-radius: 100px; padding: var(--sp-1) var(--sp-3); }
.hero-cat { background: var(--c); color: #fff; }
.hero-pick { background: var(--gold); color: var(--green-900); }
.hero-main h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); margin-bottom: var(--sp-4); max-width: 640px; }
.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2); font-size: var(--fs-sm); color: rgba(255,255,255,.82); }
.hero-meta .byline-avatar { background: #fff; color: var(--green-800); }
.hero-meta .byline-dot { background: rgba(255,255,255,.45); }
.hero-main-link:hover .post-cover img, .hero-main-link:hover .cover-art { transform: scale(1.04); }

.hero-list { display: flex; flex-direction: column; justify-content: space-between; gap: var(--sp-5); }

/* Baris artikel (dipakai di hero & artikel terkait) */
.post-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
.post-row.has-thumb { grid-template-columns: 150px minmax(0, 1fr); align-items: start; }
.post-row-thumb { display: block; border-radius: 12px; overflow: hidden; }
.post-row-body { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.post-row h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); line-height: var(--lh-snug); color: var(--ink); }
.post-row h3 a { transition: color .2s; }
.post-row h3 a:hover { color: var(--brand); }
.post-row p { font-size: var(--fs-sm); line-height: var(--lh-normal); color: var(--muted); }
.read-more { color: var(--brand); font-weight: 500; white-space: nowrap; }
.read-more:hover { text-decoration: underline; }
.post-row:hover .post-cover img, .post-row:hover .cover-art { transform: scale(1.05); }

/* ─── Section & grid kartu ──────────────────────────── */
.blog-section { margin-bottom: var(--sp-14); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.section-head h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h4); letter-spacing: var(--ls-tight); color: var(--ink); }
.count-text { font-size: var(--fs-md); color: var(--muted); white-space: nowrap; }
.see-all { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-base); font-weight: 500; color: var(--brand); white-space: nowrap; }
.see-all svg { transition: transform .2s; }
.see-all:hover svg { transform: translateX(3px); }

.post-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-8) var(--sp-6); }
.post-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-card { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.post-card-thumb { display: block; border-radius: 14px; overflow: hidden; margin-bottom: var(--sp-1); }
.post-card h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); line-height: var(--lh-snug); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card h3 a { transition: color .2s; }
.post-card h3 a:hover { color: var(--brand); }
.post-card p { font-size: var(--fs-md); line-height: var(--lh-normal); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-cat { align-self: flex-start; font-size: var(--fs-md); font-weight: 500; color: var(--c); }
.post-cat:hover { text-decoration: underline; }
.post-card:hover .post-cover img, .post-card:hover .cover-art { transform: scale(1.05); }
.post-card-thumb:focus-visible, .post-card h3 a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.load-more-wrap { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); margin-top: var(--sp-8); }
.load-more {
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-md); color: var(--brand);
  border: 1.5px solid var(--brand); border-radius: 10px; padding: var(--sp-3) var(--sp-6); transition: background .2s, color .2s;
}
.load-more:hover { background: var(--brand); color: #fff; }
.load-more.is-loading { pointer-events: none; opacity: .6; }
.page-link { font-size: var(--fs-sm); color: var(--muted); }
.page-link:hover { color: var(--brand); }

.empty-state { text-align: center; border: 1px dashed var(--line); border-radius: 16px; padding: var(--sp-12) var(--sp-6); }
.empty-state h3 { font-family: var(--font-display); font-weight: 700; margin-bottom: var(--sp-2); }
.empty-state p { font-size: var(--fs-md); color: var(--muted); margin-bottom: var(--sp-4); }
.btn-outline-sm { display: inline-flex; font-weight: 600; font-size: var(--fs-md); color: var(--brand); border: 1.5px solid var(--brand); border-radius: 10px; padding: var(--sp-2) var(--sp-5); }

/* ─── CTA ───────────────────────────────────────────── */
.blog-cta {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6);
  margin: var(--sp-2) 0 var(--sp-16); padding: var(--sp-8) var(--sp-10); border-radius: 20px; color: #fff;
  background: radial-gradient(70% 140% at 100% 0%, rgba(245,166,35,.25), transparent 60%), linear-gradient(135deg, var(--green-800), var(--green-900));
}
.blog-cta h2 { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 700; line-height: var(--lh-snug); margin-bottom: var(--sp-2); max-width: 620px; }
.blog-cta h2 span { color: var(--gold); }
.blog-cta p { font-size: var(--fs-md); color: rgba(255,255,255,.7); }
.cta-actions { display: flex; gap: var(--sp-2); flex-shrink: 0; }
.cta-primary, .cta-ghost { text-align: center; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-md); border-radius: 10px; padding: var(--sp-3) var(--sp-6); transition: transform .2s, background .2s; }
.cta-primary { background: var(--gold); color: var(--green-900); }
.cta-primary:hover { transform: translateY(-2px); }
.cta-ghost { border: 1.5px solid rgba(255,255,255,.3); color: #fff; }
.cta-ghost:hover { background: rgba(255,255,255,.08); }

/* ─── Halaman artikel ───────────────────────────────── */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 400; }
.read-progress span { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--green-500), var(--gold)); }

.draft-banner { margin-top: var(--sp-6); font-size: var(--fs-md); color: #8a5a00; background: var(--gold-soft); border: 1px solid #f3d79c; border-radius: 12px; padding: var(--sp-3) var(--sp-4); }

.article-head { padding: var(--sp-10) 0 0; }
.article-head h1 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h2); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); color: var(--ink); margin-bottom: var(--sp-6); max-width: 980px; }

.article-meta {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--sp-4) 0;
}
.meta-people { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.meta-person { display: flex; align-items: center; gap: var(--sp-3); padding-right: var(--sp-6); }
.meta-person + .meta-person { padding-left: var(--sp-6); border-left: 1px solid var(--line); }
.meta-person > span:last-child { display: flex; flex-direction: column; line-height: var(--lh-snug); }
.meta-person small { font-size: var(--fs-2xs); font-weight: 600; letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--muted); }
.meta-person strong { font-size: var(--fs-base); font-weight: 500; color: var(--ink); }
.meta-person a:hover strong { color: var(--brand); }
.meta-cat-dot { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; background: color-mix(in srgb, var(--c) 14%, #fff); box-shadow: inset 0 0 0 10px #fff; position: relative; }
.meta-cat-dot::after { content: ''; position: absolute; inset: 14px; border-radius: 50%; background: var(--c); }
.meta-facts { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); font-size: var(--fs-md); color: var(--muted); }
.meta-facts span { display: inline-flex; align-items: center; gap: var(--sp-2); }
.meta-edit { font-size: var(--fs-sm); font-weight: 600; color: #fff; background: var(--ink); border-radius: 8px; padding: var(--sp-2) var(--sp-3); }
.meta-edit:hover { background: var(--green-700); }

.article-cover { margin: var(--sp-8) 0 var(--sp-10); }

.article-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: var(--sp-14); margin-bottom: var(--sp-10); }
.article-side { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: var(--sp-6); max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: thin; }
.toc-title {
  display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: var(--sp-2);
  background: none; border: none; padding: 0; cursor: default; font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; color: var(--ink);
}
.toc-title svg { display: none; transition: transform .3s; }
.toc ol { list-style: none; }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-3) 0; font-size: var(--fs-md); line-height: var(--lh-normal); color: var(--muted); transition: color .2s; }
.toc a svg { flex-shrink: 0; transition: transform .25s var(--ease); }
.toc a:hover { color: var(--ink); }
.toc a:hover svg { transform: translateX(3px); }
.toc a.active { color: var(--brand); font-weight: 500; }

.share { display: flex; flex-direction: column; gap: var(--sp-2); }
.share-label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.share-buttons { display: flex; gap: var(--sp-2); }
.share-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: var(--body); transition: background .2s, color .2s, border-color .2s;
}
.share-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.article-main { min-width: 0; }

/* Tipografi isi artikel */
.prose { font-size: var(--fs-lg); line-height: var(--lh-relaxed); color: var(--body); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h4); line-height: var(--lh-snug); letter-spacing: var(--ls-tight); color: var(--ink); margin-top: 2em; scroll-margin-top: 96px; }
.prose h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-xl); line-height: var(--lh-snug); color: var(--ink); margin-top: 1.6em; scroll-margin-top: 96px; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose a { color: var(--brand); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--green-800); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--brand); font-weight: 600; }
.prose ul:has(> li > input[type="checkbox"]) { list-style: none; padding-left: .2em; }
.prose li input[type="checkbox"] { accent-color: var(--green-500); width: 16px; height: 16px; margin-right: var(--sp-2); vertical-align: -2px; }
.prose blockquote { border-left: 4px solid var(--brand); background: var(--green-50); border-radius: 0 12px 12px 0; padding: var(--sp-4) var(--sp-5); color: var(--body); }
.prose blockquote > * + * { margin-top: .5em; }
.prose blockquote.tldr { border: 1px solid color-mix(in srgb, var(--c) 30%, #fff); border-left: 4px solid var(--c); background: color-mix(in srgb, var(--c) 6%, #fff); border-radius: 0 14px 14px 0; padding: var(--sp-4) var(--sp-6); }
.prose blockquote.tldr > p:first-child strong { font-family: var(--font-display); font-size: var(--fs-xs); letter-spacing: var(--ls-caps); color: var(--c); }
.prose blockquote.tldr ul { padding-left: 1.2em; }
.prose code { font-family: var(--font-mono); font-size: .86em; background: #f1f5f3; color: var(--green-800); border-radius: 5px; padding: .12em .4em; }
.prose pre { position: relative; background: #12241a; color: #e3f2ea; border-radius: 12px; padding: var(--sp-4) var(--sp-5); overflow-x: auto; font-size: var(--fs-md); line-height: var(--lh-normal); }
.prose pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.code-copy {
  position: absolute; top: 8px; right: 8px; font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 500;
  color: rgba(255,255,255,.85); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: 6px; padding: 3px var(--sp-2); cursor: pointer;
  opacity: 0; transition: opacity .2s, background .2s;
}
.prose pre:hover .code-copy, .code-copy:focus-visible { opacity: 1; }
.code-copy:hover { background: rgba(255,255,255,.2); }
/* Tabel bergaya laporan: header berwarna, garis tegas */
.table-wrap { overflow-x: auto; }
.prose table { min-width: 100%; border-collapse: collapse; font-size: var(--fs-base); line-height: var(--lh-normal); border: 1px solid #1f3a2b; }
.prose th { text-align: left; font-weight: 600; color: #fff; background: var(--green-700); padding: var(--sp-2) var(--sp-3); border: 1px solid #1f3a2b; }
.prose td { padding: var(--sp-2) var(--sp-3); border: 1px solid #1f3a2b; vertical-align: top; }
.prose td:first-child { font-weight: 500; color: var(--ink); background: var(--green-50); }
.prose hr { border: none; height: 1px; background: var(--line); margin: 2.2em 0; }
.prose img { border-radius: 12px; }

.article-tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-8); }
.article-tags a { font-size: var(--fs-sm); font-weight: 500; color: var(--body); background: #f3f6f4; border-radius: 8px; padding: var(--sp-2) var(--sp-3); transition: background .2s, color .2s; }
.article-tags a:hover { background: var(--brand); color: #fff; }

.related-list { margin: var(--sp-10) 0 var(--sp-12); border-top: 1px solid var(--line); }
.side-heading { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-2xl); color: var(--ink); margin: var(--sp-8) 0 var(--sp-2); }
.related-list .post-row { padding: var(--sp-5) 0; border-bottom: 1px solid var(--line); }
.related-list .post-row h3 { font-size: var(--fs-xl); }
.related-list .post-row p { font-size: var(--fs-md); }

/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 1100px) {
  .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .blog-head { grid-template-columns: 1fr; }
  .head-visual { display: none; }
  .blog-hero { grid-template-columns: 1fr; }
  .hero-main { min-height: 380px; }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
  .article-side { position: static; max-height: none; overflow: visible; }
  .toc { border: 1px solid var(--line); border-radius: 14px; padding: var(--sp-4) var(--sp-4); }
  .toc-title { cursor: pointer; margin-bottom: 0; }
  .toc-title svg { display: block; }
  .toc.is-open .toc-title { margin-bottom: var(--sp-2); }
  .toc.is-open .toc-title svg { transform: rotate(180deg); }
  .toc:not(.is-open) ol { display: none; }
  .toc li:last-child { border-bottom: none; }
}
@media (max-width: 768px) {
  .blog-wrap { padding: 0 var(--sp-4); }
  .blog-head { padding: var(--sp-8) var(--sp-6) var(--sp-6); margin-top: var(--sp-4); border-radius: 22px; }
  .blog-search { margin-top: var(--sp-6); padding-left: var(--sp-4); }
  .blog-search kbd { display: none; }
  .blog-search button { padding: var(--sp-3) var(--sp-4); }
  .cat-tabs { gap: var(--sp-2); margin-bottom: var(--sp-6); }
  .hero-main { min-height: 300px; }
  .hero-main-overlay { padding: var(--sp-24) var(--sp-5) var(--sp-5); }
  .post-row.has-thumb { grid-template-columns: 112px minmax(0, 1fr); gap: var(--sp-4); }
  .post-row.has-thumb p { display: none; }
  .post-grid, .post-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6) var(--sp-4); }
  .post-card p { display: none; }
  .post-card h3 { font-size: var(--fs-base); -webkit-line-clamp: 3; }
  .post-card .byline-name, .post-card .byline-dot { display: none; }
  .section-head { flex-wrap: wrap; }
  .blog-cta { flex-direction: column; align-items: stretch; padding: var(--sp-6) var(--sp-6); }
  .cta-actions { flex-direction: column; }
  .article-head { padding-top: var(--sp-6); }
  .article-head h1 { margin-bottom: var(--sp-5); }
  .meta-person { padding-right: var(--sp-4); }
  .meta-person + .meta-person { padding-left: var(--sp-4); }
  .meta-facts { gap: var(--sp-2) var(--sp-4); font-size: var(--fs-sm); }
  .post-cover--xl { aspect-ratio: 16 / 9; border-radius: 14px; }
  .article-cover { margin: var(--sp-6) 0 var(--sp-6); }
  .prose { font-size: var(--fs-lg); }
}
/* Info penulis & kategori di HP: dua kolom sejajar, tanpa garis pemisah yang menggantung saat membungkus */
@media (max-width: 560px) {
  .article-meta { gap: var(--sp-4); }
  .meta-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); width: 100%; }
  .meta-person, .meta-person + .meta-person { padding: 0; border-left: 0; gap: var(--sp-2); min-width: 0; }
  .meta-person > span:last-child { min-width: 0; }
  .meta-person small { font-size: var(--fs-2xs); }
  .meta-person strong { font-size: var(--fs-sm); line-height: var(--lh-snug); }
  .meta-person .byline-avatar-lg, .meta-cat-dot { width: 34px; height: 34px; font-size: var(--fs-md); }
  .meta-cat-dot { box-shadow: inset 0 0 0 8px #fff; }
  .meta-cat-dot::after { inset: 11px; }
  .meta-facts { width: 100%; padding-top: var(--sp-3); border-top: 1px dashed var(--line); }
}
@media (max-width: 420px) {
  .post-grid, .post-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .post-card p { display: -webkit-box; }
  .post-card .byline-name, .post-card .byline-dot { display: inline; }
  .post-card .byline-dot { display: inline-block; }
}
@media (prefers-reduced-motion: reduce) {
  .post-cover img, .cover-art { transition: none; }
  .float-card, .pulse-dot::after { animation: none; }
}
