
.amrj-header-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.amrj-topbar {
  background: var(--amrj-navy);
  color: var(--amrj-white);
  font-size: 12px;
  line-height: 1;
}

.amrj-topbar-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.amrj-journal-name {
  font-family: var(--amrj-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .06px;
  text-transform: none;
  white-space: nowrap;
}

.amrj-topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.amrj-socials {
  display: flex;
  align-items: center;
  gap: 2px;
}

.amrj-socials a,
.amrj-social-icon {
  width: 21px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: transform .2s ease, opacity .2s ease;
}

.amrj-socials a:hover {
  opacity: .72;
  transform: translateY(-1px);
}

.amrj-socials svg,
.amrj-search-toggle svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.amrj-whatsapp-svg {
  width: 18px !important;
  height: 18px !important;
  fill: none !important;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.amrj-whatsapp-svg path:last-child {
  fill: currentColor;
  stroke: none;
}

.amrj-mainbar {
  background: var(--amrj-accent);
  color: #fff;
  position: relative;
  z-index: 50;
}

.amrj-main-meta-row {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 28px;
}

.amrj-branding { min-width: 0; }

.amrj-editorial-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #fff;
  white-space: nowrap;
  text-align: center;
}
.amrj-editorial-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.amrj-editor-name {
  font-family: var(--amrj-serif);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}
.amrj-editor-role {
  font-family: var(--amrj-sans);
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .18px;
  text-transform: uppercase;
  opacity: .86;
}
.amrj-editor-divider {
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,.28);
}
.amrj-logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.amrj-logo-link img {
  display: block;
  width: auto;
  max-width: 235px;
  max-height: 64px;
  object-fit: contain;
}

.amrj-main-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
}

.amrj-main-issn {
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  font-family: var(--amrj-sans);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-weight: 500;
  letter-spacing: .06px;
  white-space: nowrap;
}

.amrj-nav-row {
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 18px;
  border-top: 1px solid rgba(255,255,255,.13);
}

.amrj-primary-nav { min-width: 0; }
.amrj-menu {
  list-style: none;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0;
  padding: 0;
  margin: 0;
}

.amrj-menu > li { position: relative; }
.amrj-menu > li > a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 12px;
  color: #fff;
  text-decoration: none;
  font-family: var(--amrj-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .12px;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
  position: relative;
  transition: none;
}

/* Clean journal navigation interaction: underline anchored to the menu text itself. */
.amrj-menu-label {
  position: relative;
  display: inline-block;
}
.amrj-menu > li > a::before {
  display: none;
}
.amrj-menu > li > a .amrj-menu-label::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 0 8px rgba(255,255,255,.18);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: transform .28s cubic-bezier(.2,.75,.25,1), opacity .18s ease;
}

/* Clear, custom chevron for dropdown items. */
.amrj-menu > li.menu-item-has-children > a::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 8px;
  flex: 0 0 7px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transform-origin: 60% 60%;
  opacity: .95;
  transition: transform .22s ease, opacity .2s ease;
}

/* Hide the old text triangle used by the fallback menu. */
.amrj-menu-caret {
  display: none !important;
}

.amrj-menu > li:first-child > a { padding-left: 0; }

.amrj-menu > li > a:hover,
.amrj-menu > li > a:focus,
.amrj-menu > li.current-menu-item > a,
.amrj-menu > li.current-menu-ancestor > a {
  color: #fff;
  background: transparent;
}

.amrj-menu > li > a:hover .amrj-menu-label::after,
.amrj-menu > li > a:focus-visible .amrj-menu-label::after,
.amrj-menu > li.current-menu-item > a .amrj-menu-label::after,
.amrj-menu > li.current-menu-ancestor > a .amrj-menu-label::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

.amrj-menu > li.menu-item-has-children:hover > a::after,
.amrj-menu > li.menu-item-has-children:focus-within > a::after {
  transform: translateY(2px) rotate(225deg);
  opacity: 1;
}

.amrj-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 230px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  box-shadow: 0 14px 35px rgba(19, 28, 52, .18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .2s ease;
}

