/* נוצר ע"י tools/learn/build-learn.mjs מ-src/components/sadap/sheets/sheet.css — לא לערוך כאן */
/* =====================================================================
   sheet.css — the סד״פ sheet (sheetHtml.js), 24.11.2026.
   White paper, black ink, blue step numbers, red for small labels. One
   look in the app, in its PDF and on the /learn/sdp/* pages (the build
   copies this file to public/learn/sdp-sheet.css).
   ===================================================================== */
.sh {
  --sh-ink: #0b0b0c; --sh-ink2: #33383f; --sh-muted: #5b6472; --sh-red: #b91c1c; --sh-blue: #1d4ed8;
  --sh-soft: #f4f5f7; --sh-hl: #fdecec; --sh-ok: #15803d;
  --sh-math: "Cambria Math", "Cambria", "STIX Two Math", "Times New Roman", serif;
  font-family: "Heebo", "Assistant", system-ui, sans-serif; color: var(--sh-ink); background: #fff;
  font-size: 16px; line-height: 1.5; text-align: start;
}
.sh *, .sh *::before, .sh *::after { box-sizing: border-box; }
.sh p { margin: 0; }

.sh-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.sh-eyebrow { font-size: 14px; font-weight: 800; color: var(--sh-red); }
.sh .sh-title { font-size: clamp(36px, 6vw, 54px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.02; margin: 6px 0 10px; color: var(--sh-ink); }
.sh-sub { font-size: 17.5px; color: var(--sh-ink2); max-width: 640px; }
.sh-mark { flex: none; font-weight: 900; font-size: 21px; letter-spacing: -0.02em; background: var(--sh-ink); color: #fff; padding: 3px 10px 5px; }
.sh-route { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0 4px !important; font-size: 13.5px; font-weight: 700; color: var(--sh-ink2); }
.sh-route span { background: var(--sh-soft); padding: 2px 10px 4px; }
.sh-route span.is-hl { color: var(--sh-red); font-weight: 800; }

/* a step: the number, then the action */
.sh-step { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 12px; padding: 28px 0 4px; break-inside: avoid; page-break-inside: avoid; }
.sh-n { font-size: 32px; font-weight: 900; color: var(--sh-blue); line-height: 1; padding-top: 2px; font-variant-numeric: tabular-nums; }
.sh-body { min-width: 0; }
.sh-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sh .sh-h h2 { font-size: 23px; font-weight: 900; margin: 0; letter-spacing: -0.01em; line-height: 1.2; color: var(--sh-ink); }
.sh-u { font-size: 13.5px; font-weight: 800; color: #fff; background: var(--sh-ink); padding: 1px 8px 2px; }
.sh-when { font-size: 14px; font-weight: 800; color: var(--sh-red); }
.sh-say { margin-top: 8px !important; font-size: 16.5px; color: var(--sh-ink2); }
.sh-say b, .sh-note b { color: var(--sh-ink); }
.sh-note { margin-top: 8px !important; font-size: 14px; color: var(--sh-muted); }
.sh-list { margin: 8px 0 0; padding: 0; padding-inline-start: 20px; font-size: 16px; color: var(--sh-ink2); }
.sh-list li + li { margin-top: 3px; }
.sh-list b { color: var(--sh-ink); }

/* math */
.sh-m { font-family: var(--sh-math); direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.sh-m sub, .sh-s sub, .sh-num sub, .sh-tile__v sub { font-size: 0.72em; }

/* the formula in words: the word on top, the symbol under it — set left to right */
.sh-fw { direction: ltr; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding: 16px 12px; background: var(--sh-soft); font-size: 19px; }
.sh-fws .sh-fw + .sh-fw { margin-top: 6px; }
.sh-op { font-family: var(--sh-math); font-size: 23px; color: var(--sh-ink2); }
.sh-num { font-family: var(--sh-math); font-size: 22px; white-space: nowrap; }
.sh-t { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.sh-w { direction: rtl; unicode-bidi: isolate; font-weight: 700; background: #fff; padding: 2px 9px 4px; white-space: nowrap; }
.sh-t.is-res .sh-w { background: var(--sh-ink); color: #fff; }
.sh-s { font-family: var(--sh-math); font-size: 15px; color: var(--sh-muted); direction: ltr; white-space: nowrap; }
.sh-frac { display: inline-flex; flex-direction: column; align-items: center; }
.sh-frac > span { display: inline-flex; align-items: center; gap: 6px; }
.sh-frac > span:first-child { border-bottom: 2px solid var(--sh-ink); padding-bottom: 4px; margin-bottom: 4px; }

[dir="ltr"] .sh-w, .sh[dir="ltr"] .sh-w { direction: ltr; }

/* tiles */
.sh-tiles { display: grid; gap: 10px; margin-top: 14px; }
.sh-tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sh-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sh-tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sh-tile { border: 1.5px solid var(--sh-ink); padding: 10px 10px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.sh-tile.is-hl { background: var(--sh-hl); }
.sh-tile__k { font-size: 15px; font-weight: 800; }
.sh-tile__v { font-family: var(--sh-math); font-size: 27px; font-weight: 700; line-height: 1.1; direction: ltr; }
.sh-tile__v.is-red { color: var(--sh-red); }
.sh-tile small { font-size: 13.5px; color: var(--sh-muted); line-height: 1.35; }
.sh-tile svg, .sh-fig svg, .sh-answer svg { display: block; max-width: 100%; height: auto; }

/* two cases */
.sh-cases { display: grid; gap: 10px; margin-top: 14px; }
.sh-case { border: 1.5px solid var(--sh-ink); padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
.sh-case__k { font-size: 15px; font-weight: 900; }
.sh-case__t { font-size: 15px; color: var(--sh-ink2); }
.sh-case__eq { direction: ltr; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 17px; }
.sh-case__eq .sh-w { background: var(--sh-soft); }
.sh-case__eq .sh-op { font-size: 19px; }

/* tables */
.sh-tw { overflow-x: auto; margin-top: 14px; }
.sh-table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
.sh-table th, .sh-table td { border: 1.5px solid var(--sh-ink); padding: 7px 10px; text-align: center; vertical-align: middle; }
.sh-table th { font-weight: 800; background: var(--sh-soft); }
.sh-table .k { text-align: start; font-weight: 800; }
.sh-table tr.is-hl td { background: var(--sh-hl); }
.sh-table--in { font-size: 13.5px; }
.sh-table--in th, .sh-table--in td { padding: 4px 6px; }
.sh-tile .sh-tw { margin-top: 2px; width: 100%; }
.sh-blank { height: 40px; }
.sh-cap { margin-top: 18px !important; margin-bottom: -6px !important; font-size: 14px; font-weight: 800; color: var(--sh-red); }
.sh-dec th { background: var(--sh-ink); color: #fff; }
.sh-dec td { text-align: start; vertical-align: top; font-size: 15px; line-height: 1.45; }
.sh-dec td b { display: block; font-size: 15.5px; }
.sh-dec td span { color: var(--sh-ink2); }
.sh-dec td.sh-dec__k { text-align: center; vertical-align: middle; white-space: nowrap; font-weight: 800; }
.sh-ok { color: var(--sh-ok); }
.sh-no { color: var(--sh-red); }

.sh-fig { margin-top: 14px; overflow-x: auto; }
.sh-answer { display: flex; align-items: center; gap: 20px; margin-top: 14px; padding: 14px 16px; background: var(--sh-soft); }
.sh-answer svg { flex: none; width: 72px; }
.sh-answer__big { font-size: 26px; font-weight: 900; line-height: 1.2; }
.sh-answer .sh-say { margin-top: 2px !important; }
.sh-copy { margin-top: 30px !important; font-size: 12.5px; color: var(--sh-muted); }

@media (max-width: 640px) {
  .sh-step { grid-template-columns: 34px minmax(0, 1fr); gap: 0 8px; padding-top: 24px; }
  .sh-n { font-size: 26px; }
  .sh .sh-h h2 { font-size: 20px; }
  .sh-fw { font-size: 16px; gap: 6px; padding: 12px 8px; }
  .sh-op { font-size: 19px; } .sh-num { font-size: 18px; }
  .sh-w { padding: 2px 6px 3px; white-space: normal; text-align: center; }
  .sh-tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sh-tiles--2:has(.sh-table) { grid-template-columns: minmax(0, 1fr); }
  .sh-tiles--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sh-table { font-size: 14px; }
  .sh-case { flex-direction: column; align-items: stretch; }
  .sh-case__eq { justify-content: flex-start; }
}

@media print {
  /* smaller on paper; a long step may break between its blocks, never inside one */
  .sh { zoom: 0.8; }
  .sh-step { padding-top: 16px; break-inside: auto; page-break-inside: auto; }
  .sh-h { break-after: avoid; page-break-after: avoid; }
  .sh-fw, .sh-fws, .sh-tiles, .sh-tw, .sh-cases, .sh-case, .sh-answer, .sh-fig, .sh-say, .sh-note, .sh-cap { break-inside: avoid; page-break-inside: avoid; }
  .sh-cap { break-after: avoid; page-break-after: avoid; }
  .sh-fw, .sh-route span, .sh-answer, .sh-table th, .sh-tile.is-hl, .sh-table tr.is-hl td, .sh-t.is-res .sh-w, .sh-u, .sh-mark, .sh-dec th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
