/* ═══════════════════════════════════════════════════════════
   Lexa UI: השפה העיצובית המשותפת לעמודי הפלטפורמה.
   כל עמוד עוטף את התוכן שלו ב-class="lxu", ומשתמש ברכיבים
   שכאן (lxu-*). בקובץ של העמוד נשאר רק מה שמיוחד לו.
   ═══════════════════════════════════════════════════════════ */

.lxu {
    --lxu-primary: #0f766e;
    --lxu-primary-dark: #115e59;
    --lxu-primary-darker: #0f4f4a;
    --lxu-primary-soft: #f0fbf8;
    --lxu-primary-tint: #e6f6f3;
    --lxu-primary-line: #b8e6dd;

    --lxu-ink: #1a1d2e;
    --lxu-ink-soft: #26304d;
    --lxu-text: #343a57;
    --lxu-muted: #4f5577;
    --lxu-faint: #9aa3b8;

    --lxu-bg: #f4f6f9;
    --lxu-paper: #ffffff;
    --lxu-line: #dfe3ec;
    --lxu-line-soft: #eef1f6;
    --lxu-field-line: #cfd5e2;
    --lxu-subtle: #f7f9fc;

    --lxu-warn: #b45309;
    --lxu-warn-ink: #92400e;
    --lxu-warn-soft: #fff4e5;
    --lxu-error: #be123c;
    --lxu-error-soft: #fff1f2;
    --lxu-good: #1f8a5a;

    --lxu-radius: 12px;
    --lxu-radius-lg: 18px;
    --lxu-focus: 0 0 0 3px rgba(15, 118, 110, .22);

    color: var(--lxu-ink);
    font-size: 16px;
    line-height: 1.6;
    direction: rtl;
}

.lxu *, .lxu *::before, .lxu *::after { box-sizing: border-box; }

/* ── כרטיס: כל אזור מתוחם ── */
.lxu .lxu-card { background: var(--lxu-paper); border: 1px solid var(--lxu-line); border-radius: var(--lxu-radius-lg); padding: 24px 28px; box-shadow: 0 1px 2px rgba(26, 29, 46, .04), 0 6px 20px rgba(26, 29, 46, .05); }
.lxu .lxu-card + .lxu-card { margin-top: 16px; }

/* ── כותרות וטקסט ── */
.lxu .lxu-title { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.3; color: var(--lxu-ink); }
.lxu .lxu-sub { margin: 6px 0 0; font-size: 17px; line-height: 1.6; color: var(--lxu-text); }
.lxu .lxu-muted { color: var(--lxu-muted); }

/* ── תגית ── */
.lxu .lxu-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; line-height: 1.4; padding: 3px 12px; border-radius: 999px; background: var(--lxu-primary-tint); color: var(--lxu-primary); white-space: nowrap; }
.lxu .lxu-chip--quiet { background: var(--lxu-line-soft); color: var(--lxu-muted); font-weight: 600; }

/* ── כפתורים ── */
.lxu .lxu-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: var(--lxu-radius); border: 1.5px solid transparent; font: inherit; font-size: 17px; font-weight: 700; line-height: 1.2; cursor: pointer; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s; }
.lxu .lxu-btn:focus-visible { outline: none; box-shadow: var(--lxu-focus); }
.lxu .lxu-btn--primary { background: var(--lxu-primary); color: #fff; }
.lxu .lxu-btn--primary:hover { background: var(--lxu-primary-dark); color: #fff; }
.lxu .lxu-btn--secondary { background: #fff; color: var(--lxu-primary); border-color: var(--lxu-primary); }
.lxu .lxu-btn--secondary:hover { background: var(--lxu-primary-soft); color: var(--lxu-primary-dark); }
.lxu .lxu-btn--quiet { background: #fff; color: var(--lxu-ink-soft); border-color: var(--lxu-field-line); font-weight: 600; }
.lxu .lxu-btn--quiet:hover { border-color: var(--lxu-faint); }
.lxu .lxu-link { background: none; border: 0; padding: 0; font: inherit; font-size: 16px; font-weight: 600; color: var(--lxu-primary); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ── תיבות הסבר: "למה?", "לדוגמה", אזהרה ── */
.lxu .lxu-why { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: var(--lxu-radius); background: var(--lxu-primary-soft); font-size: 16px; line-height: 1.55; color: var(--lxu-ink-soft); }
.lxu .lxu-why strong { color: var(--lxu-primary-darker); flex-shrink: 0; }
.lxu .lxu-warn { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: var(--lxu-radius); background: var(--lxu-warn-soft); font-size: 16px; line-height: 1.55; color: var(--lxu-warn-ink); }
.lxu .lxu-example { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--lxu-subtle); font-size: 16px; line-height: 1.55; color: var(--lxu-ink-soft); white-space: pre-line; }
.lxu .lxu-example strong { color: var(--lxu-ink); }

/* ── שדות ── */
.lxu .lxu-label { display: block; font-size: 17px; font-weight: 700; color: var(--lxu-ink); margin-bottom: 6px; }
.lxu .lxu-input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--lxu-field-line); border-radius: var(--lxu-radius); background: #fff; font: inherit; font-size: 17px; color: var(--lxu-ink); }
.lxu textarea.lxu-input { min-height: 110px; line-height: 1.55; resize: vertical; }
.lxu .lxu-input:focus { outline: none; border-color: var(--lxu-primary); box-shadow: var(--lxu-focus); }
.lxu .lxu-input::placeholder { color: var(--lxu-faint); }

/* ── בחירה: שורה או כרטיס שלם לחיץ ── */
.lxu .lxu-choice { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 10px 16px; border: 1.5px solid var(--lxu-line); border-radius: var(--lxu-radius); background: #fff; cursor: pointer; font-size: 17px; }
.lxu .lxu-choice:hover { border-color: var(--lxu-primary); }
.lxu .lxu-choice:has(input:checked) { border: 2px solid var(--lxu-primary); background: var(--lxu-primary-soft); color: var(--lxu-primary-darker); font-weight: 600; }
.lxu .lxu-choice:has(input:focus-visible) { box-shadow: var(--lxu-focus); }

/* ── התקדמות: מקטעים (מספר המקטעים ב---lxu-steps) ── */
.lxu .lxu-progress { position: relative; height: 6px; border-radius: 999px; background: var(--lxu-line); overflow: hidden; }
.lxu .lxu-progress > i { display: block; height: 100%; background: var(--lxu-primary); transition: width .3s ease; }
.lxu .lxu-progress::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to left, transparent 0, transparent calc(100% / var(--lxu-steps, 1) - 4px), #fff calc(100% / var(--lxu-steps, 1) - 4px), #fff calc(100% / var(--lxu-steps, 1))); }

@media (max-width: 640px) {
    .lxu .lxu-card { padding: 18px 16px; border-radius: 16px; }
    .lxu .lxu-title { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .lxu *, .lxu *::before, .lxu *::after { transition: none !important; animation: none !important; }
}
