/* Final language-picker safety: the menu is positioned by the visible trigger,
   then clamped to the viewport on every screen size and text direction. */
.language-switcher{isolation:isolate;}
.language-switcher .language-menu{
  position:fixed !important;
  inset:auto !important;
  top:88px !important;
  left:12px !important;
  width:min(300px,calc(100vw - 24px)) !important;
  max-width:calc(100vw - 24px) !important;
  max-height:min(62vh,560px) !important;
  z-index:1200 !important;
}
@media(max-width:640px){
  .language-switcher .language-menu{
    width:calc(100vw - 20px) !important;
    max-width:calc(100vw - 20px) !important;
    max-height:min(66vh,520px) !important;
  }
}

/* Homey recovery: article bodies must remain visible; homepage-only journal suppression is preserved. */
body:not(.homey-homepage) .homey-journal-entry { display:block !important; visibility:visible !important; opacity:1 !important; }
