/* Preserve the page's content width, but let the modal cover the full viewport. */
html.site-menu-open {overflow:hidden;scrollbar-gutter:auto;box-sizing:border-box;padding-inline-end:var(--site-menu-page-gutter,0px);}
html:root dialog.site-menu-sheet {
 position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;
 border:0;border-radius:0;box-sizing:border-box;background:#174b52;color:#eff3ec;
 overflow-y:auto;overscroll-behavior:contain;box-shadow:none;
}
html:root[data-theme=dark] dialog.site-menu-sheet {background:#132f35;}
dialog.site-menu-sheet::backdrop {background:#102b2d60;}
.site-menu-top {display:flex;align-items:center;justify-content:space-between;gap:20px;padding:calc(20px + env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) 22px max(24px,env(safe-area-inset-left));}
.site-menu-brand {font:24px/1.3 Georgia,serif;letter-spacing:-.5px;color:#e5ebdf;}
html:root dialog.site-menu-sheet .site-menu-top button {appearance:none;box-sizing:border-box;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:10px;border:0;border-radius:50%;background:transparent;color:#eff3ec;cursor:pointer;}
.site-menu-top svg {width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;}
dialog.site-menu-sheet nav {position:static;inset:auto;background:transparent;border:0;display:flex;flex-direction:column;align-items:stretch;gap:6px;max-width:760px;padding:18px max(38px,env(safe-area-inset-right)) calc(48px + env(safe-area-inset-bottom)) max(38px,env(safe-area-inset-left));margin:0 auto;}
dialog.site-menu-sheet nav a::after {display:none;}
dialog.site-menu-sheet nav a {display:block;min-height:44px;padding:10px 0;border:0;border-radius:8px;background:transparent;color:#edf2eb;text-decoration:none;font:600 clamp(28px,4vw,38px)/1.24 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;letter-spacing:-.8px;overflow-wrap:anywhere;}
dialog.site-menu-sheet nav a[aria-current=page] {color:#e8d39c;background:transparent;}
dialog.site-menu-sheet :is(a,button):focus-visible {outline:2px solid #eed49a;outline-offset:3px;}
@media(hover:hover) and (pointer:fine) {dialog.site-menu-sheet nav a:hover {color:#e8d39c;} html:root dialog.site-menu-sheet .site-menu-top button:hover {background:#ffffff0c;}}
@media(prefers-reduced-motion:no-preference) {dialog.site-menu-sheet nav a {transition:color 180ms ease;} .site-menu-top button {transition:background-color 180ms ease;}}
@media(max-width:380px) {.site-menu-top {padding-inline:20px;}dialog.site-menu-sheet nav {padding:12px 28px 32px;}dialog.site-menu-sheet nav a {font-size:26px;padding:10px 0;}}
@media(forced-colors:active) {html:root dialog.site-menu-sheet {background:Canvas;color:CanvasText;}dialog.site-menu-sheet a,html:root dialog.site-menu-sheet .site-menu-top button {color:LinkText;}dialog.site-menu-sheet nav a[aria-current=page] {outline:1px solid Highlight;}}
