@font-face {
  font-family: 'Weather Icons';
  src: url('weather.woff2') format('woff2');
  font-display: block;
}
.weather { background: var(--mist); padding-block: clamp(2rem, 4vw, 4rem); }
.weather-head, .weather-controls, .weather-source, .weather-feedback {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .7rem;
}
.weather-head { justify-content: space-between; align-items: end; gap: 1.35rem; }
.weather-head .eyebrow { margin-bottom: .7rem; }
#weather-title { font-size: clamp(2rem, 3vw, 3rem); overflow-wrap: anywhere; }
.weather button, #weather-search {
  border: 1px solid #abbdb1;
  border-radius: .34rem;
  height: 2.85rem;
  font: inherit;
  color: var(--ink);
  padding: 0 .95rem;
  background: white;
}
.weather button { display: flex; align-items: center; gap: .5rem; font-weight: 600; cursor: pointer; }
.weather button:hover { border-color: var(--green); }
#weather-locate { background: var(--ink); color: white; border-color: var(--ink); }
#weather-locate:hover { background: var(--green); }
#weather-locate:disabled { opacity: .65; cursor: progress; }
#weather-locate .icon { color: var(--lime); font-size: 1.2rem; }
.weather-places { position: relative; flex: 1; min-width: 0; }
#weather-search { width: 100%; max-width: 16rem; }
#weather-search::placeholder { color: var(--muted); opacity: 1; }
#weather-matches {
  position: absolute;
  right: 0;
  z-index: 2;
  width: max(100%, 17rem);
  max-width: 88vw;
  max-height: 14rem;
  overflow: auto;
  overscroll-behavior: contain;
  margin: .35rem 0 0;
  padding: .28rem;
  list-style: none;
  background: white;
  border: 1px solid var(--rule);
  border-radius: .4rem;
  box-shadow: 0 .6rem 1.5rem #132d291c;
}
#weather-matches li { padding: .6rem; cursor: pointer; border-radius: .22rem; }
#weather-matches li:hover, #weather-matches li[aria-selected="true"] { background: var(--mist); }
#weather-matches li[aria-disabled] { color: var(--muted); cursor: default; }
.weather-feedback { color: var(--green); font-size: .95rem; }
.weather-feedback > :empty { display: none; }
.weather-feedback:has(> span:not(:empty)) { margin-top: 1rem; }
.weather #weather-retry[hidden] { display: none; }
#weather-hours {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(10, minmax(6.55rem, 1fr));
  margin: 1.5rem 0 0;
  padding: .9rem 0;
  background: white;
  border: 1px solid var(--rule);
  border-radius: .5rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-color: #87a394 transparent;
  scrollbar-width: thin;
  font-variant-numeric: tabular-nums;
}
#weather-hours[hidden] { display: none; }
#weather-hours li {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding-block: .3rem;
  align-items: center;
  scroll-snap-align: start;
  font-size: .875rem;
  color: var(--muted);
}
#weather-hours li + li { border-left: 1px solid var(--rule); }
#weather-hours time { font-size: .94rem; font-weight: 600; color: var(--green); text-align: center; }
#weather-hours strong { font-size: 1.28rem; letter-spacing: -.04em; color: var(--ink); margin-bottom: .24rem; }
.weather-symbol { display: inline-block; font: 1rem/1 'Weather Icons'; color: var(--green); text-align: center; width: 1.25rem; margin-right: .3rem; }
.weather-sky { width: auto; font-size: 1.9rem; margin: .65rem 0 .54rem; }
.weather-source { justify-content: space-between; margin-top: .95rem; color: var(--muted); font-size: .82rem; }
.weather-source a { text-underline-offset: .2em; }
@media (max-width: 53rem) {
  .header-inner { grid-template-columns: 1fr auto; gap: .45rem .8rem; padding-block: .65rem .45rem; }
  .header-inner > nav:not(.language-switch) {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-content: space-between;
    gap: .4rem;
    flex-wrap: wrap;
  }
  .language-switch { grid-column: 2; grid-row: 1; }
}
@media (max-width: 42rem) {
  .weather-controls { width: 100%; gap: .55rem; }
  #weather-search { max-width: none; padding-inline: .62rem; }
  #weather-locate { padding-inline: .65rem; font-size: .9rem; }
  .weather-source { gap: .4rem; }
  #weather-hours { margin-top: 1rem; }
}
@media (max-width: 23rem) {
  .weather-controls { flex-direction: column; align-items: stretch; }
  #weather-locate { justify-content: center; }
}
