/* NITARTI — מאמרים ומרכז הידע.
   נשען על css/styles.css: הצבעים, הטיפוגרפיה, .container ו-.btn מגיעים משם.
   כאן רק מה שייחודי לקריאה ארוכה: עמודת טקסט, טבלאות, שאלות ותשובות. */

/* בעמודי עברית-בלבד הבנאי לא ממלא את בורר השפה; בלי זה נשאר ריבוע ריק. */
.lang-switch:empty { display: none; }

/* ---------- כותרת המאמר ---------- */
.art-hero { background: var(--paper); border-bottom: 1px solid var(--line); padding-block: clamp(34px, 5vw, 60px) clamp(28px, 4vw, 44px); }
.art-hero .container { max-width: 880px; }
/* פירורי לחם: ההגדרה הקיימת חיה ב-solutions.css ותחומה ל-.sol-hero,
   שאינו נטען כאן — בלעדיה ה-SVG מתנפח לגובה מלא. */
.art-hero .breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-400); margin-bottom: 18px; }
.art-hero .breadcrumb a { color: var(--ink-400); text-decoration: none; }
.art-hero .breadcrumb a:hover { color: var(--teal-600); text-decoration: underline; }
.art-hero .breadcrumb svg { width: 14px; height: 14px; opacity: .55; flex-shrink: 0; }
.art-hero h1 { font-size: clamp(27px, 3.6vw, 42px); line-height: 1.22; margin: 10px 0 16px; letter-spacing: -.015em; }
.art-hero .lede { font-size: clamp(17px, 1.7vw, 20px); line-height: 1.65; color: var(--ink-500); margin: 0; max-width: 62ch; }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 22px; font-size: 14.5px; color: var(--ink-400); }
.art-meta span { display: inline-flex; align-items: center; gap: 7px; }
.art-meta svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ---------- גוף המאמר ---------- */
.art-body { padding-block: clamp(34px, 4.5vw, 56px) clamp(44px, 6vw, 80px); }
.art-body .container { max-width: 880px; }
.art-body > .container > *:first-child { margin-top: 0; }

.art-body h2 { font-size: clamp(21px, 2.3vw, 28px); line-height: 1.3; margin: 46px 0 14px; letter-spacing: -.01em; }
.art-body h3 { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.35; margin: 32px 0 10px; color: var(--ink-900); }
.art-body p { font-size: 17.5px; line-height: 1.8; color: var(--ink-700); margin: 0 0 18px; }
.art-body strong { color: var(--ink-900); font-weight: 700; }
/* :not(.btn) — בלי זה הכלל הזה גובר על ‎.btn‎ (ספציפיות גבוהה יותר) וצובע
   את הכיתוב בכפתור בירוק על רקע ירוק, כלומר בלתי קריא. */
.art-body a:not(.btn) { color: var(--teal-600); text-underline-offset: 3px; }
.art-body ul { margin: 0 0 20px; padding-inline-start: 22px; }
.art-body li { font-size: 17.5px; line-height: 1.8; color: var(--ink-700); margin-bottom: 8px; }
.art-body hr { border: 0; border-top: 1px solid var(--line); margin: 44px 0; }

/* משפט הפתיחה — התשובה הקצרה, לפני שיורדים לפרטים */
.art-answer { background: var(--teal-50); border-inline-start: 4px solid var(--teal-500); border-radius: var(--r-md); padding: 22px 24px; margin: 0 0 34px; }
.art-answer p { margin: 0; font-size: 18px; line-height: 1.7; color: var(--ink-900); }

/* הדגשה בתוך הטקסט */
.art-note { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; margin: 26px 0; }
.art-note p:last-child { margin-bottom: 0; }

/* ---------- טבלאות ---------- */
.art-table { margin: 26px 0 30px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.art-table table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 520px; }
.art-table th, .art-table td { padding: 13px 16px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.55; }
.art-table thead th { background: var(--paper); font-weight: 700; color: var(--ink-900); font-size: 15px; }
.art-table tbody tr:last-child td, .art-table tbody tr:last-child th { border-bottom: 0; }
.art-table tbody th { font-weight: 600; color: var(--ink-900); }
.art-table td { color: var(--ink-700); }
.art-table .yes { color: var(--teal-600); font-weight: 700; }
.art-table .no { color: var(--ink-300); }
.art-table .total td, .art-table .total th { background: var(--paper); font-weight: 700; color: var(--ink-900); }
.art-table caption { caption-side: bottom; padding: 12px 16px; font-size: 14px; color: var(--ink-400); text-align: start; }

/* ---------- שאלות ותשובות ---------- */
.art-faq { margin: 26px 0 0; border-top: 1px solid var(--line); }
.art-faq details { border-bottom: 1px solid var(--line); }
.art-faq summary { cursor: pointer; list-style: none; padding: 18px 2px; font-weight: 700; font-size: 17px; color: var(--ink-900); display: flex; align-items: flex-start; gap: 12px; }
.art-faq summary::-webkit-details-marker { display: none; }
.art-faq summary::after { content: ""; flex-shrink: 0; margin-inline-start: auto; width: 11px; height: 11px; border-inline-end: 2px solid var(--ink-300); border-block-end: 2px solid var(--ink-300); transform: rotate(45deg); margin-top: 6px; transition: transform .2s; }
.art-faq details[open] summary::after { transform: rotate(225deg); margin-top: 10px; }
.art-faq details > p { margin: 0 0 18px; padding-inline-end: 24px; color: var(--ink-500); }

/* ---------- סיום: מאמר קשור + הנעה לפעולה ---------- */
.art-next { border-top: 1px solid var(--line); margin-top: 52px; padding-top: 34px; }
.art-next .eyebrow { display: block; margin-bottom: 12px; }
.art-next a { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; text-decoration: none; transition: border-color .18s, box-shadow .18s; }
.art-next a:hover { border-color: var(--teal-500); box-shadow: var(--shadow-sm); }
.art-next strong { display: block; font-size: 18px; color: var(--ink-900); line-height: 1.4; }
.art-next span { font-size: 15px; color: var(--ink-500); }
.art-next svg { flex-shrink: 0; width: 22px; height: 22px; stroke: var(--teal-600); fill: none; stroke-width: 2.2; }

.art-cta { background: var(--navy-800); color: #fff; border-radius: var(--r-lg); padding: clamp(28px, 4vw, 40px); margin-top: 40px; text-align: center; }
.art-cta h2 { color: #fff; margin: 0 0 10px; font-size: clamp(20px, 2.2vw, 26px); }
.art-cta p { color: #aebcd0; margin: 0 0 22px; font-size: 16.5px; }

/* ---------- מרכז הידע ---------- */
.kb-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.kb-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 28px 26px; text-decoration: none; transition: border-color .18s, box-shadow .18s, transform .18s; }
.kb-card:hover { border-color: var(--teal-500); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.kb-card .eyebrow { margin-bottom: 12px; }
.kb-card h2 { font-size: 21px; line-height: 1.35; margin: 0 0 12px; color: var(--ink-900); }
.kb-card p { font-size: 16px; line-height: 1.65; color: var(--ink-500); margin: 0 0 20px; }
.kb-card .link-arrow { margin-top: auto; }

@media (max-width: 860px) {
  .kb-grid { grid-template-columns: 1fr; }
  .art-body p, .art-body li { font-size: 16.5px; }
  .art-next a { flex-direction: column; align-items: flex-start; gap: 12px; }
}
