/* ============================================================
   Devotional Tab Styles — devotional_tab.css
   Matches site palette: browns, antiquewhite
   ============================================================ */

/* --- Container --- */
#devotional_tab {
    padding: 1em;
    min-height: 400px;
    display: block;
    overflow-y: auto;
    max-height: calc(90vh - 150px);
    margin-left: calc((100% - 90vw) / 2);
    margin-right: calc((100% - 90vw) / 2);
    min-width: 846px;
    width: 90vw;
    box-sizing: border-box;
}

/* --- Devotional Card --- */
.devotional-view {
    background-color: antiquewhite;
    border: 1px solid #8B4513;
    border-radius: 10px;
    padding: 1.25em 1.5em;
    margin-bottom: 1em;
}

/* --- Verse Reference Heading --- */
.devotional-verse-ref {
    font-size: 1.6em;
    font-weight: 700;
    color: #5C3317;
    border-bottom: 2px solid #8B4513;
    padding-bottom: 0.25em;
    margin-bottom: 0.75em;
    font-family: sans-serif;
}

/* --- Commentary Body --- */
.devotional-commentary {
    line-height: 1.7;
    font-family: Georgia, serif;
    margin-top: 0.75em;
    color: #2a1a0a;
    font-size: medium;
    padding-bottom: 10px;
}

/* --- Credit Line --- */
.devotional-credit {
    display: block;
    font-size: 0.8em;
    color: #8B4513;
    margin-top: 1em;
    text-align: center;
}

.devotional-credit a {
    color: #8B4513;
    text-decoration: none;
}

.devotional-credit a:hover {
    text-decoration: underline;
}

/* --- Refresh Button --- */
.devotional-refresh-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #8B4513;
    font-size: large;
    margin-left: 8px;
    vertical-align: middle;
    padding: 2px 6px;
}

.devotional-refresh-btn:hover {
    color: #5C3317;
}

/* --- Loading Placeholder --- */
.devotional-loading {
    text-align: center;
    color: #8B4513;
    padding: 20px;
    font-style: italic;
    font-size: medium;
}

/* --- Error Message --- */
.devotional-error {
    color: #c0392b;
    padding: 10px;
    border-left: 3px solid #c0392b;
    margin: 10px 0;
}

div#verse_popup, div#devotional_popup {
    width: 80%;
    height: 100%;
    margin-left: 10%;
    padding: 5px;
    border: rgba(0, 0, 0, 0.4) 3px solid;
    background-color: rgba(0, 0, 0, 0.4);
    color: black;
    font-size: medium;
    font-family: sans-serif;
}

div#verse_parent, div#devotional_parent {
    font-size: small;
    color: brown;
    align-items: center;
}

.devotional-language {
    display: table;
}

.devotional-language .bible-subheading {
    display: table-cell;
}

button#devotional-change-language {
    max-height: fit-content;
    display: table-cell;
    padding: 2px 5px;
}