/* Desktop weather lives inside a legacy 980px table shell. Explicit content width
   prevents the hourly flex strip from expanding the shell's intrinsic table width. */
.wx-content{width:640px;max-width:100%;min-width:0;box-sizing:border-box;overflow-wrap:anywhere}
.wx-content *{box-sizing:border-box}
.wx-layout{table-layout:fixed;width:100%}
.wx-main-column{vertical-align:top}
.wx-sidebar{width:300px;vertical-align:top}
.wx-brand{font-size:14px;color:#555;margin:8px 0 18px}
.wx-jump{display:flex;flex-wrap:wrap;gap:10px 20px;margin:16px 0 24px}
.wx-jump a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 14px;background:#941c24;color:#fff;border:0;border-radius:4px;font-size:14px;font-weight:600;text-decoration:none;line-height:1.4}
.wx-jump a:hover{background:#72151c;color:#fff}
.wx-jump a:focus-visible,.wx-day summary:focus-visible,.wx-more summary:focus-visible,.wx-alert summary:focus-visible,.wx-camera button:focus-visible,.wx-hourly:focus-visible{outline:3px solid #941c24;outline-offset:3px}
/* Soft section fills provide hierarchy without decorative borders or shadows. */
.wx-hero{padding:20px 18px;margin:0 0 24px;background:#eef4f8;border:0;border-radius:5px;box-shadow:none}
.wx-hero h2,.wx-section h2{font-size:22px;margin:0 0 18px;color:#222;line-height:1.3}
.wx-hero h2 span{display:block;font-size:13px;font-weight:400;color:#555;margin-top:5px}
.wx-now{display:flex;align-items:center;justify-content:space-between;gap:15px;min-width:0}
.wx-temperature{font-size:76px;font-weight:700;line-height:1.05;letter-spacing:-3px;color:#222}
.wx-now p{margin:8px 0;color:#555}
.wx-now strong{font-size:16px}
.wx-condition-icon{object-fit:contain;flex-shrink:0}
.wx-today{display:grid;gap:5px;padding-left:14px}
.wx-today span{font-size:13px;color:#555}
.wx-today strong{margin-bottom:5px}
.wx-observed,.wx-muted{font-size:13px;color:#555;line-height:1.6}
.wx-outlook{padding:8px 0;font-size:17px;font-weight:700;line-height:1.5}
.wx-outlook-detail{font-size:14px;line-height:1.6}
.wx-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 12px;margin:22px 0}
.wx-metrics>div{padding:8px 0;min-width:0}
.wx-metrics span{display:block;font-size:13px;color:#555;margin-bottom:6px}
.wx-metrics strong{font-size:15px;color:#222}
.wx-more{font-size:14px}
.wx-more summary{cursor:pointer;padding:7px 0;color:#941c24}
.wx-section{margin:30px 0;scroll-margin-top:20px;min-width:0}
/* A fixed preferred width bounds the scroll container even during table sizing. */
.wx-hourly{display:flex;width:640px;max-width:100%;min-width:0;gap:10px;overflow-x:auto;padding:4px 0 14px;scrollbar-color:#888 transparent}
.wx-hour{flex:0 0 96px;min-width:0;text-align:center;padding:10px 6px}
.wx-hour h3{font-size:13px;margin:0 0 8px}
.wx-hour img{object-fit:contain;display:block;margin:5px auto}
.wx-hour strong{font-size:22px;display:block;margin:8px 0;color:#222}
.wx-hour span{display:block;font-size:12px;line-height:1.8;color:#555}
.wx-day{margin-bottom:12px}
.wx-day summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;cursor:pointer;list-style:none;font-size:15px}
.wx-day summary::-webkit-details-marker{display:none}
.wx-day summary:hover .wx-day-date{text-decoration:underline;text-underline-offset:3px}
.wx-day-date{min-width:95px;font-weight:700;color:#222}
.wx-day-date small{display:block;font-size:12px;font-weight:400;margin-top:5px;color:#555}
.wx-chances span{display:block;font-size:12px;line-height:1.7;color:#555}
.wx-highlow{white-space:nowrap;color:#555}
.wx-highlow strong{color:#941c24}
.wx-chevron{font-size:23px;color:#941c24}
.wx-day[open] .wx-chevron{transform:rotate(180deg)}
.wx-day-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;padding:12px 0;font-size:14px;line-height:1.6}
.wx-day-body article{min-width:0}
.wx-day-body h3{font-size:16px;color:#222;margin:0 0 10px}
.wx-day-body dl{margin:12px 0}
.wx-day-body dl>div{display:flex;justify-content:space-between;gap:12px;padding:6px 0}
.wx-day-body dt{color:#555}
.wx-day-body dd{margin:0;text-align:right}
.wx-day-body p{margin:0}
.wx-day-solar{font-size:12px;line-height:1.8;color:#555;padding:0 0 14px;margin:0}
.wx-notice{padding:12px 0;font-size:14px;color:#785000;font-weight:600;line-height:1.6}
.wx-alert{margin:16px 0;padding:8px 0;color:#941c24;font-size:15px}
.wx-alert summary{font-weight:700;cursor:pointer;line-height:1.5}
.wx-preline{white-space:pre-line;line-height:1.6}
.wx-air-table{width:100%;border-collapse:collapse;font-size:14px;table-layout:fixed}
.wx-air-table th,.wx-air-table td{text-align:left;padding:10px 0;border:0}
.wx-air-table thead{color:#222}
.wx-air-table tbody th{font-weight:400}
.wx-cameras{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.wx-cameras h3{font-size:16px;color:#222}
.wx-camera{aspect-ratio:16/9;display:grid;place-items:center;overflow:hidden;min-width:0}
.wx-camera button{cursor:pointer;background:#941c24;color:#fff;border:0;border-radius:4px;padding:12px 16px;font-size:14px;font-weight:600;max-width:100%;line-height:1.4;text-decoration:none}
.wx-camera iframe{width:100%;height:100%;border:0}
.wx-credit{font-size:11px;color:#555;line-height:1.8}
.wx-credit img{vertical-align:middle}
.wx-ad{margin:25px 0;max-width:100%;overflow:hidden}
.wx-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.weather-alert-signup{margin:25px 0;padding:12px 0;font-size:15px;line-height:1.6}
.weather-alert-signup p{margin:8px 0}
.weather-alert-signup .sms-button{display:inline-block;padding:10px 16px;background:#941c24;color:#fff;border:0;border-radius:4px;font-weight:600;text-decoration:none;line-height:1.4}
.weather-alert-signup .sms-button:focus-visible{outline:3px solid #941c24;outline-offset:3px}
@media(max-width:700px){.wx-now{flex-wrap:wrap}.wx-temperature{font-size:64px}.wx-today{flex:1;min-width:110px}.wx-condition-icon{width:80px;height:80px}.wx-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.wx-day summary{gap:6px;padding:11px 0;font-size:14px}.wx-day-date{min-width:75px}.wx-day summary img{width:36px;height:36px}.wx-day-body,.wx-cameras{grid-template-columns:1fr}}

/* Keep the established red controls distinct from the neutral section fills. */
.wx-camera button:hover,.weather-alert-signup .sms-button:hover{background:#72151c;color:#fff}
.wx-content a:focus-visible,.wx-content button:focus-visible{outline:3px solid #941c24;outline-offset:3px}

/* Section color treatment: preserve the bounded 640px column and native controls. */
#wx-hourly{background:#f3f4f5;padding:18px;border-radius:5px}
#wx-hourly .wx-hour{background:#fff;border-radius:4px}
#wx-daily .wx-day{margin:0}
#wx-daily .wx-day summary{padding:14px 12px}
#wx-daily .wx-day:nth-of-type(odd){background:#fff}
#wx-daily .wx-day:nth-of-type(even){background:#f3f4f5}
#wx-daily .wx-day summary:hover{background:#e9edef}
#wx-daily .wx-day-body{padding:16px 12px}
#wx-daily .wx-day-solar{padding:0 12px 14px}
#wx-air{background:#f6f7f8;padding:18px;border-radius:5px}
#wx-air .wx-air-table th,#wx-air .wx-air-table td{padding:10px 8px}
#wx-radar,#wx-cams{background:#fff}
#wx-radar>h2,#wx-cams>h2{padding:12px 14px;background:#252525;color:#fff;font-size:20px}
.wx-camera{background:#f3f4f5;border-radius:5px}
.weather-alert-signup{background:#f6f7f8;padding:18px;border-radius:5px}

/* Independent status tiles emphasize provider categories without comparing unlike scales. */
#wx-air{background:#eef2f5}
.wx-air-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.wx-air-tile{--wx-status:#626b75;--wx-status-bg:#edf0f3;background:#fff;padding:16px;border-radius:5px;min-width:0}
.wx-air-feature{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:18px}
.wx-air-name{display:flex;gap:9px;align-items:center;color:#333}
.wx-air-name i{color:var(--wx-status);font-size:19px;flex-shrink:0}
.wx-air-name h3{font-size:15px;margin:0;line-height:1.4}
.wx-air-reading{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:12px}
.wx-air-reading>strong{font-size:30px;line-height:1.2;color:#222}
.wx-air-feature .wx-air-reading{grid-column:2;grid-row:1/3;margin:0;gap:14px}
.wx-air-feature .wx-air-reading>strong{font-size:44px}
.wx-air-badge{display:inline-block;padding:4px 8px;font-size:12px;font-weight:700;border-radius:4px;color:var(--wx-status);background:var(--wx-status-bg);line-height:1.4}
.wx-air-value-label{font-size:12px;color:#555;margin:9px 0 0}
.wx-air-feature .wx-air-value-label{grid-column:1}
.wx-air-level-low{--wx-status:#25633d;--wx-status-bg:#e9f4ed}
.wx-air-level-moderate{--wx-status:#815700;--wx-status-bg:#fff2cb}
.wx-air-level-elevated{--wx-status:#9b410c;--wx-status-bg:#fff0e6}
.wx-air-level-high{--wx-status:#9b242b;--wx-status-bg:#fdebed}
.wx-air-note{font-size:12px;line-height:1.6;color:#555;margin:14px 0 0}
@media(max-width:520px){.wx-air-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wx-air-tile{padding:12px}.wx-air-feature{column-gap:10px}.wx-air-feature .wx-air-reading{gap:8px}.wx-air-feature .wx-air-reading>strong{font-size:36px}}

/* Separate expanded Day/Night forecasts without changing the bounded column width. */
#wx-daily .wx-day-body{column-gap:0}
#wx-daily .wx-day-body>article:first-child{padding-right:16px}
#wx-daily .wx-day-body>article+article{border-left:1px solid #ccd3d9;padding-left:16px}
#wx-daily .wx-day-body h3{padding:8px 10px;margin-bottom:12px;border-radius:4px;background:#f8efd8;color:#654b13;font-size:16px}
#wx-daily .wx-day-body>article+article h3{background:#e8edf5;color:#293e60}
@media(max-width:700px){
    #wx-daily .wx-day-body>article:first-child{padding-right:0}
    #wx-daily .wx-day-body>article+article{border-left:0;border-top:1px solid #ccd3d9;padding-left:0;padding-top:18px}
}

/* Expanded forecast metrics echo the air-quality tiles; labels remain available to everyone. */
#wx-daily .wx-day-body h3 i{margin-right:5px}
#wx-daily .wx-day-body dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#wx-daily .wx-day-body dl>div{display:block;background:#fff;padding:11px 10px;border-radius:4px;min-width:0}
#wx-daily .wx-day-body dt{display:flex;align-items:flex-start;gap:7px;font-size:12px;line-height:1.4}
#wx-daily .wx-day-body dt i{width:16px;flex:0 0 16px;text-align:center;font-size:15px;line-height:1.4}
#wx-daily .wx-day-body dd{margin:8px 0 0;text-align:left;font-size:16px;line-height:1.4;font-weight:700;color:#222}
.wx-metric-wet{color:#276a92}.wx-metric-storm{color:#805a19}.wx-metric-wind{color:#466d65}.wx-metric-time{color:#68617e}
#wx-daily .wx-day-solar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;padding:4px 12px 16px}
.wx-day-solar>span{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px;min-width:0}
.wx-day-solar i{color:#78623c;width:15px;text-align:center}
.wx-day-solar strong{font-weight:600;color:#333}

/* Current-condition icons match the expanded forecast without replacing text labels. */
.wx-hero .wx-metrics span{display:flex;align-items:baseline;gap:7px;line-height:1.4}
.wx-hero .wx-metrics span i{flex:0 0 17px;width:17px;text-align:center;font-size:16px}
.wx-metric-sun{color:#88651d}.wx-metric-night{color:#465c85}

/* RBMobile shares the weather view, with all layout changes scoped to its wrapper.
   Keep widths fluid and override jQuery Mobile's inherited text shadows/link colors. */
.wx-content.wx-mobile{width:100%;max-width:100%;min-width:0;font-family:Arial,sans-serif;color:#222;text-shadow:none}
.wx-mobile .listing-header{font-size:25px;line-height:1.25;margin:18px 0 12px}
.wx-mobile .wx-jump{gap:8px;margin:16px 0 22px}
.wx-mobile .wx-jump a{flex:1 1 auto;min-height:44px;padding:10px 12px;font-size:13px;color:#fff;text-shadow:none}
.wx-mobile .wx-hourly{width:100%;max-width:100%;min-width:0}
.wx-mobile .wx-hero{padding:18px 14px}
.wx-mobile .wx-temperature{font-size:64px}
.wx-mobile .wx-condition-icon{width:82px;height:82px}
.wx-mobile .wx-now{flex-wrap:wrap;gap:12px}
.wx-mobile .wx-today{flex:1 1 100%;grid-template-columns:repeat(3,minmax(0,1fr));padding:12px 0 0;gap:5px 10px}
/* Pair labels with values in columns while preserving their accessible source order. */
.wx-mobile .wx-today>span:nth-of-type(1){grid-column:1;grid-row:1}
.wx-mobile .wx-today>strong:nth-of-type(1){grid-column:1;grid-row:2}
.wx-mobile .wx-today>span:nth-of-type(2){grid-column:2;grid-row:1}
.wx-mobile .wx-today>strong:nth-of-type(2){grid-column:2;grid-row:2}
.wx-mobile .wx-today>span:nth-of-type(3){grid-column:3;grid-row:1}
.wx-mobile .wx-today>strong:nth-of-type(3){grid-column:3;grid-row:2}
.wx-mobile .wx-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.wx-mobile .wx-section{margin:24px 0}
.wx-mobile #wx-hourly,.wx-mobile #wx-air{padding:14px}
.wx-mobile .wx-day summary{gap:6px;flex-wrap:wrap}
.wx-mobile .wx-day-date{flex:1 1 auto;min-width:80px}
.wx-mobile .wx-day summary img{width:36px;height:36px}
.wx-mobile .wx-chances{order:5;flex:1 1 100%;display:flex;flex-wrap:wrap;gap:3px 12px;padding-top:7px}
.wx-mobile .wx-chances>span:first-child{flex-basis:100%;font-weight:600}
.wx-mobile .wx-day-body{grid-template-columns:1fr}
.wx-mobile #wx-daily .wx-day-body>article:first-child{padding-right:0}
.wx-mobile #wx-daily .wx-day-body>article+article{border-left:0;border-top:1px solid #ccd3d9;padding:18px 0 0}
.wx-mobile .wx-air-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.wx-mobile .wx-air-tile{padding:12px}
.wx-mobile .wx-air-feature{column-gap:10px}
.wx-mobile .wx-air-feature .wx-air-reading{gap:8px}
.wx-mobile .wx-air-feature .wx-air-reading>strong{font-size:36px}
.wx-mobile .wx-cameras{grid-template-columns:1fr}
.wx-mobile .wx-camera{width:100%}
.wx-mobile .wx-camera iframe{display:block}
.wx-mobile #wx-radar iframe{display:block;width:100%;height:400px}
.wx-mobile .wx-ad{display:flex;justify-content:center;max-width:100%}
.wx-mobile .wx-credit a,.wx-mobile .wx-brand a{color:#941c24}
.wx-mobile .weather-alert-signup .sms-button{color:#fff;text-shadow:none}
@media(max-width:350px){.wx-mobile .wx-hero{padding:14px 12px}.wx-mobile .wx-today span{font-size:12px}.wx-mobile .wx-today strong{font-size:14px}.wx-mobile #wx-daily .wx-day-solar{grid-template-columns:1fr}}

/* Legacy mobile theme uses important link colors; preserve contrast for filled actions. */
.wx-mobile .wx-jump a,.wx-mobile .wx-jump a:visited,.wx-mobile .weather-alert-signup .sms-button,.wx-mobile .weather-alert-signup .sms-button:visited{color:#fff!important;text-shadow:none}
.wx-mobile .wx-brand{font-size:13px;line-height:1.5}

/* Isolate weather from RBMobile/jQuery Mobile theme shadows. Keep focus outlines intact. */
.wx-content.wx-mobile,.wx-content.wx-mobile *,.wx-content.wx-mobile *::before,.wx-content.wx-mobile *::after{text-shadow:none!important;box-shadow:none!important}
/* Explicit contrast for light weather panels, including when the surrounding page is dark. */
.wx-mobile .wx-hero,.wx-mobile #wx-hourly,.wx-mobile #wx-air,.wx-mobile .wx-day,.wx-mobile .weather-alert-signup,.wx-mobile #wx-cams{color:#222!important}
.wx-mobile .wx-hero h2,.wx-mobile #wx-hourly>h2,.wx-mobile #wx-air>h2,.wx-mobile .wx-hour h3,.wx-mobile .wx-air-name h3,.wx-mobile .wx-cameras h3,.wx-mobile .wx-metrics strong,.wx-mobile .wx-temperature,.wx-mobile .wx-today strong,.wx-mobile .wx-hour strong,.wx-mobile .wx-air-reading>strong,.wx-mobile .wx-day-body dd{color:#222!important}
.wx-mobile .wx-day summary,.wx-mobile .wx-day-date,.wx-mobile .wx-day-body p{color:#222!important}
.wx-mobile #wx-radar>h2,.wx-mobile #wx-cams>h2{color:#fff!important}
.wx-mobile .wx-jump a,.wx-mobile .wx-jump a:visited,.wx-mobile .weather-alert-signup .sms-button,.wx-mobile .wx-sponsor-cta,.wx-mobile .wx-sponsor-cta:visited{color:#fff!important}
.wx-mobile .wx-brand a,.wx-mobile .wx-credit a{color:#941c24!important}
/* Dark mode changes only the unfilled outer headings; light card text stays dark. */
.dark-mode .wx-content.wx-mobile{color:#e8e8e8}
.dark-mode .wx-mobile .listing-header,.dark-mode .wx-mobile>#wx-daily>h2{color:#fff!important}

.wx-mobile #wx-daily .wx-day-body h3{color:#654b13!important}
.wx-mobile #wx-daily .wx-day-body>article+article h3{color:#293e60!important}
.dark-mode .wx-mobile .wx-brand,.dark-mode .wx-mobile .wx-credit{color:#bdc5ce}
.dark-mode .wx-mobile .wx-brand a,.dark-mode .wx-mobile .wx-credit a{color:#f4a4ad!important}

/* Keep the sponsor creative at its native 300x250 size. Center across the content
   gutter on narrow phones rather than clipping it inside the weather column. */
.wx-mobile .wx-mobile-sponsor-ad{display:block;width:300px;max-width:none;margin-left:calc((100% - 300px)/2);margin-right:calc((100% - 300px)/2);overflow:visible}
.wx-mobile #wx-mobile-weather-sponsor-ad{width:300px;min-width:300px;max-width:300px;height:250px;min-height:250px;padding:0;box-sizing:content-box}
