/* ==========================================================================
   Weather bubble — chip + forecast dropdown + procedural glyph tiles
   ========================================================================== */

.hp-wx { position: relative; font-family: var(--hp-font-ui); color: var(--hp-ink); }

.hp-wx__chip {
  display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 5px; min-height: 44px;
  border-radius: 999px; border: 1px solid var(--hp-line-12); background: #fff;
  transition: border-color var(--hp-t);
}
.hp-wx__chip:hover { border-color: var(--hp-ink); }
.hp-wx__col { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.hp-wx__temp { font-size: 14px; font-weight: 700; }
.hp-wx__temp .hpw-txt { font-weight: 600; }
.hp-wx__label { font-size: 11.5px; color: var(--hp-muted); font-weight: 600; }
@media (max-width: 560px) { .hpw-txt { display: none; } }

/* Glyph tile */
.hp-wx-glyph { display: inline-block; border-radius: 50%; overflow: hidden; position: relative; flex: 0 0 auto; }
.hp-wx-glyph svg { display: block; width: 100%; height: 100%; }

.hp-wx__glyph { width: 34px; height: 34px; display: inline-block; }

/* Panel */
.hp-wx__scrim { position: fixed; inset: 0; z-index: 590; }
.hp-wx__panel {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: min(380px, calc(100vw - 24px)); max-height: calc(100vh - 90px); overflow: auto;
  background: #fff; border-radius: 18px; z-index: 600;
  box-shadow: 0 0 0 1px rgba(14, 27, 36, .08), 0 30px 70px -26px rgba(14, 27, 36, .55);
  animation: hp-drop .2s ease both;
}
.hp-wx__panel[hidden] { display: none; }

.hp-wx-hero { padding: 20px 20px 16px; }
.hp-wx-hero__row { display: flex; align-items: center; gap: 14px; }
.hp-wx-hero__eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.hp-wx-hero__temp { font-family: var(--hp-font-display); font-size: 42px; font-weight: 700; line-height: 1; }
.hp-wx-hero__label { font-size: 15px; font-weight: 600; }
.hp-wx-hero__meta { font-size: 12.5px; opacity: .85; }

.hp-wx-days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.hp-wx-day { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border-radius: 12px; }
.hp-wx-day__name { font-size: 11.5px; font-weight: 700; }
.hp-wx-day__hi { font-size: 12px; font-weight: 700; }
.hp-wx-day__lo { opacity: .7; font-weight: 600; }

.hp-wx-spots { padding: 14px 20px 6px; }
.hp-wx-spots__title { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hp-muted); }
.hp-wx-spot { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid rgba(14, 27, 36, .07); }
.hp-wx-spot__body { flex: 1; min-width: 0; }
.hp-wx-spot__name { font-size: 14.5px; font-weight: 700; }
.hp-wx-spot__note { font-size: 12px; color: var(--hp-muted); }
.hp-wx-spot__temp { font-family: var(--hp-font-display); font-size: 18px; font-weight: 700; text-align: right; }
.hp-wx-spot__label { font-size: 11.5px; color: var(--hp-muted); text-align: right; }

.hp-wx-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px 18px; font-size: 12px; color: var(--hp-muted); border-top: 1px solid rgba(14, 27, 36, .07); }
.hp-wx-foot a { color: var(--hp-link); font-weight: 700; }

/* Glyph animations */
@keyframes hpw-spin { to { transform: rotate(360deg); } }
@keyframes hpw-bob { 0%,100% { transform: translateX(-1px); } 50% { transform: translateX(1px); } }
@keyframes hpw-drop { 0% { transform: translateY(-2px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(6px); opacity: 0; } }
@keyframes hpw-flake { 0% { transform: translateY(-2px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(6px); opacity: .2; } }
@keyframes hpw-flash { 0%,92%,100% { opacity: .25; } 94% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hp-wx-glyph * { animation: none !important; } }

/* ==== Responsive audit fix: keep the forecast panel on-screen on phones ==== */
@media (max-width: 560px) {
  .hp-wx__panel { position: fixed; left: 12px; right: 12px; width: auto; top: calc(var(--hp-abar, 0px) + var(--hp-hdr, 68px) + 8px); max-height: calc(100vh - var(--hp-hdr, 68px) - 24px); overflow: auto; }
}

/* ==== Hide the chip until it's fully populated (no half-loaded flash) ==== */
.hp-wx { transition: opacity .25s ease; }
.hp-wx.is-loading { opacity: 0; pointer-events: none; } /* space reserved; fades in on load */
