/* Blog Maxy (pages/blog/index + partials/blog-list; kartu bx-card, bx-grid, bx-chip, bx-sh juga dipakai pages/blog/detail).
   Dimuat setelah home.css; token dari shell.css (.lp-page).
   Satu tema dengan beranda: pembuka .hb, .sec/.head/.h2/.lede, mozaik .mos/.post, bagian gelap .dark, kartu penutup .cta.
   Yang khusus blog saja di sini: artikel pilihan (bz-feat), baris topik, daftar peringkat (bz-rank), kartu kisi (bx-card), cari, pager.
   Gerak: transform/opacity, kurva --ease, mati saat reduced motion.
   Kontras: navy-deep di atas putih 15:1; ink-2 di atas putih 7,9:1; ink-3 di atas putih 4,7:1; gold-ink di atas putih 5,0:1;
   putih di atas navy-deep 15:1; putih .7 di atas navy-deep 8:1; nomor peringkat (putih .3) dekoratif, aria-hidden. */
.bx { --bx-r: 20px; }
.bx.bz { background: var(--paper); }
.bx .wrap { position: relative; }
.lp-home .bx-card h3, .bx-ex { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }

/* ===== pembuka ===== */
.bz-hero { padding: 64px 0 72px; overflow: visible; z-index: 2; } /* overflow visible: panel hasil cari boleh keluar dari pembuka */
.bz-hero::before { overflow: hidden; }
.bz-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.lp-home .bz-hero h1 { font-size: clamp(34px, 4.2vw, 56px); }
.bz-hero .hero-sub { margin: 20px 0 28px !important; }
.bz-hero.is-slim { padding: 48px 0 56px; } .bz-hero.is-slim .bz-hero-in { grid-template-columns: minmax(0, 720px); }
.bz-hero .lp-faces { margin-top: 28px; }
.js .bz-hero-t > *, .js .bz-feat { animation: bzRise 800ms var(--ease) both; }
.js .bz-hero-t > :nth-child(2) { animation-delay: 70ms; } .js .bz-hero-t > :nth-child(3) { animation-delay: 140ms; } .js .bz-hero-t > :nth-child(4) { animation-delay: 210ms; } .js .bz-hero-t > :nth-child(5) { animation-delay: 280ms; }
.js .bz-feat { animation-delay: 200ms; }
@keyframes bzRise { from { opacity: 0; transform: translateY(22px); } }

/* cari */
.bx-find { position: relative; max-width: 500px; }
.bx-search { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 16px; border-radius: 999px; background: var(--paper); box-shadow: 0 0 0 1px var(--line-2); transition: box-shadow 160ms var(--ease); }
.bx-search:focus-within { box-shadow: 0 0 0 3px var(--yellow); }
.lp-home .bx-search svg.ic { flex: none; width: 18px; height: 18px; color: var(--ink-3); }
.bx-search input { flex: 1; min-width: 0; min-height: 44px; padding: 0 4px; border: 0; background: none; font: 400 16px/1.2 var(--text); color: var(--ink); }
.bx-search input:focus { outline: none; }
.bx-search input::placeholder { color: var(--ink-3); opacity: 1; }
.lp-home .bx-go { flex: none; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--yellow); color: var(--navy-deep); font: 600 15px/1 var(--text); transition: background-color 160ms var(--ease); }
.lp-home .bx-go:focus-visible { outline-offset: 2px; border-radius: 999px; outline-color: var(--navy-deep); }
@media (hover: hover) { .lp-home .bx-go:hover { background: var(--yellow-hi); } }

