/*
  BJAMES OJS FULL-WIDTH HOMEPAGE CSS
  Paste this in: Settings > Website > Appearance > Advanced > Journal Style Sheet
*/

/* Remove the old OJS homepage content and force the custom homepage edge-to-edge. */
body:has(.bjames-home) .pkp_structure_head,
body:has(.bjames-home) .pkp_structure_footer,
body:has(.bjames-home) .pkp_structure_sidebar,
body:has(.bjames-home) .pkp_brand_footer,
body:has(.bjames-home) .cmp_breadcrumbs,
body:has(.bjames-home) .homepage_issue,
body:has(.bjames-home) .current_issue,
body:has(.bjames-home) section.current_issue,
body:has(.bjames-home) .current_issue_title,
body:has(.bjames-home) .obj_issue_summary,
body:has(.bjames-home) [class*="current_issue"] {
  display: none !important;
}

body:has(.bjames-home) .pkp_structure_page,
body:has(.bjames-home) .pkp_structure_content,
body:has(.bjames-home) .pkp_structure_main,
body:has(.bjames-home) #pkp_content_main,
body:has(.bjames-home) .page_index_journal,
body:has(.bjames-home) .page,
body:has(.bjames-home) .additional_content,
body:has(.bjames-home) .homepage_content,
body:has(.bjames-home) .pkp_page_index {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  float: none !important;
}

/* Remove the thin vertical OJS frame that can remain on either side. */
body:has(.bjames-home) .pkp_structure_page,
body:has(.bjames-home) .pkp_structure_content,
body:has(.bjames-home) .pkp_structure_main,
body:has(.bjames-home) #pkp_content_main,
body:has(.bjames-home) .page_index_journal,
body:has(.bjames-home) .page,
body:has(.bjames-home) .pkp_page_index {
  border-left: 0 !important;
  border-right: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

body:has(.bjames-home) .pkp_structure_page::before,
body:has(.bjames-home) .pkp_structure_page::after,
body:has(.bjames-home) .pkp_structure_content::before,
body:has(.bjames-home) .pkp_structure_content::after,
body:has(.bjames-home) .pkp_structure_main::before,
body:has(.bjames-home) .pkp_structure_main::after,
body:has(.bjames-home) #pkp_content_main::before,
body:has(.bjames-home) #pkp_content_main::after,
body:has(.bjames-home) .page_index_journal::before,
body:has(.bjames-home) .page_index_journal::after,
body:has(.bjames-home) .page::before,
body:has(.bjames-home) .page::after,
body:has(.bjames-home) .pkp_page_index::before,
body:has(.bjames-home) .pkp_page_index::after {
  display: none !important;
  content: none !important;
}

body:has(.bjames-home) .pkp_structure_content {
  overflow: visible !important;
}

/* Collapse empty Material/OJS homepage containers left behind by the theme. */
body:has(.bjames-home) .pkp_structure_page,
body:has(.bjames-home) .pkp_structure_content,
body:has(.bjames-home) .pkp_structure_main,
body:has(.bjames-home) #pkp_content_main,
body:has(.bjames-home) .page_index_journal,
body:has(.bjames-home) .page,
body:has(.bjames-home) .additional_content,
body:has(.bjames-home) .homepage_content,
body:has(.bjames-home) .pkp_page_index {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  gap: 0 !important;
  row-gap: 0 !important;
  column-gap: 0 !important;
}

body:has(.bjames-home) .homepage_image,
body:has(.bjames-home) .homepage_about,
body:has(.bjames-home) .cmp_announcements {
  display: none !important;
}

body:has(.bjames-home) {
  background: #f5f5f5 !important;
}

.bjames-home {
  --bjh-forest: #083d31;
  --bjh-forest-deep: #042a22;
  --bjh-forest-soft: #0e5e4a;
  --bjh-navy: #1e3a8a;
  --bjh-navy-deep: #132964;
  --bjh-gold: #f4b400;
  --bjh-gold-soft: #ffc93d;
  --bjh-orange: #f97316;
  --bjh-page: #f5f5f5;
  --bjh-ink: #162131;
  --bjh-muted: #607080;
  --bjh-line: #dbe1e8;
  --bjh-shadow: 0 24px 65px rgba(15, 34, 53, 0.13);
  width: 100%;
  overflow: hidden;
  color: var(--bjh-ink);
  background: var(--bjh-page);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

.bjames-home *,
.bjames-home *::before,
.bjames-home *::after {
  box-sizing: border-box;
}

.bjames-home a {
  color: inherit;
  text-decoration: none;
}

.bjames-home img {
  display: block;
  max-width: 100%;
}

.bjh-wrap {
  width: min(calc(100% - 64px), 1320px);
  margin: 0 auto;
}

.bjh-utility {
  color: #dfece8;
  background: var(--bjh-forest-deep);
}

.bjh-utility__inner,
.bjh-masthead,
.bjh-focus__inner,
.bjh-current__top,
.bjh-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bjh-utility__inner {
  min-height: 34px;
  gap: 20px;
}

.bjh-utility p {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bjh-utility__inner > div {
  display: flex;
  gap: 20px;
  font-size: 11px;
}

.bjh-utility a:hover,
.bjh-footer a:hover {
  color: var(--bjh-gold-soft);
}

.bjh-masthead {
  min-height: 112px;
  gap: 30px;
  background: #fff;
}

.bjh-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bjh-brand__logo {
  width: 80px;
  height: 80px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e1e8e5;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(8, 61, 49, 0.1);
}

.bjh-brand__logo img,
.bjh-footer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bjh-brand__text {
  display: flex;
  flex-direction: column;
  color: var(--bjh-forest);
  line-height: 1.2;
}

.bjh-brand__text strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2.2vw, 29px);
}

.bjh-brand__text span {
  margin-top: 4px;
  color: #436158;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bjh-submit,
.bjh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}

.bjh-submit {
  padding: 11px 17px;
  color: #fff !important;
  background: var(--bjh-forest);
  box-shadow: 0 8px 18px rgba(8, 61, 49, 0.16);
  font-size: 12px;
}

.bjh-submit:hover,
.bjh-button:hover {
  transform: translateY(-2px);
}

.bjh-nav {
  background: var(--bjh-navy);
}

.bjh-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
}

.bjh-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 14px;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.bjh-nav a::after {
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 3px;
  content: "";
  background: var(--bjh-gold);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.bjh-nav a:hover::after,
.bjh-nav .is-active::after {
  transform: scaleX(1);
}

.bjh-kicker {
  margin: 0 0 11px !important;
  color: var(--bjh-gold-soft);
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bjh-kicker--orange {
  color: var(--bjh-orange);
}

.bjh-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(122deg, var(--bjh-forest-deep) 0%, var(--bjh-forest) 47%, #145443 100%);
}

.bjh-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.72;
  background:
    radial-gradient(circle at 78% 12%, rgba(244, 180, 0, 0.38), transparent 18%),
    radial-gradient(circle at 93% 70%, rgba(249, 115, 22, 0.32), transparent 23%),
    linear-gradient(135deg, transparent 0 48%, rgba(5, 86, 140, 0.55) 48% 58%, transparent 58%);
}

.bjh-hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.11;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.65) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.65) 1px, transparent 1px);
  background-size: 48px 48px;
}

.bjh-hero__orb {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.bjh-hero__orb--one {
  right: -210px;
  bottom: -340px;
  width: 720px;
  height: 720px;
}

.bjh-hero__orb--two {
  top: -290px;
  right: 14%;
  width: 480px;
  height: 480px;
}

.bjh-hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  gap: 70px;
  align-items: center;
  min-height: 610px;
  padding: 75px 0;
}

.bjh-hero h1,
.bjh-about h2,
.bjh-current h2,
.bjh-areas h2,
.bjh-pathway h2,
.bjh-announcements h2,
.bjh-cta h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.12;
}

.bjh-hero h1 {
  max-width: 750px;
  color: #fff;
  font-size: clamp(42px, 5.1vw, 72px);
  line-height: 1.03;
}

.bjh-hero h1 em {
  color: var(--bjh-gold-soft);
}

.bjh-hero__content > p:not(.bjh-kicker) {
  max-width: 660px;
  margin: 24px 0 0;
  color: #deeee9;
  font-size: 17px;
}

.bjh-actions,
.bjh-tags,
.bjh-current__tags {
  display: flex;
  flex-wrap: wrap;
}

.bjh-actions {
  gap: 13px;
  margin-top: 31px;
}

.bjh-button {
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
}

.bjh-button--gold {
  color: var(--bjh-forest-deep) !important;
  background: var(--bjh-gold);
}

.bjh-button--gold:hover {
  background: var(--bjh-gold-soft);
}

.bjh-button--outline {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.55);
}

.bjh-button--outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.bjh-button--blue {
  color: #fff !important;
  background: var(--bjh-navy);
}

.bjh-tags {
  gap: 9px;
  margin-top: 43px;
}

.bjh-tags span {
  padding: 6px 10px;
  color: #e5f1ed;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bjh-cover {
  position: relative;
  display: flex;
  min-height: 465px;
  align-items: center;
  justify-content: center;
}

.bjh-cover__frame {
  position: relative;
  z-index: 2;
  width: min(100%, 314px);
  padding: 10px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
  transform: rotate(2.7deg);
}

.bjh-cover__frame img {
  width: 100%;
}

