/*
 * The "Menu" disclosure of template-parts/site/nav.php.
 * site.css (Don's file, kept byte for byte) hides the menu links at 1050px wide or less.
 * At that width, the disclosure shows the same links in a panel under the nav bar.
 * The colours and the spaces are tokens. 44px is the row height of the design system's menus.
 */
.nav-menu{display:none}
.nav-menu summary{display:flex;align-items:center;min-height:44px;font-size:var(--fs-body);cursor:pointer;list-style:none}
.nav-menu summary::-webkit-details-marker{display:none}
.nav-menu summary:hover,.nav-menu[open] summary{text-decoration:underline;text-underline-offset:6px}
.nav-menu-panel{position:absolute;top:100%;left:0;right:0;background:var(--frame-grad);border-top:1px solid var(--cream-line)}
/* The sticky header is the containing block, so 100% is its height. The panel stops at the
   bottom of the viewport and scrolls on a short or zoomed-in screen. dvh follows the phone toolbars. */
.nav-menu-panel{max-height:calc(100vh - 100%);max-height:calc(100dvh - 100%);overflow-y:auto;overscroll-behavior:contain}
/* The panel's .wrap also matches ".nav .wrap" of site.css. */
.nav .nav-menu-panel .wrap{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;min-height:0;padding-block:var(--st-3)}
.nav-menu-panel a{display:flex;align-items:center;min-height:44px;font-size:var(--fs-body);text-decoration:none}
.nav-menu-panel a+a{border-top:1px solid var(--cream-line)}
.nav-menu-panel a:hover,.nav-menu-panel a[aria-current="page"]{text-decoration:underline;text-underline-offset:6px}
/* The smaller gap keeps "Join the beta" on one line at 360px wide. ".site-nav" limits it to the
   header of nav.php. */
@media(max-width:1050px){.nav-menu{display:block;margin-left:auto}.site-nav>.wrap{gap:var(--st-4)}}
