/* Header info icon + hover popover (desktop-only, no touch handling) */
.info-icon-wrapper {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.info-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #333;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    user-select: none;
}

/* Smaller variant used for the inline per-plot description icons. */
.info-icon--sm {
    width: 16px;
    height: 16px;
    font-size: 0.7rem;
}

.info-popover {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    width: 380px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    padding: 0.9rem 1rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #333;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
    z-index: 20;
}

/* The header icon sits in the page's top-right corner, so its popover has to
   open leftward instead of the default rightward, or it gets clipped by the
   viewport edge. */
.info-icon-wrapper--corner .info-popover {
    left: auto;
    right: 0;
}

/* Smaller popover for the inline per-plot description icons. */
.info-popover--sm {
    width: 260px;
    padding: 0.7rem 0.8rem;
    font-size: 0.8rem;
}

.info-icon-wrapper:hover .info-popover {
    opacity: 1;
    pointer-events: auto;
}

.info-popover a {
    color: #333;
    font-weight: 600;
}
