/* DAQUNA OJS stylesheet, adapted from the JPM reference style. */
:root {
  --dq-blue: #596583;
  --dq-navy: #24344f;
  --dq-gold: #c8a24a;
  --dq-ink: #202838;
  --dq-muted: #667085;
  --dq-line: #dbe2ec;
  --dq-soft: #f5f7fb;
  --dq-white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  font-family: Lato, Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: var(--dq-ink);
  background:
    linear-gradient(rgba(89, 101, 131, 0.08), rgba(89, 101, 131, 0.08)),
    repeating-linear-gradient(45deg, #f5f7fb 0, #f5f7fb 10px, #eef2f7 10px, #eef2f7 20px);
}

a {
  color: #0067a3;
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--dq-gold);
}

.pkp_structure_head {
  background: var(--dq-blue) !important;
}

.has_site_logo .pkp_head_wrapper,
.pkp_navigation_primary_wrapper,
.pkp_structure_content,
.pkp_structure_footer {
  width: min(1160px, calc(100% - 32px)) !important;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}

.pkp_site_name {
  background: var(--dq-blue);
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}

.pkp_site_name > a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}

.pkp_site_name_wrapper {
  padding: 0;
  background: var(--dq-blue);
}

.pkp_site_name .is_img img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0;
  object-fit: contain;
  object-position: center center;
  max-height: none !important;
  padding: 0 !important;
  border-radius: 0;
}

.pkp_navigation_primary_row,
.pkp_navigation_user_wrapper {
  background: var(--dq-navy) !important;
}

.pkp_navigation_primary_row {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.pkp_navigation_primary {
  font-size: 16px;
  font-weight: 600;
  padding-left: 0 !important;
}

.pkp_navigation_primary > li > a,
.pkp_navigation_user > li > a,
.pkp_head_wrapper .pkp_search .search_controls a {
  color: var(--dq-white) !important;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus,
.pkp_head_wrapper .pkp_search .search_controls a:hover,
.pkp_head_wrapper .pkp_search .search_controls a:focus {
  color: #fff3c4 !important;
  border-color: var(--dq-gold) !important;
}

.pkp_navigation_primary ul a {
  color: var(--dq-navy);
}

.pkp_structure_content {
  padding-top: 0;
}

.pkp_structure_main {
  background: var(--dq-white);
  border: solid 1px var(--dq-line);
  border-radius: 6px;
  padding: 22px 28px;
  box-shadow: 0 8px 22px rgba(36, 52, 79, 0.08);
}

.page_index_journal .homepage_about {
  margin-bottom: 18px;
}

.page_index_journal .homepage_about h2 {
  margin-top: 0;
}

.page_index_journal .additional_content {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--dq-line);
}

.page_index_journal > .current_issue > h2,
.current_issue > .current_issue_title {
  color: var(--dq-navy) !important;
  font-weight: 700 !important;
}

.obj_issue_toc > .heading > .published {
  margin-top: 10px !important;
  color: var(--dq-muted) !important;
}

.obj_article_summary {
  padding-bottom: 10px !important;
  border-bottom: solid 1px var(--dq-line) !important;
}

.pkp_structure_sidebar .pkp_block {
  background: var(--dq-white);
  border: 1px solid var(--dq-line);
  border-radius: 6px;
  padding: 30px;
  box-shadow: 0 6px 16px rgba(36, 52, 79, 0.06);
}

.pkp_structure_sidebar .pkp_block .title,
.sidebar-box-title {
  display: block;
  margin-bottom: 12px;
  padding: 0.7em 1em;
  color: var(--dq-white);
  background: var(--dq-navy);
  border-radius: 6px;
  font-weight: 700;
}

.pkp_block .content p:last-child {
  margin-bottom: 0;
}

.pkp_block a {
  padding: 5px 0;
}

.block_make_submission a,
.block_make_submission_link {
  display: inline-block;
  width: 100%;
  padding: 7px 12px;
  color: var(--dq-navy) !important;
  background: #f2f4f8;
  border: 1px solid rgba(36, 52, 79, 0.35);
  border-top-color: #cbd5e1;
  border-radius: 4px;
  box-shadow: inset 0 -1em 1em rgba(36, 52, 79, 0.08);
  font-weight: 700;
  text-align: center;
}

.block_make_submission a:hover,
.block_make_submission a:focus {
  color: var(--dq-white) !important;
  background: var(--dq-navy);
}

.pkp_structure_footer_wrapper {
  margin-top: 28px;
  background: var(--dq-navy) !important;
}

.pkp_footer_content {
  float: none;
  width: 100%;
  clear: both;
  padding: 18px 0;
  text-align: left;
  color: var(--dq-white);
}

.dq-footer {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.8fr;
  gap: 18px;
  align-items: start;
  color: var(--dq-white);
}

.dq-footer strong {
  display: block;
  margin-bottom: 8px;
  color: #fff3c4;
}

.dq-footer p {
  margin: 0 0 8px;
}

.dq-footer a {
  color: #f5dd97 !important;
}

.dq-footer a:hover,
.dq-footer a:focus {
  color: var(--dq-gold) !important;
}

.pkp_brand_footer {
  display: none;
}

.dq-page {
  font-size: 15px;
  line-height: 1.75;
}

.dq-page h2 {
  margin: 0 0 18px;
  padding: 0 0 12px;
  color: var(--dq-navy);
  border-bottom: 3px solid var(--dq-gold);
  font-size: 26px;
  font-weight: 700;
}

.dq-page h3 {
  margin-top: 24px;
  color: var(--dq-blue);
  font-size: 19px;
  font-weight: 700;
}

.dq-page p {
  margin: 0 0 14px;
}

.dq-page ul,
.dq-page ol {
  margin-top: 8px;
  margin-bottom: 18px;
}

.dq-page li {
  margin-bottom: 8px;
}

.dq-note {
  margin: 18px 0;
  padding: 14px 16px;
  background: var(--dq-soft);
  border-left: 5px solid var(--dq-gold);
  border-radius: 6px;
}

.dq-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 18px 0 24px;
}

