/* ============================================================
   VSL Popup System — vsl-popup.css
   Viatological Standard Lexicon · wwtl.info
   Drop <link rel="stylesheet" href="/vsl/vsl-popup.css"> into
   any cell5 page alongside vsl-popup.js
   ============================================================ */

/* ── VSL Term Marks ── */
.vsl-term {
  color: #7B68EE;
  text-decoration: underline;
  text-decoration-style: double;
  text-decoration-color: #7B68EE;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color .15s, text-decoration-color .15s;
  border-radius: 2px;
}
.vsl-term:hover {
  color: #5a4fd6;
  text-decoration-color: #5a4fd6;
  background: rgba(123,104,238,.08);
}
.vsl-term.vsl-active {
  color: #fff;
  background: #7B68EE;
  text-decoration: none;
  border-radius: 2px;
  padding: 0 2px;
}

/* ── Bubble ── */
.vsl-bubble {
  position: absolute;
  z-index: 99999;
  width: 320px;
  background: #1c1830;
  border: 1px solid #7B68EE;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,.45), 0 0 0 1px rgba(123,104,238,.2);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  font-family: Georgia, 'Times New Roman', serif;
}
.vsl-bubble.vsl-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Arrow pointing up (default: bubble below word) */
.vsl-bubble-arrow {
  position: absolute;
  top: -8px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #7B68EE;
  margin-left: -8px;
}
.vsl-bubble-arrow::after {
  content: '';
  position: absolute;
  top: 2px;
  left: -7px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #1c1830;
}

/* Flipped: bubble above word */
.vsl-bubble.vsl-flip-up .vsl-bubble-arrow {
  top: auto;
  bottom: -8px;
  border-bottom: none;
  border-top: 8px solid #7B68EE;
}
.vsl-bubble.vsl-flip-up .vsl-bubble-arrow::after {
  top: auto;
  bottom: 2px;
  border-bottom: none;
  border-top: 7px solid #1c1830;
}

/* Close button */
.vsl-close {
  position: absolute;
  top: 7px;
  right: 9px;
  background: none;
  border: none;
  color: #7B68EE;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  opacity: .7;
  transition: opacity .15s, background .15s;
}
.vsl-close:hover { opacity: 1; background: rgba(123,104,238,.2); }

/* Bubble interior */
.vsl-bubble-inner {
  padding: 14px 32px 14px 15px;
}

.vsl-bubble-term {
  font-size: 1.05rem;
  font-weight: 700;
  color: #c8bfff;
  letter-spacing: .01em;
  margin-bottom: 4px;
}
.vsl-pos {
  font-size: .8rem;
  font-weight: 400;
  color: #9b8fcc;
  font-style: italic;
}

.vsl-bubble-stamp {
  font-size: .65rem;
  font-family: 'Courier New', monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #7B68EE;
  margin-bottom: 9px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(123,104,238,.3);
}

.vsl-bubble-def {
  font-size: .88rem;
  line-height: 1.55;
  color: #e0daf8;
  margin-bottom: 11px;
}

.vsl-bubble-ref {
  display: inline-block;
  font-size: .72rem;
  font-family: 'Courier New', monospace;
  color: #7B68EE;
  text-decoration: none;
  letter-spacing: .04em;
  border-bottom: 1px dotted rgba(123,104,238,.5);
  transition: color .15s, border-color .15s;
}
.vsl-bubble .vsl-bubble-ref { color: #7B68EE !important; }
.vsl-bubble-ref:hover {
  color: #a99fff;
  border-bottom-color: #a99fff;
}

