/* Smart Internal Linker – Frontend Tooltip Styles */

.sil-link {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: currentColor;
    text-underline-offset: 3px;
    cursor: pointer;
}

.sil-has-tooltip {
    position: relative;
}

/* JS-rendered HTML tooltip box (appended to body) */
.sil-tooltip-box {
    position: absolute;
    z-index: 99999;
    background: rgba(23, 28, 32, 0.97);
    color: #f0f0f0;
    font-size: 13px;
    line-height: 1.55;
    padding: 10px 14px 12px;
    border-radius: 8px;
    max-width: 300px;
    min-width: 160px;
    box-shadow: 0 6px 24px rgba(0,0,0,.4);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 400;
    pointer-events: none;
    display: none;
}

.sil-tooltip-box.sil-tip-interactive {
    pointer-events: auto;
}

/* Arrow – default: tooltip above link → arrow points down */
.sil-tooltip-box::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    top: 100%;
    border-top-color: rgba(23, 28, 32, 0.97);
}

/* When tooltip is below the link, arrow points up */
.sil-tooltip-box.sil-tooltip-below::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: rgba(23, 28, 32, 0.97);
}

/* Rich tooltip HTML elements */
.sil-tooltip-box strong {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    margin-bottom: 4px;
}

.sil-tip-link,
.sil-tooltip-box a {
    display: inline-block;
    margin-top: 7px;
    color: #e06057 !important;
    text-decoration: underline !important;
    font-size: 12px;
    pointer-events: auto;
    cursor: pointer;
}

.sil-tip-link:hover,
.sil-tooltip-box a:hover {
    color: #bfdbfe !important;
}