.dq-meta-card {
  padding: 14px;
  background: var(--dq-soft);
  border: 1px solid var(--dq-line);
  border-radius: 6px;
}

.dq-meta-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--dq-navy);
}

.dq-quick-menu h3 {
  margin: 0;
  padding: 12px 16px;
  color: var(--dq-white);
  background: var(--dq-navy);
  border-radius: 6px 6px 0 0;
  font-size: 16px;
  font-weight: 700;
}

.dq-quick-menu ul,
.dq-side-card ul,
.sidemenu {
  width: 100%;
  margin: 0;
  padding: 0;
}

.dq-quick-menu li,
.dq-side-card li,
.sidemenu li {
  list-style: none;
}

.dq-quick-menu a,
.dq-side-card a,
.sidemenu li a {
  display: table;
  width: 100%;
  margin-top: 1px;
  padding: 8px 10px;
  color: var(--dq-ink);
  background: #e9edf4;
  border: solid 1px var(--dq-white);
  border-radius: 6px;
  text-align: left;
  transition: background 0.2s ease-out, color 0.2s ease-out;
}

.dq-quick-menu a:hover,
.dq-quick-menu a:focus,
.dq-side-card a:hover,
.dq-side-card a:focus,
.sidemenu li a:hover {
  color: var(--dq-navy);
  background: #fff7d8;
}

.dq-side-card p {
  margin: 0 0 12px;
  line-height: 1.55;
}

.cmp_button_wire,
.obj_galley_link {
  color: var(--dq-navy) !important;
  border: 1px solid var(--dq-navy) !important;
}

.cmp_button_wire:hover,
.cmp_button_wire:focus,
.obj_galley_link:hover,
.obj_galley_link:focus {
  color: var(--dq-white) !important;
  background: var(--dq-navy) !important;
}

@media (min-width: 1025px) {
  .pkp_navigation_primary {
    display: inline-block;
    max-width: 80%;
    text-align: left;
    position: relative;
  }
}

@media (max-width: 767px) {
  .has_site_logo .pkp_head_wrapper,
  .pkp_navigation_primary_wrapper,
  .pkp_structure_content,
  .pkp_structure_footer {
    width: 100% !important;
  }

  .pkp_structure_main {
    padding: 18px;
    border-radius: 0;
  }

  .dq-page h2 {
    font-size: 22px;
  }

  .pkp_site_name .is_img img {
    width: 100%;
    max-width: 100%;
  }

  .dq-footer {
    grid-template-columns: 1fr;
  }
}
