/* The reader's meaning card: tap a word that has a finished meaning and this sheet rises.
   Uses the reader's own theme tokens (assets/styles.css); every class is prefixed sc- so nothing else is touched. */
.w.has-sense, .greek-word.has-sense { cursor: pointer; }
body.sense-underline .w.has-sense { text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--fg-tertiary, #999); }
.w.sc-active { background: #FFE9A8; color: #1A1A1A; border-radius: 4px; box-shadow: 0 2px 0 #B8860B; }
.sc-sheet { --sc-accent: var(--button-primary, #0066CC); }
[data-theme="dark"] .sc-sheet, [data-theme="oled"] .sc-sheet { --sc-accent: #6CB2FF; }
[data-theme="dark"] .sc-sheet .sc-btn:not(.ghost), [data-theme="oled"] .sc-sheet .sc-btn:not(.ghost) { background: #0066CC; }
[data-theme="dark"] .sc-edge, [data-theme="oled"] .sc-edge { color: #E9D08A; background: #3b3420; border-color: #5a4e2a; }
.sc-backdrop { position: fixed; inset: 0; z-index: 9000; background: rgba(0, 0, 0, 0.28); opacity: 0; transition: opacity .18s; }
.sc-backdrop.on { opacity: 1; }
.sc-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9001; max-height: 82vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--overlay-bg, #fff); color: var(--fg, #1A1A1A); border-radius: 20px 20px 0 0; box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.22);
  padding: 8px 16px calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateY(102%); transition: transform .22s ease-out;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 17px; line-height: 1.4; overflow-wrap: normal; word-break: normal; }
.sc-sheet.on { transform: translateY(0); }
.sc-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--ui-chrome-border, #D1D1D1); margin: 2px auto 8px; }
.sc-head { display: flex; align-items: flex-start; gap: 8px; }
.sc-eyebrow { flex: 1; min-width: 0; font-size: 14.5px; color: var(--fg-secondary, #666); padding-top: 4px; }
.sc-eyebrow b { color: var(--fg, #1A1A1A); font-weight: 600; }
.sc-eyebrow .he { font-size: 19px; color: var(--fg, #1A1A1A); white-space: nowrap; }
/* a Hebrew word must not pull the number that follows it to its other side */
.sc-eyebrow .he, .sf-o { unicode-bidi: isolate; }
.sc-x { flex: 0 0 44px; width: 44px; height: 44px; margin: -6px -8px 0 0; border: 0; background: none; color: var(--fg-secondary, #666); font-size: 24px; line-height: 1; border-radius: 10px; cursor: pointer; }
.sc-means { font-size: 12.5px; text-transform: uppercase; letter-spacing: .8px; font-weight: 700; color: var(--pericope-subhead, #6d1a1a); margin-top: 2px; }
.sc-label { font-family: 'Libre Baskerville', Georgia, serif; font-weight: 700; font-size: 25px; line-height: 1.2; margin: 2px 0 6px; }
.sc-edge { display: inline-block; font-size: 13px; font-weight: 600; color: #7a5a00; background: #FBF3DC; border: 1px solid #ecd9a0; border-radius: 999px; padding: 2px 10px; margin: 0 0 6px; }
.sc-plain { font-size: 15.5px; margin: 0 0 6px; }
.sc-used { font-size: 14px; font-weight: 600; color: var(--fg-secondary, #666); margin: 10px 0 2px; }
.sc-row { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 0; border-top: 1px solid var(--ui-chrome, #E8E6E1); color: inherit; text-decoration: none; }
.sc-rows .sc-row:first-child { border-top: 0; }
.sc-row .dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #B9B5AC; }
.sc-row.cur .dot { background: var(--sc-accent, #0066CC); box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.14); }
.sc-row .lab { flex: 1; min-width: 0; font-size: 16px; }
.sc-row.cur .lab { font-weight: 700; }
.sc-row .n { flex: none; font-size: 13.5px; color: var(--fg-secondary, #666); white-space: nowrap; }
.sc-row .chev { flex: none; color: var(--fg-tertiary, #999); }
.sc-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.sc-btn { flex: 1 1 auto; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; text-align: center; border-radius: 11px; padding: 10px 12px; font-weight: 600; font-size: 15.5px; background: var(--sc-accent, #0066CC); color: #fff; text-decoration: none; border: 0; }
.sc-btn.ghost { background: rgba(0, 102, 204, 0.10); color: var(--sc-accent, #0066CC); }
.sc-more { display: block; text-align: center; margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--sc-accent, #0066CC); text-decoration: none; min-height: 32px; }
.sc-pick { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; }
.sc-pick button { min-height: 40px; border-radius: 999px; border: 1px solid var(--ui-chrome-border, #D1D1D1); background: none; color: inherit; padding: 6px 14px; font: inherit; font-size: 15px; cursor: pointer; }
.sc-pick button.on { background: var(--sc-accent, #0066CC); border-color: var(--sc-accent, #0066CC); color: #fff; }
[hidden].sc-btn, [hidden].sc-edge, [hidden].sc-plain, [hidden].sc-pick { display: none; }
@media (min-width: 700px) { .sc-sheet { left: 50%; right: auto; width: 520px; margin-left: -260px; bottom: 24px; border-radius: 20px; max-height: 76vh; } .sc-sheet:not(.on) { transform: translateY(120%); } }
@media (prefers-reduced-motion: reduce) { .sc-sheet, .sc-backdrop { transition: none; } }

/* "Meanings" group at the top of the reader's Bible search (assets/sense-search.js) */
.ss-meanings { border-bottom: 1px solid var(--ui-chrome); padding: 4px 0 6px; }
.ss-head { padding: 10px 16px 4px; font-size: 13px; font-weight: 600; color: var(--muted-fg, var(--fg)); opacity: .8; }
.ss-row { display: block; min-height: 48px; padding: 9px 16px; color: var(--fg); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.ss-row:hover { background: var(--highlight); }
.ss-lab { display: block; font-size: 15.5px; font-weight: 600; color: var(--accent); }
.ss-sub { display: block; font-size: 13px; opacity: .75; }

/* The Concordance sub-divided by meaning + the Sense Concordance tab (assets/sense-concordance.js). Reader colour tokens only. */
.sk-box { padding: 4px 0 0; }
.sk-switch { display: flex; gap: 8px; padding: 10px 16px 6px; }
.sk-switch button { min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--ui-chrome-border, var(--ui-chrome)); background: none; color: var(--fg); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.sk-switch button.on { background: var(--accent, #2b6cb0); border-color: var(--accent, #2b6cb0); color: #fff; font-weight: 600; }
.sk-sec { border-bottom: 1px solid var(--ui-chrome-subtle, var(--ui-chrome)); padding-bottom: 8px; }
.sk-h { margin: 0; padding: 16px 16px 2px; font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--fg); }
.sk-sub { margin: 0; padding: 0 16px 6px; font-size: 13.5px; line-height: 1.45; color: var(--fg-secondary, var(--fg)); }
.sk-rest { padding-top: 20px; }
.sk-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--ui-chrome-border, var(--ui-chrome)); font-size: 11.5px; font-weight: 500; color: var(--fg-secondary, var(--fg)); white-space: nowrap; }
.sk-link { display: inline-block; min-height: 44px; padding: 12px 16px; color: var(--accent, #2b6cb0); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.sk-more { min-height: 44px; padding: 8px 20px; border-radius: 999px; border: 1px solid var(--ui-chrome-border, var(--ui-chrome)); background: none; color: var(--accent, #2b6cb0); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.sk-intro { margin: 0; padding: 12px 16px 4px; font-size: 14px; line-height: 1.45; color: var(--fg-secondary, var(--fg)); }
.sk-mlist { padding: 4px 0 24px; }
.sk-mrow { display: block; width: 100%; min-height: 56px; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--ui-chrome-subtle, var(--ui-chrome)); background: none; color: var(--fg); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sk-mrow:hover { background: var(--highlight); }
.sk-mrow[hidden] { display: none; }
.sk-mlab { display: block; font-size: 16.5px; font-weight: 600; line-height: 1.3; color: var(--accent, #2b6cb0); }
.sk-msub { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.4; color: var(--fg-secondary, var(--fg)); }
.sk-mhead { border-bottom: 1px solid var(--ui-chrome-subtle, var(--ui-chrome)); padding-bottom: 2px; }
.sk-mtitle { margin: 0; padding: 16px 16px 4px; font-size: 21px; font-weight: 700; line-height: 1.25; color: var(--fg); }
/* four tabs on a phone: only when the Meanings tab is there, so the three-tab strip is untouched */
@media (max-width: 420px) { .concordance-tabs:has([data-conc-mode="meanings"]) .concordance-tab { padding-left: 4px; padding-right: 4px; font-size: 0.9rem; } }

/* Cross-references by meaning: the "Same meaning elsewhere" section of the Cross-References panel (assets/sense-xref.js). Reader colour tokens only. */
.sx-box { border-bottom: 1px solid var(--ui-chrome); padding-bottom: 4px; }
.sx-title { margin: 0; padding: 16px 16px 2px; font-family: var(--font-family-sans); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-secondary, var(--fg)); }
.sx-intro { margin: 0; padding: 2px 16px 6px; font-family: var(--font-family-sans); font-size: 14px; line-height: 1.45; color: var(--fg-secondary, var(--fg)); }
.sx-word { padding-top: 8px; }
.sx-h { margin: 0; padding: 6px 16px 0; font-size: 17px; line-height: 1.35; color: var(--fg); overflow-wrap: break-word; }
.sx-h b { font-weight: 700; }
.sx-said { font-weight: 600; color: var(--accent, var(--button-primary)); }
.sx-sub { margin: 0; padding: 2px 16px 4px; font-family: var(--font-family-sans); font-size: 13.5px; line-height: 1.4; color: var(--fg-secondary, var(--fg)); }
.sx-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.sx-chip { display: inline-block; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--accent, var(--button-primary)); color: var(--accent, var(--button-primary)); font-family: var(--font-family-sans); font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.sx-chip.sx-soft { border-color: var(--ui-chrome); color: var(--fg-secondary, var(--fg)); font-weight: 500; }
.sx-mark { font-weight: 700; background: var(--highlight); border-radius: 3px; padding: 0 2px; }
.sx-link { display: block; min-height: 44px; padding: 12px 16px; font-family: var(--font-family-sans); font-size: 15px; font-weight: 600; color: var(--accent, var(--button-primary)); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.sx-link:hover { background: var(--highlight); }
.sx-rest { padding-bottom: 8px; border-bottom: 1px solid var(--ui-chrome); }

/* Same meaning in Hebrew and in Greek (ruling J19): one line wherever a meaning is shown (SenseCommon.familyLine). Colour tokens only. */
.sf-line { margin: 6px 0 2px; font-family: var(--font-family-sans, inherit); font-size: 15px; line-height: 1.5; color: var(--fg); overflow-wrap: break-word; }
.sf-k { font-weight: 600; }
.sf-a { font-weight: 700; color: var(--accent, var(--button-primary)); text-decoration: none; border-bottom: 1px solid currentColor; }
.sf-o { opacity: .8; }
.sf-ex { color: var(--fg-secondary, var(--fg)); }
.sx-word .sf-line, .sk-mhead .sf-line { padding: 0 16px; }
#sc-family .sf-line { margin: 8px 0 0; }

/* Word-study links (SenseCommon.studySlot): a link stays out of sight until api/sense_studies.php says its study exists. */
.ss-slot[hidden] { display: none !important; }

/* The reader's word-study overlay (J20): the honest empty state and the placeholder flag; own tokens, no reader class touched. */
.word-empty { padding: 8px 0 16px; font-size: 1.05em; line-height: 1.5; }
.word-empty p { margin: 0 0 12px; }
.word-empty-btn { font: inherit; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border-color, #d8d3c6); background: var(--button-primary, #0066CC); color: #fff; cursor: pointer; }
.word-study-flag { display: inline-block; margin: 0 0 12px; padding: 2px 8px; border-radius: 6px; font-size: 0.85em; background: rgba(230, 160, 40, 0.18); color: var(--text-secondary, #7a5c1c); }

/* J21: "Not Available Yet · Coming Soon" for content that is not generated yet (shared look; own tokens) */
.lx-notyet { padding: 14px 0 6px; }
.lx-notyet-t { display: block; font-size: 1.25em; font-weight: 700; letter-spacing: .01em; }
.lx-notyet-s { display: block; margin-top: 2px; font-size: 0.95em; opacity: .75; text-transform: uppercase; letter-spacing: .08em; }
.lx-notyet-d { margin: 12px 0 0; opacity: .9; }
