/* ═══════════════════════════════════════════════════════════════
   Weather Center — dark cyberpunk theme, mounts into #weather.
   Activated on card 06 entry.
   ═══════════════════════════════════════════════════════════════ */

#weather {
  --wx-bg: #0a0c12;
  --wx-bg-2: #10131c;
  --wx-card: rgba(255, 255, 255, 0.035);
  --wx-card-strong: rgba(255, 255, 255, 0.055);
  --wx-border: rgba(255, 255, 255, 0.08);
  --wx-border-strong: rgba(255, 255, 255, 0.14);
  --wx-text: #f0f0f0;
  --wx-text-2: rgba(240, 240, 240, 0.72);
  --wx-text-3: rgba(240, 240, 240, 0.48);
  --wx-text-4: rgba(240, 240, 240, 0.28);
  --wx-accent: #00ffff;
  --wx-accent-dim: rgba(0, 255, 255, 0.5);
  --wx-accent-soft: rgba(0, 255, 255, 0.12);
  --wx-magenta: #ff00ff;
  --wx-warm: #ff9a3c;

  background:
    radial-gradient(ellipse at top, rgba(0, 255, 255, 0.04), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(255, 0, 255, 0.03), transparent 60%),
    var(--wx-bg);
  color: var(--wx-text);
  font-family: 'Chakra Petch', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  overflow: hidden;
  padding: 0;
  align-items: stretch;
  justify-content: flex-start;
}
#weather * { box-sizing: border-box; }

/* Back button — dark theme override */
#weather .back-btn {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(14, 14, 16, 0.8);
}
#weather .back-btn::after { background: var(--wx-bg); }
#weather .back-icon { color: var(--wx-text-2); }
#weather .back-btn:hover { box-shadow: 0 4px 24px rgba(0, 255, 255, 0.25); }
#weather .back-btn:hover .back-icon { color: var(--wx-accent); }

/* ═════════ PAGE LAYOUT ═════════ */
.wx-page {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* ═════════ HEADER ═════════ */
.wx-header {
  flex: 0 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 28px 0 84px;
  border-bottom: 1px solid var(--wx-border);
  background: rgba(10, 12, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  z-index: 5;
}
.wx-title {
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.wx-title-main {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #00ffff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.wx-title-sub {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--wx-text-4);
  text-transform: uppercase;
}

.wx-search-wrap {
  flex: 1 1 auto;
  max-width: 520px;
  position: relative;
  display: flex;
  align-items: center;
}
.wx-search-icon {
  position: absolute;
  left: 14px;
  font-size: 13px;
  color: var(--wx-text-3);
  pointer-events: none;
  z-index: 1;
}
.wx-search-input {
  flex: 1 1 auto;
  height: 40px;
  padding: 0 16px 0 38px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--wx-border);
  border-radius: 10px;
  color: var(--wx-text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.wx-search-input::placeholder { color: var(--wx-text-3); }
.wx-search-input:focus {
  border-color: var(--wx-accent-dim);
  background: rgba(0, 255, 255, 0.04);
}

/* Search suggestion dropdown */
.wx-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 320px;
  overflow-y: auto;
  background: rgba(14, 16, 22, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--wx-border-strong);
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 255, 255, 0.04);
  z-index: 10;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
.wx-suggest.wx-hidden { display: none; }
.wx-suggest::-webkit-scrollbar { width: 6px; }
.wx-suggest::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 3px; }
.wx-suggest-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s;
}
.wx-suggest-item:last-child { border-bottom: none; }
.wx-suggest-item:hover,
.wx-suggest-item.wx-suggest-active {
  background: rgba(0, 255, 255, 0.08);
}
.wx-suggest-item.wx-suggest-active {
  box-shadow: inset 2px 0 0 var(--wx-accent);
}
.wx-suggest-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--wx-text);
}
.wx-suggest-region {
  font-size: 11px;
  color: var(--wx-text-3);
  margin-top: 2px;
}
.wx-suggest-empty {
  padding: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--wx-text-3);
}

/* Location button */
.wx-loc-btn {
  flex-shrink: 0;
  height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 255, 255, 0.08);
  border: 1px solid var(--wx-accent-dim);
  border-radius: 10px;
  color: var(--wx-accent);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.wx-loc-btn:hover {
  background: rgba(0, 255, 255, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 255, 255, 0.2);
}
.wx-loc-btn.wx-loc-loading {
  pointer-events: none;
  opacity: 0.6;
  animation: wxLocPulse 1.2s ease-in-out infinite;
}
@keyframes wxLocPulse {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1;   }
}
.wx-loc-icon { font-size: 14px; }

