sh-table-expanded-row {
	background-color: var(--sh-color-neutral-90);
	border-block-start: 2px dashed var(--sh-color-neutral-0);

	/* Free-content layout: the single full-width cell carries the padding. (Ignored in the tabular
	   layout, where the cell wrapper collapses and the detail rows carry their own cells.) */

	&::part(cell) {
		padding: 0.75rem;
	}
}

/* Detail rows in a tabular expansion: aligned on the parent columns, with a quieter, nested look —
   thin dashed separators between siblings rather than the solid body-row rule. */

sh-table-row:state(detail) {
	background-color: var(--sh-color-neutral-90);
	border-block-start: 1px dashed var(--sh-color-neutral-40);

	&:hover {
		background-color: var(--sh-color-neutral-80);
	}
}

sh-table-expanded-row:state(tabular) > sh-table-row:state(detail):first-child {
	border-block-start: none;
}
