.tooltip {
  position: relative;
  cursor: pointer;
}

.tooltip:hover {
  color: var(--secondary);
}

.site-list-item-text {
  border-bottom: 1px dashed var(--primary);
}

/* :after = text */
.tooltip::after {
  display: none;
  padding: 0.5em 1em;
  position: absolute;
  z-index: 1;

  background-color: var(--theme);
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 3px;
}

.tooltip.bottom::after {
  content: attr(data-info);
  bottom: 0;
  left: 50%;
  width: 90%;
  transform: translate(-50%, calc(100% + 10px));
}

.tooltip:hover::after {
  display: block;
}

/* :before = arrow */
.tooltip::before {
  background-color: var(--primary);
  content: ' ';
  display: none;
  position: absolute;
  width: 15px;
  height: 15px;
  z-index: 2;
}

.tooltip:hover::before {
  display: block;
}

.tooltip.bottom::before {
  bottom: 10%;
  left: 20%;
  transform: translate(-50%, calc(100% + 5px)) rotate(45deg);
}
