/* BD Compare Table — .espt-block-bd-compare-table
   vars: --heading-size --font-size --note-size --mark-size --cell-pad --feature-width --table-min
         --heading-color --us-color --header-color --text-color --note-color --ok-color --no-color --line-color
   classes: is-design-* is-mark-style-* is-note-pos-* is-cell-align-* is-highlight-us is-row-hover is-sticky-first
   JS (on .bdt24): is-scrollable is-scrolled is-scroll-left is-scroll-right */

.espt-block-bd-compare-table .bdt24 {
	--ct-us: var(--us-color, var(--bd-primary));
	--ct-us-soft: color-mix(in srgb, var(--ct-us) 9%, var(--bd-box-bg));
	--ct-us-line: color-mix(in srgb, var(--ct-us) 32%, var(--bd-box-bg));
	--ct-line: var(--line-color, var(--bd-line));
	--ct-bg: var(--bd-box-bg);
	--ct-stripe: color-mix(in srgb, var(--bd-ink) 3.5%, var(--ct-bg));
	--ct-ok: var(--ok-color, var(--bd-primary));
	--ct-no: var(--no-color, var(--bd-danger));
	--ct-text: var(--text-color, var(--bd-body));
	--ct-note: var(--note-color, var(--bd-muted));
	--ct-head: var(--header-color, var(--bd-muted));
	--ct-radius: 10px;
	color: var(--text-color, var(--bd-ink));
	max-width: 100%;
	min-width: 0;
	overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------- heading */
.espt-block-bd-compare-table .bdt24-h {
	color: var(--heading-color, var(--bd-ink));
	font-size: var(--heading-size, 18px);
	font-weight: 800;
	line-height: 1.25;
	margin: 0 0 6px;
	text-align: center;
}

.espt-block-bd-compare-table .bdt24-sub {
	color: var(--bd-muted);
	font-size: calc(var(--font-size, 13px) * 1.05);
	line-height: 1.5;
	margin: 0 0 8px;
	text-align: center;
}

.espt-block-bd-compare-table .bdt24-h + .bdt24-wrap,
.espt-block-bd-compare-table .bdt24-sub + .bdt24-wrap { margin-top: 12px; }

.espt-block-bd-compare-table.is-text-align-left .bdt24-h,
.espt-block-bd-compare-table.is-text-align-left .bdt24-sub,
.espt-block-bd-compare-table.is-text-align-left .bdt24-foot { text-align: left; }
.espt-block-bd-compare-table.is-text-align-right .bdt24-h,
.espt-block-bd-compare-table.is-text-align-right .bdt24-sub,
.espt-block-bd-compare-table.is-text-align-right .bdt24-foot { text-align: right; }

/* --------------------------------------------------------- scroll wrapper */
.espt-block-bd-compare-table .bdt24-wrap {
	max-width: 100%;
	min-width: 0;
	position: relative;
}

.espt-block-bd-compare-table .bdt24-scroll {
	-webkit-overflow-scrolling: touch;
	border-radius: var(--ct-radius);
	max-width: 100%;
	outline: none;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scrollbar-width: thin;
}

.espt-block-bd-compare-table .bdt24-scroll:focus-visible { box-shadow: 0 0 0 2px var(--ct-us); }

/* edge fades while the table can scroll (JS toggles the classes) */
.espt-block-bd-compare-table .bdt24-wrap::before,
.espt-block-bd-compare-table .bdt24-wrap::after {
	bottom: 0;
	content: "";
	opacity: 0;
	pointer-events: none;
	position: absolute;
	top: 0;
	transition: opacity 0.25s ease;
	width: 34px;
	z-index: 3;
}

.espt-block-bd-compare-table .bdt24-wrap::before { background: linear-gradient(to right, var(--ct-bg), transparent); left: 0; }
.espt-block-bd-compare-table .bdt24-wrap::after { background: linear-gradient(to left, var(--ct-bg), transparent); right: 0; }
.espt-block-bd-compare-table .bdt24.is-scroll-left .bdt24-wrap::before { opacity: 1; }
.espt-block-bd-compare-table .bdt24.is-scroll-right .bdt24-wrap::after { opacity: 1; }

/* swipe hint under the table, until the visitor scrolls */
.espt-block-bd-compare-table .bdt24-hint {
	align-items: center;
	color: var(--bd-muted);
	display: none;
	font-size: calc(var(--font-size, 13px) * 0.85);
	gap: 6px;
	justify-content: center;
	margin-top: 8px;
}

.espt-block-bd-compare-table .bdt24.is-scrollable:not(.is-scrolled) .bdt24-hint { display: flex; }
.espt-block-bd-compare-table .bdt24-hi { display: inline-flex; line-height: 0; }
.espt-block-bd-compare-table .bdt24-hi svg { height: 1em; width: 1em; }
.espt-block-bd-compare-table .bdt24-hi:first-child { animation: espt-ct-nudge-l 1.4s ease-in-out infinite; }
.espt-block-bd-compare-table .bdt24-hi:last-child { animation: espt-ct-nudge-r 1.4s ease-in-out infinite; }
@keyframes espt-ct-nudge-l { 0%, 100% { transform: none; } 50% { transform: translateX(-3px); } }
@keyframes espt-ct-nudge-r { 0%, 100% { transform: none; } 50% { transform: translateX(3px); } }

/* ------------------------------------------------------------------ table */
.espt-block-bd-compare-table .bdt24-t {
	border-collapse: separate;
	border-spacing: 0;
	font-size: var(--font-size, 13px);
	line-height: 1.5;
	margin: 0;
	min-width: var(--table-min, 420px);
	width: 100%;
}

.espt-block-bd-compare-table .bdt24-t th,
.espt-block-bd-compare-table .bdt24-t td {
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--ct-line);
	color: var(--ct-text);
	line-height: 1.5;
	min-width: 0;
	overflow-wrap: anywhere;
	padding: var(--cell-pad, 11px) calc(var(--cell-pad, 11px) * 0.75);
	text-align: center;
	transition: background-color 0.2s ease;
	vertical-align: middle;
}

