/* JPRLS website stylesheet v0.11 | OJS 3.5 Default Theme
   Stages 1–2: masthead and homepage highlight. Retain Default Theme and native navigation. */
.pkp_structure_head {
  background-color: #0b2545 !important;
  background-blend-mode: normal;
  border-bottom: 2px solid #b89b56;
}
@media (min-width: 992px) {
  .pkp_structure_head .pkp_site_name_wrapper {
    padding-top: 10px;
    padding-bottom: 20px;
  }
  .pkp_structure_head .pkp_site_name .is_text {
    font-size: clamp(24px, 2.2vw, 32px);
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  }
  .pkp_structure_head .pkp_site_nav_menu {
    background-color: #0b2545;
  }
}

/* Stage 2: Homepage highlight. Preserve native Swiper layout and controls. */
.page_index_journal .highlights {
  background: #f1f5f9;
  border-bottom: 1px solid #dce4ed;
  --swiper-theme-color: #0b2545;
}
.page_index_journal .highlights .swiper {
  --swiper-theme-color: #0b2545;
}
.page_index_journal .highlights .swiper-wrapper {
  padding-bottom: 20px;
}
.page_index_journal .highlights .swiper-slide-content {
  padding-top: 20px;
  padding-inline: clamp(18px, 3vw, 32px);
}
.page_index_journal .highlights .swiper-slide-title {
  margin: 0 0 12px;
  color: #0b2545;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.35;
  font-weight: 700;
}
.page_index_journal .highlights .swiper-slide-desc {
  color: #34465a;
  line-height: 1.65;
}
.page_index_journal .highlights .swiper-slide-desc p {
  margin: 0 0 8px;
}
.page_index_journal .highlights .swiper-slide-button {
  margin-top: 10px;
  padding: 7px 16px;
  background: #0b2545;
  color: #fff;
  border: 1px solid #0b2545;
  border-radius: 3px;
  box-shadow: none;
  text-decoration: none;
  line-height: 1.5;
}
.page_index_journal .highlights .swiper-slide-button:hover,
.page_index_journal .highlights .swiper-slide-button:focus {
  background: #173e65;
  color: #fff;
  border-color: #173e65;
}
.page_index_journal .highlights .swiper-slide-button:focus-visible {
  outline: 2px solid #0b2545;
  outline-offset: 3px;
}

