/* JPMA | Modern Academic Journal | v8.1
 * Upload only in JPMA > Website > Appearance > Advanced.
 * Designed for OJS 3 Default/compatible themes. No external dependencies.
 * Re-upload v8 to restore the previous custom styling. No template changes.
 */
:root {
  --jpma-navy: #103554;
  --jpma-teal: #006c88;
  --jpma-gold: #d5a343;
  --jpma-ink: #23394c;
  --jpma-muted: #526475;
  --jpma-bg: #f3f6f9;
  --jpma-line: #dce5ed;
  --jpma-white: #fff;
}

/* 01 | Public layout and typography */
.pkp_structure_page { background: var(--jpma-bg); color: var(--jpma-ink); }
.pkp_structure_page .pkp_structure_content { background: var(--jpma-bg); }
.pkp_structure_page .pkp_structure_main { color: var(--jpma-ink); }
.pkp_structure_main p { line-height: 1.8; }
.pkp_structure_main a, .pkp_structure_sidebar a { color: var(--jpma-teal); }
.pkp_structure_main a:hover, .pkp_structure_sidebar a:hover { color: var(--jpma-navy); }
.pkp_structure_page a:focus-visible,
.pkp_structure_page button:focus-visible { outline: 3px solid #a37320; outline-offset: 3px; }
.pkp_structure_main h1, .pkp_structure_main h2,
.pkp_structure_main h3 { color: var(--jpma-navy); }

/* 02 | Header: retain existing logo against white until replaced */
.pkp_structure_head {
  background: #fff;
  border-top: 5px solid var(--jpma-navy);
  border-bottom: 3px solid var(--jpma-teal);
  box-shadow: 0 3px 12px rgba(16,53,84,.06);
}
.pkp_structure_head .pkp_site_name .is_text { color: var(--jpma-navy); }
.pkp_structure_head .pkp_site_nav_menu { background: #fff; }
.pkp_structure_head .pkp_site_nav_menu a { color: var(--jpma-navy); }
.pkp_structure_head .pkp_site_nav_menu a:hover,
.pkp_structure_head .pkp_site_nav_menu a:focus { color: var(--jpma-teal); }
.pkp_structure_head .pkp_site_nav_toggle { color: var(--jpma-navy); }
.pkp_structure_head .pkp_site_nav_toggle span,
.pkp_structure_head .pkp_site_nav_toggle span:before,
.pkp_structure_head .pkp_site_nav_toggle span:after { background: var(--jpma-navy); }
@media (min-width: 992px) {
  .pkp_structure_head .pkp_site_name .is_img img { max-height: 100px; width: auto; max-width: 100%; }
  .pkp_structure_head .pkp_navigation_primary_wrapper { border-top: 1px solid var(--jpma-line); }
  .pkp_structure_head .pkp_navigation_primary > li > a,
  .pkp_structure_head .pkp_navigation_search_wrapper > a { font-weight: 600; }
  .pkp_structure_head .pkp_navigation_primary > li > a:hover,
  .pkp_structure_head .pkp_navigation_primary > li > a:focus,
  .pkp_structure_head .pkp_navigation_search_wrapper > a:hover,
  .pkp_structure_head .pkp_navigation_search_wrapper > a:focus {
    background: #eaf3f7; color: var(--jpma-navy); border-bottom-color: var(--jpma-teal);
  }
  .pkp_structure_head .pkp_navigation_user > li > a:focus { background: #eaf3f7; color: var(--jpma-navy); }
}

/* 03 | Homepage panels */
.pkp_page_index .homepage_about {
  background: #fff;
  border: 1px solid var(--jpma-line);
  border-top: 4px solid var(--jpma-teal);
  border-radius: 10px;
  padding: 22px;
  margin: 0 0 30px;
  box-shadow: 0 3px 12px rgba(16,53,84,.045);
}
.pkp_page_index .homepage_about h2 { margin-top: 0; }
.pkp_page_index .current_issue > h2 { border-left: 4px solid var(--jpma-gold); padding-left: 12px; }
.pkp_page_index .current_issue .current_issue_title { color: var(--jpma-navy); font-weight: 700; }
.obj_issue_toc .cover img,
.obj_issue_summary .cover img { border-radius: 3px; box-shadow: 0 4px 14px rgba(16,53,84,.15); }
.obj_issue_toc .heading { padding-bottom: 18px; }

/* 04 | Article cards, both homepage and issue pages */
.pkp_structure_main .obj_article_summary {
  background: #fff;
  border: 1px solid var(--jpma-line);
  border-left: 4px solid var(--jpma-teal);
  border-radius: 8px;
  padding: 18px;
  margin: 0;
  box-shadow: 0 2px 8px rgba(16,53,84,.045);
  overflow-wrap: break-word;
}
.pkp_structure_main .obj_article_summary:hover { border-left-color: var(--jpma-gold); box-shadow: 0 4px 14px rgba(16,53,84,.09); }
.pkp_structure_main .obj_article_summary .title { margin: 0 0 8px; font-size: 1.08em; line-height: 1.5; }
.pkp_structure_main .obj_article_summary .title a { color: var(--jpma-navy); text-decoration: none; font-weight: 700; }
.pkp_structure_main .obj_article_summary .title a:hover,
.pkp_structure_main .obj_article_summary .title a:focus { text-decoration: underline; color: var(--jpma-teal); }
.pkp_structure_main .obj_article_summary .authors,
.pkp_structure_main .obj_article_summary .pages,
.pkp_structure_main .obj_article_summary .published { color: var(--jpma-muted); line-height: 1.55; }
.pkp_structure_main .obj_issue_toc .articles > li { margin-bottom: 15px; }
.pkp_structure_main .obj_galley_link {
  background: #edf5f8;
  color: var(--jpma-teal);
  border: 1px solid #afcbd6;
  border-radius: 5px;
  font-weight: 600;
  box-shadow: none;
}
.pkp_structure_main .obj_galley_link:hover,
.pkp_structure_main .obj_galley_link:focus { background: var(--jpma-teal); color: #fff; border-color: var(--jpma-teal); }

/* 05 | Sidebar blocks: improve contrast without hiding any content */
.pkp_structure_sidebar .pkp_block {
  background: #fff;
  padding: 16px;
  border: 1px solid var(--jpma-line);
  border-radius: 8px;
  margin: 0 0 16px;
  box-shadow: 0 2px 8px rgba(16,53,84,.045);
  overflow-wrap: break-word;
}
.pkp_structure_sidebar .pkp_block .title {
  color: var(--jpma-navy);
  font-size: 1.06em;
  font-weight: 700;
  border-bottom: 2px solid var(--jpma-gold);
  padding-bottom: 10px;
  margin-top: 0;
  margin-bottom: 12px;
}
.pkp_structure_sidebar .pkp_block .content a { color: var(--jpma-navy) !important; }
.pkp_structure_sidebar .pkp_block .content a:hover,
.pkp_structure_sidebar .pkp_block .content a:focus { color: var(--jpma-teal) !important; text-decoration: underline; }
.pkp_structure_sidebar .pkp_block .content a span { color: inherit !important; }
.pkp_structure_sidebar .pkp_block .content img { max-width: 100%; height: auto; }
.pkp_structure_sidebar .pkp_block .content ul li { border-bottom: 1px solid #e7edf2; padding: 8px 0; }
.pkp_structure_sidebar .pkp_block .content ul li:last-child { border-bottom: 0; }
.pkp_structure_sidebar .block_make_submission a {
  display: block;
  text-align: center;
  background: var(--jpma-teal);
  color: #fff !important;
  border: 1px solid var(--jpma-teal);
  border-radius: 6px;
  padding: 11px 8px;
  font-weight: 700;
  box-shadow: none;
}
.pkp_structure_sidebar .block_make_submission a:hover,
.pkp_structure_sidebar .block_make_submission a:focus { background: var(--jpma-navy); color: #fff !important; }

/* 06 | Footer: keep existing editorial office and license markup */
.pkp_structure_footer_wrapper { background: #e9eff4; border-top: 4px solid var(--jpma-navy); }
.pkp_structure_footer { color: var(--jpma-ink); }
.pkp_structure_footer a { color: var(--jpma-teal); }
.pkp_structure_footer img { max-width: 100%; height: auto; }

/* 07 | Small screens: let OJS manage navigation and sidebar breakpoints */
@media (max-width: 767px) {
  .pkp_page_index .homepage_about { padding: 16px; }
  .pkp_structure_main .obj_article_summary { padding: 14px; }
  .pkp_structure_sidebar .pkp_block { padding: 14px; }
  .pkp_structure_main .obj_article_summary .title { font-size: 1em; }
  .pkp_structure_main .obj_article_summary .meta { overflow-wrap: anywhere; }
}

/* 08 | Header: resize new 750 x 143 banner and unify navigation */
@media (min-width: 992px) {
  .pkp_structure_head .pkp_site_name .is_img img {
    max-height: 143px !important;
    width: auto !important;
    max-width: 100%;
    height: auto;
  }
  .pkp_structure_head .pkp_navigation_primary_wrapper {
    background: var(--jpma-navy);
    border-top: 0;
    border-radius: 5px 5px 0 0;
    padding-left: 12px;
    padding-right: 12px;
  }
  .pkp_structure_head .pkp_navigation_primary > li > a,
  .pkp_structure_head .pkp_navigation_search_wrapper > a {
    color: #fff !important;
    border-bottom-color: transparent;
  }
  .pkp_structure_head .pkp_navigation_primary > li > a:hover,
  .pkp_structure_head .pkp_navigation_primary > li > a:focus,
  .pkp_structure_head .pkp_navigation_search_wrapper > a:hover,
  .pkp_structure_head .pkp_navigation_search_wrapper > a:focus {
    background: var(--jpma-teal);
    color: #fff !important;
    border-bottom-color: var(--jpma-gold);
  }
  .pkp_structure_head .pkp_navigation_primary ul { background: #fff; }
  .pkp_structure_head .pkp_navigation_primary ul a { color: var(--jpma-navy); }
}
/* 09 | First non-submission sidebar block: accreditation and existing policy menu.
 * The old menu uses purple inline backgrounds. Normalize these inside
 * the first non-submission block only; keep image links and other blocks intact. */
.pkp_structure_sidebar :is(.pkp_block:first-child:not(.block_make_submission), .block_make_submission:first-child + .pkp_block) .content img {
  display: block;
  max-width: min(100%, 185px) !important;
  height: auto !important;
  margin: 0 auto 12px;
}
.pkp_structure_sidebar :is(.pkp_block:first-child:not(.block_make_submission), .block_make_submission:first-child + .pkp_block) .content :is(p,div,td,span,li)[style*="background" i] {
  background: transparent !important;
}
.pkp_structure_sidebar :is(.pkp_block:first-child:not(.block_make_submission), .block_make_submission:first-child + .pkp_block) .content a:not(:has(img)) {
  display: block !important;
  width: 100%;
  box-sizing: border-box;
  background: #edf4f7 !important;
  border: 1px solid #d5e4eb !important;
  border-left: 3px solid var(--jpma-teal) !important;
  border-radius: 5px !important;
  color: var(--jpma-navy) !important;
  font-weight: 600;
  text-align: center;
  padding: 9px 7px !important;
  margin: 5px 0 !important;
  line-height: 1.45;
  text-decoration: none !important;
}
.pkp_structure_sidebar :is(.pkp_block:first-child:not(.block_make_submission), .block_make_submission:first-child + .pkp_block) .content a:not(:has(img)):hover,
.pkp_structure_sidebar :is(.pkp_block:first-child:not(.block_make_submission), .block_make_submission:first-child + .pkp_block) .content a:not(:has(img)):focus-visible {
  background: var(--jpma-navy) !important;
  color: #fff !important;
  border-color: var(--jpma-navy) !important;
  border-left-color: var(--jpma-gold) !important;
}
.pkp_structure_sidebar :is(.pkp_block:first-child:not(.block_make_submission), .block_make_submission:first-child + .pkp_block) .content a:not(:has(img)) * {
  color: inherit !important;
}
.pkp_structure_sidebar :is(.pkp_block:first-child:not(.block_make_submission), .block_make_submission:first-child + .pkp_block) .content p:has(> a):not(:has(img)) {
  margin: 4px 0 !important;
}
/* 10 | Submission call to action: override inherited sidebar link color */
.pkp_structure_sidebar .block_make_submission .content a,
.pkp_structure_sidebar .block_make_submission a {
  background: var(--jpma-teal) !important;
  color: #fff !important;
  border: 1px solid var(--jpma-teal) !important;
  border-radius: 6px !important;
  text-decoration: none !important;
}
.pkp_structure_sidebar .block_make_submission .content a:hover,
.pkp_structure_sidebar .block_make_submission .content a:focus,
.pkp_structure_sidebar .block_make_submission a:hover,
.pkp_structure_sidebar .block_make_submission a:focus {
  background: var(--jpma-navy) !important;
  color: #fff !important;
}
/* 11 | Current issue: group existing cover and publication metadata */
.pkp_page_index .current_issue .obj_issue_toc > .heading {
  background: #fff;
  border: 1px solid var(--jpma-line);
  border-radius: 8px;
  padding: 18px;
  display: flow-root;
  margin-bottom: 22px;
}
.pkp_page_index .current_issue .obj_issue_toc > .heading .cover {
  max-width: 190px;
}
@media (max-width: 767px) {
  .pkp_structure_head .pkp_site_name .is_img img { max-width: 100%; height: auto; }
  .pkp_page_index .current_issue .obj_issue_toc > .heading { padding: 12px; }
  .pkp_page_index .current_issue .obj_issue_toc > .heading .cover { max-width: 145px; }
}


/* 12 | Compact current issue and improved navigation contrast */
.pkp_page_index .current_issue .obj_issue_toc > .heading {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px 22px;
  min-height: 0;
  margin-bottom: 16px;
}
.pkp_page_index .current_issue .obj_issue_toc > .heading > .cover {
  order: -1;
  float: none !important;
  width: 155px;
  max-width: 100%;
  flex: 0 0 155px;
  margin: 0 !important;
  padding: 0;
  display: block;
}
.pkp_page_index .current_issue .obj_issue_toc > .heading > .cover img {
  display: block; width: 100%; height: auto;
}
.pkp_page_index .current_issue .obj_issue_toc > .heading > .description {
  flex: 1 1 220px;
  min-width: 0;
  margin: 0;
}
.pkp_page_index .current_issue .obj_issue_toc > .heading > .published {
  flex: 1 1 180px;
  margin: 0;
  padding: 4px 0;
}
.pkp_page_index .current_issue .obj_issue_toc > .heading > :not(.cover):not(.description):not(.published) {
  max-width: 100%;
}
.pkp_page_index .current_issue .obj_issue_toc > .heading::before,
.pkp_page_index .current_issue .obj_issue_toc > .heading::after { content: none; }
.pkp_page_index .current_issue .obj_issue_toc .sections { margin-top: 20px; }
@media screen and (min-width: 992px) {
  .pkp_structure_head .pkp_navigation_primary_wrapper { background: #103554 !important; }
  .pkp_structure_head .pkp_navigation_primary > li > a,
  .pkp_structure_head .pkp_navigation_search_wrapper > a { color: #fff !important; }
}
.pkp_structure_sidebar .block_make_submission a,
.pkp_structure_sidebar .block_make_submission .block_make_submission_link {
  background: #006c88 !important;
  color: #fff !important;
  font-size: 1em;
  padding: 12px 8px !important;
  text-align: center;
  font-weight: 700;
}
.pkp_structure_sidebar .block_make_submission a:hover,
.pkp_structure_sidebar .block_make_submission a:focus-visible { background: #103554 !important; }
/* 13 | Restrained footer, preserve supplied editorial and licensing information */
.pkp_structure_footer_wrapper { background: #e9eff4; }
.pkp_structure_footer { padding-top: 22px; padding-bottom: 22px; }
.pkp_structure_footer .pkp_footer_content { padding-top: 12px; padding-bottom: 12px; }
.pkp_structure_footer .pkp_brand_footer img { max-width: 120px; width: 100%; height: auto; }
@media screen and (max-width: 767px) {
  .pkp_page_index .current_issue .obj_issue_toc > .heading { gap: 12px; }
  .pkp_page_index .current_issue .obj_issue_toc > .heading > .cover { flex: 0 1 110px; width: 110px; }
  .pkp_page_index .current_issue .obj_issue_toc > .heading > .published { flex: 1 1 120px; }
}
/* 14 | Print/PDF: retain readable contrast even without background graphics */
@media print {
  .pkp_structure_head .pkp_navigation_primary_wrapper { background: #fff !important; }
  .pkp_structure_head .pkp_navigation_primary > li > a,
  .pkp_structure_head .pkp_navigation_search_wrapper > a,
  .pkp_structure_sidebar .block_make_submission a { color: #103554 !important; background: #fff !important; }
  .pkp_page_index .current_issue .obj_issue_toc > .heading {
    display: block; break-inside: avoid; page-break-inside: avoid;
  }
  .pkp_page_index .current_issue .obj_issue_toc > .heading > .cover {
    float: left !important; width: 108px; margin: 0 16px 8px 0 !important;
  }
  .pkp_page_index .current_issue .obj_issue_toc > .heading::after {
    content: ""; display: block; clear: both;
  }
  .pkp_structure_main .obj_article_summary { break-inside: avoid; page-break-inside: avoid; }
  .pkp_structure_footer .pkp_brand_footer img { width: auto; max-width: 100px; height: auto; }
}

/* 15 | Optional new Page Footer HTML. Old content remains readable. */
.pkp_structure_footer .jpma-footer-panel {
  box-sizing: border-box;
  background: #103554;
  color: #fff;
  padding: 24px;
  border-radius: 8px;
  border-top: 4px solid #d5a343;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.65;
}
.pkp_structure_footer .jpma-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 20px;
}
.pkp_structure_footer .jpma-footer-section { min-width: 0; }
.pkp_structure_footer .jpma-footer-panel p { margin: 0 0 10px; }
.pkp_structure_footer .jpma-footer-panel .jpma-footer-name {
  font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: 1px; color: #f5cd7a;
}
.pkp_structure_footer .jpma-footer-panel .jpma-footer-heading {
  font-weight: 700; color: #f5cd7a; font-size: 16px;
}
.pkp_structure_footer .jpma-footer-panel a {
  color: #fff !important; text-decoration: underline; text-underline-offset: 2px;
}
.pkp_structure_footer .jpma-footer-panel a:hover { color: #f5cd7a !important; }
.pkp_structure_footer .jpma-footer-panel .jpma-footer-license {
  border-top: 1px solid #6d899c; padding-top: 14px; margin: 12px 0 0; font-size: 12px;
}
/* Keep existing platform attribution visible. */
@media screen and (max-width: 767px) {
  .pkp_structure_footer .jpma-footer-panel { padding: 16px; }
  .pkp_structure_footer .jpma-footer-grid { grid-template-columns: 1fr; gap: 14px; }
}
@media print {
  .pkp_structure_sidebar .block_make_submission .content a,
  .pkp_structure_sidebar .block_make_submission a.block_make_submission_link { color: #103554 !important; background: #fff !important; }
  .pkp_structure_footer .jpma-footer-panel { color: #103554; background: #fff; border: 1px solid #dce5ed; break-inside: avoid; }
  .pkp_structure_footer .jpma-footer-panel .jpma-footer-name,
  .pkp_structure_footer .jpma-footer-panel .jpma-footer-heading,
  .pkp_structure_footer .jpma-footer-panel a { color: #103554 !important; }
}

/* 16 | Homepage only: show Additional Content before the current issue.
 * Compatible with the standard OJS 3.3 indexJournal structure.
 * No content is hidden. Other pages retain their default layout. */
.pkp_page_index .page_index_journal:has(> .current_issue):has(> .additional_content) {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pkp_page_index .page_index_journal > .current_issue { order: 1; }
.pkp_page_index .page_index_journal > .additional_content {
  order: 0;
  box-sizing: border-box;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--jpma-line);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 0 0 28px;
  box-shadow: 0 3px 12px rgba(16,53,84,.045);
}
.pkp_page_index .page_index_journal > .additional_content > div:first-child {
  margin-top: 0 !important;
}
.pkp_page_index .page_index_journal:has(> .additional_content) > .homepage_about {
  margin-bottom: 16px;
}
@media (max-width: 767px) {
  .pkp_page_index .page_index_journal > .additional_content {
    padding: 14px; margin-bottom: 24px;
  }
}
@media print {
  .pkp_page_index .page_index_journal > .additional_content {
    break-inside: avoid; page-break-inside: avoid;
  }
}

/* 17 | Article landing pages only (OJS 3 Default article_details template).
 * Leave existing layout, metadata, citation controls and links intact.
 * Screen-only: preserve established PDF/print behavior. */
@media screen {
  .pkp_page_article .obj_article_details .page_title {
    color: var(--jpma-navy);
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    line-height: 1.38;
    font-weight: 700;
    letter-spacing: -.015em;
    margin-bottom: 24px;
    padding: 0 0 16px;
    border-bottom: 3px solid var(--jpma-gold);
    overflow-wrap: break-word;
  }
  .pkp_page_article .obj_article_details .subtitle {
    font-size: 1.12rem;
    line-height: 1.5;
    color: var(--jpma-muted);
    overflow-wrap: break-word;
  }
  .pkp_page_article .obj_article_details :is(.main_entry,.entry_details) { min-width: 0; }
  .pkp_page_article .obj_article_details .main_entry > .item,
  .pkp_page_article .obj_article_details .entry_details > .item {
    box-sizing: border-box;
    border: 1px solid var(--jpma-line);
    border-radius: 8px;
    padding: 17px;
    margin: 0 0 16px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(16,53,84,.04);
    overflow-wrap: anywhere;
  }
  .pkp_page_article .obj_article_details .item > .label,
  .pkp_page_article .obj_article_details .sub_item > .label {
    color: var(--jpma-navy);
    font-weight: 700;
    line-height: 1.45;
  }
  .pkp_page_article .obj_article_details .main_entry > .authors { border-top: 3px solid var(--jpma-teal); }
  .pkp_page_article .obj_article_details ul.authors { list-style: none; margin: 0; padding: 0; }
  .pkp_page_article .obj_article_details ul.authors > li { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--jpma-line); }
  .pkp_page_article .obj_article_details ul.authors > li:first-child { padding-top: 0; }
  .pkp_page_article .obj_article_details ul.authors > li:last-child { padding-bottom: 0; border-bottom: 0; }
  .pkp_page_article .obj_article_details ul.authors .name {
    display: block; color: var(--jpma-navy); font-weight: 700; font-size: 1.03em;
  }
  .pkp_page_article .obj_article_details ul.authors .affiliation {
    display: block; color: var(--jpma-muted); font-size: .93em; line-height: 1.55; margin-top: 3px;
  }
  .pkp_page_article .obj_article_details ul.authors .orcid { display: block; font-size: .9em; margin-top: 4px; }
  .pkp_page_article .obj_article_details .main_entry > .doi {
    border-left: 4px solid var(--jpma-teal); background: #edf5f8;
  }
  .pkp_page_article .obj_article_details .doi .label,
  .pkp_page_article .obj_article_details .keywords .label { display: block; margin: 0 0 5px; }
  .pkp_page_article .obj_article_details .doi a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
  .pkp_page_article .obj_article_details .keywords .value { color: var(--jpma-ink); line-height: 1.7; }
  .pkp_page_article .obj_article_details .main_entry > :is(.abstract,.references,.author_bios) > .label {
    display: block; font-size: 1.14em; margin: 0 0 14px; padding-bottom: 9px; border-bottom: 2px solid var(--jpma-gold);
  }
  .pkp_page_article .obj_article_details .abstract { font-size: 1em; line-height: 1.8; }
  .pkp_page_article .obj_article_details .abstract p { line-height: 1.8; margin: 0 0 1em; text-align: start; }
  .pkp_page_article .obj_article_details .abstract p:last-child { margin-bottom: 0; }
  .pkp_page_article .obj_article_details .references .value { font-size: .95em; line-height: 1.65; }
  .pkp_page_article .obj_article_details .references .value p { margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px solid var(--jpma-line); line-height: 1.65; }
  .pkp_page_article .obj_article_details .references .value p:last-child { border: 0; margin-bottom: 0; padding-bottom: 0; }
  .pkp_page_article .obj_article_details .references a { text-decoration: underline; overflow-wrap: anywhere; }
  .pkp_page_article .obj_article_details .entry_details .cover_image img {
    display: block; width: auto; max-width: min(100%, 175px); height: auto; margin: 0 auto;
    border-radius: 4px; box-shadow: 0 3px 9px rgba(16,53,84,.15);
  }
  .pkp_page_article .obj_article_details .galleys_links { margin: 0; padding: 0; list-style: none; }
  .pkp_page_article .obj_article_details .galleys_links li { margin: 0 0 8px; }
  .pkp_page_article .obj_article_details .galleys_links li:last-child { margin-bottom: 0; }
  .pkp_page_article .obj_article_details .galleys_links .obj_galley_link {
    display: block; width: 100%; box-sizing: border-box;
    background: var(--jpma-teal); color: #fff; border: 1px solid var(--jpma-teal);
    border-radius: 6px; padding: 12px 8px; font-size: 1em; font-weight: 700;
    text-decoration: none; text-align: center; line-height: 1.5;
  }
  .pkp_page_article .obj_article_details .galleys_links .obj_galley_link:hover,
  .pkp_page_article .obj_article_details .galleys_links .obj_galley_link:focus-visible { background: var(--jpma-navy); border-color: var(--jpma-navy); color: #fff; }
  .pkp_page_article .obj_article_details .entry_details .citation .label,
  .pkp_page_article .obj_article_details .entry_details .published .label,
  .pkp_page_article .obj_article_details .entry_details .issue .label,
  .pkp_page_article .obj_article_details .entry_details .copyright > .label {
    border-bottom: 2px solid var(--jpma-gold); padding-bottom: 7px; margin: 0 0 10px; font-size: 1.04em;
  }
  .pkp_page_article .obj_article_details #citationOutput { line-height: 1.65; font-size: .92em; overflow-wrap: anywhere; }
  .pkp_page_article .obj_article_details .citation_formats_button {
    max-width: 100%; white-space: normal; color: var(--jpma-navy); border: 1px solid #afcbd6; border-radius: 5px; background: #edf5f8;
  }
  .pkp_page_article .obj_article_details .citation_formats_button:hover,
  .pkp_page_article .obj_article_details .citation_formats_button:focus-visible { background: #dcecf3; }
  .pkp_page_article .obj_article_details .entry_details .sub_item { overflow-wrap: anywhere; }
  .pkp_page_article .obj_article_details .entry_details img { max-width: 100%; height: auto; }
}
@media screen and (max-width: 767px) {
  .pkp_page_article .obj_article_details .page_title { font-size: 1.3rem; margin-bottom: 18px; }
  .pkp_page_article .obj_article_details .main_entry > .item,
  .pkp_page_article .obj_article_details .entry_details > .item { padding: 14px; margin-bottom: 12px; }
  .pkp_page_article .obj_article_details .entry_details .cover_image img { max-width: min(100%, 135px); }
}

/* 18 | Corrected article layout: keep public journal sidebar on the right.
 * Restore the v6 print layout; extend the reading width only on screens.
 * Scoped to the article landing page; no change to the home page. */
@media screen and (min-width: 992px) {
  .pkp_structure_content:has(> .pkp_structure_main .page_article .obj_article_details):has(> .pkp_structure_sidebar) {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(215px, 20%);
    align-items: start;
    gap: 20px;
    width: calc(100% - 48px) !important;
    max-width: 1440px !important;
    margin: 0 auto !important;
    box-sizing: border-box;
  }
  .pkp_structure_content:has(> .pkp_structure_main .page_article .obj_article_details)::before,
  .pkp_structure_content:has(> .pkp_structure_main .page_article .obj_article_details)::after { display: none !important; content: none !important; }
  .pkp_structure_content:has(> .pkp_structure_main .page_article .obj_article_details):has(> .pkp_structure_sidebar) > .pkp_structure_main,
  .pkp_structure_content:has(> .pkp_structure_main .page_article .obj_article_details):has(> .pkp_structure_sidebar) > .pkp_structure_sidebar {
    float: none !important;
    clear: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    margin: 0 !important;
    box-sizing: border-box;
  }
  .pkp_structure_content:has(> .pkp_structure_main .page_article .obj_article_details):has(> .pkp_structure_sidebar) > .pkp_structure_main { padding: 24px 0 36px !important; }
  .pkp_structure_content:has(> .pkp_structure_main .page_article .obj_article_details):has(> .pkp_structure_sidebar) > .pkp_structure_sidebar { display: block !important; padding: 24px 0 !important; }
  .pkp_structure_main:has(.page_article .obj_article_details)::before,
  .pkp_structure_main:has(.page_article .obj_article_details)::after { display: none !important; content: none !important; }
}
@media screen and (min-width: 768px) {
  .page_article .obj_article_details > .row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 27%);
    gap: 16px;
    align-items: start;
    margin: 16px 0 0 !important;
    border: 0 !important;
  }
  .page_article .obj_article_details > .row::before,
  .page_article .obj_article_details > .row::after { content: none !important; display: none !important; }
  .page_article .obj_article_details > .row > :is(.main_entry,.entry_details) {
    float: none !important;
    width: auto !important;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 0 !important;
    border: 0 !important;
    padding: 0 !important;
    overflow-wrap: anywhere;
  }
  .page_article .obj_article_details .main_entry > .item,
  .page_article .obj_article_details .entry_details > .item { padding: 14px; }
  .page_article .obj_article_details .entry_details .cover_image img { max-width: min(100%, 150px); }
}
@media screen and (min-width: 1200px) {
  /* Keep long author lists compact without altering their order or metadata. */
  .page_article .obj_article_details ul.authors { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 14px; }
  .page_article .obj_article_details ul.authors > li { min-width: 0; padding: 6px 0 !important; border: 0; }
}
@media screen and (max-width: 767px) {
  .page_article .obj_article_details > .row > :is(.main_entry,.entry_details) { float: none !important; width: 100% !important; box-sizing: border-box; margin: 0 !important; min-width: 0; }
}
/* Printing retains the original OJS columns, as in v6. */

/* 19 | v8.1: blend the public header with the existing JPMA banner.
 * Screen only; retain the readable white print header and all v8 layout rules. */
@media screen {
  .pkp_structure_head {
    background: linear-gradient(90deg, #04344b 0%, #04344b max(0px, calc(50% - 580px)), #015477 min(100%, calc(50% + 170px)), #015477 100%) !important;
    border-top-color: #04344b;
  }
  .pkp_structure_head .pkp_head_wrapper,
  .pkp_structure_head .pkp_site_name_wrapper,
  .pkp_structure_head .pkp_site_name,
  .pkp_structure_head .pkp_site_name .is_img {
    background: transparent !important;
  }
  .pkp_structure_head .pkp_site_name .is_img img { display: inline-block; }
  .pkp_structure_head .pkp_site_name .is_text,
  .pkp_structure_head .pkp_site_nav_toggle { color: #fff !important; }
  .pkp_structure_head .pkp_site_nav_toggle span,
  .pkp_structure_head .pkp_site_nav_toggle span::before,
  .pkp_structure_head .pkp_site_nav_toggle span::after { background: #fff !important; }
}
@media screen and (min-width: 992px) {
  .pkp_structure_head .pkp_site_nav_menu,
  .pkp_structure_head .pkp_navigation_user_wrapper { background: transparent !important; }
  .pkp_structure_head .pkp_navigation_user > li > a { color: #fff !important; }
  .pkp_structure_head .pkp_navigation_user > li > a:hover,
  .pkp_structure_head .pkp_navigation_user > li > a:focus { background: #eaf3f7; color: #103554 !important; }
  .pkp_structure_head .pkp_navigation_user > li > a .task_count { color: #103554 !important; background: #eaf3f7; }
  .pkp_structure_head .pkp_navigation_user ul,
  .pkp_structure_head .pkp_navigation_primary ul { background: #fff !important; }
  .pkp_structure_head .pkp_navigation_user ul a,
  .pkp_structure_head .pkp_navigation_primary ul a { color: #103554 !important; }
  .pkp_structure_head .pkp_navigation_user ul a:hover,
  .pkp_structure_head .pkp_navigation_user ul a:focus,
  .pkp_structure_head .pkp_navigation_primary ul a:hover,
  .pkp_structure_head .pkp_navigation_primary ul a:focus { background: #eaf3f7; color: #006c88 !important; }
}
@media screen and (max-width: 991px) {
  .pkp_structure_head { background: linear-gradient(90deg, #04344b, #015477) !important; }
  /* Keep OJS's opened mobile menu legible against its white panel. */
  .pkp_structure_head .pkp_site_nav_menu { background: #fff !important; }
  .pkp_structure_head .pkp_site_nav_menu a { color: #103554 !important; }
}
