/* Artikel blog — /blog/<slug>/ (10 artikel + template post-detail)
   Dibangun ulang 26 Okt 2026 dari "Revision Figma/Blog Detail New.css" + preview "Blog Detail (1).png" (1440x2951, artikel
   Choosing the Right Wooden Packaging). Ukuran = angka asli Figma; posisi relatif tepi konten (Figma x − 96).
   y di komentar = koordinat frame Figma. HTML ditulis tools/build-blog.py (+ isi tools/isi_blog.py & isi_blog_detail.py)
   — JANGAN edit index.html artikel langsung. Hero = komponen hero detail bersama (shared/css/components.css, .pl-hero--pd).
   Cadangan CSS/HTML lama: temp cek/post-detail-sebelum-26okt/. */


/* ============ HERO (Frame 563: 462 dari atas = 364 di bawah header) ============
   geometri lapisan miring = Product Detail (kotak 406); di sini kotak 364 -> titik bawah diskalakan 364/406:
   mint +590.5 -> +718.7, gelap +512 -> +676.1 (kemiringan sama). Judul = NAMA KATEGORI (tautan ke filter Blog),
   deskripsi kategori y298, meta y400: ikon 20 putih +14+ 14/600/20, jarak antar butir 35 */
.pl-hero--bd { min-height: 364px; padding-bottom: 42px; }
.pl-hero--bd .pl-hero__bg::before {
  clip-path: polygon(0 0, calc(var(--edge-pad, 72px) + 590.5px) 0, calc(var(--edge-pad, 72px) + 718.7px) 100%, 0 100%);
}
.pl-hero--bd .pl-hero__bg::after {
  clip-path: polygon(0 0, calc(var(--edge-pad, 72px) + 512px) 0, calc(var(--edge-pad, 72px) + 676.1px) 100%, 0 100%);
}
.pl-hero--bd .pl-hero__bg img { object-position: 50% 50%; }
.bd-hero__kat { color: inherit; }
.bd-hero__kat:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.bd-hero__meta { display: flex; flex-wrap: wrap; gap: 12px 35px; margin-top: 48px; }   /* deskripsi 352 -> meta 400 */
.bd-hero__meta li { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; line-height: 20px; color: #FFFFFF; }
.bd-hero__meta svg { flex: none; width: 20px; height: 20px; color: #FFFFFF; }


/* ============ SAMPUL + JUDUL (y516..1082) ============
   sampul 1248x459 radius 2 · judul y1005 42/800/43 −0.02em #003E3B (lebar 1071) +14+ ringkasan 16/500/20 #242424 */
.bd-head { padding-top: 54px; }                       /* hero 462 -> sampul 516 */
.bd-head__cover { display: block; width: 100%; height: auto; aspect-ratio: 1248 / 459; object-fit: cover; border-radius: 2px; }
main .bd-head__title {
  max-width: 1071px; margin-top: 30px;
  font-family: var(--pmi-font); font-size: 42px; font-weight: 800; line-height: 43px; letter-spacing: -0.02em;
  color: #003E3B;
}
.bd-head__excerpt { max-width: 1071px; margin-top: 14px; font-size: 16px; font-weight: 500; line-height: 20px; color: #242424; }


/* ============ ISI | SIDEBAR (y1126) ============
   isi 799 (konten +0): 14/500/24 rata kiri-kanan #242424, paragraf berjarak 1 baris (24), subjudul tebal menempel paragraf.
   sidebar 396 di x948 (jarak 53): Search 38 · Table of Contents · Related Articles, jarak 24 */
.bd-body { padding-top: 44px; }                       /* ringkasan 1082 -> isi 1126 */
.bd-body__grid { display: grid; grid-template-columns: minmax(0, 1fr) 396px; column-gap: 53px; align-items: start; }
.bd-article { font-size: 14px; font-weight: 500; line-height: 24px; color: #242424; }
.bd-article p { text-align: justify; }
.bd-article p + p, .bd-article section + section { margin-top: 24px; }
.bd-article section { scroll-margin-top: 120px; }
.bd-article .bd-h { font-size: 14px; font-weight: 700; line-height: 24px; color: #242424; }
.bd-article strong { font-weight: 700; }

.bd-side { display: flex; flex-direction: column; gap: 24px; }
.bd-search {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 8px 14px;
  border: 1px solid #DEDEDE; border-radius: 8px; background: #FAFAFA;
}
.bd-search:focus-within { border-color: #048C4D; }
.bd-search svg { flex: none; width: 20px; height: 20px; color: #8C8C8C; }
.bd-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 14px; font-weight: 400; line-height: 20px; color: #242424; }
.bd-search input::placeholder { color: #242424; opacity: 1; }

.bd-box { display: flex; flex-direction: column; padding: 24px 12px; border: 1px solid #DEDEDE; border-radius: 12px; background: #FAFAFA; }
.bd-box__title { display: flex; align-items: center; gap: 12px; padding: 0 10px; font-size: 18px; font-weight: 800; line-height: 20px; color: #048C4D; }
.bd-box__title svg { flex: none; width: 24px; height: 24px; }
.bd-toc ol { margin-top: 14px; }
.bd-toc a { display: block; padding: 10px; border-radius: 6px; font-size: 12px; font-weight: 500; line-height: 20px; color: #555555; transition: color .2s ease, background-color .2s ease; }
.bd-toc a[aria-current="true"] { color: #036F4A; }
.bd-toc a:hover { color: #036F4A; background: #F6F6F6; }

.bd-related { align-items: center; }
.bd-related .bd-box__title { align-self: stretch; }
.bd-related ul { width: 100%; max-width: 367px; margin-top: 19px; }
.bd-rel { display: flex; align-items: center; gap: 34px; padding: 8px 10px; border-radius: 6px; transition: background-color .2s ease; }
.bd-rel img { flex: none; width: 117px; height: 83px; object-fit: cover; border-radius: 4px; }
.bd-rel__text { display: flex; flex: 1; flex-direction: column; gap: 20px; min-width: 0; max-width: 156px; margin-left: -14px; }   /* foto -> teks 20 */
.bd-rel__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 20px; color: #003E3B; transition: color .2s ease; }
.bd-rel time { font-size: 12px; font-weight: 500; line-height: 14px; letter-spacing: .03em; color: #707070; }
.bd-rel__caret { flex: none; width: 20px; height: 20px; margin-left: auto; color: #048C4D; }
/* Figma: artikel pertama = keadaan aktif -> hanya saat hover */
.bd-rel:hover, .bd-rel:focus-visible { background: #F6F6F6; }
.bd-rel:hover .bd-rel__title, .bd-rel:focus-visible .bd-rel__title { color: #048C4D; }


/* ============ OTHER ARTICLES (y2118..2397, CTA 2461) ============
   judul 28/800/30 −0.01em #003E3B +26+ 4 kartu 300x223 (jarak 16): #FAFAFA radius 8 padding 12, foto 276x111 radius 6 +14+
   teks (padding 0 11): judul 14/600/20 #242424 2 baris +20+ tanggal 12/500/14 .03em #707070 + caret 14 #8C8C8C */
.bd-other { padding-block: 68px 64px; }                 /* sidebar 2050 -> judul 2118 */
main .bd-other__title { font-family: var(--pmi-font); font-size: 28px; font-weight: 800; line-height: 30px; letter-spacing: -0.01em; color: #003E3B; }
.bd-other__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.bd-card { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 12px; border-radius: 8px; background: #FAFAFA; transition: box-shadow .25s ease; }
.bd-card img { display: block; width: 100%; height: auto; aspect-ratio: 276 / 111; object-fit: cover; border-radius: 6px; }
.bd-card__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 40px; padding-inline: 11px; font-size: 14px; font-weight: 600; line-height: 20px; color: #242424; transition: color .2s ease; }
.bd-card__meta { display: flex; align-items: center; gap: 14px; margin-top: 6px; padding-inline: 11px; font-size: 12px; font-weight: 500; line-height: 14px; letter-spacing: .03em; color: #707070; }
.bd-card__meta svg { width: 14px; height: 14px; color: #8C8C8C; transition: transform .2s ease, color .2s ease; }
.bd-card:hover, .bd-card:focus-visible { box-shadow: 0 4px 16px rgba(3, 111, 74, .2); }
.bd-card:hover .bd-card__title, .bd-card:focus-visible .bd-card__title { color: #036F4A; }
.bd-card:hover .bd-card__meta svg { color: #036F4A; transform: translateX(3px); }
@media (hover: hover) { .bd-card:hover img, .bd-rel:hover img { filter: brightness(1.08); } }


/* patah baris = Figma (balance/pretty bawaan situs memendekkan baris); kata yatim tetap dicegah noOrphans */
.bd-head__title, .bd-head__excerpt, .bd-article p, .bd-card__title, .bd-rel__title { text-wrap: wrap; }


/* ============ TABLET & HP ============ */
@media (max-width: 1024px) {
  .bd-search { height: 44px; padding-block: 0; }        /* area sentuh 44 */
  .bd-search input { align-self: stretch; height: 42px; }
}
@media (max-width: 1100px) {
  .bd-body__grid { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .bd-side { max-width: 560px; }
  .bd-other__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .bd-head { padding-top: 40px; }
  main .bd-head__title { font-size: 30px; line-height: 36px; }
  main .bd-other__title { font-size: 24px; line-height: 30px; }
  .bd-article p { text-align: left; }
  .bd-card__title, .bd-rel__title { display: block; -webkit-line-clamp: unset; overflow: visible; min-height: 0; }   /* judul utuh di HP */
  .bd-other { padding-block: 48px; }
  .bd-hero__meta { margin-top: 32px; gap: 10px 24px; }
}
@media (max-width: 480px) {
  .bd-other__grid { grid-template-columns: minmax(0, 1fr); }
  .bd-rel { gap: 16px; }
  .bd-rel__text { margin-left: 0; }
}

/* 12 Nov (user: foto hero pas dengan lebar hero, tidak ter-zoom, subjek tidak tertutup gradasi/teks): foto = hasil GPT
   (tools/bahan-gpt-hero.py) dipotong ber-RASIO KOTAK HERO 1440 dengan subjek di sisi kanan (zona jernih) -> menutup kotak
   hero penuh; 1920 memotong atas-bawah sedikit, tablet & HP memperlihatkan sisi KANAN (subjek). Penjangkaran Figma lama
   (--w, top -98, cermin box-reflect) tidak dipakai lagi. Cek: python tools/ukur-hero.py */
.pl-hero--bd .pl-hero__bg img { --w: 100%; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%;
  -webkit-box-reflect: none; }
