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

   The HEADER colour is set by the theme's own colour chooser
   (Settings > Website > Appearance > Theme > Colour).
   To match buttons, headings, block headers and the footer to it, change
   --e-brand a few lines below (currently the green #123208).

   STEP 1: Paste the contents of your ORIGINAL styleSheet.css (the old 9 lines)
   between the two lines below, so nothing you already had is lost.
   ========================================================================== */

/* ---- your existing styles: paste here ---- */
img {
    max-width: 100%;
    width: revert-layer;
    height: auto;
    }   
    
.item.author_bios {
display: none;
}
/* ---- end of your existing styles ---- */


/* ==========================================================================
   E-BPJ look for the OJS 3.3 Default theme
   Header colour comes from the OJS colour chooser; gold accents, warm
   off-white page, content in clean white cards.
   Upload as the Journal style sheet (Settings > Website > Appearance).
   ========================================================================== */

:root {
  /* ONE colour to match the theme's colour (Settings > Website > Appearance >
     Theme > Colour). The header follows the OJS colour chooser automatically;
     this sets the matching colour for buttons, headings, block headers and
     the footer. Change it whenever you change the theme colour. */
  --e-brand: #123208;

  --e-navy: var(--e-brand);
  --e-navy-2: var(--e-brand);
  --e-navy-deep: var(--e-brand);
  --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 ----------
   Background and text colours come from the theme's colour chooser.
   This only adds the gold line and the rounded hover on menu items. */
.pkp_structure_head {
  border-bottom: 3px solid var(--e-gold);
}
.pkp_site_name .is_text { font-weight: 700; letter-spacing: .005em; text-decoration: none; }
.pkp_navigation_primary > li > a {
  font-weight: 600;
  border-radius: 999px;
  border-bottom: 0;
  transition: background-color .15s ease;
}
.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus,
.pkp_navigation_primary > li:hover > a {
  background: rgba(127, 127, 127, .18);   /* works on light and dark header colours */
  text-decoration: none;
}
.pkp_navigation_search_wrapper a,
.pkp_navigation_search_wrapper a:hover,
.pkp_navigation_search_wrapper a:focus { border-bottom: 0; }

/* dropdown submenus as white cards */
.pkp_navigation_primary ul {
  background: var(--e-card);
  border: 1px solid var(--e-line);
  border-radius: 12px;
  box-shadow: 0 24px 44px -22px rgba(22, 35, 58, .5);
  padding: 6px;
}
.pkp_navigation_primary ul {
  min-width: 15rem;
}
.pkp_navigation_primary ul a {
  display: block;
  padding: .6rem .9rem;
  color: var(--e-ink);
  border-left: 0;
  border-radius: 8px;
  white-space: nowrap;
}
.pkp_navigation_primary ul a:hover,
.pkp_navigation_primary ul a:focus {
  background: var(--e-hover);
  color: var(--e-navy);
  border-left: 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.143rem 2.857rem;   /* same side padding as the theme, so its edge-to-edge sections still line up */
  }

  /* Article page: the theme sizes its two columns in fixed pixels for a
     wider main column. Let them flex so the details column stays on the right. */
  .obj_article_details .row { display: flex; align-items: stretch; }
  .obj_article_details .main_entry { float: none; flex: 1 1 auto; width: auto; min-width: 0; }
  .obj_article_details .entry_details { float: none; flex: 0 0 240px; width: 240px; }
  .pkp_structure_main:first-child:last-child { width: 860px; max-width: 100%; }
  .pkp_structure_main:first-child:last-child .obj_article_details .entry_details { flex-basis: 280px; width: 280px; }
  .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 ---------- */
.pkp_structure_footer_wrapper {
  background: var(--e-navy-deep);
  color: #C9CFDB;
  border-top: 3px solid var(--e-gold);
}
.pkp_structure_footer_wrapper a { color: #EEF0F4; }
.pkp_structure_footer_wrapper a:hover,
.pkp_structure_footer_wrapper a:focus { color: var(--e-gold-soft); }
.pkp_brand_footer { background: transparent; }

/* ---------- 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: var(--e-brand, #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; }
}