/* hasil cari langsung: panel melayang di bawah kolom cari */
.bl-sr { position: absolute; z-index: 20; left: 0; top: calc(100% + 10px); width: min(560px, calc(100vw - 32px)); padding: 4px 20px 12px; border-radius: var(--bx-r); background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(4, 6, 20, .6); }
.bl-sr-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; border-bottom: 1px solid var(--line); }
.lp-home .bl-sr-top h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; letter-spacing: -.02em; color: var(--navy-deep); }
.bl-sr-top .num { padding: 4px 8px; border-radius: 999px; background: var(--navy-pale); color: var(--navy-deep); font: 500 12px/1 var(--mono); }
.bl-sr-top .num:empty { display: none; }
.lp-home .bl-sr :focus-visible { outline-color: var(--navy-deep); }
.bl-hit { display: grid; grid-template-columns: 72px minmax(0, 1fr) 16px; align-items: center; gap: 14px; min-height: 76px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bl-hit figure { width: 72px; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; background: var(--navy-pale); }
.bl-hit img { width: 100%; height: 100%; object-fit: cover; }
.bl-hit b { display: block; font: 600 15.5px/1.3 var(--display); letter-spacing: -.015em; color: var(--navy-deep); }
.bl-hit .mono { display: block; margin-top: 6px; }
.lp-home .bl-hit > svg { width: 16px; height: 16px; color: var(--ink-3); transition: transform 220ms var(--ease); }
@media (hover: hover) { .bl-hit:hover b { text-decoration: underline; text-underline-offset: 4px; } .bl-hit:hover > svg { transform: translateX(4px); color: var(--navy-deep); } }
.bl-sr-msg { display: flex; align-items: center; min-height: 76px; color: var(--ink-2); }
.bl-sr .lnk { margin-top: 4px; color: var(--navy-deep); }

/* artikel pilihan: satu kartu putih di atas navy */
.bz-feat { border-radius: var(--r-lg); overflow: hidden; background: var(--paper); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .7); transition: transform 420ms var(--ease); }
.bz-feat > a { display: block; }
.bz-feat figure { aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-mid); }
.bz-feat img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform 900ms var(--ease); }
.bz-feat-b { display: grid; gap: 12px; padding: 24px 26px 22px; }
.bz-feat .tag { color: var(--gold-ink); }
.lp-home .bz-feat h2 { font-size: clamp(22px, 2.1vw, 29px); font-weight: 700; line-height: 1.14; letter-spacing: -.03em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.bz-feat-x { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.bz-feat-m { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 4px !important; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }
.bz-go { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 var(--text); color: var(--navy-deep); }
.bz-go svg { width: 16px; height: 16px; transition: transform 220ms var(--ease); }
.lp-home .bz-feat > a:focus-visible { outline-color: var(--yellow); border-radius: var(--r-lg); }
@media (hover: hover) { .bz-feat:hover { transform: translateY(-4px); } .bz-feat:hover img { transform: scale(1.04); } .bz-feat:hover .bz-go svg { transform: translateX(4px); } }

/* ===== topik ===== */
.bz-topics { padding: 22px 0; }
.bx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bx-chips a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); font: 600 14.5px/1 var(--text); color: var(--navy-deep); white-space: nowrap; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.bx-chips .num { font: 500 12px/1 var(--mono); color: var(--ink-3); }
.lp-home .bx-chips a[aria-current="page"] { background: var(--navy-deep); color: #fff; box-shadow: none; }
.bx-chips a[aria-current="page"] .num { color: rgba(255, 255, 255, .7); }
.lp-home .bx-chips a:focus-visible { outline-offset: 2px; border-radius: 999px; }
@media (hover: hover) { .bx-chips a:not([aria-current]):hover { background: var(--navy-pale); box-shadow: none; } }

/* ===== terbaru: mozaik beranda; kalau artikelnya kurang dari lima, petak terakhir mengisi baris ===== */
.bz-mos[data-n="4"] .post:nth-child(4), .bz-mos[data-n="2"] .post:nth-child(2) { grid-column: span 12; }
.bz-mos[data-n="2"] .post:nth-child(1), .bz-mos[data-n="1"] .post:nth-child(1) { grid-column: span 12; }
/* judul di atas poster (Terbaru): bobot diturunkan supaya tidak bersaing dengan teks di poster; hanya halaman Blog, beranda tetap */
.lp-home .bz-mos .post h3 { font-weight: 500; letter-spacing: -.01em; }
.lp-home .bz-mos .post:nth-child(1) h3 { font-size: clamp(16px, 1.4vw, 19px); font-weight: 500; }
.js .bz [data-rv] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js .bz [data-rv].in { opacity: 1; transform: none; }

/* ===== paling banyak dibaca: daftar bernomor dua kolom ===== */
.bz-rank { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 64px; }
.bz-rank li { break-inside: avoid; }
.bz-rank a { display: grid; grid-template-columns: 64px minmax(0, 1fr) 18px; align-items: center; gap: 20px; min-height: 112px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.bz-rank-n { font: 700 56px/1 var(--display); letter-spacing: -.05em; color: rgba(255, 255, 255, .3); transition: color 220ms var(--ease); }
.bz-rank li:first-child .bz-rank-n { color: var(--yellow); }
.bz-rank-t { display: grid; gap: 8px; }
.bz-rank b { font: 600 19px/1.28 var(--display); letter-spacing: -.02em; color: #fff; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.bz-rank small { font-size: 13.5px; color: rgba(255, 255, 255, .7); }
.bz-rank svg { width: 18px; height: 18px; color: rgba(255, 255, 255, .5); transition: transform 220ms var(--ease), color 220ms var(--ease); }
.lp-home .bz-rank a:focus-visible { outline-color: var(--yellow); }
@media (hover: hover) { .bz-rank a:hover .bz-rank-n, .bz-rank a:hover svg { color: var(--yellow); } .bz-rank a:hover svg { transform: translateX(4px); } .bz-rank a:hover b { text-decoration: underline; text-underline-offset: 5px; } }

/* ===== semua artikel ===== */
.bx-sh { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 20px; }
.lp-home .bx-sh h2 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; letter-spacing: -.03em; overflow-wrap: anywhere; }
.bx-sh-sub { color: var(--ink-3); }
.lp-home .bx-count { margin: -24px 0 24px; font-size: 14px; color: var(--ink-3); }
.bx-chip { display: inline-flex; align-items: center; max-width: 100%; min-height: 26px; padding: 0 10px; border-radius: 8px; background: var(--navy-pale); color: var(--navy-deep); font: 600 12.5px/1 var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bx-card { position: relative; min-width: 0; border-radius: var(--bx-r, 20px); overflow: hidden; background: var(--paper); box-shadow: 0 0 0 1px var(--line); transition: transform 320ms var(--ease), box-shadow 320ms var(--ease); }
.bx-card > a { display: flex; flex-direction: column; height: 100%; }
.lp-home .bx-card > a:focus-visible { outline: none; }
.bx-card:has(> a:focus-visible) { outline: 2px solid var(--navy-deep); outline-offset: 3px; }
.bx-fig { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-pale); }
.bx-fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.bx-card-b { flex: 1 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 20px 20px; }
.bx-card-b > * { flex-shrink: 0; }
.lp-home .bx-card h3 { font-size: 18px; font-weight: 600; line-height: 1.28; letter-spacing: -.02em; }
.lp-home .bx-meta { margin-top: auto; padding-top: 2px; font-size: 13.5px; line-height: 1.3; color: var(--ink-3); }
.lp-home .bx-ex { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
@media (hover: hover) {
  .bx-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 24px 48px -28px rgba(26, 32, 73, .38); }
  .bx-card:hover .bx-fig img { transform: scale(1.04); }
}
.bx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bx-grid.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#blog-list { transition: opacity 220ms var(--ease); }
#blog-list[aria-busy="true"] { opacity: .45; pointer-events: none; }
.bl-empty { display: grid; justify-items: start; gap: 12px; padding: 40px; border-radius: var(--bx-r); background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.lp-home .bl-empty h3 { font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.lp-home .bl-empty p { margin-bottom: 8px; color: var(--ink-2); }
.bl-pg { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.bl-pg-a, .bl-pg-n { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); font: 600 15px/1 var(--text); color: var(--navy-deep); transition: background-color 160ms var(--ease); }
.lp-home .bl-pg svg { width: 16px; height: 16px; }
.lp-home .bl-pg [aria-current="page"] { background: var(--navy-deep); color: #fff; box-shadow: none; }
.bl-pg [aria-disabled="true"] { opacity: .35; }
.lp-home .bl-pg a:focus-visible { border-radius: 999px; }
.bl-pg-gap { min-width: 24px; text-align: center; color: var(--ink-3); }
@media (hover: hover) { .bl-pg a:hover { background: var(--navy-pale); box-shadow: none; } }
/* kartu penutup blog: foto kecil di kanan (sepertiga lebar), tinggi dikunci supaya kartu tetap ringkas */
.bz-cta { grid-template-columns: minmax(0, 1fr) 300px; }
.bz-cta .cta-t { padding-block: clamp(24px, 3vw, 40px); }
.lp-home .bz-cta h2 { max-width: none; font-size: clamp(28px, 3.4vw, 44px); }
.bz-cta-ph { min-height: 0; height: 280px; } .bz-cta-ph img { object-position: 50% 28%; }
@media (max-width: 900px) { .bz-cta { grid-template-columns: minmax(0, 1fr); } .bz-cta-ph { height: 200px; } }

/* ===== responsif ===== */
@media (max-width: 1100px) { .bx-grid.is-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .bz-rank { column-gap: 40px; } }
@media (max-width: 900px) {
  .bz-hero, .bz-hero.is-slim { padding: 40px 0 48px; } .bz-hero-in { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .bx-find { max-width: none; } .bl-sr { width: 100%; }
  .bz-topics .bx-chips { flex-wrap: nowrap; margin-inline: -24px; padding: 4px 24px 6px; overflow-x: auto; scrollbar-width: none; } .bz-topics .bx-chips::-webkit-scrollbar { display: none; }
  .bz-rank { columns: 1; } .bz-rank a { grid-template-columns: 48px minmax(0, 1fr) 18px; gap: 14px; min-height: 96px; } .bz-rank-n { font-size: 42px; } .bz-rank b { font-size: 17px; }
  .bx-grid, .bx-grid.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-home .bx-count { margin-top: -12px; }
}
@media (max-width: 600px) {
  .bx-search { padding-left: 14px; } .lp-home .bx-go { padding: 0 16px; }
  .bz-feat-b { padding: 18px 20px 18px; }
  .bx-grid, .bx-grid.is-4 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  /* kisi indeks di HP: kartu mendatar supaya 12 artikel tidak sepanjang 12 layar */
  .bx-grid.is-4 .bx-card > a { flex-direction: row; }
  .bx-grid.is-4 .bx-fig { flex: 0 0 116px; aspect-ratio: auto; min-height: 116px; }
  .bx-grid.is-4 .bx-card-b { flex: 1 1 0; min-width: 0; padding: 12px 14px; gap: 8px; }
  .lp-home .bx-grid.is-4 .bx-card h3 { font-size: 15.5px; }
  .lp-home .bx-grid.is-4 .bx-meta { font-size: 12.5px; }
  .bl-empty { padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .bx-card, .bz-feat, .bx-fig img, .bz-feat img, #blog-list, .bx-chips a { transition: none; }
  .bx-card:hover, .bz-feat:hover { transform: none; } .bx-card:hover .bx-fig img, .bz-feat:hover img { transform: none; }
  .js .bz [data-rv] { opacity: 1; transform: none; transition: none; }
}
