/* מצב "מבחן במבנה משרד התחבורה" (12.10.2026, תצוגה מקדימה). t1 העתק מדויק של מסך המבחן, t2 נקי, t3 צבעי סי-סקול */
.mot{--font:Arial,"Segoe UI",Tahoma,sans-serif;--ink:#1f1f1f;--accent:#1e6fc8;--accent2:#1d4f9a;--headBg:linear-gradient(#f4f7fa 0%,#e4ebf2 60%,#d6e0ea 100%);--headLine:#b9c6d4;
  --tab:linear-gradient(#3ba0f0,#1f78d1 55%,#1766bd);--tabFold:#0f4f96;--box:#1e5fb3;--btn:linear-gradient(#45a7f2,#1f7ed6 55%,#1a6dc2);--btnLine:#1764b4;--btnR:999px;
  --ansOnBg:transparent;--ansOnLine:transparent;--dot:#222;--rowA:#e9edf2;--pageBg:#fff;--sideBg:#fff}
.mot.t2{--font:"Open Sans",system-ui,sans-serif;--ink:#1d2433;--accent:#1f6fd1;--accent2:#16469a;--headBg:#f3f6fb;--headLine:#dde4ee;--tab:#1f6fd1;--tabFold:#16469a;--box:#1f6fd1;--btn:#1f6fd1;--btnLine:#1f6fd1;--btnR:8px;--ansOnBg:#eef4fd;--ansOnLine:#1f6fd1;--dot:#1f6fd1;--rowA:#f3f6fb}
.mot.t3{--font:"Open Sans",system-ui,sans-serif;--ink:#1d2433;--accent:#20409A;--accent2:#16234d;--headBg:#EDF2F9;--headLine:#d6dfec;--tab:#16234d;--tabFold:#0b1430;--box:#F2612D;--btn:#F2612D;--btnLine:#F2612D;--btnR:8px;--ansOnBg:#FFF4EE;--ansOnLine:#F2612D;--dot:#F2612D;--rowA:#F4F7FC}
.mot{margin:0;background:var(--pageBg);color:var(--ink);font-family:var(--font);direction:rtl;font-size:16px}
.mot *{box-sizing:border-box}
.mot [hidden]{display:none!important}

/* הכותרת העליונה */
.mot-head{display:flex;align-items:center;gap:34px;padding:8px 22px 10px;background:var(--headBg);border-bottom:1px solid var(--headLine);min-height:84px}
.mh-brand{display:flex;align-items:center;gap:12px;flex:1}
.mh-paper{width:64px;height:64px;flex:0 0 64px;filter:drop-shadow(1px 2px 1px rgba(0,0,0,.18))}
.mh-brand small{display:block;font-size:14px;font-weight:700;color:var(--accent)}
.mh-brand b{display:block;font-size:20px;color:var(--accent2);margin-top:2px}
.mh-who,.mh-time{display:flex;align-items:center;gap:10px;font-size:14.5px;line-height:1.55}
.mh-who svg{width:30px;height:30px;fill:var(--accent2)}
.mh-who b{font-weight:700}.mh-who span{color:var(--accent)}
.mh-time svg{width:34px;height:34px}
.mh-time b{font-variant-numeric:tabular-nums;font-weight:400}
.mh-prog{width:230px;height:18px;background:#f0f2f5;border:1px solid #9aa6b5;margin-top:4px;direction:ltr}
.mh-prog i{display:block;height:100%;width:0;background:linear-gradient(#5aa9ec,#1f6fc8)}
.mh-finish{height:30px;padding:0 22px;border:1px solid #9aa7b8;border-radius:3px;background:linear-gradient(#fff,#e2e7ee);color:var(--accent);font:13px var(--font);cursor:pointer;margin-inline-start:auto}

/* אזור המבחן */
.mot-main{display:flex;gap:30px;padding:22px 24px 16px;max-width:1500px;margin:0 auto}
.mot-side{flex:0 0 240px;position:sticky;top:14px;align-self:flex-start;background:var(--sideBg);border:1px solid #c7cfd9;border-radius:14px;box-shadow:-6px 4px 10px rgba(30,45,70,.18);padding:10px 0;direction:ltr}
.mot-list{direction:ltr;max-height:calc(100vh - 170px);overflow-y:auto;overflow-x:visible;border-top:1px solid #dde3ea;border-bottom:1px solid #dde3ea;padding:4px 0}
.mot-list button{direction:rtl;position:relative;display:flex;align-items:center;gap:12px;width:100%;border:0;background:none;text-align:right;padding:8px 18px 8px 10px;font:15px var(--font);color:#2b2b2b;cursor:pointer}
.mot-list button i{flex:0 0 14px;height:14px;border:2px solid var(--box);box-shadow:inset 0 0 0 2px #fff;background:#fff}
.mot-list button.done i{background:var(--box)}
.mot-list button span{flex:1}
.mot-list button em{font-style:normal;font-size:16px;color:#fff}
.mot-list button.on{color:#fff;font-weight:700;background:var(--tab);margin-left:-16px;width:calc(100% + 16px);padding-left:26px;box-shadow:0 2px 4px rgba(0,0,0,.25);z-index:1}
.mot-list button.on i{display:none}
.mot-list button.on:before{content:"";position:absolute;left:0;bottom:-8px;border-top:8px solid var(--tabFold);border-left:16px solid transparent}
.mot-q{flex:1;min-width:0;display:flex;flex-direction:column;min-height:calc(100vh - 150px)}
.mot-q h1{font-size:17px;margin:2px 0 0}
.mot-q #qtext{font-size:16.5px;line-height:1.6;margin:4px 0 0}
.mot-body{display:flex;gap:40px;align-items:flex-start;margin-top:22px;flex:1}
.mot-ans{flex:1;display:flex;flex-direction:column;gap:12px;padding-top:30px}
.mot-ans button{display:flex;gap:10px;align-items:flex-start;text-align:right;border:1px solid transparent;background:none;border-radius:4px;padding:4px 6px;font:16px/1.5 var(--font);color:var(--ink);cursor:pointer}
.t2 .mot-ans button,.t3 .mot-ans button{border-color:#e3e9f2;padding:8px 10px;border-radius:6px}
.mot-ans button i{flex:0 0 16px;height:16px;margin-top:3px;border-radius:50%;border:1.5px solid #6a6a6a;box-shadow:inset 0 0 0 3px #fff;background:#fff}
.mot-ans button.on{background:var(--ansOnBg);border-color:var(--ansOnLine)}.mot-ans button.on i{background:var(--dot)}
.mot-img{margin:0;flex:0 0 380px;display:flex;justify-content:center}
.mot-img img{max-width:380px;max-height:380px;object-fit:contain}
.mot-foot{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #c9d1db;padding:18px 0 4px;margin-top:16px}
.mot-nav{display:inline-flex;align-items:center;gap:10px;height:42px;padding:0 24px;border:1px solid var(--btnLine);border-radius:var(--btnR);background:var(--btn);color:#fff;font:700 16px var(--font);cursor:pointer;box-shadow:0 2px 3px rgba(0,0,0,.25)}
.mot-nav svg{width:22px;height:22px;fill:#fff}
.mot-mid{padding:0 34px}.mot-mid svg{width:26px;height:26px}
.mot-nav:disabled{opacity:.45;cursor:default}

/* חלונות ותוצאות */
.mot-dlg,.mot-phone{position:fixed;inset:0;background:rgba(10,20,40,.45);display:flex;align-items:center;justify-content:center;padding:16px;z-index:20}
.mot-dlg>div,.mot-phone>div{width:420px;max-width:100%;background:#fff;border-radius:8px;padding:22px;display:flex;flex-direction:column;gap:12px;text-align:center}
.mot-dlg b,.mot-phone b{font-size:20px}.mot-dlg p,.mot-phone p{margin:0;line-height:1.6}.mot-dlg>div>div{display:flex;gap:10px;justify-content:center}
.btn-p,.btn-g{display:inline-flex;align-items:center;justify-content:center;height:40px;padding:0 22px;border:0;border-radius:4px;color:#fff;font:700 15px var(--font);cursor:pointer;text-decoration:none}
.btn-p{background:var(--btn)}.btn-g{background:#6b7280}
.mot-res{padding:24px;display:flex;justify-content:center}
.res-box{width:min(1120px,100%);border:2px solid #7fa7a5;background:#fff;padding:18px 24px;display:flex;flex-direction:column;gap:14px}
.res-top{display:flex;flex-direction:column;align-items:center;gap:6px}.res-top img{width:130px;height:38px;object-fit:contain}.res-top h2{margin:0;font-size:24px;color:var(--accent)}
.res-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;font-size:15px;line-height:1.9;border-bottom:1px solid #ccc;padding-bottom:10px}
.res-grid span{color:var(--accent)}#rpass{font-size:24px}#rpass.ok{color:#1b7a3c}#rpass.bad{color:#c62828}
.res-head,.res-rows>div{display:grid;grid-template-columns:90px 1.3fr 1fr 1fr;gap:12px;padding:8px}
.res-head{font-size:15px;color:var(--accent);border-bottom:1px solid #bbb}
.res-rows>div{font-size:14px;line-height:1.45;border-bottom:1px solid #d5d9df}.res-rows>div:nth-child(odd){background:var(--rowA)}
.res-rows b{color:#d32f2f}.res-rows .none{display:block;text-align:center;padding:14px}
.res-note{font-size:13px;color:#555;margin:0}.res-btns{display:flex;gap:12px;justify-content:center}
@media print{.res-btns{display:none}.mot-res{padding:0}}
@media (max-width:900px){.mot-main{flex-direction:column}.mot-side{position:static;flex-basis:auto;width:100%}.mot-list{max-height:160px}.mot-body{flex-direction:column-reverse}.mot-img{flex-basis:auto;width:100%}.mot-head{flex-wrap:wrap;gap:12px}.res-grid{grid-template-columns:1fr 1fr}.res-head,.res-rows>div{grid-template-columns:60px 1fr}}
/* הלשונית הכחולה של השאלה הנוכחית יוצאת מחוץ לסרגל, כמו במקור: המסגרת מצוירת 18px פנימה, והרשימה תופסת גם את הרצועה שבחוץ */
.mot-side{flex-basis:258px;border:0;background:transparent;box-shadow:none;padding:10px 0;position:sticky}
.mot-side:before{content:"";position:absolute;top:0;bottom:0;right:0;left:18px;border:1px solid #c7cfd9;border-radius:14px;background:var(--sideBg);box-shadow:-6px 4px 10px rgba(30,45,70,.18)}
.mot-list{position:relative;z-index:1;border:0;margin-left:0}
.mot-list:before,.mot-list:after{content:"";display:block;height:0;border-top:1px solid #dde3ea;margin-left:18px}
.mot-list button{margin-left:18px;width:calc(100% - 18px)}
.mot-list button.on{margin-left:0;width:100%;padding-left:30px}
@media (max-width:900px){.mot-side{flex-basis:auto}}
/* סבב 2: בלי קווים מעל השאלה הראשונה ומתחת לאחרונה, טקסט מודגש ב"סיום בחינה" */
.mot-list:before,.mot-list:after{display:none!important}
.mh-finish{font-weight:700}
.mot-mid{cursor:default;pointer-events:none}

/* מפת השאלות (הבעלים 17.11.2026, כמו באפליקציה) - באתר החדש בלבד: סינון, סימון לבדיקה, ואחרי ההגשה נכון / שגוי */
.mot-tabs{display:flex;gap:6px;padding:0 18px 8px 10px;direction:rtl;position:relative;z-index:1}
.mot-tabs button{flex:1;border:1px solid #c7cfd9;background:#fff;border-radius:8px;padding:6px 4px;font:13px var(--font);color:#2b2b2b;cursor:pointer}
.mot-tabs button.on{background:var(--tab);border-color:var(--tab);color:#fff;font-weight:700}
.mot-list button.flag span:after{content:"";display:inline-block;width:9px;height:9px;margin-right:8px;border-radius:50%;background:#e2a400;vertical-align:middle}
.mot-list button.ok i{background:#2e8b57;border-color:#2e8b57}.mot-list button.bad i{background:#c0392b;border-color:#c0392b}
.mot-empty{direction:rtl;margin:10px 18px;color:#5b6675;font:14px var(--font)}
.mot-q{position:relative}
.mot-q .mot-flag{position:absolute;top:0;left:0;width:auto;height:auto;margin:0;display:inline-flex;align-items:center;border:1px solid #c7cfd9;background:#fff;border-radius:8px;padding:6px 14px;font:14px var(--font);color:#2b2b2b;cursor:pointer;box-shadow:none}
.mot-review .mh-time{visibility:hidden}
.mot-q .mot-flag[aria-pressed="true"]{border-color:#e2a400;background:#fff6dc}
.mot-ans button.ok{border-color:#2e8b57;background:#e8f5ec}.mot-ans button.bad{border-color:#c0392b;background:#fbe9e7}
.mot-ans button[disabled]{cursor:default}
.res-map{margin:14px 0}.res-map b{display:block;margin-bottom:8px}
#rmap{display:flex;flex-wrap:wrap;gap:6px}
#rmap button{width:40px;height:40px;border-radius:8px;border:0;font:700 15px var(--font);color:#fff;cursor:pointer}
#rmap button.ok{background:#2e8b57}#rmap button.bad{background:#c0392b}
@media print{.res-map{display:none}}

