/* NYFE Weather. Uses the shared Tools palette and components from /tools/tools.css. */
.weather-app,.wx-stack{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
.wx-controls{border:1px solid var(--line);background:#101010;border-radius:18px;padding:22px;display:grid;gap:16px}
.wx-search{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-end}
.wx-search label{flex:1 1 220px}
.wx-search button{min-height:48px}
.wx-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}
.wx-presets,.wx-units{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.wx-presets>span,.wx-units>span{font-size:12px;color:#aaa;margin-right:2px}
.wx-presets button,.wx-units button{min-height:40px;padding:7px 12px;font-size:13px;font-weight:500}
.wx-units button[aria-pressed=true]{background:var(--gold);border-color:var(--gold);color:#000;font-weight:700}
#weather-status{margin:0}
.wx-tabs{display:flex;gap:6px;border-bottom:1px solid var(--line)}
.wx-tabs [role=tab]{border:0;border-bottom:3px solid transparent;border-radius:0;background:none;color:#c9c9c9;min-height:46px;padding:10px 16px;font-size:15px;font-weight:700}
.wx-tabs [role=tab][aria-selected=true]{color:var(--gold);border-bottom-color:var(--gold)}
.wx-tabs [role=tab]:hover{color:#fff;background:none}
.wx-place{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:4px 0 0}
.wx-place h2{margin:0;font-size:24px}
.wx-card{border:1px solid var(--line);background:#101010;border-radius:18px;padding:22px}
.wx-card>h3{font-size:18px;letter-spacing:-.02em;margin:0 0 14px}
.wx-now{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:22px;align-items:center}
.wx-now-main{display:flex;align-items:center;gap:18px;border:1px solid #554912;background:#1d1a0b;border-radius:12px;padding:18px 22px}
.wx-now-main .wx-icon{width:86px;height:86px;flex:none}
.wx-temp{display:block;color:var(--gold);font-size:clamp(54px,7vw,84px);font-weight:750;letter-spacing:-.05em;line-height:1;font-variant-numeric:tabular-nums}
.wx-condition{color:#f6f6f6;font-size:18px;font-weight:650;margin:8px 0 2px}
.wx-range{margin:0;font-size:14px}
.wx-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0}
.wx-facts div{border-top:1px solid #292929;padding-top:10px}
.wx-facts dt{font-size:12px;color:#999}
.wx-facts dd{margin:3px 0 0;font-size:16px;font-weight:650;font-variant-numeric:tabular-nums}
.wx-source{font-size:12px;color:#8f8f8f;margin:14px 0 0}
.wx-icon{width:30px;height:30px;fill:none;stroke:#e9e9e9;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.wx-icon .wx-sun{stroke:var(--gold)}.wx-icon circle.wx-sun{fill:rgba(255,215,0,.18)}
.wx-icon .wx-moon{stroke:#cfd8ff;fill:rgba(207,216,255,.12)}
.wx-icon .wx-rain{stroke:#7fb8ff}.wx-icon .wx-snow{stroke:#fff;stroke-width:2.6}
.wx-hourly{list-style:none;margin:0;padding:0 0 6px;display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:thin}
.wx-hourly li{flex:0 0 74px;scroll-snap-align:start;display:grid;justify-items:center;gap:4px;border:1px solid #262626;border-radius:12px;padding:10px 6px;background:#0b0b0b;font-variant-numeric:tabular-nums}
.wx-hourly li:first-child{border-color:#554912;background:#1d1a0b}
.wx-h-time{font-size:12px;color:#aaa}
.wx-hourly strong{font-size:17px}
.wx-pop{font-size:12px;color:#7fb8ff;min-height:16px}.wx-pop-high{font-weight:700}
.wx-h-wind{font-size:11px;color:#999}
.wx-daily details{border-top:1px solid #292929}
.wx-daily details:first-child{border-top:0}
.wx-daily summary{display:grid;grid-template-columns:120px 34px minmax(0,1fr) 44px 44px minmax(60px,140px) 44px;align-items:center;gap:10px;padding:10px 0;cursor:pointer;list-style:none;font-variant-numeric:tabular-nums}
.wx-daily summary::-webkit-details-marker{display:none}
.wx-d-name{font-weight:700}
.wx-d-short{color:#cfcfcf;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wx-d-lo{color:#999;text-align:right}.wx-d-hi{font-weight:700}
.wx-bar{position:relative;height:6px;border-radius:6px;background:#262626}
.wx-bar i{position:absolute;top:0;bottom:0;border-radius:6px;background:linear-gradient(90deg,#7fb8ff,var(--gold),#ff9f45)}
.wx-daily details p{font-size:14px;margin:0 0 10px}
.wx-alert{border:1px solid #6b2a22;background:#1d0d0b;border-radius:12px;padding:14px 16px}
.wx-alert-minor,.wx-alert-unknown{border-color:#554912;background:#1d1a0b}
.wx-alert summary{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline;cursor:pointer}
.wx-alert summary .eyebrow{color:#ffb4a8}.wx-alert-minor summary .eyebrow{color:var(--gold)}
.wx-alert summary span:last-child{width:100%;font-size:13px;color:#cfcfcf}
.wx-alert p{font-size:14px;margin:10px 0 0}
#weather-alerts{display:grid;gap:10px}#weather-alerts:empty{display:none}
.wx-map-controls{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;justify-content:space-between;margin-bottom:12px}
.wx-layers{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center;border:0;margin:0;padding:0}.wx-layers legend{float:left;padding:0;margin:0 4px 0 0}.wx-time .field-help{margin:0}
.wx-layers label{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;min-height:40px}
.wx-layers input{width:18px;height:18px;min-height:0;margin:0;accent-color:var(--gold)}
.wx-time{display:flex;align-items:center;gap:10px;flex:1 1 320px;max-width:520px}
.wx-time input[type=range]{flex:1;min-height:0;padding:0;border:0;background:none;accent-color:var(--gold)}
.wx-time button{min-height:40px;padding:7px 14px;font-size:13px}
#wx-hour-label{font-size:13px;color:#cfc7a5;min-width:92px;font-variant-numeric:tabular-nums}
#weather-map{height:min(68vh,620px);min-height:380px;border-radius:14px;border:1px solid var(--line);background:#0b0b0b;z-index:0}
.wx-legend{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;font-size:12px;color:#bbb;margin-top:10px}
.wx-legend-title{font-weight:700;color:#e6e6e6}
.wx-legend i{display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:5px;vertical-align:-2px;border:1px solid #000}
.wx-arrow{display:flex;flex-direction:column;align-items:center;pointer-events:auto}
.wx-arrow svg{display:block;filter:drop-shadow(0 1px 1px rgba(0,0,0,.6))}
.wx-arrow span{font-size:11px;font-weight:800;color:#fff;text-shadow:0 0 3px #000,0 0 2px #000;line-height:1}
.wx-station{display:flex;align-items:center;justify-content:center}
.wx-station-temp{background:#000;color:var(--gold);border:1px solid var(--gold);border-radius:999px;padding:2px 8px;font-size:12px;font-weight:800;white-space:nowrap}
.wx-radar{mix-blend-mode:normal}
#weather-map .leaflet-tooltip{background:#111;color:#f2f2f2;border:1px solid #3a3a3a;border-radius:8px;font-size:12px;line-height:1.45}
#weather-map .leaflet-tooltip:before{display:none}
#weather-map .leaflet-control-attribution{background:rgba(0,0,0,.7);color:#bbb}
#weather-map .leaflet-control-attribution a{color:#ffd700}
.weather-app[aria-busy=true] .wx-card{opacity:.6;transition:opacity .2s}
@media(max-width:1023px){.wx-now{grid-template-columns:1fr}.wx-facts{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){
.wx-controls,.wx-card{padding:16px;border-radius:14px}
.wx-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
.wx-now-main{padding:14px 16px;gap:12px}.wx-now-main .wx-icon{width:64px;height:64px}
.wx-daily summary{grid-template-columns:76px 28px minmax(0,1fr) 38px 38px;gap:8px}
.wx-daily .wx-bar,.wx-daily .wx-pop{display:none}
.wx-daily .wx-icon{width:26px;height:26px}
#weather-map{height:62vh;min-height:340px}
.wx-time{max-width:none}}
/* Premium dark basemap: restyle the OSM tiles to the site's black palette. */
#weather-map{background:#05070a}
#weather-map .leaflet-tile-pane{filter:invert(1) hue-rotate(180deg) brightness(.82) contrast(.92) saturate(.38)}
#weather-map .leaflet-control-zoom a{background:#111;color:#f2f2f2;border-color:#333}
#weather-map .leaflet-control-zoom a:hover{background:#1d1a0b;color:var(--gold)}
.wx-flow{pointer-events:none}
.wx-readout{background:rgba(0,0,0,.82);color:#f2f2f2;border:1px solid #3a3a3a;border-radius:10px;padding:7px 11px;font-size:13px;font-weight:650;font-variant-numeric:tabular-nums;box-shadow:0 4px 14px rgba(0,0,0,.4)}
.wx-legend-bar{display:inline-block;width:120px;height:8px;border-radius:8px;border:1px solid #000}
.wx-radar-note{margin:0 0 10px}
.wx-station-temp{box-shadow:0 0 0 3px rgba(0,0,0,.35)}
#weather-map .leaflet-tile{mix-blend-mode:plus-lighter}
.wx-flow{filter:drop-shadow(0 0 2px rgba(255,215,0,.25))}
