/* Blog v2: editorial layout for /resources and the guides (loaded after pages.css and pages2.css). Light colors only. */
.ba-topic { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 99px; background: #fff1e2; box-shadow: inset 0 0 0 1px #f6d3ad; font: 800 11.5px/1 var(--mono, ui-monospace, monospace); letter-spacing: .1em; text-transform: uppercase; color: #c25e00; }
.ba-av { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px #eedfcd, 0 10px 20px -12px rgba(60, 40, 20, .5); overflow: hidden; }
.ba-av img { width: 160%; max-width: none; height: auto; object-fit: cover; object-position: left; margin-left: 52%; }
.ba-av.big { width: 64px; height: 64px; }

/* ============ blog home ============ */
.bx-hero { padding-bottom: clamp(40px, 5vw, 64px); text-align: center; }
.bx-hw { display: grid; justify-items: center; max-width: 980px; }
.bx-hero .pv-crumb { justify-content: center; }
.bx-hero h1 { font-size: clamp(44px, 6vw, 84px); }
.bx-hero h1 .h1-keyword { margin-inline: auto; max-width: 34ch; }
.bx-hero .pv-lead { margin-inline: auto; max-width: 640px; }
.bx-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.bx-facts li { margin: 0; padding: 10px 16px; border-radius: 99px; background: rgba(255, 255, 255, .85); box-shadow: 0 0 0 1px #f0dfc9; font-size: 14px; color: #5a6878; }
.bx-facts li::before { display: none; }
.bx-facts b { color: #e56f06; font-weight: 800; }

.bx-sec { padding: clamp(48px, 6vw, 88px) 0; background: #fff; }
.bx-alt { background: #fffaf4; border-top: 1px solid #f4e9db; border-bottom: 1px solid #f4e9db; }
.bx-sec .wrap, .ba-more .wrap { max-width: 1200px; }
.bx-bar { position: sticky; top: 92px; z-index: 5; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: max-content; max-width: 100%; margin: 0 auto 34px; padding: 6px; border-radius: 99px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px #eee2d3, 0 18px 30px -22px rgba(60, 40, 20, .45); }
.bx-f { height: 40px; padding: 0 18px; border: 0; border-radius: 99px; background: none; font: 700 14px Inter, system-ui, sans-serif; color: #5a6878; cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; }
.bx-f:hover { color: #12212f; background: #fff6ec; }
.bx-f.on { background: linear-gradient(135deg, #ffa24a, #f7861e); color: #fff; box-shadow: 0 10px 20px -10px rgba(247, 134, 30, .8); }
.bx-f:focus-visible { outline: 2px solid #12212f; outline-offset: 2px; }

.bx-feat { display: grid; grid-template-columns: 1.15fr 1fr; overflow: hidden; border-radius: 30px; background: #fff; box-shadow: 0 0 0 1px #eee4d8, 0 50px 80px -60px rgba(60, 40, 20, .6); text-decoration: none; color: inherit; transition: transform .35s, box-shadow .35s; }
.bx-feat:hover { transform: translateY(-4px); box-shadow: 0 0 0 1.5px #f7a24e, 0 50px 80px -50px rgba(247, 134, 30, .5); }
.bx-fimg { position: relative; display: grid; place-items: center; min-height: 420px; padding: 40px; background: radial-gradient(circle at 50% 45%, #fff 0, #ffe9cf 80%); overflow: hidden; }
.bx-fimg img { width: 100%; height: 100%; max-height: 340px; object-fit: contain; filter: drop-shadow(0 26px 22px rgba(40, 30, 20, .28)); transition: transform .6s; }
.bx-fimg.is-photo { padding: 0; } .bx-fimg.is-photo img { max-height: none; object-fit: cover; filter: none; }
.bx-feat:hover .bx-fimg img { transform: scale(1.04) rotate(-1deg); }
.bx-badge { position: absolute; left: 20px; top: 20px; padding: 8px 14px; border-radius: 99px; background: #12212f; color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; }
.bx-fbody { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(28px, 4vw, 52px); }
.bx-fbody > b { font-size: clamp(26px, 2.5vw, 38px); line-height: 1.15; letter-spacing: -.03em; color: #12212f; }
.bx-fbody .bx-desc { font-size: 17px; }
.bx-by { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: #5a6878; }
.bx-by .ba-av { width: 34px; height: 34px; }
.bx-fbody .btn { align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; margin-top: 6px; }

.bx-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bx-meta em { font-style: normal; font: 800 11.5px/1.2 var(--mono, ui-monospace, monospace); letter-spacing: .1em; text-transform: uppercase; color: #c25e00; }
.bx-meta small { font-size: 13px; color: #6b7886; white-space: nowrap; }
.bx-desc { font-size: 15px; line-height: 1.6; color: #4a5968; }

.bx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 26px; }
.bx-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px #eee4d8, 0 30px 50px -44px rgba(60, 40, 20, .45); text-decoration: none; color: inherit; transition: transform .35s, box-shadow .35s, opacity .35s; }
.bx-card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1.5px #f7a24e, 0 40px 60px -40px rgba(247, 134, 30, .5); }
.bx-img { display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 22px; background: radial-gradient(circle at 50% 45%, #fff 0, #fff0dd 80%); overflow: hidden; }
.bx-img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 14px rgba(40, 30, 20, .24)); transition: transform .6s; }
.bx-img.is-photo { padding: 0; } .bx-img.is-photo img { object-fit: cover; filter: none; }
.bx-card:hover .bx-img img { transform: scale(1.06); }
.bx-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 24px 24px; }
.bx-body > b { font-size: 20px; line-height: 1.3; letter-spacing: -.01em; color: #12212f; }
.bx-go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-size: 14.5px; font-weight: 700; color: #c25e00; }
.bx-go svg { transition: transform .3s; } .bx-card:hover .bx-go svg { transform: translateX(4px); }
.bx-hide { display: none !important; }
.bx-none { margin: 30px 0 0; text-align: center; color: #6b7886; }

.bx-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; }
.bx-head h2 { margin: 12px 0 0; font-size: clamp(28px, 3vw, 42px); line-height: 1.1; letter-spacing: -.03em; color: #12212f; }
.bx-all { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #c25e00; text-decoration: none; white-space: nowrap; }
.bx-topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.bx-topics li { margin: 0; } .bx-topics li::before { display: none; }
.bx-topics a { position: relative; display: grid; gap: 4px; height: 100%; padding: 22px 46px 22px 22px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px #eee4d8; text-decoration: none; transition: transform .3s, box-shadow .3s; }
.bx-topics a b { font-size: 16.5px; color: #12212f; }
.bx-topics a small { font-size: 13.5px; color: #6b7886; }
.bx-topics a span { position: absolute; right: 18px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff1e2; color: #e56f06; font-weight: 800; transition: background .3s, color .3s; }
.bx-topics a:hover { transform: translateY(-3px); box-shadow: 0 0 0 1.5px #f7a24e, 0 24px 40px -30px rgba(247, 134, 30, .5); }
.bx-topics a:hover span { background: #f7861e; color: #fff; }
.bx-soon { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.bx-soon li { display: flex; align-items: center; gap: 16px; margin: 0; padding: 20px 22px; border-radius: 20px; background: repeating-linear-gradient(135deg, #fff, #fff 12px, #fffaf4 12px, #fffaf4 24px); box-shadow: 0 0 0 1px #eee4d8; }
.bx-soon li::before { display: none; }
.bx-soon-n { font: 800 13px/1 var(--mono, ui-monospace, monospace); color: #f7861e; }
.bx-soon b { flex: 1; font-size: 16px; line-height: 1.4; color: #12212f; }
.bx-soon em { flex: none; padding: 6px 10px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1px #f2d9bb; font-style: normal; font-size: 12px; font-weight: 700; color: #c25e00; }

/* ============ article ============ */
.ba-hero { padding-bottom: clamp(40px, 5vw, 64px); }
.ba-hw { display: grid; justify-items: center; max-width: 900px; text-align: center; }
.ba-hero .pv-crumb { justify-content: center; }
.ba-tags { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; margin-top: 22px; font-size: 14px; font-weight: 600; color: #5a6878; }
.ba-tags > span:not(.ba-topic) { display: inline-flex; align-items: center; gap: 14px; }
.ba-tags > span:not(.ba-topic)::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #d9c3a8; }
.ba-hero h1 { margin: 18px 0 0; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.06; font-weight: 800; letter-spacing: -.04em; color: #12212f; text-wrap: balance; }
.ba-lead { margin: 20px 0 0; max-width: 720px; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.65; color: #4a5968; }
.ba-by { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; margin-top: 26px; text-align: left; }
.ba-by b { display: block; font-size: 15px; color: #12212f; } .ba-by small { font-size: 13px; color: #6b7886; }
.ba-share { display: inline-flex; align-items: center; gap: 8px; padding-left: 18px; border-left: 1px solid #ecdcc8; }
.ba-share > span { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8a96a3; }
.ba-sh { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px #eadfd3; color: #3a4a5a; cursor: pointer; transition: background .25s, color .25s, transform .25s; }
.ba-sh:hover { background: #f7861e; color: #fff; transform: translateY(-2px); }
.ba-sh em { position: absolute; bottom: calc(100% + 8px); left: 50%; translate: -50% 4px; padding: 5px 9px; border-radius: 8px; background: #12212f; color: #fff; font-size: 11.5px; font-style: normal; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .25s, translate .25s; }
.ba-sh.done em { opacity: 1; translate: -50% 0; }
.ba-cover { position: relative; max-width: 1100px; margin: clamp(32px, 4vw, 48px) auto 0; }
.ba-art { display: grid; place-items: center; height: clamp(260px, 34vw, 460px); padding: 34px; border-radius: 32px; overflow: hidden; background: radial-gradient(ellipse 60% 80% at 50% 50%, #fff 0, #ffe8cc 75%, #ffdcb4 100%); box-shadow: 0 0 0 1px rgba(16, 33, 47, .06), 0 60px 100px -60px rgba(120, 70, 20, .65); }
.ba-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 28px 24px rgba(40, 30, 20, .3)); animation: pvFloat 8s ease-in-out infinite; }
.ba-cover.is-photo .ba-art { padding: 0; } .ba-cover.is-photo .ba-art img { object-fit: cover; filter: none; animation: none; }
.ba-chip { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 99px; background: #fff; box-shadow: 0 0 0 1px #eee2d3, 0 18px 30px -16px rgba(40, 30, 20, .45); font-size: 13.5px; font-weight: 700; color: #12212f; }
.ba-chip.c1 { left: -14px; top: 30px; animation: pvFloat 6s ease-in-out -2s infinite; }
.ba-chip.c2 { right: -14px; bottom: 30px; animation: pvFloat 6s ease-in-out -4s infinite; }
.ba-chip i { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .2); }
.ba-chip b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #f7861e; color: #fff; font-size: 11px; }

.ba-sec { padding: clamp(48px, 6vw, 80px) 0; background: #fff; }
.ba-grid { display: grid; grid-template-columns: 240px minmax(0, 720px) 260px; justify-content: center; gap: clamp(28px, 3.5vw, 56px); max-width: 1360px; align-items: start; }
.ba-side, .ba-rail { position: sticky; top: 110px; }
.ba-side .bl-toc { background: #fff; box-shadow: 0 0 0 1px #eee4d8; }
.bl-toc > b { display: flex !important; align-items: center; justify-content: space-between; }
.ba-ring svg { width: 30px; height: 30px; transform: rotate(-90deg); }
.ba-ring circle { fill: none; stroke: #f3e6d6; stroke-width: 4; }
.ba-ring .p { stroke: #f7861e; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: var(--rp, 100); transition: stroke-dashoffset .2s; }
.ba-art-body { counter-reset: h2n; }
.ba-art-body > h2 { counter-increment: h2n; position: relative; padding-top: 24px; border-top: 1px solid #f1e7da; }
.ba-art-body > h2:first-child { border-top: 0; padding-top: 0; }
.ba-art-body > h2::before { content: counter(h2n, decimal-leading-zero); display: block; margin-bottom: 8px; font: 800 13px/1 var(--mono, ui-monospace, monospace); letter-spacing: .1em; color: #f7861e; }
.ba-art-body > p:first-of-type::first-letter { float: left; margin: 6px 10px 0 0; font-size: 58px; line-height: .85; font-weight: 800; color: #f7861e; }

.ba-end { display: grid; gap: 18px; margin-top: 56px; }
.ba-author { display: flex; gap: 18px; align-items: center; padding: 24px; border-radius: 22px; background: #fffaf4; box-shadow: 0 0 0 1px #f2e5d4; }
.ba-author small { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #c25e00; }
.ba-author b { display: block; font-size: 18px; color: #12212f; }
.ba-author p { margin: 6px 0 0 !important; font-size: 15px !important; line-height: 1.6 !important; }
.ba-endshare { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 18px 24px; border-radius: 18px; box-shadow: 0 0 0 1px #eee4d8; }
.ba-endshare > b { font-size: 16px; color: #12212f; } .ba-endshare > p { flex: 1; margin: 0 !important; font-size: 14.5px !important; color: #6b7886; }
.ba-endshare .ba-share { padding-left: 0; border: 0; }
.ba-cta { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 44px); border-radius: 28px; background: radial-gradient(ellipse at 100% 0%, #ffd7a8, transparent 55%), linear-gradient(135deg, #fff3e3, #ffe6c9); box-shadow: 0 0 0 1px #f3d6b2; }
.ba-cta::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 2px dashed rgba(247, 134, 30, .35); animation: pvSpin 40s linear infinite; }
.ba-cta-k { font: 800 12px/1 var(--mono, ui-monospace, monospace); letter-spacing: .12em; text-transform: uppercase; color: #c25e00; }
.ba-art-body .ba-cta h2 { margin: 10px 0 0; padding: 0; border: 0; font-size: clamp(24px, 2.4vw, 32px); }
.ba-art-body .ba-cta h2::before { display: none; }
.ba-cta p { max-width: 460px; }
.ba-cta .pg-btns .btn-primary { color: #fff; }
.ba-rail .bl-box { box-shadow: 0 0 0 1px #f3dcc0, 0 30px 50px -40px rgba(247, 134, 30, .55); }

.ba-more { padding: clamp(48px, 6vw, 80px) 0; background: #fffaf4; border-top: 1px solid #f4e9db; }

@media (max-width: 1240px) { .ba-grid { grid-template-columns: 230px minmax(0, 720px); } .ba-rail { display: none; } }
@media (max-width: 1000px) {
  .ba-grid { grid-template-columns: minmax(0, 720px); } .ba-side { display: none; }
  .bx-feat { grid-template-columns: 1fr; } .bx-fimg { min-height: 260px; }
  .bx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bx-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .bx-grid, .bx-topics, .bx-soon { grid-template-columns: 1fr; }
  .bx-bar { position: static; width: auto; border-radius: 20px; }
  .bx-head { flex-direction: column; align-items: flex-start; }
  .ba-chip { display: none; }
  .ba-share { padding-left: 0; border: 0; }
  .ba-art { border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) { .ba-art img, .ba-chip, .ba-cta::after { animation: none !important; } }
.ba-av img { width: 78%; height: auto; margin: 0; object-fit: contain; }

.bl-art a.btn, .bl-art .ba-sh { text-decoration: none !important; }
.bl-art a.btn-primary { color: #fff !important; }
.bl-art a.btn-line { color: #12212f !important; }
