/* A plain, theme-aware close icon with a full touch target. */
@media(max-width:900px){
 html body :is(#r44Close,#appMoreClose,#classicMobileClose){
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 44px!important;width:44px!important;height:44px!important;min-width:44px!important;
  padding:0!important;margin:0!important;border:0!important;border-radius:50%!important;
  background:transparent!important;background-image:none!important;box-shadow:none!important;
  color:inherit!important;font-family:Arial,sans-serif!important;font-size:32px!important;
  font-weight:400!important;line-height:1!important;text-shadow:none!important;cursor:pointer;
 }
 html body :is(#r44Close,#appMoreClose,#classicMobileClose):focus-visible{outline:2px solid currentColor!important;outline-offset:2px}
 html body :is(#r44Close,#appMoreClose,#classicMobileClose):active{background:color-mix(in srgb,currentColor 12%,transparent)!important}
 html body .r44-menu-heading{align-items:center!important;padding-bottom:10px!important}
 html body :is(#r44Sidebar,#appShellMenu,#classicMobileScroll){overscroll-behavior-y:contain}
}
@media(prefers-reduced-motion:reduce){html body :is(#r44Sidebar,#appShellMenu){transition:none!important}}

/* Touch browsers can keep :hover after a tap. Only .active may stay highlighted. */
@media (max-width:900px) and (hover:none), (max-width:900px) and (pointer:coarse){
 html body.ref44 :is(#r44Sidebar) a:hover:not(.active),
 html body.ref44-nav :is(#r44Sidebar) a:hover:not(.active){
  background:transparent!important;box-shadow:none!important;
  color:var(--r44-theme-muted,#64748b)!important;
 }
}

/* iPhone drawer gestures: vertical lists and pinch zoom remain native. */
@media(max-width:900px){
 html body :is(#r44Sidebar,#appShellMenu,#siteNav,#r44Shade,#appShellOverlay,#classicNavBackdrop){
  touch-action:pan-y pinch-zoom;overscroll-behavior-x:contain;
 }
}
