.wx {
  max-width: 76rem;
  margin: auto;
  padding: clamp(1rem, 3vw, 2.5rem) 0;
}
.wx-heading,
.wx-hour-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.wx-heading h1 {
  font-size: clamp(2.75rem, 6vw, 4.9rem);
}
.wx-heading .eyebrow {
  margin-bottom: 0.6rem;
}
.wx-heading label,
.wx-hour-head label {
  font-size: 0.85rem;
  font-weight: 600;
}
.wx-heading label {
  display: block;
  margin-bottom: 0.25rem;
}
.wx select {
  font-size: 1rem;
  min-height: 44px;
}
.wx-status,
.wx-sources {
  margin: 1rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.wx-overview,
.wx-layout {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.wx-layout {
  grid-template-columns: minmax(18rem, 0.9fr) minmax(0, 1.3fr);
  align-items: start;
}
.wx-card,
.wx-current {
  border-radius: 1.2rem;
  padding: clamp(1rem, 2.6vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
}
.wx h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
}
.wx-current {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #174a5c, #376b77);
  display: grid;
  align-content: center;
  min-height: 15rem;
}
.wx-current[data-sky="night"] {
  background: linear-gradient(130deg, #17273e, #334566);
}
.wx-current[data-sky="clear"] {
  background: linear-gradient(130deg, #145475, #317b91);
}
.wx-current[data-sky="wet"] {
  background: linear-gradient(130deg, #2b4358, #516b78);
}
.wx-symbol {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(3.8rem, 9vw, 8.5rem);
  line-height: 1;
  z-index: -1;
}
.wx-temp {
  font: 500 clamp(3.7rem, 8vw, 6.2rem) / 1.05 system-ui;
  letter-spacing: -0.08em;
}
#weather-condition {
  font-weight: 650;
  font-size: 1.12rem;
}
#weather-range {
  font-size: 0.87rem;
  margin-top: 0.25rem;
}
.wx-observations dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem 0.65rem;
  margin: 1rem 0 0;
}
.wx-observations dt {
  font-size: 0.78rem;
  color: var(--muted);
}
.wx-observations dd {
  margin: 0.2rem 0 0;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
#weather-days {
  margin-top: 0.65rem;
}
#weather-days button {
  width: 100%;
  display: grid;
  grid-template-columns: 5.2rem 2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.45rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0.4rem;
  min-height: 46px;
  text-align: left;
  background: transparent;
  font-size: 0.88rem;
}
#weather-days button[aria-pressed="true"] {
  background: var(--sea);
  box-shadow: inset 3px 0 var(--ink);
  color: var(--ink);
}
.wx-day-icon {
  font-size: 1.35rem;
}
.wx-day-range {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}
.wx-daylight {
  margin: 0.75rem 0;
  padding: 0.55rem 0.7rem;
  background: var(--paper);
  border-radius: 0.5rem;
  font-size: 0.85rem;
}
#weather-hours {
  padding: 0;
  margin: 0;
  list-style: none;
  max-height: 26rem;
  overflow: auto;
  scrollbar-gutter: stable;
}
#weather-hours li {
  display: grid;
  grid-template-columns: 3.1rem 1.8rem minmax(0, 1fr) auto;
  gap: 0.35rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 0.2rem;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}
.wx-sources {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
@media (max-width: 740px) {
  .wx-layout,
  .wx-overview {
    grid-template-columns: 1fr;
  }
  .wx-current {
    min-height: 12.5rem;
  }
  .wx-symbol {
    font-size: 5.7rem;
  }
  .wx-observations dl {
    grid-template-columns: repeat(3, 1fr);
  }
  .wx-hourly {
    order: 0;
  }
  .wx-week {
    order: 0;
  }
  #weather-hours {
    max-height: 21rem;
  }
}
@media (max-width: 390px) {
  .wx-heading {
    align-items: start;
  }
  .wx-observations dl {
    grid-template-columns: repeat(2, 1fr);
  }
  #weather-days button {
    grid-template-columns: 4.8rem 1.6rem 1fr auto;
    font-size: 0.8rem;
  }
}

.wx {
  width: calc(100% - clamp(1.5rem, 6vw, 5rem));
}
#weather-trend {
  margin: 0.75rem 0;
  background: var(--paper);
  padding: 0.75rem;
  border-radius: 0.65rem;
}
#weather-trend figcaption,
.wx-axis {
  font-size: 0.78rem;
  color: var(--muted);
}
.wx-bars {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 3.2rem;
  margin-top: 0.65rem;
  border-bottom: 1px solid var(--line);
}
.wx-bars i {
  flex: 1;
  background: #408391;
  border-radius: 3px 3px 0 0;
}
.wx-axis {
  display: flex;
  justify-content: space-between;
}