.bjh-formula {
  position: absolute;
  z-index: 3;
  padding: 9px 13px;
  color: #fffaf0;
  background: rgba(5, 38, 31, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.bjh-formula--one {
  top: 37px;
  left: 0;
}

.bjh-formula--two {
  right: -7px;
  bottom: 86px;
}

.bjh-cover__stamp {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 18px;
  display: flex;
  min-width: 195px;
  flex-direction: column;
  padding: 13px 15px;
  color: var(--bjh-forest-deep);
  background: var(--bjh-gold);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.17);
}

.bjh-cover__stamp span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bjh-cover__stamp strong {
  margin-top: 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.15;
}

.bjh-cover__stamp small {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 700;
}

.bjh-focus {
  background: #fff;
  border-bottom: 1px solid var(--bjh-line);
}

.bjh-focus__inner {
  min-height: 86px;
  gap: 30px;
}

.bjh-focus p {
  display: flex;
  align-items: center;
  max-width: 890px;
  gap: 14px;
  margin: 0;
  color: var(--bjh-forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.3;
}

.bjh-focus p span {
  display: grid;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: var(--bjh-forest);
  border-radius: 50%;
  font-size: 24px;
}

.bjh-focus a,
.bjh-about__copy a,
.bjh-pathway a,
.bjh-announcements a {
  color: var(--bjh-navy);
  font-size: 13px;
  font-weight: 800;
}

.bjh-about,
.bjh-areas,
.bjh-announcements {
  padding: 106px 0;
}

.bjh-about,
.bjh-current {
  background: var(--bjh-page);
}

.bjh-about__grid,
.bjh-pathway__grid,
.bjh-announcements__grid {
  display: grid;
  gap: 100px;
}

.bjh-about__grid {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
}

.bjh-about h2,
.bjh-areas h2 {
  font-size: clamp(35px, 4vw, 54px);
}

.bjh-about__copy {
  padding: 6px 0 6px 34px;
  border-left: 2px solid var(--bjh-gold);
}

.bjh-about__copy p {
  margin: 0;
  color: #4c5c66;
  font-size: 17px;
}

.bjh-about__copy p + p {
  margin-top: 16px;
}

.bjh-about__copy a {
  display: inline-block;
  margin-top: 23px;
  color: var(--bjh-forest);
}

.bjh-current {
  padding: 0 0 108px;
}

.bjh-current__frame {
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe5e3;
  box-shadow: var(--bjh-shadow);
}

.bjh-current__top {
  align-items: end;
  gap: 30px;
  padding: 35px 44px 29px;
  border-bottom: 1px solid #e5ebe8;
}

.bjh-current__top h2 {
  font-size: clamp(30px, 3vw, 43px);
}

.bjh-current__top > p {
  margin: 0;
  color: var(--bjh-forest);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bjh-current__grid {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr) 225px;
}

.bjh-current__cover {
  display: grid;
  min-height: 385px;
  place-items: center;
  padding: 28px;
  background: linear-gradient(145deg, var(--bjh-forest-deep), var(--bjh-forest-soft));
}

.bjh-current__cover img {
  max-height: 330px;
  box-shadow: 0 12px 29px rgba(0, 0, 0, 0.3);
}

.bjh-current__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 48px;
}

.bjh-current__content h3 {
  max-width: 690px;
  margin: 0;
  color: var(--bjh-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.15;
}

.bjh-current__content > p:not(.bjh-kicker) {
  max-width: 640px;
  margin: 16px 0 0;
  color: var(--bjh-muted);
  font-size: 15px;
}

.bjh-current__tags {
  gap: 8px;
  margin: 23px 0;
}

.bjh-current__tags span {
  padding: 5px 9px;
  color: var(--bjh-navy);
  background: #e9effd;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bjh-current__note {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 31px 25px;
  color: #d9f2e7;
  background: var(--bjh-forest);
}

.bjh-current__note > span {
  margin-bottom: auto;
  color: rgba(255, 255, 255, 0.2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
}

.bjh-current__note p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.25;
}

.bjh-current__note a {
  margin-top: 18px;
  color: var(--bjh-gold-soft);
  font-size: 11px;
  font-weight: 800;
}

.bjh-areas {
  background: #fff;
}

.bjh-section-title {
  max-width: 775px;
  margin: 0 auto;
  text-align: center;
}

.bjh-section-title > p:last-child {
  margin: 17px auto 0;
  color: var(--bjh-muted);
  font-size: 16px;
}

.bjh-areas__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 45px;
}

.bjh-areas article {
  position: relative;
  min-height: 275px;
  padding: 27px 25px;
  overflow: hidden;
  border: 1px solid var(--bjh-line);
  border-radius: 3px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bjh-areas article:hover {
  box-shadow: 0 18px 35px rgba(31, 58, 138, 0.1);
  transform: translateY(-5px);
}

.bjh-areas article > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--bjh-forest);
  background: #e5f1ec;
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
}

.bjh-areas h3 {
  margin: 24px 0 0;
  color: var(--bjh-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1.15;
}

.bjh-areas article p {
  margin: 13px 0 0;
  color: var(--bjh-muted);
  font-size: 13px;
}

.bjh-pathway {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--bjh-navy-deep);
}

.bjh-pathway__grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  padding: 100px 0;
}

.bjh-pathway h2 {
  color: #fff;
  font-size: clamp(35px, 4.2vw, 55px);
}

.bjh-pathway > .bjh-wrap > div > p:not(.bjh-kicker) {
  max-width: 555px;
  margin: 18px 0 0;
  color: #d7e1fa;
  font-size: 16px;
}

.bjh-pathway a {
  display: inline-block;
  margin-top: 25px;
  color: var(--bjh-gold-soft);
}

.bjh-pathway__steps {
  border-top: 1px solid rgba(255, 255, 255, 0.23);
}

.bjh-pathway__steps article {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.23);
}

.bjh-pathway__steps > article > span {
  color: var(--bjh-gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 700;
}

.bjh-pathway__steps h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
}

.bjh-pathway__steps p {
  margin: 3px 0 0;
  color: #c8d5f2;
  font-size: 14px;
}

.bjh-announcements,
.bjh-cta {
  background: #f0f3f2;
}

.bjh-announcements__grid {
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 80px;
}

.bjh-announcements h2 {
  font-size: clamp(34px, 4vw, 50px);
}

.bjh-announcements > .bjh-wrap > div > a {
  display: inline-block;
  margin-top: 24px;
  color: var(--bjh-forest);
}

.bjh-announcements__items {
  display: grid;
  gap: 14px;
}

.bjh-announcements__items article {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr) 126px;
  gap: 20px;
  align-items: center;
  padding: 25px;
  background: #fff;
  border-left: 4px solid var(--bjh-gold);
}

