/* The step bar (TW #3473): a slim bar above every page while a Test Mission is underway. Capsule orange
   (Steve's pick C), red off the path; white text. Sticky at the top; the homepage's fixed nav sits under it.
   Selectors carry .step-bar so the members' layout's p and a rules stay out. */
.step-bar {
  position: sticky; top: 0; z-index: 70; display: flex; align-items: center; gap: 12px;
  min-height: 44px; padding: 6px 16px; box-sizing: border-box;
  background: #e2572b; color: #fff; font: 600 15px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .15);
}
.step-bar--off { background: #c0392b; }
.step-bar__body { flex: 1; min-width: 0; }
.step-bar .step-bar__eyebrow { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.step-bar .step-bar__line {
  margin: 1px 0 3px; font-weight: 700; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; /* two lines at most */
}
.step-bar__ticks { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.step-bar__tick { width: 18px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .35); }
.step-bar__tick.is-reached { background: #fff; }
.step-bar__tick.is-current { background: rgba(255, 255, 255, .7); }
/* "Back to Testing Capsule" (TW #3482) wraps to two lines on a phone rather than squeezing the step. */
.step-bar a.step-bar__link { flex: none; max-width: 9em; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.25; text-align: right; text-wrap: balance; text-decoration: underline; text-underline-offset: 2px; }
.step-bar a.step-bar__link:hover, .step-bar a.step-bar__link:focus-visible { color: #fff; text-decoration-thickness: 2px; }
/* The homepage's nav is fixed to the top: it moves down by the bar's height (step_bar_controller.js). */
body:has(.step-bar) .cb-nav { top: var(--step-bar-h, 44px); }
