/*
 * JOSHNU — Journal Style Sheet for Open Journal Systems (OJS 3.x)
 * Theme direction: deep green, gold accents, clean academic layout.
 * Install: Settings > Website > Appearance > Advanced > Journal Style Sheet.
 * Keep a backup of your existing stylesheet before replacing it.
 */

/* Brand colors */
:root {
  --joshnu-green: #064b35;
  --joshnu-green-dark: #033525;
  --joshnu-green-soft: #eaf3ee;
  --joshnu-gold: #d6b85a;
  --joshnu-gold-light: #f2e4a8;
  --joshnu-text: #26332d;
  --joshnu-muted: #64736b;
  --joshnu-border: #d8e2dc;
}

/* Global typography and background */
body {
  color: var(--joshnu-text);
  background-color: #ffffff;
  line-height: 1.65;
}

a {
  color: var(--joshnu-green);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover,
a:focus {
  color: #987a22;
}

/* Journal header */
.pkp_structure_head {
  border-bottom: 4px solid var(--joshnu-gold);
}

.pkp_head_wrapper {
  background-color: var(--joshnu-green);
}

.pkp_site_name_wrapper {
  background-color: var(--joshnu-green);
}

.pkp_site_name a,
.pkp_site_name a:hover,
.pkp_site_name a:focus {
  color: #ffffff;
  text-decoration: none;
}

/* Primary navigation */
.pkp_navigation_primary_wrapper {
  background-color: var(--joshnu-green-dark);
  border-top: 1px solid rgba(214, 184, 90, 0.65);
}

.pkp_navigation_primary > li > a {
  color: #ffffff;
  font-weight: 600;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus,
.pkp_navigation_primary > li > a[aria-current] {
  color: var(--joshnu-gold-light);
  background-color: rgba(255, 255, 255, 0.06);
}

.pkp_navigation_search_wrapper a {
  color: #ffffff;
}

/* Page titles and headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--joshnu-green-dark);
  line-height: 1.3;
}

.page_title,
.current_issue_title,
.obj_issue_toc .heading {
  color: var(--joshnu-green);
}

.title a,
.obj_article_summary .title a {
  color: var(--joshnu-green);
}

.title a:hover,
.obj_article_summary .title a:hover {
  color: #987a22;
}

/* Buttons */
.pkp_button,
button,
input[type="submit"],
.cmp_button,
.cmp_form .buttons button {
  border-radius: 4px;
}

.pkp_button,
.pkp_button_primary,
button.submit,
input[type="submit"],
.cmp_button_wire {
  border-color: var(--joshnu-green);
}

.pkp_button_primary,
button.submit,
input[type="submit"],
.cmp_form .buttons button {
  color: #ffffff;
  background: var(--joshnu-green);
}

.pkp_button_primary:hover,
button.submit:hover,
input[type="submit"]:hover,
.cmp_form .buttons button:hover {
  color: #ffffff;
  background: var(--joshnu-green-dark);
}

/* Article and issue listings */
.obj_article_summary {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--joshnu-border);
}

.obj_article_summary + .obj_article_summary {
  margin-top: 1.25rem;
}

.obj_issue_summary {
  border-color: var(--joshnu-border);
}

.obj_issue_summary .title a {
  color: var(--joshnu-green);
}

/* Metadata and labels */
.item .label,
.label,
.obj_article_details .item {
  color: var(--joshnu-muted);
}

.cmp_notification {
  border-left: 4px solid var(--joshnu-gold);
  background: var(--joshnu-green-soft);
}

/* Sidebar blocks */
.pkp_block {
  margin-bottom: 1.5rem;
}

.pkp_block .title {
  padding-bottom: 0.45rem;
  color: var(--joshnu-green);
  border-bottom: 2px solid var(--joshnu-gold);
}

/* Tables */
table {
  border-collapse: collapse;
}

th {
  color: #ffffff;
  background: var(--joshnu-green);
}

th, td {
  padding: 0.65rem;
  border: 1px solid var(--joshnu-border);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
select,
textarea {
  border: 1px solid #bdcbc2;
  border-radius: 3px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--joshnu-gold);
  outline-offset: 1px;
}

/* Footer */
.pkp_structure_footer_wrapper {
  color: #ffffff;
  background: var(--joshnu-green-dark);
  border-top: 4px solid var(--joshnu-gold);
}

.pkp_structure_footer_wrapper a {
  color: var(--joshnu-gold-light);
}

.pkp_structure_footer_wrapper a:hover,
.pkp_structure_footer_wrapper a:focus {
  color: #ffffff;
}

/* Small screens */
@media (max-width: 767px) {
  .pkp_site_name_wrapper {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .pkp_navigation_primary > li > a {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .obj_article_summary {
    padding-bottom: 1rem;
  }
}
