/* AJVS custom stylesheet: visible Download PDF button and light visual polish.
   Remove this file under Website > Appearance > Advanced > Journal style sheet to revert. */

:root {
  --ajvs-green: #1f5c3a;
  --ajvs-green-dark: #164a2e;
  --ajvs-gold: #b8892b;
  --ajvs-ink: #1e2a25;
}

/* ---------- 1. Download PDF button on the PDF viewer page ---------- */
.pkp_page_article.pkp_op_view .header_view a.download {
  position: absolute !important;
  top: 50% !important;
  right: 12px !important;
  transform: translateY(-50%);
  width: auto !important;
  height: auto !important;
  padding: 7px 16px !important;
  background: var(--ajvs-green) !important;
  color: #fff !important;
  border-radius: 4px;
  font-size: 13px !important;
  font-weight: 600;
  line-height: 1.2 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  z-index: 5;
}
.pkp_page_article.pkp_op_view .header_view a.download:hover,
.pkp_page_article.pkp_op_view .header_view a.download:focus {
  background: var(--ajvs-green-dark) !important;
}
.pkp_page_article.pkp_op_view .header_view a.download .label {
  display: inline-block !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  text-indent: 0 !important;
  white-space: nowrap !important;
  color: #fff !important;
  font-size: 0 !important;
}
.pkp_page_article.pkp_op_view .header_view a.download {
  min-width: 0 !important;
  max-width: none !important;
  overflow: visible !important;
}
.pkp_page_article.pkp_op_view .header_view a.download .label::before {
  content: "\2193  Download PDF";
  font-size: 13px;
  color: #fff;
}
.pkp_page_article.pkp_op_view .header_view a.title {
  padding-right: 170px !important;
  box-sizing: border-box;
}
@media (max-width: 600px) {
  .pkp_page_article.pkp_op_view .header_view a.download { right: 6px !important; padding: 6px 10px !important; }
  .pkp_page_article.pkp_op_view .header_view a.download .label::before { content: "\2193  PDF"; }
  .pkp_page_article.pkp_op_view .header_view a.title { padding-right: 90px !important; }
}

/* ---------- 2. Light polish ---------- */
a { transition: color .15s ease; }
h1, h2, h3, .page_title, .current_issue_title { color: var(--ajvs-ink); }

/* Primary buttons */
.btn-primary, .cmp_button, .cmp_button_wire {
  border-radius: 4px;
}
.btn-primary {
  background-color: var(--ajvs-green) !important;
  border-color: var(--ajvs-green-dark) !important;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--ajvs-green-dark) !important;
}

/* Table of contents: PDF galley buttons */
.obj_galley_link {
  border-radius: 4px !important;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.obj_galley_link:hover, .obj_galley_link:focus {
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}

/* Article summaries */
.obj_article_summary {
  padding: 14px 0;
  border-bottom: 1px solid #e5e8e6;
}
.obj_article_summary .title a { font-weight: 600; }

/* Sidebar blocks */
.pkp_block {
  border-radius: 4px;
}
.pkp_block .title {
  border-bottom: 2px solid var(--ajvs-gold);
  padding-bottom: 6px;
}

/* Footer */
.pkp_structure_footer_wrapper {
  border-top: 3px solid var(--ajvs-green);
}

/* Readability of body text */
.pkp_structure_main p, .pkp_structure_main li { line-height: 1.65; }
