body.in-history main,body.in-history>.topbar,body.in-history #toast{display:none!important}
#history-tour{--ht-accent:#733e3d;--paper:#f6f0de;--dark:#282923;position:fixed;inset:0;z-index:22;color:var(--paper);pointer-events:none;font-family:Ease,"Helvetica Neue",Arial,sans-serif}
#history-tour[hidden],#history-tour [hidden]{display:none!important}
#history-tour::before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(23,29,24,.49),transparent 21%,transparent 72%,rgba(20,25,21,.62))}
#history-tour button,#history-tour a{pointer-events:auto;font:inherit;cursor:pointer}
#history-tour button{border:1px solid #ffffff66;border-radius:24px;background:#282b26e8;color:var(--paper);padding:10px 17px;min-height:42px}
#history-tour button:hover,#history-tour button:focus-visible{background:#494a3d}
#history-tour button:focus-visible,#history-tour a:focus-visible{outline:3px solid #f4c887;outline-offset:3px}
.ht-top{position:absolute;top:max(18px,env(safe-area-inset-top));left:clamp(12px,3vw,46px);right:clamp(12px,3vw,46px);display:flex;justify-content:space-between;align-items:center}
.ht-brand{display:flex;gap:14px;align-items:center;background:var(--paper);color:var(--dark);padding:9px 18px 9px 12px;border-radius:4px;box-shadow:0 3px 16px #28251e25}
.ht-brand img{width:85px;height:32px;object-fit:contain}.ht-brand span{border-left:1px solid #9b8c72;padding-left:14px;font-size:13px}
.ht-caption{position:absolute;top:clamp(78px,14vh,145px);left:clamp(15px,3vw,48px);padding:15px 20px 16px;max-width:min(330px,36vw);background:linear-gradient(105deg,#202720eb,#262d25d9);border-left:3px solid #dbb57f;box-shadow:0 4px 23px #2222;border-radius:0 5px 5px 0}
.ht-caption small,.ht-paper>small{display:block;font-size:11px;letter-spacing:.065em;line-height:1.45}
.ht-caption h1,.ht-paper h2{font-family:Georgia,"Times New Roman",serif;font-weight:normal;letter-spacing:-.035em}
.ht-caption h1{margin:4px 0 7px;font-size:clamp(28px,3.3vw,54px);line-height:1.03;color:inherit}
.ht-caption p{font-size:14px;line-height:1.46;margin:0}
.ht-bottom{position:absolute;bottom:max(14px,env(safe-area-inset-bottom));left:clamp(12px,3vw,46px);right:clamp(12px,3vw,46px);display:flex;align-items:end;justify-content:space-between;gap:20px}
.ht-distance,.ht-controls,.ht-steps{display:flex;align-items:center;gap:8px}
.ht-distance{background:#232920ee;border:1px solid #ffffff65;border-radius:23px;padding:0 12px 0 0}
#history-tour #ht-chapters{border:none;background:transparent;padding-right:4px}
.ht-line{position:relative;width:clamp(55px,10vw,136px);height:2px;background:linear-gradient(to right,#eac394 var(--at),#8a8878 var(--at));margin:0 6px}
.ht-line i{position:absolute;height:5px;width:5px;background:#a6a38f;top:50%;transform:translate(-50%,-50%);border-radius:100%}
.ht-line i.here{background:#ebc9a0;height:8px;width:8px}.ht-distance output{font-size:12px;min-width:34px;text-align:right;font-variant-numeric:tabular-nums}
.ht-controls{position:relative}.ht-controls small{position:absolute;white-space:nowrap;right:0;bottom:calc(100% + 6px);text-shadow:0 1px 5px #000,0 1px 8px #000;font-size:11px}
#history-tour .ht-steps button{width:42px;padding:0;touch-action:none;user-select:none;-webkit-user-select:none}
#history-tour #ht-auto[aria-pressed=true]{background:var(--paper);color:var(--dark)}
#history-tour #ht-object{position:absolute;left:50%;bottom:18%;transform:translateX(-50%);background:var(--paper);color:#342e23;box-shadow:0 6px 25px #211e1a50;border:1px solid #a8936f;white-space:nowrap}
.ht-paper{pointer-events:auto;background:var(--paper);color:var(--dark);border-top:4px solid var(--ht-accent);box-shadow:0 8px 39px #0d151954;border-radius:3px;position:absolute;padding:clamp(17px,2vw,32px);width:min(370px,35vw);max-height:70%;overflow:auto}
#ht-detail{right:clamp(14px,3vw,45px);bottom:clamp(34px,9vh,100px)}
.ht-paper h2{margin:0 0 12px;font-size:clamp(24px,2.4vw,40px);line-height:1.1}.ht-paper>small{color:#68513d;margin-bottom:6px}
.ht-paper p{font-size:15px;line-height:1.52;margin:0 0 13px}.ht-paper a{display:block;color:#5f402d;font-size:13px;margin:0 0 16px;text-decoration:underline}
#ht-menu{left:clamp(12px,3vw,46px);bottom:calc(max(14px,env(safe-area-inset-bottom)) + 53px);width:min(390px,calc(100% - 24px));max-height:62svh}
#ht-menu>div{display:grid;grid-template-columns:1fr 1fr;gap:7px}
#history-tour #ht-menu button{text-align:left;border-radius:3px;background:transparent;color:#282923;border:1px solid #b3a791;padding:9px}
#history-tour #ht-menu button[aria-current=location]{background:var(--ht-accent);color:white}#ht-menu strong,#ht-menu small{display:block}#ht-menu small{font-size:10px;margin-top:3px}
#history-tour.observing .ht-bottom,#history-tour.observing .ht-caption,#history-tour.listing #ht-object{display:none}
#ht-loading{position:absolute;top:48%;left:50%;transform:translate(-50%,-50%);background:var(--paper);color:var(--dark);padding:16px 26px;border-radius:5px;text-align:center}
@media(max-width:740px){
.ht-brand{gap:9px;padding:6px 10px}.ht-brand img{width:62px;height:27px}.ht-brand span{font-size:11px;padding-left:9px}.ht-top{top:max(10px,env(safe-area-inset-top))}
.ht-caption{top:66px;max-width:min(365px,calc(100% - 36px));padding:9px 12px}.ht-caption h1{font-size:29px;margin:2px 0 5px}.ht-caption p{font-size:12px}.ht-caption small{font-size:10px}
.ht-bottom{display:grid;grid-template-columns:1fr;gap:7px;justify-items:center}.ht-controls{grid-row:1}.ht-controls small{display:none}.ht-distance{gap:5px}.ht-line{width:85px}
#history-tour #ht-object{bottom:calc(max(14px,env(safe-area-inset-bottom)) + 103px);font-size:13px;max-width:95%;white-space:normal}
#ht-detail{right:12px;left:12px;bottom:max(8px,env(safe-area-inset-bottom));width:auto;max-height:35svh;padding:11px 15px}.ht-paper h2{font-size:25px;margin:1px 0 5px}.ht-paper p{font-size:13px;line-height:1.35;margin-bottom:6px}.ht-paper a{margin-bottom:7px;font-size:12px}
#history-tour #ht-back{min-height:36px;padding:6px 14px;font-size:13px}#history-tour.listing .ht-controls{visibility:hidden}
}
@media(max-height:510px) and (min-aspect-ratio:1/1){.ht-caption{top:57px;max-width:235px;padding:8px 12px}.ht-caption h1{font-size:25px}.ht-caption p{display:none}.ht-bottom{display:flex}.ht-controls small{display:none}#ht-detail{top:62px;bottom:auto;left:auto;right:12px;width:34vw;max-height:72svh}#ht-menu{bottom:58px;max-height:65svh}#ht-menu button{padding:4px 6px}#history-tour #ht-object{bottom:61px}}


#history-tour{font-weight:400}
.ht-caption p,.ht-paper p{font-family:"Helvetica Neue",Arial,sans-serif;font-weight:400}
#history-tour button,#history-tour a,.ht-brand span{font-weight:500}
#history-tour:not([hidden])::after{content:"";position:absolute;inset:0;background:#29261f;pointer-events:none;animation:ht-enter .85s ease-out forwards}
@keyframes ht-enter{from{opacity:.90}to{opacity:0}}
@media(prefers-reduced-motion:reduce){#history-tour:not([hidden])::after{display:none}}
