/* Inherits reader paper/theme colors without changing the surrounding workspace. */
@font-face{font-family:'Bible Study Hebrew';src:url('../fonts/bible/NotoSerifHebrew.ttf') format('truetype');font-style:normal;font-weight:100 900;font-display:swap;}
@font-face{font-family:'Bible Study Serif';src:url('../fonts/bible/NotoSerif.ttf') format('truetype');font-style:normal;font-weight:100 900;font-display:swap;}
.bs-panel{box-sizing:border-box;max-width:100%;min-width:0;color:var(--bw-ink,#292b2a);background:var(--bw-page,#fff);font:inherit;line-height:1.6;padding:clamp(14px,3vw,24px);border:1px solid var(--bw-line,#e6e9e5);border-radius:14px;overflow-wrap:anywhere;}
.bs-panel *{box-sizing:border-box;}
.bs-panel [hidden]{display:none!important;}
.bs-title{font-size:1.2em;line-height:1.35;margin:0 0 8px;font-weight:600;}
.bs-reference{font-weight:600;margin:0 0 16px;}
.bs-reference:empty{display:none;}
.bs-source-label{display:block;font-size:.9em;margin-bottom:14px;}
.bs-edition-title{display:block;font-weight:600;margin-top:5px;}
.bs-source{display:block;width:100%;max-width:100%;min-height:44px;margin-top:6px;padding:9px 12px;border:1px solid var(--bw-line,#dde3da);border-radius:8px;background:var(--bw-soft,#f5f7f4);color:inherit;font:inherit;text-overflow:ellipsis;}
.bs-source:disabled{opacity:1;}
.bs-status,.bs-notice,.bs-reading-note{color:var(--bw-muted,#667367);font-size:.88em;line-height:1.65;margin:10px 0;}
.bs-notice{padding:10px 12px;border-inline-start:3px solid var(--bw-accent,#526f59);background:var(--bw-soft,#f5f7f4);}
.bs-passage{font-family:'Bible Study Hebrew','Bible Study Serif','Times New Roman',serif;font-size:max(25px,var(--bw-font-size,25px));line-height:2.15;white-space:normal;word-break:normal;text-align:start;}
.bs-word{display:inline;padding:6px 3px;margin:0 1px;min-height:44px;border:0;border-radius:5px;background:transparent;color:inherit;font:inherit;line-height:inherit;cursor:pointer;text-align:inherit;white-space:normal;overflow-wrap:anywhere;}
.bs-word:hover,.bs-word[aria-pressed="true"]{background:var(--bw-soft,#eef2eb);box-shadow:inset 0 -2px var(--bw-accent,#526f59);}
.bs-ketiv{text-decoration:underline;text-decoration-style:dotted;text-underline-offset:7px;}
.bs-unannotated{color:var(--bw-muted,#667367);}
.bs-alternate{margin-top:16px;padding:12px;border:1px dashed var(--bw-line,#d7ded4);border-radius:9px;}
.bs-alternate h4{font:inherit;font-size:.85em;font-weight:600;margin:0 0 4px;}
.bs-detail{margin-top:20px;padding-top:18px;border-top:1px solid var(--bw-line,#e6e9e5);}
.bs-detail-word{font:1.7em/1.65 'Bible Study Hebrew','Bible Study Serif','Times New Roman',serif;margin:0 0 8px;text-align:start;}
.bs-analysis,.bs-lexeme{margin-top:16px;padding:12px 14px;background:var(--bw-soft,#f5f7f4);border-radius:9px;min-width:0;}
.bs-analysis h5,.bs-lexeme summary{font:inherit;font-size:.88em;font-weight:600;margin:0 0 10px;}
.bs-lexeme summary{cursor:pointer;min-height:44px;padding:8px 0;margin:0;}.bs-lexeme[open] summary{margin-bottom:10px;}
.bs-fields{display:grid;grid-template-columns:minmax(90px,1fr) minmax(0,3fr);gap:5px 12px;margin:0;font-size:.9em;}
.bs-fields dt{color:var(--bw-muted,#667367);font-weight:400;}
.bs-fields dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;unicode-bidi:plaintext;}
.bs-sources{margin-top:22px;padding-top:14px;border-top:1px solid var(--bw-line,#e6e9e5);font-size:.82em;}
.bs-sources summary{cursor:pointer;min-height:44px;display:list-item;padding:9px 0;font-weight:600;}
.bs-attribution{margin:8px 0 14px;}.bs-attribution p{margin:4px 0;color:var(--bw-muted,#667367);}
.bs-attribution a{color:var(--bw-accent,#526f59);text-decoration:underline;}
.bs-retry{min-height:44px;padding:8px 14px;border:1px solid var(--bw-line,#d7ded4);background:var(--bw-soft,#f5f7f4);border-radius:8px;color:inherit;font:inherit;cursor:pointer;}
.bs-panel button:focus-visible,.bs-panel select:focus-visible,.bs-panel summary:focus-visible,.bs-panel a:focus-visible{outline:3px solid var(--bw-accent,#526f59);outline-offset:3px;}
.night-mode .bs-panel:not(.bw-study-dialog .bs-panel){--bw-page:#202622;--bw-soft:#2b322d;--bw-line:#3a443c;--bw-ink:#e8ece7;--bw-muted:#b1bcb2;--bw-accent:#b5cbb8;}
@media(max-width:480px){.bs-fields{grid-template-columns:minmax(0,1fr);gap:0;}.bs-fields dd{margin-bottom:10px;}.bs-word{padding-inline:2px;}.bs-panel{border-radius:10px;}}
.bs-reference-form{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:16px 0}
.bs-reference-form label{display:flex;flex-direction:column;gap:5px;flex:1 1 100px;min-width:0}
.bs-reference-form input{box-sizing:border-box;max-width:100%;width:100%;font:inherit;padding:8px;border:1px solid currentColor;border-radius:8px;background:transparent;color:inherit}
.bs-go-reference{font:inherit;max-width:100%;white-space:normal;cursor:pointer;padding:8px 12px;border:1px solid currentColor;border-radius:8px;background:transparent;color:inherit}
.bs-explanation{border-top:1px solid var(--bw-border,#cbd5cf);margin-top:1.5rem;padding-top:1rem;overflow-wrap:anywhere;color:inherit}
.bs-explanation[hidden],.bs-explain-button[hidden]{display:none!important}
.bs-explain-button{max-width:100%;white-space:normal;border:1px solid currentColor;border-radius:.65rem;padding:.7rem 1rem;background:transparent;color:inherit;font:inherit;cursor:pointer}
.bs-explain-button:disabled{opacity:.65;cursor:default}
.bs-explain-items{padding-inline-start:1.5rem}.bs-explain-items li{margin:.7rem 0}.bs-explain-price,.bs-explain-status{font-size:.9em}
.bw-dialog.bw-study-dialog{background:var(--bw-page);color:var(--bw-ink);border-color:var(--bw-line);font-size:var(--bw-font-size,21px)}
.bw-study-dialog .bw-dialog-header{border-color:var(--bw-line)}
.bw-study-dialog .bs-panel{font-size:inherit}

.bs-explain-quotation{margin:0 0 1rem;padding:1rem;border-inline-start:3px solid var(--bw-accent,#526f59);background:var(--bw-soft,#f5f7f4);color:inherit;white-space:pre-wrap;unicode-bidi:plaintext}
.bs-explain-quotation p{margin:0 0 .5rem}.bs-explain-quotation footer{font-size:.85em;color:var(--bw-muted,#667367)}
.bs-explanation:first-child{margin-top:0;border-top:0;padding-top:0}
.bs-explanation button:focus-visible,.bs-explanation summary:focus-visible{outline:3px solid var(--bw-accent,#526f59);outline-offset:3px}
