.sfb-sortable-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-block: 1.25rem;
	max-width: 100%;
	scrollbar-gutter: stable;
}

.sfb-sortable-table {
	width: 100%;
	min-width: 760px;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 0.88rem;
	line-height: 1.32;
}

.sfb-sortable-table th,
.sfb-sortable-table td {
	vertical-align: top;
	text-align: left;
	border: 1px solid currentColor;
	padding: 0.44rem 0.56rem;
	word-break: normal;
	overflow-wrap: normal;
	hyphens: none;
}

.sfb-sortable-table thead th {
	font-weight: 700;
	border-bottom-width: 2px;
}

.sfb-sortable-table tbody tr:hover {
	background: rgba(127, 127, 127, 0.06);
}

.sfb-sortable-table th button {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	appearance: none;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: inherit;
	padding: 0;
	cursor: pointer;
	text-align: left;
}

.sfb-sortable-table th button:hover,
.sfb-sortable-table th button:focus-visible {
	text-decoration: underline;
}

.sfb-sortable-table th[aria-sort="ascending"] button::after { content: "↑"; }
.sfb-sortable-table th[aria-sort="descending"] button::after { content: "↓"; }

.sfb-sortable-table__status {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.sfb-terms-alphabetical__intro { max-width: 72ch; }

.sfb-terms-table th:nth-child(1), .sfb-terms-table td:nth-child(1) { width: 19%; }
.sfb-terms-table th:nth-child(2), .sfb-terms-table td:nth-child(2) { width: 19%; }
.sfb-terms-table th:nth-child(3), .sfb-terms-table td:nth-child(3) { width: 24%; }
.sfb-terms-table th:nth-child(4), .sfb-terms-table td:nth-child(4) { width: 38%; }

.sfb-term-latin { font-style: italic; }
.sfb-language-separator { padding-inline: 0.18em; }

.sfb-terms-table.sort-column-0 tbody td:nth-child(1),
.sfb-terms-table.sort-column-1 tbody td:nth-child(2),
.sfb-terms-table.sort-column-2 tbody td:nth-child(3) {
	font-weight: 700;
}

@media (max-width: 900px) {
	.sfb-sortable-table { min-width: 760px; font-size: 0.86rem; }
}

@media (max-width: 782px) {
	.sfb-sortable-table th,
	.sfb-sortable-table td { padding: 0.4rem 0.48rem; }
}
