/* The Speedrun bar on top of every sample site (DESIGN.md §6 "Sample bar").
   Colours are the main site's dark tokens; it looks the same on every sample
   so a visitor always knows it is ours, not the business's. */
@font-face {
  font-family: "SR Switzer";
  src: url("switzer-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
.sr-sample-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 2147483000;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  background: #08060c;
  color: #f8f5fc;
  border-bottom: 1px solid #2d2337;
  font: 600 14px/1.2 "SR Switzer", system-ui, sans-serif;
  letter-spacing: 0;
  box-sizing: border-box;
}
.sr-sample-bar * { box-sizing: border-box; }
.sr-sample-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 4px;
  color: #f8f5fc;
  text-decoration: underline;
  text-decoration-color: #b99cff;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  white-space: nowrap;
}
.sr-sample-back:hover { text-decoration-thickness: 2px; }
.sr-sample-back:focus-visible,
.sr-sample-toast:focus-visible {
  outline: 2px solid #b99cff;
  outline-offset: 2px;
  border-radius: 4px;
}
.sr-sample-label {
  margin-left: auto;
  color: #f8f5fc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sr-sample-label b { color: #b99cff; font-weight: 600; }
.sr-sample-toast {
  position: fixed;
  left: 50%;
  /* Under our bar, so it never covers a sample's own sticky call bar */
  top: 56px;
  transform: translateX(-50%);
  z-index: 2147483001;
  max-width: calc(100vw - 28px);
  padding: 12px 16px;
  border-radius: 12px;
  background: #08060c;
  color: #f8f5fc;
  border: 1px solid #48335f;
  font: 600 14px/1.4 "SR Switzer", system-ui, sans-serif;
  text-align: center;
}
.sr-sample-toast[hidden] { display: none; }
@media (max-width: 359px) {
  .sr-sample-label .sr-long { display: none; }
}

/* A longer label (demo copies, the Pilates sample) wraps to two lines on
   narrow screens; the bar grows to 64px and the page below moves with it. */
@media (max-width: 599px) {
  .sr-sample-bar-wrap {
    height: 64px;
  }
  .sr-sample-bar-wrap .sr-sample-label {
    white-space: normal;
    text-align: right;
    line-height: 1.3;
  }
}

/* The three demo copies of real businesses (cafe, gym, salon): one 44px line
   at every width. The way back is a 44px arrow at the left (its name, "Back
   to Speedrun Website", is read out); the label is centred on the bar, with
   an empty 44px column on the right to balance the arrow. */
.sr-sample-bar-demo {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  padding: 0 8px;
}
.sr-sample-bar-demo::after { content: ""; }
.sr-sample-bar-demo .sr-sample-back {
  justify-content: center;
  width: 44px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
}
.sr-sample-bar-demo .sr-sample-back:hover { color: #b99cff; }
.sr-sample-bar-demo .sr-sample-label {
  margin: 0;
  text-align: center;
  white-space: nowrap;
}
/* Under 360px the label steps down to 12px so it still fits on one line. */
@media (max-width: 359px) {
  .sr-sample-bar-demo .sr-sample-label { font-size: 12px; }
}
