/* Header weather widget — Open-Meteo via hub360-pins */

.hub360-weather-nav {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2, 0.5rem);
  height: var(--header-control-height, 2.5rem);
  min-height: var(--header-control-height, 2.5rem);
  padding-inline: var(--space-3, 0.75rem);
  border: 1px solid color-mix(in srgb, var(--theme-border) 65%, transparent);
  border-radius: var(--radius-pill, 9999px);
  background: color-mix(in srgb, var(--theme-surface) 72%, transparent);
  color: var(--theme-text);
  font-family: var(--font-body);
  font-size: var(--text-sm, 0.875rem);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition:
    border-color var(--dur-fast, 0.15s) var(--ease-expo-out, ease),
    background var(--dur-fast, 0.15s) var(--ease-expo-out, ease);
}

.hub360-weather-nav:hover,
.hub360-weather-nav:focus-within {
  border-color: var(--theme-border);
  background: var(--theme-surface);
}

.hub360-weather-nav__glyph {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.hub360-weather-nav__temp {
  font-variant-numeric: tabular-nums;
}

.hub360-weather-nav__place {
  max-width: 8rem;
  overflow: hidden;
  color: var(--theme-muted);
  font-weight: 500;
  text-overflow: ellipsis;
}

@media (max-width: 960px) {
  .hub360-weather-nav__place {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub360-weather-nav {
    transition: none;
  }
}


/* Weather emojis — native color emoji fonts */

.hub360-wx-emoji {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-style: normal;
  font-variant-emoji: emoji;
  -webkit-font-smoothing: auto;
}

.hub360-wx-emoji--nav {
  font-size: 1.25rem;
}

/* Pin cards set emoji size via --wx-emoji on .pin-weather__card */
.hub360-wx-emoji--forecast,
.hub360-wx-emoji--lg {
  font-size: 2rem;
}

.hub360-wx-emoji--md {
  font-size: 1.75rem;
}

.hub360-wx-emoji--sm,
.hub360-wx-emoji--mini {
  font-size: 1.375rem;
}

/* Editorial weather pill embed */

.hub360-weather-pill {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2, 0.5rem);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--theme-border-soft);
  border-radius: var(--radius-pill);
  background: var(--theme-subtle);
  color: var(--theme-text);
  font-size: var(--text-sm);
  line-height: 1.3;
}

.hub360-weather-pill__temp {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hub360-weather-pill__label,
.hub360-weather-pill__place {
  color: var(--theme-muted);
}

.hub360-weather-pill__place::before {
  content: "·";
  margin-inline: var(--space-1);
}
