/* Custom CSS fixes for Joomla 5 upgrade */
/* user.css - loaded AFTER template.css */

/* Joomla 5: mod_menu renders <ul> directly inside div.menu without
   the div.moduletable_menu wrapper that Joomla 4 used.

   On Joomla 4, the menu <ul> ends up off-screen (clipped by
   header.hlavicka overflow:hidden) so it is invisible until the
   hamburger checkbox is toggled.  In Joomla 5 the different
   containing-block chain puts the <ul> on-screen.

   Fix: explicitly hide the bare ul.mod-menu and show it only
   when the hamburger checkbox is checked — matching production. */

div.menu > ul.mod-menu {
    display: none !important;
}

div.menu input[type=checkbox]:checked ~ ul.mod-menu {
    display: block !important;
}

/* Match Joomla 4 border styling */
div.menu ul.mod-menu.mod-list {
    border-bottom: 1px solid #bbad80;
    border-right: 1px solid #bbad80;
}
