/* Graxynet JNSPS Green v2.1.16
   Final article-grid and authentication-button corrections */

/* ==============================================================
   1. FORCE A TRUE TWO-COLUMN ARTICLE GRID ON DESKTOP
   ============================================================== */
html body .obj_issue_toc .cmp_article_list.articles,
html body .obj_issue_toc ul.cmp_article_list.articles,
html body .current_issue .cmp_article_list.articles,
html body .page_issue .cmp_article_list.articles,
html body .rans-force-article-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  grid-auto-rows: auto !important;
  column-gap: 22px !important;
  row-gap: 22px !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  align-items: stretch !important;
  box-sizing: border-box !important;
}

html body .obj_issue_toc .cmp_article_list.articles > li,
html body .current_issue .cmp_article_list.articles > li,
html body .page_issue .cmp_article_list.articles > li,
html body .rans-force-article-grid > li {
  grid-column: auto !important;
  grid-row: auto !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: none !important;
  list-style: none !important;
  box-sizing: border-box !important;
}

html body .rans-force-article-grid > li > .obj_article_summary,
html body .obj_issue_toc .cmp_article_list.articles > li > .obj_article_summary {
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 100% !important;
  margin: 0 !important;
}

/* Prevent the secondary galley list from changing grid geometry. */
html body .rans-force-article-grid > li > .galleys_links,
html body .obj_issue_toc .cmp_article_list.articles > li > .galleys_links {
  width: 100% !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* ==============================================================
   2. MAKE REGISTER / LOGIN CLEARLY VISIBLE
   ============================================================== */
html body .pkp_structure_head .jampl-utility-user,
html body .pkp_structure_head .pkp_navigation_user_wrapper.jampl-utility-user {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

html body .pkp_structure_head .jampl-utility-user .pkp_navigation_user,
html body .pkp_structure_head .jampl-utility-user > ul,
html body .pkp_structure_head .pkp_navigation_user_wrapper.jampl-utility-user > ul {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

html body .pkp_structure_head .jampl-utility-user li,
html body .pkp_structure_head .pkp_navigation_user_wrapper.jampl-utility-user li {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

html body .pkp_structure_head .jampl-utility-user li::before,
html body .pkp_structure_head .jampl-utility-user li::marker,
html body .pkp_structure_head .pkp_navigation_user_wrapper.jampl-utility-user li::before,
html body .pkp_structure_head .pkp_navigation_user_wrapper.jampl-utility-user li::marker {
  content: none !important;
  display: none !important;
}

html body .pkp_structure_head .jampl-utility-user a,
html body .pkp_structure_head .jampl-utility-user a:visited,
html body .pkp_structure_head .jampl-utility-user button,
html body .pkp_structure_head .pkp_navigation_user_wrapper.jampl-utility-user a,
html body .pkp_structure_head .pkp_navigation_user_wrapper.jampl-utility-user a:visited {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 86px !important;
  min-height: 40px !important;
  padding: 8px 16px !important;
  margin: 0 !important;
  border: 1px solid #c9ddd0 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #0f5132 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  text-decoration: none !important;
  text-shadow: none !important;
  box-shadow: 0 3px 10px rgba(15,81,50,.08) !important;
  opacity: 1 !important;
  visibility: visible !important;
  white-space: nowrap !important;
}

html body .pkp_structure_head .jampl-utility-user a:hover,
html body .pkp_structure_head .jampl-utility-user a:focus,
html body .pkp_structure_head .pkp_navigation_user_wrapper.jampl-utility-user a:hover,
html body .pkp_structure_head .pkp_navigation_user_wrapper.jampl-utility-user a:focus {
  background: #eaf7ef !important;
  border-color: #198754 !important;
  color: #0f5132 !important;
  text-decoration: none !important;
  outline: none !important;
}

/* ==============================================================
   3. RESPONSIVE HEADER + ARTICLE GRID
   ============================================================== */
@media (max-width: 991px) {
  html body .obj_issue_toc .cmp_article_list.articles,
  html body .current_issue .cmp_article_list.articles,
  html body .page_issue .cmp_article_list.articles,
  html body .rans-force-article-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  html body .pkp_structure_head .jampl-utility-inner {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px 14px !important;
    padding: 10px 14px !important;
  }

  html body .pkp_structure_head .jampl-utility-links {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px 18px !important;
  }

  html body .pkp_structure_head .jampl-utility-user {
    flex: 0 0 auto !important;
  }

  html body .pkp_structure_head .jampl-utility-user a,
  html body .pkp_structure_head .jampl-utility-user button {
    min-width: 74px !important;
    min-height: 36px !important;
    padding: 7px 12px !important;
    font-size: 13px !important;
  }

  html body .pkp_structure_head .pkp_site_name_wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 16px 14px !important;
    text-align: center !important;
  }

  html body .pkp_structure_head .pkp_site_name {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
  }

  html body .pkp_structure_head .pkp_site_name img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: min(88vw, 430px) !important;
    max-height: 76px !important;
    margin: 0 auto !important;
    object-fit: contain !important;
  }

  html body .pkp_structure_head .jampl-issn {
    width: 100% !important;
    margin: 0 !important;
    text-align: center !important;
    white-space: normal !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  html body .pkp_structure_head .pkp_navigation_primary_row,
  html body .pkp_structure_head .pkp_navigation_primary_wrapper {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }

  html body #navigationPrimary {
    display: flex !important;
    flex-wrap: nowrap !important;
    min-width: max-content !important;
  }
}

@media (max-width: 600px) {
  html body .pkp_structure_head .jampl-utility-inner {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: stretch !important;
  }

  html body .pkp_structure_head .jampl-utility-links {
    justify-content: center !important;
  }

  html body .pkp_structure_head .jampl-utility-user,
  html body .pkp_structure_head .jampl-utility-user .pkp_navigation_user,
  html body .pkp_structure_head .jampl-utility-user > ul {
    width: 100% !important;
    justify-content: center !important;
  }

  html body .pkp_structure_head .jampl-utility-user a,
  html body .pkp_structure_head .jampl-utility-user button {
    min-width: 92px !important;
  }
}
