/* --- INFO TOOLTIP (CSS-only) --- */
.info-tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
    color: var(--bs-secondary);
    font-size: 0.75rem;
    margin-left: 0.35rem;
    vertical-align: middle;
}

.info-tip .info-tip-text {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    min-width: 200px;
    max-width: 260px;
    padding: 10px 12px;
    background: #1e2329;
    color: #e0e0e0;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.45;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
    z-index: 1000;
    white-space: normal;
    text-align: left;
}

/* Arrow */
.info-tip .info-tip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1e2329;
}

.info-tip:hover .info-tip-text,
.info-tip:focus .info-tip-text {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* When tooltip would overflow left edge, align left */
.info-tip--left .info-tip-text {
    left: 0;
    transform: translateX(0) translateY(4px);
}

.info-tip--left .info-tip-text::after {
    left: 12px;
    transform: none;
}

.info-tip--left:hover .info-tip-text,
.info-tip--left:focus .info-tip-text {
    transform: translateX(0) translateY(0);
}