.bjh-announcements time {
  color: var(--bjh-forest);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bjh-announcements h3 {
  margin: 0;
  color: var(--bjh-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.2;
}

.bjh-announcements__items a {
  text-align: right;
  color: var(--bjh-navy);
  font-size: 11px;
  font-weight: 800;
}

.bjh-cta {
  padding: 0 0 106px;
}

.bjh-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 48px 56px;
  color: #fff;
  background: linear-gradient(110deg, rgba(8, 61, 49, 0.96), rgba(30, 58, 138, 0.96)), var(--bjh-forest);
}

.bjh-cta h2 {
  color: #fff;
  font-size: clamp(30px, 3.6vw, 46px);
}

.bjh-cta p:not(.bjh-kicker) {
  max-width: 720px;
  margin: 12px 0 0;
  color: #dae6ef;
  font-size: 15px;
}

.bjh-footer {
  color: #d7e7e1;
  background: var(--bjh-forest-deep);
}

.bjh-footer__grid {
  display: grid;
  grid-template-columns: 1.55fr repeat(3, 1fr);
  gap: 45px;
  padding: 66px 0 48px;
}

.bjh-footer__grid img {
  width: 78px;
  height: 78px;
  overflow: hidden;
  background: #fff;
  border-radius: 50%;
}

.bjh-footer p {
  max-width: 340px;
  margin: 17px 0 0;
  color: #b7cec6;
  font-size: 12px;
}

.bjh-footer h3 {
  margin: 8px 0 16px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bjh-footer__grid a {
  display: block;
  margin: 9px 0;
  color: #c7dbd4;
  font-size: 12px;
}

.bjh-footer__bottom {
  gap: 24px;
  min-height: 62px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.bjh-footer__bottom p {
  margin: 0;
  font-size: 11px;
}

.bjh-footer__bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
}

.bjh-footer__bottom a {
  font-size: 11px;
}

/* Keep the desktop design a little more compact and academic. */
@media (min-width: 681px) {
  .bjh-utility p {
    font-size: 9px;
  }

  .bjh-utility__inner > div {
    font-size: 10px;
  }

  .bjh-brand__text strong {
    font-size: clamp(18px, 2vw, 26px);
  }

  .bjh-brand__text span {
    font-size: 10px;
  }

  .bjh-submit {
    font-size: 11px;
  }

  .bjh-nav__inner,
  .bjh-nav a {
    min-height: 48px;
  }

  .bjh-nav a {
    font-size: 11px;
  }

  .bjh-hero h1 {
    font-size: clamp(38px, 4.5vw, 64px);
  }

  .bjh-hero__content > p:not(.bjh-kicker),
  .bjh-about__copy p {
    font-size: 15px;
  }

  .bjh-about h2,
  .bjh-areas h2,
  .bjh-pathway h2,
  .bjh-announcements h2 {
    font-size: clamp(32px, 3.6vw, 49px);
  }
}

@media (max-width: 1120px) {
  .bjh-nav__inner {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .bjh-nav a {
    padding: 0 12px;
  }

  .bjh-hero__layout {
    gap: 30px;
  }

  .bjh-current__grid {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .bjh-current__note {
    grid-column: span 2;
    min-height: 160px;
    flex-direction: row;
    align-items: flex-end;
    gap: 28px;
  }

  .bjh-current__note > span {
    margin: 0 auto 0 0;
  }

  .bjh-areas__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bjh-footer__grid {
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 25px;
  }
}

@media (max-width: 820px) {
  .bjh-wrap {
    width: min(calc(100% - 40px), 1320px);
  }

  .bjh-utility__inner > div {
    display: none;
  }

  .bjh-masthead {
    min-height: 96px;
  }

  .bjh-brand__logo {
    width: 66px;
    height: 66px;
  }

  .bjh-hero__layout,
  .bjh-about__grid,
  .bjh-pathway__grid,
  .bjh-announcements__grid {
    grid-template-columns: 1fr;
  }

  .bjh-hero__layout {
    gap: 16px;
    min-height: auto;
    padding: 65px 0 32px;
  }

  .bjh-cover {
    width: min(100%, 460px);
    min-height: 400px;
    margin: 0 auto;
  }

  .bjh-about,
  .bjh-areas,
  .bjh-pathway__grid,
  .bjh-announcements {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .bjh-current {
    padding-bottom: 76px;
  }

  .bjh-about__grid,
  .bjh-pathway__grid,
  .bjh-announcements__grid {
    gap: 37px;
  }

  .bjh-announcements__items article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .bjh-announcements__items a {
    text-align: left;
  }

  .bjh-cta__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 40px;
  }

  .bjh-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bjh-footer__grid > div:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 570px) {
  .bjh-wrap {
    width: min(calc(100% - 28px), 1320px);
  }

  .bjh-utility__inner {
    min-height: 31px;
  }

  .bjh-utility p {
    font-size: 8px;
  }

  .bjh-masthead {
    min-height: 78px;
  }

  .bjh-brand {
    gap: 9px;
  }

  .bjh-brand__logo {
    width: 54px;
    height: 54px;
  }

  .bjh-brand__text strong {
    font-size: 16px;
  }

  .bjh-brand__text span {
    font-size: 8px;
  }

  .bjh-submit {
    padding: 8px 10px;
    font-size: 10px;
  }

  .bjh-nav a {
    min-height: 42px;
    padding: 0 10px;
    font-size: 10px;
  }

  .bjh-hero__layout {
    padding-top: 52px;
  }

  .bjh-hero h1 {
    font-size: 40px;
  }

  .bjh-hero__content > p:not(.bjh-kicker) {
    font-size: 15px;
  }

  .bjh-tags {
    margin-top: 30px;
  }

  .bjh-cover {
    min-height: 354px;
    margin-bottom: -22px;
    transform: scale(0.93);
    transform-origin: top center;
  }

  .bjh-cover__frame {
    width: 246px;
  }

  .bjh-formula {
    padding: 6px 8px;
    font-size: 13px;
  }

  .bjh-formula--one {
    top: 25px;
    left: -7px;
  }

  .bjh-formula--two {
    right: -7px;
    bottom: 58px;
  }

  .bjh-cover__stamp {
    right: -4px;
    bottom: 8px;
    min-width: 158px;
    padding: 10px 12px;
  }

  .bjh-cover__stamp strong {
    font-size: 17px;
  }

  .bjh-focus__inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    min-height: 118px;
    gap: 8px;
  }

  .bjh-focus p {
    font-size: 16px;
  }

  .bjh-focus p span {
    width: 29px;
    height: 29px;
    font-size: 20px;
  }

  .bjh-about h2,
  .bjh-areas h2,
  .bjh-pathway h2,
  .bjh-announcements h2,
  .bjh-cta h2 {
    font-size: 34px;
  }

  .bjh-about__copy {
    padding-left: 20px;
  }

  .bjh-about__copy p {
    font-size: 15px;
  }

  .bjh-current__top {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 29px 24px 23px;
  }

  .bjh-current__grid {
    grid-template-columns: 1fr;
  }

  .bjh-current__cover {
    min-height: 285px;
    padding: 23px;
  }

  .bjh-current__cover img {
    max-height: 240px;
  }

  .bjh-current__content {
    padding: 32px 24px;
  }

  .bjh-current__content h3 {
    font-size: 29px;
  }

  .bjh-current__note {
    grid-column: auto;
    min-height: 150px;
    padding: 26px 24px;
  }

  .bjh-current__note > span {
    display: none;
  }

  .bjh-areas__grid {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  .bjh-areas article {
    min-height: 235px;
  }

  .bjh-pathway__steps article {
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 13px;
  }

  .bjh-pathway__steps h3 {
    font-size: 24px;
  }

  .bjh-cta {
    padding-bottom: 76px;
  }

  .bjh-cta__inner {
    padding: 31px 24px;
  }

  .bjh-footer__grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .bjh-footer__grid > div:first-child {
    grid-column: auto;
  }

  .bjh-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    min-height: 96px;
    gap: 8px;
  }
}

/* Compact desktop rhythm: smaller text and much less empty vertical space. */
@media (min-width: 681px) {
  .bjames-home {
    line-height: 1.5;
  }

  .bjh-wrap {
    width: min(calc(100% - 48px), 1280px);
  }

  .bjh-utility__inner {
    min-height: 28px;
    gap: 14px;
  }

  .bjh-utility p {
    font-size: 8px;
  }

  .bjh-utility__inner > div {
    gap: 14px;
    font-size: 9px;
  }

  .bjh-masthead {
    min-height: 80px;
    gap: 20px;
  }

  .bjh-brand__logo {
    width: 58px;
    height: 58px;
  }

  .bjh-brand__text strong {
    font-size: clamp(17px, 1.8vw, 24px);
  }

  .bjh-brand__text span {
    margin-top: 2px;
    font-size: 9px;
  }

  .bjh-submit {
    padding: 9px 14px;
    font-size: 10px;
  }

  .bjh-nav__inner,
  .bjh-nav a {
    min-height: 42px;
  }

  .bjh-nav a {
    padding: 0 12px;
    font-size: 10px;
  }

  .bjh-kicker {
    margin-bottom: 8px !important;
    font-size: 10px !important;
  }

  .bjh-hero__layout {
    gap: 40px;
    min-height: 450px;
    padding: 46px 0;
  }

  .bjh-hero h1 {
    font-size: clamp(34px, 3.9vw, 54px);
  }

  .bjh-hero__content > p:not(.bjh-kicker) {
    margin-top: 18px;
    font-size: 14px;
  }

  .bjh-actions {
    margin-top: 24px;
  }

  .bjh-button {
    min-height: 40px;
    padding: 9px 14px;
    font-size: 11px;
  }

  .bjh-tags {
    margin-top: 26px;
  }

  .bjh-cover {
    min-height: 365px;
  }

  .bjh-focus__inner {
    min-height: 64px;
    gap: 20px;
  }

  .bjh-focus p {
    font-size: 17px;
  }

  .bjh-focus a,
  .bjh-about__copy a,
  .bjh-pathway a,
  .bjh-announcements a {
    font-size: 11px;
  }

  .bjh-about,
  .bjh-areas,
  .bjh-announcements {
    padding: 58px 0;
  }

  .bjh-about__grid,
  .bjh-pathway__grid,
  .bjh-announcements__grid {
    gap: 55px;
  }

  .bjh-about h2,
  .bjh-areas h2,
  .bjh-pathway h2,
  .bjh-announcements h2 {
    font-size: clamp(29px, 3.1vw, 42px);
  }

  .bjh-about__copy {
    padding-left: 24px;
  }

  .bjh-about__copy p,
  .bjh-section-title > p:last-child,
  .bjh-pathway > .bjh-wrap > div > p:not(.bjh-kicker) {
    font-size: 14px;
  }

  .bjh-current {
    padding-bottom: 58px;
  }

  .bjh-current__top {
    padding: 25px 32px 21px;
  }

  .bjh-current__top h2 {
    font-size: clamp(26px, 2.6vw, 36px);
  }

  .bjh-current__cover {
    min-height: 315px;
    padding: 20px;
  }

  .bjh-current__cover img {
    max-height: 270px;
  }

  .bjh-current__content {
    padding: 32px;
  }

  .bjh-current__content h3 {
    font-size: clamp(22px, 2.5vw, 32px);
  }

  .bjh-current__content > p:not(.bjh-kicker) {
    font-size: 13px;
  }

  .bjh-current__tags {
    margin: 16px 0;
  }

  .bjh-current__note {
    padding: 24px 20px;
  }

  .bjh-current__note > span {
    font-size: 58px;
  }

  .bjh-current__note p {
    font-size: 16px;
  }

  .bjh-areas__grid {
    margin-top: 30px;
  }

  .bjh-areas article {
    min-height: 215px;
    padding: 21px 19px;
  }

  .bjh-areas article > span {
    width: 42px;
    height: 42px;
    font-size: 24px;
  }

  .bjh-areas h3 {
    margin-top: 17px;
    font-size: 20px;
  }

  .bjh-areas article p {
    font-size: 12px;
  }

  .bjh-pathway__grid {
    padding: 60px 0;
  }

  .bjh-pathway__steps article {
    gap: 17px;
    padding: 16px 0;
  }

  .bjh-pathway__steps h3 {
    font-size: 22px;
  }

  .bjh-pathway__steps p {
    font-size: 13px;
  }

  .bjh-announcements__grid {
    gap: 48px;
  }

  .bjh-announcements > .bjh-wrap > div > a {
    margin-top: 16px;
  }

  .bjh-announcements__items article {
    grid-template-columns: 120px minmax(0, 1fr) 108px;
    gap: 16px;
    padding: 18px;
  }

  .bjh-announcements h3 {
    font-size: 19px;
  }

  .bjh-cta {
    padding-bottom: 58px;
  }

  .bjh-cta__inner {
    gap: 28px;
    padding: 34px 40px;
  }

  .bjh-cta h2 {
    font-size: clamp(26px, 2.8vw, 37px);
  }

  .bjh-cta p:not(.bjh-kicker) {
    font-size: 13px;
  }

  .bjh-footer__grid {
    gap: 32px;
    padding: 45px 0 32px;
  }

  .bjh-footer p,
  .bjh-footer__grid a {
    font-size: 11px;
  }

  .bjh-footer__bottom {
    min-height: 50px;
  }
}

/* ================================================================
   BJAMES OJS ACCOUNT MENU + INTERNAL PAGE HEADER / FOOTER
   Keeps the original OJS login and profile dropdown functional.
   ================================================================ */
:root {
  --bjo-forest: #083d31;
  --bjo-forest-deep: #042a22;
  --bjo-navy: #1e3a8a;
  --bjo-navy-deep: #132964;
  --bjo-gold: #f4b400;
  --bjo-page: #f5f5f5;
  --bjo-ink: #162131;
  --bjo-muted: #607080;
  --bjo-line: #dbe1e8;
}

/* Homepage: replace the fixed Login link with OJS's live account menu. */
body:has(.bjames-home) .pkp_structure_head {
  display: block !important;
  position: absolute !important;
  z-index: 100 !important;
  top: 0 !important;
  right: 0 !important;
  width: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body:has(.bjames-home) .pkp_structure_head .pkp_head_wrapper {
  display: block !important;
  width: auto !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 0 24px 0 0 !important;
  background: transparent !important;
}

body:has(.bjames-home) .pkp_structure_head .pkp_site_name_wrapper,
body:has(.bjames-home) .pkp_structure_head .pkp_navigation_primary_wrapper,
body:has(.bjames-home) .pkp_structure_head .pkp_navigation_primary_row {
  display: none !important;
}

body:has(.bjames-home) .pkp_structure_head .pkp_navigation_user_wrapper {
  display: block !important;
  width: auto !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

body:has(.bjames-home) .pkp_structure_head .pkp_navigation_user,
body:has(.bjames-home) #navigationUser {
  display: flex !important;
  align-items: center;
  min-height: 28px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

body:has(.bjames-home) .pkp_structure_head .pkp_navigation_user > li,
body:has(.bjames-home) #navigationUser > li {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 28px;
  margin: 0 !important;
}

body:has(.bjames-home) .pkp_structure_head .pkp_navigation_user > li > a,
body:has(.bjames-home) #navigationUser > li > a {
  display: inline-flex !important;
  align-items: center;
  min-height: 28px;
  padding: 0 8px !important;
  color: #fff !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

body:has(.bjames-home) .pkp_structure_head .pkp_navigation_user > li > a:hover,
body:has(.bjames-home) #navigationUser > li > a:hover {
  color: var(--bjo-gold) !important;
}

/* The fixed HTML Login link remains only as a fallback for older OJS themes. */
body:has(.bjames-home):has(#navigationUser) .bjh-utility__inner > div {
  display: none !important;
}

body:has(.bjames-home) .pkp_navigation_user .profile ul,
body:has(.bjames-home) #navigationUser .profile ul {
  right: 0 !important;
  left: auto !important;
  min-width: 196px !important;
  margin: 0 !important;
  padding: 7px 0 !important;
  overflow: hidden;
  background: #fff !important;
  border: 1px solid rgba(8, 61, 49, 0.12) !important;
  border-radius: 0 0 5px 5px !important;
  box-shadow: 0 9px 22px rgba(7, 30, 24, 0.2) !important;
}

body:has(.bjames-home) .pkp_navigation_user .profile ul a,
body:has(.bjames-home) #navigationUser .profile ul a {
  display: block !important;
  padding: 10px 14px !important;
  color: #2d627a !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

body:has(.bjames-home) .pkp_navigation_user .profile ul a:hover,
body:has(.bjames-home) #navigationUser .profile ul a:hover {
  color: var(--bjo-forest) !important;
  background: #edf5f1 !important;
}

body:has(.bjames-home) .pkp_navigation_user .notification_count,
body:has(.bjames-home) #navigationUser .notification_count {
  display: inline-grid !important;
  width: 22px;
  height: 22px;
  margin-left: 2px;
  place-items: center;
  color: var(--bjo-navy) !important;
  background: #fff !important;
  border-radius: 50%;
  font-size: 10px !important;
  font-weight: 800 !important;
}

