html {
  font-size: 100%;         /* respects browser/user default (~16px) */
}

body{
    background-color: #C6A575; 
    background-image: none; 
    background-position: center top;
    background-repeat: no-repeat, space;
}

/* Reset anything that might be pushing the whole page inward */
html, body {
  margin: 0;
  padding: 0;
}

div#outer {
  margin: 0;
  padding: 0;
  width: 100%;
}

.page-wrapper {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1 { font-size: 2.5rem; }  /* slightly smaller than 3rem so chapter titles fit better */
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; margin-top: 1rem; margin-bottom: 0.2rem;}
h4 { font-size: 1.25rem; text-align: center;}
p, li { font-size: 1.15rem; line-height: 1.6; }
h1, h2, h3, h4, [id] {
  scroll-margin-top: 1rem;
  scroll-margin-left: 0;   /* or a small positive value if needed */
}

.nephnote
{
    font-family: Verdana, Arial, sans-serif;
    position: relative;
    font-size: 0.85rem;
}

.listset
{
       list-style-type: none;
       margin-left: 20px;
}

.hangingindent {
  padding-left: 22px ;
  text-indent: -22px ;
}
.text
{
    text-align: left;
    list-style-type: none;
}

.listtextnormal
{
    text-align: left;
    list-style-type: none;
    font-size: 22px;
    margin-left: 20px;
    margin-top: 5px;
    padding-left: 22px ;
    text-indent: -25px ;
}

.liststyleset
{
        list-style-type:  square;
        text-indent: 0px;
}

.listtextnormal-ol
{
    text-align: left;
    font-size: 22px;
    margin-left: 20px;
    margin-top: 5px;
     padding-left: 22px ;

}

h2#TOCHead
{
    margin-top: 25px;
}
ul#tocitems
{
    margin-top: 5px;
}

.scripture
{
    font-size: 1.4rem;
    font-family:serif;
    margin: 0 30px;
}
.scripturespan
{
    font-size: 1.4rem;
    font-family:serif;
    margin: 0 0px;
}
.listspecial
{
        margin: 0 30px;
}
.paren
{
    font-size: 1.2rem;
    font-style: italic;
}

.headers
{
    color: #7F612D;
    font-size: 2rem;
    font-weight: bold;
}
.notes
{
    color: #7F612D;
    font-size: 0.8rem;
    font-weight: normal;
}

ul#quotelinks
{
    list-style-type: none;
    left: -17px;
    font-size: 1.25rem;
    left: -17px;
    font-size: 1.25rem;
}
ul#quotelinks li 
{
    display: inline;
}

h4 
{font-size: 0.8rem;
 font-weight: normal;
 text-align: center;

}


div#content
{
    font-size: 1.6rem;
    height: 707px;
    width: 523px;
    padding: 0px 27px 0 15px;
    left: -9px;
}

l#footlinks
{
    list-style-type: none;
    left: -17px;
    font-size: 1.25rem;
    left: -17px;
    font-size: 1.25rem;
 }
ul#footlinks li 
{
    display: inline-flex;
    margin: 10px -4px;
    padding-left: 0px;
    text-indent: -3px;
}

div#endnotes
{
    background-image: url(images/white-50pct-opaque.png);
    background-repeat: repeat;
    background-attachment: fixed;
    font-size: 1.6rem;
    height: 707px;
    width: 523px;
    padding: 0px 27px 0 15px;
    left: -9px;
}

.centerimage
{
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 30%;
}
.centernormalimage
{
  display: block;
  margin-left: auto;
  margin-right: auto;
    
}
.orderedlist
{
    margin-left: 30px;
}
.listlink
{
  position: relative;
  left: -415px;
  top: 103px;
  width: 1000px;
}
.boldheads
{
    font-weight: bold;
}
.nestedolLT10
{
  padding-left: 33px;
  text-indent: -28px;
}
.nestedolGT10
{
  padding-left: 22px;
  text-indent: -28px;
    
}
.reffont
{
    font-size: 1.4rem;
    vertical-align: super;
}
a.reffont
{
    color:#0b19b2;
}
a.reffont:visited
{
    color:#561072;
}

.toc-sidebar {
  width: 200px;           /* or whatever narrow width you settled on */
  flex-shrink: 0;
  margin: 0;
  padding: 1rem 0.75rem;
  background: transparent;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  box-sizing: border-box;
}

.toc-sidebar,
.toc-sidebar a,
.toc-sidebar li {
  font-size: 0.7rem;     /* significantly smaller than the 1.15rem body text */
  line-height: 0.5rem;
}

.toc-sidebar a {
  line-height: 1.4;
}


.toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.toc-header h2 {
  margin: 0;
  font-size: 1.15rem;
}

.toc-toggle {
  display: none; /* shown on small screens via media query */
  background: none;
  border: 1px solid #ccc;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
}

.toc ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.toc ul ul {
  padding-left: 1.1rem;
  margin-top: 0.15rem;
}

.toc a {
  display: block;
  color: #333;
  text-decoration: none;
  border-radius: 3px;
}

.toc a:hover,
.toc a:focus {
  background: #e8f0fe;
  color: #0b57d0;
}

.toc a.active {
  background: #d2e3fc;
  color: #0b57d0;
  font-weight: 600;
}

.content {
  flex: 1;
  min-width: 0;
}

/* Mobile: hide sidebar by default, show toggle */
@media (max-width: 900px) {
  .page-wrapper {
    flex-direction: column;
  }
  .toc-sidebar {
    position: relative;
    top: 0;
    width: 100%;
    max-height: none;
    margin-bottom: 1rem;
  }
  
  .toc-sidebar li {
  margin: 0.05rem 0;
  line-height: 1.25;
}
.toc-sidebar a,
.toc a {
  display: block;
  /*padding: 0.08rem 0.2rem;     /* tighter vertical & horizontal */
  margin: 0;
  line-height: 1.25;
}

.toc-sidebar li,
.toc li {
  margin: 0.05rem 0;
  padding: 0;
  line-height: 1.25;
}

/* Reduce indent depth */
.toc-sidebar .level1,
.toc .level1,
#tocitems .level1 {
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.toc-toggle {
    display: block;
  }

.toc-sidebar.collapsed .toc {
    display: none;
  }
}

.document-content {
  flex: 1;
  max-width: 720px;       /* reading width */
  margin-left: auto;
  margin-right: auto;     /* this centers it in the remaining space */
  padding: 1.5rem 2rem 2rem 2rem;
  box-sizing: border-box;
}

/* sbTOC Indents */
a.level1,
a.level2,
a.level3,
a.level4 {
  margin: 0 !important;
  padding-left: 0rem !important;
  }

a.level2 {
  padding-left: 1.0rem !important;
}

a.level3 {
  padding-left: 1.5rem !important;
  line-height: 1rem;
}

a.level4 {
  padding-left: 2.0rem !important;
  line-height: 1rem;
}

/*Set return link to send a few lines previous */
[id^="par"] {
  scroll-margin-top: 4rem;   /* adjust the value to taste */
}