/* Blog (/en|ru|sr/blog) — shared by the hub and every article.
   Tokens (--bg, --bg2, --border, --red, --yellow, --white, --white-dim) come from styles.css. */
body.bl { background: var(--bg); color: var(--white); }
body.bl::before { display: none; }          /* styles.css grain overlay is for the main site */
.bl a { color: inherit; }
.bl-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ── nav: the same header as /offer ─────────────────── */
body.bl { padding-top: 78px; }
.bl-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 20px 0; border-bottom: 1px solid transparent; transition: background .4s, padding .4s, border-color .4s; }
.bl-nav.scrolled { background: rgba(18,18,18,.88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 14px 0; border-color: var(--border); }
.bl-nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1100px; margin: 0 auto; padding: 0 80px; }
.bl-nav-menu { display: flex; align-items: center; gap: 22px; margin: 0 auto; }
.bl-nav-menu a { position: relative; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--white-dim); text-decoration: none; padding: 4px 0; transition: color .25s; }
.bl-nav-menu a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease-out, ease); }
.bl-nav-menu a:hover { color: var(--white); }
.bl-nav-menu a:hover::after, .bl-nav-menu a.is-current::after { transform: scaleX(1); }
.bl-nav-menu a.is-current { color: var(--white); }
.bl-nav-right { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.bl-back { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--white-dim); text-decoration: none; transition: color .25s; display: inline-flex; align-items: center; gap: 6px; }
.bl-back:hover { color: var(--white); }
.bl-back svg { width: 12px; height: 12px; }
.bl-nav .lang-switcher { margin: 0; }
.bl-nav .lang-btn { text-decoration: none; }
@media (max-width: 1100px) {
  body.bl { padding-top: 122px; }
  .bl-nav-in { flex-wrap: wrap; row-gap: 12px; padding: 0 28px; }
  .bl-nav-menu { order: 3; width: 100%; margin: 0; gap: 18px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-right: 28px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
  .bl-nav-menu::-webkit-scrollbar { display: none; }
  .bl-nav-menu a { white-space: nowrap; padding: 10px 0; }
}
@media (max-width: 600px) {
  .bl-nav-in { padding: 0 18px; }
  .bl-nav-right { gap: 10px; }
  .bl-back span { display: none; }
  .bl-nav .lang-btn { padding: 4px 7px; font-size: 11px; }
}

/* ── type helpers ────────────────────────────────────── */
.bl-eyebrow { position: relative; display: inline-block; padding: 5px 14px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--yellow); background: rgba(0,0,0,.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-weight: 500; line-height: 1.5; }
.bl-eyebrow::before, .bl-eyebrow::after { content: ''; position: absolute; top: 0; bottom: 0; width: 7px; }
.bl-eyebrow::before { left: 0; border-left: 1px solid currentColor; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.bl-eyebrow::after { right: 0; border-right: 1px solid currentColor; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.bl-h1 { font-size: clamp(2rem, 5.2vw, 3.9rem); line-height: 1.05; font-weight: 500; letter-spacing: -.0625em; margin: 20px 0 18px; text-wrap: balance; }
.bl-lede { font-size: clamp(1.02rem, 1.6vw, 1.2rem); line-height: 1.6; color: rgba(245,245,245,.82); max-width: 640px; }

/* ── hub ─────────────────────────────────────────────── */
.bh-hero { padding: clamp(48px, 8vw, 96px) 0 40px; }
.bh-hero .bl-lede { margin-bottom: 36px; }
.bh-flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; border: 1px solid var(--border); background: var(--bg2); }
.bh-flow a { position: relative; padding: 16px 14px 18px; border-right: 1px solid var(--border); display: grid; gap: 6px; transition: background .2s; min-width: 0; }
.bh-flow a:last-child { border-right: 0; }
.bh-flow a:hover { background: var(--bg3); }
.bh-flow span { font-size: 11px; letter-spacing: .16em; color: var(--red); font-weight: 700; }
.bh-flow b { font-size: 13.5px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.bh-flow i { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--red), var(--yellow)); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.bh-flow a:hover i { transform: scaleX(1); }
.bh-sec { padding: 56px 0 8px; }
.bh-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.bh-sec-h h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 500; letter-spacing: -.05em; line-height: 1.15; }
.bh-sec-h p { color: var(--white-dim); font-size: 14px; max-width: 520px; }

/* big preview cards */
.bc-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
.bc { position: relative; display: grid; overflow: hidden; background: var(--bg); border: 1px solid var(--border); isolation: isolate; transition: border-color .25s, transform .35s var(--ease, ease); }
.bc:hover { border-color: var(--border2); transform: translateY(-3px); }
.bc-img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease, ease); z-index: -2; }
.bc:hover .bc-img { transform: scale(1.035); }
.bc::after { content: ''; grid-area: 1 / 1; z-index: -1; background: linear-gradient(90deg, rgba(18,18,18,.7) 0%, rgba(18,18,18,.35) 40%, rgba(18,18,18,0) 70%); }
.bc-body { grid-area: 1 / 1; align-self: end; padding: clamp(20px, 3vw, 34px); max-width: 62%; display: grid; gap: 12px; }
.bc-tag { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--yellow); font-weight: 500; }
.bc-title { font-size: clamp(1.25rem, 2.3vw, 1.75rem); line-height: 1.12; letter-spacing: -.05em; font-weight: 500; text-wrap: balance; }
.bc-lede { font-size: 14px; line-height: 1.55; color: rgba(245,245,245,.78); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bc-meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--white-dim); letter-spacing: .04em; }
.bc-meta em { font-style: normal; color: var(--white); display: inline-flex; gap: 6px; transition: gap .25s; }
.bc:hover .bc-meta em { gap: 11px; }
.bc--feature { grid-column: 1 / -1; min-height: 480px; }
.bc--feature .bc-body { max-width: 52%; padding: clamp(24px, 4.5vw, 56px); }
.bc--feature .bc-title { font-size: clamp(1.7rem, 3.8vw, 2.9rem); }
.bc--feature .bc-lede { font-size: 16px; -webkit-line-clamp: 4; }
.bc--feature .bc-tag { justify-self: start; position: relative; padding: 5px 14px; background: rgba(0,0,0,.4); }
.bc--feature .bc-tag::before, .bc--feature .bc-tag::after { content: ''; position: absolute; top: 0; bottom: 0; width: 7px; }
.bc--feature .bc-tag::before { left: 0; border-left: 1px solid currentColor; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.bc--feature .bc-tag::after { right: 0; border-right: 1px solid currentColor; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.bc--wide { min-height: 340px; }
.bh-cta, .ba-cta { margin: 72px 0 0; border: 1px solid var(--border2); background: linear-gradient(135deg, #1b1b1b, #151515); padding: clamp(28px, 5vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; position: relative; overflow: hidden; }
.bh-cta::before, .ba-cta::before { content: ''; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; background: radial-gradient(circle, rgba(232,34,0,.28), rgba(232,34,0,0) 70%); pointer-events: none; }
.bh-cta h2, .ba-cta h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 500; letter-spacing: -.05em; line-height: 1.15; max-width: 560px; position: relative; }
.bh-cta p, .ba-cta p { color: var(--white-dim); margin-top: 8px; max-width: 520px; position: relative; font-size: 15px; }
.bl-btns { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; position: relative; }
.bl .btn-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; }
.bl .btn-ghost { display: inline-flex; min-height: 48px; align-items: center; }

/* ── article ─────────────────────────────────────────── */
.ba-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--white-dim); padding: 18px 0; }
.ba-crumbs a:hover { color: var(--white); }
.ah { position: relative; overflow: hidden; border: 1px solid var(--border); background: var(--bg); isolation: isolate; display: grid; min-height: clamp(420px, 62vh, 640px); }
.ah-img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ah::after { content: ''; grid-area: 1 / 1; z-index: -1; background: linear-gradient(90deg, rgba(18,18,18,.55) 0%, rgba(18,18,18,.25) 45%, rgba(18,18,18,0) 70%); }
.ah-body { grid-area: 1 / 1; align-self: center; padding: clamp(24px, 5vw, 64px); max-width: min(660px, 62%); }
.ah-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 26px; font-size: 13px; color: var(--white-dim); }
.ah-meta b { color: var(--white); font-weight: 600; }
.ah-meta span + span::before { content: '·'; margin-right: 18px; color: var(--border2); }
.ba-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 56px; justify-content: center; padding: 56px 0 0; align-items: start; }
.ba-toc { position: sticky; top: 92px; font-size: 13px; }
.ba-toc h2 { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--white-dim); margin-bottom: 12px; font-weight: 600; }
.ba-toc a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--border); color: var(--white-dim); line-height: 1.35; transition: color .2s, border-color .2s; }
.ba-toc a:hover { color: var(--white); border-color: var(--white-dim); }
.ba-toc a.on { color: var(--white); border-color: var(--red); }
.ba-body { font-size: 1.0625rem; line-height: 1.75; color: rgba(245,245,245,.88); min-width: 0; }
.ba-body h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 500; letter-spacing: -.05em; line-height: 1.2; margin: 52px 0 18px; color: var(--white); scroll-margin-top: 92px; text-wrap: balance; }
.ba-body h2:first-child { margin-top: 0; }
.ba-body p { margin: 0 0 18px; }
.ba-body a { color: var(--white); border-bottom: 1px solid rgba(255,199,0,.55); transition: border-color .2s, color .2s; }
.ba-body a:hover { color: var(--yellow); border-color: var(--yellow); }
.ba-body strong { color: var(--white); font-weight: 600; }
.ba-body ul, .ba-body ol { margin: 0 0 22px; display: grid; gap: 12px; }
.ba-body ul li { position: relative; padding-left: 26px; }
.ba-body ul li::before { content: ''; position: absolute; left: 4px; top: .72em; width: 8px; height: 8px; background: var(--red); transform: rotate(45deg); }
.ba-body ol { counter-reset: n; }
.ba-body ol li { position: relative; padding-left: 46px; counter-increment: n; }
.ba-body ol li::before { content: counter(n); position: absolute; left: 0; top: .1em; width: 30px; height: 30px; display: grid; place-items: center; background: var(--bg3); border: 1px solid var(--border2); font-size: 13px; font-weight: 700; color: var(--yellow); }

