.mapper [hidden]{display:none!important}
.map-skip{position:absolute;top:0;left:12px;z-index:2;padding:12px;background:white;transform:translateY(-110%)}
.map-skip:focus{transform:translateY(0)}
.mapper{display:grid;grid-template-columns:minmax(260px,.83fr) minmax(0,1.17fr);align-items:start;gap:clamp(32px,7vw,108px);padding-block:clamp(42px,7vw,95px) clamp(64px,8vw,110px)}
.map-controls{align-self:center;min-width:0}
.map-title{font-family:var(--display);font-size:clamp(3.4rem,6.3vw,6.6rem);font-weight:800;line-height:.96;letter-spacing:-.065em;margin:0 0 23px}
.map-title span{color:#984b39}
.map-title:focus{outline:none}
.map-intro{font-size:clamp(1.05rem,1.3vw,1.24rem);line-height:1.56;max-width:40ch;margin:0 0 24px}
.choose-panel{border-block:1px solid #d7d0cb;padding:20px 0 16px}
.permission{display:flex;align-items:flex-start;gap:9px;font-size:.98rem;line-height:1.45;cursor:pointer}
.permission input{width:20px;height:20px;flex:none;accent-color:#57364e;margin:1px 0 0}
.map-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:18px}
.map-action{cursor:pointer;min-height:44px}
.map-action:disabled{opacity:.52;cursor:default}
.file-guide,.map-private,.map-note,#status{font-size:.9rem;line-height:1.55;color:#625d65}
.file-guide{margin:10px 0 0}.map-private,.map-note{margin:16px 0}.mapper a{text-underline-offset:.19em}
#status{margin:14px 0 0}#status:empty{display:none}#status.error{color:#8c3225;font-weight:600}
.map-figure{margin:0;align-self:center;min-width:0;border:1px solid #d5ceca;border-radius:14px;overflow:hidden;background:#fbf9f6;box-shadow:0 7px 25px #3627310a}
.photo-stage{display:grid;place-items:center;overflow:hidden;position:relative;aspect-ratio:1.42;isolation:isolate;background:#e8e3de}
.photo-stage>img,.photo-stage>canvas{display:block;width:100%;height:100%;position:absolute;inset:0;object-fit:contain}
.photo-stage>img{object-fit:cover}
.sweep{display:none}
.photo-stage.active .sweep{display:block;position:absolute;inset:0 0 auto;height:2px;background:#fff8ee;box-shadow:0 -5px 14px 3px #f7e7d580;animation:map-sweep 1.8s linear infinite}
@keyframes map-sweep{from{top:0}to{top:100%}}
@media(prefers-reduced-motion:reduce){.photo-stage.active .sweep{display:none}}
.map-caption{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 18px;min-height:53px;font-size:.97rem;font-weight:650}
.map-caption button{font:inherit;font-weight:500;font-size:.88rem;border:1px solid #847380;border-radius:4px;background:transparent;color:#543649;padding:5px 10px;cursor:pointer;min-height:32px}
.map-caption button[aria-pressed=true]{background:#56364d;color:#fff}
#readings{border-top:1px solid #d5ceca}
.reading{border-bottom:1px solid #d5ceca}
.reading button{font:inherit;display:flex;align-items:center;justify-content:space-between;width:100%;min-height:47px;gap:12px;padding:10px 0;background:transparent;color:inherit;border:0;cursor:pointer;text-align:left;font-weight:650}
.reading button span:last-child{font-variant-numeric:tabular-nums;color:#57364d}
.reading button[aria-expanded=true]{color:#57364d}
.reading p{font-size:.95rem;line-height:1.5;margin:0 0 12px;max-width:45ch}
@media(max-width:820px){.mapper{grid-template-columns:1fr;gap:28px}.map-controls,.map-figure{width:100%;max-width:680px;justify-self:center}.map-title{font-size:clamp(3.35rem,9vw,5rem)}.map-figure{grid-row:2}.photo-stage{max-height:420px}.map-intro{max-width:48ch}}
@media(max-width:820px){.mapper[data-state=result]{gap:20px}.mapper[data-state=result] .map-controls{display:contents}.mapper[data-state=result] .map-title{grid-row:1;width:100%;max-width:680px;margin:0;justify-self:center}.mapper[data-state=result] #result-panel{grid-row:3;max-width:680px;width:100%;justify-self:center}}
@media(max-width:400px){.map-actions{gap:8px}.map-action{padding-inline:12px}.map-caption{padding:8px 10px}.map-title{font-size:3.1rem}}
