/* =========================================================
   Blog v2 — editorial design.  Every topic gets its own accent hue (--h),
   cards lift on hover, long reads get a progress bar + sticky contents.
   ========================================================= */
.bl, .bp { --acc: hsl(var(--h, 262) 70% 52%); --acc-soft: hsl(var(--h, 262) 80% 96%); }
[data-theme="dark"] .bl, [data-theme="dark"] .bp { --acc: hsl(var(--h, 262) 75% 68%); --acc-soft: hsl(var(--h, 262) 40% 16%); }
.bl, .bp { max-width: 1160px; margin: 0 auto; }

/* ---------- Masthead ---------- */
.bl-hero {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: 64px 24px 44px; border-radius: 36px; margin-bottom: 44px;
  background:
    radial-gradient(520px 260px at 12% 0%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 70%),
    radial-gradient(520px 300px at 92% 10%, color-mix(in srgb, var(--violet) 22%, transparent), transparent 70%),
    var(--card);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.bl-hero::before, .bl-hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.bl-hero::before { width: 260px; height: 260px; left: -80px; bottom: -120px; border: 34px solid color-mix(in srgb, var(--violet) 12%, transparent); }
.bl-hero::after { width: 150px; height: 150px; right: 6%; top: 26px; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--coral) 40%, transparent), transparent 70%); }
.bl-dots { position: absolute; z-index: -1; right: 24px; bottom: 22px; width: 120px; height: 70px; opacity: .55;
  background-image: radial-gradient(var(--violet) 1.6px, transparent 1.7px); background-size: 14px 14px; }
.bl-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); background: var(--violet-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.bl-title { font-size: clamp(2.2rem, 5.4vw, 3.8rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.04; margin: 0 0 14px; }
.bl-title .grad, .bl-hero h1 .grad { background: linear-gradient(95deg, #4285f4, #34a853); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bl-lead { color: var(--muted); font-size: 1.08rem; max-width: 36em; margin: 0 auto 28px; }
.bl-hero-sm { padding: 44px 24px 34px; margin-bottom: 36px; }
.bl-hero-sm .bl-title { font-size: clamp(1.9rem, 4vw, 2.8rem); }

.bl-search { position: relative; max-width: 560px; margin: 0 auto 22px; }
.bl-search .ico { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.bl-search input { padding: 17px 120px 17px 52px; border-radius: 999px; font-size: 1rem; background: var(--card); box-shadow: 0 18px 40px -22px rgba(60,50,50,.45); border-width: 1.5px; }
.bl-search button { position: absolute; right: 7px; top: 7px; bottom: 7px; border-radius: 999px; padding: 0 22px; }

.bl-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.bl-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font-weight: 700; font-size: .85rem; color: var(--text); transition: transform .15s, border-color .15s, background .15s; }
.bl-chip i { width: 9px; height: 9px; border-radius: 50%; background: hsl(var(--h, 262) 72% 55%); }
.bl-chip:hover { transform: translateY(-2px); border-color: hsl(var(--h, 262) 72% 55%); text-decoration: none; }
.bl-chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.bl-chip.is-active i { background: var(--brand); }

/* ---------- Section heads ---------- */
.bl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 64px 0 24px; }
.bl-head h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; letter-spacing: -0.035em; }
.bl-head p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.bl-count { font-size: .8rem; font-weight: 700; color: var(--muted); background: var(--card); border: 1px solid var(--border); padding: 5px 12px; border-radius: 999px; white-space: nowrap; }

/* ---------- Lead story ---------- */
.bf { --acc: hsl(var(--h) 70% 52%); display: grid; grid-template-columns: 1.18fr 1fr; background: var(--card); border: 1px solid var(--border); border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-hover); }
.bf-media { position: relative; display: block; min-height: 380px; overflow: hidden; background: linear-gradient(135deg, hsl(var(--h) 78% 56%), hsl(calc(var(--h) + 48) 80% 44%)); }
.bf-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.bf:hover .bf-media img { transform: scale(1.05); }
.bf-noimg { display: grid; place-items: center; }
.bf-noimg span { font-size: 9rem; font-weight: 800; color: rgba(255,255,255,.32); letter-spacing: -0.06em; }
.bf-noimg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.28) 1.6px, transparent 1.7px); background-size: 18px 18px; opacity: .5; }
.bf-body { padding: 40px 40px 36px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.bf-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bf-cat { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--acc); }
.bf-title { margin: 0; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.12; }
.bf-title a { color: var(--text); }
.bf-title a:hover { text-decoration: none; color: var(--acc); }
.bf-excerpt { margin: 0; color: var(--muted); font-size: 1.02rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.bf-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; text-decoration: none; }
.bf-btn .ico, .bc-go .ico { transform: rotate(180deg); }
.bf-btn:hover .ico { transform: rotate(180deg) translateX(-4px); }

