.bible-reader {
    max-width: 58rem;
    margin: 1.5rem auto 4rem;
    color: #292e32;
}

.bible-intro {
    margin-bottom: 2rem;
    text-align: center;
}

.bible-eyebrow {
    margin-bottom: .5rem;
    color: #62695e;
    font-size: .8rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.bible-intro h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 400;
}

.bible-navigation {
    padding: 1.25rem;
    margin: 0 0 1.5rem;
    background: #f3f5f2;
    border: 1px solid #dfe4dc;
    border-radius: .75rem;
}

.bible-navigation > div {
    margin-top: 0;
}

.bible-navigation .form-label {
    font-size: .9rem;
    font-weight: 600;
}

.bible-navigation .form-text:empty,
.bible-reader > [role="status"]:empty {
    display: none;
}

.bible-reading {
    padding: clamp(1.25rem, 4vw, 3.5rem);
    background: #fffdf8;
    border: 1px solid #e9e4d9;
    border-radius: .75rem;
    box-shadow: 0 .4rem 1.5rem rgb(45 38 20 / 4%);
}

.bible-reading h2 {
    max-width: 30ch;
    margin: 0 auto 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e5dfd2;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    text-wrap: balance;
}

.bible-verses {
    max-width: 62ch;
    margin: 0 auto;
    padding-left: 1.7em;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.bible-verses li {
    padding-left: .5em;
}

.bible-verses li::marker {
    color: #72766b;
    font-family: system-ui, sans-serif;
    font-size: .65em;
    font-weight: 500;
}

.bible-verses ::selection {
    background: #e0e8d5;
    color: #1e2d19;
}

@media (max-width: 575.98px) {
    .bible-reader {
        margin-top: .75rem;
    }

    .bible-navigation {
        row-gap: 1rem;
        padding: 1rem .5rem;
    }

    .bible-verses {
        font-size: 1.2rem;
        line-height: 1.85;
    }
}

.bible-chat {
    margin-bottom: 1.5rem;
    padding: clamp(1rem, 3vw, 1.75rem);
    border: 1px solid #d9e1d6;
    border-radius: .75rem;
    background: #fff;
}

.bible-chat-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.bible-chat-badge {
    display: inline-block;
    margin-bottom: .75rem;
    padding: .25rem .6rem;
    background: #eef2e9;
    color: #46583b;
    border-radius: 2rem;
    font-size: .75rem;
    font-weight: 600;
}

.bible-chat h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    font-weight: 400;
}

.bible-chat-header p,
.bible-chat-context,
.bible-chat-help {
    color: #60675d;
    font-size: .875rem;
}

.bible-chat-context {
    padding-top: .75rem;
    border-top: 1px solid #e5e9e2;
}

.bible-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 27rem;
    min-height: 10rem;
    padding: .5rem .25rem 1rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.bible-chat-message {
    max-width: 90%;
    padding: 1rem 1.15rem;
    border-radius: .8rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.bible-chat-message-guide {
    align-self: flex-start;
    background: #f4f5f1;
}

.bible-chat-message-user {
    align-self: flex-end;
    background: #e8efe3;
}

.bible-chat-author {
    display: block;
    margin-bottom: .4rem;
    color: #46583b;
    font-size: .75rem;
}

.bible-chat-message p {
    margin: 0;
    white-space: pre-wrap;
}

.bible-chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 1rem 0;
}

.bible-chat-suggestions .btn {
    color: #405333;
    border: 1px solid #cfdac8;
    border-radius: 2rem;
}

.bible-chat-suggestions .btn:hover {
    background: #eef2e9;
}

.bible-chat-form {
    display: flex;
    gap: .5rem;
}

.bible-chat-form input {
    min-width: 0;
}

.bible-chat-send {
    background: #465f3a;
    color: #fff;
}

.bible-chat-send:hover,
.bible-chat-send:focus-visible {
    background: #34482b;
    color: #fff;
}

.bible-chat-help {
    margin: .75rem 0 0;
    font-size: .75rem;
}

@media (max-width: 575.98px) {
    .bible-chat-message { max-width: 100%; }
    .bible-chat-suggestions .btn { text-align: left; }
}

.bible-chat-message-error {
    align-self: flex-start;
    border: 1px solid #e3cdb4;
    background: #fff7ec;
}

#bible-chat-status:empty { display: none; }
