/* ============================================
   Signature and Code Block Fixes for Furo Theme
   MINIMAL and NON-INVASIVE approach
   ============================================ */

/* Fix 1: Only add horizontal scroll to very long signatures */
dt.sig.sig-object.py {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    display: block;
}

/* Fix 2: Prevent text from breaking out */
.sig {
    max-width: 100%;
    box-sizing: border-box;
}

/* Fix 3: Better scrollbar for signatures (minimal styling) */
dt.sig::-webkit-scrollbar {
    height: 4px;
}

dt.sig::-webkit-scrollbar-track {
    background: transparent;
}

dt.sig::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

[data-theme="dark"] dt.sig::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

/* Fix 4: Ensure code blocks also scroll properly */
.highlight pre {
    overflow-x: auto;
    max-width: 100%;
}

/* Fix 5: Mobile responsive */
@media (max-width: 768px) {
    dt.sig {
        font-size: 0.9em;
    }
}

/* That's it! Keep it simple */