/* steps = the "work visualisation" timeline */
.bx-steps { margin: 0 0 26px; position: relative; display: grid; gap: 0; }
.ba-body .bx-steps li { position: relative; padding: 0 0 28px 68px; list-style: none; }
.ba-body .bx-steps li::before { display: none !important; }
.ba-body .bx-steps li:not(:last-child)::after { content: ''; position: absolute; left: 21px; top: 46px; bottom: 6px; width: 2px; background: linear-gradient(var(--red), rgba(232,34,0,.1)); }
.bx-steps .n { position: absolute; left: 0; top: 0; width: 44px; height: 44px; display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 700; font-size: 17px; letter-spacing: -.02em; box-shadow: 0 0 0 6px rgba(232,34,0,.12); }
.bx-steps h3 { font-size: 1.15rem; font-weight: 500; letter-spacing: -.03em; line-height: 1.25; margin: 6px 0 6px; color: var(--white); }
.bx-steps p { margin: 0; font-size: 1rem; color: rgba(245,245,245,.78); }

.bx-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0 0 26px; }
.bx-card { background: var(--bg2); border: 1px solid var(--border); padding: 20px 20px 18px; position: relative; }
.bx-card::before { content: ''; position: absolute; left: 0; top: 0; width: 36px; height: 3px; background: var(--yellow); }
.bx-card h3 { font-size: 1.02rem; letter-spacing: -.01em; margin: 6px 0 8px; color: var(--white); line-height: 1.25; }
.bx-card p { margin: 0; font-size: .94rem; line-height: 1.6; color: rgba(245,245,245,.74); }

