article.text p, article.text ul, article.text ol, article.text h4, article.text h5, article.text h6, article.text blockquote {
    margin-left: 9rem;
    margin-right: 0;
    max-width: 80ch;
}

article.notes p, article.notes ul, article.notes ol, article.notes h4, article.notes h5, article.notes h6, article.notes blockquote {
    max-width: 80ch;
}

article.text blockquote p, article.text blockquote ul {
    margin-left: 2rem;
}

article.text blockquote blockquote, article.text blockquote blockquote blockquote, article.text blockquote blockquote blockquote blockquote, article.text blockquote blockquote blockquote blockquote blockquote {
    margin-left: 2rem;
}

article.text figure p {
    margin: 0;
}

article.text h3 + figure, article.text p + figure, article.text blockquote + figure {
    margin-top: 1rem;
}

article.text ul.chapterList {
    margin-left: 5rem;
    margin-right: 5rem;
    max-width: none;
}

article.text h3 {
    display: block;
    width: 8rem;
    text-align: right;
    font-size: 3rem;
    font-weight: 800;
    float: left;
    margin: 6px 0 0 -4px;
}

article.text h3.subtitle {
    float: none;
    width: auto;
    text-align: left;
    margin-top: -1rem;
    margin-left: 5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

article.text p.editorNote {
	color: rgb(112, 114, 117);
	font-weight: 600;
	font-style: italic;
	margin-top: 0.8rem;
	margin-bottom: 0;
	max-width: 80ch;
}

article.text p.editorNote em {
    font-style: normal;
    font-weight: 500;
}

article.text sup, sup {
    vertical-align: top;
    font-size: 0.8rem;
}

article.text sup.v {
	display: inline-block;
	font-size: 0.8rem;
	margin-right: 0.15rem;
	font-style: normal;
	text-align: right;
	cursor: pointer;
	color:rgb(0, 132, 189);
}

article.text sup.vi {
    display: inline;
    margin-right: 0.05rem;
}

article.text sup.v:hover {
    text-decoration: underline;
	text-decoration-style: dotted;
}

article.text sup.v1d {
	width: 0.6rem;
	margin-left: -0.8rem;
}

article.text sup.v2d {
	width: 1rem;
	margin-left: -1.2rem;
}

article.text sup.v3d {
	width: 1.5rem;
	margin-left: -1.6rem;
}

article.text sup.v5d {
	width: 2rem;
	margin-left: -2.1rem;
}

article.text p.superscription {
	font-size: 1rem;
	font-weight: 600;
	font-style: italic;
	max-width: 50ch;
}

article.text div.large-gap {
	display: block;
	max-width: 80ch;
	padding: 1px 0 1px 0;
    margin-left: 9rem;
	box-sizing: content-box;
}

article.text div.large-gap hr {
	border: 0;
    border-top-width: 14px;
    border-top-style: dotted;
	border-top-color: rgba(0, 0, 0, 0.2);
    width: 14ch;
    margin: 4rem auto 3rem auto;
}

article.text div.medium-gap {
	height: 1.8rem;
}

span.j, span.y, span.m, span.js, span.ys, span.is {
	display: inline;
}

span.y, span.m, span.ys, span.is {
	display: none;
}

span.editor {
    font-style: italic;
    font-size: 0.8em;
    opacity: 0.7;
    vertical-align:top;
}

article.text a[href^='/articles/spurious-texts#'] {
    vertical-align: text-top;
    display: inline-block;
    padding: 0 0.08rem 0 0.1rem;
    font-size: 0.75rem;
}

article.text h4.chapter-title {
	margin: 1.3rem 0 1rem 9rem;
    font-style: italic;
}

ul.downloadsList {
	display: grid;
    max-width: 80ch;
	list-style: none;
	gap: 1rem;
	padding: 0;
	grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}

ul.downloadsList.vertical {
	grid-template-columns: 1fr;
}

ul.downloadsList.vertical li {
	margin-right: 5rem;
}

ul.downloadsList li {
	text-align: left;
}

ul.downloadsList li a {
	display: block;
	padding: 1rem;
	height: 100%;
	text-decoration: none;
	background-color: rgb(247, 245, 241);
	border-radius: 0.6rem;
}

section:nth-of-type(odd) ul.downloadsList li a {
	background-color: rgb(255, 255, 255);
}

section:nth-of-type(even) ul.downloadsList li a {
	background-color: rgb(247, 245, 241);
}

ul.downloadsList li a span {
	text-decoration: none;
}

ul.downloadsList li:hover a, section:nth-of-type(odd) ul.downloadsList li:hover a, section:nth-of-type(even) ul.downloadsList li:hover a {
	background-color: rgb(23, 159, 217);
	color: rgb(255, 255, 255);
}

div#allBooks {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
	gap: 1rem;
}

