/* ============================================================
   wx.css — redesigned destination pages (home, city pages, 404)
   Added 2026-10-06. Uses the site tokens from weatherscope.css
   (--blue-*, --accent, --text-*, --surface-*, --radius-*), dark default +
   html[data-theme="light"] overrides at the bottom. Design: Figma
   "WeatherScope Web Redesign". The header + hero weather bar are untouched.
   ============================================================ */

.wx_page { padding: 24px 0 48px; }
.wx_container { width: calc(100% - 48px); max-width: 1200px; margin: 0 auto; }
.wx_muted { color: var(--text-secondary); }
.wx_small { font-size: 12px; }
.wx_link { background: none; border: 0; padding: 0; color: var(--text-secondary); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.wx_link:hover { color: var(--text-primary); }

/* ── layout ─────────────────────────────────────────────── */
.wx_layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: stretch; }
/* balance (ws.js wsBalance): columns share the row height; hidden fillers are revealed in the shorter one,
   then its last card grows (.wx_grow) to absorb the remainder so both columns end on the same line */
.wx_filler[hidden] { display: none !important; }
.wx_grow { flex-grow: 1; }
.wx_card.wx_grow { display: flex; flex-direction: column; justify-content: center; }   /* extra height reads as intentional */
.wx_card.wx_grow > .wx_card_head { margin-top: 0; }
.wx_upsell.wx_grow { justify-content: flex-start; }
.wx_upsell.wx_grow .wx_btn { margin-top: auto; }                                        /* CTA sits at the bottom */
.wx_main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.wx_rail { display: flex; flex-direction: column; gap: 20px; }
.wx_rail .ws_ad { margin: 0; }
/* ads on these pages span their column like the cards around them (heights stay reserved) */
.wx_main .ws_ad, .wx_rail .ws_ad { max-width: none; width: 100%; margin: 0; }
.wx_rail .ws_ad--skyscraper { position: static; }
.wx_main .ws_ad_body, .wx_rail .ws_ad_body { border-radius: var(--radius-xl); }

/* ── cards ──────────────────────────────────────────────── */
.wx_card {
    background: var(--surface-card);
    border: 1px solid var(--surface-card-border);
    border-radius: var(--radius-xl);
    padding: 22px 24px;
}
.wx_card h2 { font-size: 19px; font-weight: 700; margin: 0; }
.wx_card_head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.wx_more { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; }
.wx_more:hover { text-decoration: underline; }
.wx_kicker { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.wx_kicker--ok { color: #34d399; }

.wx_btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: var(--radius-pill); border: 1px solid transparent;
    background: var(--accent); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer;
}
.wx_btn:hover { background: var(--accent-hover); }
.wx_btn--ghost { background: transparent; border-color: var(--surface-card-border); color: var(--text-primary); }
.wx_btn--ghost:hover { background: var(--surface-card); }

.wx_chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: var(--radius-pill);
    border: 1px solid var(--surface-card-border); background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary); font: inherit; font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.wx_chip:hover { color: var(--text-primary); }
.wx_chip.is_active { background: rgba(124, 90, 240, 0.22); border-color: var(--accent); color: var(--text-primary); }
.wx_chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.wx_chips--center { justify-content: center; }

/* ── location bar (home) ────────────────────────────────── */
.wx_locbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.wx_locbar_title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.wx_locbar h1 { font-size: 30px; font-weight: 700; margin: 0; }
.wx_locbar h1 a { color: inherit; text-decoration: none; }
.wx_locbar h1 a:hover { text-decoration: underline; }
.wx_locbar_chips { display: flex; gap: 8px; flex-wrap: wrap; }
.wx_chip--add { border-style: dashed; }

