:root {
  --demo-banner-height: 2.25rem;
}

body {
  padding-top: var(--demo-banner-height);
}

#runbook-demo-banner {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  min-height: 2.25rem;
  padding: 0.25rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 0.75rem;
  border-bottom: 1px solid var(--rb-color-border, #b8c3d4);
  background: var(--rb-color-surface, #f1f5f9);
  color: var(--rb-color-text, #242b3d);
  font:
    500 0.8125rem/1.2 system-ui,
    sans-serif;
  text-align: center;
}

#runbook-demo-banner a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

[data-slot='app-shell'] {
  min-height: calc(100dvh - var(--demo-banner-height));
}

[data-slot='app-shell'] .sticky.top-0 {
  top: var(--demo-banner-height);
}

[data-slot='app-shell'] .sticky.h-dvh {
  height: calc(100dvh - var(--demo-banner-height));
}

@media print {
  body {
    padding-top: 0;
  }
  #runbook-demo-banner {
    display: none;
  }
}