div#allBooks ul {
	margin: 0 0 4rem 0;
}

div#allBooks div.book {
	margin: 0 0 2rem 0;
}

div#allBooks ul.downloadsList li {
	margin: 0;
}

div.book-list-item {
	display: block;
	width: 225px;
}

section.contents {
    padding: 3rem 0 5rem 0;
}

article.text section.bookNavigation {
    margin-top: 0;
}

article.text section.bookNavigation p {
    margin-left: 5rem;
    margin-right: 5rem;
}

section.bookNavigation p.previousLink {
    float: left;
	text-align: left;
}

section.bookNavigation p.nextLink {
	text-align: right;
    max-width: none;
}

section.bookNavigation p a:hover {
    text-decoration: none;
}

section.bookNavigation p a:hover span {
    text-decoration: underline;
}

section.bookNavigation p.nextLink a::after {
	content: '\f061';
	font-family: 'Font Awesome 6 Free';
	font-style: normal;
	font-weight: 900;
	font-display: block;
	font-size: 1.5rem;
	vertical-align: middle;
	margin-left: 0.5rem;
}

section.bookNavigation p.previousLink a::before {
	content: '\f060';
	font-family: 'Font Awesome 6 Free';
	font-style: normal;
	font-weight: 900;
	font-display: block;
	font-size: 1.5rem;
	vertical-align: middle;
	margin-right: 0.5rem;
}

/* --- Context --- */

aside.context {
    border: 1px solid rgb(223, 218, 218);
    background-color: rgb(247, 245, 241);
    border-radius: 0.5rem;
    padding: 1rem 1rem 1.5rem 4rem;
    margin: 3rem 0 0 9rem;
    max-width: 80ch;
}

section:nth-of-type(even) aside.context {
    background-color: rgb(255, 255, 255);
}

figure + aside.context, h3 + aside.context, h4.chapter-title + aside.context {
    margin-top: 1rem;
}

aside.context::before {
    content: '\f05a';
    float: left;
    color: rgb(112, 114, 117);
    font-family: 'Font Awesome 6 Free';
	font-style: normal;
	font-weight: 900;
    font-size: 1.8rem;
    margin-left: -2.5rem;
}

aside.context ul {
    margin-left: 0;
    margin-right: 2rem;
}

aside.context p, aside.context li {
    margin-left: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgb(26, 27, 27);
}

aside.context p:first-of-type {
    margin-top: 0;
}

/* --- Note boxes --- */

p.noteBox {
    border: 1px solid rgb(223, 218, 218);
    background-color: rgb(247, 245, 241);
    border-radius: 0.5rem;
    padding: 1rem 1rem 1.5rem 4rem;
    margin: 3rem auto;
    max-width: 700px;
    min-height: 5rem;
}

p.noteBox::before {
    content: '\f05a';
    float: left;
    color: rgb(112, 114, 117);
    font-family: 'Font Awesome 6 Free';
	font-style: normal;
	font-weight: 900;
    font-size: 1.8rem;
    margin-left: -2.5rem;
    margin-top: -0.2rem;
}

body.textSubheadingsOff article.text h4.chapter-title {
    display: none;
}

body.illustrationsOff article.text figure {
    display: none;
}