.espt-block-bd-compare-table .bdt24-t .bdt24-f {
	color: var(--ct-text);
	font-weight: 600;
	text-align: left;
	width: var(--feature-width, 34%);
}

.espt-block-bd-compare-table .bdt24-t thead th {
	color: var(--ct-head);
	font-size: calc(var(--font-size, 13px) * 1.04);
	font-weight: 700;
}

.espt-block-bd-compare-table .bdt24-t tbody tr:last-child th,
.espt-block-bd-compare-table .bdt24-t tbody tr:last-child td { border-bottom: 0; }

/* cell content: mark + note */
.espt-block-bd-compare-table .bdt24-c {
	align-items: center;
	display: inline-flex;
	flex-direction: column;
	gap: 2px;
	max-width: 100%;
	vertical-align: middle;
}

.espt-block-bd-compare-table .bdt24-hd { display: inline-block; max-width: 100%; }

.espt-block-bd-compare-table .bdt24-badge {
	background: var(--bd-accent);
	border-radius: 999px;
	color: var(--bd-accent-ink);
	display: inline-block;
	font-size: calc(var(--font-size, 13px) * 0.72);
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.4;
	margin-bottom: 4px;
	padding: 2px 9px;
	text-transform: uppercase;
	white-space: nowrap;
}

.espt-block-bd-compare-table .bdt24-m {
	align-items: center;
	display: inline-flex;
	flex: 0 0 auto;
	font-size: var(--mark-size, 16px);
	font-weight: 800;
	justify-content: center;
	line-height: 1;
	transition: transform 0.2s ease;
}

.espt-block-bd-compare-table .bdt24-ok { color: var(--ct-ok); }
.espt-block-bd-compare-table .bdt24-no { color: var(--ct-no); }
.espt-block-bd-compare-table .bdt24-dash { color: var(--bd-muted); font-weight: 400; }
.espt-block-bd-compare-table .bdt24-mi { display: inline-flex; line-height: 0; }
.espt-block-bd-compare-table .bdt24-mi svg { height: 1em; stroke-width: 2.75; width: 1em; }

