/* Footnote styling */
.footnote {
    position: relative;
    cursor: pointer;
    text-decoration: underline dotted;
}

/* Tooltip styles */
.tooltip {
    position: absolute;
    left: 50%;
    top: 1.5em;
    transform: translateX(-50%);
    background: rgba(172, 0, 0, 1);
    color: #fff;
    padding: 10px;
	border-radius: 0;
    font-family: 'Newsreader', serif;
    font-size: 15px;
    font-weight: 400;
    text-align: justify;
    width: 270px;
    max-height: 300px;
    white-space: normal;
    word-wrap: break-word;
    z-index: 999;
    overflow-y: auto;
    line-height: 1.23;
    
    /* Initially hidden */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* When tooltip is visible */
.tooltip.visible {
    opacity: 1;
    visibility: visible;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .tooltip {
        position: fixed;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        width: 300px;
        max-height: 50vh;
        overflow-y: auto;
        z-index: 999;
    }
}