/* Internal OJS pages: header follows the BJAMES green, blue and gold system. */
body:not(:has(.bjames-home)) {
  color: var(--bjo-ink);
  background: var(--bjo-page) !important;
  font-family: Arial, Helvetica, sans-serif;
}

body:not(:has(.bjames-home)) .pkp_structure_head {
  position: relative;
  z-index: 30;
  color: #fff;
  background: linear-gradient(105deg, var(--bjo-forest-deep) 0%, var(--bjo-forest) 41%, var(--bjo-navy) 100%) !important;
  border-bottom: 3px solid var(--bjo-gold) !important;
  box-shadow: 0 5px 15px rgba(8, 40, 34, 0.16);
}

body:not(:has(.bjames-home)) .pkp_structure_head .pkp_head_wrapper {
  display: flex !important;
  width: min(calc(100% - 48px), 1280px) !important;
  min-height: 94px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
}

body:not(:has(.bjames-home)) .pkp_structure_head .pkp_site_name_wrapper {
  position: relative;
  display: flex !important;
  min-width: 0;
  flex: 1 1 520px;
  align-items: center;
  gap: 12px;
  margin: 0 !important;
  padding: 16px 0 12px !important;
}

body:not(:has(.bjames-home)) .pkp_structure_head .pkp_site_name_wrapper::before {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  content: "";
  background: #fff url('/public/journals/1/brics-logo.png') center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.17);
}

body:not(:has(.bjames-home)) .pkp_structure_head .pkp_site_name,
body:not(:has(.bjames-home)) .pkp_structure_head .pkp_site_name a {
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  background: transparent !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(18px, 2.1vw, 28px) !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  text-decoration: none !important;
}

body:not(:has(.bjames-home)) .pkp_structure_head .pkp_navigation_user_wrapper {
  order: 2;
  margin-left: auto !important;
  padding: 0 !important;
  background: transparent !important;
}

body:not(:has(.bjames-home)) .pkp_structure_head .pkp_navigation_user,
body:not(:has(.bjames-home)) #navigationUser {
  display: flex !important;
  align-items: center;
  min-height: 46px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

body:not(:has(.bjames-home)) .pkp_structure_head .pkp_navigation_user > li,
body:not(:has(.bjames-home)) #navigationUser > li {
  position: relative;
  margin: 0 !important;
}

body:not(:has(.bjames-home)) .pkp_structure_head .pkp_navigation_user > li > a,
body:not(:has(.bjames-home)) #navigationUser > li > a {
  display: inline-flex !important;
  align-items: center;
  min-height: 42px;
  padding: 0 8px !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

body:not(:has(.bjames-home)) .pkp_structure_head .pkp_navigation_user > li > a:hover,
body:not(:has(.bjames-home)) #navigationUser > li > a:hover {
  color: var(--bjo-gold) !important;
}

body:not(:has(.bjames-home)) .pkp_navigation_user .profile ul,
body:not(:has(.bjames-home)) #navigationUser .profile ul {
  right: 0 !important;
  left: auto !important;
  min-width: 196px !important;
  padding: 7px 0 !important;
  overflow: hidden;
  background: #fff !important;
  border: 1px solid rgba(8, 61, 49, 0.12) !important;
  border-radius: 0 0 5px 5px !important;
  box-shadow: 0 9px 22px rgba(7, 30, 24, 0.2) !important;
}

body:not(:has(.bjames-home)) .pkp_navigation_user .profile ul a,
body:not(:has(.bjames-home)) #navigationUser .profile ul a {
  display: block !important;
  padding: 10px 14px !important;
  color: #2d627a !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

body:not(:has(.bjames-home)) .pkp_navigation_user .profile ul a:hover,
body:not(:has(.bjames-home)) #navigationUser .profile ul a:hover {
  color: var(--bjo-forest) !important;
  background: #edf5f1 !important;
}

body:not(:has(.bjames-home)) .pkp_navigation_user .notification_count,
body:not(:has(.bjames-home)) #navigationUser .notification_count {
  display: inline-grid !important;
  width: 23px;
  height: 23px;
  margin-left: 3px;
  place-items: center;
  color: var(--bjo-navy) !important;
  background: #fff !important;
  border-radius: 50%;
  font-size: 10px !important;
  font-weight: 800 !important;
}

body:not(:has(.bjames-home)) .pkp_structure_head .pkp_navigation_primary_wrapper,
body:not(:has(.bjames-home)) .pkp_structure_head .pkp_navigation_primary_row {
  order: 3;
  width: 100%;
  flex: 0 0 100%;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

body:not(:has(.bjames-home)) .pkp_structure_head .pkp_navigation_primary,
body:not(:has(.bjames-home)) #navigationPrimary {
  display: flex !important;
  align-items: stretch;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: auto;
  list-style: none;
}

body:not(:has(.bjames-home)) .pkp_structure_head .pkp_navigation_primary > li,
body:not(:has(.bjames-home)) #navigationPrimary > li {
  flex: 0 0 auto;
  margin: 0 !important;
}

body:not(:has(.bjames-home)) .pkp_structure_head .pkp_navigation_primary > li > a,
body:not(:has(.bjames-home)) #navigationPrimary > li > a {
  position: relative;
  display: inline-flex !important;
  min-height: 40px;
  align-items: center;
  padding: 0 13px !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

body:not(:has(.bjames-home)) .pkp_structure_head .pkp_navigation_primary > li > a::after,
body:not(:has(.bjames-home)) #navigationPrimary > li > a::after {
  position: absolute;
  right: 13px;
  bottom: 0;
  left: 13px;
  height: 3px;
  content: "";
  background: var(--bjo-gold);
  transform: scaleX(0);
  transition: transform 0.18s ease;
}

body:not(:has(.bjames-home)) .pkp_structure_head .pkp_navigation_primary > li > a:hover::after,
body:not(:has(.bjames-home)) .pkp_structure_head .pkp_navigation_primary > li > a:focus::after,
body:not(:has(.bjames-home)) #navigationPrimary > li > a:hover::after,
body:not(:has(.bjames-home)) #navigationPrimary > li > a:focus::after {
  transform: scaleX(1);
}

/* Internal page body cards keep OJS content readable and compact. */
body:not(:has(.bjames-home)) .pkp_structure_content {
  background: var(--bjo-page) !important;
}

