/* Glossary "i" indicator and popover */

.glossary-item .card-header {
    display: flex;
    align-items: center;
}
.glossary-item .card-header h3 {
    flex: 1 1 auto;
    min-width: 0;
}

.glossary-info {
    flex: 0 0 auto;
    padding-right: 16px;
}

.glossary-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    background: transparent;
    color: #0062a3;
    font: italic 700 14px/1 Georgia, "Times New Roman", serif;
    cursor: pointer;
}
.glossary-info-btn:hover,
.glossary-info.is-open .glossary-info-btn {
    background: #0062a3;
    color: #fff;
}
.glossary-info-btn:focus-visible {
    outline: 2px solid #0062a3;
    outline-offset: 2px;
}

.glossary-info-pop {
    position: fixed;
    z-index: 1060;
    width: max-content;
    padding: 12px 14px;
    background: #fff;
    color: #333;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    font-size: 0.9rem;
    line-height: 1.45;
    text-align: left;
}
.glossary-info-pop[hidden] { display: none; }
.glossary-info-text > :last-child { margin-bottom: 0; }
.glossary-info-text + .glossary-info-link { display: inline-block; margin-top: 8px; }
.glossary-info-link { font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
    .glossary-info-btn { transition: background-color .15s, color .15s; }
}
