.caic-scripture-ref{
    color:#0b63a8;
    border-bottom:1px dotted currentColor;
    cursor:pointer;
    text-decoration:none;
}
.caic-scripture-ref:hover,
.caic-scripture-ref:focus{
    color:#084d82;
    outline:none;
    border-bottom-style:solid;
}
.caic-scripture-ref:focus-visible{
    outline:2px solid #2271b1;
    outline-offset:2px;
    border-radius:2px;
}
.caic-scripture-tooltip[hidden]{display:none !important;}
.caic-scripture-tooltip{
    position:fixed;
    z-index:10000050;
    width:min(462px,calc(100vw - 20px));
    max-height:min(420px,70vh);
    overflow:auto;
    background:#fffbea;
    color:var(--caic-verse-text,#202428);
    border:var(--caic-border-width,1px) solid var(--caic-border-color,#cfd6dc);
    border-radius:6px;
    box-shadow:var(--caic-shadow,0 8px 28px rgba(0,0,0,.22));
    font-size:15px;
    line-height:1.5;
}
.caic-scripture-tooltip-head{
    position:sticky;
    top:0;
    display:flex;
    justify-content:space-between;
    gap:14px;
    padding:10px 12px;
    background:var(--caic-header-bg,#f5f7f9);
    color:var(--caic-header-text,#202428);
    border-bottom:1px solid rgba(0,0,0,.12);
    z-index:1;
}
.caic-scripture-tooltip-head strong{font-size:15px;}
.caic-scripture-tooltip-head span{
    flex:0 0 auto;
    font-size:12px;
    font-weight:700;
    color:var(--caic-header-text,#5b6670);
}
.caic-scripture-tooltip-verses{
    padding:10px 13px 8px;
    background:var(--caic-verse-bg,#fff);
    color:var(--caic-verse-text,#202428);
}
.caic-scripture-tooltip-verses p{
    margin:0 0 8px;
    text-align:justify;
    text-justify:inter-word;
}
.caic-scripture-tooltip-verses sup{
    color:var(--caic-verse-text,#6c7781);
    opacity:.72;
    font-weight:700;
    margin-right:5px;
}
.caic-scripture-tooltip-foot{
    position:sticky;
    bottom:0;
    min-height:34px;
    padding:3px 10px;
    border-top:1px solid rgba(0,0,0,.18);
    background:var(--caic-footer-bg,#23679d);
    color:var(--caic-footer-text,#fff);
    font-size:12px;
    text-align:center;
    z-index:2;
}
.caic-scripture-tooltip-foot-inner{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
}
.caic-scripture-tooltip-foot img{
    width:26px;
    height:26px;
    object-fit:contain;
    flex:0 0 auto;
}
.caic-scripture-tooltip-foot span{
    line-height:1.2;
}
.caic-scripture-tooltip-loading,
.caic-scripture-tooltip-error{
    padding:14px;
}
@media (max-width:600px){
    .caic-scripture-tooltip{
        width:calc(100vw - 20px);
        max-height:55vh;
        font-size:14px;
    }
}


/* v0.1.6 — BSB word-to-Strong's study interaction */
.caic-strongs-word{
    display:inline;
    margin:0;
    padding:0;
    border:0;
    border-bottom:1px dotted var(--caic-strongs-highlight-color,#8a939b);
    background:transparent;
    color:inherit;
    font:inherit;
    line-height:inherit;
    cursor:pointer;
    vertical-align:baseline;
}
.caic-strongs-word:hover,
.caic-strongs-word:focus-visible{
    color:inherit;
    border-bottom-style:solid;
    outline:none;
    border-radius:0;
    background:transparent !important;
    background-color:transparent !important;
}

.caic-strongs-study{
    padding:12px 14px 16px;
    background:var(--caic-verse-bg,#fff);
    color:var(--caic-verse-text,#202428);
}
.caic-strongs-back{
    border:0;
    background:transparent;
    color:#0b63a8;
    padding:0;
    margin:0 0 12px;
    cursor:pointer;
    font-weight:700;
}
.caic-strongs-back:hover{text-decoration:underline;}
.caic-strongs-original{
    font-family:Georgia,"Times New Roman",serif;
    font-size:28px;
    line-height:1.25;
    font-weight:700;
    margin:2px 0 14px;
    overflow-wrap:anywhere;
}
.caic-strongs-grid{
    border-top:1px solid rgba(0,0,0,.12);
}
.caic-strongs-grid > div{
    display:grid;
    grid-template-columns:105px 1fr;
    gap:10px;
    padding:7px 0;
    border-bottom:1px solid rgba(0,0,0,.09);
}
.caic-strongs-grid strong{font-size:12px;}
.caic-strongs-grid span{min-width:0;}
.caic-strongs-note{
    margin:12px 0 0;
    font-size:11px;
    opacity:.72;
}


/* v0.2.3 — expanded local Strong's word-study fields */
.caic-strongs-loading{
    padding:8px 0 4px;
    opacity:.75;
}
.caic-strongs-field{
    padding:5px 0 7px;
    border-bottom:1px solid rgba(0,0,0,.25);
}
.caic-strongs-field:last-child{
    border-bottom:0;
}
.caic-strongs-field > strong{
    display:block;
    margin:0 0 1px;
    font-size:15px;
    line-height:1.25;
}
.caic-strongs-english,
.caic-strongs-transliteration{
    font-style:italic;
}
.caic-strongs-field .caic-strongs-original{
    margin:0;
    font-size:22px;
    line-height:1.35;
    font-weight:400;
}
.caic-strongs-hebrew{
    direction:rtl;
    text-align:left;
    unicode-bidi:isolate;
}
.caic-strongs-text{
    white-space:pre-wrap;
    overflow-wrap:anywhere;
}
.caic-strongs-definition{
    padding-top:7px;
}


/* v0.2.6 — Strong's study header close control */
.caic-strongs-close{
    flex:0 0 auto;
    margin:-3px -2px -3px 0;
    padding:0 4px;
    border:0;
    background:transparent;
    color:var(--caic-header-text,#202428);
    font-size:24px;
    font-weight:700;
    line-height:1;
    cursor:pointer;
}
.caic-strongs-close:hover,
.caic-strongs-close:focus-visible{
    text-decoration:none;
    opacity:.75;
    outline:none;
}
.caic-strongs-number{
    margin:0 0 12px;
    font-weight:700;
    color:#0b63a8;
}


/* v0.2.7 — draggable headers and nested Strong's derivation studies */
.caic-scripture-tooltip-head{
    cursor:move;
    cursor:grab;
    user-select:none;
    touch-action:none;
}
.caic-dragging .caic-scripture-tooltip-head{
    cursor:grabbing;
}
.caic-strongs-nested-box{
    z-index:10000060;
    position:fixed;
    width:min(430px,calc(100vw - 20px));
}
.caic-strongs-nested-box + .caic-strongs-nested-box{
    z-index:10000061;
}
.caic-strongs-derivation-ref{
    display:inline;
    margin:0;
    padding:0;
    border:0;
    border-bottom:1px dotted currentColor;
    background:transparent;
    color:#0b63a8;
    font:inherit;
    font-weight:700;
    line-height:inherit;
    cursor:pointer;
}
.caic-strongs-derivation-ref:hover,
.caic-strongs-derivation-ref:focus-visible{
    border-bottom-style:solid;
    outline:none;
}
@media (max-width:600px){
    .caic-strongs-nested-box{
        left:10px !important;
        width:calc(100vw - 20px);
    }
}


/* v0.2.8 — viewport-fixed, hover-managed Strong's study lifecycle */
.caic-strongs-nested-box{position:fixed;}

/* v0.2.10 — configurable Strong's word indicator */
.caic-scripture-tooltip[data-strongs-highlight-style="none"] .caic-strongs-word{
    border-bottom-color:transparent;
}
.caic-scripture-tooltip[data-strongs-highlight-style="none"] .caic-strongs-word:hover,
.caic-scripture-tooltip[data-strongs-highlight-style="none"] .caic-strongs-word:focus-visible{
    border-bottom-color:transparent;
}

.caic-scripture-tooltip[data-strongs-highlight-style="solid"] .caic-strongs-word{
    border-bottom-style:solid;
}
.caic-scripture-tooltip[data-strongs-highlight-style="bold"] .caic-strongs-word{
    border-bottom-color:transparent;
    font-weight:700;
}
.caic-scripture-tooltip[data-strongs-highlight-style="bold"] .caic-strongs-word:hover,
.caic-scripture-tooltip[data-strongs-highlight-style="bold"] .caic-strongs-word:focus-visible{
    border-bottom-color:transparent;
}

/* v0.2.11 — respect BSB paragraph / poetry / list structure */
.caic-scripture-tooltip-verses .caic-bsb-prose{
    margin:0 0 8px;
    text-align:justify;
    text-justify:inter-word;
}
.caic-scripture-tooltip-verses .caic-bsb-poetry,
.caic-scripture-tooltip-verses .caic-bsb-list{
    margin:0 0 3px;
    text-align:left;
}
.caic-scripture-tooltip-verses .caic-bsb-poetry-1{padding-left:8px;}
.caic-scripture-tooltip-verses .caic-bsb-poetry-2{padding-left:24px;}
.caic-scripture-tooltip-verses .caic-bsb-poetry-3{padding-left:40px;}
.caic-scripture-tooltip-verses .caic-bsb-poetry-4{padding-left:56px;}
.caic-scripture-tooltip-verses .caic-bsb-list-1{padding-left:12px;}
.caic-scripture-tooltip-verses .caic-bsb-list-2{padding-left:28px;}
.caic-scripture-tooltip-verses .caic-bsb-list-3{padding-left:44px;}
.caic-scripture-tooltip-verses .caic-bsb-list-4{padding-left:60px;}
.caic-scripture-tooltip-verses .caic-bsb-blank{height:9px;}

/* v0.2.13 — authentic BSB footnotes and compact cross references */
.caic-bsb-footnote-mark{
    display:inline-block;
    margin:0 0 0 1px;
    padding:0;
    border:0;
    background:transparent;
    color:inherit;
    font-family:inherit;
    font-style:normal;
    font-weight:700;
    font-size:var(--caic-footnote-asterisk-size,14px) !important;
    line-height:1;
    vertical-align:baseline;
    transform:translateY(-0.32em);
    transform-origin:center bottom;
    cursor:pointer;
}
.caic-bsb-footnote-mark:hover,
.caic-bsb-footnote-mark:focus-visible{
    color:#0b63a8;
    outline:none;
}
.caic-bsb-footnote-box{width:min(390px,calc(100vw - 20px));}
.caic-bsb-footnote-body{
    padding:11px 13px 13px;
    background:var(--caic-verse-bg,#fff);
    color:var(--caic-verse-text,#202428);
}
.caic-bsb-footnote-item + .caic-bsb-footnote-item{margin-top:9px;padding-top:9px;border-top:1px solid rgba(0,0,0,.12);}
.caic-bsb-footnote-item sup{font-weight:700;opacity:.72;}
.caic-bsb-crossrefs{
    padding:8px 13px 10px;
    border-top:1px solid rgba(0,0,0,.12);
    background:var(--caic-verse-bg,#fff);
    color:var(--caic-verse-text,#202428);
    font-size:12.5px;
    line-height:1.4;
}
.caic-bsb-crossrefs strong{font-weight:700;}

/* v0.2.15 — authentic BSB Words of Christ */
.caic-scripture-tooltip[data-words-of-christ-style="red"] .caic-words-of-christ{
    color:var(--caic-words-of-christ-color,#b22222) !important;
}
.caic-scripture-tooltip[data-words-of-christ-style="red"] .caic-strongs-word.caic-words-of-christ:hover,
.caic-scripture-tooltip[data-words-of-christ-style="red"] .caic-strongs-word.caic-words-of-christ:focus-visible{
    color:var(--caic-words-of-christ-color,#b22222) !important;
}


/* v0.2.20 — interactive BSB cross references */
.caic-bsb-crossref-link{
    display:inline;
    margin:0;
    padding:0;
    border:0;
    border-bottom:1px dotted currentColor;
    background:transparent;
    color:#0b63a8;
    font:inherit;
    line-height:inherit;
    cursor:pointer;
    vertical-align:baseline;
}
.caic-bsb-crossref-link:hover,
.caic-bsb-crossref-link:focus-visible{
    color:#084d82;
    border-bottom-style:solid;
    outline:none;
}
.caic-bsb-crossref-link:focus-visible{
    outline:2px solid #2271b1;
    outline-offset:2px;
    border-radius:2px;
}
.caic-bsb-crossref-box{
    z-index:10000070;
    width:min(462px,calc(100vw - 20px));
}

/* v0.2.21 — nested cross-reference chains + configurable Strong's hover tint */
.caic-bsb-crossref-box[data-crossref-level="1"]{z-index:10000071;}
.caic-bsb-crossref-box[data-crossref-level="2"]{z-index:10000072;}
.caic-bsb-crossref-box[data-crossref-level="3"]{z-index:10000073;}

/* v0.2.22 — fixed Strong's hover tint rendering and five-box Scripture cap */

/* v0.2.23 — frontend Strong's hover tint is enforced by JS inline !important to survive theme button-hover rules. */


/* v0.2.25 — neutralize Chromium's blue text-selection block inside Scripture tooltips */
.caic-scripture-tooltip ::selection{
    background:rgba(0,0,0,.10);
    color:inherit;
    text-shadow:none;
}
.caic-scripture-tooltip .caic-strongs-word,
.caic-scripture-tooltip .caic-bsb-crossref-link,
.caic-scripture-tooltip .caic-bsb-footnote-mark,
.caic-scripture-tooltip button{
    -webkit-user-select:none;
    user-select:none;
}


/* v0.2.26 — prevent theme/browser button states from painting cross-reference links blue */
.caic-scripture-tooltip .caic-bsb-crossref-link,
.caic-scripture-tooltip .caic-bsb-crossref-link:hover,
.caic-scripture-tooltip .caic-bsb-crossref-link:focus,
.caic-scripture-tooltip .caic-bsb-crossref-link:focus-visible,
.caic-scripture-tooltip .caic-bsb-crossref-link:active{
    -webkit-appearance:none !important;
    appearance:none !important;
    background:transparent !important;
    background-color:transparent !important;
    background-image:none !important;
    box-shadow:none !important;
    text-shadow:none !important;
}
.caic-scripture-tooltip .caic-bsb-crossref-link:focus,
.caic-scripture-tooltip .caic-bsb-crossref-link:active{
    outline:none !important;
}


/* v0.2.27 — one verse per line with restrained justification */
.caic-scripture-tooltip-verses .caic-bsb-verse-line{
    display:block;
    margin:0 0 4px;
    text-align:justify;
    text-align-last:left;
    text-justify:auto;
    hyphens:auto;
    -webkit-hyphens:auto;
    overflow-wrap:break-word;
    word-break:normal;
    word-spacing:normal;
}
.caic-scripture-tooltip-verses .caic-bsb-verse-line:last-child{
    margin-bottom:0;
}


/* v0.2.30 — fixed left-aligned verse-number gutter with trimmed numeric labels */
.caic-scripture-tooltip-verses .caic-bsb-verse-line,
.caic-scripture-tooltip-verses .caic-bsb-poetry,
.caic-scripture-tooltip-verses .caic-bsb-list{
    display:grid;
    grid-template-columns:28px minmax(0,1fr);
    column-gap:8px;
    align-items:start;
}
.caic-scripture-tooltip-verses .caic-bsb-verse-number{
    display:block;
    width:28px;
    box-sizing:border-box;
    text-align:left;
    justify-self:start;
    color:var(--caic-verse-text,#6c7781);
    opacity:.72;
    font-size:.78em;
    font-weight:700;
    line-height:1.5;
    margin:0;
    padding:0;
    border:0;
    user-select:none;
}
.caic-scripture-tooltip-verses .caic-bsb-verse-text{
    display:block;
    min-width:0;
    text-align:justify;
    text-align-last:left;
    text-justify:auto;
    hyphens:auto;
    -webkit-hyphens:auto;
    overflow-wrap:break-word;
    word-break:normal;
    word-spacing:normal;
}
/* The old inline superscript rule is retained for backward compatibility,
   but v0.2.28 verse rows no longer use it for their verse number. */


/* v0.2.31 — rigid two-column verse rows.
   Verse numbers always stay on the same left edge. Structural poetry/list
   indentation is moved to the text column so it can never shift the number. */
.caic-scripture-tooltip-verses .caic-bsb-verse-line,
.caic-scripture-tooltip-verses .caic-bsb-poetry,
.caic-scripture-tooltip-verses .caic-bsb-list{
    display:grid !important;
    grid-template-columns:28px minmax(0,1fr) !important;
    column-gap:8px !important;
    align-items:start !important;
    padding-left:0 !important;
    padding-right:0 !important;
}
.caic-scripture-tooltip-verses .caic-bsb-verse-number{
    grid-column:1 !important;
    min-width:0 !important;
    width:28px !important;
    margin:0 !important;
    padding:0 !important;
    text-indent:0 !important;
    text-align:left !important;
    justify-self:stretch !important;
    align-self:start !important;
    white-space:nowrap !important;
}
.caic-scripture-tooltip-verses .caic-bsb-verse-text{
    grid-column:2 !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    text-indent:0 !important;
}
/* Preserve BSB structural indentation only inside the text column. */
.caic-scripture-tooltip-verses .caic-bsb-poetry-1 > .caic-bsb-verse-text{padding-left:8px !important;}
.caic-scripture-tooltip-verses .caic-bsb-poetry-2 > .caic-bsb-verse-text{padding-left:24px !important;}
.caic-scripture-tooltip-verses .caic-bsb-poetry-3 > .caic-bsb-verse-text{padding-left:40px !important;}
.caic-scripture-tooltip-verses .caic-bsb-poetry-4 > .caic-bsb-verse-text{padding-left:56px !important;}
.caic-scripture-tooltip-verses .caic-bsb-list-1 > .caic-bsb-verse-text{padding-left:12px !important;}
.caic-scripture-tooltip-verses .caic-bsb-list-2 > .caic-bsb-verse-text{padding-left:28px !important;}
.caic-scripture-tooltip-verses .caic-bsb-list-3 > .caic-bsb-verse-text{padding-left:44px !important;}
.caic-scripture-tooltip-verses .caic-bsb-list-4 > .caic-bsb-verse-text{padding-left:60px !important;}


/* v0.2.32 — normalize the Scripture text column.
   All verse text starts at one identical grid edge. Source paragraph/poetry/list
   markers may still control vertical spacing, but may not indent the first line. */
.caic-scripture-tooltip-verses .caic-bsb-verse-text{
    grid-column:2 !important;
    justify-self:stretch !important;
    align-self:start !important;
    width:auto !important;
    min-width:0 !important;
    margin-left:0 !important;
    margin-right:0 !important;
    padding-left:0 !important;
    padding-right:0 !important;
    text-indent:0 !important;
}
.caic-scripture-tooltip-verses .caic-bsb-poetry-1 > .caic-bsb-verse-text,
.caic-scripture-tooltip-verses .caic-bsb-poetry-2 > .caic-bsb-verse-text,
.caic-scripture-tooltip-verses .caic-bsb-poetry-3 > .caic-bsb-verse-text,
.caic-scripture-tooltip-verses .caic-bsb-poetry-4 > .caic-bsb-verse-text,
.caic-scripture-tooltip-verses .caic-bsb-list-1 > .caic-bsb-verse-text,
.caic-scripture-tooltip-verses .caic-bsb-list-2 > .caic-bsb-verse-text,
.caic-scripture-tooltip-verses .caic-bsb-list-3 > .caic-bsb-verse-text,
.caic-scripture-tooltip-verses .caic-bsb-list-4 > .caic-bsb-verse-text{
    padding-left:0 !important;
    margin-left:0 !important;
    text-indent:0 !important;
}

/* v0.3.0 — optional popup pin / unpin / close controls */
.caic-scripture-tooltip-head{
    align-items:flex-start;
}
.caic-scripture-tooltip-head > strong{
    min-width:0;
    padding-right:6px;
}
.caic-popup-controls{
    display:inline-flex;
    align-items:center;
    justify-content:flex-end;
    gap:5px;
    flex:0 0 auto;
    white-space:nowrap;
    font-size:11px;
    line-height:1.25;
}
.caic-popup-controls button{
    appearance:none;
    -webkit-appearance:none;
    border:0 !important;
    margin:0 !important;
    padding:0 !important;
    min-width:0 !important;
    min-height:0 !important;
    width:auto !important;
    height:auto !important;
    background:transparent !important;
    box-shadow:none !important;
    color:var(--caic-header-text,#202428) !important;
    font:inherit !important;
    font-weight:700 !important;
    line-height:inherit !important;
    cursor:pointer;
    text-decoration:none;
}
.caic-popup-controls button:hover,
.caic-popup-controls button:focus,
.caic-popup-controls button:focus-visible,
.caic-popup-controls button:active{
    background:transparent !important;
    color:var(--caic-header-text,#202428) !important;
    text-decoration:underline;
    outline:none;
}
.caic-popup-controls button:focus-visible{
    outline:1px dotted currentColor;
    outline-offset:2px;
}
.caic-popup-control-sep{
    opacity:.55;
    font-size:11px !important;
    font-weight:400 !important;
    color:var(--caic-header-text,#202428) !important;
}
.caic-popup-pinned{
    position:fixed !important;
}
@media (max-width:600px){
    .caic-popup-controls{font-size:10px;gap:4px;}
    .caic-scripture-tooltip-head{gap:8px;}
}


/* v0.3.1 — larger pin target plus duplicate-popup attention cue */
.caic-popup-pin-icon{
    display:inline-block;
    font-size:17px !important;
    line-height:1 !important;
    vertical-align:-2px;
    margin-right:2px;
}
.caic-popup-attention .caic-scripture-tooltip-head{
    animation:caicPopupAttentionHead 1.05s ease-in-out;
}
@keyframes caicPopupAttentionHead{
    0%,100%{filter:none;box-shadow:none;}
    20%,65%{filter:brightness(1.35) saturate(1.25);box-shadow:inset 0 0 0 3px rgba(255,215,0,.92);}
}
@media (prefers-reduced-motion:reduce){
    .caic-popup-attention .caic-scripture-tooltip-head{animation:none;box-shadow:inset 0 0 0 3px rgba(255,215,0,.92);}
}
@media (max-width:600px){
    .caic-popup-pin-icon{font-size:16px !important;}
}


/* v0.3.2 — larger, forgiving popup controls and click-to-front workspace */
.caic-popup-controls{
    gap:3px;
    font-size:13px;
    line-height:1.15;
}
.caic-popup-controls button{
    /* The visual label stays compact, while the padded hit target makes PIN,
       UNPIN and Close much easier to click or tap. */
    padding:5px 6px !important;
    min-width:32px !important;
    min-height:28px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    border-radius:3px !important;
    touch-action:manipulation;
}
.caic-popup-controls button:hover,
.caic-popup-controls button:focus-visible{
    background:rgba(255,255,255,.14) !important;
}
.caic-popup-control-sep{
    font-size:13px !important;
    margin:0 -1px;
}
.caic-popup-pin-icon{
    font-size:19px !important;
    margin-right:3px;
}
.caic-scripture-tooltip{
    /* Gives the whole popup an expected window-like interaction target. */
    cursor:default;
}
@media (max-width:600px){
    .caic-popup-controls{font-size:12px;gap:2px;}
    .caic-popup-controls button{padding:5px 5px !important;min-height:28px !important;}
    .caic-popup-pin-icon{font-size:18px !important;}
}


/* v0.3.4 — copy control on every Clark's popup */
.caic-popup-copy{
    margin-right:4px !important;
    min-width:30px !important;
    padding-left:7px !important;
    padding-right:7px !important;
}
.caic-popup-copy-icon{
    display:inline-block;
    font-size:19px !important;
    line-height:1 !important;
    font-weight:700;
    transform:translateY(-1px);
}
.caic-popup-copy-done{
    background:rgba(255,255,255,.24) !important;
}
@media (max-width:600px){
    .caic-popup-copy-icon{font-size:18px !important;}
    .caic-popup-copy{margin-right:2px !important;}
}

/* v0.3.6 — readable hierarchy for Strong's numbered definitions */
.caic-strongs-definition-tree{
    white-space:normal;
    overflow-wrap:anywhere;
}
.caic-strongs-def-line{
    display:grid;
    grid-template-columns:max-content minmax(0,1fr);
    column-gap:.38em;
    align-items:start;
    margin:.08em 0;
}
.caic-strongs-def-line.caic-strongs-def-unstructured{
    display:block;
}
.caic-strongs-def-level-0{ margin-left:0; }
.caic-strongs-def-level-1{ margin-left:1.05em; }
.caic-strongs-def-level-2{ margin-left:2.10em; }
.caic-strongs-def-level-3{ margin-left:3.15em; }
.caic-strongs-def-level-4{ margin-left:4.20em; }
.caic-strongs-def-level-5{ margin-left:5.25em; }
.caic-strongs-def-level-6{ margin-left:6.30em; }
.caic-strongs-def-label{
    font-variant-numeric:tabular-nums;
    white-space:nowrap;
}
.caic-strongs-def-text{
    min-width:0;
}
.caic-strongs-def-blank{
    height:.35em;
}

/* v0.3.7 — Strong's Usage by Word / Usage by Book */
.caic-strongs-usage-summary{margin-top:4px;}
.caic-strongs-usage-field{margin-top:10px;}
.caic-strongs-usage-links{display:flex;flex-wrap:wrap;gap:4px 10px;margin-top:4px;line-height:1.45;}
.caic-strongs-usage-link{
    appearance:none;-webkit-appearance:none;border:0;background:transparent!important;color:#0b69a3;
    padding:0;margin:0;font:inherit;line-height:1.45;cursor:pointer;text-decoration:underline dotted;text-underline-offset:.12em;
}
.caic-strongs-usage-link:hover,.caic-strongs-usage-link:focus{background:transparent!important;color:#084d78;outline-offset:2px;}
.caic-strongs-usage-box{width:min(540px,calc(100vw - 24px));}
.caic-strongs-usage-results{max-height:calc(100vh - 150px);overflow:auto;background:var(--caic-verse-bg,#fff);color:var(--caic-verse-text,#202428);padding:8px 12px 10px;}
.caic-strongs-usage-verse{padding:8px 0 10px;border-bottom:1px solid rgba(0,0,0,.12);}
.caic-strongs-usage-verse:last-child{border-bottom:0;}
.caic-strongs-usage-reference{font-weight:700;margin-bottom:3px;color:#202428;}
.caic-strongs-usage-text{line-height:1.5;text-align:left;}
.caic-strongs-usage-hit{background:#fff3a6;color:inherit;padding:0 .04em;font-weight:700;}
@media (max-width:600px){.caic-strongs-usage-box{width:calc(100vw - 24px);}.caic-strongs-usage-results{max-height:calc(70vh - 80px);}}
/* v0.3.8 — keep very large Usage by Word lists compact until requested */
.caic-strongs-usage-extra{display:none!important;}
.caic-strongs-usage-extra.caic-strongs-usage-extra-visible{display:inline-block!important;}
.caic-strongs-usage-toggle{
    appearance:none;-webkit-appearance:none;border:0;background:transparent!important;color:#0b69a3;
    padding:4px 0 0;margin:2px 0 0;font:inherit;font-weight:700;line-height:1.35;cursor:pointer;
    text-decoration:underline;text-underline-offset:.14em;
}
.caic-strongs-usage-toggle:hover,.caic-strongs-usage-toggle:focus{background:transparent!important;color:#084d78;outline-offset:2px;}



/* v0.3.9 — on-demand lexical field help */
.caic-strongs-field > strong{
    display:inline-block;
    vertical-align:middle;
}
.caic-field-help-trigger{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:18px;
    height:18px;
    margin:0 0 1px 6px;
    padding:0;
    vertical-align:middle;
    border:1px solid currentColor;
    border-radius:50%;
    background:transparent;
    color:#5f6b76;
    font:700 12px/1 Arial,sans-serif;
    cursor:pointer;
    opacity:.82;
}
.caic-field-help-trigger:hover,
.caic-field-help-trigger:focus-visible{
    color:#0b63a8;
    opacity:1;
    outline:2px solid rgba(11,99,168,.22);
    outline-offset:2px;
}
.caic-field-help-overlay{
    position:fixed;
    inset:0;
    z-index:10000350;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:18px;
    background:rgba(0,0,0,.28);
}
.caic-field-help-box{
    width:min(420px,calc(100vw - 36px));
    max-height:min(320px,70vh);
    overflow:auto;
    background:#fff;
    color:#202428;
    border:1px solid #aeb8c2;
    border-radius:7px;
    box-shadow:0 10px 34px rgba(0,0,0,.28);
    font-size:15px;
    line-height:1.5;
}
.caic-field-help-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:10px 12px;
    background:#f5f7f9;
    border-bottom:1px solid #d8dde2;
}
.caic-field-help-head strong{
    font-size:16px;
}
.caic-field-help-close{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:32px;
    height:32px;
    padding:0;
    border:0;
    border-radius:4px;
    background:transparent;
    color:#303841;
    font:700 24px/1 Arial,sans-serif;
    cursor:pointer;
}
.caic-field-help-close:hover,
.caic-field-help-close:focus-visible{
    background:#e8edf2;
    outline:2px solid rgba(11,99,168,.24);
    outline-offset:1px;
}
.caic-field-help-body{
    padding:14px 15px 16px;
}
/* v0.3.11 — clickable Scripture references inside Strong's usage results */
.caic-strongs-usage-reference-link{
    appearance:none;-webkit-appearance:none;border:0;background:transparent!important;
    padding:0;margin:0;font:inherit;font-weight:700;color:#0b69a3;cursor:pointer;
    text-decoration:underline;text-underline-offset:.12em;
}
.caic-strongs-usage-reference-link:hover,.caic-strongs-usage-reference-link:focus{
    background:transparent!important;color:#084d78;outline-offset:2px;
}
.caic-strongs-usage-translation{font-weight:700;color:#202428;}



/* v0.3.13 — full-chapter context reader */
.caic-popup-chapter{
    margin-right:2px !important;
    min-width:30px !important;
    padding-left:6px !important;
    padding-right:6px !important;
}
.caic-popup-chapter-icon{
    display:inline-block;
    font-size:18px !important;
    line-height:1 !important;
    transform:translateY(-1px);
}
.caic-chapter-reader-box{
    width:min(570px,calc(100vw - 24px));
    max-height:min(78vh,720px);
}
.caic-chapter-navigation{
    position:sticky;
    top:45px;
    z-index:2;
    display:grid;
    grid-template-columns:42px minmax(0,1fr) 42px;
    align-items:center;
    gap:8px;
    padding:7px 10px;
    background:var(--caic-verse-bg,#fff);
    color:var(--caic-verse-text,#202428);
    border-bottom:1px solid rgba(0,0,0,.12);
}
.caic-chapter-navigation-label{
    text-align:center;
    font-weight:700;
}
.caic-chapter-nav{
    appearance:none;
    -webkit-appearance:none;
    min-width:36px;
    min-height:30px;
    padding:2px 8px;
    border:1px solid rgba(0,0,0,.18);
    border-radius:4px;
    background:transparent;
    color:inherit;
    font:700 20px/1 Arial,sans-serif;
    cursor:pointer;
}
.caic-chapter-nav:hover,.caic-chapter-nav:focus-visible{
    background:rgba(0,0,0,.06);
    outline:2px solid rgba(11,99,168,.22);
    outline-offset:1px;
}
.caic-chapter-nav:disabled{
    opacity:.28;
    cursor:default;
    background:transparent;
    outline:none;
}
.caic-chapter-verse-link{
    appearance:none !important;
    -webkit-appearance:none !important;
    background:transparent !important;
    cursor:pointer !important;
    border-radius:2px !important;
}
.caic-chapter-verse-link:hover,.caic-chapter-verse-link:focus-visible{
    color:#0b63a8 !important;
    opacity:1 !important;
    text-decoration:underline;
    outline:2px solid rgba(11,99,168,.18) !important;
    outline-offset:1px;
}
.caic-chapter-source-verse{
    background:rgba(255,243,166,.60);
    border-radius:3px;
    box-shadow:0 0 0 3px rgba(255,243,166,.60);
}
@media (max-width:600px){
    .caic-chapter-reader-box{width:calc(100vw - 20px);max-height:72vh;}
    .caic-popup-chapter-icon{font-size:17px !important;}
}


/* v0.3.18 — BSB textual-source abbreviation help */
.caic-bsb-abbr-link{
    appearance:none;
    -webkit-appearance:none;
    border:0;
    border-bottom:1px dotted currentColor;
    background:transparent;
    color:#0673aa;
    padding:0;
    margin:0;
    font:inherit;
    font-weight:700;
    line-height:inherit;
    cursor:help;
}
.caic-bsb-abbr-link:hover,
.caic-bsb-abbr-link:focus-visible{
    background:rgba(255,243,166,.65);
    outline:none;
}
.caic-bsb-abbreviation-box{width:min(410px,calc(100vw - 20px));}
.caic-bsb-abbreviation-body{
    padding:12px 14px;
    background:var(--caic-verse-bg,#fff);
    color:var(--caic-verse-text,#202428);
    line-height:1.48;
}
.caic-bsb-abbreviation-body p{margin:0 0 10px;}
.caic-bsb-abbreviation-body p:last-child{margin-bottom:0;}
.caic-bsb-abbreviation-note{
    padding-top:9px;
    border-top:1px solid rgba(0,0,0,.12);
    font-size:.94em;
}


/* v0.3.19 — clearer BSB footnote source/reference layout */
.caic-bsb-footnote-source-reference{
    font-weight:700;
    margin:0;
    padding:0 0 7px;
    color:inherit;
}
.caic-bsb-footnote-source-divider{
    border-top:1px solid rgba(0,0,0,.22);
    height:0;
    margin:0 0 9px;
}
.caic-bsb-footnote-body .caic-bsb-crossref-link{
    font:inherit;
    color:#0673aa;
    text-decoration:underline;
    text-decoration-thickness:1px;
    text-underline-offset:2px;
    background:transparent;
    border:0;
    padding:0;
    margin:0;
    cursor:pointer;
}
.caic-bsb-footnote-body .caic-bsb-crossref-link:hover,
.caic-bsb-footnote-body .caic-bsb-crossref-link:focus-visible{
    background:rgba(255,243,166,.65);
    outline:none;
}


/* v0.3.26.6 — optional, loose-coupled LXX launcher in the existing sticky footer. */
.caic-st-lxx-footer-button{position:absolute;right:8px;top:50%;transform:translateY(-50%);font:700 var(--caic-lxx-btn-size,12px)/1.05 Arial,sans-serif;letter-spacing:.015em;padding:3px 8px;border:1px solid var(--caic-lxx-btn-border,#7a828a);border-radius:4px;background:linear-gradient(to bottom,rgba(255,255,255,.38),rgba(0,0,0,.08)),var(--caic-lxx-btn-bg,#f4f5f6);color:var(--caic-lxx-btn-text,#1d2327);box-shadow:inset 0 1px 0 rgba(255,255,255,.72),inset 0 -1px 0 rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24);cursor:pointer;white-space:nowrap;text-shadow:0 1px 0 rgba(255,255,255,.25)}
.caic-st-lxx-footer-button:hover,.caic-st-lxx-footer-button:focus-visible{filter:brightness(1.06);box-shadow:inset 0 1px 0 rgba(255,255,255,.8),inset 0 -1px 0 rgba(0,0,0,.14),0 2px 3px rgba(0,0,0,.28);outline:none}
.caic-st-lxx-footer-button:active{transform:translateY(calc(-50% + 1px));box-shadow:inset 0 1px 2px rgba(0,0,0,.18),0 1px 1px rgba(0,0,0,.18)}

/* v0.3.26.19 — book/chapter chooser added to the existing full-chapter reader. */
.caic-chapter-navigation-label-button{
    appearance:none;
    -webkit-appearance:none;
    display:block;
    width:100%;
    min-width:0;
    padding:5px 10px;
    border:1px solid transparent;
    border-radius:5px;
    background:transparent;
    color:inherit;
    font:inherit;
    font-weight:700;
    text-align:center;
    cursor:pointer;
}
.caic-chapter-navigation-label-button:hover,
.caic-chapter-navigation-label-button:focus-visible,
.caic-chapter-navigation-label-button[aria-expanded="true"]{
    border-color:rgba(11,99,168,.28);
    background:rgba(11,99,168,.07);
    outline:none;
}
.caic-chapter-navigation-label-button::after{
    content:' ▾';
    font-size:11px;
    opacity:.68;
}
.caic-chapter-picker{
    position:absolute;
    left:12px;
    right:12px;
    z-index:12;
    max-height:min(430px,calc(100% - 118px));
    overflow:auto;
    padding:0 12px 13px;
    background:var(--caic-chapter-picker-bg,#fff9dc);
    color:var(--caic-verse-text,#202428);
    border:1px solid var(--caic-border-color,#cfd6dc);
    border-radius:7px;
    box-shadow:0 10px 30px rgba(0,0,0,.24);
}
.caic-chapter-picker-head{
    position:sticky;
    top:0;
    z-index:2;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin:0 -12px 10px;
    padding:9px 12px;
    background:var(--caic-header-bg,#f5f7f9);
    color:var(--caic-header-text,#202428);
    border-bottom:1px solid rgba(0,0,0,.1);
}
.caic-chapter-picker-head strong{font-size:14px;}
.caic-chapter-picker-close{
    appearance:none;
    -webkit-appearance:none;
    border:0;
    background:transparent;
    color:inherit;
    font:700 22px/1 Arial,sans-serif;
    cursor:pointer;
    padding:1px 4px;
}
/* v0.3.26.29 — independently configurable normal tab/book/chapter button background. */
.caic-chapter-picker-tabs{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
    margin-bottom:10px;
}
.caic-chapter-picker-tab,
.caic-chapter-picker-book,
.caic-chapter-picker-chapter{
    appearance:none;
    -webkit-appearance:none;
    border:1px solid rgba(0,0,0,.15);
    border-radius:5px;
    background:var(--caic-chapter-picker-button-bg,#f7f7f7);
    color:inherit;
    font:inherit;
    cursor:pointer;
}
.caic-chapter-picker-tab{
    padding:7px 8px;
    font-weight:700;
}
.caic-chapter-picker-tab.is-current,
.caic-chapter-picker-book.is-current,
.caic-chapter-picker-chapter.is-current{
    border-color:#0b63a8;
    background:rgba(11,99,168,.11);
    color:#07558f;
}
.caic-chapter-picker-tab:hover,
.caic-chapter-picker-tab:focus-visible,
.caic-chapter-picker-book:hover,
.caic-chapter-picker-book:focus-visible,
.caic-chapter-picker-chapter:hover,
.caic-chapter-picker-chapter:focus-visible{
    border-color:#0b63a8;
    background:rgba(11,99,168,.08);
    outline:none;
}
.caic-chapter-picker-label{
    margin:7px 0 5px;
    font-size:11px;
    font-weight:800;
    letter-spacing:.04em;
    text-transform:uppercase;
    opacity:.72;
}
.caic-chapter-picker-books{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:5px;
}
.caic-chapter-picker-book{
    min-height:31px;
    padding:5px 4px;
    font-size:12px;
    line-height:1.15;
}
.caic-chapter-picker-chapter-label{margin-top:11px;}
.caic-chapter-picker-chapters{
    display:grid;
    grid-template-columns:repeat(10,minmax(0,1fr));
    gap:5px;
}
.caic-chapter-picker-chapter{
    min-height:30px;
    padding:4px 2px;
    font-size:12px;
    font-weight:700;
}
@media (max-width:620px){
    .caic-chapter-picker{left:7px;right:7px;padding-left:8px;padding-right:8px;}
    .caic-chapter-picker-head{margin-left:-8px;margin-right:-8px;padding-left:9px;padding-right:9px;}
    .caic-chapter-picker-books{grid-template-columns:repeat(3,minmax(0,1fr));}
    .caic-chapter-picker-chapters{grid-template-columns:repeat(7,minmax(0,1fr));}
}


/* v0.3.26.20 — convenience refinement: keep the desktop book/chapter chooser fully visible without its own scrollbar. */
@media (min-width:621px){
    .caic-chapter-picker{
        max-height:none;
        overflow:visible;
        padding:0 9px 9px;
    }
    .caic-chapter-picker-head{
        position:static;
        margin:0 -9px 6px;
        padding:6px 9px;
    }
    .caic-chapter-picker-tabs{gap:5px;margin-bottom:6px;}
    .caic-chapter-picker-tab{padding:5px 7px;}
    .caic-chapter-picker-label{margin:5px 0 3px;}
    .caic-chapter-picker-books{grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;}
    .caic-chapter-picker-book{min-height:25px;padding:3px 3px;font-size:11px;}
    .caic-chapter-picker-chapter-label{margin-top:7px;}
    .caic-chapter-picker-chapters{grid-template-columns:repeat(15,minmax(0,1fr));gap:3px;}
    .caic-chapter-picker-chapter{min-height:24px;padding:2px 1px;font-size:11px;}
}


/* v0.3.26.27 — soft parchment navigator + Other Literature source cue. */
.caic-chapter-picker-note{
    margin:-1px 0 6px;
    padding:5px 8px;
    border:1px solid rgba(154,125,35,.20);
    border-radius:5px;
    background:var(--caic-lxx-literature-note-bg,#fff4b0);
    font-size:11px;
    line-height:1.25;
    text-align:center;
    color:var(--caic-lxx-literature-note-text,#5d531f);
}
@media (max-width:620px){
    .caic-chapter-picker-tabs{grid-template-columns:1fr;}
}
