/* =====================================================================
   Шапка Asian Journal «Steppe Panorama» (плагин ajspHeader)
   синий #16284a · золото #cfa457 / #e3c27f
   ===================================================================== */

.ajsp_head.pkp_site_name_wrapper {
  height: auto;
  padding: 0;
  background: #16284a;
}

.ajsp_banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "logo main side";
  align-items: center;
  column-gap: 28px;
  padding: 0 0 0 32px;
  height: 150px;          /* фиксированная высота: от неё зависит top:-150px у закреплённого меню в styleSheet.css */
  color: #fff;
}

/* --- логотип журнала --- */
.ajsp_logo {
  grid-area: logo;
  display: block;
  line-height: 0;
  border-radius: 50%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.ajsp_logo img {
  display: block;
  width: 120px;
  height: 120px;
  max-width: none;
}
.ajsp_logo:hover,
.ajsp_logo:focus {
  transform: scale(1.03);
  box-shadow: 0 0 0 3px rgba(207, 164, 87, .55);
  outline: 0;
}

/* --- центр: название --- */
.ajsp_main {
  grid-area: main;
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  min-width: 0;
}
.ajsp_title {
  margin: 0;
  padding: 36px 0 18px;
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-size: 2.15rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .01em;
}
.ajsp_title a,
.ajsp_title a:hover,
.ajsp_title a:focus {
  color: #fff;
  text-decoration: none;
}

/* --- вход / регистрация (меню пользователя OJS) --- */
.ajsp_head .ajsp_user.pkp_navigation_user_wrapper {
  position: absolute;
  top: 12px;
  right: 24px;
  left: auto;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  transform: none;
  z-index: 1001;
}
.ajsp_head .ajsp_user .pkp_navigation_user {
  display: flex;
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
}
.ajsp_head .ajsp_user .pkp_navigation_user > li {
  position: relative;
  display: block;
}
.ajsp_head .ajsp_user .pkp_navigation_user > li > a {
  display: block;
  margin: 0 0 0 -1px;
  padding: 4px 16px;
  border: 1px solid rgba(207, 164, 87, .55);
  font-family: "Noto Serif", Georgia, serif;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.5;
  color: #cfa457;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.ajsp_head .ajsp_user .pkp_navigation_user > li:first-child > a { border-radius: 4px 0 0 4px; margin-left: 0; }
.ajsp_head .ajsp_user .pkp_navigation_user > li:last-child > a  { border-radius: 0 4px 4px 0; margin-right: 0; }
.ajsp_head .ajsp_user .pkp_navigation_user > li:only-child > a  { border-radius: 4px; }
.ajsp_head .ajsp_user .pkp_navigation_user > li > a:hover,
.ajsp_head .ajsp_user .pkp_navigation_user > li > a:focus {
  background: #2e4a85;
  color: #e3c27f;
  outline: 0;
}
/* выпадающее меню после входа */
.ajsp_head .ajsp_user .pkp_navigation_user ul {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  min-width: 11em;
  margin: 2px 0 0;
  padding: 4px 0;
  list-style: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
  z-index: 1002;
}
.ajsp_head .ajsp_user .pkp_navigation_user ul a {
  display: block;
  padding: 6px 14px;
  border-left: 4px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

/* --- правая колонка: издатель, ISSN, языки --- */
.ajsp_side {
  grid-area: side;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 22px;
  border-left: 1px solid rgba(207, 164, 87, .35);
}
.ajsp_publisher {
  display: block;
  line-height: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .85);
  transition: transform .25s ease, box-shadow .25s ease;
}
.ajsp_publisher img {
  display: block;
  width: 72px;
  height: 72px;
  max-width: none;
}
.ajsp_publisher:hover,
.ajsp_publisher:focus {
  transform: translateY(-2px);
  box-shadow: 0 0 0 2px #cfa457, 0 6px 12px rgba(0, 0, 0, .3);
  outline: 0;
}
.ajsp_issn {
  font-family: "Noto Serif", Georgia, serif;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.ajsp_issn:hover,
.ajsp_issn:focus {
  color: #e3c27f;
  text-decoration: underline;
}
.ajsp_langs {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ajsp_langs li { display: block; }
.ajsp_langs a,
.ajsp_langs span {
  display: block;
  margin-left: -1px;
  padding: 2px 10px;
  border: 1px solid rgba(207, 164, 87, .55);
  font-family: "Noto Serif", Georgia, serif;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .04em;
  text-decoration: none;
}
.ajsp_langs li:first-child a,
.ajsp_langs li:first-child span { margin-left: 0; border-radius: 4px 0 0 4px; }
.ajsp_langs li:last-child a,
.ajsp_langs li:last-child span  { border-radius: 0 4px 4px 0; }
.ajsp_langs a {
  color: #cfa457;
  transition: background-color .2s, color .2s;
}
.ajsp_langs a:hover,
.ajsp_langs a:focus {
  background: #2e4a85;
  color: #e3c27f;
  outline: 0;
}
.ajsp_langs .current {
  background: #cfa457;
  border-color: #cfa457;
  color: #16284a;
}

/* --- планшет и телефон --- */
@media (max-width: 991px) {
  .ajsp_head.pkp_site_name_wrapper { padding-top: 2.857rem; }   /* место под кнопку меню */
  .ajsp_banner {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "logo main"
      "side side";
    column-gap: 16px;
    height: auto;
    padding: 8px 16px 0;
  }
  .ajsp_logo img { width: 72px; height: 72px; }
  .ajsp_main { flex-direction: column; align-items: flex-start; justify-content: center; }
  .ajsp_title { padding: 0; font-size: 1.25rem; }
  .ajsp_head .ajsp_user.pkp_navigation_user_wrapper {
    position: absolute;
    top: calc(-2.857rem + 8px);
    right: 0;
  }
  .ajsp_head .ajsp_user .pkp_navigation_user > li > a { padding: 3px 10px; font-size: .78rem; }
  .ajsp_side {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
    margin-top: 10px;
    padding: 10px 0;
    border-left: 0;
    border-top: 1px solid rgba(207, 164, 87, .35);
  }
  .ajsp_publisher img { width: 44px; height: 44px; }
}
