/* Snowglobe atlas: a single, final visual layer over the original feature UI. */
:root {
  --paper:#f9f7f0;
  --ink:#173d36;
  --pine:#204f43;
  --muted:#5e756c;
  --line:#d9e0d7;
  --gold:#c59a50;
  --atlas-panel:rgba(255,253,246,.96);
  --atlas-shadow:0 8px 28px #193e3920;
}
body { background:var(--paper); font-size:14px; }
button, a, input, select { touch-action:manipulation; }
.header {
  height:64px; min-height:64px; padding:0 24px; gap:24px;
  background:var(--paper); border-bottom-color:#d5ded5;
}
.brand { font-size:28px; gap:8px; letter-spacing:-1px; flex-shrink:0; }
.brand-mark { width:30px; height:30px; background:#e6ece2; }
.brand-mark svg { width:23px; height:23px; }
.brand-dot { color:var(--gold); }
.header nav { gap:28px; }
.nav-item { min-height:44px; font-size:13px; color:#506b61; white-space:nowrap; }
.nav-item.active:after { height:2px; background:var(--pine); }
.header-right { min-width:0; gap:12px; }
.resort-picker { flex-direction:row; align-items:center; gap:10px; min-width:0; }
.resort-picker>span { font-size:10px; letter-spacing:1px; white-space:nowrap; }
.resort-picker select { min-height:36px; font-size:13px; max-width:190px; background:#fffdf5; }
.icon-button { min-width:36px; min-height:36px; }

/* Give the real mountain the majority of the screen. */
#mountain-main { position:relative; padding:0; max-width:none; margin:0; --atlas-scene-height:max(620px,calc(100svh - 64px)); }
.mountain-heading {
  position:absolute; left:0; top:0; z-index:5; width:272px;
  min-height:140px; padding:14px 17px 10px; gap:0;
  background:var(--atlas-panel); border-bottom:1px solid var(--line);
}
.breadcrumb { font-size:11px; gap:8px; }
.breadcrumb button { min-height:24px; font-size:11px; }
.mountain-heading h1 { font-size:clamp(24px,2.2vw,30px); line-height:1.1; letter-spacing:-.8px; text-wrap:balance; }
.mountain-heading h1:focus { outline:none; }
.mountain-heading p { font-size:12px; margin-top:4px; color:#5e7568; }
.title-star { display:none; }
.heading-stats { display:none; gap:20px; }
.heading-stats>div { grid-template-columns:19px auto; column-gap:6px; }
.heading-stats>div+div { padding-left:18px; }
.heading-stats strong { font-size:22px; }
.heading-stats small { font-size:11px; margin-top:3px; color:#61776a; }
.heading-stats .scenario-tag { padding:8px 11px; border-radius:7px; }
.scenario-tag strong { font-size:12px; }
.scenario-tag small { font-size:11px; }
.explorer {
  height:var(--atlas-scene-height); min-height:620px; max-height:none; border-radius:0;
  border:0; box-shadow:none; overflow:hidden;
}
.trail-sidebar { width:272px; min-width:272px; padding-top:152px; background:var(--atlas-panel); }
.sidebar-title { padding:0 17px 13px; }
.sidebar-title h2 { font-size:21px; letter-spacing:-.4px; }
.search-wrap { min-height:40px; margin:0 14px 13px; padding:0 10px; gap:8px; }
.search-wrap input { font-size:14px; }
.search-wrap svg { width:17px; height:17px; }
.search-wrap kbd { font-size:12px; }
.list-tabs { margin:0 15px; gap:25px; }
.list-tabs button { min-height:36px; font-size:14px; padding:0 0 10px; }
.list-tabs span { font-size:11px; }
.difficulty-filters { padding:12px 14px 7px; gap:7px; }
.difficulty-filters button { width:36px; height:36px; border-color:#d7dfd1; }
.difficulty-filters button:first-child { width:41px; font-size:12px; }
.list-caption { padding:8px 16px; font-size:10px; letter-spacing:.8px; color:#667b6d; }
.trail-list { padding:0 8px 10px; min-height:0; }
.trail-item { font-size:14px; min-height:44px; padding:11px 10px; gap:12px; }
.trail-item.selected { background:#eee6cf; color:#203f35; }
.trail-item.selected:before { background:#d3b06b; height:22px; }
.trail-item .row-arrow { font-size:18px; }
.trail-item .saved-star { color:#c6a464; font-size:14px; }
.sidebar-foot { min-height:88px; visibility:hidden; padding:12px 14px; font-size:11px; color:#5f7669; }
.map-stage { background:#b9d1dd; }
.map-topbar { top:14px; left:14px; right:14px; gap:10px; }
.view-pill { font-size:10px; min-height:36px; padding:8px 10px; background:var(--atlas-panel); }
.view-pill>span:last-child { font-size:9px; }
.map-topbar-right { gap:7px; }
.map-button { min-height:36px; padding:8px 11px; font-size:12px; color:#365e4e; background:var(--atlas-panel); border-color:#c7d5c8; }
.map-button svg { width:16px; height:16px; }
.map-topbar-right .trail-toggle { width:auto; }
.map-topbar-right .trail-toggle span { display:block; }
.square { width:36px; height:36px; padding:7px; }
.compass { width:36px; min-height:44px; }
.compass svg { width:30px; height:30px; }
.map-controls { right:14px; bottom:101px; gap:8px; }
.layer-switcher { top:61px; left:14px; max-width:calc(100% - 28px); gap:2px; padding:3px; background:var(--atlas-panel); }
.layer-switcher button { min-height:36px; padding:8px 11px; font-size:12px; gap:6px; }
.layer-switcher button svg { width:15px; height:15px; }
.layer-switcher button.active { background:var(--pine); }
.map-stage.panel-open .layer-switcher { max-width:calc(100% - 356px); overflow-x:auto; }
.map-stage.panel-open .layer-switcher button { font-size:12px; padding:8px 10px; }
.map-stage.panel-open .layer-switcher button span { display:block; }
.map-bottom-left { left:14px; bottom:190px; max-width:calc(100% - 28px); }
.layer-legend { font-size:11px; gap:12px; padding:9px 10px; flex-wrap:wrap; background:var(--atlas-panel); max-width:100%; }
.map-stage.panel-open .layer-legend { max-width:calc(100% - 338px); }
.layer-legend .legend-disclaimer { font-size:10px; }
.map-hint { display:none; font-size:11px; margin-top:8px; color:#2c554b; }
.map-label b { font-size:11px; }
.map-label small { font-size:10px; }
.map-label.region b { font-size:10px; letter-spacing:.9px; }
.run-panel {
  width:300px; right:62px; top:107px; bottom:88px; border-radius:10px;
  background:var(--atlas-panel); box-shadow:0 12px 35px #163e3c2b;
  scrollbar-color:#b5c8b6 transparent; overscroll-behavior:contain;
}
.panel-heading { padding:18px 18px 14px; }
.panel-heading h2 { font-size:29px; line-height:1.1; margin-right:23px; }
.panel-eyebrow { font-size:11px; letter-spacing:1px; }
.panel-close { min-width:36px; min-height:36px; right:9px; top:9px; }
.trail-tags { font-size:12px; gap:7px; flex-wrap:wrap; }
.unknown-status { font-size:11px; }
.demo-note,.forecast-note { font-size:12px; line-height:1.5; padding:10px 18px; }
.powder-feature { padding:15px 18px 11px; }
.powder-amount { font-size:38px; }
.powder-amount span { font-size:12px; }
.metric-label,.cell-icon { font-size:11px; letter-spacing:.3px; }
.condition-grid { padding:0 18px; }
.condition-cell { padding:13px 0; }
.condition-cell:nth-child(2n) { padding-left:10px; }
.condition-value { font-size:14px; margin:6px 0 4px; }
.condition-note { font-size:11px; line-height:1.5; color:#5b7567; }
.trail-stats { margin:0 18px 14px; }
.trail-stats strong { font-size:15px; }
.trail-stats small { font-size:11px; }
.save-run { min-height:42px; font-size:13px; margin:0 18px 14px; width:calc(100% - 36px); }
.forecast-window,.forecast-spread,.forecast-scope,.forecast-method,.panel-method-note { font-size:12px; line-height:1.55; }
.forecast-method summary,.forecast-scope strong { font-size:12px; }
.forecast-method table,.forecast-method caption,.forecast-method td small { font-size:11px; }
.forecast-method th,.forecast-method td { overflow-wrap:anywhere; }
.snow-bars span,.snow-bars small { font-size:11px; }
.snow-depth-feature { margin:14px 18px; padding:13px; font-size:12px; line-height:1.55; }
.snow-depth-feature .metric-label { font-size:11px; }
.snow-depth-feature .metric-label span { font-size:9px; }
.current-depth-amount.depth-unknown { font-size:26px; }
.snow-depth-feature summary,.snow-depth-feature details p,.snowmaking-note p { font-size:11px; }
.snowmaking-note strong { font-size:12px; }
.storm-terrain,.ice-research { margin:14px 18px; padding:12px; font-size:12px; line-height:1.55; }
.storm-terrain>.metric-label,.ice-research .metric-label { font-size:11px; }
.storm-terrain p,.storm-terrain a,.ice-research p,.ice-research table { font-size:11px; }
.terrain-facts small,.surface-timeline b,.surface-timeline small { font-size:10px; }
.timebar {
  position:absolute; z-index:4; left:286px; top:calc(var(--atlas-scene-height) - 98px); bottom:auto; right:72px;
  width:min(710px,calc(100% - 366px)); height:76px; min-height:76px; padding:8px 14px; gap:22px;
  border:1px solid #d3ddd1; border-radius:9px; background:var(--atlas-panel);
  box-shadow:var(--atlas-shadow); backdrop-filter:blur(8px);
}
.date-control { width:235px; }
.date-control label { font-size:11px; margin-bottom:2px; color:#587164; }
.date-control label>span { font-size:9px; }
.date-control select { min-height:32px; font-size:13px; max-width:200px; }
.time-control { min-width:0; max-width:none; flex:1; display:grid; grid-template-rows:17px 28px 13px; row-gap:0; }
.time-label { font-size:12px; line-height:17px; margin-bottom:0; }
.time-label strong { font-size:13px; }
.time-label small { font-size:11px; }
.time-ticks { font-size:10px; line-height:13px; margin-top:0; color:#647b6b; }
#time-slider { appearance:none; height:28px; min-height:28px; margin:0; padding:0; background:transparent; cursor:pointer; }
#time-slider::-webkit-slider-runnable-track { height:3px; border-radius:3px; background:#b9c6ae; }
#time-slider::-moz-range-track { height:3px; border-radius:3px; background:#b9c6ae; }
#time-slider::-webkit-slider-thumb { appearance:none; width:14px; height:14px; margin-top:-5.5px; background:#fffdf3; border:3px solid #9b824b; border-radius:50%; box-shadow:0 0 0 3px #fffdf3b3; }
#time-slider::-moz-range-thumb { width:9px; height:9px; background:#fffdf3; border:3px solid #9b824b; border-radius:50%; box-shadow:0 0 0 3px #fffdf3b3; }
.timebar-note { display:none; }
footer {
  position:absolute; z-index:5; bottom:8px; left:14px; width:244px;
  min-height:0; padding:0; display:flex; flex-wrap:wrap; gap:4px; line-height:1.4;
  background:var(--atlas-panel); font-size:10px;
}
footer>span:first-child { display:none; }
footer #data-footer { min-height:36px; padding:0; text-align:left; line-height:1.4; }
footer button,.sample-footer { font-size:10px; }
.sample-footer { width:100%; }
@media(max-width:1180px) and (min-width:701px) {
  .header { gap:14px; padding:0 18px; }
  .header nav { gap:19px; }
  .resort-picker>span { display:none; }
  .header-right { gap:7px; }
  .resort-picker select { max-width:155px; }
  .heading-stats { gap:12px; }
  .heading-stats>div+div { padding-left:12px; }
  .heading-stats .scenario-tag { display:none; }
  .trail-sidebar { width:260px; min-width:260px; }
  .mountain-heading { width:260px; }
  footer { width:232px; }
  .timebar { left:274px; width:calc(100% - 344px); }
  .view-pill { display:none; }
  .map-topbar-right { margin-left:auto; }
  .map-stage.panel-open .layer-switcher { max-width:calc(100% - 28px); }
  .map-stage.panel-open .layer-switcher button { padding:8px; font-size:11px; }
  .map-stage.panel-open .layer-legend { max-width:calc(100% - 70px); }
  .map-stage.panel-open .map-hint { display:none; }
}
@media(max-width:900px) and (min-width:701px) {
  .brand { font-size:25px; }
  .brand-mark { display:none; }
  .header nav { gap:16px; }
  .nav-item { font-size:12px; }
  #mountain-main { padding:0; }
  .heading-stats>div:not(.scenario-tag) { display:grid; }
  .heading-stats strong { font-size:19px; }
  .heading-stats small { font-size:10px; }
  .heading-stats>div>span { display:none; }
  .heading-stats>div { grid-template-columns:auto; }
  .map-topbar-right .trail-toggle>span:last-child { display:none; }
  .map-topbar-right .trail-toggle { width:36px; padding:8px; }
  .map-button { font-size:11px; padding:8px; }
  .layer-switcher button { font-size:11px; padding:8px; }
  .run-panel { width:280px; }
}
@media(max-width:700px) {
  .header,body:not(.home-mode) .header {
    height:auto; min-height:64px; padding:0 14px; gap:0 12px; flex-wrap:wrap;
  }
  .brand,.header .brand { font-size:25px; letter-spacing:-1px; gap:0; min-height:64px; }
  .brand-mark { display:none; }
  .header nav { height:64px; gap:15px; margin-left:auto; align-self:auto; }
  .nav-item,.header .nav-item { font-size:11px; min-height:44px; }
  #home-nav { gap:4px; }
  #home-nav svg { display:none; }
  #explore-nav { display:none; }
  #saved-count { font-size:10px; }
  body:not(.home-mode) .header-right {
    display:flex; width:100%; height:48px; gap:10px; padding:5px 0 7px;
    border-top:1px solid #e2e6db;
  }
  body:not(.home-mode) .resort-picker { gap:10px; }
  body:not(.home-mode) .resort-picker>span { display:block; font-size:10px; letter-spacing:.8px; }
  body:not(.home-mode) .resort-picker select { width:auto; max-width:220px; min-width:0; min-height:36px; font-size:13px; padding:6px 28px 6px 10px; }
  .header-right .icon-button { min-height:36px; min-width:36px; }
  #mountain-main { padding:0; --atlas-mobile-map-height:clamp(430px,64svh,540px); }
  .mountain-heading {
    left:10px; top:10px; width:calc(100% - 202px); min-height:0; max-width:260px;
    padding:9px 11px; gap:0; border:1px solid #f7f5e9b0; border-radius:8px;
    box-shadow:0 3px 16px #1b473a16;
  }
  .mountain-heading h1 { font-size:23px; }
  .mountain-heading p { font-size:10px; line-height:1.35; margin-top:3px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .breadcrumb { display:none; }
  .heading-stats { display:none; }
  .explorer { display:flex; flex-direction:column; height:auto; min-height:0; max-height:none; }
  .map-stage { order:0; flex:none; width:100%; height:var(--atlas-mobile-map-height); min-height:430px; max-height:540px; }
  .map-topbar { left:10px; right:10px; top:10px; }
  .map-topbar .view-pill { display:none; }
  .map-topbar-right { gap:6px; margin-left:auto; }
  .map-topbar-right .map-button { min-height:44px; font-size:11px; padding:9px; }
  .map-topbar-right .trail-toggle { width:44px; }
  .map-topbar-right .trail-toggle>span:first-child { display:block; }
  .map-topbar-right .trail-toggle>span:last-child { display:none; }
  .map-topbar-right #village-view>span { display:none; }
  .map-topbar-right #village-view { width:44px; }
  .map-topbar-right .map-button svg { width:17px; height:17px; }
  .layer-switcher,.map-stage.panel-open .layer-switcher {
    left:10px; right:10px; top:90px; width:max-content; max-width:calc(100% - 20px); overflow-x:auto;
  }
  .layer-switcher button,.map-stage.panel-open .layer-switcher button { min-width:44px; min-height:44px; font-size:0; padding:10px 12px; }
  .layer-switcher button span,.map-stage.panel-open .layer-switcher button span { display:block; }
  .layer-switcher button svg { width:18px; height:18px; }
  .active-layer-label { top:147px; left:11px; font-size:11px; padding:5px 8px; }
  .map-controls { right:9px; bottom:143px; gap:7px; }
  .square { width:44px; height:44px; min-height:44px; padding:11px; }
  .map-controls svg { width:20px; height:20px; }
  .compass { width:44px; min-height:50px; }
  .compass svg { width:31px; height:31px; }
  .map-bottom-left { left:10px; bottom:83px; max-width:calc(100% - 20px); }
  .layer-legend,.map-stage.panel-open .layer-legend { max-width:calc(100vw - 42px)!important; gap:8px 10px; padding:8px 9px; font-size:10px; }
  .layer-legend .legend-disclaimer { font-size:9px; }
  .map-hint { display:none; }
  .map-label b { font-size:10px; }
  .map-label small { font-size:9px; }
  .run-panel {
    left:10px; right:10px; top:auto; bottom:74px; width:auto;
    height:44%; max-height:44%; border-radius:12px;
  }
  .map-stage.panel-open .map-bottom-left { display:none; }
  .map-stage.panel-open .map-controls { top:146px; bottom:auto; right:10px; flex-direction:row; gap:5px; }
  .map-stage.panel-open .map-controls .zoom-buttons { display:flex; flex-direction:row; gap:5px; }
  .panel-heading { padding:16px 15px 12px; }
  .panel-heading h2 { font-size:27px; }
  .panel-close { min-height:44px; min-width:44px; top:4px; right:3px; }
  .panel-eyebrow { font-size:10px; padding-right:25px; }
  .condition-grid { padding:0 15px; }
  .condition-value { font-size:14px; }
  .condition-note { font-size:11px; }
  .powder-feature { padding:14px 15px; }
  .powder-amount { font-size:34px; }
  .powder-art { display:none; }
  .snow-depth-feature { margin:12px 14px; }
  .save-run { min-height:44px; font-size:13px; }
  .trail-sidebar {
    order:2; width:100%; min-width:0; height:385px; max-height:385px; flex:none; padding-top:0;
    border-right:0; border-top:1px solid var(--line);
  }
  .trail-sidebar.collapsed { height:66px; max-height:66px; }
  .sidebar-title { min-height:65px; padding:10px 14px; }
  .sidebar-title h2 { font-size:20px; }
  .sidebar-title>span { display:none; }
  #trail-list-toggle { display:block; min-height:44px; font-size:12px; padding:9px 12px; }
  .search-wrap { min-height:44px; margin:0 14px 10px; }
  .search-wrap input { font-size:14px; }
  .search-wrap>span { display:block; }
  .list-tabs { margin:0 15px; gap:24px; }
  .list-tabs button { min-height:40px; font-size:14px; }
  .list-tabs span { font-size:11px; }
  .difficulty-filters { padding:8px 14px 4px; gap:7px; }
  .difficulty-filters button { width:44px; height:44px; }
  .difficulty-filters button:first-child { width:44px; font-size:12px; }
  .list-caption { font-size:10px; padding:7px 15px; }
  .trail-item { min-height:44px; font-size:14px; padding:11px 10px; }
  .sidebar-foot { display:none; }
  .explorer>.timebar {
    position:static; order:1; gap:8px; padding:10px 13px 13px; height:auto; min-height:0; width:100%;
    border:0; border-top:1px solid var(--line); border-radius:0; box-shadow:none; backdrop-filter:none;
  }
  .date-control { width:100%; gap:8px; }
  .date-icon { display:none; }
  .date-control>div { display:flex; width:100%; align-items:center; gap:10px; }
  .date-control label { font-size:11px; margin:0; white-space:nowrap; }
  .date-control select { min-height:36px; max-width:none; width:auto; flex:1; font-size:12px; }
  .time-control { width:100%; max-width:none; grid-template-rows:17px 36px 13px; }
  .time-label { font-size:12px; }
  .time-label strong { font-size:13px; }
  .time-label small { display:block; font-size:10px; margin-left:auto; }
  #time-slider { height:36px; min-height:36px; margin:0; }
  .time-ticks { font-size:10px; }
  .time-ticks span:nth-child(2),.time-ticks span:nth-child(4) { visibility:visible; }
  footer { position:static; width:100%; min-height:0; flex-wrap:wrap; font-size:10px; gap:8px; padding:12px 13px 18px; }
  footer>span:first-child { display:inline; }
  footer button,.sample-footer { font-size:10px; }
  .map-stage:fullscreen { min-height:100svh; max-height:none; }
}
@media(max-width:359px) {
  .header,body:not(.home-mode) .header { padding:0 10px; gap:8px; }
  .brand,.header .brand { font-size:23px; }
  .header nav { gap:11px; }
  .nav-item,.header .nav-item { font-size:10px; }
  .map-topbar-right .map-button { padding:9px 7px; }
  .map-topbar-right #village-view span { font-size:10px; }
  .run-panel { left:10px; right:10px; width:auto; }
}
@media(prefers-reduced-motion:reduce) {
  .run-panel { transition:none; animation:none; }
}
