/* Barra superior de la demo: misma que la del hero de la landing. */
#demo-bar { border-bottom: 1px solid var(--rule); }
#demo-bar .demo-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding-block: var(--s-3); }
#demo-bar .demo-brand { display: block; line-height: 0; }
#demo-bar .demo-brand img { height: 30px; width: auto; }
#demo-bar .demo-org { display: flex; align-items: center; gap: var(--s-4); }
#demo-bar .demo-org img { height: 28px; width: auto; max-width: none; flex: none; }
#demo-bar .hero-clock { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 760px) { #demo-bar .hero-clock { display: none; } #demo-bar .demo-brand img { height: 24px; } }

/* Ayuda: "What's real?" (js/guide.js) y "How it works" (js/tutorial.js). Texto mono, sin caja. */
#demo-bar .demo-help { display: flex; align-items: center; gap: var(--s-5); margin-left: auto; }
#demo-bar .demo-help button { min-height: 44px; padding: 0; background: none; border: 0; cursor: pointer; font-size: var(--fs-small); color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 0.3em; transition: color var(--t-fast) var(--ease-out), text-decoration-color var(--t-fast) var(--ease-out); }
#demo-bar .demo-help button:hover { color: var(--ink); text-decoration-color: var(--ink); }
/* Móvil: la ayuda pasa a una segunda fila (la altura del explorador ya es automática por debajo de 860 px). */
@media (max-width: 600px) {
  #demo-bar .demo-bar-inner { flex-wrap: wrap; row-gap: 0; }
  #demo-bar .demo-help { order: 3; width: 100%; margin: 0; }
  #demo-bar .demo-help button { min-height: 36px; }
}

/* La primera sección de la demo no lleva hairline arriba: ya la pone la barra. */
.demo main > .section:first-child { border-top: 0; }

/* Vista de detalle: solo el candidato. */
.demo[data-view="candidate"] #results,
.demo[data-view="candidate"] #feed { display: none; }