body:not(:has(.bjames-home)) .pkp_structure_main {
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 38px 24px 54px !important;
  background: transparent !important;
}

body:not(:has(.bjames-home)) .cmp_breadcrumbs {
  width: min(calc(100% - 48px), 1280px) !important;
  margin: 0 auto !important;
  padding: 16px 0 !important;
  color: var(--bjo-muted) !important;
  border-bottom: 1px solid var(--bjo-line);
  font-size: 11px !important;
}

body:not(:has(.bjames-home)) .cmp_breadcrumbs a {
  color: var(--bjo-navy) !important;
  font-weight: 700;
}

body:not(:has(.bjames-home)) .pkp_structure_main h1,
body:not(:has(.bjames-home)) .pkp_structure_main h2,
body:not(:has(.bjames-home)) .pkp_structure_main h3 {
  color: var(--bjo-forest-deep);
  font-family: Georgia, "Times New Roman", serif;
}

body:not(:has(.bjames-home)) .pkp_structure_main a {
  color: var(--bjo-navy);
}

/* The standard OJS footer on all internal pages matches the homepage footer. */
body:not(:has(.bjames-home)) .pkp_structure_footer {
  color: #d7e7e1 !important;
  background: var(--bjo-forest-deep) !important;
  border-top: 3px solid var(--bjo-gold) !important;
}

body:not(:has(.bjames-home)) .pkp_structure_footer .pkp_footer_content {
  width: min(calc(100% - 48px), 1280px) !important;
  min-height: 168px;
  margin: 0 auto !important;
  padding: 38px 0 29px !important;
  color: #c8dcd5 !important;
  font-size: 12px !important;
}

body:not(:has(.bjames-home)) .pkp_structure_footer .pkp_footer_content::before {
  display: block;
  margin-bottom: 12px;
  content: "BRICS Journal of Applied Mathematics and Engineering Sciences";
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

body:not(:has(.bjames-home)) .pkp_structure_footer a {
  color: var(--bjo-gold) !important;
  font-weight: 700;
}

body:not(:has(.bjames-home)) .pkp_brand_footer,
body:not(:has(.bjames-home)) .cmp_brand_footer,
body:not(:has(.bjames-home)) .pkp_structure_footer img[alt*="Open Journal Systems" i],
body:not(:has(.bjames-home)) .pkp_structure_footer img[alt*="PKP" i] {
  display: none !important;
}

@media (max-width: 780px) {
  body:has(.bjames-home) .pkp_structure_head .pkp_head_wrapper {
    padding-right: 14px !important;
  }

  body:not(:has(.bjames-home)) .pkp_structure_head .pkp_head_wrapper,
  body:not(:has(.bjames-home)) .cmp_breadcrumbs,
  body:not(:has(.bjames-home)) .pkp_structure_footer .pkp_footer_content {
    width: min(calc(100% - 32px), 1280px) !important;
  }

  body:not(:has(.bjames-home)) .pkp_structure_head .pkp_head_wrapper {
    min-height: 76px;
  }

  body:not(:has(.bjames-home)) .pkp_structure_head .pkp_site_name_wrapper::before {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  body:not(:has(.bjames-home)) .pkp_structure_head .pkp_site_name,
  body:not(:has(.bjames-home)) .pkp_structure_head .pkp_site_name a {
    font-size: 17px !important;
  }

  body:not(:has(.bjames-home)) .pkp_structure_head .pkp_navigation_primary > li > a,
  body:not(:has(.bjames-home)) #navigationPrimary > li > a {
    min-height: 38px;
    padding: 0 10px !important;
    font-size: 10px !important;
  }

  body:not(:has(.bjames-home)) .pkp_structure_main {
    padding: 28px 16px 40px !important;
  }
}

/* Latest adjustment: internal pages stay clean; only the homepage shows OJS account controls. */
body:not(:has(.bjames-home)) .pkp_structure_head {
  display: none !important;
}

/* Keep the dynamic username/account control fully inside the green homepage bar. */
body:has(.bjames-home) .pkp_structure_head {
  top: 3px !important;
  right: 14px !important;
  height: 28px !important;
  overflow: visible !important;
}

body:has(.bjames-home) .pkp_structure_head .pkp_head_wrapper {
  display: flex !important;
  height: 28px !important;
  min-height: 28px !important;
  align-items: center !important;
  justify-content: flex-end !important;
  overflow: visible !important;
}

body:has(.bjames-home) .pkp_structure_head .pkp_navigation_user_wrapper,
body:has(.bjames-home) .pkp_structure_head .pkp_navigation_user,
body:has(.bjames-home) #navigationUser {
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  float: none !important;
  margin: 0 !important;
  transform: none !important;
}

body:has(.bjames-home) .pkp_structure_head .pkp_navigation_user_wrapper {
  display: flex !important;
  height: 28px !important;
  min-height: 28px !important;
  align-items: center !important;
}

body:has(.bjames-home) .pkp_structure_head .pkp_navigation_user > li,
body:has(.bjames-home) #navigationUser > li {
  min-height: 28px !important;
}

body:has(.bjames-home) .pkp_navigation_user .profile,
body:has(.bjames-home) #navigationUser .profile {
  position: relative !important;
}
@media (min-width: 681px) {
  .bjames-home .bjh-cover .bjh-cover__stamp {
    left: -190px !important;
    right: auto !important;
    bottom: 18px !important;
  }
}/* Paste this at the absolute end of OJS: Settings > Website > Appearance > Additional CSS */
.bjames-home .bjh-cover .bjh-cover__stamp {
  display: none !important;
}
/* =====================================================
   NORMAL EDITORIAL BOARD PAGE
   Simple OJS Internal Page Design
   ===================================================== */

.editorial-board-section,
.editorial-board-section * {
    box-sizing: border-box;
}

/* Normal page section */
.editorial-board-section {
    width: 100%;
    margin: 0;
    padding: 15px 0 30px;
    background: transparent;
    font-family: Arial, Helvetica, sans-serif;
}

/* Normal OJS content width */
.editorial-board-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Hide custom heading because OJS already shows Editorial Board */
.editorial-board-header {
    display: none !important;
}

/* Members grid */
.editorial-board-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
}

/* Simple member card */
.editorial-member-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
    min-height: 180px;
    margin: 0;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    box-shadow: none;
    overflow: hidden;
}

/* Remove decorative elements */
.editorial-member-card::before,
.editorial-member-card::after {
    display: none !important;
}

/* Initial circle */
.member-initial {
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0;
    color: #ffffff;
    background: #174d78;
    border: none;
    border-radius: 50%;
    box-shadow: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
}

/* Member content */
.member-information {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
}

/* Member name */
.member-information h3 {
    margin: 0 0 8px;
    padding: 0;
    color: #222222;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;
}

/* Designation */
.member-designation {
    margin: 0 0 7px;
    color: #333333;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
}

/* Affiliation */
.member-affiliation {
    margin: 0 0 13px;
    color: #555555;
    font-size: 13px;
    line-height: 1.6;
    font-weight: 400;
}

/* Contact buttons */
.member-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    width: 100%;
}

.member-contact a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 31px;
    margin: 0;
    padding: 7px 11px;
    color: #ffffff !important;
    background: #174d78;
    border: 1px solid #174d78;
    border-radius: 4px;
    box-shadow: none;
    text-decoration: none !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
}

/* Profile button */
.member-contact a.profile-link {
    color: #174d78 !important;
    background: #ffffff;
}

.member-contact a:hover,
.member-contact a:focus {
    color: #ffffff !important;
    background: #103956;
    border-color: #103956;
    text-decoration: none !important;
}

.member-contact a.profile-link:hover,
.member-contact a.profile-link:focus {
    color: #ffffff !important;
    background: #174d78;
}

/* Remove old hover movement */
.editorial-member-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Tablet */
@media screen and (max-width: 900px) {
    .editorial-board-grid {
        grid-template-columns: 1fr;
    }

    .editorial-member-card {
        min-height: auto;
    }
}

/* Mobile */
@media screen and (max-width: 600px) {
    .editorial-board-section {
        padding-top: 10px;
    }

    .editorial-board-grid {
        gap: 12px;
    }

    .editorial-member-card {
        gap: 12px;
        padding: 16px;
    }

    .member-initial {
        flex-basis: 43px;
        width: 43px;
        height: 43px;
        font-size: 12px;
    }

    .member-information h3 {
        font-size: 15px;
    }

    .member-designation,
    .member-affiliation {
        font-size: 12.5px;
    }

    .member-contact a {
        padding: 7px 10px;
        font-size: 11.5px;
    }
}

/* =====================================================================
   FINAL NATIVE OJS NAVIGATION OVERRIDE
   - Hides the old hard-coded .bjh-nav block.
   - Uses OJS #navigationPrimary and keeps OJS dropdown behaviour.
   - Matches the existing BJAMES blue navigation bar.
   - Keeps the homepage full-width.
   ===================================================================== */

/* Safety: no duplicate menu even if an older homepage HTML is still cached. */
.bjames-home .bjh-nav {
  display: none !important;
}

/* Exact homepage header rhythm used by the current BJAMES design. */
body:has(.bjames-home) {
  --bjo-home-utility-height: 34px;
  --bjo-home-masthead-height: 115px;
  --bjo-home-nav-height: 64px;
}

body:has(.bjames-home) .bjh-utility__inner {
  height: var(--bjo-home-utility-height) !important;
  min-height: var(--bjo-home-utility-height) !important;
}

body:has(.bjames-home) .bjh-masthead {
  height: var(--bjo-home-masthead-height) !important;
  min-height: var(--bjo-home-masthead-height) !important;
}

/* Reserve normal document space for the absolutely positioned OJS menu. */
body:has(.bjames-home) .bjh-header {
  padding-bottom: var(--bjo-home-nav-height) !important;
}

