/*
 * JEMSPRO journal stylesheet for OJS 3.5 / JEMS Pro (Classic child).
 * Load in the Journal style sheet slot after the theme styles.
 * Reference: https://geusbulletin.org/index.php/geusb
 */

:root {
  --jems-editorial-ink: #18232c;
  --jems-editorial-muted: #4e606d;
  --jems-editorial-paper: #fff;
  --jems-editorial-mist: #e8edf3;
  --jems-editorial-line: #c8d3de;
  --jems-editorial-slate: #263b4b;
  --jems-editorial-yellow: #ffff64;
  --jems-editorial-link: #254a66;
  --jems-editorial-font: "Segoe UI", system-ui, sans-serif;
  --jems-editorial-gutter: clamp(1rem, 4vw, 3rem);
  --jems-editorial-width: 75rem;
}

body {
  background: var(--jems-editorial-paper);
  color: var(--jems-editorial-ink);
}

/* Masthead. The current JEMSPRO wordmark is white on transparency. */
body > header > .header {
  max-width: none;
  padding: 0 var(--jems-editorial-gutter);
  background: var(--jems-editorial-paper);
  border: 0;
  border-bottom: 1px solid var(--jems-editorial-line);
  color: var(--jems-editorial-ink);
  font-family: var(--jems-editorial-font);
}

.header .upper-header,
.header .lower-header {
  max-width: var(--jems-editorial-width);
  margin-inline: auto;
}

.header .upper-header {
  min-height: 0;
  padding: clamp(1.25rem, 3.4vw, 2.75rem) 0 1rem;
  align-items: center;
}

.header .logo-wrapper {
  margin-bottom: 0;
}

.header .journal-logo {
  width: min(100%, 48rem);
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) saturate(100%);
}

.header .journal-logo-text {
  color: var(--jems-editorial-ink);
}

.header .lower-header {
  border-top: 1px solid var(--jems-editorial-line);
}

.header #primary-nav-wraper {
  border-inline-start: 0;
}

.header #navigationPrimary,
.header #navigationUser {
  font-family: var(--jems-editorial-font);
}

.header #navigationPrimary > li > a,
.header #navigationUser > li > a,
.header #navigationUser #user-dashboard-link,
.header #nav-small .nav-link {
  color: var(--jems-editorial-muted);
  font: 700 .83rem/1.4 var(--jems-editorial-font);
  letter-spacing: .055em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
}

.header #navigationPrimary > li > a,
.header #nav-small .nav-link {
  padding: .65rem .8rem;
}

.header #navigationPrimary > li > a:is(:hover, :focus-visible),
.header #navigationUser > li > a:is(:hover, :focus-visible),
.header #navigationUser #user-dashboard-link:is(:hover, :focus-visible),
.header #nav-small .nav-link:is(:hover, :focus-visible) {
  color: var(--jems-editorial-ink);
  background: var(--jems-editorial-mist);
}

/* The existing Submit navigation link becomes the yellow call to action. */
.header #navigationPrimary > li > a:is([href*="/submission"], [href*="/about/submissions"]),
.site-footer .block_make_submission_link {
  background: var(--jems-editorial-yellow);
  color: var(--jems-editorial-ink);
  border: 1px solid var(--jems-editorial-yellow);
  border-radius: 0;
  font-family: var(--jems-editorial-font);
  font-weight: 700;
}

.header #navigationPrimary > li > a:is([href*="/submission"], [href*="/about/submissions"]):is(:hover, :focus-visible),
.site-footer .block_make_submission_link:is(:hover, :focus-visible) {
  background: var(--jems-editorial-paper);
  color: var(--jems-editorial-ink);
  border-color: var(--jems-editorial-ink);
}

@media (min-width: 992px) {
  .header #navigationPrimary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .25rem .7rem;
    padding: .55rem 0;
    margin: 0;
  }
}

/* Front-end reading surfaces. Preserve the theme's menus and forms. */
main .container-page {
  width: 100%;
  max-width: calc(var(--jems-editorial-width) + 2 * var(--jems-editorial-gutter));
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 3.5rem) var(--jems-editorial-gutter);
  color: var(--jems-editorial-ink);
  font-family: var(--jems-editorial-font);
}

main .container-page a:not(.btn, .galley-link, .read_more, .jems-browse-issue) {
  color: var(--jems-editorial-link);
}

body > header :focus-visible,
main :focus-visible,
.site-footer :focus-visible {
  outline: 2px solid var(--jems-editorial-link);
  outline-offset: 3px;
}

