/* =============================== */
/* WEATHER — Niguro's weather (weather.php; templates weather.tpl, __ng_wx_card.tpl, __ng_wx_icon.tpl;
   includes/assets/js/core/niguro-weather.js): /weather at niguroapp's own widths and sizes. From niguro's
   assets/css/weather.css (the scene card: sun, night, cloud, rain in three drop fields, storm, snow, fog)
   and niguroapp's skins (miti-weather.css, services-data.css, zz-*.css) as they resolve on niguro.com,
   in Niguro tokens. Colour only where it means something: the sky's scene, the rain chance and the
   night-time low (info blue), the day's warm high, the AQI levels; tiles and icons are the accent.
   Widths: phones and tablets full (8px gutter); 1024-1099px a 736px column; from 1100px 1120px with the
   288px city rail beside the card. Gaps 12px, 16px from 768px, 20px from 1100px. Loaded on /weather. */
/* =============================== */

.ng-wxpage { --wx-gap: 12px; }
@media (min-width: 768px) { .ng-wxpage { --wx-gap: 16px; } }
@media (min-width: 1100px) { .ng-wxpage { --wx-gap: 20px; } }
.ng-wxpage .ng-hubwrap { --ng-hub-max: 100%; padding-bottom: var(--wx-gap); }
/* [Weather top gap] (2026-10-19): the top gap is the frame's own 20px at every width (.ng-frame--hub), as /miti and the home */
@media (min-width: 1024px) { .ng-wxpage .ng-hubwrap { --ng-hub-max: 712px; } } /* + the 24px gutter: 736px */
@media (min-width: 1100px) { .ng-wxpage .ng-hubwrap { --ng-hub-max: 1096px; } } /* + the 24px gutter: 1120px */
.ng-wxpage .ng-hubwrap > * + :not(template) { margin-top: var(--wx-gap); }
.ng-wxpage .card { margin: 0; }

/* the card and the cities: one column, then the 288px rail beside the card */
.wx-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--wx-gap); }
@media (min-width: 1100px) { .wx-top { grid-template-columns: minmax(0, 1fr) 288px; align-items: start; } }
#weather-card-wrap { display: flex; flex-direction: column; gap: var(--wx-gap); min-width: 0; }

/* ------------------------------- */
/* The scene card                  */
/* ------------------------------- */
.wx-card {
  position: relative; isolation: isolate; overflow: hidden; margin: 0; border-radius: var(--ng-r);
  color: #fff; text-shadow: 0 1px 2px rgba(6, 20, 34, .28);
}
.wx-card.wx-empty { padding: 40px 16px; text-align: center; color: var(--ng-sub); background: var(--ng-card); text-shadow: none; }
/* [Weather top gap] (owner, 2026-10-19): the scene card is no longer a flush hero ([Flush hero phones], 2026-10-18,
   pulled it up behind the header and edge to edge below 1100px). It is the page's first card again, rounded, in the
   page's gutter, under the header by the frame's top margin (.ng-frame--hub, niguro.css), like other pages. */

