/* Vellionix · site showcase (see showcase.js). The store and launch scenes: a browser window with one tab per
   concept site. The open site fills the window at full size and scrolls with the page. */

/* ---------- window chrome ---------- */
.bw--sx .bw-bar.sx-chrome { flex: 0 0 auto; display: block; height: auto; padding: 0; font-size: 12.5px; color: var(--chrome-ink); }
.sx-chrome, .sx-chrome * { box-sizing: border-box; }
.sx-chrome button { margin: 0; font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sx-chrome button:focus-visible { outline: 2px solid #3d6df2; outline-offset: 2px; }
.sx-chrome svg { display: block; flex: 0 0 auto; }
.sx-strip { display: flex; align-items: flex-end; gap: 16px; height: 44px; padding: 0 12px 0 16px; }
.sx-strip .bw-dots { align-self: center; }
.sx-tabs { flex: 1 1 auto; min-width: 0; align-self: stretch; display: flex; align-items: flex-end; gap: 2px; padding: 0 10px; overflow-x: auto; scrollbar-width: none; }
.sx-tabs::-webkit-scrollbar { display: none; }
.sx-tab {
  position: relative; flex: 0 1 auto; min-width: 0; height: 36px; display: flex; align-items: center; gap: 9px; padding: 0 18px 0 11px;
  border-radius: 11px 11px 0 0; text-align: left; white-space: nowrap; color: var(--chrome-ink); transition: background-color 0.2s, color 0.2s;
}
.sx-tab:hover { background: color-mix(in srgb, var(--chrome-url) 55%, transparent); color: var(--ink); }
.sx-tab.on { background: var(--chrome-url); color: var(--ink); }
/* the two concave corners that seat the open tab on the toolbar */
.sx-tab.on::before, .sx-tab.on::after { content: ""; position: absolute; bottom: 0; width: 10px; height: 10px; pointer-events: none; }
.sx-tab.on::before { left: -10px; background: radial-gradient(circle at 0 0, transparent 9.5px, var(--chrome-url) 10px); }
.sx-tab.on::after { right: -10px; background: radial-gradient(circle at 100% 0, transparent 9.5px, var(--chrome-url) 10px); }
.sx-fav {
  flex: 0 0 auto; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 5px; background: var(--b); color: var(--c);
  font: 700 10.5px/1 "Archivo", "Helvetica Neue", Arial, sans-serif; font-style: normal; box-shadow: inset 0 0 0 1px rgba(128, 128, 128, 0.28);
}
.sx-tn { overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-size: 12.5px; letter-spacing: -0.005em; }
.sx-tab small { font-size: 11.5px; opacity: 0.58; }
.sx-tab small::before { content: "·"; margin-right: 8px; }
.sx-tool { position: relative; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px 0 12px; background: var(--chrome-url); }
.sx-nav { display: flex; opacity: 0.4; }
.sx-nav svg { width: 16px; height: 16px; margin: 0 4px; }
.sx-ib { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--chrome-ink); transition: background-color 0.2s, color 0.2s; }
.sx-ib svg { width: 16px; height: 16px; }
.sx-ib:hover { background: var(--chrome); color: var(--ink); }
.sx-reload:active svg { transform: rotate(90deg); }
.sx-reload svg { transition: transform 0.3s; }
.sx-url {
  flex: 1 1 auto; min-width: 0; height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 6px 0 13px; border-radius: 99px;
  background: var(--chrome); color: var(--ink-2); font-size: 12.5px; white-space: nowrap;
}
.sx-lock svg { width: 11px; height: 11px; opacity: 0.55; }
.sx-u { overflow: hidden; text-overflow: ellipsis; }
.sx-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 9px 0 7px; border-radius: 99px; background: var(--chrome-url); font-size: 11px; font-weight: 600; color: #15803d; }
.sx-live i { width: 6px; height: 6px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2); }
:root[data-theme="dark"] .sx-live { color: #86efac; }
.sx-dev { flex: 0 0 auto; display: flex; gap: 2px; padding: 2px; border-radius: 10px; background: var(--chrome); }
.sx-dev .sx-ib { width: 32px; height: 26px; border-radius: 8px; }
.sx-dev .sx-ib.on { background: var(--chrome-url); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16); }
.sx-full { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px 0 10px; border-radius: 99px; background: var(--btn); color: var(--btn-fg) !important; font-size: 12.5px; font-weight: 600; white-space: nowrap; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.sx-full svg { width: 14px; height: 14px; }
.sx-full:hover { transform: translateY(-1px); }
.sx-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); }
.sx-prog i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- the stage ---------- */
.sx { position: absolute; inset: 0; background: var(--bg, #fff); }
.sx-stage { position: absolute; inset: 0; }
.sx-slot { position: absolute; inset: 0; background: var(--bg, #fff); }
.sx-slot > .vx-frame { position: absolute; inset: 0; background: var(--bg, #fff); }
/* Inside the window the site does not scroll on its own: the page drives it (showcase.js). */
.sx-slot .vx-site-host { overflow: hidden; }
.sx-empty { margin: 0; padding: 40px 20px; text-align: center; font: 14px/1.4 "Instrument Sans", sans-serif; color: #777; }

/* phone size: the same site at 390 px, in a handset */
.sx.is-phone { background: #eceae6; }
:root[data-theme="dark"] .sx.is-phone { background: #161616; }
.sx.is-phone .sx-stage { background-image: radial-gradient(rgba(128, 128, 128, 0.22) 1px, transparent 1.2px); background-size: 22px 22px; }
.sx.is-phone .sx-slot {
  inset: auto; left: 50%; top: 50%; width: 390px; height: min(calc(100% - 28px), 800px); transform: translate(-50%, -50%);
  border-radius: 44px; border: 9px solid #131313; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset, 0 40px 80px -40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.4);
}

/* ---------- small windows (phones) ---------- */
.sx-chrome.is-narrow .bw-dots, .sx-chrome.is-narrow .sx-nav, .sx-chrome.is-narrow .sx-dev, .sx-chrome.is-narrow .sx-live, .sx-chrome.is-narrow .sx-tab small, .sx-chrome.is-narrow .sx-reload { display: none; }
.sx-chrome.is-narrow .sx-strip { height: 40px; padding: 0 4px; }
.sx-chrome.is-narrow .sx-tabs { padding: 0 8px; }
.sx-chrome.is-narrow .sx-tab { flex: 0 0 auto; height: 34px; padding: 0 12px 0 9px; }
.sx-chrome.is-narrow .sx-tool { height: 40px; padding: 0 6px 0 8px; gap: 6px; }
.sx-chrome.is-narrow .sx-url { height: 28px; }
.sx-chrome.is-narrow .sx-full { height: 28px; padding: 0 11px 0 9px; }
