/* Theologians Bible — shared reader notes and highlight heat.
 * Companion to tb-shared-notes.js; uses the readers' :root vars, and is
 * deliberately quieter than tb-study.css so a stranger's marks never compete
 * with the reader's own highlights. */

/* ------------------------------------------------ highlight heat
   Four steps, all on the RIGHT edge so they never collide with the reader's
   own highlight, which owns the left border in tb-study.css. */
#verse-list .verse-block[class*="tb-heat-"] {
  box-shadow: inset -3px 0 0 0 rgba(201, 162, 77, 0.22);
}
#verse-list .verse-block.tb-heat-2 { box-shadow: inset -3px 0 0 0 rgba(201, 162, 77, 0.38); }
#verse-list .verse-block.tb-heat-3 { box-shadow: inset -3px 0 0 0 rgba(201, 162, 77, 0.58); }
#verse-list .verse-block.tb-heat-4 { box-shadow: inset -3px 0 0 0 rgba(201, 162, 77, 0.82); }

/* The count itself, revealed on hover rather than printed beside every verse. */
#verse-list .verse-block[data-tb-heat]:hover::before {
  content: attr(data-tb-heat);
  position: absolute; top: -0.55rem; right: 0.4rem;
  font-family: var(--cinzel, serif);
  font-size: 0.55rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-dim, #a07d35);
  background: var(--bg, #0a0a0a);
  padding: 0 0.35rem;
  pointer-events: none;
  z-index: 2;
}

/* ------------------------------------------------ share row (inside the study bar) */
.tb-margins-row {
  margin-top: 0.7rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-gold, rgba(201,162,77,0.14));
}
.tb-margins-lab {
  font-family: var(--cinzel, serif);
  font-size: 0.5rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold-dim, #a07d35);
  display: block; margin-bottom: 0.45rem;
}
.tb-margins-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.tb-margins-btn {
  font-family: var(--cinzel, serif);
  font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold, #C9A24D);
  background: none;
  border: 1px solid var(--border-gold, rgba(201,162,77,0.3));
  border-radius: 4px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.tb-margins-btn:hover { background: rgba(201, 162, 77, 0.12); }
.tb-margins-btn.shared { color: var(--text-dim, #a09880); border-style: dashed; }
.tb-margins-anon-lab {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.72rem; color: var(--text-dim, #a09880); cursor: pointer;
}
.tb-margins-anon-lab input { accent-color: var(--gold, #C9A24D); }
.tb-margins-status {
  margin-top: 0.45rem;
  font-size: 0.7rem; line-height: 1.5;
  color: var(--text-faint, #6f6a5c);
}
.tb-margins-status.error { color: #c46a80; }
.tb-margins-status a { color: var(--gold, #C9A24D); }

/* ------------------------------------------------ notes from other readers */
.tb-margins-section { margin: 2rem 0 1rem; }
.tb-margins-heat {
  font-size: 0.72rem; color: var(--text-faint, #6f6a5c);
  margin-bottom: 0.85rem;
}
.tb-margins-heat-toggle {
  font: inherit; color: var(--gold-dim, #a07d35);
  background: none; border: none; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
.tb-margins-empty {
  color: var(--text-faint, #6f6a5c);
  font-style: italic; font-size: 0.9rem; line-height: 1.7;
}
.tb-margins-note {
  position: relative;
  margin-bottom: 1rem;
  padding: 0.7rem 0.8rem;
  border-left: 2px solid var(--border-gold, rgba(201,162,77,0.22));
  background: rgba(255, 255, 255, 0.018);
  border-radius: 0 6px 6px 0;
}
.tb-margins-note-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem;
  margin-bottom: 0.35rem;
}
.tb-margins-author {
  font-family: var(--cinzel, serif);
  font-size: 0.68rem; letter-spacing: 0.08em;
  color: var(--gold, #C9A24D);
}
.tb-margins-you {
  font-size: 0.55rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-faint, #6f6a5c);
  border: 1px solid var(--border-gold, rgba(201,162,77,0.22));
  border-radius: 3px; padding: 0 0.25rem; margin-left: 0.25rem;
}
.tb-margins-when { font-size: 0.62rem; color: var(--text-faint, #6f6a5c); white-space: nowrap; }
.tb-margins-text {
  font-size: 0.88rem; line-height: 1.65;
  color: var(--text, #e8e2d4);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.tb-margins-report {
  margin-top: 0.45rem;
  font-size: 0.6rem; letter-spacing: 0.08em;
  color: var(--text-faint, #6f6a5c);
  background: none; border: none; padding: 0; cursor: pointer;
  opacity: 0; transition: opacity 0.15s ease;
}
.tb-margins-note:hover .tb-margins-report,
.tb-margins-report:focus { opacity: 1; }
.tb-margins-report[disabled] { opacity: 1; cursor: default; }

@media (max-width: 640px) {
  .tb-margins-report { opacity: 1; }
  #verse-list .verse-block[data-tb-heat]:hover::before { display: none; }
}
