/* Goldberg Weather - Live. Loads after app.css and reuses its tokens, font and components. */
[hidden] { display: none !important; }
.pub-body { padding-bottom: env(safe-area-inset-bottom, 0px); }

/* Header: the shared sticky .site-head in app.css; the stale notice is its freshness chip. */
.pub { padding-top: var(--s-5); padding-bottom: var(--s-6); }
.pub-h1 { font-size: var(--t-xl); line-height: 1.15; margin-bottom: var(--s-3); }
.pub-lede { max-width: 40rem; margin-bottom: var(--s-4); }
.pub-prose { max-width: 40rem; font-size: var(--t-md); line-height: 1.6; }
.pub-prose p { margin-bottom: var(--s-3); }
.pub-prose h2 { font-size: var(--t-lg); margin: var(--s-5) 0 var(--s-2); }
.pub-prose ul { padding-left: 1.1em; margin-bottom: var(--s-3); }

/* Sections: hairline rule, generous air */
.pub-sec { border-top: 1px solid var(--rule); padding-top: var(--s-5); margin-top: var(--s-5); }
.pub-sec--first { margin-top: var(--s-4); }
.pub-sec > h2 { font-size: var(--t-xl); margin-bottom: var(--s-4); }
.pub-pick { display: flex; gap: var(--s-2); align-items: flex-end; }
.pub-foot { padding-top: var(--s-4); padding-bottom: var(--s-5); border-top: 1px solid var(--rule); }
.pub-foot p { font-size: var(--fs-1); line-height: 1.5; max-width: 40rem; }
.pub-foot a { display: inline-block; padding: 13px 0; margin: -13px 0; } /* 44 px to tap, same line height */

/* Place picker (M C10): one button naming the place; the towns open in a sheet over the page, so
   the closed picker costs one line. menu.js closes it on Escape or a click outside. */
.pick { position: relative; z-index: 20; width: fit-content; max-width: 100%; margin-bottom: var(--s-3); }
.pick > summary { display: flex; align-items: center; gap: var(--s-2); min-height: var(--tap); padding: 0 var(--s-3); border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: var(--t-sm); cursor: pointer; list-style: none; }
.pick > summary::-webkit-details-marker { display: none; }
.pick > summary:hover, .pick[open] > summary { border-color: var(--primary); }
.pick > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pick > summary strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-lab { color: var(--ink-muted); white-space: nowrap; }
.pick-pin { flex: none; fill: var(--primary); }
.pick-caret { flex: none; color: var(--ink-muted); }
.pick[open] .pick-caret { transform: rotate(180deg); }
.pick-sheet { position: absolute; top: calc(100% + var(--s-1)); left: 0; width: min(22rem, calc(100vw - 2rem)); padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 12px 24px rgb(0 0 0 / 0.14); }
.pick[open] > .pick-sheet { animation: sheet-in 140ms ease-out; }
.pub-pick { flex-wrap: wrap; }
.pub-pick .field { flex: 1 1 100%; min-width: 0; }
.pub-pick select { width: 100%; }
@media (prefers-reduced-motion: reduce) { .pick[open] > .pick-sheet { animation: none; } }

/* Folds (M C10): one look for every "more if you want it" on the public pages. The summary reads
   as a link with a turning marker; the content is unchanged inside. */
.fold { margin: var(--s-3) 0; }
.fold > summary, .mo-how summary { min-height: var(--tap); display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--link); list-style: none; }
.fold > summary::-webkit-details-marker, .mo-how summary::-webkit-details-marker { display: none; }
.fold > summary::before, .mo-how summary::before { content: "▸"; flex: none; width: 1em; margin-right: var(--s-1); }
.fold[open] > summary::before, .mo-how[open] summary::before { content: "▾"; }
.fold > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.fold[open] > summary { margin-bottom: var(--s-2); }

/* Notice: shown only when the data is late, missing or out of date */
.pub-notice { margin: 0 0 var(--s-4); padding: var(--s-3) var(--s-4); border: 1px solid var(--amber-ink); border-left-width: 4px; border-radius: var(--radius); background: var(--tint-amber); color: var(--ink); }
.pub-notice[data-state="missed"] { border-color: var(--nws); background: var(--tint-nws); }
.pub-notice[data-state="none"] { border-color: var(--line); background: transparent; }

