/* Reserve the same space before loading and after expiry. */
.weather-slot { height:48px; min-height:48px; max-height:48px; max-width:1240px; width:calc(100% - 40px); margin:24px auto 18px; }
.weather-banner[hidden] { display:none; }
.weather-symbols { position:absolute; width:0; height:0; overflow:hidden; }
.weather-summary > strong,.weather-mode,.weather-hilo,.weather-rain { flex:none; }
.weather-condition { min-width:0; max-width:220px; overflow:hidden; text-overflow:ellipsis; }
.weather-alert-copy { min-width:0; overflow:hidden; text-overflow:ellipsis; }
.weather-summary [hidden] { display:none; }
.weather-banner[data-mode="alert"] { background:#761916; color:#fff; border-color:#ffcd55; }
.weather-banner[data-mode="alert"] .weather-place { color:#ffcd55; }
.weather-banner[data-mode="alert"] .weather-updated { color:#fff; }
.weather-banner[data-mode="alert"] .weather-summary { overflow:hidden; }
.weather-dialog [data-weather-detail] { white-space:pre-wrap; }
.home-streamlined .local-strip #today-label { white-space:nowrap; flex-shrink:0; }

.weather-banner{box-sizing:border-box;width:100%;height:48px;margin:0;padding:0 18px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:14px;border:1px solid #244052;border-radius:11px;background:#12142d;color:#f6f3e8}
.weather-place{font-size:16px;font-weight:800;letter-spacing:2px;color:#1ce0cb;white-space:nowrap}
.weather-summary{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;border:0;padding:0;background:none;color:inherit;font:750 17px/1.2 system-ui;letter-spacing:1.2px;white-space:nowrap;cursor:pointer}
.weather-summary strong{font-size:24px;letter-spacing:.6px;font-weight:850}
.weather-summary:focus-visible{outline:2px solid #00d6c2;outline-offset:5px;border-radius:2px}
.weather-icon{flex:none;width:21px;height:21px;fill:none;stroke:#ffc431;stroke-width:1.7;stroke-linecap:round}
.weather-mode{font-size:9px;letter-spacing:.6px;color:#9eb4cd;border:1px solid #38506c;padding:3px 5px;border-radius:4px}
.weather-updated{justify-self:end;color:#89a8c9;font-size:11px;letter-spacing:1.2px;font-weight:750;white-space:nowrap}
.home-streamlined .buzz-masthead{margin-top:0!important}
.home-streamlined .local-strip{font-size:12px;font-weight:750;letter-spacing:1.2px}

.weather-dialog{width:min(460px,calc(100% - 32px));border:1px solid #38506c;border-top:3px solid #00d6c2;background:#081526;color:#f6f3e8;border-radius:14px;padding:24px}
.weather-dialog::backdrop{background:#0009}.weather-dialog h2{font:750 22px/1.3 system-ui;margin:0 0 14px}.weather-dialog p{font:14px/1.7 system-ui;margin:12px 0;color:#c4d0e4}.weather-dialog button{padding:10px 18px;border-radius:7px;background:#00d6c2;color:#081526;font:700 14px system-ui}
@media(max-width:1050px) and (min-width:601px){.weather-banner{grid-template-columns:auto 1fr;padding:0 14px}.weather-updated{display:none}.weather-summary{font-size:13px;gap:6px}}
@media(max-width:600px){
 .weather-slot{width:calc(100% - 32px);margin:12px auto 12px}.weather-banner{height:48px;padding:0 9px;grid-template-columns:auto minmax(0,1fr);gap:7px;border-radius:9px}
 .weather-place{font-size:9px;letter-spacing:.6px}.weather-state,.weather-updated,.weather-rain{display:none}
 .weather-summary{font-size:11px;letter-spacing:0;gap:5px;justify-content:flex-end}
 .weather-summary strong{font-size:21px;letter-spacing:-.2px}.weather-icon{width:15px;height:15px}
 .weather-mode{font-size:7px;letter-spacing:0;padding:3px 3px}.weather-hilo{font-size:10px}.weather-condition{max-width:70px;overflow:hidden;text-overflow:ellipsis}
 .home-streamlined .local-strip{font-size:11px;letter-spacing:.7px;flex-wrap:wrap;justify-content:center;gap:8px 18px;padding:14px 20px}
 .home-streamlined .local-strip span{white-space:nowrap}

}
@media(max-width:350px){.weather-banner{padding:0 5px;gap:4px}.weather-summary{gap:4px}.weather-mode{border:0;padding:0}.weather-condition{max-width:48px}.weather-hilo{font-size:9px}}

@media(min-width:1051px){.weather-banner{grid-template-columns:minmax(140px,1fr) minmax(0,auto) minmax(140px,1fr)}}
@media(max-width:600px){.weather-banner[data-mode="alert"] .weather-place{font-size:8px}.weather-banner[data-mode="alert"] .weather-summary{justify-content:flex-start}}

.weather-condition,.weather-hilo,.weather-rain,.weather-updated { text-transform:uppercase; }

.weather-updated.weather-solar{font-size:12px;letter-spacing:.4px;color:#f6d48a}

/* The next sun event stays visible below the compact phone weather line. */
@media(max-width:600px){
 .weather-banner{grid-template-rows:26px 14px;row-gap:0;padding-block:3px}
 .weather-place,.weather-summary{grid-row:1}
 .weather-updated.weather-solar{display:block;grid-row:2;grid-column:1/-1;justify-self:center;font-size:10px;line-height:14px;letter-spacing:.2px}
 .weather-banner[data-mode="alert"]{grid-template-rows:1fr}
 .weather-banner[data-mode="alert"] .weather-updated{display:none}
}

/* Compact phone weather: desktop rules remain unchanged. */

@media(max-width:600px){
.weather-slot{height:56px;min-height:56px;max-height:56px}
.weather-banner{height:56px;padding:4px 12px;grid-template-columns:auto auto;grid-template-rows:28px 16px;gap:0 8px;justify-content:center}
.weather-place{grid-row:1;grid-column:1;font-size:12px;letter-spacing:.3px;color:#1ce0cb}
.weather-summary{grid-row:1;grid-column:2;min-height:28px;gap:7px;font-size:12px;justify-content:center}
.weather-summary:before{content:'·';color:#89a8c9;font-size:14px}
.weather-summary strong{font-size:24px;letter-spacing:-.4px}
.weather-mode,.weather-condition,.weather-icon{display:none}
.weather-hilo{font-size:12px;color:#d8d7e5;letter-spacing:0}
.weather-updated.weather-solar{grid-row:2;grid-column:1/-1;justify-self:center;font-size:10px;line-height:16px;color:#b8c5d7;letter-spacing:.1px}
}

@media(max-width:600px){
.weather-banner[data-mode="forecast"] .weather-condition{display:inline;font-size:11px;max-width:none}
.weather-banner[data-mode="alert"]{grid-template-rows:18px 26px;justify-content:stretch}
.weather-banner[data-mode="alert"] .weather-place{grid-column:1/-1;grid-row:1;font-size:10px}
.weather-banner[data-mode="alert"] .weather-summary{grid-column:1/-1;grid-row:2;justify-content:flex-start;min-height:26px}
.weather-banner[data-mode="alert"] .weather-summary:before{content:none}
}
