{#- Custom tabs partial — adds dropdown menus for sections with children. For top-level nav items that have children (Development, Reference, ADRs), a hover-activated dropdown lists all child pages. Single-page tabs (Specification, Timeline, FAQ) render as plain links. Replaces the default Material tabs.html + tabs-item.html. -#} {#- Recursive macro: drill to the first leaf page in a section tree. -#} {% macro first_leaf_url(nav_item) %} {% if nav_item.children %} {% set first = nav_item.children | first %} {{ first_leaf_url(first) }} {% else %} {{ nav_item.url | url }} {% endif %} {% endmacro %} {#- Recursive helper: collect all leaf pages under a section. -#} {% macro render_dropdown_items(children) %} {% for child in children %} {% if child.children %} {#- Nested section — render a group label + its children -#}