/* =========================================================
   drgagency — Blog (daftar artikel + halaman artikel)
   Memakai token & komponen dari style.css
   ========================================================= */

/* ---------- Cover (dibuat dengan CSS, tanpa foto) ---------- */
.cover { position: relative; overflow: hidden; border-radius: 22px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 16 / 10; isolation: isolate; }
.cover::after { content: ""; position: absolute; right: -14%; bottom: -30%; width: 70%; aspect-ratio: 2 / 1; border: 14px solid currentColor; border-top: 0; border-radius: 0 0 999px 999px; opacity: .14; z-index: -1; }
.cover .c-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--display); font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.cover .c-top img { width: 26px; height: 26px; }
.cover .c-title { font-family: var(--display); font-stretch: 85%; font-weight: 800; line-height: .98; letter-spacing: -.035em; font-size: clamp(20px, 2.2vw, 30px); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.cover.sm { aspect-ratio: 4 / 3; padding: 12px; border-radius: 16px; }
.cover.sm .c-title { font-size: 15px; -webkit-line-clamp: 3; }
.cover.sm .c-top { font-size: 9.5px; }
.cover.sm .c-top img { width: 18px; height: 18px; }
.cover.sm::after { border-width: 8px; }
.t-geo { background: var(--violet); color: #fff; }
.t-geo .c-title { color: var(--lime); }
.t-pm { background: var(--lime); color: var(--ink); }
.t-strategi { background: var(--ink); color: #fff; }
.t-strategi .c-title { color: #fff; }
.t-local { background: #fff; color: var(--violet-d); border: 2px solid var(--ink); }
.t-local .c-title { color: var(--ink); }

.topic-pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-stretch: 90%; font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--violet); }
.topic-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.meta-line .av { width: 26px; height: 26px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; border: 2px solid var(--ink); }
.meta-line .av img { width: 16px; }
.meta-line .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }

/* ---------- Blog hero ---------- */
.blog-hero .hero { grid-template-columns: 1fr .95fr; padding: 56px 0 80px; align-items: center; }
.blog-hero h1 { font-size: clamp(50px, 6.6vw, 104px); line-height: .92; letter-spacing: -.045em; margin: 22px 0 24px; }
.blog-stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 30px; }
.blog-stats div { font-size: 14px; color: #e4dbff; font-weight: 600; }
.blog-stats b { display: block; font-family: var(--display); font-stretch: 85%; font-size: 34px; color: var(--lime); line-height: 1; letter-spacing: -.03em; }
.cover-story { display: block; background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 30px; padding: 16px; box-shadow: 12px 12px 0 var(--ink); transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.cover-story:hover { transform: translate(-3px, -3px) rotate(-.6deg); box-shadow: 16px 16px 0 var(--ink); }
.cover-story .body { padding: 18px 8px 8px; }
.cover-story .lbl { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.cover-story .lbl .tag { font-size: 11px; padding: 5px 10px; }
.cover-story h2 { font-size: clamp(26px, 2.6vw, 38px); line-height: 1; margin-bottom: 10px; }
.cover-story p { color: var(--muted); font-size: 15.5px; margin-bottom: 14px; }
.cover-story .read { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; border-bottom: 2px solid var(--violet); padding-bottom: 2px; }
.cover-story .read svg { width: 16px; height: 16px; transition: transform .3s; }
.cover-story:hover .read svg { transform: translateX(4px); }

/* ---------- Filter bar ---------- */
.blog-main { background: var(--lav); padding: 0 0 120px; }
.filter-bar { position: sticky; top: 80px; z-index: 20; padding: 18px 0; background: var(--lav); border-bottom: 2px solid var(--lav-2); margin-bottom: 50px; }
.filter-inner { display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; font-weight: 700; font-size: 14px; transition: all .2s; }
.chip-btn em { font-style: normal; font-size: 11.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: var(--lav); color: var(--violet-d); }
.chip-btn:hover { transform: translateY(-2px); }
.chip-btn.active { background: var(--ink); color: var(--lime); }
.chip-btn.active em { background: var(--lime); color: var(--ink); }
.search-box { position: relative; flex: none; width: 280px; }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--violet); }
.search-box input { width: 100%; font: inherit; font-size: 15px; padding: 12px 14px 12px 42px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; }
.search-box input:focus { outline: none; box-shadow: 4px 4px 0 var(--violet); }

/* ---------- Editor's picks ---------- */
.sec-label { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.sec-label h2 { font-size: clamp(30px, 3.4vw, 48px); }
.sec-label span { font-weight: 700; color: var(--muted); font-size: 14px; }
.picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 70px; }
.pick { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; background: #fff; border: 2px solid var(--ink); border-radius: 26px; padding: 16px; transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.pick:hover { transform: translateY(-5px); box-shadow: 8px 8px 0 var(--violet); }
.pick .n { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; color: var(--violet); }
.pick h3 { font-size: 20px; line-height: 1.1; margin: 6px 0 8px; letter-spacing: -.02em; }
.pick .cover { margin-top: 10px; }

/* ---------- Post grid ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 2px solid var(--ink); border-radius: 28px; padding: 14px; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.post-card:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 10px 10px 0 var(--ink); }
.post-card .body { padding: 16px 6px 6px; display: flex; flex-direction: column; flex: 1; }
.post-card .row1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.post-card .mins { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--lav); padding: 4px 9px; border-radius: 999px; color: var(--violet-d); }
.post-card h3 { font-size: 23px; line-height: 1.08; letter-spacing: -.02em; margin-bottom: 10px; }
.post-card p { font-size: 14.5px; color: var(--muted); margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .meta-line { margin-top: auto; }
.more-row { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.more-row small { font-weight: 700; color: var(--muted); }
.empty { display: none; text-align: center; padding: 60px 20px; background: #fff; border: 2px dashed var(--lav-2); border-radius: 28px; }
.empty b { display: block; font-family: var(--display); font-size: 26px; margin-bottom: 6px; }
.empty p { color: var(--muted); }

/* ---------- Blog CTA (dipakai di daftar & artikel) ---------- */
.blog-cta { background: var(--violet); padding: 110px 0; }
.blog-cta .cta-box { box-shadow: 16px 16px 0 var(--ink); align-items: center; }
.start-steps { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
.start-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; background: #fff; border: 2px solid var(--ink); border-radius: 20px; padding: 14px 16px; }
.start-steps li > span { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--lime); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 18px; }
.start-steps b { display: block; font-family: var(--display); font-size: 19px; }
.start-steps p { font-size: 14px; color: var(--muted); }
.cta-copy .btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-copy small.note { display: block; margin-top: 14px; font-weight: 600; color: #3d3a1a; }

/* =========================================================
   Halaman artikel
   ========================================================= */
.read-progress { position: fixed; top: 0; left: 0; height: 4px; width: 0; background: var(--lime); z-index: 200; box-shadow: 0 0 0 1px var(--ink); transition: width .1s linear; }
.art-hero { padding-bottom: 70px; }
.art-hero .container { max-width: 1080px; padding-top: 50px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--lav-2); margin-bottom: 24px; }
.crumbs a:hover { color: var(--lime); }
.crumbs span { opacity: .5; }
.art-hero h1 { font-size: clamp(40px, 5.4vw, 78px); line-height: .98; letter-spacing: -.04em; margin: 18px 0 22px; max-width: 980px; }
.art-hero .dek { font-size: clamp(17px, 1.6vw, 21px); color: #ece4ff; max-width: 760px; }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.byline .av { width: 52px; height: 52px; border-radius: 50%; background: var(--lime); border: 3px solid var(--ink); display: grid; place-items: center; }
.byline .av img { width: 30px; }
.byline b { display: block; font-family: var(--display); font-size: 18px; }
.byline small { font-size: 14px; color: var(--lav-2); font-weight: 600; }
.byline .pills { display: flex; gap: 8px; margin-left: auto; }
.byline .pills span { font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.3); }

.art-body { background: var(--lav); padding: 70px 0 100px; }
.art-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 56px; align-items: start; max-width: 1180px; }
.toc { position: sticky; top: 104px; }
.toc details { background: #fff; border: 2px solid var(--ink); border-radius: 22px; padding: 16px 16px 10px; }
.toc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: var(--display); font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--violet); margin-bottom: 10px; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary em { font-style: normal; color: var(--muted); font-size: 11px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: tc; max-height: calc(100vh - 330px); overflow-y: auto; }
.toc li { counter-increment: tc; }
.toc li a { display: grid; grid-template-columns: 26px 1fr; gap: 6px; padding: 7px 8px; margin: 0 -8px; border-radius: 10px; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--muted); transition: background .2s, color .2s; }
.toc li a::before { content: counter(tc, decimal-leading-zero); font-family: var(--display); font-weight: 800; font-size: 12px; color: var(--lav-2); padding-top: 1px; }
.toc li a:hover { background: var(--lav); color: var(--ink); }
.toc li a.active { background: var(--lime); color: var(--ink); }
.toc li a.active::before { color: var(--ink); }
.share { margin-top: 16px; background: var(--ink); color: #fff; border-radius: 22px; padding: 16px; }
.share h6 { margin: 0 0 10px; font-family: var(--display); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.share-row a, .share-row button { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.1); display: grid; place-items: center; color: #fff; transition: all .2s; }
.share-row a:hover, .share-row button:hover { background: var(--lime); color: var(--ink); transform: rotate(-8deg); }
.share-row svg { width: 18px; height: 18px; }
.share .copied { display: none; font-size: 12px; font-weight: 700; color: var(--lime); margin-top: 8px; }
.share.is-copied .copied { display: block; }

/* prose */
.prose { background: #fff; border: 2px solid var(--ink); border-radius: 32px; padding: 52px 56px; font-size: 18px; line-height: 1.75; color: #2a2148; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(30px, 3vw, 42px); line-height: 1.05; color: var(--ink); margin-top: 2em; scroll-margin-top: 110px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: clamp(22px, 2vw, 27px); line-height: 1.15; color: var(--ink); margin-top: 1.7em; letter-spacing: -.02em; }
.prose h3 + p { margin-top: .6em; }
.prose a:not(.btn) { color: var(--violet-d); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--lav-2); }
.prose a:not(.btn):hover { text-decoration-color: var(--violet); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--violet); font-weight: 800; }
.prose blockquote { margin-left: 0; margin-right: 0; border-left: 5px solid var(--lime); background: var(--lav); padding: 18px 22px; border-radius: 0 18px 18px 0; font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.35; color: var(--ink); }
.callout { border-radius: 22px; padding: 20px 22px; font-size: 16px; line-height: 1.6; border: 2px solid var(--ink); }
.callout b.h { display: block; font-family: var(--display); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.callout ul { margin: 6px 0 0; }
.callout.note { background: var(--lav); }
.callout.note b.h { color: var(--violet); }
.callout.key { background: var(--lime); }
.callout.warn { background: #fff4f7; border-color: var(--pink); }
.callout.warn b.h { color: #d12d5b; }
.tbl-wrap { overflow-x: auto; border: 2px solid var(--ink); border-radius: 20px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; min-width: 560px; }
.prose th { background: var(--ink); color: #fff; text-align: left; font-family: var(--display); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding: 12px 14px; }
.prose td { padding: 12px 14px; border-top: 1.5px solid var(--lav-2); vertical-align: top; }
.prose tr:nth-child(even) td { background: #faf8ff; }
.prose td:first-child { font-weight: 700; color: var(--ink); }
.steps-list { list-style: none; padding: 0 !important; counter-reset: st; }
.steps-list > li { position: relative; padding-left: 56px; counter-increment: st; }
.steps-list > li::before { content: counter(st); position: absolute; left: 0; top: 2px; width: 38px; height: 38px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 16px; }
.checks { list-style: none; padding: 0 !important; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--ink); background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23150a33' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat; }
.calc { background: var(--ink); color: #fff; border-radius: 24px; padding: 24px; font-size: 16px; }
.calc h4 { font-size: 22px; margin-bottom: 12px; color: var(--lime); }
.calc .r { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1.5px solid rgba(255,255,255,.12); }
.calc .r b { font-family: var(--display); color: #fff; white-space: nowrap; }
.calc .r.total b { color: var(--lime); font-size: 22px; }
.inline-cta { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; background: var(--violet); color: #fff; border: 2px solid var(--ink); border-radius: 26px; padding: 24px 26px; box-shadow: 8px 8px 0 var(--lime); margin: 2.2em 0 !important; }
.inline-cta b { display: block; font-family: var(--display); font-size: 24px; line-height: 1.1; margin-bottom: 6px; color: #fff; }
.inline-cta p { font-size: 15.5px; color: #e4dbff; line-height: 1.5; margin: 0; }
.inline-cta .btn { white-space: nowrap; }
.art-faq { margin-top: 2em; }
.art-faq details { border: 2px solid var(--ink); border-radius: 18px; padding: 0 18px; background: #fff; }
.art-faq details + details { margin-top: 10px; }
.art-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 0; font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.25; color: var(--ink); }
.art-faq summary::-webkit-details-marker { display: none; }
.art-faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--lav); display: grid; place-items: center; font-size: 20px; transition: transform .3s, background .3s; }
.art-faq details[open] summary::after { transform: rotate(45deg); background: var(--lime); }
.art-faq details p { margin: 0 0 16px; font-size: 16.5px; }
.author-box { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; margin-top: 2.6em !important; padding-top: 28px; border-top: 2px dashed var(--lav-2); }
.author-box .av { width: 64px; height: 64px; border-radius: 50%; background: var(--lime); border: 3px solid var(--ink); display: grid; place-items: center; }
.author-box .av img { width: 36px; }
.author-box small { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--violet); }
.author-box b { display: block; font-family: var(--display); font-size: 22px; color: var(--ink); line-height: 1.1; margin: 2px 0 6px; }
.author-box p { font-size: 15.5px; color: var(--muted); line-height: 1.6; margin: 0; }
.updated { font-size: 13.5px; color: var(--muted); font-weight: 600; }

.art-more { background: var(--ink); color: #fff; padding: 110px 0; }
.art-more .posts .post-card { border-color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .blog-hero .hero { grid-template-columns: 1fr; gap: 50px; }
  .picks { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr 1fr; }
  .art-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; }
  .toc details:not([open]) { padding-bottom: 6px; }
  .toc ol { max-height: none; }
  .share { display: none; }
  .filter-inner { flex-direction: column; align-items: stretch; }
  .search-box { width: 100%; }
}
@media (max-width: 760px) {
  .blog-hero .hero { padding: 36px 0 60px; }
  .blog-hero h1 { font-size: clamp(44px, 12.5vw, 64px); }
  .blog-stats { gap: 18px; }
  .cover-story { box-shadow: 6px 6px 0 var(--ink); }
  .filter-bar { top: 70px; padding: 12px 0; margin-bottom: 34px; }
  .chips { margin: 0 -16px; padding: 0 16px; }
  .posts { grid-template-columns: 1fr; }
  .blog-main { padding-bottom: 90px; }
  .blog-cta, .art-more { padding: 80px 0; }
  .art-hero .container { padding-top: 30px; }
  .byline .pills { margin-left: 0; width: 100%; }
  .art-body { padding: 30px 0 70px; }
  .prose { padding: 26px 20px; border-radius: 24px; font-size: 16.5px; }
  .prose blockquote { font-size: 18px; }
  .inline-cta { grid-template-columns: 1fr; box-shadow: 5px 5px 0 var(--lime); }
  .inline-cta .btn { width: 100%; }
  .author-box { grid-template-columns: 1fr; }
}
.prose, .toc { min-width: 0; }
