/**
 * MeasureBuilt – Single Post (blog article) styles.
 *
 * Everything is scoped under .mb-article / .mb-article-shell so it never
 * leaks into the rest of the site. Colours, fonts and radii follow the
 * premium MeasureBuilt design language.
 *
 * Loaded only on single posts (see functions.php).
 */

/* ------------------------------------------------------------------ *
 * Scope-local design tokens
 * ------------------------------------------------------------------ */
.mb-article-shell {
	--mb-primary: #1162d4;
	--mb-primary-dark: #0f2a5e;
	--mb-text: #2d3748;
	--mb-text-soft: #4a5568;
	--mb-border: rgba(15, 42, 94, 0.10);
	--mb-card-bg: #ffffff;
	--mb-radius: 20px;
	--mb-radius-sm: 12px;
	--mb-shadow: 0 18px 50px -28px rgba(15, 42, 94, 0.35);
	--mb-shadow-soft: 0 10px 30px -22px rgba(15, 42, 94, 0.28);
	--mb-max: 1500px;
	--mb-content-max: 1500px;
	/* Readable measure for long-form text inside the wide cards. */
	--mb-readable: 920px;

	background: linear-gradient(135deg, #fdfbf7 0%, #f3f6fb 100%);
	color: var(--mb-text);
	font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ------------------------------------------------------------------ *
 * Reading progress bar
 * ------------------------------------------------------------------ */
.mb-article-shell .mb-progress {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: transparent;
	z-index: 1000;
	pointer-events: none;
}

.mb-article-shell .mb-progress__bar {
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--mb-primary), var(--mb-primary-dark));
	transform-origin: left center;
	transition: width 0.08s linear;
}

/* ------------------------------------------------------------------ *
 * Layout wrapper
 * ------------------------------------------------------------------ */
.mb-article {
	display: block;
}

.mb-article .mb-article__inner {
	width: 100%;
	max-width: var(--mb-max);
	margin: 0 auto;
	padding: 24px 24px 72px;
	box-sizing: border-box;
}

/* ------------------------------------------------------------------ *
 * Intro card (compact premium header – no giant above-the-fold image)
 * ------------------------------------------------------------------ */
.mb-article .mb-intro-card {
	position: relative;
	overflow: hidden;
	padding: 40px 48px;
	margin-bottom: 28px;
	background:
		radial-gradient(120% 140% at 0% 0%, rgba(17, 98, 212, 0.10), transparent 55%),
		linear-gradient(135deg, #ffffff 0%, #f6f9fe 100%);
}

.mb-article .mb-intro-card::after {
	content: "";
	position: absolute;
	left: 48px;
	right: 48px;
	bottom: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--mb-primary), rgba(17, 98, 212, 0.05));
	border-radius: 3px;
}

.mb-article .mb-intro-card__media {
	margin: 28px 0 0;
}

.mb-article .mb-intro-card__image {
	display: block;
	width: 100%;
	max-height: 460px;
	object-fit: cover;
	height: auto;
	border-radius: var(--mb-radius-sm);
	box-shadow: var(--mb-shadow-soft);
}

.mb-article .mb-breadcrumbs {
	font-size: 0.8rem;
	color: var(--mb-text-soft);
	margin-bottom: 18px;
}

.mb-article .mb-breadcrumbs a {
	color: var(--mb-text-soft);
	text-decoration: none;
}

.mb-article .mb-breadcrumbs a:hover {
	color: var(--mb-primary);
}

.mb-article .mb-breadcrumbs__sep {
	margin: 0 4px;
	color: rgba(15, 42, 94, 0.35);
}

.mb-article .mb-hero__badge {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(17, 98, 212, 0.10);
	color: var(--mb-primary);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	margin-bottom: 18px;
}

.mb-article .mb-hero__badge:hover {
	background: var(--mb-primary);
	color: #fff;
}

.mb-article .mb-hero__title {
	font-family: "DM Serif Display", Georgia, "Times New Roman", serif;
	font-weight: 400;
	font-size: clamp(1.8rem, 3.2vw, 2.7rem);
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--mb-primary-dark);
	margin: 0 0 16px;
	max-width: 1000px;
}

.mb-article .mb-hero__subtitle {
	font-size: clamp(1.02rem, 1.4vw, 1.2rem);
	line-height: 1.6;
	color: var(--mb-text-soft);
	margin: 0 0 22px;
	max-width: var(--mb-readable);
}

.mb-article .mb-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	color: var(--mb-text-soft);
}

.mb-article .mb-hero__meta-sep {
	color: rgba(15, 42, 94, 0.30);
}

.mb-article .mb-hero__meta-updated {
	color: var(--mb-primary);
	font-weight: 600;
}

/* ------------------------------------------------------------------ *
 * Main column (stack of premium cards, full width up to --mb-max)
 * ------------------------------------------------------------------ */
