/* The site-wide header menu. Inherits whichever accent the page defines, so it
   reads as part of each theme rather than an imported widget. */

.site-menu{position:relative;display:flex;align-items:center}

.site-menu-toggle{width:34px;height:34px;border:1px solid #ffffff40;background:#17282b30;
 border-radius:50%;padding:0;display:grid;place-items:center;color:inherit}
.site-menu-toggle svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;
 stroke-linecap:round}
.site-menu-toggle[aria-expanded=true]{background:var(--lime,var(--accent,#d4ed93));
 border-color:transparent;color:#1b2a22}

/* Fixed, and positioned from the toggle at open time: the running page's header
   lives inside an overflow:hidden section that would clip an absolute panel. */
.site-menu-panel{position:fixed;z-index:60;width:min(260px,calc(100vw - 24px));
 padding:8px;border:1px solid #ffffff20;border-radius:14px;background:#142328f0;
 backdrop-filter:blur(18px);box-shadow:0 18px 50px #00000059;
 transform-origin:top right;transition:opacity .18s ease,transform .18s ease,visibility .18s}
.site-menu-panel[data-open=false]{opacity:0;visibility:hidden;transform:scale(.96) translateY(-6px);
 pointer-events:none}
.site-menu-panel[data-open=true]{opacity:1;visibility:visible;transform:none}
@media(prefers-reduced-motion:reduce){.site-menu-panel{transition:none}}

.site-menu-links{display:grid;gap:2px}
.site-menu-panel a,.site-menu-profile{display:block;width:100%;text-align:left;
 padding:9px 11px;border:0;border-radius:9px;background:transparent;color:#dfe7e2;
 text-decoration:none;font:inherit;cursor:pointer}
.site-menu-panel a:hover,.site-menu-profile:hover{background:#ffffff0f}
.site-menu-panel a:focus-visible,.site-menu-profile:focus-visible{outline:2px solid var(--lime,var(--accent,#d4ed93));outline-offset:-2px}

.site-menu-label{display:block;font-size:13px;font-weight:600;line-height:1.5}
.site-menu-note{display:block;font-size:10px;line-height:1.6;color:#8b9b9d}

/* The page you are on, marked so the menu doubles as a "where am I". */
.site-menu-panel a[aria-current=page]{background:#d4ed9314}
.site-menu-panel a[aria-current=page] .site-menu-label{color:var(--lime,var(--accent,#d4ed93))}
.site-menu-panel a[aria-current=page] .site-menu-label:after{content:'·';margin-left:8px;opacity:.7}

.site-menu-profile{margin-top:6px;border-top:1px solid #ffffff16;border-radius:0 0 9px 9px;
 padding-top:11px}
.site-menu-profile .site-menu-note{color:var(--lime,var(--accent,#d4ed93));opacity:.85}

@media(max-width:700px){
 .site-menu-panel{width:min(248px,calc(100vw - 24px))}
 .site-menu-label{font-size:14px}
}
