/* Scripture tooltip (scripture-tip.js). Colours follow the site tokens where they exist. */
.stip { position:absolute; z-index:60; background:var(--bg, #fff); color:var(--ink, #1d1d1b);
        border:1px solid var(--rule, #d9d6cf); border-radius:6px; box-shadow:0 6px 24px rgba(0,0,0,.14);
        padding:.7rem .9rem .6rem; font-size:.9rem; line-height:1.45; }
.stip-ref { font-family:system-ui, sans-serif; font-weight:600; font-size:.82rem; margin:0 0 .35rem; }
.stip-v { margin:.15rem 0; }
.stip-v sup { color:var(--muted, #5f5d58); font-size:.68em; margin-right:.1em; }
.stip-more, .stip-load { color:var(--muted, #5f5d58); font-size:.82rem; margin:.3rem 0 0; }
.stip-whole { margin:0 0 .3rem; }   /* "Whole chapter · 18 verses" above a chapter-only preview (2026-11-05) */
.stip-links { display:flex; flex-wrap:wrap; justify-content:space-between; gap:.3rem .8rem; margin:.5rem 0 0;
              padding-top:.4rem; border-top:1px solid var(--rule, #d9d6cf); font-family:system-ui, sans-serif;
              font-size:.8rem; }
.stip-src { color:var(--muted, #5f5d58); font-size:.72rem; }
[data-ref] { text-decoration-style:dotted; cursor:help; }
@media (prefers-reduced-motion: no-preference) { .stip { animation:stip-in .12s ease-out; } }
@keyframes stip-in { from { opacity:0; transform:translateY(-3px); } to { opacity:1; transform:none; } }

/* Note tooltips (note-tip.js): same box; the note text keeps the article's text face */
.ntip .ntip-body { margin:0; font-family:var(--font-text, Georgia, serif); font-size:.9rem; }
.ntip .stip-links { justify-content:flex-end; }
sup.fnref a { cursor:pointer; }
/* references marked in running text (abstracts, 2026-11-04): a dotted underline says there is a preview */
.sref { text-decoration:underline dotted; text-underline-offset:.15em; }

/* Original-language line and word cards (2026-11-06). The fonts are SIL Open Font Licence subsets (tools/subset_orig_fonts.py),
   named Worms Greek / Worms Hebrew; a browser fetches one only when the tooltip first draws text in it. */
@font-face { font-family:"Worms Greek"; src:url(/assets/fonts/orig-greek.woff2) format("woff2"); font-display:swap; }
@font-face { font-family:"Worms Hebrew"; src:url(/assets/fonts/orig-hebrew.woff2) format("woff2"); font-display:swap; }
.stip-orig-box { margin:0 0 .5rem; padding-bottom:.45rem; border-bottom:1px solid var(--rule, #d9d6cf); }
.stip-olabel { margin:0 0 .15rem; }
.stip-orig { margin:0; font-size:1.12rem; line-height:1.45; overflow-wrap:anywhere; }   /* was 1.75; Greek looked double-spaced (Drew, 2026-11-09: "grk tooltip sblgnt line spacing too big"); Hebrew keeps 1.7 below for its points */
.stip-orig[lang="grc"], .stip-card [lang="grc"] { font-family:"Worms Greek","SBL Greek",Cardo,serif; }
.stip-orig[lang="hbo"], .stip-card [lang="hbo"], .stip-orig [lang="hbo"] { font-family:"Worms Hebrew","SBL Hebrew",Cardo,serif; font-size:1.2em; line-height:1.7; }
.stip-orig [lang="arc"], .stip-card [lang="arc"] { font-family:"Worms Hebrew","SBL Hebrew",Cardo,serif; }
.stip-w { font:inherit; color:inherit; background:none; border:0; border-radius:3px; padding:0 .08em; margin:0; cursor:pointer;
          text-decoration:underline dotted transparent; text-underline-offset:.2em; }
.stip-w:hover { background:rgba(127,127,127,.16); text-decoration-color:currentColor; }
.stip-w:focus-visible, .stip-back:focus-visible, .stip-card:focus-visible { outline:2px solid var(--c-link, #1f5f99); outline-offset:1px; }
.stip-card { outline-offset:3px; }
.stip-cardnav { margin:0 0 .4rem; font-family:system-ui, sans-serif; font-size:.8rem; }
.stip-back { font:inherit; background:none; border:0; padding:.15rem 0; color:var(--c-link, #1f5f99); cursor:pointer; text-decoration:underline; }
.wc-form { margin:.1rem 0 .3rem; font-size:1.6rem; line-height:1.4; }
.wc-form[lang="hbo"], .wc-form[lang="arc"] { font-size:1.75rem; text-align:right; }
.wc-lemma, .wc-parse, .wc-gloss, .wc-flag { margin:.2rem 0; }
.wc-k { font-family:system-ui, sans-serif; font-size:.72rem; letter-spacing:.06em; text-transform:uppercase; color:var(--muted, #5f5d58); }
.wc-lem { font-size:1.1rem; }
.wc-tr { font-family:"Worms Greek",Cardo,serif; }
.wc-parse { font-family:system-ui, sans-serif; font-size:.88rem; }
.wc-gloss { font-weight:600; }
.wc-flag { color:var(--muted, #5f5d58); font-size:.82rem; font-style:italic; }
.wc-links { justify-content:flex-start; }
.wc-src { display:block; margin:.45rem 0 0; line-height:1.35; }
@media (pointer:coarse) { .stip-w { padding:.2em .25em; } .stip-back { padding:.4rem 0; } }
/* an opened passage can be several verses in two languages: scroll inside the box, never past the window (2026-11-11) */
.stip { max-height:min(80vh, 36rem); overflow-y:auto; overscroll-behavior:contain; }
