/* Ordered list coloring & indentation is adapted from:
 *   https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Lists_and_Counters/Using_CSS_counters#Example_of_a_nested_counter
 *
 * Sectioning semantics uses rules taken from:
 *   https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Using_HTML_sections_and_outlines
 *   specifically:
 *    - There should be a single, top-level section element to define a document, which should contain the document's header and footer.
 *    - The header should contain a single h1 tag, followed by zero or more p tags.
 *    - Each sub-heading should be in its own sub-section, with zero or more following p tags.
 *    - sub-sections should be nested according to their heading level.  E.g the h1 section may contain h2 sections, which may contain h3 sections, etc.
 */

:root {
    --document-heading-align: left;
    --document-figure-align: center;
    --document-normal-align: justify;
    --document-list-align: left;
    --document-footer-align: center;
}

section.document {
    padding: 5vh 3vh;
    text-align: center;
}

section.document audio {
    display: inline-block;
    width: 50vw;
    font-size: 1.5rem;
}

section.document p {
    text-align: var(--document-normal-align, left);
}

section.document header h1 {  /* Document title.  Should be only one of these per page. */
    text-align: var(--document-heading-align, left);
    padding: 0;
    margin: 0;
    color: var(--c1, black);
}

section.document header p {  /* <P> in header assumed to be subtitle. */
    text-align: var(--document-normal-align, left);
    font-size: 120%;
    font-style: italic;
    font-weight: normal;
    padding: 0;
    margin: 0;
    color: var(--c2, black);
}

section.document section h2 {
    text-align: var(--document-heading-align, left);
    padding-bottom: 0;
    margin-bottom: 0;
    color: var(--c3, black);
}

section.document section h3 {
    text-align: var(--document-heading-align, left);
    padding-bottom: 0;
    margin-bottom: 0;
    color: var(--c4, black);
}

section.document section h4 {
    text-align: var(--document-heading-align, left);
    padding-bottom: 0;
    padding-left: 1vh;
    margin-bottom: 0;
    border-left: 30px solid var(--c5, black);
    color: var(--c6, black);
}

section.document section h5 {
    text-align: var(--document-heading-align, left);
}

section.document section h6 {
    text-align: var(--document-heading-align, left);
}

section.document p a {
    color: var(--c8, blue);
}

section.document p a:visited {
    color: var(--c9, purple);
}

section.document p a:active {
    color: var(--c10, red);
}

section.document p q {  /* inline quote */
    font-style: italic;
}

section.document p strong.inline {
    font-style: italic;
}

section.document p.strongblock {
    font-size: 130%;
    text-align: center;
    font-style: italic;
}

section.document p.strongblock:before {
    content: '\301C\ ';
}

section.document p.strongblock:after {
    content: ' \301C';
}

section.document blockquote {
    text-align: center;
    font-weight: bold;
    font-size: 110%;
    font-style: italic;
    margin-left: 50px;
    margin-right: 50px;
}

section.document blockquote::before {
    font-family: icofont;
    content: "\EFCD";  /* quote-left */
    font-weight: normal;
    padding-right: 5px;
    color: #CCC;
}

section.document blockquote::after {
    font-family: icofont;
    content: "\EFCE";  /* quote-right */
    font-weight: normal;
    padding-left: 5px;
    color: #CCC;
}

section.document .citeblock {    
    font-style: italic;
    text-align: center;
    margin-top: 0;
    padding-top: 0;
    margin-left: 50px;
    margin-right: 50px;
}

section.document .cite-block::before {
    content: "\2E3A";  /* two-em dash */
    padding-right: 2px;
}

section.document figure {
    text-align: var(--document-figure-align, left);
}

section.document figure img {
    max-width: 70vw;
    border: 2px solid var(--c11, 'white');
}

section.document figcaption {
    text-align: var(--document-figure-align, left);
}

 section.document ol {
     display: inline-block;
     counter-reset: section;
     list-style-type: none;
 }

 section.document ol li::before {
     counter-increment: section;
     content: counters(section, ".") ". ";
     color: var(--c7, 'black');
     font-style: italic;
     padding-right: 10px;
 }
 
 section.document li {
    text-align: var(--document-list-align, left);
    padding-bottom: 10px;
 }
 
 section.document footer {
     border-top: 1px solid var(--c12, black);
 }
 
 section.document footer p {
     text-align: var(--document-footer-align, left);
     font-style: italic;
     color: var(--c13, black);
 }