/* sea-temp.css — /sea-temp (2026-10-28). Scoped .st-*; Tailwind is prebuilt so nothing here relies on new utility classes. */
body:has(.st) { overflow-x: clip; }
.st { --st-ink:#f5f5f4; --st-muted:#b4aea9; --st-dim:#8a847e; --st-line:rgba(255,255,255,.1); --st-sea:#38bdf8;
      --st-warm:#fdba74; --st-cold:#7dd3fc; --st-glass:rgba(12,10,9,.74); --st-card:#15110f; color:var(--st-ink); }

/* ── skeletons ─────────────────────────────────────────────── */
.st-sk { display:block; border-radius:8px; background:linear-gradient(100deg,rgba(255,255,255,.07) 30%,rgba(255,255,255,.16) 50%,rgba(255,255,255,.07) 70%);
         background-size:220% 100%; animation:st-shim 1.5s linear infinite; }
.st-sk--l1 { height:20px; width:72%; margin-bottom:8px; }
.st-sk--l2 { height:14px; width:48%; }
.st-sk--pill { display:inline-block; height:24px; width:92px; border-radius:999px; }
.st-sk--big { height:42px; width:55%; margin:10px 0 12px; }
.st-sk--spark { height:40px; width:100%; margin-bottom:12px; }
@keyframes st-shim { from { background-position:120% 0; } to { background-position:-120% 0; } }

/* ── hero ──────────────────────────────────────────────────── */
.st-hero { position:relative; margin:-24px calc(50% - 50vw) 0; height:clamp(580px, 78svh, 800px); background:#0a1018; overflow:hidden; }
.st-map { position:absolute; inset:0; }
.st-top { position:absolute; z-index:3; left:0; right:0; top:0; padding:16px 16px 44px; pointer-events:none;
          background:linear-gradient(180deg, rgba(8,10,14,.9) 0%, rgba(8,10,14,.62) 55%, rgba(8,10,14,0) 100%); }
.st-top > * { max-width:56rem; margin-left:auto; margin-right:auto; }
.st-eyebrow { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-bottom:8px;
              font:600 11px/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.17em; text-transform:uppercase; color:var(--st-sea); }
.st-datepill { display:inline-flex; align-items:center; gap:7px; min-height:26px; padding:0 11px; border-radius:999px; letter-spacing:.04em;
               text-transform:none; font:650 12.5px/1 system-ui,sans-serif; color:var(--st-ink); background:rgba(255,255,255,.1);
               border:1px solid rgba(255,255,255,.16); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); }
.st-datepill i { font-style:normal; font-weight:600; color:#86efac; font-size:11.5px; }
.st-datepill i::before { content:""; display:inline-block; width:6px; height:6px; border-radius:50%; background:currentColor; margin-right:5px; vertical-align:1px; }
.st-datepill .st-sk { margin:0; }
.st-h1 { font-size:clamp(20px, 5.5vw, 40px); font-weight:800; line-height:1.1; letter-spacing:-.012em; margin-top:0; margin-bottom:0; min-height:2.2em;
         text-shadow:0 2px 18px rgba(0,0,0,.55); }
.st-h1 em { font-style:normal; }
.st-h1 em.warm { color:var(--st-warm); } .st-h1 em.cold { color:var(--st-cold); }
.st-h1 .st-sk { background-color:transparent; }
.st-sub { margin:7px auto 0; font-size:13px; line-height:1.4; color:#d6d3d1; min-height:18px; text-shadow:0 1px 8px rgba(0,0,0,.6); }
.st-sub b { color:#fff; font-weight:700; }

.st-msg { position:absolute; z-index:6; left:50%; top:46%; transform:translate(-50%,-50%); display:flex; align-items:center; gap:10px;
          max-width:calc(100% - 32px); padding:10px 16px; border-radius:14px; font-size:13.5px; line-height:1.4; text-align:center;
          background:var(--st-glass); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); border:1px solid var(--st-line);
          box-shadow:0 8px 28px rgba(0,0,0,.45); }
.st-msg[hidden] { display:none; }
.st-msg--error { flex-wrap:wrap; justify-content:center; border-color:rgba(248,113,113,.5); }
.st-spin { flex:0 0 auto; width:16px; height:16px; border-radius:50%; border:2px solid rgba(255,255,255,.2); border-top-color:var(--st-sea); animation:st-rot .8s linear infinite; }
@keyframes st-rot { to { transform:rotate(360deg); } }
.st-retry { min-height:40px; padding:0 16px; border-radius:999px; border:1px solid var(--st-sea); background:rgba(56,189,248,.14); color:var(--st-sea);
            font:650 13px/1 system-ui,sans-serif; cursor:pointer; }
.st-retry:hover { background:rgba(56,189,248,.26); }

/* ── dock: legend + controls ───────────────────────────────── */
.st-dock { position:absolute; z-index:4; left:10px; right:10px; bottom:26px; max-width:46rem; margin:0 auto; padding:12px 14px 10px; border-radius:20px;
           background:var(--st-glass); -webkit-backdrop-filter:blur(14px) saturate(1.3); backdrop-filter:blur(14px) saturate(1.3);
           border:1px solid rgba(255,255,255,.12); box-shadow:0 10px 36px rgba(0,0,0,.5); }
.st-legend-bar { position:relative; height:10px; border-radius:6px; box-shadow:inset 0 0 0 1px rgba(255,255,255,.18); background:#334; }
.st-legend-pin { position:absolute; top:50%; width:16px; height:16px; margin:-8px 0 0 -8px; border-radius:50%; background:#fff;
                 border:3px solid #0c0a09; box-shadow:0 0 0 1.5px #fff, 0 2px 8px rgba(0,0,0,.5); pointer-events:none; }
.st-legend-pin[hidden] { display:none; }
.st-legend-ticks { position:relative; height:17px; margin:3px 0 8px; font:600 11px/17px system-ui,sans-serif; color:var(--st-muted); font-variant-numeric:tabular-nums; }
.st-legend-ticks span { position:absolute; top:0; transform:translateX(-50%); white-space:nowrap; }
.st-legend-ticks span:first-child { transform:none; }
.st-legend-ticks span:nth-last-child(2) { transform:translateX(-100%); }
.st-legend-ticks em { display:none; }

.st-row { display:flex; align-items:center; gap:8px; }
.st-row + .st-row { margin-top:8px; }
.st-seg { flex:1; display:flex; padding:3px; border-radius:999px; background:rgba(255,255,255,.08); border:1px solid var(--st-line); }
.st-seg-b { flex:1; min-height:42px; border:0; border-radius:999px; background:transparent; color:var(--st-muted); font:650 14px/1 system-ui,sans-serif;
            cursor:pointer; transition:background .2s,color .2s; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.st-seg-b[aria-pressed="true"] { background:var(--st-sea); color:#04121d; }
.st-unit { flex:0 0 auto; display:flex; padding:3px; min-height:50px; border-radius:999px; background:rgba(255,255,255,.08); border:1px solid var(--st-line);
           color:var(--st-muted); font:700 13.5px/1 system-ui,sans-serif; cursor:pointer; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.st-unit span { display:flex; align-items:center; justify-content:center; width:42px; border-radius:999px; transition:background .2s,color .2s; }
.st-unit[data-unit="F"] span[data-u="F"], .st-unit[data-unit="C"] span[data-u="C"] { background:#fff; color:#0c0a09; }

.st-play, .st-step { flex:0 0 auto; display:flex; align-items:center; justify-content:center; border-radius:50%; cursor:pointer; touch-action:manipulation;
                     -webkit-tap-highlight-color:transparent; transition:background .2s,opacity .2s; }
.st-play { width:46px; height:46px; border:0; background:#fff; color:#0c0a09; }
.st-play:disabled, .st-step:disabled { opacity:.32; cursor:default; }
.st-play .st-ic-pause { display:none; } .st-play.on .st-ic-play { display:none; } .st-play.on .st-ic-pause { display:block; }
.st-play svg { fill:currentColor; }
.st-play.on { background:var(--st-sea); }
.st-step { width:44px; height:44px; border:1px solid var(--st-line); background:rgba(255,255,255,.08); color:var(--st-ink); }
.st-scrub { flex:1; min-width:0; }
.st-scrub-d { display:none; text-align:center; font:650 12.5px/1.2 system-ui,sans-serif; color:var(--st-ink); margin-top:-2px; font-variant-numeric:tabular-nums; }
.st-scrub input { display:block; width:100%; height:30px; margin:0; background:transparent; -webkit-appearance:none; appearance:none; touch-action:pan-y; cursor:pointer; }
.st-scrub input:disabled { opacity:.35; cursor:default; }
.st-scrub input::-webkit-slider-runnable-track { height:6px; border-radius:3px; background:rgba(255,255,255,.2); }
.st-scrub input::-moz-range-track { height:6px; border-radius:3px; background:rgba(255,255,255,.2); }
.st-scrub input::-webkit-slider-thumb { -webkit-appearance:none; width:24px; height:24px; margin-top:-9px; border-radius:50%; background:#fff; border:3px solid var(--st-sea); box-shadow:0 2px 8px rgba(0,0,0,.5); }
.st-scrub input::-moz-range-thumb { width:18px; height:18px; border-radius:50%; background:#fff; border:3px solid var(--st-sea); box-shadow:0 2px 8px rgba(0,0,0,.5); }
.st-seg-b:focus-visible, .st-unit:focus-visible, .st-play:focus-visible, .st-step:focus-visible, .st-scrub input:focus-visible,
.st-card:focus-visible, .st-tile:focus-visible, .st-pin:focus-visible { outline:2px solid var(--st-sea); outline-offset:2px; }

/* ── map pins + readout popup ──────────────────────────────── */
.st-pin { width:34px; height:34px; padding:0; border:0; background:transparent; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.st-pin-d { position:absolute; left:10px; top:10px; width:14px; height:14px; border-radius:50%; background:#fff; border:2.5px solid #fff;
            box-shadow:0 0 0 1.5px rgba(8,10,14,.8), 0 2px 8px rgba(0,0,0,.55); }
.st-pin-l { display:none; position:absolute; left:28px; top:7px; padding:2px 6px; border-radius:6px; font:700 11.5px/1.3 system-ui,sans-serif; color:#fff;
            background:rgba(8,10,14,.82); white-space:nowrap; pointer-events:none; font-variant-numeric:tabular-nums; }
.st-zlabel .st-pin-l:not(:empty) { display:block; }
.st-pop { z-index:5; }
.st-pop .maplibregl-popup-content { padding:12px 16px 12px; border-radius:16px; background:rgba(12,10,9,.92); color:var(--st-ink); border:1px solid rgba(255,255,255,.16);
            box-shadow:0 10px 30px rgba(0,0,0,.55); min-width:150px; text-align:left; -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); }
.st-pop.maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color:rgba(12,10,9,.92); }
.st-pop.maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color:rgba(12,10,9,.92); }
.st-pop.maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color:rgba(12,10,9,.92); }
.st-pop.maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color:rgba(12,10,9,.92); }
.st-pop .maplibregl-popup-close-button { width:30px; height:30px; font-size:20px; color:var(--st-muted); right:0; top:0; border-radius:0 16px 0 8px; }
.st-pop-t { font:700 12px/1.2 system-ui,sans-serif; letter-spacing:.02em; color:var(--st-muted); padding-right:22px; margin-bottom:2px; }
.st-pop-big { font:800 34px/1.05 system-ui,sans-serif; letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.st-pop-big small { font-size:16px; font-weight:700; margin-left:2px; color:var(--st-muted); letter-spacing:0; }
.st-pop-big.warm { color:var(--st-warm); } .st-pop-big.cold { color:var(--st-cold); }
.st-pop-sub { font:600 13.5px/1.35 system-ui,sans-serif; color:var(--st-muted); margin-top:2px; }
.st-pop-chip { display:inline-block; margin-top:8px; padding:3px 10px; border-radius:999px; font:700 12px/1.4 system-ui,sans-serif; background:rgba(255,255,255,.1); color:var(--st-ink); }
.st-pop-chip.warm { background:rgba(251,146,60,.2); color:#fdba74; } .st-pop-chip.cold { background:rgba(56,189,248,.2); color:#7dd3fc; }
.st-pop-wet { margin-top:8px; font:500 12px/1.4 system-ui,sans-serif; color:var(--st-muted); max-width:220px; }
.st-pop-wet:empty { display:none; }

/* ── sections ──────────────────────────────────────────────── */
.st-wrap { max-width:56rem; margin:0 auto; padding-top:8px; }
.st-sec { margin-top:34px; }
.st-sec-head { margin:0 0 14px; }
.st-sec-head h2 { margin:0; font-size:21px; font-weight:800; letter-spacing:-.01em; line-height:1.2; }
.st-sec-head p { margin:5px 0 0; font-size:13.5px; line-height:1.5; color:var(--st-muted); max-width:38rem; }
.st-empty { padding:16px; border:1px dashed var(--st-line); border-radius:14px; font-size:13.5px; line-height:1.5; color:var(--st-muted); }
.st-empty .st-retry { margin-left:6px; min-height:40px; }

/* spot cards: swipe rail on phones, grid on desktop */
.st-rail { display:flex; gap:12px; overflow-x:auto; scroll-snap-type:x proximity; scroll-padding-inline:16px; margin:0 -16px; padding:4px 16px 14px; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.st-rail::-webkit-scrollbar { display:none; }
.st-card { position:relative; flex:0 0 76%; max-width:290px; scroll-snap-align:start; text-align:left; font:inherit; color:var(--st-ink); cursor:pointer;
           padding:15px 15px 14px; border-radius:20px; border:1px solid var(--st-line); box-shadow:inset 0 3px 0 var(--c, #38bdf8);
           background:#15110f; background:linear-gradient(165deg, color-mix(in srgb, var(--c, #38bdf8) 20%, #15110f) 0%, #15110f 62%);
           transition:transform .2s, border-color .2s; -webkit-tap-highlight-color:transparent; }
.st-card:hover { transform:translateY(-2px); border-color:rgba(255,255,255,.22); }
.st-card.on { border-color:var(--st-sea); box-shadow:inset 0 3px 0 var(--c, #38bdf8), 0 0 0 1.5px var(--st-sea); }
.st-card--sk { cursor:default; background:#15110f; box-shadow:none; }
.st-card--sk:hover { transform:none; }
.st-card-h { display:flex; justify-content:space-between; gap:8px; }
.st-name { font-size:16px; font-weight:750; line-height:1.25; }
.st-chips { display:flex; flex-wrap:wrap; gap:5px; margin:6px 0 0; min-height:22px; }
.st-chip { font-size:11px; font-weight:650; line-height:1; padding:4px 8px; border-radius:999px; background:rgba(255,255,255,.09); color:#e7e5e4; }
.st-card-t { display:flex; align-items:baseline; flex-wrap:wrap; gap:2px 3px; margin:8px 0 2px; }
.st-big { font-size:42px; font-weight:800; line-height:1; letter-spacing:-.03em; font-variant-numeric:tabular-nums; }
.st-deg { font-size:17px; font-weight:700; color:var(--st-muted); }
.st-anom { margin-left:8px; font-size:12px; font-weight:700; padding:3px 8px; border-radius:999px; background:rgba(255,255,255,.1); align-self:center; }
.st-anom.warm { color:#fdba74; background:rgba(251,146,60,.18); } .st-anom.cold { color:#7dd3fc; background:rgba(56,189,248,.18); }
.st-trend { display:flex; align-items:center; gap:5px; font-size:12.5px; font-weight:650; color:var(--st-muted); }
.st-trend.warm { color:#fdba74; } .st-trend.cold { color:#7dd3fc; }
.st-spark { display:block; width:100%; height:40px; margin:10px 0 10px; overflow:visible; }
.st-spark--none { height:auto; font-size:12px; color:var(--st-dim); }
.st-wet { font-size:12.5px; line-height:1.4; color:#e7e5e4; padding-top:10px; border-top:1px solid var(--st-line); }
.st-wet span { display:block; font:700 10px/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.14em; text-transform:uppercase; color:var(--st-dim); margin-bottom:4px; }

.st-live { display:grid; grid-template-columns:repeat(auto-fit, minmax(210px, 1fr)); gap:12px; }
.st-buoy { padding:14px 16px; border-radius:18px; border:1px solid var(--st-line); background:var(--st-card); }
.st-buoy-n { font-size:13.5px; font-weight:650; color:var(--st-muted); }
.st-buoy-t { display:flex; align-items:baseline; gap:3px; margin:6px 0 6px; }
.st-buoy-o { margin-left:10px; font-size:14px; font-weight:650; color:var(--st-muted); }
.st-buoy-a { display:flex; align-items:center; gap:7px; font-size:12px; color:var(--st-dim); }
.st-buoy-a i { width:7px; height:7px; border-radius:50%; background:#4ade80; box-shadow:0 0 0 3px rgba(74,222,128,.2); }

.st-why-grid { display:grid; gap:14px 34px; }
.st-why-grid p { margin:0; font-size:14.5px; line-height:1.65; color:var(--st-muted); }
.st-why-grid p:first-child { font-size:16.5px; line-height:1.6; color:var(--st-ink); }
.st-why-grid b { color:var(--st-ink); }

.st-tiles { display:grid; grid-template-columns:repeat(auto-fit, minmax(210px, 1fr)); gap:10px; }
.st-tile { display:block; padding:14px 16px; border-radius:16px; border:1px solid var(--st-line); background:var(--st-card); text-decoration:none; color:var(--st-ink); min-height:44px; transition:border-color .2s, transform .2s; }
.st-tile:hover { border-color:var(--st-sea); transform:translateY(-2px); }
.st-tile b { display:block; font-size:15px; margin-bottom:3px; }
.st-tile b::after { content:" \2192"; color:var(--st-sea); }
.st-tile span { font-size:12.5px; line-height:1.4; color:var(--st-muted); }

.st-credit { margin:30px 0 0; font-size:11.5px; line-height:1.6; color:var(--st-dim); }
.st-credit a { color:var(--st-sea); text-decoration:none; }
.st-credit a:hover { text-decoration:underline; text-underline-offset:3px; }

/* ── wide screens ──────────────────────────────────────────── */
@media (min-width: 760px) {
  .st-scrub-d { display:block; }
  .st-hero { height:clamp(600px, 78vh, 780px); }
  .st-top { padding:22px 28px 56px; }
  .st-h1 { font-size:clamp(30px, 3.6vw, 44px); min-height:2.2em; }
  .st-dock { bottom:34px; left:auto; right:max(28px, calc(50% - 50vw + 28px)); width:410px; max-width:none; margin:0; padding:14px 18px 12px; }
  .st-msg { left:30%; }
  .st-rail { display:grid; grid-template-columns:repeat(auto-fill, minmax(250px, 1fr)); overflow:visible; margin:0; padding:4px 0 0; }
  .st-card { flex:none; max-width:none; }
  .st-why-grid { grid-template-columns:1fr 1fr; }
  .st-why-grid p:first-child { grid-column:1 / -1; max-width:44rem; }
}
@media (max-width: 380px) { .st-big { font-size:38px; } .st-seg-b { font-size:13px; } }
@media (prefers-reduced-motion: reduce) {
  .st-sk, .st-spin { animation:none; }
  .st-card, .st-tile, .st-seg-b, .st-unit span { transition:none; }
  .st-card:hover, .st-tile:hover { transform:none; }
}