.mb-article .mb-main {
	max-width: var(--mb-content-max);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

/* Shared card surface */
.mb-article .mb-card {
	background: var(--mb-card-bg);
	border: 1px solid var(--mb-border);
	border-radius: var(--mb-radius);
	box-shadow: var(--mb-shadow-soft);
}

.mb-article .mb-content-section,
.mb-article .mb-meta-card {
	padding: 40px 48px;
}

.mb-article .mb-meta-card {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.mb-article .mb-section-title {
	font-family: "DM Serif Display", Georgia, serif;
	font-weight: 400;
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	color: var(--mb-primary-dark);
	margin: 0 0 4px;
}

/* Divider gradient line */
.mb-article .mb-divider {
	height: 2px;
	width: 100%;
	margin: 28px 0;
	border: 0;
	background: linear-gradient(90deg, rgba(17, 98, 212, 0.45), rgba(17, 98, 212, 0.05));
	border-radius: 2px;
}

/* ------------------------------------------------------------------ *
 * Article content typography (the_content output)
 * ------------------------------------------------------------------ */
.mb-article .mb-content {
	font-size: 1.075rem;
	line-height: 1.8;
	color: var(--mb-text);
	overflow-wrap: break-word;
	word-wrap: break-word;
}

.mb-article .mb-content > *:first-child {
	margin-top: 0;
}

.mb-article .mb-content > *:last-child {
	margin-bottom: 0;
}

/* A section that starts with its heading shouldn't add a big top gap. */
.mb-article .mb-content-section .mb-content > h2:first-child {
	margin-top: 0;
}

/* Keep long-form text at a readable measure inside the wide cards… */
.mb-article .mb-content > p,
.mb-article .mb-content > h2,
.mb-article .mb-content > h3,
.mb-article .mb-content > h4,
.mb-article .mb-content > ul,
.mb-article .mb-content > ol,
.mb-article .mb-content > blockquote {
	max-width: var(--mb-readable);
}

/* …while wide media and layout blocks may use the full card width. */
.mb-article .mb-content > figure,
.mb-article .mb-content > img,
.mb-article .mb-content > .wp-block-image,
.mb-article .mb-content > .mb-table-wrap,
.mb-article .mb-content > table,
.mb-article .mb-content > .mb-accent-box,
.mb-article .mb-content > .mb-images-row,
.mb-article .mb-content > .mb-deliv-grid,
.mb-article .mb-content > .mb-usecase-grid {
	max-width: none;
}

.mb-article .mb-content p {
	margin: 0 0 1.4em;
}

.mb-article .mb-content h2 {
	font-family: "DM Serif Display", Georgia, serif;
	font-weight: 400;
	font-size: clamp(1.55rem, 2.6vw, 2.05rem);
	line-height: 1.25;
	color: var(--mb-primary-dark);
	margin: 2em 0 0.7em;
}

.mb-article .mb-content h3 {
	font-weight: 700;
	font-size: clamp(1.25rem, 2vw, 1.5rem);
	line-height: 1.3;
	color: var(--mb-primary-dark);
	margin: 1.7em 0 0.6em;
}

.mb-article .mb-content h4 {
	font-weight: 700;
	font-size: 1.15rem;
	color: var(--mb-primary-dark);
	margin: 1.5em 0 0.5em;
}

.mb-article .mb-content a {
	color: var(--mb-primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.mb-article .mb-content a:hover {
	color: var(--mb-primary-dark);
}

.mb-article .mb-content ul,
.mb-article .mb-content ol {
	margin: 0 0 1.4em;
	padding-left: 1.4em;
}

.mb-article .mb-content li {
	margin: 0 0 0.5em;
}

.mb-article .mb-content blockquote {
	margin: 1.6em 0;
	padding: 18px 24px;
	border-left: 4px solid var(--mb-primary);
	background: rgba(17, 98, 212, 0.05);
	border-radius: 0 var(--mb-radius-sm) var(--mb-radius-sm) 0;
	color: var(--mb-text-soft);
	font-style: italic;
}

.mb-article .mb-content blockquote p:last-child {
	margin-bottom: 0;
}

.mb-article .mb-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--mb-radius-sm);
}

.mb-article .mb-content figure {
	margin: 1.8em 0;
}

.mb-article .mb-content figure img {
	display: block;
	width: 100%;
}

.mb-article .mb-content figcaption {
	margin-top: 10px;
	font-size: 0.85rem;
	color: var(--mb-text-soft);
	text-align: center;
}

.mb-article .mb-content code {
	background: rgba(15, 42, 94, 0.07);
	padding: 2px 6px;
	border-radius: 6px;
	font-size: 0.9em;
}

.mb-article .mb-content pre {
	background: var(--mb-primary-dark);
	color: #e6edf7;
	padding: 18px 20px;
	border-radius: var(--mb-radius-sm);
	overflow-x: auto;
	margin: 1.6em 0;
}

.mb-article .mb-content pre code {
	background: none;
	padding: 0;
}

/* Tables + responsive wrapper (.mb-table-wrap added via JS) */
.mb-article .mb-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	font-size: 0.95rem;
}

.mb-article .mb-content th,
.mb-article .mb-content td {
	padding: 12px 16px;
	border: 1px solid var(--mb-border);
	text-align: left;
}

.mb-article .mb-content thead th {
	background: rgba(17, 98, 212, 0.08);
	color: var(--mb-primary-dark);
	font-weight: 700;
}

.mb-article .mb-table-wrap {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 1.6em 0;
	border-radius: var(--mb-radius-sm);
	border: 1px solid var(--mb-border);
}

.mb-article .mb-table-wrap table {
	margin: 0;
}

.mb-article .mb-table-wrap th,
.mb-article .mb-table-wrap td {
	border-left: 0;
	border-right: 0;
}

/* ------------------------------------------------------------------ *
 * Optional content helper blocks (usable inside the_content via class)
 * ------------------------------------------------------------------ */
.mb-article .mb-accent-box {
	margin: 1.8em 0;
	padding: 24px 28px;
	background: linear-gradient(135deg, rgba(17, 98, 212, 0.07), rgba(17, 98, 212, 0.02));
	border: 1px solid rgba(17, 98, 212, 0.15);
	border-radius: var(--mb-radius-sm);
}

.mb-article .mb-callout {
	margin: 1.8em 0;
	padding: 20px 24px;
	background: #fff;
	border: 1px solid var(--mb-border);
	border-left: 4px solid var(--mb-primary);
	border-radius: var(--mb-radius-sm);
	box-shadow: var(--mb-shadow-soft);
}

.mb-article .mb-checklist {
	list-style: none;
	padding-left: 0;
	margin: 1.6em 0;
}

.mb-article .mb-checklist li {
	position: relative;
	padding-left: 34px;
	margin-bottom: 0.8em;
}

.mb-article .mb-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(17, 98, 212, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231162d4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Pills (tag/keyword rows) */
.mb-article .mb-pill-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 1.4em 0;
	padding-left: 0;
	list-style: none;
}

.mb-article .mb-pill {
	display: inline-flex;
	align-items: center;
	padding: 7px 16px;
	border-radius: 999px;
	background: rgba(17, 98, 212, 0.08);
	border: 1px solid rgba(17, 98, 212, 0.18);
	color: var(--mb-primary-dark);
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.2;
}

/* Formula / highlighted equation block */
.mb-article .mb-formula {
	margin: 1.8em 0;
	padding: 22px 26px;
	background: var(--mb-primary-dark);
	color: #eaf1fc;
	border-radius: var(--mb-radius-sm);
	font-size: 1.05rem;
	line-height: 1.5;
	text-align: center;
	box-shadow: var(--mb-shadow-soft);
	overflow-x: auto;
}

.mb-article .mb-formula strong,
.mb-article .mb-formula b {
	color: #fff;
}

/* Single image with caption frame */
.mb-article .mb-image-wrap {
	margin: 1.8em 0;
	border-radius: var(--mb-radius-sm);
	overflow: hidden;
	box-shadow: var(--mb-shadow-soft);
	border: 1px solid var(--mb-border);
}

.mb-article .mb-image-wrap img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0;
}

.mb-article .mb-image-wrap figcaption {
	padding: 10px 16px;
	margin: 0;
	font-size: 0.85rem;
	color: var(--mb-text-soft);
	background: #fff;
	text-align: center;
}

/* Row of images */
.mb-article .mb-images-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin: 1.8em 0;
}

.mb-article .mb-images-row img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--mb-radius-sm);
}

/* Deliverables grid */
.mb-article .mb-deliv-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin: 1.8em 0;
}

.mb-article .mb-deliv-card {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--mb-border);
	border-radius: var(--mb-radius-sm);
	box-shadow: var(--mb-shadow-soft);
}