/* script skeleton = proportional timeline */
.bx-skel { margin: 0 0 26px; border: 1px solid var(--border); background: var(--bg2); padding: 22px; }
.bx-skel-bar { display: flex; gap: 3px; height: 52px; margin-bottom: 20px; }
.bx-skel-bar span { display: grid; place-items: center; background: var(--bg3); border-top: 3px solid var(--c); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--white); font-weight: 700; min-width: 0; overflow: hidden; padding: 0 4px; white-space: nowrap; text-overflow: ellipsis; }
.bx-skel ol { margin: 0; gap: 14px; }
.ba-body .bx-skel ol li { padding-left: 14px; font-size: .96rem; line-height: 1.55; border-left: 3px solid var(--c); }
.ba-body .bx-skel ol li::before { display: none; }
.ba-body .bx-skel ol li b { color: var(--white); display: block; font-size: 1rem; }
.ba-body .bx-skel ol li small { color: var(--white-dim); font-size: .85rem; }
.bx-skel-note { margin: 16px 0 0; font-size: 13px; color: var(--white-dim); }

.bx-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 26px; }
.bx-cmp > div { padding: 20px; border: 1px solid var(--border); background: var(--bg2); }
.bx-cmp h3 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 14px; }
.bx-cmp .a { border-top: 3px solid #777; } .bx-cmp .a h3 { color: var(--white-dim); }
.bx-cmp .b { border-top: 3px solid var(--yellow); } .bx-cmp .b h3 { color: var(--yellow); }
.ba-body .bx-cmp ul { margin: 0; gap: 10px; font-size: .96rem; line-height: 1.55; }
.ba-body .bx-cmp .a ul li::before { background: #777; border-radius: 50%; transform: none; }
.ba-body .bx-cmp .b ul li::before { background: var(--yellow); }

.bx-call { margin: 34px 0 0; padding: 22px 24px 22px 26px; border-left: 3px solid var(--red); background: linear-gradient(90deg, rgba(232,34,0,.1), rgba(232,34,0,0)); font-size: 1.15rem; line-height: 1.5; font-weight: 500; letter-spacing: -.03em; color: var(--white); }
.bx-call small { display: block; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }

/* the id="faq" would otherwise pick up the landing page #faq section rules (padding, grey background) */
#faq.ba-faq { margin-top: 56px; padding: 0; background: none; }
.ba-faq h2 { margin-top: 0; }
.ba-faq dl { display: grid; gap: 0; border-top: 1px solid var(--border); }
.ba-faq dt { padding: 20px 0 6px; font-weight: 600; color: var(--white); font-size: 1.05rem; letter-spacing: -.01em; }
.ba-faq dd { margin: 0; padding: 0 0 20px; border-bottom: 1px solid var(--border); color: rgba(245,245,245,.78); font-size: 1rem; line-height: 1.7; }

.ba-author { margin-top: 56px; display: flex; gap: 20px; align-items: center; padding: 22px; border: 1px solid var(--border); background: var(--bg2); }
.ba-author img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex: none; }
.ba-author b { display: block; font-size: 1.05rem; }
.ba-author p { margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: var(--white-dim); }
.ba-author a { color: var(--white); border-bottom: 1px solid var(--yellow); }

.ba-more { margin-top: 72px; }
.ba-more h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: -.02em; margin-bottom: 20px; }
.ba-more .bc-grid { grid-template-columns: repeat(3, 1fr); }
.ba-more .bc { min-height: 300px; }
.ba-more .bc-body { max-width: 100%; padding: 20px; }
.ba-more .bc-title { font-size: 1.12rem; }
.ba-more .bc-lede { display: none; }
.ba-more .bc::after { background: linear-gradient(0deg, rgba(14,14,14,.95) 0%, rgba(14,14,14,.55) 45%, rgba(14,14,14,0) 80%); }

