/* Demo-only chrome. The viewer's own stylesheet is loaded first and untouched. */

.demo-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: #fff4e0;
  border-bottom: 1px solid #f0d9ae;
  color: #5a4320;
  font-size: 13px;
  line-height: 1.5;
}
.demo-banner strong {
  background: #d7263d;
  color: #fff;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.demo-banner span { flex: 1; min-width: 260px; }
.demo-banner code {
  background: #f6e6c8;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12px;
}
.demo-banner b { color: #7a1220; }
.demo-banner button,
.demo-banner a {
  font: inherit;
  padding: 5px 12px;
  border-radius: 7px;
  border: 1px solid #d8b981;
  background: #fff;
  color: #7a5a20;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.demo-banner button:hover,
.demo-banner a:hover { background: #fdf0da; }
.demo-banner #demoClose {
  border: 0;
  background: none;
  font-size: 18px;
  padding: 0 4px;
  line-height: 1;
}

/* The banner sits above the sticky header, so the scroll area has to shrink
   by its height or the last row falls off the bottom. */
.wrap { height: calc(100vh - 53px - 46px); }
.drawer { top: calc(53px + 46px); }

@media (prefers-color-scheme: dark) {
  .demo-banner {
    background: #2a2113;
    border-bottom-color: #4a3a1c;
    color: #f0dcb6;
  }
  .demo-banner code { background: #3a2e18; }
  .demo-banner b { color: #ffb3a7; }
  .demo-banner button,
  .demo-banner a { background: #3a2e18; color: #f0dcb6; border-color: #5a4622; }
  .demo-banner button:hover,
  .demo-banner a:hover { background: #4a3a1c; }
}

@media (max-width: 720px) {
  .wrap { height: calc(100vh - 53px - 96px); }
}
