/* DMI Maritime Research v1.6.7 — archive density and persistent active navigation.
   Loaded after the parent/default and all earlier DMI styles. */

/* Persistent active navigation: JS sets .dmi-active based on the current OJS URL;
   native OJS active/current markup is also respected. */
body.dmi-theme.dmi-header-fixed .pkp_navigation_primary > li.dmi-active > a,
body.dmi-theme.dmi-header-fixed .pkp_navigation_primary > li.current > a,
body.dmi-theme.dmi-header-fixed .pkp_navigation_primary > li.active > a,
body.dmi-theme.dmi-header-fixed .pkp_navigation_primary > li > a[aria-current="page"] {
  color: #105b71 !important;
  background: #eef7f8 !important;
  border-bottom-color: #147985 !important;
  font-weight: 750 !important;
}
body.dmi-theme.dmi-header-fixed .pkp_navigation_primary > li.dmi-active > a:hover,
body.dmi-theme.dmi-header-fixed .pkp_navigation_primary > li > a[aria-current="page"]:hover {
  background: #e4f1f3 !important;
}

/* Archive: remove the OJS list's repeated full-width separators and giant row heights. */
body.dmi-theme.dmi-header-fixed .page_issue_archive .issues_archive {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px !important;
  padding: 0 !important;
  margin: 22px 0 28px !important;
  list-style: none !important;
}
body.dmi-theme.dmi-header-fixed .page_issue_archive .issues_archive > li {
  display: block !important;
  float: none !important;
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  list-style: none !important;
}
body.dmi-theme.dmi-header-fixed .page_issue_archive .obj_issue_summary.dmi-archive-issue {
  position: relative;
  display: grid !important;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  column-gap: 22px;
  row-gap: 0;
  width: 100% !important;
  min-height: 142px !important;
  box-sizing: border-box;
  padding: 17px 22px !important;
  margin: 0 !important;
  border: 1px solid #dce6e9 !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: none !important;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
body.dmi-theme.dmi-header-fixed .page_issue_archive .obj_issue_summary.dmi-archive-issue:hover,
body.dmi-theme.dmi-header-fixed .page_issue_archive .obj_issue_summary.dmi-archive-issue:focus-within {
  border-color: #a5c6cf !important;
  background: #fbfdfd !important;
  box-shadow: 0 5px 16px rgba(16, 51, 70, .055) !important;
}
body.dmi-theme.dmi-header-fixed .page_issue_archive .dmi-archive-issue .dmi-issue-cover {
  grid-column: 1;
  display: flex !important;
  align-items: center;
  justify-content: center;
  float: none !important;
  position: static !important;
  height: 112px !important;
  width: 104px !important;
  min-height: 0;
  margin: 0 !important;
  padding: 9px;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid #e1ebed;
  background: #f3f8f9;
  text-decoration: none;
}
body.dmi-theme.dmi-header-fixed .page_issue_archive .dmi-archive-issue .dmi-issue-cover img {
  display: block !important;
  float: none !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 92px !important;
  margin: 0 !important;
  object-fit: contain;
  box-shadow: none !important;
  border: 0 !important;
}
body.dmi-theme.dmi-header-fixed .page_issue_archive .dmi-archive-issue .dmi-issue-cover--empty {
  color: #235d70;
  font: 700 14px/1.2 var(--dmi-sans);
  letter-spacing: .12em;
}
body.dmi-theme.dmi-header-fixed .page_issue_archive .dmi-archive-issue .dmi-issue-body {
  grid-column: 2;
  float: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}
body.dmi-theme.dmi-header-fixed .page_issue_archive .dmi-issue-eyebrow {
  display: block;
  margin: 0 0 6px;
  color: #56727e;
  font: 700 11px/1.35 var(--dmi-sans);
  letter-spacing: .11em;
  text-transform: uppercase;
}
body.dmi-theme.dmi-header-fixed .page_issue_archive .dmi-archive-issue h2 {
  display: block !important;
  float: none !important;
  clear: none !important;
  margin: 0 0 6px !important;
  padding: 0 !important;
  font: 600 clamp(19px, 2vw, 23px)/1.27 var(--dmi-serif) !important;
  letter-spacing: -.018em;
}
body.dmi-theme.dmi-header-fixed .page_issue_archive .dmi-archive-issue h2 a {
  color: #11374c !important;
  text-decoration: none;
  overflow-wrap: anywhere;
}
body.dmi-theme.dmi-header-fixed .page_issue_archive .dmi-archive-issue h2 a:hover {
  color: #146582 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.dmi-theme.dmi-header-fixed .page_issue_archive .dmi-issue-series {
  margin: 0 0 8px !important;
  color: #617580;
  font: 400 14px/1.5 var(--dmi-sans);
}
body.dmi-theme.dmi-header-fixed .page_issue_archive .dmi-issue-description {
  margin: 7px 0 8px !important;
  color: #465f6b;
  font: 400 14px/1.55 var(--dmi-sans);
  overflow-wrap: anywhere;
}
body.dmi-theme.dmi-header-fixed .page_issue_archive .dmi-issue-description p {
  margin: 0 0 5px;
  font: inherit;
}
body.dmi-theme.dmi-header-fixed .page_issue_archive .dmi-issue-view {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  margin: 1px 0 0;
  color: #12657e !important;
  font: 700 13px/1.3 var(--dmi-sans);
  text-decoration: none;
}
body.dmi-theme.dmi-header-fixed .page_issue_archive .dmi-issue-view:hover {
  color: #0d3e55 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.dmi-theme.dmi-header-fixed .page_issue_archive .dmi-issue-view span[aria-hidden] {
  font-size: 17px;
  line-height: 1;
}

/* OJS Make a Submission sidebar block: consistent blue CTA, not native grey. */
body.dmi-theme.dmi-header-fixed .pkp_structure_sidebar .block_make_submission a,
body.dmi-theme.dmi-header-fixed .pkp_structure_sidebar .block_make_submission a.cmp_button {
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  min-height: 44px !important;
  max-width: 100%;
  box-sizing: border-box;
  padding: 11px 16px !important;
  background: #146582 !important;
  border: 1px solid #146582 !important;
  border-radius: 7px !important;
  box-shadow: none !important;
  color: #fff !important;
  font: 700 14px/1.3 var(--dmi-sans) !important;
  text-decoration: none !important;
  text-align: center;
  white-space: normal;
}
body.dmi-theme.dmi-header-fixed .pkp_structure_sidebar .block_make_submission a:hover {
  background: #0c425d !important;
  border-color: #0c425d !important;
  color: #fff !important;
}
body.dmi-theme.dmi-header-fixed .pkp_structure_sidebar .block_make_submission a:focus-visible {
  outline: 3px solid #d4b078 !important;
  outline-offset: 3px !important;
}

@media (max-width: 1279px) {
  body.dmi-theme.dmi-header-fixed .pkp_navigation_primary > li.dmi-active > a,
  body.dmi-theme.dmi-header-fixed .pkp_navigation_primary > li.current > a,
  body.dmi-theme.dmi-header-fixed .pkp_navigation_primary > li.active > a,
  body.dmi-theme.dmi-header-fixed .pkp_navigation_primary > li > a[aria-current="page"] {
    border-left: 3px solid #147985 !important;
    border-bottom-color: transparent !important;
    padding-left: 12px !important;
  }
}
@media (max-width: 640px) {
  body.dmi-theme.dmi-header-fixed .page_issue_archive .issues_archive { gap: 10px !important; margin-top: 17px !important; }
  body.dmi-theme.dmi-header-fixed .page_issue_archive .obj_issue_summary.dmi-archive-issue {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 13px;
    padding: 13px !important;
    min-height: 118px !important;
  }
  body.dmi-theme.dmi-header-fixed .page_issue_archive .dmi-archive-issue .dmi-issue-cover {
    width: 72px !important;
    height: 91px !important;
    padding: 6px;
  }
  body.dmi-theme.dmi-header-fixed .page_issue_archive .dmi-archive-issue .dmi-issue-cover img { max-height: 78px !important; }
  body.dmi-theme.dmi-header-fixed .page_issue_archive .dmi-archive-issue h2 { font-size: 18px !important; }
  body.dmi-theme.dmi-header-fixed .page_issue_archive .dmi-issue-description { font-size: 13px; }
  body.dmi-theme.dmi-header-fixed .page_issue_archive .dmi-issue-eyebrow { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  body.dmi-theme.dmi-header-fixed .page_issue_archive .obj_issue_summary.dmi-archive-issue { transition: none; }
}
