@import url("https://cdn.uadigital.arizona.edu/lib/ua-brand-fonts/v1.0.1/milo.min.css");

body {
    font-family: MiloSerifWeb, MiloWeb, Georgia, TimesNewRoman, "Times New Roman", Times, Baskerville, serif;
    font-size: 17px;
    line-height: 1.5;
    background-color: white;
    color: #2d2d2d;
    font-weight: 600;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

/* TOC and Main Content Layout */
body>* {
    max-width: 1400px;
}

#toc {
    position: sticky;
    top: 20px;
    width: 240px;
    height: fit-content;
    max-height: calc(100vh - 40px);
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    padding: 16px;
    box-sizing: border-box;
    margin-right: 40px;
    margin-top: 20px;
    flex-shrink: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* Hide scrollbar but keep functionality */
#toc::-webkit-scrollbar {
    display: none;
}

#toc {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#toc-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toc-link {
    display: block;
    padding: 4px 8px;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.3;
    border-radius: 4px;
    transition: background-color 0.15s, color 0.15s;
}

.toc-link:hover {
    background-color: #f0f0f0;
    color: #000;
}

.toc-link.active {
    background-color: rgba(123, 46, 43, 0.1);
    color: #7B2E2B;
    font-weight: 600;
    border-left: 3px solid #7B2E2B;
    padding-left: 5px;
}

.toc-h2 {
    padding-left: 16px;
    font-size: 12px;
}

.toc-h3 {
    padding-left: 28px;
    font-size: 11px;
    color: #777;
}

#main-content {
    flex: 1;
    max-width: 750px;
    padding: 20px 40px;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    body {
        display: block;
    }

    #toc {
        display: none;
    }

    #main-content {
        margin: 0 auto;
        padding: 20px;
        max-width: 800px;
    }
}

.dark-mode {
    background-color: white;
    color: #444444;
}

.firstcharacter {
    color: #7B2E2B;
    float: left;
    font-family: MiloSerifWeb, MiloWeb, Georgia, TimesNewRoman, "Times New Roman", Times, Baskerville, serif;
    font-size: 50px;
    line-height: 40px;
    padding-top: 0px;
    padding-right: 5px;
    padding-left: 3px;
}

a {
    color: #7B2E2B;
    text-decoration: none;
    /*border-bottom: dotted 1px;*/
}

a:hover {
    background: whitesmoke;
    border-radius: 0.1rem;
    border-bottom: dotted 1px;
}

h1 {
    border-bottom: 1px solid #ccc;
    padding-bottom: 3px;
    text-align: left;
    font-size: 1.4em;
}

h1.main-title {
    text-align: center;
    font-size: 2.0em;
}

h1.line {
    text-decoration: underline 8px #D2A054;
    text-decoration-skip-ink: none;
    border-bottom: none;
    text-align: center;
}

h2 {
    color: #7B2E2B;
    text-align: left;
    font-variant-caps: small-caps;
    font-weight: bold;
    font-size: 1.5em;
    margin: 1em 0 -0.8em 0;
}

h2.line {
    text-decoration: underline 5px #D2A054;
    text-decoration-skip-ink: none;
    text-align: center;
}

h3 {
    margin-top: 2em;
    color: #7B2E2B;
    font-variant-caps: small-caps;
    font-size: 1.25em;
}

img.profile {
    /*border-radius: 50%;*/
    box-shadow: 7px 7px 0px 0px #D2A054;
}

hr {
    border: 0;
    border-bottom: solid 1px rgba(210, 215, 217, 0.75);
    margin: 2em 0;
}

br {
    /*to fix extra spacing of indented bullets*/
    content: "";
    margin: 2em;
    display: block;
    font-size: 5%;
}

blockquote {
    /*background: whitesmoke;*/
    border: 1px solid #ccc;
    border-left: 4px solid #ccc;
    border-radius: 0.1rem;
    margin: 1.5em 10px;
    padding: 0.5em 10px;
}

blockquote p {
    display: inline;
}

th {
    background-color: #ccc;
    padding: .4rem;
}

td {
    padding: .3rem;
}

ul.cols {
    columns: 4;
}

.ant {
    font-family: MiloSerifWeb, Georgia, TimesNewRoman, "Times New Roman", Times, Baskerville, serif;
    font-weight: 400;
    text-align: justify;
}

.ant:before {
    font-family: MiloWeb, MiloSerifWeb, Georgia, TimesNewRoman, "Times New Roman", Times, Baskerville, serif;
    color: #7B2E2B;
    font-weight: 700;
    content: "Ant. "
}

.verse {
    font-family: MiloWeb, MiloSerifWeb, Georgia, TimesNewRoman, "Times New Roman", Times, Baskerville, serif;
    color: #7B2E2B;
    font-weight: 700;
}

.subtitle {
    font-family: MiloSerifWeb, Georgia, TimesNewRoman, "Times New Roman", Times, Baskerville, serif;
    font-size: 0.9em;
    color: #7B2E2B;
}

.quote {
    font-family: MiloWeb, MiloSerifWeb, Georgia, TimesNewRoman, "Times New Roman", Times, Baskerville, serif;
    font-size: 0.9em;
    font-style: italic;
}

.quote_red {
    font-family: MiloWeb, MiloSerifWeb, Georgia, TimesNewRoman, "Times New Roman", Times, Baskerville, serif;
    font-size: 0.9em;
    font-style: italic;
    color: #7B2E2B;
}

.detail {
    font-family: MiloWeb, MiloSerifWeb, Georgia, TimesNewRoman, "Times New Roman", Times, Baskerville, serif;
    font-size: 0.7em;
    color: gray;
    font-style: italic;
    text-align: justify;
}