/* ---------- Story cards ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; max-width: none; }
@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; gap: 22px; } }
.bc { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--border); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s; }
.bc:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: hsl(var(--h) 60% 70% / .6); }
.bc-media-wrap { position: relative; }
.bc-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, hsl(var(--h) 78% 56%), hsl(calc(var(--h) + 48) 80% 44%)); position: relative; }
.bc-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.bc:hover .bc-media img { transform: scale(1.06); }
.bc-noimg { display: grid; place-items: center; }
.bc-noimg span { font-size: 4.6rem; font-weight: 800; color: rgba(255,255,255,.4); letter-spacing: -0.05em; position: relative; z-index: 1; }
.bc-noimg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.3) 1.4px, transparent 1.5px); background-size: 16px 16px; opacity: .55; }
.bc-cat { position: absolute; left: 14px; top: 14px; z-index: 2; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.92); color: hsl(var(--h) 65% 38%); backdrop-filter: blur(6px); box-shadow: 0 6px 16px -8px rgba(0,0,0,.4); }
.bc-cat:hover { text-decoration: none; background: #fff; }
.bc-flag { display: inline-flex; align-items: center; gap: 5px; font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); }
.bc-media-wrap > .bc-flag { position: absolute; right: 14px; top: 14px; z-index: 2; }
.bc-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 20px; }
.bc-title { margin: 0 0 10px; font-size: 1.18rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bc-title a { color: var(--text); background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .3s; }
.bc:hover .bc-title a { background-size: 100% 2px; text-decoration: none; }
.bc-excerpt { margin: 0 0 18px; color: var(--muted); font-size: .93rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.bc-foot { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--border); }
.bc-who { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; flex: 1; }
.bc-who strong { font-size: .85rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-who span { font-size: .76rem; color: var(--muted); }
.bc-go { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--acc-soft, var(--field)); color: hsl(var(--h) 65% 42%); transition: transform .2s, background .2s, color .2s; }
.bc:hover .bc-go { background: hsl(var(--h) 70% 52%); color: #fff; transform: translateX(3px); }
.bc-go:hover { text-decoration: none; }
.bl-avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: #fff; background: linear-gradient(135deg, hsl(var(--h, 262) 70% 55%), hsl(calc(var(--h, 262) + 40) 75% 45%)); }

/* ---------- Topics + CTA ---------- */
.bl-topics { display: flex; flex-wrap: wrap; gap: 10px; }
.bl-topic { display: inline-flex; align-items: baseline; gap: 6px; padding: 10px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); font-weight: 700; color: var(--text); transition: transform .15s, background .15s, border-color .15s; }
.bl-topic small { color: var(--muted); font-weight: 600; }
.bl-topic:hover { transform: translateY(-2px); background: var(--violet-soft); border-color: var(--violet); text-decoration: none; }
.bl-topic.s2 { font-size: 1.08rem; } .bl-topic.s3 { font-size: 1.22rem; padding: 12px 22px; }
.bl-cta { position: relative; overflow: hidden; margin-top: 72px; padding: 44px 48px; border-radius: 32px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(135deg, #1e2536, #16243d 60%, #1e3a8a); }
.bl-cta::before { content: ""; position: absolute; width: 320px; height: 320px; right: -80px; top: -150px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 55%, transparent), transparent 65%); }
.bl-cta h2 { position: relative; margin: 0 0 6px; color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.03em; }
.bl-cta p { position: relative; margin: 0; color: #9aa6bd; max-width: 32em; }
.bl-cta .btn-lime { position: relative; display: inline-flex; align-items: center; text-decoration: none; }
.bl-empty { text-align: center; padding: 56px 20px; background: var(--card); border: 1px dashed var(--border); border-radius: 28px; color: var(--muted); }
.bl-empty h3 { color: var(--text); margin: 0 0 6px; }

/* ---------- Single post ---------- */
.bp-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 100; background: transparent; pointer-events: none; }
.bp-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--violet)); border-radius: 0 4px 4px 0; transition: width .08s linear; }
.bp-head { max-width: 860px; margin: 0 auto 30px; text-align: center; }
.bp-cat { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 7px 16px; border-radius: 999px; background: var(--acc-soft); color: var(--acc); margin-bottom: 18px; }
.bp-cat:hover { text-decoration: none; filter: brightness(.97); }
.bp-title { margin: 0 0 16px; font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.08; }
.bp-deck { margin: 0 auto 24px; max-width: 40em; font-size: 1.18rem; color: var(--muted); line-height: 1.6; }
.bp-meta { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 18px; font-size: .88rem; color: var(--muted); }
.bp-author { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.bp-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border); display: inline-block; }
.bp-cover { margin: 0 0 44px; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-hover); aspect-ratio: 16 / 8; background: var(--field); }
.bp-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bp-layout { display: grid; grid-template-columns: 64px minmax(0, 740px) 270px; gap: 40px; justify-content: center; align-items: start; }
.bp-share { position: sticky; top: 104px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bp-share > span { font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl; transform: rotate(180deg); margin-bottom: 4px; }
.bp-share .share-icons { flex-direction: column; margin: 0; gap: 10px; }
.bp-aside { position: sticky; top: 104px; max-height: calc(100vh - 130px); overflow: auto; }
.bp-toc { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 18px 20px; box-shadow: var(--shadow); }
.bp-toc summary { list-style: none; cursor: pointer; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.bp-toc summary::-webkit-details-marker { display: none; }
.bp-toc[open] summary { margin-bottom: 12px; }
.bp-toc .blog-toc { background: none; border: 0; padding: 0; margin: 0; box-shadow: none; }
.bp-toc ul { list-style: none; margin: 0; padding: 0; }
.bp-toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid var(--border); color: var(--muted); font-size: .86rem; font-weight: 600; line-height: 1.4; transition: color .15s, border-color .15s; }
.bp-toc li a:hover { color: var(--text); text-decoration: none; }
.bp-toc li a.is-active { color: var(--acc); border-left-color: var(--acc); }
.bp-toc ul ul { margin-left: 12px; }
.bp-toc ul ul a { font-size: .82rem; font-weight: 500; }

.bp-main { min-width: 0; }
.bp-main .blog-content { font-size: 1.12rem; line-height: 1.85; }
.bp-main .blog-content > p:first-of-type { font-size: 1.22rem; color: var(--text); }
.bp-main .blog-content h2 { font-size: 1.85rem; font-weight: 800; letter-spacing: -0.035em; margin: 48px 0 16px; scroll-margin-top: 110px; }
.bp-main .blog-content h3 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.025em; margin: 36px 0 12px; scroll-margin-top: 110px; }
.bp-main .blog-content h4 { font-size: 1.15rem; margin: 28px 0 10px; scroll-margin-top: 110px; }
.bp-main .blog-content a { color: var(--acc); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--acc) 40%, transparent); }
.bp-main .blog-content a:hover { text-decoration-color: var(--acc); }
.bp-main .blog-content img { border-radius: 20px; margin: 10px 0; }
.bp-main .blog-content blockquote { border: 0; border-radius: 22px; background: var(--acc-soft); padding: 22px 28px; font-size: 1.15rem; font-style: normal; font-weight: 600; color: var(--text); position: relative; }
.bp-main .blog-content blockquote::before { content: "\201C"; position: absolute; left: 12px; top: -6px; font-size: 4rem; color: var(--acc); opacity: .35; line-height: 1; }
.bp-main .blog-content ul li::marker, .bp-main .blog-content ol li::marker { color: var(--acc); font-weight: 700; }
.bp-main .blog-content pre { border-radius: 18px; padding: 20px 22px; }
.bp-main .blog-content table { border-radius: 14px; overflow: hidden; }

