:root { --mst-toggle-color: #113171; }
@media (max-width: 782px) {
  .wp-block-navigation__submenu-container,
  .wp-block-navigation__submenu-container ul,
  ul.sub-menu { transition: max-height 220ms ease; }

  /* Inline row (label + toggle or spacer) */
  .mst-inline-row {
    display: inline-flex !important; align-items: center; gap: 8px;
    margin: 0 !important; padding: 8px 16px !important; line-height: 1.2 !important;
    vertical-align: middle;
  }

  .mst-toggle-submenu.mst-toggle-inline {
    display: inline-flex !important; align-items: center; justify-content: center;
    background: transparent !important; border: 0 !important; padding: 0 !important; margin: 0 !important;
    line-height: 1; cursor: pointer; text-decoration: none !important; box-shadow: none !important; outline: none !important; vertical-align: middle;
  }
  .mst-toggle-submenu .mst-toggle-icon { font-size: 1.6em; line-height: 1; color: var(--mst-toggle-color); }

  /* Spacer has same visual width as arrow to align items without submenu */
  .mst-icon-spacer { display: inline-block; width: 1.1em; height: 1em; }

  /* Remove bars/underline in collapsed submenus */
  li.has-child:not(.mst-menu-open) > .wp-block-navigation__submenu-container,
  li.menu-item-has-children:not(.mst-menu-open) > ul.sub-menu {
    border: 0 !important; box-shadow: none !important; background: transparent !important;
    padding-top: 0 !important; margin-top: 0 !important;
  }
  li.has-child:not(.mst-menu-open) > .wp-block-navigation__submenu-container::before,
  li.has-child:not(.mst-menu-open) > .wp-block-navigation__submenu-container::after,
  li.menu-item-has-children:not(.mst-menu-open) > ul.sub-menu::before,
  li.menu-item-has-children:not(.mst-menu-open) > ul.sub-menu::after { content: none !important; display: none !important; }

  /* Neutralize UL defaults that cause indents/gaps */
  .wp-block-navigation__submenu-container,
  .wp-block-navigation__submenu-container ul {
    padding-inline-start: 0 !important; margin-inline-start: 0 !important;
    gap: 0 !important; row-gap: 0 !important; column-gap: 0 !important;
  }
  .wp-block-navigation__submenu-container > li,
  .wp-block-navigation__submenu-container > li + li,
  ul.sub-menu > li, ul.sub-menu > li + li { margin: 0 !important; padding: 0 !important; }
}