/* Refresh button — lightweight, sits next to the location button */
.wx-refresh-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--wx-border);
  border-radius: 10px;
  color: var(--wx-text-2);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.4s, border-color 0.2s;
}
.wx-refresh-btn:hover {
  background: rgba(0, 255, 255, 0.06);
  border-color: var(--wx-accent-dim);
  color: var(--wx-accent);
}
.wx-refresh-btn:active .wx-refresh-icon {
  transform: rotate(360deg);
}
.wx-refresh-icon {
  font-size: 18px;
  line-height: 1;
  display: inline-block;
  transition: transform 0.6s ease;
}

/* ═════════ MAIN SCROLL AREA ═════════ */
.wx-main {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 28px 32px 40px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
.wx-main::-webkit-scrollbar { width: 8px; }
.wx-main::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 4px; }

/* Inner wrapper caps width on large screens */
.wx-hero, .wx-section {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* ═════════ PLACEHOLDER / LOADING / ERROR ═════════ */
.wx-placeholder, .wx-loading, .wx-error {
  max-width: 420px;
  margin: 80px auto;
  text-align: center;
  padding: 40px 20px;
}
.wx-placeholder-icon, .wx-error-icon {
  font-size: 56px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.2));
}
.wx-placeholder-title, .wx-error-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.wx-placeholder-sub {
  font-size: 13px;
  color: var(--wx-text-3);
  line-height: 1.6;
}
.wx-placeholder-sub b { color: var(--wx-accent); font-weight: 500; }

.wx-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border: 2px solid rgba(0, 255, 255, 0.15);
  border-top-color: var(--wx-accent);
  border-radius: 50%;
  animation: wxSpin 0.9s linear infinite;
}
@keyframes wxSpin { to { transform: rotate(360deg); } }
.wx-loading-text {
  font-size: 13px;
  color: var(--wx-text-3);
  letter-spacing: 1px;
}

.wx-retry {
  margin-top: 16px;
  padding: 10px 24px;
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid var(--wx-accent-dim);
  border-radius: 8px;
  color: var(--wx-accent);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}
.wx-retry:hover { background: rgba(0, 255, 255, 0.2); }

/* ═════════ HERO CARD ═════════ */
.wx-hero {
  background:
    linear-gradient(135deg, rgba(0, 255, 255, 0.035), rgba(255, 0, 255, 0.015) 70%, transparent),
    var(--wx-card);
  border: 1px solid var(--wx-border);
  border-radius: 20px;
  padding: 28px 32px 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.wx-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.08), transparent 70%);
  pointer-events: none;
}
.wx-hero-loc {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  position: relative;
}
.wx-hero-city {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.wx-hero-region {
  color: var(--wx-text-3);
  font-weight: 400;
  font-size: 13px;
}
.wx-hero-date {
  font-size: 12px;
  color: var(--wx-text-3);
  letter-spacing: 1px;
}
.wx-hero-main {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 8px 0 6px;
  position: relative;
}
.wx-hero-icon {
  font-size: 72px;
  line-height: 1;
  filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.15));
}
.wx-hero-temp {
  font-size: 86px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--wx-text);
  font-variant-numeric: tabular-nums;
}
.wx-hero-deg {
  font-size: 44px;
  color: var(--wx-accent);
  font-weight: 400;
  margin-left: 2px;
}
.wx-hero-desc {
  font-size: 15px;
  color: var(--wx-text-2);
  margin-bottom: 18px;
  position: relative;
}
.wx-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--wx-border);
  position: relative;
}
.wx-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.wx-stat-icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 255, 0.06);
  border-radius: 8px;
}
.wx-stat-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.wx-stat-label {
  color: var(--wx-text-3);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}
.wx-stat-val {
  color: var(--wx-text);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═════════ SECTIONS ═════════ */
.wx-section {
  margin-bottom: 24px;
}
.wx-section-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--wx-text-3);
  margin-bottom: 12px;
  padding-left: 4px;
}

