/* Blog › prose: the article's words (Open Sans 18/1.75, Quicksand h2/h3, coral links), as the concept's .prose.
   This file is also the Blog frontends' shared stylesheet (contract §21: linked once, before the other blog frontends'
   CSS, on every page with one of them): the article column every body section sits in (.cu-bsec + .cu-bcol), the
   article text (.cu-btext), and the post cards (.cu-pgrid / .cu-pcard) the index, related, latest and featured share.

   The article column: on wide screens the concept puts the contents and the product box in a 260 px column at the left
   of the text (uk.css .art__grid). The contents section (toc) floats there and sticks below the header; every body
   section keeps that column clear, so any of them can come in any order and the text always lines up. */
.cu-bprose[data-look="lead"] .cu-btext > p:first-child { font-size: 20px; color: var(--cu-ink); }
.cu-bprose[data-look="sources"] .cu-btext > h2 { margin-top: 2em; padding-top: 24px; border-top: 1px solid var(--ve-color-line); font-size: 20px; }
.cu-bprose[data-look="sources"] .cu-btext > h2:first-child { margin-top: 1.2em; }
.cu-bprose[data-look="sources"] .cu-btext :is(ul, ol, p) { color: var(--ve-color-muted); font-size: 14.5px; }
@media (max-width: 640px) { .cu-bprose[data-look="lead"] .cu-btext > p:first-child { font-size: 18.5px; } }

/* Shared: a body section and the article column. */
:where([data-section^="blog:"]) .cu-bsec { padding-block: 10px; }
:where([data-section^="blog:"]) .cu-bcol { width: min(100% - 2 * var(--cu-g), 1180px); margin-inline: auto; }
@media (min-width: 1001px) { :where([data-section^="blog:"]) .cu-bcol { padding-left: calc(260px + clamp(28px, 5vw, 72px)); } }

