/* ===========================================================
   Site menu: fixed left sidebar on every page (logo, links, Instagram + Email),
   collapsing to logo + MENU on phones. Same look as the Art+ page, which is the homepage.
   Loaded after styles.css. Pages add  class="has-sidebar"  to <body> so their content
   clears the sidebar (the Art+ page lays itself out with art.css instead).
   =========================================================== */
#sidebar{position:fixed; top:0; left:0; width:192px; padding:30px; z-index:60}
#sidebar a{color:#000; text-decoration:none}
#sidebar .logo img{display:block; width:132px; height:auto; object-fit:contain}
#sidebar nav{margin-top:32px}
#sidebar nav a{display:block; font-weight:800; font-size:18px; line-height:26px; margin-bottom:3px; text-transform:uppercase; white-space:nowrap; font-family:"Helvetica Neue",Helvetica,Arial,sans-serif}
#sidebar nav a:hover{text-decoration:underline; text-underline-offset:4px; text-decoration-thickness:2px}
#sidebar nav a[aria-current="page"]{text-decoration:underline; text-underline-offset:4px; text-decoration-thickness:2px}
#sidebar nav .gap{margin-top:28px}
#menuBtn{display:none}

/* Pages other than Art+ shift right to clear the sidebar */
body.has-sidebar{padding-left:192px}

@media(max-width:1100px){
  #sidebar .logo img{width:75px}
}
@media(max-width:767px){
  #sidebar{position:relative; width:auto; padding:10px 15px 0; display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap}
  #sidebar .logo img{width:39px}
  #menuBtn{display:block; background:none; border:0; padding:0; cursor:pointer; font:800 22px/30px "Helvetica Neue",Helvetica,Arial,sans-serif; text-transform:uppercase; color:#000}
  #sidebar nav{display:none; width:100%; margin-top:14px; padding-bottom:6px}
  #sidebar.open nav{display:block}
  body.has-sidebar{padding-left:0}
}

/* ===========================================================
   Best Deals easter egg. The menu item does not exist until sidebar.js creates it (when a trigger
   fires). It condenses out of a heat-haze blur once, then stays as a normal, solid menu item (no looping flash).
   =========================================================== */
#sidebar nav a.deal-egg{width:fit-content}
/* the reveal: condenses out of a heavy blur, like something appearing in the distance */
#sidebar nav a.deal-egg.deal-egg--new{animation:egg-appear 5s ease-out}
@keyframes egg-appear{0%{filter:url(#egg-mirage) blur(16px); transform:translateY(-6px) scaleX(1.35)} 55%{filter:url(#egg-mirage) blur(5px)} 100%{filter:url(#egg-mirage) blur(0); transform:none}}
/* phones: the menu is closed, so make the MENU button itself waver once an item appears */
#menuBtn.egg-pulse{animation:egg-menu-haze 1.6s ease-in-out 4}
@keyframes egg-menu-haze{0%,100%{filter:blur(0); opacity:1} 50%{filter:blur(2.2px); opacity:.45}}
.egg-live{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}
@media(prefers-reduced-motion:reduce){
  #sidebar nav a.deal-egg{filter:none}
  .deal-egg .egg-text{animation:none}
  #sidebar nav a.deal-egg,.deal-egg--new,#menuBtn.egg-pulse{animation:none}
}
