Following these great suggestions from Henry to simplify the HTML structure and use a more consistent and easily manageable style.
"You could expand the idea and apply the grid display to the
resultsOption-* elements with
grid-template-columns: auto auto 1fr;
gap: 3px 6px;
and set the
grid-column of the other elements appropriately (e.g.
result-indent would be
2 / 4), plus remove all inline margins, and other tidying.
This would also fix the
1px misalignment of the start of
.toggle-container-with-text > span and
.result-indent: the latter two have an inline margin of
21px, but the first element starts at
22px (from the
margin-inline of the