/* =====================================================================
   BST — learn.css · מרכז הלמידה (27.9.2026)
   ---------------------------------------------------------------------
   תוספת קטנה ל-sheet.css (אותה שפה: קווי שיער, פינות חדות, דיו + כחול
   אחד). בלי פסים צדדיים ובלי מילוי — מסגרת שיער מלאה בלבד.
   ===================================================================== */
.lr .sheet-title { margin-top: 0; }
.lr-answer { border: 1.5px solid var(--ink); padding: 14px 18px; margin: 4px 0 26px; font-size: 16.5px; color: var(--ink-2); max-width: 72ch; }
.lr-answer p { margin: 0 0 8px; }
.lr-answer ol { margin: 0; padding-inline-start: 22px; }
.lr-answer li { margin: 4px 0; }
.lr-answer strong { color: var(--ink); }

/* משוואה לא נשברת באמצע שורה */
.lr bdi { white-space: nowrap; }
.lr figure { margin: 14px 0; }
.lr figure svg { display: block; width: 100%; height: auto; direction: ltr; }
.lr figcaption { font-size: 13.5px; color: var(--ink-3); margin-top: 4px; text-align: center; }
.lr-fig { max-width: 680px; }
.lr-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 560px; }
.lr-figs svg { max-width: 240px; margin: 0 auto; }

.lr-table { width: 100%; max-width: 560px; border-collapse: collapse; margin: 16px 0 4px; font-size: 15px; }
.lr-table caption { text-align: start; font-size: 13.5px; color: var(--ink-3); padding-bottom: 6px; }
.lr-table th { text-align: start; font-size: 12.5px; font-weight: 800; color: var(--ink-3); padding: 4px 8px; border-bottom: 1px solid var(--hair); }
.lr-table td { padding: 4px 8px; color: var(--ink-2); }
.lr-table tr.is-zero td { color: var(--blue); font-weight: 700; }

.lr-more { font-size: 15px; color: var(--ink-2); border-top: 1px solid var(--hair); padding-top: 10px; margin-top: 14px; }

@media (max-width: 640px) {
  .lr-figs { grid-template-columns: 1fr 1fr; gap: 10px; }
  .lr-figs figcaption { font-size: 12.5px; }
  .lr-answer { padding: 12px 14px; font-size: 16px; }
  /* השרטוט הגדול: רוחב מינימלי קריא, גלילה אופקית בתוך השרטוט בלבד */
  .lr-fig { overflow-x: auto; }
  .lr-fig svg { min-width: 540px; }
}

/* ---- טקסט קצר ונקודתי (זיו 27.9: "נקודתי, קצר, שמזמין להמשיך לקרוא") ---- */
.lr-answer .lr-cond { color: var(--ink); }
.lr-rules { list-style: none; margin: 8px 0 0; padding: 0; }
.lr-rules li { display: flex; gap: 10px; align-items: baseline; margin: 6px 0; font-size: 17px; color: var(--ink); }
.lr-rules li b, .lr-steps li b { flex: none; font-family: "Heebo", system-ui, sans-serif; font-size: 13px; font-weight: 800; color: var(--blue); border: 1px solid var(--blue); padding: 0 7px; line-height: 1.6; } /* עברית — לעולם לא בגופן המונו */
.lr-points, .lr-steps, .lr-traps { list-style: none; margin: 6px 0 10px; padding: 0; }
.lr-points li, .lr-traps li { position: relative; padding-inline-start: 18px; margin: 7px 0; font-size: 16.5px; color: var(--ink-2); }
.lr-points li::before, .lr-traps li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 0.72em; width: 7px; height: 1.5px; background: var(--blue); }
.lr-steps li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin: 8px 0; font-size: 16.5px; color: var(--ink-2); }
.lr-steps li strong { color: var(--ink); }
.lr-steps li span { font-size: 13px; font-weight: 700; color: var(--blue); }
.lr-punch { font-size: 17.5px; font-weight: 700; color: var(--ink); margin: 12px 0; }
.lr-full { margin: 6px 0 4px; }
.lr-full summary { cursor: pointer; font-weight: 700; color: var(--blue); font-size: 15px; }
.lr-traps li strong { color: var(--ink); }

/* עמודת התוכן לא מתרחבת בגלל השרטוט (min-width של ה-grid) — רק השרטוט נגלל */
.lr .st > div { min-width: 0; }
.lr-fig { max-width: min(680px, 100%); }
.lr-scroll { display: none; }
@media (max-width: 640px) { .lr-scroll { display: inline; } }

