/* Stratosphere — tool-specific styles only (map pane, chart panes, time-series model rows,
   vortex stats, history chips + range). The shared chrome (card, tab band, pill row,
   dropdowns, playback bar, sidebar, legend, foot, modals) lives in
   /v3/teleconnections/hub.css, which loads after this file. */

/* model rows (Time Series) */
.strat-page .model-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; flex-wrap: wrap; }
.strat-page .model-row .side-switch { flex: 1 1 100%; padding: 0; }
.strat-page .model-row .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.strat-page .model-row .sw.dash { background: none !important; border-top: 3px dashed currentColor; height: 0; }
.strat-page .model-row .run-age { font-size: 11px; color: #64748b; font-weight: 500; margin-left: 4px; }
.strat-page .chip-row { display: flex; gap: 4px; padding: 2px 0 4px 20px; width: 100%; }
.strat-page .chip { height: 22px; padding: 0 9px; border-radius: 999px; border: 1px solid #e2e8f0; background: #fff; font: inherit; font-size: 11px; font-weight: 700; color: #64748b; cursor: pointer; }
.strat-page .chip.is-on { background: rgba(4,120,87,.1); border-color: rgba(4,120,87,.4); color: #047857; }
.strat-page .side-stats { font-size: 12.5px; color: #0f172a; line-height: 1.5; margin-bottom: 4px; }
.strat-page .side-stats .k { color: #64748b; }
.strat-page .side-stats .v { font-weight: 700; font-variant-numeric: tabular-nums; }
.strat-page .side-stats .lowline { display: flex; justify-content: space-between; gap: 8px; font-variant-numeric: tabular-nums; }
.strat-page .side-stats .badge { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #f1f5f9; color: #334155; margin-top: 4px; }
.strat-page .side-stats .badge.split { background: #fde7d2; color: #9a3412; }
.strat-page .side-stats .badge.disp { background: #e9e2fb; color: #5b21b6; }

/* highlight chips + dual range (History) */
.strat-page .hist-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.strat-page .hist-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; }
.strat-page .hist-chip button { border: none; background: rgba(255,255,255,.3); color: #fff; width: 16px; height: 16px; border-radius: 50%; cursor: pointer; font-size: 11px; line-height: 1; padding: 0; }
.strat-page .hist-fcst-models { padding-left: 10px; }
.strat-page .hist-fcst-models .side-switch { padding: 3px 0; font-size: 12px; }
.strat-page .dual-range { position: relative; height: 28px; margin: 8px 4px 0; }
.strat-page .dual-track { position: absolute; left: 0; right: 0; top: 12px; height: 6px; border-radius: 3px; background: rgba(0,0,0,.1); }
.strat-page .dual-fill { position: absolute; top: 12px; height: 6px; border-radius: 3px; background: rgba(4,120,87,.55); }
.strat-page .dual-range input[type=range] { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 28px; margin: 0; -webkit-appearance: none; appearance: none; background: transparent; pointer-events: none; }
.strat-page .dual-range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid rgba(4,120,87,.75); box-shadow: 0 1px 4px rgba(0,0,0,.2); cursor: grab; }
.strat-page .dual-range input[type=range]::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid rgba(4,120,87,.75); cursor: grab; }
.strat-page .range-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }

/* ── Map pane ── */
.strat-page .viewer-main { min-width: 0; }
.strat-page .map-pane { position: relative; width: 100%; height: clamp(420px, calc(100vh - 256px), 860px); border-radius: 12px; overflow: hidden; border: 1px solid #e2e8f0; background: #f8fafc; }
.strat-page #map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.strat-page #wind-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.strat-page .map-status { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); background: rgba(255,255,255,.92); border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 16px; font-size: 13px; font-weight: 600; color: #334155; z-index: 8; pointer-events: none; }
.strat-page .map-progress { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.92); border: 1px solid #e2e8f0; border-radius: 999px; padding: 4px 10px 4px 6px; font-size: 11px; font-weight: 700; color: #64748b; z-index: 8; font-variant-numeric: tabular-nums; }
.strat-page .spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #d8d5cc; border-top-color: #047857; animation: strat-spin .9s linear infinite; display: inline-block; }
@keyframes strat-spin { to { transform: rotate(360deg); } }
.strat-page .readout { position: absolute; left: 0; top: 0; background: rgba(15,22,38,.92); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 5px 9px; backdrop-filter: blur(8px); font-size: 12px; line-height: 1.3; z-index: 6; pointer-events: none; white-space: nowrap; color: #e6edf6; box-shadow: 0 4px 14px rgba(0,0,0,.35); transform: translate(14px,14px); }
.strat-page .readout .r-loc { color: #9bb1cb; font-variant-numeric: tabular-nums; }
.strat-page .readout .r-val { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.strat-page .readout .r-sub { color: #cbd5e1; font-variant-numeric: tabular-nums; }
.strat-page .info-box { position: absolute; left: 12px; top: 12px; z-index: 6; background: rgba(255,255,255,.93); border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 11px; font-size: 12px; line-height: 1.4; color: #0f172a; box-shadow: 0 2px 8px rgba(15,23,42,.08); pointer-events: none; max-width: 260px; }
.strat-page .info-box .ib-title { font-weight: 800; font-size: 12.5px; }
.strat-page .info-box .ib-row { display: flex; justify-content: space-between; gap: 14px; font-variant-numeric: tabular-nums; }
.strat-page .info-box .ib-row .k { color: #64748b; }
.strat-page .info-box .ib-row .v { font-weight: 700; }
.strat-page .info-box .ib-vortex { margin-top: 4px; padding-top: 4px; border-top: 1px solid #e2e8f0; color: #334155; }

/* ── Chart panes ── */
.strat-page .chart-pane { position: relative; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; padding: 10px 12px 6px; min-height: 420px; }
.strat-page .chart-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 2px 4px 6px; }
.strat-page .chart-title { font-size: 15px; font-weight: 800; letter-spacing: -.005em; color: #0f172a; }
.strat-page .chart-sub { font-size: 12px; color: #64748b; font-weight: 500; }
.strat-page .plot { width: 100%; height: clamp(380px, calc(100vh - 330px), 760px); }
.strat-page .gap-plot { height: 380px; }
.strat-page .chart-foot { font-size: 11px; color: #64748b; padding: 4px 4px 2px; line-height: 1.4; }
.strat-page .chart-foot .warn { color: #b45309; font-weight: 600; }

/* ── Mobile ── */
@media (max-width: 900px) {
  .strat-page .info-box { max-width: 200px; padding: 6px 9px; font-size: 11px; }
  .strat-page .map-pane { height: clamp(360px, 70vh, 640px); }
  .strat-page .plot { height: clamp(320px, 60vh, 560px); }
  }

/* fixed-width selectors: the playback bar beside them stays put whatever the label says */
.strat-page #model-drop .model-dropdown__toggle { min-width: 108px; }
.strat-page #run-drop .model-dropdown__toggle { min-width: 140px; }
.strat-page #param-drop .model-dropdown__toggle { min-width: 162px; }
.strat-page #model-drop .model-dropdown__toggle, .strat-page #run-drop .model-dropdown__toggle, .strat-page #param-drop .model-dropdown__toggle { justify-content: space-between; }

/* space outside the hemisphere disc (same star field as the /v3/wx globe) */
.strat-page .strat-map-pane { background-color: #04060c; border-color: #0f172a; background-image:
    radial-gradient(circle at 37px 51px,   rgba(255,255,255,.95) 0 1.1px, transparent 2.2px),
    radial-gradient(circle at 189px 133px, rgba(220,230,255,.9)  0 1.1px, transparent 2.2px),
    radial-gradient(circle at 141px 39px,  rgba(255,255,255,.7)  0 0.9px, transparent 1.8px),
    radial-gradient(circle at 57px 117px,  rgba(255,244,225,.65) 0 0.9px, transparent 1.8px),
    radial-gradient(circle at 23px 84px,   rgba(255,255,255,.6)  0 0.9px, transparent 1.8px),
    radial-gradient(circle at 89px 21px,   rgba(255,255,255,.4)  0 0.7px, transparent 1.5px),
    radial-gradient(circle at 47px 63px,   rgba(255,255,255,.32) 0 0.7px, transparent 1.5px),
    radial-gradient(circle at 11px 34px,   rgba(255,255,255,.25) 0 0.7px, transparent 1.5px);
  background-size: 293px 293px, 271px 271px, 211px 211px, 191px 191px, 173px 173px, 139px 139px, 127px 127px, 101px 101px; }

/* map pill: vortex state + major-SSW meter */
.strat-page .info-box { padding: 7px 10px 8px; min-width: 176px; max-width: 220px; }
.strat-page .info-box .ib-state { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #475569; font-variant-numeric: tabular-nums; }
.strat-page .info-box .badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; background: #f1f5f9; color: #334155; }
.strat-page .info-box .badge.split { background: #fde7d2; color: #9a3412; }
.strat-page .info-box .badge.disp { background: #e9e2fb; color: #5b21b6; }
.strat-page .info-box .ib-ssw { margin-top: 6px; }
.strat-page .info-box .ib-ssw-row { display: flex; align-items: baseline; gap: 6px; font-size: 11.5px; color: #64748b; font-variant-numeric: tabular-nums; }
.strat-page .info-box .ib-ssw-row b { color: #0f172a; font-size: 12.5px; }
.strat-page .info-box .ib-ssw-tag { margin-left: auto; font-size: 10.5px; font-weight: 700; color: #94a3b8; }
.strat-page .info-box .is-ssw .ib-ssw-tag { color: #fff; background: #b91c1c; padding: 0 6px; border-radius: 999px; }
.strat-page .info-box .ib-meter { position: relative; height: 6px; margin-top: 5px; border-radius: 3px; background: linear-gradient(90deg, #fecaca 0%, #fecaca 25%, #e2e8f0 25%, #e2e8f0 100%); }
.strat-page .info-box .ib-zero { position: absolute; top: -3px; bottom: -3px; width: 1.5px; background: #b91c1c; transform: translateX(-50%); }
.strat-page .info-box .ib-dot { position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: #0f172a; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(15,23,42,.25); transform: translate(-50%, -50%); }
.strat-page .info-box { background: #fff; }
