.lxp {
    --d0: #041f1d; --d1: #06302c; --teal: #0f766e; --teal-m: #0d9488; --teal-l: #5eead4; --amber: #ffd166;
    --txt: #f1faf8; --mute: #c9e0dc; --paper: #f4f6f5; --ink: #0f1f1d; --body: #24312e; --rule: #c3cfcc;
    font-family: "Rubik", "Arimo", sans-serif;
    color: var(--ink);
    background: var(--paper);
    overflow-x: clip;
}
.lxp *, .lxp *::before, .lxp *::after { box-sizing: border-box; }
.lxp h2, .lxp h3 { font-family: "Rubik", "Arimo", sans-serif; letter-spacing: -.015em; color: var(--ink); }
.lxp .container { max-width: 1340px; }

/* ═════ פריסה משותפת: ראש העמוד והכתבה באותה רשת ═════ */
.lxp-cols { display: grid; grid-template-columns: minmax(0, 900px) 340px; justify-content: center; gap: 44px; }

/* ═════ ראש הכתבה ═════ */
.lxp-hero { position: relative; overflow: hidden; background: var(--d0); color: #fff; padding-block: 40px 170px; }
.lxp-lead { margin: 0; font-family: "Arimo", sans-serif; font-size: 1.4rem; line-height: 1.7; color: var(--txt); }
.lxp-by { display: flex; align-items: center; gap: 14px; align-self: end; }
.lxp-by img { width: 60px; height: 60px; padding: 6px; border-radius: 50%; object-fit: contain; background: #0b3b36; flex-shrink: 0; }
.lxp-by p { margin: 0; font-family: "Arimo", sans-serif; font-size: 1rem; line-height: 1.6; color: var(--mute); }
.lxp-by strong { color: #fff; font-size: 1.05rem; }

/* ═════ הכתבה: כרטיס לבן שעולה על הרקע הכהה ═════ */
.lxp-wrap { position: relative; margin-top: -130px; padding-bottom: 64px; align-items: stretch; }
.lxp-side { align-self: stretch; }
.lxp-article { min-width: 0; padding: 44px 60px 52px; border-radius: 22px; background: #fff; box-shadow: 0 30px 80px rgba(4,31,29,.16); }

/* ═════ גוף הכתבה (התוכן מגיע מהמערכת, לכן מעצבים תגיות) ═════ */
.lxp-body { font-family: "Arimo", sans-serif; font-size: 1.14rem; line-height: 1.95; color: var(--body); }
.lxp-body > .row { display: block; margin: 0; }
.lxp-body p { margin: 0 0 1.15em; }
.lxp-body h2 { margin: 1.6em 0 .6em; font-size: clamp(1.55rem, 2.2vw, 2.05rem); font-weight: 800 !important; line-height: 1.3; scroll-margin-top: 90px; }
.lxp-body h3 { margin: 1.5em 0 .45em; font-size: 1.3rem; font-weight: 700 !important; line-height: 1.4; scroll-margin-top: 90px; }
.lxp-body h2:first-child, .lxp-body h3:first-child { margin-top: 0; }
.lxp-body a { color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lxp-body a:hover { color: var(--d1); }
.lxp-body strong, .lxp-body b { color: var(--ink); font-weight: 700; }
.lxp-body ul, .lxp-body ol { margin: 0 0 1.2em; padding-inline-start: 1.4em; }
.lxp-body li { margin-bottom: .45em; }
.lxp-body li::marker { color: var(--teal-m); }
.lxp-body img { display: block; width: auto; max-width: 100% !important; height: auto !important; margin: 10px auto; border-radius: 14px; box-shadow: 0 20px 48px rgba(6,48,44,.14), 0 0 0 1px rgba(6,48,44,.08); }
.lxp-body p:has(> img:only-child), .lxp-body p:has(> a:only-child > img) { margin-block: 1.8em; }
.lxp-body blockquote { margin: 1.5em 0; padding: 4px 22px; border-inline-start: 4px solid var(--teal-m); font-size: 1.18rem; color: var(--ink); }
.lxp-body table { width: 100%; margin: 1.5em 0; border-collapse: collapse; font-size: 1rem; }
.lxp-body th, .lxp-body td { padding: 12px 10px; border-bottom: 1px solid var(--rule); text-align: right; }
.lxp-body th { border-bottom: 2px solid var(--ink); color: var(--ink); }
.lxp-body iframe { max-width: 100%; }

/* תוכן העניינים שבתוך הכתבה: בטלפון נשאר בראש הכתבה, במחשב עובר לעמודת הצד */
.lxp--toc .lxp-body #post_toc { display: none; }
.lxp-body > .row:first-child + h2 { margin-top: 0; }
.lxp-body #post_toc { margin: 0 0 2.2em; padding-bottom: 14px; padding: 24px 28px; border-radius: 16px; background: #fff; border: 1px solid var(--rule); }
.lxp-body #post_toc .faq-title { padding: 0; margin-bottom: 10px; font-family: "Rubik", sans-serif; font-size: 1.08rem; font-weight: 700; line-height: 1.5; color: var(--ink); }
.lxp-body #post_toc ul { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.lxp-body #post_toc li { counter-increment: toc; margin: 0; padding: 9px 0; border-top: 1px solid var(--rule); font-size: 1.02rem; line-height: 1.6; }
.lxp-body #post_toc li::before { content: counter(toc) "."; display: inline-block; min-width: 1.6em; font-weight: 700; color: var(--teal-m); }
.lxp-body #post_toc li { border-bottom: 0; }
.lxp-body #post_toc a::before { content: none; }
.lxp-body #post_toc a { font-size: inherit; font-weight: 400; color: var(--ink); text-decoration: none; }
.lxp-body #post_toc a:hover { color: var(--teal); text-decoration: underline; }

/* ═════ אקורדיון (שאלות על הכתבה) ═════ */
.lxp .accordion { --bs-accordion-bg: transparent; --bs-accordion-border-width: 0; --bs-accordion-btn-focus-box-shadow: none; border-top: 1px solid var(--rule); }
.lxp .accordion-item { background: transparent; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0 !important; }
.lxp .accordion-button { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; background: transparent !important; box-shadow: none !important; font-family: "Rubik", sans-serif; font-size: 1.08rem; font-weight: 700; line-height: 1.5; color: var(--ink) !important; text-align: right; }
.lxp .accordion-button::after { content: "+"; width: auto; height: auto; margin: 0; background: none !important; transform: none !important; font-size: 1.7rem; font-weight: 300; line-height: 1; color: var(--teal-m); transition: transform .2s; }
.lxp .accordion-button:not(.collapsed)::after { transform: rotate(45deg) !important; }
.lxp .accordion-button:focus-visible { outline: 3px solid var(--teal-l); outline-offset: 2px; }
.lxp .accordion-body { padding: 0 0 20px; font-family: "Arimo", sans-serif; font-size: 1.04rem !important; line-height: 1.85; color: var(--body); }

.lxp-faq { margin-top: 48px; padding-top: 28px; border-top: 2px solid var(--ink); }
.lxp-faq h2 { margin: 0 0 14px; font-size: clamp(1.5rem, 2vw, 1.85rem); font-weight: 800; }

/* ═════ על הכותב ═════ */
.lxp-author { display: flex; gap: 22px; align-items: flex-start; margin-top: 44px; padding: 26px 28px; border-radius: 16px; background: var(--rule); }
.lxp-author img { width: 80px; height: 80px; border-radius: 50%; object-fit: contain; flex-shrink: 0; }
.lxp-author p { margin: 0; font-family: "Arimo", sans-serif; font-size: 1.02rem; line-height: 1.8; color: var(--body); }
.lxp-author .lxp-author-name { margin-bottom: 6px; font-family: "Rubik", sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--ink); }

/* ═════ צד ═════ */
.lxp-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.lxp-sticky { display: flex; flex-direction: column; gap: 18px; }
/* נשאר במקום בגלילה רק כשיש מספיק גובה מסך, כדי שהחלק התחתון לא ייחתך */
@media (min-width: 1280px) and (min-height: 860px) { .lxp-sticky { position: sticky; top: 24px; } }
.lxp-toc { padding: 24px 26px 14px; border-radius: 18px; background: #fff; box-shadow: 0 20px 50px rgba(4,31,29,.12); }
.lxp-toc[hidden] { display: none; }
.lxp-toc-h { margin: 0 0 8px; font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.lxp-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: t; }
.lxp-toc li { counter-increment: t; display: flex; gap: 8px; padding: 10px 0; border-top: 1px solid var(--rule); font-family: "Arimo", sans-serif; font-size: .98rem; line-height: 1.55; }
.lxp-toc li::before { content: counter(t) "."; font-weight: 700; color: var(--teal-m); }
.lxp-toc a { color: var(--ink); text-decoration: none; }
.lxp-toc a:hover, .lxp-toc a.is-on { color: var(--teal); }
.lxp-toc a.is-on { font-weight: 700; }
.lxp-offer { padding: 26px 26px 24px; border-radius: 18px; background: var(--d1); color: #fff; }
.lxp-offer-t { margin: 0 0 14px; font-size: 1.3rem; font-weight: 800; line-height: 1.3; }
.lxp-offer-p { margin: 0 0 14px; font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--amber); }
.lxp-offer-p small { font-family: "Arimo", sans-serif; font-size: 1rem; font-weight: 400; color: var(--mute); }
.lxp-offer ul { list-style: none; margin: 0 0 20px; padding: 0; }
.lxp-offer li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-family: "Arimo", sans-serif; font-size: 1.02rem; color: var(--txt); }
.lxp-b1 { display: flex; align-items: center; justify-content: center; padding: 14px 22px; border-radius: 12px; background: var(--amber); color: #1a1405 !important; font-weight: 800; font-size: 1.05rem; text-decoration: none; transition: background .2s; }
.lxp-b1:hover { background: #ffe08f; }
.lxp-wa { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; background: #fff; box-shadow: 0 14px 36px rgba(4,31,29,.08); color: var(--ink) !important; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.lxp-wa-i { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: #25d366; color: #fff; font-size: 26px; line-height: 1; }
.lxp-wa-t { flex: 1; font-size: 1.02rem; font-weight: 700; line-height: 1.4; }
.lxp-wa-a { font-size: 1.3rem; color: #128c4a; transition: transform .2s; }

.lxp-wa:hover { box-shadow: 0 18px 40px rgba(18,140,74,.18); }
.lxp-wa:hover .lxp-wa-a { transform: translateX(-4px); }

/* ═════ עוד כתבות ═════ */
.lxp-more { padding-block: 56px 64px; background: #fff; border-top: 1px solid var(--rule); }
.lxp-more .container { max-width: 1328px; }
.lxp-more h2 { margin: 0 0 28px; font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 800; }
.lxp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 40px 30px; }
.lxp-card { display: flex; flex-direction: column; }
.lxp-card-img { display: block; overflow: hidden; border-radius: 12px; box-shadow: 0 14px 34px rgba(6,48,44,.12), 0 0 0 1px rgba(6,48,44,.08); }
.lxp-card-img img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 805; object-fit: cover; background: #dfe7e5; transition: transform .35s ease; }
.lxp-card:hover .lxp-card-img img { transform: scale(1.03); }
.lxp-card h3 { margin: 18px 0 10px; font-size: 1.18rem; font-weight: 700; line-height: 1.45; }
.lxp-card h3 a { color: var(--ink); text-decoration: none; }
.lxp-card h3 a:hover { color: var(--teal); }
.lxp-card time { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--rule); font-family: "Arimo", sans-serif; font-size: .95rem; color: #4a5a57; }
.lxp-all { margin: 34px 0 0; text-align: center; }
.lxp-all a { display: inline-flex; padding: 13px 26px; border-radius: 12px; border: 1px solid var(--rule); font-weight: 700; color: var(--ink); text-decoration: none; }
.lxp-all a:hover { border-color: var(--teal); color: var(--teal); }

/* ═════ רספונסיבי ═════ */
@media (max-width: 1439px) {
    .lxp-cols { grid-template-columns: minmax(0,1fr) 320px; gap: 32px; }
    .lxp-article { padding: 40px 48px 48px; }
}
/* מתחת ל-1280 (יחד עם תפריט הצד של האתר) אין מקום לשני טורים */
@media (max-width: 1279px) {
    .lxp-cols { max-width: 900px; }
    .lxp-cols { grid-template-columns: 1fr; gap: 24px; }
    .lxp-hero { padding-block: 32px 150px; }
    .lxp-by { align-self: start; }
    .lxp--toc .lxp-body #post_toc { display: block; }
    .lxp-toc { display: none !important; }
    .lxp-side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 20px; }
    .lxp-sticky { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
    .lxp .container { padding-inline: 16px; }
    .lxp-lead { font-size: 1.12rem; }
    .lxp-hero { padding-block: 26px 120px; }
    .lxp-wrap { margin-top: -96px; padding-bottom: 44px; }
    .lxp-article { margin-inline: -16px; padding: 28px 20px 32px; border-radius: 20px 20px 0 0; box-shadow: none; }
    .lxp-body { font-size: 1.06rem; line-height: 1.9; }
    .lxp-body h2 { font-size: 1.55rem; }
    .lxp-body #post_toc { padding: 18px; }
    .lxp-side { display: flex; }
    .lxp-author { flex-direction: column; padding: 22px; }
    .lxp-more { padding-block: 44px; }
    .lxp-grid { grid-template-columns: 1fr; gap: 34px; }
}
@media (prefers-reduced-motion: reduce) {
    .lxp-card-img img, .lxp .accordion-button::after, .lxp-b1, .lxp-wa, .lxp-wa-a { transition: none; }
    .lxp-card:hover .lxp-card-img img { transform: none; }
}
