/* Graxynet RANS Green V2.1.9 — safe article cards
   Uses the existing OJS-compatible article_summary.tpl and styles it only. */

/* Two-column article grid on desktop */
html body .cmp_article_list,
html body ul.cmp_article_list,
html body .section .articles,
html body .current_issue .articles,
html body .page_issue .articles {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
  margin: 22px 0 34px !important;
  padding: 0 !important;
  list-style: none !important;
  align-items: stretch !important;
}

html body .cmp_article_list > li,
html body .section .articles > li,
html body .current_issue .articles > li,
html body .page_issue .articles > li {
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  border: 0 !important;
}

/* Article card itself */
html body .cmp_article_list .obj_article_summary,
html body .section .articles .obj_article_summary,
html body .current_issue .articles .obj_article_summary,
html body .page_issue .articles .obj_article_summary {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 330px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 1px solid #dce9e0 !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 22px rgba(15,81,50,.10) !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease !important;
}

html body .cmp_article_list .obj_article_summary:hover,
html body .section .articles .obj_article_summary:hover,
html body .current_issue .articles .obj_article_summary:hover,
html body .page_issue .articles .obj_article_summary:hover {
  transform: translateY(-4px) !important;
  border-color: #9fcdb0 !important;
  box-shadow: 0 16px 34px rgba(15,81,50,.16) !important;
}