.espt-block-bd-compare-table .bdt24-n {
	color: var(--ct-note);
	display: block;
	font-size: var(--note-size, 12px);
	font-style: normal;
	font-weight: 400;
	line-height: 1.35;
	max-width: 100%;
}

/* a note with no mark is the cell's main text */
.espt-block-bd-compare-table .bdt24-n:only-child { color: inherit; font-size: inherit; font-weight: 600; line-height: 1.45; }

/* ------------------------------------------------------------- mark styles */
.espt-block-bd-compare-table.is-mark-style-bubble .bdt24-m,
.espt-block-bd-compare-table.is-mark-style-filled .bdt24-m {
	border-radius: 50%;
	height: calc(var(--mark-size, 16px) * 1.75);
	width: calc(var(--mark-size, 16px) * 1.75);
}

.espt-block-bd-compare-table.is-mark-style-bubble .bdt24-m { background: color-mix(in srgb, currentColor 14%, transparent); }
.espt-block-bd-compare-table.is-mark-style-bubble .bdt24-mi svg,
.espt-block-bd-compare-table.is-mark-style-filled .bdt24-mi svg { height: 0.78em; width: 0.78em; }
.espt-block-bd-compare-table.is-mark-style-filled .bdt24-m { background: currentColor; box-shadow: 0 4px 10px -4px currentColor; }
.espt-block-bd-compare-table.is-mark-style-filled .bdt24-mi { color: #fff; }
.espt-block-bd-compare-table.is-mark-style-bubble .bdt24-dash,
.espt-block-bd-compare-table.is-mark-style-filled .bdt24-dash { background: transparent; box-shadow: none; }

/* ----------------------------------------------------------- note position */
.espt-block-bd-compare-table.is-note-pos-inline .bdt24-c { flex-direction: row; flex-wrap: wrap; gap: 4px 7px; justify-content: center; }
.espt-block-bd-compare-table.is-note-pos-inline .bdt24-n { display: inline; text-align: left; }
.espt-block-bd-compare-table.is-note-pos-inline thead .bdt24-c { flex-direction: column; gap: 2px; }

/* ---------------------------------------------------------- cell alignment */
.espt-block-bd-compare-table.is-cell-align-left .bdt24-t th,
.espt-block-bd-compare-table.is-cell-align-left .bdt24-t td { text-align: left; }
.espt-block-bd-compare-table.is-cell-align-left .bdt24-c { align-items: flex-start; justify-content: flex-start; }

/* ---------------------------------------------------- "ours" column highlight */
.espt-block-bd-compare-table.is-highlight-us .bdt24-t .bdt24-us {
	background: var(--ct-us-soft);
	border-left: 1.5px solid var(--ct-us-line);
	border-right: 1.5px solid var(--ct-us-line);
}

.espt-block-bd-compare-table.is-highlight-us .bdt24-t thead .bdt24-us {
	background: var(--ct-us);
	border-color: var(--ct-us);
	border-radius: var(--ct-radius) var(--ct-radius) 0 0;
	color: #fff;
}

.espt-block-bd-compare-table.is-highlight-us .bdt24-t tbody tr:last-child .bdt24-us {
	border-bottom: 1.5px solid var(--ct-us-line);
	border-radius: 0 0 var(--ct-radius) var(--ct-radius);
}

.espt-block-bd-compare-table.no-highlight-us .bdt24-t thead .bdt24-us { color: var(--ct-us); }

/* ------------------------------------------------------ sticky feature column */
.espt-block-bd-compare-table.is-sticky-first .bdt24-t .bdt24-f {
	background-color: var(--ct-bg);
	left: 0;
	position: sticky;
	z-index: 2;
}

.espt-block-bd-compare-table.is-sticky-first .bdt24.is-scroll-left .bdt24-t .bdt24-f { box-shadow: 8px 0 10px -8px rgba(15, 23, 42, 0.28); }
.espt-block-bd-compare-table.is-sticky-first .bdt24-wrap::before { display: none; }

/* ================================================================ designs */

/* striped */
.espt-block-bd-compare-table.is-design-striped .bdt24-t tbody tr:nth-child(even) th,
.espt-block-bd-compare-table.is-design-striped .bdt24-t tbody tr:nth-child(even) td { background-color: var(--ct-stripe); }
.espt-block-bd-compare-table.is-design-striped.is-highlight-us .bdt24-t tbody tr:nth-child(even) .bdt24-us { background-color: color-mix(in srgb, var(--ct-us) 13%, var(--ct-bg)); }
.espt-block-bd-compare-table.is-design-striped .bdt24-t th,
.espt-block-bd-compare-table.is-design-striped .bdt24-t td { border-bottom-color: transparent; }
.espt-block-bd-compare-table.is-design-striped .bdt24-t thead th { border-bottom: 2px solid var(--ct-line); }

/* bordered grid */
.espt-block-bd-compare-table.is-design-bordered .bdt24-scroll { border: 1px solid var(--ct-line); }
.espt-block-bd-compare-table.is-design-bordered .bdt24-t th,
.espt-block-bd-compare-table.is-design-bordered .bdt24-t td { border-right: 1px solid var(--ct-line); }
.espt-block-bd-compare-table.is-design-bordered .bdt24-t th:last-child,
.espt-block-bd-compare-table.is-design-bordered .bdt24-t td:last-child { border-right: 0; }
.espt-block-bd-compare-table.is-design-bordered .bdt24-t thead th { background-color: color-mix(in srgb, var(--bd-ink) 4%, var(--ct-bg)); }
.espt-block-bd-compare-table.is-design-bordered .bdt24-t .bdt24-us { border-left: 0; border-radius: 0; }
.espt-block-bd-compare-table.is-design-bordered.is-highlight-us .bdt24-t .bdt24-us { border-left: 0; border-right: 1px solid var(--ct-line); }
.espt-block-bd-compare-table.is-design-bordered.is-highlight-us .bdt24-t thead .bdt24-us { border-radius: 0; border-right-color: var(--ct-us); }
.espt-block-bd-compare-table.is-design-bordered.is-highlight-us .bdt24-t tbody tr:last-child .bdt24-us { border-bottom: 0; border-radius: 0; }

/* minimal hairlines */
.espt-block-bd-compare-table.is-design-minimal .bdt24-t th,
.espt-block-bd-compare-table.is-design-minimal .bdt24-t td { border-bottom-color: color-mix(in srgb, var(--bd-ink) 9%, transparent); }
.espt-block-bd-compare-table.is-design-minimal .bdt24-t thead th { border-bottom: 2px solid var(--bd-ink); color: var(--ct-head); font-size: calc(var(--font-size, 13px) * 0.92); letter-spacing: 0.04em; text-transform: uppercase; }
.espt-block-bd-compare-table.is-design-minimal .bdt24-t .bdt24-us { background: transparent; border-left: 0; border-right: 0; }
.espt-block-bd-compare-table.is-design-minimal.is-highlight-us .bdt24-t .bdt24-us { background: transparent; border-left: 0; border-right: 0; }
.espt-block-bd-compare-table.is-design-minimal.is-highlight-us .bdt24-t thead .bdt24-us { background: transparent; border-bottom-color: var(--ct-us); border-radius: 0; color: var(--ct-us); }
.espt-block-bd-compare-table.is-design-minimal.is-highlight-us .bdt24-t tbody .bdt24-us { font-weight: 700; }
.espt-block-bd-compare-table.is-design-minimal.is-highlight-us .bdt24-t tbody tr:last-child .bdt24-us { border-bottom: 0; border-radius: 0; }
.espt-block-bd-compare-table.is-design-minimal .bdt24-t .bdt24-f { color: var(--text-color, var(--bd-ink)); }

/* pill headers */
.espt-block-bd-compare-table.is-design-pills .bdt24-t thead th { border-bottom: 0; padding-bottom: calc(var(--cell-pad, 11px) * 0.5); }
.espt-block-bd-compare-table.is-design-pills .bdt24-t thead .bdt24-hd {
	background: color-mix(in srgb, var(--bd-ink) 6%, var(--ct-bg));
	border-radius: 999px;
	color: var(--bd-ink);
	padding: 5px 14px;
}
.espt-block-bd-compare-table.is-design-pills .bdt24-t thead .bdt24-us { background: transparent; border-color: transparent; border-radius: 0; }
.espt-block-bd-compare-table.is-design-pills.is-highlight-us .bdt24-t thead .bdt24-us .bdt24-hd { background: var(--ct-us); box-shadow: 0 6px 14px -6px var(--ct-us); color: #fff; }
.espt-block-bd-compare-table.is-design-pills.no-highlight-us .bdt24-t thead .bdt24-us .bdt24-hd { background: var(--ct-us-soft); color: var(--ct-us); }
.espt-block-bd-compare-table.is-design-pills.is-highlight-us .bdt24-t tbody tr:first-child .bdt24-us { border-radius: var(--ct-radius) var(--ct-radius) 0 0; border-top: 1.5px solid var(--ct-us-line); }
.espt-block-bd-compare-table.is-design-pills .bdt24-t tbody tr:first-child th,
.espt-block-bd-compare-table.is-design-pills .bdt24-t tbody tr:first-child td { border-top: 1px solid var(--ct-line); }
.espt-block-bd-compare-table.is-design-pills.is-highlight-us .bdt24-t tbody tr:first-child .bdt24-us { border-top-color: var(--ct-us-line); }

/* gradient "ours" column */
.espt-block-bd-compare-table.is-design-gradient.is-highlight-us .bdt24-t thead .bdt24-us {
	background: linear-gradient(135deg, var(--ct-us), var(--bd-primary-dark));
	border-color: transparent;
	box-shadow: 0 10px 22px -12px var(--ct-us);
	color: #fff;
}
.espt-block-bd-compare-table.is-design-gradient.is-highlight-us .bdt24-t tbody .bdt24-us {
	background: linear-gradient(180deg, color-mix(in srgb, var(--ct-us) 14%, var(--ct-bg)), color-mix(in srgb, var(--ct-us) 5%, var(--ct-bg)));
	border-left-color: color-mix(in srgb, var(--ct-us) 22%, var(--ct-bg));
	border-right-color: color-mix(in srgb, var(--ct-us) 22%, var(--ct-bg));
}
.espt-block-bd-compare-table.is-design-gradient .bdt24-t thead th { color: var(--ct-head); }
.espt-block-bd-compare-table.is-design-gradient .bdt24-t thead .bdt24-badge { background: #fff; color: var(--ct-us); }

/* dark table */
.espt-block-bd-compare-table.is-design-dark .bdt24 {
	--ct-bg: var(--bd-deep);
	--ct-line: var(--line-color, rgba(255, 255, 255, 0.12));
	/* opaque — the sticky feature column is painted with it and must not
	   let the scrolled cells behind it show through */
	--ct-stripe: color-mix(in srgb, #fff 4.5%, var(--bd-deep));
	--ct-text: var(--text-color, #fff);
	--ct-note: var(--note-color, rgba(255, 255, 255, 0.62));
	--ct-head: var(--header-color, rgba(255, 255, 255, 0.7));
	--ct-ok: var(--ok-color, color-mix(in srgb, var(--ct-us) 55%, #fff));
	--ct-no: var(--no-color, color-mix(in srgb, var(--bd-danger) 65%, #fff));
	--ct-us-soft: rgba(255, 255, 255, 0.06);
	--ct-us-line: color-mix(in srgb, var(--ct-us) 45%, transparent);
	background: var(--bd-deep);
	border-color: var(--bd-deep);
	color: var(--text-color, #fff);
}
.espt-block-bd-compare-table.is-design-dark .bdt24-h { color: var(--heading-color, #fff); }
.espt-block-bd-compare-table.is-design-dark .bdt24-sub,
.espt-block-bd-compare-table.is-design-dark .bdt24-foot,
.espt-block-bd-compare-table.is-design-dark .bdt24-hint,
.espt-block-bd-compare-table.is-design-dark .bdt24-dash { color: rgba(255, 255, 255, 0.62); }
.espt-block-bd-compare-table.is-design-dark .bdt24-t .bdt24-f { color: var(--text-color, #fff); }
.espt-block-bd-compare-table.is-design-dark.is-highlight-us .bdt24-t thead .bdt24-us { background: var(--ct-us); color: #fff; }
.espt-block-bd-compare-table.is-design-dark.is-mark-style-bubble .bdt24-m { background: color-mix(in srgb, currentColor 20%, transparent); }
.espt-block-bd-compare-table.is-design-dark.is-mark-style-filled .bdt24-mi { color: var(--bd-deep); }
.espt-block-bd-compare-table.is-design-dark .bdt24-scroll { scrollbar-color: rgba(255, 255, 255, 0.32) transparent; }
.espt-block-bd-compare-table.is-design-dark .bdt24-scroll:focus-visible { box-shadow: 0 0 0 2px #fff; }

/* ================================================================ row hover
   Last, so a hover tint also beats the striped/bordered design backgrounds.
   Only on real pointers: on touch, :hover sticks after a tap and would leave
   a row highlighted for good. Every tint is fully opaque — it is painted on
   the sticky feature column too, which must never be see-through. */
@media (hover: hover) {
	.espt-block-bd-compare-table.is-row-hover .bdt24-t tbody tr:hover th,
	.espt-block-bd-compare-table.is-row-hover .bdt24-t tbody tr:hover td { background-color: color-mix(in srgb, var(--bd-ink) 4%, var(--ct-bg)); }
	.espt-block-bd-compare-table.is-row-hover.is-highlight-us .bdt24-t tbody tr:hover .bdt24-us { background-color: color-mix(in srgb, var(--ct-us) 17%, var(--ct-bg)); }
	.espt-block-bd-compare-table.is-row-hover .bdt24-t tbody tr:hover .bdt24-m { transform: scale(1.12); }

	.espt-block-bd-compare-table.is-design-dark.is-row-hover .bdt24-t tbody tr:hover th,
	.espt-block-bd-compare-table.is-design-dark.is-row-hover .bdt24-t tbody tr:hover td { background-color: color-mix(in srgb, #fff 6%, var(--bd-deep)); }
	.espt-block-bd-compare-table.is-design-dark.is-row-hover.is-highlight-us .bdt24-t tbody tr:hover .bdt24-us { background-color: color-mix(in srgb, var(--ct-us) 26%, var(--bd-deep)); }
}

/* --------------------------------------------------------------- footnote */
.espt-block-bd-compare-table .bdt24-foot {
	color: var(--bd-muted);
	font-size: calc(var(--font-size, 13px) * 0.9);
	line-height: 1.5;
	margin: 10px 0 0;
	text-align: center;
}

/* ============================================================ breakpoints */
@media (min-width: 768px) {
	.espt-block-bd-compare-table .bdt24-t th,
	.espt-block-bd-compare-table .bdt24-t td { padding: var(--cell-pad, 11px) calc(var(--cell-pad, 11px) * 0.9); }
	.espt-block-bd-compare-table .bdt24-h { margin-bottom: 8px; }
	.espt-block-bd-compare-table .bdt24-h + .bdt24-wrap,
	.espt-block-bd-compare-table .bdt24-sub + .bdt24-wrap { margin-top: 16px; }
}

@media (min-width: 1024px) {
	.espt-block-bd-compare-table .bdt24-t th,
	.espt-block-bd-compare-table .bdt24-t td { padding: var(--cell-pad, 11px) var(--cell-pad, 11px); }
}

@media (prefers-reduced-motion: reduce) {
	.espt-block-bd-compare-table .bdt24-hi { animation: none; }
	.espt-block-bd-compare-table .bdt24-m,
	.espt-block-bd-compare-table .bdt24-t th,
	.espt-block-bd-compare-table .bdt24-t td,
	.espt-block-bd-compare-table .bdt24-wrap::before,
	.espt-block-bd-compare-table .bdt24-wrap::after { transition: none; }
	.espt-block-bd-compare-table.is-row-hover .bdt24-t tbody tr:hover .bdt24-m { transform: none; }
}
