/* sonde.css — /sonde/{id} (sonde.php, 27 Oct 2026, BACKLOG §2.60). Tokens on .sonde-page, dark under
   [data-theme="dark"] as the sampling-site page does (public/water-quality.css). Readings are never coloured good or bad:
   one teal for the data, grey for likely sensor faults. */
.sonde-page {
    --sp-card: #fff; --sp-border: #e3e8f0; --sp-text: #17233d; --sp-muted: #56627a; --sp-faint: #8390a8; --sp-link: #1d6fb8;
    --sp-accent: #0e7f86; --sp-band: rgba(14, 127, 134, .22); --sp-grid: #e8ecf2; --sp-note: #f4f7fb; --sp-chip: #eef2f7; --sp-fault: #8d949c;
    max-width: 980px; margin: 0 auto; padding: 18px 16px 64px; color: var(--sp-text);
}
[data-theme="dark"] body:has(.sonde-page) { background: #0b1220; color-scheme: dark; }
[data-theme="dark"] .sonde-page {
    --sp-card: #111a2c; --sp-border: #253250; --sp-text: #e4e9f3; --sp-muted: #a6b1c6; --sp-faint: #7d89a1; --sp-link: #7db8f0;
    --sp-accent: #3fbfc6; --sp-band: rgba(63, 191, 198, .25); --sp-grid: #1f2a42; --sp-note: #16213a; --sp-chip: #1a2540; --sp-fault: #8a93a3;
}
.sonde-page a { color: var(--sp-link); }
.sonde-page .sp-crumbs { font-size: .84rem; color: var(--sp-muted); display: flex; flex-wrap: wrap; gap: 4px 8px; }
.sonde-page .sp-crumbs a { color: var(--sp-muted); text-decoration: none; }
.sonde-page .sp-kicker { font-size: .7rem; font-weight: 700; letter-spacing: .1em; color: var(--sp-accent); margin: 14px 0 0; }
.sonde-page h1 { font-size: 1.7rem; line-height: 1.2; letter-spacing: -.02em; margin: 4px 0 6px; text-wrap: balance; }
.sonde-page .sp-lede { color: var(--sp-muted); font-size: .98rem; line-height: 1.55; margin: 0 0 12px; }
.sonde-page .sp-note { background: var(--sp-note); border-left: 3px solid var(--sp-accent); padding: 8px 12px; border-radius: 6px; font-size: .88rem; color: var(--sp-muted); line-height: 1.5; margin: 0 0 14px; }
.sonde-page .sp-card { background: var(--sp-card); border: 1px solid var(--sp-border); border-radius: 12px; padding: 16px 18px; margin: 0 0 16px; }
.sonde-page .sp-card h2 { font-size: 1.1rem; margin: 0 0 10px; }
.sonde-page .sp-h3 { font-size: .95rem; margin: 16px 0 4px; }
.sonde-page .sp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sonde-page .sp-chips button { display: grid; gap: 1px; text-align: left; border: 1px solid var(--sp-border); background: var(--sp-chip); color: var(--sp-text); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: .8rem; cursor: pointer; }
.sonde-page .sp-chips button[aria-pressed="true"] { border-color: var(--sp-accent); box-shadow: inset 0 0 0 1px var(--sp-accent); }
.sonde-page .sp-chips b { font-weight: 600; color: var(--sp-muted); font-size: .72rem; }
.sonde-page .sp-about p { font-size: .88rem; color: var(--sp-muted); line-height: 1.5; margin: 10px 0 0; }
.sonde-page .sp-chart { min-height: 60px; }
.sonde-page .sp-svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
.sonde-page .sp-svg .g { stroke: var(--sp-grid); stroke-width: 1; }
.sonde-page .sp-svg .axis { stroke: var(--sp-faint); stroke-width: 1; }
.sonde-page .sp-svg .ax { fill: var(--sp-faint); font-size: 11px; }
.sonde-page .sp-svg .band { fill: var(--sp-band); stroke: none; }
.sonde-page .sp-svg .band-1 { stroke: var(--sp-band); stroke-width: 2; }
.sonde-page .sp-svg .mean, .sonde-page .sp-svg .line { fill: none; stroke: var(--sp-accent); stroke-width: 1.3; stroke-linejoin: round; }
.sonde-page .sp-svg .fault { stroke: var(--sp-fault); stroke-width: 1; }
.sonde-page .sp-svg .ring { fill: none; stroke: var(--sp-fault); stroke-width: 1.2; }
.sonde-page .sp-svg .hover-line { stroke: var(--sp-muted); stroke-width: 1; stroke-dasharray: 3 3; }
.sonde-page .sp-read, .sonde-page .sp-empty { font-size: .86rem; color: var(--sp-muted); line-height: 1.5; margin: 6px 0 0; }
.sonde-page .sp-key { font-size: .78rem; color: var(--sp-faint); display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin: 6px 0 0; }
.sonde-page .sp-key i { display: inline-block; margin-right: 5px; vertical-align: middle; }
.sonde-page .k-band { width: 14px; height: 10px; background: var(--sp-band); }
.sonde-page .k-mean { width: 14px; height: 2px; background: var(--sp-accent); }
.sonde-page .k-fault { width: 1px; height: 10px; background: var(--sp-fault); }
.sonde-page .sp-links { font-size: .92rem; }
.sonde-page .sp-credit { font-size: .76rem; color: var(--sp-faint); }
