.scripture-panel-trigger {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    color: #2f5f8f;
    cursor: pointer;
    font: inherit;
    line-height: inherit;
    text-align: left;
}

.scripture-panel-trigger:hover,
.scripture-panel-trigger:focus-visible {
    color: #1f4f7f;
    outline: 1px solid currentColor;
    outline-offset: 2px;
}

.scripture-panel-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.48);
}

.scripture-panel-backdrop[hidden] { display: none; }

.scripture-panel-dialog {
    display: flex;
    width: min(620px, 100%);
    max-height: min(78vh, 760px);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #d9dee5;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
    color: #202124;
}

.scripture-panel-dialog:focus { outline: none; }

.scripture-panel-content {
    overflow-y: auto;
    padding: 10px 20px 18px;
    overscroll-behavior: contain;
}

.scripture-panel-loading,
.scripture-panel-error {
    margin: 18px 0 8px;
    color: #68717d;
    line-height: 1.7;
}

.scripture-panel-error { color: #a33a35; }

.scripture-panel-passage { padding: 16px 0 4px; }

.scripture-panel-passage + .scripture-panel-passage {
    margin-top: 8px;
    border-top: 1px solid #e5e7eb;
}

.scripture-panel-reference {
    margin: 0 0 10px;
    color: #2f5f8f;
    font-size: 17px;
    font-weight: 700;
}

.scripture-panel-verse {
    margin: 0 0 9px;
    font-size: 17px;
    line-height: 1.8;
}

.scripture-panel-verse-number {
    margin-right: 6px;
    color: #2f5f8f;
    font-size: 12px;
    font-weight: 700;
    vertical-align: super;
}

.scripture-panel-fallback-note {
    margin-left: 8px;
    color: #7a838f;
    font-size: 12px;
}

body.scripture-panel-open { overflow: hidden; }

body.io-black-mode .scripture-panel-trigger,
body.io-black-mode .scripture-panel-reference,
body.io-black-mode .scripture-panel-verse-number { color: #8eb9e8; }

body.io-black-mode .scripture-panel-dialog {
    border-color: #4b5563;
    background: #1f2327;
    color: #f5f7fa;
}

body.io-black-mode .scripture-panel-passage + .scripture-panel-passage { border-color: #40464d; }

body.io-black-mode .scripture-panel-loading { color: #c4cad1; }

body.io-black-mode .scripture-panel-fallback-note { color: #aeb6c1; }

@media (max-width: 575.98px) {
    .scripture-panel-backdrop {
        padding: 16px;
    }

    .scripture-panel-dialog {
        width: 100%;
        max-height: 82vh;
        border-radius: 14px;
    }

    .scripture-panel-content {
        padding-right: 16px;
        padding-left: 16px;
    }
}
