/* Weather: a quiet one-line summary that opens into the week ahead. Used in the clock on the main page and as a slim row on Home. */
.wx { --wx: var(--cyan); text-align: left; color: var(--ink); }
.wx[hidden] { display: none; }
.wx-head { display: flex; align-items: center; gap: 9px; width: 100%; padding: 5px 10px 5px 8px; border-radius: 12px; cursor: pointer; color: inherit; font: inherit; text-align: left;
  background: transparent; border: 1px solid transparent; transition: border-color .2s, background .2s; }
.wx-head:hover, .wx-head:focus-visible { background: rgba(255,255,255,.04); border-color: var(--line); outline: none; }
.wx-ico { flex: none; width: 22px; height: 22px; display: grid; place-items: center; opacity: .8; }
.wx-ico svg { width: 22px; height: 22px; overflow: visible; }
.wx-temp { flex: none; font: 500 16px var(--mono); line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.wx-info { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.wx-info b { flex: none; font: 500 12.5px var(--sans); color: var(--muted); white-space: nowrap; }
.wx-info small { flex: 1; min-width: 0; font: 400 11px var(--mono); color: var(--faint); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-chev { flex: none; width: 14px; height: 14px; color: var(--faint); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.wx-head[aria-expanded="true"] .wx-chev { transform: rotate(180deg); }
.wx-collapse { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .3s cubic-bezier(.2,.8,.2,1), visibility 0s .3s; }
.wx-collapse.open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .3s cubic-bezier(.2,.8,.2,1), visibility 0s; }
.wx-in { min-height: 0; overflow: hidden; }
.wx-body { padding-top: 8px; }
.wx-days { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: rgba(255,255,255,.015); }
.wx-day { display: grid; grid-template-columns: 44px 22px 32px 30px 1fr 30px; align-items: center; gap: 7px; padding: 5px 10px; font: 500 12px var(--sans); color: var(--muted); }
.wx-day + .wx-day { border-top: 1px solid var(--line); }
.wx-day .d { font-weight: 600; color: var(--ink); }
.wx-day .ic svg { width: 18px; height: 18px; display: block; opacity: .85; }
.wx-day .p { font: 500 10.5px var(--mono); color: color-mix(in srgb, var(--cyan) 70%, var(--muted)); text-align: right; }
.wx-day .lo { font: 500 11.5px var(--mono); color: var(--faint); text-align: right; }
.wx-day .hi { font: 500 11.5px var(--mono); color: var(--ink); text-align: left; }
.wx-bar { position: relative; height: 3px; border-radius: 2px; background: rgba(255,255,255,.07); }
.wx-bar i { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: linear-gradient(90deg, #5fa8c4, #7fb89a 50%, #c9a06a); opacity: .85; }
.wx-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.wx-btn { flex: 1 1 120px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 10px; cursor: pointer; text-decoration: none; color: var(--muted); font: 500 12px var(--sans);
  background: rgba(255,255,255,.03); border: 1px solid var(--line); transition: border-color .2s, color .2s; }
.wx-btn svg { width: 14px; height: 14px; color: var(--muted); }
.wx-btn:hover, .wx-btn:focus-visible { border-color: var(--line-hot); color: var(--ink); outline: none; }
.wx-btn.unit { flex: 0 0 auto; min-width: 48px; font-family: var(--mono); }
.wx-note { margin-top: 7px; font: 400 10px var(--mono); letter-spacing: .03em; color: var(--faint); line-height: 1.5; text-align: center; }
.wx-skel { height: 30px; border-radius: 10px; background: linear-gradient(90deg, rgba(255,255,255,.015), rgba(255,255,255,.04), rgba(255,255,255,.015)); background-size: 200% 100%; animation: wxSkel 1.6s linear infinite; }
@keyframes wxSkel { to { background-position: -200% 0; } }
/* in the clock: a small centred line under the date */
.wx--clock { margin-top: 8px; width: 100%; }
.wx--clock .wx-head { width: fit-content; max-width: 100%; margin: 0 auto; padding: 3px 8px; border-radius: 99px; }
.wx--clock .wx-ico, .wx--clock .wx-ico svg { width: 18px; height: 18px; }
.wx--clock .wx-temp { font-size: 14px; }
.wx--clock .wx-info b { font-size: 11.5px; } .wx--clock .wx-info small { flex: none; font-size: 10.5px; }
.wx--clock .pl { display: none; }
.wx--clock .wx-body { padding-top: 8px; text-align: left; }
/* on Home: a slim row */
.wx--card .wx-head { padding: 6px 12px 6px 10px; border-radius: 12px; border-color: var(--line); background: rgba(255,255,255,.02); }
@media (max-width: 420px) { .wx-day { grid-template-columns: 40px 20px 30px 28px 1fr 28px; gap: 6px; padding: 5px 8px; } .wx--clock .wx-info small { display: none; } }
@media (orientation: landscape) and (max-height: 520px) { .wx--clock { margin-top: 4px; } }
@media (prefers-reduced-motion: reduce) { .wx-collapse, .wx-collapse.open, .wx-head, .wx-chev { transition: none; } .wx-skel { animation: none; } }