/* StormerSite Python shell styles. Shared sts.css still supplies tokens/cards/tables. */
:root {
  --header-bg: rgba(15,18,24,.92);
  --header-border: rgba(0,180,220,.12);
  --header-shadow: 0 6px 24px rgba(0,0,0,.25);
  --nav-text: #94a3b8;
  --nav-hover-text: #e2e8f0;
  --nav-hover-bg: rgba(0,212,255,.06);
  --cta-text: #00d4ff;
  --cta-bg: rgba(0,212,255,.08);
  --cta-border: rgba(0,212,255,.22);
}
.ss-header { position: sticky; top: 0; z-index: 9000; background: var(--header-bg); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); border-bottom: 1px solid var(--header-border); box-shadow: var(--header-shadow); }
.ss-header-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; min-height: 64px; display: flex; align-items: center; gap: 22px; }
.ss-logo { flex-shrink: 0; display: flex; align-items: center; text-decoration: none; }
.ss-logo img { height: 34px; width: auto; display: block; }
.ss-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.ss-nav-link { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--nav-text); text-decoration: none; padding: 7px 12px; border-radius: 6px; display: flex; align-items: center; gap: 6px; transition: all .2s ease; white-space: nowrap; }
.ss-nav-link:hover { color: var(--nav-hover-text); background: var(--nav-hover-bg); }
.ss-nav-cta { color: var(--cta-text); border: 1px solid var(--cta-border); background: var(--cta-bg); }
.ss-nav-icon { width: 15px; height: 15px; opacity: .75; }
.ss-search-wrap { width: 230px; flex: 0 0 230px; }
.ss-search-lite input { width: 100%; height: 36px; border-radius: 7px; border: 1px solid var(--border-subtle); background: var(--bg-card); color: var(--text-secondary); padding: 0 12px; font-family: var(--font-mono); font-size: 12px; outline: none; }
.ss-search-lite input:focus { border-color: var(--border-accent); box-shadow: 0 0 0 3px var(--cyan-dim); }
@media (max-width: 900px) { .ss-nav { display: none; } .ss-search-wrap { margin-left: auto; width: 180px; flex-basis: 180px; } }
@media (max-width: 560px) { .ss-header-inner { padding: 0 14px; gap: 10px; } .ss-logo img { height: 28px; } .ss-search-wrap { display: none; } }

.ss-page { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .ss-page { padding: 0 16px; } }