/* ---- מרכז הלמידה: ממשיכים ללמוד, עמוד המרכז, שרטוטים מוערמים ---- */
.lr-fig--sm { max-width: min(420px, 100%); }
.lr-stack svg + svg { border-top: 1px dashed var(--hair); }
.lr-next { border-top: 1px solid var(--hair); margin-top: 30px; padding-top: 14px; }
.lr-next > p { font-size: 13px; font-weight: 800; color: var(--ink-3); margin: 0 0 8px; }
.lr-next ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.lr-next li { border: 1px solid var(--hair); padding: 10px 12px; }
.lr-next a { display: block; font-weight: 800; color: var(--blue); text-decoration: none; font-size: 16px; }
.lr-next a:hover { text-decoration: underline; }
.lr-next span { display: block; font-size: 14px; color: var(--ink-3); margin-top: 2px; }
.lr-hub { margin: 26px 0 8px; }
.lr-hub h2 { font-size: 22px; font-weight: 900; color: var(--ink); margin: 0 0 2px; }
.lr-hub > p { color: var(--ink-3); margin: 0 0 10px; font-size: 15.5px; }
.lr-hub ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.lr-hub li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.lr-hub li b { font-family: "Heebo", system-ui, sans-serif; font-size: 13px; font-weight: 800; color: var(--blue); min-width: 22px; }
.lr-hub li a { font-size: 17.5px; font-weight: 800; color: var(--ink); text-decoration: none; }
.lr-hub li a:hover { color: var(--blue); }
.lr-hub li span { font-size: 15px; color: var(--ink-3); }
@media (max-width: 640px) {
  .lr-hub li span { flex-basis: 100%; padding-inline-start: 34px; }
}
/* שלב = תגית + טקסט אחד שזורם (לא כל מילה כפריט flex נפרד) */
.lr-steps li { flex-wrap: nowrap; }
.lr-steps li > div { flex: 1; min-width: 0; }
.lr-figs--one { grid-template-columns: 1fr; max-width: 280px; margin-inline: auto; }
@media (max-width: 640px) { .lr-figs--one { grid-template-columns: 1fr; } }

/* =====================================================================
   המחברות (27.9): סד״פ, שורות חישוב, כרטיסי מחברת, הדפסה לקלסר
   ===================================================================== */
.lr .m { white-space: nowrap; font-family: "Heebo", system-ui, sans-serif; }
.lr .m i, .lr bdi i { font-style: italic; }
.m-fr { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; margin: 0 2px; font-size: 0.92em; line-height: 1.15; }
.m-fr > span:first-child { border-bottom: 1px solid currentColor; padding: 0 3px; }
.m-fr > span:last-child { padding: 0 3px; }