.wx-scene { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.wx-scene-a, .wx-scene-b, .wx-scene-c { position: absolute; inset: 0; display: block; }

.wx-scene-sunny .wx-scene { background: linear-gradient(175deg, #1f7fd0 0%, #3ba0e0 42%, #8fd0ef 78%, #cfeaf7 100%); }
.wx-scene-sunny .wx-scene-a { background: radial-gradient(closest-side circle at 82% 14%, rgba(255, 246, 214, .95) 0%, rgba(255, 238, 176, .55) 38%, rgba(255, 238, 176, 0) 72%); }
.wx-scene-sunny .wx-scene-b { background: linear-gradient(112deg, rgba(255, 255, 255, 0) 46%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, 0) 54%); animation: wx-rays 16s ease-in-out infinite alternate; }

.wx-scene-night .wx-scene { background: linear-gradient(175deg, #0b1436 0%, #16204c 45%, #26305e 78%, #3b4472 100%); }
.wx-scene-night .wx-scene-a {
  background-image:
    radial-gradient(1.6px 1.6px at 18% 22%, rgba(255, 255, 255, .95) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 62% 14%, rgba(255, 255, 255, .85) 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 38% 44%, rgba(255, 255, 255, .8) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 84% 34%, rgba(255, 255, 255, .7) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 72% 62%, rgba(255, 255, 255, .6) 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 28% 68%, rgba(255, 255, 255, .55) 50%, transparent 51%);
  background-size: 340px 220px; animation: wx-stars 24s ease-in-out infinite alternate;
}
.wx-scene-night .wx-scene-b {
  background: radial-gradient(closest-side circle at 84% 16%, rgba(255, 250, 224, .92) 0%, rgba(255, 250, 224, .85) 44%, rgba(255, 250, 224, 0) 46%);
  -webkit-mask-image: radial-gradient(closest-side circle at 88% 20%, transparent 0%, transparent 44%, #000 46%);
  mask-image: radial-gradient(closest-side circle at 88% 20%, transparent 0%, transparent 44%, #000 46%);
}

.wx-scene-cloudy .wx-scene { background: linear-gradient(175deg, #4a5a70 0%, #61748c 45%, #8ea1b6 78%, #c3cfdc 100%); }
.wx-scene-cloudy .wx-scene-a {
  background: radial-gradient(closest-side ellipse at 20% 30%, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, 0) 100%),
              radial-gradient(closest-side ellipse at 74% 22%, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, 0) 100%);
}
.wx-scene-cloudy .wx-scene-b {
  background: radial-gradient(closest-side ellipse at 48% 54%, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, 0) 100%),
              radial-gradient(closest-side ellipse at 92% 62%, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, 0) 100%);
  animation: wx-clouds 34s linear infinite;
}

.wx-scene-rain .wx-scene { background: linear-gradient(175deg, #2c3d57 0%, #3d5372 45%, #5b7192 78%, #8fa2ba 100%); }
.wx-rain-heavy.wx-scene-rain .wx-scene { background: linear-gradient(175deg, #1f2c40 0%, #2c3d57 45%, #46587a 78%, #7487a0 100%); }

/* rain as three fields of drops (near, middle, far); how hard it rains is only the numbers */
.wx-wet {
  --wx-tile-a: 44px; --wx-tile-b: 23px; --wx-tile-c: 15px;
  --wx-fall-a: 78px; --wx-fall-b: 54px; --wx-fall-c: 36px;
  --wx-speed-a: .66s; --wx-speed-b: .44s; --wx-speed-c: .3s;
  --wx-a: .80; --wx-b: .60; --wx-c: .38; --wx-tilt: 7deg; --wx-drift: -16px;
}
.wx-rain-light { --wx-tile-a: 62px; --wx-tile-b: 33px; --wx-tile-c: 21px; --wx-speed-a: .98s; --wx-speed-b: .70s; --wx-speed-c: .48s; --wx-a: .58; --wx-b: .40; --wx-c: .24; --wx-tilt: 4deg; --wx-drift: -9px; }
.wx-rain-moderate { --wx-tile-a: 50px; --wx-tile-b: 26px; --wx-tile-c: 17px; --wx-speed-a: .80s; --wx-speed-b: .54s; --wx-speed-c: .36s; --wx-a: .72; --wx-b: .54; --wx-c: .34; }
.wx-rain-heavy { --wx-tile-a: 34px; --wx-tile-b: 19px; --wx-tile-c: 13px; --wx-speed-a: .50s; --wx-speed-b: .34s; --wx-speed-c: .23s; --wx-a: .92; --wx-b: .74; --wx-c: .52; --wx-tilt: 11deg; --wx-drift: -24px; }
.wx-wet .wx-scene-a, .wx-wet .wx-scene-b, .wx-wet .wx-scene-c { inset: -14% -18%; transform: rotate(var(--wx-tilt)); }
.wx-wet .wx-scene-a { background-image: radial-gradient(1.5px 11px at 50% 50%, rgba(236, 246, 255, var(--wx-a)) 28%, rgba(236, 246, 255, 0) 76%); background-size: var(--wx-tile-a) var(--wx-fall-a); animation: wx-fall-a var(--wx-speed-a) linear infinite; }
.wx-wet .wx-scene-b { background-image: radial-gradient(1.1px 7.5px at 50% 50%, rgba(226, 240, 255, var(--wx-b)) 28%, rgba(226, 240, 255, 0) 76%); background-size: var(--wx-tile-b) var(--wx-fall-b); animation: wx-fall-b var(--wx-speed-b) linear infinite; }
.wx-wet .wx-scene-c { background-image: radial-gradient(.85px 5px at 50% 50%, rgba(214, 232, 250, var(--wx-c)) 28%, rgba(214, 232, 250, 0) 76%); background-size: var(--wx-tile-c) var(--wx-fall-c); animation: wx-fall-c var(--wx-speed-c) linear infinite; }
.wx-rain-heavy .wx-scene::after {
  content: ""; position: absolute; inset: auto 0 0; height: 44%; pointer-events: none;
  background: linear-gradient(180deg, rgba(215, 232, 250, 0) 0%, rgba(215, 232, 250, .15) 60%, rgba(215, 232, 250, .27) 100%);
}

.wx-scene-storm .wx-scene { background: linear-gradient(175deg, #161d2c 0%, #242f42 45%, #333f57 78%, #4a5770 100%); }
.wx-scene-storm .wx-scene::before {
  content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(120% 70% at 30% 26%, rgba(232, 241, 255, .95) 0%, rgba(232, 241, 255, .34) 42%, rgba(232, 241, 255, 0) 76%);
  animation: wx-flash 13s ease-in-out infinite;
}
.wx-scene-storm .wx-scene-b::before, .wx-scene-storm .wx-scene-c::before {
  content: ""; position: absolute; width: 34px; height: 96px; opacity: 0;
  background: linear-gradient(180deg, #fff 0%, #eaf2ff 46%, #cadcff 100%);
  clip-path: polygon(58% 0%, 22% 47%, 47% 47%, 33% 100%, 82% 45%, 55% 45%, 75% 0%);
  filter: drop-shadow(0 0 12px rgba(226, 240, 255, .9)); animation: wx-bolt 13s linear infinite;
}
.wx-scene-storm .wx-scene-b::before { left: 17%; top: 14%; }
.wx-scene-storm .wx-scene-c::before { left: 63%; top: 22%; width: 22px; height: 62px; animation-duration: 17s; animation-delay: 2.4s; }
@media (min-width: 640px) {
  .wx-wet .wx-scene-a { background-size: calc(var(--wx-tile-a) * 1.35) var(--wx-fall-a); }
  .wx-wet .wx-scene-b { background-size: calc(var(--wx-tile-b) * 1.35) var(--wx-fall-b); }
  .wx-wet .wx-scene-c { background-size: calc(var(--wx-tile-c) * 1.35) var(--wx-fall-c); }
  .wx-scene-storm .wx-scene-b::before { left: 13%; width: 42px; height: 118px; }
  .wx-scene-storm .wx-scene-c::before { left: 68%; width: 26px; height: 74px; }
}

.wx-scene-snow .wx-scene { background: linear-gradient(175deg, #5b7fa6 0%, #7fa0c2 45%, #adc6dd 78%, #dbe8f3 100%); }
.wx-scene-snow .wx-scene-a {
  background-image:
    radial-gradient(2.4px 2.4px at 22% 18%, rgba(255, 255, 255, .9) 50%, transparent 51%),
    radial-gradient(2px 2px at 66% 34%, rgba(255, 255, 255, .8) 50%, transparent 51%),
    radial-gradient(2.6px 2.6px at 44% 62%, rgba(255, 255, 255, .75) 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 86% 52%, rgba(255, 255, 255, .7) 50%, transparent 51%);
  background-size: 260px 260px; animation: wx-snow 14s linear infinite;
}
.wx-scene-fog .wx-scene { background: linear-gradient(175deg, #6b7480 0%, #8b939d 45%, #b3bac2 78%, #d6dae0 100%); }
.wx-scene-fog .wx-scene-a { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .3) 46%, rgba(255, 255, 255, 0) 62%); animation: wx-fog 22s ease-in-out infinite alternate; }
.wx-scene-fog .wx-scene-b { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 52%, rgba(255, 255, 255, .22) 68%, rgba(255, 255, 255, 0) 84%); animation: wx-fog 30s ease-in-out infinite alternate-reverse; }

@keyframes wx-rays { from { transform: translate3d(-6%, 0, 0); } to { transform: translate3d(6%, 0, 0); } }
@keyframes wx-stars { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -10px, 0); } }
@keyframes wx-clouds { from { transform: translate3d(-4%, 0, 0); } to { transform: translate3d(4%, 0, 0); } }
@keyframes wx-fall-a { from { background-position: 0 0; } to { background-position: var(--wx-drift) var(--wx-fall-a); } }
@keyframes wx-fall-b { from { background-position: 9px 13px; } to { background-position: calc(9px + var(--wx-drift)) calc(var(--wx-fall-b) + 13px); } }
@keyframes wx-fall-c { from { background-position: 4px 6px; } to { background-position: calc(4px + var(--wx-drift)) calc(var(--wx-fall-c) + 6px); } }
@keyframes wx-snow { from { background-position: 0 -20px; } to { background-position: 0 240px; } }
@keyframes wx-fog { from { transform: translate3d(-8%, 0, 0); } to { transform: translate3d(8%, 0, 0); } }
@keyframes wx-flash { 0%, 40%, 54%, 100% { opacity: 0; } 42% { opacity: .85; } 44% { opacity: .12; } 47% { opacity: .6; } 50% { opacity: .05; } }
@keyframes wx-bolt { 0%, 40%, 54%, 100% { opacity: 0; } 42% { opacity: .95; } 44% { opacity: .1; } 47% { opacity: .75; } 50% { opacity: .04; } }

/* the content over a soft scrim */
.wx-inner {
  position: relative; z-index: 1; padding: 18px 16px 16px;
  background: linear-gradient(180deg, rgba(8, 22, 38, .06) 0%, rgba(8, 22, 38, .18) 55%, rgba(8, 22, 38, .3) 100%);
}
@media (min-width: 640px) { .wx-inner { padding: 22px 22px 20px; } }
.wx-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.wx-city { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; color: #fff; overflow-wrap: anywhere; }
.wx-day { margin: 2px 0 0; font-size: 13px; opacity: .85; }
.wx-badge {
  flex-shrink: 0; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .2);
  font-size: 12px; font-weight: 600; white-space: nowrap; text-transform: capitalize;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}

/* the search: a see-through pill field on the sky, its list a card under it */
.wx-search { position: relative; z-index: 3; margin: 14px 0 0; }
.ng-wxpage .wx-input, .ng-wxpage .wx-input:focus {
  width: 100%; height: var(--ng-field-h, 40px); padding: 0 18px 0 42px; border: 0; border-radius: 999px; outline: 0; box-shadow: none;
  background: rgba(255, 255, 255, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 16px 50% / 17px;
  color: #fff; font-size: 14px; text-shadow: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.ng-wxpage .wx-input:focus { background-color: rgba(255, 255, 255, .26); }
.ng-wxpage .wx-input::placeholder { color: rgba(255, 255, 255, .78); }
.wx-suggest {
  position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; right: 0; max-height: 260px; overflow-y: auto; padding: 6px;
  border-radius: var(--ng-r-md); background: var(--ng-card); color: var(--ng-ink); box-shadow: var(--ng-shadow-lg); text-shadow: none;
}
.wx-suggest[hidden], .wx-suggest:empty { display: none; }
.wx-suggest button {
  display: flex; align-items: center; width: 100%; min-height: 42px; padding: 0 12px; border: 0; border-radius: 12px;
  background: transparent; color: var(--ng-ink); font-size: 14px; text-align: left;
}
.wx-suggest button:hover, .wx-suggest button:focus-visible { background: var(--ng-fill); outline: 0; }
.wx-status { margin: 6px 0 0; font-size: 12px; opacity: .85; }
.wx-status:empty { min-height: 0; margin: 0; }

/* now */
.wx-now { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; }
.wx-temp { font-size: clamp(2.8rem, 13vw, 4.2rem); font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.wx-deg { font-size: .45em; vertical-align: top; }
.wx-sub { margin-top: 4px; font-size: 15px; font-weight: 400; }
.wx-hilo { margin-top: 4px; font-size: 13px; opacity: .9; }
.wx-hi { font-weight: 600; }
.wx-lo { margin-left: 6px; }
.wx-now-icon-wrap {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 84px; height: 84px;
  border-radius: 999px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}
.wx-now-icon, .wx-now-icon-img { display: block; width: 56px; height: 56px; }
.wx-now-icon .ng-ico { width: 100%; height: 100%; stroke-width: 1.6; }
.wx-phrase { max-width: 62ch; margin: 10px 0 0; font-size: 14px; line-height: 1.45; opacity: .95; }
@media (min-width: 640px) {
  .wx-now-icon-wrap { width: 108px; height: 108px; }
  .wx-now-icon, .wx-now-icon-img { width: 72px; height: 72px; }
}

/* the sun: three glass pills */
.wx-sun { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; color: rgba(255, 255, 255, .88); }
.wx-sun-item {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); font-size: 12.5px;
}
.wx-sun-item b { color: #fff; font-weight: 600; }
.wx-sun-icon { display: block; width: 15px; height: 15px; opacity: .85; }
.wx-sun-icon .ng-ico { display: block; width: 100%; height: 100%; }

/* the next hours: glass tiles, Now in white */
.wx-hourly-wrap { margin: 16px 0 0; }
.wx-hourly {
  --ng-pg: 16px; /* [Scroll arrows] inset (niguro.css): to the card's edges, starting at its padding */
  display: flex; gap: 8px; padding-block: 2px 8px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.wx-hourly::-webkit-scrollbar { display: none; }
.wx-hour {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 58px; padding: 12px 6px;
  border-radius: 8px; background: rgba(255, 255, 255, .12); scroll-snap-align: start; text-align: center;
}
.wx-hour.is-now { background: rgba(255, 255, 255, .92); color: #10213d; text-shadow: none; }
.wx-hour-label { font-size: 11.5px; font-weight: 600; opacity: .95; white-space: nowrap; }
.wx-hour-icon { display: block; width: 22px; height: 22px; }
.wx-hour-icon .ng-ico { width: 100%; height: 100%; }
.wx-hour-temp { font-size: 15px; font-weight: 700; }
.wx-hour-pop { font-size: 10.5px; font-weight: 600; color: #bfe4ff; }
.wx-hour.is-now .wx-hour-pop { color: hsl(205 85% 40%); }
.wx-scroll-hint { margin: 4px 16px 0; font-size: 11.5px; opacity: .7; }
@media (min-width: 640px) {
  .wx-hourly-wrap { margin: 18px 0 0; }
  .wx-hourly { --ng-pg: 22px; }
  .wx-hour { min-width: 64px; }
  .wx-scroll-hint { display: none; }
}
@media (min-width: 1024px) { .wx-hour { min-width: 68px; } }

/* ------------------------------- */
/* Under the sky: Details, the days, the air (niguroapp's cards) */
/* ------------------------------- */
.wx-below { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--wx-gap); }
@media (min-width: 1100px) {
  .wx-below { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
  .wx-box--facts { grid-column: 1 / -1; }
}
.wx-box { min-width: 0; margin: 0; padding: 16px; border-radius: var(--ng-r); background: var(--ng-card); color: var(--ng-ink); }
@media (min-width: 768px) { .wx-box { padding: 18px 20px 20px; } }
.wx-box .wx-sec-head { display: block; margin: 0 0 12px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; color: var(--ng-ink-strong); }

/* details: accent tiles */
.wx-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; }
.wx-fact:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 640px) {
  .wx-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wx-fact:last-child:nth-child(odd) { grid-column: auto; }
}
@media (min-width: 1100px) { .wx-facts { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); } }
.wx-fact { min-width: 0; padding: 12px 14px; border-radius: var(--ng-r-sm); background: var(--ng-tile); }
.wx-fact dt { margin: 0; font-size: 12px; font-weight: 400; color: var(--ng-sub); }
.wx-fact dd { margin: 4px 0 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--ng-ink-strong); }

/* the days: rows with the week's range bars */
.wx-days { margin: 0; }
.wx-day-row {
  display: grid; grid-template-columns: 40px 24px minmax(0, 1fr) 36px minmax(128px, 42%); align-items: center; gap: 10px;
  min-height: 48px; padding: 6px 0; border-top: 1px solid var(--ng-line);
}
.wx-days .wx-sec-head + .wx-day-row { border-top: 0; }
.wx-day-name { font-size: 14px; font-weight: 600; color: var(--ng-ink-strong); }
.wx-day-icon { display: block; width: 22px; height: 22px; color: var(--ng-brand); }
.wx-day-icon .ng-ico { width: 100%; height: 100%; }
.wx-day-cond { overflow: hidden; font-size: 13px; color: var(--ng-sub); text-overflow: ellipsis; white-space: nowrap; }
.wx-day-pop { font-size: 12px; font-weight: 600; text-align: right; color: hsl(205 85% 45%); }
body.night-mode .wx-day-pop { color: hsl(205 90% 70%); }
.wx-day-temp { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; white-space: nowrap; }
.wx-day-temp i { order: 1; flex: 0 0 30px; font-style: normal; text-align: right; color: var(--ng-sub); }
.wx-day-temp .wx-range { order: 2; position: relative; flex: 1 1 auto; min-width: 48px; height: 6px; overflow: hidden; border-radius: 999px; background: var(--ng-fill); }
.wx-range__fill { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, hsl(195 85% 55%), hsl(45 95% 55%), hsl(18 90% 56%)); }
.wx-day-temp b { order: 3; flex: 0 0 30px; font-weight: 700; color: var(--ng-ink-strong); }
@media (max-width: 479.98px) {
  .wx-day-row { grid-template-columns: 38px 24px 34px minmax(0, 1fr); gap: 8px; }
  .wx-day-cond { display: none; }
}

/* the air: tinted by its level, with the five-step gauge */
.wx-box--air { --wx-aq: 205 20% 50%; background: linear-gradient(0deg, hsl(var(--wx-aq) / .1), hsl(var(--wx-aq) / .1)), var(--ng-card); }
.wx-box--air[data-aqi="1"] { --wx-aq: 145 63% 42%; }
.wx-box--air[data-aqi="2"] { --wx-aq: 48 96% 46%; }
.wx-box--air[data-aqi="3"] { --wx-aq: 27 95% 52%; }
.wx-box--air[data-aqi="4"] { --wx-aq: 0 78% 56%; }
.wx-box--air[data-aqi="5"] { --wx-aq: 272 70% 58%; }
.wx-air-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.wx-air-head .wx-sec-head { margin: 0; }
.wx-air-badge { padding: 4px 12px; border-radius: 999px; background: hsl(var(--wx-aq)); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.wx-air-body { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 0; }
.wx-air-num { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: hsl(var(--wx-aq)); }
.wx-air-unit { font-size: 13px; font-weight: 600; color: var(--ng-sub); }
.wx-aqi-gauge { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; align-items: center; margin: 12px 0 14px; }
.wx-aqi-seg { height: 8px; border-radius: 999px; opacity: .35; }
.wx-aqi-seg.is-on { height: 12px; opacity: 1; box-shadow: 0 2px 8px hsl(var(--wx-aq) / .45); }
.wx-aqi-seg--1 { background: hsl(145 63% 42%); }
.wx-aqi-seg--2 { background: hsl(48 96% 46%); }
.wx-aqi-seg--3 { background: hsl(27 95% 52%); }
.wx-aqi-seg--4 { background: hsl(0 78% 56%); }
.wx-aqi-seg--5 { background: hsl(272 70% 58%); }
.wx-air-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 640px) and (max-width: 1023.98px) { .wx-air-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) and (max-width: 1099.98px) { .wx-air-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.wx-air-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 12px; border-radius: 12px; background: var(--ng-card); }
.wx-air-cell span { font-size: 12px; color: var(--ng-sub); }
.wx-air-cell b { font-size: 14px; font-weight: 600; color: var(--ng-ink-strong); }

/* ------------------------------- */
/* Nepal at a glance: the ten cities */
/* ------------------------------- */
.wx-places-panel { min-width: 0; padding: 16px 12px 12px; border: 0; border-radius: var(--ng-r); background: var(--ng-card); }
.wx-places-head { margin: 0 4px 8px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; color: var(--ng-ink-strong); }
.wx-places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.wx-place {
  display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 52px; padding: 8px 10px; border-radius: 12px;
  color: var(--ng-ink); text-decoration: none;
}
.wx-place:hover { background: var(--ng-fill); color: var(--ng-ink); }
.wx-place.is-active { background: var(--ng-tint); }
.wx-place.is-active .wx-place-name { color: var(--ng-brand); }
.wx-place-icon { flex: 0 0 18px; display: block; width: 18px; height: 18px; color: var(--ng-brand); }
.wx-place-icon .ng-ico { display: block; width: 100%; height: 100%; }
.wx-place-text { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; line-height: 1.2; }
.wx-place-name { overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.wx-place-cond { overflow: hidden; font-size: 11.5px; color: var(--ng-sub); text-overflow: ellipsis; white-space: nowrap; }
.wx-place b { font-size: 15px; font-weight: 700; color: var(--ng-ink-strong); }
@media (min-width: 1100px) {
  .wx-places-panel { position: sticky; top: calc(var(--ng-top, 56px) + 16px); }
  .wx-places { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .wx-place { min-height: 50px; }
}

/* ------------------------------- */
/* Sections under the card         */
/* ------------------------------- */
.wx-section { overflow: hidden; border: 0; border-radius: var(--ng-r); background: var(--ng-card); }
.wx-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 8px; }
@media (min-width: 768px) { .wx-section-head { padding: 20px 20px 8px; } }
.wx-section-head h2 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.01em; color: var(--ng-ink-strong); }
.wx-section-head p { margin: 2px 0 0; font-size: 12px; color: var(--ng-sub); }
/* the head's link and the refresh: the theme's 30px pills */
.wx-section-head > a {
  display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: var(--ng-tint); color: var(--ng-brand); font-size: 12.5px; font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none;
}
.wx-section-head > a.wx-observation-refresh { background: var(--ng-fill); color: var(--ng-ink-strong); }
.wx-section-head > a:hover { filter: brightness(.97); }

.wx-observation-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 5px !important; font-size: 12px; }
.wx-station-count, .wx-observation-age {
  display: inline-flex; align-items: center; min-height: 22px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
}
.wx-station-count { background: var(--ng-tint); color: var(--ng-brand); }
.wx-observation-age.is-stale { --h: 38; background: hsl(var(--h) 90% 50% / .12); color: hsl(28 82% 38%); }
body.night-mode .wx-observation-age.is-stale { color: hsl(35 90% 68%); }
.wx-observation-fetched { margin: 4px 0 0 !important; font-size: 11px !important; line-height: 1.35; }
.wx-observation-notice { margin: 8px 16px 0; padding: 9px 12px; border-radius: 10px; background: var(--ng-tint); color: var(--ng-brand); font-size: 12.5px; }
.wx-observation-notice.is-error { background: hsl(var(--destructive) / .08); color: hsl(var(--destructive)); }
@media (min-width: 768px) { .wx-observation-notice { margin: 8px 20px 0; } }
.wx-station-search { padding: 8px 16px 0; }
@media (min-width: 768px) { .wx-station-search { padding: 8px 20px 0; } }
.wx-stations { display: flex; flex-direction: column; padding: 8px 12px 12px; }
@media (min-width: 768px) { .wx-stations { padding: 8px 16px 16px; } }
.wx-station {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); align-items: center; gap: 16px; min-width: 0;
  padding: 13px 8px; border-bottom: 1px solid var(--ng-line);
}
.wx-station:last-child { border-bottom: 0; }
.wx-station:hover { border-radius: 12px; background: var(--ng-fill); }
.wx-station-main { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.wx-station h3 { min-width: 0; margin: 0; overflow: hidden; font-size: 14.5px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; text-overflow: ellipsis; color: var(--ng-ink-strong); }
.wx-station-average { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; gap: 1px; }
.wx-station-average span { font-size: 10.5px; line-height: 1.2; color: var(--ng-sub); }
.wx-station-average b { font-size: 19px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--ng-brand); }
.wx-station-readings { display: flex; align-items: stretch; gap: 6px; min-width: 0; }
.wx-reading { display: flex; flex: 1 1 0; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; padding: 5px 10px; border-radius: 12px; background: var(--ng-fill); }
.wx-reading span { font-size: 10.5px; line-height: 1.2; color: var(--ng-sub); }
.wx-reading b { font-size: 14px; font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; color: var(--ng-ink-strong); }
.wx-reading-rain b { color: var(--ng-brand); }
.wx-reading-max b { color: hsl(24 82% 48%); }
.wx-reading-min b { color: hsl(211 78% 48%); }
body.night-mode .wx-reading-max b { color: hsl(24 90% 64%); }
body.night-mode .wx-reading-min b { color: hsl(211 90% 70%); }
@media (max-width: 639.98px) {
  .wx-station { grid-template-columns: minmax(0, 1fr); gap: 9px; padding: 12px 4px; }
  .wx-reading { padding: 7px 8px; }
  .wx-reading b { font-size: 13px; }
}
@media (max-width: 420px) {
  .wx-stations { padding: 4px 10px 10px; }
  .wx-station { padding: 11px 2px; }
  .wx-station-average b { font-size: 17px; }
  .wx-reading { padding: 6px 5px; }
  .wx-reading span { font-size: 10px; }
}
/* [Final check] (2026-10-18): the station reading tiles (Rain / Max / Min) had 4-7px between their text and the
   tile's edge (5px 10px, 6px 5px on phones); at least 8px all round, as the theme's other small tiles */
.wx-reading { padding: 8px 10px; }
@media (max-width: 420px) { .wx-reading { padding: 8px; } }
/* [/Final check] */
.wx-empty-note { margin: 0; padding: 24px 16px 28px; text-align: center; font-size: 13.5px; color: var(--ng-sub); }

/* Nepal alerts (niguro.com's weather.css "Alerts"): a dot and a word for the level (danger red, watch amber,
   info grey: colour that means something), the sentence, its source and time; the level chip goes on phones */
.wx-alert-list { margin: 0; padding: 0; list-style: none; }
.wx-alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--ng-line); }
.wx-alert:first-child { border-top: 0; }
.wx-alert:hover { background: var(--ng-fill-2); }
.wx-alert-dot { flex: 0 0 auto; width: 8px; height: 8px; margin-top: 6px; border-radius: 999px; background: var(--ng-sub); }
.wx-alert.is-watch { --h: 38; }
.wx-alert.is-watch .wx-alert-dot { background: hsl(var(--h) 92% 44%); }
.wx-alert.is-danger .wx-alert-dot { background: hsl(var(--destructive)); box-shadow: 0 0 0 3px hsl(var(--destructive) / .16); }
.wx-alert-body { flex: 1 1 auto; min-width: 0; }
.wx-alert-title { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ng-ink-strong); }
.wx-alert-meta { margin: 3px 0 0; font-size: 12px; line-height: 1.4; color: var(--ng-sub); }
.wx-alert-src {
  flex: 0 0 auto; align-self: center; display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px;
  background: var(--ng-fill); color: var(--ng-sub); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.wx-alert.is-watch .wx-alert-src { background: hsl(var(--h) 92% 50% / .14); color: hsl(28 82% 36%); }
.wx-alert.is-danger .wx-alert-src { background: hsl(var(--destructive) / .1); color: hsl(0 72% 45%); }
body.night-mode .wx-alert.is-watch .wx-alert-src { color: hsl(40 95% 64%); }
body.night-mode .wx-alert.is-danger .wx-alert-src { color: hsl(0 84% 70%); }
.wx-alert-foot { margin: 0; padding: 10px 16px 14px; border-top: 1px solid var(--ng-line); font-size: 11.5px; line-height: 1.5; color: var(--ng-sub); }
.wx-alert-foot a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 768px) { .wx-alert { padding: 12px 20px; } .wx-alert-foot { padding: 10px 20px 16px; } }
@media (max-width: 519px) { .wx-alert-src { display: none; } }

/* the desk's stories */
.wx-news { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 4px 0 8px; }
@media (min-width: 640px) { .wx-news { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; } }
@media (min-width: 1024px) { .wx-news { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wx-news-item { display: flex; gap: 12px; padding: 12px 16px; color: inherit; text-decoration: none; }
.wx-news-item:hover { background: var(--ng-fill); color: inherit; }
.wx-news-thumb { flex: 0 0 auto; width: 84px; height: 60px; overflow: hidden; border-radius: 10px; background: var(--ng-fill); }
.wx-news-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wx-news-text { min-width: 0; }
.wx-news-text h3 { display: -webkit-box; margin: 0; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ng-ink-strong); -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.wx-news-meta { display: block; margin-top: 5px; font-size: 11.5px; color: var(--ng-sub); }

/* where the numbers come from */
.wx-sources { padding: 8px 16px 16px; font-size: 14px; line-height: 1.55; color: var(--ng-sub); }
@media (min-width: 768px) { .wx-sources { padding: 8px 20px 20px; } }
.wx-sources p { margin: 0 0 8px; }
.wx-sources p:last-child { margin: 0; }
.wx-sources strong { color: var(--ng-ink-strong); }

@media (prefers-reduced-motion: reduce) {
  .wx-scene-a, .wx-scene-b, .wx-scene-c, .wx-scene::before, .wx-scene-b::before, .wx-scene-c::before { animation: none !important; }
  .wx-scene-storm .wx-scene-b::before { opacity: .45; }
  .wx-scene-storm .wx-scene-c::before { opacity: .3; }
}

/* (owner, 2026-11-03) the observations' refresh link: "Refresh observations" from 640px, just "Refresh" and smaller on phones */
.wx-refresh__short { display: none; }
@media (max-width: 639.98px) {
  .wx-section-head > a.wx-observation-refresh { height: 28px; padding: 0 11px; font-size: 12.5px; }
  .wx-observation-refresh .wx-refresh__long { display: none; }
  .wx-observation-refresh .wx-refresh__short { display: inline; }
}