/* ═════════ HOURLY CHART ═════════ */
.wx-chart-wrap {
  background: var(--wx-card);
  border: 1px solid var(--wx-border);
  border-radius: 14px;
  padding: 18px 14px 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
.wx-chart-wrap::-webkit-scrollbar { height: 6px; }
.wx-chart-wrap::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 3px; }
.wx-chart {
  display: block;
  width: 100%;
  min-width: 560px;
  height: 200px;
}
.wx-chart-line {
  fill: none;
  stroke: var(--wx-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(0, 255, 255, 0.4));
}
.wx-chart-area {
  fill: rgba(0, 255, 255, 0.08);
}
.wx-chart-dot {
  fill: var(--wx-accent);
  stroke: var(--wx-bg);
  stroke-width: 1.5;
}
.wx-chart-bar {
  fill: rgba(100, 181, 246, 0.45);
}
.wx-chart-xlabel {
  fill: var(--wx-text-3);
  font-size: 10px;
  font-family: 'Chakra Petch', sans-serif;
  text-anchor: middle;
}
.wx-chart-tlabel {
  fill: var(--wx-text);
  font-size: 11px;
  font-weight: 500;
  font-family: 'Chakra Petch', sans-serif;
  text-anchor: middle;
  font-variant-numeric: tabular-nums;
}
.wx-chart-legend {
  display: flex;
  gap: 18px;
  justify-content: center;
  padding: 10px 0 4px;
  font-size: 10px;
  color: var(--wx-text-3);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.wx-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.wx-legend-swatch {
  width: 14px; height: 3px;
  border-radius: 2px;
  display: inline-block;
}
.wx-legend-temp { background: var(--wx-accent); box-shadow: 0 0 6px rgba(0, 255, 255, 0.5); }
.wx-legend-rain { background: rgba(100, 181, 246, 0.8); height: 8px; border-radius: 1px; }

/* ═════════ 7-DAY FORECAST ═════════ */
.wx-days {
  background: var(--wx-card);
  border: 1px solid var(--wx-border);
  border-radius: 14px;
  padding: 4px 18px;
}
.wx-day-row {
  display: grid;
  grid-template-columns: 60px 50px 40px 44px 44px 1fr 44px;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.wx-day-row:last-child { border-bottom: none; }
.wx-day-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--wx-text);
}
.wx-day-date {
  font-size: 11px;
  color: var(--wx-text-3);
  font-variant-numeric: tabular-nums;
}
.wx-day-icon {
  font-size: 22px;
  text-align: center;
  line-height: 1;
}
.wx-day-pop {
  font-size: 11px;
  color: rgba(100, 181, 246, 0.9);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.wx-day-lo {
  font-size: 13px;
  color: var(--wx-text-3);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.wx-day-hi {
  font-size: 13px;
  color: var(--wx-text);
  font-weight: 500;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.wx-day-bar {
  position: relative;
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}
.wx-day-bar-fill {
  position: absolute;
  top: 0; bottom: 0;
  background: linear-gradient(90deg, #00d4ff, #00ffff 50%, #ffeb3b 80%, #ff9a3c);
  border-radius: 3px;
}

/* ═════════ EXTRAS: AQI / UV / SUN ═════════ */
.wx-extras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.wx-extra-card {
  background: var(--wx-card);
  border: 1px solid var(--wx-border);
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 120px;
  transition: border-color 0.2s, transform 0.2s;
}
.wx-extra-card:hover {
  border-color: var(--wx-border-strong);
  transform: translateY(-2px);
}
.wx-extra-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--wx-text-3);
  font-weight: 600;
}
.wx-extra-val {
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}
.wx-extra-val.wx-extra-na { color: var(--wx-text-4); }
.wx-extra-sub {
  font-size: 12px;
  color: var(--wx-text-2);
  margin-top: auto;
}

/* ═════════ SUN ARC CARD ═════════ */
.wx-sun-card {
  grid-column: span 2;
  align-items: stretch;
}
.wx-sun-card .wx-extra-label { margin-bottom: 4px; }
.wx-sun-arc-wrap {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 6px 0;
}
.wx-sun-arc {
  width: 100%;
  max-width: 240px;
  height: 90px;
  overflow: visible;
}
.wx-sun-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 2;
  stroke-dasharray: 3 4;
}
.wx-sun-filled {
  fill: none;
  stroke: var(--wx-accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(0, 255, 255, 0.35));
}
.wx-sun-ground {
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1;
}
.wx-sun-dot {
  fill: #ffd54f;
  stroke: #ffe38b;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 10px rgba(255, 213, 79, 0.7));
}
.wx-sun-times {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: var(--wx-text);
  font-variant-numeric: tabular-nums;
  padding-top: 8px;
  margin-top: auto;
}
.wx-sun-slot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.wx-sun-ic { font-size: 16px; }

/* ═════════ WIND COMPASS CARD ═════════ */
.wx-compass-card {
  grid-column: span 2;
}
.wx-compass-body {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 6px;
}
.wx-compass-wrap {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
}
.wx-compass {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.wx-compass-ring {
  fill: rgba(0, 255, 255, 0.02);
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
}
.wx-compass-tick {
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 1;
}
.wx-compass-tick-major {
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 1.5;
}
.wx-compass-text {
  fill: var(--wx-text-3);
  font-size: 10px;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 600;
  text-anchor: middle;
  letter-spacing: 0.5px;
}
.wx-compass-text.wx-compass-n {
  fill: var(--wx-accent);
}
.wx-compass-arrow {
  fill: var(--wx-accent);
  filter: drop-shadow(0 0 4px rgba(0, 255, 255, 0.5));
}
.wx-compass-center {
  fill: var(--wx-text);
}
.wx-compass-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wx-compass-speed {
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
  color: var(--wx-text);
  font-variant-numeric: tabular-nums;
}
.wx-compass-unit {
  font-size: 14px;
  color: var(--wx-text-3);
  font-weight: 400;
}
.wx-compass-sub {
  font-size: 12px;
  color: var(--wx-text-2);
}
.wx-compass-gust {
  font-size: 11px;
  color: var(--wx-text-3);
  margin-top: 2px;
}

/* Calm-wind placeholder — shown when wind speed is 0 or direction is
   unavailable. Keeps the grid slot alive so the layout doesn't jump. */
.wx-compass-calm .wx-compass-body {
  min-height: 120px;
}
.wx-compass-calm-icon {
  font-size: 48px;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.55;
  filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.15));
}

