/* SDL Widgets: Comparison Table */
.sdlw-ct {
	--sdlw-ct-bg: #fff;
	--sdlw-ct-radius: 18px;
	--sdlw-ct-min: 1000px;
	--sdlw-ct-first: 220px;
	--sdlw-ct-head-bg: #f6f8fc;
	--sdlw-ct-head-line: #e3e6ee;
	--sdlw-ct-line: #e5e7ec;
	--sdlw-ct-zebra: var(--sdlw-ct-bg);
	--sdlw-ct-hl-head: #012463;
	--sdlw-ct-hl-head-text: #fff;
	--sdlw-ct-hl-cell: #f4f9f5;
	--sdlw-ct-mark: 14px;
	--sdlw-ct-full: #0e8c3d;
	--sdlw-ct-limited: #1951c7;
	--sdlw-ct-none: #d91f25;
	--sdlw-ct-scrollbar: #c5ccd8;
	--sdlw-ct-hover: #f5f8fd;
	--sdlw-ct-hover-hl: #e8f3eb;
	--sdlw-ct-hover-text: #012463;
	--sdlw-ct-hover-head: #e8eef9;
	--sdlw-ct-hover-bar: #1951c7;
	--sdlw-ct-grow: 1.3;
	--sdlw-ct-speed: 180ms;
	--sdlw-ct-ficon: 18px;
	position: relative;
	width: 100%;
}

/* Card */
.sdlw-ct__card {
	position: relative;
	overflow: hidden;
	background: var(--sdlw-ct-bg);
	border: 1px solid #e6eaf2;
	border-radius: var(--sdlw-ct-radius);
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px -18px rgba(16, 24, 56, .18);
}

/* Horizontal scroll wrapper (overflow-x: auto at every breakpoint) */
.sdlw-ct__scroll {
	position: relative;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	scrollbar-width: thin;
	scrollbar-color: var(--sdlw-ct-scrollbar) transparent;
}
.sdlw-ct__scroll::-webkit-scrollbar { height: 8px; }
.sdlw-ct__scroll::-webkit-scrollbar-track { background: transparent; }
.sdlw-ct__scroll::-webkit-scrollbar-thumb { background: var(--sdlw-ct-scrollbar); border-radius: 8px; }
.sdlw-ct__scroll:focus-visible { outline: 2px solid var(--sdlw-ct-limited); outline-offset: -2px; }

/* Table */
.sdlw-ct__table {
	width: 100%;
	min-width: var(--sdlw-ct-min);
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: auto;
	background: transparent;
	font-size: 15px;
	line-height: 1.3;
}
.sdlw-ct__table th,
.sdlw-ct__table td {
	margin: 0;
	padding: 18px 12px;
	border: 0;
	background: var(--sdlw-ct-bg);
	color: inherit;
	vertical-align: middle;
	text-align: center;
	font-weight: inherit;
	transition: background-color var(--sdlw-ct-speed) ease, box-shadow var(--sdlw-ct-speed) ease, color var(--sdlw-ct-speed) ease;
}

/* Equal-width platform columns (feature column keeps its own width) */
.sdlw-ct--equal .sdlw-ct__table { table-layout: fixed; }

/* Heading row */
.sdlw-ct__table thead th {
	padding: 14px 12px;
	background: var(--sdlw-ct-head-bg);
	border-bottom: 1px solid var(--sdlw-ct-line);
	color: #172337;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: 0;
	text-transform: none;
}
.sdlw-ct__table thead th + th { border-left: 1px solid var(--sdlw-ct-head-line); }
.sdlw-ct__corner,
.sdlw-ct__feature {
	width: var(--sdlw-ct-first);
	min-width: var(--sdlw-ct-first);
	text-align: left !important;
	padding-left: 32px !important;
}

/* Body (cells stay opaque so the sticky column hides what scrolls beneath it) */
.sdlw-ct__table tbody tr > * { background-color: var(--sdlw-ct-bg); border-bottom: 1px solid var(--sdlw-ct-line); }
.sdlw-ct__table tbody tr:last-child > * { border-bottom: 0; }
.sdlw-ct__table tbody tr:nth-child(even) > * { background-color: var(--sdlw-ct-zebra); }

