/* Shared frame for every sample site: the Barstow PC Pros bar, the closing
   "build yours" banner, and the mobile call bar. Each demo sets its own
   --s-* colours and fonts in its own stylesheet. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; line-height: 1.6; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; overflow-wrap: break-word; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--s-focus, #f36b32); outline-offset: 3px; }

.skip {
  position: fixed; left: 1rem; top: 1rem; z-index: 100;
  padding: .7rem 1rem; border-radius: 8px;
  color: #11191b; background: #f36b32; font-weight: 700;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* Barstow PC Pros sample bar */
.bpp-bar {
  display: flex; align-items: center; gap: .75rem;
  min-height: 46px; padding: .35rem clamp(1rem, 4vw, 2rem);
  color: #f5ead8; background: #071a20;
  border-bottom: 1px solid rgba(128, 213, 203, .2);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: .85rem; line-height: 1.2;
}
.bpp-bar-home { display: inline-flex; align-items: center; gap: .55rem; margin-right: auto; text-decoration: none; }
.bpp-bar-home img { width: 30px; height: 30px; }
.bpp-bar-home b { color: #ff9466; }
.bpp-bar-note {
  display: none; padding: .2rem .55rem;
  border: 1px solid rgba(128, 213, 203, .35); border-radius: 999px;
  color: #80d5cb; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
}
.bpp-bar-cta { padding: .45rem .8rem; border-radius: 999px; color: #11191b; background: #f36b32; font-weight: 700; text-decoration: none; white-space: nowrap; }
.bpp-bar-cta:hover { background: #ff8048; }
.bpp-bar-all { display: none; color: #c3d2cf; text-decoration: none; }
.bpp-bar-all:hover { color: #80d5cb; }
@media (min-width: 640px) { .bpp-bar-note, .bpp-bar-all { display: inline-block; } }

/* Closing banner */
.bpp-sell {
  display: grid; gap: 1.5rem; justify-items: start;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 5vw, 4rem);
  color: #f5ead8;
  background:
    radial-gradient(36rem 20rem at 100% 100%, rgba(243, 107, 50, .25), transparent 60%),
    linear-gradient(180deg, #0b3d46, #0a2a30);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
.bpp-sell-id { display: flex; align-items: center; gap: 1rem; }
.bpp-sell-id img { width: 64px; height: auto; filter: drop-shadow(0 0 1px rgba(245, 234, 216, .7)); }
.bpp-sell-kicker { color: #80d5cb; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.bpp-sell h2 { max-width: 22ch; font-size: clamp(1.5rem, 4vw, 2.3rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.bpp-sell-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.bpp-sell-actions a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: .75rem 1.25rem; border-radius: 12px;
  font-weight: 750; text-decoration: none;
}
.bpp-sell-primary { color: #11191b; background: #f36b32; }
.bpp-sell-primary:hover { background: #ff8048; }
.bpp-sell-secondary { color: #f5ead8; border: 1.5px solid rgba(245, 234, 216, .45); }
.bpp-sell-secondary:hover { border-color: #f5ead8; }
.bpp-sell-fine { color: #c3d2cf; font-size: .85rem; }
@media (min-width: 860px) {
  .bpp-sell { grid-template-columns: 1fr auto; align-items: center; }
  .bpp-sell-fine { grid-column: 1 / -1; }
}

/* Mobile call bar, coloured by each demo */
.sample-action {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--s-bar-bg, #111);
  box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, .45);
}
.sample-action a {
  display: flex; align-items: center; justify-content: center;
  min-height: 64px; padding: 0 .5rem;
  color: var(--s-bar-ink, #fff); font-weight: 750; text-align: center; text-decoration: none;
}
.sample-action a:first-child { color: var(--s-bar-primary-ink, #111); background: var(--s-bar-primary, #fff); }
@media (min-width: 760px) {
  .sample-action { display: none; }
  body { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
