/* Blog: editorial list, no cards. Homepage/pro tokens. */
.bl { overflow: clip; }
.bl-hero { position: relative; padding: 10rem 0 clamp(2rem,4vw,3rem); }
.bl-wall { opacity: .65; }
.bl-hero-in { position: relative; }
.bl h1 { margin: 0; font-size: clamp(2.8rem,6vw,5.2rem); font-weight: 900; line-height: 1.1; letter-spacing: -.055em; word-break: keep-all; }
.bl-lead { margin: 1.2rem 0 0; max-width: 40rem; font-size: 1.1rem; line-height: 1.8; color: var(--hv-muted); }
.bl-body { padding-bottom: clamp(4rem,9vw,7rem); }
.bl a:focus-visible, .bl button:focus-visible { outline: 2px solid var(--hv-accent); outline-offset: 4px; }

/* tabs + search */
.bl-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; border-bottom: 1.5px solid var(--hv-line); }
.bl-tabs { display: flex; flex-wrap: wrap; gap: .2rem 1.6rem; list-style: none; margin: 0; padding: 0; }
.bl-tabs a { position: relative; display: block; padding: 1rem 0; color: var(--hv-muted); text-decoration: none; font-size: 1rem; font-weight: 700; transition: color .2s; }
.bl-tabs a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1.5px; height: 2px; background: var(--hv-accent); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.16,1,.3,1); }
.bl-tabs a:hover, .bl-tabs a.on { color: var(--hv-text); }
.bl-tabs a.on::after { transform: scaleX(1); }
.bl-search { display: flex; align-items: center; width: min(18rem,100%); margin: 0; border-bottom: 1.5px solid transparent; transition: border-color .25s; }
.bl-search:focus-within { border-color: var(--hv-accent); }
.bl-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--hv-text); padding: .8rem 0; font-size: 1rem; }
.bl-search input::placeholder { color: var(--hv-muted); }
.bl-search button { border: 0; background: none; color: var(--hv-muted); padding: .5rem 0 .5rem .5rem; }
.bl-search button:hover { color: var(--hv-accent); }

/* list */
.bl-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(2.5rem,5vw,4rem) clamp(1.5rem,3vw,2.5rem); margin-top: clamp(2.5rem,5vw,3.5rem); }
.bl-item { display: flex; flex-direction: column; gap: 1.2rem; color: inherit; text-decoration: none; }
.bl-media { display: block; overflow: hidden; aspect-ratio: 16/9; border-radius: 12px; background: var(--hv-surface); }
.bl-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.16,1,.3,1); }
.bl-item:hover .bl-media img { transform: scale(1.04); }
.bl-text { display: flex; flex-direction: column; gap: .6rem; }
.bl-meta { display: flex; gap: .9rem; align-items: baseline; font-size: .82rem; color: var(--hv-muted); }
.bl-meta b { color: var(--hv-accent); font-weight: 800; }
.bl-item h3 { margin: 0; font-size: 1.25rem; font-weight: 800; line-height: 1.4; letter-spacing: -.03em; word-break: keep-all; background: linear-gradient(currentColor,currentColor) 0 100% / 0 2px no-repeat; transition: background-size .5s cubic-bezier(.16,1,.3,1), color .2s; }
.bl-item:hover h3 { color: var(--hv-accent); }
.bl-ex { font-size: .92rem; line-height: 1.7; color: var(--hv-muted); word-break: keep-all; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-feat { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,6fr) minmax(0,5fr); gap: clamp(1.5rem,5vw,4rem); align-items: center; }
.bl-feat h3 { font-size: clamp(1.8rem,3.4vw,2.8rem); line-height: 1.25; letter-spacing: -.045em; font-weight: 900; }
.bl-feat .bl-ex { font-size: 1.02rem; -webkit-line-clamp: 4; }
.bl-feat .bl-text { gap: 1rem; }

/* reveal */
.bl [data-r] > * { transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
.bl [data-r]:not(.in) > * { opacity: 0; transform: translateY(32px); }
.bl [data-r].in > :nth-child(3n+2) { transition-delay: .08s; } .bl [data-r].in > :nth-child(3n+3) { transition-delay: .16s; }

/* pager: plain numbers, current one underlined */
.bl-pager { margin-top: clamp(3rem,6vw,4.5rem); }
body.hv2-site .bl-pager, body.hv2-site .bl-pager nav, body.hv2-site .bl-pager .pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .2rem 1.1rem; list-style: none; margin: 0; padding: 0 !important; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
body.hv2-site .bl-pager .page-item { margin: 0; }
body.hv2-site .bl-pager .page-link { position: relative; display: block; min-width: 0; margin: 0; padding: .5rem .15rem; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; color: var(--hv-muted); font-size: 1.05rem; font-weight: 700; text-decoration: none; transition: color .2s; }
body.hv2-site .bl-pager .page-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--hv-accent); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.16,1,.3,1); }
body.hv2-site .bl-pager .page-link:hover { color: var(--hv-text); }
body.hv2-site .bl-pager .page-link:hover::after { transform: scaleX(1); }
body.hv2-site .bl-pager .active .page-link { color: var(--hv-text); }
body.hv2-site .bl-pager .active .page-link::after { transform: scaleX(1); }
body.hv2-site .bl-pager .disabled .page-link { opacity: .35; pointer-events: none; }

