/* ==========================================================================
   E-BPJ journal stylesheet (OJS 3.3, Default theme)
   Upload at: Settings > Website > Appearance > Journal style sheet

   STEP 1: Paste the contents of your CURRENT styleSheet.css between the two
   lines below, so nothing you already have is lost. You can download it from
   https://ebpj.e-iph.co.uk/public/journals/1/styleSheet.css
   ========================================================================== */

/* ---- your existing styles: paste here ---- */
img {
    max-width: 100%;
    width: revert-layer;
    height: auto;
    }   
    

/* ---- end of your existing styles ---- */


/* ==========================================================================
   E-BPJ look for the OJS 3.3 Default theme
   Navy and gold, warm off-white page, content in clean white cards.
   Upload as the Journal style sheet (Settings > Website > Appearance).
   ========================================================================== */

:root {
  --e-navy: #16233A;
  --e-navy-2: #1F3150;
  --e-navy-deep: #0F1828;
  --e-gold: #B8863B;
  --e-gold-soft: #D9A857;
  --e-page: #F6F5F0;
  --e-card: #FFFFFF;
  --e-ink: #1C2330;
  --e-ink-soft: #3C4555;
  --e-muted: #6B7280;
  --e-line: #E3E6EC;
  --e-hover: #F5F2EA;
  --e-radius: 12px;
  --e-font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Page ---------- */
body,
.pkp_structure_page {
  background: var(--e-page);
  color: var(--e-ink);
  font-family: var(--e-font);
}
.pkp_structure_main h1, .pkp_structure_main h2, .pkp_structure_main h3,
.pkp_structure_main h4, .pkp_block .title, .pkp_site_name .is_text {
  font-family: var(--e-font);
}
a { color: var(--e-navy-2); }
a:hover, a:focus { color: var(--e-gold); }
.pkp_structure_main a { text-decoration-color: rgba(184, 134, 59, .5); text-underline-offset: 2px; }

/* Header colours and navigation contrast are controlled by OJS. */
.pkp_structure_head .pkp_navigation_primary_row {
  background: transparent;
  border-top: 0;
}

/* ---------- Main + sidebar as cards (desktop) ---------- */
.pkp_structure_main:before,
.pkp_structure_main:after { display: none; }   /* remove the grey column lines */

.pkp_structure_main {
  background: var(--e-card);
  border: 1px solid var(--e-line);
  border-radius: var(--e-radius);
  box-shadow: 0 10px 28px -22px rgba(22, 35, 58, .45);
  box-sizing: border-box;
  margin-bottom: 2.143rem;
}
@media (min-width: 992px) {
  .pkp_structure_main {
    width: calc(100% - 324px);
    padding: 2.143rem 2.5rem 2.857rem;
  }
  .pkp_structure_main:first-child:last-child { width: 860px; max-width: 100%; }
  .pkp_structure_sidebar { width: 300px; box-sizing: border-box; }
}

/* breadcrumbs */
.cmp_breadcrumbs ol { color: var(--e-muted); }
.cmp_breadcrumbs a { color: var(--e-muted); }
.cmp_breadcrumbs .current { color: var(--e-ink); }

/* headings and text */
.pkp_structure_main h1 { color: var(--e-ink); letter-spacing: -.005em; }
.pkp_structure_main h2,
.pkp_structure_main h3 { color: var(--e-navy); }
.pkp_structure_main p,
.pkp_structure_main li { color: var(--e-ink-soft); }

/* tables (fee tables, conference tables) */
.pkp_structure_main table {
  border-collapse: collapse;
  width: 100%;
  font-size: .93rem;
}
.pkp_structure_main table th,
.pkp_structure_main table td {
  border: 1px solid var(--e-line);
  padding: .5rem .7rem;
  text-align: left;
  vertical-align: top;
}
.pkp_structure_main table th { background: #F3F4F7; color: var(--e-navy); }

/* ---------- Buttons ---------- */
.cmp_button,
.cmp_form .buttons button,
.page_search .submit button,
.page_lost_password .buttons button,
.block_make_submission a {
  background: var(--e-navy);
  color: #fff;
  border: 1px solid var(--e-navy);
  border-radius: 8px;
  box-shadow: none;
  font-weight: 600;
  text-decoration: none;
}
.cmp_button:hover, .cmp_button:focus,
.cmp_form .buttons button:hover, .cmp_form .buttons button:focus,
.page_search .submit button:hover, .page_search .submit button:focus,
.block_make_submission a:hover, .block_make_submission a:focus {
  background: var(--e-gold);
  border-color: var(--e-gold);
  color: #fff;
  box-shadow: none;
}

/* PDF / galley buttons */
.cmp_button_wire,
.obj_galley_link {
  border: 1px solid var(--e-navy);
  border-radius: 8px;
  color: var(--e-navy);
  font-weight: 600;
}
.cmp_button_wire:hover, .cmp_button_wire:focus,
.obj_galley_link:hover, .obj_galley_link:focus {
  background: var(--e-navy);
  color: #fff;
}

/* ---------- Issue table of contents and article lists ---------- */
.obj_issue_toc .sections .section > h2,
.obj_issue_toc .sections .section > h3 {
  color: var(--e-navy);
  border-left: 3px solid var(--e-gold);
  padding-left: .7rem;
}
.obj_article_summary .title a { color: var(--e-ink); font-weight: 600; text-decoration: none; }
.obj_article_summary .title a:hover,
.obj_article_summary .title a:focus { color: var(--e-navy-2); text-decoration: underline; text-decoration-color: var(--e-gold); }
.obj_article_summary .meta,
.obj_article_summary .authors { color: var(--e-muted); }
.cmp_article_list > li {
  border-bottom: 1px solid var(--e-line);
  padding-bottom: 1.2rem;
  margin-bottom: 1.2rem;
}
.cmp_article_list > li:last-child { border-bottom: 0; }

/* article page side details */
.obj_article_details .entry_details { border-color: var(--e-line); }
.obj_article_details .entry_details .item { border-color: var(--e-line); }

/* ---------- Sidebar blocks as cards ---------- */
.pkp_block {
  background: var(--e-card);
  border: 1px solid var(--e-line);
  border-radius: var(--e-radius);
  box-shadow: 0 10px 24px -20px rgba(22, 35, 58, .45);
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.4rem;
}
.pkp_block .title {
  color: var(--e-navy);
  font-size: 1rem;
  font-weight: 700;
  padding-left: .6rem;
  border-left: 3px solid var(--e-gold);
}
.pkp_block a { color: var(--e-ink); }
.pkp_block a:hover, .pkp_block a:focus { color: var(--e-navy); }
/* the Journal policies block already draws its own card */
.pkp_block.block_custom#customblock-journal-policies {
  background: none; border: 0; box-shadow: none; padding: 0;
}

/* "Make a Submission" block: one full-width button */
.pkp_block.block_make_submission { padding: 1rem; }
.pkp_block.block_make_submission a,
.pkp_block.block_make_submission a:visited {
  display: block;
  text-align: center;
  color: #fff;
  line-height: 2.6rem;
}
.pkp_block.block_make_submission a:hover,
.pkp_block.block_make_submission a:focus { color: #fff; }

/* Footer colours are left to the active OJS theme. */

/* ---------- Keyboard focus ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--e-gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .pkp_navigation_primary > li > a { transition: none; }
}


/* ==========================================================
   E-BPJ "Journal policies" sidebar block
   Works whether or not OJS keeps the block's own <div class="ebpj-policies">:
   it also targets the wrapper OJS puts around a custom block named
   "journal-policies" (id="customblock-journal-policies").
   ========================================================== */

#customblock-journal-policies,
.ebpj-policies {
  --ebpj-navy: #16233A;
  --ebpj-gold: #B8863B;
  --ebpj-ink: #1C2330;
  --ebpj-muted: #6B7280;
  --ebpj-line: #E3E6EC;
  --ebpj-hover: #F5F2EA;
}

/* the card */
#customblock-journal-policies .content,
.ebpj-policies {
  background: #fff;
  border: 1px solid var(--ebpj-line);
  border-radius: 12px;
  overflow: hidden;
  padding: 0 0 6px;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 10px 24px -18px rgba(22, 35, 58, .55);
}
#customblock-journal-policies .content .ebpj-policies {
  border: 0; border-radius: 0; box-shadow: none; padding: 0;   /* avoid a card inside a card */
}

/* block title */
#customblock-journal-policies h2,
.ebpj-policies h2 {
  margin: 0 0 6px;
  padding: 13px 16px 12px;
  background: var(--ebpj-navy);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  border-bottom: 3px solid var(--ebpj-gold);
}

/* group labels */
#customblock-journal-policies p,
.ebpj-policies p {
  margin: 12px 16px 4px;
  padding-left: 9px;
  border-left: 3px solid var(--ebpj-gold);
  color: var(--ebpj-navy);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

/* link lists */
#customblock-journal-policies ul,
.ebpj-policies ul {
  list-style: none;
  margin: 0;
  padding: 0 8px;
}
#customblock-journal-policies li,
.ebpj-policies li {
  margin: 0;
  padding: 0;
}
#customblock-journal-policies li::before,
.ebpj-policies li::before { content: none; }   /* some themes add their own bullets */

#customblock-journal-policies li a,
.ebpj-policies li a {
  position: relative;
  display: block;
  padding: 7px 26px 7px 10px;
  border-radius: 8px;
  color: var(--ebpj-ink);
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
#customblock-journal-policies li a::after,
.ebpj-policies li a::after {
  content: "\203A";                 /* › */
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-52%);
  color: var(--ebpj-muted);
  font-size: 17px;
  transition: transform .15s ease, color .15s ease;
}
#customblock-journal-policies li a:hover,
#customblock-journal-policies li a:focus-visible,
.ebpj-policies li a:hover,
.ebpj-policies li a:focus-visible {
  background: var(--ebpj-hover);
  color: var(--ebpj-navy);
}
#customblock-journal-policies li a:hover::after,
.ebpj-policies li a:hover::after {
  color: var(--ebpj-gold);
  transform: translate(3px, -52%);
}
#customblock-journal-policies li a:focus-visible,
.ebpj-policies li a:focus-visible {
  outline: 2px solid var(--ebpj-gold);
  outline-offset: 1px;
}

@media (prefers-reduced-motion: reduce) {
  #customblock-journal-policies li a,
  #customblock-journal-policies li a::after,
  .ebpj-policies li a,
  .ebpj-policies li a::after { transition: none; }
}

/* AjQoL article columns: keep cover and metadata beside the article. */
.obj_article_details > .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-left: 0;
  margin-right: 0;
}
.obj_article_details > .row::before,
.obj_article_details > .row::after { display: none; }
.obj_article_details > .row > .main_entry,
.obj_article_details > .row > .entry_details {
  float: none;
  width: auto;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
}
.obj_article_details > .row > .main_entry { overflow-wrap: anywhere; }
.obj_article_details .entry_details .cover_image img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  margin: 0 auto;
}
@media (min-width: 992px) {
  .obj_article_details > .row {
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    align-items: start;
  }
  .obj_article_details > .row > .main_entry { grid-column: 1; grid-row: 1; }
  .obj_article_details > .row > .entry_details { grid-column: 2; grid-row: 1; }
}

