/* Lochaber Weather - River levels (wxrivers.php), Nov 2026 */
.rv-intro { color: var(--muted); max-width: 85ch; line-height: 1.55; }
.rv-layout { display: grid; grid-template-columns: 1fr 220px; gap: 12px; align-items: start; margin-bottom: 14px; }
.rv-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; padding: 10px; }
#rv-map { height: 340px; border-radius: 12px; background: #1b1f27; }
#rv-map img { max-width: none !important; max-height: none !important; }
.rv-key { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; font-size: .82rem; color: var(--muted); }
.rv-key p { margin: 6px 0 0; }
.rv-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.rv-pill.low { background: rgba(217,164,65,.18); color: #d9a441; border-color: rgba(217,164,65,.45); }
.rv-pill.normal { background: rgba(63,163,107,.18); color: #3fa36b; border-color: rgba(63,163,107,.45); }
.rv-pill.high { background: rgba(47,128,237,.18); color: #5aa0ff; border-color: rgba(47,128,237,.5); }
.rv-pill.vhigh { background: rgba(224,82,82,.18); color: #e05252; border-color: rgba(224,82,82,.5); }
[data-theme="light"] .rv-pill.low { color: #8a6210; } [data-theme="light"] .rv-pill.normal { color: #1e7a4b; }
[data-theme="light"] .rv-pill.high { color: #1b5fbf; } [data-theme="light"] .rv-pill.vhigh { color: #b42323; }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.rv-stn { background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; min-width: 0; }
.rv-stn header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.rv-stn h2 { margin: 0; font-size: 1.1rem; }
.rv-stn header p { margin: 2px 0 0; font-size: .8rem; color: var(--muted); }
.rv-now { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 10px 0 6px; }
.rv-now strong { font-size: 1.8rem; font-variant-numeric: tabular-nums; }
.rv-trend { font-size: .85rem; font-weight: 700; }
.rv-trend.rising { color: #5aa0ff; } .rv-trend.falling { color: #3fa36b; } .rv-trend.steady { color: var(--muted); }
.rv-when { font-size: .78rem; color: var(--muted); }
.rv-spark { display: block; width: 100%; height: 90px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); }
.rv-spark .rv-area { fill: rgba(47,128,237,.18); }
.rv-spark .rv-line { fill: none; stroke: #5aa0ff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.rv-spark .rv-norm { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.rv-spark .rv-day { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.rv-sparkwrap { position: relative; cursor: crosshair; touch-action: pan-y; }
.rv-hline { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--muted); pointer-events: none; }
.rv-hdot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #5aa0ff; border: 2px solid #fff; pointer-events: none; }
.rv-htip { position: absolute; top: -30px; white-space: nowrap; padding: 3px 8px; border-radius: 8px; font-size: .78rem; font-weight: 600;
  background: var(--text); color: var(--surface); pointer-events: none; box-shadow: 0 2px 8px rgba(0,0,0,.25); z-index: 2; }
.rv-hline[hidden], .rv-hdot[hidden], .rv-htip[hidden] { display: none; }
.rv-axis { display: flex; justify-content: space-between; font-size: .7rem; color: var(--muted); margin: 2px 2px 0; }
.rv-vals { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--border); }
.rv-vals dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.rv-vals dd { margin: 1px 0 0; font-size: .9rem; font-variant-numeric: tabular-nums; }
.rv-credit, .rv-empty { font-size: .8rem; color: var(--muted); margin-top: 14px; max-width: 100ch; }
@media (max-width: 760px) { .rv-layout { grid-template-columns: 1fr; } .rv-key { flex-direction: row; flex-wrap: wrap; } .rv-key p { flex-basis: 100%; } }
@media (max-width: 600px) { #rv-map { height: 280px; } .rv-grid { grid-template-columns: minmax(0, 1fr); } .rv-stn { padding: 12px; } }