/* Green strip like the supplied reference */
html body .cmp_article_list .obj_article_summary::before,
html body .section .articles .obj_article_summary::before,
html body .current_issue .articles .obj_article_summary::before,
html body .page_issue .articles .obj_article_summary::before {
  content: 'Research Article' !important;
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 10px 16px !important;
  background: linear-gradient(90deg,#198754 0%,#24a865 100%) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

/* Hide old thumbnail to achieve clean reference-style cards */
html body .cmp_article_list .obj_article_summary > .thumbnail,
html body .section .articles .obj_article_summary > .thumbnail,
html body .current_issue .articles .obj_article_summary > .thumbnail,
html body .page_issue .articles .obj_article_summary > .thumbnail {
  display: none !important;
}

/* Main text area */
html body .cmp_article_list .obj_article_summary > .summary-content,
html body .section .articles .obj_article_summary > .summary-content,
html body .current_issue .articles .obj_article_summary > .summary-content,
html body .page_issue .articles .obj_article_summary > .summary-content {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  padding: 22px 20px 18px !important;
}

/* Title */
html body .obj_article_summary .title {
  display: block !important;
  width: 100% !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  font-size: 20px !important;
  line-height: 1.3 !important;
}

html body .obj_article_summary .title > a,
html body .obj_article_summary .title > a:visited {
  display: block !important;
  color: #16221a !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  text-transform: none !important;
  text-decoration: none !important;
  letter-spacing: 0 !important;
}

html body .obj_article_summary .title > a:hover,
html body .obj_article_summary .title > a:focus {
  color: #198754 !important;
  text-decoration: none !important;
}

html body .obj_article_summary .article-id {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  float: none !important;
  margin-top: 8px !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  background: #eef8f1 !important;
  color: #557160 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

/* Authors */
html body .obj_article_summary .authors {
  margin: 2px 0 16px !important;
  color: #49584f !important;
  font-size: 13.5px !important;
  line-height: 1.5 !important;
}

/* The PDF + DOI row in the existing template */
html body .obj_article_summary .summary-content > .mt-2.d-flex {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px 10px !important;
  margin-top: auto !important;
  padding-top: 16px !important;
  border-top: 1px solid #edf3ef !important;
}

/* Existing red Bootstrap PDF button -> green full-width button */
html body .obj_article_summary .summary-content a.btn.btn-danger,
html body .obj_article_summary .summary-content a.btn.btn-danger:visited {
  order: 3 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 43px !important;
  margin-top: 10px !important;
  padding: 10px 14px !important;
  box-sizing: border-box !important;
  border: 1px solid #198754 !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #0f5132 !important;
  box-shadow: none !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
}

html body .obj_article_summary .summary-content a.btn.btn-danger:hover,
html body .obj_article_summary .summary-content a.btn.btn-danger:focus {
  background: #198754 !important;
  color: #fff !important;
  border-color: #198754 !important;
}

/* DOI icon + link */
html body .obj_article_summary .summary-content .ai-doi {
  color: #c87500 !important;
  font-size: 18px !important;
}

html body .obj_article_summary .summary-content .ai-doi + a,
html body .obj_article_summary .summary-content .ai-doi + a:visited {
  min-width: 0 !important;
  max-width: calc(100% - 28px) !important;
  overflow-wrap: anywhere !important;
  color: #53695c !important;
  font-size: 12.5px !important;
  text-decoration: none !important;
}

html body .obj_article_summary .summary-content .ai-doi + a:hover {
  color: #198754 !important;
  text-decoration: underline !important;
}

/* Remove duplicate galley list below the card; the existing template already provides PDF above */
html body .cmp_article_list .galleys_links,
html body .section .articles .galleys_links,
html body .current_issue .articles .galleys_links,
html body .page_issue .articles .galleys_links {
  display: none !important;
}

/* Section headings */
html body .page_issue .section > h2,
html body .page_index_journal .section > h2,
html body .current_issue .section > h2,
html body .section > h2.title {
  position: relative !important;
  margin: 28px 0 14px !important;
  padding: 0 0 11px !important;
  color: #0f5132 !important;
  border-bottom: 1px solid #dce9e0 !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

html body .page_issue .section > h2::after,
html body .page_index_journal .section > h2::after,
html body .current_issue .section > h2::after,
html body .section > h2.title::after {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  bottom: -1px !important;
  width: 66px !important;
  height: 3px !important;
  border-radius: 999px !important;
  background: #198754 !important;
}

@media (max-width: 767px) {
  html body .cmp_article_list,
  html body ul.cmp_article_list,
  html body .section .articles,
  html body .current_issue .articles,
  html body .page_issue .articles {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin: 16px 0 26px !important;
  }

  html body .cmp_article_list .obj_article_summary,
  html body .section .articles .obj_article_summary,
  html body .current_issue .articles .obj_article_summary,
  html body .page_issue .articles .obj_article_summary {
    min-height: 0 !important;
  }

  html body .cmp_article_list .obj_article_summary > .summary-content,
  html body .section .articles .obj_article_summary > .summary-content,
  html body .current_issue .articles .obj_article_summary > .summary-content,
  html body .page_issue .articles .obj_article_summary > .summary-content {
    padding: 18px 16px 15px !important;
  }

  html body .obj_article_summary .title > a,
  html body .obj_article_summary .title {
    font-size: 18px !important;
  }
}

/* ===============================================================
   V2.1.10 — current issue green + article cover image in cards
   =============================================================== */

/* Current Issue heading should use the RANS green, not blue */
html body .page_index_journal .current_issue > h2,
html body .current_issue > h2,
html body .page_index_journal h2:first-child {
  color: #198754 !important;
  border-color: #198754 !important;
}

html body .page_index_journal .current_issue > h2::after,
html body .current_issue > h2::after {
  background: #198754 !important;
}

/* Show article cover image area at the top of the card */
html body .cmp_article_list .obj_article_summary > .thumbnail,
html body .section .articles .obj_article_summary > .thumbnail,
html body .current_issue .articles .obj_article_summary > .thumbnail,
html body .page_issue .articles .obj_article_summary > .thumbnail {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 150px !important;
  min-height: 150px !important;
  margin: 0 !important;
  padding: 14px 18px !important;
  box-sizing: border-box !important;
  background: linear-gradient(180deg, #f6fbf8 0%, #edf7f1 100%) !important;
  border-bottom: 1px solid #e1ece5 !important;
  overflow: hidden !important;
}

html body .cmp_article_list .obj_article_summary > .thumbnail img,
html body .section .articles .obj_article_summary > .thumbnail img,
html body .current_issue .articles .obj_article_summary > .thumbnail img,
html body .page_issue .articles .obj_article_summary > .thumbnail img {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: 120px !important;
  max-height: 120px !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 6px 16px rgba(15,81,50,.10) !important;
}

/* If the old default placeholder is shown, make it less visually dominant */
html body .obj_article_summary > .thumbnail img[alt="No cover"] {
  max-width: 84px !important;
  height: 110px !important;
  opacity: .7 !important;
  box-shadow: none !important;
}

/* Slightly reduce minimum card height now that an image occupies the top */
html body .cmp_article_list .obj_article_summary,
html body .section .articles .obj_article_summary,
html body .current_issue .articles .obj_article_summary,
html body .page_issue .articles .obj_article_summary {
  min-height: 390px !important;
}

@media (max-width: 767px) {
  html body .cmp_article_list .obj_article_summary > .thumbnail,
  html body .section .articles .obj_article_summary > .thumbnail,
  html body .current_issue .articles .obj_article_summary > .thumbnail,
  html body .page_issue .articles .obj_article_summary > .thumbnail {
    height: 135px !important;
    min-height: 135px !important;
    padding: 12px 14px !important;
  }

  html body .cmp_article_list .obj_article_summary > .thumbnail img,
  html body .section .articles .obj_article_summary > .thumbnail img,
  html body .current_issue .articles .obj_article_summary > .thumbnail img,
  html body .page_issue .articles .obj_article_summary > .thumbnail img {
    height: 105px !important;
    max-height: 105px !important;
  }

  html body .cmp_article_list .obj_article_summary,
  html body .section .articles .obj_article_summary,
  html body .current_issue .articles .obj_article_summary,
  html body .page_issue .articles .obj_article_summary {
    min-height: 0 !important;
  }
}

/* ===============================================================
   V2.1.11 — premium article card refinement
   =============================================================== */

/* Slightly airier grid */
html body .cmp_article_list,
html body ul.cmp_article_list,
html body .section .articles,
html body .current_issue .articles,
html body .page_issue .articles {
  gap: 22px !important;
}

/* Softer, more editorial card */
html body .cmp_article_list .obj_article_summary,
html body .section .articles .obj_article_summary,
html body .current_issue .articles .obj_article_summary,
html body .page_issue .articles .obj_article_summary {
  min-height: 475px !important;
  border: 1px solid #dce9e0 !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 24px rgba(15,81,50,.08) !important;
}

html body .cmp_article_list .obj_article_summary:hover,
html body .section .articles .obj_article_summary:hover,
html body .current_issue .articles .obj_article_summary:hover,
html body .page_issue .articles .obj_article_summary:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 18px 38px rgba(15,81,50,.14) !important;
}

/* Turn the old full-width strip into a floating article-type badge */
html body .cmp_article_list .obj_article_summary::before,
html body .section .articles .obj_article_summary::before,
html body .current_issue .articles .obj_article_summary::before,
html body .page_issue .articles .obj_article_summary::before {
  content: 'Research Article' !important;
  position: absolute !important;
  z-index: 5 !important;
  top: 14px !important;
  left: 14px !important;
  width: auto !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  background: rgba(15,81,50,.94) !important;
  box-shadow: 0 5px 14px rgba(15,81,50,.20) !important;
  color: #ffffff !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  letter-spacing: .01em !important;
}

/* Cover becomes the visual hero of each card */
html body .cmp_article_list .obj_article_summary > .thumbnail,
html body .section .articles .obj_article_summary > .thumbnail,
html body .current_issue .articles .obj_article_summary > .thumbnail,
html body .page_issue .articles .obj_article_summary > .thumbnail {
  height: 172px !important;
  min-height: 172px !important;
  padding: 24px 22px 16px !important;
  background:
    radial-gradient(circle at 85% 15%, rgba(25,135,84,.10), transparent 34%),
    linear-gradient(180deg,#f7fcf9 0%,#edf8f1 100%) !important;
  border-bottom: 1px solid #dce9e0 !important;
}

html body .cmp_article_list .obj_article_summary > .thumbnail img,
html body .section .articles .obj_article_summary > .thumbnail img,
html body .current_issue .articles .obj_article_summary > .thumbnail img,
html body .page_issue .articles .obj_article_summary > .thumbnail img {
  height: 128px !important;
  max-height: 128px !important;
  max-width: 88% !important;
  object-fit: contain !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 22px rgba(15,81,50,.10) !important;
  transition: transform .25s ease, box-shadow .25s ease !important;
}

html body .obj_article_summary:hover > .thumbnail img {
  transform: scale(1.025) !important;
  box-shadow: 0 12px 26px rgba(15,81,50,.14) !important;
}

/* Body spacing */
html body .cmp_article_list .obj_article_summary > .summary-content,
html body .section .articles .obj_article_summary > .summary-content,
html body .current_issue .articles .obj_article_summary > .summary-content,
html body .page_issue .articles .obj_article_summary > .summary-content {
  padding: 20px 18px 16px !important;
}

/* Natural-case title with a consistent visual height */
html body .obj_article_summary .title {
  position: relative !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin: 0 0 9px !important;
  font-size: 18px !important;
}

html body .obj_article_summary .title > a,
html body .obj_article_summary .title > a:visited {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 4 !important;
  overflow: hidden !important;
  color: #0f5132 !important;
  font-size: 18px !important;
  font-weight: 750 !important;
  line-height: 1.34 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

html body .obj_article_summary .article-id {
  flex: 0 0 auto !important;
  margin: 1px 0 0 !important;
  padding: 4px 8px !important;
  background: #edf7f1 !important;
  border: 1px solid #d9eadf !important;
  color: #4f6f5b !important;
  font-size: 10.5px !important;
}

html body .obj_article_summary .authors {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
  min-height: 39px !important;
  margin: 0 0 10px !important;
  color: #5d6b62 !important;
  font-size: 12.8px !important;
  line-height: 1.5 !important;
}

/* Short abstract preview adds useful context without making cards huge */
html body .obj_article_summary .rans-card-abstract {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
  overflow: hidden !important;
  margin: 0 0 14px !important;
  color: #6b756f !important;
  font-size: 12.7px !important;
  line-height: 1.58 !important;
}

/* Footer sticks to the bottom, making all cards feel uniform */
html body .obj_article_summary .rans-card-footer {
  margin-top: auto !important;
  padding-top: 12px !important;
  border-top: 1px solid #edf3ef !important;
}

html body .obj_article_summary .rans-card-doi {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  min-width: 0 !important;
  margin-bottom: 12px !important;
}

html body .obj_article_summary .rans-card-doi .ai-doi {
  flex: 0 0 auto !important;
  color: #c77700 !important;
  font-size: 17px !important;
}

html body .obj_article_summary .rans-card-doi a,
html body .obj_article_summary .rans-card-doi a:visited {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #607067 !important;
  font-size: 11.5px !important;
  text-decoration: none !important;
}

html body .obj_article_summary .rans-card-doi a:hover,
html body .obj_article_summary .rans-card-doi a:focus {
  color: #198754 !important;
  text-decoration: underline !important;
}

html body .obj_article_summary .rans-card-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 9px !important;
}

html body .obj_article_summary .rans-view-article,
html body .obj_article_summary .rans-view-article:visited,
html body .obj_article_summary .rans-pdf-button,
html body .obj_article_summary .rans-pdf-button:visited {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 9px 10px !important;
  border-radius: 9px !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

html body .obj_article_summary .rans-view-article,
html body .obj_article_summary .rans-view-article:visited {
  border: 1px solid #d3e6da !important;
  background: #f4faf6 !important;
  color: #0f5132 !important;
}

html body .obj_article_summary .rans-view-article:hover,
html body .obj_article_summary .rans-view-article:focus {
  border-color: #198754 !important;
  background: #eaf7ef !important;
  color: #0f5132 !important;
}

html body .obj_article_summary .rans-pdf-button,
html body .obj_article_summary .rans-pdf-button:visited {
  border: 1px solid #198754 !important;
  background: #198754 !important;
  color: #ffffff !important;
}

html body .obj_article_summary .rans-pdf-button:hover,
html body .obj_article_summary .rans-pdf-button:focus {
  border-color: #0f5132 !important;
  background: #0f5132 !important;
  color: #ffffff !important;
}

/* The previous template row is no longer used in V2.1.11 */
html body .obj_article_summary .summary-content > .mt-2.d-flex {
  display: none !important;
}

/* Refine the ARTICLES heading to look like a clean journal section divider */
html body .page_issue .section > h2,
html body .page_index_journal .section > h2,
html body .current_issue .section > h2,
html body .section > h2.title {
  margin: 30px 0 18px !important;
  padding: 0 0 10px !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid #dce9e0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #0f5132 !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  letter-spacing: .06em !important;
}

@media (max-width: 767px) {
  html body .cmp_article_list .obj_article_summary,
  html body .section .articles .obj_article_summary,
  html body .current_issue .articles .obj_article_summary,
  html body .page_issue .articles .obj_article_summary {
    min-height: 0 !important;
    border-radius: 15px !important;
  }

  html body .cmp_article_list .obj_article_summary > .thumbnail,
  html body .section .articles .obj_article_summary > .thumbnail,
  html body .current_issue .articles .obj_article_summary > .thumbnail,
  html body .page_issue .articles .obj_article_summary > .thumbnail {
    height: 158px !important;
    min-height: 158px !important;
    padding: 22px 16px 14px !important;
  }

  html body .cmp_article_list .obj_article_summary > .thumbnail img,
  html body .section .articles .obj_article_summary > .thumbnail img,
  html body .current_issue .articles .obj_article_summary > .thumbnail img,
  html body .page_issue .articles .obj_article_summary > .thumbnail img {
    height: 116px !important;
    max-height: 116px !important;
  }

  html body .obj_article_summary .title > a,
  html body .obj_article_summary .title {
    font-size: 17px !important;
  }

  html body .obj_article_summary .rans-card-actions {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 420px) {
  html body .obj_article_summary .rans-card-actions {
    grid-template-columns: 1fr !important;
  }
}
