/* Visual fix batch 4 (2026-11-26), after go-live. Loads after zzz-legacy-blocks.css (file name).
   Blog posts in the article design (.sth-wp-post) and the old-site blocks the plugin places
   (plugin/sthenos-site/inc/legacy-blocks.php). Markup classes added by the post clean-up in
   parts/blog/helpers.php: .wp-cta (in-article call to action), .wp-inline-toc ("In this guide"
   link list), .wp-pointer ("Read More:" line), .wp-tweet (old click-to-tweet link). */

/* ================================================================ 1. Posts without a sidebar
   With no "On this page" column the reading column sits in the middle of the content width
   (it was pinned left with the right half empty). */
@media (min-width: 1024px) {
	.sth-wp-post .article:not(.article--toc) { justify-content: center; }
	.sth-wp-post .article:not(.article--toc) > .article__body { flex: 0 1 760px; }
}

/* Pull quotes: the quote and anything after it (the old "Tweet" line) stack in one column beside
   the bar, instead of sharing a flex row (which squeezed the link to one letter per line). */
.sth-wp-post .article__body > blockquote { position: relative; display: block; padding-left: 35px; }
.sth-wp-post .article__body > blockquote::before { position: absolute; left: 18px; top: 18px; bottom: 18px; }
.sth-wp-post .article__body > blockquote > * + * { margin-top: 12px; }
@media (min-width: 768px) {
	.sth-wp-post .article__body > blockquote { padding-left: 51px; }
	.sth-wp-post .article__body > blockquote::before { left: 28px; top: 24px; bottom: 24px; }
}
/* The old click-to-tweet link shares a theme demo address (tecnologia.demo.vamtam.com), not the
   post: it stays in the markup but is not shown. */
.sth-wp-post .article__body .wp-tweet { display: none; }

/* ================================================================ 2. In-article call to action
   One card for the old custom HTML banners and the one-cell "book a consultation" tables, in the
   batch 2 callout family (Lavender soft, card radius, white inner ring, soft shadow). */
.sth-wp-post .article__body .wp-cta {
	display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 8px 0;
	padding: 22px 20px; border-radius: var(--r-card); background: var(--c-lav-soft);
	box-shadow: var(--ring-card), var(--sh-soft);
}
.sth-wp-post .article__body .wp-cta > * { margin: 0; max-width: 100%; }
.sth-wp-post .article__body .wp-cta__eyebrow {
	font: var(--fw-medium) 12px/16px var(--f-body); letter-spacing: .8px; text-transform: uppercase; color: var(--c-blue);
}
.sth-wp-post .article__body .wp-cta__h {
	font: var(--fw-medium) 21px/28px var(--f-head); letter-spacing: -.4px; color: var(--c-ink);
}
.sth-wp-post .article__body .wp-cta__h :is(b, strong, em, i) { font-weight: inherit; font-style: normal; color: inherit; }
.sth-wp-post .article__body .wp-cta > :is(.wp-cta__text, p:not([class]), span) { font-size: 16px; line-height: 26px; color: var(--ink-72); }
.sth-wp-post .article__body .wp-cta :is(.wp-cta__points, .wp-cta__stats) {
	display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; list-style: none;
}
.sth-wp-post .article__body .wp-cta .wp-cta__points > li {
	position: relative; padding-left: 22px; font-size: 15px; line-height: 23px; color: var(--c-ink);
}
.sth-wp-post .article__body .wp-cta .wp-cta__points > li::before {
	content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 6px;
	border: solid var(--c-blue); border-width: 0 0 2px 2px; transform: rotate(-45deg);
}
.sth-wp-post .article__body .wp-cta .wp-cta__stats > li {
	display: flex; flex-direction: column; padding: 0; font-size: 13px; line-height: 18px; color: var(--ink-60);
}
.sth-wp-post .article__body .wp-cta .wp-cta__stats > li::before { content: none; }
.sth-wp-post .article__body .wp-cta .wp-cta__stats strong {
	font: var(--fw-medium) 20px/26px var(--f-head); letter-spacing: -.3px; color: var(--c-ink);
}
.sth-wp-post .article__body .wp-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.sth-wp-post .article__body .wp-cta__actions a.btn { margin: 0; }
.sth-wp-post .article__body .wp-cta__meta { font-size: 13px; line-height: 18px; color: var(--ink-60); }
@media (min-width: 768px) {
	.sth-wp-post .article__body .wp-cta { padding: 26px 28px; }
	.sth-wp-post .article__body .wp-cta__h { font-size: 24px; line-height: 31px; }
}

