/* PLAMBAR Mobile View v1.1.5 */
/* Fixed top header + horizontal toolbar with submenu support */

@media (max-width: 992px) {

  /* Hide the theme's default header/nav */
  header,
  .plambar-header,
  .header,
  .nav,
  .nav-links,
  .main-navigation,
  .menu,
  .site-navigation,
  .menu-primary-container,
  .header-right nav {
    display: none !important;
    visibility: hidden !important;
  }

  /* Fixed plugin header */
  .plmbar-mobile-header {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }

  .plmbar-mobile-header__inner {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
  }

  .plmbar-mobile-header__brand {
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
  }

  .plmbar-mobile-header__toggle {
    background: transparent;
    border: none;
    padding: 8px;
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
  }

  .plmbar-mobile-header__bar {
    width: 22px;
    height: 2px;
    background: #000;
  }

  /* Toolbar container (slides down) */
  .plmbar-mobile-menu {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f7f7f8; /* subtle gray strip under header */
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }

  .plmbar-mobile-menu.is-open { max-height: 80vh; }

  /* Horizontal toolbar */
  .plmbar-mobile-menu__list {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px 10px;
    list-style: none;
    margin: 0;
    padding: 8px 12px 12px 12px;
  }

  .plmbar-mobile-menu__list > li {
    margin: 0;
  }

  .plmbar-mobile-menu__list > li > a {
    display: inline-block;
    padding: 10px 12px;
    text-decoration: none;
    line-height: 1.2;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
  }

  /* Submenu styling (collapsed by default) */
  .plmbar-mobile-menu__list li .sub-menu {
    display: none;
    width: 100%;
    margin: 0;
    padding: 6px 0 6px 0;
    list-style: none;
  }

  .plmbar-mobile-menu__list li.is-open > .sub-menu {
    display: block;
  }

  .plmbar-mobile-menu__list li .sub-menu a {
    display: block;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 6px;
    padding: 10px 12px;
    margin: 4px 0;
    text-decoration: none;
  }

  /* Prevent content overlap */
  body { padding-top: 56px !important; }
}
