/* Belle-Ve Bricks branded editorial components */
.bvseo-rich {
	--bvb-rich-navy: #0d1325;
	--bvb-rich-ink: #111827;
	--bvb-rich-muted: #526075;
	--bvb-rich-purple: #6848f5;
	--bvb-rich-purple-strong: #5136d9;
	--bvb-rich-purple-soft: #f3f0ff;
	--bvb-rich-coral: #d9485b;
	--bvb-rich-coral-soft: #fff0f2;
	--bvb-rich-mint: #0f9f78;
	--bvb-rich-mint-soft: #e9fbf5;
	--bvb-rich-line: #cbd2df;
	margin-block: clamp(1.5rem, 3vw, 2.6rem);
	padding: clamp(1.1rem, 2.8vw, 1.65rem);
	border: 1px solid var(--bvb-rich-line);
	border-radius: 16px;
	background: linear-gradient(180deg, #ffffff 0%, #fbfbff 100%);
	color: var(--bvb-rich-ink);
	font: inherit;
	line-height: 1.65;
	overflow-wrap: anywhere;
	box-shadow: 0 12px 34px rgba(13, 19, 37, .08);
}

.bvseo-rich :where(h2, h3, h4, strong, th, summary) {
	color: var(--bvb-rich-ink);
}

.bvseo-rich :where(p, li, td, figcaption, label, output) {
	color: var(--bvb-rich-ink);
}

.bvseo-rich :where(h2, h3) {
	margin-top: 0;
	line-height: 1.25;
	letter-spacing: -.018em;
}

.bvseo-rich h2 {
	font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.bvseo-rich h3 {
	font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.bvseo-rich a {
	color: #4330bd;
	font-weight: 650;
	text-decoration-thickness: .08em;
	text-underline-offset: .2em;
}

.bvseo-rich a:hover {
	color: #30216f;
}

.bvseo-rich a:focus-visible,
.bvseo-rich summary:focus-visible,
.bvseo-rich button:focus-visible,
.bvseo-rich input:focus-visible {
	outline: 3px solid #2563eb;
	outline-offset: 3px;
	border-radius: 4px;
}

.bvseo-rich-eyebrow {
	display: block;
	margin-bottom: .35rem;
	color: var(--bvb-rich-purple-strong) !important;
	font-size: .72rem;
	font-weight: 850;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.bvseo-rich-heading {
	margin-bottom: 1rem;
}

/* Key Takeaways */
.bvseo-rich-takeaways {
	position: relative;
	padding-left: clamp(1.35rem, 3.3vw, 2rem);
	border: 1px solid #d8d0ff;
	border-left: 7px solid var(--bvb-rich-purple);
	background: linear-gradient(135deg, #ffffff 0%, var(--bvb-rich-purple-soft) 100%);
}

.bvseo-rich-takeaways::before {
	content: "BVB";
	position: absolute;
	top: 1rem;
	right: 1rem;
	padding: .22rem .48rem;
	border-radius: 999px;
	background: var(--bvb-rich-purple);
	color: #ffffff;
	font-size: .62rem;
	font-weight: 850;
	letter-spacing: .09em;
}

.bvseo-rich-takeaways ul {
	display: grid;
	gap: .65rem;
	margin-bottom: 0;
	padding-left: 1.25rem;
}

.bvseo-rich-takeaways li::marker {
	color: var(--bvb-rich-purple-strong);
}

/* Table Of Contents */
.bvseo-rich-toc {
	border-top: 5px solid var(--bvb-rich-purple);
}

.bvseo-rich-toc ol {
	columns: 2;
	column-gap: 2rem;
	margin-bottom: 0;
	padding-left: 1.35rem;
}

.bvseo-rich-toc li {
	break-inside: avoid;
	margin-block: .3rem;
}

.bvseo-rich-toc a {
	display: inline-block;
	min-height: 28px;
	padding-block: .18rem;
}

.bvseo-rich-toc .is-level-3 {
	margin-left: 1rem;
}

/* Callouts */
.bvseo-rich-callout {
	border: 1px solid #9adac7;
	border-left: 7px solid var(--bvb-rich-mint);
	background: linear-gradient(135deg, #ffffff, var(--bvb-rich-mint-soft));
}

.bvseo-rich-callout h3::before {
	content: "BVB Insight";
	display: block;
	margin-bottom: .35rem;
	color: #087f62;
	font-size: .7rem;
	font-weight: 850;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* Related Reading */
.bvseo-rich-related {
	border-top: 5px solid var(--bvb-rich-navy);
}

.bvseo-rich-related ul {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
	padding: 0;
	list-style: none;
}

.bvseo-rich-related li {
	margin: 0;
}

.bvseo-rich-related a {
	display: grid;
	gap: 5px;
	min-height: 54px;
	height: 100%;
	padding: 15px;
	border: 1px solid var(--bvb-rich-line);
	border-radius: 12px;
	background: #ffffff;
	color: var(--bvb-rich-ink);
	text-decoration: none;
}

.bvseo-rich-related a:hover {
	border-color: var(--bvb-rich-purple);
	box-shadow: 0 0 0 2px rgba(104, 72, 245, .12);
}

.bvseo-rich-related span {
	color: var(--bvb-rich-muted);
}

/* Tables */
.bvseo-rich-table {
	max-width: 100%;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	-webkit-overflow-scrolling: touch;
}

.bvseo-rich-table table {
	width: 100%;
	min-width: 560px;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--bvb-rich-line);
	border-radius: 12px;
	overflow: hidden;
}

.bvseo-rich-table caption {
	padding: 0 0 .75rem;
	color: var(--bvb-rich-ink);
	font-weight: 800;
	text-align: left;
}

.bvseo-rich-table th,
.bvseo-rich-table td {
	padding: .8rem;
	border: 0;
	border-bottom: 1px solid #dfe3eb;
	text-align: left;
	vertical-align: top;
}

.bvseo-rich-table th {
	background: var(--bvb-rich-purple-soft);
	color: #30216f;
}

.bvseo-rich-table tbody tr:last-child > * {
	border-bottom: 0;
}

/* Steps */
.bvseo-rich-steps {
	counter-reset: bvb-step;
	padding-left: 0 !important;
	list-style: none !important;
}

.bvseo-rich-steps li {
	position: relative;
	min-height: 48px;
	margin-bottom: .8rem;
	padding: .8rem .9rem .8rem 3.5rem;
	border: 1px solid #d8d0ff;
	border-radius: 12px;
	background: var(--bvb-rich-purple-soft);
}

.bvseo-rich-steps li::before {
	counter-increment: bvb-step;
	content: counter(bvb-step);
	position: absolute;
	left: .8rem;
	top: .72rem;
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 9px;
	background: var(--bvb-rich-purple);
	color: #ffffff;
	font-weight: 850;
}

/* FAQ */
.bvseo-rich-faq {
	border: 1px solid var(--bvb-rich-line);
	border-radius: 12px;
	background: #ffffff;
	overflow: hidden;
}

.bvseo-rich-faq details {
	border-top: 1px solid var(--bvb-rich-line);
	padding: 0 1rem;
}

.bvseo-rich-faq details:first-child {
	border-top: 0;
}

.bvseo-rich-faq summary {
	display: flex;
	align-items: center;
	min-height: 52px;
	cursor: pointer;
	font-weight: 750;
}

/* Accessible Data Chart */
.bvseo-rich-chart {
	border-top: 5px solid var(--bvb-rich-purple);
}

.bvseo-rich-chart figcaption {
	display: grid;
	gap: .2rem;
	margin-bottom: 1rem;
}

.bvseo-rich-chart figcaption strong {
	font-size: clamp(1.25rem, 2.4vw, 1.65rem);
	line-height: 1.25;
}

.bvseo-rich-chart-bars {
	display: grid;
	gap: .85rem;
}

.bvseo-rich-chart-row {
	display: grid;
	grid-template-columns: minmax(110px, .75fr) minmax(130px, 2fr) minmax(64px, auto);
	gap: .75rem;
	align-items: center;
}

.bvseo-rich-chart-label {
	font-weight: 700;
}

.bvseo-rich-chart-track {
	display: block;
	height: 18px;
	overflow: hidden;
	border-radius: 999px;
	background: #e8e9f0;
}

.bvseo-rich-chart-fill {
	display: block;
	width: var(--bvseo-chart-width, 0%);
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--bvb-rich-purple), #9a7dff);
}

.bvseo-rich-chart-data {
	margin-top: 1rem;
}

.bvseo-rich-chart-data summary {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	cursor: pointer;
	color: #4330bd;
	font-weight: 750;
}

/* Interactive Calculators */
.bvseo-rich-calculator {
	border: 1px solid #d8d0ff;
	border-top: 5px solid var(--bvb-rich-purple);
	background: linear-gradient(180deg, #ffffff, #f8f6ff);
}

.bvseo-rich-calculator-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.bvseo-rich-calculator label {
	display: grid;
	gap: .4rem;
	font-weight: 700;
}

.bvseo-rich-calculator input {
	width: 100%;
	min-height: 46px;
	padding: .65rem .75rem;
	border: 1px solid #98a3b5;
	border-radius: 10px;
	background: #ffffff;
	color: var(--bvb-rich-ink);
	font: inherit;
}

.bvseo-rich-calculator-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	margin-top: 1rem;
	padding: .65rem 1rem;
	border: 1px solid var(--bvb-rich-purple-strong);
	border-radius: 10px;
	background: linear-gradient(135deg, var(--bvb-rich-purple), var(--bvb-rich-purple-strong));
	color: #ffffff;
	font: inherit;
	font-weight: 750;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(81, 54, 217, .2);
}

.bvseo-rich-calculator-result {
	display: block;
	min-height: 48px;
	margin-top: 1rem;
	padding: .8rem 1rem;
	border: 1px solid #9adac7;
	border-radius: 10px;
	background: var(--bvb-rich-mint-soft);
	color: #065c47;
	font-weight: 800;
}

.bvseo-rich-calculator-result.is-error {
	border-color: #ef9aa7;
	background: var(--bvb-rich-coral-soft);
	color: #7b2034;
}

.bvseo-rich-calculator-note {
	margin-bottom: 0;
	color: var(--bvb-rich-muted) !important;
	font-size: .84rem;
}

@media (max-width: 680px) {
	.bvseo-rich {
		border-radius: 12px;
	}
	.bvseo-rich-toc ol {
		columns: 1;
	}
	.bvseo-rich-toc .is-level-3 {
		margin-left: .5rem;
	}
	.bvseo-rich-chart-row {
		grid-template-columns: 1fr auto;
	}
	.bvseo-rich-chart-track {
		grid-column: 1 / -1;
		grid-row: 2;
	}
	.bvseo-rich-calculator-grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bvseo-rich *,
	.bvseo-rich *::before,
	.bvseo-rich *::after {
		scroll-behavior: auto !important;
		transition: none !important;
		animation: none !important;
	}
}

@media (forced-colors: active) {
	.bvseo-rich,
	.bvseo-rich-related a,
	.bvseo-rich-table table,
	.bvseo-rich-table th,
	.bvseo-rich-table td,
	.bvseo-rich-steps li,
	.bvseo-rich-faq,
	.bvseo-rich-calculator,
	.bvseo-rich-calculator input,
	.bvseo-rich-calculator-result {
		border-color: CanvasText;
		background: Canvas;
		color: CanvasText;
		box-shadow: none;
	}
	.bvseo-rich a:focus-visible,
	.bvseo-rich summary:focus-visible,
	.bvseo-rich button:focus-visible,
	.bvseo-rich input:focus-visible {
		outline-color: Highlight;
	}
}

/* Consistent BVB signature across every editorial component. The signature is
 * decorative, while headings and section labels retain the accessible name. */
.bvseo-rich {
	position: relative;
	padding-top: clamp(2.65rem, 5vw, 3.15rem);
}

.bvseo-rich::after {
	content: "BVB";
	position: absolute;
	top: .9rem;
	right: .95rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 1.55rem;
	padding: .18rem .52rem;
	border: 1px solid #d2caff;
	border-radius: 999px;
	background: #f3f0ff;
	color: #5136d9;
	font-size: .64rem;
	font-weight: 850;
	letter-spacing: .09em;
	line-height: 1;
}

.bvseo-rich-takeaways::before {
	display: none;
}

.bvseo-rich-table.bvseo-rich {
	padding-top: clamp(2.65rem, 5vw, 3.15rem);
}

@media (forced-colors: active) {
	.bvseo-rich::after {
		border-color: CanvasText;
		background: Canvas;
		color: CanvasText;
	}
}

.bvseo-rich-chart-fill.is-negative {
	background: linear-gradient(90deg, #d9485b, #ef8a99);
}

/* Gutenberg-native FAQ and process wrappers introduced in v18. */
.bvseo-rich-faq-section details.bvseo-rich-faq {
	margin: .75rem 0 0;
	padding: 0 1rem;
}

.bvseo-rich-faq-section details.bvseo-rich-faq:first-of-type {
	margin-top: 0;
}

.bvseo-rich-process .bvseo-rich-steps {
	margin-bottom: 0;
}

.bvseo-rich-comparison .bvseo-rich-table {
	margin-top: .5rem;
}
