.bsm{--map-ink:#283c36;--map-teal:#244e4b;--map-line:#cdc8b6;display:grid;min-width:0;width:100%;overflow:hidden;color:var(--map-ink);background:#fcf9ef;border:1px solid var(--map-line);border-radius:12px;text-align:left;box-sizing:border-box}
.bsm [hidden]{display:none!important}
.bsm-toolbar,.bsm-switch,.bsm-controls,.bsm-legend{display:flex;align-items:center}
.bsm-toolbar{justify-content:space-between;gap:8px;flex-wrap:wrap;padding:9px 12px;background:#f5f1e5;border-bottom:1px solid var(--map-line)}
.bsm-switch{padding:2px;border:1px solid #bdbda9;border-radius:8px;background:#e9e8d9}
.bsm-controls{gap:4px}
.bsm button{font:inherit;cursor:pointer;box-shadow:none}
.bsm-choice,.bsm-control,.bsm-close{min-height:34px;padding:5px 10px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--map-ink);font:600 .8rem/1.25 system-ui,sans-serif!important;letter-spacing:0}
.bsm-choice[aria-pressed=true]{color:#fffdf1;background:var(--map-teal)}
.bsm-choice:hover,.bsm-control:hover,.bsm-close:hover{border-color:#889b8e}
.bsm-control{min-width:34px;border-color:#c3c4b0;background:#fdfbf3}
.bsm-control:disabled{opacity:.36;cursor:default}
.bsm-level{min-width:3em;color:#4c5c50;text-align:center;font:600 .76rem/1.1 system-ui,sans-serif;font-variant-numeric:tabular-nums}
.bsm-stage{position:relative;isolation:isolate;display:grid;place-items:center;width:100%;aspect-ratio:720/418;max-height:min(82svh,900px);overflow:hidden;background:#d1c8ad;touch-action:pan-y;outline-offset:-3px}
.bsm-stage.bsm-can-pan{cursor:grab;touch-action:none}
.bsm-stage.bsm-can-pan:active{cursor:grabbing}
.bsm-stage .bsm-svg{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:100%;max-height:100%;user-select:none}
/* Annotations sit directly over the terrain. Their type and symbols retain a consistent screen size at every camera zoom. */
.bsm-status{z-index:1;padding:1rem;text-align:center;color:#364e45;background:#fbf8ed;border-radius:.4rem;font-size:.9rem}
.bsm-mark{cursor:pointer;outline:none}
.bsm-badge-paper{fill:#fff9e8;fill-opacity:.94;stroke:#9a8b6e;stroke-width:.7}
.bsm-type{fill:#203b37;font-family:system-ui,sans-serif;font-weight:650;pointer-events:none}
.bsm-pin-rim{fill:#fff4d4;stroke:#6c342c;stroke-width:1.6}
.bsm-pin-core{fill:#883c2d}
.bsm-hit{pointer-events:all}
.bsm-svg [data-position=region] .bsm-type,.bsm-svg [data-position=landform] .bsm-type{fill:#473a22;font-family:Georgia,serif;font-weight:700}
.bsm-svg [data-position=region] .bsm-badge-paper{fill:#fff3cf;stroke:#96835c;fill-opacity:.89}
.bsm-svg [data-position=water] .bsm-type{fill:#194e5a;font-family:Georgia,serif;font-weight:600;font-style:italic}
.bsm-svg [data-position=water] .bsm-badge-paper{fill:#eef7f1;fill-opacity:.87;stroke:#70999b}
.bsm-mark:is(:hover,:focus-visible,.bsm-mark-active) .bsm-badge{visibility:visible}
.bsm-mark:is(:hover,:focus-visible,.bsm-mark-active) .bsm-badge-paper{fill:#243f3c;fill-opacity:1;stroke:#fff5dc;stroke-width:1.4}
.bsm-mark:is(:hover,:focus-visible,.bsm-mark-active) .bsm-type{fill:#fff7e2}
.bsm-mark:is(:hover,:focus-visible,.bsm-mark-active) .bsm-pin-rim{stroke:#763a2d;stroke-width:2.4;fill:#f5c17a}
.bsm-mark:focus-visible{outline:none}
.bsm-region-area{fill:#ad873b;fill-opacity:.035;stroke:#796748;stroke-width:.7;stroke-dasharray:3 5;stroke-opacity:.38;vector-effect:non-scaling-stroke;cursor:pointer}
.bsm-region-area[data-area-kind=water]{fill-opacity:0;stroke-opacity:0}
.bsm-region-area:hover{fill-opacity:.12;stroke-opacity:.8}
.bsm-geographic-route{stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.bsm-route-hit{stroke:transparent;stroke-width:13;pointer-events:stroke;cursor:pointer;outline:none}
.bsm-route-hit:is(:hover,:focus-visible){stroke:#9a542d;stroke-opacity:.26}
.bsm-route-outline{stroke-opacity:.86;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.bsm[data-mode=terrain] .bsm-svg [data-layer=live]{display:none}
.bsm-trace{display:flex;gap:.4rem .6rem;align-items:center;flex-wrap:wrap;background:#fff9e9;padding:9px 13px;border-top:1px solid var(--map-line)}
.bsm-trace-toggle{min-height:35px;padding:6px 12px;border-radius:6px;border:1px solid var(--map-teal);background:var(--map-teal);color:#fff9ed;font:650 .82rem/1.2 system-ui,sans-serif!important}
.bsm-trace-caption{color:var(--map-teal);font:600 .78rem/1.4 system-ui,sans-serif}
.bsm-trace-ink{stroke-width:3.2;stroke-linecap:round;vector-effect:non-scaling-stroke;pointer-events:none;display:none}
.bsm-tracing .bsm-trace-ink{display:block}
.bsm-tracing path[data-route-leg]{opacity:.42}
.bsm-tracing path.bsm-current-leg{opacity:.85}
.bsm-tracer{fill:#fff7d7;stroke:#8e412b;stroke-width:2.5;vector-effect:non-scaling-stroke;pointer-events:none}
.bsm-legend{flex-wrap:wrap;gap:9px 18px;padding:8px 14px;border-block:1px solid var(--map-line);background:#f4f2e6;color:#495548;font:550 .77rem/1.3 system-ui,sans-serif}
.bsm-symbol{display:inline-flex;align-items:center;gap:7px}
.bsm-symbol:before{content:"";display:block}
.bsm-place-symbol:before{width:7px;height:7px;border:1.5px solid #964b32;outline:1px solid #c9a780;outline-offset:1.5px;border-radius:50%;background:#964b32}
.bsm-route-symbol:before,.bsm-region-symbol:before{width:14px;height:8px;border:1px dashed #8b7755;border-radius:50%;background:#f2dfb0}
.bsm-schematic-symbol:before{width:7px;height:7px;transform:rotate(45deg);border:1px solid #985137;background:#f0d2a1}
.bsm-return-symbol:before{width:19px;height:0;border-top:2px dashed #a76041}
.bsm-region-symbol:before{width:14px;height:8px;border:1px dashed #8b7755;border-radius:50%;background:#f2dfb0}
.bsm-schematic-symbol:before{width:7px;height:7px;transform:rotate(45deg);border:1px solid #985137;background:#f0d2a1}
.bsm-return-symbol:before{border-color:#345f61}
.bsm-detail{padding:14px 17px 16px;background:#f9efd9;border-left:4px solid #ab623d}
.bsm-detail-top{display:flex;justify-content:space-between;align-items:center;gap:.5rem}
.bsm-entry-name{font:700 1.16rem/1.28 Georgia,serif;color:#302f24}
.bsm-close{font-size:1.2rem!important;min-height:30px;padding:1px 8px}
.bsm-entry-text,.bsm-notes{font-size:.92rem!important;line-height:1.52!important;color:#414c40;margin:.4rem 0!important}
.bsm-registration-note{margin:.4rem 0;color:#66543f;font:italic .85rem/1.45 Georgia,serif}
.bsm-ref{font-size:.84rem;font-weight:650;color:#824734}
.bsm-key,.bsm-source{border:0;margin:0;padding:0;background:#fbf9ef}
.bsm-source{border-top:1px solid var(--map-line)}
.bsm-summary{font:650 .85rem/1.3 system-ui,sans-serif;cursor:pointer;color:#354d43;padding:12px 15px}
.bsm-keys{display:flex;flex-wrap:wrap;gap:6px;padding:0 13px 13px}
.bsm-entry{display:inline-flex;align-items:center;gap:7px;border:1px solid #c6c8b4;border-radius:7px;padding:5px 9px;min-height:35px;background:#fffdf5;color:#334439;font:550 .82rem/1.26 system-ui,sans-serif!important;text-align:left}
.bsm-entry:hover,.bsm-entry[aria-pressed=true]{border-color:#9f603c;background:#f4e8cc}
.bsm-num{display:grid;place-items:center;width:1.3rem;height:1.3rem;flex:0 0 1.3rem;border-radius:50%;background:#37615a;color:white;font:650 .72rem/1 system-ui,sans-serif}
.bsm-context-num{background:#ede9dc;color:#615c48;border:1px solid #c2b99e}
.bsm-source>.bsm-notes,.bsm-source>.bsm-credits{margin:0!important;padding:0 15px 12px}
.bsm-credits{display:flex;gap:6px 14px;flex-wrap:wrap;font-size:.79rem}
.bsm a{color:#31595b}
.bsm :focus-visible{outline:2px solid #145f66;outline-offset:2px}
.bsm-stage:focus-visible{outline-offset:-3px}
.bsm-place-credit{display:inline-block;font-size:.79rem;margin-inline-start:.7rem}
.bsm-index-link{display:block;width:fit-content;margin-top:.55rem;padding-block:.18rem;font:600 .82rem/1.4 system-ui,sans-serif;text-underline-offset:.2em}
@media(max-width:650px){.bsm-toolbar{padding:6px 8px;gap:4px}.bsm-choice,.bsm-control{min-height:36px;padding-inline:7px}.bsm-control{min-width:32px}.bsm-level{min-width:2.7em}.bsm-key .bsm-summary{padding-block:12px}.bsm-legend{gap:7px 13px;padding-inline:10px}.bsm-keys{gap:5px;padding:0 9px 10px}.bsm-entry{min-height:38px}.bsm-entry-name{font-size:1.1rem}}
@media(prefers-reduced-motion:reduce){.bsm-mark *{transition:none!important}}
@media print{.bsm-toolbar,.bsm-close{display:none!important}.bsm{break-inside:avoid}.bsm-source>.bsm-credits{display:block}}
.bsm-enlarged{width:min(1120px,96vw);max-width:96vw;max-height:94dvh;padding:0;overflow:auto;border:0;border-radius:12px;background:#f8f4e8;box-shadow:0 18px 90px #121f1e77}
.bsm-enlarged::backdrop{background:#172722ae}
.bsm-enlarged .bsm-toolbar{position:sticky;top:0;z-index:2}
.bsm-enlarged .bsm-stage{min-height:min(50dvh,540px)}
@media(max-width:650px){.bsm-enlarged{width:100vw;max-width:100vw;border-radius:0}.bsm-enlarged .bsm-stage{min-height:0}.bsm-choice,.bsm-control{padding-inline:6px}.bsm-toolbar{row-gap:6px}}
