/* Now (frontend-v4 §2.1 items 5 and 10; F9 #193; b2 `quiet-back-phone.png`). Two parts:
   the measured temperature beside today's high and low on the sky (sky text tokens only), and the
   Conditions drop-down under the now row (#537). Sizes from the data go through setVar(), never inline style. */

/* The row on the sky: measured now | today's high and low, the station line under both; on a narrow
   screen or large text, today wraps under now. The `now` slot gives its children to the row
   (display: contents) once it has drawn. */
.sky-row { display: flex; flex-wrap: wrap; align-items: flex-start; column-gap: var(--space-4); row-gap: var(--space-2); }
.sky-row > .slot-today { order: 2; flex: 1 1 auto; min-width: 0; }
.sky-row > .slot-now:not([hidden]):not(.is-loading):not(.is-error) + .slot-today { border-left: var(--rule) solid var(--on-sky-rule); padding-left: var(--space-4); }
.slot-now.is-loading, .slot-now.is-error { order: 1; min-width: 6.5rem; }
.slot-now.is-loading { min-height: 5.5rem; }
.slot-now.is-error .error { margin-top: 0; }
.slot-now:not(.is-loading):not(.is-error) { display: contents; }
.now-m { order: 1; display: grid; gap: 2px; align-content: start; min-width: 0; }
.now-m .label { margin: 0; font-size: var(--t-small); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-small); text-transform: uppercase; color: var(--on-sky-muted); }
.nm-temp { margin: 0; display: flex; align-items: center; gap: var(--space-2); font-size: var(--t-display); font-weight: var(--weight-light); line-height: 1; letter-spacing: var(--tracking-display); }
.nm-temp b { font-weight: inherit; margin-right: 0.08em; }
.nm-sky, .nm-feels { margin: 0; font-size: var(--t-sub); font-weight: var(--weight-semibold); }
.nm-feels { color: var(--on-sky-muted); }
.now-stale { margin: 0 0 var(--space-1); font-weight: var(--weight-semibold); }
.nm-station { order: 3; flex: 1 0 100%; margin: 0; font-size: var(--t-sub); color: var(--on-sky-muted); overflow-wrap: anywhere; }

/* The Conditions drop-down. */
.slot-conditions.is-loading { min-height: 3.5rem; }
.cond .drop-panel { display: grid; gap: var(--space-4); padding-top: var(--space-2); }
/* Inside the sky (#537, b2 `quiet-phone.png`): the button is the sky pill; the opened panel is an
   opaque sheet in page tokens, so its text never sits on the sky. */
.sky .cond .drop-panel { margin-top: var(--space-2); padding: var(--space-4); border-radius: var(--radius-xl); background: var(--surface); color: var(--text); text-shadow: none; box-shadow: var(--shadow-card), 0 0 0 1px var(--card-edge); }
.sky .cond .drop-panel[hidden] { display: none; }
.sky .cond .meta, .sky .cond h2 { color: var(--text-muted); }
.cd-around { margin: 0; }
.cd-stale { margin: 0; font-weight: var(--weight-semibold); }
.cd-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: var(--space-4); }
.cd-sec { min-width: 0; display: grid; gap: var(--space-2); align-content: start; }
.cd-sec h3 { margin: 0; font-size: var(--t-small); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-small); text-transform: uppercase; color: var(--text-muted); }
.cd-vsn, .cd-pair + .cd-pair, .cd-vsn + .cd-pair { border-top: var(--rule) solid var(--line); padding-top: var(--space-4); }
.cd-big { display: flex; align-items: center; gap: var(--space-3); }
.cd-big p { margin: 0; font-size: var(--text-h3); }
.cd-big b { font-size: var(--t-number); font-weight: var(--weight-bold); line-height: 1; }
.cd-words { margin: 0; font-weight: var(--weight-semibold); overflow-wrap: anywhere; }
.cd-sec .meta { margin: 0; }
.cd-dial { width: 48px; height: 48px; flex: none; }
.cd-ring { fill: none; stroke: var(--line-strong); stroke-width: 2; }
.cd-tick { stroke: var(--text-muted); stroke-width: 2; stroke-linecap: round; }
.cd-arrow { fill: var(--action); }
.cd-scale-w { display: grid; gap: 2px; max-width: 14rem; }
.cd-scale { position: relative; height: 8px; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--surface-2), var(--precip-rain)); box-shadow: inset 0 0 0 1px var(--line); }
.cd-mark { position: absolute; top: -4px; left: calc(var(--at, 0) * 100%); width: 4px; height: 16px; margin-left: -2px; border-radius: 2px; background: var(--text); }
.cd-ends { display: flex; justify-content: space-between; font-size: var(--t-small); }
.cd-vs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.cd-vs li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); font-size: var(--t-sub); }
.cd-vl { color: var(--text-muted); }
.cd-track { position: relative; height: 10px; border-radius: var(--radius-pill); background: var(--surface-2); }
.cd-bar { position: absolute; top: 0; bottom: 0; left: calc(var(--a, 0) * 100%); right: calc((1 - var(--b, 0)) * 100%); min-width: 6px; border-radius: var(--radius-pill); }
.cd-normal { border: var(--rule) dashed var(--text-muted); background: none; }
.cd-fc { background: var(--line-strong); }
.cd-sofar { background: var(--text); }
.cd-vn { font-weight: var(--weight-semibold); white-space: nowrap; }
.cd-arc { width: 80px; height: 42px; }
.cd-arc-p { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 3 3; }
.cd-horizon { stroke: var(--line); stroke-width: 1; }
.cd-sun { fill: var(--pin); }
.cd-glyph { font-size: 1.4em; line-height: 1; }
