/* =================================================================== */
/* V5.0 - INTERACTIVE CONTENT STYLES
/* =================================================================== */
/* =================================================================== */
/* V5.1 - INTERACTIVE CONTENT STYLES (CONTEXT-AWARE)
/* =================================================================== */

/* --- 1. Default State: The "Modern Highlight" for normal text --- */
.ls-interactive-term {
    background-color: rgba(118, 185, 0, 0.1); /* Faint brand-green highlight */
    cursor: help;
    transition: background-color 0.2s ease-in-out;
    padding: 2px 4px;
    border-radius: 4px;
    margin: 0 -4px; /* Keeps text flow natural with padding */
    display: inline; /* Ensures it behaves like normal text */
}

.ls-interactive-term:hover {
    background-color: rgba(118, 185, 0, 0.3); /* Stronger highlight on hover */
}


/* --- 2. Special State: A clean, non-clashing style for links --- */
/* This rule has higher specificity and will ONLY apply when the term is inside an <a> tag. */
a .ls-interactive-term {
    /* RESET the background styles from the default state */
    background-color: transparent;
    padding: 0;
    margin: 0;
    border-radius: 0;

    /* APPLY the new, link-friendly underline style */
    text-decoration-line: underline;
    text-decoration-style: dashed;

    /* MAGIC: This makes the dashed line the same color as the link text (e.g., blue) */
    text-decoration-color: inherit;

    text-underline-offset: 3px; /* Pushes the line down slightly for readability */
    text-decoration-thickness: 1px;
}

a .ls-interactive-term:hover {
    /* On hover, make the dashed line solid for a clear feedback effect */
    text-decoration-style: solid;
}

/* Custom Tippy.js Theme */
.tippy-box[data-theme~='loadsyn'] {
    background-color: #ffffff;
    color: #1a1a1a;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.9rem;
}

.tippy-box[data-theme~='loadsyn'] .tippy-arrow {
    color: #ffffff;
}

.tippy-box[data-theme~='loadsyn'] .tippy-content {
    padding: 4px 8px;
}

/* Tooltip Content Styles */
.ls-tooltip-def {
    padding: 4px;
    line-height: 1.5;
}

.ls-tooltip-spec-card {
    padding: 6px;
    min-width: 240px;
}

.ls-tooltip-spec-card strong {
    font-size: 1rem;
    color: #000;
    display: block;
    margin-bottom: 4px;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
}

.ls-tooltip-spec-card div {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
}

.ls-tooltip-spec-card div span {
    color: #666;
    margin-right: 10px;
}