/* Make footnote reference numbers smaller */
.footnote-ref sup {
  font-size: 0.75em !important;
  vertical-align: super !important;
  line-height: 1 !important;
}

/* Optional: reduce link area in reference */
.footnote-ref {
  font-size: 0.75em !important;
}

/* Force consistent line height for all paragraphs */
p {
  line-height: 1.5;
}

h1 {
  text-align: center;
}


body > *:first-of-type {
  text-align: center;
}

/* Justify main body text */
body, 
p {
  text-align: justify;       /* make text align both left and right */
  text-justify: inter-word;   /* optional: spacing between words for better justification */
}

/* Centre the quote paragraph (second paragraph) */
body > p:nth-of-type(2) {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

body {
  font-size: 130%; /* or 120%, 125%, etc. */
}

/* Remove underline / link styling on footnote reference numbers */
a.footnote-ref,
a.footnote-ref sup {
  text-decoration: none !important; /* no underline */
  color: inherit !important;         /* keep same text color as body */
}

/* Parchment texture background */
body {
  background-image: url("parchment.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}


body {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)),
    url("parchment.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}


/* Restore normal left‑justified layout for the footnote list */
.footnotes,
.footnotes ol,
.footnotes li {
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}


/* Make footnote text smaller */
.footnotes ol {
  font-size: 0.9em;        /* adjust to suit */
  line-height: 1.2;        /* tighter within each item */
  margin-top: 0.5em;       /* less space above the whole list */
  margin-bottom: 0.5em;
}

/* Reduce spacing between individual footnotes */
.footnotes ol li {
  margin-top: 0.3em;       /* smaller gap between list items */
  margin-bottom: 0;        /* no extra margin below each item */
  padding-top: 0.2em;
  padding-bottom: 0.2em;
}
   



/* Make footnotes more compact */

/* Remove default list spacing */
.footnotes ol {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  padding-left: 1.5em;   /* keep numbering aligned */
  list-style-position: outside;
}

/* Ensure tight spacing inside footnote items */
.footnotes ol li {
  margin-top: 0;         /* no extra space before each footnote */
  margin-bottom: 0;      /* no extra space after */
  padding-top: 0.2em;    /* small space above text if needed */
  padding-bottom: 0.2em; /* small space below text if needed */
  line-height: 1.3;      /* comfortable but tight */
}

/* If each footnote has its own paragraph, reduce that too */
.footnotes ol li p {
  margin-top: 0;
  margin-bottom: 0;
}