.bp-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--border); }
.bp-tags > span { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.bp-author-card { display: flex; gap: 18px; align-items: center; margin: 36px 0; padding: 24px; border-radius: 26px; background: linear-gradient(140deg, var(--acc-soft), var(--card) 65%); border: 1px solid var(--border); }
.bp-author-card .bl-avatar { width: 64px; height: 64px; font-size: 1.5rem; }
.bp-author-card small { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.bp-author-card strong { display: block; font-size: 1.1rem; margin: 2px 0; }
.bp-author-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.bp-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 8px; }
.bp-nav a { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: 22px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--text); transition: transform .2s, border-color .2s; }
.bp-nav a:hover { transform: translateY(-3px); border-color: var(--acc); text-decoration: none; }
.bp-nav small { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--acc); }
.bp-nav strong { font-size: 1rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bp-nav .is-next { text-align: right; align-items: flex-end; }
.bp-related { margin-top: 80px; }

/* breadcrumbs inside the blog */
.bl .blog-breadcrumb ol, .bp .blog-breadcrumb ol { justify-content: center; margin: 0 0 20px; }
.bp .blog-breadcrumb ol { margin-top: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .bp-layout { grid-template-columns: minmax(0, 740px); }
  .bp-share { position: static; flex-direction: row; justify-content: center; order: -1; }
  .bp-share > span { writing-mode: horizontal-tb; transform: none; margin: 0 6px 0 0; }
  .bp-share .share-icons { flex-direction: row; }
  .bp-aside { position: static; max-height: none; order: -1; }
}
@media (min-width: 1181px) { .bp-toc summary { pointer-events: none; } }
@media (max-width: 860px) {
  .bf { grid-template-columns: 1fr; }
  .bf-media { min-height: 240px; aspect-ratio: 16 / 9; }
  .bf-body { padding: 28px 24px; }
  .bl-hero { padding: 44px 18px 32px; border-radius: 28px; }
  .bl-search input { padding-right: 104px; }
  .bl-cta { padding: 32px 26px; }
  .bp-cover { border-radius: 22px; aspect-ratio: 16 / 10; }
  .bp-nav { grid-template-columns: 1fr; }
  .bp-nav .is-next { text-align: left; align-items: flex-start; }
}
@media (max-width: 520px) {
  .bl-chips { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin: 0 -18px; padding-left: 18px; padding-right: 18px; scrollbar-width: none; }
  .bl-chips::-webkit-scrollbar { display: none; }
  .bl-chip { flex: none; }
  .bp-main .blog-content { font-size: 1.04rem; }
  .bp-author-card { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .bc, .bc-media img, .bf-media img, .bc-go { transition: none !important; } .bc:hover { transform: none; } }

/* ===== Blog list v3: masthead + tabs + lead banner + rows + sidebar ===== */
.bx-mast{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:46px 0 22px}
.bx-mast h1{font-size:clamp(2.2rem,5vw,3.4rem);line-height:1.05;letter-spacing:-.03em;margin:12px 0 10px;font-weight:800}
.bx-mast p{margin:0;max-width:560px;color:var(--text-muted,#667085);font-size:1.05rem;line-height:1.6}
.bx-rss{display:inline-flex;align-items:center;gap:8px;padding:9px 16px;border:1px solid var(--border,#e2e8f3);border-radius:999px;font-weight:600;font-size:.85rem;text-decoration:none;color:inherit;background:var(--card,#fff)}
.bx-rss:hover{border-color:var(--brand,#4285f4)}
.bx-tabs{display:flex;gap:4px;overflow-x:auto;border-bottom:1px solid var(--border,#e2e8f3);margin-bottom:30px;scrollbar-width:none}
.bx-tabs::-webkit-scrollbar{display:none}
.bx-tabs a{flex:none;padding:12px 16px;font-weight:600;font-size:.92rem;color:var(--text-muted,#667085);text-decoration:none;border-bottom:3px solid transparent;margin-bottom:-1px;white-space:nowrap}
.bx-tabs a:hover{color:inherit;border-bottom-color:hsl(var(--h,262) 70% 60%)}
.bx-tabs a.is-active{color:inherit;border-bottom-color:var(--brand,#4285f4)}

.bx-lead{position:relative;display:block;min-height:340px;border-radius:24px;overflow:hidden;text-decoration:none;color:#fff;margin-bottom:44px;
  background:linear-gradient(135deg,hsl(var(--h) 75% 38%),hsl(calc(var(--h) + 50) 80% 22%))}
.bx-lead img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .6s}
.bx-lead:hover img{transform:scale(1.04)}
.bx-lead::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 20%,rgba(5,8,20,.82))}
.bx-lead-in{position:absolute;z-index:1;left:0;right:0;bottom:0;padding:34px;display:flex;flex-direction:column;gap:12px;max-width:820px}
.bx-lead-tags b{background:var(--brand,#4285f4);color:var(--brand-ink,#fff);border-radius:999px;padding:4px 12px;font-size:.72rem;letter-spacing:.06em;text-transform:uppercase}
.bx-lead-tags em{font-style:normal;margin-left:10px;font-weight:600;font-size:.85rem;opacity:.9}
.bx-lead strong{font-size:clamp(1.6rem,3.4vw,2.5rem);line-height:1.15;letter-spacing:-.02em}
.bx-lead-ex{opacity:.88;line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.bx-lead-meta{font-size:.85rem;opacity:.75}

.bx-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:44px;align-items:start;margin-bottom:56px}
.bx-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:6px}
.bx-head h2{margin:0;font-size:1.5rem;letter-spacing:-.02em}
.bx-head span{font-size:.85rem;color:var(--text-muted,#667085)}
.bx-list{display:flex;flex-direction:column}
.bx-row{display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px;padding:26px 0;border-bottom:1px solid var(--border,#e2e8f3)}
.bx-row:first-child{padding-top:18px}
.bx-thumb{position:relative;display:block;aspect-ratio:4/3;border-radius:16px;overflow:hidden;background:linear-gradient(135deg,hsl(var(--h) 75% 55%),hsl(calc(var(--h) + 45) 80% 42%))}
.bx-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.bx-row:hover .bx-thumb img{transform:scale(1.06)}
.bx-thumb.is-ph span{position:absolute;inset:0;display:grid;place-items:center;font-size:3.4rem;font-weight:800;color:rgba(255,255,255,.55)}
.bx-text{min-width:0;display:flex;flex-direction:column}
.bx-top{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:.78rem;margin-bottom:8px}
.bx-cat{font-weight:700;text-transform:uppercase;letter-spacing:.06em;text-decoration:none;color:hsl(var(--h) 60% 38%)}
.bx-date{color:var(--text-muted,#667085)}
.bx-feat{display:inline-flex;align-items:center;gap:4px;background:rgba(66,133,244,.18);color:#1a56c4;padding:2px 9px;border-radius:999px;font-weight:700}
.bx-title{margin:0 0 8px;font-size:1.3rem;line-height:1.25;letter-spacing:-.015em}
.bx-title a{color:inherit;text-decoration:none;background:linear-gradient(currentColor,currentColor) 0 100%/0 2px no-repeat;transition:background-size .3s}
.bx-row:hover .bx-title a{background-size:100% 2px}
.bx-excerpt{margin:0 0 14px;color:var(--text-muted,#667085);line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.bx-meta{margin-top:auto;display:flex;align-items:center;gap:8px;font-size:.82rem;color:var(--text-muted,#667085)}
.bx-meta .bl-avatar{width:26px;height:26px;font-size:.7rem}
.bx-dot{width:3px;height:3px;border-radius:50%;background:currentColor;opacity:.6}
.bx-more{margin-left:auto;display:inline-flex;align-items:center;gap:6px;font-weight:700;color:inherit;text-decoration:none}
.bx-more svg{transform:rotate(180deg)}

.bx-side{position:sticky;top:96px;display:flex;flex-direction:column;gap:22px}
.bx-box{background:var(--card,#fff);border:1px solid var(--border,#e2e8f3);border-radius:18px;padding:20px}
.bx-box h3{margin:0 0 14px;font-size:.78rem;text-transform:uppercase;letter-spacing:.09em;color:var(--text-muted,#667085)}
.bx-search label{display:block;margin-bottom:10px;font-size:.78rem;text-transform:uppercase;letter-spacing:.09em;font-weight:700;color:var(--text-muted,#667085)}
.bx-search div{display:flex;gap:8px}
.bx-search input{flex:1;min-width:0;padding:10px 14px;border-radius:12px;border:1px solid var(--border,#e2e8f3);background:var(--bg,#fff);color:inherit;font:inherit}
.bx-cats{list-style:none;margin:0;padding:0}
.bx-cats a{display:flex;align-items:center;gap:10px;padding:9px 0;text-decoration:none;color:inherit;border-bottom:1px dashed var(--border,#e2e8f3);font-weight:600;font-size:.92rem}
.bx-cats li:last-child a{border-bottom:0}
.bx-cats i{width:10px;height:10px;border-radius:50%;background:hsl(var(--h) 70% 55%)}
.bx-cats span{flex:1}
.bx-cats b{font-size:.75rem;background:var(--bg-soft,#f1efed);padding:2px 9px;border-radius:999px;color:var(--text-muted,#667085)}
.bx-cats a:hover span{text-decoration:underline}
.bx-tags{display:flex;flex-wrap:wrap;gap:8px}
.bx-tags a{padding:6px 12px;border-radius:999px;background:var(--bg-soft,#f1efed);font-size:.82rem;font-weight:600;text-decoration:none;color:inherit}
.bx-tags a:hover{background:var(--brand,#4285f4);color:var(--brand-ink,#fff)}
.bx-promo{background:linear-gradient(135deg,#1f2937,#1e3a8a);color:#fff;border:0}
.bx-promo h3{color:#fff;font-size:1.15rem;text-transform:none;letter-spacing:-.01em;margin-bottom:8px}
.bx-promo p{margin:0 0 16px;opacity:.8;line-height:1.55;font-size:.92rem}

[data-theme="dark"] .bx-rss,[data-theme="dark"] .bx-box{background:#171d2b;border-color:#2a3347}
[data-theme="dark"] .bx-promo{background:linear-gradient(135deg,#2a1a10,#1e3a8a)}
[data-theme="dark"] .bx-cat{color:hsl(var(--h) 80% 72%)}
[data-theme="dark"] .bx-search input{background:#0f1420;border-color:#2a3347}
[data-theme="dark"] .bx-cats b,[data-theme="dark"] .bx-tags a{background:#1e2536}
[data-theme="dark"] .bx-row,[data-theme="dark"] .bx-tabs{border-color:#2a3347}

@media (max-width:1000px){.bx-layout{grid-template-columns:1fr}.bx-side{position:static}}
@media (max-width:620px){
  .bx-mast{padding-top:30px}
  .bx-lead{min-height:300px;border-radius:18px}.bx-lead-in{padding:22px}
  .bx-row{grid-template-columns:1fr;gap:14px}.bx-thumb{aspect-ratio:16/9}
}

/* v3.1 — images may contain their own text, so never put text on top of them */
.bx-lead{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);min-height:0;color:inherit;background:var(--card,#fff);border:1px solid var(--border,#e2e8f3);border-radius:24px;overflow:hidden}
.bx-lead::after{display:none}
.bx-lead-img{position:relative;display:block;aspect-ratio:16/9;align-self:center;background:linear-gradient(135deg,hsl(var(--h) 75% 55%),hsl(calc(var(--h) + 45) 80% 42%))}
.bx-lead-img img{position:static;width:100%;height:100%;object-fit:cover;display:block}
.bx-lead:hover img{transform:none}
.bx-lead-img.is-ph span{position:absolute;inset:0;display:grid;place-items:center;font-size:5rem;font-weight:800;color:rgba(255,255,255,.55)}
.bx-lead .bx-lead-in{position:static;max-width:none;padding:34px 32px;justify-content:center;align-self:center;gap:14px}
.bx-lead-tags{display:flex;align-items:center;gap:12px}
.bx-lead-tags a{font-weight:700;font-size:.8rem;text-transform:uppercase;letter-spacing:.06em;text-decoration:none;color:hsl(var(--h) 60% 38%)}
.bx-lead h2{margin:0;font-size:clamp(1.4rem,2.4vw,2rem);line-height:1.2;letter-spacing:-.02em}
.bx-lead h2 a{color:inherit;text-decoration:none}
.bx-lead p{margin:0;color:var(--text-muted,#667085);line-height:1.6;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.bx-lead .bx-lead-meta{font-size:.85rem;color:var(--text-muted,#667085);opacity:1}
.bx-lead .btn{align-self:flex-start;margin-top:4px}
.bx-thumb{aspect-ratio:16/9}
.bx-row{grid-template-columns:280px minmax(0,1fr)}
[data-theme="dark"] .bx-lead{background:#171d2b;border-color:#2a3347}
[data-theme="dark"] .bx-lead-tags a{color:hsl(var(--h) 80% 72%)}
@media (max-width:900px){.bx-lead{grid-template-columns:1fr}.bx-lead .bx-lead-in{padding:24px}}
@media (max-width:620px){.bx-row{grid-template-columns:1fr}}

/* Contents box: one bar per item only — the nested list's own left border is removed
   so nested entries show just their inner bar. */
.bp-toc ul.blog-toc-list ul.blog-toc-list { border-left: 0; padding-left: 0; margin: 0 0 0 14px; }

/* ---- Post FAQ ---- */
.bp-faq { margin: 44px 0 8px; padding-top: 30px; border-top: 1px solid var(--border); }
.bp-faq > h2 { font-size: 1.5rem; font-weight: 800; margin: 0 0 18px; letter-spacing: -.01em; }
.bp-faq details { border: 1px solid var(--border); border-radius: 16px; background: var(--card); padding: 0 20px; margin-bottom: 10px; transition: border-color .15s; }
.bp-faq details[open] { border-color: color-mix(in srgb, var(--brand) 60%, var(--border)); }
.bp-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 0; }
.bp-faq summary::-webkit-details-marker { display: none; }
.bp-faq summary h3 { margin: 0; font-size: 1.02rem; font-weight: 700; line-height: 1.4; }
.bp-faq-a { padding: 0 0 18px; color: var(--muted); line-height: 1.7; }
.bp-faq-plus { flex: none; width: 28px; height: 28px; border-radius: 50%; position: relative; background: color-mix(in srgb, var(--brand) 16%, var(--card)); }
.bp-faq-plus::before, .bp-faq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--text); transform: translate(-50%, -50%); transition: transform .2s; }
.bp-faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] > summary .bp-faq-plus::after { transform: translate(-50%, -50%) rotate(0); }
.bp-faq summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 12px; }
.bp-faq-a p { margin: 0 0 .7em; }
.bp-faq-a p:last-child, .bp-faq-a ul:last-child, .bp-faq-a ol:last-child { margin-bottom: 0; }
.bp-faq-a strong, .bp-faq-a b { color: var(--text); font-weight: 700; }
.bp-faq-a ul, .bp-faq-a ol { margin: 0 0 .7em; padding-left: 22px; }
.bp-faq-a a { color: var(--brand-dark, #1a56c4); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
[data-theme="dark"] .bp-faq-a a { color: var(--brand, #4285f4); }

/* ---- Sidebar FAQ list inside "On this page" ---- */
.bp-tfaq { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border); }
.bp-tfaq-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text); text-decoration: none; }
.bp-tfaq-h:hover { text-decoration: none; color: var(--acc); }
.bp-tfaq-h em { font-style: normal; font-size: .7rem; letter-spacing: 0; padding: 2px 9px; border-radius: 999px; background: var(--brand, #4285f4); color: #fff; }
.bp-tfaq ol { list-style: none; counter-reset: q; margin: 0; padding: 0; }
.bp-tfaq li { counter-increment: q; }
.bp-tfaq li a { display: flex; gap: 10px; align-items: flex-start; padding: 7px 8px; margin: 0 -8px; border-radius: 10px; font-size: .84rem; font-weight: 600; line-height: 1.4; color: var(--muted); text-decoration: none; transition: background .15s, color .15s; }
.bp-tfaq li a::before { content: "Q" counter(q); flex: none; min-width: 26px; padding: 1px 0; text-align: center; border-radius: 7px; font-size: .68rem; font-weight: 800; background: rgba(66,133,244,.12); color: var(--brand, #4285f4); margin-top: 1px; }
.bp-tfaq li a:hover, .bp-tfaq li a.is-active { background: rgba(66,133,244,.08); color: var(--text); text-decoration: none; }
.bp-toc .bp-tfaq ol { display: flex; flex-direction: column; gap: 10px; }
.bp-toc .bp-tfaq li a { border-left: 0; padding: 10px 10px; margin: 0 -10px; border-radius: 12px; }
.bp-toc .bp-tfaq li a.is-active { border-left: 0; color: var(--text); }

/* FAQ: numbered questions (Q1, Q2 …) */
.bp-faq details { box-shadow: 0 1px 2px rgba(0,0,0,.03); transition: border-color .15s, box-shadow .2s, background .2s; }
.bp-faq details:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.bp-faq details[open] { box-shadow: 0 8px 24px color-mix(in srgb, var(--brand) 12%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 5%, var(--card)), var(--card) 90px); }
.bp-faq summary { justify-content: flex-start; }
.bp-faq summary h3 { flex: 1; min-width: 0; }
.bp-faq-q { flex: none; min-width: 42px; height: 28px; padding: 0 10px; border-radius: 999px; display: inline-grid; place-items: center; font-size: .78rem; font-weight: 800; letter-spacing: .04em; color: #fff; background: var(--brand); }
.bp-faq details:not([open]) .bp-faq-q { background: color-mix(in srgb, var(--brand) 16%, var(--card)); color: var(--brand-dark, #1a56c4); }
[data-theme="dark"] .bp-faq details:not([open]) .bp-faq-q { color: var(--brand, #4285f4); }
.bp-faq-a { padding-left: 56px; }
@media (max-width: 560px) { .bp-faq details { padding: 0 14px; } .bp-faq summary { gap: 10px; } .bp-faq-q { min-width: 36px; font-size: .72rem; } .bp-faq-a { padding-left: 0; } }
