/* ===== Journal of Shari'ah Sciences: XML article rendering ===== */

/* KFGQPC Qur'an font for verses (original file, unmodified) */
@font-face {
  font-family: "KFGQPC HAFS Uthmanic Script";
  src: url("/static/ilmovas/fonts/UthmanicHafs_V22.ttf") format("truetype");
  font-display: swap;
}

/* Verses: KFGQPC font; Amiri supplies the ornate brackets */
#main_article .styled-content {
  font-family: "KFGQPC HAFS Uthmanic Script", "Amiri", serif;
  color: #0D4F3C;
}

/* A verse citation never breaks across lines */
#main_article .named-content.quran-citation {
  white-space: nowrap;
}

/* Paragraphs */
#main_article .article-section p {
  margin: 0 0 0.9em;
  line-height: 1.95;
  text-align: justify;
}

/* Section, reference-list and footnote headings: centred, rule above */
#main_article .article-section h2,
#main_article #reflist #reference-header,
#main_article h2:has(+ ol.footnotes) {
  font-family: "Tajawal", sans-serif;
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.5;
  color: #0D4F3C;
  text-align: center;
  margin: 2.6rem 0 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid #D9CFB6;
}

/* Subsection */
#main_article .article-section h3 {
  font-family: "Tajawal", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.5;
  color: #0D4F3C;
  margin: 2rem 0 0.6rem;
}

/* Sub-subsection */
#main_article .article-section h4 {
  font-family: "Tajawal", sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #146B52;
  margin: 1.4rem 0 0.5rem;
}

/* References: no list markers, hanging indent */
#main_article #reflist ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#main_article #reflist li {
  padding-inline-start: 2rem;
  text-indent: -2rem;
  margin-bottom: 0.45rem;
  line-height: 1.85;
  text-align: justify;
}

/* Footnotes: Eastern Arabic numerals in Arabic articles */
#main_article[lang="ar"] ol.footnotes {
  list-style-type: arabic-indic;
}
#main_article ol.footnotes {
  margin-top: 0.5rem;
  font-size: 0.95em;
  line-height: 1.8;
}
#main_article ol.footnotes li {
  margin-bottom: 0.4rem;
}

/* Footnote back-link: hide the XSL text and show a return arrow */
#main_article a.footnotemarker {
  font-size: 0;
  text-decoration: none;
}
#main_article a.footnotemarker::after {
  content: "↩";
  font-size: 1rem;
}
