.bar-mode-demo {
  --demo-navigation-height: 50px;
}

.bar-demo-navigation {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1190;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--demo-navigation-height);
  padding: 0 64px 0 16px;
  border-bottom: 1px solid var(--site-action-border);
  background: var(--page-background);
  color: var(--ink);
  font-size: 13px;
}

.bar-demo-home {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.bar-demo-home:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bar-demo-home:focus-visible {
  outline: 2px solid var(--bar-focus-outline);
  outline-offset: 3px;
  border-radius: 4px;
}

.bar-demo-label {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.bar-mode-demo .theme-switcher {
  top: 7px;
  right: 14px;
}

.bar-mode-demo .site-window {
  top: max(calc(var(--demo-navigation-height) + 12px), min(var(--window-top), calc(100svh - var(--bar-height) - var(--window-height) - 12px)));
}
