/* nerds-stats plugin — “stats for nerds” overlay */

.pa-nerds {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 30;
  max-width: min(420px, calc(100% - 20px));
  max-height: min(70vh, calc(100% - 20px));
  overflow: auto;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  color: #d7ffe0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0.01em;
  pointer-events: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  white-space: pre;
  tab-size: 2;
}

.pa-nerds[hidden] {
  display: none !important;
}

.pa-nerds .pa-nerds-title {
  color: #fff;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 10px;
  opacity: 0.85;
}

.pa-nerds .k {
  color: rgba(255, 255, 255, 0.45);
}

.pa-nerds .v {
  color: #d7ffe0;
}

.pa-nerds .sec {
  color: #ffb45a;
  margin-top: 8px;
  margin-bottom: 2px;
  font-weight: 700;
}

.pa-nerds .warn {
  color: #ff8b8b;
}

body.is-embed .pa-nerds {
  top: 52px; /* clear embed chrome title */
}

@media (max-width: 520px) {
  .pa-nerds {
    font-size: 10px;
    max-width: calc(100% - 16px);
    left: 8px;
    top: 8px;
    padding: 8px 10px;
  }
  body.is-embed .pa-nerds {
    top: 48px;
  }
}
