/* DEMO ONLY: the bar above the Voltage demo. Never shipped in the theme.
   It sits in the normal flow at the top of the page (not fixed, not sticky). */
.demo-bar {
  position: relative;
  background: #0d0d12;
  color: #fff;
  font: 600 13px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  border-bottom: 1px solid #2a2a36;
}
.demo-bar *, .demo-bar *::before, .demo-bar *::after { box-sizing: border-box; }
.demo-bar__in { display: flex; align-items: center; gap: 8px 16px; max-width: 1560px; margin: 0 auto; padding: 6px 16px; min-height: 44px; }
.demo-bar a { color: #fff; text-decoration: none; }
.demo-bar__brand { font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.demo-bar__brand span { font-weight: 500; opacity: .6; }
.demo-bar__styles { display: flex; align-items: center; gap: 4px; padding: 3px; border-radius: 8px; background: #1d1d27; }
.demo-bar__label { padding: 0 6px 0 4px; font-weight: 500; opacity: .6; }
.demo-bar button {
  -webkit-appearance: none; appearance: none;
  min-height: 30px; padding: 0 10px; border: 0; border-radius: 6px;
  background: transparent; color: #fff; font: inherit; cursor: pointer;
  clip-path: none; box-shadow: none; transform: none; text-transform: none; letter-spacing: 0;
}
.demo-bar button:hover { background: #2c2c3a; }
.demo-bar button[aria-pressed="true"] { background: #fff; color: #0d0d12; }
.demo-bar__pages { display: flex; gap: 2px; margin-left: auto; }
.demo-bar__pages a { padding: 6px 9px; border-radius: 6px; opacity: .78; }
.demo-bar__pages a:hover { opacity: 1; background: #1d1d27; }
.demo-bar__pages a[aria-current="page"] { opacity: 1; box-shadow: inset 0 -2px 0 #fff; border-radius: 0; }
.demo-bar__view { border: 1px solid #3a3a48 !important; white-space: nowrap; }
.demo-bar__get { flex: none; padding: 7px 12px; border-radius: 6px; background: #6d4aff; white-space: nowrap; }
.demo-bar__get:hover { background: #7f60ff; }
.demo-bar :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.demo-bar__mini { display: none; position: relative; min-width: 0; flex: 0 1 auto; }
.demo-bar select {
  -webkit-appearance: none; appearance: none;
  min-height: 32px; padding: 0 26px 0 10px; border: 1px solid #3a3a48; border-radius: 6px;
  background: #1d1d27 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 9px center;
  color: #fff; font: inherit; font-size: 16px; line-height: 1;
  max-width: 100%; text-overflow: ellipsis;
}
.demo-bar__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.demo-bar__toast { position: absolute; left: 50%; top: 100%; z-index: 45; margin: 6px 0 0; padding: 8px 12px; transform: translateX(-50%); border-radius: 6px; background: #0d0d12; color: #fff; white-space: nowrap; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }

@media (max-width: 1100px) {
  .demo-bar__styles, .demo-bar__pages { display: none; }
  .demo-bar__mini { display: block; }
  .demo-bar__mini:first-of-type { margin-left: auto; }
}
@media (max-width: 760px) {
  .demo-bar__in { gap: 6px; padding: 5px 10px; min-height: 42px; }
  .demo-bar__view { display: none; }
  .demo-bar__brand span { display: none; }
  .demo-bar__get { padding: 7px 9px; }
  .demo-bar select { padding-right: 22px; background-position: right 7px center; }
}
@media (max-width: 440px) { .demo-bar__brand { display: none; } .demo-bar__mini:first-of-type { margin-left: 0; } .demo-bar__mini { flex: 1 1 0; } .demo-bar select { width: 100%; } }

/* Phone view: the page is shown in a 390px frame under the bar */
html.demo-phone body > :not(.demo-bar):not(.demo-frame-wrap) { display: none !important; }
.demo-frame-wrap { display: grid; place-items: start center; padding: 20px 16px 40px; background: #1a1a22; min-height: calc(100vh - 44px); }
.demo-frame { width: 390px; max-width: 100%; height: min(844px, calc(100vh - 110px)); border: 0; border-radius: 26px; box-shadow: 0 0 0 10px #050507, 0 30px 80px rgba(0, 0, 0, .5); background: #fff; }
html.demo-in-frame .demo-bar { display: none; }