/* Re-enable the native OJS header. Its children are placed independently. */
body:has(.bjames-home) .pkp_structure_head {
  display: block !important;
  position: absolute !important;
  z-index: 10000 !important;
  inset: 0 0 auto 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  color: #fff !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body:has(.bjames-home) .pkp_structure_head .pkp_head_wrapper {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

/* Hide the duplicate OJS journal title on the homepage only. */
body:has(.bjames-home) .pkp_structure_head .pkp_site_name_wrapper,
body:has(.bjames-home) .pkp_structure_head .pkp_site_name {
  display: none !important;
}

body:has(.bjames-home) .pkp_structure_head .pkp_site_nav_menu {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

/* Live OJS Login / username / notification control. */
body:has(.bjames-home) .pkp_structure_head .pkp_navigation_user_wrapper {
  position: absolute !important;
  z-index: 10004 !important;
  top: 3px !important;
  right: max(24px, calc((100vw - 1824px) / 2 + 24px)) !important;
  left: auto !important;
  display: flex !important;
  width: auto !important;
  height: 28px !important;
  min-height: 28px !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  transform: none !important;
}

body:has(.bjames-home) .pkp_structure_head .pkp_navigation_user,
body:has(.bjames-home) #navigationUser {
  display: flex !important;
  min-height: 28px !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  list-style: none !important;
}

body:has(.bjames-home) .pkp_navigation_user .profile ul,
body:has(.bjames-home) #navigationUser .profile ul {
  z-index: 10020 !important;
}

/* The native OJS primary navigation occupies the old custom-nav position. */
body:has(.bjames-home) .pkp_structure_head .pkp_navigation_primary_row {
  position: absolute !important;
  z-index: 10001 !important;
  top: calc(var(--bjo-home-utility-height) + var(--bjo-home-masthead-height)) !important;
  right: 0 !important;
  left: 0 !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: var(--bjo-home-nav-height) !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: #24428f !important;
  border: 0 !important;
  box-shadow: none !important;
}

body:has(.bjames-home) .pkp_structure_head .pkp_navigation_primary_wrapper {
  position: relative !important;
  display: flex !important;
  width: min(calc(100% - 72px), 1824px) !important;
  max-width: none !important;
  height: var(--bjo-home-nav-height) !important;
  align-items: stretch !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
}

body:has(.bjames-home) .pkp_structure_head .pkp_navigation_primary,
body:has(.bjames-home) #navigationPrimary {
  position: relative !important;
  display: flex !important;
  width: 100% !important;
  height: var(--bjo-home-nav-height) !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  list-style: none !important;
  background: transparent !important;
}

body:has(.bjames-home) .pkp_structure_head .pkp_navigation_primary > li,
body:has(.bjames-home) #navigationPrimary > li {
  position: relative !important;
  display: flex !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  align-items: stretch !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

body:has(.bjames-home) .pkp_structure_head .pkp_navigation_primary > li > a,
body:has(.bjames-home) #navigationPrimary > li > a {
  position: relative !important;
  display: flex !important;
  width: 100% !important;
  min-height: var(--bjo-home-nav-height) !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 15px !important;
  color: #fff !important;
  background: transparent !important;
  border: 0 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

body:has(.bjames-home) .pkp_structure_head .pkp_navigation_primary > li > a::after,
body:has(.bjames-home) #navigationPrimary > li > a::after {
  position: absolute !important;
  right: 18px !important;
  bottom: 0 !important;
  left: 18px !important;
  display: block !important;
  height: 4px !important;
  content: "" !important;
  background: #f4c400 !important;
  transform: scaleX(0) !important;
  transform-origin: center !important;
  transition: transform 0.18s ease !important;
}

body:has(.bjames-home) #navigationPrimary > li:hover > a::after,
body:has(.bjames-home) #navigationPrimary > li:focus-within > a::after,
body:has(.bjames-home) #navigationPrimary > li.current > a::after,
body:has(.bjames-home) #navigationPrimary > li.active > a::after,
body:has(.bjames-home) #navigationPrimary > li > a[aria-current="page"]::after {
  transform: scaleX(1) !important;
}

body:has(.bjames-home) #navigationPrimary > li:hover > a,
body:has(.bjames-home) #navigationPrimary > li:focus-within > a {
  background: rgba(255, 255, 255, 0.045) !important;
}

/* Desktop dropdowns: visible, unclipped, keyboard accessible and above the hero. */
@media (min-width: 761px) {
  body:has(.bjames-home) #navigationPrimary li > ul,
  body:has(.bjames-home) #navigationPrimary li > .dropdown-menu {
    position: absolute !important;
    z-index: 10030 !important;
    top: 100% !important;
    left: 0 !important;
    display: block !important;
    width: max-content !important;
    min-width: 235px !important;
    max-width: 320px !important;
    margin: 0 !important;
    padding: 7px 0 !important;
    overflow: visible !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    background: #fff !important;
    border: 1px solid #dfe5ef !important;
    border-top: 4px solid #f4c400 !important;
    border-radius: 0 0 5px 5px !important;
    box-shadow: 0 16px 35px rgba(18, 35, 79, 0.22) !important;
    transform: translateY(8px) !important;
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease !important;
    list-style: none !important;
  }

  body:has(.bjames-home) #navigationPrimary li:hover > ul,
  body:has(.bjames-home) #navigationPrimary li:focus-within > ul,
  body:has(.bjames-home) #navigationPrimary li.open > ul,
  body:has(.bjames-home) #navigationPrimary li.is_open > ul,
  body:has(.bjames-home) #navigationPrimary li.is-open > ul,
  body:has(.bjames-home) #navigationPrimary li:hover > .dropdown-menu,
  body:has(.bjames-home) #navigationPrimary li:focus-within > .dropdown-menu,
  body:has(.bjames-home) #navigationPrimary li.open > .dropdown-menu,
  body:has(.bjames-home) #navigationPrimary li.is_open > .dropdown-menu,
  body:has(.bjames-home) #navigationPrimary li.is-open > .dropdown-menu {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  body:has(.bjames-home) #navigationPrimary > li:nth-last-child(-n + 2) > ul,
  body:has(.bjames-home) #navigationPrimary > li:nth-last-child(-n + 2) > .dropdown-menu {
    right: 0 !important;
    left: auto !important;
  }

  body:has(.bjames-home) #navigationPrimary li ul li {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body:has(.bjames-home) #navigationPrimary li ul li > a {
    display: flex !important;
    width: 100% !important;
    min-height: 42px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 10px 16px !important;
    color: #25365c !important;
    background: #fff !important;
    border: 0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-align: left !important;
    text-decoration: none !important;
    white-space: normal !important;
  }

  body:has(.bjames-home) #navigationPrimary li ul li > a:hover,
  body:has(.bjames-home) #navigationPrimary li ul li > a:focus {
    color: #083d31 !important;
    background: #eef4ff !important;
  }

  body:has(.bjames-home) #navigationPrimary li ul li > ul,
  body:has(.bjames-home) #navigationPrimary li ul li > .dropdown-menu {
    top: -11px !important;
    left: 100% !important;
  }
}

/* Native OJS navigation on internal pages: visible and the same blue bar. */
body:not(:has(.bjames-home)) .pkp_structure_head {
  display: block !important;
  overflow: visible !important;
}

body:not(:has(.bjames-home)) .pkp_structure_head .pkp_head_wrapper,
body:not(:has(.bjames-home)) .pkp_structure_head .pkp_site_nav_menu,
body:not(:has(.bjames-home)) .pkp_structure_head .pkp_navigation_primary_row,
body:not(:has(.bjames-home)) .pkp_structure_head .pkp_navigation_primary_wrapper,
body:not(:has(.bjames-home)) .pkp_structure_head #navigationPrimary {
  overflow: visible !important;
}

body:not(:has(.bjames-home)) .pkp_structure_head .pkp_navigation_primary_row {
  width: 100vw !important;
  max-width: none !important;
  margin-right: calc(50% - 50vw) !important;
  margin-left: calc(50% - 50vw) !important;
  background: #24428f !important;
  border-top: 0 !important;
}

body:not(:has(.bjames-home)) .pkp_structure_head .pkp_navigation_primary_wrapper {
  width: min(calc(100% - 72px), 1824px) !important;
  max-width: none !important;
  min-height: 58px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

body:not(:has(.bjames-home)) .pkp_structure_head #navigationPrimary {
  min-height: 58px !important;
  justify-content: space-between !important;
}

body:not(:has(.bjames-home)) .pkp_structure_head #navigationPrimary > li {
  position: relative !important;
  flex: 1 1 auto !important;
}

body:not(:has(.bjames-home)) .pkp_structure_head #navigationPrimary > li > a {
  min-height: 58px !important;
  justify-content: center !important;
  padding: 0 15px !important;
  color: #fff !important;
  font-size: 14px !important;
  text-align: center !important;
}

