/* sensors.css — /sensors "Where our ocean data comes from" shell (2026-11-02). Tokens come from ocean.css (.oc). */
.sn { max-width: 1100px; margin: 0 auto; padding: 0 16px 48px; }
.sn-sec { margin: 16px 0 0; min-width: 0; }
.sn-h2 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--oc-muted); margin: 0 0 8px; }
.sn-load { color: var(--oc-muted); font-size: 13px; margin: 0; }
.sn-health { display: flex; flex-wrap: wrap; gap: 8px; }
.sn-gone { font-size: 12px; line-height: 1.5; color: var(--oc-muted); margin: 8px 0 0; }
.sn-map { position: relative; height: 300px; border: 1px solid var(--oc-line); border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.02); }
.sn-map > .sn-load { padding: 12px; }
.sn-filters { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 2px; }
.sn-card { border: 1px solid var(--oc-line); border-radius: 14px; padding: 14px; background: rgba(255,255,255,.02); min-width: 0; }
.sn-list { display: grid; gap: 8px; min-width: 0; }
.sn-satellite { border: 1px solid var(--oc-line); border-radius: 14px; padding: 12px; background: rgba(255,255,255,.02); min-width: 0; }
.sn-legend { font-size: 13px; line-height: 1.5; color: var(--oc-muted); margin: 20px 0 0; }
.sn-models { border: 1px dashed var(--oc-line); border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.55; display: grid; gap: 8px; }
.sn-models p, .sn-note { margin: 0; }
.sn-note { font-size: 12.5px; line-height: 1.5; color: var(--oc-muted); }
.sn-links { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.sn-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--oc-sea); }
@media (min-width: 760px) {
  .sn-map { height: 460px; }
}

/* Task 9: health strip, filters, list (2026-11-03) */
.sn, .sn * { min-width: 0; }
.sn-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.sn-dot { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 50%; }
.sn-total { align-self: center; font-size: 12.5px; color: var(--oc-muted); }
.sn-kind { min-height: 44px; flex: none; white-space: nowrap; }
.sn-group { display: grid; gap: 6px; max-width: 100%; }
.sn-group + .sn-group { margin-top: 10px; }
.sn-h3 { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--oc-muted); }
.sn-row { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; grid-template-areas: "dot main val" "dot age spark";
  gap: 2px 10px; align-items: center; min-height: 44px; padding: 8px 12px; max-width: 100%; box-sizing: border-box;
  border: 1px solid var(--oc-line); border-radius: 12px; background: rgba(255,255,255,.02); color: var(--oc-ink); text-decoration: none; }