/* ── city heading + tabs ───────────────────────────────── */
.wx_crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }
.wx_crumbs a { color: var(--text-secondary); text-decoration: none; }
.wx_crumbs a:hover { color: var(--text-primary); text-decoration: underline; }
.wx_city_head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.wx_city_head h1 { font-size: 32px; font-weight: 700; margin: 0; line-height: 1.15; }
.wx_city_title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; } /* "As of" sits on the title's baseline */
.wx_asof { font-size: 14px; white-space: nowrap; }
.wx_save {
    margin-left: auto; padding: 10px 16px; border-radius: var(--radius-pill);
    border: 1px solid var(--accent); background: rgba(124, 90, 240, 0.14); color: var(--text-primary);
    font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.wx_save .wx_save_on { display: none; }
.wx_save.is_saved .wx_save_on { display: inline; }
.wx_save.is_saved .wx_save_off { display: none; }
.wx_save.is_saved { background: var(--accent); color: #fff; }
.wx_save_msg { flex-basis: 100%; font-size: 13px; color: var(--text-secondary); }
.wx_tabs { display: flex; gap: 4px; margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.wx_tabs::-webkit-scrollbar { display: none; }
.wx_tab { padding: 9px 18px; border-radius: var(--radius-pill); color: var(--text-secondary); text-decoration: none; font-weight: 500; font-size: 14px; white-space: nowrap; border: 1px solid transparent; }
.wx_tab:hover { color: var(--text-primary); }
.wx_tab.is_active { background: var(--surface-card); border-color: var(--surface-card-border); color: var(--text-primary); font-weight: 700; }

/* ── current conditions ────────────────────────────────── */
.wx_current {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 36px; align-items: center;
    background: linear-gradient(120deg, rgba(77, 114, 216, 0.55), rgba(124, 90, 240, 0.35));
    border-color: rgba(255, 255, 255, 0.12);
    padding: 26px 30px;
}
.wx_current_now { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.wx_current_row { display: flex; align-items: center; gap: 14px; }
.wx_current_icon { font-size: 54px; line-height: 1; display: inline-flex; }
.wx_current_icon img { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25)); }
.wx_hour_i img { width: 36px; height: 36px; object-fit: contain; display: block; }
.wx_day_i img { width: 32px; height: 32px; object-fit: contain; display: block; margin: 0 auto; }
.wx_table_icon { width: 28px; height: 28px; object-fit: contain; vertical-align: middle; }
.wx_current_deg { font-size: 92px; font-weight: 300; line-height: 1; letter-spacing: -2px; }
.wx_current_cond { font-size: 17px; font-weight: 600; }
.wx_summary { font-size: 20px; font-weight: 600; line-height: 1.35; margin: 0 0 10px; }
.wx_next { margin: 0 0 12px; font-size: 14px; color: var(--text-secondary); }
.wx_quick { display: flex; flex-wrap: wrap; gap: 28px; margin: 0; }
.wx_quick div { display: flex; flex-direction: column; gap: 2px; }
.wx_quick dt { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-secondary); }
.wx_quick dd { margin: 0; font-size: 18px; font-weight: 700; }

.wx_alert {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 18px; border-radius: var(--radius-lg);
    background: rgba(245, 165, 36, 0.14); border: 1px solid #f5a524; font-size: 15px;
}
.wx_alert--severe { background: rgba(239, 68, 68, 0.14); border-color: #ef4444; }
.wx_alert_icon { font-size: 18px; }

/* ── hourly strip ──────────────────────────────────────── */
.wx_hours {
    list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(62px, 1fr);
    overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; cursor: grab; user-select: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 0, #000 calc(100% - 28px), transparent);
            mask-image: linear-gradient(to right, transparent 0, #000 0, #000 calc(100% - 28px), transparent);
}
.wx_hours::-webkit-scrollbar { display: none; }
.wx_hours.is_dragging { cursor: grabbing; scroll-behavior: auto; }
.wx_hours.at_end { -webkit-mask-image: none; mask-image: none; }
.wx_hours.not_start { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
.wx_hours.not_start.at_end { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px); mask-image: linear-gradient(to right, transparent, #000 28px); }
.wx_card_tools { display: flex; align-items: center; gap: 6px; }
.wx_card_tools .wx_more { margin-left: 8px; }
.wx_scroll_btn {
    width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--surface-card-border); background: rgba(255, 255, 255, 0.05); color: var(--text-primary); cursor: pointer; font-size: 12px;
}
.wx_scroll_btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); }
.wx_scroll_btn:disabled { opacity: 0.3; cursor: default; }
html[data-theme="light"] .wx_scroll_btn { background: #f4f7fc; }
@media (hover: none) { .wx_scroll_btn { display: none; } }
.wx_hour { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 4px 2px; }
.wx_hour_t { font-size: 12px; font-weight: 500; color: var(--text-secondary); white-space: nowrap; }
.wx_hour_i { font-size: 22px; line-height: 1; }
.wx_hour_v { font-size: 17px; font-weight: 700; }
.wx_hour_p, .wx_day_p { font-size: 11px; font-weight: 600; color: #7ab8ff; white-space: nowrap; }
.wx_hour_p.is_dry, .wx_day_p.is_dry { opacity: 0.45; }

/* ── radar ─────────────────────────────────────────────── */
.wx_radar_frame { position: relative; height: 420px; border-radius: var(--radius-lg); overflow: hidden; background: #16213f; }
.wx_radar--big .wx_radar_frame { height: 640px; }
.wx_radar_frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── 10-day ────────────────────────────────────────────── */
.wx_days { list-style: none; margin: 0; padding: 0; }
.wx_day {
    display: grid; align-items: center; gap: 14px;
    grid-template-columns: 76px 34px minmax(0, 1fr) 54px 38px minmax(80px, 170px) 38px;
    padding: 11px 0; border-top: 1px solid var(--surface-card-border);
}
.wx_day_n { font-weight: 600; font-size: 15px; }
.wx_day_i { font-size: 20px; text-align: center; }
.wx_day_c { font-size: 14px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx_day_lo { text-align: right; color: var(--text-secondary); font-weight: 500; }
.wx_day_hi { font-weight: 700; }
.wx_day_bar { position: relative; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); }
.wx_day_bar span { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #fbbf4d, #f5684c); }
.wx_day_more { grid-column: 1 / -1; font-size: 13px; color: var(--text-secondary); margin-top: -4px; }
.wx_premium_note { display: block; margin-top: 12px; font-size: 13px; color: var(--text-secondary); text-decoration: none; }
.wx_crown { color: var(--accent); font-weight: 600; margin-left: 4px; }

/* ── chart (redesigned 2026-10-07: tabs + day pills + SVG line/area, drawn by ws.js wsInitChart) ── */
.wx_chart { --wx-chart-c: #f59e42; }
.wx_chart_head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.wx_chart_titles { display: flex; flex-direction: column; gap: 4px; }
.wx_chart_titles h2 { display: flex; align-items: center; gap: 8px; }
.wx_chart_icon { font-size: 20px; }
.wx_chart_day_label { font-size: 13px; }
.wx_chart_stats { display: flex; gap: 10px; }
.wx_chart_stat { display: flex; flex-direction: column; gap: 2px; min-width: 92px; padding: 8px 12px; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.05); }
.wx_chart_stat strong { font-size: 18px; line-height: 1.1; }
.wx_chart_stat em { font-style: normal; font-size: 12px; color: var(--text-secondary); }
.wx_chart_stat--hi strong { color: var(--wx-chart-c); }

/* measure tabs: one scrollable row, underline for the active one */
.wx_chart_tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--surface-card-border); margin-bottom: 12px; }
.wx_chart_tabs::-webkit-scrollbar { display: none; }
.wx_chart_tab { flex: 1 0 auto; text-align: center; padding: 10px 12px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
    color: var(--text-secondary); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.wx_chart_tab:hover { color: var(--text-primary); }
.wx_chart_tab.is_active { color: var(--text-primary); font-weight: 700; border-bottom-color: var(--wx-chart-c); }

/* day pills */
.wx_chart_days { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 6px; padding-bottom: 2px; }
.wx_chart_days::-webkit-scrollbar { display: none; }
.wx_chart_day { flex: 1 0 auto; display: flex; align-items: baseline; justify-content: center; gap: 5px; padding: 7px 12px; border-radius: var(--radius-pill);
    border: 1px solid var(--surface-card-border); background: rgba(255, 255, 255, 0.04); color: var(--text-secondary); font: inherit; font-size: 13px; cursor: pointer; }
.wx_chart_day:hover { color: var(--text-primary); }
.wx_chart_day_dow { font-weight: 600; }
.wx_chart_day_dom { opacity: 0.75; }
.wx_chart_day.is_active { background: var(--text-primary); border-color: var(--text-primary); color: var(--blue-950); }
.wx_chart_day.is_active .wx_chart_day_dom { opacity: 0.7; }

/* plot */
.wx_chart_plot { position: relative; }
.wx_chart_svg { display: block; width: 100%; height: 210px; overflow: visible; }
.wx_chart_grid { stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; }
.wx_chart_line { fill: none; stroke: var(--wx-chart-c); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.wx_chart_dot { fill: var(--wx-chart-c); stroke: var(--blue-950); stroke-width: 2; }
.wx_chart_val { fill: var(--text-primary); font-size: 12px; font-weight: 700; }
.wx_chart_x { fill: var(--text-muted); font-size: 11px; font-weight: 500; }
.wx_chart_now { stroke: var(--text-secondary); stroke-width: 1; stroke-dasharray: 3 4; }
.wx_chart_now_t { fill: var(--text-secondary); font-size: 11px; font-weight: 700; }
.wx_chart_cross { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1; }
.wx_chart_hdot { fill: var(--blue-950); stroke: var(--wx-chart-c); stroke-width: 3; }
.wx_chart_empty { fill: var(--text-muted); font-size: 14px; }
.wx_chart_tip { position: absolute; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 1px;
    padding: 6px 10px; border-radius: var(--radius-sm); background: var(--surface-mid); border: 1px solid var(--surface-card-border);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); font-size: 12px; white-space: nowrap; z-index: 2; }
.wx_chart_tip strong { font-size: 14px; }
.wx_chart_tip span { color: var(--text-secondary); }
.wx_chart_tip[hidden] { display: none; }
@media (max-width: 700px) {
    .wx_chart_svg { height: 180px; }
    .wx_chart_val { font-size: 10px; }
    .wx_chart_stat { min-width: 80px; padding: 6px 10px; }
    .wx_chart_stat strong { font-size: 16px; }
}
html[data-theme="light"] .wx_chart_stat { background: #f4f7fc; }
html[data-theme="light"] .wx_chart_day { background: #f4f7fc; }
html[data-theme="light"] .wx_chart_day.is_active { background: #1a2030; border-color: #1a2030; color: #fff; }
html[data-theme="light"] .wx_chart_grid { stroke: rgba(0, 0, 0, 0.06); }
html[data-theme="light"] .wx_chart_dot { stroke: #ffffff; }
html[data-theme="light"] .wx_chart_hdot { fill: #ffffff; }
html[data-theme="light"] .wx_chart_cross { stroke: rgba(26, 45, 90, 0.3); }
html[data-theme="light"] .wx_chart_tip { background: #ffffff; }

/* ── rail cards ────────────────────────────────────────── */
.wx_perks { background: rgba(124, 90, 240, 0.14); border-color: rgba(124, 90, 240, 0.6); }
.wx_perks h2 { font-size: 21px; margin-bottom: 12px; }
.wx_perks ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-secondary); }
.wx_perks em { font-style: normal; font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--text-muted); margin-left: 4px; }
.wx_perks .wx_btn { width: 100%; }
.wx_perks .wx_small { margin: 10px 0 0; }
.wx_perks a:not(.wx_btn), .wx_places a:not(.wx_more) { color: var(--text-primary); }
.wx_promo h2 { margin: 2px 0 8px; font-size: 18px; }
.wx_promo p { margin: 0 0 14px; font-size: 14px; }
.wx_places_list, .wx_nearby ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.wx_places_list a { text-decoration: none; }
.wx_places_list a:hover, .wx_nearby a:hover { text-decoration: underline; }
/* Your Places: order = place being viewed → home → rest (template + ws.js); button rows; scrolls after 3 */
.wx_places_list { position: relative; max-height: calc(3 * 44px + 2 * 6px); overflow-y: auto; gap: 6px !important; margin-right: -6px; padding-right: 6px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.2) transparent; }
.wx_places_list::-webkit-scrollbar { width: 6px; }
.wx_places_list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 3px; }
.wx_places_list li { flex: 0 0 auto; }
.wx_places_list li a {
    display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px;
    border-radius: var(--radius-md); border: 1px solid var(--surface-card-border); background: rgba(255, 255, 255, 0.05);
    font-weight: 500; transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.wx_places_list li a:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22); text-decoration: none; }
.wx_places_list li a:active { transform: scale(0.98); }
.wx_place_name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx_place_go { font-size: 11px; color: var(--text-muted); }
.wx_places_list li a:hover .wx_place_go { color: var(--text-primary); }
.wx_places_list li.is_current a { background: rgba(124, 90, 240, 0.22); border-color: var(--accent); font-weight: 700; }
.wx_places_list li.is_current .wx_place_go { color: var(--accent); }
html[data-theme="light"] .wx_places_list { scrollbar-color: rgba(26, 45, 90, 0.25) transparent; }
html[data-theme="light"] .wx_places_list li a { background: #f4f7fc; }
html[data-theme="light"] .wx_places_list li a:hover { background: #e9eff9; border-color: rgba(26, 45, 90, 0.18); }
html[data-theme="light"] .wx_places_list li.is_current a { background: rgba(74, 127, 212, 0.14); border-color: var(--accent); }
.wx_home_badge { display: inline-block; font-size: 11px; font-weight: 700; color: var(--accent); margin-right: 8px; }
.wx_nearby_list { gap: 6px !important; }
.wx_nearby_list a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; margin: 0 -8px; border-radius: var(--radius-md); color: var(--text-primary); text-decoration: none; }
.wx_nearby_list a:hover { background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.wx_nb_icon { flex: 0 0 32px; width: 32px; height: 32px; }
.wx_nb_icon img { width: 32px; height: 32px; object-fit: contain; display: block; }
.wx_nb_txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.wx_nb_txt strong { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx_nb_cond { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx_nb_temp { font-size: 18px; font-weight: 700; min-width: 40px; text-align: right; }
.wx_nb_skel { display: inline-block; width: 34px; height: 18px; border-radius: 6px; vertical-align: middle; }
html[data-theme="light"] .wx_nearby_list a:hover { background: #f4f7fc; }
.wx_places .wx_small { margin: 12px 0 0; }

/* tips / sun & moon / upsell (rail filler, 2026-10-06) */
.wx_tips ul, .wx_upsell ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.wx_tips li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.wx_tips li strong { display: block; margin-bottom: 2px; color: var(--text-primary); }
.wx_tip_icon { font-size: 22px; line-height: 1; flex: 0 0 auto; }
.wx_sun_grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wx_sun_grid > div { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.04); }
.wx_sun_k { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-secondary); }
.wx_sun_v { font-size: 15px; font-weight: 700; }
.wx_upsell { background: linear-gradient(160deg, rgba(124, 90, 240, 0.28), rgba(77, 114, 216, 0.16)); border-color: rgba(124, 90, 240, 0.5); }
.wx_upsell h2 { font-size: 21px; margin: 0 0 14px; }
.wx_upsell ul { gap: 9px; font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }
.wx_upsell .wx_btn { width: 100%; }
.wx_upsell .wx_small { text-align: center; margin: 8px 0 0; }
html[data-theme="light"] .wx_sun_grid > div { background: #f4f7fc; }
html[data-theme="light"] .wx_upsell { background: linear-gradient(160deg, #e6defc, #dde8fb); border-color: rgba(74, 127, 212, 0.45); }

/* Premium: week at a glance */
.wx_week_list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wx_week_list li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.04); }
.wx_week_list img { width: 36px; height: 36px; object-fit: contain; flex: 0 0 auto; }
.wx_week_txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wx_week_txt strong { font-size: 15px; }
.wx_week_v { font-size: 13px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
html[data-theme="light"] .wx_week_list li { background: #f4f7fc; }

/* Premium: "Get WeatherScope on your phone" (QR → /app) */
.wx_premium_app h2 { font-size: 20px; margin: 0 0 14px; }
.wx_premium_app_row { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.wx_qr { flex: 0 0 104px; width: 104px; height: 104px; padding: 8px; border-radius: var(--radius-md); background: #fff; }
.wx_qr svg { display: block; width: 100%; height: 100%; }
.wx_premium_app ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-secondary); }
.wx_premium_app .wx_small { margin: 0 0 14px; line-height: 1.45; }
.wx_store_btns { display: flex; gap: 8px; }
.wx_store_btns .wx_btn { flex: 1; padding: 10px 12px; font-size: 13px; }
@media (hover: none) and (pointer: coarse) { .wx_qr { display: none; } } /* already on a phone: buttons only */

/* "Meet the family" — Aviator Assistant cross-promo for Premium (no ads there) */
.wx_family h2 { font-size: 20px; margin: 0 0 14px; line-height: 1.25; }
.wx_family_list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wx_family_list a {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-md);
    border: 1px solid var(--surface-card-border); background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary); text-decoration: none; transition: background 0.15s, border-color 0.15s;
}
.wx_family_list a:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22); }
.wx_family_list img { width: 44px; height: 44px; border-radius: 10px; flex: 0 0 auto; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }
.wx_family_txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wx_family_txt strong { font-size: 14px; }
.wx_family_txt span { font-size: 12px; line-height: 1.35; color: var(--text-secondary); }
.wx_family_more { display: block; font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; margin: 0 0 14px; }
.wx_family_more:hover { text-decoration: underline; }
.wx_family_all { width: 100%; }
html[data-theme="light"] .wx_family_list a { background: #f4f7fc; }
html[data-theme="light"] .wx_family_list a:hover { background: #e9eff9; border-color: rgba(26, 45, 90, 0.18); }

/* balance fillers */
.wx_explore_grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wx_explore_tile { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--radius-md); border: 1px solid var(--surface-card-border);
    background: rgba(255, 255, 255, 0.04); color: var(--text-primary); text-decoration: none; transition: background 0.15s; }
.wx_explore_tile:hover { background: rgba(255, 255, 255, 0.09); }
.wx_explore_i { font-size: 22px; }
.wx_rail_links ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.wx_rail_links a { color: var(--text-primary); text-decoration: none; font-size: 14px; }
.wx_rail_links a:hover { text-decoration: underline; }
.wx_rail_posts ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wx_rail_posts a { display: flex; gap: 10px; align-items: center; color: var(--text-primary); text-decoration: none; }
.wx_rail_posts img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.wx_rail_posts a > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wx_rail_posts strong { font-size: 13px; line-height: 1.3; }
.wx_rail_posts a:hover strong { text-decoration: underline; }
.wx_app_strip { display: flex; align-items: center; gap: 14px; }
.wx_app_strip img { width: 48px; height: 48px; border-radius: 11px; flex: 0 0 auto; }
.wx_app_strip > div { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wx_card.wx_app_strip.wx_grow { flex-direction: row; align-items: center; }
.wx_embed_promo h2 { margin: 2px 0 8px; font-size: 18px; }
.wx_embed_promo p { margin: 0 0 14px; font-size: 14px; }
html[data-theme="light"] .wx_explore_tile { background: #f4f7fc; }
@media (max-width: 700px) { .wx_explore_grid { grid-template-columns: 1fr 1fr; } }

/* ── next hour (minute-by-minute precip) ── */
.wx_nexthour.is_dry { padding-top: 16px; padding-bottom: 16px; }
.wx_nexthour.is_dry .wx_card_head { margin-bottom: 4px; }
.wx_nexthour_msg { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
.wx_nexthour.is_dry .wx_nexthour_msg { margin: 0; font-weight: 500; color: var(--text-secondary); font-size: 14px; }
.wx_nh_plot { position: relative; display: flex; gap: 10px; height: 90px; }
.wx_nh_levels { display: flex; flex-direction: column; justify-content: space-between; font-size: 10px; color: var(--text-muted); padding: 2px 0; width: 54px; flex: 0 0 auto; }
.wx_nh_bars { flex: 1; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--surface-card-border);
    background: repeating-linear-gradient(to top, transparent 0 29px, rgba(255, 255, 255, 0.05) 29px 30px); }
.wx_nh_bar { flex: 1; min-width: 2px; border-radius: 2px 2px 0 0; background: linear-gradient(to top, #3b82f6, #60a5fa); }
.wx_nh_ticks { position: relative; height: 18px; margin: 4px 0 0 64px; font-size: 11px; color: var(--text-muted); }
.wx_nh_ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.wx_nh_ticks span:first-child { transform: none; }
.wx_nh_ticks span:last-child { transform: translateX(-100%); }

/* ── storm tracker ── */
.wx_storm { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; border-color: rgba(239, 68, 68, 0.55);
    background: linear-gradient(120deg, rgba(239, 68, 68, 0.16), rgba(124, 90, 240, 0.12)); }
.wx_storm_badge { font-size: 46px; line-height: 1; animation: wx_spin 6s linear infinite; }
@keyframes wx_spin { to { transform: rotate(-360deg); } }
@media (prefers-reduced-motion: reduce) { .wx_storm_badge { animation: none; } }
.wx_storm_body { flex: 1; min-width: 220px; }
.wx_storm_body h2 { font-size: 22px; margin: 0 0 4px; }
.wx_storm_body p { margin: 0 0 10px; font-size: 14px; }
.wx_storm_kicker { color: #f87171; }
.wx_storm_upd { font-size: 13px !important; font-weight: 600 !important; }
html[data-theme="light"] .wx_storm { background: linear-gradient(120deg, #fde8e8, #ece6fd); border-color: rgba(198, 40, 40, 0.4); }
html[data-theme="light"] .wx_storm_kicker { color: #c62828; }

/* ── today's details gauges ── */
.wx_gauge_grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.wx_gauge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 10px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.04); }
.wx_gauge strong { font-size: 14px; }
.wx_gauge em { font-style: normal; font-size: 12px; color: var(--text-secondary); }
.wx_gauge--text { justify-content: center; }
.wx_g_big { font-size: 28px !important; line-height: 1.1; margin: 10px 0 2px; }
.wx_g_svg { width: 78px; height: 78px; margin: 2px 0; }
.wx_g_sun { height: 52px; }
.wx_g_track { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 7; }
.wx_g_val { fill: none; stroke-width: 7; stroke-linecap: round; }
.wx_g_num { fill: var(--text-primary); font-size: 17px; font-weight: 700; text-anchor: middle; }
.wx_g_card { fill: var(--text-muted); font-size: 9px; font-weight: 700; text-anchor: middle; }
.wx_g_arrow { fill: var(--accent); }
.wx_g_sundot { fill: #fbbf24; filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.8)); }
.wx_g_horizon { stroke: var(--text-muted); stroke-width: 1; stroke-dasharray: 2 3; }
.wx_g_sun .wx_g_track { stroke-dasharray: 3 4; stroke-width: 2; }
html[data-theme="light"] .wx_gauge { background: #f4f7fc; }
html[data-theme="light"] .wx_g_track { stroke: rgba(26, 45, 90, 0.12); }
@media (max-width: 700px) { .wx_gauge_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── air quality tab ── */
.wx_air_now { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; }
.wx_air_val { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 150px; padding: 16px; border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--aqc) 18%, transparent); border: 1px solid var(--aqc); }
.wx_air_val strong { font-size: 54px; line-height: 1; color: var(--aqc); }
.wx_air_cat { font-weight: 700; text-align: center; }
.wx_air_advice { margin: 0 0 16px; font-size: 16px; line-height: 1.5; }
.wx_air_scale { position: relative; display: flex; height: 10px; border-radius: 5px; overflow: visible; }
.wx_air_scale span { flex: 1; } .wx_air_scale span:first-child { border-radius: 5px 0 0 5px; } .wx_air_scale span:nth-child(6) { border-radius: 0 5px 5px 0; }
.wx_air_scale i { position: absolute; top: -4px; width: 4px; height: 18px; margin-left: -2px; border-radius: 2px; background: var(--text-primary); box-shadow: 0 0 0 2px var(--blue-950); }
.wx_air_scale_l { display: flex; justify-content: space-between; font-size: 11px; margin-top: 6px; }
.wx_aq_bars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; height: 150px; align-items: end; }
.wx_aq_bars li { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; }
.wx_aq_bar { width: 100%; border-radius: 3px 3px 0 0; }
.wx_aq_v { font-size: 9px; color: var(--text-secondary); margin-bottom: 2px; }
.wx_aq_t { position: absolute; bottom: -18px; font-size: 10px; color: var(--text-muted); white-space: nowrap; }
.wx_air_hours { padding-bottom: 34px; }
.wx_air_daylist { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wx_air_daylist li { display: grid; grid-template-columns: 90px 54px 1fr; align-items: center; gap: 12px; padding: 8px 12px; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.04); }
.wx_air_pill { color: #fff; font-weight: 700; text-align: center; border-radius: var(--radius-pill); padding: 3px 0; font-size: 13px; }
html[data-theme="light"] .wx_air_daylist li { background: #f4f7fc; }
html[data-theme="light"] .wx_air_scale i { box-shadow: 0 0 0 2px #fff; }
@media (max-width: 700px) { .wx_air_now { grid-template-columns: 1fr; } .wx_aq_v { display: none; } }

/* ── country / state hub ── */
.wx_hub_grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.wx_hub_tile { display: flex; flex-direction: column; gap: 4px; height: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.04); border: 1px solid transparent; color: var(--text-primary); text-decoration: none; transition: border-color .15s, background .15s; }
.wx_hub_tile:hover, .wx_hub_tile:focus-visible { border-color: var(--accent); background: rgba(124, 90, 240, 0.1); }
.wx_hub_name { font-weight: 700; font-size: 15px; }
.wx_hub_cap { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); margin-left: 4px; }
.wx_hub_row { display: flex; align-items: center; gap: 8px; }
.wx_hub_row strong { font-size: 30px; line-height: 1; }
.wx_hub_cond { font-size: 13px; color: var(--text-secondary); }
html[data-theme="light"] .wx_hub_tile { background: #f4f7fc; }
html[data-theme="light"] .wx_hub_tile:hover { background: #ece6fd; }
@media (max-width: 600px) { .wx_hub_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── tap targets (≥24px) ── */
.wx_crumbs a, .wx_crumbs span { display: inline-flex; align-items: center; min-height: 28px; }
.wx_links a { min-height: 32px; display: inline-flex; align-items: center; }
.wx_more { display: inline-flex; align-items: center; min-height: 32px; margin: -5px 0; }
.wx_premium_note { padding: 6px 0; margin-top: 6px; }
.wx_rail .wx_muted a, .wx_perks .wx_small a { display: inline-block; padding: 5px 2px; margin: -5px -2px; }

/* ── tables / about / links ────────────────────────────── */
.wx_table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wx_table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-secondary); font-weight: 600; padding: 0 8px 8px; }
.wx_table td { padding: 9px 8px; border-top: 1px solid var(--surface-card-border); white-space: nowrap; }
.wx_table_day td { font-weight: 700; color: var(--text-primary); background: rgba(255, 255, 255, 0.03); }
.wx_table_ad td { padding: 0; }
.wx_about h2, .wx_more_cities h2 { margin-bottom: 10px; }
.wx_about p { line-height: 1.6; font-size: 15px; }
.wx_links { display: flex; flex-wrap: wrap; gap: 8px; }
.wx_links a { padding: 7px 13px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.05); color: var(--text-secondary); font-size: 13px; text-decoration: none; }
.wx_links a:hover { color: var(--text-primary); }
.wx_error { color: var(--text-secondary); }

/* ── blog + app band ──────────────────────────────────── */
.wx_posts { margin-top: 24px; }
.wx_posts_grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wx_post { display: flex; flex-direction: column; border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.04); text-decoration: none; color: var(--text-primary); overflow: hidden; }
.wx_post_img { display: block; aspect-ratio: 16 / 9; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.wx_post_img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.wx_post:hover .wx_post_img img { transform: scale(1.03); }
.wx_post_body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.wx_post:hover { background: rgba(255, 255, 255, 0.07); }
.wx_post_t { font-weight: 600; line-height: 1.35; }
.wx_band { margin-top: 40px; padding: 40px 0; background: linear-gradient(90deg, rgba(77, 114, 216, 0.35), rgba(124, 90, 240, 0.35)); }
.wx_band_inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.wx_band h2 { margin: 0 0 6px; font-size: 26px; }
.wx_band p { margin: 0; }
.wx_band_btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── skeleton + 404 ───────────────────────────────────── */
.wx_skel { background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.09), rgba(255,255,255,0.04)); background-size: 200% 100%; animation: wx_shimmer 1.4s infinite linear; border-radius: var(--radius-xl); }
.wx_skel--title { width: 220px; height: 34px; border-radius: 10px; margin: 0; }
.wx_skel--hero { height: 190px; }
.wx_skel--strip { height: 150px; }
.wx_skel--map { height: 420px; }
@keyframes wx_shimmer { to { background-position: -200% 0; } }
.wx_404 { text-align: center; padding: 80px 0; }
.wx_404 h1 { font-size: 34px; }
.wx_404 .wx_btn { margin: 6px; }

/* ── responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
    .wx_layout { grid-template-columns: minmax(0, 1fr); }
    .wx_rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
    .wx_rail .ws_ad--skyscraper { display: none; }
}
@media (max-width: 700px) {
    .wx_container { width: calc(100% - 32px); }
    .wx_page { padding-top: 16px; }
    .wx_card { padding: 16px; border-radius: 20px; }
    .wx_locbar h1, .wx_city_head h1 { font-size: 24px; }
    .wx_save { margin-left: 0; }
    .wx_current { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
    .wx_current_deg { font-size: 72px; }
    .wx_current_icon { font-size: 44px; }
    .wx_current_icon img { width: 72px; height: 72px; }
    .wx_summary { font-size: 16px; }
    .wx_quick { gap: 18px; }
    .wx_radar_frame { height: 260px; }
    .wx_radar--big .wx_radar_frame { height: 420px; }
    .wx_day { grid-template-columns: 62px 30px 46px minmax(0, 1fr) 34px 34px; gap: 8px; }
    .wx_day_i img { width: 28px; height: 28px; }
    .wx_day_c { display: none; }
    .wx_day_bar { grid-column: 4; grid-row: 1; }
    .wx_day_lo { grid-column: 5; grid-row: 1; }
    .wx_day_hi { grid-column: 6; grid-row: 1; }
    .wx_day_p { grid-column: 3; grid-row: 1; }
    .wx_posts_grid { grid-template-columns: 1fr; }
    .wx_table { font-size: 13px; }
    .wx_table th:nth-child(4), .wx_table td:nth-child(4), .wx_table th:nth-child(7), .wx_table td:nth-child(7) { display: none; }
}

/* ── light theme ───────────────────────────────────────── */
html[data-theme="light"] .wx_card { box-shadow: var(--shadow-card); }
html[data-theme="light"] .wx_current { background: linear-gradient(120deg, #c9d9fa, #dcd3fb); border-color: rgba(0, 0, 0, 0.06); }
html[data-theme="light"] .wx_chip { background: #f4f7fc; }
html[data-theme="light"] .wx_chip.is_active { background: rgba(74, 127, 212, 0.14); }
html[data-theme="light"] .wx_alert { background: #fff4e0; border-color: #c77700; }
html[data-theme="light"] .wx_alert--severe { background: #fdeaea; border-color: #c62828; }
html[data-theme="light"] .wx_hour_p, html[data-theme="light"] .wx_day_p { color: #2a6fd6; }
html[data-theme="light"] .wx_day_bar { background: rgba(0, 0, 0, 0.07); }
html[data-theme="light"] .wx_perks { background: rgba(74, 127, 212, 0.08); border-color: rgba(74, 127, 212, 0.45); }
html[data-theme="light"] .wx_save { background: rgba(74, 127, 212, 0.1); }
html[data-theme="light"] .wx_links a, html[data-theme="light"] .wx_post { background: #f4f7fc; }
html[data-theme="light"] .wx_band { background: linear-gradient(90deg, #d6e2fa, #e3dafb); }
html[data-theme="light"] .wx_table_day td { background: #f4f7fc; }
html[data-theme="light"] .wx_radar_frame { background: #dce8f8; }
html[data-theme="light"] .wx_skel { background: linear-gradient(90deg, #e9eef7, #f5f8fc, #e9eef7); background-size: 200% 100%; }
.wx_precise_err { color: #f87171; font-size: 13px; }
html[data-theme="light"] .wx_precise_err { color: #c62828; }