.sdlw-ct__feature-label {
	display: block;
	color: #15202d;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}
.sdlw-ct__note { display: block; margin-top: 3px; color: #6b7183; font-size: 12px; font-weight: 400; line-height: 1.35; }
.sdlw-ct__text { color: #15202d; font-size: 14px; font-weight: 600; }

/* Highlighted column */
.sdlw-ct__table thead th.is-highlight {
	background: var(--sdlw-ct-hl-head);
	color: var(--sdlw-ct-hl-head-text);
	border-left-color: var(--sdlw-ct-hl-head);
}
.sdlw-ct__table thead th.is-highlight + th { border-left-color: var(--sdlw-ct-hl-head); }
.sdlw-ct__table tbody tr > td.is-highlight { background-color: var(--sdlw-ct-hl-cell); }

/* Marks */
.sdlw-ct__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: var(--sdlw-ct-mark);
	height: var(--sdlw-ct-mark);
	vertical-align: middle;
	line-height: 1;
	transition: transform var(--sdlw-ct-speed) cubic-bezier(.2, .7, .2, 1);
}
.sdlw-ct__mark--dot { border-radius: 50%; }
.sdlw-ct__mark--dot.sdlw-ct__mark--full    { background: var(--sdlw-ct-full); }
.sdlw-ct__mark--dot.sdlw-ct__mark--limited { background: var(--sdlw-ct-limited); }
.sdlw-ct__mark--dot.sdlw-ct__mark--none    { background: var(--sdlw-ct-none); }

.sdlw-ct__mark--icon,
.sdlw-ct__mark--custom {
	width: calc(var(--sdlw-ct-mark) * 1.45);
	height: calc(var(--sdlw-ct-mark) * 1.45);
	font-size: calc(var(--sdlw-ct-mark) * 1.45);
}
.sdlw-ct__mark--icon svg,
.sdlw-ct__mark--custom svg { display: block; width: 1em; height: 1em; fill: currentColor; }
.sdlw-ct__mark--custom i { font-size: 1em; line-height: 1; }
.sdlw-ct__mark--icon.sdlw-ct__mark--full,
.sdlw-ct__mark--custom.sdlw-ct__mark--full    { color: var(--sdlw-ct-full); }
.sdlw-ct__mark--icon.sdlw-ct__mark--limited,
.sdlw-ct__mark--custom.sdlw-ct__mark--limited { color: var(--sdlw-ct-limited); }
.sdlw-ct__mark--icon.sdlw-ct__mark--none,
.sdlw-ct__mark--custom.sdlw-ct__mark--none    { color: var(--sdlw-ct-none); }

/* Feature icons */
.sdlw-ct__feature-wrap {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-align: left;
	vertical-align: middle;
}
.sdlw-ct__feature-icon {
	display: inline-flex;
	flex: 0 0 auto;
	color: var(--sdlw-ct-limited);
	font-size: var(--sdlw-ct-ficon);
	line-height: 1;
}
.sdlw-ct__feature-icon svg { width: 1em; height: 1em; fill: currentColor; }
.sdlw-ct__feature-icon i { font-size: 1em; }
.sdlw-ct__feature-text { display: block; min-width: 0; }
.sdlw-ct__feature-label { transition: color var(--sdlw-ct-speed) ease; }

/* Hover: row ------------------------------------------------------------ */
.sdlw-ct--hover-row .sdlw-ct__table tbody tr:hover > *,
.sdlw-ct--hover-cross .sdlw-ct__table tbody tr:hover > * { background-color: var(--sdlw-ct-hover); }
.sdlw-ct--hover-row .sdlw-ct__table tbody tr:hover > td.is-highlight,
.sdlw-ct--hover-cross .sdlw-ct__table tbody tr:hover > td.is-highlight { background-color: var(--sdlw-ct-hover-hl); }
.sdlw-ct--hover-row .sdlw-ct__table tbody tr:hover .sdlw-ct__feature-label,
.sdlw-ct--hover-cross .sdlw-ct__table tbody tr:hover .sdlw-ct__feature-label { color: var(--sdlw-ct-hover-text); }
.sdlw-ct--hover-row .sdlw-ct__table tbody tr:hover > .sdlw-ct__feature,
.sdlw-ct--hover-cross .sdlw-ct__table tbody tr:hover > .sdlw-ct__feature { box-shadow: inset 3px 0 0 var(--sdlw-ct-hover-bar); }

/* Hover: column (row + column crosshair; JS adds .is-col-hover) --------- */
.sdlw-ct--hover-cross .sdlw-ct__table tbody td.is-col-hover { background-color: var(--sdlw-ct-hover); }
.sdlw-ct--hover-cross .sdlw-ct__table tbody td.is-col-hover.is-highlight { background-color: var(--sdlw-ct-hover-hl); }
.sdlw-ct--hover-cross .sdlw-ct__table thead th.is-col-hover:not(.is-highlight) { background-color: var(--sdlw-ct-hover-head); }
.sdlw-ct--hover-cross .sdlw-ct__table thead th.is-col-hover.is-highlight { filter: brightness(1.25); }
.sdlw-ct--hover-cross .sdlw-ct__table tbody tr:hover > td.is-col-hover { box-shadow: inset 0 0 0 2px var(--sdlw-ct-hover-bar); }

/* Hover: single cell ---------------------------------------------------- */
.sdlw-ct--hover-cell .sdlw-ct__table tbody td:hover { background-color: var(--sdlw-ct-hover); box-shadow: inset 0 0 0 2px var(--sdlw-ct-hover-bar); }
.sdlw-ct--hover-cell .sdlw-ct__table tbody td.is-highlight:hover { background-color: var(--sdlw-ct-hover-hl); }

/* Grow the mark in the hovered cell */
.sdlw-ct--grow .sdlw-ct__cell:hover .sdlw-ct__mark,
.sdlw-ct--grow .sdlw-ct__legend li:hover .sdlw-ct__mark { transform: scale(var(--sdlw-ct-grow)); }

/* Legend */
.sdlw-ct__legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 10px 32px;
	margin: 0;
	padding: 20px 24px 22px;
	list-style: none;
	border-top: 1px solid var(--sdlw-ct-line);
	color: #141e31;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
}
.sdlw-ct > .sdlw-ct__legend { border-top: 0; padding-left: 0; padding-right: 0; }
.sdlw-ct__legend li { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 0; }
.sdlw-ct__legend li::before { content: none; }

/* Sticky feature column */
.sdlw-ct--sticky .sdlw-ct__corner,
.sdlw-ct--sticky .sdlw-ct__feature {
	position: sticky;
	left: 0;
	z-index: 2;
}
.sdlw-ct--sticky .sdlw-ct__corner { z-index: 3; }
.sdlw-ct--sticky.is-scrolled .sdlw-ct__corner,
.sdlw-ct--sticky.is-scrolled .sdlw-ct__feature { box-shadow: 6px 0 12px -8px rgba(16, 24, 56, .25); }
.sdlw-ct--sticky.is-scrolled.sdlw-ct--hover-row .sdlw-ct__table tbody tr:hover > .sdlw-ct__feature,
.sdlw-ct--sticky.is-scrolled.sdlw-ct--hover-cross .sdlw-ct__table tbody tr:hover > .sdlw-ct__feature { box-shadow: inset 3px 0 0 var(--sdlw-ct-hover-bar), 6px 0 12px -8px rgba(16, 24, 56, .25); }

/* Edge shadow when more columns sit off-screen to the right */
.sdlw-ct--shadow .sdlw-ct__card::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 28px;
	pointer-events: none;
	background: linear-gradient(to left, rgba(16, 24, 56, .10), rgba(16, 24, 56, 0));
	border-top-right-radius: var(--sdlw-ct-radius);
	border-bottom-right-radius: var(--sdlw-ct-radius);
	opacity: 0;
	transition: opacity .2s ease;
}
.sdlw-ct--shadow.can-scroll:not(.at-end) .sdlw-ct__card::after { opacity: 1; }