/* Desktop dropdown styling is shared by homepage and internal OJS pages. */
@media (min-width: 761px) {
  body:not(:has(.bjames-home)) #navigationPrimary li > ul,
  body:not(:has(.bjames-home)) #navigationPrimary li > .dropdown-menu {
    position: absolute !important;
    z-index: 10030 !important;
    top: 100% !important;
    left: 0 !important;
    display: block !important;
    min-width: 235px !important;
    max-width: 320px !important;
    margin: 0 !important;
    padding: 7px 0 !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    background: #fff !important;
    border: 1px solid #dfe5ef !important;
    border-top: 4px solid #f4c400 !important;
    border-radius: 0 0 5px 5px !important;
    box-shadow: 0 16px 35px rgba(18, 35, 79, 0.22) !important;
    transform: translateY(8px) !important;
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease !important;
    list-style: none !important;
  }

  body:not(:has(.bjames-home)) #navigationPrimary li:hover > ul,
  body:not(:has(.bjames-home)) #navigationPrimary li:focus-within > ul,
  body:not(:has(.bjames-home)) #navigationPrimary li.open > ul,
  body:not(:has(.bjames-home)) #navigationPrimary li.is_open > ul,
  body:not(:has(.bjames-home)) #navigationPrimary li.is-open > ul,
  body:not(:has(.bjames-home)) #navigationPrimary li:hover > .dropdown-menu,
  body:not(:has(.bjames-home)) #navigationPrimary li:focus-within > .dropdown-menu,
  body:not(:has(.bjames-home)) #navigationPrimary li.open > .dropdown-menu,
  body:not(:has(.bjames-home)) #navigationPrimary li.is_open > .dropdown-menu,
  body:not(:has(.bjames-home)) #navigationPrimary li.is-open > .dropdown-menu {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  body:not(:has(.bjames-home)) #navigationPrimary li ul li > a {
    display: flex !important;
    min-height: 42px !important;
    align-items: center !important;
    padding: 10px 16px !important;
    color: #25365c !important;
    background: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    white-space: normal !important;
  }

  body:not(:has(.bjames-home)) #navigationPrimary li ul li > a:hover,
  body:not(:has(.bjames-home)) #navigationPrimary li ul li > a:focus {
    color: #083d31 !important;
    background: #eef4ff !important;
  }
}

/* OJS mobile menu: retain its own open/close JavaScript and make it readable. */
@media (max-width: 760px) {
  body:has(.bjames-home) {
    --bjo-home-utility-height: 31px;
    --bjo-home-masthead-height: 78px;
    --bjo-home-nav-height: 52px;
  }

  body:has(.bjames-home) .pkp_structure_head .pkp_site_name_wrapper {
    position: absolute !important;
    z-index: 10005 !important;
    top: calc(var(--bjo-home-utility-height) + var(--bjo-home-masthead-height)) !important;
    left: 12px !important;
    display: flex !important;
    width: 48px !important;
    height: var(--bjo-home-nav-height) !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  body:has(.bjames-home) .pkp_structure_head .pkp_site_name {
    display: none !important;
  }

  body:has(.bjames-home) .pkp_structure_head .pkp_site_nav_toggle {
    position: static !important;
    display: inline-flex !important;
    width: 42px !important;
    height: 38px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.10) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 4px !important;
  }

  body:has(.bjames-home) .pkp_structure_head .pkp_navigation_primary_row {
    height: var(--bjo-home-nav-height) !important;
  }

  body:has(.bjames-home) .pkp_structure_head .pkp_navigation_primary_wrapper {
    position: absolute !important;
    top: var(--bjo-home-nav-height) !important;
    left: 0 !important;
    display: none !important;
    width: 100vw !important;
    height: auto !important;
    max-height: calc(100vh - 150px) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-y: auto !important;
    background: #24428f !important;
    box-shadow: 0 15px 30px rgba(10, 26, 63, 0.25) !important;
  }

  body:has(.bjames-home) .pkp_site_nav_menu--isOpen .pkp_navigation_primary_wrapper,
  body:has(.bjames-home) .pkp_site_nav_menu.is_open .pkp_navigation_primary_wrapper,
  body:has(.bjames-home) .pkp_site_nav_menu.is-open .pkp_navigation_primary_wrapper,
  body:has(.bjames-home) .pkp_site_nav_menu[aria-expanded="true"] .pkp_navigation_primary_wrapper {
    display: block !important;
  }

  body:has(.bjames-home) #navigationPrimary {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 8px 0 !important;
  }

  body:has(.bjames-home) #navigationPrimary > li {
    display: block !important;
    width: 100% !important;
  }

  body:has(.bjames-home) #navigationPrimary > li > a {
    min-height: 46px !important;
    justify-content: flex-start !important;
    padding: 0 20px !important;
    font-size: 13px !important;
    text-align: left !important;
  }

  /* Nested mobile items remain visible inside the opened OJS menu. */
  body:has(.bjames-home) #navigationPrimary li > ul,
  body:has(.bjames-home) #navigationPrimary li > .dropdown-menu {
    position: static !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 0 5px 16px !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background: #1b367a !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
  }

  body:has(.bjames-home) #navigationPrimary li ul a {
    display: flex !important;
    min-height: 40px !important;
    align-items: center !important;
    padding: 8px 18px !important;
    color: #fff !important;
    font-size: 12px !important;
    white-space: normal !important;
  }

  body:has(.bjames-home) .pkp_structure_head .pkp_navigation_user_wrapper {
    right: 12px !important;
  }

  body:not(:has(.bjames-home)) .pkp_structure_head .pkp_navigation_primary_row,
  body:not(:has(.bjames-home)) .pkp_structure_head .pkp_navigation_primary_wrapper {
    width: 100% !important;
    margin: 0 !important;
  }
}

/* =====================================================================
   BJAMES FINAL ALIGNMENT FIX
   1. Keeps OJS primary links and Search on one horizontal line.
   2. Places the live OJS username/account menu at the far right.
   3. Preserves native OJS dropdown behaviour.
   Paste this block at the absolute end of the journal CSS.
   ===================================================================== */

/* Give the homepage OJS overlay a real full-viewport positioning box. */
body:has(.bjames-home) .pkp_structure_head,
body:has(.bjames-home) .pkp_structure_head .pkp_head_wrapper,
body:has(.bjames-home) .pkp_structure_head .pkp_site_nav_menu {
  right: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  max-width: none !important;
  overflow: visible !important;
}

/* Username/account: pin it to the right side of the green utility bar. */
body:has(.bjames-home) .pkp_structure_head .pkp_navigation_user_wrapper {
  position: absolute !important;
  z-index: 10050 !important;
  top: 3px !important;
  right: 36px !important;
  bottom: auto !important;
  left: auto !important;
  display: flex !important;
  width: max-content !important;
  max-width: calc(100vw - 72px) !important;
  height: 28px !important;
  min-height: 28px !important;
  align-items: center !important;
  justify-content: flex-end !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  overflow: visible !important;
  background: transparent !important;
  transform: none !important;
}

body:has(.bjames-home) .pkp_structure_head .pkp_navigation_user,
body:has(.bjames-home) #navigationUser {
  position: static !important;
  display: flex !important;
  width: auto !important;
  height: 28px !important;
  min-height: 28px !important;
  align-items: center !important;
  justify-content: flex-end !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  overflow: visible !important;
  transform: none !important;
}

body:has(.bjames-home) #navigationUser > li,
body:has(.bjames-home) #navigationUser .profile {
  position: relative !important;
  display: flex !important;
  height: 28px !important;
  min-height: 28px !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

body:has(.bjames-home) #navigationUser > li > a {
  display: inline-flex !important;
  height: 28px !important;
  min-height: 28px !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 0 6px !important;
  line-height: 28px !important;
  white-space: nowrap !important;
}

body:has(.bjames-home) #navigationUser .profile > ul,
body:has(.bjames-home) .pkp_navigation_user .profile > ul {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  left: auto !important;
}

/* Remove the static fallback Login link when native OJS account controls exist. */
body:has(.bjames-home):has(#navigationUser) .bjh-utility__inner > div {
  display: none !important;
}

/* Keep utility text away from the live username on normal desktop widths. */
@media (min-width: 761px) {
  body:has(.bjames-home) .bjh-utility__inner {
    padding-right: 245px !important;
  }

  /* PRIMARY MENU + SEARCH: one flex row, no wrapping. */
  body:has(.bjames-home) .pkp_structure_head .pkp_navigation_primary_wrapper,
  body:not(:has(.bjames-home)) .pkp_structure_head .pkp_navigation_primary_wrapper {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    overflow: visible !important;
  }

  body:has(.bjames-home) .pkp_structure_head #navigationPrimary,
  body:not(:has(.bjames-home)) .pkp_structure_head #navigationPrimary {
    display: flex !important;
    width: auto !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    flex-flow: row nowrap !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  body:has(.bjames-home) #navigationPrimary > li,
  body:not(:has(.bjames-home)) #navigationPrimary > li {
    min-width: 0 !important;
    flex: 1 1 0 !important;
  }

  /* OJS Search wrapper is a sibling of #navigationPrimary. */
  body:has(.bjames-home) .pkp_navigation_search_wrapper,
  body:has(.bjames-home) .pkp_structure_head [class*="navigation_search_wrapper"],
  body:not(:has(.bjames-home)) .pkp_navigation_search_wrapper,
  body:not(:has(.bjames-home)) .pkp_structure_head [class*="navigation_search_wrapper"] {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: flex !important;
    width: 170px !important;
    min-width: 170px !important;
    max-width: 170px !important;
    flex: 0 0 170px !important;
    align-items: stretch !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    overflow: visible !important;
    background: transparent !important;
    transform: none !important;
  }

  body:has(.bjames-home) .pkp_navigation_search_wrapper,
  body:has(.bjames-home) .pkp_structure_head [class*="navigation_search_wrapper"] {
    height: var(--bjo-home-nav-height) !important;
    min-height: var(--bjo-home-nav-height) !important;
  }

  body:not(:has(.bjames-home)) .pkp_navigation_search_wrapper,
  body:not(:has(.bjames-home)) .pkp_structure_head [class*="navigation_search_wrapper"] {
    height: 58px !important;
    min-height: 58px !important;
  }

  body:has(.bjames-home) .pkp_navigation_search_wrapper > a,
  body:has(.bjames-home) .pkp_navigation_search_wrapper .pkp_search,
  body:has(.bjames-home) .pkp_structure_head [class*="navigation_search_wrapper"] > a,
  body:not(:has(.bjames-home)) .pkp_navigation_search_wrapper > a,
  body:not(:has(.bjames-home)) .pkp_navigation_search_wrapper .pkp_search,
  body:not(:has(.bjames-home)) .pkp_structure_head [class*="navigation_search_wrapper"] > a {
    position: static !important;
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    color: #fff !important;
    background: transparent !important;
    border: 0 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    transform: none !important;
  }

  body:has(.bjames-home) .pkp_navigation_search_wrapper > a:hover,
  body:has(.bjames-home) .pkp_navigation_search_wrapper > a:focus,
  body:not(:has(.bjames-home)) .pkp_navigation_search_wrapper > a:hover,
  body:not(:has(.bjames-home)) .pkp_navigation_search_wrapper > a:focus {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.06) !important;
  }
}

