/* verse-tooltip — styles for build-wrapped scripture references and the
   hover/focus card. Self-contained; borrows the iqbible theme tokens when
   present, with literal fallbacks so the plugin works under any theme. */

.iq-verse {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted var(--brand, #6d28d9);
  cursor: help;
}
a.iq-verse {
  cursor: pointer;
}
.iq-verse:hover,
.iq-verse:focus-visible {
  color: var(--brand, #6d28d9);
  border-bottom-style: solid;
  outline: none;
}

.iq-verse-pop {
  position: absolute;
  z-index: 60;
  max-width: min(22rem, 90vw);
  margin: 0;
  padding: 12px 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink, #1a1330);
  background: var(--surface, #fff);
  border: 1px solid var(--line, #eae7f2);
  border-radius: var(--radius-control, 12px);
  box-shadow: var(--shadow-panel, 0 24px 60px rgba(26, 19, 48, 0.14));
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
  pointer-events: none;
}
.iq-verse-pop.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.iq-verse-pop .iq-verse-ref {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #6b6480);
}
.iq-verse-pop .iq-verse-text {
  display: block;
}
.iq-verse-pop .iq-verse-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand, #6d28d9);
  text-decoration: none;
}
.iq-verse-pop .iq-verse-link:hover {
  text-decoration: underline;
}

@media (prefers-color-scheme: dark) {
  .iq-verse-pop {
    color: var(--on-ink, #e6def7);
    background: var(--ink, #1a1330);
    border-color: rgba(255, 255, 255, 0.12);
  }
  .iq-verse-pop .iq-verse-ref {
    color: var(--on-ink-muted, #a79fc0);
  }
  .iq-verse-pop .iq-verse-link {
    color: var(--brand-on-ink, #b79dee);
  }
}
