/* The Roads and cameras page (src/roads/roads-twin.js). It wears the Water Quality page's components
   (styles/modules/wq-twin.css); this file holds only what that page did not need: road lines, camera pictures, notice rows.
   Tokens only. "No report" is grey and striped wherever it appears, so it cannot be read as a dry road. */

/* the Infrastructure page is a 72ch reading column; this page is a dashboard and needs the width */
.infra-page.infra-page--wide { max-width: 1180px; }
.infra-page--wide .infra-page__lede { max-width: 72ch; }

.rdx .rdx-official { margin-left: auto; }
.wqx .wqx-tile .rdx-of { display: inline; font-size: var(--guide-fs-sm); font-weight: 400; color: var(--guide-color-ink-muted); }
.rdx-na { font-size: var(--guide-fs-sm); font-weight: 400; color: var(--guide-color-ink-muted); }
.rdx .wqx-seg b { font-weight: 600; }
.rdx-seg-none, .rdx-key-none, .rdx-seg-unmapped, .rdx-key-unmapped { background-image: repeating-linear-gradient(90deg, transparent 0 4px, var(--guide-color-paper) 4px 6px); }
.rdx-seg-patchy, .rdx-seg-none { color: var(--guide-color-charcoal); }

/* map */
.rdx-road, .rdx-place, .rdx-event { cursor: pointer; }
.rdx-road:hover { stroke-width: 4; opacity: 1; }
.rdx-place:hover { stroke-width: 2.2; }
.rdx-event { fill: var(--guide-color-ochre); stroke: var(--guide-color-ink); stroke-width: 1; }
.rdx-event.is-closed { fill: var(--guide-color-brick); }
.wqx-legend i.rdx-key-dot, .wqx-legend i.rdx-key-river, .wqx-legend i.rdx-key-hollow { border-radius: 50%; border: 1px solid var(--guide-color-ink); background: var(--guide-color-paper); }
.wqx-legend i.rdx-key-river { background: var(--guide-color-lake); }
.wqx-legend i.rdx-key-hollow { border-color: var(--guide-color-neutral-400); }
.wqx-legend i.rdx-key-event { background: var(--guide-color-ochre); transform: rotate(45deg) scale(.8); border-radius: 0; border: 1px solid var(--guide-color-ink); }
.wqx-legend i.rdx-key-event.is-closed { background: var(--guide-color-brick); }

/* notice rows */
.rdx-rows { list-style: none; margin: 0; padding: 0; display: grid; }
.rdx-row { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--guide-color-border-subtle); }
.rdx-row > div { min-width: 0; }
.rdx-row b { font-size: var(--guide-fs-md); overflow-wrap: anywhere; }
.rdx-row p { margin: 3px 0; font-size: var(--guide-fs-sm); line-height: 1.45; color: var(--guide-color-ink-soft); overflow-wrap: anywhere; }
.rdx-row .wqx-pill { flex: none; }

/* cameras */
.rdx-camgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.rdx-cam { width: 100%; height: 100%; display: grid; gap: 4px; align-content: start; justify-items: start; text-align: left; padding: 8px; border-radius: 12px; border: 1px solid var(--guide-color-border-default); background: var(--guide-color-bg-1); color: inherit; font: inherit; cursor: pointer; }
.rdx-cam:hover, .rdx-cam:focus-visible { border-color: var(--guide-color-lake); background: var(--guide-color-paper); }
.rdx-cam b { font-size: var(--guide-fs-sm); line-height: 1.25; overflow-wrap: anywhere; }
.rdx-cam-img { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--guide-color-bg-2); }
.rdx-cam-img img, .rdx-pics img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rdx-noimg { display: grid; place-items: center; width: 100%; height: 100%; min-height: 90px; padding: 8px; text-align: center; font-size: var(--guide-fs-xs); color: var(--guide-color-ink-muted); }
.rdx-pics { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.rdx-pics li { display: grid; gap: 4px; }
.rdx-pics a { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--guide-color-bg-2); }
.rdx-pics b { font-size: var(--guide-fs-sm); }
.rdx-pics em { font-style: normal; }
.rdx-old { color: var(--guide-color-brick); font-weight: 700; }

/* one place */
.rdx-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.rdx-chip::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.rdx-readings { margin: 8px 0 0; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.rdx-readings .wqx-tile b { font-size: var(--guide-fs-xl); }
.rdx-dot-county { background: var(--guide-color-ink); } .rdx-dot-station, .rdx-dot-camera, .rdx-dot-plow { background: var(--guide-color-paper); border: 1px solid var(--guide-color-ink); }
.rdx-dot-river { background: var(--guide-color-lake); } .rdx-dot-segment { background: var(--guide-color-neutral-400); border-radius: 2px; }

@media (max-width: 560px) { .rdx .rdx-official { margin-left: 0; } .rdx-row { flex-direction: column; gap: 6px; } }
@media print { .wqx .rdx-official.wqx-btn, .rdx .rdx-camgrid .wqx-pill { display: none; } .rdx-row, .rdx-pics li { break-inside: avoid; } }
