/* The map transforms; its type and the adjacent reading column never do. */
.mentor-map-layout{display:grid;grid-template-columns:minmax(0,1fr) clamp(263px,26%,340px);align-items:stretch;border-bottom:1px solid var(--mp-rule)}
.mg-pane,.mentor-map-layout>.mentor-figure{display:flex;flex-direction:column;min-width:0;min-height:0;border:0}
.mg-bar{display:flex;justify-content:space-between;align-items:center;gap:6px;padding:0 10px;background:#f4f3e9;border-bottom:1px solid var(--mp-rule)}
.mg-key,.mg-tools>span{font-size:12px;color:#475b54}
.mg-key{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;line-height:1.5}
.mg-key i{width:8px;height:8px;background:#385d49;border:1.5px solid #385d49;border-radius:50%;margin-left:5px}
.mg-key i:nth-child(2){background:#fffdf2}.mg-key i:nth-child(3){background:#fffdf2;border-radius:0;transform:rotate(45deg);border-color:#995531}
.mg-stage{position:relative;isolation:isolate;overflow:hidden;height:clamp(405px,53vh,620px);min-height:0;background-color:#e7eee7;background-image:linear-gradient(#5b83730e 1px,transparent 1px),linear-gradient(90deg,#5b83730e 1px,transparent 1px);background-size:36px 36px;touch-action:none;cursor:grab;user-select:none}
.mg-stage:active{cursor:grabbing}
.mg-stage:focus-visible{outline-offset:-3px!important}
.mg-terrain,.mg-leaders,.mg-pins{position:absolute;pointer-events:none;max-width:none;max-height:none}
.mg-terrain{display:block;user-select:none}
.mg-leaders,.mg-pins{inset:0;width:100%;height:100%;overflow:visible}
.mg-anchor path{fill:none;stroke:#476356;stroke-width:1.2}
.mg-leaders .mg-touch{fill:transparent;pointer-events:all;cursor:pointer}
.mg-anchor circle,.mg-anchor rect{stroke:#294f40;stroke-width:1.6;fill:#385d49}
.mg-anchor[data-kind=reference] circle,.mg-anchor[data-kind=disputed] rect{fill:#fffaf0}
.mg-anchor[data-kind=disputed] rect{stroke:#995531}
.mg-anchor[data-selected=true] :is(path,circle,rect){stroke:#913f1c;stroke-width:2}
.mg-pins :is(.mg-pin,.mg-extra){position:absolute;transform:translateY(-50%);display:inline-flex;align-items:center;gap:5px;pointer-events:auto;color:#233c31;white-space:nowrap;border:1px solid #859a88;border-radius:4px;background:#fffdf2f5;padding:2px 7px 2px 4px;min-height:26px;line-height:1.3;font-size:15px;box-shadow:0 1px 2px #29442e15}
.mg-pins .mg-extra{background:#d6eee6;border-color:#507c71;font-size:13px}
.mg-pins .mg-extra[data-geo-extra="quest-start"]{background:#ffebc5;border-color:#947339}
.mg-pins .mg-extra[hidden]{display:none}
.mg-tight .mg-pins .mg-extra{min-height:18px;line-height:18px;padding-block:0}
.mg-pin b{font:650 12px/1.4 ui-monospace,monospace;color:#4c604e}
.mg-pins .mg-pin[aria-pressed=true]{z-index:1;border-color:#8b4024;color:#fff;background:#894120}
.mg-pin[aria-pressed=true] b{color:#fff3d9}
.mg-pin[data-connected=true][aria-pressed=false]{border-color:var(--mp-rust);color:var(--mp-rust);background:#fff1dc}
.mg-pin[data-visited=true] b{text-decoration:underline double;text-underline-offset:2px}
.mg-tight .mg-pins .mg-pin{min-height:20px;line-height:18px;padding-block:0}
.mg-pins .mg-pin:hover{background:#fff1d4;color:#67381f}
.mg-tools{flex:none;border-top:1px solid var(--mp-rule);border-bottom:0}
.mg-zoom{font-size:12px;color:var(--mp-muted);min-width:3em;text-align:center;font-variant-numeric:tabular-nums}
.mg-bar{flex-wrap:wrap}
.mg-bar .mg-switch{flex:none;min-height:36px;padding:3px 8px;font-size:14px;color:#325547;white-space:nowrap}
.mg-switch[aria-pressed=true]{background:#e0e8dc;text-decoration:underline;text-underline-offset:.3em}
.mg-pane[data-layer]~.mentor-sheet,.mg-transit-reader[hidden],.mg-transit-reader label[hidden]{display:none!important}
.mg-transit-reader{border-left:1px solid var(--mp-rule);min-height:0;min-width:0;padding:14px 16px;overflow:auto;overscroll-behavior:contain;background:var(--mp-paper);max-height:clamp(480px,calc(53vh + 95px),715px)}
.mg-transit-reader label,.mentor-arrival{display:grid;gap:5px;font-size:14px;color:var(--mp-muted)}
.mg-transit-reader select,.mentor-arrival select{max-width:100%;min-height:40px;border:1px solid var(--mp-rule);border-radius:4px;background:var(--mp-paper);color:var(--folio-ink);font:inherit;padding:4px 8px}
.mg-link-detail h3{font:650 22px/1.3 var(--folio-title);margin:18px 0 6px;text-wrap:balance}
.mg-link-detail .mg-method,.mg-link-refs,.mg-link-detail li small,.mg-link-detail li span{font-size:13px;color:var(--mp-muted)}
.mg-link-detail p{font-size:15px;line-height:1.6;margin:8px 0}
.mg-link-detail ol{border-block:1px solid var(--mp-rule);padding:6px 0;list-style:none;margin:12px 0}
.mg-link-detail li{display:grid;grid-template-columns:3.8em 1fr;align-items:baseline;padding:5px 0;line-height:1.5}
.mg-link-detail li span{grid-column:2}
.mg-link-detail li button{text-align:left;justify-self:start;text-decoration:underline;text-underline-offset:3px}
.mg-link-detail li button[aria-pressed=true]{color:var(--mp-rust)}
.mg-link-refs a,.mentor-leg-reading button,.mg-transit-reader .mg-back{color:var(--mp-rust);text-decoration:underline;text-underline-offset:3px}
.mg-transit-reader .mg-back{margin-top:14px;min-height:40px}
.mentor-leg-reading{padding:10px 0;border-top:1px solid var(--mp-rule);font-size:14px}
.mentor-leg-reading p,.mentor-leg-note{font-size:14px;line-height:1.6;margin:5px 0 8px}
.mentor-leg-note{color:var(--mp-muted);max-width:64ch}.mentor-leg-reading button{text-align:left;min-height:36px}
.mentor-arrival{display:flex;align-items:center;flex-wrap:wrap;margin:10px 0 18px}
.is-expanded .mg-transit-reader{max-height:none}
@media(max-width:720px) and (min-height:431px){
 .mg-transit-reader{border:0;border-top:1px solid var(--mp-rule);max-height:325px}
 .mg-bar{padding-inline:4px}.mg-bar .mg-switch{font-size:13px;padding:3px 4px}
}
.mentor-map-layout>.mentor-sheet{display:block;position:static;min-width:0;width:auto;max-width:none;margin:0;padding:12px 16px;background:var(--mp-paper);border:0;border-left:1px solid var(--mp-rule);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;max-height:clamp(490px,calc(53vh + 95px),715px)}
.mentor-map-layout>.mentor-sheet .mentor-stationhead{padding:0;flex-wrap:wrap;gap:3px}
.mentor-map-layout>.mentor-sheet .mentor-identity{gap:10px;margin:12px 0}
.mentor-map-layout>.mentor-sheet .mentor-identity h3{font-size:23px}
.mentor-map-layout>.mentor-sheet .mentor-portraits img{max-height:58px}
.mentor-map-layout>.mentor-sheet .mentor-dismiss,.mentor-viewer:not([data-mode=route]) [data-info]{display:none}
.mg-reading-anchor{padding:9px 0;margin:0 0 9px;border-block:1px solid var(--mp-rule);line-height:1.45}
.mg-reading-anchor small,.mg-reading-anchor b,.mg-reading-anchor span{display:block}
.mg-reading-anchor small{color:#5e6257;font-size:12px}.mg-reading-anchor b{font-size:17px}
.mg-reading-anchor span{font-variant-numeric:tabular-nums;font-size:14px}
.mg-reading-anchor p{margin:6px 0 0;font-size:14px}
.mg-reading-anchor button{display:inline-flex;align-items:center;gap:5px;padding:6px 0;color:var(--mp-rust);text-decoration:underline;text-underline-offset:.2em}
.mentor-map-layout .mentor-canvas.small-print .mentor-hotspots button:not(:focus-visible) span{visibility:hidden}
.mentor-map-layout .mentor-canvas.is-fitted .mentor-hotspots button span{visibility:hidden}
.mentor-map-layout .mentor-canvas.is-fitted .mentor-hotspots button{background:transparent}
.is-expanded>.mentor-map-layout{flex:1;min-height:0}
.is-expanded .mg-stage,.is-expanded .mentor-archive-panel .mentor-viewport{height:0;flex:1 1 0;min-height:0}
.is-expanded .mentor-map-layout>.mentor-sheet{height:100%;max-height:none}
@media(max-width:980px){.mg-key{display:none}.mentor-map-layout{grid-template-columns:minmax(0,1fr) 260px}}
@media(max-width:720px) and (min-height:431px){
 .mentor-map-layout{grid-template-columns:minmax(0,1fr)}
 .mg-stage{height:clamp(345px,55dvh,530px)}
 .mentor-map-layout>.mentor-sheet{max-height:310px;border:0;border-top:1px solid var(--mp-rule);padding:8px 12px 12px}
 .mentor-map-layout>.mentor-sheet .mentor-stationhead button{min-height:28px}
 .mentor-map-layout>.mentor-sheet .mentor-identity{float:left;width:44%;padding-right:10px;align-items:flex-start}
 .mentor-map-layout>.mentor-sheet .mentor-identity h3{font-size:18px}
 .mentor-map-layout>.mentor-sheet .mentor-portraits{min-width:25px}
 .mentor-map-layout>.mentor-sheet .mentor-portraits img{max-width:30px;max-height:43px}
 .mentor-map-layout>.mentor-sheet .mentor-identity p{font-size:13px}
 .mentor-map-layout>.mentor-sheet .mg-reading-anchor{margin:0 0 9px 45%;border-top:0}
 .mentor-map-layout>.mentor-sheet :is(.mentor-place,.mentor-turn){clear:both}
 .is-expanded>.mentor-map-layout{grid-template-rows:minmax(0,1fr) minmax(140px,27%)}
 .is-expanded .mentor-map-layout>.mentor-sheet{height:100%;max-height:none}
 .mentor-viewer .mentor-modebar{gap:2px}
 .mentor-viewer .mentor-modebar button{font-size:14px;padding-inline:6px}
 .mentor-viewer .mentor-modes .icon{display:none}
 .mg-tools>span{max-width:15ch}
 .mg-pins .mg-pin{font-size:14px;padding:2px 5px 2px 3px;gap:3px}
}
@media(max-height:430px){
 .is-expanded .mentor-map-layout{grid-template-columns:minmax(0,1fr) minmax(165px,30%)}
 .is-expanded .mg-pin{font-size:13px;min-height:20px;padding-block:0}
 .is-expanded .mg-key{display:none}
 .is-expanded .mg-tight .mg-pins :is(.mg-pin,.mg-extra){min-height:17px;line-height:15px;padding-block:0}
 .is-expanded .mg-tight .mg-pins b{line-height:14px}
}
@media(max-width:720px) and (min-height:431px) and (max-height:640px){
 .is-expanded[data-mode=terrain]>.mentor-head{display:none}
 .is-expanded>.mentor-geo-panel{grid-template-rows:minmax(0,1fr) minmax(105px,23%)}
}
