/* מדריך המשימות – עמוד גלילה רגיל (המפה נשארת במסך מלא) */
html.guide-root{height:auto;min-height:100%;overflow-y:auto}
html.guide-root body{height:auto;min-height:100%;overflow:visible}
body.guide-page{background:radial-gradient(1200px 500px at 70% -120px,#2a1f3a55,transparent 70%),var(--bg);-webkit-text-size-adjust:100%}
.guide-header{position:sticky;top:0}
.g-progress-pill{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:999px;padding:5px 11px;font-size:12.5px;font-weight:700;color:#cfd2dc;background:#181b24}
.g-progress-pill svg{width:14px;height:14px;stroke:var(--green);fill:none;stroke-width:2.6}
.guide{max-width:920px;margin:0 auto;padding:28px 20px 60px}
.g-kicker{margin:0 0 6px;color:var(--pink);font-size:12.5px;font-weight:800;letter-spacing:.4px}
.g-hero h1{margin:0;font-size:34px;line-height:1.15;font-weight:900;letter-spacing:-.5px}
.g-lead{margin:10px 0 18px;color:#b4b8c5;font-size:15.5px;line-height:1.65;max-width:680px}
.g-overall{display:flex;flex-direction:column;gap:8px;font-size:13px;color:var(--muted)}
.g-overall-row{display:flex;align-items:center;gap:14px}
.g-bar{flex:1;height:8px;border-radius:99px;background:#232733;overflow:hidden;max-width:360px}
.g-bar span{display:block;height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,#c9b9ef,#f48ab9);transition:width .3s}
.g-sync{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0;font-size:13px;color:var(--muted)}
.g-sync svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.9}
.g-sync-synced{color:#9fd6c5}
.g-sync-error,.g-sync-conflict{color:#ffc98a}
.g-sync a{color:var(--pink);font-weight:700;text-decoration:none}
.g-sync a:hover{text-decoration:underline}
/* כרטיסיות פרקים */
.g-tabs{position:sticky;top:82px;z-index:20;display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:26px -20px 0;padding:12px 20px;background:linear-gradient(var(--bg) 78%,transparent)}
.g-tabs::-webkit-scrollbar{display:none}
.g-tab{flex:none;display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:132px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:#171a23;color:#cfd2dc;text-align:right;font:inherit}
.g-tab>svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.9;margin-bottom:2px}
.g-tab-num{font-size:11.5px;color:var(--muted);font-weight:700}
.g-tab-title{font-size:14px;font-weight:800;white-space:nowrap}
.g-tab-count{font-size:11.5px;color:var(--green);font-weight:700;direction:ltr}
.g-tab:hover:not(:disabled){border-color:#4a4f60}
.g-tab.on{border-color:var(--pink);background:#24192a;box-shadow:inset 0 0 0 1px #f48ab944}
.g-tab.on .g-tab-num{color:var(--pink)}
.g-tab.is-locked{opacity:.45;cursor:default;min-width:96px}
/* כותרת פרק */
.g-chapter{margin-top:10px}
.g-ch-head{padding:22px 22px 18px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(160deg,#1c1f2a,#161922)}
.g-ch-head h2{margin:0;font-size:27px;font-weight:900;line-height:1.2}
.g-en{display:inline-block;margin-inline-start:8px;font-size:15px;font-weight:700;color:var(--muted)}
.g-ch-head>p.g-ch-summary{margin:10px 0 14px;color:#c0c4cf;line-height:1.7;font-size:15px}
.g-chips{display:flex;flex-wrap:wrap;gap:8px}
.g-chips>span{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;background:#232733;font-size:12.5px;color:#cfd2dc}
.g-chips svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:2}
.g-chips .g-ch-who{background:none;padding:0;gap:6px}
.g-ch-progress{display:flex;align-items:center;gap:12px;margin-top:14px;font-size:12.5px;color:var(--muted)}
.g-note{display:flex;gap:9px;align-items:flex-start;margin:14px 0 0;padding:11px 13px;border-radius:10px;background:#2b2433;color:#e9d7ea;font-size:13.5px;line-height:1.6}
.g-note svg{flex:none;width:17px;height:17px;margin-top:2px;stroke:#f4b3d2;fill:none;stroke-width:2}
/* סרגל כלים */
.g-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:18px 0 12px}
.g-filter{display:flex;padding:3px;border:1px solid var(--line);border-radius:10px;background:#161922}
.g-filter button{padding:7px 13px;border-radius:7px;font-size:13px;font-weight:700;color:#aeb2bf}
.g-filter button.on{background:#2a2e3b;color:#fff}
.g-hide{display:flex;align-items:center;gap:7px;font-size:13px;color:#c2c6d1;cursor:pointer}
.g-hide input{accent-color:var(--pink);width:16px;height:16px}
.g-search{position:relative;flex:1;min-width:200px;display:flex;align-items:center}
.g-search svg{position:absolute;right:11px;width:16px;height:16px;stroke:var(--muted);fill:none;stroke-width:2}
.g-search input{width:100%;height:38px;padding:0 36px 0 12px;border:1px solid var(--line);border-radius:10px;background:#161922;color:var(--text);font:inherit;font-size:14px}
.g-search input:focus{outline:2px solid #f48ab966;border-color:transparent}
/* כרטיסי משימה */
.g-list{display:flex;flex-direction:column;gap:8px}
.g-mission{border:1px solid var(--line);border-radius:13px;background:#171a23;scroll-margin-top:170px;transition:border-color .2s}
.g-mission[open]{border-color:#3c4051;background:#191c26}
.g-mission.is-optional{background:#15171f}
.g-mission summary{display:flex;align-items:center;gap:12px;padding:12px 14px;cursor:pointer;list-style:none;min-height:60px}
.g-mission summary::-webkit-details-marker{display:none}
.g-done{flex:none;width:30px;height:30px;padding:0;justify-content:center;border:2px solid #474c5c;border-radius:9px;background:transparent}
.g-done svg{width:16px;height:16px;stroke:transparent;fill:none;stroke-width:3}
.g-done:hover{border-color:var(--green)}
.is-done .g-done{background:var(--green);border-color:var(--green)}
.is-done .g-done svg{stroke:#10221c}
.g-num{flex:none;width:30px;text-align:center;font-size:13px;font-weight:800;color:var(--muted);direction:ltr}
.g-names{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.g-names strong{font-size:15.5px;font-weight:800;text-align:right;unicode-bidi:isolate}
.g-names span{font-size:13px;color:#9aa0af}
.is-done .g-names strong{color:#9aa0af;text-decoration:line-through;text-decoration-color:#80cbb488}
.g-meta{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px;max-width:46%}
.g-badge,.g-who{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:999px;font-size:11.5px;font-weight:700;white-space:nowrap}
.g-badge svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2.2}
.g-main{background:#2a2433;color:#f4b3d2}
.g-opt{background:#20262b;color:#9fd6c5}
.g-miss{background:#3a2a17;color:#ffc98a}
.g-pnr{background:#3b1d24;color:#ff9aa8}
.g-who{background:#232733;color:#c9ccd6}
.g-who-jason{box-shadow:inset 0 0 0 1px #7fb0ff55}
.g-who-lucia{box-shadow:inset 0 0 0 1px #f48ab966}
.g-chev{flex:none;width:18px;height:18px;stroke:var(--muted);fill:none;stroke-width:2;transition:transform .2s}
.g-mission[open] .g-chev{transform:rotate(180deg)}
.g-body{padding:2px 18px 18px 18px;border-top:1px solid #262a35;margin:0 14px}
.g-goal{margin:14px 0 8px;font-size:15.5px;line-height:1.7;color:#e7e8ee}
.g-start{display:flex;align-items:center;gap:6px;margin:0 0 6px;font-size:13px;color:#aeb2bf}
.g-start svg{width:14px;height:14px;stroke:var(--pink);fill:none;stroke-width:2}
.g-start span{color:var(--muted)}
.g-sec{margin-top:16px}
.g-sec h4{display:flex;align-items:center;gap:7px;margin:0 0 8px;font-size:13.5px;font-weight:800;color:#dfe1e8}
.g-sec h4 svg{width:16px;height:16px;fill:none;stroke-width:2;stroke:var(--pink)}
.g-sec ol,.g-sec ul{margin:0;padding-inline-start:22px;display:flex;flex-direction:column;gap:6px;font-size:14.5px;line-height:1.65;color:#cfd2dc}
.g-steps ol{list-style:none;padding:0;counter-reset:step}
.g-steps ol li{position:relative;padding-inline-start:34px;counter-increment:step;min-height:24px}
.g-steps ol li:before{content:counter(step);position:absolute;inset-inline-start:0;top:1px;width:24px;height:24px;border-radius:50%;background:#2a2433;color:var(--pink);font-size:12.5px;font-weight:800;display:flex;align-items:center;justify-content:center}
.g-tips{padding:12px 14px;border-radius:11px;background:#1d2420}
.g-tips h4 svg{stroke:#9fd6c5}
.g-tips ul{list-style:none;padding:0}
.g-tips li{position:relative;padding-inline-start:16px}
.g-tips li:before{content:'';position:absolute;inset-inline-start:0;top:.7em;width:6px;height:6px;border-radius:50%;background:#80cbb4}
.g-missables{padding:12px 14px;border-radius:11px;background:#272015}
.g-missables h4 svg{stroke:#ffc98a}
.g-code-grid,.g-choice-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:8px}
.g-code{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;background:#20232e;border:1px dashed #444a5c;font-size:13px;color:#b9bdc9}
.g-code strong{font:800 18px/1 ui-monospace,Menlo,Consolas,monospace;letter-spacing:2px;color:#fff}
.g-choice{padding:12px;border-radius:11px;background:#20232e;border:1px solid #333847}
.g-choice-tag{font-size:11px;font-weight:800;color:var(--pink)}
.g-choice strong{display:block;margin:3px 0 4px;font-size:14.5px}
.g-choice p{margin:0;font-size:13.5px;line-height:1.6;color:#b9bdc9}
.g-maplinks{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.g-maplinks a,.g-extra a{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;border:1px solid #3a3f50;color:#e9e9ef;text-decoration:none;font-size:13px;font-weight:700}
.g-maplinks a:hover,.g-extra a:hover{border-color:var(--pink);color:var(--pink)}
.g-maplinks svg,.g-extra a svg{width:14px;height:14px;stroke:var(--pink);fill:none;stroke-width:2}
.g-empty{padding:30px;text-align:center;color:var(--muted)}
/* לפני שעוברים פרק */
.g-before{margin-top:24px;padding:20px 22px;border:1px solid var(--line);border-radius:16px;background:#161922}
.g-before h3{display:flex;align-items:center;gap:8px;margin:0 0 12px;font-size:18px;font-weight:900}
.g-before h3 svg{width:19px;height:19px;stroke:var(--pink);fill:none;stroke-width:2}
.g-checklist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
.g-checklist li{display:flex;align-items:flex-start;gap:10px;font-size:14.5px;line-height:1.55;color:#cfd2dc}
.g-check{flex:none;width:22px;height:22px;padding:0;justify-content:center;border:2px solid #474c5c;border-radius:6px}
.g-check svg{width:13px;height:13px;stroke:transparent;fill:none;stroke-width:3}
.g-check.on{background:var(--green);border-color:var(--green)}
.g-check.on svg{stroke:#10221c}
.g-extra{margin-top:18px}
.g-extra h4{margin:0 0 8px;font-size:14.5px;font-weight:800}
.g-extra ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.g-extra li{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;padding:9px 12px;border-radius:10px;background:#1c1f29;font-size:13.5px;color:#b9bdc9}
.g-extra li strong{color:#fff;font-size:14px}
.g-extra li span{flex:1;min-width:180px}
.g-extra a{padding:4px 10px;font-size:12px}
/* טיפים */
.g-tip-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;margin-top:14px}
.g-tip{padding:18px;border:1px solid var(--line);border-radius:14px;background:#171a23}
.g-tip-ic{width:30px;height:30px;padding:6px;border-radius:9px;background:#2a2433;stroke:var(--pink);fill:none;stroke-width:2}
.g-tip h3{margin:12px 0 6px;font-size:16px;font-weight:800}
.g-tip p{margin:0;font-size:14px;line-height:1.65;color:#b9bdc9}
.g-cta{margin-top:18px;display:flex;justify-content:center}
.g-cta button{padding:12px 22px;border-radius:12px;background:var(--pink);color:#2a0f1d;font-size:15px;font-weight:900}
.g-foot{margin-top:40px;padding-top:18px;border-top:1px solid var(--line);font-size:12.5px;line-height:1.7;color:#7f8595}
.g-foot p{margin:0 0 6px}
@media(max-width:760px){
 .guide-header{position:sticky}
 .guide{padding:20px 14px 48px}
 .g-hero h1{font-size:27px}
 .g-lead{font-size:14.5px}
 .g-tabs{top:var(--mobile-header-height);margin:20px -14px 0;padding:10px 14px}
 .g-tab{min-width:118px;padding:9px 12px}
 .g-ch-head{padding:18px 16px}
 .g-ch-head h2{font-size:23px}
 .g-en{display:block;margin:4px 0 0;text-align:right}
 .g-toolbar{gap:10px}
 .g-search{flex-basis:100%}
 .g-mission summary{flex-wrap:wrap;gap:10px;padding:12px}
 .g-names{flex-basis:calc(100% - 110px)}
 .g-meta{max-width:none;flex-basis:100%;justify-content:flex-start;padding-inline-start:80px}
 .g-chev{position:absolute;left:14px}
 .g-mission summary{position:relative}
 .g-body{margin:0 10px;padding:2px 6px 16px}
 .g-before{padding:16px}
 .g-progress-pill{padding:4px 9px;font-size:12px}
}

/* v24 עיצוב: פס דמות, משימות אופציונליות מקובצות, רצועת תמונה */
.g-mission{position:relative}
.g-mission:before{content:'';position:absolute;inset-block:12px;inset-inline-start:-1px;width:3px;border-radius:3px;background:transparent}
.g-mission.who-jason:before{background:#7fb0ff}
.g-mission.who-lucia:before{background:#f48ab9}
.g-mission.who-both:before{background:linear-gradient(#7fb0ff,#f48ab9)}
.g-opt-group{margin-inline-start:34px}
.g-opt-group>summary{display:flex;align-items:center;gap:8px;width:max-content;max-width:100%;padding:7px 12px;border:1px dashed #3a3f50;border-radius:999px;cursor:pointer;list-style:none;font-size:12.5px;font-weight:700;color:#9fd6c5}
.g-opt-group>summary::-webkit-details-marker{display:none}
.g-opt-group>summary small{color:var(--muted);font-weight:600;direction:ltr}
.g-opt-group>summary .g-chev{width:15px;height:15px;stroke:#9fd6c5}
.g-opt-group[open]>summary .g-chev{transform:rotate(180deg)}
.g-opt-group>summary:hover{border-color:#80cbb4}
.g-opt-list{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.g-mission.is-optional summary{min-height:52px;padding:10px 12px}
.g-mission.is-optional .g-names strong{font-size:14.5px}
.g-photo{position:relative;display:block;max-width:420px;margin:14px 0 4px;border-radius:12px;overflow:hidden;aspect-ratio:16/9;background:#20232e;text-decoration:none}
.g-photo img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .4s}
.g-photo:hover img{transform:scale(1.03)}
.g-photo-cap{position:absolute;inset-inline:0;bottom:0;display:flex;justify-content:space-between;align-items:flex-end;gap:10px;padding:26px 12px 9px;background:linear-gradient(transparent,#000000c7);color:#fff;font-size:13px;font-weight:800}
.g-photo-cap small{font-size:11px;font-weight:500;color:#d7d9e1}
@media(max-width:760px){
 .guide{padding-top:16px}
 .g-kicker{font-size:11.5px;margin-bottom:4px}
 .g-hero h1{font-size:24px}
 .g-lead{font-size:14px;line-height:1.55;margin:6px 0 12px}
 .g-overall{gap:6px;font-size:12px}
 .g-sync{font-size:12px}
 .g-tabs{margin-top:14px;gap:6px}
 .g-tab.is-locked{display:none}
 .g-tab{flex:1;min-width:0;padding:8px 10px}
 .g-tab-title{font-size:12.5px;max-width:100%;overflow:hidden;text-overflow:ellipsis}
 .g-opt-group{margin-inline-start:18px}
 .g-photo{max-width:none}
}
.g-more{display:none;padding:0;margin:-8px 0 12px;font-size:13px;font-weight:800;color:var(--pink)}
@media(max-width:760px){
 .g-ch-head{padding:14px 14px 12px}
 .g-ch-head>.g-kicker{display:none}
 .g-ch-head h2{font-size:20px}
 .g-en{display:inline-block;margin:0 6px 0 0;font-size:13px}
 .g-ch-head>p.g-ch-summary{margin:6px 0 4px;font-size:14px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .g-ch-head.expanded>p.g-ch-summary{display:block}
 .g-more{display:inline-block;margin:0 0 10px}
 .g-chip-count{display:none!important}
 .g-chips{gap:6px}
 .g-chips>span{padding:4px 9px;font-size:12px}
 .g-ch-progress{margin-top:10px}
 .g-note{margin-top:10px;padding:9px 11px;font-size:12.5px}
 .g-toolbar{margin:12px 0 10px;gap:8px 12px}
 .g-tab-title{white-space:normal;line-height:1.25;font-size:12px}
 .g-hero .g-lead{display:none}
}

/* v26 start-point map link */
.g-start{flex-wrap:wrap}
.g-start-map{margin-inline-start:auto;display:inline-flex;align-items:center;gap:5px;padding:5px 12px;border-radius:999px;background:#f48ab9;color:#1b1420!important;font-size:12.5px;font-weight:800;text-decoration:none!important;white-space:nowrap}
.g-start-map:hover{background:#f7a6ca}
