/* Next 36 hours (frontend-v4 §2.1 item 7; F5 #189; b2 direction.css "Next 36 hours" and "the hour
   list"). The plot is an SVG stretched to the card (no text inside it, so nothing in it scales with
   the text); every label is HTML placed by --x / --y (0–100, set through setVar), so it follows the
   reader's text size. At large text every other hour label drops so none collide. Tokens only. */
.slot-next36.is-loading { min-height: 18rem; }
.n36 { container-type: inline-size; }
.n36-stale { margin: 0 0 var(--space-2); font-weight: var(--weight-semibold); }
.c36 { margin: 0 0 var(--space-3); }
.c36-units { display: flex; justify-content: space-between; font-size: var(--t-small); font-weight: var(--weight-bold); color: var(--text-muted); margin-bottom: var(--space-1); }
.c36-area { display: grid; grid-template-columns: 2em minmax(0, 1fr) 2.25em; column-gap: var(--space-1); font-size: var(--t-small); }
.c36-plot { position: relative; height: 9rem; min-width: 0; }
.c36-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.c36-svg * { vector-effect: non-scaling-stroke; }
.c36-yaxis { position: relative; height: 9rem; color: var(--text-muted); font-weight: var(--weight-semibold); }
.c36-yl, .c36-yr { position: absolute; top: calc(var(--y) * 1%); transform: translateY(-50%); line-height: 1; }
.c36-yl { right: 0; }
.c36-yr { left: 0; }
.c36-over { position: absolute; inset: 0; pointer-events: none; }
.c36-day { position: absolute; top: 0; left: min(calc(var(--x) * 1%), calc(100% - 2.6em - 9px)); margin-left: 3px; padding: 0 3px; border-radius: var(--radius-s); background: var(--surface); font-weight: var(--weight-heavy); color: var(--text-muted); line-height: 1.2; }
.c36-hl { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); transform: translate(-50%, -130%); font-weight: var(--weight-heavy); color: var(--text); line-height: 1; padding: 1px 3px; border-radius: var(--radius-s); background: var(--surface); }
.c36-low { transform: translate(-50%, 30%); }
.c36-xaxis { position: relative; height: 1.5em; margin: var(--space-1) 2.25em 0 calc(2em + var(--space-1)); font-size: var(--t-small); font-weight: var(--weight-semibold); color: var(--text-muted); }
.c36-xl { position: absolute; left: calc(var(--x) * 1%); transform: translateX(-50%); white-space: nowrap; }
.c-night { fill: var(--chart-night); }
.c-grid { stroke: var(--chart-grid); stroke-width: 1; }
.c-mid { stroke: var(--chart-axis); stroke-width: 1; stroke-dasharray: 2 3; }
.c-chance, .c-rain { fill: var(--precip-rain); }
.c-snow { fill: var(--precip-snow); }
.c-ice { fill: var(--precip-ice); }
.c-mix { fill: var(--line-strong); }
.c-freeze { stroke: var(--chart-freeze); stroke-width: 1.6; stroke-dasharray: 5 4; }
.c-temp-halo { fill: none; stroke: var(--surface); stroke-width: 6.5; stroke-linejoin: round; stroke-linecap: round; }
.c-temp { fill: none; stroke: var(--text); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
/* the legend: only what is drawn */
.c36-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: var(--space-3) 0 0; padding: 0; list-style: none; font-size: var(--t-sub); font-weight: var(--weight-semibold); color: var(--text-muted); }
.c36-legend li { display: inline-flex; align-items: center; gap: 7px; min-height: 24px; }
.lg-sw { width: 18px; height: 13px; flex: none; border-radius: 2px; }
.lg-temp { height: 0; border-top: 3px solid var(--text); border-radius: 0; }
.lg-chance, .lg-rain { background: var(--precip-rain); }
.lg-snow { background: var(--precip-snow); }
.lg-ice { background: var(--precip-ice); }
.lg-mix { background: var(--line-strong); }
.lg-freeze { height: 0; border-top: 2px dashed var(--chart-freeze); border-radius: 0; }
/* the hour list, opened under the chart; at large text a data table scrolls sideways in its own box
   (never the page) rather than breaking words letter by letter */
.slot-next36 .dropdown { border-top: var(--rule) solid var(--line); padding-top: var(--space-3); }
.slot-next36 .drop-ic .ic { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.slot-next36 .drop-panel { min-width: 0; }
.hl-wrap { max-width: 100%; overflow-x: auto; }
.hl { width: 100%; border-collapse: collapse; font-size: var(--t-sub); font-variant-numeric: tabular-nums; }
.hl th, .hl td { min-height: 42px; height: 42px; padding: 0 0 0 var(--space-1); text-align: right; border-top: var(--rule) solid var(--line); font-weight: var(--weight-medium); }
.hl thead th { height: auto; padding-bottom: var(--space-2); border-top: 0; font-size: var(--t-small); font-weight: var(--weight-bold); color: var(--text-muted); }
.hl thead th:first-child, .hl tbody th { text-align: left; padding-left: 0; }
.hl tbody th { font-weight: var(--weight-bold); }
.hl .hl-temp { font-weight: var(--weight-bold); }
/* every column fits the card (#503): cells may wrap at large text, never clip; Time may wrap below 16rem too */
.hl { table-layout: auto; }
.hl th, .hl td { padding-left: var(--space-1); overflow-wrap: anywhere; }
.hl tbody th { white-space: normal; }
.hl .hl-sky { text-align: center; }
.hl .hl-sky .wx { width: 24px; height: 24px; margin: 0 auto; }
.hl tr[data-more] { display: none; }
.hl-more { display: block; width: 100%; min-height: 44px; margin-top: var(--space-2); border: var(--rule) solid var(--line); border-radius: var(--radius-s); background: var(--surface); color: var(--text); font: inherit; font-weight: var(--weight-bold); cursor: pointer; }
.hl .hl-day th { height: 30px; padding-top: var(--space-2); font-size: var(--t-small); font-weight: var(--weight-heavy); letter-spacing: var(--tracking-small); text-transform: uppercase; color: var(--text-muted); }
/* large text: every other hour label, so none collide */
@container (max-width: 15rem) {
  .c36-xl.is-odd { display: none; }
}
/* at normal text on a 320 px phone the seven columns fit whole (no wrapped words); at large text
   (the card is then narrower in rem) they wrap instead, never clip (#503) */
@container (min-width: 16rem) {
  .hl th, .hl td, .hl tbody th { white-space: nowrap; padding-left: 2px; }
  .hl thead th:first-child, .hl tbody th { padding-left: 0; }
  .hl .hl-sky .wx { width: 22px; height: 22px; }
}
/* the header carries the unit on every width (#503): Wind and Gust never read as bare numbers */
.hl .hl-hu { display: block; font-size: 0.8em; font-weight: var(--weight-regular, 400); color: var(--text-muted); }
.hl .hl-u { font-size: 0.8em; font-weight: var(--weight-regular, 400); color: var(--text-muted); }
/* headroom at 320 px (#503): the unit sits in the column's meaning, so on a narrow card it stays for
   screen readers only and the table keeps room to spare for a wider phone font */
@container (max-width: 22rem) {
  .hl .hl-u { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
