.header-weather[hidden] { display: none; }
/* O transform no mobile cria uma camada própria: elevar o componente inteiro. */
.header-weather[open] { z-index: 90; }
.header-weather { position: relative; color: var(--rmn-navy, #031e3b); font-size: .75rem; flex-shrink: 0; }
.header-weather summary { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; padding: 6px 10px; border: 1px solid #e0e5eb; border-radius: 8px; background: #f7f8fa; }
.header-weather summary::-webkit-details-marker { display: none; }
.header-weather summary svg { width: 24px; height: 24px; color: var(--rmn-gold-ink, #8a5712); flex-shrink: 0; }
.header-weather summary strong { white-space: nowrap; font-size: 1.1rem; line-height: 1.2; }
.weather-city { font-size: .75rem; font-weight: 600; white-space: nowrap; }
.header-weather summary:focus-visible { outline: 2px solid var(--rmn-gold-ink, #8a5712); outline-offset: 3px; }
.weather-panel { position: absolute; top: calc(100% + 8px); left: 0; width: 290px; max-width: calc(100vw - 32px); background: #fff; padding: 20px; border: 1px solid #dce2e8; border-top: 3px solid #fea928; border-radius: 8px; box-shadow: 0 8px 24px rgba(3,30,59,.12); z-index: 80; font-size: .8rem; line-height: 1.5; }
.weather-panel > strong, .weather-panel > span { display: block; }
.weather-panel > strong { font-family: 'Source Serif 4', serif; font-size: 1.1rem; }
.weather-panel p { margin: 10px 0; }
.weather-panel a { color: #8a5712; text-decoration: underline; text-underline-offset: 3px; }
.weather-news { display: inline-block; margin-top: 5px; }
.topbar-left:has(.header-weather:not([hidden])) .header-region { display: none; }
@media (min-width: 641px) and (max-width: 1100px) {
  .header-weather summary { flex-wrap: wrap; gap: 3px 6px; }
  .weather-city { order: -1; flex-basis: 100%; text-align: center; }
  .header-weather summary svg { margin-left: auto; }
  .header-weather summary strong { margin-right: auto; }
}
@media (max-width: 640px) {
  .topbar-inner:has(.header-weather:not([hidden])) { flex-wrap: wrap; }
  .header-weather { position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% - 42px); }
  .topbar-inner:has(.header-weather:not([hidden])) { padding-bottom: 46px; position: relative; }
  .weather-city { display: inline; }
  .header-weather summary { min-height: 34px; padding: 4px 12px; }
  .weather-panel { left: 50%; transform: translateX(-50%); }
}