.mb-article .mb-deliv-icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(17, 98, 212, 0.10);
	color: var(--mb-primary);
	font-size: 1.4rem;
}

.mb-article .mb-deliv-icon .material-symbols-outlined {
	font-size: 1.5rem;
}

/* Use-case grid */
.mb-article .mb-usecase-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px;
	margin: 1.8em 0;
}

.mb-article .mb-usecase-card {
	padding: 24px;
	background: linear-gradient(135deg, rgba(17, 98, 212, 0.05), rgba(17, 98, 212, 0.01));
	border: 1px solid rgba(17, 98, 212, 0.14);
	border-radius: var(--mb-radius-sm);
}

.mb-article .mb-usecase-card h3,
.mb-article .mb-usecase-card h4 {
	margin-top: 0;
}

/* About / author-ish narrative block */
.mb-article .mb-about-block {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
	margin: 1.8em 0;
	padding: 24px 28px;
	background: #fff;
	border: 1px solid var(--mb-border);
	border-left: 4px solid var(--mb-primary);
	border-radius: var(--mb-radius-sm);
	box-shadow: var(--mb-shadow-soft);
}

.mb-article .mb-about-block img {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

/* ------------------------------------------------------------------ *
 * Tags
 * ------------------------------------------------------------------ */
.mb-article .mb-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.mb-article .mb-tags__item {
	font-size: 0.82rem;
	color: var(--mb-text-soft);
	text-decoration: none;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(15, 42, 94, 0.05);
}

.mb-article .mb-tags__item:hover {
	background: rgba(17, 98, 212, 0.12);
	color: var(--mb-primary);
}

.mb-article .mb-page-links {
	margin-top: 24px;
	font-weight: 600;
}

/* ------------------------------------------------------------------ *
 * FAQ accordion
 * ------------------------------------------------------------------ */
.mb-article .mb-faq {
	padding: 40px 48px;
}

.mb-article .mb-faq__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.mb-article .mb-faq-item {
	border: 1px solid var(--mb-border);
	border-radius: var(--mb-radius-sm);
	overflow: hidden;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mb-article .mb-faq-item.is-open {
	border-color: rgba(17, 98, 212, 0.35);
	box-shadow: var(--mb-shadow-soft);
}

.mb-article .mb-faq-item__heading {
	margin: 0;
	font-size: inherit;
	font-weight: inherit;
}

.mb-article .mb-faq-item__trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	background: none;
	border: 0;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--mb-primary-dark);
}

.mb-article .mb-faq-item__trigger:focus-visible {
	outline: 2px solid var(--mb-primary);
	outline-offset: -2px;
}

.mb-article .mb-faq-item__icon {
	position: relative;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
}

.mb-article .mb-faq-item__icon::before,
.mb-article .mb-faq-item__icon::after {
	content: "";
	position: absolute;
	background: var(--mb-primary);
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.mb-article .mb-faq-item__icon::before {
	top: 8px;
	left: 0;
	width: 18px;
	height: 2px;
}

.mb-article .mb-faq-item__icon::after {
	top: 0;
	left: 8px;
	width: 2px;
	height: 18px;
}

.mb-article .mb-faq-item__trigger[aria-expanded="true"] .mb-faq-item__icon::after {
	transform: scaleY(0);
	opacity: 0;
}

.mb-article .mb-faq-item__panel {
	padding: 0 22px 20px;
}

.mb-article .mb-faq-item__panel[hidden] {
	display: none;
}

.mb-article .mb-faq-item__answer {
	color: var(--mb-text-soft);
	line-height: 1.7;
}

.mb-article .mb-faq-item__answer p:last-child {
	margin-bottom: 0;
}

/* ------------------------------------------------------------------ *
 * Related resources
 * ------------------------------------------------------------------ */
.mb-article .mb-related {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.mb-article .mb-links-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
}

.mb-article .mb-related__card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px;
	text-decoration: none;
	color: var(--mb-text);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mb-article .mb-related__card:hover {
	transform: translateY(-3px);
	box-shadow: var(--mb-shadow);
}

.mb-article .mb-related__cat {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--mb-primary);
}

.mb-article .mb-related__title {
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--mb-primary-dark);
	margin: 0;
}

.mb-article .mb-related__excerpt {
	font-size: 0.92rem;
	line-height: 1.55;
	color: var(--mb-text-soft);
	margin: 0;
}

.mb-article .mb-related__meta {
	font-size: 0.8rem;
	color: var(--mb-text-soft);
	margin-top: auto;
}

.mb-article .mb-related__link {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--mb-primary);
}

/* ------------------------------------------------------------------ *
 * Back to top
 * ------------------------------------------------------------------ */