.sr-wrap { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius); overflow: hidden; margin-top: 24px; margin-bottom: 24px; }
.sr-breadcrumb { padding: 14px 20px 0; font-size: 11px; color: var(--text-faint); letter-spacing: .3px; }
.sr-breadcrumb a { color: var(--cyan); }
.sr-breadcrumb .sep { margin: 0 5px; opacity: .35; }
.sr-title-area { padding: 10px 20px 16px; }
.sr-title { font-family: var(--font-display); font-size: clamp(18px,3vw,28px); font-weight: 800; color: var(--text-primary); margin: 0; line-height: 1.25; }
.sr-size-badge-bar { border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); background: var(--cyan-dim); }
.sr-size-badge-link { display: flex; align-items: center; gap: 10px; padding: 12px 20px; text-decoration: none; color: var(--text-secondary); }
.sr-size-badge-icon { color: var(--cyan); display: flex; align-items: center; }
.sr-size-badge-text { font-size: 14px; font-weight: 700; color: var(--cyan); }
.sr-size-badge-hint { font-size: 11px; color: var(--text-faint); margin-left: auto; }
.sr-description { padding: 18px 20px; border-bottom: 1px solid var(--border-subtle); font-size: 13px; line-height: 1.75; color: var(--text-secondary); }
.sr-description p { margin: 0; }
.sr-description strong { color: var(--text-primary); font-weight: 600; }
.sr-body { display: grid; grid-template-columns: 1fr 320px; gap: 0; }
@media (max-width: 800px) { .sr-body { grid-template-columns: 1fr; } }
.sr-main { padding: 18px 20px 24px; min-width: 0; }
.sr-sidebar { border-left: 1px solid var(--border-subtle); display: flex; flex-direction: column; min-width: 0; }
@media (max-width: 800px) { .sr-sidebar { border-left: none; border-top: 1px solid var(--border-subtle); } }
.sr-details { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
@media (max-width: 680px) { .sr-details { grid-template-columns: repeat(2, 1fr); } }
.sr-card { background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: 6px; padding: 10px 12px; min-width: 0; }
.sr-card-label { font-size: 9px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-faint); margin-bottom: 3px; }
.sr-card-value { font-size: 14px; font-weight: 600; color: var(--text-primary); overflow-wrap: anywhere; }
.sr-card-value.accent { color: var(--cyan); font-size: 18px; }
.sr-remarks { background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-left: 3px solid var(--cyan); border-radius: 6px; padding: 12px 14px; margin-bottom: 16px; }
.sr-remarks-label { font-size: 9px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-faint); margin-bottom: 4px; }
.sr-remarks-text { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.sr-map-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 10px; }
.sr-map-label { font-size: 9px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-faint); }
.sr-map-container { border-radius: 6px; overflow: hidden; border: 1px solid var(--border-subtle); }
.storm-map-wrap { position: relative; height: 420px; background: var(--bg-surface); }
#report-map { height: 100%; width: 100%; }
.storm-map-wrap.fullscreen { position: fixed; inset: 0; z-index: 10000; height: 100vh; border-radius: 0; }
.storm-map-wrap.fullscreen #report-map { height: 100vh; }
.fs-close-btn { display: none; position: absolute; top: 12px; right: 12px; z-index: 1400; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border-accent); background: rgba(15,18,24,.86); color: var(--text-primary); font-size: 24px; cursor: pointer; }
.storm-map-wrap.fullscreen .fs-close-btn { display: block; }
.map-toolbar { position: absolute; top: 12px; left: 12px; z-index: 1200; display: flex; gap: 6px; }
.map-tool-btn { width: 34px; height: 34px; border-radius: 7px; border: 1px solid var(--border-accent); background: rgba(15,18,24,.86); color: var(--cyan); display: grid; place-items: center; cursor: pointer; }
.map-tool-btn svg { width: 16px; height: 16px; }
.map-touch-hint { position: absolute; z-index: 1200; bottom: 54px; left: 50%; transform: translateX(-50%); opacity: 0; pointer-events: none; background: rgba(15,18,24,.9); border: 1px solid var(--border-accent); border-radius: 6px; padding: 7px 10px; font-size: 11px; color: var(--text-secondary); transition: opacity .2s; }
.map-touch-hint.visible { opacity: 1; }
.map-legend-bar { position: absolute; bottom: 0; left: 0; right: 0; z-index: 1100; display: flex; gap: 16px; padding: 8px 12px; background: rgba(15,18,24,.86); border-top: 1px solid var(--border-subtle); font-size: 10px; color: var(--text-muted); }
.legend-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.gps-marker { width: 14px; height: 14px; border-radius: 50%; background: #38bdf8; border: 2px solid #fff; box-shadow: 0 0 0 6px rgba(56,189,248,.22); }
.sr-radar-btn { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; padding: 5px 10px; border-radius: 5px; cursor: pointer; background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.25); color: var(--emerald); transition: all .2s; }
.sr-radar-btn svg { width: 13px; height: 13px; fill: currentColor; }
#sr-nexrad-player { position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%); z-index: 1200; padding: 8px 14px; min-width: 260px; display: none; flex-direction: column; gap: 6px; align-items: center; background: rgba(15,18,24,.92); backdrop-filter: blur(16px); border: 1px solid var(--border-accent); border-radius: var(--radius); }
#sr-nexrad-player.active { display: flex; }
.sr-nxrd-top { display: flex; align-items: center; gap: 8px; width: 100%; }
.sr-nxrd-controls { display: flex; align-items: center; gap: 4px; }
.sr-nxrd-btn { font-family: var(--font-mono); background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.25); color: var(--emerald); width: 26px; height: 26px; border-radius: 5px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.sr-nxrd-time { font-size: 11px; font-weight: 500; color: var(--text-primary); min-width: 90px; text-align: center; }
.sr-nxrd-status { font-size: 10px; color: var(--emerald); min-width: 80px; text-align: center; }
.sr-nxrd-close { font-family: var(--font-mono); background: none; border: none; color: var(--text-faint); cursor: pointer; font-size: 15px; padding: 2px 4px; margin-left: auto; }
.sr-nxrd-slider-row { width: 100%; display: flex; align-items: center; gap: 6px; }
.sr-nxrd-slider { flex: 1; -webkit-appearance: none; appearance: none; height: 3px; border-radius: 2px; background: rgba(255,255,255,.1); outline: none; cursor: pointer; }
.sr-nxrd-dots { display: flex; gap: 3px; }
.sr-nxrd-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.15); }
.sr-nxrd-dot.active { background: var(--emerald); }
.sr-nxrd-dot.event-dot { background: rgba(239,68,68,.45); }
.sr-sidebar-section { padding: 14px 16px; border-bottom: 1px solid var(--border-subtle); }
.sr-sidebar-section:last-child { border-bottom: none; }
.sr-sidebar-heading { font-size: 9px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-faint); margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.sr-sidebar-badge { font-size: 11px; font-weight: 600; color: var(--cyan); }
.sr-stat-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 4px 0; }
.sr-stat-label { font-size: 11px; color: var(--text-faint); }
.sr-stat-value { font-size: 12px; font-weight: 600; color: var(--text-primary); text-align: right; }
.sr-other-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-subtle); text-decoration: none; color: var(--text-secondary); }
.sr-other-size-badge { flex-shrink: 0; width: 40px; height: 40px; border-radius: 5px; background: var(--cyan-dim); border: 1px solid var(--border-accent); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--cyan); }
.sr-other-info { flex: 1; min-width: 0; }
.sr-other-city { font-size: 12px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-other-meta { font-size: 10px; color: var(--text-faint); margin-top: 1px; }
.sr-cta-link { display: block; text-align: center; padding: 14px 16px; color: var(--cyan); text-decoration: none; font-size: 12px; font-weight: 600; background: var(--cyan-dim); }

.ss-footer { background: #0f1218; color: #94a3b8; font-family: var(--font-mono); font-size: 13px; line-height: 1.5; border-top: 1px solid rgba(0,180,220,.10); margin-top: 40px; }
.ss-footer-grid { max-width: 1200px; margin: 0 auto; padding: 40px 24px 32px; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 40px; }
@media (max-width: 780px) { .ss-footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.ss-footer-label { font-size: 9px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: #64748b; margin: 0 0 16px; }
.ss-footer-links { list-style: none; margin: 0; padding: 0; }
.ss-footer-links li { margin-bottom: 10px; }
.ss-footer-links a { color: #94a3b8; text-decoration: none; font-size: 12px; }
.ss-footer-links a:hover { color: #00b8db; }
.ss-footer-cta-box { background: #171c24; border: 1px solid rgba(0,180,220,.12); border-radius: 10px; padding: 24px; }
.ss-footer-cta-box h4 { color: #e2e8f0; margin: 0 0 8px; }
.ss-footer-cta-box p { color: #94a3b8; font-size: 12px; line-height: 1.7; margin: 0 0 16px; }
.ss-cta-button { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 10px 14px; border-radius: 6px; background: var(--cyan-dim); border: 1px solid var(--border-accent); color: var(--cyan); }
.ss-cta-stat { margin-top: 12px; color: #64748b; font-size: 11px; }
.ss-cta-stat-num { color: var(--cyan); font-weight: 800; }
.ss-footer-bottom { max-width: 1200px; margin: 0 auto; padding: 18px 24px; border-top: 1px solid rgba(255,255,255,.04); display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.ss-footer-brand { display: flex; align-items: center; gap: 10px; }
.ss-footer-brand img { height: 22px; width: auto; }
.ss-footer-copy { color: #64748b; font-size: 11px; }
@media (max-width: 560px) { .ss-footer-bottom { flex-direction: column; align-items: flex-start; } }
.error-shell { max-width: 850px; margin: 0 auto; padding: 50px 20px; }
.error-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: 32px; text-align: center; }
.error-code { font-family: var(--font-display); font-size: clamp(56px,12vw,110px); line-height: 1; font-weight: 800; color: var(--cyan); letter-spacing: -4px; margin-bottom: 12px; }
.error-title { font-family: var(--font-display); font-size: clamp(20px,5vw,34px); color: var(--text-primary); margin-bottom: 12px; }
.error-text { color: var(--text-secondary); font-size: 14px; line-height: 1.8; max-width: 620px; margin: 0 auto 24px; }
.error-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 16px; border-radius: 6px; background: var(--cyan-dim); border: 1px solid var(--border-accent); color: var(--cyan); font-weight: 700; font-size: 12px; }

.ss-popular-pages .ss-trend-pop {
  font-size: 10px;
  color: var(--text-faint, #64748b);
  margin-left: 6px;
  white-space: nowrap;
}

.ss-footer-label .ss-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}
