{{- /* nav.html — primary navigation built from pages with showInNav: true,
ordered by weight. Desktop = inline list; mobile = Alpine.js toggle. */ -}}
{{- $current := . -}}
{{- $navPages := sort (where .Site.Pages "Params.showInNav" true) "Weight" -}}
{{/* Desktop — min-w-0 lets the nav shrink inside the flex row; overflow-x-auto
keeps a long section list on one line and scrollable instead of pushing the
header past the viewport. */}}
{{/* Mobile — native so the menu works with NO JavaScript; Alpine adds
escape-to-close and click-outside-to-close when available. */}}