/* Lightweight CSS-only tooltips. Usage: add class="tooltip" and data-tooltip="..." */

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

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.4rem 0.6rem;
    background: #363636;
    color: #fff;
    font-size: 0.75rem;
    font-weight: normal;
    line-height: 1.4;
    border-radius: 4px;
    white-space: normal;
    width: max-content;
    max-width: 250px;
    text-align: left;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 10;
}

.tooltip:hover::after {
    opacity: 1;
}
