* {
    margin: 0;
    padding: 0;
    font-size: 12pt;
    line-height: 1.3rem;
    font-family: "Century Supra B", serif;
}

@page {
    margin: 1in;
    width: 8.5in;
    height: 11in;

    @footnote {
        margin-top: 1rem;
        border-top: thin solid black;
        border-clip:  2.16667in;
        border-clip:  calc(8.5in/4);
    }
}

/* ===== Headings  ===== */

h1, h2, h3, h4, h5, h6 {
    color: #990000; /*Capen Brick*/
    margin-top: 1.3rem;
    margin-bottom: 0.5rem;
    page-break-after: avoid;
}

h1 {
    margin-top: 0;
    font-size: 16pt;
}

h2 {
    font-size: 14pt;
}

/* ===== Lists  ===== */

dl, ol, ul {
    margin-left: 3rem;
    margin-bottom: 1.3rem;
}

ul {
    list-style-type: disc;
}

dt {
    font-style: italic;
    font-weight: normal;
}

dd {
    margin-left: 1.5rem;
}

/* ===== Tables  ===== */

table {
    border-collapse: collapse;
    box-decoration-break: slice;
    margin: 1.3rem auto;
}

th, td {
    padding-top: 0.5rem;
    padding-right: 1rem;
    padding-bottom: 0.5rem;
}

th {
    vertical-align: bottom;
    font-weight: normal;
    text-align: center;
}

td {
    vertical-align: top;
}

tr {
    border-bottom: 1pt solid #E4E4E4; /*Baird Point*/
}

tr:first-of-type {
    border-top: 2pt solid black;
    border-bottom: 1pt solid black;
    
    page-break-after: avoid;
}

tr:last-of-type {
    border-bottom: 2pt solid black;
}

/* Table of Contents  */

#toc {
    border-top: 2pt solid black;
    border-bottom: 2pt solid black;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

#toc .leader::after {
    content: leader('.');
}

#toc .entry_page::after {
    content: target-counter(attr(href), page);
}

/* ===== Text  ===== */

p {
    margin-bottom: 1.3rem;
}

/* ===== Links  ===== */

a {
    color: #005bbb; /*UB Blue*/

    /* Add a zero-width space (Unicode character U+200B) after punctuation */
    prince-text-replace: "!" "!\200b"
                         "#" "#\200b"
                         "$" "$\200b"
                         "%" "%\200b"
                         "&" "&\200b"
                         "*" "*\200b"
                         "+" "+\200b"
                         "-" "-\200b"
                         "." ".\200b"
                         "=" "=\200b"
                         "?" "?\200b"
                         "@" "@\200b"
                         "_" "_\200b"
                         "~" "~\200b";
}

/* ===== Notes ===== */

aside * {
    font-family: "Concourse 3", sans-serif;
}

.fn {
    float: footnote;
    page-break-inside: avoid;
    font-size: 10pt;
}

.fn::footnote-call {
    content:  counter(footnote);

    font-variant: prince-opentype(sups(1));
}

/* TODO: Deprecated! */
.notabene {
/*    page-break-before: avoid;*/
/*    page-break-inside: avoid;*/
/*    page-break-after: avoid;*/
}

/* TODO: Deprecated! */
.notabene, .notabene * {
    font-family: "Concourse 3", sans-serif;
}

/* TODO: Deprecated! */
div.notabene > :first-child::before, p.notabene::before {
    content: "Nota bene: ";
    font-style: italic;
}

/* TODO: Deprecated! */
div.notabene {
    margin: 1.3rem 0 1.3rem 0;
    border: thick double #ffc72c; /*Bronze Buffalo*/
    box-decoration-break: slice;
    padding: 1.3rem 1.3rem 0 1.3rem;
}

/* TODO: Deprecated! */
p.notabene {
    padding-left: 1.5rem;
    text-indent: -1.5rem;
}

/* ===== Bibliographies  ===== */

.ref-heading, .ref-heading2 {
    font-style: italic;
    text-align: center;
    display: block;
    border-bottom: 1pt solid #CCCCCC;
    
    margin-right: auto;
    margin-bottom: 0.5rem;
    margin-left: auto;
    width: 50%;

    page-break-after: avoid;
}

.ref-heading2 {
    border-bottom: none;
    width: 100%;
}

.ref {
    padding-left: 1.5rem;
    text-indent: -1.5rem;
}

/* TODO: Deprecated! */
.ref-note {
    margin-top: -0.75rem;
    padding-left: 3rem;
    page-break-before: avoid;
}

/* TODO: Deprecated! */
.ref-note, .ref-note * {
    font-style: italic;
    font-family: "Concourse 3", sans-serif;
}

/* TODO: Deprecated! */
.ref-note::before {
    content: "•";
    font-family: "Concourse Index", sans-serif;
    font-style: italic;
}

/* ===== Figures  ===== */

img.logo {
    width: 20rem;
    margin-bottom: 1.3rem;
}

figure.title_page {
    page-break-after: always
}

figure.title_page img {
    margin-top: 1rem;
    border: 4pt double black;
    max-width: 100%;
}

figure.title_page figcaption {
    text-align: center;
}

/* ===== Utilities  ===== */

.no-margin-bottom {
    margin-bottom: 0;
}

.no-margin-left {
    margin-left: 0;
}

.may-page-break-before {
    page-break-before: auto;
}

.may-page-break-inside {
    page-break-inside: auto;
}

.may-page-break-after {
    page-break-after: auto;
}

.may-page-break-before-inside-after {
    page-break-before: auto;
    page-break-inside: auto;
    page-break-after: auto;
}

.no-page-break-before {
    page-break-before: avoid;
}

.no-page-break-inside {
    page-break-inside: avoid;
}

.no-page-break-after {
    page-break-after: avoid;
}

.no-page-break-before-inside-after {
    page-break-before: avoid;
    page-break-inside: avoid;
    page-break-after: avoid;
}

.no-list-style {
    list-style: none;
}

.hanging-indent {
    padding-left: 1.5rem;
    text-indent: -1.5rem;
}

span.hanging-indent {
    display: inline-block;
}

.emph-first-list-item > li:first-child {
    font-weight: bold;
}

/*.update {
    background: yellow;
    border: 1pt solid red;
}*/