.bl-foot { margin-top: 96px; border-top: 1px solid var(--border); padding: 28px 0 40px; font-size: 13px; color: var(--white-dim); }
.bl-foot .bl-wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bl-foot a:hover { color: var(--white); }
.bl-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ── responsive ──────────────────────────────────────── */
@media (max-width: 1020px) {
  .ba-layout { grid-template-columns: minmax(0, 720px); gap: 0; }
  .ba-toc { display: none; }
  .bh-flow { grid-template-columns: repeat(3, 1fr); }
  .bh-flow a:nth-child(3) { border-right: 0; }
  .bh-flow a:nth-child(-n+3) { border-bottom: 1px solid var(--border); }
  .ba-more .bc-grid { grid-template-columns: repeat(2, 1fr); }
  .ba-more .bc:nth-child(3) { display: none; }
}
@media (max-width: 760px) {
  .bl-wrap { padding: 0 16px; }
  .bc-grid, .ba-more .bc-grid { grid-template-columns: 1fr; }
  .ba-more .bc:nth-child(3) { display: grid; }
  /* image on top, text below: the photo stays clean and readable on a phone */
  .bc, .bc--feature, .bc--wide { min-height: 0; }
  .bc-img { height: auto; aspect-ratio: 16 / 10; }
  .bc::after { display: none; }
  .bc-body, .bc--feature .bc-body, .ba-more .bc-body { grid-area: 2 / 1; max-width: none; padding: 20px 18px 22px; }
  .bc-lede, .ba-more .bc-lede { display: -webkit-box; -webkit-line-clamp: 3; }
  .bc--feature .bc-title { font-size: 1.55rem; }
  .ah { min-height: 0; }
  .ah-meta { gap: 6px 16px; }
  .ah-meta span + span::before { display: none; }
  .ah::after { display: none; }
  .ah-img { height: auto; aspect-ratio: 16 / 10; }
  .ah-body { grid-area: 2 / 1; max-width: none; padding: 22px 18px 26px; }
  .ba-layout { padding-top: 36px; }
  .bx-cards, .bx-cmp { grid-template-columns: 1fr; }
  .bx-steps li { padding-left: 58px; }
  .bx-steps .n { width: 38px; height: 38px; font-size: 15px; }
  .bx-steps li:not(:last-child)::after { left: 18px; top: 40px; }
  .bx-skel { padding: 16px; }
  .bx-skel-bar span { font-size: 0; }
  .bx-skel-bar span::before { content: attr(data-n); font-size: 13px; }
  .bh-flow { grid-template-columns: repeat(2, 1fr); }
  .bh-flow a, .bh-flow a:nth-child(3) { border-right: 1px solid var(--border); }
  .bh-flow a:nth-child(even) { border-right: 0; }
  .bh-flow a:nth-child(-n+4) { border-bottom: 1px solid var(--border); }
  .ba-author { flex-direction: column; align-items: flex-start; }
  .bh-cta, .ba-cta { padding: 26px 20px; }
  .bl-btns, .bl-btns .btn-primary { width: 100%; }
}

