/* System serif fonts keep the experience independent of remote font services. */
body:before{content:'';position:fixed;inset:0 auto 0 0;width:350px;background:linear-gradient(90deg,#eff1e9 0%,#eff1e9ee 72%,#eff1e900);pointer-events:none;z-index:2}
@media(max-width:800px){body:before{width:185px;background:linear-gradient(90deg,#eff1e9c9,#eff1e900)}#places button{gap:5px}#places button span{white-space:nowrap;font-size:10px}#places button small{font-size:8px;white-space:nowrap}#places{width:165px!important}}
:root{font-family:Arial,"Microsoft YaHei",sans-serif;color:#253c36;background:#eff1e9;font-synthesis:none}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,select,label{font:inherit}button{cursor:pointer;color:inherit;border:0;background:none}button:hover{color:#a96b36}button:focus-visible,a:focus-visible,label:focus-within{outline:2px solid #bd8051;outline-offset:4px}#scene,#labels{position:fixed;inset:0}#labels{pointer-events:none}.maplabel{position:absolute;border:1px solid #ccd7c6;background:#f8f8eeeF;border-radius:3px;padding:7px 11px;white-space:nowrap;font-size:12px;pointer-events:auto;box-shadow:0 3px 16px #203c3612;transform:translate(-50%,-120%)}.maplabel:after{content:'';position:absolute;width:5px;height:5px;background:#b57949;bottom:-8px;left:50%;border-radius:50%}.maplabel.active{background:#254b42;color:white}header{position:fixed;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;padding:27px 38px;z-index:4}.brand{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none;letter-spacing:3px;font-size:18px}.seal{border:1px solid #43644d;padding:5px 7px;font-family:serif;font-size:25px}.brand small{display:block;font-size:8px;letter-spacing:2px;margin-top:6px}.topmeta{font-size:12px;letter-spacing:2px}.topmeta span{margin-left:25px;font-size:10px;color:#7d8e83}header>button{font-size:12px;border-bottom:1px solid #aeb9aa;padding:10px 0}.intro{position:fixed;left:40px;top:135px;width:250px;z-index:3}.eyebrow{font-size:10px;letter-spacing:2.3px;color:#7b8c7d}h1{font:600 66px 'Noto Serif SC',serif;letter-spacing:7px;margin:14px 0 14px}p.subtitle{font-size:13px;letter-spacing:1.2px;color:#566a5d}.rule{height:1px;background:#c6cfbe;width:36px;margin:26px 0}.description{font-size:12px;color:#819080;line-height:2}.facts{display:flex;gap:28px;margin:26px 0 33px}.facts strong{font-size:25px;font-weight:400}.facts strong span{font-size:10px}.facts small{display:block;font-size:10px;color:#849181;margin-top:7px}.places-title{display:flex;justify-content:space-between;margin-bottom:12px}.places-title span{font-size:9px;letter-spacing:0}#places button{display:flex;width:100%;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid #cdd6c65c;font-size:12px}#places button small{color:#899886;font-size:10px}#places button.active{color:#a77448}.memory{margin-top:24px}.memory p{font-size:11px;line-height:1.6;color:#7c8d7d}.upload{cursor:pointer;display:inline-flex;align-items:center;background:#315347;color:#fff;border-radius:4px;padding:11px 17px;font-size:11px;letter-spacing:.4px}.upload:hover{background:#456b58}.upload.secondary{padding:8px 11px;border:1px solid #c5d0bd;background:transparent;color:#4e6957}.upload input{display:none}#mediaList{display:flex;gap:5px;max-width:250px;overflow:auto;margin-top:8px}#mediaList button{font-size:10px;background:#dce4d4;padding:6px;white-space:nowrap}.viewbar{position:fixed;right:35px;top:45%;display:flex;flex-direction:column;gap:8px;background:#f8f9f0d9;border:1px solid #d7dfce;padding:8px;border-radius:7px;z-index:4}.viewbar button{width:40px;height:48px;font-size:23px}.viewbar span{display:block;font-size:9px;margin-top:3px}.viewbar button.active{background:#dce5d5;border-radius:4px}.compass{position:fixed;right:48px;top:140px;display:flex;flex-direction:column;align-items:center;font-size:23px;color:#5f7b64}.compass small{font-size:10px;margin-top:6px}#north{display:block}.terrain-note{position:fixed;left:39%;top:120px;font-size:10px;color:#78907c;letter-spacing:1px}.terrain-note i{display:inline-block;width:6px;height:6px;background:#70956d;border-radius:50%;margin-right:7px}.terrain-note span{margin-left:25px;color:#92a08f}.terrain-note button{padding:0}.journey{position:fixed;bottom:59px;left:50%;transform:translateX(-35%);width:min(650px,55vw);padding:21px 25px 13px;border:1px solid #d8dfd0;background:#fbfcf4ee;box-shadow:0 12px 60px #35503c0c;border-radius:8px;z-index:4;backdrop-filter:blur(12px)}.journey-head{display:flex;justify-content:space-between;align-items:center}.journey h2{font-size:15px;font-weight:400;letter-spacing:1px;margin:7px 0 0}.journey .eyebrow{font-size:8px}.playrow{display:flex;gap:16px;align-items:center;margin-top:19px}#play{background:#315347;color:white;width:33px;height:33px;border-radius:50%;font-size:11px;flex:none}button:disabled{opacity:.35;cursor:default}.timeline{flex:1}.timeline input{width:100%;accent-color:#547b58;height:3px;cursor:pointer}.timeline>div{display:flex;justify-content:space-between;font-size:9px;color:#8c9987;margin-top:7px}select{border:1px solid #d8dfd0;background:transparent;padding:6px;font-size:10px;color:#5c725e;border-radius:4px}.journey-foot{margin-top:18px;padding-top:10px;border-top:1px solid #e6eade;display:flex;justify-content:space-between;font-size:9px;color:#98a48f}.journey-foot button{font-size:10px;color:#6c866b}footer{position:fixed;bottom:20px;left:40px;right:40px;color:#89977f;font-size:9px;display:flex;justify-content:space-between}#status{position:fixed;top:85px;left:50%;transform:translateX(-50%);padding:10px 20px;border-radius:4px;background:#315347;color:#fff;font-size:12px;z-index:10;transition:opacity .5s}dialog{border:1px solid #cfd8c3;border-radius:10px;background:#f6f8ee;color:#334e40;padding:34px;max-width:600px;width:90%;max-height:85vh;box-shadow:0 20px 100px #122c4a30}dialog::backdrop{background:#17382866;backdrop-filter:blur(5px)}dialog h2{font-family:'Noto Serif SC',serif;font-size:25px}dialog h3{font-size:14px;margin-top:25px}dialog p{font-size:12px;line-height:1.9;color:#6e806a}dialog a{color:#446c50}.close{position:absolute;right:16px;top:12px;font-size:24px}#mediaView img,#mediaView video{width:100%;max-height:55vh;object-fit:contain}.gallery-controls{display:flex;justify-content:space-between;align-items:center;font-size:11px;margin-top:20px}@media(max-height:850px){.intro{top:112px}h1{font-size:53px;margin:10px 0}.rule{margin:17px 0}.facts{margin:17px 0 23px}.description{display:none}.memory{margin-top:18px}#places button{padding:8px 0}}@media(max-width:800px){header{padding:20px}.topmeta{display:none}.intro{left:20px;top:100px;width:180px}h1{font-size:42px}.facts,.description,.rule,.memory,.places-title{display:none}.subtitle{max-width:170px;line-height:1.8}#places{margin-top:20px;width:135px;background:#f0f3e6ba;padding:6px 10px;border-radius:5px}.journey{bottom:55px;left:15px;transform:none;width:calc(100% - 30px);padding:17px}.journey h2{font-size:12px}.journey-foot{font-size:8px}.terrain-note{left:20px;top:auto;bottom:250px}.terrain-note span{margin-left:12px}.viewbar{right:15px;top:220px}.compass{right:29px;top:118px}footer{left:20px;right:20px;font-size:8px}footer span{display:none}.maplabel{font-size:10px;padding:5px}.timeline>div{font-size:8px}.journey .upload{padding:10px}.memory.mobile{display:block} }

body.nightmode{color:#d5e1cf}body.nightmode:before{background:linear-gradient(90deg,#12292e,#12292ee8 72%,#12292e00)}body.nightmode .subtitle,body.nightmode .memory p,body.nightmode #places button small{color:#b0c1a6}body.nightmode .eyebrow,body.nightmode footer,body.nightmode .description{color:#9eb39a}.maplabel,.journey,.viewbar{color:#253c36}.journey-head>div{min-width:0}.journey h2{max-width:360px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.journey-head .upload{flex:none;margin-left:12px}#places{max-height:240px;overflow:auto}.intro{max-height:calc(100vh - 155px);overflow:auto;scrollbar-width:thin}.journey-foot span{line-height:1.5}@media(max-width:800px){.journey h2{max-width:200px}.intro{max-height:calc(100vh - 350px)}}

#checkpoints{width:100%;margin-top:12px;padding:9px;max-width:250px;text-overflow:ellipsis}.nightmode #checkpoints{color:#afc1a1}.nightmode #checkpoints option{color:#253c36}@media(max-width:800px){#checkpoints{width:165px;background:#f6f8ee;color:#253c36;font-size:9px;margin-top:7px}.intro{max-height:calc(100vh - 310px)}}

/* Cultural guide and seasonal atlas. The underlying terrain remains the same DEM. */
[hidden]{display:none!important}.viewbar{top:27%;gap:3px}.viewbar button{height:43px}.story-panel,.season-panel{position:fixed;top:112px;right:94px;bottom:275px;width:360px;max-width:calc(100vw - 430px);overflow:auto;z-index:7;padding:22px 24px;border:1px solid #cfdbcd;border-radius:10px;background:#f7f9f1f2;box-shadow:0 18px 70px #17382d29;backdrop-filter:blur(18px);scrollbar-width:thin}.season-panel{z-index:6}.panel-head{display:flex;justify-content:space-between;gap:10px;align-items:start}.panel-head h2{font:500 23px 'Noto Serif SC',serif;letter-spacing:1px;margin:7px 0 14px}.panel-head button{font-size:24px;line-height:1;color:#6f8173}.guide-lead{font-size:13px;color:#526a59;line-height:1.8;margin:0 0 13px}.story-panel h3{font-size:11px;letter-spacing:2px;color:#866541;margin:15px 0 5px}.story-panel p,.season-panel p{font-size:11px;line-height:1.8;color:#627264}.guide-badge{display:inline-block;font-size:11px;padding:5px 9px;border-radius:3px;background:#dce7d6;color:#315649}.history-row{display:grid;grid-template-columns:72px 1fr;gap:10px;border-top:1px solid #dce4d8;padding:12px 0;font-size:11px;line-height:1.6;color:#607063}.history-row strong{font-weight:600;color:#3b594b}.guide-meta{display:flex;flex-wrap:wrap;gap:8px 14px;border-top:1px solid #dce4d8;padding-top:12px;font-size:10px;color:#7d8b7c}.guide-meta a{color:#426652}.model-note{border-left:2px solid #bd9870;padding-left:10px}.season-options{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:3px 0 14px}.season-options button{padding:8px;border:1px solid #d4dfd1;border-radius:4px;font-size:12px}.season-options button.active{color:white;background:#315347;border-color:#315347}.season-figure{margin:0}.season-figure img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:5px;display:block}.season-figure figcaption{display:flex;flex-direction:column;gap:4px;margin-top:9px;font-size:11px;color:#536a58}.season-figure figcaption span{font-size:9px;color:#849184}.nightmode .story-panel,.nightmode .season-panel{background:#182f32f2;color:#e0e9dd;border-color:#496259}.nightmode .story-panel p,.nightmode .season-panel p,.nightmode .guide-lead,.nightmode .history-row{color:#bdcfbd}.nightmode .history-row,.nightmode .guide-meta{border-color:#496259}.nightmode .history-row strong{color:#d7e7d2}.nightmode .guide-badge{background:#36544c;color:#e2eddb}.nightmode .season-options button{border-color:#5b786b}.nightmode .season-options button.active{background:#769a70}.nightmode .guide-meta a{color:#c2dfba}
@media(max-height:850px){.story-panel,.season-panel{top:95px;bottom:255px}.viewbar{top:24%}}@media(max-width:1000px){.story-panel,.season-panel{right:77px;width:330px;max-width:calc(100vw - 370px)}}@media(max-width:800px){.viewbar{right:12px;top:195px;padding:5px}.viewbar button{width:38px;height:38px;font-size:19px}.viewbar span{font-size:8px}.story-panel,.season-panel{left:14px;right:59px;width:auto;max-width:none;top:96px;bottom:258px;padding:17px}.panel-head h2{font-size:19px}.story-panel p,.season-panel p{font-size:10px}.maplabel{z-index:1}}@media(max-height:620px){.story-panel,.season-panel{bottom:170px}.journey{bottom:25px}.viewbar{top:115px}}
.temple-focus{display:block;width:100%;padding:9px 11px;margin:8px 0 15px;border-radius:4px;background:#315347;color:#fff;text-align:left;font-size:11px;letter-spacing:.3px}.temple-focus:hover{background:#456b58;color:#fff}

/* Elevation atlas: calm map labels stay legible over the terrain. */
#contourLabels{position:fixed;inset:0;pointer-events:none;z-index:2}.contour-label{position:absolute;display:none;transform:translate(-50%,-50%);padding:2px 5px;border:1px solid #a9b9a8;border-radius:3px;background:#f7f9eddf;color:#35564e;font-size:9px;font-weight:700;letter-spacing:.2px;white-space:nowrap;box-shadow:0 2px 9px #17382d20}
#elevationLegend{position:fixed;top:147px;left:39%;width:235px;padding:11px 14px 10px;background:#f8faf0e6;border:1px solid #d4ded0;border-radius:6px;z-index:3;box-shadow:0 5px 25px #17382d12;backdrop-filter:blur(8px)}#elevationLegend strong{font-size:10px;letter-spacing:1.5px;font-weight:600}#elevationLegend .legend-ramp{height:12px;margin:9px 0 4px;border-radius:2px;background:linear-gradient(90deg,#436a69 0%,#548677 16%,#76a681 32%,#a6bc82 47%,#d3bf7f 63%,#c79673 79%,#e8e1c8 95%,#f4f0dd 100%)}.legend-ticks{display:flex;justify-content:space-between;font-size:9px;color:#667e6b}#elevationLegend small{display:block;margin-top:8px;font-size:9px;color:#849486}
#elevationProbe{position:fixed;z-index:9;pointer-events:none;min-width:120px;padding:8px 10px;background:#284d43f2;border:1px solid #789b84;border-radius:5px;color:white;font-size:11px;line-height:1.5;white-space:pre-line;box-shadow:0 8px 30px #17382d30}
#profilePanel{position:fixed;left:50%;bottom:267px;transform:translateX(-35%);width:min(650px,55vw);z-index:5;background:#fbfcf4f5;border:1px solid #d5dfd0;border-radius:8px;padding:17px 21px 14px;box-shadow:0 16px 55px #17382d24;backdrop-filter:blur(12px);color:#29483d}.profile-head{display:flex;justify-content:space-between;align-items:start}.profile-head h2{font-size:15px;font-weight:500;margin:5px 0 13px}.profile-head button{font-size:22px;line-height:1}#elevationChart{display:block;width:100%;height:140px;cursor:crosshair;touch-action:none}.profile-meta{display:flex;justify-content:space-between;gap:10px;border-top:1px solid #e2e9dc;padding-top:9px;color:#728674;font-size:10px}
.nightmode #elevationLegend,.nightmode #profilePanel{background:#193135f0;color:#dce9dc;border-color:#567065}.nightmode #elevationLegend small,.nightmode .legend-ticks,.nightmode .profile-meta{color:#bed0bc}.nightmode .contour-label{background:#203d40e6;color:#e1e9d8;border-color:#6d8874}
@media(max-width:1000px){#elevationLegend{left:36%}}@media(max-width:800px){#elevationLegend{left:200px;right:64px;top:112px;width:auto;padding:8px 9px}#elevationLegend strong,#elevationLegend small{font-size:8px}.legend-ticks{font-size:7px}#profilePanel{left:15px;right:15px;bottom:247px;transform:none;width:auto;padding:13px}#elevationChart{height:135px}.profile-head h2{font-size:12px}.profile-meta{font-size:8px}.contour-label{font-size:8px}}@media(max-width:550px){#elevationLegend{top:80px;left:auto;right:12px;width:145px}.terrain-note{display:none}}

/* Taihuai is a geographic reference point in the valley, not a summit on the GPS route. */
.town-shortcut{display:block;width:100%;margin:18px 0 0;padding:10px 13px;border:1px solid #cfaa7c;border-radius:5px;background:#f9ebd8e8;text-align:left;color:#76512c;font-size:13px;font-weight:700;box-shadow:0 4px 16px #795b2a13}.town-shortcut small{display:block;margin-top:5px;color:#8b7356;font-size:10px;font-weight:400}.town-shortcut:hover{background:#f4dec0;color:#684721}.maplabel.town-label{border-color:#cb9a65;background:#fff1d8f4;color:#754c29;font-weight:700;box-shadow:0 5px 20px #6543213a;z-index:3}.maplabel.town-label:after{width:8px;height:8px;bottom:-10px;background:#d48246}.town-place{color:#9a602e;border-color:#d6b691!important}.town-place small{color:#a47448!important}
.season-kit{padding:12px 13px;margin:7px 0 14px;border:1px solid #d9e2d5;border-radius:5px;background:#edf3e8}.season-kit h3{margin:6px 0;font-size:15px;font-weight:600;color:#315447}.season-kit>p{margin:6px 0}.season-kit ul{margin:10px 0;padding-left:18px;color:#485e4e;font-size:11px;line-height:1.65}.season-kit li{margin:5px 0}.season-kit .kit-extra{border-top:1px solid #d5dfd1;padding-top:8px}.season-kit .kit-risk{color:#8a5a36;font-weight:600}.hiking-scope{border-left:2px solid #b58d5c;padding-left:9px}.season-panel .hiking-sources{font-size:9px;color:#829184}.hiking-sources a{color:#426652}.nightmode .town-shortcut{background:#3c3830;color:#f2d3aa;border-color:#9c7651}.nightmode .town-shortcut small{color:#d0b695}.nightmode .season-kit{background:#29413c;border-color:#557363}.nightmode .season-kit h3,.nightmode .season-kit ul{color:#dbe9d6}.nightmode .season-kit .kit-risk{color:#f3c390}.nightmode .hiking-sources a{color:#bed9b4}
@media(max-height:850px){.town-shortcut{margin-top:11px;padding:8px 11px}.town-shortcut small{font-size:9px}}@media(max-width:800px){.town-shortcut{margin-top:10px;padding:7px 8px;font-size:11px}.town-shortcut small{font-size:8px}.season-kit{padding:9px}.season-kit ul{font-size:10px}.maplabel.town-label{font-size:10px}}

/* Curated KML landmarks are a separate, zoom dependent layer. */
.poi-panel{position:fixed;top:112px;right:94px;bottom:275px;width:360px;max-width:calc(100vw - 430px);overflow:auto;z-index:8;padding:22px 24px;border:1px solid #cfdbcd;border-radius:10px;background:#f7f9f1f2;box-shadow:0 18px 70px #17382d29;backdrop-filter:blur(18px);scrollbar-width:thin}.poi-panel .panel-head h2{font:500 23px 'Noto Serif SC',serif;margin:7px 0 9px}.poi-count{font-size:11px;color:#687c6d}.poi-filters{display:flex;flex-wrap:wrap;gap:5px;margin:14px 0}.poi-filters button{font-size:10px;padding:6px 8px;border:1px solid #d4dfd1;border-radius:4px}.poi-filters button.active{background:#315347;border-color:#315347;color:#fff}.poi-list{display:grid;grid-template-columns:1fr 1fr;gap:6px}.poi-row{text-align:left;border:1px solid #dae3d8;border-radius:5px;background:#fffdf5d9;padding:9px;min-height:54px}.poi-row strong,.poi-row small{display:block}.poi-row strong{font-size:11px;font-weight:600}.poi-row small{font-size:9px;color:#819080;margin-top:5px}.poi-row.active{border-color:#9b764f;background:#f7ecdc}.poi-detail{margin:15px 0;padding:12px;border-left:3px solid #bc8d58;background:#edf2e8}.poi-detail strong,.poi-detail small{display:block}.poi-detail strong{font-size:14px}.poi-detail small{font-size:9px;color:#718071;margin-top:5px}.poi-detail p,.poi-town-guide,.poi-source{font-size:10px;line-height:1.7;color:#697a6c}.poi-town-guide{border-top:1px solid #dae3d8;padding-top:12px}.poi-label{padding:5px 7px;font-size:10px;border-color:#b9cabb;background:#f8faf0e8}.poi-label:after{background:#5b826b}.nightmode .poi-panel{background:#182f32f2;color:#e0e9dd;border-color:#496259}.nightmode .poi-count,.nightmode .poi-town-guide,.nightmode .poi-source,.nightmode .poi-detail p{color:#bfd0bf}.nightmode .poi-row{background:#28413e;color:#e1eadf;border-color:#506b5e}.nightmode .poi-row small{color:#b3c7b8}.nightmode .poi-row.active,.nightmode .poi-detail{background:#405142}.nightmode .poi-filters button{border-color:#5b786b}
@media(max-height:850px){.poi-panel{top:95px;bottom:255px}}@media(max-width:1000px){.poi-panel{right:77px;width:330px;max-width:calc(100vw - 370px)}}@media(max-width:800px){.poi-panel{left:14px;right:59px;width:auto;max-width:none;top:96px;bottom:258px;padding:17px}.poi-panel .panel-head h2{font-size:19px}.poi-list{grid-template-columns:1fr 1fr}.poi-row{padding:7px}.poi-row strong{font-size:10px}}@media(max-height:620px){.poi-panel{bottom:170px}}
