.mountain-weather{min-width:0}.mountain-weather h2{margin-top:0}.mountain-source{font-size:.8rem}.mountain-weather .muted{font-size:.82rem;line-height:1.5}.mountain-warning{color:#b76317;font-size:.85rem}.mountain-layer-options{display:grid;gap:2px;margin-top:6px;border-top:1px solid var(--line,#8885);padding-top:8px}.snow-station-marker{border:2px solid #fff;border-radius:2rem;background:#1d658e;color:white;font-size:.72rem;font-weight:700;padding:.35rem .5rem;box-shadow:0 2px 8px #0004;white-space:nowrap;min-height:30px;cursor:pointer}.snow-station-marker.stale{background:#657179}/* Compact station details share the website palette and keep all source facts. */
.mountain-station-dialog{position:fixed;color:var(--ink,#202529);background:var(--surface,#fff);border:1px solid var(--line,#8885);border-radius:20px;width:min(420px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 32px);overflow:auto;padding:20px;box-shadow:0 16px 60px #0004}
.mountain-station-dialog::backdrop{background:#0007;backdrop-filter:blur(5px)}
.mountain-station-dialog>button{position:absolute;right:16px;top:8px;min-height:44px;padding:8px 4px;z-index:1}
.snow-station-content{display:grid;gap:12px;min-width:0}
.mountain-station-dialog h2{font-size:21px;line-height:1.25;letter-spacing:-.025em;margin:0;padding-right:58px;clear:none}
.mountain-station-dialog p{margin:0;line-height:1.4}
.snow-station-header p{margin-top:4px;font-size:12px;color:var(--muted)}
.snow-station-reading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.snow-station-reading>strong{font-size:34px;line-height:1.1;letter-spacing:-.035em;white-space:nowrap;font-variant-numeric:tabular-nums}
.snow-station-reading>p{display:grid;gap:2px;font-size:12px;text-align:right;font-variant-numeric:tabular-nums}
.snow-station-reading>p>span{font-size:11px;color:var(--muted)}
.snow-station-reading time{white-space:nowrap}
.snow-chart{color:var(--muted,#626975);min-width:0}
.snow-chart svg{color:var(--accent,#3979a8);width:100%;height:auto;display:block;aspect-ratio:5/1;margin:4px 0}
.snow-chart p{font-size:11px}
.snow-chart summary{color:var(--accent,#167968);font-size:13px;min-height:36px;display:list-item;align-content:center;padding:8px 0;cursor:pointer}
.snow-chart table{color:var(--ink);width:100%;font-size:12px;border-collapse:collapse}
.snow-chart td,.snow-chart th{text-align:left;padding:6px 0;border-bottom:1px solid var(--line,#8884);font-variant-numeric:tabular-nums}
.mountain-station-dialog .muted,.mountain-station-dialog .mountain-warning{font-size:12px;line-height:1.45;color:var(--muted)}
.mountain-station-dialog .mountain-warning{color:#b76317}
.mountain-station-dialog .mountain-source{font-size:11px;line-height:1.45;border-top:1px solid var(--line);padding-top:10px;overflow-wrap:anywhere}
.mountain-station-dialog .mountain-source a{text-decoration:underline;text-underline-offset:2px}
.mountain-station-dialog .mountain-source small{font-size:11px}
@media(max-width:420px){.mountain-station-dialog{padding:16px}.mountain-station-dialog>button{right:12px;top:4px}.mountain-station-dialog h2{font-size:20px}}
.mountain-map-status{position:absolute;z-index:5;left:1rem;bottom:max(4.3rem,calc(var(--mountain-attribution-height,0px) + 1rem));max-width:min(18rem,calc(100% - 2rem));padding:.65rem .8rem;border-radius:1rem;font-size:.75rem;pointer-events:none}.mountain-map-status p{margin:.15rem 0 .4rem}.mountain-map-status small{display:block;font-size:.68rem}.snow-depth-legend{display:flex;gap:0;margin:.35rem 0}.snow-depth-legend span{flex:1;text-align:center;padding:.3rem .15rem;color:#0e2436;font-size:.7rem}.snow-depth-legend span:last-child{color:white}.tour-page .mountain-map-status{bottom:auto;top:calc(var(--heading-height,100px) + 2rem)}

.mountain-source,.mountain-map-credits{overflow-wrap:anywhere}.mountain-source small{display:block;margin-top:.25rem}.mountain-map-credits{font-size:.68rem;line-height:1.4;margin-top:.35rem}.mountain-map-credits a{display:block;pointer-events:auto;padding:.16rem 0;text-decoration:underline;text-underline-offset:2px}.mountain-map-credits a:focus-visible{outline:2px solid currentColor;outline-offset:2px;border-radius:2px}.mountain-map-credits small{margin-top:.15rem}

/* One shared alignment for snow model, status and legally required source links. */
.mountain-map-status{position:absolute;z-index:5;left:var(--snow-left,16px);bottom:var(--snow-bottom,72px);width:min(360px,calc(100% - 32px));max-width:none;max-height:var(--snow-max-height,45dvh);overflow:auto;padding:12px;border-radius:16px;font-size:12px;line-height:1.4;pointer-events:auto;overscroll-behavior:contain;scrollbar-width:thin}
.mountain-map-status p{margin:0;line-height:1.4}
.mountain-map-content{display:grid;gap:4px}
.snow-legend-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.snow-legend-heading strong{font-size:12px;font-weight:650}
.snow-legend-heading>span{font-size:11px;color:var(--muted);flex:none}
.snow-depth-legend{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:0;margin:0;border-radius:6px;overflow:hidden}
.snow-depth-legend span{padding:4px 0;font-size:11px;line-height:1.3;font-variant-numeric:tabular-nums}
.mountain-map-status .snow-model-time{font-size:11px;color:var(--muted)}
.mountain-map-status .snow-status-message{font-size:11px;color:var(--ink)}
.mountain-map-credits{display:block;margin-top:6px;padding-top:6px;border-top:1px solid var(--line);font-size:11px;line-height:1.4;overflow-wrap:anywhere}
.mountain-map-credits a{display:inline;padding:0;max-width:100%;pointer-events:auto}
.mountain-map-credits small{display:inline;font-size:10px;line-height:1.4;margin:0}.snow-source-separator{color:var(--muted)}
.tour-page .mountain-map-status{top:var(--snow-top,calc(var(--heading-height,100px) + 2rem));bottom:auto;max-height:var(--snow-max-height,35dvh)}
@media(max-width:700px){.mountain-map-status{left:var(--snow-left,12px);width:min(360px,calc(100% - 24px));padding:10px}}

/* The two charts share one time axis and a selected-hour readout. */
.mountain-weather{--weather-temperature:#ad4123;--weather-precipitation:#316a9b}
@media(prefers-color-scheme:dark){.mountain-weather{--weather-temperature:#ff9f75;--weather-precipitation:#76b3ef}}
.mountain-weather .weather-body,.tour-information .mountain-weather .weather-body{min-height:0}
.mountain-weather .weather-body:has(>p[role=status]),.tour-information .mountain-weather .weather-body:has(>p[role=status]){min-height:232px}
.weather-forecast{min-width:0;margin:3px 0 8px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.weather-legend{display:flex;flex-wrap:wrap;gap:3px 13px;padding:8px 10px 2px;color:var(--muted);font-size:11px;line-height:1.35}
.weather-legend span{display:inline-flex;align-items:center;gap:5px}
.weather-legend span::before{content:"";width:10px;height:2px;border-radius:1px;background:var(--weather-temperature)}
.weather-legend .weather-rain-key::before{width:7px;height:8px;background:var(--weather-precipitation)}
.weather-plot{display:block;width:100%;height:auto;touch-action:pan-y;overflow:visible;outline-offset:-2px}
.weather-plot[role=slider]{cursor:crosshair}
.weather-plot:focus-visible{outline:2px solid var(--accent);border-radius:8px}
.weather-gridline{stroke:var(--line);stroke-width:1;vector-effect:non-scaling-stroke}
.weather-freezing-line{stroke:var(--muted);stroke-dasharray:3 3;opacity:.68}
.weather-axis{fill:var(--muted);font:10px system-ui,sans-serif;font-variant-numeric:tabular-nums}
.weather-temp-line{fill:none;stroke:var(--weather-temperature);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.weather-temp-dot,.weather-selected-dot{fill:var(--weather-temperature)}
.weather-selected-dot{stroke:var(--surface);stroke-width:1.2;vector-effect:non-scaling-stroke}
.weather-rain-bar{fill:var(--weather-precipitation);opacity:.84}
.weather-missing-mark{stroke:var(--muted);stroke-width:1;stroke-dasharray:1 1;vector-effect:non-scaling-stroke}
.weather-hour-cursor{stroke:var(--muted);stroke-width:1;stroke-dasharray:3 2;vector-effect:non-scaling-stroke;pointer-events:none}
.weather-selected{border-top:1px solid var(--line);padding:7px 10px 9px}
.weather-selected-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:3px 8px;margin-bottom:5px}
.weather-selected-head time{font-size:12px;font-weight:650}
.weather-selected-head strong{color:var(--weather-temperature);font-size:17px;font-weight:700;font-variant-numeric:tabular-nums}
.weather-selected-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 10px;margin:0;font-size:11px;line-height:1.35}
.weather-selected-metrics>div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:1px 4px;min-width:0}
.weather-selected-metrics dt{color:var(--muted)}
.weather-selected-metrics dd{margin:0;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
.mountain-map-status[data-snow-shell]{--snow-top:calc(var(--heading-height,96px) + 28px)}
@media(max-width:700px){.mountain-map-status[data-snow-shell]{--snow-top:calc(var(--chrome-bottom,232px) + 10px)}}

/* Snow and elevation use the same card typography and horizontal distance axis. */
.route-snow-profile{border-top:1px solid var(--line);padding:8px 0 0;margin:6px 0;min-width:0;line-height:1.4;font-size:var(--profile-caption-size,12px)}
.route-snow-profile:has(>p[role=status]){min-height:92px}
.route-snow-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.route-snow-profile h3{font-family:inherit;font-size:var(--profile-heading-size,14px);font-weight:650;line-height:1.3;letter-spacing:-.02em;margin:0}
.route-snow-heading>span{font-size:11px;color:var(--muted);white-space:nowrap}
.route-snow-caption{display:flex;align-items:baseline;justify-content:space-between;gap:2px 8px;flex-wrap:wrap;margin:4px 0 0}
.route-snow-profile p{font-size:12px;line-height:1.4;margin:4px 0}
.route-snow-profile .route-snow-caption :is(p,output,time){margin:0}
.route-snow-time{color:var(--muted);font-size:11px;line-height:1.4;font-variant-numeric:tabular-nums}
.route-snow-empty{color:var(--muted)}
.route-snow-profile svg{display:block;width:100%;height:auto;max-height:72px;touch-action:pan-y;overflow:visible;cursor:crosshair;margin:2px 0 0}
.route-snow-profile svg:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}
.route-snow-profile .snow-axis{stroke:var(--muted);stroke-width:1}
.route-snow-profile .snow-axis-label{fill:var(--muted);font:var(--profile-axis-size,28px) -apple-system,BlinkMacSystemFont,system-ui,sans-serif}
.route-snow-profile .snow-missing-hatch{stroke:var(--muted);stroke-opacity:.65;stroke-width:2}
.route-snow-profile .snow-profile-cursor{stroke:var(--ink);stroke-width:2;stroke-dasharray:5 4}
.route-snow-profile .route-snow-coverage{font-size:11px;color:var(--muted);margin:2px 0}
.route-snow-details summary{min-height:32px;align-content:center;padding:4px 0;cursor:pointer;color:var(--accent);font-size:11px}
.route-snow-details .mountain-source{font-size:11px;overflow-wrap:anywhere}
.mountain-map-status>.snow-map-sources{margin-top:5px;border-top:1px solid var(--line);padding-top:3px}
.snow-map-sources>summary{font-size:10px;line-height:1.4;min-height:28px;align-content:center;cursor:pointer;color:var(--muted)}
.snow-map-sources .mountain-map-credits{border:0;margin:0;padding:3px 0}
/* Keep a value and its unit together, including long estimated ascent values. */
body.tour-app-shell .profile-content{container-type:inline-size}
body.tour-app-shell .tour-page[data-layout=immersive] .profile-hero .stats dd{white-space:nowrap;overflow-wrap:normal;font-size:clamp(15px,5.4cqi,24px);line-height:1.25;font-variant-numeric:tabular-nums;letter-spacing:-.045em}
body.tour-app-shell .tour-page[data-layout=immersive] .profile-hero .stats dt{min-width:0;line-height:1.35;min-height:2.7em;text-wrap:balance}
body.tour-app-shell .profile-hero .grid text{font-size:var(--profile-axis-size,28px)!important}
body.tour-app-shell .profile-hero .axis text{font-size:var(--profile-axis-size,28px)!important}
.tour-information .tour-key-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
.tour-information .tour-key-facts>*,.tour-information .tour-practical .fact>*{min-width:0}
.tour-information .tour-key-facts :is(dd,.fact>strong){overflow-wrap:normal;word-break:normal}
.tour-information .tour-practical .fact>strong{overflow-wrap:anywhere}
.tour-info-rail,.tour-info-content,.weather-body{min-width:0}
.tour-info-rail :is(h2,h3),.tour-info-sheet :is(h2,h3){text-wrap:balance;overflow-wrap:break-word}
body.tour-app-shell .mountain-map-status{box-sizing:border-box}

/* The route snow chart carries the detail; keep its map key small. */
body.tour-app-shell .route-stage>.mountain-map-status{width:min(260px,calc(100% - 24px));padding:8px 10px;border-radius:12px;font-size:10px}
body.tour-app-shell .route-stage .mountain-map-content{gap:3px}
body.tour-app-shell .route-stage .snow-legend-heading strong{font-size:11px}
body.tour-app-shell .route-stage .snow-depth-legend span{font-size:10px;padding:2px 0}
body.tour-app-shell .route-stage .mountain-map-status :is(.snow-model-time,.snow-status-message){font-size:10px}
body.tour-app-shell .route-stage .snow-map-sources>summary{font-size:10px;min-height:24px}
body.tour-app-shell .profile-hero .grid text{text-anchor:start;transform:translate(14px,-8px)}
body.tour-app-shell .profile-hero .axis text:last-child{transform:translateX(43px)}

body.tour-app-shell .route-stage>.mountain-map-status{padding:5px 8px}
body.tour-app-shell .route-stage .mountain-map-content{gap:2px}
body.tour-app-shell .route-stage .snow-depth-legend span{padding:1px 0}
body.tour-app-shell .route-stage .mountain-map-status>.snow-map-sources{margin-top:3px;padding-top:0}
body.tour-app-shell .route-stage .snow-map-sources>summary{min-height:20px}
.snow-map-notes{display:grid;gap:4px}

/* Snow colour key and provenance live behind the existing map (i), not on the map. */
.mountain-map-status[data-snow-shell]:not([data-snow-info]){display:none}
.maplibregl-ctrl.maplibregl-ctrl-attrib[data-snow-info]{max-width:calc(100% - 20px);box-sizing:border-box}
.maplibregl-ctrl.maplibregl-ctrl-attrib[data-snow-info].maplibregl-compact-show{width:min(360px,calc(100vw - 32px));padding-bottom:26px;max-height:min(var(--snow-info-max-height,480px),60dvh);overflow:auto;overscroll-behavior:contain;background:var(--surface);color:var(--ink)}
.maplibregl-ctrl-attrib[data-snow-info]>.mountain-map-status[data-snow-info]{position:static;inset:auto;width:100%;max-width:none;max-height:none;padding:8px 0;margin:0 0 6px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;box-shadow:none;backdrop-filter:none;overflow:visible;box-sizing:border-box}
.maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show)>.mountain-map-status[data-snow-info]{display:none}
.maplibregl-ctrl-attrib[data-snow-info] .maplibregl-ctrl-attrib-inner{overflow-wrap:anywhere}
.maplibregl-ctrl-attrib[data-snow-info] .snow-legend-heading strong{font-size:12px}
.maplibregl-ctrl-attrib[data-snow-info] .snow-map-sources>summary{min-height:32px;font-size:11px}

.maplibregl-ctrl-attrib[data-snow-info]>.maplibregl-ctrl-attrib-button{top:auto;bottom:0}

/* An expanded information overlay must sit above, rather than behind, map chrome. */
.tour-map:has(.maplibregl-ctrl-attrib[data-snow-info].maplibregl-compact-show){z-index:auto}
.maplibregl-ctrl-bottom-right:has(>.maplibregl-ctrl-attrib[data-snow-info].maplibregl-compact-show){z-index:8}

.route-avalanche-profile svg{aspect-ratio:900/52;max-height:none}
.route-avalanche-profile svg text{font:700 30px system-ui,sans-serif;pointer-events:none}