/* pipeline diagram (from pipeline-test.html): 12 steps, cards alternate sides, dashed connectors */
.bx-pipe { margin: 8px 0 34px; padding: 40px 16px 34px; background: #121212; border: 1px solid var(--border2); overflow: hidden; }
.bx-pipe-head { text-align: center; margin-bottom: 40px; }
.bx-pipe-head span { display: inline-block; background: var(--yellow); color: #111; font-weight: 800; font-size: clamp(16px, 4.4vw, 28px); line-height: 1.15; letter-spacing: -.03em; padding: 10px 22px 12px; border-radius: 12px; }
.ba-body .bx-pipe-steps { list-style: none; max-width: 560px; margin: 0 auto; padding: 0 26px 0 0; }
.ba-body .bx-pipe-steps li { list-style: none; padding: 0; margin: 0; display: block; }
.ba-body .bx-pipe-steps li::before { display: none !important; }
.bx-pipe .pc { position: relative; width: 62%; min-height: 76px; background: linear-gradient(180deg, #fff, #ececec); color: #121212; border-radius: 14px; padding: 14px 68px 14px 18px; display: flex; flex-direction: column; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.bx-pipe .right .pc { margin-left: auto; }
.bx-pipe .pc b { font-size: clamp(15px, 3.8vw, 19px); font-weight: 700; line-height: 1.2; color: #121212; }
.bx-pipe .pc small { margin-top: 3px; font-size: clamp(11px, 2.7vw, 13px); color: #6b6b6b; line-height: 1.3; }
.bx-pipe .num { position: absolute; top: -9px; left: -9px; width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 3px #121212; }
.bx-pipe .ic { position: absolute; right: -26px; top: 50%; width: 66px; height: 66px; margin-top: -33px; border-radius: 20px; background: linear-gradient(145deg, #333, #0d0d0d); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 12px 24px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.14), 0 0 22px rgba(255,199,0,.14); display: grid; place-items: center; transform: rotate(-6deg); }
.bx-pipe .right .ic { transform: rotate(6deg); }
.bx-pipe .ic svg { width: 32px; height: 32px; fill: none; stroke: var(--yellow); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(255,199,0,.5)); }
.bx-pipe .ic svg .fill { fill: var(--yellow); stroke: none; }
.bx-pipe .lk { display: block; width: 100%; height: 48px; overflow: visible; }
.bx-pipe .lk path { fill: none; stroke: var(--yellow); stroke-width: 1.6; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.bx-pipe .lk.flip { transform: scaleX(-1); }
.bx-pipe-foot { margin: 40px 0 0 !important; text-align: center; font-size: 13px !important; color: var(--white-dim) !important; }
@media (min-width: 720px) { .bx-pipe .pc { width: 56%; } .bx-pipe .lk { height: 56px; } }
@media (prefers-reduced-motion: reduce) { .bc, .bc-img, .bh-flow i { transition: none; } }

/* ── article layout polish ───────────────────────────── */
/* reading progress */
.ba-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); z-index: 200; pointer-events: none; will-change: transform; }

/* lead paragraph = the first one under the first heading */
.ba-body > h2:first-child + p { font-size: 1.22rem; line-height: 1.65; color: var(--white); letter-spacing: -.01em; }

/* section headings get a short accent rule */
.ba-body > h2 { position: relative; padding-top: 18px; }
.ba-body > h2::before { content: ''; position: absolute; left: 0; top: 0; width: 30px; height: 3px; background: var(--yellow); }
.ba-body > h2:first-child { padding-top: 0; }
.ba-body > h2:first-child::before { display: none; }

/* table of contents: highlighted marker + smoother hover */
.ba-toc a.on { background: linear-gradient(90deg, rgba(232,34,0,.12), transparent); }

/* author card: a little more air and a clear link */
.ba-author { gap: 22px; padding: 24px; }
.ba-author img { width: 84px; height: 84px; object-position: 50% 0; border: 2px solid var(--border2); }

@media (max-width: 1020px) {
  /* TOC becomes a swipeable chip row above the text */
  .ba-toc { display: block; position: static; margin: 0 -16px 28px; padding: 0 16px; }
  .ba-toc h2 { display: none; }
  .ba-toc { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .ba-toc::-webkit-scrollbar { display: none; }
  .ba-toc a { flex: none; padding: 8px 14px; border: 1px solid var(--border); border-left-width: 1px; background: var(--bg2); font-size: 13px; white-space: nowrap; }
  .ba-toc a.on { border-color: var(--red); background: var(--bg3); }
}
@media (max-width: 760px) {
  .ba-body { font-size: 1rem; line-height: 1.7; }
  .ba-body > h2:first-child + p { font-size: 1.1rem; }
  .ba-body h2 { margin: 40px 0 14px; }
  .ba-body ul li { padding-left: 22px; }
  .bx-call { padding: 18px 18px 18px 20px; font-size: 1.05rem; }
  .ba-author { padding: 20px; }
  .ba-faq dt { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .ba-progress { display: none; } }

.bx-fig { margin: 0 0 30px; }
.bx-fig img { display: block; width: 100%; height: auto; border: 1px solid var(--border); background: #f2f2f2; }
.bx-fig figcaption { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--white-dim); }
.bx-video { margin: 0 auto 30px; max-width: 340px; }
.bx-video video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border: 1px solid var(--border); background: #111; }
.bx-video figcaption { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--white-dim); text-align: center; }
