/* Bölüm-içi referans sistemi — tema değişkenlerini kullanır (her temada uyumlu) */
.orv-ref { position: relative; text-decoration: none; white-space: nowrap; }
.orv-ref > sup {
    color: var(--accent-color, #00d4ff);
    font-size: 0.72em;
    border-bottom: 1px dotted var(--accent-color, #00d4ff);
    cursor: pointer;
    margin-left: 1px;
}
.orv-ref:hover > sup, .orv-ref:focus-within > sup { filter: brightness(1.25); }

.orv-ref-card {
    display: none;
    position: absolute;
    left: 0;
    top: 1.5em;
    z-index: 30;
    min-width: 180px;
    max-width: 280px;
    white-space: normal;
    background: var(--primary, #1f2129);
    border: 1px solid var(--accent-color, #00d4ff);
    border-left: 3px solid var(--accent-color, #00d4ff);
    border-radius: 6px;
    padding: 8px 11px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.45);
    font-size: 0.8rem;
    line-height: 1.45;
}
.orv-ref:hover .orv-ref-card, .orv-ref:focus-within .orv-ref-card { display: block; }
.orv-ref-card .orv-ref-ch {
    display: block;
    color: var(--accent-color, #00d4ff);
    font-size: 0.82em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.orv-ref-card .orv-ref-title { display: block; color: var(--text-secondary, #c6cee2); margin-top: 2px; }

/* Araçla ayrı satıra eklenen kısa bağlam notu */
.orv-reference-context {
    color: var(--text-secondary, #c6cee2);
    font-size: 0.9em;
    font-style: italic;
    margin-right: 0.18em;
}

/* Hedef satır vurgusu (referanstan gelince) */
.orv-line-highlight { animation: orvRefHl 2.6s ease; border-radius: 4px; }
@keyframes orvRefHl {
    0%, 35%   { background: rgba(0,212,255,0.16); box-shadow: -8px 0 0 rgba(0,212,255,0.45); }
    100%      { background: transparent; box-shadow: none; }
}

/* "Geri dön" düğmesi */
.orv-back-btn {
    position: fixed; right: 16px; bottom: 16px; z-index: 60;
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--primary, #1f2129);
    color: var(--accent-color, #00d4ff);
    border: 1px solid var(--accent-color, #00d4ff);
    border-radius: 8px; padding: 9px 15px;
    font-size: 0.85rem; font-family: inherit; cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.45);
}
.orv-back-btn:hover { filter: brightness(1.15); }
