/* TorahSphere Puzzles: Map Quest */
.tsp-mq{--mq-line:#c9ccd1;--mq-accent:#1f3a5f;--mq-accent2:#1f4e79;--mq-g:#2e7d32;--mq-guess:#c8642a;max-width:1180px;margin:1em auto;line-height:1.55}
.tsp-mq [hidden],.mq-mbar[hidden]{display:none!important}
.tsp-mq .mq-top{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:18px}
.tsp-mq .mq-title{font-family:"Frank Ruhl Libre",serif;font-weight:500;font-size:1.9rem;line-height:1.15;margin:0}
.tsp-mq .mq-lead{margin:6px 0 0;max-width:640px}
.tsp-mq .mq-links{margin:8px 0 0;font-size:.95em}
.tsp-mq .mq-seg{display:inline-flex;border:1px solid var(--mq-line);border-radius:999px;padding:3px;background:#fff}
.tsp-mq .mq-seg button{font:inherit;min-height:42px;padding:0 20px;border:0;border-radius:999px;background:transparent;font-weight:600;color:inherit;cursor:pointer}
.tsp-mq .mq-seg button.on{background:#22201c;color:#fff}
.tsp-mq .mq-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);grid-template-areas:"map card";gap:24px;align-items:start}
.tsp-mq .mq-mapbox{grid-area:map;background:#fff;border:1px solid #e3ddcf;border-radius:16px;padding:12px}
.tsp-mq .mq-card{grid-area:card;background:#fff;border:1px solid #e3ddcf;border-radius:16px;padding:20px 22px;position:sticky;top:16px}
.tsp-mq svg.mq-map{display:block;width:100%;height:auto;border-radius:10px;touch-action:manipulation;cursor:crosshair}
.tsp-mq svg.mq-map.mq-easy{cursor:default}
.tsp-mq .mq-legend{display:flex;flex-wrap:wrap;gap:6px 16px;margin:10px 4px 2px;font-size:14px;color:#5f5f5f}
.tsp-mq .mq-legend span{display:inline-flex;align-items:center;gap:6px}
.tsp-mq .mq-legend i{width:12px;height:12px;border-radius:50%;display:inline-block;box-sizing:border-box}
.tsp-mq .mq-bar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.tsp-mq .mq-pill{font-size:14px;font-weight:700;color:var(--mq-accent);background:#e8eef5;padding:3px 12px;border-radius:999px}
.tsp-mq .mq-timer{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--mq-line);border-radius:999px;padding:2px 12px;font-weight:700;font-variant-numeric:tabular-nums;font-size:16px}
.tsp-mq .mq-score{font-size:16px;color:#5f5f5f}.tsp-mq .mq-score b{color:#22201c;font-size:20px}
.tsp-mq .mq-dots{display:flex;gap:6px;margin:14px 0 4px}
.tsp-mq .mq-dots i{flex:1;height:7px;border-radius:4px;background:#e3ddcf}
.tsp-mq .mq-dots i.cur{background:#22201c}.tsp-mq .mq-dots i.full{background:var(--mq-g)}.tsp-mq .mq-dots i.part{background:var(--mq-guess)}.tsp-mq .mq-dots i.zero{background:#b8b0a0}
.tsp-mq .mq-q{font-family:"Frank Ruhl Libre",serif;font-weight:500;font-size:1.6rem;line-height:1.25;margin:12px 0 6px}
.tsp-mq .mq-help{color:#5f5f5f;font-size:16px;margin:0}
.tsp-mq .mq-reveal{border-top:1px solid #ece6d8;margin-top:14px;padding-top:14px}
.tsp-mq .mq-verdict{font-size:19px;font-weight:700;margin:0}.tsp-mq .mq-verdict span{color:var(--mq-g)}
.tsp-mq .mq-place{font-family:"Frank Ruhl Libre",serif;font-size:22px;font-weight:500;margin:4px 0 2px}
.tsp-mq .mq-tag{display:inline-block;font-size:13px;font-weight:700;border-radius:999px;padding:1px 10px;margin:2px 0 6px}
.tsp-mq .mq-tag.approx{background:#fff1cc;color:#7a5600}.tsp-mq .mq-tag.trad{background:#e3e9fb;color:#2b3f7a}.tsp-mq .mq-tag.sure{background:#dff0df;color:#245c27}
.tsp-mq .mq-note{margin:4px 0 8px;font-size:17px}
.mq-btn{font:inherit;display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 22px;border-radius:999px;border:2px solid #1f3a5f;background:#1f3a5f;color:#fff;font-weight:700;cursor:pointer;text-decoration:none}
.mq-btn.mq-ghost{background:transparent;color:#1f3a5f}
.mq-btn[disabled]{opacity:.45;cursor:not-allowed}
.tsp-mq .mq-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:12px}
.tsp-mq .mq-small,.mq-mbar .mq-small{font-size:14px;color:#5f5f5f}
.tsp-mq .mq-end h3{font-family:"Frank Ruhl Libre",serif;font-weight:500;font-size:1.8rem;margin:.4em 0 0}
.tsp-mq .mq-big{font-family:"Frank Ruhl Libre",serif;font-size:58px;font-weight:700;line-height:1;margin:10px 0 2px}
.tsp-mq .mq-big small{font-size:24px;color:#5f5f5f;font-weight:500}
.tsp-mq .mq-rows{margin:12px 0}
.tsp-mq .mq-row{display:flex;justify-content:space-between;gap:10px;border-bottom:1px dashed #e0d9c8;padding:6px 0;font-size:16px}
.tsp-mq .mq-km{color:#5f5f5f;font-size:14px;margin-left:6px}
.tsp-mq .mq-learn{margin-top:16px;background:#eef2f7;border-radius:14px;padding:14px 18px}
.tsp-mq .mq-learn p{margin:0 0 4px;font-size:13px;letter-spacing:1px;text-transform:uppercase;color:var(--mq-accent);font-weight:700}
.tsp-mq .mq-learn a{display:block;margin:2px 0}
.tsp-mq details.mq-how{margin-top:16px;border-top:1px solid #ece6d8;padding-top:10px;font-size:16px}
.tsp-mq details.mq-how summary{cursor:pointer;font-weight:700}
.tsp-mq .mq-archive h3{font-family:"Frank Ruhl Libre",serif;font-weight:500;font-size:1.6rem;margin:40px 0 10px}
.tsp-mq .mq-agrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.tsp-mq .mq-atile{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border:2px solid var(--mq-line);border-radius:10px;background:#fff;color:inherit!important;text-decoration:none!important;min-height:44px}
.tsp-mq .mq-atile.cur{border-color:var(--mq-accent2)}
.tsp-mq .mq-atile .d{font-size:13px;color:#5f5f5f;font-weight:600}.tsp-mq .mq-atile .p{font-weight:800}.tsp-mq .mq-atile .l{font-size:14px}
.tsp-mq .mq-atile .s{margin-top:4px;align-self:flex-start;font-size:13px;font-weight:800;padding:0 10px;border-radius:999px;background:var(--mq-accent);color:#fff}
.tsp-mq .mq-atile.cur .s,.tsp-mq .mq-atile.done .s{background:var(--mq-g)}
.tsp-mq .mq-spot{cursor:pointer}
.tsp-mq .mq-spot:focus-visible circle.ring{stroke:#000;stroke-width:3}
.tsp-mq button:focus-visible,.tsp-mq a:focus-visible,.mq-mbar button:focus-visible{outline:3px solid var(--mq-accent2);outline-offset:2px}
@keyframes mqdrop{0%{transform:translateY(-14px);opacity:0}100%{transform:none;opacity:1}}
.tsp-mq .mq-drop{animation:mqdrop .25s ease-out}
.mq-mbar{display:none}
@media (max-width:600px){.tsp-mq svg.mq-map text.c{font-size:19px}.tsp-mq svg.mq-map text.m{font-size:17px}.tsp-mq svg.mq-map text.w{font-size:18px}.tsp-mq svg.mq-map text.r{font-size:17px;letter-spacing:2px}.tsp-mq svg.mq-map circle.cd{r:5.5}}
@media (max-width:860px){
 .tsp-mq .mq-layout{grid-template-columns:1fr;grid-template-areas:"card" "map"}
 .tsp-mq .mq-card{position:static}
 .tsp-mq .mq-mapbox{margin:0 -16px;border-radius:0;border-left:0;border-right:0;padding:6px 0}
 .tsp-mq svg.mq-map{border-radius:0}
 .tsp-mq .mq-title{font-size:1.6rem}.tsp-mq .mq-q{font-size:1.4rem}
 .mq-mbar:not([hidden]){display:flex;position:fixed;left:0;right:0;bottom:0;z-index:9999;align-items:center;justify-content:space-between;gap:10px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e3ddcf;box-shadow:0 -4px 14px rgba(0,0,0,.08)}
}
.tsp-mq .mq-preview{background:#fff8e1;border:1px solid #f0d98a;border-radius:10px;padding:8px 14px;font-size:15px;font-weight:700;margin:0 0 14px}

/* 1.2.3: clearer Easy choices */
.tsp-mq .mq-legend:not(.mq-easy) .mq-lg-pick{display:none}
.tsp-mq svg.mq-map.mq-easy circle.cd{opacity:.4}
.tsp-mq svg.mq-map.mq-easy text.c{opacity:.55}
.tsp-mq .mq-spot .halo{transform-box:fill-box;transform-origin:center;animation:mqpulse 1.8s ease-in-out infinite}
.tsp-mq .mq-spot:hover circle.ring,.tsp-mq .mq-spot:focus-visible circle.ring{fill:#f5c02e}
@keyframes mqpulse{0%,100%{transform:scale(.85);opacity:.95}50%{transform:scale(1.2);opacity:.35}}
@media (prefers-reduced-motion:reduce){.tsp-mq .mq-spot .halo{animation:none}}
