/* Journal Appearance stylesheet. OJS core and parent theme remain unchanged. */
#headerNavigationContainer #main-navigation > .menu-item-34 > .dropdown-menu {
  left: auto;
  right: 0;
  width: 29rem;
  min-width: 0;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 170px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
#headerNavigationContainer #main-navigation > .menu-item-34 > .dropdown-menu > li > a {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.45;
  padding: 9px 16px;
}
#headerNavigationContainer #main-navigation a:focus-visible {
  outline: 2px solid #0b3d91;
  outline-offset: -3px;
}
@media (max-width: 767px) {
  #headerNavigationContainer #nav-menu.in {
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    overflow-x: hidden;
  }
  #headerNavigationContainer #main-navigation > .menu-item-34 > .dropdown-menu {
    position: static;
    float: none;
    left: auto;
    right: auto;
    width: 100%;
    max-width: 100%;
    max-height: none;
    overflow: visible;
    box-shadow: none;
  }
  #headerNavigationContainer #main-navigation > li > a,
  #headerNavigationContainer #main-navigation > .menu-item-34 > .dropdown-menu > li > a {
    white-space: normal;
    overflow-wrap: anywhere;
    min-height: 44px;
  }
}

/* SRT responsive hardening, 2026-09-02. Custom journal CSS only. */
@media (max-width: 991px) {
  html,
  body,
  .pkp_structure_page {
    max-width: 100%;
    overflow-x: hidden;
  }

  .navbar .container-fluid,
  .pkp_structure_content.container,
  .footer .container {
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: auto;
    margin-right: auto;
    padding-left: 14px;
    padding-right: 14px;
  }

  .pkp_structure_content.container {
    display: block;
  }

  .pkp_structure_main,
  .pkp_structure_sidebar,
  .mdpi-left-panel,
  .mdpi-main-content {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .mdpi-home-row {
    display: flex;
    flex-direction: column;
    margin-left: 0;
    margin-right: 0;
  }

  .pkp_structure_main > .page,
  .pkp_structure_main .page-header,
  .pkp_structure_main .srt-publication-ethics,
  .pkp_structure_main [class*="policy"] {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .pkp_structure_main .page-header h1,
  .pkp_structure_main h1,
  .pkp_structure_main h2,
  .pkp_structure_main h3,
  .pkp_structure_main p,
  .pkp_structure_main li,
  .pkp_structure_main a {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .pkp_structure_main img,
  .pkp_structure_main svg,
  .pkp_structure_main video,
  .pkp_structure_main iframe {
    max-width: 100%;
    height: auto;
  }

  .pkp_structure_main pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
  }

  .pkp_structure_main table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Use the compact Bootstrap navigation through tablet width. */
  #headerNavigationContainer .navbar-header {
    float: none !important;
    width: 100%;
  }

  #headerNavigationContainer .navbar-toggle {
    display: block !important;
    margin-right: 0;
  }

  #headerNavigationContainer .navbar-collapse {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-left: 0;
    padding-right: 0;
  }

  #headerNavigationContainer .navbar-collapse.collapse {
    display: none !important;
  }

  #headerNavigationContainer .navbar-collapse.collapse.in,
  #headerNavigationContainer .navbar-collapse.collapsing {
    display: block !important;
  }

  #headerNavigationContainer #main-navigation {
    float: none !important;
    width: 100%;
    margin: 0;
  }

  #headerNavigationContainer #main-navigation > li {
    float: none !important;
    width: 100%;
  }

  #headerNavigationContainer #main-navigation > li > a {
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
  }

  #headerNavigationContainer #main-navigation .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    max-height: none;
    overflow: visible;
    box-shadow: none;
  }

  .mdpi-topbar-row,
  #navigationUser {
    max-width: 100%;
  }

  .mdpi-topbar-row {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .navbar .container-fluid,
  .pkp_structure_content.container,
  .footer .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .pkp_structure_content.container {
    padding-top: 12px;
  }

  .pkp_structure_main > .page:not(.page_index_journal):not(.page_issue):not(.page_issue_archive) {
    padding: 16px 14px;
  }

  .pkp_structure_main .page-header h1 {
    font-size: 27px;
    line-height: 1.18;
  }

  .mdpi-indicators {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .mdpi-indicator {
    width: 100%;
    min-width: 0;
  }

  .mdpi-hero,
  .mdpi-banner {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .mdpi-banner-content,
  .mdpi-hero-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Keep both assistant entry points usable without covering article text. */
  #srtHelpWrap {
    right: 10px !important;
    bottom: 10px !important;
    max-width: calc(100vw - 20px) !important;
  }

  #srtHelpWrap #rumNudge {
    display: none !important;
  }

  #srtHelpWrap .rum-main {
    width: 52px !important;
    height: 52px !important;
    padding: 8px !important;
    justify-content: center !important;
  }

  #srtHelpWrap .rum-main img {
    width: 36px !important;
    height: 36px !important;
  }

  #srtHelpWrap .rum-main-copy,
  #srtSubmitFloat .rum-submit-label {
    display: none !important;
  }

  #srtSubmitFloat {
    right: 10px !important;
    bottom: 74px !important;
    max-width: calc(100vw - 20px) !important;
  }

  #srtSubmitFloat .rum-submit-trigger {
    width: 52px !important;
    height: 52px !important;
    padding: 8px !important;
    gap: 0 !important;
    justify-content: center !important;
  }

  #srtSubmitFloat .rum-submit-mark {
    width: 36px !important;
    height: 36px !important;
  }
}

/* SRT editorial profile links: 2026-09-02 */
.editorial-board-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-inline-start: 7px;
  vertical-align: middle;
}

.editorial-board-links .srt-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 2px 7px 2px 4px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #173b5c;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
}

.editorial-board-links .srt-profile-link:hover,
.editorial-board-links .srt-profile-link:focus {
  border-color: #1d5f96;
  background: #f0f7fc;
  color: #0b4f82;
}

.editorial-board-links .srt-profile-link:focus-visible {
  outline: 2px solid #f2b632;
  outline-offset: 2px;
}

.editorial-board-links .srt-profile-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  border-radius: 50%;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: -.2px;
}

.editorial-board-links .srt-profile-link--orcid .srt-profile-mark {
  background: #a6ce39;
}

.editorial-board-links .srt-profile-link--scholar .srt-profile-mark {
  background: #4285f4;
}

@media (max-width: 480px) {
  .editorial-board-links {
    gap: 4px;
    margin-inline-start: 5px;
  }

  .editorial-board-links .srt-profile-link {
    width: 26px;
    height: 26px;
    min-height: 26px;
    padding: 4px;
    justify-content: center;
  }

  .editorial-board-links .srt-profile-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}
