/* 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 index: the Insights page and every listing view (tag, older pages, authors): crumbs, eyebrow, the h1
   (the view's title on a tag page), the lede, the category chips with their counts, then the cards, the newest as a
   wide card across the top (cover beside the words down to 641 px) (uk.css .ins-hero, .chips--filter, .pcard--big, .pgrid). */
.cu-bindex__hero { padding: var(--ve-space-section) 0 8px; }
.cu-bindex__h { max-width: 980px; }
.cu-bindex__lede { max-width: 720px; margin-top: 14px; }
.cu-bindex__chips { margin-top: 28px; }
.cu-bindex__chip { min-height: 44px; color: var(--ve-color-text); font: 600 14px/1 var(--ve-font-body); }
.cu-bindex__chip small { color: var(--cu-mute); font-weight: 500; }
.cu-bindex__chip[aria-current="page"] { border-color: #050505; background: #050505; color: #fff; }
.cu-bindex__chip[aria-current="page"] small { color: rgb(255 255 255 / .6); }
.cu-bindex__feeds { display: flex; gap: 18px; margin-top: 14px; }
.cu-bindex__who { margin-bottom: 14px; }
.cu-bindex__avatar { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--cu-night); color: #fff; font: 700 20px/1 var(--ve-font-display); object-fit: cover; }
.cu-bindex__list { padding: clamp(44px, 6vw, 72px) 0; }
.cu-bindex__authors { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.cu-bindex__author h2 { font-size: 22px; }
.cu-bindex__empty { color: var(--ve-color-muted); font-size: 18px; }
.cu-bindex__pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 40px; }
.cu-bindex__pager .cu-chip { min-width: 44px; min-height: 44px; justify-content: center; font-weight: 600; }
.cu-bindex__page[aria-current="page"] { border-color: #050505; background: #050505; color: #fff; }
/* The first card of a list's first page: wide, the cover beside the words. */
.cu-bindex[data-page="1"] .cu-pcard:first-child { grid-column: 1 / -1; }
.cu-bindex[data-page="1"] .cu-pcard:first-child .cu-pcard__a { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 10px; }
.cu-bindex[data-page="1"] .cu-pcard:first-child .cu-pcard__b { padding: 20px 26px; }
.cu-bindex[data-page="1"] .cu-pcard:first-child .cu-pcard__t { font-size: clamp(24px, 2.6vw, 34px); }
@media (max-width: 1000px) { .cu-bindex[data-page="1"] .cu-pcard:first-child .cu-pcard__b { padding: 12px 14px; } }
@media (max-width: 640px) { .cu-bindex[data-page="1"] .cu-pcard:first-child .cu-pcard__a { display: flex; } .cu-bindex[data-page="1"] .cu-pcard:first-child .cu-pcard__b { padding: 16px 12px 12px; } .cu-bindex[data-page="1"] .cu-pcard:first-child .cu-pcard__t { font-size: 22px; } }
