/* Condições de Cuiabá em linha compacta no cabeçalho, sem cartão ou crédito visual. */
.header-weather-slot {
  display: flex;
  align-items: center;
  min-width: 0;
  margin-left: auto;
}
.header-weather {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 12px;
  width: fit-content;
  max-width: 330px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #eff7ff;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: color .5s ease;
}
.header-weather-copy {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 8px;
  min-width: 0;
}
.header-weather-city {
  margin: 0;
  color: #f2f8ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.header-weather-time {
  color: #a8bbcc;
  font-size: 9px;
  line-height: 1.35;
  white-space: nowrap;
}
.weather-current { display: flex; align-items: center; gap: 7px; min-width: 0; }
.weather-condition-icon { width: 23px; height: 23px; flex: none; color: #f4c95d; }
.weather-reading { display: grid; gap: 2px; min-width: 0; }
.weather-temperature { color: #f5f9ff; font-size: 15px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.weather-condition-label { display: block; max-width: 120px; overflow: hidden; color: #b7c7d7; font-size: 9px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.header-weather[data-state="rain"] .weather-condition-icon { color: #78d8f8; }
.header-weather[data-state="cloud"] .weather-condition-icon { color: #b7c9d9; }
.header-weather[data-state="moon"] .weather-condition-icon { color: #c8caff; }
.header-weather[data-state="unavailable"] .weather-condition-icon { color: #93a3b3; }

#rain-canvas {
  position: fixed;
  z-index: 32;
  inset: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: .92;
}

@media (max-width: 980px) {
  .header-weather { max-width: 300px; gap: 4px 9px; }
  .header-weather-time { font-size: 8px; }
}

@media (max-width: 760px) {
  :root { --header: 108px; }
  .nav-inner {
    width: calc(100% - 34px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 42px auto;
    align-content: center;
    gap: 4px 12px;
  }
  .nav-inner > .brand { grid-column: 1; grid-row: 1; }
  .nav-inner > .menu-toggle { grid-column: 2; grid-row: 1; justify-self: end; margin-left: 0; }
  .nav-inner > nav { grid-column: 1 / -1; grid-row: 2; height: 0; min-height: 0; }
  .header-weather-slot { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; min-width: 0; margin: 0; }
  .header-weather { justify-content: flex-start; gap: 5px 12px; width: 100%; max-width: none; }
}

@media (max-width: 430px) {
  :root { --header: 116px; }
  .nav-inner { width: calc(100% - 32px); }
  .header-weather { flex-wrap: wrap; align-content: center; }
  .header-weather-copy { flex: 0 0 100%; gap: 0 7px; }
  .weather-current { gap: 6px; }
  .weather-condition-icon { width: 21px; height: 21px; }
  .weather-temperature { font-size: 14px; }
  .weather-condition-label { max-width: 120px; font-size: 8px; }
}

@media (max-width: 360px) {
  .header-weather-copy { gap: 0 5px; }
  .header-weather-city { font-size: 10px; }
  .header-weather-time { font-size: 8px; }
  .weather-condition-icon { width: 20px; height: 20px; }
  .weather-condition-label { max-width: 105px; }
}

/* Com movimento reduzido, a chuva permanece representada sem animação contínua. */
@media (prefers-reduced-motion: reduce) {
  .header-weather { transition: none; }
}

/* No mobile, manter identificação à esquerda e leitura do clima à direita. */
@media (max-width: 760px) {
  .header-weather-slot {
    align-self: stretch;
    align-items: center;
    width: 100%;
    gap: 12px;
  }
  .header-partner { height: 38px; padding-inline: 10px; }
  .header-partner-logo { width: 96px; }
  .header-weather {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto;
    align-items: center;
    justify-content: stretch;
    gap: 0 10px;
    flex: 1 1 auto;
    width: auto;
  }
  .header-weather-copy {
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 2px;
    min-width: 0;
  }
  .header-weather-time {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .weather-current {
    justify-self: end;
    gap: 7px;
  }
}

@media (max-width: 430px) {
  .header-weather { column-gap: 9px; }
  .header-weather-slot { gap: 10px; }
  .header-partner { height: 34px; padding-inline: 8px; }
  .header-partner-logo { width: 84px; }
  .weather-condition-label { max-width: 96px; }
}

@media (max-width: 360px) {
  .header-weather { column-gap: 7px; }
  .header-partner { height: 31px; padding-inline: 7px; }
  .header-partner-logo { width: 76px; }
  .weather-condition-label { max-width: 78px; }
}