/* The live issue title, date and cover supply the homepage banner. */
.page_index_journal > .container-page {
  max-width: none;
  padding-top: 0;
  padding-inline: 0;
}

.page_index_journal > .container-page > :not(.current_issue) {
  max-width: calc(var(--jems-editorial-width) + 2 * var(--jems-editorial-gutter));
  margin-inline: auto;
  padding-inline: var(--jems-editorial-gutter);
}

.page_index_journal .current_issue {
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--jems-editorial-gutter), 1fr)
    [content-start] minmax(0, 56rem) minmax(0, 19rem)
    [content-end] minmax(var(--jems-editorial-gutter), 1fr) [full-end];
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.page_index_journal .current_issue::before {
  content: "";
  grid-area: 1 / full-start / 2 / full-end;
  background: linear-gradient(115deg, #253746, #4c6272);
}

.page_index_journal .current_issue > header,
.page_index_journal .current_issue > .description_cover {
  position: relative;
  grid-row: 1;
  align-self: center;
  margin: 0;
  padding-block: clamp(2rem, 5vw, 4.25rem);
  color: var(--jems-editorial-paper);
}

.page_index_journal .current_issue > header {
  grid-column: 2;
  padding-inline-end: 1.5rem;
  border: 0;
}

.page_index_journal .current_issue > .description_cover {
  grid-column: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.page_index_journal .current_issue_title {
  padding: 0;
  border: 0;
}

.page_index_journal .current_issue_label {
  font: 750 .85rem/1.3 var(--jems-editorial-font);
  letter-spacing: .12em;
  color: var(--jems-editorial-yellow);
}

.page_index_journal .current_issue_identification {
  margin-block: .55rem .85rem;
  color: var(--jems-editorial-paper);
  font: 750 clamp(2rem, 5vw, 4.25rem)/1.08 var(--jems-editorial-font);
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.page_index_journal .current_issue .published,
.page_index_journal .current_issue .description_cover a {
  color: var(--jems-editorial-paper);
}

.page_index_journal .current_issue .cover_image {
  width: clamp(6rem, 12vw, 10.5rem);
  max-width: 100%;
  height: auto;
  border: 1px solid var(--jems-editorial-paper);
}

.page_index_journal .current_issue :is(header, .description_cover) :focus-visible {
  outline-color: var(--jems-editorial-yellow);
}

.page_index_journal .current_issue > :not(header, .description_cover) {
  grid-column: content-start / content-end;
  min-width: 0;
}

/* Open article grid and clear section rules. */
.page_index_journal .current_issue > .sections {
  padding-top: clamp(1.5rem, 4vw, 3rem);
}

.page_index_journal .section_title {
  display: block;
  margin: 0 0 1.25rem;
  padding: 0 0 .55rem;
  border-bottom: 1px solid var(--jems-editorial-ink);
  color: var(--jems-editorial-ink);
  font: 750 clamp(1.3rem, 2.5vw, 1.8rem)/1.2 var(--jems-editorial-font);
  text-transform: none;
  letter-spacing: 0;
}

.page_index_journal .section_title::after {
  content: none;
}

.page_index_journal .section_content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem clamp(1.1rem, 2.8vw, 2.25rem);
}

.page_index_journal .section_content > .article_summary {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: auto;
  margin: 0;
  padding: 0 0 1.15rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--jems-editorial-line);
  border-radius: 0;
  box-shadow: none;
}

.page_index_journal .article_summary .article_summary_media {
  height: auto;
  min-height: 0;
  margin: 0 0 .7rem;
  padding: .55rem .7rem;
  background: var(--jems-editorial-mist);
  border-radius: 0;
}

.page_index_journal .article_summary .article_summary_media:has(.article_summary_cover) {
  aspect-ratio: 16 / 9;
  padding: 0;
}

.page_index_journal .article_summary_media[aria-hidden="true"]:empty {
  display: none;
}

.page_index_journal .article_summary_media .article_summary_section {
  color: var(--jems-editorial-muted);
  font: 700 .72rem/1.3 var(--jems-editorial-font);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.page_index_journal .article_summary .summary_title {
  color: var(--jems-editorial-ink);
  font: 720 1.12rem/1.4 var(--jems-editorial-font);
}

.page_index_journal .article_summary .summary_title:hover {
  text-decoration: underline;
  text-underline-offset: .15em;
}

.page_index_journal .article_summary .summary_meta,
.page_index_journal .article_summary .summary_meta :is(.pages, .published) {
  color: var(--jems-editorial-muted);
  font: 400 .86rem/1.55 var(--jems-editorial-font);
}

.page_index_journal .article_summary .galleys_links {
  margin-top: auto;
  padding-top: .7rem;
}

main .article_summary .galley-link,
main .read_more {
  background: var(--jems-editorial-paper);
  color: var(--jems-editorial-ink);
  border: 1px solid var(--jems-editorial-line);
  border-radius: 0;
  box-shadow: none;
  font-family: var(--jems-editorial-font);
}

main .article_summary .galley-link:is(:hover, :focus-visible),
main .read_more:is(:hover, :focus-visible) {
  color: var(--jems-editorial-ink);
  background: var(--jems-editorial-yellow);
  border-color: var(--jems-editorial-ink);
}

/* Article page navigation and footer. */
.page_article .article_header_wrapper,
.page_article .article_abstract_block > .item:is(.keywords, .copyright),
.page_article .jems-read-more-issue {
  background: var(--jems-editorial-mist);
  border-color: var(--jems-editorial-line);
}

.page_article .article-full-title {
  color: var(--jems-editorial-ink);
  font: 750 clamp(1.7rem, 3.6vw, 2.9rem)/1.18 var(--jems-editorial-font);
  letter-spacing: -.02em;
}

.page_article .article_section_title {
  color: var(--jems-editorial-muted);
  font-family: var(--jems-editorial-font);
}

.page_article .galleys .galley-link,
.page_article .jems-read-more-issue .jems-browse-issue {
  background: var(--jems-editorial-yellow);
  color: var(--jems-editorial-ink);
  border: 1px solid var(--jems-editorial-yellow);
  border-radius: 0;
  box-shadow: none;
}

.page_article .galleys .galley-link:is(:hover, :focus-visible),
.page_article .jems-read-more-issue .jems-browse-issue:is(:hover, :focus-visible) {
  background: var(--jems-editorial-paper);
  color: var(--jems-editorial-ink);
  border-color: var(--jems-editorial-ink);
}

.jems-article-nav {
  background: var(--jems-editorial-mist);
  border-color: var(--jems-editorial-line);
  padding-inline: .85rem;
}

.jems-article-nav .jems-article-nav-label,
.jems-article-nav a {
  font-family: var(--jems-editorial-font);
}

.site-footer {
  background: var(--jems-editorial-mist);
  border-top: 1px solid var(--jems-editorial-line);
  color: var(--jems-editorial-ink);
  font-family: var(--jems-editorial-font);
  padding-block: clamp(1.75rem, 4vw, 3.25rem);
}

.site-footer .container-footer {
  max-width: calc(var(--jems-editorial-width) + 2 * var(--jems-editorial-gutter));
  margin-inline: auto;
  padding-inline: var(--jems-editorial-gutter);
}

.site-footer .pkp_block,
.site-footer .pkp_block :is(.title, .content, p, li) {
  color: var(--jems-editorial-ink);
}

.site-footer .pkp_block a:not(.block_make_submission_link) {
  color: var(--jems-editorial-link);
}

.site-footer .sidebar_wrapper + .additional-footer-info {
  border-top-color: var(--jems-editorial-line);
}

@media (max-width: 991px) {
  .page_index_journal .section_content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .header .upper-header {
    padding-block: 1rem .6rem;
  }

  .page_index_journal .current_issue {
    grid-template-columns:
      [full-start] var(--jems-editorial-gutter)
      [content-start] minmax(0, 1fr)
      [content-end] var(--jems-editorial-gutter) [full-end];
  }

  .page_index_journal .current_issue::before {
    grid-row: 1 / 3;
  }

  .page_index_journal .current_issue > header {
    grid-column: content-start / content-end;
    padding: 1.65rem 0 .75rem;
  }

  .page_index_journal .current_issue > .description_cover {
    grid-column: content-start / content-end;
    grid-row: 2;
    justify-content: flex-start;
    padding: 0 0 1.5rem;
  }

  .page_index_journal .section_content {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media print {
  .page_index_journal .current_issue,
  .page_index_journal .section_content {
    display: block;
  }

  .page_index_journal .current_issue::before {
    content: none;
  }

  .page_index_journal .current_issue :is(.current_issue_label, .current_issue_identification, .published) {
    color: #000;
  }
}
