/* The weather page, /weather (templates/weather.html; the user, 5 Nov 2026:
   a page like the other sections, where it had been the feed's pop-up).
   The pop-up's look (styles.css .wxv-*, the canvas "Accurate, simpler
   visuals"), on the site's tokens: now in a line; today against the date
   and the rain in boxes; six days as a list; the air in a line; the
   sources; the news. One column at every width, in that order (the user,
   5 Nov 2026: the desktop view, two columns of two looks ending at different
   heights, "is a mess"). */

.wxp { max-width: 600px; margin: 0 auto; box-sizing: border-box; padding: 0 16px var(--space-7);
  display: flex; flex-direction: column; gap: var(--space-5); color: var(--ink); font-family: var(--font-sans); }
.wxp-head h1 { margin: 0; font: 800 var(--text-2xl)/1.1 var(--font-head); letter-spacing: var(--track-tight); }
/* The facts line: a fact in --text-meta and --ink-3, as .v2-readtime and
   .pp-why are, so it fits beside Share at 390px (the canvas "Share UI pass"). */
.wxp-lede { color: var(--ink-3); font: 500 var(--text-meta)/1.3 var(--font-sans); }

.wxp-label { margin: 0 0 var(--space-2); font: 800 var(--text-xs)/1.2 var(--font-sans); letter-spacing: var(--track-caps);
  text-transform: uppercase; color: var(--ink-3); }


.wxp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
.wxp-col { display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; }
.wxp-wait { margin: 0; color: var(--ink-2); font: 400 var(--text-base)/1.45 var(--font-sans); }

/* Now: the icon, the reading and its words, and °F · °C at the right end of
   the same row (6 Nov 2026); the day's line under all three. The words drop
   under the number when a phone has no room beside it. */
.wxp-now { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-4); }
.wxp-now img { grid-column: 1; width: 56px; height: 56px; }
.wxp-now-t { grid-column: 2; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-3); margin: 0;
  font: 700 var(--text-3xl)/1 var(--font-sans); letter-spacing: var(--track-tight); color: var(--ink); }
.wxp-now-d { font: 600 var(--text-lg)/1.1 var(--font-sans); letter-spacing: 0; }
.wxp-unit { grid-column: 3; }
.wxp-unit .toggle-opt { padding: 0 var(--space-3); }
.wxp-now-m { grid-column: 1 / -1; margin: var(--space-3) 0 0; font: 400 var(--text-base)/1.45 var(--font-sans); color: var(--ink-2); }
.wxp-now-m b { font-weight: 700; color: var(--ink); }

.wxp-box { display: flex; flex-direction: column; gap: 6px; padding: var(--space-4); border-radius: var(--r-lg); background: var(--sunk); }
.wxp-box .wxp-label { margin: 0; }
.wxp-box-t { margin: 0; font: 800 var(--text-lg)/1.2 var(--font-head); color: var(--ink); text-wrap: balance; }
.wxp-box-s { margin: 0; font: 400 var(--text-base)/1.45 var(--font-sans); color: var(--ink-2); }
.wxp .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Today against the date (the user, 6 Nov 2026: a colour code for the record
   high and low, then "only points … instead of ranges"): one gray line from
   the lowest value to the highest, and a point for each: the record low in
   --wx-cold, the normal high in --wx-normal, the record high in --wx-warm,
   today's high in ink and larger, on top. Each point ringed in the box's
   colour; today's value over the line, the others under it. */
.wxp-range { margin: var(--space-2) 0 var(--space-1); padding: 0 8px; }
.wxp-range-in { position: relative; height: 66px; }
.wxp-range-line { position: absolute; left: 0; right: 0; top: 32px; height: 2px; background: color-mix(in srgb, var(--ink-3) 30%, var(--sunk)); }
.wxp-pt { position: absolute; top: 33px; width: 10px; height: 10px; border-radius: var(--r-pill);
  transform: translate(-50%, -50%); box-shadow: 0 0 0 2px var(--sunk); }
.wxp-pt.is-low { background: var(--wx-cold); }
.wxp-pt.is-normal { background: var(--wx-normal); }
.wxp-pt.is-high { background: var(--wx-warm); }
.wxp-pt.is-today { z-index: 1; width: 14px; height: 14px; background: var(--ink); }
.wxp-pt-l { position: absolute; font: 700 var(--text-meta)/1 var(--font-sans); color: var(--ink-2); white-space: nowrap; }
.wxp-pt-l.is-above { top: 4px; }
.wxp-pt-l.is-below { top: 48px; }
.wxp-pt-l.is-today { color: var(--ink); }
.wxp-pt-l.is-middle { transform: translateX(-50%); }
.wxp-pt-l.is-start { transform: translateX(-5px); }
.wxp-pt-l.is-end { transform: translateX(calc(-100% + 5px)); }

