/* The ☰ site menu (views/partials/site-nav.ejs), on every page that includes it:
   the site pages link this after site.css, the blog pages link it on its own
   (they don't load site.css). Moved out of site.css 2026-11-29 so there is one
   copy. Loaded before the theme stylesheet, so themes can still restyle it.
   Fallbacks cover the blog pages, whose own variables are a smaller set. */
.nav, .site-nav { position: fixed; top: 0; right: 0; padding: 20px 24px; z-index: 100; }
.nav .icon { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; flex-shrink: 0; }
.nav .icon-lg { width: 20px; height: 20px; }
.nav .icon-solid { fill: currentColor; stroke: none; }

.menu-toggle { width: 44px; height: 44px; border-radius: var(--radius-md, 10px); background: var(--bg-card, var(--bg-secondary)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition, 180ms ease); color: var(--text-primary); }
.menu-toggle:hover { background: var(--bg-secondary); border-color: var(--text-accent); color: var(--text-accent); }

.menu-dropdown { position: absolute; top: 72px; right: 24px; background: var(--bg-card, var(--bg-secondary)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--border-color); border-radius: var(--border-radius, 14px); padding: 8px; min-width: 180px; box-shadow: var(--shadow-lg, 0 12px 32px rgba(0, 0, 0, 0.12)); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: var(--transition, 180ms ease); }
.menu-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }

.menu-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; color: var(--text-primary); text-decoration: none; font-size: 0.9375rem; font-weight: 500; border-radius: var(--radius-md, 10px); transition: var(--transition, 180ms ease); }
.menu-item:hover { background: var(--accent-subtle); color: var(--text-accent); }
.menu-item .icon { opacity: 0.7; }

.menu-divider { height: 1px; background: var(--border-color); margin: 8px 0; }
