/**
 * Homepage comparison: "More Value. Better Performance." table.
 */
.bb-why-better {
	--bb-wb-header-bg: #2f5aa0;
	--bb-wb-header-text: #ffffff;
	--bb-wb-feature-text: #1a1a1a;
	--bb-wb-bb-text: #16223a;
	--bb-wb-typical-text: #1a4d8f;
	--bb-wb-row-alt: #f5f7fa;
	--bb-wb-row-base: #ffffff;
	--bb-wb-border: #e2e6ec;
	width: 100%;
	box-sizing: border-box;
}

.bb-why-better__inner {
	max-width: 1200px;
	margin: 0 auto;
}

.bb-why-better__title {
	font-family: Roboto, system-ui, sans-serif;
	font-size: clamp(1.6rem, 4.5vw, 2.5rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-align: center;
	color: var(--bb-wb-feature-text);
}

.bb-why-better__table-wrap {
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--bb-wb-border);
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

.bb-why-better__table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	font-family: Roboto, system-ui, sans-serif;
}

/* Header row */
.bb-why-better__table thead th {
	background: var(--bb-wb-header-bg);
	color: var(--bb-wb-header-text);
	font-size: clamp(0.95rem, 1.4vw, 1.0625rem);
	font-weight: 700;
	text-align: left;
	padding: clamp(1rem, 1.8vw, 1.35rem) clamp(1.1rem, 2vw, 1.75rem);
	vertical-align: middle;
}

.bb-why-better__col-feature {
	width: 26%;
}

.bb-why-better__col-bb,
.bb-why-better__col-typical {
	width: 37%;
}

/* Body cells */
.bb-why-better__table tbody th,
.bb-why-better__table tbody td {
	padding: clamp(1rem, 1.8vw, 1.35rem) clamp(1.1rem, 2vw, 1.75rem);
	font-size: clamp(0.9rem, 1.35vw, 1.0625rem);
	line-height: 1.4;
	vertical-align: middle;
	border-top: 1px solid var(--bb-wb-border);
	overflow-wrap: break-word;
	word-wrap: break-word;
}

.bb-why-better__table tbody tr:nth-child(odd) {
	background: var(--bb-wb-row-base);
}

.bb-why-better__table tbody tr:nth-child(even) {
	background: var(--bb-wb-row-alt);
}

.bb-why-better__feature {
	text-align: left;
	font-weight: 700;
	color: var(--bb-wb-feature-text);
}

.bb-why-better__bb {
	font-weight: 700;
	color: var(--bb-wb-bb-text);
}

.bb-why-better__typical {
	font-weight: 600;
	color: var(--bb-wb-typical-text);
}

/* Screen-reader-only helper (theme may already define this; scoped fallback). */
.bb-why-better .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Custom horizontal-scroll indicator (shown only when the table overflows). */
.bb-why-better__scrollhint {
	display: none;
	height: 6px;
	margin: 1rem 0.25rem 0;
	border-radius: 999px;
	background: #e6e9f0;
	overflow: hidden;
}

.bb-why-better.is-scrollable .bb-why-better__scrollhint {
	display: block;
}

.bb-why-better__scrollhint-thumb {
	display: block;
	width: 40%;
	height: 100%;
	border-radius: 999px;
	background: #a9bbd8;
	will-change: transform, width;
}

/* ---- Mobile: keep the table, scroll it horizontally ---- */
@media (max-width: 720px) {
	.bb-why-better__table-wrap {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		/* Hide the native scrollbar; the custom pill indicator stands in for it. */
		scrollbar-width: none;
	}

	.bb-why-better__table-wrap::-webkit-scrollbar {
		display: none;
	}

	/* Force columns to keep readable widths so the table overflows and scrolls. */
	.bb-why-better__table {
		min-width: 640px;
	}
}