.gloria {
    font-style: italic;
    font-weight: 400;
    text-align: justify;
}


/*!* Button *!*/

/*input[type="submit"],*/
/*input[type="reset"],*/
/*input[type="button"],*/
/*button,*/
/*.button {*/
/*    border-radius: 0.375em;*/
/*    display: inline-block;*/
/*    font-size: 0.8em;*/
/*    font-weight: 700;*/
/*    height: 3.5em;*/
/*    letter-spacing: 0.075em;*/
/*    line-height: 3.5em;*/
/*    padding: 0 2.25em;*/
/*    text-align: center;*/
/*    text-transform: uppercase;*/
/*    white-space: nowrap;*/
/*    background-color: #5B7894;*/
/*    color: #ffffff !important;*/
/*}*/

/*.button:hover {*/
/*    border-radius: 0.375em;*/
/*    background-color: #D2A054;*/
/*    box-shadow: 5px 8px 8px 0 rgba(0, 0, 0, 0.2), 5px 6px 20px 0 rgba(0, 0, 0, 0.19);*/
/*    border-bottom: none;*/
/*}*/

/* Button */

button,
.button {
    background-color: darkgray;
    border-radius: 1em;
    border-width: 0
}





/* Main */

#main {
    flex-grow: 1;
    flex-shrink: 1;
    width: 100%;
}

#main>.inner {
    padding: 0 0em 0.1em 0em;
    margin: 0 auto;
    max-width: 110em;
}

#main>.inner>section {
    padding: 6em 0 4em 0;
    border-top: solid 2px rgba(210, 215, 217, 0.75);
}

#main>.inner>section:first-of-type {
    border-top: 0 !important;
}

@media screen and (max-width: 1680px) {

    #main>.inner {
        padding: 0 5em 0.1em 5em;
    }

    #main>.inner>section {
        padding: 5em 0 3em 0;
    }

}

@media screen and (max-width: 1280px) {

    #main>.inner {
        padding: 0 4em 0.1em 4em;
    }

    #main>.inner>section {
        padding: 4em 0 2em 0;
    }

}

@media screen and (max-width: 736px) {

    #main>.inner {
        padding: 0 0.1em 0.1em 0.1em;
        /*padding: 0 2em 0.1em 2em;*/
    }

    #main>.inner>section {
        padding: 3em 0 1em 0;
    }

}





/* Header */

header {
    border-bottom: solid 5px #63666a;
    overflow: hidden;
    text-align: center;
    font-variant-caps: small-caps;
    line-height: 0;
    font-weight: bold;
    font-size: 1.9em;
    margin: 0 0 -1.5em 0;
}


@media screen and (max-width: 500px) {
    header a {
        float: none;
        display: block;
        text-align: left;
    }

    header-right {
        float: none;
    }
}


/* Footer */

#footer .copyright {
    color: #9fa3a6;
    font-size: 0.9em;
    padding: 0em 0.1em 0.1em 0.1em;
}

#footer .img {
    border-radius: 5em;
}


#footer .copyright a {
    color: inherit;
    border-bottom: dotted 1px;
}

#footer .copyright a:hover {
    color: #5B7894;
    background: whitesmoke;
    text-decoration: none;
}

/* Liturgical Roles */

.celebrant {
    color: #7B2E2B;
    font-weight: 400;
    margin: 0.75em 0;
}

.people {
    font-weight: 700;
    margin: 0.75em 0;
}

.rubric {
    font-style: italic;
    color: #888;
    font-size: 0.9em;
    margin: 0.5em 0;
}

.explanation {
    background-color: whitesmoke;
    border-left: 4px solid #bbb;
    padding: 0.5em 1em;
    margin: 2em 0;
    border-radius: 0.1rem;
    font-size: 0.8em;
    line-height: 1.6;
    font-style: italic;
    color: #555;
}

.explanation h1,
.explanation h2 {
    color: #555;
    margin-top: 0;
}

/* Verse formatting */
.v {
    display: block;
    margin-bottom: 0.15em;
}

.vi {
    display: block;
    padding-left: 1.5em;
}

.gb {
    margin-top: 1em;
}

.heading {
    font-weight: bold;
    color: #7B2E2B;
    font-size: 1.1em;
    margin: 1em 0 0.5em 0;
}

/* Footnote/Reference Pop-ups (Pill Style) */

.footnote-ref {
    font-family: MiloWeb, 'Roboto', sans-serif;
    font-size: 0.65em;
    font-weight: 600;
    color: slategrey;
    background-color: rgba(150, 150, 150, 0.08);
    border: 1px solid rgba(150, 150, 150, 0.2);
    border-radius: 8px;
    padding: 1px 6px;
    margin-left: 0.75em;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease;
    vertical-align: middle;
    white-space: nowrap;
    display: inline-block;
    /* Added for proper spacing */
    text-decoration: none;
    /* Ensure no underline */
}

.footnote-ref:hover {
    color: white;
    background-color: #7B2E2B;
    border-color: #7B2E2B;
    /* Match border to background on hover */
}

.footnote-popup {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #7B2E2B;
    border-radius: 6px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 300px;
    z-index: 1000;
    font-size: 0.9em;
    line-height: 1.4;
    color: #444;
}

.footnote-popup.active {
    display: block;
}

.footnote-popup strong {
    color: #7B2E2B;
    display: block;
    margin-bottom: 0.5em;
}

.nabre-tag {
    display: block;
    font-size: 0.75em;
    color: #888;
    text-align: right;
    margin-top: 5px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}