/* "Explore our AI services": the clean-up keeps the box together now (it unwrapped the box, so the
   pale bar and its list were drawn apart); the batch 2 callout rules style it. Bullets off. */
.sth-wp-post .article__body #sthenos-ai-svc-links ul > li { padding-left: 0 !important; }
.sth-wp-post .article__body #sthenos-ai-svc-links ul > li::before { content: none !important; }

/* ================================================================ 3. "By the Numbers"
   The nested variant (an outer div holding a styled div) had its whole box treated as the label
   line (upper case, small). The inner div is now a plain wrapper and its first child the label. */
.sth-bythenumbers > div:only-child {
	display: block !important; margin: 0 !important; padding: 0 !important; border: 0 !important;
	border-radius: 0 !important; background: none !important; box-shadow: none !important;
	font: inherit !important; letter-spacing: normal !important; text-transform: none !important; color: inherit !important;
}
.sth-bythenumbers > div:only-child > div:first-child {
	margin: 0 0 16px !important; font: var(--fw-medium) 12px/16px var(--f-body) !important;
	letter-spacing: .8px !important; text-transform: uppercase !important; color: var(--c-blue) !important;
}
.sth-bythenumbers li { border: 0 !important; text-transform: none !important; letter-spacing: normal !important; }
.sth-bythenumbers li > span:first-child { min-width: 0 !important; }
.sth-bythenumbers li > span:not(:first-child) { font-size: inherit !important; line-height: inherit !important; }
/* Spacing in the article column: the column's own gap plus a little more than a paragraph. */
.article__body > .sth-bythenumbers { margin: 12px 0 !important; }

/* ================================================================ 4. Tables
   From 1024px the reading column (up to 760px) takes the table at its own width and the cell text
   wraps; the wider minimums stay below 1024px, where the frame scrolls with the edge fade.
   The fade also shows from 1280px, for any table still wider than the column. */
@media (min-width: 1024px) {
	.sth-wp-post .article__body table:is(.wp-tbl-c3, .wp-tbl-c4, .wp-tbl-c5) { min-width: 0; }
}
.sth-wp-post .article__body .article__table :is(td, th) { overflow-wrap: break-word; }
.sth-wp-post .article__body .article__table :is(td, th) a { overflow-wrap: anywhere; }
@media (min-width: 1280px) {
	.sth-wp-post .wp-sx { position: relative; }
	.sth-wp-post .wp-sx::before, .sth-wp-post .wp-sx::after {
		content: ""; position: absolute; z-index: 1; top: 2px; bottom: 2px; width: 32px; pointer-events: none;
		opacity: 0; transition: opacity var(--dur-fast);
	}
	.sth-wp-post .wp-sx::before { left: 2px; border-radius: 14px 0 0 14px; background: linear-gradient(to right, var(--c-mist), rgba(255, 255, 255, 0)); }
	.sth-wp-post .wp-sx::after { right: 2px; border-radius: 0 14px 14px 0; background: linear-gradient(to left, var(--c-mist), rgba(255, 255, 255, 0)); }
	.sth-wp-post .sv-fig .wp-sx::before { left: 0; top: 0; bottom: 0; border-radius: 12px 0 0 12px; background: linear-gradient(to right, var(--c-white), rgba(255, 255, 255, 0)); }
	.sth-wp-post .sv-fig .wp-sx::after { right: 0; top: 0; bottom: 0; border-radius: 0 12px 12px 0; background: linear-gradient(to left, var(--c-white), rgba(255, 255, 255, 0)); }
	.sth-wp-post .wp-sx:is([data-sx="start"], [data-sx="mid"])::after,
	.sth-wp-post .wp-sx:is([data-sx="mid"], [data-sx="end"])::before { opacity: 1; }
}

/* ================================================================ 5. "In this guide" beside the sidebar
   The side "On this page" column shows from 1024px; there the inline list repeats it. */
@media (min-width: 1024px) {
	.sth-wp-post .article--toc .wp-inline-toc { display: none; }
}

/* ================================================================ 6. Ordered lists split in pieces
   Article template only. Numbered lists use the browser's own list numbering in the theme's number
   style (Brand Blue, Geist Medium), which honours an explicit start exactly: old posts put each
   item in its own <ol start="2">, <ol start="3">... A run of single-item lists without start (next
   to each other, or with one paragraph or block between them) keeps counting through its own
   counter instead of restarting at 1. Every other list numbers from 1 as before. */
