/* JATS article body rendering styles */

.article_text {
  font-family: 'Amiri', Georgia, serif;
  font-size: 1.1em;
  line-height: 1.8;
  color: #333;
}

.article_text section {
  margin-bottom: 1.5em;
}

.article_text h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3em;
  font-weight: 700;
  margin: 1.5em 0 0.75em;
  color: #222;
}

.article_text p {
  margin-bottom: 1em;
  text-align: justify;
}

/* Footnote references (superscript numbers in text) */
.article_text a.fn-ref {
  text-decoration: none;
  color: #1E6292;
}

.article_text a.fn-ref sup {
  font-size: 0.75em;
  padding: 0 1px;
}

/* Figures */
.article_text .article-figure {
  margin: 2em 0;
  text-align: center;
}

.article_text .article-figure img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.article_text .article-figure figcaption {
  font-size: 0.9em;
  line-height: 1.5;
  color: #555;
  text-align: left;
  margin-top: 0.75em;
  padding: 0 1em;
}

/* Tables */
.article_text .article-table {
  margin: 2em 0;
}

.article_text .table-caption {
  font-size: 0.95em;
  margin-bottom: 0.75em;
}

.article_text .table-responsive {
  overflow-x: auto;
}

.article_text .table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
  font-family: 'Montserrat', sans-serif;
}

.article_text .table th,
.article_text .table td {
  padding: 0.5em 0.75em;
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: top;
}

.article_text .table thead th {
  background: #f5f5f5;
  font-weight: 700;
}

/* Block quotes */
.article_text .disp-quote {
  margin: 1.5em 2em;
  padding-left: 1em;
  border-left: 3px solid #ccc;
  font-style: italic;
}

.article_text .disp-quote footer {
  font-style: normal;
  font-size: 0.9em;
  margin-top: 0.5em;
  color: #666;
}

/* Footnotes section */
.article_text .article-footnotes {
  margin-top: 3em;
  padding-top: 1.5em;
  border-top: 1px solid #ddd;
}

.article_text .article-footnotes h2 {
  font-size: 1.1em;
}

.article_text .footnotes-list {
  font-size: 0.85em;
  line-height: 1.6;
  padding-left: 1.5em;
}

.article_text .footnotes-list li {
  margin-bottom: 0.5em;
}

.article_text .footnotes-list .fn-back {
  text-decoration: none;
  color: #1E6292;
  margin-right: 0.25em;
}

/* References section */
.article_text .article-references {
  margin-top: 2em;
  padding-top: 1.5em;
  border-top: 1px solid #ddd;
}

.article_text .article-references h2 {
  font-size: 1.1em;
}

.article_text .references-list {
  font-size: 0.85em;
  line-height: 1.6;
  padding-left: 1.5em;
}

.article_text .references-list li {
  margin-bottom: 0.5em;
}

/* Lists */
.article_text ul,
.article_text ol {
  margin: 1em 0 1em 1.5em;
}

.article_text li {
  margin-bottom: 0.5em;
}

/* Verse */
.article_text .verse {
  margin: 1.5em 2em;
  font-style: italic;
  line-height: 1.8;
}

/* Inline graphics */
.article_text .inline-graphic {
  vertical-align: middle;
  max-height: 1.5em;
}

/* Cross-reference links */
.article_text a.fig-ref,
.article_text a.table-ref,
.article_text a.bibr-ref {
  color: #1E6292;
  text-decoration: none;
}

.article_text a.fig-ref:hover,
.article_text a.table-ref:hover,
.article_text a.bibr-ref:hover {
  text-decoration: underline;
}