/* On narrower desktops, reduce widths instead of allowing a second line. */
@media (min-width: 761px) and (max-width: 1180px) {
  body:has(.bjames-home) .pkp_navigation_search_wrapper,
  body:has(.bjames-home) .pkp_structure_head [class*="navigation_search_wrapper"],
  body:not(:has(.bjames-home)) .pkp_navigation_search_wrapper,
  body:not(:has(.bjames-home)) .pkp_structure_head [class*="navigation_search_wrapper"] {
    width: 135px !important;
    min-width: 135px !important;
    max-width: 135px !important;
    flex-basis: 135px !important;
  }

  body:has(.bjames-home) #navigationPrimary > li > a,
  body:not(:has(.bjames-home)) #navigationPrimary > li > a {
    padding-right: 9px !important;
    padding-left: 9px !important;
    font-size: 13px !important;
  }
}

/* Mobile: account stays right; Search becomes a normal item inside the opened menu. */
@media (max-width: 760px) {
  body:has(.bjames-home) .pkp_structure_head .pkp_navigation_user_wrapper {
    top: 2px !important;
    right: 12px !important;
    max-width: calc(100vw - 24px) !important;
  }

  body:has(.bjames-home) .bjh-utility__inner {
    padding-right: 155px !important;
  }

  body:has(.bjames-home) .bjh-utility__inner > p {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body:has(.bjames-home) .pkp_navigation_search_wrapper,
  body:not(:has(.bjames-home)) .pkp_navigation_search_wrapper {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body:has(.bjames-home) .pkp_navigation_search_wrapper > a,
  body:not(:has(.bjames-home)) .pkp_navigation_search_wrapper > a {
    display: flex !important;
    width: 100% !important;
    min-height: 46px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 20px !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
  }
}

/* =====================================================================
   BJAMES INTERNAL HEADER — LOGO + ACCOUNT POSITION FIX (V3)
   Fixes the blank logo circle and pins the native OJS username to the
   far-right without affecting its dropdown.
   ===================================================================== */

/* The header wrapper is the positioning reference for the account menu. */
body:not(:has(.bjames-home)) .pkp_structure_head .pkp_head_wrapper {
  position: relative !important;
  overflow: visible !important;
}

/* Use the actual uploaded BJAMES logo on internal OJS pages. */
body:not(:has(.bjames-home)) .pkp_structure_head .pkp_site_name_wrapper::before {
  display: block !important;
  width: 62px !important;
  height: 62px !important;
  min-width: 62px !important;
  flex: 0 0 62px !important;
  content: "" !important;
  background-color: #fff !important;
  background-image: url("https://bricsjournals.com/public/site/images/vinaykumar23/brics-logo-b98ddfca8a77ffa23b3dd7c35c2e34c9.png") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  border: 1px solid rgba(255, 255, 255, 0.42) !important;
  border-radius: 50% !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18) !important;
}

/* Desktop: reserve space for the account controls and pin them right. */
@media (min-width: 761px) {
  body:not(:has(.bjames-home)) .pkp_structure_head .pkp_head_wrapper {
    min-height: 122px !important;
    padding-right: 300px !important;
  }

  body:not(:has(.bjames-home)) .pkp_structure_head .pkp_site_name_wrapper {
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 122px !important;
    flex: 1 1 auto !important;
    padding: 18px 0 !important;
  }

  body:not(:has(.bjames-home)) .pkp_structure_head .pkp_navigation_user_wrapper {
    position: absolute !important;
    z-index: 10060 !important;
    top: 18px !important;
    right: 0 !important;
    bottom: auto !important;
    left: auto !important;
    display: flex !important;
    width: max-content !important;
    max-width: 280px !important;
    height: 36px !important;
    min-height: 36px !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    overflow: visible !important;
    background: transparent !important;
    transform: none !important;
  }

  body:not(:has(.bjames-home)) .pkp_structure_head .pkp_navigation_user,
  body:not(:has(.bjames-home)) .pkp_structure_head #navigationUser {
    position: static !important;
    display: flex !important;
    width: auto !important;
    height: 36px !important;
    min-height: 36px !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    overflow: visible !important;
    transform: none !important;
  }

  body:not(:has(.bjames-home)) .pkp_structure_head #navigationUser > li,
  body:not(:has(.bjames-home)) .pkp_structure_head #navigationUser .profile {
    position: relative !important;
    display: flex !important;
    height: 36px !important;
    min-height: 36px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body:not(:has(.bjames-home)) .pkp_structure_head #navigationUser > li > a {
    display: inline-flex !important;
    height: 36px !important;
    min-height: 36px !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 0 8px !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 36px !important;
    white-space: nowrap !important;
  }

  body:not(:has(.bjames-home)) .pkp_structure_head #navigationUser .profile > ul,
  body:not(:has(.bjames-home)) .pkp_structure_head .pkp_navigation_user .profile > ul {
    position: absolute !important;
    z-index: 10070 !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
  }
}

/* Tablet/mobile: smaller logo and account menu stays on the right. */
@media (max-width: 760px) {
  body:not(:has(.bjames-home)) .pkp_structure_head .pkp_head_wrapper {
    padding-right: 145px !important;
  }

  body:not(:has(.bjames-home)) .pkp_structure_head .pkp_site_name_wrapper::before {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    flex-basis: 48px !important;
  }

  body:not(:has(.bjames-home)) .pkp_structure_head .pkp_navigation_user_wrapper {
    position: absolute !important;
    z-index: 10060 !important;
    top: 10px !important;
    right: 12px !important;
    bottom: auto !important;
    left: auto !important;
    width: max-content !important;
    max-width: 135px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
  }

  body:not(:has(.bjames-home)) .pkp_structure_head #navigationUser > li > a {
    max-width: 125px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body:not(:has(.bjames-home)) .pkp_structure_head #navigationUser .profile > ul,
  body:not(:has(.bjames-home)) .pkp_structure_head .pkp_navigation_user .profile > ul {
    right: 0 !important;
    left: auto !important;
  }
}

/* =====================================================================
   BJAMES INTERNAL PAGES — JUSTIFIED CONTENT (V4)
   Applies justification only to readable page content inside OJS main
   content area. Navigation, headings, buttons, forms and metadata remain
   unaffected.
   ===================================================================== */
body:not(:has(.bjames-home)) .pkp_structure_main p,
body:not(:has(.bjames-home)) .pkp_structure_main .description,
body:not(:has(.bjames-home)) .pkp_structure_main .abstract,
body:not(:has(.bjames-home)) .pkp_structure_main .abstract p,
body:not(:has(.bjames-home)) .pkp_structure_main .author_guidelines p,
body:not(:has(.bjames-home)) .pkp_structure_main .submission_checklist li,
body:not(:has(.bjames-home)) .pkp_structure_main .page_about p,
body:not(:has(.bjames-home)) .pkp_structure_main .page_contact p,
body:not(:has(.bjames-home)) .pkp_structure_main .page_submissions p,
body:not(:has(.bjames-home)) .pkp_structure_main .page_privacy p,
body:not(:has(.bjames-home)) .pkp_structure_main .page_editorial_team p,
body:not(:has(.bjames-home)) .pkp_structure_main .page_custom p,
body:not(:has(.bjames-home)) .pkp_structure_main .obj_article_details .abstract,
body:not(:has(.bjames-home)) .pkp_structure_main .obj_article_details .abstract p,
body:not(:has(.bjames-home)) .pkp_structure_main .obj_issue_toc .description,
body:not(:has(.bjames-home)) .pkp_structure_main .obj_issue_toc .description p,
body:not(:has(.bjames-home)) .pkp_structure_main .cmp_announcements .description,
body:not(:has(.bjames-home)) .pkp_structure_main .cmp_announcements .description p {
  text-align: justify !important;
  text-justify: inter-word !important;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

/* Justify normal content list text on policy/guideline/custom internal pages. */
body:not(:has(.bjames-home)) .pkp_structure_main .page_about li,
body:not(:has(.bjames-home)) .pkp_structure_main .page_submissions li,
body:not(:has(.bjames-home)) .pkp_structure_main .page_privacy li,
body:not(:has(.bjames-home)) .pkp_structure_main .page_custom li,
body:not(:has(.bjames-home)) .pkp_structure_main .author_guidelines li {
  text-align: justify !important;
  text-justify: inter-word !important;
}

/* Keep UI/metadata elements naturally aligned even when nested in content. */
body:not(:has(.bjames-home)) .pkp_structure_main h1,
body:not(:has(.bjames-home)) .pkp_structure_main h2,
body:not(:has(.bjames-home)) .pkp_structure_main h3,
body:not(:has(.bjames-home)) .pkp_structure_main h4,
body:not(:has(.bjames-home)) .pkp_structure_main h5,
body:not(:has(.bjames-home)) .pkp_structure_main h6,
body:not(:has(.bjames-home)) .pkp_structure_main .title,
body:not(:has(.bjames-home)) .pkp_structure_main .authors,
body:not(:has(.bjames-home)) .pkp_structure_main .published,
body:not(:has(.bjames-home)) .pkp_structure_main .doi,
body:not(:has(.bjames-home)) .pkp_structure_main .label,
body:not(:has(.bjames-home)) .pkp_structure_main label,
body:not(:has(.bjames-home)) .pkp_structure_main button,
body:not(:has(.bjames-home)) .pkp_structure_main .button,
body:not(:has(.bjames-home)) .pkp_structure_main .cmp_form,
body:not(:has(.bjames-home)) .pkp_structure_main .cmp_form p {
  text-align: left !important;
}
