:root {
  --jeh-yellow: #f2b400;
  --jeh-yellow-dark: #b88300;
  --jeh-ink: #171717;
  --jeh-muted: #68645d;
  --jeh-paper: #fffdfa;
  --jeh-line: #e3dfd6;
}

body {
  background: #f4f3f0;
  color: var(--jeh-ink);
}

.pkp_structure_page {
  max-width: 1500px;
  margin: 0 auto;
  background: var(--jeh-paper);
  box-shadow: 0 0 0 1px rgba(0,0,0,.04);
}

.pkp_structure_head,
.pkp_head_wrapper,
.pkp_site_name_wrapper,
.pkp_navigation_primary_row,
.pkp_navigation_user_wrapper {
  background: var(--jeh-paper);
}

.pkp_structure_head {
  border-bottom: 1px solid var(--jeh-line);
}

.pkp_head_wrapper {
  padding-top: 0;
}

.pkp_site_name {
  padding-top: 18px;
  padding-bottom: 18px;
}

.pkp_site_name .is_img {
  display: block;
  max-width: 680px;
}

.pkp_site_name .is_img img {
  display: block;
  max-width: 100%;
  max-height: 94px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.pkp_navigation_primary {
  border-top: 1px solid var(--jeh-line);
}

.pkp_navigation_primary_row {
  border-top: 1px solid var(--jeh-line);
  border-bottom: 4px solid var(--jeh-yellow);
}

.pkp_navigation_primary > li > a {
  color: var(--jeh-ink);
  font-weight: 700;
  letter-spacing: .035em;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus,
.pkp_navigation_primary > li > a[aria-current="page"] {
  color: var(--jeh-yellow-dark);
  border-color: var(--jeh-yellow);
}

.pkp_navigation_user > li > a,
.pkp_navigation_search_wrapper a {
  color: var(--jeh-ink);
}

.pkp_navigation_user > li > a:hover,
.pkp_navigation_user > li > a:focus,
.pkp_navigation_search_wrapper a:hover,
.pkp_navigation_search_wrapper a:focus {
  color: var(--jeh-yellow-dark);
}

a {
  color: var(--jeh-yellow-dark);
}

a:hover,
a:focus {
  color: #795600;
}

.pkp_structure_content {
  padding-top: 38px;
}

.page_index_journal .homepage_image img {
  display: block;
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  border-top: 8px solid var(--jeh-yellow);
}

.page_index_journal .about_journal,
.page_index_journal .current_issue,
.page_index_journal .additional_content,
.pkp_block {
  background: var(--jeh-paper);
  border: 1px solid var(--jeh-line);
  border-radius: 3px;
}

/* Keep homepage custom sections on the same warm paper background. */
.page_index_journal .additional_content {
  background-color: var(--jeh-paper) !important;
}

.page_index_journal .additional_content .jeh-indexing,
.page_index_journal .additional_content .jeh-tools {
  background: transparent !important;
}

.page_index_journal .about_journal,
.page_index_journal .current_issue,
.page_index_journal .additional_content {
  padding: 30px;
  margin-bottom: 28px;
}

.page_index_journal h2,
.page_index_journal h3,
.page h1,
.page h2,
.page h3 {
  color: var(--jeh-ink);
}

.page_index_journal h2::after,
.page_index_journal h3::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 12px;
  background: var(--jeh-yellow);
}

.pkp_block {
  padding: 22px;
  margin-bottom: 18px;
}

.pkp_block .title {
  color: var(--jeh-ink);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 3px solid var(--jeh-yellow);
  padding-bottom: 11px;
}

.block_make_submission a,
.cmp_button,
.pkp_button,
button.submit {
  background: var(--jeh-yellow);
  border-color: var(--jeh-yellow);
  color: #161616;
  font-weight: 800;
  border-radius: 2px;
}

.block_make_submission a:hover,
.cmp_button:hover,
.pkp_button:hover,
button.submit:hover {
  background: #d69e00;
  border-color: #d69e00;
  color: #111111;
}

.obj_issue_summary .cover img,
.obj_issue_toc .cover img {
  border: 1px solid var(--jeh-line);
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
}

.jeh-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 20px 0 0;
}

.jeh-resource-grid figure {
  margin: 0;
}

.jeh-resource-grid img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--jeh-line);
  background: var(--jeh-paper);
}

.jeh-disclaimer {
  color: var(--jeh-muted);
  font-size: .9rem;
  line-height: 1.6;
  margin-top: 14px;
}

.page ul,
.page ol,
.page-content ul,
.page-content ol {
  padding-left: 1.5rem;
}

.page li,
.page-content li {
  display: list-item;
  margin-bottom: .45rem;
}

.pkp_structure_footer_wrapper {
  border-top: 7px solid var(--jeh-yellow);
  background: #171717;
  color: #ffffff;
}

.pkp_structure_footer_wrapper a {
  color: #ffd45a;
}

.pkp_brand_footer {
  padding-top: 22px;
  padding-bottom: 22px;
}

.pkp_brand_footer img {
  max-width: 130px;
  height: auto;
  filter: grayscale(1) invert(1);
  opacity: .78;
}

/* =========================================================
   JEH CUSTOM SIDEBAR
   Custom Block name in OJS: jeh-sidebar
   ========================================================= */
#customblock-jeh-sidebar {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#customblock-jeh-sidebar > .title {
  display: none;
}

.jeh-sidebar {
  display: grid;
  gap: 14px;
}

.jeh-side-card {
  overflow: hidden;
  background: var(--jeh-paper);
  border: 1px solid var(--jeh-line);
  border-radius: 3px;
}

.jeh-side-card__title {
  margin: 0;
  padding: 13px 16px 10px;
  border-bottom: 3px solid var(--jeh-yellow);
  color: var(--jeh-ink);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .055em;
  line-height: 1.35;
  text-transform: uppercase;
}

.jeh-side-links {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.jeh-side-links li {
  margin: 0 !important;
  border-top: 1px solid var(--jeh-line);
}

.jeh-side-links li:first-child {
  border-top: 0;
}

.jeh-side-links a {
  display: flex;
  align-items: center;
  gap: .55em;
  padding: 10px 16px;
  color: var(--jeh-ink);
  line-height: 1.35;
  text-decoration: none;
}

.jeh-side-links a::before {
  content: "\203A";
  flex: 0 0 auto;
  color: var(--jeh-yellow-dark);
  font-size: 1.35em;
  font-weight: 700;
  line-height: 1;
}

.jeh-side-links a:hover,
.jeh-side-links a:focus {
  color: var(--jeh-yellow-dark);
  background: #fff8e8;
}

.jeh-submit-card {
  padding: 16px;
}

.jeh-submit-card .jeh-side-card__title {
  padding: 0 0 10px;
  border-bottom: 0;
}

.jeh-submit-button {
  display: block;
  padding: 12px 16px;
  border-radius: 3px;
  color: #111 !important;
  background: var(--jeh-yellow);
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none !important;
}

.jeh-submit-button:hover,
.jeh-submit-button:focus {
  color: #fff !important;
  background: var(--jeh-yellow-dark);
}

@media (max-width: 768px) {
  .pkp_site_name .is_img img {
    max-height: 70px;
  }

  .page_index_journal .about_journal,
  .page_index_journal .current_issue,
  .page_index_journal .additional_content {
    padding: 20px;
  }

  .jeh-resource-grid {
    grid-template-columns: 1fr;
  }
}