.sth-wp-post .article__body > ol { list-style: decimal outside; padding-left: 28px; }
.sth-wp-post .article__body > ol > li { padding-left: 0; }
.sth-wp-post .article__body > ol > li::before { content: none; }
.sth-wp-post .article__body > ol > li::marker { color: var(--c-blue); font: var(--fw-medium) 15px/27px var(--f-head); }
@media (min-width: 768px) {
	.sth-wp-post .article__body > ol > li::marker { font-size: 17px; line-height: 30px; }
}
.sth-wp-post .article__body > ol:not([start]):has(> li:only-child) { counter-reset: sth-run; }
.sth-wp-post .article__body > ol:not([start]):has(> li:only-child) + ol:not([start]):has(> li:only-child),
.sth-wp-post .article__body > ol:not([start]):has(> li:only-child) + :is(p, div, figure, blockquote) + ol:not([start]):has(> li:only-child) { counter-reset: none; }
.sth-wp-post .article__body > ol:not([start]):has(> li:only-child) > li { counter-increment: sth-run; }
.sth-wp-post .article__body > ol:not([start]):has(> li:only-child) > li::marker { content: counter(sth-run) ". "; }

/* ================================================================ 7. "Read More:" lines
   A quiet related link: smaller muted text, no bold, the link in the prose link style. */
.sth-wp-post .article__body .wp-pointer { font-size: 15px; line-height: 24px; color: var(--ink-60); }
.sth-wp-post .article__body .wp-pointer :is(strong, b) { font-weight: inherit; color: inherit; }
.sth-wp-post .article__body .wp-pointer a { font-weight: var(--fw-medium); }

/* ================================================================ 11. Cookie bar clearance
   While the cookie bar shows, the body gets bottom padding (tracking.php) so the bar never covers
   content. That band showed the page tone under the white footer: the footer now paints white
   below itself (box shadows add no scroll length). */
body:has(> #sthenos-cookie-consent) .site-footer { box-shadow: 0 240px 0 var(--c-white), 0 480px 0 var(--c-white); }

/* ================================================================ 12. Related case studies
   The theme's standard card (Mist, card radius, white inner ring, soft shadow), chips on white,
   and "View all case studies" as the theme's text link with an arrow. */
#sthenos-cs > div { background: var(--c-mist) !important; border-radius: var(--r-card) !important; }
#sthenos-cs h2 + p + div > a { background: var(--c-white) !important; }
#sthenos-cs > div > p:last-child a {
	display: inline-flex !important; align-items: center; gap: 8px; min-height: 44px;
	color: var(--c-blue) !important; font: var(--fw-medium) 14px/20px var(--f-body) !important;
	text-decoration: underline !important; text-decoration-color: transparent !important; text-underline-offset: 3px;
	transition: text-decoration-color var(--dur-fast);
}
#sthenos-cs > div > p:last-child a::after {
	content: ""; width: 10px; height: 8px; flex: none; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4h8M6 1l3 3-3 3' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4h8M6 1l3 3-3 3' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform var(--dur-hover) var(--ease-out-quart);
}
#sthenos-cs > div > p:last-child a:hover { text-decoration-color: currentColor !important; }
#sthenos-cs > div > p:last-child a:hover::after { transform: translateX(3px); }
#sthenos-cs > div > p:last-child { margin-top: 10px !important; }
.legacy-slot:not(:has(*)) { display: none; }

/* ================================================================ 13. Link lists and sources
   A list made only of links (related policies, related guides) uses the text link style with an
   arrow, one per row; source lists keep their numbers and use quieter, smaller links. */
.article__body > ul.article__links { gap: 4px; }
.article__body > ul.article__links > li { padding-left: 0; }
.article__body > ul.article__links > li::before { content: none; }
.article__body .article__links a {
	display: inline-flex; align-items: center; gap: 8px;
	font-weight: var(--fw-medium); text-decoration-color: transparent;
}
.article__body .article__links a::after {
	content: ""; width: 10px; height: 8px; flex: none; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4h8M6 1l3 3-3 3' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4h8M6 1l3 3-3 3' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform var(--dur-hover) var(--ease-out-quart);
}
.article__body .article__links a:hover { text-decoration-color: currentColor; }
.article__body .article__links a:hover::after { transform: translateX(3px); }
.article__body .article__sources li { font-size: 15px; line-height: 24px; color: var(--ink-68); }
.article__body .article__sources a { text-decoration-color: rgba(1, 14, 208, .35); }
.article__body .article__sources a:hover { text-decoration-color: currentColor; }