.amrj-menu li:hover > .sub-menu,
.amrj-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.amrj-menu .sub-menu a {
  display: block;
  padding: 11px 16px;
  color: var(--amrj-navy);
  font-family: var(--amrj-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02px;
  text-decoration: none;
}
.amrj-menu .sub-menu a:hover {
  background: rgba(47,111,109,.12);
  color: #111;
}

.amrj-search-toggle,
.amrj-mobile-toggle {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.amrj-search-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .2s ease, color .2s ease;
}
.amrj-search-toggle:hover {
  color: var(--amrj-navy);
  background: rgba(255,255,255,.18);
}
.amrj-search-toggle svg { width: 22px; height: 22px; }

.amrj-search-panel {
  border-top: 1px solid rgba(255,255,255,.25);
  padding: 16px 0;
}
.amrj-search-panel form {
  display: flex;
  gap: 10px;
  max-width: 620px;
  margin-left: auto;
}
.amrj-search-panel label { flex: 1; }
.amrj-search-panel input[type="search"] {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 3px;
  padding: 0 14px;
  outline: none;
}
.amrj-search-panel input[type="submit"] {
  height: 44px;
  border: 0;
  border-radius: 3px;
  padding: 0 20px;
  background: var(--amrj-navy);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.amrj-mobile-toggle { display: none; width: 42px; height: 42px; }
.amrj-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px auto;
  transition: .2s ease;
}

@media (max-width: 1100px) {
  .amrj-main-meta-row { grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr); gap: 18px; }
  .amrj-logo-link img { max-width: 205px; }
  .amrj-editorial-meta { gap: 12px; }
  .amrj-editor-name { font-size: 11.5px; }
  .amrj-editor-role { font-size: 8.5px; }
  .amrj-menu > li > a { font-size: 10px; padding: 0 8px; }
}

@media (max-width: 900px) {
  .amrj-topbar-inner {
    min-height: 44px;
    gap: 12px;
  }
  .amrj-journal-name { font-size: 10px; }

  .amrj-main-meta-row {
    min-height: 96px;
    grid-template-columns: minmax(160px, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "editors editors";
    gap: 8px 16px;
    padding: 8px 0;
  }
  .amrj-branding { grid-area: brand; }
  .amrj-main-actions { grid-area: actions; gap: 4px; }
  .amrj-editorial-meta { grid-area: editors; justify-content: flex-start; gap: 14px; }
  .amrj-editor-name { font-size: 11px; }
  .amrj-editor-role { font-size: 8px; }
  .amrj-main-issn { margin-right: 8px; font-size: 10px; }
  .amrj-mobile-toggle { display: block; }

  .amrj-nav-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    min-height: 0;
    border-top: 1px solid rgba(255,255,255,.13);
  }
  .amrj-search-toggle { grid-column: 2; grid-row: 1; }
  .amrj-primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    display: none;
    padding: 0 0 14px;
  }
  .amrj-primary-nav.is-open { display: block; }
  .amrj-menu {
    display: block;
    background: rgba(36,52,95,.09);
  }
  .amrj-menu > li > a,
  .amrj-menu > li:first-child > a {
    min-height: 42px;
    padding: 0 12px;
    justify-content: flex-start;
    text-align: left;
    font-size: 11px;
    border-bottom: 1px solid rgba(255,255,255,.17);
  }
  .amrj-menu > li > a::before,
  .amrj-menu > li > a::after,
  .amrj-menu > li > a .amrj-menu-label::after { display: none; }

  .amrj-menu .sub-menu {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: block;
    background: rgba(255,255,255,.96);
  }
  .amrj-logo-link img { max-width: 195px; max-height: 58px; }
}

