/* התאמות עיצוב מעבר ל-Tailwind */

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* פס גלילה נסתר לסרגל המסננים */
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* מספרים תמיד משמאל לימין, גם בתוך פסקה בעברית */
[dir='ltr'] {
    unicode-bidi: isolate;
}

/* כשקופצים לכרטיסייה מתוך הודעת "נשמר", שלא תיחבא מתחת לסרגל העליון */
.card {
    scroll-margin-top: 5rem;
}

/* החץ שמסמן אם קטע פתוח או מקופל */
.section-toggle .chevron {
    transition: transform 0.15s ease;
}

.section-toggle:focus-visible {
    outline: 2px solid #0f172a;
    outline-offset: 4px;
    border-radius: 0.5rem;
}

/* ריכוך הופעת המודאל */
#modal:not(.hidden) form {
    animation: ksafim-rise 0.18s ease-out;
}

@keyframes ksafim-rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    #modal:not(.hidden) form {
        animation: none;
    }
}

/* הדפסה: בלי סרגלים וכפתורים */
@media print {
    header,
    nav,
    .update-btn,
    #modal {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .card {
        break-inside: avoid;
        box-shadow: none;
    }
}