/* סד״פ */
.sd-flow { font-size: 15.5px; color: var(--ink-2); }
.sd-flow b { color: var(--blue); font-weight: 800; }
.sd-goal { font-size: 16.5px; color: var(--ink); margin: 0 0 8px; }
.sd-goal b, .sd-k { font-size: 12.5px; font-weight: 800; color: var(--blue); border: 1px solid var(--blue); padding: 0 7px; margin-inline-end: 6px; }
.sd-k { display: inline-block; margin: 14px 0 6px; }
.sd-formula { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; border: 1px solid var(--hair); padding: 10px 14px; margin: 10px 0; }
.sd-formula__math { font-size: 18px; color: var(--ink); line-height: 1.9; }
.sd-formula__note { font-size: 13px; color: var(--ink-3); }
.sd-legend { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; font-size: 14.5px; }
.sd-legend div { display: contents; }
.sd-legend dt { font-weight: 700; color: var(--ink); }
.sd-legend dd { margin: 0; color: var(--ink-2); }
.sd-lists { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0; }
.sd-table { border-collapse: collapse; font-size: 14.5px; min-width: 240px; }
.sd-table th { text-align: start; font-size: 12.5px; font-weight: 800; color: var(--ink-3); padding: 4px 8px; border-bottom: 1px solid var(--hair); }
.sd-table td { padding: 4px 8px; color: var(--ink-2); border-bottom: 1px solid var(--hair); vertical-align: top; }
.sd-table__k { font-weight: 700; color: var(--ink) !important; white-space: nowrap; }
.sd-shape { display: inline-flex; align-items: center; gap: 6px; }
.sd-order { margin: 0 0 8px; padding-inline-start: 22px; font-size: 16px; color: var(--ink-2); }
.sd-order li { margin: 5px 0; }
.sd-signs { list-style: none; padding: 0; margin: 0 0 8px; }
.sd-signs li { margin: 5px 0; font-size: 15.5px; color: var(--ink-2); }
.sd-signs b { display: inline-block; min-width: 24px; font-weight: 900; color: var(--blue); }
.sd-cells { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 10px; }
.sd-cell { border: 1px solid var(--hair); padding: 8px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13.5px; color: var(--ink-2); min-width: 120px; }
.sd-cell b { font-size: 13.5px; color: var(--ink); }
.sd-mistake { border: 1.5px solid #b91c1c; padding: 10px 14px; margin: 14px 0 4px; font-size: 15px; color: var(--ink-2); }
.sd-mistake > p { margin: 0 0 6px; }
.sd-mistake b { color: #b91c1c; }
.sd-mistake dl { margin: 0; }
.sd-mistake dl div { margin: 4px 0; }
.sd-mistake dt { display: inline; font-weight: 800; color: var(--ink); }
.sd-mistake dt::after { content: " — "; }
.sd-mistake dd { display: inline; margin: 0; }
.sd-flag { border-inline-start: 0; border: 1px dashed var(--hair); padding: 8px 12px; margin: 12px 0; }

/* שורות חישוב (כמו ב-PDF של BST) */
.sd-calc { list-style: none; margin: 4px 0 10px; padding: 0; }
.sd-calc li { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; padding: 4px 0; border-bottom: 1px dotted var(--hair); font-size: 15px; color: var(--ink-2); }
.sd-calc li .m { white-space: normal; }
.sd-calc__l { font-size: 13.5px; color: var(--ink-3); min-width: 150px; }
.sd-calc__note { color: var(--ink); font-weight: 700; }
.sd-calc__t { font-size: 13px; font-weight: 800; color: var(--blue); margin: 12px 0 2px; }
.sd-calc b.ok { color: #15803d; } .sd-calc b.bad { color: #b91c1c; }

/* טבלת סכמות עם שרטוטים */
.lr-table--schemes td.lr-icon svg { width: 180px; height: auto; display: block; }
.lr-table--schemes td { vertical-align: middle; }

/* כרטיס מחברת בעמוד המחברות */
.lr-nb { border: 1.5px solid var(--ink); padding: 16px 18px; margin: 22px 0; }
.lr-nb h2 { margin: 0 0 4px; font-size: 24px; font-weight: 900; }
.lr-nb h2 a { color: var(--ink); text-decoration: none; }
.lr-nb h2 a:hover { color: var(--blue); }
.lr-nb > p { margin: 0 0 10px; color: var(--ink-2); font-size: 16px; }
.lr-nb ul { list-style: none; padding: 0; margin: 0; }
.lr-nb li { margin: 7px 0; font-size: 15px; color: var(--ink-3); line-height: 1.8; }
.lr-nb li b { font-size: 13px; font-weight: 800; color: var(--blue); border: 1px solid var(--blue); padding: 0 7px; margin-inline-end: 8px; }
.lr-nb li a { color: var(--ink); text-decoration: none; }
.lr-nb li a:hover { color: var(--blue); text-decoration: underline; }
.lr-nb__foot { margin-top: 12px !important; font-weight: 800; }
.lr-nb__foot a { color: var(--blue); }
.lr-pdf { font-size: 15px; color: var(--ink-3); margin: 10px 0 0; }
.lr-pdf a { color: var(--blue); font-weight: 800; }
.lr-print { display: none; }

/* ---- הדפסה לקלסר: רק התוכן, שרטוטים לא נחתכים ---- */
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  .sheet { border: 0 !important; box-shadow: none !important; }
  .sheet-head, .sheet-foot, .sheet-cta, .lr-next, .lr-pdf, .lr-scroll { display: none !important; }
  .lr-print { display: block; font-size: 10px; color: #6b7280; border-top: 1px solid #ddd; padding-top: 4px; margin-top: 18px; }
  .lr-fig, .lr-figs, .lr-table, .sd-formula, .sd-mistake, .lr-answer, .lr-steps li, .sd-calc li { break-inside: avoid; }
  .lr-fig { overflow: visible !important; }
  .lr-fig svg { min-width: 0 !important; }
  .st h2 { break-after: avoid; }
  details.lr-full > summary { display: none; }
}
@media (max-width: 640px) {
  .sd-formula__math { font-size: 16px; }
  .sd-calc__l { min-width: 0; flex-basis: 100%; }
  .lr-nb { padding: 14px; }
}

/* ---- סבב QA 1 (27.9): מובייל ---- */
.lr-rules li > span { flex: 1; min-width: 0; }
/* שרטוט רחב נגלל מהקצה השמאלי (x = 0 של הקורה/המסבך), לא מהקצה הימני */
.lr-fig { direction: ltr; }
.lr-fig figcaption { direction: rtl; }
@media (max-width: 640px) {
  .lr-steps bdi, .lr-answer bdi, .lr-points bdi, .lr-traps bdi { white-space: normal; }
  .lr-table { display: block; overflow-x: auto; }
}
.lr-deep { font-size: 12.5px; font-weight: 800; color: var(--blue); text-decoration: none; border-bottom: 1px dotted var(--blue); white-space: nowrap; margin-inline-start: 4px; } @media print { .lr-deep { display: none; } }
.lr-full-h { font-weight: 700; color: var(--blue); font-size: 15px; margin: 6px 0 2px; }
/* נספח הטבלאות — טבלאות צפופות, גלילה אופקית במובייל */
.lr-scrollx { overflow-x: auto; max-width: 100%; }
.lr-table--k11 { font-size: 11.5px; max-width: none; width: auto; direction: ltr; }
.lr-table--k11 caption { direction: rtl; text-align: right; }
.lr-table--k11 th, .lr-table--k11 td { padding: 1px 4px; text-align: center; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.lr-table--k11 tbody th { color: var(--blue); font-weight: 800; }
@media print { .lr-table--k11 { font-size: 8.5px; } }
.lr-table--wide { max-width: none; } .lr-table--wide td { vertical-align: top; }
.lr-table--wide td:first-child { white-space: nowrap; font-weight: 700; } .lr-table--wide .m, .lr-table--wide bdi { white-space: normal; }
.lr-track { display: inline-block; vertical-align: middle; font-size: 13px; font-weight: 800; color: #b45309; border: 1.5px solid #b45309; padding: 0 8px; margin-inline-start: 10px; line-height: 1.6; } /* span בתוך הכותרת הוא בלוק כחול (sheet.css) — התגית נשארת תגית */
.sheet-title span.lr-track { display: inline-block; color: #b45309; font-size: 16px; }

/* ---- דפי נושא — PRO בלבד (29.9.2026; לפני כן: לרשומים) ----
   ה-HTML המלא נשלח לכולם (מנועי חיפוש וכלי AI קוראים הכול; מסומן ב-JSON-LD
   isAccessibleForFree=false על .lr-locked). מבקר בלי session → html.lr-gated:
   ההמשך מתקפל ומופיע כרטיס הרשמה. */
.lr-gate { display: none; }
.lr-gated .lr-locked { max-height: 360px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 35%, transparent); mask-image: linear-gradient(#000 35%, transparent); pointer-events: none; user-select: none; }
.lr-gated .lr-gate { display: block; margin: 0 0 28px; padding: 22px 20px; border: 1.5px solid var(--ink); background: var(--paper-2, #f6f7f9); text-align: center; }
.lr-gate__title { margin: 0 0 6px; font-size: 20px; font-weight: 800; color: var(--ink); }
.lr-gate__text { margin: 0 0 16px; font-size: 15px; color: var(--ink-2); }
.lr-gate__login { display: block; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--blue); }
.lr-gated .lr-pdf, .lr-gated .sheet-cta, .lr-gated a[download] { display: none; }

/* טבלאות ערכים בסד״פי הבטון (30.9.2026) */
.lr .sd-table--grid { width: auto; max-width: 100%; margin: 6px 0 12px; font-size: 12.5px; border-collapse: collapse; }
.lr .sd-table--grid caption { caption-side: top; text-align: start; font-weight: 800; padding: 0 0 4px; }
.lr .sd-table--grid th, .lr .sd-table--grid td { border: 1px solid var(--hair); padding: 3px 8px; text-align: center; white-space: nowrap; }
.lr .sd-table--grid th { font-weight: 800; background: #f6f7f9; }
.lr .sd-table--grid td.sd-table__k { text-align: start; white-space: normal; }
.lr .sd-table--grid tfoot td { text-align: start; white-space: normal; font-size: 11.5px; color: #4b5563; border: 0; padding-top: 4px; }
.lr .sd-lists--grid { overflow-x: auto; }
