/* Bible references inherit post typography; the popup is scoped independently. */
html#XF .message-body a.tjb-scriptureRef {
  color:#245549; font:inherit; text-decoration-line:underline;
  text-decoration-style:dotted; text-decoration-color:#91a282; text-underline-offset:3px;
  border:0; background:none; padding:0; border-radius:0;
}
html#XF .message-body a.tjb-scriptureRef:hover,
html#XF .message-body a.tjb-scriptureRef[aria-expanded="true"] { color:#173c32; text-decoration-style:solid; }
html#XF .tjb-referencePopup {
  position:fixed; z-index:10000; display:flex; flex-direction:column;
  max-width:calc(100vw - 24px); max-height:calc(100vh - 24px); max-height:calc(100dvh - 24px);
  margin:0; padding:0; background:#fffefa; color:#263f36;
  border:1px solid #d4ddcc; border-radius:16px; overflow:hidden;
  box-shadow:0 16px 48px rgba(29,55,42,.18),0 3px 9px rgba(29,55,42,.06);
  font:400 15px/1.6 Arial,Helvetica,sans-serif; text-align:start; box-sizing:border-box;
}
html#XF .tjb-referencePopup[hidden] { display:none!important; }
html#XF .tjb-referencePopup * { box-sizing:border-box; }
html#XF .tjb-refHeader { display:flex; align-items:center; gap:12px; flex:0 0 auto; padding:16px 16px 14px 20px; background:#edf1e5; border-bottom:1px solid #dde4d6; }
html#XF .tjb-refTitles { min-width:0; flex:1; }
html#XF .tjb-refHeading { display:block; font:400 24px/1.2 Georgia,serif; color:#1c4037; overflow-wrap:anywhere; }
html#XF .tjb-refTranslation { display:block; color:#617063; font:400 12px/1.5 Arial,Helvetica,sans-serif; margin-top:5px; }
html#XF .tjb-refClose { display:grid; place-items:center; width:40px; height:40px; flex:0 0 40px; padding:0; border:1px solid #d5dfce; border-radius:10px; background:#fffefa; color:#46624e; font:400 27px/1 Arial,sans-serif; cursor:pointer; }
html#XF .tjb-refClose:hover { color:#fffefa; background:#245549; border-color:#245549; }
html#XF .tjb-refContent { min-height:0; overflow:auto; overscroll-behavior:contain; padding:18px 20px; max-height:360px; }
html#XF .tjb-refStatus { margin:0; font:inherit; }
html#XF .tjb-refVerses { list-style:none; padding:0; margin:0; }
html#XF .tjb-refRow { display:grid; grid-template-columns:36px minmax(0,1fr); gap:9px; align-items:start; list-style:none; padding:0; margin:0 0 13px; }
html#XF .tjb-refRow:last-child { margin-bottom:0; }
html#XF .tjb-refNumber { display:flex; justify-content:center; align-items:center; min-height:26px; font:500 11px/1.4 Arial,Helvetica,sans-serif; color:#6b795b; background:#f0f2e7; border-radius:7px; padding:4px 2px; margin-top:1px; }
html#XF .tjb-refText { min-width:0; font:400 16px/1.6 Georgia,serif; color:#263f36; overflow-wrap:break-word; }
html#XF .tjb-refRed { color:#a74436; }
html#XF .tjb-refFooter { flex:0 0 auto; display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap; padding:14px 20px; background:#f7f7ef; border-top:1px solid #e1e5d9; }
html#XF .tjb-refNote { color:#65725d; font:400 11px/1.5 Arial,Helvetica,sans-serif; flex:1 1 110px; }
html#XF .tjb-refRead { display:inline-flex; justify-content:center; align-items:center; min-height:42px; padding:10px 13px; border:1px solid #245549; border-radius:9px; background:#245549; color:#fffefa; text-decoration:none; font:600 12px/1.4 Arial,Helvetica,sans-serif; }
html#XF .tjb-refRead:hover { color:#fffefa; background:#173d32; border-color:#173d32; text-decoration:none; }
@media(pointer:coarse) { html#XF .tjb-refClose { width:44px; height:44px; flex-basis:44px; } }
@media(max-width:400px) {
  html#XF .tjb-refHeader { padding:14px; }
  html#XF .tjb-refContent { padding:16px 14px; }
  html#XF .tjb-refFooter { padding:12px 14px; }
  html#XF .tjb-refHeading { font-size:22px; }
  html#XF .tjb-refText { font-size:16px; }
}
@media print { html#XF .tjb-referencePopup { display:none!important; } }