/* Compact the gap below the header (theme adds padding plus margin). */
.pkp_structure_head + .pkp_structure_content {
  padding-top: 12px;
}
.pkp_structure_content > .pkp_structure_main {
  margin-top: 0;
}
.pkp_structure_content > .pkp_structure_sidebar {
  margin-top: 0;
}

/* Gold accent below the header; background remains controlled by OJS. */
.pkp_structure_head {
  border-bottom: 3px solid var(--e-gold);
}

/* Accessible references button; references remain visible without JavaScript. */
.obj_article_details .references .ajqol-reference-toggle {
 display: inline-flex; align-items: center; gap: .6em;
 padding: .65em 1em; margin: 0 0 1em; background: #fff;
 color: var(--e-ink); border: 1px solid var(--e-gold); border-radius: 8px;
 font: inherit; font-weight: 600; cursor: pointer;
}
.obj_article_details .references .value[hidden] { display: none !important; }
@media print {
 .obj_article_details .references .value[hidden] { display: block !important; }
 .ajqol-reference-toggle { display: none !important; }
}

/* Compact article spacing. */
.pkp_structure_main { padding: 20px 24px 24px; }
.obj_article_details .page_title { margin-top: 0; margin-bottom: 20px; }
.obj_article_details > .row > .main_entry,
.obj_article_details > .row > .entry_details { padding: 20px; }
.obj_article_details .authors > li { margin-bottom: 16px; }
@media (max-width: 767px) {
 .pkp_structure_main { padding: 16px; }
 .obj_article_details > .row > .main_entry,
 .obj_article_details > .row > .entry_details { padding: 16px 0; }
}