/* Stage 6: Compact current issue and issue table of contents. */
.page_index_journal .homepage_about {
  padding-bottom: 20px;
}
.page_index_journal .current_issue {
  border-top: 1px solid #dce4ed;
  padding-top: 20px;
}
.page_index_journal .current_issue > h2 {
  margin: 0 0 10px;
  color: #0b2545;
  line-height: 1.35;
}
.page_index_journal .current_issue .current_issue_title {
  margin: 0 0 8px;
  color: #0b2545;
}
.pkp_structure_main .obj_issue_toc > .heading .published {
  margin: 8px 0 12px;
  color: #475569;
  font-size: 0.9em;
}
.pkp_structure_main .obj_issue_toc .sections {
  margin-top: 20px;
}
.pkp_structure_main .obj_issue_toc .sections > .section {
  position: relative;
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid #dce4ed;
}
.pkp_structure_main .obj_issue_toc .sections > .section::before {
  content: none;
}
.pkp_structure_main .obj_issue_toc .sections > .section > :is(h2,h3,h4,h5,h6) {
  display: block;
  position: static;
  margin: 0 0 12px;
  padding: 0 0 0 10px;
  border-inline-start: 3px solid #b89b56;
  background: transparent;
  color: #0b2545;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}
.pkp_structure_main .obj_issue_toc .section > .articles {
  margin: 0;
  padding: 0;
}
.pkp_structure_main .obj_issue_toc .section > .articles > li {
  margin: 0;
  padding: 0;
}
.pkp_structure_main .obj_issue_toc .section > .articles > li + li {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e6ebf0;
}
.pkp_structure_main .obj_issue_toc .obj_article_summary > .title {
  font-size: 17px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.pkp_structure_main .obj_issue_toc .obj_article_summary > .title a {
  color: #005c85;
}
.pkp_structure_main .obj_issue_toc .obj_article_summary > .title a:hover,
.pkp_structure_main .obj_issue_toc .obj_article_summary > .title a:focus {
  color: #0b2545;
  text-decoration: underline;
}
.pkp_structure_main .obj_issue_toc .obj_article_summary .meta {
  color: #475569;
  line-height: 1.5;
}
.pkp_structure_main .obj_issue_toc .obj_article_summary .galleys_links {
  margin-top: 8px;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.pkp_structure_main .obj_issue_toc .obj_article_summary .galleys_links > li {
  margin: 0;
}
.page_index_journal .current_issue > .read_more {
  margin-top: 12px;
  margin-bottom: 20px;
}


/* Stage 7: Consistent public-facing typography, links and controls. */
.pkp_structure_main {
  color: #25364a;
}
.pkp_structure_main :is(h1, h2, h3) {
  color: #0b2545;
  line-height: 1.4;
}
.pkp_structure_main a:not([class]),
.pkp_structure_main .read_more {
  color: #005c85;
}
.pkp_structure_main a:not([class]):hover,
.pkp_structure_main .read_more:hover {
  color: #0b2545;
  text-decoration: underline;
}
.pkp_structure_main .obj_galley_link:not(.restricted) {
  background: #fff;
  color: #005c85;
  border: 1px solid #005c85;
  border-radius: 4px;
  box-shadow: none;
  font-weight: 500;
  line-height: 1.5;
  padding: 6px 12px;
}
.pkp_structure_main .obj_galley_link:not(.restricted):hover,
.pkp_structure_main .obj_galley_link:not(.restricted):focus {
  background: #0b2545;
  border-color: #0b2545;
  color: #fff;
}
.pkp_structure_main :is(a, button, input, select, textarea):focus-visible,
.pkp_structure_sidebar :is(a, button):focus-visible {
  outline: 2px solid #005c85;
  outline-offset: 3px;
}
.page_index_journal .homepage_about h2 {
  margin-bottom: 16px;
}
.page_index_journal .homepage_about p {
  line-height: 1.7;
}
.page_index_journal .homepage_about p:last-child {
  margin-bottom: 0;
}
.pkp_structure_main.page_index_journal {
  padding-bottom: 24px;
}


/* Stage 8: Sidebar spacing, information blocks and submission button. */
.pkp_structure_sidebar .pkp_block {
  padding: 12px 20px;
  color: #25364a;
  font-size: 14px;
  line-height: 1.5;
}
@media (min-width: 992px) {
  .pkp_structure_sidebar .pkp_block {
    padding-inline: 24px;
  }
  .pkp_structure_sidebar .pkp_block:first-child {
    padding-top: 24px;
  }
}
.pkp_structure_sidebar .pkp_block > .title {
  margin: 0 0 10px;
  padding: 0 0 8px;
  border-bottom: 1px solid #dce4ed;
  color: #0b2545;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
}
.pkp_structure_sidebar .pkp_block .content p {
  margin: 0 0 7px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.pkp_structure_sidebar .pkp_block .content p:last-child {
  margin-bottom: 0;
}
.pkp_structure_sidebar .pkp_block .content strong {
  color: #0b2545;
}
.pkp_structure_sidebar .pkp_block .content a {
  color: #005c85;
}
.pkp_structure_sidebar .pkp_block .content a:hover,
.pkp_structure_sidebar .pkp_block .content a:focus-visible {
  color: #0b2545;
  text-decoration: underline;
}
.pkp_structure_sidebar .pkp_block .content img {
  max-width: 100%;
  height: auto;
}
.pkp_structure_sidebar .block_make_submission a {
  display: block;
  padding: 10px 12px;
  background: #0b2545;
  color: #fff;
  border: 1px solid #0b2545;
  border-radius: 4px;
  box-shadow: none;
  text-align: center;
  font-weight: 700;
  line-height: 1.5;
  white-space: normal;
}
.pkp_structure_sidebar .block_make_submission a:hover,
.pkp_structure_sidebar .block_make_submission a:focus {
  background: #173e65;
  border-color: #173e65;
  color: #fff;
  text-decoration: none;
}

/* Stage 8 correction: sidebar link specificity and compact spacing. */
.pkp_structure_sidebar .pkp_block.block_make_submission a,
.pkp_structure_sidebar .pkp_block.block_make_submission .content a,
.pkp_structure_sidebar .pkp_block.block_make_submission a:visited {
  color: #fff;
}
.pkp_structure_sidebar .pkp_block.block_make_submission a:hover,
.pkp_structure_sidebar .pkp_block.block_make_submission a:focus,
.pkp_structure_sidebar .pkp_block.block_make_submission .content a:hover,
.pkp_structure_sidebar .pkp_block.block_make_submission .content a:focus {
  color: #fff;
  background: #173e65;
  border-color: #173e65;
  text-decoration: none;
}
.pkp_structure_sidebar .pkp_block.block_make_submission a:focus-visible {
  outline: 2px solid #005c85;
  outline-offset: 3px;
}
.pkp_structure_sidebar .pkp_block {
  padding-block: 10px;
}
@media (min-width: 992px) {
  .pkp_structure_sidebar .pkp_block:first-child {
    padding-top: 20px;
  }
}

/* Stage 9: premium CSS-only masthead and compact homepage introduction.
   Old decorative homepage image is hidden, not deleted, for rollback. */
.pkp_structure_head {
  background-image: linear-gradient(105deg, #0b2545, #163957) !important;
}
.pkp_structure_head .pkp_site_name .is_text {
  color: #fff;
  text-shadow: none;
}
.pkp_structure_head .pkp_site_nav_menu {
  background-color: #091f38;
}
.pkp_structure_head .pkp_site_name .is_text:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.page_index_journal > .homepage_image {
  display: none;
}
@media (min-width: 992px) {
  .pkp_structure_head .pkp_head_wrapper {
    padding-top: 42px;
  }
  .pkp_structure_head .pkp_site_name_wrapper {
    padding-top: 4px;
    padding-bottom: 15px;
  }
}
.page_index_journal .highlights .swiper-slide-content {
  padding-top: 16px;
}
.page_index_journal .highlights .swiper-slide-title {
  margin-bottom: 8px;
  font-size: clamp(20px, 1.8vw, 24px);
}
.page_index_journal .highlights .swiper-wrapper {
  padding-bottom: 16px;
}


/* Stage 10: compact, high-contrast footer; retain native PKP attribution. */
.pkp_structure_footer_wrapper {
  background: #0b2545;
  color: #e5edf6;
  border-top: 2px solid #b89b56;
}
.pkp_structure_footer_wrapper .pkp_structure_footer {
  color: #e5edf6;
}
.pkp_structure_footer_wrapper .pkp_footer_content {
  padding: 24px 20px 12px;
  font-size: 13px;
  line-height: 1.65;
  color: #e5edf6;
  overflow-wrap: anywhere;
}
.pkp_structure_footer_wrapper .pkp_footer_content p {
  margin: 0 0 8px;
}
.pkp_structure_footer_wrapper .pkp_footer_content p:last-child {
  margin-bottom: 0;
}
.pkp_structure_footer_wrapper .pkp_footer_content strong,
.pkp_structure_footer_wrapper .pkp_footer_content :is(h2,h3,h4) {
  color: #fff;
}
.pkp_structure_footer_wrapper .pkp_footer_content a,
.pkp_structure_footer_wrapper .pkp_footer_content a:visited {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pkp_structure_footer_wrapper .pkp_footer_content a:hover {
  color: #f3d78f;
}
.pkp_structure_footer_wrapper a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
.pkp_structure_footer_wrapper .pkp_brand_footer {
  padding: 12px 20px 24px;
}
.pkp_structure_footer_wrapper .pkp_brand_footer a {
  float: none;
  display: inline-block;
  width: 112px;
  max-width: 100%;
  color: #fff;
}
.pkp_structure_footer_wrapper .pkp_brand_footer img {
  display: block;
  max-width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}
@media (min-width: 768px) {
  .pkp_structure_footer_wrapper .pkp_structure_footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 30px;
    box-sizing: border-box;
  }
  .pkp_structure_footer_wrapper .pkp_footer_content {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    padding: 0;
  }
  .pkp_structure_footer_wrapper .pkp_brand_footer {
    flex: 0 0 auto;
    width: auto;
    margin-inline-start: auto;
    padding: 0;
  }
}

/* Stage 11: reduce excess space above the footer on the journal homepage.
   Keep other public pages and the editorial dashboard unchanged. */
.pkp_page_index .pkp_structure_main:has(> .page_index_journal) {
  padding-bottom: 24px;
}
.page_index_journal .current_issue > .read_more {
  margin-bottom: 0;
}
.page_index_journal .homepage_about {
  padding-bottom: 16px;
}
.page_index_journal .homepage_about > p:last-child {
  margin-bottom: 0;
}


/* Stage 12: responsive journal logo and full-width desktop navigation.
   Preserve the native mobile menu and desktop user-menu positioning. */
.pkp_structure_head .pkp_site_name .is_img:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
@media (min-width: 992px) {
  .has_site_logo .pkp_structure_head .pkp_head_wrapper {
    padding-top: 32px;
  }
  .has_site_logo .pkp_structure_head .pkp_site_name_wrapper {
    padding-top: 0;
    padding-bottom: 7px;
  }
  .has_site_logo .pkp_structure_head .pkp_site_name .is_img {
    display: block;
    width: min(100%, 780px);
    margin: 0;
    padding: 0;
  }
  .has_site_logo .pkp_structure_head .pkp_site_name .is_img img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
  }
  .pkp_structure_head .pkp_site_nav_menu {
    background: transparent;
  }
  .pkp_structure_head .pkp_navigation_primary_row {
    position: relative;
    isolation: isolate;
    background: #091f38;
  }
  /* Extend the background only, without clipping dropdowns or
     introducing viewport-width horizontal overflow. */
  .pkp_structure_head .pkp_navigation_primary_row::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    box-shadow: 0 0 0 100vmax #091f38;
    clip-path: inset(0 -100vmax);
    pointer-events: none;
  }
}
@media (max-width: 991.98px) {
  .has_site_logo .pkp_structure_head .pkp_site_name .is_img {
    max-width: calc(100% - 8px);
  }
  .has_site_logo .pkp_structure_head .pkp_site_name .is_img img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }
}

/* Stage 13: mobile masthead legibility. Keep the original linked logo and
   its alternative text; on narrow phones show the wordmark and a readable
   wrapped visual title. Desktop masthead is unchanged. */
@media (max-width: 991.98px) {
  .has_site_logo .pkp_structure_head .pkp_site_name_wrapper {
    height: auto;
    min-height: 72px;
  }
  .has_site_logo .pkp_structure_head .pkp_site_name {
    position: relative;
    left: auto;
    right: auto;
    margin: 0 12px 0 50px;
    padding: 5px 0;
    white-space: normal;
    overflow: visible;
    box-sizing: border-box;
  }
  .has_site_logo .pkp_structure_head .pkp_site_name .is_img {
    display: flex;
    align-items: center;
    width: min(100%, 500px);
    max-width: 100%;
    min-height: 62px;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: #fff;
    text-decoration: none;
  }
  .has_site_logo .pkp_structure_head .pkp_site_name .is_img img {
    width: 100%;
    height: auto;
    max-height: none;
  }
}
@media (max-width: 599.98px) {
  .has_site_logo .pkp_structure_head .pkp_site_name .is_img {
    gap: 8px;
  }
  .has_site_logo .pkp_structure_head .pkp_site_name .is_img img {
    flex: 0 0 76px;
    width: 76px;
    max-width: 76px;
    height: 40px;
    object-fit: cover;
    object-position: left center;
  }
  .has_site_logo .pkp_structure_head .pkp_site_name .is_img::after {
    /* The linked original image retains the journal name as its alt text.
       Empty alternative for this visual duplicate where CSS supports it. */
    content: "Journal of Pediatrics in Resource-Limited Settings";
    content: "Journal of Pediatrics in Resource-Limited Settings" / "";
    flex: 1 1 0;
    min-width: 0;
    color: #fff;
    font-family: inherit;
    font-size: clamp(13px, 3.7vw, 18px);
    font-weight: 600;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: break-word;
  }
}
