/* Old-site blocks kept for SEO, fitted to the new design (a11y and visual review batch 2,
   2026-11-26), plus article tables and figures on phones, the footer legal row and the home
   footer gap. Loads last (file name). The old blocks carry inline style attributes, so their
   rules here use !important; placement is done server-side by the plugin
   (plugin/sthenos-site/inc/legacy-blocks.php: .legacy-slot before the footer, .legacy-flow rows). */

/* ================================================================ Callout family
   1. "By the Numbers" (.sth-bythenumbers) and 2. "Explore our AI services" (#sthenos-ai-svc-links):
   the article callout look (Lavender soft, 20px radius, white inner ring, soft shadow). */
.sth-bythenumbers,
#sthenos-ai-svc-links {
	display: block !important; float: none !important; clear: both;
	width: auto !important; max-width: none !important; box-sizing: border-box;
	margin: 0 !important; padding: 22px 20px !important;
	border: 0 !important; border-radius: var(--r-card) !important;
	background: var(--c-lav-soft) !important; box-shadow: var(--ring-card), var(--sh-soft) !important;
	font-family: var(--f-body) !important; color: var(--c-ink) !important;
}
.sth-bythenumbers *,
#sthenos-ai-svc-links * { font-family: inherit !important; }
/* Label line: the eyebrow style used across the site. */
.sth-bythenumbers > 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 ul {
	display: grid !important; gap: 18px; margin: 0 !important; padding: 0 !important; list-style: none !important;
}
.sth-bythenumbers li {
	margin: 0 !important; padding: 0 0 0 16px !important; position: relative;
	font-size: 15px !important; line-height: 23px !important; color: var(--ink-72) !important;
}
.sth-bythenumbers li::before {
	content: "" !important; position: absolute !important; left: 0 !important; top: 4px !important; bottom: 4px !important;
	width: 3px !important; height: auto !important; margin: 0 !important; border-radius: 2px !important; background: var(--c-blue) !important;
}
.sth-bythenumbers li::marker { content: none; }
.sth-bythenumbers li > span:first-child {
	display: block !important; margin: 0 0 4px !important;
	font: var(--fw-medium) 26px/32px var(--f-head) !important; letter-spacing: -.5px !important; color: var(--c-ink) !important;
}
#sthenos-ai-svc-links > p:first-child {
	margin: 0 0 12px !important; font: var(--fw-medium) 19px/27px var(--f-head) !important;
	letter-spacing: -.3px !important; color: var(--c-ink) !important;
}
#sthenos-ai-svc-links ul {
	display: grid !important; gap: 10px; margin: 0 !important; padding: 0 !important; list-style: none !important;
}
#sthenos-ai-svc-links li { margin: 0 !important; padding: 0 !important; font-size: 15px; line-height: 23px; }
/* Links: the prose link style (Brand Blue, underlined, 2px on hover). */
:is(.sth-bythenumbers, #sthenos-ai-svc-links) a, #sthenos-cs > div > p:last-child a {
	color: var(--c-blue) !important; font-weight: inherit; text-decoration: underline !important;
	text-decoration-thickness: 1px !important; text-underline-offset: 3px; overflow-wrap: anywhere;
}
#sthenos-ai-svc-links a { font-weight: var(--fw-medium) !important; }
:is(.sth-bythenumbers, #sthenos-ai-svc-links) a:hover, #sthenos-cs > div > p:last-child a:hover { text-decoration-thickness: 2px !important; }
@media (min-width: 768px) {
	.sth-bythenumbers, #sthenos-ai-svc-links { padding: 26px 28px !important; }
	#sthenos-ai-svc-links ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
}
/* In the article body the callout is one block of the column (the body's own gap spaces it). */
.article__body > .sth-bythenumbers, .article__body > #sthenos-ai-svc-links { margin: 8px 0 !important; }
/* Rows the plugin adds on the section design: own row at content width, section spacing. */
.legacy-flow { padding: 0 0 var(--sec-pad); }
.legacy-flow--end { padding-top: 0; }
@media (min-width: 1024px) {
	.legacy-flow .sth-bythenumbers ul { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; }
}

/* ================================================================ 3. Related case studies */
.legacy-slot { width: min(var(--content), calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: 40px 0 var(--sec-pad); display: flex; flex-direction: column; gap: 24px; }
#sthenos-cs { max-width: none !important; margin: 0 !important; padding: 0 !important; }
#sthenos-cs > div {
	padding: 24px 20px !important; border: 0 !important; border-radius: var(--r-card-l) !important;
	background: var(--c-white) !important; box-shadow: var(--ring-card), var(--sh-soft) !important;
}
#sthenos-cs h2 {
	margin: 0 0 6px !important; font: var(--fw-medium) 24px/30px var(--f-head) !important;
	letter-spacing: -.5px !important; color: var(--c-ink) !important;
}
#sthenos-cs h2 + p { margin: 0 0 14px !important; font: 15px/24px var(--f-body) !important; color: var(--ink-72) !important; }
#sthenos-cs h2 + p + div { display: flex !important; flex-wrap: wrap; gap: 10px; }
#sthenos-cs h2 + p + div > a {
	display: inline-flex !important; align-items: center; min-height: 44px; margin: 0 !important; padding: 0 16px !important;
	border: 0 !important; border-radius: var(--r-chip) !important; background: var(--c-mist) !important;
	box-shadow: inset 0 0 0 1px var(--ink-10) !important;
	font: var(--fw-medium) 14px/20px var(--f-body) !important; color: var(--c-ink) !important; text-decoration: none !important;
	transition: background-color var(--dur-fast), box-shadow var(--dur-fast);
}
#sthenos-cs h2 + p + div > a:hover { background: var(--c-lav-soft) !important; box-shadow: inset 0 0 0 1px var(--c-lavender) !important; }
#sthenos-cs > div > p:last-child { margin: 18px 0 0 !important; }
#sthenos-cs > div > p:last-child a { font: var(--fw-medium) 14px/20px var(--f-body) !important; }
@media (min-width: 768px) {
	#sthenos-cs > div { padding: 32px 36px !important; }
	#sthenos-cs h2 { font-size: 28px !important; line-height: 34px !important; }
}

