/* Air, clarity and a single focused sheet on phones. */
[hidden]{display:none!important}:root{--paper:#f7f9f5;--ink:#163d31;--line:#dfe7de}header{height:72px;padding:0 28px;box-shadow:0 1px 0 #14392c09}main{height:calc(100dvh - 72px);min-height:0}.brand{letter-spacing:-.8px}.brand span{font-size:10px}.side-head{padding:28px 23px 20px}.side-head .eyebrow{color:#71816e;font-size:10px;letter-spacing:1.4px}.side-head h1{font-size:28px}.trail{padding:12px 10px;gap:14px;margin:5px 0;border-radius:16px}.trail-thumb{width:88px;height:92px;border-radius:12px;filter:none}.trail-info h3{font-size:15px;line-height:1.4}.trail-info p{font-size:12px}.trail-tag{font-size:11px}.trail.selected{background:#e6eedf;border-color:#ceddc3}.trail:hover{transform:translateY(-1px)}.detail{border-radius:20px;background:#fcfef9f2;box-shadow:0 18px 65px #102a2730;bottom:180px;max-height:calc(100% - 270px);padding:22px;overflow-x:hidden}.detail-photo{width:calc(100% + 44px);margin:-22px -22px 18px;height:150px}.detail-photo span{font-size:12px;padding:30px 18px 10px}.detail h2{font-size:25px;line-height:1.2;margin:10px 0 14px}.detail .eyebrow{font-size:10px}.field-actions{gap:8px;margin:12px 0}.field-actions button{font-size:12px;min-height:42px;background:white;border-radius:10px}.detail-actions a,.detail-actions button{font-size:12px;min-height:32px}.detail-stats span{font-size:12px}.panel-close{display:grid;place-items:center;width:36px;height:36px;position:absolute;right:10px;top:10px;border:1px solid #d6dfd3;background:#fffffff5;color:#294b39;border-radius:50%;font-size:24px;z-index:3;box-shadow:0 3px 12px #172a2214}.detail>.panel-close{position:sticky;float:right;margin: -12px -12px -24px 0;top:0}.timeline{border-radius:18px;padding-right:55px;bottom:30px}.timeline.dismissed{display:none}.timeline .panel-close{width:28px;height:28px;font-size:21px}.map-bottom-hint{display:none}.map-top{top:20px}.map-tools button{border-radius:12px}.map-tools .panel-close,.tools-label,#menuToggle,.mobile-dock,#panelScrim,#expandDetail{display:none}#closeList{display:none}.mobile-map-options:empty{display:none}#reopenTrail{position:absolute;bottom:188px;left:25px;max-width:70%;border:1px solid #ffffffaa;border-radius:30px;padding:13px 18px;background:#fcfff3eb;color:#214a35;box-shadow:0 5px 24px #122e2922;font-size:14px}dialog{padding:30px;border:0;border-radius:24px;max-height:86dvh;overflow:auto}dialog .close{position:sticky;float:right;top:0;margin:-15px -14px 0 8px;z-index:10;border-radius:50%;background:white;box-shadow:0 2px 12px #163b2b20;width:42px;height:42px}dialog h2{line-height:1.2;margin-top:16px;font-size:30px}dialog p,dialog li{font-size:16px}.photo-gallery figcaption{font-size:12px}.photo-gallery img{border-radius:16px}.nav{font-size:13px;padding:12px}.trace{border-radius:11px;min-height:44px}.map-tools .mobile-map-options{display:none}
@media(max-width:760px){
/* Keep the entire header stacking context above the map scrim (z-index:20). */
header{z-index:40;height:60px;min-height:60px;padding:0 18px;flex-wrap:nowrap;gap:10px}.brand{font-size:19px}.brand svg{width:30px}.brand span{display:none}#menuToggle{display:flex;gap:9px;align-items:center;justify-content:center;border:1px solid #dce5d7;border-radius:24px;background:#f5f8f0;height:40px;padding:0 15px;font-size:14px}header nav{display:none;position:absolute;top:68px;right:12px;width:220px;height:auto;padding:10px;border:1px solid #e2e9dd;background:#fff;border-radius:20px;box-shadow:0 16px 55px #17392c35;z-index:30}.menu-open header nav{display:flex;flex-direction:column;gap:2px}.nav{font-size:15px;text-align:left;border-radius:12px;padding:14px 16px}.nav.active{background:#edf3e7}.nav.active:after{display:none}main{height:calc(100dvh - 60px);min-height:0}#explorer{height:100%}.map-top{top:14px;left:14px;right:14px;flex-wrap:nowrap}.location-pill{font-size:10px;padding:10px 13px;max-width:75%;letter-spacing:1px}.map-top>.drag-mode,.map-top>.view-toggle{display:none}.map-tools{display:none}.mobile-dock{display:flex;position:absolute;bottom:calc(22px + env(safe-area-inset-bottom));left:14px;right:14px;gap:5px;background:#fbfdf5f5;backdrop-filter:blur(18px);border:1px solid #ffffffa8;box-shadow:0 6px 35px #16352b35;border-radius:22px;padding:7px;z-index:12}.mobile-dock button{border:0;background:none;border-radius:16px;min-height:44px;flex:1;font-size:13px;font-weight:600}.mobile-dock button:active{background:#e4eddb}#mobileList{display:none!important}.detail{left:14px;right:14px;width:auto;bottom:calc(96px + env(safe-area-inset-bottom));padding:18px 18px 16px;border-radius:22px;max-height:calc(100% - 180px);overflow:auto;z-index:10;display:block}.detail:not(.expanded){padding-left:102px;min-height:142px;overflow:hidden}.detail:not(.expanded)>.detail-photo{display:block;position:absolute;left:14px;top:18px;width:72px;height:85px;margin:0;border-radius:12px}.detail:not(.expanded) .detail-photo span{display:none}.detail .eyebrow{font-size:9px;margin-right:24px;letter-spacing:.6px}.detail h2{font-size:20px;margin:7px 23px 9px 0;line-height:1.2}.detail:not(.expanded)>.detail-stats,.detail:not(.expanded)>.field-actions,.detail:not(.expanded)>.trace,.detail:not(.expanded)>.trace-progress,.detail:not(.expanded)>.detail-actions,.detail:not(.expanded)>.profile,.detail:not(.expanded)>.profile-label,.detail:not(.expanded)>p{display:none}.detail>.panel-close{position:absolute;float:none;margin:0;right:9px;top:9px;width:30px;height:30px;font-size:22px}#expandDetail{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:9px 0;background:none;border:0;color:#416945;font-size:13px;min-height:38px}.detail.expanded>.detail-photo{display:block;height:145px;margin:-18px -18px 18px;width:calc(100% + 36px)}.detail.expanded>p{display:block;font-size:14px}.detail.expanded>.profile,.detail.expanded>.profile-label{display:block}.detail.expanded .field-actions button{font-size:12px}.detail.expanded .detail-stats{justify-content:space-between;gap:12px}.detail.expanded .detail-stats span{font-size:11px}.detail.expanded .detail-actions{gap:12px}#reopenTrail{left:14px;bottom:calc(100px + env(safe-area-inset-bottom));font-size:13px;max-width:90%}.timeline{display:none;left:14px;right:14px;bottom:calc(96px + env(safe-area-inset-bottom));padding:22px 18px 18px;border-radius:22px;z-index:11}.weather-open .timeline{display:block}.timeline-header{padding-right:25px}.timeline-header>div{display:block}.sun-icon{display:none}.timeline-header strong{display:block;font-size:15px}.timeline-header #weather-summary{display:block;font-size:12px;line-height:1.5;margin-top:7px}.timeline-header button{font-size:12px}.time-labels{font-size:10px}.time-labels span:nth-child(even){display:none}.timeline-foot{font-size:11px}.timeline input{margin:15px 0}.layers-open .map-tools{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;left:14px;right:14px;top:auto;bottom:calc(96px + env(safe-area-inset-bottom));max-height:70%;background:#fcfdf6f5;backdrop-filter:blur(20px);padding:20px;border-radius:22px;z-index:11;box-shadow:0 10px 40px #15362825}.map-tools .panel-close{display:grid;position:absolute;width:30px;height:30px;font-size:22px}.tools-label{display:block;grid-column:1/-1;font-size:11px;letter-spacing:1.5px;padding-bottom:8px}.map-tools>button:not(.panel-close){width:100%;height:46px;font-size:24px;border:1px solid #dce4d5;box-shadow:none}.map-tools .mobile-map-options{display:flex;grid-column:1/-1;gap:10px;flex-wrap:wrap;padding-top:8px}.mobile-map-options .drag-mode{display:block;flex:1;margin:0;font-size:12px;min-height:44px;box-shadow:none}.mobile-map-options .view-toggle{display:flex;margin:0;flex:1;background:#e8efdf}.mobile-map-options .view-toggle button{font-size:12px;min-height:38px;padding:9px}.mobile-map-options .view-toggle button.active{background:#214b37}.menu-open #panelScrim{display:block;position:absolute;inset:0;background:#122f2433;border:0;z-index:20;backdrop-filter:blur(3px)}aside{top:60px;bottom:0;width:100%;box-shadow:none;z-index:25;border:0}aside.open{display:flex}#closeList{display:grid;right:16px;top:14px}.side-head{padding:27px 22px 18px}.side-head .eyebrow{display:none}.side-head h1{font-size:27px;padding-right:35px}.side-head p{font-size:14px}.side-footer{padding-bottom:calc(18px + env(safe-area-inset-bottom))}.trail-thumb{width:92px;height:94px}.trail-info p{font-size:12px}.trail-info .metrics{font-size:13px}.trail-tag{font-size:11px}.filters select,.filters button{font-size:13px;height:40px}.filters select{max-width:none}.trail-info h3{font-size:16px}.maplibregl-ctrl-bottom-right{bottom:0}.maplibregl-ctrl-attrib{font-size:8px!important}dialog{width:calc(100% - 20px);max-width:none;max-height:calc(100dvh - 40px);padding:25px 20px;border-radius:24px}dialog h2{font-size:26px;padding-right:15px}dialog .close{margin:-13px -8px 0 8px}.map-tools .compass{font-size:10px;line-height:14px}
}
@media(max-width:760px){.layers-open #reopenTrail,.weather-open #reopenTrail,.menu-open #reopenTrail{display:none}}
