/* SurveyRank · Blog v1 */
.blog-page main > section { padding: 0; border: 0; overflow: visible; }
.blog-page main > section::before, .blog-page main > section::after { display: none !important; }
.b-wrap { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.b-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font: 500 12px/1.3 var(--font-mono); color: var(--muted); letter-spacing: .02em; }
.b-crumbs a { color: var(--text-3); } .b-crumbs a:hover { color: #fff; }
.b-crumbs span[aria-hidden] { opacity: .4; }
.b-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font: 600 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c, #4dabff); background: color-mix(in oklab, var(--c, #4dabff) 12%, transparent); border: 1px solid color-mix(in oklab, var(--c, #4dabff) 30%, transparent); }
.b-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }

/* =============== HUB =============== */
.bh-hero { position: relative; min-height: min(860px, 96vh); display: grid; align-items: center; padding: calc(var(--header-h) + 40px) 0 60px; overflow: hidden; }
.bh-hero__globe { position: absolute; inset: 0 -10% 0 34%; }
.bh-hero__globe .fx { position: absolute; inset: 0; background: transparent; }
.bh-hero__globe .fx::after { display: none; }
.bh-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 70% at 15% 50%, rgba(2,7,21,.92), rgba(2,7,21,.2) 70%, transparent), linear-gradient(180deg, transparent 70%, var(--bg)); }
.bh-hero__inner { position: relative; z-index: 2; max-width: 680px; }
.bh-hero h1 { font-size: clamp(44px, 7vw, 96px); font-weight: 500; letter-spacing: -.045em; line-height: .98; margin: 22px 0 24px; text-wrap: balance; }
.bh-hero h1 em { font-style: normal; background: linear-gradient(110deg, #7ea1ff, #4dabff 40%, #b48cff 70%, #ffd27a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.bh-hero__lead { font-size: 19px; color: var(--text-2); line-height: 1.55; max-width: 560px; margin-bottom: 34px; }
.bh-hero__stats { display: flex; gap: 36px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--card-border); }
.bh-hero__stats b { display: block; font-size: 34px; font-weight: 300; letter-spacing: -.03em; color: #fff; line-height: 1; margin-bottom: 8px; }
.bh-hero__stats span { font: 500 11px/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.bh-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.bh-sec-title { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.bh-sec-title h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; margin: 12px 0 0; }
.bh-eyebrow { font: 600 11px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-cyan); }

/* Daily */
.bh-daily { padding: 40px 0 90px !important; }
.bh-daily__card { display: grid; grid-template-columns: 1.25fr 1fr; min-height: 420px; border-radius: 28px; overflow: hidden; border: 1px solid var(--card-border-2); background: #040a1f; text-decoration: none; color: var(--text); position: relative; }
.bh-daily__card:hover { color: var(--text); border-color: color-mix(in oklab, var(--c) 55%, transparent); }
.bh-daily__card .fx { min-height: 320px; }
.bh-daily__body { padding: 40px; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.bh-daily__tag { font: 700 11px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: #ffd27a; display: flex; align-items: center; gap: 10px; }
.bh-daily__tag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #ffd27a; box-shadow: 0 0 12px #ffd27a; animation: bpulse 1.6s infinite; }
@keyframes bpulse { 50% { opacity: .3; } }
.bh-daily__title { font-size: clamp(26px, 3vw, 40px); font-weight: 500; letter-spacing: -.03em; line-height: 1.08; margin: 0; text-wrap: balance; }
.bh-daily__lead { color: var(--text-2); font-size: 16px; line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.bh-daily__meta { font: 500 12px/1 var(--font-mono); color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
.bh-daily__go { margin-top: 6px; align-self: flex-start; }

/* Ribbon (scroll-driven horizontal) */
.bh-ribbon { position: relative; }
.bh-ribbon__sticky { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.bh-ribbon__track { display: flex; gap: 18px; padding: 0 32px; will-change: transform; }
.bh-ribbon__track .bc { flex: 0 0 min(440px, 78vw); height: min(520px, 62vh); }
.bh-ribbon__track .bc__title { font-size: 22px; }
.bh-ribbon__bar { height: 2px; background: var(--surface-3); margin: 30px 32px 0; border-radius: 2px; overflow: hidden; }
.bh-ribbon__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-cyan), #b48cff); }

/* All articles */
.bh-all { padding: 100px 0 120px !important; }
.bh-tools { position: sticky; top: calc(var(--header-h) + 10px); z-index: 20; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 10px; margin-bottom: 26px; border-radius: 18px; background: rgba(3,9,30,.82); border: 1px solid var(--card-border); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.bh-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.bh-chips::-webkit-scrollbar { display: none; }
.bh-chips button { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--card-border); background: transparent; color: var(--text-2); font: 500 13px/1 var(--font-sans); cursor: pointer; transition: .2s; }
.bh-chips button i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, #fff); box-shadow: 0 0 8px var(--c, #fff); }
.bh-chips button b { font: 600 10.5px/1 var(--font-mono); color: var(--muted); }
.bh-chips button:hover { color: #fff; border-color: var(--card-border-2); }
.bh-chips button.is-on { color: #020715; background: #fff; border-color: #fff; }
.bh-chips button.is-on b { color: #020715; opacity: .6; }
.bh-tools__right { display: flex; gap: 8px; align-items: center; }
.bh-search { position: relative; }
.bh-search input { width: 240px; height: 38px; padding: 0 14px 0 36px; border-radius: 999px; border: 1px solid var(--card-border); background: var(--surface-1); color: #fff; font: 400 14px var(--font-sans); outline: none; transition: .2s; }
.bh-search input:focus { border-color: var(--accent-cyan); box-shadow: 0 0 0 3px rgba(77,171,255,.15); width: 280px; }
.bh-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); }
.bh-sort { height: 38px; padding: 0 30px 0 14px; border-radius: 999px; border: 1px solid var(--card-border); background: var(--surface-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 12px; color: #fff; font: 500 13px var(--font-sans); -webkit-appearance: none; appearance: none; cursor: pointer; }
.bh-sort option { background: #050d28; }
.bh-count { font: 500 12px/1 var(--font-mono); color: var(--muted); margin: 0 0 18px; }
.bh-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; grid-auto-flow: dense; gap: 14px; }
.bh-grid .bc.is-wide { grid-column: span 2; }
.bh-grid .bc.is-big { grid-column: span 2; grid-row: span 2; }
.bh-grid .bc.is-big .bc__title { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.025em; }
.bh-grid .bc[hidden] { display: none; }
.bh-empty { display: none; padding: 60px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--card-border-2); border-radius: 20px; }
.bh-empty.is-on { display: block; }

/* =============== ARTICLE =============== */
.ba-hero { position: relative; min-height: min(900px, 92vh); display: grid; align-items: center; padding: calc(var(--header-h) + 36px) 0 56px; overflow: hidden; isolation: isolate; }
.ba-hero__bg { position: absolute; inset: -40px; z-index: -2; background-size: cover; background-position: center; filter: blur(26px) saturate(1.1) brightness(.45); transform: scale(1.08); }
.ba-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 90% at 10% 40%, rgba(2,7,21,.9), rgba(2,7,21,.55) 60%, rgba(2,7,21,.3)), linear-gradient(180deg, rgba(2,7,21,.2), transparent 30%, transparent 70%, var(--bg)); }
.ba-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.ba-hero__text { display: grid; gap: 22px; align-content: center; }
.ba-hero h1 { font-size: clamp(34px, 4.6vw, 62px); font-weight: 500; letter-spacing: -.04em; line-height: 1.02; margin: 0; text-wrap: balance; }
.ba-hero__lead { font-size: 18px; line-height: 1.6; color: var(--text-2); margin: 0; max-width: 620px; }
.ba-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font: 500 12.5px/1 var(--font-mono); color: var(--muted); }
.ba-meta span { display: inline-flex; align-items: center; gap: 8px; }
.ba-meta span + span::before { content: ''; width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); margin-right: 10px; }
.ba-hero__visual { position: relative; aspect-ratio: 16 / 11; border-radius: 26px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 40px 100px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.04) inset, 0 0 80px -30px var(--c, #4dabff); transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform .8s cubic-bezier(.22,1,.36,1); }
.ba-hero__visual:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.ba-hero__visual .fx { position: absolute; inset: 0; }
.ba-hero__visual .fx > img { opacity: .5; }
.ba-hero__visual .fx.fx--img > img { opacity: 1; }
.ba-hero__hud { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 3; display: flex; justify-content: space-between; font: 600 10px/1 var(--font-mono); letter-spacing: .14em; color: rgba(255,255,255,.75); pointer-events: none; text-transform: uppercase; }
.ba-hero__hud i { width: 7px; height: 7px; border-radius: 50%; background: #ff4d4d; display: inline-block; margin-right: 8px; box-shadow: 0 0 10px #ff4d4d; animation: bpulse 1.2s infinite; }
.ba-scroll { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--font-mono); color: var(--text-3); letter-spacing: .08em; }
.ba-scroll i { width: 22px; height: 34px; border: 1.5px solid var(--card-border-2); border-radius: 12px; position: relative; }
.ba-scroll i::after { content: ''; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: bscroll 1.8s infinite; }
@keyframes bscroll { 0% { opacity: 0; transform: translateY(-3px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

.ba-main { padding: 40px 0 40px !important; }
.ba-layout { display: grid; grid-template-columns: 270px minmax(0, 760px); gap: 64px; justify-content: center; align-items: start; }

/* TOC */
.b-toc { position: sticky; top: calc(var(--header-h) + 28px); max-height: calc(100vh - var(--header-h) - 56px); display: flex; flex-direction: column; gap: 14px; }
.b-toc__head { display: flex; align-items: center; gap: 12px; }
.b-toc__ring { width: 46px; height: 46px; flex: none; position: relative; }
.b-toc__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.b-toc__ring circle { fill: none; stroke-width: 3; }
.b-toc__ring .tr { stroke: var(--surface-3); }
.b-toc__ring .br { stroke: url(#bgrad); stroke-linecap: round; transition: stroke-dashoffset .12s linear; filter: drop-shadow(0 0 4px rgba(77,171,255,.6)); }
.b-toc__ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 600 11px/1 var(--font-mono); color: #fff; }
.b-toc__label { font: 600 10.5px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.b-toc__left { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.b-toc__list { list-style: none; margin: 0; padding: 0 0 0 0; overflow-y: auto; scrollbar-width: thin; border-left: 1px solid var(--card-border); counter-reset: toc; }
.b-toc__list li { margin: 0; counter-increment: toc; }
.b-toc__list a { display: grid; grid-template-columns: 26px 1fr; gap: 4px; padding: 8px 10px 8px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: 13.5px; line-height: 1.35; color: var(--text-3); transition: .2s; }
.b-toc__list a::before { content: counter(toc, decimal-leading-zero); font: 500 10.5px/1.7 var(--font-mono); color: var(--muted-2); }
.b-toc__list a:hover { color: #fff; }
.b-toc__list a.is-active { color: #fff; border-left-color: var(--c, #4dabff); background: linear-gradient(90deg, color-mix(in oklab, var(--c, #4dabff) 12%, transparent), transparent); }
.b-toc__list a.is-active::before { color: var(--c, #4dabff); }
.b-toc__share { display: flex; gap: 8px; padding-top: 4px; }
.b-toc__share button, .b-toc__share a { flex: 1; height: 36px; border-radius: 10px; border: 1px solid var(--card-border); background: var(--surface-1); color: var(--text-2); font: 500 12px var(--font-sans); cursor: pointer; display: grid; place-items: center; }
.b-toc__share button:hover, .b-toc__share a:hover { color: #fff; border-color: var(--card-border-2); }
.b-toc__fab { display: none; }

/* Prose */
.b-prose { font-size: 18px; line-height: 1.75; color: var(--text-2); min-width: 0; }
.b-prose > * { margin: 0 0 22px; }
.b-prose p { font-size: inherit; line-height: inherit; margin: 0 0 22px; }
.b-prose h2 { position: relative; font-size: clamp(26px, 3vw, 34px); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; color: #fff; margin: 72px 0 22px; padding-top: 28px; scroll-margin-top: calc(var(--header-h) + 24px); text-wrap: balance; }
.b-prose h2::before { content: attr(data-n); position: absolute; top: 0; left: 0; font: 600 11px/1 var(--font-mono); letter-spacing: .14em; color: var(--c, #4dabff); }
.b-prose h2::after { content: ''; position: absolute; top: 5px; left: 34px; right: 0; height: 1px; background: linear-gradient(90deg, color-mix(in oklab, var(--c, #4dabff) 40%, transparent), transparent 70%); }
.b-prose > h2:first-child { margin-top: 20px; }
.b-prose h3 { font-size: 22px; font-weight: 600; letter-spacing: -.015em; color: #fff; margin: 40px 0 14px; scroll-margin-top: calc(var(--header-h) + 24px); }
.b-prose h4 { font: 600 12px/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--c, #4dabff); margin: 30px 0 12px; }
.b-prose strong { color: #fff; font-weight: 600; }
.b-prose a { color: #7ec3ff; text-decoration: underline; text-decoration-color: rgba(126,195,255,.35); text-underline-offset: 3px; }
.b-prose a:hover { color: #fff; text-decoration-color: #fff; }
.b-prose ul, .b-prose ol { padding-left: 0; list-style: none; margin: 0 0 24px; }
.b-prose li { position: relative; padding-left: 28px; margin-bottom: 10px; line-height: 1.65; }
.b-prose ul > li::before { content: ''; position: absolute; left: 6px; top: .72em; width: 8px; height: 2px; background: var(--c, #4dabff); border-radius: 2px; }
.b-prose ol { counter-reset: ol; }
.b-prose ol > li { counter-increment: ol; }
.b-prose ol > li::before { content: counter(ol); position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font: 600 11px/1 var(--font-mono); color: var(--c, #4dabff); background: color-mix(in oklab, var(--c, #4dabff) 14%, transparent); }
.b-prose .b-step { display: grid; grid-template-columns: 34px 1fr; gap: 14px; margin: 0 0 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface-1); border: 1px solid var(--card-border); }
.b-prose .b-step b { font: 600 13px/1 var(--font-mono); color: var(--c, #4dabff); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in oklab, var(--c, #4dabff) 14%, transparent); }
.b-prose .b-step span { align-self: center; line-height: 1.55; font-size: 16.5px; }
.b-prose .b-tcap { font: 500 12px/1.4 var(--font-mono); letter-spacing: .06em; color: var(--muted); margin: 32px 0 10px; font-style: normal; }

/* Lead / callouts */
.b-tldr { position: relative; padding: 26px 28px 26px 28px; border-radius: 20px; margin: 0 0 40px !important; background: linear-gradient(135deg, color-mix(in oklab, var(--c, #4dabff) 16%, transparent), rgba(255,255,255,.02)); border: 1px solid color-mix(in oklab, var(--c, #4dabff) 35%, transparent); font-size: 18px; line-height: 1.65; color: #e9efff; }
.b-tldr::before { content: '⚡ Коротко'; display: block; margin-bottom: 10px; font: 700 11px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--c, #4dabff); }
.b-tldr p { margin: 0; }
.b-co { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 20px 22px; border-radius: 18px; margin: 30px 0 !important; background: var(--surface-1); border: 1px solid var(--card-border); font-size: 16.5px; line-height: 1.65; }
.b-co__ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: color-mix(in oklab, var(--k) 16%, transparent); color: var(--k); }
.b-co__ico svg { width: 20px; height: 20px; }
.b-co__label { display: block; font: 700 10.5px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--k); margin: 2px 0 8px; }
.b-co p { margin: 0 0 10px; } .b-co p:last-child { margin: 0; }
.b-co ul { margin: 6px 0 0; }
.b-co--note { --k: #4dabff; }
.b-co--tip { --k: #7cf29a; background: linear-gradient(135deg, rgba(124,242,154,.07), transparent 60%); border-color: rgba(124,242,154,.2); }
.b-co--case { --k: #b48cff; background: linear-gradient(135deg, rgba(180,140,255,.08), transparent 60%); border-color: rgba(180,140,255,.22); }
.b-co--check { --k: #f5c04d; }
.b-co--next { --k: #ffd27a; background: linear-gradient(135deg, rgba(29,89,245,.18), rgba(180,140,255,.08)); border-color: rgba(77,171,255,.3); }
.b-co--warn { --k: #ff8a8a; }
.b-checklist li { padding-left: 34px; }
.b-checklist li::before { content: '' !important; left: 0 !important; top: .25em !important; width: 18px !important; height: 18px !important; border-radius: 6px !important; border: 1.5px solid var(--k, #f5c04d); background: transparent !important; }
.b-checklist li.is-done::before { background: var(--k, #f5c04d) !important; }
.b-checklist li.is-done::after { content: ''; position: absolute; left: 6px; top: calc(.25em + 3px); width: 5px; height: 9px; border: solid #020715; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.b-checklist li { cursor: pointer; user-select: none; }
.b-sum { position: relative; margin: 26px 0 8px !important; padding: 16px 20px 16px 52px; border-radius: 14px; background: rgba(255,255,255,.025); border: 1px dashed rgba(255,255,255,.14); font-size: 16px; line-height: 1.6; color: #dfe7ff; }
.b-sum::before { content: '→'; position: absolute; left: 18px; top: 14px; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 13px; color: #020715; background: var(--c, #4dabff); }
.b-sum p { margin: 0; } .b-sum strong:first-child { color: var(--c, #4dabff); font: 700 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; margin-right: 8px; }
.b-disc { font-size: 13.5px !important; line-height: 1.6 !important; color: var(--muted) !important; padding: 14px 16px; border-left: 2px solid var(--card-border-2); background: rgba(255,255,255,.015); border-radius: 0 10px 10px 0; }

/* Tables */
.b-table { margin: 0 0 30px !important; border: 1px solid var(--card-border); border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.015); }
.b-table__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.b-table table { min-width: 0; width: 100%; border-collapse: collapse; font-size: 14.5px; }
.b-table th, .b-table td { padding: 13px 16px; vertical-align: top; border-bottom: 1px solid var(--divider); line-height: 1.5; font-size: 14.5px; }
.b-table thead th { white-space: normal; font: 600 10.5px/1.35 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c, #4dabff); background: color-mix(in oklab, var(--c, #4dabff) 8%, transparent); border-bottom: 1px solid color-mix(in oklab, var(--c, #4dabff) 25%, transparent); }
.b-table td:first-child { color: #fff; font-weight: 500; }
.b-table tbody tr:last-child td { border-bottom: 0; }
.b-table tbody tr:hover { background: rgba(77,171,255,.04); }
.b-table th strong, .b-table td strong { font-weight: inherit; color: inherit; }
.b-table.is-wide table { min-width: 640px; }

/* Figures */
.b-fig { margin: 36px 0 !important; }
.b-fig button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 18px; overflow: hidden; position: relative; }
.b-fig img { width: 100%; height: auto; aspect-ratio: 1600 / 904; object-fit: cover; display: block; border-radius: 18px; border: 1px solid var(--card-border); transition: transform .6s cubic-bezier(.22,1,.36,1); background: #0a1230; }
.b-fig button:hover img { transform: scale(1.025); }
.b-fig button::after { content: '⤢'; position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(2,7,21,.7); color: #fff; font-size: 16px; opacity: 0; transition: .25s; backdrop-filter: blur(6px); }
.b-fig button:hover::after { opacity: 1; }
.b-fig figcaption { display: flex; gap: 10px; margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.b-fig figcaption b { font: 600 11px/1.7 var(--font-mono); color: var(--c, #4dabff); letter-spacing: .08em; flex: none; }

/* FAQ */
.b-faq { display: grid; gap: 10px; margin: 0 0 30px !important; }
.b-faq details { margin: 0; padding: 0; border-radius: 16px; background: var(--surface-1); border: 1px solid var(--card-border); transition: .25s; }
.b-faq details[open] { background: var(--surface-2); border-color: color-mix(in oklab, var(--c, #4dabff) 35%, transparent); }
.b-faq summary { padding: 18px 56px 18px 20px; font-size: 16.5px; font-weight: 500; color: #fff; line-height: 1.4; }
.b-faq summary::after { right: 18px; }
.b-faq details > div { margin: 0; padding: 0 20px 18px; border: 0; font-size: 16px; line-height: 1.65; color: var(--text-2); }
.b-faq details > div p { font-size: 16px; margin: 0 0 10px; } .b-faq details > div p:last-child { margin: 0; }
.b-faq h4 { margin: 18px 0 4px !important; }

/* Sources */
.b-sources { margin-top: 40px !important; border-radius: 16px; background: transparent; border: 1px solid var(--card-border); padding: 0; }
.b-sources summary { padding: 16px 52px 16px 20px; font: 600 12px/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.b-sources summary::after { right: 16px; }
.b-sources > div { margin: 0; padding: 4px 20px 18px; border: 0; }
.b-sources p, .b-sources li { font-size: 13.5px !important; line-height: 1.6 !important; color: var(--muted); margin: 0 0 8px !important; word-break: break-word; }
.b-sources a { color: var(--text-3); }

/* Glossary tooltip */
.b-term { border-bottom: 1px dashed rgba(126,195,255,.6); cursor: help; color: inherit; position: relative; }
.b-term:hover, .b-term:focus { color: #fff; border-bottom-color: #7ec3ff; outline: none; }
.b-tip { position: absolute; z-index: 200; max-width: 340px; padding: 14px 16px; border-radius: 14px; background: rgba(5,13,40,.97); border: 1px solid var(--card-border-2); box-shadow: 0 24px 60px -20px rgba(0,0,0,.9), 0 0 40px -14px rgba(77,171,255,.5); font-size: 14px; line-height: 1.55; color: var(--text-2); pointer-events: none; opacity: 0; transform: translateY(6px); transition: opacity .18s, transform .18s; }
.b-tip.is-on { opacity: 1; transform: none; }
.b-tip b { display: block; color: #fff; font-size: 14.5px; margin-bottom: 6px; }
.b-tip small { display: block; margin-top: 8px; font: 500 10.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: #7ec3ff; }

/* Anchor copy */
.b-anchor { position: absolute; right: 0; top: 18px; width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--card-border); background: rgba(2,7,21,.8); color: var(--text-3); cursor: pointer; display: grid; place-items: center; opacity: 0; transition: .2s; }
.b-anchor svg { width: 15px; height: 15px; }
.b-prose h2:hover .b-anchor, .b-anchor:focus-visible { opacity: 1; }
.b-anchor:hover { color: #fff; border-color: var(--card-border-2); }
.b-toast { position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translate(-50%, 20px); opacity: 0; padding: 12px 18px; border-radius: 999px; background: #fff; color: #020715; font: 600 13px var(--font-sans); transition: .3s cubic-bezier(.22,1,.36,1); pointer-events: none; box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); }
.b-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Lightbox */
.b-lb { position: fixed; inset: 0; z-index: 400; display: none; background: rgba(1,4,14,.94); backdrop-filter: blur(10px); }
.b-lb.is-on { display: block; animation: bfade .25s; }
@keyframes bfade { from { opacity: 0; } }
.b-lb__stage { position: absolute; inset: 64px 72px 90px; display: grid; place-items: center; overflow: hidden; cursor: zoom-in; }
.b-lb__stage.is-zoom { cursor: zoom-out; }
.b-lb__stage img { max-width: 100%; max-height: 100%; border-radius: 12px; transition: transform .35s cubic-bezier(.22,1,.36,1); transform-origin: center; user-select: none; -webkit-user-drag: none; }
.b-lb__cap { position: absolute; left: 72px; right: 72px; bottom: 26px; text-align: center; color: var(--text-2); font-size: 14px; }
.b-lb__cap b { color: #fff; font: 600 11px var(--font-mono); letter-spacing: .1em; margin-right: 8px; }
.b-lb button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--card-border-2); background: rgba(255,255,255,.06); color: #fff; font-size: 20px; cursor: pointer; display: grid; place-items: center; }
.b-lb button:hover { background: rgba(255,255,255,.14); }
.b-lb__x { top: 14px; right: 16px; } .b-lb__p { left: 14px; top: 50%; transform: translateY(-50%); } .b-lb__n { right: 14px; top: 50%; transform: translateY(-50%); }
.b-lb__i { position: absolute; top: 26px; left: 24px; font: 600 12px var(--font-mono); color: var(--muted); }

/* After-article */
.ba-after { padding: 30px 0 110px !important; }
.ba-end { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 70px; }
.ba-pn { display: grid; gap: 8px; padding: 22px 24px; border-radius: 18px; border: 1px solid var(--card-border); background: var(--surface-1); text-decoration: none; color: var(--text); transition: .25s; }
.ba-pn:hover { border-color: var(--card-border-2); background: var(--surface-2); color: var(--text); }
.ba-pn small { font: 600 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ba-pn b { font-size: 17px; font-weight: 500; line-height: 1.35; }
.ba-pn--next { text-align: right; }
.ba-rel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ba-rel .bc { height: 380px; }
.ba-links { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; margin-top: 70px; }
.ba-box { padding: 26px; border-radius: 20px; border: 1px solid var(--card-border); background: var(--surface-1); }
.ba-box h3 { font-size: 13px; font: 600 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-cyan); margin: 0 0 16px; }
.ba-box a.ba-q { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--divider); color: var(--text-2); font-size: 15px; line-height: 1.4; }
.ba-box a.ba-q:last-child { border-bottom: 0; }
.ba-box a.ba-q:hover { color: #fff; }
.ba-box a.ba-q::after { content: '→'; color: var(--muted); }
.ba-rat { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; color: var(--text-2); margin-bottom: 6px; border: 1px solid transparent; }
.ba-rat:hover { background: var(--surface-2); border-color: var(--card-border); color: #fff; }
.ba-rat i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font: 700 10px var(--font-mono); color: var(--v); background: color-mix(in oklab, var(--v) 14%, transparent); }
.ba-rat b { display: block; font-weight: 500; color: #fff; font-size: 15px; } .ba-rat span { font-size: 12.5px; color: var(--muted); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1240px) {
  .ba-layout { grid-template-columns: 230px minmax(0, 720px); gap: 44px; }
}
@media (max-width: 1100px) {
  .bh-grid { grid-template-columns: repeat(3, 1fr); }
  .ba-layout { grid-template-columns: minmax(0, 760px); }
  .b-toc { position: fixed; top: auto; left: 16px; right: auto; bottom: 16px; z-index: 60; max-height: none; width: auto; gap: 0; pointer-events: none; }
  .b-toc__head, .b-toc__list, .b-toc__share, .b-toc__left { display: none; }
  .b-toc__fab { pointer-events: auto; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px 0 6px; border-radius: 999px; border: 1px solid var(--card-border-2); background: rgba(3,9,30,.9); backdrop-filter: blur(16px); color: #fff; font: 600 13px var(--font-sans); box-shadow: 0 20px 40px -16px rgba(0,0,0,.9); cursor: pointer; opacity: 0; transform: translateY(20px); transition: .35s cubic-bezier(.22,1,.36,1); }
  .b-toc.is-visible .b-toc__fab { opacity: 1; transform: none; }
  .b-toc__fab .b-toc__ring { width: 34px; height: 34px; }
  .b-toc__fab .b-toc__ring b { font-size: 9px; }
  .b-toc.is-open { inset: auto 12px 12px 12px; pointer-events: auto; }
  .b-toc.is-open .b-toc__panel { display: flex; }
  .b-toc__panel { display: none; flex-direction: column; gap: 12px; position: absolute; left: 0; right: 0; bottom: 58px; max-height: 66vh; padding: 16px; border-radius: 20px; background: rgba(3,9,30,.97); border: 1px solid var(--card-border-2); box-shadow: 0 30px 80px -20px rgba(0,0,0,.95); }
  .b-toc.is-open .b-toc__panel .b-toc__head, .b-toc.is-open .b-toc__panel .b-toc__share { display: flex; }
  .b-toc.is-open .b-toc__panel .b-toc__list, .b-toc.is-open .b-toc__panel .b-toc__left { display: block; }
  .b-toc.is-open .b-toc__panel .b-toc__list { flex: 1; min-height: 0; }
}
@media (min-width: 1101px) { .b-toc__panel { display: contents; } }
@media (max-width: 900px) {
  .b-wrap { padding: 0 20px; }
  .bh-hero { min-height: auto; padding-top: calc(var(--header-h) + 24px); }
  .bh-hero__globe { inset: auto -30% -10% -30%; height: 70%; opacity: .55; }
  .bh-hero__stats { gap: 24px; } .bh-hero__stats b { font-size: 28px; }
  .bh-daily__card { grid-template-columns: 1fr; }
  .bh-daily__body { padding: 26px 22px; }
  .bh-ribbon { height: auto !important; }
  .bh-ribbon__sticky { position: relative; top: 0; height: auto; padding: 20px 0 10px; }
  .bh-ribbon__track { transform: none !important; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 20px 14px; scrollbar-width: none; }
  .bh-ribbon__track::-webkit-scrollbar { display: none; }
  .bh-ribbon__track .bc { scroll-snap-align: start; height: 440px; }
  .bh-ribbon__bar { display: none; }
  .bh-tools { grid-template-columns: 1fr; top: calc(var(--header-h) + 6px); }
  .bh-tools__right { order: -1; }
  .bh-search { flex: 1; } .bh-search input, .bh-search input:focus { width: 100%; }
  .bh-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 260px; }
  .ba-hero { min-height: auto; padding-top: calc(var(--header-h) + 22px); }
  .ba-hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .ba-hero__visual { transform: none; aspect-ratio: 16 / 10; }
  .ba-scroll { display: none; }
  .b-prose { font-size: 17px; line-height: 1.72; }
  .b-prose h2 { margin-top: 56px; }
  .b-anchor { opacity: .7; }
  .ba-end, .ba-links { grid-template-columns: 1fr; }
  .ba-rel { grid-template-columns: 1fr; } .ba-rel .bc { height: 340px; }
  .b-lb__stage { inset: 60px 10px 90px; } .b-lb__p, .b-lb__n { top: auto; bottom: 18px; transform: none; } .b-lb__cap { left: 72px; right: 72px; bottom: 26px; font-size: 13px; }
  /* tables -> cards */
  .b-table.as-cards { border: 0; background: none; }
  .b-table.as-cards table, .b-table.as-cards tbody, .b-table.as-cards tr, .b-table.as-cards td { display: block; width: 100%; }
  .b-table.as-cards thead { display: none; }
  .b-table.as-cards tr { margin-bottom: 10px; border: 1px solid var(--card-border); border-radius: 14px; background: var(--surface-1); overflow: hidden; }
  .b-table.as-cards td { display: grid; grid-template-columns: 38% 1fr; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--divider); }
  .b-table.as-cards td::before { content: attr(data-label); font: 600 10px/1.45 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--c, #4dabff); }
  .b-table.as-cards td:first-child { display: block; background: color-mix(in oklab, var(--c, #4dabff) 9%, transparent); font-size: 15px; }
  .b-table.as-cards td:first-child::before { display: none; }
  .b-table.as-cards td:last-child { border-bottom: 0; }
}
@media (max-width: 560px) {
  .bh-grid { grid-template-columns: 1fr; grid-auto-rows: 290px; }
  .bh-grid .bc.is-wide, .bh-grid .bc.is-big { grid-column: span 1; grid-row: span 1; }
  .b-co { grid-template-columns: 1fr; gap: 10px; padding: 18px; }
  .b-tldr { padding: 20px; font-size: 16.5px; }
  .ba-hero h1 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) { .ba-hero__visual { transform: none; } }

/* sticky fix: site sets overflow-x:hidden on html/body which breaks position:sticky */
html:has(body.blog-page), body.blog-page { overflow-x: clip !important; overflow-y: visible !important; }
@supports not (overflow: clip) { html:has(body.blog-page), body.blog-page { overflow-x: visible !important; } .blog-page main { overflow-x: hidden; } }

/* v1.1 · first-screen top offset (header was overlapping: generic section reset had higher specificity) */
.blog-page main > section.bh-hero { padding: calc(var(--header-h) + 64px) 0 72px; min-height: min(900px, 100svh); }
.blog-page main > section.ba-hero { padding: calc(var(--header-h) + 56px) 0 64px; min-height: min(940px, 100svh); }
@media (max-width: 900px) {
  .blog-page main > section.bh-hero { padding: calc(var(--header-h) + 32px) 0 48px; min-height: 0; }
  .blog-page main > section.ba-hero { padding: calc(var(--header-h) + 28px) 0 40px; min-height: 0; }
}
@media (max-width: 560px) {
  .blog-page main > section.bh-hero { padding-top: calc(var(--header-h) + 24px); }
  .blog-page main > section.ba-hero { padding-top: calc(var(--header-h) + 22px); }
}
