/* Weather on the map (site/weather.js). Map only. */
.wx-i{width:22px;height:22px;flex:none;display:inline-block;vertical-align:middle}
.wx-i.sm{width:18px;height:18px;margin:-2px 3px 0 0}
.wx-i.big{width:64px;height:64px}

/* The chip: under the chips row, on the right, the same glass as the chips. */
#v2 .wx-chip{position:absolute;top:calc(var(--top) + 126px);right:12px;z-index:30;display:inline-flex;align-items:center;gap:5px;height:34px;padding:0 10px 0 6px;border-radius:999px;border:0;
  font:600 13.5px var(--sans);color:var(--ink);background:var(--glass);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:0 2px 10px #3a2a1a14,inset 0 0 0 .5px #ffffffaa;cursor:pointer;white-space:nowrap}
#v2 .wx-chip[hidden],#v2 #v-home.listing .wx-chip{display:none}
#v2 .wx-chip b{font-weight:800;font-size:15px}
/* An event pill under the chips (Toy Drop, Black Friday, Shop Small, the vote): nothing adds a line (owner 11/29). The
   chip (icon and temperature, always) stays put at the right end of that same row; the event pills end before it. */
#v2 #v-home.has-now:has(#v2wx:not([hidden])) .nowrow{right:96px}
/* The "near you" card covers that space: no chip. */
#v2 #v-home:has(#v2nearcard:not([hidden])) .wx-chip{display:none}

/* The sheet */
#v2 .wx-sheet h3{margin:0 0 6px}
#v2 .wx-now{display:flex;align-items:center;gap:14px;margin:6px 0 4px}
#v2 .wx-now .wx-t{font:800 44px/1 var(--sans);letter-spacing:-1px}
#v2 .wx-now p{margin:2px 0 0;font:600 17px var(--sans)}
#v2 .wx-now p.wx-hl{font:500 14.5px var(--sans);color:var(--muted)}
#v2 .wx-soon{margin:10px 0 2px;font:700 15px var(--sans);color:var(--ink)}
#v2 .wx-sheet h4{margin:18px 0 8px;font:700 13px var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.wx-strip{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;margin:0 -4px;padding:0 4px}
.wx-strip::-webkit-scrollbar{display:none}
.wx-h{flex:none;width:52px;display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 0;border-radius:14px}
.wx-h small{font:600 12px -apple-system,BlinkMacSystemFont,sans-serif;color:#7a6c62}
.wx-h b{font:700 15px -apple-system,BlinkMacSystemFont,sans-serif;color:#2f2622}
.wx-h em{font:700 11px -apple-system,BlinkMacSystemFont,sans-serif;font-style:normal;color:#2f6fb0;margin-top:-3px}
.wx-h .wx-i{width:28px;height:28px}
.wx-h.wet{background:#eef3f8}
#v2 .wx-days{border-top:1px solid var(--line)}
#v2 .wx-day{display:grid;grid-template-columns:44px 30px 1fr auto;align-items:center;gap:8px;padding:11px 0;border-bottom:1px solid var(--line);font:500 15px var(--sans)}
#v2 .wx-day > b{font-weight:700}
#v2 .wx-day .wx-i{width:28px;height:28px}
#v2 .wx-day em{font-style:normal;font-weight:700}
#v2 .wx-day em s{text-decoration:none;color:var(--muted);font-weight:500;margin-left:6px}
#v2 .wx-wind{display:block;font-style:normal;font-size:13px;color:var(--muted);margin-top:1px}
#v2 .wx-credit{margin:14px 0 4px;font:500 12px var(--sans);color:var(--muted);display:flex;align-items:center;gap:6px;flex-wrap:wrap}
#v2 .wx-credit a{color:inherit}
#v2 .wx-credit .wx-mark{height:14px;width:auto}

/* Choices: ☰ › Weather, and the bottom of the sheet */
.wx-settings.in-sheet{margin-top:14px;border-top:1px solid #ebe2d6}
.wx-set{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 2px;border-bottom:1px solid #ebe2d6;font:600 15.5px -apple-system,BlinkMacSystemFont,sans-serif;color:#2f2622}
.wx-set:last-child{border-bottom:0}
.wx-set small{display:block;font-weight:500;font-size:13px;color:#7a6c62;margin-top:2px}
.wx-seg{display:inline-flex;background:#efe7dc;border-radius:10px;padding:3px;flex:none}
.wx-seg button{border:0;background:none;font:700 14px -apple-system,BlinkMacSystemFont,sans-serif;padding:6px 14px;border-radius:8px;color:#7a6c62}
.wx-seg button.on{background:#fffdf9;color:#2f2622;box-shadow:0 1px 3px #3a2a1a22}
.wx-set input.wx-sw{appearance:none;-webkit-appearance:none;width:51px;height:31px;border-radius:999px;background:#e5ddd2;position:relative;margin:0;flex:none;transition:background .2s}
.wx-set input.wx-sw::after{content:'';position:absolute;top:2px;left:2px;width:27px;height:27px;border-radius:50%;background:#fff;box-shadow:0 2px 4px #0003;transition:left .2s}
.wx-set input.wx-sw:checked{background:#3f7a4f}
.wx-set input.wx-sw:checked::after{left:22px}
.wx-set input.wx-sw:focus-visible{outline:2px solid #ba4b2a;outline-offset:2px}

/* Rain or snow over the top of the map (painted pieces on a canvas, weather.js); night and frost tints. Under the
   buttons and chips, over the map, fading out downward so the pins stay clear. */
#v2 .wx-fx{position:absolute;top:0;left:0;right:0;height:calc(var(--top) + 250px);z-index:21;pointer-events:none;transition:opacity .4s;
  -webkit-mask-image:linear-gradient(#000 45%,transparent);mask-image:linear-gradient(#000 45%,transparent)}
#v2 .wx-fx[hidden]{display:none}
#v2 .wx-fx canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
/* Codex's painted cloud strip along the very top while it rains or snows: soft, under the chips, kept light. */
#v2 .wx-fx.rain::before,#v2 .wx-fx.snow::before{content:"";position:absolute;left:0;right:0;top:0;height:calc(var(--top) + 46px);
  background:url(assets/weather-fx/wx-fx-cloud-rain.webp) repeat-x center top/auto 100%;opacity:.5}
#v2 .wx-fx.snow::before{background-image:url(assets/weather-fx/wx-fx-cloud-snow.webp)}
#v2 .wx-fx.night{background-color:#20357a24}
#v2 .wx-fx.frost{background:
    repeating-conic-gradient(from 0deg at 50% -80px,#fff0 0 4deg,#ffffffb0 4deg 4.7deg,#fff0 4.7deg 11deg),
    linear-gradient(#c9def0d9,#d9e8f400 85%);
  -webkit-mask-image:linear-gradient(#000 20%,transparent 75%);mask-image:linear-gradient(#000 20%,transparent 75%)}
#v2 .wx-fx.night.rain,#v2 .wx-fx.night.snow{background-color:#2430521f}
/* An event pill under the chips: the rain or snow goes faint. An event switched on (its pill shows ✕): none at all. */
#v2 #v-home.has-now .wx-fx{opacity:.5}
#v2 #v-home:has(.nowpill.on) .wx-fx{display:none}
