/* IJMERT Banner Theme - edit the colours here */
:root {
  --ij-navy: #12306b;
  --ij-navy-hover: rgba(255, 255, 255, 0.16);
}

/* ---------- Header shell ---------- */
.pkp_structure_page .pkp_structure_head {
  background-color: #fff;
  border-bottom: 0;
}
.pkp_structure_page .pkp_head_wrapper {
  padding-top: 0;           /* no spare space above the banner */
}

/* ---------- Banner image ---------- */
.pkp_structure_page .pkp_site_name > a.ijmert_banner {
  display: block;
  padding: 0;
  line-height: 0;
}
.pkp_structure_page .pkp_site_name .ijmert_banner img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
}
.pkp_structure_page .pkp_site_name > a.ijmert_banner:focus-visible {
  outline: 3px solid var(--ij-navy);
  outline-offset: -3px;
}

/* ---------- Navy menu bar under the banner ---------- */
.pkp_structure_page .pkp_navigation_primary_row {
  background: var(--ij-navy);
  border: 0;
  margin: 0;
}
.pkp_structure_page .pkp_navigation_primary_wrapper {
  padding-left: 12px;
  padding-right: 12px;
}
.pkp_structure_page .pkp_navigation_primary > li > a,
.pkp_structure_page .pkp_navigation_search_wrapper a {
  color: #fff;
  font-weight: 600;
}
.pkp_structure_page .pkp_navigation_primary > li > a:hover,
.pkp_structure_page .pkp_navigation_search_wrapper a:hover {
  color: #fff;
  border-color: #fff;
}
.pkp_structure_page .pkp_navigation_primary ul a { font-weight: 400; }

/* ---------- Desktop ---------- */
@media (min-width: 992px) {
  /* Register / Login gets its own thin navy bar above the banner.
     Flexbox keeps the links inside the bar, right-aligned. */
  .pkp_structure_page .pkp_head_wrapper { padding-top: 34px; }
  .pkp_structure_page .pkp_navigation_user_wrapper {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 34px;
    box-sizing: border-box;
    transform: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 20px 0 14px;
    background: var(--ij-navy);
    border-radius: 0;
  }
  .pkp_structure_page .pkp_navigation_user_wrapper > nav { flex: 1 1 auto; }
  .pkp_structure_page .pkp_navigation_user {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 14px;
  }
  .pkp_structure_page .pkp_navigation_user > li { display: block; margin: 0; }
  .pkp_structure_page .pkp_navigation_user > li > a {
    padding: 5px 12px;
    color: #fff;
  }
  .pkp_structure_page .pkp_navigation_user > li > a:focus,
  .pkp_structure_page .pkp_navigation_user > li > a:hover {
    background: var(--ij-navy-hover);
    color: #fff;
  }
  .pkp_structure_page .pkp_navigation_user ul a { color: var(--ij-navy); }
}

/* ---------- Emblem badge (journal header logo) ---------- */
@media (min-width: 992px) {
  .pkp_structure_page .pkp_site_name > a.ijmert_logo {
    position: absolute;
    left: 16px;
    top: -24px;
    z-index: 1001;
    display: block;
    width: 92px;
    height: 92px;
    padding: 3px;
    box-sizing: border-box;
    line-height: 0;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(12, 33, 82, 0.35);
  }
  .pkp_structure_page .pkp_site_name .ijmert_logo img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    border-radius: 50%;
  }
}
@media (max-width: 991px) {
  .pkp_structure_page .pkp_site_name > a.ijmert_logo { display: none; }
}

/* ---------- Mobile / tablet ---------- */
@media (max-width: 991px) {
  .pkp_structure_page .pkp_site_name_wrapper { height: auto; }
  .pkp_structure_page .pkp_site_name {
    position: static;
    left: auto;
    padding: 0;
    overflow: visible;
    white-space: normal;
  }
  /* menu button floats over the banner's top-left corner */
  .pkp_structure_page .pkp_site_nav_toggle {
    top: 8px;
    left: 8px;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--ij-navy);
    box-shadow: none;
  }
  .pkp_structure_page .pkp_site_nav_menu { background: var(--ij-navy); }
  .pkp_structure_page .pkp_navigation_primary_row { background: transparent; }
}