/* The numbers, a row a day: today, the normal, the record with its years, a
   year ago. The dot beside a row is its point on the line; the record's are
   beside its two numbers, red by the high and blue by the low. */
.wxp-cmp { width: 100%; border-collapse: collapse; margin-top: 2px; font: 400 var(--text-base)/1.3 var(--font-sans); color: var(--ink-2); }
.wxp-cmp thead th { padding: 0 0 6px; text-align: right; font: 800 var(--text-xs)/1.2 var(--font-sans); letter-spacing: var(--track-caps);
  text-transform: uppercase; color: var(--ink-3); }
.wxp-cmp tbody th { padding: 9px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; }
.wxp-cmp tbody th small { font: 400 var(--text-meta)/1.2 var(--font-sans); color: var(--ink-3); }
.wxp-cmp td { width: 1%; padding: 9px 0 9px var(--space-4); border-top: 1px solid var(--line); text-align: right; white-space: nowrap; vertical-align: top; }
.wxp-cmp td b { font: 700 var(--text-lg)/1 var(--font-sans); font-variant-numeric: tabular-nums; color: var(--ink); }
.wxp-cmp td small { display: block; margin-top: 4px; font: 500 var(--text-xs)/1 var(--font-sans); color: var(--ink-3); }
.wxp-cmp .is-record th, .wxp-cmp .is-plain th { padding-left: 16px; }
.wxp-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: var(--r-pill); vertical-align: 2px; }
.wxp-dot.is-warm { background: var(--wx-warm); }
.wxp-dot.is-cold { background: var(--wx-cold); }
.wxp-dot.is-today { background: var(--ink); }
.wxp-dot.is-normal { background: var(--wx-normal); }
.wxp-cmp td .wxp-dot { margin-right: 6px; }

/* The rain, month by month (the user, 6 Nov 2026): a column a month in
   --rain, its normal a short ink rule across it, the wettest month's amount
   on its column; each month's numbers in its tip on hover or focus, which a
   screen reader reads as text. One series and its normal: a two-item key. */
.wxp-mo { margin: var(--space-3) 0 0; }
.wxp-mo-hd { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-2);
  font: 500 var(--text-xs)/1.2 var(--font-sans); color: var(--ink-3); }
