/* Achompany /blog — gaya halaman daftar dan artikel (C-35).
   Token, .eyebrow, .btn, motif V1 dan ikon V2 datang dari /assets/brand/brand.css + brand.js (C-36,
   satu sumber). Berkas ini hanya alias nama pendek + tata letak khusus blog. Jangan definisikan warna di sini. */
:root {
  --teal: var(--ach-teal);
  --teal-2: var(--ach-teal-hover);
  --sage: var(--ach-sage);
  --sage-deep: var(--ach-sage-deep);
  --ivory: var(--ach-ivory);
  --paper: var(--ach-white);
  --charcoal: var(--ach-charcoal);
  --gold: var(--ach-gold);
  --muted: var(--ach-muted);
  --line: var(--ach-line);
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

/* ---------- Dasar halaman (nav + footer sama polanya dengan homepage) ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--ach-font); color: var(--charcoal); background: var(--ivory); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { color: var(--teal); letter-spacing: -.025em; line-height: 1.15; margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; padding: 8px 12px; background: #fff; border-radius: 8px; }

.nav { position: sticky; top: 0; z-index: 5; background: var(--ivory); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--teal); font-weight: 800; font-size: 1.12rem; text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a:not(.btn) { color: var(--muted); font-weight: 600; text-decoration: none; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current] { color: var(--teal); }
.nav-links a[aria-current] { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 6px; }
a.eyebrow { text-decoration: none; }
.link { color: var(--teal); font-weight: 700; text-underline-offset: 4px; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--sage); color: var(--teal); font-size: .8rem; font-weight: 700; }

.site-foot { padding: 40px 0; background: var(--teal); color: #dcebe7; font-size: .95rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 28px; }
.site-foot b { color: #fff; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.site-foot a { color: #fff; font-weight: 600; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }

@media (max-width: 720px) {
  .nav-links { gap: 16px; }
  .nav-links a:not(.btn):not(.keep) { display: none; }
  .nav-links .btn { white-space: nowrap; padding: 8px 16px; }
}

/* ---------- Header artikel / daftar: teks kiri, motif V1 di atas "rak" sage kanan ---------- */
.post-head { padding: 64px 0 56px; border-bottom: 1px solid var(--line); overflow: hidden; }
.post-head .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: center; }
.post-head h1 { margin: 18px 0 18px; font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.06; }
.post-head .lead { margin: 0; max-width: 640px; color: var(--muted); font-size: clamp(1.06rem, 1.8vw, 1.22rem); }
.post-motif { position: relative; width: 300px; justify-self: end; }
.post-motif svg { display: block; width: 100%; height: auto; }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 26px; color: var(--muted); font-size: .93rem; font-weight: 600; }
.meta .sep { color: var(--sage-deep); }
.meta .tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Ikon layanan V2 (hanya bila artikel menyangkut salah satu dari 6 layanan) */
.svc-badge { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; color: var(--teal); font-weight: 700; text-decoration: none; }
.svc-badge .ach-icon { width: 56px; height: 56px; padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.svc-badge small { display: block; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.svc-badge:hover span { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Isi artikel ---------- */
.post-body { padding: 56px 0 24px; background: var(--paper); }
.prose { width: min(700px, calc(100% - 40px)); margin: 0 auto; font-size: 1.1rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.15em; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose table, .prose figure { margin-bottom: 0; }
.prose h2 { margin-top: 2.1em; font-size: clamp(1.45rem, 2.6vw, 1.85rem); font-weight: 800; scroll-margin-top: 84px; }
.prose h3 { margin-top: 1.7em; font-size: 1.25rem; font-weight: 750; scroll-margin-top: 84px; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose a { color: var(--teal); font-weight: 600; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--teal); }
.prose strong { color: var(--teal); font-weight: 750; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--teal); font-weight: 700; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 34px; position: relative; color: var(--teal); font-size: 1.22rem; font-weight: 600; line-height: 1.5; }
.prose blockquote::before { content: "\201C"; position: absolute; left: 0; top: -6px; color: var(--gold); font-size: 2.6rem; font-weight: 800; line-height: 1; }
.prose blockquote p { margin: 0; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.prose img { max-width: 100%; height: auto; border-radius: 10px; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figcaption { margin-top: 8px; color: var(--muted); font-size: .9rem; }
.prose code { font-family: var(--mono); font-size: .88em; padding: 1px 6px; background: var(--sage); border-radius: 5px; }
.prose pre { overflow-x: auto; padding: 16px 18px; background: var(--charcoal); color: var(--ivory); border-radius: 10px; font-size: .9rem; line-height: 1.55; }
.prose pre code { padding: 0; background: none; color: inherit; }
.prose .table-scroll { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--teal); font-weight: 750; border-bottom: 2px solid var(--teal); }
.prose td.num, .prose th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Komponen penutup artikel: tautan ke /mulai (satu komponen untuk semua post) ---------- */
.post-cta { width: min(700px, calc(100% - 40px)); margin: 56px auto 0; padding: 30px 32px; background: var(--teal); color: #d5e6e1; border-radius: 18px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; align-items: center; }
.post-cta p { margin: 0; }
.post-cta .cta-line { color: #fff; font-size: 1.32rem; font-weight: 750; line-height: 1.3; letter-spacing: -.01em; }
.post-cta .cta-sub { margin-top: 6px; font-size: .97rem; }
.post-cta .btn { background: var(--ivory); border-color: var(--ivory); color: var(--teal); white-space: nowrap; }
.post-cta .btn:hover { background: #fff; }

.post-tags { width: min(700px, calc(100% - 40px)); margin: 28px auto 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: .9rem; font-weight: 600; }

/* ---------- Tulisan lain + daftar blog: baris, bukan kartu ---------- */
.more { padding: 64px 0 80px; background: var(--ivory); }
.post-head + .more { padding-top: 32px; }
.more h2 { font-size: 1.35rem; margin-bottom: 18px; }
.post-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.post-list li { display: grid; grid-template-columns: 150px minmax(0, 1fr) 64px; gap: 28px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); }
.post-list time { color: var(--muted); font-size: .9rem; font-weight: 700; padding-top: 4px; font-variant-numeric: tabular-nums; }
.post-list h2, .post-list h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); font-weight: 750; }
.post-list h2 a, .post-list h3 a { text-decoration: none; }
.post-list h2 a:hover, .post-list h3 a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.post-list p { margin: 8px 0 0; color: var(--muted); max-width: 680px; }
.post-list .row-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 12px; color: var(--muted); font-size: .86rem; font-weight: 600; }
.post-list .icon .ach-icon { width: 64px; height: 64px; }
.empty { padding: 40px 0; color: var(--muted); }

.list-foot { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; color: var(--muted); font-size: .95rem; }

@media (max-width: 900px) {
  .post-head .wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .post-motif { justify-self: start; width: 220px; order: -1; }
}
@media (max-width: 640px) {
  .post-head { padding: 28px 0 40px; }
  .post-head .wrap { gap: 18px; }
  .post-motif { width: 150px; }
  .post-body { padding-top: 36px; }
  .prose { font-size: 1.04rem; }
  .post-cta { grid-template-columns: 1fr; padding: 26px 22px; }
  .post-cta .btn { width: 100%; }
  .post-list li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .post-list .icon { display: none; }
}
@media print {
  .nav, .post-cta, .more, .site-foot, .post-motif { display: none; }
  .post-body { background: none; }
}
