/* Keep the beta's themed, pulsing skeletons on resort cards and saved-card placeholders. */
#resort-forecast .skeleton {
  background: transparent !important;
  animation: none;
}
#saved-host > .skeleton { border-radius: 4px; }

/* The detail header is independent of the forecast panel and its status. */
html:has(#resort-forecast) { scrollbar-gutter: stable; }

#resort-forecast[data-forecast-state="loading"],
#resort-forecast[data-forecast-state="failed"] > :not(.pf-forecast-meta),
#resort-forecast:not([data-forecast-state="loading"]) + .pf-forecast-loading {
  display: none;
}

.pf-forecast-loading {
  display: grid;
  place-items: center;
  padding: 24px 0;
}
.pf-forecast-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--pf-border);
  border-top-color: #2C5EBD;
  border-radius: 50%;
}

#outlook-viz .viz-animate { animation: none; }
#outlook-viz .pf-timeline-amount {
  max-width: 100%;
  font-size: 11.2px;
  line-height: 1.2;
  text-align: center;
}
#outlook-viz .pf-timeline-amount .pfx-mx-ast { font-size: .65em; }
@media (min-width: 640px) {
  #outlook-viz .pf-timeline-amount { font-size: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .pf-forecast-spinner {
    animation: pf-forecast-spin 800ms linear infinite;
  }
  #outlook-viz .pf-timeline-bar {
    transform-origin: bottom;
    animation: pf-snow-bar-grow 500ms cubic-bezier(.2, .75, .25, 1) both;
  }
}
@keyframes pf-forecast-spin { to { transform: rotate(1turn); } }
@keyframes pf-snow-bar-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Reserve the previous forecast's space while the selected elevation loads. */
#app .pf-forecast-loading {
  min-height: var(--pf-loading-height, 0px);
  align-content: start;
}
