/* The sky toggle sits on the price-scale seam without widening the chart. */
.weather-toggle-button {
  position: absolute;
  z-index: 14;
  top: 0;
  right: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 24px;
  min-width: 10px;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-left: 1px solid color-mix(in srgb, var(--space-white) 30%, var(--line));
  border-radius: 0;
  color: var(--text);
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  pointer-events: auto;
  font: inherit;
  line-height: 1;
  transition: background-color var(--motion-fast, 140ms) ease, border-color var(--motion-fast, 140ms) ease;
}
.weather-toggle-button::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 8px;
  left: 4px;
  width: 1px;
  background: color-mix(in srgb, var(--space-white) 38%, var(--muted));
  opacity: .7;
  transition: background-color var(--motion-fast, 140ms) ease, opacity var(--motion-fast, 140ms) ease;
}
.weather-toggle-button:hover,
.weather-toggle-button:focus-visible {
  border-left-color: color-mix(in srgb, var(--blue) 72%, var(--line));
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  outline: 0;
}
.weather-toggle-button:active { background: color-mix(in srgb, var(--blue) 20%, transparent); }
.weather-toggle-glyph {
  position: absolute;
  z-index: 1;
  top: 9px;
  left: 2px;
  display: block;
  width: 5px;
  height: 5px;
  color: var(--yellow);
  font-size: 0;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: color var(--motion-fast, 140ms) ease, transform var(--motion-fast, 140ms) ease;
}
.weather-toggle-button.is-off {
  color: var(--muted);
  background: transparent;
}
.weather-toggle-button.is-off::before { opacity: .42; }
.weather-toggle-button.is-off .weather-toggle-glyph {
  color: var(--muted);
  transform: rotate(225deg);
}
.weather-toggle-button [data-weather-toggle-label] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
html.weather-panel-hidden .storm-external-lightning {
  display: none !important;
}
@media (max-width: 700px) {
  .weather-toggle-button {
    right: 43px;
    width: 8px;
    min-width: 8px;
    height: 24px;
    min-height: 24px;
  }
  .weather-toggle-button::before { left: 3px; }
  .weather-toggle-glyph { left: 1px; }
}
@media (prefers-reduced-motion: reduce) {
  .weather-toggle-button,
  .weather-toggle-button::before,
  .weather-toggle-glyph { transition: none; }
}
