/* המגמות המקצועיות · yotzer.education/megamot
   יורש את עולם האתר: כחול-לילה, מג'נטה, תכלת, חרדל; Secular One לכותרות עמוד, Assistant לכל השאר. */

:root {
  --navy: #0C1D2F;
  --navy-2: #17324D;
  --navy-3: #234765;
  --on-navy: #C9D6E3;
  --mag: #DB205F;
  --mag-ink: #B8174E;
  --mag-tint: #FCE8EF;
  --sky: #63A8D8;
  --sky-ink: #2F6FA8;
  --sky-tint: #E3EFF8;
  --must: #F2B705;
  --must-ink: #8A6700;
  --must-tint: #FFF4CC;
  --ink: #2B2F36;
  --ink-2: #555D69;
  --paper: #F4F5F7;
  --line: #E1E4E9;
  --ok: #2B7A4B;
  --ok-tint: #E5F3EA;
  --warn: #9A5B00;
  --warn-tint: #FDF0DC;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(12, 29, 47, .06), 0 10px 28px rgba(12, 29, 47, .12);
  --wrap: 1240px;
  --font: "Assistant", "Segoe UI", Arial, sans-serif;
  --display: "Secular One", "Assistant", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  font-variant-numeric: tabular-nums;
  scrollbar-color: #B9C2CD transparent;
}
::selection { background: var(--must-tint); color: var(--navy); }
img { max-width: 100%; height: auto; }
a { color: var(--sky-ink); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { font-synthesis: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--must); outline-offset: 2px; border-radius: 3px; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--must); color: var(--navy); padding: 8px 14px; z-index: 50; font-weight: 700; border-radius: var(--radius); }
.skip:focus { top: 8px; }

