/* עיצוב טופס הנעילה ותנאי שימוש - הועתק מאביב הנשמה */
.aviv-pw-card {
    max-width: 460px;
    margin: 12px auto 8px;
    padding: 36px 32px 32px;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-premium);
    text-align: center;
    direction: rtl;
}
.aviv-pw-card p {
    margin: 0;
}
.aviv-pw-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #f2f8f4;
    color: #277f52;
    font-size: 1.4rem;
}
.aviv-pw-title {
    margin: 0 0 8px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-dark);
}
.aviv-pw-text {
    margin-bottom: 24px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}
.aviv-pw-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: right;
    color: var(--color-text-dark);
}
.aviv-pw-row {
    display: flex;
    gap: 10px;
}
.aviv-pw-input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 14px;
    font-size: 1rem;
    color: var(--color-text-dark);
    background: var(--color-bg-white);
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.aviv-pw-input:focus {
    outline: none;
    border-color: #277f52;
    box-shadow: 0 0 0 3px rgba(39, 127, 82, 0.15);
}
.aviv-pw-submit {
    flex: none;
    height: 48px;
    padding: 0 28px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: #277f52;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}
.aviv-pw-submit:hover,
.aviv-pw-submit:focus-visible {
    background: #1f6642;
}
@media (max-width: 480px) {
    .aviv-pw-card {
        padding: 28px 20px 24px;
    }
    .aviv-pw-row {
        flex-direction: column;
    }
    .aviv-pw-input {
        flex: none;
    }
    .aviv-pw-submit {
        width: 100%;
    }
}

/* === גישה אישית: אימייל + סיסמה === */
.aviv-pw-stacked {
    display: block;
    width: 100%;
    margin-bottom: 14px;
}
.aviv-pw-wide {
    width: 100%;
}
.aviv-pw-error {
    margin-bottom: 18px;
    padding: 10px 14px;
    font-size: 0.95rem;
    color: #9b1c1c;
    background: #fdf2f2;
    border-radius: 10px;
}

/* כותרת פוסט בודד: קטנה יותר מכותרת סקשן */
.single-post-header .section-title {
    font-size: 1.8rem;
    line-height: 1.35;
}
@media (max-width: 768px) {
    .single-post-header .section-title {
        font-size: 1.45rem;
    }
}

/* === חלונית אישור תנאי שימוש === */
.aviv-terms-overlay {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
    background: rgba(25, 29, 32, 0.6);
}
.aviv-terms-card {
    width: 100%;
    max-width: 480px;
    max-height: 100%;
    padding: 32px 28px 24px;
    overflow-y: auto;
    background: var(--color-bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    direction: rtl;
}
.aviv-terms-text {
    margin-bottom: 12px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-dark);
}
.aviv-terms-blessing {
    margin: 16px 0 20px;
    font-weight: 700;
    color: #277f52;
}
.aviv-terms-accept {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    cursor: pointer;
}
.aviv-terms-accept input {
    width: 18px;
    height: 18px;
    accent-color: #277f52;
}
.aviv-terms-cancel {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* מנעול וכותרת באותה שורה */
.td-post-content .aviv-pw-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 0;
}
.td-post-content .aviv-pw-title-row .aviv-pw-icon {
    flex: none;
    width: 40px;
    height: 40px;
    margin: 0;
    font-size: 1rem;
}

/* === כפתור הקראה === */
.aviv-listen {
    position: fixed;
    left: 14px;
    top: 50%;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: translateY(-50%);
}
/* רווח בין פסקאות שהודבקו כ-div */
.td-post-content div:not([class]):not([id]):not([style]) { margin-bottom: 1.2em; }
.td-post-content li div:not([class]):not([id]):not([style]) { margin-bottom: 0; }
