/* =========================================================
   Schedule calendar weather
   Adds compact current-location forecast chips to each date.
   Scoped to #scheduleTab only.
   ========================================================= */

#scheduleTab .big-calendar-day.has-calendar-weather {
  gap: clamp(3px, 0.9vw, 6px) !important;
}

#scheduleTab .calendar-weather-chip {
  width: fit-content;
  max-width: 100%;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: 2px 7px 2px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: rgba(45, 51, 75, 0.82);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

#scheduleTab .calendar-weather-icon {
  width: 14px;
  min-width: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
}

#scheduleTab .calendar-weather-temp {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

#scheduleTab.calendar-weather-loading .big-calendar-day[data-calendar-date]:not(.has-calendar-weather)::after {
  content: "";
  width: 22px;
  height: 4px;
  margin-top: -1px;
  border-radius: 999px;
  background: rgba(132, 142, 168, 0.18);
  pointer-events: none;
}

body.dark-theme #scheduleTab .calendar-weather-chip {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(245, 247, 255, 0.86);
}

body.dark-theme #scheduleTab.calendar-weather-loading .big-calendar-day[data-calendar-date]:not(.has-calendar-weather)::after {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 820px) {
  #scheduleTab .calendar-weather-chip {
    min-height: 16px;
    max-width: 100%;
    gap: 2px;
    padding: 1px 4px 1px 3px;
    font-size: clamp(8px, 2.45vw, 10px);
  }

  #scheduleTab .calendar-weather-icon {
    width: clamp(10px, 3.2vw, 13px);
    min-width: clamp(10px, 3.2vw, 13px);
    font-size: clamp(9px, 2.8vw, 11px);
  }

  #scheduleTab .calendar-weather-temp {
    letter-spacing: -0.04em;
  }
}

@media (max-width: 380px) {
  #scheduleTab .calendar-weather-chip {
    padding-right: 3px;
  }
}
