/* Owner-approved B: top-edge Hide Details; all materials from accepted tokens. */
:root{--weather-panel-width:390px;--weather-sheet-height:42%;--weather-shadow:0 12px 30px #0005}
#view-weather{background:var(--cg-bg);isolation:isolate}
#weatherMapCanvas{position:absolute;inset:0;background:var(--folio-blueprint-bg,#0d2431)}
.weatherMapLayers,.weatherDetails,.weatherPlayback,.weatherShowDetails,.weatherFit,.weatherScalarKey{background:var(--cg-surface);border:1px solid var(--cg-rule);color:var(--cg-bright);box-shadow:var(--weather-shadow);border-radius:10px}
.weatherMapLayers{position:absolute;z-index:500;top:18px;left:calc((100% - var(--weather-panel-width) - 44px)/2);transform:translateX(-50%);display:flex;padding:4px;max-width:calc(100% - 28px)}
.weatherMapLayers button{min-height:44px;min-width:78px;padding:8px 14px;background:none;border:0;border-radius:5px;color:var(--cg-ink);font:var(--cg-meta)/1.3 var(--cg-interface);text-transform:uppercase;cursor:pointer}
.weatherMapLayers button[aria-pressed=true],.weatherDetails .weatherTabs button[aria-pressed=true]{background:var(--cg-focus);color:var(--cg-bg);border-color:var(--cg-focus)}
.weatherMapLayers button:hover,.weatherDetails button:hover,.weatherShowDetails:hover{filter:brightness(1.15)}
.weatherDetails{position:absolute;z-index:510;right:18px;top:84px;bottom:18px;width:var(--weather-panel-width);display:flex;flex-direction:column;overflow:hidden;max-width:calc(100% - 24px)}
.weatherDetails[hidden],.weatherShowDetails[hidden],.weatherScalarKey[hidden],#weatherMapRetry[hidden]{display:none}
.weatherDetailsEdge{display:flex;align-items:center;justify-content:flex-end;position:relative;min-height:44px;background:var(--nav-row);padding:0 12px;flex-shrink:0}
.weatherGrip{position:absolute;left:calc(50% - 18px);top:13px;width:36px;height:4px;background:var(--cg-muted);border-radius:4px;opacity:.7;pointer-events:none}
#weatherHideDetails{min-height:44px;min-width:116px;background:none;border:0;color:var(--cg-ink);font:12px/1.4 var(--cg-interface);display:flex;align-items:center;gap:10px;cursor:pointer}
.weatherChevron{display:inline-block;width:8px;height:8px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin-top:-4px}
.weatherDetailsHeader{padding:16px 18px 0;flex-shrink:0}
#weatherDate{font:400 24px/1.25 var(--cg-display);color:var(--cg-bright);margin:0 0 16px;letter-spacing:0}
.weatherDetails .weatherTabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0;padding:0 0 14px;border-bottom:1px solid var(--cg-rule)}
.weatherDetails .weatherTabs button{min-height:50px;border:1px solid var(--cg-rule);border-radius:5px;background:transparent;color:var(--cg-ink);font:12px/1.35 var(--cg-interface);text-transform:uppercase;padding:8px;white-space:normal}
.weatherDetailsScroll{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;padding:0 18px 20px;scrollbar-width:thin}
.weatherDetailsScroll:focus-visible{outline-offset:-3px}
.weatherDetails #weatherStatus:empty{display:none}
.weatherDetails #weatherStatus{font:12px/1.5 var(--cg-interface);padding:8px 0;margin:0}
.weatherAtAGlance{padding:18px 0 12px;border-bottom:1px solid var(--cg-rule)}
.weatherAtAGlance h2{font:18px/1.4 var(--cg-prose);margin:0 0 2px;color:var(--cg-bright)}
.weatherAtAGlance .weatherWind{font:400 36px/1.2 var(--cg-display);margin:0 0 20px;color:var(--cg-bright)}
.weatherAtAGlance dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0}
.weatherAtAGlance dt{font:12px/1.5 var(--cg-interface);color:var(--cg-muted);min-height:36px}
.weatherAtAGlance dd{font:500 18px/1.5 var(--cg-prose);color:var(--cg-bright);margin:0}
.weatherReferenceTime,.weatherReferenceScope,.weatherDetails .weatherOverviewNote{font:12px/1.6 var(--cg-interface);color:var(--cg-muted);margin:12px 0 0}
.weatherDetails .weatherTimeline{margin:18px 0}
.weatherDetails .weatherTimeline .timelineHeader h2{font:20px/1.35 var(--cg-prose)}
.weatherDetails .timelineHeader p{font-size:12px}
.weatherDetails .timelineRow{display:block;border-top:0;padding-top:0}
.weatherDetails .timelineLabel{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;padding:0 0 6px}
.weatherDetails .timelineLabel h3{font:12px/1.5 var(--cg-interface);margin:0}
.weatherDetails .timelineLabel>span{font-size:12px}
.weatherDetails .timelinePlot{height:110px}
.weatherDetails .timelineControls{margin-left:0}
.weatherDetails .timelineSelected p{font-size:12px;line-height:1.6}
.weatherDetails .timelineEvidence{font-size:12px}
.weatherDetails .weatherOverview{display:block}
.weatherDetails .conditionsMetrics{grid-template-columns:1fr 1fr}
.weatherDetails .conditionsDisclosure{font-size:14px}
.weatherDetails :is(p,li,a,dd){overflow-wrap:anywhere}
.weatherDetails .wxSources{max-width:100%}
.weatherDetails #weatherRefresh{min-height:44px;margin-top:12px}
.weatherPlayback{position:absolute;left:18px;bottom:18px;z-index:500;width:min(530px,calc(100% - var(--weather-panel-width) - 58px));display:grid;grid-template-columns:44px minmax(0,1fr) 98px;align-items:center;gap:14px;padding:10px}
#weatherPlay{width:44px;height:44px;border:1px solid var(--cg-rule);border-radius:5px;background:transparent;color:var(--cg-bright);cursor:pointer}
#weatherPlay svg{width:22px;height:22px;vertical-align:middle}
.weatherScrub{min-width:0}
#weatherTime{display:block;width:100%;height:44px;margin:0;accent-color:var(--cg-focus);cursor:pointer}
#weatherTimeTicks{display:flex;justify-content:space-between;gap:2px;font:12px/1.4 var(--cg-interface);color:var(--cg-ink)}
#weatherValidTime{display:flex;justify-content:center;align-items:center;min-height:44px;min-width:0;border:1px solid var(--cg-rule);border-radius:5px;font:12px/1.3 var(--cg-number);color:var(--cg-bright);text-align:center}
.weatherShowDetails{position:absolute;z-index:520;right:18px;bottom:18px;padding:10px 16px;min-height:44px;display:flex;align-items:center;gap:14px;font:14px var(--cg-interface);cursor:pointer}
.weatherShowDetails .weatherChevron{transform:rotate(225deg);margin-top:4px}
.weatherFit{position:absolute;z-index:500;left:18px;top:18px;min-height:44px;padding:8px 12px;font:12px var(--cg-interface);cursor:pointer}
#weatherMapCanvas .leaflet-top{top:70px}
.weatherMapFeedback{position:absolute;z-index:500;bottom:114px;left:18px;max-width:calc(100% - var(--weather-panel-width) - 60px);font:12px/1.6 var(--cg-interface);color:var(--cg-bright);text-shadow:0 1px 3px #000;background:var(--cg-surface);border-radius:4px;padding:4px 8px}
.weatherMapFeedback:has(#weatherMapStatus:empty){display:none}
#weatherMapRetry{border:0;background:none;color:var(--cg-focus);font:inherit;text-decoration:underline;min-height:44px;padding:4px 10px;cursor:pointer}
.weatherScalarKey{position:absolute;z-index:500;left:18px;bottom:156px;display:flex;align-items:center;gap:8px;font:12px var(--cg-interface);padding:8px}
.weatherScalarKey i{width:70px;height:6px}
.detailsHidden .weatherMapLayers{left:50%}
.detailsHidden .weatherMapFeedback{max-width:calc(100% - 36px)}
@media(min-width:961px) and (max-width:1100px){
 :root{--weather-panel-width:340px}
 .weatherMapLayers{left:18px;transform:none}
 .weatherFit{top:80px}
 #weatherMapCanvas .leaflet-top{top:134px}
 .weatherPlayback{gap:6px;grid-template-columns:44px minmax(0,1fr) 80px}
 .weatherDetails{top:82px}
}
@media(max-width:960px){
 #view-weather{--weather-panel-width:0px}
 .weatherMapLayers,.detailsHidden .weatherMapLayers{left:12px;right:12px;top:12px;transform:none;max-width:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
 .weatherMapLayers button{min-width:0;padding:8px 4px;font-size:12px}
 .weatherDetails{left:12px;right:12px;top:auto;bottom:8px;width:auto;height:var(--weather-sheet-height);max-width:none;min-height:245px}
 .weatherDetailsHeader{padding:10px 12px 0}
 #weatherDate{font-size:22px;margin-bottom:10px}
 .weatherDetails .weatherTabs{padding-bottom:10px}
 .weatherDetails .weatherTabs button{min-height:44px;font-size:12px;padding:6px}
 .weatherDetailsScroll{padding-inline:12px}
 .weatherDetailsEdge{min-height:44px}
 #weatherHideDetails{min-height:44px}
 .weatherGrip{left:calc(50% - 18px);width:30px}
 .weatherAtAGlance{padding-top:12px}
 .weatherAtAGlance .weatherWind{font-size:30px;margin-bottom:12px}
 .weatherAtAGlance dl{gap:8px}
 .weatherAtAGlance dd{font-size:16px}
 .weatherPlayback{left:12px;right:12px;width:auto;bottom:calc(max(var(--weather-sheet-height),245px) + 18px);padding:8px;gap:8px;grid-template-columns:44px minmax(0,1fr) 82px}
 #weatherPlay{width:44px;height:44px}
 #weatherValidTime{font-size:12px}
 #weatherTimeTicks{font-size:12px}
 #weatherTimeTicks span:nth-child(3){display:none}
 .weatherMapFeedback{left:12px;bottom:calc(max(var(--weather-sheet-height),245px) + 112px);max-width:calc(100% - 24px);font-size:12px}
 .weatherScalarKey{left:12px;bottom:calc(max(var(--weather-sheet-height),245px) + 148px);font-size:12px}
 .weatherFit{left:auto;right:12px;top:78px;min-height:44px;padding:8px}
 #weatherMapCanvas .leaflet-top{top:72px}
 .weatherShowDetails{right:12px;bottom:12px}
 .detailsHidden .weatherPlayback{bottom:68px}
 .detailsHidden .weatherMapFeedback{bottom:158px}
 .detailsHidden .weatherScalarKey{bottom:190px}
}
@media(max-height:580px) and (min-width:961px){.weatherDetails{top:76px;bottom:8px}.weatherDetailsHeader{padding-top:8px}#weatherDate{margin-bottom:8px}}
@media(prefers-reduced-motion:reduce){.weatherMapView *{scroll-behavior:auto;animation:none;transition:none}}
