/* Hover tooltip demonstration */
.button-tooltip-demonstration { margin: 20px 0; text-align: left; }

.button-tooltip-container {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
  margin: 24px 0;
}

.tooltip-entity {
  background: #3c3c3c;
  color: white;
  padding: 12px 10px;
  border-radius: 8px;
  font-size: 0.6875rem;
  line-height: 0.875rem;
  white-space: normal;
  width: 250px;
  box-shadow: 0 4px 12px rgba(128, 128, 128, 0.3);
  position: relative;
  margin-top: 0;
}
.tooltip-entity::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 15px;
  border: 6px solid transparent;
  border-right-color: #3c3c3c;
  z-index: 1;
}
.tooltip-header { font-weight: 600; margin-bottom: 6px; text-align: left; }

.duplicate-list { text-align: left; }
.duplicate-item { margin: 2px 0; padding-left: 12px; position: relative; }
.duplicate-item::before { content: '•'; position: absolute; left: 0; color: white; }
.duplicate-more { margin-top: 6px; font-style: italic; color: rgba(255, 255, 255, 0.8); }

/* Mobile tooltip behavior */
@media (max-width: 768px) {
  /* Keep tooltip to the right of the button on mobile with constrained width */
  .button-tooltip-container { flex-wrap: nowrap; overflow-x: auto; }
  .tooltip-entity { width: clamp(220px, 65vw, 280px); max-width: none; flex: 0 0 auto; }
}