/* ═════════ INSIGHTS ═════════ */
.wx-insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.wx-insight {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--wx-card);
  border: 1px solid var(--wx-border);
  border-radius: 12px;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.wx-insight:hover {
  border-color: var(--wx-accent-dim);
  background: rgba(0, 255, 255, 0.03);
  transform: translateY(-1px);
}
.wx-insight-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(0, 255, 255, 0.08);
  border: 1px solid var(--wx-border);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.wx-insight-body {
  flex: 1 1 auto;
  min-width: 0;
}
.wx-insight-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--wx-text-3);
  margin-bottom: 4px;
}
.wx-insight-value {
  font-size: 13px;
  color: var(--wx-text);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

/* ═════════ MOBILE ═════════ */
@media (max-width: 760px) {
  .wx-header {
    height: auto;
    padding: 16px 16px 16px 72px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .wx-title { order: 0; flex: 0 0 100%; }
  .wx-search-wrap { order: 1; max-width: none; flex: 1 1 auto; }
  .wx-loc-btn { order: 2; padding: 0 12px; }
  .wx-loc-label { display: none; }
  .wx-refresh-btn { order: 3; width: 36px; height: 36px; }

  .wx-main { padding: 18px 16px 32px; }

  .wx-hero {
    padding: 22px 20px 18px;
    border-radius: 16px;
  }
  .wx-hero-main { gap: 12px; }
  .wx-hero-icon { font-size: 56px; }
  .wx-hero-temp { font-size: 68px; }
  .wx-hero-deg { font-size: 34px; }
  .wx-hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .wx-day-row {
    grid-template-columns: 50px 36px 40px 1fr 36px;
    gap: 10px;
    padding: 12px 0;
  }
  .wx-day-date, .wx-day-pop { display: none; }
  .wx-day-lo { text-align: right; }

  .wx-days { padding: 4px 14px; }
  .wx-extras { grid-template-columns: 1fr 1fr; }
  .wx-extra-card { padding: 16px 18px; min-height: 100px; }
  .wx-extra-val { font-size: 28px; }

  .wx-sun-card, .wx-compass-card { grid-column: span 2; }
  .wx-compass-body { gap: 14px; }
  .wx-compass-wrap { width: 100px; height: 100px; }
  .wx-compass-speed { font-size: 28px; }

  .wx-insights { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
  .wx-extras { grid-template-columns: 1fr; }
  .wx-sun-card, .wx-compass-card { grid-column: span 1; }
  .wx-compass-body { flex-direction: column; align-items: flex-start; gap: 10px; }
  .wx-compass-wrap { width: 110px; height: 110px; align-self: center; }
}
