/*
 * SPDX-FileCopyrightText: 2026 minimaccars
 * SPDX-License-Identifier: MIT
 */
/* Uses the original map's glass, brass, foam and typography tokens. */
#weatherPanel { top: 76px; right: 18px; width: 334px; border-radius: 18px; overflow: hidden; background: rgba(10,27,30,.9); z-index: 6; }
#weatherPanel [hidden] { display: none !important; }
#weatherPanel button:focus-visible, #weatherPanel a:focus-visible { outline: 2px solid var(--foam); outline-offset: -3px; border-radius: 8px; }
.wx-toggle { width: 100%; text-align: left; padding: 15px 17px 11px; display: flex; gap: 12px; align-items: center; }
.wx-heading { flex: 1; min-width: 0; }
.wx-eyebrow { display: flex; gap: 6px; align-items: center; font-size: 9px; letter-spacing: .13em; text-transform: uppercase; color: var(--foam); }
.wx-dot { width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.wx-title { display: block; font: 400 21px/1.2 var(--serif); margin-top: 4px; }
.wx-place { display: block; color: var(--mut); font: 10px var(--mono); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-chevron { font-size: 18px; color: var(--brass); transition: transform .3s; }
#weatherPanel.is-open .wx-chevron { transform: rotate(180deg); }
.wx-summary { display: grid; grid-template-columns: repeat(3,1fr); margin: 0 17px 12px; }
.wx-mini { padding: 0 9px; border-left: 1px solid var(--line); }
.wx-mini:first-child { border: 0; padding-left: 0; }
.wx-mini:last-child { padding-right: 0; }
.wx-mini strong { display: block; font: 400 23px/1.3 var(--serif); font-variant-numeric: tabular-nums; }
.wx-mini span { color: var(--mut); font-size: 10px; }
.wx-status { color: var(--mut); font-size: 10px; margin: 0 17px 12px; line-height: 1.5; }
.wx-status[data-warning=true] { color: var(--brass); }
.wx-details { border-top: 1px solid var(--line); }
.wx-tabs { display: flex; align-items: center; gap: 5px; padding: 10px 14px; }
.wx-tabs a { flex: 1; text-align: center; font-size: 11px; color: var(--mut); text-decoration: none; padding: 5px 2px; border-radius: 99px; }
.wx-tabs a[aria-current=true] { color: var(--tx); background: rgba(255,255,255,.08); }
.wx-tabs button { color: var(--brass); padding: 6px; font-size: 11px; }
.wx-tabs button:disabled { opacity: .45; cursor: wait; }
.wx-scroll { overflow-y: auto; overscroll-behavior: contain; height: min(440px, calc(100dvh - 345px)); scrollbar-width: thin; scrollbar-color: #667f78 transparent; }
.wx-progress { height: 2px; background: var(--foam); transform: scaleX(0); transform-origin: left; }
.wx-section { padding: 19px 18px 22px; border-bottom: 1px solid var(--line); scroll-margin-top: 0; }
.wx-section h3 { display: flex; gap: 8px; align-items: center; font: 400 22px var(--serif); }
.wx-section h3 small { color: var(--brass); font: 10px var(--mono); margin-left: auto; }
.wx-icon { width: 25px; height: 25px; fill: none; stroke: var(--brass); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wx-reading { display: flex; gap: 8px; align-items: baseline; margin: 12px 0 2px; }
.wx-reading b { font: 400 48px/1.1 var(--serif); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.wx-reading span { font-size: 12px; color: var(--mut); }
.wx-description { color: var(--foam); font-size: 12px; margin-top: 4px; }
.wx-facts { display: flex; gap: 12px; margin: 12px 0; font-size: 11px; color: var(--mut); }
.wx-facts b { color: var(--tx); font-weight: 400; }
.wx-note { font-size: 10px; color: var(--mut); line-height: 1.6; margin-top: 9px; }
.wx-chart { margin: 16px 0 8px; }
.wx-chart svg { width: 100%; height: 72px; overflow: visible; display: block; }
.wx-chart-labels { display: flex; justify-content: space-between; font: 9px var(--mono); color: var(--mut); margin-top: 8px; }
.wx-chart figcaption { font-size: 10px; color: var(--mut); margin-bottom: 8px; }
.wx-hours { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 14px; }
.wx-hour { border-left: 1px solid var(--line); text-align: center; font-size: 10px; color: var(--mut); }
.wx-hour:first-child { border-left: 0; }
.wx-hour strong { display: block; color: var(--tx); font: 400 17px var(--serif); margin: 5px 0; }
.wx-gauge { height: 5px; background: rgba(255,255,255,.1); border-radius: 5px; margin-top: 20px; overflow: hidden; }
.wx-gauge i { display: block; height: 100%; width: 100%; background: var(--foam); transform-origin: left; transform: scaleX(0); }
.wx-air-scale { display: flex; gap: 3px; margin: 17px 0 5px; }
.wx-air-scale span { flex: 1; height: 4px; background: var(--band); border-radius: 2px; opacity: .38; }
.wx-air-scale span.is-active { opacity: 1; box-shadow: 0 0 0 1px var(--tx); }
.wx-source { padding: 16px 18px 20px; color: var(--mut); font-size: 10px; line-height: 1.7; }
.wx-source a { color: var(--foam); }
@media(max-width:820px) {
  #weatherPanel { top: 124px; left: 10px; right: 10px; width: auto; max-width: 360px; }
  .wx-toggle { padding: 10px 14px 7px; }
  .wx-title { font-size: 18px; }
  .wx-place { font-size: 9px; }
  .wx-summary { margin: 0 14px 8px; }
  .wx-mini strong { font-size: 21px; }
  .wx-status { margin: 0 14px 9px; font-size: 9px; }
  .wx-scroll { height: min(420px, calc(100dvh - 403px)); min-height: 110px; }
  #weatherPanel.is-open { z-index: 8; }
}
@media(max-height:560px) and (min-width:821px) { .wx-scroll { height: 170px; } #weatherPanel.is-open { bottom: 12px; overflow-y: auto; } }
@media(prefers-reduced-motion:reduce) { .wx-chevron { transition: none; } .wx-scroll { scroll-behavior: auto; } }