/* ---------- כותרת האתר ---------- */
.site { background: var(--navy); color: #fff; }
.site__in { max-width: var(--wrap); margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 20px; min-height: 68px; }
.site__brand img { display: block; height: 40px; width: auto; }
.site__section { color: #fff; text-decoration: none; font-weight: 700; font-size: 17px; padding-inline-start: 20px; border-inline-start: 1px solid var(--navy-3); white-space: nowrap; }
.site__section:hover { color: var(--must); }
.site__search { margin-inline-start: auto; position: relative; flex: 0 1 380px; }
.site__search svg, .unitsearch svg { position: absolute; inset-inline-start: 12px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.site__search input { color: var(--ink); width: 100%; height: 42px; border: 0; border-radius: var(--radius); padding: 0 40px 0 12px; padding-inline: 40px 12px; background: #fff; font-size: 16px; }
.site__search input::placeholder, .unitsearch input::placeholder { color: #646C78; }
.site__partners { display: flex; align-items: center; gap: 18px; }
.site__partners img { height: 26px; width: auto; display: block; opacity: .92; }

/* ---------- רכיבים ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--radius); border: 1px solid #C9CFD8; background: #fff; color: var(--navy); font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; transition: background-color .15s ease-out, border-color .15s ease-out, box-shadow .15s ease-out; }
.btn:hover { border-color: var(--navy); }
.btn:active { background: var(--paper); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn--primary { background: var(--must); border-color: var(--must); color: var(--navy); }
.btn--primary:hover { background: #E3AB00; border-color: #E3AB00; }
.btn--navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); color: #fff; }
.btn--quiet { border-color: transparent; background: transparent; }
.btn--quiet:hover { background: var(--paper); border-color: transparent; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.linkish { background: none; border: 0; padding: 0; color: var(--sky-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.num { display: inline-block; font-size: .78em; font-weight: 700; color: var(--ink-2); background: var(--paper); border-radius: 4px; padding: 0 7px; margin-inline-start: 8px; vertical-align: .1em; letter-spacing: .02em; }
.num--lg { font-size: 16px; padding: 2px 9px; background: var(--navy-2); color: var(--on-navy); margin: 0; }
.mnum { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; background: var(--mag-tint); color: var(--mag-ink); font-weight: 800; font-size: 14px; margin-inline-end: 10px; flex: none; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--on-navy); white-space: nowrap; }
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mag); box-shadow: 0 0 0 3px rgba(219, 32, 95, .22); }
.status[data-state="approved"] .status__dot { background: #4CC27F; box-shadow: 0 0 0 3px rgba(76, 194, 127, .25); }
.status--sm { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.status--sm .status__dot { width: 7px; height: 7px; box-shadow: none; }

.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border-radius: 18px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color .15s ease-out, border-color .15s ease-out; }
.chip span { color: var(--ink-2); font-weight: 500; }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip[aria-pressed="true"] span { color: var(--on-navy); }

.flag { display: inline-block; font-size: .72em; font-weight: 700; line-height: 1.5; color: var(--warn); background: var(--warn-tint); border-radius: 3px; padding: 0 5px; vertical-align: .12em; cursor: help; }
.ver { display: inline-block; font-family: var(--font); font-size: 13px; font-weight: 700; color: var(--ink-2); background: var(--paper); border-radius: 4px; padding: 1px 7px; vertical-align: .2em; margin-inline-start: 8px; }
.ver::before { content: "גרסה "; font-weight: 500; }
.ver[data-edited] { color: var(--navy); background: var(--must-tint); }

/* ---------- קטלוג ---------- */
.catalog { max-width: var(--wrap); margin: 0 auto; padding: 40px 24px 72px; }
.catalog h1 { font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1.15; color: var(--navy); margin: 0 0 10px; }
.lede { max-width: 68ch; margin: 0 0 24px; font-size: 19px; color: var(--ink-2); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.results:empty { display: none; }
.results { margin: 14px 0 0; color: var(--ink-2); font-size: 15px; }
.domain { margin-top: 40px; }
.domain h2 { font-size: 15px; font-weight: 800; color: var(--mag-ink); margin: 0 0 8px; padding-bottom: 8px; border-bottom: 2px solid var(--navy); display: flex; gap: 8px; align-items: baseline; }
.domain h2 span { color: var(--ink-2); font-weight: 600; }
.tracks { list-style: none; margin: 0; padding: 0; }
.track { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 32px; padding: 14px 8px; border-bottom: 1px solid var(--line); align-items: center; }
.track:hover { background: #FAFBFC; }
.track__link { text-decoration: none; color: inherit; display: grid; gap: 2px; min-width: 0; }
.track__name { font-size: 20px; font-weight: 700; color: var(--navy); }
.track__link:hover .track__name { color: var(--sky-ink); text-decoration: underline; text-underline-offset: 4px; }
.track__what { color: var(--ink-2); font-size: 16px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; max-width: 90ch; }
.track__num { display: none; }
.track__meta { display: flex; gap: 18px; font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.track__hits { grid-column: 1 / -1; list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; }
.track__hits a { display: inline-flex; gap: 10px; font-size: 15px; color: var(--ink); text-decoration: none; padding: 3px 8px; border-radius: 4px; }
.track__hits a:hover { background: var(--must-tint); }
.track__hits b { color: var(--navy); min-width: 3.2em; }
mark { background: var(--must-tint); color: inherit; border-radius: 2px; padding: 0 1px; }
.empty { padding: 40px 0; font-size: 18px; color: var(--ink-2); }

/* ---------- עמוד מגמה: פס עובדות ---------- */
.strip { background: var(--navy); color: #fff; }
.strip__in { max-width: var(--wrap); margin: 0 auto; padding: 18px 24px 0; }
.crumbs { font-size: 15px; color: var(--on-navy); }
.crumbs a { color: var(--on-navy); }
.crumbs a:hover { color: #fff; }
.strip__title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 6px; }
.strip h1 { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1.15; margin: 0; color: #fff; }
.strip__what { max-width: 80ch; margin: 8px 0 0; color: var(--on-navy); font-size: 17px; }
.strip__facts { display: flex; flex-wrap: wrap; gap: 8px 40px; margin: 18px 0 0; padding: 14px 0 16px; border-top: 1px solid var(--navy-3); }
.strip__facts div { min-width: 0; }
.strip__facts dt { font-size: 13px; color: var(--on-navy); font-weight: 600; }
.strip__facts dd { margin: 0; font-size: 18px; font-weight: 700; color: #fff; }
.tabs { display: flex; gap: 4px; margin-top: 4px; }
.tabs a { padding: 12px 20px; color: var(--on-navy); text-decoration: none; font-weight: 700; font-size: 17px; border-radius: var(--radius) var(--radius) 0 0; transition: color .15s ease-out, background-color .15s ease-out; }
.tabs a:hover { color: #fff; background: var(--navy-2); }
.tabs a[aria-selected="true"] { background: #fff; color: var(--navy); }

.pane { max-width: var(--wrap); margin: 0 auto; padding: 24px 24px 72px; }

/* ---------- סילבוס ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.seg { display: inline-flex; border: 1px solid var(--navy); border-radius: var(--radius); overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 8px 18px; font-weight: 700; font-size: 16px; color: var(--navy); cursor: pointer; min-height: 40px; }
.seg button + button { border-inline-start: 1px solid var(--navy); }
.seg button:hover { background: var(--sky-tint); }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.unitsearch { position: relative; flex: 0 1 360px; }
.unitsearch input { width: 100%; height: 40px; border: 1px solid #C9CFD8; border-radius: var(--radius); padding-inline: 40px 12px; background: #fff; }
.unitsearch input:focus { border-color: var(--navy); }

.syl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.syl.has-panel { grid-template-columns: minmax(0, 1fr) 420px; }

.grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.grid th, .grid td { padding: 0; }
.grid thead th { text-align: start; padding-bottom: 8px; border-bottom: 2px solid var(--navy); }
.grid__mod { width: 38%; font-size: 14px; color: var(--ink-2); font-weight: 700; vertical-align: bottom; }
.gradehead { display: grid; width: 100%; text-align: start; background: none; border: 0; padding: 4px 8px; border-radius: var(--radius); cursor: pointer; color: var(--navy); }
.gradehead span { font-weight: 800; font-size: 17px; }
.gradehead small { color: var(--ink-2); font-size: 14px; }
.gradehead:hover { background: var(--sky-tint); }
.gradehead:hover span::after { content: " ← שנה זו"; font-weight: 600; font-size: 14px; color: var(--sky-ink); }
.grid tbody tr { border-bottom: 1px solid var(--line); }
.grid tbody th { text-align: start; font-weight: 600; padding: 10px 8px 10px 16px; padding-inline: 0 16px; display: flex; flex-wrap: wrap; align-items: center; row-gap: 0; }
.mtitle { flex: 1 1 0; min-width: 0; font-size: 16px; color: var(--navy); font-weight: 700; line-height: 1.35; }
.grid tbody th small { flex-basis: 100%; padding-inline-start: 36px; color: var(--ink-2); font-weight: 500; font-size: 14px; }
.cell { display: flex; align-items: center; gap: 8px; width: 100%; height: 44px; padding: 0 8px; background: none; border: 0; border-radius: var(--radius); cursor: pointer; }
.cell:hover { background: var(--sky-tint); }
.cell__bar { display: block; height: 22px; width: calc(var(--w) * 78%); min-width: 6px; background: var(--sky); border-radius: 3px; transition: background-color .15s ease-out; }
.cell:hover .cell__bar { background: var(--sky-ink); }
.cell__h { font-weight: 700; font-size: 15px; color: var(--navy); }
.cell--none { cursor: default; }
.cell--none::before { content: ""; display: block; width: 14px; height: 2px; background: var(--line); margin-inline-start: 8px; }

/* סרגל השנה */
.year__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 0 0 12px; }
.year__head h2 { font-family: var(--display); font-weight: 400; font-size: 28px; color: var(--navy); margin: 0; }
.year__head p { margin: 0; color: var(--ink-2); }
.ymod { margin-top: 22px; }
.ymod:first-of-type { margin-top: 4px; }
.ymod h3 { display: flex; align-items: center; font-size: 16px; font-weight: 800; color: var(--navy); margin: 0 0 4px; padding-bottom: 6px; border-bottom: 1px solid var(--navy); }
.ymod__scale { display: block; height: 3px; margin: -4px 0 6px; background: linear-gradient(to left, transparent var(--s), var(--navy) var(--s), var(--navy) calc(var(--s) + var(--l)), transparent calc(var(--s) + var(--l))); background-color: var(--line); }
.ymod h3 small { margin-inline-start: auto; font-weight: 600; color: var(--ink-2); font-size: 14px; }
.units { list-style: none; margin: 0; padding: 0; }
.unit { display: grid; grid-template-columns: 4.2em minmax(0, 1fr) 15em; gap: 12px; align-items: center; width: 100%; text-align: start; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 9px 8px; cursor: pointer; border-radius: 0; position: relative; }
.unit:hover { background: #FAFBFC; }
.unit[aria-current="true"] { background: var(--must-tint); box-shadow: inset 0 0 0 2px var(--must); border-radius: var(--radius); }
.unit__id { font-weight: 800; color: var(--navy); font-size: 15px; }
.unit__t { font-size: 16px; line-height: 1.4; }
.unit__h { display: grid; gap: 3px; font-size: 13px; color: var(--ink-2); text-align: end; }
.unit__h b { color: var(--navy); font-size: 15px; }
.unit__track { position: relative; height: 9px; background: var(--paper); border-radius: 2px; overflow: hidden; }
.unit__track i { position: absolute; inset-block: 0; inset-inline-start: var(--s); width: max(var(--l), 6px); background: var(--must); border-radius: 2px; }
.unit__from { font-size: 13px; color: var(--ink-2); }
.searchres h2 { font-size: 18px; color: var(--navy); margin: 0 0 8px; }
.searchres .none { color: var(--ink-2); }

/* פאנל יחידה */
.panel { position: sticky; top: 16px; background: var(--paper); border-radius: var(--radius); padding: 20px 22px 22px; max-height: calc(100vh - 32px); overflow: auto; animation: slidein .2s cubic-bezier(.16, 1, .3, 1); }
@keyframes slidein { from { transform: translateX(-16px); opacity: 0; } }
.panel__top { display: flex; align-items: start; gap: 12px; }
.panel__top > div { flex: 1; }
.panel h2 { font-size: 21px; line-height: 1.3; color: var(--navy); margin: 0; }
.panel__meta { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); }
.panel__close { flex: none; width: 36px; height: 36px; border-radius: 18px; border: 0; background: #fff; cursor: pointer; display: grid; place-items: center; }
.panel__close:hover { background: var(--line); }
.panel__close svg { width: 16px; height: 16px; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; }
.panel dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 14px 0 18px; font-size: 15px; }
.panel dt { color: var(--ink-2); font-weight: 600; }
.panel dd { margin: 0; }
.outputs { display: grid; grid-template-columns: 1fr; gap: 8px; }
.outputs .btn { justify-content: flex-start; min-height: 52px; text-align: start; line-height: 1.2; }
.outputs small { display: block; font-weight: 500; font-size: 13px; color: var(--ink-2); }
.outputs .btn--primary small { color: var(--navy); }
.panel__more { margin-top: 18px; display: grid; gap: 8px; }
.panel h3 { font-size: 15px; color: var(--navy); margin: 20px 0 6px; }
.panel ul { margin: 0; padding-inline-start: 18px; font-size: 15px; }
.panel li + li { margin-top: 6px; }
.hint { font-size: 14px; color: var(--ink-2); margin: 6px 0 0; }
.toast { position: fixed; inset-inline-start: 50%; bottom: 24px; translate: 50% 0; background: var(--navy); color: #fff; padding: 10px 18px; border-radius: var(--radius); box-shadow: var(--shadow); font-weight: 600; z-index: 60; animation: slidein .2s cubic-bezier(.16, 1, .3, 1); }
[dir="rtl"] .toast { translate: 50% 0; }

/* ---------- סקירה ---------- */
.overview { display: grid; grid-template-columns: minmax(0, 68ch) minmax(260px, 340px); gap: 56px; justify-content: space-between; }
.overview h2 { font-size: 20px; color: var(--navy); margin: 28px 0 6px; }
.overview h2:first-child { margin-top: 0; }
.overview p { margin: 0; }
.modlist { list-style: none; padding: 0; margin: 0; }
.modlist li { display: flex; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.modlist small { margin-inline-start: auto; color: var(--ink-2); }
.overview .btn { margin-top: 24px; }
.overview__facts { background: var(--paper); border-radius: var(--radius); padding: 20px 22px; align-self: start; position: sticky; top: 16px; }
.overview__facts dl { margin: 0; }
.overview__facts dt { font-size: 14px; color: var(--ink-2); font-weight: 700; margin-top: 14px; }
.overview__facts dt:first-child { margin-top: 0; }
.overview__facts dd { margin: 2px 0 0; font-size: 16px; }

/* ---------- התוכנית המלאה ---------- */
.doc { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; }
.doc__toc { position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 32px); overflow: auto; }
.doc__toc ol { list-style: none; margin: 0; padding: 0; }
.doc__toc a { position: relative; display: block; padding: 6px 12px 6px 8px; padding-inline: 14px 8px; font-size: 15px; line-height: 1.35; color: var(--ink); text-decoration: none; border-radius: 4px; }
.doc__toc a::before { content: ""; position: absolute; inset-inline-start: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 2px; background: var(--sky-tint); }
.doc__toc a::after { content: ""; position: absolute; inset-inline-start: 0; top: 8px; width: 4px; height: calc((100% - 16px) * var(--x)); min-height: 3px; border-radius: 2px; background: var(--sky); }
.doc__toc a:hover { background: var(--paper); color: var(--navy); }
.doc__toc a[aria-current="true"] { background: var(--paper); color: var(--navy); font-weight: 700; }
.doc__toc a[aria-current="true"]::after { background: var(--must); }
.doc__body { max-width: 74ch; }
.doc-sec { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.doc-sec > h2 { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.25; color: var(--navy); margin: 0 0 12px; }
.rubric-body h2 { font-size: 20px; color: var(--navy); margin: 24px 0 8px; }
.rubric-body h3 { font-size: 18px; color: var(--navy); margin: 18px 0 6px; }
.rubric-body p { margin: 0 0 10px; }
.rubric-body ul, .rubric-body ol { margin: 0 0 12px; padding-inline-start: 22px; }
.rubric-body li + li { margin-top: 4px; }
.rubric-body table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 15px; display: block; overflow-x: auto; }
.rubric-body th, .rubric-body td { border: 1px solid var(--line); padding: 6px 10px; vertical-align: top; text-align: start; }
.rubric-body thead th { background: var(--paper); color: var(--navy); }
.rubric-body td[colspan] { background: #FAFBFC; font-weight: 700; }
.rubric-body p:has(> strong:only-child) { margin-top: 14px; color: var(--navy); }
.module { border: 1px solid var(--line); border-radius: var(--radius); margin: 10px 0; }
.module summary { display: flex; align-items: center; cursor: pointer; padding: 12px 14px; font-weight: 700; color: var(--navy); font-size: 17px; list-style: none; }
.module summary::-webkit-details-marker { display: none; }
.module summary::after { content: ""; margin-inline-start: auto; width: 9px; height: 9px; border-inline-end: 2px solid var(--navy); border-bottom: 2px solid var(--navy); rotate: 45deg; transition: rotate .2s ease-out; }
.module[open] summary::after { rotate: -135deg; }
.module summary .ver { margin-inline-start: 10px; }
.module[open] summary { border-bottom: 1px solid var(--line); }
.module .rubric-body { padding: 14px 16px 6px; }

/* ---------- מסמך להדפסה ---------- */
.sheetview { max-width: 900px; margin: 0 auto; padding: 24px 24px 72px; }
.sheetbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.sheetbar .spacer { flex: 1; }
.sheet { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 48px; box-shadow: var(--shadow); }
.sheet__kicker { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--ink-2); border-bottom: 2px solid var(--navy); padding-bottom: 8px; margin-bottom: 16px; }
.sheet h1 { font-family: var(--display); font-weight: 400; color: var(--navy); font-size: 30px; line-height: 1.2; margin: 0 0 4px; }
.sheet .sub { margin: 0 0 18px; color: var(--ink-2); }
.sheet h2 { font-size: 18px; color: var(--navy); margin: 22px 0 8px; }
.sheet table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 6px 0 10px; }
.sheet th, .sheet td { border: 1px solid #CDD3DB; padding: 7px 10px; text-align: start; vertical-align: top; }
.sheet thead th, .sheet th[scope="row"] { background: var(--paper); color: var(--navy); }
.sheet th[scope="row"] { width: 8.5em; white-space: nowrap; }
.sheet .write { min-height: 3.2em; }
.sheet .write-lg { min-height: 7em; }
.sheet ul, .sheet ol { padding-inline-start: 22px; margin: 4px 0 10px; }
.sheet .src { font-size: 13px; color: var(--ink-2); margin-top: 28px; border-top: 1px solid var(--line); padding-top: 10px; }
.sheet .ai-out { border-top: 2px solid var(--must); margin-top: 24px; padding-top: 4px; }
.sheet .ai-note { font-size: 14px; background: var(--must-tint); padding: 8px 12px; border-radius: 4px; }
.sheet [contenteditable]:focus { outline: 2px dashed var(--must); background: #FFFDF2; }
.loading-line { display: block; height: 14px; border-radius: 3px; background: linear-gradient(90deg, var(--paper), #E9ECF0, var(--paper)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; margin: 10px 0; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- פוטר ---------- */
.foot { background: var(--navy); color: var(--on-navy); font-size: 14px; }
.foot__partners { max-width: var(--wrap); margin: 0 auto; padding: 26px 24px 4px; display: flex; align-items: center; gap: 40px; }
.foot__partners img { display: block; width: 132px; height: auto; }
.foot__partners .logo-hotam { width: 124px; }
.foot__in { max-width: var(--wrap); margin: 0 auto; padding: 22px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot p { margin: 0; }
.foot a { color: #fff; }

/* ---------- סביבת הפיקוח ---------- */
.review { min-height: 70vh; }
.review__loading, .review__msg { max-width: 640px; margin: 80px auto; padding: 0 24px; font-size: 18px; color: var(--ink-2); }
.review__msg h1 { font-family: var(--display); font-weight: 400; color: var(--navy); font-size: 32px; margin: 0 0 8px; }
.space { max-width: 980px; margin: 0 auto; padding: 36px 24px 72px; }
.space h1 { font-family: var(--display); font-weight: 400; font-size: 40px; color: var(--navy); margin: 0 0 6px; line-height: 1.15; }
.space--join { max-width: 460px; padding-top: 64px; }
.joinform { display: grid; gap: 6px; margin: 24px 0 14px; }
.joinform label { font-weight: 700; font-size: 15px; color: var(--navy); margin-top: 8px; }
.joinform input { height: 46px; border: 1px solid #C9CFD8; border-radius: var(--radius); padding: 0 12px; font-size: 17px; background: #fff; }
.joinform input:focus { border-color: var(--navy); }
.joinform .btn { margin-top: 16px; min-height: 48px; }
.formerr { margin: 6px 0 0; color: var(--mag-ink); font-weight: 600; }
.space__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.space__who { margin: 0; color: var(--ink-2); }
.space__search { display: block; max-width: 420px; margin: 18px 0 8px; }
.hubdom { margin-top: 30px; }
.hubdom h2 { font-size: 15px; font-weight: 800; color: var(--mag-ink); margin: 0 0 6px; padding-bottom: 6px; border-bottom: 2px solid var(--navy); }
.hubdom ul { list-style: none; margin: 0; padding: 0; }
.hubrow { display: grid; grid-template-columns: minmax(0, 1fr) auto 90px 7.5em; gap: 16px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.hubrow:hover { background: #FAFBFC; }
.hubrow a { text-decoration: none; color: var(--navy); font-size: 17px; }
.hubrow a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.hubrow .hint { margin: 0; text-align: end; font-size: 13px; }
.hubrow__meter { height: 6px; border-radius: 3px; background: #E3E7EC; overflow: hidden; }
.hubrow__meter i { display: block; height: 100%; background: var(--ok); }
.pill { font-size: 13px; font-weight: 700; color: var(--ink-2); background: var(--paper); border-radius: 12px; padding: 2px 10px; white-space: nowrap; }
.pill--ok { background: var(--ok-tint); color: var(--ok); }
.pill--new { background: transparent; color: #7A828E; font-weight: 600; }
.rv__back { display: inline-block; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.rv__back::before { content: "→ "; }
.demo { background: var(--must-tint); color: var(--navy); font-size: 15px; padding: 8px 24px; text-align: center; }
.rv { display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: calc(100vh - 68px); }
.rv__side { background: var(--paper); border-inline-end: 1px solid var(--line); padding: 20px 16px; position: sticky; top: 0; align-self: start; max-height: 100vh; overflow: auto; }
.rv__prog { display: grid; gap: 2px; margin-bottom: 14px; }
.rv__prog b { font-size: 20px; color: var(--navy); line-height: 1.25; }
.rv__prog select { margin-top: 6px; height: 36px; border: 1px solid #C9CFD8; border-radius: var(--radius); background: #fff; padding: 0 8px; }
.rv__progress { margin: 10px 0 14px; font-size: 14px; color: var(--ink-2); }
.meter { height: 6px; border-radius: 3px; background: #DDE2E8; overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; background: var(--ok); border-radius: 3px; transition: width .25s ease-out; }
.rv__group { font-size: 13px; font-weight: 800; color: var(--ink-2); margin: 14px 8px 4px; }
.rv__list { list-style: none; margin: 0; padding: 0; }
.rv__item { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; text-align: start; background: none; border: 0; padding: 7px 8px; border-radius: 4px; cursor: pointer; font-size: 15px; line-height: 1.3; color: var(--ink); }
.rv__item:hover { background: #fff; }
.rv__item[aria-current="true"] { background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; color: var(--navy); }
.rv__item small { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.sdot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #A6AFBB; background: #fff; }
.sdot[data-s="approved"] { background: var(--ok); border-color: var(--ok); }
.sdot[data-s="approved_with_changes"] { background: var(--ok); border-color: var(--ok); box-shadow: inset 0 0 0 2px #fff; }
.sdot[data-s="discussion"] { background: var(--mag); border-color: var(--mag); }
.rv__final { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.rv__final .btn { width: 100%; }
.rv__main { padding: 24px 32px 80px; min-width: 0; }
.rv__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.rv__head h1 { font-family: var(--display); font-weight: 400; color: var(--navy); font-size: 30px; line-height: 1.2; margin: 0; }
.rv__meta { font-size: 14px; color: var(--ink-2); margin: 4px 0 16px; }
.rv__bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 12px 0; border-block: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 5; }
.decide { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.decide button { min-height: 38px; padding: 6px 12px; border: 1px solid #C9CFD8; border-radius: 19px; background: #fff; font-weight: 700; font-size: 15px; cursor: pointer; color: var(--ink); }
.decide button:hover { border-color: var(--navy); }
.decide button[aria-pressed="true"][data-s="approved"], .decide button[aria-pressed="true"][data-s="approved_with_changes"] { background: var(--ok); border-color: var(--ok); color: #fff; }
.decide button[aria-pressed="true"][data-s="discussion"] { background: var(--mag); border-color: var(--mag); color: #fff; }
.rv__bar .spacer { flex: 1; }
.rv__cols { display: grid; grid-template-columns: minmax(0, 74ch) minmax(240px, 320px); gap: 40px; margin-top: 18px; justify-content: start; }
.editor { min-height: 300px; padding: 4px 2px; }
.editor[contenteditable="true"] { outline: 1px solid var(--line); outline-offset: 10px; border-radius: 2px; }
.editor[contenteditable="true"]:focus { outline: 2px solid var(--must); }
.editbar { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; }
.editbar svg { width: 18px; height: 18px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.editbar button { min-width: 36px; height: 34px; border: 1px solid var(--line); background: #fff; border-radius: 4px; cursor: pointer; font-weight: 700; }
.editbar button:hover { border-color: var(--navy); }
.saveline { font-size: 14px; color: var(--ink-2); }
.saveline[data-dirty] { color: var(--warn); font-weight: 700; }
.notes { align-self: start; position: sticky; top: 70px; display: grid; gap: 10px; }
.notes h2 { font-size: 15px; color: var(--navy); margin: 0; }
.note { background: var(--warn-tint); border-radius: var(--radius); padding: 10px 12px; font-size: 14px; line-height: 1.5; }
.note b { display: block; color: var(--warn); font-size: 13px; }
.note p { margin: 4px 0 0; }
.notes textarea { width: 100%; min-height: 90px; border: 1px solid #C9CFD8; border-radius: var(--radius); padding: 8px 10px; resize: vertical; background: #fff; }
.history { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 14px; }
.history h2 { font-size: 18px; color: var(--navy); margin: 0 0 8px; }
.hrow { display: grid; grid-template-columns: 4.5em minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.hrow b { color: var(--navy); }
.hrow span { color: var(--ink-2); }
.diff { margin-top: 12px; padding: 14px 16px; background: #FAFBFC; border: 1px solid var(--line); border-radius: var(--radius); font-size: 15px; line-height: 1.7; }
.diff ins { background: var(--ok-tint); color: #1D5C37; text-decoration: none; border-radius: 2px; }
.diff del { background: var(--mag-tint); color: var(--mag-ink); border-radius: 2px; }
.dlg { border: 0; border-radius: var(--radius); padding: 24px; max-width: 520px; width: calc(100% - 32px); box-shadow: var(--shadow); }
.dlg::backdrop { background: rgba(12, 29, 47, .45); }
.dlg h2 { margin: 0 0 8px; color: var(--navy); }
.dlg textarea { width: 100%; min-height: 90px; border: 1px solid #C9CFD8; border-radius: var(--radius); padding: 8px 10px; margin: 8px 0 14px; }
.dlg .row { display: flex; gap: 8px; justify-content: flex-start; }

/* ---------- מסכים צרים ---------- */
@media (max-width: 1100px) {
  .syl.has-panel { grid-template-columns: minmax(0, 1fr); }
  .panel { position: fixed; inset: auto 0 0 0; top: auto; max-height: 78vh; border-radius: 14px 14px 0 0; box-shadow: 0 -10px 30px rgba(12, 29, 47, .2); z-index: 40; animation: rise .22s cubic-bezier(.16, 1, .3, 1); }
  @keyframes rise { from { transform: translateY(24px); opacity: 0; } }
  .rv { grid-template-columns: 1fr; }
  .rv__side { position: static; max-height: none; }
  .rv__cols { grid-template-columns: 1fr; }
  .notes { position: static; }
}
@media (max-width: 900px) {
  .site__partners { display: none; }
  .overview, .doc { grid-template-columns: 1fr; gap: 28px; }
  .doc__toc { position: static; max-height: 260px; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
  .overview__facts { position: static; }
  .track { grid-template-columns: 1fr; }
  .track__meta { flex-wrap: wrap; gap: 4px 14px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site__in { flex-wrap: wrap; padding: 8px 16px 12px; gap: 10px 14px; }
  .site__brand img { height: 32px; }
  .site__section { font-size: 15px; padding-inline-start: 12px; }
  .site__search { flex: 1 1 100%; order: 3; }
  .catalog { padding: 24px 16px 56px; }
  .catalog h1 { font-size: 32px; }
  .lede { font-size: 17px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .chip { flex: none; }
  .track__name { font-size: 18px; }
  .track__name .num { display: none; }
  .track__num { display: inline; }
  .track__what { -webkit-line-clamp: 2; }
  .strip__in { padding: 14px 16px 0; }
  .strip h1 { font-size: 30px; }
  .strip__facts { gap: 8px 24px; }
  .strip__facts dd { font-size: 16px; }
  .tabs { overflow-x: auto; scrollbar-width: none; }
  .tabs a { padding: 10px 14px; white-space: nowrap; font-size: 16px; }
  .pane { padding: 18px 16px 56px; }
  .toolbar { gap: 10px; }
  .seg { width: 100%; }
  .seg button { flex: 1; padding: 8px 6px; font-size: 15px; }
  .unitsearch { flex: 1 1 100%; }
  .grid { display: block; }
  .grid thead { display: none; }
  .grid tbody, .grid tr { display: block; }
  .grid tbody tr { padding: 10px 0; }
  .grid tbody th { padding: 0 0 6px; }
  .grid td { display: inline-block; width: 33.33%; }
  .grid td .cell { height: 40px; flex-direction: column; justify-content: center; align-items: flex-start; gap: 2px; }
  .grid td .cell__bar { height: 8px; width: calc(var(--w) * 100%); }
  .grid td .cell__h::after { content: " ש'"; font-weight: 500; }
  .grid td:nth-of-type(1) .cell::before { content: "י'"; }
  .grid td:nth-of-type(2) .cell::before { content: 'י"א'; }
  .grid td:nth-of-type(3) .cell::before { content: 'י"ב'; }
  .grid td .cell::before { font-size: 12px; color: var(--ink-2); font-weight: 700; }
  .grid td .cell--none::before { content: none; }
  .unit { grid-template-columns: 3.4em minmax(0, 1fr); }
  .unit__h { grid-column: 1 / -1; text-align: start; gap: 4px; }
  .sheetview { padding: 16px 12px 48px; }
  .sheet { padding: 22px 18px; }
  .sheet h1 { font-size: 24px; }
  .outputs { grid-template-columns: 1fr; }
  .rv__main { padding: 18px 16px 64px; }
  .space { padding: 24px 16px 56px; }
  .space h1 { font-size: 30px; }
  .hubrow { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .hubrow__meter { grid-column: 1 / -1; }
  .hubrow .hint { display: none; }
  .rv__head h1 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  @page { margin: 16mm 14mm; }
  body { font-size: 12pt; }
  .site, .foot, .sheetbar, .skip, .strip, .pane, .demo { display: none !important; }
  .sheetview { display: block !important; padding: 0; max-width: none; }
  .sheet { border: 0; box-shadow: none; padding: 0; }
  .sheet table { page-break-inside: auto; }
  .sheet tr { page-break-inside: avoid; }
  .sheet [contenteditable]:hover { background: none; }
}
