/* Graxynet JNSPS Green v2.1.26
   Mobile menu structural fix: one independent button, no masthead overlap. */

html body .rans-mobile-menu-row,
html body .rans-mobile-menu-button {
  display: none;
}

@media (max-width: 767px) {
  /* Completely neutralize the native/OJS and older custom toggles. */
  html body .pkp_structure_head .pkp_site_nav_toggle,
  html body .pkp_structure_head .rans-mobile-nav-toggle-wrap,
  html body .pkp_structure_head .rans-mobile-nav-toggle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: static !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }

  /* Separate control bar. This always sits between masthead/ISSN and nav. */
  html body .pkp_structure_head .rans-mobile-menu-row {
    display: flex !important;
    width: 100% !important;
    min-height: 56px !important;
    padding: 8px 14px !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    background: #ffffff !important;
    border-top: 1px solid #e7f0ea !important;
    border-bottom: 1px solid #d8e8dd !important;
    box-shadow: 0 4px 12px rgba(15,81,50,.06) !important;
    position: relative !important;
    z-index: 120 !important;
  }

  html body .pkp_structure_head .rans-mobile-menu-button {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    width: auto !important;
    min-width: 108px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 8px 15px !important;
    border: 1px solid #bcd7c5 !important;
    border-radius: 11px !important;
    background: linear-gradient(180deg,#ffffff 0%,#eef8f1 100%) !important;
    color: #0f5132 !important;
    box-shadow: 0 3px 9px rgba(15,81,50,.09) !important;
    font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif !important;
    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: .2px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  html body .pkp_structure_head .rans-mobile-menu-button:hover,
  html body .pkp_structure_head .rans-mobile-menu-button:focus {
    background: #e6f5eb !important;
    border-color: #8fc3a1 !important;
    color: #0b3d2e !important;
    outline: none !important;
  }

  html body .pkp_structure_head .rans-mobile-menu-button .rans-menu-icon {
    display: inline-flex !important;
    width: 20px !important;
    height: 20px !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    line-height: 1 !important;
    font-weight: 400 !important;
  }

  /* Menu itself is collapsed by default and becomes a real vertical list. */
  html body .pkp_structure_head .pkp_navigation_primary_row {
    display: none !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #0f5132 !important;
    overflow: visible !important;
    box-shadow: 0 8px 18px rgba(15,81,50,.12) !important;
    z-index: 110 !important;
  }

  html body .pkp_structure_head.rans-mobile-menu-open .pkp_navigation_primary_row {
    display: block !important;
  }

  html body .pkp_structure_head .pkp_navigation_primary_wrapper {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  html body .pkp_structure_head #navigationPrimary {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    overflow: visible !important;
  }

  html body .pkp_structure_head #navigationPrimary > li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-top: 1px solid rgba(255,255,255,.12) !important;
  }

  html body .pkp_structure_head #navigationPrimary > li:first-child {
    border-top: 0 !important;
  }

  html body .pkp_structure_head #navigationPrimary > li > a,
  html body .pkp_structure_head #navigationPrimary > li > a:visited {
    display: flex !important;
    width: 100% !important;
    min-height: 48px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    padding: 13px 18px !important;
    background: transparent !important;
    color: #ffffff !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  html body .pkp_structure_head #navigationPrimary > li > a:hover,
  html body .pkp_structure_head #navigationPrimary > li > a:focus {
    background: #0b3d2e !important;
    color: #ffffff !important;
  }

  /* Submenus become inline blocks, preventing off-screen fly-outs. */
  html body .pkp_structure_head #navigationPrimary ul {
    position: static !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 4px 0 8px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  html body .pkp_structure_head #navigationPrimary ul li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body .pkp_structure_head #navigationPrimary ul a,
  html body .pkp_structure_head #navigationPrimary ul a:visited {
    display: block !important;
    width: 100% !important;
    padding: 11px 22px !important;
    background: #ffffff !important;
    color: #0f5132 !important;
    font-size: 13.5px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
  }

  /* Keep the masthead entirely free of menu controls. */
  html body .pkp_structure_head .pkp_site_name_wrapper,
  html body .pkp_structure_head .pkp_site_name {
    position: relative !important;
    overflow: hidden !important;
  }

  /* Mobile ISSN row stays separate from logo and menu controls. */
  html body .pkp_structure_head .jampl-issn.rans-mobile-issn-row {
    position: static !important;
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px 12px !important;
    border-radius: 0 !important;
    background: #147a49 !important;
    color: #ffffff !important;
    box-shadow: none !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
    text-align: center !important;
  }
}
