Semantically I have a table so I would use the HTML <table> element. For grouping rows I can use <tbody>:
<table>
<tbody>
<tr><td>A</td><td>1</td></tr>
<tr><td>B</td><td>1</td></tr>
...
</tbody>
<tbody>
<tr><td>a</td><td>1</td></tr>
<tr><td>b</td><td>2</td></tr>
...
</tbody>
</tbody>
At each <tbody> I want to (outside of the table on the left) have a link/heading/anchor identifying that subsection. If I make the <table> display:grid and have each <tbody> generate a row I would have the grid lines necessary to place the link/heading/anchor to the left.
However, these grid lines would be contained by the table and not extend beyond, so I couldn't "lay" anything on them. I guess I'm looking for an inverse of subgrid which lets you have a bigger grid and nest a subgrid into it. But I want to have a grid and extend from the smaller grid:

tableintodisplay:grid. Usedivs in proper containers.display: gridon an HTML table. but it's not at all clear how the link/heading/anchor fits into that semantic table structure, as it surely should. Can you clarify that?