/* Live speed-test gauge widget styles */

.live-speed-gauge {
  position: relative;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
}

.live-speed-gauge__svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 48px rgba(245,131,0,0.10));
}

[data-gauge-needle] {
  transform-box: view-box;
  transform-origin: 160px 180px;
  transition: transform 600ms cubic-bezier(0.22, 0.85, 0.32, 1.05);
  will-change: transform;
}

.live-speed-gauge__status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.live-speed-gauge__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 6px #94a3b8;
  transition: background 250ms ease, box-shadow 250ms ease;
}

.live-speed-gauge__retry {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(245,131,0,0.35);
  color: #F58300;
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  font-family: inherit;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.live-speed-gauge__retry:hover {
  background: rgba(245,131,0,0.12);
  border-color: rgba(245,131,0,0.6);
}

.live-speed-gauge__retry[hidden] { display: none; }

/* Tagline under the speed-section description */
.sp-block__tagline {
  margin-top: 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #F58300;
  letter-spacing: 0.005em;
  line-height: 1.4;
}

[data-theme="light"] .sp-block__tagline { color: #d97200; }
[data-theme="light"] .live-speed-gauge__status {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
  color: #374151;
}

/* Drop legacy speed-section styles that are no longer used */
.sp-block__img--speed { background: transparent !important; }

@media (max-width: 720px) {
  .live-speed-gauge { padding: 0.5rem; max-width: 360px; }
  .sp-block__tagline { font-size: 0.95rem; }
}
