/* The demo gallery's banner (docs/SPEC.md § 4.21, guest_demo.html.tmpl).
   Loaded on /demo only. Fixed at the top of the window, above the tab bar
   and the code screen, below every dialog: a lightbox or a sheet covers it,
   as it covers the page. Its height is followed by boot.js
   (--demo-banner-h), which the rules below make room for. */
.demo-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  padding-top: max(8px, env(safe-area-inset-top));
  background: var(--ink, #2f3a2f);
  color: var(--bg, #f7f3ea);
  font-size: 13px;
  line-height: 1.35;
}
.demo-banner-text { margin: 0; }
.demo-banner-cta {
  flex: none;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--bg, #f7f3ea);
  color: var(--ink, #2f3a2f);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.demo-banner-cta:focus-visible { outline: 2px solid var(--accent, #7a8f74); outline-offset: 2px; }

body { padding-top: var(--demo-banner-h, 52px); }
html { scroll-padding-top: var(--demo-banner-h, 52px); }
.tabbar-row { top: var(--demo-banner-h, 52px); }
/* The code screen is a fixed box over the whole window (guest.css): it
   starts under the banner instead, which stays readable above it. */
.lock-screen { top: var(--demo-banner-h, 52px); }

.demo-code {
  margin: 4px 0 14px;
  font-size: 15px;
  color: var(--ink-soft, #55604f);
}
.demo-code strong { letter-spacing: .12em; color: var(--ink, #2f3a2f); }
