/* The Records tab on /hazards/ (hazards-records.js). Namespaced rc-: the mock's bare .d badge collided with its row
   description and turned "Daily record" unreadable. Tokens from style.css, so light and dark follow the site. */
#hzSecRow [data-sec="records"][hidden]{ display:none !important; }
#hzRecRow[hidden]{ display:none !important; }
#hzRecPane[hidden]{ display:none; }
/* the tab puts its own map in the stage's place, the same size (Mike 2026-11-06: the map never moves between tabs), its list
   under it, and its one legend in the right-hand card like every other tab; a phone shows the legend's key rows under the map */
body.rc-on #hzMapStage, body.rc-on #hzHighlightsWrap, body.rc-on .hz-map-stage + .map-stamp{ display:none !important; }
@media (max-width:880px){ body.rc-on .legend-card{ display:none !important; } }
.rc-mapwrap{ scroll-margin-top:88px; } #hzRecMap{ scroll-margin-top:88px; }
.rc-grid{ display:grid; grid-template-columns:minmax(0,1fr); gap:18px; align-items:start; }
.rc-mapwrap{ position:static; min-width:0; }
.rc-map svg{ display:block; width:100%; height:auto; background:var(--panel); border-radius:12px; }
.rc-land{ fill:var(--bg-2, var(--panel)); stroke:var(--line-2, var(--line)); stroke-width:.14; stroke-linejoin:round; }
.rc-dot{ stroke:var(--bg); stroke-width:.16; cursor:pointer; }
.rc-dot.sel{ stroke:var(--ink); stroke-width:.24; }
.rc-sw{ display:inline-block; width:10px; height:10px; border-radius:50%; flex:none; }
.rc-dot.hot{ fill:#b8431d; } .rc-dot.cold{ fill:#1d5fb0; } .rc-dot.rain{ fill:#1a7a52; }
.rc-sw.hot{ background:#b8431d; } .rc-sw.cold{ background:#1d5fb0; } .rc-sw.rain{ background:#1a7a52; }
:root[data-theme="dark"] .rc-dot.hot{ fill:#f08a5d; } :root[data-theme="dark"] .rc-dot.cold{ fill:#6fa8f0; } :root[data-theme="dark"] .rc-dot.rain{ fill:#4cc08a; }
:root[data-theme="dark"] .rc-sw.hot{ background:#f08a5d; } :root[data-theme="dark"] .rc-sw.cold{ background:#6fa8f0; } :root[data-theme="dark"] .rc-sw.rain{ background:#4cc08a; }
.rc-card{ margin:6px 0 2px; padding:10px 12px; border:1px solid var(--line); border-radius:10px; }
.rc-meta{ margin:0 0 6px; font-size:12.5px; color:var(--ink-3, var(--ink-2)); }
.rc-card table{ width:100%; border-collapse:collapse; font-size:13.5px; font-variant-numeric:tabular-nums; }
.rc-card th{ text-align:left; font:600 11px var(--font-body, inherit); letter-spacing:.06em; text-transform:uppercase; color:var(--ink-3, var(--ink-2)); padding:4px 8px 4px 0; border-bottom:1px solid var(--line); }
.rc-card td{ padding:6px 8px 6px 0; border-bottom:1px solid var(--line); }
.rc-card td.rc-yr{ color:var(--ink-3, var(--ink-2)); }
.rc-link{ display:inline-flex; align-items:center; min-height:44px; font-size:13.5px; font-weight:600; }
/* the Records switch beside Highs / Lows / vs Normal (hazards-highs.js); by id, over .day-toggle button's column layout and sky fill */
/* Rain's switch (#hzRecSwitchRain, hazards-precip.js, Mike 2026-11-06) is the same button beside Rain | Snow */
#hzRecSwitch, #hzRecSwitchRain{ display:inline-flex; flex-direction:row; align-items:center; gap:6px; flex:none; margin:0 6px 0 2px; padding:6px 12px; min-height:36px; font-size:12.5px; border-radius:100px; border:1px solid var(--line-2, var(--line)); background:var(--bg); color:var(--ink-2); cursor:pointer; white-space:nowrap; line-height:normal; }
#hzRecSwitch[hidden], #hzRecSwitchRain[hidden]{ display:none !important; }
#hzRecSwitch.active, #hzRecSwitchRain.active{ background:var(--ink); color:var(--bg); border-color:var(--ink); }
.hz-precip .pr-brk{ display:none; }
#hzRecSwitch::before, #hzRecSwitchRain::before{ content:""; flex:none; width:8px; height:8px; transform:rotate(45deg); background:#c4162a; }
#hzRecRow button{ min-height:38px; display:inline-flex; flex-direction:row; align-items:center; justify-content:center; }
/* on a phone the measure switch and Records share their row, with the days below */
@media (max-width:900px){
  .hz-temp:has(#hzRecSwitch:not([hidden])){ flex-wrap:wrap; }
  .hz-temp:has(#hzRecSwitch:not([hidden])) .seg{ flex:0 1 auto; margin:0 4px 4px 0; }
  .hz-temp:has(#hzRecSwitch:not([hidden])) .seg button{ padding:6px 9px; }
  #hzRecSwitch, #hzRecSwitchRain{ margin:0 0 4px; padding:6px 10px; }
  /* Rain: Rain | Snow and Records on one line, the days on the next (a zero-height full-width break, as Temperature's day row) */
  .hz-precip:has(#hzRecSwitchRain:not([hidden])){ flex-wrap:wrap; justify-content:center; row-gap:0; }
  .hz-precip:has(#hzRecSwitchRain:not([hidden])) .seg{ flex:0 1 auto; margin:0 4px 4px 0; }
  .hz-precip:has(#hzRecSwitchRain:not([hidden])) .seg button{ padding:6px 9px; }
  .hz-precip .pr-brk{ display:block; flex:0 0 100%; height:2px; }   /* with row-gap 0, the one 2 px gap the row had without it: the row stays the held height */
  #hzRecRow button{ flex:1 1 0; flex-direction:row; justify-content:center; }
}
/* Temperature, phones: Highs · Lows · vs Normal · Freeze and Records still on one line (2026-11-17, Mike: fix it). Freeze (public
   11/17) made the switch too wide, Records dropped to a row of its own and the map moved 42 px on Temperature. Narrower sides,
   the taps' height unchanged. */
@media (max-width:640px){
  .hz-temp:has(#hzRecSwitch:not([hidden])) .seg button{ padding:6px 6px; }
  .hz-temp:has(#hzRecSwitch:not([hidden])) .seg{ margin:0 3px 4px 0; }
  #hzRecSwitch{ padding:6px 8px; }
}
@media (max-width:374px){
  .hz-temp:has(#hzRecSwitch:not([hidden])) .seg button{ padding:6px 4px; font-size:12px; }
  #hzRecSwitch{ padding:6px 6px; font-size:12px; gap:4px; }
}
@media (max-width:339px){
  .hz-temp:has(#hzRecSwitch:not([hidden])) .seg button{ padding:6px 3px; font-size:11px; letter-spacing:0; }
  #hzRecSwitch{ padding:6px 5px; font-size:11px; }
}
/* Seven section tabs on a phone (main's 3-column grid leaves Travel alone on a third row): four over three, even.
   Only while the Records tab is showing, so the public six keep main's grid until launch. Wrapping, not a fixed grid,
   so an out-of-season Tropics button (six tabs) still fills its rows. */
@media (max-width:430px){
  #hzSecRow:has(> [data-sec="records"]:not([hidden])){ display:flex; flex-wrap:wrap; }
  #hzSecRow:has(> [data-sec="records"]:not([hidden])) > button{ flex:1 1 calc(25% - 3px); width:auto; }
}

/* icons by level, one view at a time (Mike 2026-11-03) */
.rc-dot.rc-mk{ stroke:#fff; stroke-width:.16; stroke-linejoin:round; paint-order:stroke; }
.rc-dot.rc-mk.sel{ stroke:var(--ink); stroke-width:.26; }
.rc-ic{ flex:none; fill:var(--ink-2); }
.rc-ic.hot{ fill:#b8431d; } .rc-ic.cold{ fill:#1d5fb0; } .rc-ic.rain{ fill:#1a7a52; }
:root[data-theme="dark"] .rc-ic.hot{ fill:#f08a5d; } :root[data-theme="dark"] .rc-ic.cold{ fill:#6fa8f0; } :root[data-theme="dark"] .rc-ic.rain{ fill:#4cc08a; }
.rc-vn{ margin-left:5px; font-weight:500; opacity:.75; font-size:12px; }

.rc-share{ display:flex; justify-content:flex-end; margin:6px 0 0; }
.rc-share .sb-act{ min-height:44px; }

/* A region or state (Mike 2026-11-04): the map zooms, so its lines hold their width on screen */
.rc-z .rc-land{ stroke-width:1px; vector-effect:non-scaling-stroke; }
.rc-z .rc-dot{ stroke-width:1.5px; vector-effect:non-scaling-stroke; }
.rc-z .rc-dot.sel{ stroke-width:2.5px; }

/* Phones: the day buttons on one row, Last 3 days and This Month on the next, every label on one line (Mike 2026-11-04: "Last 3 days" ran to 3 rows).
   A day past midnight drops off, so two day buttons share the row in halves. */
@media (max-width:820px){
  #hzRecRow:not([hidden]){ display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:4px; }
  #hzRecRow button{ grid-column:span 3; min-width:0; white-space:nowrap; padding-left:4px; padding-right:4px; }
  #hzRecRow button[data-rview^="d"]{ grid-column:span 2; }
  #hzRecRow:not(:has([data-rview="d2"])) button[data-rview^="d"]{ grid-column:span 3; }
  #hzRecRow:not(:has([data-rview="d1"])) button[data-rview^="d"]{ grid-column:span 6; }
}
@media (max-width:350px){ #hzRecRow button{ font-size:13px; } #hzRecRow .rc-vn{ margin-left:3px; } }

/* The radar's US map underneath (Mike 2026-11-04): the picture carries the land, these lines only stay crisp when a region zooms in. */
.rc-map .rc-land{ fill:none; }
.rc-map{ position:relative; width:100%; aspect-ratio:100/68; border-radius:var(--r, 12px); overflow:hidden; background:var(--panel); }
/* The live map (Mike 2026-11-05): under the picture until it's ready, then the picture goes. The marks are real buttons on it. */
.rc-map .rc-live{ position:absolute; inset:0; }   /* beats the map stylesheet's position:relative, which would collapse the box */
.rc-map svg.rc-still{ position:absolute; inset:0; z-index:2; height:100%; }
.rc-mkw{ width:36px; height:36px; pointer-events:none; }
.rc-mksvg{ display:block; overflow:visible; pointer-events:none; background:none; border-radius:0; }
.rc-map svg.rc-mksvg{ width:36px; height:36px; background:none; border-radius:0; }
.rc-hit{ fill:transparent; pointer-events:all; cursor:pointer; }
.rc-mksvg .rc-dot{ pointer-events:all; }

/* Share and Clip never touch the map above them (Mike 2026-11-06): 10px clear at every width */
.rc-mapwrap > .rc-viewshare{ margin-top:10px; }

/* ── Records redo (Mike 2026-11-06, mock BQs6hJB4PwKizSn9CwSTjM) ──────────────────────────────────────────────────────────
   The map: the stage's own frame, edge to edge on a phone as the stage is, so switching tabs moves and resizes nothing. */
.rc-mapwrap{ display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:10px; align-items:center; }
.rc-mapwrap > *{ grid-column:1 / -1; min-width:0; }
/* the Valid line and Share (and Clip) under the map, Share at right, 10px clear of the map (Mike 2026-11-06) */
.rc-mapwrap > .map-stamp{ grid-column:1; grid-row:2; }
.rc-mapwrap > .rc-viewshare{ grid-column:2; grid-row:2; justify-self:end; margin:10px 0 0; display:flex; gap:8px; align-items:center; }
.rc-viewshare .sb-act{ min-height:40px; color:var(--ink-2); border:1px solid var(--line-2); }
@media (max-width:640px){ .rc-map{ margin-inline:-16px; width:auto; border-radius:0; } .rc-map svg{ border-radius:0; } }
/* one legend: the right-hand card on a desktop; on a phone its two key rows sit under the map's Valid line */
.rc-lg{ display:flex; flex-direction:column; gap:10px; }
.legend-card .rc-lg-g, #hzRecPane .rc-lg-g{ display:flex; flex-wrap:wrap; gap:6px 14px; margin:0; font-size:13px; color:var(--ink); }
.rc-lg-g span{ display:inline-flex; align-items:center; gap:6px; }
.rc-lg-g .rc-sw{ width:11px; height:11px; }
.legend-card p.rc-lg-src{ margin:4px 0 0; font-size:12px; line-height:1.5; color:var(--ink-3, var(--ink-2)); }
.rc-lgrow{ display:none; }
@media (max-width:880px){
  .rc-lgrow{ display:flex; flex-direction:column; gap:4px; margin:8px 0 0; }
  #hzRecPane .rc-lgrow .rc-lg-g{ font-size:13.5px; }
}
/* the summary sentence and its note */
.rc-list{ display:flex; flex-direction:column; gap:8px; min-width:0; margin-top:6px; }
#hzRecPane .rc-sum{ margin:0; font-size:16px; line-height:1.45; color:var(--ink); }
.rc-sum b{ font-weight:700; }
#hzRecPane .rc-note{ margin:0; font-size:13px; line-height:1.5; color:var(--ink-3, var(--ink-2)); max-width:70ch; }
#hzRecPane .rc-none{ margin:0; font-size:13.5px; color:var(--ink-2); }
#hzRecPane .rc-lvh{ margin:6px 0 0; font:700 12px var(--font-display, inherit); letter-spacing:.12em; text-transform:uppercase; color:var(--ink-3, var(--ink-2)); }
/* compact rows: one line a record (place, the number, the record and year, how far over) */
ul.rc-rl{ list-style:none; margin:0; padding:0; border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.rc-item{ min-width:0; border-top:1px solid var(--line); }
.rc-item:first-child{ border-top:0; }
.rc-row{ display:grid; grid-template-columns:18px minmax(0,1.6fr) minmax(0,1fr) minmax(0,1.2fr) 118px;   /* the place gets the room: 'Aberdeen Proving Ground, MD' wrapped (hourly check, 2026-11-09) */
   align-items:baseline; column-gap:10px; width:100%; min-height:40px;
  padding:9px 12px; margin:0; text-align:left; font:inherit; font-size:14px; line-height:1.35; color:var(--ink); background:transparent; border:0; border-radius:0; cursor:pointer; font-variant-numeric:tabular-nums; }
.rc-row.sel{ background:var(--panel); }
@media (hover:hover) and (pointer:fine){ .rc-row:hover{ background:var(--panel); } }
.rc-row:focus-visible, .rc-more:focus-visible{ outline:2px solid var(--sky-deep); outline-offset:-2px; }
.rc-rmk{ display:inline-flex; align-self:center; justify-content:center; }
.rc-rmk .rc-ic{ width:12px; height:12px; }
.rc-rmk .rc-sw{ width:11px; height:11px; }
.rc-pl{ min-width:0; }
.rc-pl b{ font-weight:700; }
.rc-pl small{ display:block; margin-top:1px; font-size:12px; color:var(--ink-3, var(--ink-2)); }
.rc-fc b{ font:700 16px var(--font-display, inherit); }
.rc-fc .rc-pc{ font-style:normal; font-size:12.5px; color:var(--sky-deep); margin-left:4px; }
.rc-rec{ color:var(--ink-2); }
.rc-rec i{ font-style:normal; color:var(--ink-3, var(--ink-2)); white-space:nowrap; }
.rc-mg{ text-align:right; font-weight:600; color:var(--ink-2); white-space:nowrap; }
.rc-mg b{ color:var(--ink); }
.rc-mg.tie{ color:var(--heat, #c2451e); }
:root[data-theme="dark"] .rc-mg.tie{ color:#f08a5d; }
.rc-item > .rc-share, .rc-item > .rc-card{ margin:0 12px 10px; }
.rc-item > .rc-share{ margin-top:2px; }
.rc-more{ align-self:flex-start; min-height:44px; padding:6px 14px; font:600 13.5px var(--font-display, inherit); color:var(--ink); background:transparent; border:1px solid var(--line-2, var(--line)); border-radius:999px; cursor:pointer; }
/* a phone: two short lines a record, place and number on top, record and margin under */
@media (max-width:640px){
  .rc-row{ grid-template-columns:14px minmax(0,1fr) auto; grid-template-areas:"m p f" "m r g"; row-gap:2px; padding:9px 10px; min-height:48px; }
  .rc-rmk{ grid-area:m; }
  .rc-pl{ grid-area:p; }
  .rc-fc{ grid-area:f; text-align:right; white-space:nowrap; }
  .rc-rec{ grid-area:r; font-size:12.5px; }
  .rc-mg{ grid-area:g; font-size:12.5px; }
  .rc-item > .rc-share, .rc-item > .rc-card{ margin:0 10px 10px; }
}
/* 44 px touch areas without growing the rows above the map (sweep 2026-11-18: chips 38 px, switch 36 px; the map must not move between tabs) */
#hzRecRow button, #hzRecSwitch, #hzRecSwitchRain{ position:relative; }
#hzRecRow button::before{ content:''; position:absolute; left:0; right:0; top:-3px; bottom:-3px; }
#hzRecSwitch::after, #hzRecSwitchRain::after{ content:''; position:absolute; left:0; right:0; top:-4px; bottom:-4px; }