/* Byline: who wrote the words above it. Automatic text is dashed so it never reads as Alex's. */
.pub-src[data-source="auto"] { border: 1px dashed var(--edge); background: transparent; color: var(--ink-muted); }
.pub-src { display: inline-block; margin: var(--s-2) 0 0; padding: 0 var(--s-2); border-radius: 999px; border: 1px solid var(--hold-ink); color: var(--hold-ink); font-size: var(--fs-1); font-weight: 600; }
.pub-sub { font-size: var(--t-md); margin: var(--s-5) 0 var(--s-2); }
.pub-kind { margin: 0 0 2px; font-size: var(--t-sm); color: var(--ink-muted); }
.pub-intro { font-size: var(--t-lg); line-height: 1.45; font-weight: 500; }
.pub-watch-card p { margin: var(--s-1) 0 0; }



/* Day panel panes: the models table with a colour dot per model (the chart colours, light and
   dark; a browser without light-dark() keeps the neutral dot), and the NWS gap chip */
.pub-models .table-scroll { margin-top: var(--s-2); }
.pub-models .pub-table th, .pub-models .pub-table td { padding: var(--s-1) 0.25rem; }
.pub-dot { display: inline-block; width: 0.7rem; height: 0.7rem; margin-right: 0.375rem; border-radius: 50%; background: var(--ink-muted); }
/* BEGIN generated by tools/gen_model_assets.py: edit live/modelspec.py */
.pub-dot[data-model="HRRR"] { background: light-dark(#0087FF, #BDC6F3); }
.pub-dot[data-model="NAM"] { background: light-dark(#0909B4, #5A3FFF); }
.pub-dot[data-model="RRFS"] { background: light-dark(#2448FF, #9988FF); }
.pub-dot[data-model="GFS"] { background: light-dark(#36996C, #B4FCA2); }
.pub-dot[data-model="ECMWF"] { background: light-dark(#7E36C6, #E136B4); }
.pub-dot[data-model="ECMWF AI"] { background: light-dark(#5A0975, #7E48CF); }
.pub-dot[data-model="ICON"] { background: light-dark(#5A2D1B, #C63F09); }
.pub-dot[data-model="GEM"] { background: light-dark(#485A12, #FFD800); }
.pub-dot[data-model="NBM"] { background: light-dark(#51873F, #489951); }
/* END generated */
.pub-gap { min-height: 0; }
.pub-deskno { max-width: 46rem; margin-bottom: var(--s-3); }

/* Live chart (charts.js renderLive): variable switch, model chips, shaded band */
.live-ctl, .live-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-3); }
.live-seg, .live-chip { min-height: var(--tap); padding: 0 var(--s-4); border: 1px solid var(--edge); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: var(--t-sm); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: var(--s-2); }
.live-seg[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.live-chip { min-height: 36px; padding: 0 var(--s-3); }
.live-chip[aria-pressed="false"] { opacity: 0.55; text-decoration: line-through; }
.live-chip[aria-pressed="true"] { border-color: var(--ink); }
.live-seg:focus-visible, .live-chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.live-dot { width: 0.75rem; height: 0.75rem; border-radius: 50%; display: inline-block; }
.live-chip--band::before { content: ""; width: 1.1rem; height: 0.7rem; border-radius: 2px; background: var(--ink); opacity: 0.18; }
.live-note { min-height: 1.4em; font-size: var(--t-sm); margin-top: var(--s-2); }
.live-note--hrrr { min-height: 0; margin-top: 0; }
.pub-table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.pub-table th, .pub-table td { padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--rule); text-align: left; white-space: nowrap; }
.pub-table thead th { color: var(--ink-muted); font-weight: 600; }
.pub-table tbody th { font-weight: 600; }

/* Alerts and map. Level is always a word as well as a colour. */
.pub-sev { border-radius: 999px; padding: 0 var(--s-2); font-size: var(--t-sm); font-weight: 650; border: 1px solid var(--ink); }
.pub-sev[data-level="advisory"] { background: var(--tint-hold); border-color: var(--hold-ink); color: var(--hold-ink); }
.pub-sev[data-level="watch"] { background: var(--tint-amber); border-color: var(--amber-ink); color: var(--amber-ink); }
.pub-sev[data-level="warning"] { background: var(--nws); border-color: var(--nws); color: var(--paper); }
.map-frame .county { cursor: default; }
.map-frame .county[data-level="advisory"], .swatch[data-level="advisory"] { fill: var(--map-hold); background: var(--map-hold); }
.map-frame .county[data-level="warning"], .swatch[data-level="warning"] { fill: var(--map-warning); background: var(--map-warning); }
.map-frame .county[data-level="watch"], .swatch[data-level="watch"] { fill: var(--map-watch); background: var(--map-watch); }
.map-frame .county:hover { stroke-width: 1px; stroke-opacity: .65; }

@media (min-width: 760px) {
  .pub-summary { font-size: var(--t-lg); }
  .pub-h1 { font-size: var(--t-2xl); }
}

/* Breathing room inside the watch card */
.pub-watch-card h3 { margin-top: var(--s-2); }

/* Icons on a tinted sky card: lighter strokes so they read on the gradient. */
.sky { --ic-rain: #9bcbff; --ic-snow: #eaf3ff; --ic-cloud: #e6ecf3; --ic-storm: #b4c0ce; --ic-cloud-edge: #dbe9fb; --ic-wind: #dbe9fb; --ic-fog: #dbe9fb; color: var(--sky-ink); }
.wx-ic { display: inline-block; flex: none; vertical-align: middle; }
.thunder-ic { display: inline; width: 16px; height: 16px; vertical-align: -3px; }

/* Landing (v3a): the sky-tinted Now card, the watch column and the week row */

/* Models (P3.2) */
.mo-how { max-width: 40rem; margin-bottom: var(--s-4); }
.mo-dayfold { margin-top: var(--s-4); }
@media (max-width: 759px) {
  .live-chips { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px; }
  .live-chips > * { flex: none; scroll-snap-align: start; }
}
@media (max-width: 599px) {
  .mo-days thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .mo-days, .mo-days tbody { display: block; }
  .mo-days tr { display: block; border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s-2) var(--s-3); margin-bottom: var(--s-3); }
  .mo-days th, .mo-days td { display: block; border-bottom: 0; padding: var(--s-1) 0; white-space: normal; }
  .mo-days tbody th { font-size: var(--t-md); }
  .mo-days td { display: grid; grid-template-columns: 9rem 1fr; gap: var(--s-2); }
  .mo-days td::before { content: attr(data-label); color: var(--ink-muted); font-weight: 600; }
}
/* Alerts (P3.3) */
.al-split { display: grid; gap: var(--s-5); }
.al-map .map-frame { width: 100%; }
.al-cap { font-size: var(--t-sm); margin-top: var(--s-2); }
.al-rows { list-style: none; margin: 0 0 var(--s-3); padding: 0; display: grid; gap: var(--s-3); }
.al-rows .pub-alert { display: flex; align-items: flex-start; gap: var(--s-3); padding: var(--s-3); border: 1px solid var(--rule); border-radius: 6px; }
.al-rows .pub-alert[data-level="warning"] { border-color: var(--warning); background: var(--tint-nws); }
.al-rows .pub-alert[data-level="watch"] { border-color: var(--watch); background: var(--tint-amber); }
.al-rows .pub-alert[data-level="advisory"] { border-color: var(--advisory); background: var(--tint-hold); }
.al-ic { flex: none; }
.al-body { min-width: 0; }
.al-body p { margin: 0 0 var(--s-1); }
.al-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); }
.al-areas { font-size: var(--t-sm); overflow-wrap: anywhere; }
.al-clear { padding: var(--s-4); }
.al-clear p { margin: 0 0 var(--s-2); }
@media (min-width: 960px) {
  .al-split { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
}
/* Updates (P3.4) */
.tl { list-style: none; margin: 0 0 var(--s-4); padding: 0; max-width: 46rem; position: relative; }
.tl::before { content: ""; position: absolute; left: 15px; top: 16px; bottom: 16px; width: 2px; background: var(--rule, var(--line)); }
.tl-item { position: relative; display: grid; grid-template-columns: 32px 1fr; grid-template-areas: "mark when" "mark body"; column-gap: var(--s-3); padding: var(--s-2) 0 var(--s-3); }
.tl-mark { grid-area: mark; display: flex; justify-content: center; align-items: flex-start; position: relative; background: var(--bg, transparent); height: 32px; }
.tl-mark .wx-ic { width: 32px; height: 32px; }
.tl-dot { width: 12px; height: 12px; margin-top: 10px; border-radius: 50%; background: var(--rule, var(--line)); border: 2px solid var(--primary); box-sizing: border-box; }
.tl .when { grid-area: when; font-size: var(--fs-2); color: var(--ink-muted); }
.tl .when b { color: var(--ink); font-weight: 600; }
.tl-body { grid-area: body; min-width: 0; }
.tl-body p { margin: 0 0 var(--s-1); }
@media (min-width: 960px) {
  .tl { max-width: 62rem; }
  .tl::before { left: calc(11rem + var(--s-3) + 15px); }
  .tl-item { grid-template-columns: 11rem 32px 1fr; grid-template-areas: "when mark body"; }
  .tl .when { text-align: right; padding-top: 4px; }
}
/* About (P3.5) */
.ab-steps { list-style: none; margin: 0 0 var(--s-3); padding: 0; counter-reset: ab-step; }
.ab-steps > li { position: relative; counter-increment: ab-step; padding-left: 2.6rem; margin-bottom: var(--s-4); }
.ab-steps > li::before {
  content: counter(ab-step); position: absolute; left: 0; top: 0.1rem;
  width: 1.75rem; height: 1.75rem; border: 1px solid var(--ink); border-radius: 50%;
  display: grid; place-items: center; font-size: var(--t-sm); font-weight: 650; line-height: 1;
}
.ab-steps h3 { font-size: var(--t-md); margin: 0 0 var(--s-1); }
.ab-steps p { margin-bottom: var(--s-2); }
/* About contents and folds (M C10): the opening section reads straight through; each later
   section is one ruled line until opened. */
.ab-toc ul { list-style: none; margin: 0 0 var(--s-4); padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--s-4); max-width: 40rem; font-size: var(--t-sm); }
.ab-toc a { display: inline-flex; align-items: center; min-height: 2rem; }
.ab-folds { margin-top: var(--s-5); }
.ab-fold { margin: 0; border-top: 1px solid var(--rule); }
.ab-fold:last-child { border-bottom: 1px solid var(--rule); }
.ab-fold > summary { color: var(--ink); padding: var(--s-1) 0; }
.ab-fold > summary::before { color: var(--link); }
.ab-fold > summary h2 { font-size: var(--t-lg); margin: 0; }
.ab-fold > summary:hover h2 { color: var(--link); }
.ab-body { padding-bottom: var(--s-3); }
.ab-body > ul { padding-left: 1.1em; }
.ab-body > ul li + li { margin-top: var(--s-2); }

/* Alex's story on top of About (0.59.0, mockup approved 2026-11-08): a reading panel with the
   photo beside it (under the heading on phones). The photo is small (the 2016 one is 300 px),
   so it is never stretched. The text is Alex's, edited in /admin/about. */
.ab-story { display: grid; gap: var(--s-4); margin: 0 0 var(--s-6); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s-5) var(--s-4); }
.ab-story .pub-h1 { margin: 0 0 var(--s-3); }
.ab-story-text { font-size: 1.0625rem; line-height: 1.7; max-width: 38rem; min-width: 0; overflow-wrap: break-word; }
.ab-story-text p { margin: 0 0 var(--s-4); }
.ab-story-text > p:first-child { font-size: var(--t-lg); line-height: 1.5; font-weight: 500; }
.ab-story-text > :last-child { margin-bottom: 0; }
.ab-story-text h2, .ab-story-text h3 { font-size: var(--t-lg); margin: var(--s-5) 0 var(--s-2); }
.ab-story-text ul, .ab-story-text ol { padding-left: 1.2em; margin: 0 0 var(--s-4); }
.ab-photo { margin: 0; justify-self: start; max-width: 300px; }
.ab-photo img { display: block; width: 100%; height: auto; border-radius: 4px; }
.ab-photo figcaption { margin-top: var(--s-2); font-size: var(--t-sm); color: var(--ink-muted); }
.ab-site-h { font-size: var(--t-xl); line-height: 1.2; margin: 0 0 var(--s-3); }
@media (min-width: 760px) {
  .ab-story { grid-template-columns: minmax(0, 38rem) 300px; column-gap: var(--s-6); padding: var(--s-6); align-items: start; }
  .ab-story .pub-h1 { grid-column: 1 / -1; }
  .ab-story-text { grid-column: 1; grid-row: 2; }
  .ab-photo { grid-column: 2; grid-row: 2; margin-top: 0.4rem; }
}

/* Forecast (P3.1) */
.fc-timing { list-style: none; margin: 0 0 var(--s-4); padding: 0; display: grid; gap: var(--s-1); font-size: var(--t-md); }
.fc-timing li { display: flex; align-items: center; gap: var(--s-2); }
.fc-timing-ic { width: 20px; height: 20px; opacity: .8; }
.fc-sec { border-top: 1px solid var(--rule); padding-top: var(--s-4); margin-top: var(--s-5); }
.fc-sec > h2 { font-size: var(--t-xl); margin-bottom: var(--s-3); }
.fc-scroll { position: relative; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); }
.fc-scroll:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.fc-days { display: flex; gap: var(--s-2); list-style: none; margin: 0; padding: 0; }
.fc-days li { flex: 0 0 calc((100% - 3 * var(--s-2)) / 4); scroll-snap-align: start; min-width: 0; }
.fc-days a { display: flex; flex-direction: column; align-items: center; gap: var(--s-1); padding: var(--s-3) var(--s-2); height: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; text-align: center; }
.fc-days a:hover { border-color: var(--primary); }
.fc-days a[aria-current="true"] { box-shadow: 0 0 0 2px var(--primary) inset; border-color: var(--primary); }
.fc-dow { font-size: var(--fs-2); font-weight: 600; }
.fc-date { font-size: var(--fs-1); color: var(--ink-muted); }
.fc-noic { width: 48px; height: 48px; }
.fc-temps b { font-size: var(--t-md); }
.fc-temps small { font-size: var(--fs-2); color: var(--ink-muted); }
.fc-blurb { font-size: var(--fs-1); color: var(--ink-muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.fc-wet { display: none; font-size: var(--fs-1); font-weight: 600; line-height: 1.2; }
/* M C14: glyph + words, never colour alone */
.fc-chg { font-size: var(--fs-1); color: var(--ink-muted); line-height: 1.25; }
.fc-chg > span:first-child, .fc-chg-full > span { font-weight: 700; }
.fc-key { margin: var(--s-2) 0 0; font-size: var(--fs-2); } /* R-005: one key for the cards' ▲ ▼ amounts */
.fc-watch { margin: var(--s-5) 0 0; padding-top: var(--s-3); border-top: 1px solid var(--rule); }
/* Phone cards (M C10): day, icon, high and low, the bar and the rain line (R12: the bar and its key
   match the homepage tiles); the blurb waits in the day panel below. */
@media (max-width: 599.98px) {
  .fc-blurb { display: none; }
  .fc-wet { display: block; }
}
.fc-panels { margin-top: var(--s-4); }
.fc-one .fc-panel { display: none; }
.fc-one .fc-panel.fc-on { display: block; }
.fc-panel { padding: var(--s-4); margin-bottom: var(--s-3); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); scroll-margin-top: var(--s-5); }
.fc-panel h3 { font-size: var(--t-lg); }
.fc-lab { font-weight: 500; color: var(--ink-muted); }
.fc-panel p { margin: var(--s-2) 0 0; }
.fc-panel .temps { font-size: var(--t-xl); font-weight: 700; line-height: 1.15; }
.fc-panel .temps .lo { font-size: var(--t-md); font-weight: 500; color: var(--ink-muted); }
.fc-panel .facts { color: var(--ink-muted); font-size: var(--t-sm); }
.fc-panes { display: grid; gap: var(--s-4); margin-top: var(--s-4); }
.fc-pane { min-width: 0; border-top: 1px solid var(--rule); padding-top: var(--s-3); }
.fc-pane h4 { font-size: var(--t-md); }
.fc-legend { font-size: var(--t-sm); margin-bottom: var(--s-2); }
@media (min-width: 960px) {
  .fc-scroll { overflow: visible; }
  .fc-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .fc-days li { flex: none; }
  .fc-panes { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
  .fc-pane { border-top: 0; padding-top: 0; }
}

/* Track record (P4.3) */
.tr-building, .tr-count { max-width: 40rem; margin-bottom: var(--s-3); }
.tr-tiles { display: grid; gap: var(--s-3); list-style: none; margin: 0 0 var(--s-4); padding: 0; }
.tr-tile h2 { font-size: var(--t-md); margin-bottom: var(--s-1); }
.tr-label { font-size: var(--t-sm); margin: 0; }
.tr-big { font-size: var(--t-lg); font-weight: 600; margin: 0 0 var(--s-1); }
.tr-legend { margin-bottom: var(--s-2); }
.tr-key { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 50%; margin: 0 0.25rem 0 0.5rem; }
.tr-key--blend, .tr-dot--blend { background: var(--ink); fill: var(--ink); }
.tr-key--nws, .tr-dot--nws { background: var(--nws); fill: var(--nws); }
.tr-chart { display: block; width: 100%; height: auto; max-width: 40rem; }
.tr-grid { stroke: var(--rule); stroke-width: 1; }
.tr-base { stroke: var(--ink-muted); stroke-width: 1.5; }
.tr-txt { fill: var(--ink-muted); font-size: 12px; } /* user units: the viewBox is about phone width, so 12 renders near 12 px */
.tr-foot { max-width: 40rem; margin-top: var(--s-4); }
@media (min-width: 760px) {
  .tr-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Glossary (P4.5) */
.gl-term { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: help; text-decoration: underline dotted; text-underline-offset: 3px; }
.gl-solo { min-height: var(--tap); display: inline-flex; align-items: center; }
.gl-term:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.gl-i { font-size: 0.8em; margin-left: 0.2em; color: var(--muted); }
[popover].gl-pop { width: min(22rem, 90vw); max-width: 90vw; box-sizing: border-box; margin: auto; padding: var(--s-3) var(--s-4); background: var(--surface); color: var(--ink); border: 1px solid var(--edge); border-radius: 12px; box-shadow: 0 8px 28px rgb(0 0 0 / 0.35), 0 0 0 1px rgb(0 0 0 / 0.08); font-size: var(--t-sm); }
[popover].gl-pop::backdrop { background: rgb(0 0 0 / 0.4); }
[popover].gl-pop p { margin: 0; }
#glossary dt { font-weight: 700; margin-top: var(--s-3); }
#glossary dd { margin: 0; }
/* Flags and NWS chip (P4.2, P4.4) */
.fc-flags, .fc-panel-flags { list-style: none; margin: 0 0 var(--s-3); padding: 0; display: grid; gap: var(--s-1); font-size: var(--t-sm); }
.fc-flags li, .fc-panel-flags li { display: flex; align-items: flex-start; gap: var(--s-2); }
.fc-flags a { display: flex; align-items: flex-start; gap: var(--s-2); color: var(--ink); }
.flag-ic { width: 16px; height: 16px; margin-top: 0.15em; color: var(--amber-ink); }
.fc-panel .fc-panel-flags { margin: var(--s-2) 0 0; }
.fc-cap { margin: 0 0 var(--s-1); font-size: var(--fs-1); font-weight: 600; color: var(--ink-muted); }
.temps-lab { display: block; font-size: var(--fs-1); font-weight: 600; color: var(--ink-muted); line-height: 1.2; }
.fc-days .pub-gap { max-width: 100%; padding: 0.0625rem 0.375rem; font-size: var(--fs-1); line-height: 1.2; text-align: center; white-space: nowrap; background: var(--tint-amber); border-color: var(--amber-ink); color: var(--amber-ink); }
.fc-days .pub-gap > [aria-hidden] > span { display: block; } /* "▲ 4°" over "vs NWS": a phone card is ~62 px wide */
.fc-panel .pub-gap { background: var(--tint-amber); border-color: var(--amber-ink); color: var(--amber-ink); font-weight: 650; }
.fc-panel .pub-gap-why { margin-top: var(--s-1); font-size: var(--t-sm); color: var(--ink-muted); }

/* Agreement bar (P4.1): shared week scale, bands coloured by agreement, ticks at the blend; each
   colour is 4:1 or better against the card in both themes */
:root {
  --agree-tight: light-dark(#4a7a62, #7fb596);
  --agree-some: light-dark(#6b7785, #93a1b1);
  --agree-wide: light-dark(#b06a00, #e0a63a);
}
.ag { display: block; width: 100%; height: 0.875rem; margin-block: var(--s-1); max-width: 100%; overflow: hidden; }
.ag--row { width: 8rem; margin-bottom: var(--s-1); }
.ag-track { fill: var(--line); }
.ag-band { fill: var(--agree-some); }
.ag[data-level="tight"] .ag-band { fill: var(--agree-tight); }
.ag[data-level="wide"] .ag-band { fill: var(--agree-wide); }
.ag-tick { stroke: var(--ink); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }

.pub-blog { margin-bottom: var(--s-5); }
.pub-blog p { margin: 0 0 var(--s-1); overflow-wrap: anywhere; }
.pub-blog .muted { font-size: var(--t-sm); }

/* Daily icon history (P8.7): day label, then forecast and observed side by side. */
.ih { list-style: none; margin: 0 0 var(--s-4); padding: 0; max-width: 46rem; }
.ih-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-1) var(--s-3); padding: var(--s-2) 0; border-top: 1px solid var(--rule, var(--line)); }
.ih-row[hidden] { display: none; }
.ih-row:focus { outline: none; }
.ih-row:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ih-day { grid-column: 1 / -1; font-weight: 600; }
.ih-note { font-size: var(--fs-1, 0.75rem); line-height: 1.35; overflow-wrap: anywhere; }
.ih-more { margin: 0 0 var(--s-4); }
.ih-cell { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); min-width: 0; }
.ih-cap { flex-basis: 100%; font-size: var(--fs-1, 0.75rem); color: var(--ink-muted); }
.ih-cell .wx-ic, .ih-none { flex: none; width: 32px; height: 32px; text-align: center; line-height: 32px; }
.ih-text { flex: 1 1 0; display: flex; flex-direction: column; font-size: var(--fs-2); min-width: 0; overflow-wrap: anywhere; }

/* Settling (Track B) */
.settle-days {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--s-2);
  margin: var(--s-3) 0 var(--s-4);
}
.settle-chip {
  --state: var(--agree-some);
  display: grid;
  grid-template-columns: 7.5rem 8rem 1fr;
  gap: var(--s-1) var(--s-3);
  align-items: baseline;
  padding: var(--s-2) var(--s-3);
  min-height: var(--tap);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--state);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
}
.settle-chip[data-state="settled"],
.settle-chip[data-state="settling"] { --state: var(--agree-tight); }
.settle-chip[data-state="shifting"],
.settle-chip[data-state="unsettled"] { --state: var(--agree-wide); }
.settle-chip[data-state="too_early"] { --state: var(--agree-some); }
.settle-day { font-weight: 600; }
.settle-word { font-weight: 650; font-size: var(--t-sm); }
.settle-text { font-size: var(--t-sm); color: var(--ink-muted); max-width: 60ch; }
.settle-chip:hover { border-color: var(--primary); border-left-color: var(--state); }
.settle-chip[aria-current="true"] { box-shadow: 0 0 0 2px var(--primary) inset; }
.settle-chip[aria-current="true"] .settle-text { color: var(--ink); }
.settle-chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 600px) {
  .settle-chip { grid-template-columns: auto 1fr; }
  .settle-text { grid-column: 1 / -1; }
}
.settle-each, .live-each {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: var(--tap);
  margin-top: var(--s-2);
}

/* r6a-A: look fixes (R-005, R-013, R-016, R-154, R-155) */
/* R-013 safe-area insets */
.pub-body .wrap { padding-left: max(var(--s-4), env(safe-area-inset-left, 0px)); padding-right: max(var(--s-4), env(safe-area-inset-right, 0px)); }
.pub-body .site-head { padding-top: env(safe-area-inset-top, 0px); height: auto; min-height: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); }
.pub-body .site-head .wrap { height: auto; min-height: var(--nav-h); flex-wrap: wrap; row-gap: 0; }
.pub-body .brand { white-space: normal; overflow: visible; overflow-wrap: break-word; }
/* R-016: 44 px hit areas on touch screens */
@media (pointer: coarse) {
  .cluster a, .fc-flags a, .lv-flags a, .fc-watch a, .gl-term, .ab-toc a, .pub-prose li a { display: inline-flex; align-items: center; min-height: var(--tap); }
  .gl-term { display: inline; padding: 13px 0; margin: -13px 0; min-height: 0; }
  .pub label:has(> input[type="checkbox"]) { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); }
  .pub input[type="checkbox"] { width: 24px; height: 24px; }
}
/* R-154: wrap, never overflow */
.pub, .pub-foot { min-width: 0; }
.pick > summary { flex-wrap: wrap; border-radius: 22px; }
.pick > summary strong { white-space: normal; overflow-wrap: break-word; min-width: 0; }
.fc-days a { overflow-wrap: break-word; }
.fc-days li { flex-basis: max(calc((100% - 3 * var(--s-2)) / 4), 4.5rem); }
.fc-timing li, .fc-flags li, .lv-watch > * { min-width: 0; }

/* R-155: print */
@media print {
  :root, :root[data-theme], :root[data-theme="light"], :root[data-theme="dark"], :root:not([data-theme="light"]) { color-scheme: light; --bg: #fff !important; --paper: #fff !important; --surface: #fff !important; --ink: #000 !important; --ink-muted: #333 !important; --muted: #333 !important; --line: #999 !important; --rule: #999 !important; --link: #000 !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .ih-row[hidden] { display: grid; }  /* print every day, not only the shown batch */
  .site-head, .skip, .pick, .theme-switch, .menu, .live-seg, .live-chip, .live-note, .fc-hint, .lv-hint, .alert-bar__x, .radar-ctl, .radar-layer, .gl-i, [popover], .ab-toc, button { display: none !important; }
  .gl-term { display: inline !important; border: 0; padding: 0; background: none; color: inherit; font: inherit; text-decoration: none; }
  .wrap { max-width: none; padding-left: 0; padding-right: 0; }
  .fc-scroll, .lv-scroll, .table-scroll, .hr-row { overflow: visible !important; max-height: none !important; }
  .fc-days, .hr-row { flex-wrap: wrap; }
  .hr { break-inside: avoid; }
  .fc-days li { flex: 0 0 calc(25% - var(--s-2)); }
  .fc-days a, .fc-panel, .card { break-inside: avoid; border-color: #999; box-shadow: none; background: #fff; }
  .fc-blurb { display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; }
  .fc-panel { display: block !important; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]:not([href*="goldbergweather.com"])::after { content: " (" attr(href) ")"; font-size: 0.85em; word-break: break-all; }
  h1, h2, h3 { break-after: avoid; }
}

/* r6a-B: header, footer, freshness */
.alert-note {
  margin: 0;
  padding-block: var(--s-1) var(--s-2);
  font-size: var(--fs-2);
  color: var(--muted);
}
.alert-note a { color: inherit; text-decoration: underline; }
/* Header (public only): the alert count rides on the closed menu button. */
.site-head--public .menu > summary { position: relative; }
.menu-count { position: absolute; top: 2px; right: 0; min-width: 1.4em; padding: 0 5px; border-radius: 999px; background: var(--warning); color: #fff; font-size: var(--fs-1); font-weight: 700; line-height: 1.5; text-align: center; font-variant-numeric: tabular-nums; }
/* The picker beside the page heading (point_title): a real h1, then a compact "Change" control. */
.pick-head { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); margin-bottom: var(--s-2); }
.pick-head .pub-h1 { margin: 0; }
.pick--title { position: static; width: auto; margin: 0; }
.pick--title > summary { min-height: var(--tap); padding: 0 var(--s-2); gap: var(--s-1); font-size: var(--t-sm); font-weight: 600; color: var(--link); background: none; }
.pick--title > summary:hover, .pick--title[open] > summary { border-color: var(--primary); }

/* Phones (Alex, 2026-11-12): tighter rhythm, smaller section heads, and long notes folded.
   `.mfold` folds open by script from 760 px, where its summary hides, so wide screens look as before. */
@media (max-width: 759px) {
  .pub { padding-top: var(--s-4); padding-bottom: var(--s-5); }
  .pub-sec, .pub-sec--first { margin-top: var(--s-4); padding-top: var(--s-4); }
  .fc-sec { margin-top: var(--s-4); padding-top: var(--s-3); }
  .pub-sec > h2, .fc-sec > h2 { font-size: var(--t-lg); margin-bottom: var(--s-2); }
  .fc-watch { margin-top: var(--s-4); }
  .ab-story { margin-bottom: var(--s-5); padding: var(--s-4); gap: var(--s-3); }
  .settle-chip:not([aria-current]) .settle-text { display: none; }
  .live-note:empty { min-height: 0; margin: 0; }
  .tl-item { padding: var(--s-1) 0 var(--s-2); }
  .pub-sub { margin-top: var(--s-4); }
  .ih-row { padding: var(--s-1) 0; row-gap: 2px; }
}
.mfold { margin: var(--s-1) 0 0; }
.tot-src .mfold > summary { font-size: var(--t-sm); }
@media (min-width: 760px) { .mfold[open] > summary { display: none; } }
