/* public/demo/surface-nav.css — cross-surface demo chrome for the two STATIC
   demos (facility.html, orders.html).

   This is a hand-mirrored copy of components/SurfaceNav.tsx. Those files are
   standalone HTML and cannot import from lib/ or components/, so the markup and
   class names are kept deliberately identical between the two implementations —
   if you change one, change the other. See DESIGN.md §15.

   Uses only tokens both static demos already define: --bg, --card, --text,
   --muted, --brand, --border. It therefore follows each file's own light/dark
   toggle for free. */

/* FIXED, not sticky. orders.html centres its phone mockups with
   `body { display:flex; align-items:center }`, so a flow-positioned nav becomes
   a vertically-centred flex item instead of a banner. Fixed takes it out of
   flow entirely, which behaves identically on both static layouts;
   surface-nav.js then compensates the body's top padding. */
.vl-surface-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 400;
  background: var(--bg);
  border-bottom: 0.5px solid var(--border);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── band 1: surface switcher ── */
.vl-sn-bar {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: stretch;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.vl-sn-bar::-webkit-scrollbar { display: none; }

.vl-sn-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 11px 16px;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  color: var(--muted);
}
.vl-sn-item:hover { color: var(--text); }
.vl-sn-item.is-active {
  color: var(--text);
  border-bottom-color: var(--brand);
}

.vl-sn-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.vl-sn-item.is-active .vl-sn-num { color: var(--brand); }

.vl-sn-role {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.vl-sn-dev { font-size: 11.5px; color: var(--muted); }

/* ── band 2: sample-data strip ──
   A separate tinted band, not a corner badge, so a cropped screenshot still
   carries the disclaimer. */
.vl-sn-strip {
  background: var(--card);
  border-top: 0.5px solid var(--border);
}
.vl-sn-strip-in {
  max-width: 1480px;
  margin: 0 auto;
  padding: 5px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.vl-sn-demo {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.vl-sn-note { font-size: 10.5px; color: var(--muted); }
.vl-sn-order {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--muted);
  margin-left: auto;
}
.vl-sn-order strong { color: var(--brand); font-weight: 600; }

/* facility.html frames itself in a fixed 100vh window (.win). Adding the nav
   above it would push the bottom of that frame past the fold, so shrink it by
   the nav's measured height (--vl-nav-h is set by surface-nav.js). The sibling
   selector only matches when the nav is actually present. */
.vl-surface-nav ~ .win { height: calc(100vh - var(--vl-nav-h, 62px)); }

@media (max-width: 720px) {
  .vl-sn-bar, .vl-sn-strip-in { padding-left: 14px; padding-right: 14px; }
  .vl-sn-note { display: none; }
  .vl-sn-order { margin-left: 0; }
}