.wxp-mo-key { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.wxp-mo-key i { display: inline-block; flex: none; }
.wxp-mo-key .k-rain { width: 8px; height: 10px; border-radius: var(--r-xs) var(--r-xs) 0 0; background: var(--rain); }
.wxp-mo-key .k-norm { width: 12px; height: 2px; margin-left: 6px; background: var(--ink); }
/* The tips are placed on the whole chart, not their column, so a long one
   ("Aug. 2026: 8.64 in, 30-year average 4.56 in") wraps inside it rather than
   running off a phone's edge: the first six months' from its left, the last
   six's from its right. */
.wxp-mo-cols { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0; padding: 18px 0 0; list-style: none; }
.wxp-mo-cols li { display: flex; flex-direction: column; align-items: center; outline: none; cursor: default; }
.wxp-mo-plot { position: relative; width: 100%; height: 84px; border-bottom: 1px solid var(--line); }
.wxp-mo-bar { position: absolute; bottom: 0; left: 50%; width: 52%; max-width: 20px; min-height: 1px; transform: translateX(-50%);
  border-radius: var(--r-xs) var(--r-xs) 0 0; background: var(--rain); }
.wxp-mo-norm { position: absolute; left: 50%; width: 84%; max-width: 30px; height: 2px; transform: translate(-50%, 1px);
  background: var(--ink); box-shadow: 0 0 0 1px var(--sunk); }
.wxp-mo-val { position: absolute; left: 50%; transform: translate(-50%, -8px); font: 700 var(--text-xs)/1 var(--font-sans);
  color: var(--ink); white-space: nowrap; }
.wxp-mo-m { margin-top: 6px; font: 600 var(--text-xs)/1 var(--font-sans); color: var(--ink-3); }
.wxp-mo-cols .is-now .wxp-mo-m { color: var(--ink); }
.wxp-mo-cols li:hover .wxp-mo-bar, .wxp-mo-cols li:focus .wxp-mo-bar { filter: brightness(.85); }
.wxp-mo-cols li:focus-visible .wxp-mo-plot { outline: var(--focus-ring); outline-offset: 2px; border-radius: var(--r-xs); }
.wxp-mo-tip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wxp-mo-cols li:hover .wxp-mo-tip, .wxp-mo-cols li:focus .wxp-mo-tip {
  z-index: 2; bottom: calc(100% - 12px); left: 0; width: max-content; max-width: 100%; height: auto; overflow: visible; clip-path: none;
  box-sizing: border-box; white-space: normal; padding: 6px 8px; border-radius: var(--r-sm); background: var(--ink); color: var(--page);
  font: 500 var(--text-meta)/1.3 var(--font-sans); box-shadow: var(--shadow-pop); }
.wxp-mo-cols li:nth-last-child(-n+6):hover .wxp-mo-tip, .wxp-mo-cols li:nth-last-child(-n+6):focus .wxp-mo-tip { left: auto; right: 0; }
.wxp-nw { white-space: nowrap; }
.wxp-mo-snow { margin: var(--space-2) 0 0; font: 400 var(--text-meta)/1.45 var(--font-sans); color: var(--ink-2); }

@media (min-width: 1024px) { .wxp:has(.ds-tabs) .wxp-days, .wxp:has(.ds-tabs) .wxp-sunline { display: none; } }   /* the days ahead are the sidebar's from 1024px (board 8) */
.wxp-us-all > summary { margin-top: var(--space-2); color: var(--coral-strong); font: 700 var(--text-sm)/1.3 var(--font-sans); cursor: pointer; }
.wxp-us-all[open] > summary { margin-bottom: var(--space-3); }
@media (min-width: 1024px) { .wxp-us-sum { display: none; } }   /* the sidebar has the alerts and the line (board 8) */
.wxp-days-hd { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.wxp-days-hd span { font: 500 var(--text-xs)/1 var(--font-sans); color: var(--ink-3); }
.wxp-days-list { list-style: none; margin: 0; padding: 0; }
.wxp-days-list li { display: grid; grid-template-columns: 52px 28px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  min-height: 52px; border-top: 1px solid var(--line); }
.wxp-dd b { display: block; font: 700 var(--text-base)/1.2 var(--font-sans); color: var(--ink); }
.wxp-dd small { display: block; font: 500 var(--text-xs)/1.2 var(--font-sans); color: var(--ink-3); }
.wxp-di img { display: block; width: 24px; height: 24px; }
.wxp-ds { font: 400 var(--text-sm)/1.3 var(--font-sans); color: var(--ink-2); }
.wxp-ds b { font-weight: 700; color: var(--rain); }
.wxp-dt { font: 700 var(--text-base)/1 var(--font-sans); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.wxp-dt > span { font-weight: 500; color: var(--ink-3); }

.wxp-air { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin: 0; padding-top: var(--space-3);
  border-top: 1px solid var(--line); font: 400 var(--text-base)/1.3 var(--font-sans); color: var(--ink-2); }
.wxp-air b { font-weight: 700; color: var(--ink); text-align: right; }
.wxp-air small { font: 500 var(--text-meta)/1 var(--font-sans); color: var(--ink-3); }
.wxp-src { margin: 0; font: 400 var(--text-xs)/1.5 var(--font-sans); color: var(--ink-3); }

.wxp-news ul { list-style: none; margin: 0; padding: 0; }
.wxp-news li { display: flex; flex-direction: column; gap: 4px; padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.wxp-news-meta { font: 800 var(--text-xs)/1.3 var(--font-sans); letter-spacing: var(--track-kicker); text-transform: uppercase; color: var(--ink); }   /* New York's kicker */
.wxp-news-meta span { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.wxp-news a { color: var(--ink); text-decoration: none; font: 700 var(--text-lg)/1.3 var(--font-head); }
.wxp-news a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.wxp-news a:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }

/* From 1000px the page sits on the feed's shell, as the feed, Issues and a
   shared story do: the rail, then the page in the feed's 590px column, its
   words 16px in (x=308 at 1280), so Share ends where theirs does. The right
   column stays empty. */
@media (min-width: 1000px) {
  .wxp { position: relative; left: -1rem; max-width: 990px; padding-left: 1.25rem; padding-right: 1.25rem; display: grid;
         grid-template-columns: 0 minmax(0, 1fr) 296px; column-gap: 2rem; row-gap: var(--space-5); align-items: start; }
  .wxp > * { grid-column: 2; min-width: 0; margin-left: 16px; margin-right: 16px; }
}

/* The place switch and °F · °C on one row; the United States view (/weather/us,
   canvas "National weather", 23 Nov 2026): a city a row, its name, one line
   with one point and the degrees above or below its 30-year average. The
   points use the page's colours: --wx-cold below, --wx-warm above, --wx-normal
   at the average; the grey tick at the middle is the average itself. */
.wxp-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
/* The place switch is the feed's tab bar (feed-v2.css .v2-tabs, copied: this page does not load it). */
.wxp-tabs { position: sticky; top: calc(var(--header-h, 60px) + var(--nat-switch-h, 40px)); z-index: 4; display: flex; gap: var(--space-5); margin: 0 -16px; padding: 0 16px; background: var(--page); border-bottom: 1px solid var(--hr); }
.wxp > .wxp-tabs { grid-column: 2; }
@media (min-width: 1000px) { .wxp > .wxp-tabs { margin-left: 0; margin-right: 0; padding: 0 16px; } }
.wxp-bar { justify-content: flex-end; }
.wxp-tabs .v2-tab { position: relative; display: inline-flex; align-items: center; min-height: var(--hit); padding: 0; color: var(--ink-3); text-decoration: none; font: 700 var(--text-base)/1.2 var(--font-sans); }
.wxp-tabs .v2-tab.is-on { color: var(--ink); }
.wxp-tabs .v2-tab.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: var(--r-xs); background: var(--ink); }
.wxp-tabs .v2-tab:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.wxp-bar .wxp-unit { grid-column: auto; }

.wxu-box { gap: var(--space-2); }
.wxu-axis { display: flex; justify-content: space-between; margin: var(--space-2) 0 0; padding-left: 112px; padding-right: 56px;
  font: 500 var(--text-xs)/1 var(--font-sans); color: var(--ink-3); }
.wxu-rows { list-style: none; margin: 0; padding: 0; }
.wxu-row { display: grid; grid-template-columns: 104px minmax(0, 1fr) 48px; align-items: center; gap: 8px; min-height: 46px;
  border-top: 1px solid var(--line); font: 400 var(--text-base)/1.2 var(--font-sans); color: var(--ink-2); }
.wxu-row:first-child { border-top: 0; }
.wxu-row.is-home { color: var(--ink); font-weight: 800; }
.wxu-name { min-width: 0; display: flex; flex-direction: column; gap: 1px; overflow: hidden; white-space: nowrap; }
.wxu-name b { font-weight: inherit; overflow: hidden; text-overflow: ellipsis; }
.wxu-name small { color: var(--ink-3); font: 500 var(--text-xs)/1.2 var(--font-sans); font-variant-numeric: tabular-nums; }       /* today's high / low */
.wxu-row.is-home .wxu-name small { font-weight: 600; }
.wxu-line { position: relative; height: 20px; }
.wxu-line::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px;
  background: color-mix(in srgb, var(--ink-3) 30%, var(--sunk)); }
.wxu-mid { position: absolute; left: 50%; top: 4px; width: 2px; height: 12px; background: var(--wx-normal); }
.wxu-pt { position: absolute; top: 10px; width: 12px; height: 12px; margin: -5px 0 0 -6px; border-radius: var(--r-pill);
  box-shadow: 0 0 0 2px var(--sunk); background: var(--wx-normal); }
.wxu-pt.is-cold { background: var(--wx-cold); }
.wxu-pt.is-warm { background: var(--wx-warm); }
.wxu-row.is-home .wxu-pt { width: 16px; height: 16px; margin: -7px 0 0 -8px; box-shadow: 0 0 0 2px var(--sunk), 0 0 0 4px var(--ink); }
.wxu-val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); white-space: nowrap; }
@media (max-width: 420px) {
  .wxu-row { grid-template-columns: 120px minmax(0, 1fr) 42px; gap: 6px; }       /* "San Francisco", "New Orleans" and "Salt Lake City" fit (WebKit, 390px) */
  .wxu-axis { padding-left: 128px; padding-right: 48px; }
}

