sh-table-header {
	padding: 0.625rem 0.75rem;
	font-weight: 600;

	/* Sort button (the header row is dark, the focus ring must stay visible on it) */

	&::part(sort-button):hover {
		text-decoration: underline;
		text-underline-offset: 0.2em;
	}

	&::part(sort-button):focus-visible {
		outline: var(--sh-focus-outline);
		outline-color: var(--sh-color-neutral-100);
		outline-offset: var(--sh-focus-outline-offset);
	}

	/* Preview the sort icon on hover before the column is sorted */

	&:state(sortable):hover::part(sort-icon) {
		visibility: visible;
		opacity: 0.6;
	}

	&:state(ascending)::part(sort-icon),
	&:state(descending)::part(sort-icon) {
		opacity: 1;
	}
}
