.navbar-weather {
  position: relative;
  display: grid;
  grid-template-columns: 2rem auto 2rem;
  align-items: center;
  gap: var(--ds-space-1);
  min-inline-size: 0;
  padding: 0.25rem;
  border: 1px solid transparent;
  border-radius: var(--ds-radius-button);
  color: var(--ds-color-text);
  background: rgb(0 0 0 / 20%);
  backdrop-filter: blur(10px);
}

.navbar-weather-icon,
.navbar-weather-location {
  display: grid;
  place-items: center;
  inline-size: 2rem;
  block-size: 2rem;
  border-radius: 50%;
}

.navbar-weather-icon {
  color: var(--ds-color-primary);
  background: color-mix(in srgb, var(--ds-color-primary) 13%, transparent);
}

.navbar-weather-icon svg {
  inline-size: 1.4rem;
  block-size: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.navbar-weather-copy {
  display: grid;
  min-inline-size: 0;
  gap: 0.05rem;
  text-align: start;
}

.navbar-weather-copy strong {
  font-family: var(--ds-font-heading);
  font-size: var(--ds-font-size-sm);
  line-height: var(--ds-leading-tight);
}

.navbar-weather-copy span,
.navbar-weather-copy small {
  overflow: hidden;
  color: color-mix(in srgb, var(--ds-color-text) 62%, transparent);
  font-family: var(--ds-font-body);
  font-size: 0.67rem;
  line-height: var(--ds-leading-normal);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.navbar-weather-copy span,
.navbar-weather-copy small { display: none; }

.navbar-weather-copy small { color: var(--ds-color-primary); }

.navbar-weather-location {
  padding: 0;
  border: 0;
  color: color-mix(in srgb, var(--ds-color-text) 72%, transparent);
  background: transparent;
  cursor: pointer;
  transition: color var(--ds-transition-fast), background-color var(--ds-transition-fast);
}

.navbar-weather-location:hover {
  color: var(--ds-color-text-on-primary);
  background: var(--ds-color-primary);
}

.navbar-weather-location:focus-visible,
.navbar-weather-source:focus-visible {
  outline: 2px solid var(--ds-color-primary);
  outline-offset: 2px;
}

.navbar-weather-location:disabled { cursor: wait; opacity: 0.62; }
.navbar-weather-location svg { inline-size: 1.05rem; block-size: 1.05rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.navbar-weather-source { display: none; }
.navbar-weather-source:hover { color: var(--ds-color-primary); }

@media (max-width: 1100px) {
  .site-header-controls { gap: var(--ds-space-2) !important; }
  .navbar-weather { min-inline-size: 0; }
}

@media (max-width: 639px) {
  .navbar-weather {
    grid-template-columns: 2rem auto;
    min-inline-size: 0;
    padding: 0.25rem;
    border-color: transparent;
    background: rgb(0 0 0 / 20%);
  }

  .navbar-weather-icon,
  .navbar-weather-location { inline-size: 2rem; block-size: 2rem; }
  .navbar-weather-location { display: none; }
  .navbar-weather-icon svg { inline-size: 1.25rem; block-size: 1.25rem; }
  .navbar-weather-copy strong { font-size: var(--ds-font-size-sm); }
  .navbar-weather-copy span,
  .navbar-weather-copy small { display: none; }
}

@media (max-width: 390px) {
  .navbar-weather { grid-template-columns: 1.7rem auto; gap: 0.15rem; }
  .navbar-weather-icon { inline-size: 1.7rem; block-size: 1.7rem; }
}
