/*
|[STRIPPED 74 bytes]
| UNITYMIX WEATHER CENTER — CLEAN NOVA DESIGN
| Sngine 5.0
| File: /weather/assets/weather.css
| v4.0.0 — CLEANED, SINGLE LAYOUT, RED ALERTS
|[STRIPPED 74 bytes]
*/

.um-weather-sngine-grid,
.um-weather-sngine-grid * { box-sizing: border-box; }

/* ===== OUTER SNGINE GRID — ONE RULE ONLY ===== */
.um-weather-sngine-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 18px 20px 35px;
    align-items: start;
}
/* Dashboard: NO outer Sngine sidebar — index.php has its own sidebar */
.um-weather-sngine-grid.is-dashboard {
    grid-template-columns: minmax(0, 1fr);
    max-width: 1280px;
}
.um-weather-sngine-grid.has-sngine-sidebar .weather-site-sidebar,
.um-weather-sngine-grid.has-sngine-sidebar .um-weather-left-sidebar {
    min-width: 0;
    position: sticky;
    top: 85px;
}
.weather-main,
.um-weather-main { min-width: 0; width: 100%; }
.um-weather-right-sidebar { display: none !important; }

.um-weather-global-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 11px 14px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.035);
    color: #7c877f;
    font-size: 12px;
}
.um-weather-home-return {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #009c40;
    font-weight: 800;
    text-decoration: none;
}
.um-weather-home-return:hover { color: #00c853; }

/* ===== DASHBOARD ===== */
.um-weather-dashboard {
    width: 100%;
    min-width: 0;
    color: #29352d;
    --um-green: #00c853;
    --um-green-dark: #009c40;
    --um-red: #d92d20;
    --um-red-dark: #b42318;
    --um-red-soft: #fef3f2;
    --um-red-border: #fecdca;
}

/* Inner dashboard layout — sidebar LEFT, content RIGHT */
.um-weather-layout {
    display: grid !important;
    grid-template-columns: 240px minmax(0, 1fr) !important;
    gap: 14px;
    align-items: start;
    width: 100%;
    min-width: 0;
}
.um-weather-sidebar { min-width: 0; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 85px; }
.um-weather-main { min-width: 0; }

/* Welcome */
.um-weather-welcome {
    margin: 0 0 12px;
    padding: 13px 16px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.035);
    font-size: 16px;
    font-weight: 800;
}
.um-weather-welcome span { color: #009c40; }

.um-weather-sidebar-toggle {
    display: none;
    width: 100%;
    min-height: 42px;
    padding: 10px 13px;
    margin-bottom: 12px;
    border: 1px solid #e7ece8;
    border-radius: 11px;
    background: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    text-align: left;
}
.um-weather-sidebar-toggle span { float: right; }

/* Sidebar cards */
.um-weather-side-card {
    padding: 14px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.035);
}
.um-weather-side-brand { display: flex; align-items: center; gap: 10px; }
.um-weather-side-logo {
    width: 38px; height: 38px; flex: 0 0 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 11px; background: #0f1a12; color: #fff; font-size: 19px;
}
.um-weather-side-brand b { display: block; font-size: 14px; font-weight: 850; line-height: 1.2; }
.um-weather-side-brand span { display: block; font-size: 11px; color: #66706a; font-weight: 600; }
.um-weather-side-title { margin: 0 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; color: #8b948c; }
.um-weather-side-nav { display: flex; flex-direction: column; gap: 2px; }
.um-weather-side-nav a, .um-weather-side-nav button {
    display: flex; align-items: center; gap: 9px; width: 100%;
    padding: 9px 10px; border: 0; border-radius: 9px;
    background: transparent; color: #3e4940; text-align: left;
    font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer;
    white-space: normal; word-break: break-word;
}
.um-weather-side-nav a:hover, .um-weather-side-nav button:hover { background: #e7f9ee; color: #009c40; }
.um-weather-side-nav a.is-alert { background: #fef3f2; color: #b42318; }
.um-side-count {
    margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px; background: #d92d20; color: #fff; font-size: 11px; font-weight: 800; flex-shrink: 0;
}
.um-side-count:empty { display: none; }
.um-weather-side-note { font-size: 11.5px; line-height: 1.6; color: #66706a; margin: 0; word-break: break-word; }
.um-weather-side-note b { color: #161c17; }

/* Sidebar alert — event name ONLY */
.um-weather-side-alert-box {
    display: none; padding: 11px 12px; border-radius: 10px;
    background: #fef3f2; border: 1px solid #fecdca; color: #7a271a;
    font-size: 12px; font-weight: 700; line-height: 1.5; cursor: pointer; word-break: break-word;
    max-height: 92px; overflow: hidden;
}
.um-weather-side-alert-box.is-show { display: block; }
#um-weather-side-alert-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.um-weather-side-alert-box small { display: block; font-weight: 600; color: #d92d20; font-size: 11px; margin-top: 4px; }

/* Alert banner — single banner */
.um-weather-alert-banner {
    display: none; align-items: center; gap: 11px;
    margin: 0 0 12px; padding: 12px 13px;
    border-radius: 12px; border: 1px solid #fecdca; background: #fef3f2; color: #7a271a; cursor: pointer;
}
.um-weather-alert-banner.is-show { display: flex; }
.um-weather-alert-banner-icon {
    width: 32px; height: 32px; flex: 0 0 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 999px; background: #d92d20; color: #fff; font-size: 17px;
}
.um-weather-alert-banner b { display: block; font-size: 13px; font-weight: 850; color: #b42318; word-break: break-word; }
.um-weather-alert-banner span { display: block; font-size: 12px; line-height: 1.5; margin-top: 2px; word-break: break-word; }
.um-weather-alert-banner em { display: block; font-style: normal; font-size: 11px; font-weight: 800; color: #d92d20; margin-top: 4px; }

/* ===== HERO — ONE DEFINITION ONLY ===== */
.um-weather-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 20px 20px 20px 24px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
    position: relative;
    overflow: visible;
}
.um-weather-hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #00c853; border-radius: 4px 0 0 4px; }
.um-weather-hero.has-alert::before { background: #d92d20; }
.um-weather-eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 9px; border-radius: 999px; background: #e7f9ee; color: #009c40;
    font-size: 10px; font-weight: 800; letter-spacing: 1.1px; white-space: normal; max-width: 100%;
}
.um-weather-hero h1 {
    margin: 10px 0 4px; color: #161c17;
    font-size: clamp(22px, 3vw, 28px); font-weight: 850; line-height: 1.15;
    white-space: normal; overflow: visible;
}
.um-weather-hero-sub, .um-weather-hero-description { margin: 0 0 12px; color: #66706a; font-size: 12.5px; line-height: 1.6; }
.um-weather-hero-temp-row { display: flex; align-items: flex-start; gap: 12px; margin: 6px 0 4px; }
.um-weather-hero-icon { font-size: 44px; line-height: 1; margin-top: 6px; }
.um-weather-temperature { font-size: 64px; font-weight: 850; line-height: 1; letter-spacing: -2px; color: #161c17; }
.um-weather-condition { margin: 4px 0 0; font-size: 14px; font-weight: 750; color: #161c17; }
.um-weather-updated { margin: 4px 0 0; color: #8b948c; font-size: 11px; }
.um-weather-location { margin: 12px 0 6px; font-size: 14px; font-weight: 800; word-break: break-word; }
.um-weather-location-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
#um-weather-location-status { color: #66706a; font-size: 11px; line-height: 1.4; }
.um-weather-error { color: #c0392b !important; }
.um-weather-button {
    min-height: 38px; padding: 9px 15px; border: 0; border-radius: 9px;
    background: #00c853; color: #fff; font-size: 12px; font-weight: 800; cursor: pointer;
}
.um-weather-button:hover { background: #009c40; }
.um-weather-button:disabled { opacity: .55; cursor: wait; }
.um-weather-search { display: flex; gap: 8px; margin-top: 12px; }
.um-weather-search input {
    flex: 1; min-width: 0; min-height: 39px; padding: 9px 12px;
    border: 1px solid #dfe6e1; border-radius: 9px; background: #fbfcfb; color: #263027; font-size: 13px; outline: none;
}
.um-weather-search input:focus, .um-weather-feed-search:focus { border-color: #00c853; box-shadow: 0 0 0 3px rgba(0,200,83,.12); background: #fff; }
.um-weather-search-results { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
.um-weather-search-result {
    width: 100%; padding: 10px 12px; border: 1px solid #e7ece8; border-radius: 9px;
    background: #f4f7f5; color: #161c17; text-align: left; font-size: 12px; font-weight: 600; cursor: pointer;
}
.um-weather-search-result:hover { background: #e7f9ee; color: #009c40; }

/* Hero stats 2x2 */
.um-weather-hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.um-weather-stat { padding: 14px; border-radius: 11px; border: 1px solid #e7ece8; background: #f7f9f7; }
.um-weather-stat-label { display: block; color: #66706a; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.um-weather-stat strong { display: block; margin: 7px 0 3px; font-size: 24px; font-weight: 850; }
.um-weather-stat small { color: #8b948c; font-size: 10.5px; }

/* Current panel (used by some hero variants) */
.um-weather-current { padding: 14px; border-radius: 11px; background: #f4f8f5; text-align: center; }
.um-weather-current-icon { font-size: 32px; line-height: 1.3; }

/* Sections */
.um-weather-section { margin-bottom: 14px; }
.um-weather-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.um-weather-section-heading h2 { margin: 0; font-size: 17px; font-weight: 850; }
.um-weather-section-heading p { margin: 3px 0 0; color: #66706a; font-size: 11px; }

/* Hourly */
.um-weather-panel, .um-weather-alerts, .um-weather-feed { padding: 15px; border-radius: 14px; border: 1px solid #e7ece8; background: #fff; box-shadow: 0 2px 10px rgba(16,36,22,.06); }
.um-weather-hourly { display: grid; grid-auto-columns: minmax(104px, 1fr); grid-auto-flow: column; gap: 8px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: thin; }
.um-weather-hour-card { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 13px 9px; border-radius: 10px; border: 1px solid #e7ece8; background: #f7f9f7; text-align: center; }
.um-weather-hour-time, .um-weather-hour-rain { color: #66706a; font-size: 10px; font-weight: 600; }
.um-weather-hour-icon { font-size: 23px; }
.um-weather-hour-temp { font-size: 18px; font-weight: 850; }

/* Weekly */
.um-weather-weekly { display: flex; flex-direction: column; }
.um-weather-day { display: grid; grid-template-columns: minmax(70px, 1fr) 40px minmax(100px, 1.5fr) minmax(75px, auto); align-items: center; gap: 12px; padding: 11px 5px; border-bottom: 1px solid #e7ece8; }
.um-weather-day:last-child { border-bottom: 0; }
.um-weather-day-name { font-size: 12px; font-weight: 800; }
.um-weather-day-icon { font-size: 20px; text-align: center; }
.um-weather-day-condition { color: #66706a; font-size: 11px; }
.um-weather-day-temperatures { display: flex; justify-content: flex-end; gap: 12px; font-size: 12px; font-weight: 800; }
.um-weather-day-low { color: #8b948c; }

/* ===== ALERTS — RED ONLY, NO YELLOW ===== */
.um-weather-alerts.has-alerts { border-color: #fecdca; }
.um-weather-alert-message {
    padding: 11px; border-radius: 8px;
    background: #fef3f2; color: #7a271a; font-size: 11px; line-height: 1.6;
}
.um-weather-alert-item {
    margin-bottom: 10px; padding: 13px 14px; border-radius: 9px;
    border-left: 5px solid #d92d20 !important;
    border-top: 1px solid #fecdca !important;
    border-right: 1px solid #fecdca !important;
    border-bottom: 1px solid #fecdca !important;
    background: #fef3f2 !important;
    color: #43302c; cursor: pointer; word-break: break-word;
}
.um-weather-alert-item:last-child { margin-bottom: 0; }
.um-weather-alert-item strong { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 850; color: #b42318; }
.um-weather-alert-item p { margin: 4px 0; font-size: 11.5px; line-height: 1.6; color: #43302c; }
.um-weather-alert-item a { display: inline-block; margin-top: 7px; color: #b42318; font-size: 11px; font-weight: 800; text-decoration: underline; }
.um-weather-placeholder { padding: 18px 12px; color: #66706a; font-size: 12px; text-align: center; }
.um-weather-attribution { margin: 9px 0; color: #8b948c; font-size: 10px; }
.um-weather-attribution a { color: #009c40; text-decoration: underline; }

/* Feed */
.um-weather-feed { padding: 16px; }
.um-weather-feed-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 13px 0; }
.um-weather-feed-search { flex: 1 1 220px; min-width: 0; min-height: 38px; padding: 9px 12px; border: 1px solid #dfe6e1; border-radius: 9px; background: #fbfcfb; color: #263027; font-size: 12px; outline: none; }
.um-weather-feed-meta { color: #66706a; font-size: 11px; }
.um-weather-no-match { display: none; margin-bottom: 13px; padding: 12px; border-radius: 9px; background: #f3f6f4; color: #59645b; font-size: 12px; }
.um-weather-no-match.is-visible { display: block; }
.um-weather-feed-empty { padding: 20px; border-radius: 10px; background: #f7f9f7; color: #657067; font-size: 12px; text-align: center; }
.um-weather-feed-empty h3 { margin: 0 0 7px; font-size: 15px; font-weight: 850; color: #161c17; }
.um-weather-feed-empty p { margin: 5px 0; }
.um-weather-feed-publisher { margin: 10px 0 15px; }
.um-weather-feed-posts ul { margin: 0; padding: 0; list-style: none; }
.um-weather-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 17px; }
.um-weather-page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 8px; background: #f0f3f1; color: #3e4940; font-size: 12px; font-weight: 700; text-decoration: none; }
.um-weather-page-link:hover { background: #e7f9ee; color: #009c40; }
.um-weather-page-link.is-current { background: #00c853; color: #fff; }
.um-weather-page-link.is-disabled { opacity: .4; pointer-events: none; }
.um-weather-feed-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 16px; padding-top: 13px; border-top: 1px solid #e7ece8; color: #66706a; font-size: 10px; }
.um-weather-feed-footer a { color: #009c40; text-decoration: underline; }
#um-weather-community, #um-weather-alert-section, #um-weather-overview, #um-weather-forecast { scroll-margin-top: 90px; }

/* Launcher */
.um-weather-launcher { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 20px; }
.um-weather-launcher button {
    display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 10px 15px;
    border: 0; border-radius: 9px; background: #fff; color: #333;
    box-shadow: 0 2px 10px rgba(0,0,0,.055); font-size: 13px; font-weight: 700; cursor: pointer;
}
.um-weather-launcher button:hover { background: #eaf8ef; color: #008f3b; }

/* Pop-outs — BELOW Sngine chat, not 99990 */
.um-weather-popout {
    position: fixed; z-index: 9000; top: 110px; right: 22px; display: none;
    width: min(390px, calc(100vw - 30px)); max-height: min(72vh, 650px); overflow: hidden;
    border-radius: 14px; border: 1px solid #e7ece8; background: #fff; color: #161c17; box-shadow: 0 14px 40px rgba(0,0,0,.18);
}
.um-weather-popout.is-open { display: flex; flex-direction: column; }
.um-weather-popout-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 10px 12px 10px 14px; background: #0f1a12; color: #fff; cursor: move; user-select: none; }
.um-weather-popout-title { font-size: 13px; font-weight: 800; }
.um-weather-popout-controls { display: flex; gap: 5px; }
.um-weather-popout-controls button { width: 30px; height: 28px; border: 0; border-radius: 7px; background: rgba(255,255,255,.14); color: #fff; font-size: 18px; cursor: pointer; }
.um-weather-popout-controls button:hover { background: #00c853; }
.um-weather-popout-content { overflow-y: auto; padding: 15px; font-size: 13px; }
.um-weather-popout-content h3 { margin: 0 0 7px; font-size: 15px; font-weight: 800; }
.um-weather-popout-content p { margin: 7px 0 11px; color: #66706a; line-height: 1.6; }
.um-weather-popout-content a { display: flex; justify-content: space-between; gap: 10px; padding: 11px 10px; border-bottom: 1px solid #e7ece8; border-radius: 8px; color: #161c17; text-decoration: none; font-weight: 700; }
.um-weather-popout-content a:hover { background: #e7f9ee; color: #009c40; }
.um-weather-resource-note { margin-top: 12px; padding: 11px 12px; border-radius: 9px; background: #f3f6f4; color: #5f6a62; font-size: 11px; line-height: 1.6; }

/* Red alert pop-out */
.um-weather-alert-popout {
    position: fixed; z-index: 9001; right: 18px; bottom: 18px; display: none;
    width: min(380px, calc(100vw - 32px)); max-height: min(70vh, 520px); overflow: hidden; border-radius: 14px;
    border: 1px solid #fecdca; background: #fff; color: #1a1a1a; box-shadow: 0 16px 44px rgba(180,20,10,.28);
}
.um-weather-alert-popout.is-open { display: flex; flex-direction: column; animation: umAlertSlide .22s ease; }
@keyframes umAlertSlide { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.um-weather-alert-popout-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 50px; padding: 10px 12px 10px 14px; background: #d92d20; color: #fff; cursor: move; user-select: none; }
.um-weather-alert-popout-header b { font-size: 13px; font-weight: 850; }
.um-weather-alert-popout-header small { display: block; font-size: 11px; font-weight: 600; opacity: .9; }
.um-weather-alert-popout-controls { display: flex; gap: 5px; }
.um-weather-alert-popout-controls button { width: 30px; height: 28px; border: 0; border-radius: 7px; background: rgba(255,255,255,.22); color: #fff; font-size: 18px; cursor: pointer; }
.um-weather-alert-popout-controls button:hover { background: rgba(0,0,0,.22); }
.um-weather-alert-popout-body { overflow-y: auto; padding: 13px 14px; font-size: 12.5px; line-height: 1.6; word-break: break-word; }
.um-weather-alert-popout-body h4 { margin: 0 0 6px; font-size: 14px; font-weight: 850; color: #b42318; }
.um-weather-alert-popout-body p { margin: 6px 0; color: #4a3a36; white-space: pre-line; }
.um-weather-alert-popout-body a { color: #b42318; font-weight: 800; }
.um-weather-alert-popout-foot { padding: 10px 14px; border-top: 1px solid #fecdca; display: flex; gap: 8px; }
.um-weather-alert-popout-foot a, .um-weather-alert-popout-foot button { flex: 1; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; font-size: 12px; font-weight: 800; text-decoration: none; cursor: pointer; }
.um-weather-alert-popout-foot a { background: #d92d20; color: #fff; }
.um-weather-alert-popout-foot button { background: #fef3f2; border: 1px solid #fecdca; color: #b42318; }

.um-weather-restore-dock { position: fixed; z-index: 9002; right: 18px; bottom: 18px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; max-width: calc(100vw - 36px); }
.um-weather-restore-dock:empty { display: none; }
.um-weather-restore-dock button { padding: 10px 13px; border: 0; border-radius: 999px; background: #111814; color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.22); font-size: 12px; font-weight: 700; cursor: pointer; }
.um-weather-restore-dock button:hover { background: #009c40; }
.um-weather-restore-dock button.is-alert { background: #d92d20; }

/* PWA banner — don't cover hero */
body.um-weather-page [class*="pwa"],
body.um-weather-page [class*="install-banner"],
body.um-weather-page [class*="add-to-home"] { z-index: 1 !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .um-weather-sngine-grid.has-sngine-sidebar { grid-template-columns: 220px minmax(0, 1fr); }
}
@media (max-width: 860px) {
    .um-weather-sngine-grid { grid-template-columns: 1fr !important; padding: 14px; }
    .um-weather-layout { grid-template-columns: 1fr !important; }
    .um-weather-sidebar { width: 100%; position: static; }
    .um-weather-sidebar-toggle { display: block; }
    .um-weather-sidebar-collapsed .um-weather-sidebar-body { display: none; }
    .um-weather-hero { grid-template-columns: 1fr; padding: 16px; }
}
@media (max-width: 700px) {
    .um-weather-temperature { font-size: 52px; }
    .um-weather-day { grid-template-columns: minmax(55px, 1fr) 30px minmax(75px, 1fr) auto; gap: 6px; }
    .um-weather-popout { top: 70px; right: 10px; width: calc(100vw - 20px); max-height: 75vh; }
    .um-weather-alert-popout { right: 10px; bottom: 10px; width: calc(100vw - 20px); }
    .um-weather-feed { padding: 12px; }
}
@media (max-width: 420px) {
    .um-weather-search { flex-wrap: wrap; }
    .um-weather-search input { flex-basis: 100%; }
}

/* ===== DARK MODE — PURE BLACK ===== */
:is(body.dark-mode, body.night-mode, body.dark, body[data-theme="dark"], body[data-theme="nova-dark"]) .um-weather-sngine-grid,
:is(body.dark-mode, body.night-mode, body.dark, body[data-theme="dark"], body[data-theme="nova-dark"]) .um-weather-dashboard {
    --um-bg: #000;
}
:is(body.dark-mode, body.night-mode, body.dark, body[data-theme="dark"], body[data-theme="nova-dark"]).um-weather-page { background: #000; }
:is(body.dark-mode, body.night-mode, body.dark, body[data-theme="dark"], body[data-theme="nova-dark"]) .um-weather-hero,
:is(body.dark-mode, body.night-mode, body.dark, body[data-theme="dark"], body[data-theme="nova-dark"]) .um-weather-stat,
:is(body.dark-mode, body.night-mode, body.dark, body[data-theme="dark"], body[data-theme="nova-dark"]) .um-weather-panel,
:is(body.dark-mode, body.night-mode, body.dark, body[data-theme="dark"], body[data-theme="nova-dark"]) .um-weather-alerts,
:is(body.dark-mode, body.night-mode, body.dark, body[data-theme="dark"], body[data-theme="nova-dark"]) .um-weather-side-card,
:is(body.dark-mode, body.night-mode, body.dark, body[data-theme="dark"], body[data-theme="nova-dark"]) .um-weather-global-nav,
:is(body.dark-mode, body.night-mode, body.dark, body[data-theme="dark"], body[data-theme="nova-dark"]) .um-weather-feed,
:is(body.dark-mode, body.night-mode, body.dark, body[data-theme="dark"], body[data-theme="nova-dark"]) .um-weather-welcome {
    background: #111 !important;
    color: #f2f2f2 !important;
    border-color: #232323 !important;
}
:is(body.dark-mode, body.night-mode, body.dark, body[data-theme="dark"], body[data-theme="nova-dark"]) .um-weather-hero h1,
:is(body.dark-mode, body.night-mode, body.dark, body[data-theme="dark"], body[data-theme="nova-dark"]) .um-weather-section-heading h2,
:is(body.dark-mode, body.night-mode, body.dark, body[data-theme="dark"], body[data-theme="nova-dark"]) .um-weather-stat strong,
:is(body.dark-mode, body.night-mode, body.dark, body[data-theme="dark"], body[data-theme="nova-dark"]) .um-weather-temperature,
:is(body.dark-mode, body.night-mode, body.dark, body[data-theme="dark"], body[data-theme="nova-dark"]) .um-weather-condition {
    color: #f2f2f2 !important;
}
:is(body.dark-mode, body.night-mode, body.dark, body[data-theme="dark"], body[data-theme="nova-dark"]) .um-weather-search input,
:is(body.dark-mode, body.night-mode, body.dark, body[data-theme="dark"], body[data-theme="nova-dark"]) .um-weather-feed-search {
    background: #171717 !important; border-color: #2b2b2b !important; color: #f2f2f2 !important;
}
:is(body.dark-mode, body.night-mode, body.dark, body[data-theme="dark"], body[data-theme="nova-dark"]) .um-weather-current,
:is(body.dark-mode, body.night-mode, body.dark, body[data-theme="dark"], body[data-theme="nova-dark"]) .um-weather-hour-card,
:is(body.dark-mode, body.night-mode, body.dark, body[data-theme="dark"], body[data-theme="nova-dark"]) .um-weather-placeholder,
:is(body.dark-mode, body.night-mode, body.dark, body[data-theme="dark"], body[data-theme="nova-dark"]) .um-weather-search-result {
    background: #171717 !important; color: #f2f2f2 !important;
}
:is(body.dark-mode, body.night-mode, body.dark, body[data-theme="dark"], body[data-theme="nova-dark"]) .um-weather-alert-item {
    background: #2a1210 !important; color: #f0d8d2 !important;
}
:is(body.dark-mode, body.night-mode, body.dark, body[data-theme="dark"], body[data-theme="nova-dark"]) .um-weather-popout {
    background: #111 !important; color: #f2f2f2 !important;
}
:is(body.dark-mode, body.night-mode, body.dark, body[data-theme="dark"], body[data-theme="nova-dark"]) .um-weather-popout-content a {
    color: #f2f2f2 !important; border-color: #232323 !important;
}

/* v4.0.1 — ANTI-SQUEEZE: never let 1fr go below readable width */
body.um-weather-page .um-weather-sngine-grid {
    display: block !important;
    width: 100% !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 18px 20px 35px !important;
}
body.um-weather-page .um-weather-layout {
    display: grid !important;
    grid-template-columns: 240px minmax(320px, 1fr) !important;
    gap: 14px !important;
    width: 100% !important;
}
/* If parent is ever < 640px, STACK — never go vertical */
@media (max-width: 640px) {
    body.um-weather-page .um-weather-layout {
        grid-template-columns: 1fr !important;
    }
}