:root {
  --height: 100vmax;
  --height: 100dvmax;
  --width: 100vmin;
  --vmin: calc(var(--width) * 1 / 100); /* Matches the value of 1vmin in the context of an iframed page. */
  --vmax: calc(var(--height) * 1 / 100);
}

*,
*:after,
*:before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

/* FACT: div.parchment element is equal to the html, body { } elements of an iframed page. */
html,
body {
  background: white;
  font-size: calc(4 * var(--vmin));
  line-height: calc(4 * var(--vmin) * 1.5);
  font-style: normal;
  font-synthesis: none;
  font-stretch: ultra-condensed;
  font-variant: no-common-ligatures proportional-nums slashed-zero;
  font-kerning: normal;
  text-rendering: geometricPrecision;

  font-family: "EB Garamond", serif; /* TODO: Feature => Apply Garamond font-family iff the template being used is NOVEL*/
}
/* Balanced Textbook Template STARTS here: */
.leaf {
  height: calc(100 * var(--vmax));
  width: calc(100 * var(--vmin));
  margin: auto;
}
.inner {
  width: 85%;
  height: 85%;
}
p {
  font-size: unset;
  font-size: calc(4 * var(--vmin));
  text-indent: calc(5 * var(--vmin));
  margin: 0 0 0 0;
}
p.start-chapter {
  text-indent: 0;
  margin: calc(5 * 4 * var(--vmin) * 1.5 - 2px) auto 0;
}
p.start-chapter::first-letter {
  /* initial-letter: 2;
  */
  margin: 0 calc(var(--vmin)) 0 0;
  float: left;
  font-size: calc(2 * 4 * var(--vmin) * 3 / 2);
  line-height: calc(2 * 4 * var(--vmin) * 1.5 * 0.95);
  font-family: "Berkshire Swash", cursive;
}
/* Manual Typesetting Helper Classes */
p.no-indent {
  text-indent: 0;
  /* Continue line printing on a new page with a break on the previous page, but no indent. */
}
p.stretch-last-line {
  text-align-last: justify;
  /* Not yet supported on Safari */
}
p.squeeze-para {
  letter-spacing: calc(-1 / 100 * var(--vmin));
  /* Handle orphans and widows manually */
}
p.stretch-para {
  letter-spacing: calc(1 / 100 * var(--vmin));
  /* Handle orphans and widows manually */
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Berkshire Swash", cursive;
  /* TODO: Feature => Apply Berkshire Swash font-family iff the template being used is NOVEL */
  margin: 0 0;
  padding: 0;
  font-weight: 100;
  color: #000;
}
h1 {
  width: 100%;
  text-align: center;
  line-height: calc(2 * 4 * var(--vmin) * 1.5);
  font-size: calc(8 * var(--vmin));
}
h2 {
  width: 100%;
  text-align: center;
  line-height: calc(2 * 4 * var(--vmin) * 1.5);
  font-size: calc(6 * var(--vmin));
}
h3 {
  width: 100%;
  text-align: center;
  line-height: calc(2 * 4 * var(--vmin) * 1.5);
  font-size: calc(5 * var(--vmin));
}
h4 {
  width: 100%;
  text-align: center;
  line-height: calc(2 * 4 * var(--vmin) * 1.5);
  font-weight: 100;
  font-size: calc(4 * var(--vmin));
}
h5 {
  width: 100%;
  text-align: center;
  line-height: calc(1 * 4 * var(--vmin) * 1.5);
  font-size: calc(4 * var(--vmin));
}
h6 {
  line-height: calc(1 * 4 * var(--vmin) * 1.5);
  font-size: calc(4 * var(--vmin));
}
a {
  color: #006eff;
  outline: 0 none;
  text-decoration: none;
}
a:focus,
a:active,
a:hover {
  outline: 0 none;
  color: #0b56ab;
}
img {
  border: 0;
  -ms-interpolation-mode: bicubic !important;
  display: block !important;
  margin: calc(1 / 2 * 4 * var(--vmin) * 1.5) auto;
}
.justify {
  text-align: justify;
}
.italic {
  font-style: italic;
}
.overlay {
  position: unset;
  overflow: unset;
  top: unset;
  left: unset;
  height: inherit;
  width: inherit;
  cursor: unset;
  z-index: unset;
  backdrop-filter: unset;
  display: unset;
}
.left {
  float: left;
}
.right {
  float: right;
}
.center {
  text-align: center;
  margin: inherit auto;
}
.small {
  font-size: 80%;
}
blockquote {
  text-align: center;
  font-style: italic;
  position: relative;
  quotes: "\201C""\201D""\2018""\2019";
  margin: calc(1 / 2 * (150 * var(--vmax) * (1115 / 1443)) / 100 * 7 / 5) auto;
  margin: calc(1 / 2 * 4 * var(--vmin) * 1.5) 0;
  margin: 0 0;
  display: inline-block;
  width: 100%;
}
blockquote > p,
blockquote > em {
  margin: 0 auto !important;
}
pre,
code {
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
  padding: 0;
  text-align: center;
  font-family: "EB Garamond", serif;
  font-style: normal;
  font-synthesis: none;
  font-stretch: ultra-condensed;
  font-variant: no-common-ligatures proportional-nums slashed-zero;
  font-size: calc(4 * var(--vmin));
  line-height: 1.5;
  font-kerning: normal;
  text-rendering: geometricPrecision;
}
ol {
  margin: calc((4 * var(--vmin) * 1.5) / 2) calc(5 * var(--vmin));
  padding: 0;
  list-style-type: none;
  counter-reset: step-counter calc(var(--start) - 1);
}
ol li::before {
  content: counter(step-counter) ". ";
  margin-right: var(--vmin);
  color: black;
  font-weight: bold;
}
ol li {
  counter-increment: step-counter;
}
ol li.split-li::before {
  content: "";
  margin-right: calc(-8 / 10 * var(--vmin));
  background-color: rgba(255, 255, 255, 1);
  color: black;
  font-weight: bold;
}
ul {
  margin: 0 0 0 calc(4 * var(--vmin));
  padding: 0;
  list-style: none;
}
ul li {
  margin: 0;
  padding: 0;
}
hr.section {
  border: 0;
  text-align: center;
  height: calc(4 * var(--vmin) * 1.5);
  margin: calc((4 * var(--vmin) * 1.5) / 2) 0;
}
hr.section::after {
  content: "";
}
hr.section::before {
  content: "⤝◈⤞";
  color: #000;
}
hr.balanced {
  border: 0;
  text-align: center;
  height: calc(4 * var(--vmin) * 1.5);
  margin: calc((4 * var(--vmin) * 1.5) / 2) 0;
}
hr.balanced::after {
  content: "";
}
hr.balanced::before {
  content: "☯";
  color: #000;
}
hr.chapter {
  border: 0;
  text-align: center;
  height: calc(4 * var(--vmin) * 1.5);
  margin: calc((4 * var(--vmin) * 1.5) / 2) 0;
}
hr.chapter::after {
  content: " ";
}
hr.chapter::before {
  content: "⤝◈◈◈⤞";
  color: #000;
}
hr {
  border: 0;
  text-align: center;
  margin: calc((4 * var(--vmin) * 1.5) / 2) 0;
  /* A break of one line only. */
  border-bottom: calc(0.1 * var(--vmin)) dashed rgba(0, 0, 0, 0.3);
}
/* Accessibility specific media queries go below. */

/* 1. Dark mode (or light) depending on requirement. */
@media screen and (prefers-color-scheme: dark) {
  body {
    background-color: #343434;
    color: #fff;
  }
}

/* 2. Override animations for users with motion sickness or other vestibular disorders. */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 3. Acquired notched space and make sure iOS Safari uses only the available vertical height (100vh). */
@supports (padding: max(0px)) {
  body,
  header,
  footer {
    padding-left: min(0vmin, env(safe-area-inset-left));
    padding-right: min(0vmin, env(safe-area-inset-right));
  }
  body {
    min-height: -webkit-fill-available;
  }
}

/* Balanced Textbook Template ENDS HERE: */