.mb-article-shell .mb-back-to-top {
	position: fixed;
	right: 24px;
	bottom: 96px; /* clears the site's sticky bottom CTA bar */
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 0;
	background: var(--mb-primary);
	color: #fff;
	cursor: pointer;
	box-shadow: var(--mb-shadow);
	z-index: 60;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mb-article-shell .mb-back-to-top[hidden] {
	display: none;
}

.mb-article-shell .mb-back-to-top.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.mb-article-shell .mb-back-to-top:hover {
	background: var(--mb-primary-dark);
}

.mb-article-shell .mb-back-to-top__icon {
	width: 12px;
	height: 12px;
	border-top: 2px solid #fff;
	border-left: 2px solid #fff;
	transform: rotate(45deg);
	margin-top: 4px;
}

.mb-article-shell .mb-back-to-top:focus-visible {
	outline: 2px solid var(--mb-primary-dark);
	outline-offset: 2px;
}

/* ------------------------------------------------------------------ *
 * Responsive
 * ------------------------------------------------------------------ */
@media (max-width: 1024px) {
	.mb-article .mb-article__inner {
		padding: 20px 20px 64px;
	}

	.mb-article .mb-intro-card,
	.mb-article .mb-content-section,
	.mb-article .mb-meta-card,
	.mb-article .mb-faq {
		padding: 32px 32px;
	}

	.mb-article .mb-intro-card::after {
		left: 32px;
		right: 32px;
	}
}

@media (max-width: 640px) {
	.mb-article .mb-article__inner {
		padding: 16px 16px 56px;
	}

	.mb-article .mb-intro-card,
	.mb-article .mb-content-section,
	.mb-article .mb-meta-card,
	.mb-article .mb-faq {
		padding: 24px 20px;
	}

	.mb-article .mb-intro-card::after {
		left: 20px;
		right: 20px;
	}

	.mb-article .mb-links-grid {
		grid-template-columns: 1fr;
	}

	.mb-article .mb-intro-card__media {
		margin-top: 22px;
	}

	.mb-article-shell .mb-back-to-top {
		right: 16px;
		bottom: 84px;
	}
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
	.mb-article-shell .mb-progress__bar,
	.mb-article-shell .mb-back-to-top,
	.mb-article .mb-related__card,
	.mb-article .mb-ai-btn,
	.mb-article .mb-faq-item__icon::before,
	.mb-article .mb-faq-item__icon::after {
		transition: none;
	}
}

/* ================================================================== *
 * FINAL WIDE PREMIUM LAYOUT — authoritative overrides
 * ------------------------------------------------------------------
 * Placed last so it wins the cascade regardless of earlier values or
 * stale combined CSS. Cards fill the working width (up to 1540px) while
 * long-form text stays at a readable ~960px measure.
 * ================================================================== */
.mb-article-shell {
	background: linear-gradient(135deg, #FDFBF7 0%, #F3F6FB 100%);
}

.mb-article .mb-article__inner {
	width: 100%;
	max-width: 1540px;
	margin: 0 auto;
	padding: 40px 40px 88px;
}

.mb-article .mb-main {
	width: 100%;
	max-width: none;
	margin: 0 auto;
	gap: 32px; /* vertical rhythm between cards (replaces per-card margins) */
}

/* Every top-level block uses the full card width. */
.mb-article .mb-intro-card,
.mb-article .mb-content-section,
.mb-article .mb-meta-card,
.mb-article .mb-faq,
.mb-article .mb-related,
.mb-article .mb-ai-share {
	width: 100%;
	max-width: none;
}

/* Larger, softer premium card surface. */
.mb-article .mb-card {
	background: #fff;
	border-radius: 22px;
	border: 1px solid rgba(17, 98, 212, 0.10);
	box-shadow: 0 10px 42px rgba(17, 98, 212, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* Intro card: premium but compact. */
.mb-article .mb-intro-card {
	position: relative;
	overflow: hidden;
	margin-bottom: 32px; /* sits outside .mb-main, so it keeps its own spacing */
	background:
		radial-gradient(800px 420px at 0% 0%, rgba(17, 98, 212, 0.12), transparent 60%),
		linear-gradient(135deg, #ffffff 0%, #f6f9ff 100%);
}

/* Spacing inside .mb-main is handled by its gap, not per-card margins. */
.mb-article .mb-content-section {
	margin-bottom: 0;
}

/* Readability inside the wide cards. */
.mb-article .mb-content {
	font-size: 18px;
	line-height: 1.85;
}

.mb-article .mb-content > p,
.mb-article .mb-content > ul,
.mb-article .mb-content > ol,
.mb-article .mb-content > blockquote {
	max-width: 960px;
}

.mb-article .mb-content > h2 {
	font-size: clamp(30px, 3vw, 42px);
	margin-bottom: 24px;
	max-width: 960px;
}

.mb-article .mb-content > h3 {
	font-size: clamp(21px, 2vw, 28px);
	max-width: 960px;
}

/* Media, tables and layout grids span the full card width. */
.mb-article .mb-content > figure,
.mb-article .mb-content .wp-block-image,
.mb-article .mb-content .mb-table-wrap,
.mb-article .mb-content table,
.mb-article .mb-accent-box,
.mb-article .mb-images-row,
.mb-article .mb-deliv-grid,
.mb-article .mb-usecase-grid,
.mb-article .mb-about-block {
	max-width: none;
	width: 100%;
}

/* Bigger premium title/subtitle. */
.mb-article .mb-hero__title {
	max-width: 1050px;
	font-size: clamp(42px, 4vw, 64px);
	line-height: 1.05;
}

.mb-article .mb-hero__subtitle {
	max-width: 900px;
	font-size: 20px;
	line-height: 1.65;
}

/* Roomy desktop card padding (kept off small screens so mobile stays tight). */
@media (min-width: 1025px) {
	.mb-article .mb-intro-card,
	.mb-article .mb-content-section {
		padding: 52px 64px;
	}

	.mb-article .mb-intro-card::after {
		left: 64px;
		right: 64px;
	}
}

/* ================================================================== *
 * AI share block
 * ================================================================== */
.mb-article .mb-ai-share {
	text-align: center;
	padding: 48px 56px;
}

.mb-article .mb-divider--center {
	margin-left: auto;
	margin-right: auto;
}

.mb-article .mb-ai-share__text {
	max-width: 680px;
	margin: 0 auto 12px;
	font-size: 18px;
	line-height: 1.65;
	color: var(--mb-text-soft);
}

.mb-article .mb-ai-share__note {
	max-width: 680px;
	margin: 0 auto 26px;
	font-size: 14px;
	line-height: 1.5;
	color: #94a3b8;
}

.mb-article .mb-ai-buttons {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 12px;
	margin-top: 28px;
}

.mb-article .mb-ai-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	padding: 14px 18px;
	border-radius: 14px;
	border: none;
	cursor: pointer;
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.mb-article .mb-ai-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.mb-article .mb-ai-btn:focus-visible {
	outline: 2px solid var(--mb-primary-dark);
	outline-offset: 3px;
}

.mb-article .mb-ai-btn--chatgpt {
	background: #10a37f;
}

.mb-article .mb-ai-btn--claude {
	background: #7c3aed;
}

.mb-article .mb-ai-btn--perplexity {
	background: #22b8cf;
}

.mb-article .mb-ai-btn--gemini {
	background: linear-gradient(135deg, #4285f4, #d96570);
}

.mb-article .mb-ai-btn--grok {
	background: #111;
}

.mb-article .mb-ai-btn--copy {
	background: #f97316;
}

.mb-article .mb-ai-toast {
	position: fixed;
	bottom: 28px;
	left: 50%;
	transform: translateX(-50%) translateY(18px);
	opacity: 0;
	pointer-events: none;
	z-index: 9998;
	background: var(--mb-primary-dark);
	color: #fff;
	padding: 11px 24px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
	transition: opacity 0.3s ease, transform 0.3s ease;
	white-space: nowrap;
}

.mb-article .mb-ai-toast.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px) {
	.mb-article .mb-ai-share {
		padding: 36px 22px;
	}

	.mb-article .mb-ai-buttons {
		grid-template-columns: 1fr;
	}
}

/* ================================================================== *
 * Author card
 * ================================================================== */
.mb-article .mb-author-card {
	width: 100%;
	max-width: none;
	padding: 40px 48px;
}

.mb-article .mb-author-card__inner {
	display: flex;
	align-items: flex-start;
	gap: 24px;
}

.mb-article .mb-author-card__avatar {
	flex-shrink: 0;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #fff;
	box-shadow: 0 6px 20px rgba(17, 98, 212, 0.18);
	background: #eef3fb;
}

.mb-article .mb-author-card__body {
	min-width: 0;
}

.mb-article .mb-author-card__name {
	font-family: "DM Serif Display", Georgia, serif;
	font-weight: 400;
	font-size: clamp(1.4rem, 2.2vw, 1.85rem);
	line-height: 1.2;
	color: var(--mb-primary-dark);
	margin: 0 0 4px;
}

.mb-article .mb-author-card__position {
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--mb-primary);
	margin: 0 0 14px;
}

.mb-article .mb-author-card__bio {
	font-size: 1rem;
	line-height: 1.7;
	color: var(--mb-text-soft);
	margin: 0 0 18px;
	max-width: 760px;
}

.mb-article .mb-author-card__socials {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.mb-article .mb-author-card__social {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px solid rgba(17, 98, 212, 0.20);
	background: rgba(17, 98, 212, 0.06);
	color: var(--mb-primary);
	font-size: 0.85rem;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mb-article .mb-author-card__social:hover {
	background: var(--mb-primary);
	color: #fff;
	transform: translateY(-2px);
}

.mb-article .mb-author-card__social:focus-visible {
	outline: 2px solid var(--mb-primary-dark);
	outline-offset: 2px;
}

/* =========================================================
   Related resources — blog page style cards
   Used only on single post template
   ========================================================= */

.mb-article .mb-related-blog-style {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.mb-article .mb-related__header {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mb-article .mb-related__eyebrow {
	display: inline-flex;
	align-self: flex-start;
	color: var(--mb-primary);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.mb-article .mb-related-blog-list {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.mb-article .mb-related-blog-card {
	display: grid;
	grid-template-columns: minmax(0, 1.18fr) minmax(380px, 0.82fr);
	min-height: 360px;
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(17, 98, 212, 0.10);
	border-radius: 26px;
	box-shadow: 0 18px 56px rgba(15, 42, 94, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.mb-article .mb-related-blog-card:hover {
	transform: translateY(-3px);
	border-color: rgba(17, 98, 212, 0.18);
	box-shadow: 0 24px 70px rgba(15, 42, 94, 0.12), 0 1px 4px rgba(0, 0, 0, 0.05);
}

.mb-article .mb-related-blog-card__media {
	display: block;
	position: relative;
	min-height: 360px;
	background: #eef4fb;
	overflow: hidden;
}

.mb-article .mb-related-blog-card__image {
	width: 100%;
	height: 100%;
	min-height: 360px;
	display: block;
	object-fit: cover;
	object-position: center;
	transition: transform 0.35s ease;
}

.mb-article .mb-related-blog-card:hover .mb-related-blog-card__image {
	transform: scale(1.025);
}

.mb-article .mb-related-blog-card__placeholder {
	width: 100%;
	height: 100%;
	min-height: 360px;
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(circle at 20% 20%, rgba(17, 98, 212, 0.16), transparent 36%),
		linear-gradient(135deg, #eef4fb 0%, #f8fbff 100%);
	color: var(--mb-primary-dark);
	font-size: 52px;
	font-weight: 800;
	letter-spacing: -0.04em;
}

.mb-article .mb-related-blog-card__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 48px 54px;
}

.mb-article .mb-related-blog-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
}

.mb-article .mb-related-blog-card__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 14px;
	border-radius: 999px;
	background: rgba(17, 98, 212, 0.10);
	color: var(--mb-primary);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1;
}

.mb-article .mb-related-blog-card__badge:hover {
	background: var(--mb-primary);
	color: #fff;
}

.mb-article .mb-related-blog-card__date {
	color: #64748b;
	font-size: 15px;
	font-weight: 700;
}

.mb-article .mb-related-blog-card__title {
	margin: 0 0 24px;
	color: var(--mb-primary-dark);
	font-family: inherit;
	font-size: clamp(26px, 2.4vw, 40px);
	font-weight: 800;
	line-height: 1.13;
	letter-spacing: -0.035em;
}

.mb-article .mb-related-blog-card__title a {
	color: inherit;
	text-decoration: none;
}

.mb-article .mb-related-blog-card__title a:hover {
	color: var(--mb-primary);
}

.mb-article .mb-related-blog-card__excerpt {
	margin: 0 0 30px;
	color: var(--mb-text-soft);
	font-size: 18px;
	line-height: 1.75;
	max-width: 650px;
}

.mb-article .mb-related-blog-card__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	align-self: flex-start;
	min-height: 54px;
	padding: 0 28px;
	border: 1px solid rgba(17, 98, 212, 0.16);
	border-radius: 999px;
	background: #fff;
	color: #020817;
	font-size: 16px;
	font-weight: 800;
	text-decoration: none;
	box-shadow: 0 8px 22px rgba(15, 42, 94, 0.05);
	transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.mb-article .mb-related-blog-card__button:hover {
	transform: translateY(-2px);
	border-color: var(--mb-primary);
	background: var(--mb-primary);
	color: #fff;
}

.mb-article .mb-related-blog-card__arrow {
	font-size: 24px;
	line-height: 1;
	transform: translateY(-1px);
}

/* Medium desktop / tablet */
@media (max-width: 1024px) {
	.mb-article .mb-related-blog-card {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.mb-article .mb-related-blog-card__media,
	.mb-article .mb-related-blog-card__image,
	.mb-article .mb-related-blog-card__placeholder {
		min-height: 320px;
	}

	.mb-article .mb-related-blog-card__content {
		padding: 36px 34px 40px;
	}
}

/* Mobile */
@media (max-width: 640px) {
	.mb-article .mb-related-blog-style {
		gap: 18px;
	}

	.mb-article .mb-related__eyebrow {
		font-size: 10px;
		letter-spacing: 0.16em;
	}

	.mb-article .mb-related-blog-list {
		gap: 18px;
	}

	.mb-article .mb-related-blog-card {
		border-radius: 20px;
	}

	.mb-article .mb-related-blog-card__media,
	.mb-article .mb-related-blog-card__image,
	.mb-article .mb-related-blog-card__placeholder {
		min-height: 210px;
	}

	.mb-article .mb-related-blog-card__content {
		padding: 24px 20px 26px;
	}

	.mb-article .mb-related-blog-card__meta {
		gap: 10px;
		margin-bottom: 16px;
	}

	.mb-article .mb-related-blog-card__badge {
		padding: 6px 11px;
		font-size: 10px;
	}

	.mb-article .mb-related-blog-card__date {
		font-size: 13px;
	}

	.mb-article .mb-related-blog-card__title {
		font-size: clamp(22px, 6.4vw, 28px);
		line-height: 1.16;
		margin-bottom: 14px;
	}

	.mb-article .mb-related-blog-card__excerpt {
		font-size: 15px;
		line-height: 1.65;
		margin-bottom: 22px;
	}

	.mb-article .mb-related-blog-card__button {
		width: 100%;
		min-height: 48px;
		font-size: 14px;
	}
}

/* =========================================================
   FINAL MOBILE ARTICLE PATCH
   Fix mobile typography, spacing and sticky bottom overlap
   ========================================================= */

@media (max-width: 640px) {
	.mb-article-shell {
		background: linear-gradient(135deg, #FDFBF7 0%, #F3F6FB 100%);
		padding-bottom: 96px; /* space for mobile sticky CTA bar */
	}

	.mb-article .mb-article__inner {
		max-width: none;
		padding: 14px 14px 112px;
	}

	.mb-article .mb-main {
		gap: 22px;
	}

	/* Compact intro card */
	.mb-article .mb-intro-card {
		padding: 26px 20px 24px;
		margin-bottom: 22px;
		border-radius: 18px;
		box-shadow: 0 10px 34px rgba(17, 98, 212, 0.10), 0 1px 4px rgba(0, 0, 0, 0.04);
	}

	.mb-article .mb-hero__badge {
		font-size: 10px;
		padding: 5px 12px;
		margin-bottom: 16px;
		letter-spacing: 0.13em;
	}

	.mb-article .mb-hero__title {
		max-width: 100%;
		font-size: clamp(30px, 8.8vw, 36px);
		line-height: 1.08;
		letter-spacing: -0.02em;
		margin-bottom: 16px;
	}

	.mb-article .mb-hero__subtitle {
		max-width: 100%;
		font-size: 16px;
		line-height: 1.62;
		margin-bottom: 18px;
		color: #334155;

		display: -webkit-box;
		-webkit-line-clamp: 5;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.mb-article .mb-hero__meta {
		gap: 6px 8px;
		font-size: 12px;
		line-height: 1.5;
	}

	.mb-article .mb-hero__meta-sep {
		opacity: 0.55;
	}

	/* Content cards */
	.mb-article .mb-content-section,
	.mb-article .mb-meta-card,
	.mb-article .mb-faq,
	.mb-article .mb-ai-share,
	.mb-article .mb-author-card {
		padding: 26px 20px;
		border-radius: 18px;
		margin-bottom: 0;
		box-shadow: 0 8px 28px rgba(17, 98, 212, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
	}

	/* Author card stacks and centers on phones */
	.mb-article .mb-author-card__inner {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 16px;
	}

	.mb-article .mb-author-card__socials {
		justify-content: center;
	}

	.mb-article .mb-card {
		border-radius: 18px;
	}

	.mb-article .mb-content {
		font-size: 16px;
		line-height: 1.72;
	}

	.mb-article .mb-content > h2 {
		font-size: clamp(25px, 7.2vw, 31px);
		line-height: 1.13;
		letter-spacing: -0.015em;
		margin: 0 0 16px;
		max-width: 100%;
	}

	.mb-article .mb-content > h3 {
		font-size: clamp(19px, 5.4vw, 23px);
		line-height: 1.22;
		margin: 24px 0 10px;
		max-width: 100%;
	}

	.mb-article .mb-content > p,
	.mb-article .mb-content > ul,
	.mb-article .mb-content > ol,
	.mb-article .mb-content > blockquote {
		max-width: 100%;
	}

	.mb-article .mb-content p {
		margin-bottom: 1.15em;
	}

	.mb-article .mb-content ul,
	.mb-article .mb-content ol {
		padding-left: 1.15em;
		margin-bottom: 1.15em;
	}

	.mb-article .mb-content li {
		margin-bottom: 0.55em;
	}

	/* Images should not feel oversized or boxed awkwardly */
	.mb-article .mb-content figure,
	.mb-article .mb-image-wrap {
		margin: 20px -4px;
		border-radius: 14px;
	}

	.mb-article .mb-content img,
	.mb-article .mb-image-wrap img {
		border-radius: 14px;
	}

	/* Tables: keep horizontal scroll and reduce density */
	.mb-article .mb-table-wrap {
		margin: 18px -4px;
		border-radius: 14px;
	}

	.mb-article .mb-content table {
		font-size: 13px;
		min-width: 720px;
	}

	.mb-article .mb-content th,
	.mb-article .mb-content td {
		padding: 10px 12px;
	}

	/* Component grids collapse cleanly */
	.mb-article .mb-images-row,
	.mb-article .mb-deliv-grid,
	.mb-article .mb-usecase-grid,
	.mb-article .mb-links-grid,
	.mb-article .mb-ai-buttons {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.mb-article .mb-accent-box,
	.mb-article .mb-about-block,
	.mb-article .mb-callout {
		padding: 20px 18px;
		border-radius: 16px;
		margin: 20px 0;
	}

	.mb-article .mb-pill-row {
		gap: 8px;
	}

	.mb-article .mb-pill {
		font-size: 12px;
		padding: 6px 10px;
	}

	.mb-article .mb-formula {
		font-size: 12px;
		line-height: 1.45;
		padding: 12px 14px;
		white-space: normal;
	}

	/* FAQ */
	.mb-article .mb-faq-item__trigger {
		padding: 16px 18px;
		font-size: 15px;
		line-height: 1.35;
	}

	.mb-article .mb-faq-item__panel {
		padding: 0 18px 18px;
	}

	/* AI share */
	.mb-article .mb-ai-share {
		text-align: center;
	}

	.mb-article .mb-ai-share__text {
		font-size: 15px;
		line-height: 1.6;
	}

	.mb-article .mb-ai-share__note {
		font-size: 12px;
	}

	.mb-article .mb-ai-btn {
		min-height: 48px;
		font-size: 13px;
		border-radius: 12px;
	}

	/* Back-to-top should not sit under mobile sticky CTA */
	.mb-article-shell .mb-back-to-top {
		right: 16px;
		bottom: 86px;
		width: 42px;
		height: 42px;
	}
}

/* Extra small phones */
@media (max-width: 380px) {
	.mb-article .mb-article__inner {
		padding-left: 12px;
		padding-right: 12px;
	}

	.mb-article .mb-intro-card,
	.mb-article .mb-content-section,
	.mb-article .mb-meta-card,
	.mb-article .mb-faq,
	.mb-article .mb-related,
	.mb-article .mb-ai-share,
	.mb-article .mb-author-card {
		padding-left: 18px;
		padding-right: 18px;
	}

	.mb-article .mb-hero__title {
		font-size: clamp(28px, 8.4vw, 33px);
	}

	.mb-article .mb-content > h2 {
		font-size: clamp(23px, 7vw, 29px);
	}
}

/* =========================================================
   FINAL PREMIUM REDESIGN (authoritative, last in file)
   Strong wide hero + larger article cards + landing blocks.
   Backend logic unchanged; visual only. Scoped to .mb-article.
   ========================================================= */

/* ---- Layout: wide premium main ---- */
.mb-article .mb-article__inner {
	max-width: 1540px;
	padding: 48px 40px 88px;
}

.mb-article .mb-main {
	width: 100%;
	max-width: none;
	gap: 32px;
}

/* ---- Strong hero ---- */
.mb-article .mb-intro-card {
	padding: 72px 72px;
	margin-bottom: 36px;
	text-align: center;
	border-radius: 28px;
	background:
		radial-gradient(700px 420px at 85% 0%, rgba(96, 165, 250, 0.22), transparent 60%),
		radial-gradient(620px 380px at 0% 100%, rgba(17, 98, 212, 0.16), transparent 60%),
		linear-gradient(135deg, #0a1f4e 0%, #1162d4 58%, #3b82f6 100%);
	color: #fff;
	overflow: hidden;
	box-shadow: 0 24px 70px rgba(10, 31, 78, 0.28);
}

.mb-article .mb-intro-card::after {
	display: none; /* drop the old light divider line on the dark hero */
}

.mb-article .mb-intro-card .mb-hero__badge {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.24);
}

.mb-article .mb-intro-card .mb-hero__badge:hover {
	background: rgba(255, 255, 255, 0.26);
	color: #fff;
}

.mb-article .mb-intro-card .mb-hero__title {
	max-width: 1050px;
	margin-left: auto;
	margin-right: auto;
	color: #fff;
	font-size: clamp(42px, 4.4vw, 68px);
	line-height: 1.04;
}

.mb-article .mb-intro-card .mb-hero__subtitle {
	max-width: 860px;
	margin-left: auto;
	margin-right: auto;
	color: rgba(255, 255, 255, 0.88);
	font-size: 20px;
}

.mb-article .mb-intro-card .mb-hero__meta {
	justify-content: center;
	color: rgba(255, 255, 255, 0.78);
}

.mb-article .mb-intro-card .mb-hero__meta-sep {
	color: rgba(255, 255, 255, 0.45);
}

.mb-article .mb-intro-card .mb-hero__meta-updated {
	color: #fff;
}

/* ---- Larger article cards ---- */
.mb-article .mb-content-section {
	padding: 56px 72px;
	border-radius: 24px;
	box-shadow: 0 8px 40px rgba(17, 98, 212, 0.07), 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* Readable text column inside the wide cards… */
.mb-article .mb-content > p,
.mb-article .mb-content > ul,
.mb-article .mb-content > ol,
.mb-article .mb-content > blockquote,
.mb-article .mb-content > h2,
.mb-article .mb-content > h3 {
	max-width: 980px;
}

/* …while visual blocks use the full card width. */
.mb-article .mb-content > figure,
.mb-article .mb-content .mb-image-wrap,
.mb-article .mb-table-wrap,
.mb-article .mb-usecase-grid,
.mb-article .mb-deliv-grid,
.mb-article .mb-images-row,
.mb-article .mb-accent-box,
.mb-article .mb-about-block {
	width: 100%;
	max-width: none;
}

/* ---- Landing-style components: explicit columns ---- */
.mb-article .mb-usecase-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.mb-article .mb-deliv-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.mb-article .mb-images-row {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

/* Stronger accent / callout so they don't read as plain text */
.mb-article .mb-accent-box {
	padding: 32px 36px;
	border-radius: 20px;
	background: linear-gradient(135deg, rgba(17, 98, 212, 0.10), rgba(59, 130, 246, 0.04));
	border: 1px solid rgba(17, 98, 212, 0.18);
}

.mb-article .mb-callout {
	padding: 26px 30px;
	border-left-width: 5px;
	border-radius: 16px;
}

/* ---- Tablet ---- */
@media (max-width: 1024px) {
	.mb-article .mb-article__inner {
		padding: 32px 24px 80px;
	}

	.mb-article .mb-intro-card {
		padding: 52px 40px;
		border-radius: 24px;
	}

	.mb-article .mb-intro-card .mb-hero__title {
		font-size: clamp(34px, 5vw, 48px);
	}

	.mb-article .mb-content-section {
		padding: 40px 40px;
		border-radius: 20px;
	}

	.mb-article .mb-usecase-grid,
	.mb-article .mb-deliv-grid,
	.mb-article .mb-images-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---- Mobile ---- */
@media (max-width: 640px) {
	.mb-article .mb-article__inner {
		padding: 16px 14px 112px;
	}

	.mb-article .mb-intro-card {
		padding: 38px 20px;
		margin-bottom: 22px;
		border-radius: 20px;
	}

	.mb-article .mb-intro-card .mb-hero__title {
		font-size: clamp(28px, 8vw, 34px);
		line-height: 1.1;
	}

	.mb-article .mb-intro-card .mb-hero__subtitle {
		font-size: 16px;
	}

	.mb-article .mb-content-section {
		padding: 24px 20px;
		border-radius: 18px;
	}

	.mb-article .mb-usecase-grid,
	.mb-article .mb-deliv-grid,
	.mb-article .mb-images-row {
		grid-template-columns: 1fr;
	}
}

/* =========================================================
   FINAL VISUAL POLISH (authoritative, last in file)
   Visual only — no layout/logic changes. Scoped to .mb-article.
   ========================================================= */

/* ---- Hero: a touch more premium on desktop ---- */
@media (min-width: 1025px) {
	.mb-article .mb-intro-card {
		padding: 88px 80px;
		margin-bottom: 42px;
		border-radius: 30px;
	}

	.mb-article .mb-intro-card .mb-hero__title {
		font-size: clamp(48px, 4.8vw, 74px);
		line-height: 1.02;
		max-width: 1120px;
	}

	.mb-article .mb-intro-card .mb-hero__subtitle {
		font-size: 21px;
		line-height: 1.65;
		max-width: 900px;
		margin-top: 20px;
	}

	.mb-article .mb-intro-card .mb-hero__meta {
		margin-top: 24px;
	}
}

/* ---- Content cards: richer radius, softer shadow, more breathing room ---- */
@media (min-width: 1025px) {
	.mb-article .mb-main {
		gap: 38px;
	}

	.mb-article .mb-content-section,
	.mb-article .mb-faq,
	.mb-article .mb-author-card,
	.mb-article .mb-related,
	.mb-article .mb-ai-share {
		border-radius: 26px;
		box-shadow:
			0 18px 56px rgba(15, 42, 94, 0.08),
			0 1px 4px rgba(0, 0, 0, 0.04);
	}
}

/* ---- Author card: full premium card from tablet up ---- */
@media (min-width: 768px) {
	.mb-article .mb-author-card {
		padding: 28px 34px;
	}

	.mb-article .mb-author-card__inner {
		display: grid;
		grid-template-columns: 84px 1fr auto;
		align-items: center;
		gap: 22px;
	}

	.mb-article .mb-author-card__avatar {
		width: 84px;
		height: 84px;
	}

	.mb-article .mb-author-card__name {
		font-size: 20px;
		margin-bottom: 4px;
	}

	.mb-article .mb-author-card__position {
		font-size: 14px;
	}

	.mb-article .mb-author-card__bio {
		margin-top: 8px;
		font-size: 15px;
		line-height: 1.55;
		max-width: 760px;
	}
}

/* ---- AI share: calmer, evenly sized buttons ---- */
@media (min-width: 1025px) {
	.mb-article .mb-ai-share {
		padding: 56px 64px;
	}

	.mb-article .mb-ai-buttons {
		max-width: 960px;
		margin-left: auto;
		margin-right: auto;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.mb-article .mb-ai-btn {
		min-height: 54px;
	}
}

/* =========================================================
   FINAL MICRO POLISH — article balance
   ========================================================= */

@media (min-width: 1025px) {
	/* Hero чуть компактнее, чтобы быстрее начинался контент */
	.mb-article .mb-intro-card {
		padding-top: 76px;
		padding-bottom: 76px;
	}

	/* Контентная карточка: сохранить premium-воздух, но не делать простыню */
	.mb-article .mb-content-section {
		padding-top: 52px;
		padding-bottom: 56px;
	}

	/* Текстовые блоки чуть шире, но остаются читаемыми */
	.mb-article .mb-content > p,
	.mb-article .mb-content > ul,
	.mb-article .mb-content > ol,
	.mb-article .mb-content > blockquote,
	.mb-article .mb-content > h2,
	.mb-article .mb-content > h3,
	.mb-article .mb-content > h4 {
		max-width: 1020px;
	}

	/* Большие изображения в статье не должны выглядеть как огромная простыня */
	.mb-article .mb-content > figure,
	.mb-article .mb-content .wp-block-image,
	.mb-article .mb-image-wrap {
		max-width: 1120px;
		margin-left: auto;
		margin-right: auto;
	}

	.mb-article .mb-content > figure img,
	.mb-article .mb-content .wp-block-image img,
	.mb-article .mb-image-wrap img {
		width: 100%;
		max-height: 720px;
		object-fit: contain;
		background: #f8fafc;
	}

	/* Но таблицы и grid-компоненты пусть остаются широкими */
	.mb-article .mb-table-wrap,
	.mb-article .mb-usecase-grid,
	.mb-article .mb-deliv-grid,
	.mb-article .mb-images-row,
	.mb-article .mb-accent-box,
	.mb-article .mb-about-block {
		max-width: none;
		width: 100%;
	}
}

@media (max-width: 640px) {
	/* На mobile не ограничивать изображения через desktop max-height */
	.mb-article .mb-content > figure img,
	.mb-article .mb-content .wp-block-image img,
	.mb-article .mb-image-wrap img {
		max-height: none;
		object-fit: contain;
	}
}

/* =========================================================
   FINAL BALANCE FIX
   1) Article text fills its card (was stopping at ~2/3 width).
   2) Restore list markers removed by the theme's global reset.
   Scoped to .mb-article; last in file so it wins the cascade.
   ========================================================= */

/* --- 1. List markers (theme preflight sets ul/ol list-style:none) --- */
.mb-article .mb-content ul:not(.mb-checklist):not(.mb-pill-row) {
	list-style: disc outside;
	padding-left: 1.5em;
}

.mb-article .mb-content ol {
	list-style: decimal outside;
	padding-left: 1.5em;
}

.mb-article .mb-content li {
	display: list-item;
}

.mb-article .mb-content ul:not(.mb-checklist):not(.mb-pill-row) > li::marker,
.mb-article .mb-content ol > li::marker {
	color: var(--mb-primary);
}

/* Nested lists keep a sensible marker + spacing */
.mb-article .mb-content li > ul:not(.mb-checklist),
.mb-article .mb-content li > ol {
	margin: 0.5em 0 0.5em;
}

.mb-article .mb-content li > ul:not(.mb-checklist) {
	list-style: circle outside;
}

/* Re-assert the custom check-mark list has NO disc marker */
.mb-article .mb-checklist,
.mb-article .mb-content ul.mb-checklist {
	list-style: none;
	padding-left: 0;
}

/* --- 2. Let long-form text fill the card on desktop --- */
@media (min-width: 1025px) {
	.mb-article .mb-article__inner {
		max-width: 1200px;
	}

	.mb-article .mb-content-section {
		padding-left: 64px;
		padding-right: 64px;
	}

	.mb-article .mb-content > p,
	.mb-article .mb-content > ul,
	.mb-article .mb-content > ol,
	.mb-article .mb-content > blockquote,
	.mb-article .mb-content > h2,
	.mb-article .mb-content > h3,
	.mb-article .mb-content > h4 {
		max-width: none;
	}
}

/* =========================================================
   RELATED CARD IMAGE — show the whole photo (no cropping)
   ========================================================= */
.mb-article .mb-related-blog-card__media {
	background: #eef4fb;
}

.mb-article .mb-related-blog-card__image {
	object-fit: contain;
	object-position: center;
	background: #eef4fb;
}

/* =========================================================
   RELATED CARD IMAGE v2 — fill cleanly: no letterbox, minimal crop
   Media gets a fixed landscape ratio; content is kept compact so it
   fits that height, so the photo shows (almost) whole and edge-to-edge.
   ========================================================= */
.mb-article .mb-related-blog-card__image {
	object-fit: cover;
	object-position: center;
}

@media (min-width: 1025px) {
	.mb-article .mb-related-blog-card__media {
		min-height: 0;
		aspect-ratio: 3 / 2;
	}

	.mb-article .mb-related-blog-card__image {
		min-height: 0;
		height: 100%;
	}

	.mb-article .mb-related-blog-card__content {
		padding: 40px 48px;
	}

	.mb-article .mb-related-blog-card__title {
		font-size: clamp(24px, 1.9vw, 32px);
		margin-bottom: 16px;
	}

	.mb-article .mb-related-blog-card__excerpt {
		margin-bottom: 22px;
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
}

/* =========================================================
   WIDEN CONTENT TO HEADER WIDTH
   Header content = max-w-7xl (1280) − lg:px-8 (32) = 1216px.
   __inner 1360 with its 40px padding → main column = 1280 (matches the
   header box); content-section padding 32 → text = 1216 (matches header
   content) and lines up with the header's left/right edges.
   ========================================================= */
@media (min-width: 1025px) {
	.mb-article .mb-article__inner {
		max-width: 1360px;
	}

	.mb-article .mb-content-section {
		padding-left: 32px;
		padding-right: 32px;
	}
}

/* =========================================================
   RELATED CARD IMAGE v3 — match the blog archive cards:
   the media box takes the featured images' own 16:9 ratio, so
   the photo shows whole and edge-to-edge. If the text column
   ever runs taller than that (long titles on narrow desktops),
   object-fit: contain keeps the full photo visible instead of
   cropping it — the #eef4fb media background fills the gap.
   ========================================================= */
.mb-article .mb-related-blog-card__media {
	min-height: 0;
	aspect-ratio: 16 / 9;
}

.mb-article .mb-related-blog-card__image {
	min-height: 0;
	height: 100%;
	object-fit: contain;
}

.mb-article .mb-related-blog-card__placeholder {
	min-height: 0;
	height: 100%;
}
