/* Floating menu, the same movement as the home page: at the top of the page the
   menu sits lower and wider, and once the page scrolls (script.js adds .scrolled
   after 40px) it docks as the usual pill. It keeps its dark background the whole
   time, so it reads the same on white and dark pages. The home page has its own
   version in css/home-hero.css, where the menu sits inside the dark hero card. */
#navbar { transition:top .35s ease, padding .35s ease; backdrop-filter:none !important; -webkit-backdrop-filter:none !important; box-shadow:none !important; background:transparent !important; }
#navbar:not(.scrolled) { top:46px; padding:0 104px; }
#navbar .nav-inner { transition:max-width .35s ease, box-shadow .22s ease; }
#navbar:not(.scrolled) .nav-inner { max-width:1800px; }
@media (max-width:1100px) { #navbar:not(.scrolled) { top:30px; padding:0 52px; } }
@media (max-width:600px) { #navbar:not(.scrolled) { top:14px; padding:0 18px; } }
@media (prefers-reduced-motion:reduce) { #navbar, #navbar .nav-inner { transition:none; } }
/* A faint light edge so the dark pill stays visible on dark sections too (404, legal page headers). */
#navbar .nav-inner { border:1px solid rgba(255,255,255,.14) !important; }