/* AjQoL stylesheet v1.0.2 — remove nested article padding. */
.obj_article_details > .row > .main_entry { padding: 16px 20px 16px 0; }
.obj_article_details .main_entry > .item {
 padding: 0;
 margin: 0 0 20px;
}
.obj_article_details .main_entry > .item.authors { padding-top: 0; }
.obj_article_details .main_entry > .item.authors ul.authors { padding: 0; margin: 0; }
.obj_article_details .main_entry ul.authors > li { margin: 0 0 12px; padding: 0; }
.obj_article_details .main_entry ul.authors > li:last-child { margin-bottom: 0; }
@media(max-width:767px) {
 .obj_article_details > .row > .main_entry { padding: 16px 0; }
}

/* v1.0.3 — compact references control, matching the PDF button. */
.obj_article_details .references:has(.ajqol-reference-toggle) > .label {
 position: absolute;
 width: 1px;
 height: 1px;
 padding: 0;
 margin: -1px;
 overflow: hidden;
 clip: rect(0, 0, 0, 0);
 white-space: nowrap;
 border: 0;
}
.obj_article_details .references .ajqol-reference-toggle {
 display: inline-flex;
 align-items: center;
 gap: 6px;
 padding: 0 1em;
 min-height: 30px;
 line-height: 28px;
 font-size: 14px;
 font-weight: 600;
 border: 1px solid var(--e-navy);
 border-radius: 8px;
 color: var(--e-navy);
 background: #fff;
 margin: 0 0 12px;
}
.obj_article_details .references .ajqol-reference-toggle::before {
 content: "";
 width: 14px;
 height: 14px;
 flex: 0 0 14px;
 background: currentColor;
 -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M4 4h16v16H4zM8 8h8M8 12h8M8 16h5'/%3E%3C/svg%3E") center / contain no-repeat;
 mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M4 4h16v16H4zM8 8h8M8 12h8M8 16h5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.obj_article_details .references .ajqol-reference-toggle:hover {
 background: var(--e-navy);
 color: #fff;
}

/* v1.0.4 — compact right-hand article metadata. */
.obj_article_details > .row > .entry_details { padding: 16px; }
.obj_article_details .entry_details > .item {
 padding: 16px 0;
 margin: 0;
}
.obj_article_details .entry_details > .item:first-child { padding-top: 0; }
.obj_article_details .entry_details .sub_item { padding: 0; }
.obj_article_details .entry_details .label { margin-top: 0; margin-bottom: 10px; }
.obj_article_details .entry_details .citation_display { margin-bottom: 12px; }
.obj_article_details .entry_details .citation_formats_button {
 padding: 5px 10px;
 font-size: 14px;
 line-height: 20px;
}

/* v1.0.5 — tighter issue contents and section spacing. */
.obj_issue_toc .sections { margin-top: 24px; }
.obj_issue_toc .sections > .section {
 margin: 0 0 24px;
 padding: 16px 0 0;
}
.obj_issue_toc .sections > .section > h2,
.obj_issue_toc .sections > .section > h3 { margin-bottom: 14px; }
.obj_issue_toc .sections .cmp_article_list > li {
 margin-bottom: 16px;
 padding-bottom: 16px;
}
.obj_issue_toc .sections .cmp_article_list > li:last-child {
 margin-bottom: 0;
 padding-bottom: 0;
}

/* v1.0.6 — compact primary navigation dropdowns. */
.pkp_navigation_primary > li > ul {
 padding: 6px;
 min-width: 220px;
 border: 1px solid var(--e-line);
 border-radius: 10px;
 background: #fff;
 box-shadow: 0 10px 28px rgba(0,0,0,.16);
}
.pkp_navigation_primary > li > ul > li { margin: 0; padding: 0; }
.pkp_navigation_primary > li > ul > li > a {
 display: block;
 margin: 0;
 padding: 10px 12px;
 border: 0;
 border-radius: 6px;
 font-size: 14px;
 line-height: 1.4;
 color: var(--e-ink);
 background: transparent;
 text-decoration: none;
}
.pkp_navigation_primary > li > ul > li > a:hover,
.pkp_navigation_primary > li > ul > li > a:focus {
 border: 0;
 background: var(--e-hover);
 color: var(--e-ink);
}
.pkp_navigation_primary > li > a { border-radius: 6px 6px 0 0; }

/* v1.0.7 — keep dropdown highlights inside equal left/right gutters. */
.pkp_navigation_primary > li > ul,
.pkp_navigation_primary > li > ul > li,
.pkp_navigation_primary > li > ul > li > a {
 box-sizing: border-box;
}
.pkp_navigation_primary > li > ul > li {
 width: 100%;
}
.pkp_navigation_primary > li > ul > li > a {
 width: 100%;
 max-width: 100%;
 margin-left: 0;
 margin-right: 0;
}

/* v1.0.8 — DOI-specific Crossmark link beside the article title. */
.ajqol-title-row { display:flex; align-items:flex-start; gap:20px; margin-bottom:20px; }
.ajqol-title-row .page_title { flex:1; min-width:0; margin-bottom:0; }
.ajqol-crossmark { flex:0 0 150px; margin-top:6px; }
.ajqol-crossmark img { display:block; width:150px; height:auto; }
@media(max-width:767px) { .ajqol-title-row { flex-direction:column; gap:12px; } .ajqol-crossmark { flex-basis:auto; } }
