/* ============================================
   notes.css — стили всплывающих примечаний
   ============================================ */

.note-popup {
  position: absolute;
  z-index: 1000;
  max-width: 280px;
  padding: 6px 10px;
  background: #fffbe6;
  border: 1px solid #d0b060;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.35;
  color: #222;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
  pointer-events: auto;
}

.note-popup.visible {
  opacity: 1;
  visibility: visible;
}

.note-text {
  display: inline;
}

/* Небольшая стрелочка снизу или сверху — по желанию */
.note-popup::after {
  content: '';
  position: absolute;
  left: var(--arrow-left, 50%);
  width: 0;
  height: 0;
  border: 7px solid transparent;
}

.note-popup.below::after {
  top: -14px;
  border-bottom-color: #d0b060;
}

.note-popup.above::after {
  bottom: -14px;
  border-top-color: #d0b060;
}

/* Звёздочка-маркер */
.note-marker {
  cursor: help;
  color: #c00;
  font-weight: bold;
}

@media (max-width: 480px) {
  .note-popup {
    max-width: 220px;
    font-size: 14px;
    padding: 5px 8px;
  }
}