.word-study-help{font:14px/1.7 Georgia,serif;color:var(--muted);max-width:72ch;margin:12px 0 20px}
#bibleResult .bible-study-word{display:inline-block;min-height:44px;max-width:100%;padding:0 2px;margin:0;border:0;border-bottom:1px dotted var(--gold);border-radius:0;background:transparent;color:inherit;font:inherit;line-height:inherit;text-align:inherit;white-space:normal;overflow-wrap:anywhere;letter-spacing:normal;text-transform:none;cursor:pointer}
#bibleResult .bible-study-word:hover,#bibleResult .bible-study-word:focus-visible{background:var(--panel-2);outline:2px solid var(--gold);outline-offset:1px}
.word-study-dialog{box-sizing:border-box;width:min(860px,calc(100vw - 24px));max-height:88vh;max-height:88dvh;padding:0;border:1px solid var(--border);border-radius:16px;background:var(--panel);color:var(--text);font:17px/1.75 Georgia,serif;overflow:auto;overflow-wrap:anywhere;box-shadow:0 24px 90px #0005;scrollbar-gutter:stable;overscroll-behavior:contain}
.word-study-dialog::backdrop{background:#0009}
.word-study-header{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 26px;border-bottom:1px solid var(--border);background:var(--panel)}
.word-study-dialog h2{font:400 clamp(21px,3vw,27px)/1.35 Georgia,serif;margin:0;color:var(--text)}
.word-study-dialog h3{font:500 20px/1.5 Georgia,serif;margin:26px 0 14px;color:var(--text)}
.word-study-dialog h4{font:600 14px/1.6 system-ui,sans-serif;margin:0 0 18px;color:var(--text)}
.word-study-dialog h5{font:600 14px/1.6 system-ui,sans-serif;margin:18px 0 6px;color:var(--text)}
.word-study-dialog p{margin:8px 0 14px;max-width:72ch;color:var(--text)}
.word-study-dialog .word-study-close{flex:none;min-height:44px;max-width:45%;padding:8px 14px;border-radius:8px;background:var(--panel-2);color:var(--text);border:1px solid var(--border);font:500 14px/1.5 system-ui,sans-serif;white-space:normal;cursor:pointer}
.word-study-content{padding:0 26px 28px}
.word-study-dialog section{display:block;flex:none;padding:0;min-height:0}
.word-study-dialog .word-study-selection{padding:20px 0 16px;border-bottom:1px solid var(--border)}
.word-study-selection>p:first-child,.word-study-word-pair>div>p:first-child{font:500 14px/1.5 system-ui,sans-serif;margin:0 0 7px}
.word-study-dialog .word-study-selection h3{font-size:26px;line-height:1.4;margin:0 0 10px}
.word-study-dialog .word-study-reference{font:14px/1.6 system-ui,sans-serif;margin:0}
.word-study-dialog .word-study-source-form{padding-bottom:10px}
.word-study-source-form>p:last-child{font:14px/1.75 system-ui,sans-serif}
.word-study-entries{display:grid;gap:18px}
.word-study-dialog .word-study-entry{min-width:0;padding:22px;border:1px solid var(--border);border-radius:12px;background:var(--panel-2)}
.word-study-word-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;padding-bottom:14px;border-bottom:1px solid var(--border)}
.word-study-word-pair>div{min-width:0}
.word-study-dialog .source-lemma{font:clamp(30px,5vw,42px)/1.8 Georgia,serif;margin:4px 0 8px;unicode-bidi:isolate;letter-spacing:normal}
.word-study-dialog .word-study-transliteration{font:italic 24px/1.8 Georgia,serif;margin:4px 0 8px}
.word-study-dialog .word-study-definition{font-size:18px;line-height:1.8}
.word-study-dialog details{padding-top:10px;border-top:1px solid var(--border)}
.word-study-dialog summary{display:list-item;min-height:44px;padding:8px 2px;cursor:pointer;font:500 14px/1.8 system-ui,sans-serif;color:var(--text)}
.word-study-entry-notes p,.word-study-provenance p{font:14px/1.8 system-ui,sans-serif}
.word-study-dialog .word-study-context{font:14px/1.8 system-ui,sans-serif}
.word-study-learning{padding:0 0 14px;margin:24px 0 12px}
.word-study-learning p{font:15px/1.8 system-ui,sans-serif}
.word-study-dialog :focus-visible{outline:2px solid var(--gold);outline-offset:3px}
@media(max-width:540px){.word-study-dialog{width:calc(100vw - 16px);max-height:92dvh;border-radius:12px}.word-study-header{padding:14px 16px;gap:10px}.word-study-content{padding:0 16px 20px}.word-study-dialog .word-study-entry{padding:18px 14px}.word-study-word-pair{grid-template-columns:minmax(0,1fr);gap:12px}.word-study-dialog .word-study-definition{font-size:17px}}
@media print{.word-study-dialog,.word-study-help{display:none!important}#bibleResult .bible-study-word{border:0;min-height:0;padding:0}}
.orthodox-context-link{display:block;min-height:44px;margin:12px 0;padding:10px 0;color:var(--gold-bright);font:14px/1.7 system-ui,sans-serif;overflow-wrap:anywhere}
