/* The two-forecast map. Every class starts with cmx. */
.cmx {
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);
  --wash-2: rgba(255, 255, 255, 0.11);
  --ink: #f3f5f8;
  --ink-2: #a3adbd;
  --ink-3: #7f8a9c;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #04070e;
  color: var(--ink);
  font:
    400 14px / 1.45 Geist,
    Inter,
    system-ui,
    sans-serif;
  color-scheme: dark;
}
.cmx,
.cmx * {
  box-sizing: border-box;
}
.cmx canvas {
  display: block;
  width: 100%;
  height: clamp(560px, 52vw, 700px);
  touch-action: pan-y;
  cursor: grab;
}
.cmx canvas:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -3px;
}
.cmx button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
.cmx button:focus-visible,
.cmx input:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.cmx .cmx-panel {
  position: absolute;
  background: rgba(10, 14, 23, 0.72);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
}
.cmx .cmx-where {
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
}
.cmx .cmx-where button {
  flex: none;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 500;
  white-space: nowrap;
}
.cmx .cmx-where button:hover {
  color: var(--ink);
}
.cmx .cmx-where button[aria-pressed="true"] {
  background: var(--ink);
  color: #0a0e17;
}
.cmx .cmx-key {
  left: 14px;
  bottom: 40px;
  width: 252px;
  border-radius: 18px;
  padding: 11px 16px 9px;
}
.cmx .cmx-key b {
  font-weight: 500;
  font-size: 13px;
}
.cmx .cmx-key i {
  display: block;
  height: 4px;
  border-radius: 2px;
  margin-top: 6px;
  background: linear-gradient(
    90deg,
    rgb(6, 16, 44),
    rgb(14, 52, 112) 20%,
    rgb(26, 112, 196) 40%,
    rgb(46, 190, 255) 60%,
    rgb(168, 234, 255) 80%,
    #fff
  );
}
.cmx .cmx-key p {
  display: flex;
  justify-content: space-between;
  margin: 5px 0 0;
  font-size: 11px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.cmx .cmx-zoom {
  right: 14px;
  bottom: 40px;
  border-radius: 18px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cmx .cmx-zoom button {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--ink-2);
}
.cmx .cmx-zoom button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}
.cmx svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cmx .cmx-time {
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(470px, calc(100% - 560px));
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 999px;
  padding: 5px 22px 5px 5px;
}
.cmx .cmx-time button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--wash-2);
  flex: none;
  display: grid;
  place-items: center;
}
.cmx .cmx-time button:hover {
  background: rgba(255, 255, 255, 0.2);
}
.cmx .cmx-time svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: none;
}
.cmx .cmx-time div {
  flex: none;
  min-width: 104px;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.cmx .cmx-time b {
  display: block;
  font-weight: 600;
  font-size: 15px;
}
.cmx .cmx-time div > span {
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
  display: block;
}
.cmx input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  height: 28px;
  flex: 1;
  min-width: 0;
  margin: 0;
  cursor: pointer;
  --p: 0%;
}
.cmx input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    var(--ink) var(--p),
    var(--line-2) var(--p)
  );
}
.cmx input[type="range"]::-moz-range-track {
  height: 3px;
  border-radius: 2px;
  background: var(--line-2);
}
.cmx input[type="range"]::-moz-range-progress {
  height: 3px;
  border-radius: 2px;
  background: var(--ink);
}
.cmx input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6.5px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}
.cmx input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}
@media (max-width: 940px) {
  .cmx .cmx-where {
    left: 14px;
    right: 14px;
    transform: none;
    overflow-x: auto;
    scrollbar-width: none;
    width: fit-content;
    max-width: calc(100% - 28px);
  }
  .cmx .cmx-key {
    width: 180px;
    bottom: 100px;
    padding: 8px 12px 7px;
  }
  .cmx .cmx-zoom {
    bottom: 100px;
  }
  .cmx .cmx-time {
    left: 14px;
    right: 14px;
    width: auto;
    transform: none;
    bottom: 36px;
  }
}
.cmx-help {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