/* Shared: the article text (prose, callouts, columns). */
:where([data-section^="blog:"]) .cu-btext { color: #2a2b31; font-size: 18px; line-height: 1.75; overflow-wrap: break-word; }
:where([data-section^="blog:"]) .cu-btext > * { margin: 0; }
:where([data-section^="blog:"]) .cu-btext > * + * { margin-top: 1.05em; }
:where([data-section^="blog:"]) .cu-btext :is(h2, h3, h4) { scroll-margin-top: calc(var(--cu-head) + 34px); }
:where([data-section^="blog:"]) .cu-btext h2 { margin-top: 2em; font-size: clamp(26px, 2.6vw, 34px); }
:where([data-section^="blog:"]) .cu-btext > h2:first-child { margin-top: calc(2em - 20px); }
:where([data-section^="blog:"]) .cu-btext h3 { margin-top: 1.6em; font-size: 22px; }
:where([data-section^="blog:"]) .cu-btext > h3:first-child { margin-top: calc(1.6em - 20px); }
:where([data-section^="blog:"]) .cu-btext h4 { margin-top: 1.4em; font-size: 18px; }
:where([data-section^="blog:"]) .cu-btext :is(ul, ol) { padding-left: 1.3em; }
:where([data-section^="blog:"]) .cu-btext li + li { margin-top: .4em; }
:where([data-section^="blog:"]) .cu-btext a { color: var(--cu-coral-d); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:where([data-section^="blog:"]) .cu-btext strong { color: var(--cu-ink); }
:where([data-section^="blog:"]) .cu-btext blockquote { padding-left: 18px; border-left: 3px solid var(--ve-color-accent); color: var(--cu-ink); }
:where([data-section^="blog:"]) .cu-btext code { padding: 1px 5px; border-radius: 6px; background: var(--cu-tint); font-size: .88em; }
:where([data-section^="blog:"]) .cu-btext hr { border: 0; border-top: 1px solid var(--ve-color-line); }
@media (max-width: 640px) { :where([data-section^="blog:"]) .cu-btext { font-size: 17px; } }

/* Shared: a caption under a figure, gallery, code block or embed. */
:where([data-section^="blog:"]) .cu-bcap { margin-top: 10px; color: var(--cu-mute); font-size: 14px; }

/* Shared: post cards (uk.css .pgrid / .pcard): the cover with its category, the category · date · reading time, the
   title, the summary and "Read the article". The whole card opens the post. Three across, two on tablets, one on
   phones. */
:where([data-section^="blog:"]) .cu-pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
:where([data-section^="blog:"]) .cu-pcard { display: flex; min-width: 0; }
:where([data-section^="blog:"]) .cu-pcard__a { flex: 1; gap: 0; padding: 10px; }
:where([data-section^="blog:"]) .cu-pcard__cover { display: block; overflow: hidden; aspect-ratio: 16 / 7; border-radius: 14px; background: var(--cu-night); }
:where([data-section^="blog:"]) .cu-pcard__cover img,
:where([data-section^="blog:"]) .cu-pcard__cover > picture > img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--cu-ease); }
:where([data-section^="blog:"]) .cu-pcard__a:hover .cu-pcard__cover img { transform: scale(1.03); }
:where([data-section^="blog:"]) .cu-pcard__b { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 16px 12px 12px; }
:where([data-section^="blog:"]) .cu-pcard__m { color: var(--cu-mute); font-size: 13px; }
:where([data-section^="blog:"]) .cu-pcard__m b { color: var(--cu-coral-d); font-weight: 600; }
:where([data-section^="blog:"]) .cu-pcard__m > * + *::before { content: "·"; margin: 0 .4em; color: var(--cu-mute); font-weight: 400; }
:where([data-section^="blog:"]) .cu-pcard__t { font-size: 20px; letter-spacing: -.015em; }
:where([data-section^="blog:"]) .cu-pcard__x { display: block; color: var(--ve-color-muted); font-size: 15px; }
:where([data-section^="blog:"]) .cu-pcard .cu-link { min-height: 0; margin-top: auto; padding-top: 8px; }
@media (max-width: 1000px) { :where([data-section^="blog:"]) .cu-pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { :where([data-section^="blog:"]) .cu-pgrid { grid-template-columns: 1fr; } }
/* Blog › post hero: the article's head (uk.css .art__hd): crumbs, the category as the eyebrow, the h1, the summary,
   date · reading time · author, and the wide cover (5:1, 3:1 on phones) with the category chip and the product line
   over it. The cover is the page's LCP picture (eager, high priority). */
.cu-bhero { padding: clamp(40px, 6vw, 72px) 0 clamp(26px, 4vw, 50px); background: var(--ve-color-bg); }
.cu-bhero__in { width: min(100% - 2 * var(--cu-g), 980px); margin-inline: auto; }
.cu-bhero__h { font-size: clamp(34px, 4.2vw, 54px); letter-spacing: -.025em; }
.cu-bhero__sum { margin-top: 18px; color: var(--ve-color-muted); font-size: clamp(18px, 1.6vw, 21px); }
.cu-bhero__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; color: var(--cu-mute); font-size: 14px; }
.cu-bhero__meta > * + *::before { content: "·"; margin-right: 18px; }
.cu-bhero__cover { position: relative; overflow: hidden; margin: 30px 0 0; aspect-ratio: 5 / 1; border-radius: 14px; background: var(--cu-night); isolation: isolate; }
.cu-bhero__cover:not(:has(img)) { display: none; }
.cu-bhero__cover img, .cu-bhero__cover > picture > img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.cu-bhero__tag { position: absolute; left: clamp(16px, 2.4vw, 26px); bottom: clamp(16px, 2.4vw, 26px); display: flex; flex-direction: column; gap: 8px; color: #fff; }
.cu-bhero__chip { width: max-content; padding: 5px 10px; border-radius: 999px; background: rgb(255 255 255 / .18); font: 600 11.5px/1 var(--ve-font-body); letter-spacing: .08em; text-transform: uppercase; }
.cu-bhero__note { font-size: 12.5px; opacity: .8; }
.cu-bhero[data-layout="plain"] .cu-bhero__cover { display: none; }
@media (max-width: 640px) { .cu-bhero__cover { aspect-ratio: 3 / 1; } }
/* Blog › contents: "In this article" (the post's h2s; Sources left out, as the concept's) and the dark product box
   (uk.css .toc + .promo). On wide screens it floats into the 260 px column left of the article text and sticks under
   the header (every body section keeps that column clear: prose/section.css .cu-bcol); later full-width bands
   (related, the call to action) cover it as they scroll up. On tablets and phones it's a block in the flow. */
.cu-btoc { padding-block: 10px; }
.cu-btoc__in { display: grid; gap: 18px; width: min(100% - 2 * var(--cu-g), 1180px); margin-inline: auto; }
@media (min-width: 1001px) {
  .cu-btoc { float: left; position: sticky; top: calc(var(--ve-sticky-top) + 30px); width: 260px; margin-left: max(var(--cu-g), (100% - 1180px) / 2); padding: 10px 0 0; }
  .cu-btoc__in { width: auto; }
}
.cu-btoc__nav { padding: 18px; border: 1px solid var(--ve-color-line); border-radius: var(--ve-radius); background: #fff; font-size: 14px; }
.cu-btoc__h { margin-bottom: 10px; color: var(--cu-ink); font: 700 15px/1 var(--ve-font-display); }
.cu-btoc__list { display: grid; gap: 2px; margin: 0; padding-left: 18px; color: var(--ve-color-muted); }
.cu-btoc__list li[data-level="3"] { margin-left: 12px; list-style-type: circle; }
.cu-btoc__list li:has(> a[href="#sources"]) { display: none; }
.cu-btoc__list a { display: block; padding: 3px 0; text-decoration: none; }
.cu-btoc__list a:hover, .cu-btoc__list a[aria-current] { color: var(--cu-coral-d); }
@media (max-width: 1000px), (pointer: coarse) { .cu-btoc__list a { padding: 10px 0; } }
/* Too short a screen for the whole box to stay in view (a 1280×720 laptop): it stays at the top of the article. */
@media (min-width: 1001px) and (max-height: 880px) { .cu-btoc { position: static; } }
@media (min-width: 1001px) and (pointer: coarse) { .cu-btoc { position: static; } }
.cu-btoc__promo { display: grid; gap: 12px; padding: 18px; border-radius: var(--ve-radius); background: var(--cu-night); color: rgb(255 255 255 / .75); font-size: 14.5px; }
.cu-btoc__promo .cu-prodmark { margin: 0; color: #fff; }
.cu-btoc__btn { min-height: 44px; font-size: 14.5px; --b: #fff; --f: var(--cu-ink); box-shadow: none; }
.cu-btoc__btn:hover { background: #f1f1f4; }
.cu-btoc__site { color: #ff8a85; font-size: 14px; }
/* Blog › table: a white, rounded table with a pale heading row (uk.css .tblw); wide tables scroll sideways inside
   their box on phones, never the page. The renderer puts the <table> (caption, head, rows) into [data-vp-table]. */
.cu-btable { margin: 8px 0; }
.cu-btable__w { overflow-x: auto; border: 1px solid var(--ve-color-line); border-radius: 14px; background: #fff; }
.cu-btable__w:focus-visible { outline-offset: 3px; }
.cu-btable table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.cu-btable :is(th, td) { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ve-color-line); }
.cu-btable th { background: var(--cu-tint); color: var(--cu-ink); font-weight: 600; }
.cu-btable tr:last-child td { border-bottom: 0; }
.cu-btable caption { padding: 12px 16px 0; color: var(--cu-mute); font-size: 14px; text-align: left; caption-side: bottom; padding-bottom: 12px; }
@media (max-width: 640px) { .cu-btable table { font-size: 14.5px; } .cu-btable :is(th, td) { padding: 10px 12px; } }
/* Blog › related: "Keep reading / Related articles" on a white band, three cards of posts sharing the post's
   category. It starts below the contents column (clear) with the concept's gap under the article. */
.cu-brelated { clear: both; margin-top: clamp(54px, 7vw, 90px); }