.wxu-recs { list-style: none; margin: 0; padding: 0; }
.wxu-recs li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); padding: 9px 0;
  border-top: 1px solid var(--line); font: 400 var(--text-base)/1.3 var(--font-sans); color: var(--ink-2); }
.wxu-recs li:first-child { border-top: 0; }
.wxu-recs small { font: 400 var(--text-meta)/1.2 var(--font-sans); color: var(--ink-3); }
.wxu-recs b { text-align: right; font: 700 var(--text-lg)/1 var(--font-sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.wxu-recs b small { display: block; margin-top: 4px; font: 500 var(--text-xs)/1 var(--font-sans); }

.wxu-rain { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: flex; justify-content: space-between; gap: var(--space-3);
  border-top: 2px solid var(--line); }
.wxu-rain li { display: flex; flex-direction: column; gap: 2px; padding-top: 10px; font: 400 var(--text-sm)/1.3 var(--font-sans); color: var(--ink-2); }
.wxu-rain li:last-child { text-align: right; }
.wxu-rain b { color: var(--ink); font-weight: 700; }


/* The National weather's alerts, as the feed's alert card (feed-v2.css .v2-sc--alert). */
.wxu-alerts { display: flex; flex-direction: column; gap: var(--space-3); }
.wxu-alert { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); border-radius: var(--r-lg); background: var(--door-alert); color: var(--on-door-alert); text-decoration: none; }
.wxu-alert-ico { flex: none; width: 56px; min-height: 52px; }
.wxu-alert-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.wxu-alert-eb { font: 800 var(--text-xs)/1.3 var(--font-sans); letter-spacing: var(--track-caps); text-transform: uppercase; opacity: .8; }
.wxu-alert-hd { font: 800 var(--text-lg)/1.2 var(--font-head); text-wrap: balance; }
.wxu-alert-ln { font: 500 var(--text-sm)/1.4 var(--font-sans); opacity: .88; }

/* ── Weather, board 17 (24 Nov): the comparison first, then the days ahead ──────────────────────────
   One alert card, the second folded into a line; the day's reading in one row; today against the average as the
   big block; each day ahead against its own average; then the rain, the air, the country, the news. */
.wxp-grid.is-tabs > .wxp-col { display: contents; }
.wxp-grid.is-tabs > .wxp-now, .wxp-grid.is-tabs #wxp-now { order: 1; }
.wxp-grid.is-tabs #wxp-cmp { order: 2; }
.wxp-grid.is-tabs .wxp-days { order: 3; }
.wxp-grid.is-tabs #wxp-rain { order: 4; }
.wxp-grid.is-tabs .wxp-air { order: 5; }
.wxp-grid.is-tabs .wxp-us { order: 6; }
.wxp-grid.is-tabs .wxp-news { order: 7; }
.wxp-grid.is-tabs .wxp-src { order: 8; }
.wxp-grid.is-tabs .wxp-wait { order: 1; }
.wxp:has(.is-tabs) .wxp-now { padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); }
.wxp:has(.is-tabs) .wxp-now img { width: 32px; height: 32px; }
.wxp:has(.is-tabs) .wxp-now-t { font-size: var(--text-2xl); gap: var(--space-1) var(--space-2); }
.wxp:has(.is-tabs) .wxp-now-d { font-size: var(--text-base); font-weight: 700; }
.wxp:has(.is-tabs) .wxp-now-m { margin-top: var(--space-2); font-size: var(--text-sm); }
.wxu-more > summary { display: block; margin-top: var(--space-2); padding: var(--space-2) var(--space-4); border-radius: var(--r-pill); background: var(--door-alert); color: var(--on-door-alert); font: 700 var(--text-sm)/1.3 var(--font-sans); cursor: pointer; list-style: none; }
.wxu-more > summary::-webkit-details-marker { display: none; }
.wxu-more[open] > summary { margin-bottom: var(--space-3); }
.wxp-box.is-poster { padding: var(--space-5) var(--space-4); }
.wxp-box.is-poster .wxp-box-t { font-size: var(--text-xl); line-height: 1.12; }
.wxp-box.is-poster .wxp-range-in { height: 76px; }
.wxp-box.is-poster .wxp-pt.is-today { width: 18px; height: 18px; }
.wxp:has(.is-tabs) .wxp-days-list li { grid-template-columns: 44px 24px minmax(0, 1fr) 84px 44px; gap: var(--space-2); }
.wxp-vs { display: block; font: 500 var(--text-xs)/1.2 var(--font-sans); color: var(--ink-3); }
.wxp-trk { position: relative; display: block; height: 6px; border-radius: var(--r-xs); background: var(--sunk); }
.wxp-trk s { position: absolute; top: 0; height: 6px; border-radius: var(--r-xs); background: var(--ink); }
.wxp-trk u { position: absolute; top: -4px; width: 2px; height: 14px; background: var(--wx-warm); text-decoration: none; }
.wxp-dt--stack { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.wxp-dt--stack > span { font: 500 var(--text-xs)/1 var(--font-sans); color: var(--ink-3); }
@media (min-width: 1024px) { .wxp:has(.ds-tabs) .wxp-days { display: block; } }   /* the days ahead are the page's now; the sidebar keeps the sun */
.wxp-feed > .v2-card:first-child { border-top: 0; }   /* the feed's own cards (partials/news_card.html), under their label as the feed's are under their head */
