/* Fase 26 · Un único módulo EPQA: Profe | En línea | Aprendiendo | Han venido.
   Los valores proceden exclusivamente del backend actual; ningún contador ficticio.
   La variante desktop es luminosa en tema claro y azul pizarra en tema oscuro. */
body.stem-playground .site-header .epqa-community-metrics{
  --metrics-ink:#102d62;
  --metrics-muted:#4b5b86;
  --metrics-line:#c9dbf4;
  --metrics-bg:#f3f8ff;
  box-sizing:border-box;
  display:flex;align-items:center;justify-content:center;
  gap:0;min-width:0;max-width:max-content;flex:0 0 auto;
  padding:6px 8px;border-radius:999px;
  border:1px solid var(--metrics-line);
  background:var(--metrics-bg);
  box-shadow:0 2px 12px #0b38630d;
  color:var(--metrics-ink);
  font-family:Nunito,system-ui,sans-serif;
}
body.stem-playground .site-header .epqa-community-metrics__brand{
  display:inline-flex;align-items:center;gap:4px;
  color:#064a94;font-size:.73rem;font-weight:1000;
  padding:0 9px 0 2px;white-space:nowrap;
}
body.stem-playground .site-header .epqa-community-metrics__brand img{
  width:19px;height:19px;display:block;object-fit:contain;flex:none;
}
body.stem-playground .site-header .epqa-community-metrics__item{
  display:inline-flex;align-items:center;justify-content:center;gap:4px;
  min-width:0;padding:5px 9px;border-left:1px solid var(--metrics-line);
  white-space:nowrap;line-height:1.16;
}
body.stem-playground .site-header .epqa-community-metrics__value{
  color:var(--metrics-ink);font-size:.97rem;font-weight:1000;
  font-variant-numeric:tabular-nums;letter-spacing:-.015em;
}
body.stem-playground .site-header .epqa-community-metrics__label{
  color:var(--metrics-muted);font-size:.65rem;font-weight:900;
  line-height:1.2;text-transform:uppercase;letter-spacing:.025em;
}
body.stem-playground .site-header .epqa-community-metrics__item--online .epqa-community-metrics__value{
  color:#0677b7;
}
body.stem-playground .site-header .epqa-community-metrics__item--visited .epqa-community-metrics__value{
  color:#5e38bb;
}
/* Explicitly override light defaults (including when theme is expressed
   by absence of data-theme). Never keep the old dark blue capsule in light. */
html:not([data-theme="dark"]) body.stem-playground .site-header .epqa-community-metrics{
  --metrics-ink:#102d62;
  --metrics-muted:#4b5b86;
  --metrics-line:#c9dbf4;
  --metrics-bg:#f3f8ff;
  color:var(--metrics-ink);
  background:linear-gradient(120deg,#fff,#eaf5fe);
  border-color:var(--metrics-line);
}
html[data-theme="dark"] body.stem-playground .site-header .epqa-community-metrics{
  --metrics-ink:#f4f8ff;
  --metrics-muted:#d3e0f5;
  --metrics-line:#5878a5;
  --metrics-bg:#2b4063;
  color:var(--metrics-ink);
  background:linear-gradient(120deg,#263957,#344c6d);
  border-color:var(--metrics-line);
  box-shadow:none;
}
html[data-theme="dark"] body.stem-playground .site-header .epqa-community-metrics__brand{
  color:#9bdbff;
}
html[data-theme="dark"] body.stem-playground .site-header .epqa-community-metrics__item--online .epqa-community-metrics__value{
  color:#7fe6fa;
}
html[data-theme="dark"] body.stem-playground .site-header .epqa-community-metrics__item--visited .epqa-community-metrics__value{
  color:#d8b5ff;
}
body.stem-playground .site-header .epqa-community-metrics--menu{display:none}
/* SmartNav hides the desktop strip when quick actions need the space.
   The same counters remain accessible inside the expanded menu. */
body.stem-playground .site-header .epqa-nav-compact .epqa-community-metrics--desktop{
  display:none!important;
}
body.stem-playground .site-header .epqa-nav-fit .epqa-community-metrics--menu{
  display:none!important;
}
body.stem-playground .site-header .epqa-nav-compact #mainNav .epqa-community-metrics--menu{
  display:flex;max-width:100%;width:100%;justify-content:center;
  margin:9px 0 14px;padding:9px 6px;
  border-radius:14px;
  flex-wrap:wrap;row-gap:6px;
}
body.stem-playground .site-header .epqa-nav-compact #mainNav .epqa-community-metrics--menu .epqa-community-metrics__item{
  flex:1 1 auto;min-width:0;
}
@media(max-width:420px){
  body.stem-playground .site-header .epqa-nav-compact #mainNav .epqa-community-metrics--menu .epqa-community-metrics__brand{padding-right:5px}
  body.stem-playground .site-header .epqa-nav-compact #mainNav .epqa-community-metrics--menu .epqa-community-metrics__item{
    padding:5px 6px;flex:1 1 auto;gap:3px;
  }
  body.stem-playground .site-header .epqa-nav-compact #mainNav .epqa-community-metrics--menu .epqa-community-metrics__label{
    font-size:.60rem;
  }
}
@media(max-width:350px){
  body.stem-playground .site-header .epqa-nav-compact #mainNav .epqa-community-metrics--menu .epqa-community-metrics__brand{width:100%;justify-content:center}
  body.stem-playground .site-header .epqa-nav-compact #mainNav .epqa-community-metrics--menu .epqa-community-metrics__item:first-of-type{
    border-left:0;
  }
}
