{# Recursive: heading depth is bounded only by the `toc` extension's toc_depth, so an entry includes this same template for each of its children. The inner `for` rebinds `toc_item` in loop scope, which is what makes the recursion work (same trick as partials/nav-item.html). #}