
@font-face{font-family:'Assistant';font-weight:200 800;font-display:swap;src:url(fonts/2sDcZGJYnIjSi6H75xkzamW5O7w.woff2) format('woff2');unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:'Assistant';font-weight:200 800;font-display:swap;src:url(fonts/2sDcZGJYnIjSi6H75xkzaGW5.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* ===== printable document (A4) ===== */
.doc{font-family:'Assistant','DejaVu Sans',Arial,sans-serif;direction:rtl;text-align:right;color:#0f172a;font-size:15px;line-height:1.6;background:#fff;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.doc *{box-sizing:border-box}
.doc .dh{display:flex;align-items:center;gap:12px;border:2px solid #38bdf8;border-radius:14px;padding:10px 14px;margin:0 0 10px;background:#fff}
.doc .dh img{height:40px;width:auto;flex:none}
.doc .dh .tt{flex:1;min-width:0}
.doc .dh h1{font-size:23px;line-height:1.25;margin:0;font-weight:800;color:#0f172a}
.doc .dh .meta{font-size:13.5px;color:#334155;margin-top:2px}
.doc .dh .meta span{white-space:nowrap}
.doc .dh .meta span:not(:last-child):after{content:' ·';color:#94a3b8}
.doc .stu{display:flex;flex-wrap:wrap;gap:6px 24px;font-weight:600;font-size:14.5px;margin:2px 4px 8px}
.doc .stu i{font-style:normal;display:inline-block;border-bottom:1.3px solid #334155;width:150px;margin-right:6px}
.doc .stu .s i{width:70px}
.doc .ins{font-size:14px;color:#0f172a;margin:0 4px 10px;padding:6px 12px;border-radius:10px;background:#f0f9ff}
.doc .qw{margin:0 0 14px}
.doc .qh{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;margin:0 0 4px;break-after:avoid}
.doc .qh b{font-size:17px;font-weight:800}
.doc .qh .pts{font-weight:700}
.doc .qh .src{font-size:12.5px;color:#64748b}
.doc .qx{background:#fff;border:2px solid #38bdf8;border-radius:12px;padding:9px 14px 10px;color:#0f172a;line-height:1.75}
.doc .qx p{margin:0 0 6px}.doc .qx p:last-child{margin:0}
.doc .qx b{color:#0f172a}
.doc .qx .qimg{display:block;max-width:min(100%,430px);max-height:260px;width:auto;height:auto;margin:6px auto 2px}
.doc .qx .st{margin:0 0 4px}
.doc .qx ol.pl{list-style:none;margin:0;padding:0}
.doc .qx ol.pl li{display:flex;gap:7px;margin:3px 0}
.doc .qx ol.pl .l{font-weight:700;flex:none;width:18px}
.doc .qx .fig{float:left;margin:2px 0 4px 14px;max-width:44%}
.doc .qx .fig img{max-width:100%;height:auto}
.doc .qx .fig svg{max-height:170px;width:auto;max-width:100%;height:auto;display:block}
.doc .qx:after{content:'';display:block;clear:both}
.doc .ws-space .qx{margin-bottom:0}
.doc .foot{margin-top:12px;text-align:center;font-size:11.5px;color:#64748b}
/* math – shared */
.doc .m{direction:ltr;unicode-bidi:isolate;display:inline-block;font-family:'Cambria Math','STIX Two Text','Liberation Serif','Times New Roman',serif;font-weight:normal;font-style:normal;white-space:nowrap;font-size:1.08em;line-height:1.2;color:inherit;max-width:100%}
.doc .m i{font-style:italic}
.doc .m sup{font-size:.7em;line-height:0;vertical-align:baseline;position:relative;top:-.55em}
.doc .m sub{font-size:.7em;line-height:0;vertical-align:-.25em}
.doc .fr{display:inline-flex;flex-direction:column;vertical-align:middle;text-align:center;font-size:.86em;line-height:1.18;margin:0 2px}
.doc .fr>span{padding:0 2px}.doc .fr>span+span{border-top:1.4px solid currentColor}
.doc .rt,.doc .sq{white-space:nowrap}
.doc .rt>span,.doc .sq>span{border-top:1.3px solid currentColor;padding:1px 1px 0 2px}
.doc .in{display:inline-flex;align-items:center;vertical-align:middle}
.doc .in>i,.doc .in .s{font-style:normal;font-size:1.4em;line-height:1;font-family:'Times New Roman',serif}
.doc .lim{display:inline-flex;flex-direction:column;justify-content:space-between;font-size:.66em;line-height:1.05;margin:0 3px 0 1px;text-align:left}
.doc .ev{display:inline-flex;align-items:center;vertical-align:middle}.doc .ev>i{font-style:normal;font-size:1.4em;line-height:1}
.doc .bn{display:inline-flex;flex-direction:column;vertical-align:middle;text-align:center;font-size:.8em;line-height:1.1;margin:0 3px;padding:0 5px;position:relative}
.doc .mm{direction:ltr;unicode-bidi:isolate;display:inline-block;max-width:100%}
.doc table.tw,.doc .tb{border-collapse:collapse;margin:6px auto;font-size:14px;text-align:center}
.doc table.tw th,.doc table.tw td,.doc .tb th,.doc .tb td{border:1.2px solid #64748b;padding:3px 10px;background:#fff;color:#0f172a;font-weight:normal}
.doc table.tw th,.doc .tb th{font-weight:700}
.doc table.dt{border-collapse:collapse;margin:5px auto 3px;font-size:14px;direction:rtl}.doc table.dt th,.doc table.dt td{border:1.3px solid #64748b;padding:2px 9px;text-align:center;min-width:34px;height:24px;background:#fff;color:#0f172a}.doc table.dt th{font-weight:700}
.doc svg{max-width:100%;height:auto}
.doc .ans,.doc .ans .m,.doc .m.ans,.doc b.ans{color:#dc2626!important;font-weight:800}
/* answer key */
.doc .akg{columns:2;column-gap:16px}
.doc .ab{break-inside:avoid;border:1.5px solid #38bdf8;border-radius:12px;padding:5px 10px 6px;margin:0 0 8px;background:#fff}
.doc .ab .h{font-weight:800;margin:0 0 2px}
.doc .ab .h small{font-weight:600;color:#64748b;font-size:11.5px;margin-right:6px}
.doc .ab .r{display:flex;gap:6px;align-items:baseline;font-size:14px;margin:1px 0}
.doc .ab .r .l{font-weight:700;flex:none;min-width:22px}
.doc .ab .r .v{color:#dc2626;font-weight:700;min-width:0}
.doc .ab .r .v .m{color:#dc2626;font-weight:700}
/* full solutions: white question, very soft תכלת solution, red finals – nothing else coloured */
.doc .sol{background:#f0f9ff;border-radius:12px;padding:8px 14px 10px;margin:6px 0 0;color:#0f172a}
.doc .sol h3{font-size:16px;margin:10px 0 2px;color:#0f172a;font-weight:800;border:0;padding:0;break-after:avoid}
.doc .sol h3:first-child{margin-top:0}
.doc .sol .c{background:none;border:0;padding:0 0 2px;margin:0}
.doc .sol .st{border:0;padding:0;margin:2px 0;color:#0f172a}
.doc .sol .st>div{margin:2px 0}
.doc .sol .nt{color:#0f172a}
.doc .sol .ln{display:flex;flex-wrap:wrap;align-items:center;gap:2px 12px}
.doc .sol .frm{margin-right:auto;border:1px solid #bae6fd;background:#fff;border-radius:8px;padding:1px 8px;font-size:.84em;line-height:1.5;color:#0f172a;box-shadow:none}
.doc .sol .frm>b{display:block;color:#0f172a;font-size:.92em}
.doc .sol .frm>span{display:block}
.doc .sol .frm .m{color:#0f172a}
.doc .sol .hl{background:none;padding:0}
.doc .sol b{color:#0f172a}
.doc .sol .chk{color:#0f172a;font-weight:700}
.doc .sol .fin{margin:3px 0 2px;font-weight:700}
.doc .sol .qimg,.doc .sol img{display:block;max-width:min(100%,420px);height:auto;margin:6px auto}
.doc .sol .qt{background:#fff;border:1.5px solid #38bdf8;border-radius:10px;padding:6px 10px;margin:6px 0}
.doc .sol .sp{margin:6px 0 4px}
.doc .sol .sp .ph{font-weight:800;display:block;margin:0 0 1px}
.doc .sol .sl{margin:1px 0}
.doc .sol .eq{margin:2px 0;padding:0 12px;text-align:center}
.doc .sol .fa{margin:3px 0 2px;font-weight:700}
.doc .sol .fa .v,.doc .sol .fa .v .m{color:#dc2626;font-weight:800}
.doc .pb{break-before:page}
@media print{
 @page{size:A4;margin:12mm 13mm 13mm 13mm}
 .doc{font-size:14.5px}
 .doc .qw{break-inside:avoid}
 .doc .qw.long{break-inside:auto}
 .doc .qx,.doc .ab{break-inside:avoid}
 .doc .foot{display:none}
 .doc .sol .ln,.doc .sol .st>div,.doc .sol .fin,.doc .sol img,.doc .sol svg,.doc .sol table{break-inside:avoid}
}

.doc .tbw{overflow-x:auto;max-width:100%}
@media print{.doc .tbw{overflow:visible}}

/* vector arrow (472) */
.vc{display:inline-block;position:relative;padding-top:.36em;line-height:1.15}
.vc::before{content:"";position:absolute;top:.16em;left:.04em;right:.3em;border-top:1.6px solid currentColor}
.vc::after{content:"";position:absolute;top:-.02em;right:0;border-style:solid;border-width:.19em 0 .19em .34em;border-color:transparent transparent transparent currentColor}

/* 172 (worker 365b6bae): his wide 6-column tables – tighter cells so they fit 390px */
.doc .tbn th,.doc .tbn td{padding:3px 6px}

/* narrow phones: wide sign tables scroll inside themselves instead of widening the page (worker 235e41b3) */
@media screen and (max-width:520px){.doc .tb,.doc table.tw{display:block;overflow-x:auto;max-width:100%;width:max-content}.doc .tb th,.doc .tb td,.doc table.tw th,.doc table.tw td{padding:2px 5px;font-size:13px}}

@media screen and (max-width:520px){.doc .mm{overflow-x:auto;overflow-y:hidden;vertical-align:bottom;max-width:calc(100vw - 64px)}}

/* standalone bagrut sections (4 Nov): data organisation box + trees */
.doc .sol .setup{background:#fff;border:1.5px solid #38bdf8;border-radius:10px;padding:6px 10px 4px;margin:4px 0 8px}
.doc .trw{text-align:center;margin:4px 0 6px;max-width:100%;overflow-x:auto}
.doc .trw svg{max-width:100%;height:auto}
.doc .qx .gv{display:inline-block;margin:0 0 2px}

.qx .gv *,.gv *{color:inherit!important;font-weight:inherit!important}

.doc .qx svg,.doc .sol svg{max-width:100%!important;height:auto}

/* מתכונת לפי מבנה הבגרות (4 Nov) */
.doc .mch{font-size:16px;font-weight:800;color:#1d4ed8;border-bottom:2px solid #bfdbfe;margin:16px 4px 8px;padding-bottom:3px;break-after:avoid;page-break-after:avoid}
.doc .mnote{font-weight:700;margin:0 0 6px}
.doc .msub{margin:0 0 10px;break-inside:avoid}
.doc .qw.mcomp .qx{break-inside:auto}
