/* Blog v6: photo covers + split article hero. Loaded last on blog pages. */
.bpc { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #efe6da; }
.bpc img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .8, .2, 1), filter .6s; }
.bpc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(18, 33, 47, .22)); pointer-events: none; }
.ag-card:hover .bpc img, .bn5-l:hover .bpc img { transform: scale(1.06); filter: saturate(1.08); }
.ag-art .bpc { border-radius: 0; }
.ag-grid.lib .ag-feat .ag-art .bpc { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
.ag-grid.lib.filtering .ag-feat .ag-art .bpc { position: relative; aspect-ratio: 16 / 10; height: auto; }
.hs-img .bpc { aspect-ratio: 16 / 10; }

/* ---------- article hero: text left, photo right ---------- */
.bz-hero { padding: calc(88px + clamp(28px, 4vw, 56px)) 0 clamp(48px, 6vw, 84px); }
.bz-hw { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; max-width: 1450px; }
.bz-txt { min-width: 0; }
.bz-topic { display: inline-flex; align-items: center; gap: 9px; margin-top: 22px; padding: 8px 14px; border-radius: 99px; background: #fff; box-shadow: 0 0 0 1px #f0dfc9; font: 800 11.5px/1.2 var(--mono, ui-monospace, monospace); letter-spacing: .12em; text-transform: uppercase; color: #c25e00; }
.bz-topic i { width: 7px; height: 7px; border-radius: 50%; background: #f7861e; box-shadow: 0 0 0 4px rgba(247, 134, 30, .18); }
.bz-hero h1 { margin: 18px 0 0; font-size: clamp(34px, 3.8vw, 58px); line-height: 1.06; font-weight: 800; letter-spacing: -.04em; color: #12212f; text-wrap: balance; }
.bz-lead { margin: 20px 0 0; max-width: 600px; font-size: clamp(17px, 1.25vw, 19.5px); line-height: 1.65; color: #4a5968; }
.bz-by { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 28px; padding-top: 22px; border-top: 1px solid #f0e3d3; }
.bz-by > span:not(.ba-av) b { display: block; font-size: 15px; color: #12212f; }
.bz-by > span:not(.ba-av) small { font-size: 13.5px; color: #6b7886; }
.bz-by .ba-share { margin-left: auto; }
.bz-cover { position: relative; margin: 0; }
.bz-cover::before { content: ""; position: absolute; inset: 6% -3% -5% 6%; border-radius: 34px; background: linear-gradient(135deg, #ffd29c, #ffb867); opacity: .55; filter: blur(2px); transform: rotate(2.4deg); }
.bz-cover .bpc { position: relative; border-radius: 28px; box-shadow: 0 0 0 1px rgba(16, 33, 47, .08), 0 60px 100px -50px rgba(60, 35, 10, .7); }
.bz-cover .bpc img { animation: bzKen 18s ease-in-out infinite alternate; }
@keyframes bzKen { to { transform: scale(1.06) translate(-1%, -1%); } }
.bz-chip { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 99px; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); box-shadow: 0 18px 30px -16px rgba(30, 20, 10, .55); font-size: 13.5px; font-weight: 700; color: #12212f; }
.bz-chip.c1 { left: -18px; bottom: 34px; } .bz-chip.c2 { right: -14px; top: 30px; }
.bz-chip i { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .2); }
.bz-chip b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #f7861e; color: #fff; font-size: 12px; }

/* ---------- article body polish ---------- */
.ba-sec { background: linear-gradient(180deg, #fff, #fffcf8); }
.ba-art-body > h2 { scroll-margin-top: 110px; }
.bl-art .pg-tw { border-radius: 18px; }
.bl-art blockquote, .bl-art .rs-eq { border-radius: 18px; }
@media (max-width: 1000px) {
  .bz-hw { grid-template-columns: 1fr; }
  .bz-cover { max-width: 720px; width: 100%; justify-self: center; }
  .bz-chip.c1 { left: 10px; } .bz-chip.c2 { right: 10px; }
}
@media (max-width: 640px) { .bz-chip { font-size: 12px; padding: 7px 12px; } .bz-by .ba-share { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .bz-cover .bpc img { animation: none; } }

/* ===== "In this guide": no box, a clean progress rail ===== */
.ba-side .bl-toc { padding: 4px 0 0; border-radius: 0; background: none; box-shadow: none; }
.ba-side .bl-toc > b { display: flex !important; align-items: center; justify-content: space-between; padding: 0 0 16px; margin-bottom: 6px; border-bottom: 1px solid #f0e4d6; font: 800 12px/1.2 var(--mono, ui-monospace, monospace); letter-spacing: .14em; color: #c25e00; }
.ba-side .bl-toc ol { position: relative; gap: 0; margin: 14px 0 0; padding-left: 0; }
.ba-side .bl-toc ol::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: #f1e6d8; }
.ba-side .bl-toc a { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; padding: 9px 0; border-radius: 0; background: none !important; box-shadow: none !important; font-size: 14.5px; line-height: 1.45; color: #6b7886; transition: color .25s; }
.ba-side .bl-toc a::before { content: counter(t); position: relative; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px #ead9c4; font: 800 11px/1 Inter, system-ui, sans-serif; color: #b08c66; transition: background .25s, box-shadow .25s, color .25s, transform .25s; }
.ba-side .bl-toc a:hover { color: #12212f; }
.ba-side .bl-toc a:hover::before { box-shadow: inset 0 0 0 1.5px #f7861e; color: #e56f06; }
.ba-side .bl-toc a.on { color: #12212f; font-weight: 700; }
.ba-side .bl-toc a.on::before { background: linear-gradient(135deg, #ffa24a, #f7861e); color: #fff; box-shadow: 0 0 0 4px rgba(247, 134, 30, .18); transform: scale(1.08); }
.ba-side .bl-toc li:has(~ li a.on) a::before { background: #fff1e2; box-shadow: inset 0 0 0 1.5px #f7a24e; color: #c25e00; }
.ba-ring svg { width: 34px; height: 34px; }
/* featured card: show the whole thumbnail (no cropping), text beside it */
.ag-grid.lib .ag-feat { align-items: stretch; }
.ag-grid.lib .ag-feat .ag-art { flex: 0 0 58%; min-height: 0; display: flex; align-items: center; background: #12212f; }
.ag-grid.lib .ag-feat .ag-art .bpc { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 16 / 10; }
.ag-grid.lib .ag-feat .bx-body { justify-content: center; }
/* featured guide = same size as every other card (uniform grid), keeps its "Start here" badge */
.ag-grid.lib .ag-feat { grid-column: auto !important; flex-direction: column !important; }
.ag-grid.lib .ag-feat .ag-art { flex: none !important; background: none; display: block; }
.ag-grid.lib .ag-feat .ag-art .bpc { position: relative !important; aspect-ratio: 16 / 10; height: auto !important; }
.ag-grid.lib .ag-feat .bx-body { padding: 18px 22px 22px !important; justify-content: flex-start !important; }
.ag-grid.lib .ag-feat .bx-body > b { font-size: 19px !important; line-height: 1.32 !important; letter-spacing: -.01em !important; }
.ag-grid.lib .ag-feat .bx-desc { -webkit-line-clamp: 2 !important; font-size: 15px !important; }
.ag-grid.lib .ag-feat .ag-meta small { margin-left: auto; }

/* ===== Blog home hero: text + search left, featured guide + popular list right ===== */
.bh-hero { padding-bottom: clamp(48px, 5vw, 72px) !important; }
.bh-hw { grid-template-columns: minmax(0, 1fr) minmax(0, 520px) !important; gap: clamp(40px, 6vw, 96px) !important; align-items: center !important; }
.bh-facts { gap: 0 !important; margin-top: 26px !important; }
.bh-facts li { padding: 0 22px; border-left: 1px solid #ecd9c3; }
.bh-facts li:first-child { padding-left: 0; border-left: 0; }
.bh-side { display: grid; gap: 16px; }
.bh-feat { display: block; overflow: hidden; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px #efe3d4, 0 40px 70px -46px rgba(80, 45, 10, .55); text-decoration: none; color: inherit; transition: transform .35s, box-shadow .35s; }
.bh-feat:hover { transform: translateY(-4px); box-shadow: 0 0 0 1.5px #f7a24e, 0 44px 70px -40px rgba(247, 134, 30, .5); }
.bh-fimg { display: block; }
.bh-fbody { display: grid; gap: 8px; padding: 18px 22px 20px; }
.bh-ftag { font: 800 11.5px/1.2 var(--mono, ui-monospace, monospace); letter-spacing: .1em; text-transform: uppercase; color: #c25e00; }
.bh-fbody b { font-size: 20px; line-height: 1.3; color: #12212f; }
.bh-fgo { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; color: #c25e00; }
.bh-pop { padding: 16px 20px; border-radius: 20px; background: rgba(255, 255, 255, .8); box-shadow: 0 0 0 1px #efe3d4; }
.bh-pop-h { margin: 0 0 6px; font: 800 11.5px/1.2 var(--mono, ui-monospace, monospace); letter-spacing: .12em; text-transform: uppercase; color: #8a96a3; }
.bh-pop ol { margin: 0; padding: 0; list-style: none; }
.bh-pop li { margin: 0; border-top: 1px solid #f1e7da; } .bh-pop li:first-child { border-top: 0; }
.bh-pop li::before { display: none; }
.bh-pop a { display: flex; gap: 14px; align-items: center; padding: 11px 0; text-decoration: none; }
.bh-pop i { flex: none; font: 800 14px/1 var(--mono, ui-monospace, monospace); font-style: normal; color: #f7861e; }
.bh-pop b { display: block; font-size: 15px; line-height: 1.35; color: #12212f; transition: color .2s; }
.bh-pop small { font-size: 12.5px; color: #7a8693; }
.bh-pop a:hover b { color: #c25e00; }
@media (max-width: 1000px) { .bh-hw { grid-template-columns: 1fr !important; } .bh-side { max-width: 560px; } }
/* blog hero: one centred column */
.bh-hw { grid-template-columns: 1fr !important; justify-items: center; text-align: center; max-width: 900px !important; }
.bh-txt { display: grid; justify-items: center; }
.bh-txt .pv-crumb { justify-content: center; }
.bh-txt h1 .h1-keyword { margin-inline: auto; }
.bh-txt .pv-lead { margin-inline: auto; }
.bh-search { width: min(100%, 620px); margin-inline: auto; }
.bh-facts { justify-content: center; }
.bh-hero { padding-bottom: clamp(44px, 5vw, 64px) !important; }
