/*
 * demo-bar.css: the demo's bar (src/demo-bar.js), a frosted pill: at the top of the presentation's map, at the bottom
 * of the site report and the study (their own bar is at the top). Never printed.
 */
.demo-bar {
  position: fixed;
  z-index: 40;
  left: 50%;
  top: max(var(--space-3), env(safe-area-inset-top, 0px));
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  max-width: calc(100vw - 2 * var(--space-3));
  padding: 0.35rem 0.4rem 0.35rem 0.75rem;
  border: 1px solid var(--glass-rim);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--sheet) 90%, transparent); /* more solid than glass: it must read over any photo */
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  box-shadow: var(--glass-shadow);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
}
.demo-bar[hidden] { display: none; }
.demo-bar a { color: inherit; text-decoration: none; }
.demo-bar__home { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; }
.demo-bar__label { color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; }
.demo-bar__offer {
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--label-accent-bg);
  color: var(--label-accent-text) !important;
  font-weight: 650;
}
@media (prefers-reduced-motion: no-preference) {
  .demo-bar:not([hidden]) { animation: demo-bar-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both; }
}
@keyframes demo-bar-in { from { opacity: 0; transform: translate(-50%, -12px); } }
/* The site report and the study: at the bottom, clear of their own bar. */
.report-page .demo-bar { top: auto; bottom: max(var(--space-4), env(safe-area-inset-bottom, 0px)); }
@keyframes demo-bar-up { from { opacity: 0; transform: translate(-50%, 12px); } }
@media (prefers-reduced-motion: no-preference) { .report-page .demo-bar:not([hidden]) { animation-name: demo-bar-up; } }
/* A phone: just the label and the button (the presentation has the logo in its sheet). */
@media (max-width: 30rem) { .demo-bar__home { display: none; } }
@media print { .demo-bar { display: none !important; } }