.sn-row[aria-current="true"] { border-color: var(--oc-sea); background: rgba(56,189,248,.08); }
.sn-row .sn-dot { grid-area: dot; }
.sn-row-main { grid-area: main; display: grid; overflow-wrap: anywhere; }
.sn-name { font-weight: 600; font-size: 14px; }
.sn-op { font-size: 12px; color: var(--oc-muted); }
.sn-row-val { grid-area: val; display: grid; text-align: right; justify-items: end; }
.sn-val { font-weight: 700; font-size: 15px; }
.sn-var { font-size: 11.5px; color: var(--oc-muted); }
.sn-age { grid-area: age; font-size: 12px; color: var(--oc-muted); }
.sn-spark { grid-area: spark; display: block; width: 96px; max-width: 100%; min-height: 28px; justify-self: end; font-size: 11px; color: var(--oc-muted); }
.sn-spark svg { display: block; max-width: 100%; height: auto; }
.sn-pin:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }
.sn-stale { flex-basis: 100%; margin: 0; font-size: 12.5px; color: #eab308; }

/* Task 10: sensor card — bottom sheet below 760 px, right panel from 760 px (2026-11-03) */
.sn-sheet { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; max-height: 82vh; max-height: 82dvh; overflow-y: auto; box-sizing: border-box;
  padding: 0 16px 24px; background: #0c0a09; color: var(--oc-ink, #e7e5e4); border-top: 1px solid var(--oc-line, rgba(255,255,255,.09));
  border-radius: 16px 16px 0 0; box-shadow: 0 -8px 32px rgba(0,0,0,.5); overscroll-behavior: contain; }
.sn-sheet[hidden] { display: none; }
.sn-sheet:focus { outline: none; }
.sn-sheet-top { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 -16px 8px; padding: 8px 8px 8px 16px; background: #0c0a09; border-bottom: 1px solid var(--oc-line, rgba(255,255,255,.09)); }
.sn-sheet-title { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--oc-muted, #a8a29e); }
.sn-close { flex: none; min-height: 44px; min-width: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--oc-line, rgba(255,255,255,.09)); background: rgba(255,255,255,.04); color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.sn-close:hover { background: rgba(255,255,255,.1); }
.sn-close:focus-visible, .sn-range-btn:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }
@media (min-width: 760px) { /* wide screens: still a bottom sheet, content spread across the width */
  .sn-sheet { max-height: 60vh; max-height: 60dvh; padding: 0 24px 24px; }
  .sn-sheet-top { margin: 0 -24px 12px; padding: 8px 16px 8px 24px; }
  .sn-sheet-body { max-width: 1100px; margin: 0 auto; }
  .sn-card-in { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px 24px; align-items: start; }
  .sn-card-in > [data-section="header"], .sn-card-in > [data-section="history"] { grid-column: 1 / -1; }
  .sn-card-in > [data-section="now"] { grid-column: span 2; }
  .sn-card-in > [data-section="history"] { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px 24px; }
  .sn-card-in > [data-section="history"] > :not(.sn-hplot) { grid-column: 1 / -1; }
}
@media (min-width: 760px) and (max-width: 979px) {
  .sn-card-in > [data-section="now"] { grid-column: 1 / -1; }
}
.sn-sheet, .sn-sheet * { min-width: 0; }
.sn-card-in { display: grid; gap: 14px; max-width: 100%; }
.sn-card-h { margin: 0; font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }
.sn-card-id { margin: 2px 0 6px; font-size: 12.5px; color: var(--oc-muted, #a8a29e); overflow-wrap: anywhere; }
.sn-card-head p { margin: 0 0 4px; }
.sn-card-head .oc-pill { min-height: 28px; font-size: 12px; }
.sn-card-head .oc-pill--ok { color: #22c55e; border-color: #22c55e; }
.sn-card-head .oc-pill--warn { color: #eab308; border-color: #eab308; }
.sn-card-head .oc-pill--off { color: #a8a29e; }
.sn-sec2 { display: grid; gap: 6px; }
.sn-sec2 p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.sn-h4 { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--oc-muted, #a8a29e); }
.sn-none { color: var(--oc-muted, #a8a29e); }
.sn-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.sn-tile { display: grid; justify-items: center; align-content: start; gap: 2px; padding: 8px; border: 1px solid var(--oc-line, rgba(255,255,255,.09)); border-radius: 12px; }
.sn-tile .sn-big { font-size: 22px; font-weight: 700; }
.sn-tile .sn-var { font-size: 12px; color: var(--oc-muted, #a8a29e); text-align: center; }
.sn-range { display: flex; gap: 8px; }
.sn-range-btn { min-height: 44px; min-width: 56px; }
.sn-hplot { display: grid; gap: 2px; }
.sn-hplot svg, .sn-spec svg, .sn-sec2 svg { display: block; max-width: 100%; height: auto; }
.sn-hvar { font-size: 12.5px; font-weight: 600; }
.sn-keys { font-size: 12px; color: var(--oc-muted, #a8a29e); }
.sn-key { display: inline-block; width: 18px; height: 0; margin: 0 6px 3px 8px; border-top: 2.5px solid #38bdf8; vertical-align: middle; }
.sn-key:first-child { margin-left: 0; }
.sn-key--pred { border-top: 2px dashed #e7e5e4; opacity: .7; }
.sn-links2 { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.sn-links2 a { display: inline-flex; align-items: center; min-height: 44px; color: var(--oc-sea, #38bdf8); }
.sn-card-in .sw-src a { display: inline-block; padding: 12px 0; }

/* Task 11: satellite block (2026-11-03) */
.sn-satellite { display: grid; gap: 10px; }
.sn-sat-intro, .sn-sat-age, .sn-sat-kd { margin: 0; font-size: 13px; line-height: 1.5; }
.sn-sat-intro { color: var(--oc-muted); }
.sn-sat-row, .sn-sat-seg, .sn-sat-days { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sn-sat-ctl { display: grid; gap: 10px; }
.sn-sat-ctl[hidden], .sn-sat-kd[hidden] { display: none; }
.sn-sat-btn { min-height: 44px; min-width: 44px; }
.sn-sat-btn:disabled { opacity: .45; }
.sn-sat-daylabel { flex: 1; text-align: center; font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.sn-sat-days { flex-wrap: nowrap; }
.sn-sat-scale { padding: 0 16px; }
.sn-sat-bar { height: 10px; border-radius: 5px; }
.sn-sat-ticks { position: relative; height: 18px; font-size: 11.5px; color: var(--oc-muted); margin-top: 3px; }
.sn-sat-ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.sn-sat-src { color: var(--oc-sea); }

/* 2026-11-03 fix: legend under the map (George: "no legend ... no way to see what you are clicking") */
.sn-glyph { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 22px; margin-right: 2px;
  border-radius: 50%; box-sizing: border-box; border: 2px solid #a8a29e; background: #0c0a09; color: #f5f5f4;
  font: 700 9.5px/1 system-ui, sans-serif; }
.sn-kind { display: inline-flex; align-items: center; gap: 6px; }
.sn-mapkey { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 2px 0; font-size: 12.5px; color: var(--oc-muted); }
.sn-mapkey-h { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 11.5px; }
.sn-mapkey-item { display: inline-flex; align-items: center; gap: 6px; color: var(--oc-ink); }
.sn-mapkey-ring { display: inline-block; width: 14px; height: 14px; border-radius: 50%; box-sizing: border-box; border: 3px solid; background: #0c0a09; }
.sn-mapkey-tip { flex-basis: 100%; }
@media (min-width: 760px) {
  .sn-filters { flex-wrap: wrap; overflow-x: visible; }
}

/* 2026-11-03: numbers on the charts (George: "we need numbers with these graphs") */
.sn-chart { position: relative; padding: 16px 0; }
.sn-chart svg { display: block; width: 100%; }
.sn-cv { position: absolute; transform: translateX(-50%); font-size: 12px; font-weight: 700; line-height: 14px; white-space: nowrap;
  color: var(--oc-ink, #e7e5e4); font-variant-numeric: tabular-nums; pointer-events: none; }
.sn-cv--hi { top: 0; }
.sn-cv--lo { bottom: 0; }
.sn-axis { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--oc-muted, #a8a29e); font-variant-numeric: tabular-nums; }
.sn-axis b { color: #38bdf8; }
.sn-hilo { margin: 2px 0 0; font-size: 12px; color: var(--oc-muted, #a8a29e); }
.sn-spark-rng { display: block; margin-top: 2px; font-size: 11px; color: var(--oc-muted); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sn-spark { width: auto; min-width: 96px; }

/* What each number tells you (card) and How to read the ocean (#read), 2026-11-03 */
.sn-explain { margin: 0; display: grid; gap: 6px; font-size: 14px; line-height: 1.5; }
.sn-explain dt { font-weight: 700; margin: 0; }
.sn-explain dd { margin: 0 0 4px; overflow-wrap: anywhere; }
.sn-read { scroll-margin-top: 72px; }
.sn-read-intro { margin: 0 0 10px; font-size: 15px; line-height: 1.55; }
.sn-read-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.sn-read-item { border: 1px solid var(--oc-line); border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.55; min-width: 0; }
.sn-read-item h3 { margin: 0 0 4px; font-size: 16px; font-weight: 800; }
.sn-read-item p { margin: 0; }
.sn-read-signs { margin-top: 6px !important; color: var(--oc-muted); }
.sn-lag { margin: 6px 0 0; font-size: 13.5px; color: var(--oc-muted); }
.sn-vsnormal { margin: 6px 0 0; font-size: 14.5px; font-weight: 600; }