/* Scroll hint: only shown while the table is wider than the screen */
.sdlw-ct__hint {
	display: none;
	margin: 10px 0 0;
	color: #6b7183;
	font-size: 13px;
	text-align: center;
}
.sdlw-ct.can-scroll .sdlw-ct__hint { display: block; }

/* Tablet */
@media (max-width: 1024px) {
	.sdlw-ct { --sdlw-ct-min: 1000px; --sdlw-ct-first: 190px; --sdlw-ct-radius: 16px; }
	.sdlw-ct__table thead th { font-size: 14px; }
	.sdlw-ct__corner, .sdlw-ct__feature { padding-left: 22px !important; }
	.sdlw-ct__table tbody th, .sdlw-ct__table tbody td { padding-top: 16px; padding-bottom: 16px; }
}

/* Mobile */
@media (max-width: 767px) {
	.sdlw-ct { --sdlw-ct-min: 900px; --sdlw-ct-first: 150px; --sdlw-ct-mark: 12px; --sdlw-ct-radius: 14px; }
	.sdlw-ct__table { font-size: 14px; }
	.sdlw-ct__table thead th { padding: 12px 8px; font-size: 13px; }
	.sdlw-ct__table tbody th, .sdlw-ct__table tbody td { padding: 14px 8px; }
	.sdlw-ct__corner, .sdlw-ct__feature { padding-left: 16px !important; }
	.sdlw-ct__feature-label { font-size: 14px; }
	.sdlw-ct__legend { gap: 8px 20px; padding: 16px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.sdlw-ct--shadow .sdlw-ct__card::after,
	.sdlw-ct__table th,
	.sdlw-ct__table td,
	.sdlw-ct__mark { transition: none; }
	.sdlw-ct--grow .sdlw-ct__cell:hover .sdlw-ct__mark { transform: none; }
}
