/**
 * Shared styles for glossary term highlighting and popovers
 * Used across regulation articles and glossary pages
 */

/* Glossary term styling */
.glossary-term {
    cursor: help;
    text-decoration: underline dotted;
    text-decoration-color: #0d6efd;
    text-underline-offset: 2px;
    white-space: nowrap;
}

.glossary-term:hover {
    text-decoration-color: #0a58ca;
}

/* Wider popovers for glossary terms */
.popover {
    max-width: 500px !important;
    min-width: 350px;
}

/* Definition highlighting in glossary (yellow background) */
.definition-highlight {
    background-color: #fff3cd;
    padding: 0.1em 0;
    border-radius: 2px;
}

/* Container for definition with highlight */
.definition-with-highlight {
    position: relative;
}

/* Fix scroll position for fragment links to glossary terms and letter sections */
[id^="letter-"],
.card[id] {
    scroll-margin-top: 90px; /* 56px navbar + 34px extra spacing for visibility */
}