/* ================================================================ 4. Preferred sources */
.sthenos-pref-src {
	display: flex !important; justify-content: center; margin: 0 !important; padding: 0 !important; background: none !important;
}
.sthenos-pref-src:empty, .legacy-slot:empty { display: none !important; }

/* ================================================================ 5 and 6. Article tables and figures
   The theme's table look restated above the old "sthenos-tables" sheet (which targets
   figure.wp-block-table tables with Poppins, its own colours, overflow hidden and, under 880px,
   display:block on the table). These selectors outrank it, so the result is the same with that
   sheet on or off. */
.sth-wp-post .article__body .article__table table {
	display: table; width: 100%; margin: 0; border: 0; border-radius: 0; box-shadow: none; overflow: visible;
	background: none; border-collapse: collapse; border-spacing: 0;
	font-family: var(--f-body); font-size: 14px; line-height: 21px; color: rgba(10, 13, 49, .82);
}
.sth-wp-post .article__body .article__table table :is(th, td) {
	padding: 12px 16px; border: 0; border-bottom: 1px solid var(--ink-10); background: none;
	font-family: var(--f-body); font-weight: var(--fw-regular); color: rgba(10, 13, 49, .82);
	text-align: left; vertical-align: top; text-transform: none; letter-spacing: normal;
}
.sth-wp-post .article__body .article__table table thead th,
.sth-wp-post .article__body .article__table table thead td {
	background: var(--c-lav-soft); font: var(--fw-medium) 13px/18px var(--f-body); color: var(--c-ink);
}
.sth-wp-post .article__body .article__table table tbody th { font-weight: var(--fw-medium); color: var(--c-ink); }
.sth-wp-post .article__body .article__table table tbody tr { background: none; }
.sth-wp-post .article__body .article__table table tr:last-child > :is(th, td) { border-bottom: 0; }
.sth-wp-post .article__body .article__table table caption {
	padding: 14px 16px 0; caption-side: top; text-align: left; font: var(--fw-medium) 13px/18px var(--f-body); color: var(--ink-60);
}
.sth-wp-post .article__body figure.article__table { margin: 0; padding: 0; }
/* Visible scrollbar where the platform shows one (the edge fade is the cue elsewhere). */
.sth-wp-post .article__body :is(.article__table, .sv-frame) { scrollbar-width: thin; scrollbar-color: rgba(10, 13, 49, .28) transparent; }
@media (min-width: 768px) {
	.sth-wp-post .article__body .article__table table { font-size: 15px; line-height: 23px; }
}
@media (max-width: 767px) {
	.sth-wp-post .article__body .article__table table td { font-size: 15px; line-height: 23px; }
	/* Phones: a two-column table fits the column (its text wraps); wider tables keep their
	   minimum and scroll inside the focusable frame. */
	.sth-wp-post .article__body .article__table table:is([data-cols="1"], [data-cols="2"]) { min-width: 0; }
	/* Diagrams scale to the column on phones (vector, so pinch zoom stays sharp). */
	.sth-wp-post .article__body .sv-frame .sv-svg[class*="sv-mw-"] { min-width: 0; }
}

/* ================================================================ 7. Footer legal links, phones
   No separator dots (they were left hanging at line ends): a wrapping row with a gap. */
@media (max-width: 767px) {
	.site-footer .foot__legal { column-gap: 20px; row-gap: 0; }
	.site-footer .foot__legal li::after { content: none; }
}

/* ================================================================ 8. Home: FAQ to footer gap
   The footer's scroll-linked rise (zz-motion.css, 60px) brought its first heading within about
   12px of the FAQ card while the footer enters. The footer gets the same 60px back as top space
   on that page, so the gap never drops below the footer's own 72px. The animation is unchanged. */
@supports (animation-timeline: view()) {
	@media (min-width: 1024px) {
		html.motion-ok body[data-page-type="home"] .site-footer { padding-top: 60px; }
	}
}