/* popular */
.bl-pop { margin-top: clamp(4rem,9vw,7rem); }
.bl-pop h2, .bl-more h2 { margin: 0; font-size: clamp(2rem,4.4vw,3.2rem); font-weight: 900; letter-spacing: -.045em; }
.bl-pop ol { list-style: none; counter-reset: p; margin: 2rem 0 0; padding: 0; }
.bl-pop li { counter-increment: p; border-top: 1.5px solid var(--hv-line); }
.bl-pop li:last-child { border-bottom: 1.5px solid var(--hv-line); }
.bl-pop a { display: flex; align-items: baseline; gap: 1.5rem; padding: 1.3rem 0; color: inherit; text-decoration: none; transition: transform .45s cubic-bezier(.16,1,.3,1); }
.bl-pop a::before { content: counter(p,decimal-leading-zero); flex: none; width: 3.2rem; font-size: 1.6rem; font-weight: 900; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.2px var(--hv-accent); }
.bl-pop b { flex: 1; font-size: clamp(1.05rem,2vw,1.3rem); font-weight: 700; letter-spacing: -.02em; word-break: keep-all; }
.bl-pop small { flex: none; color: var(--hv-muted); }
.bl-pop a:hover { transform: translateX(.6rem); }
.bl-empty { margin-top: 4rem; color: var(--hv-muted); font-size: 1.1rem; }

/* single */
.bl-single .bl-body { padding-top: 9rem; }
.bl-head { max-width: 52rem; margin-inline: auto; }
.bl-crumbs { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0 0 1.4rem; padding: 0; font-size: .9rem; font-weight: 700; }
.bl-crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--hv-muted); }
.bl-crumbs a { color: var(--hv-accent); text-decoration: none; }
.bl-single h1 { font-size: clamp(2.2rem,5vw,3.8rem); line-height: 1.2; letter-spacing: -.05em; }
.bl-by { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.1rem; margin-top: 1.6rem; font-size: .92rem; color: var(--hv-muted); }
.bl-by img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.bl-by a { color: var(--hv-text); text-decoration: none; font-weight: 700; }
.bl-cover { margin: 3rem auto 0; max-width: 52rem; }
.bl-cover img { display: block; width: 100%; height: auto; border-radius: 14px; }
.bl-prose { max-width: 52rem; margin: clamp(2.5rem,5vw,3.5rem) auto 0; }
.bl-more { margin-top: clamp(4rem,9vw,7rem); padding-top: 2.5rem; border-top: 1.5px solid var(--hv-line); }
.bl-more-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.bl-more-head a { display: inline-flex; align-items: center; gap: .6rem; color: var(--hv-muted); text-decoration: none; font-weight: 700; }
.bl-more-head a svg { transition: transform .35s cubic-bezier(.16,1,.3,1); }
.bl-more-head a:hover { color: var(--hv-accent); } .bl-more-head a:hover svg { transform: translateX(.35rem); }

@media (prefers-reduced-motion: no-preference) { .bl-hero-in > * { animation: bl-up .9s cubic-bezier(.16,1,.3,1) backwards; } @keyframes bl-up { from { opacity: 0; translate: 0 30px; } } }
@media (prefers-reduced-motion: reduce) { .bl [data-r] > * { transition: none; opacity: 1 !important; transform: none !important; } }
@media (max-width: 991.98px) { .bl-hero { padding-top: 8rem; } .bl-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .bl-feat { grid-template-columns: 1fr; } }
@media (max-width: 575.98px) { .bl-grid { grid-template-columns: 1fr; } .bl-pop a { gap: 1rem; flex-wrap: wrap; } .bl-pop small { width: 100%; padding-left: 4.2rem; } .bl-tabs { gap: .2rem 1.2rem; } .bl-single .bl-body { padding-top: 7.5rem; } }
.bl-search input { text-align: left; }
.bl-search input, .bl-search input:focus, .bl-search input:focus-visible { outline: 0 !important; box-shadow: none !important; border: 0 !important; background: transparent !important; }

