/* Live presence pulse on homepage — live now + last 30 days */
.live-presence {
  position: relative;
  margin: 0.35rem auto 1.1rem;
  max-width: 920px;
  padding: 0 1.1rem;
}

.live-presence-inner {
  display: flex;
  align-items: center;
  gap: 0.85rem 1.1rem;
  flex-wrap: wrap;
  padding: 0.75rem 1.05rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.live-presence-dot {
  flex: 0 0 auto;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: livePulse 1.8s ease-out infinite;
}

.live-presence-stats {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  flex: 0 0 auto;
}

.live-presence-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 0.85rem;
  min-width: 5.5rem;
}

.live-presence-stat + .live-presence-stat {
  border-left: 1px solid rgba(148, 163, 184, 0.28);
}

.live-presence-stat strong {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: #6ee7b7;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.live-presence-stat.is-period strong {
  color: #93c5fd;
}

.live-presence-stat span {
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.12rem;
}

.live-presence-copy {
  flex: 1 1 12rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  justify-content: center;
}

.live-presence-tag {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #93c5fd;
  line-height: 1.25;
}

.live-presence-when {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.01em;
}

.live-presence-when:empty,
.live-presence-when[hidden] {
  display: none;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .live-presence-dot { animation: none; }
}

@media (max-width: 640px) {
  .live-presence-inner {
    border-radius: 18px;
    align-items: flex-start;
  }
  .live-presence-stats {
    width: 100%;
  }
  .live-presence-stat {
    flex: 1 1 0;
    padding: 0 0.65rem 0 0;
  }
  .live-presence-stat + .live-presence-stat {
    padding-left: 0.75rem;
  }
  .live-presence-copy {
    flex-basis: 100%;
  }
}