@media (max-width: 620px) {
  .amrj-header-container { width: min(100% - 24px, 1180px); }
  .amrj-topbar-inner {
    min-height: 62px;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 8px 0;
  }
  .amrj-journal-name {
    width: 100%;
    text-align: center;
    white-space: normal;
    line-height: 1.3;
  }
  .amrj-topbar-right { width: 100%; justify-content: center; }
  .amrj-socials { gap: 5px; }
  .amrj-socials a,
  .amrj-social-icon { width: 21px; height: 22px; }

  .amrj-main-meta-row {
    min-height: 104px;
    gap: 7px 10px;
    padding: 7px 0;
  }
  .amrj-editorial-meta {
    width: 100%;
    justify-content: center;
    gap: 10px;
  }
  .amrj-editor-name { font-size: 10px; }
  .amrj-editor-role { font-size: 7.5px; }
  .amrj-editor-divider { height: 24px; }
  .amrj-logo-link img { max-width: 160px; max-height: 52px; }
  .amrj-main-issn { font-size: 9px; margin-right: 0; }
  .amrj-main-actions { gap: 0; }
}

@media (max-width: 430px) {
  .amrj-main-issn { display: none; }
}

/* v1.0.3 — cleaner journal search control */
.amrj-search-toggle {
  width: 34px;
  height: 44px;
  padding: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff;
  transition: opacity .18s ease;
}
.amrj-search-toggle:hover,
.amrj-search-toggle:focus,
.amrj-search-toggle:active {
  background: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
  outline: none;
}
.amrj-search-toggle:hover { opacity: .78; }
.amrj-search-toggle:focus-visible {
  outline: 1px solid rgba(255,255,255,.75);
  outline-offset: 3px;
}
.amrj-search-toggle svg {
  width: 20px;
  height: 20px;
  fill: none !important;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.amrj-search-panel {
  padding: 13px 0 15px;
  background: rgba(25, 78, 76, .22);
  border-top: 1px solid rgba(255,255,255,.16);
}
.amrj-search-panel[hidden] { display: none !important; }
.amrj-search-panel form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  width: min(100%, 470px);
  max-width: 470px;
  margin: 0 0 0 auto;
}
.amrj-search-panel label {
  flex: 1;
  margin: 0;
}
.amrj-search-panel input[type="search"] {
  width: 100%;
  height: 42px;
  padding: 0 96px 0 15px;
  border: 1px solid rgba(255,255,255,.44);
  border-radius: 2px;
  background: #fff;
  color: #182238;
  font-family: var(--amrj-sans);
  font-size: 14px;
  box-shadow: none;
  outline: none;
}
.amrj-search-panel input[type="search"]:focus {
  border-color: var(--amrj-navy);
  box-shadow: 0 0 0 2px rgba(36,52,95,.12);
}
.amrj-search-panel input[type="search"]::placeholder {
  color: #7a8290;
  opacity: 1;
}
.amrj-search-panel input[type="submit"] {
  position: absolute;
  top: 4px;
  right: 4px;
  height: 34px;
  min-width: 78px;
  padding: 0 14px;
  border: 0;
  border-radius: 2px;
  background: var(--amrj-navy);
  color: #fff;
  font-family: var(--amrj-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1px;
  cursor: pointer;
}
.amrj-search-panel input[type="submit"]:hover,
.amrj-search-panel input[type="submit"]:focus {
  background: #1d2a4e;
}

@media (max-width: 900px) {
  .amrj-search-toggle { width: 40px; }
  .amrj-search-panel form { width: 100%; max-width: none; }
}

/* v1.0.5 — top-menu hover color removed; animated underline pointer added */


/* v1.0.6 — tighter social spacing + scholarly typography refresh */
.amrj-socials {
  gap: 2px;
}
.amrj-socials a,
.amrj-social-icon {
  width: 21px;
}
.amrj-journal-name {
  font-family: var(--amrj-sans);
  font-weight: 400;
  letter-spacing: .04px;
}
.amrj-menu > li > a {
  font-family: var(--amrj-sans);
  font-weight: 500;
  letter-spacing: .10px;
}
.amrj-main-issn {
  font-family: var(--amrj-sans);
  font-weight: 500;
}
@media (max-width: 620px) {
  .amrj-socials { gap: 5px; }
}


/* v1.0.13 — underline now centers under the label text only */


/* v1.0.14 — centered editorial leadership added between logo and ISSN */