/* like / share */
.bl-react { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; max-width: 52rem; margin: clamp(3rem,6vw,4.5rem) auto 0; padding: 1.4rem 0; border-block: 1.5px solid var(--hv-line); }
.bl-like { display: inline-flex; align-items: center; gap: .6rem; padding: .3rem 0; border: 0; background: none; color: var(--hv-muted); font-size: 1rem; font-weight: 700; transition: color .2s; }
.bl-like svg { fill: transparent; transition: fill .25s, transform .35s cubic-bezier(.34,1.56,.64,1); }
.bl-like:hover { color: var(--hv-text); }
.bl-like.on { color: var(--hv-accent); }
.bl-like.on svg { fill: currentColor; transform: scale(1.12); }
.bl-like b, .bl-share-n b { color: var(--hv-text); font-weight: 900; }
.bl-share { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.4rem; font-size: .95rem; font-weight: 700; }
.bl-share-n { display: inline-flex; gap: .5rem; color: var(--hv-muted); }
.bl-share button, .bl-share a { position: relative; border: 0; background: none; padding: .3rem 0; color: var(--hv-muted); text-decoration: none; font: inherit; transition: color .2s; }
.bl-share button::after, .bl-share a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--hv-accent); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.16,1,.3,1); }
.bl-share button:hover, .bl-share a:hover { color: var(--hv-text); }
.bl-share button:hover::after, .bl-share a:hover::after { transform: scaleX(1); }
.bl-share [hidden] { display: none !important; }
.bl-share .bl-ic { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; padding: 0; border-radius: 50%; }
.bl-share .bl-ic::after { display: none; }
.bl-share .bl-ic:hover { background: color-mix(in srgb, var(--hv-accent) 14%, transparent); color: var(--hv-accent); }
.bl-copy svg { grid-area: 1/1; transition: opacity .25s, transform .35s cubic-bezier(.16,1,.3,1); }
.bl-copy .i-ok { opacity: 0; transform: scale(.6); }
.bl-copy.done { color: var(--hv-accent); }
.bl-copy.done .i-link { opacity: 0; transform: scale(.6); }
.bl-copy.done .i-ok { opacity: 1; transform: none; }
.bl-who { display: inline-flex; align-items: center; gap: .6rem; color: var(--hv-text); text-decoration: none; font-weight: 700; }
a.bl-who:hover .bl-au { color: var(--hv-accent); }
/* author on list cards (no link: the card itself is the link) */
.bl-by { gap: .5rem; font-size: .84rem; font-weight: 600; color: var(--hv-muted); }
.bl-by img { width: 1.6rem; height: 1.6rem; border-radius: 50%; object-fit: cover; }

/* narrow screens: embedded media and wide tables must not push the page sideways */
.bl-prose iframe, .bl-prose video, .bl-prose embed, .bl-prose object { max-width: 100%; }
.bl-prose img { max-width: 100%; height: auto; }
.bl-prose table { display: block; max-width: 100%; overflow-x: auto; }
.bl-prose pre { max-width: 100%; overflow-x: auto; }
@media (max-width: 575.98px) { .bl-prose { font-size: 1.02rem; } .bl-react { gap: .6rem 1rem; } .bl-more-head h2 { font-size: 1.8rem; } }

/* article/help bodies come from the editor with inline styles: keep them readable in both themes and on phones */
.bl-prose :is(span, p, strong, em, li)[style*="background"], .hp-prose :is(span, p, strong, em, li)[style*="background"] { background: transparent !important; }
.bl-prose [style*="font-family"], .hp-prose [style*="font-family"] { font-family: inherit !important; }
.bl-prose [style*="font-size"], .hp-prose [style*="font-size"] { font-size: inherit !important; }
.bl-prose hr, .hp-prose hr { height: 0; margin: 2rem 0; border: 0; border-top: 1.5px solid var(--hv-line); opacity: 1; background: none; }
.bl-prose figure, .hp-prose figure { margin: 1.6rem 0; }
.bl-prose figure img, .hp-prose figure img, .hp-prose img { display: block; max-width: 100%; height: auto; border-radius: 14px; }
.bl-prose p:empty, .hp-prose p:empty { display: none; }
@media (max-width: 575.98px) {
    .bl .container, .qp .container, .fm .container, .bp-hero .container, .bp-sec .container, .bp-steps .container, .bp-band .container { padding-inline: 1.25rem; }
    .bl-prose, .hp-prose { font-size: 1rem; line-height: 1.85; }
    .bl-prose p, .hp-prose p { margin-bottom: 1.1rem; }
    .bl-prose h2, .hp-prose h2 { font-size: 1.4rem; margin-top: 2rem; }
    .bl-prose h3, .hp-prose h3 { font-size: 1.2rem; margin-top: 1.6rem; }
    .bl-prose ul, .bl-prose ol, .hp-prose ul, .hp-prose ol { padding-left: 1.2rem; }
}
.bl-prose p:has(> br:only-child), .hp-prose p:has(> br:only-child) { display: none; }
