/* The sale banner (Black Friday 2026): a sliding strip above the header on every page. The whole strip is
   one link to the pricing card. The sketch pages build it with bf-banner.js, the React pages render the same
   markup from BfBanner.tsx. Self-contained colours, so it reads the same on both kinds of page. */

.bfb {
  --bfb-bg: #f3eee7;
  --bfb-ink: #0c0a09;
  --bfb-dot: #f0733a;
  position: relative; z-index: 41; display: block; overflow: hidden;
  height: 40px; background: var(--bfb-bg); color: var(--bfb-ink); cursor: pointer;
  font-family: var(--font-ns-sans, "Instrument Sans"), "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px; font-weight: 500; line-height: 40px; letter-spacing: 0.005em;
  text-decoration: none; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.bfb * { pointer-events: none; } /* every part of the strip is the one link */
.bfb:focus-visible { outline: 2px solid var(--bfb-dot); outline-offset: -2px; border-radius: 0; }
html[data-sale-over] .bfb { display: none; }
/* people who already pay never see it (data-as is set before first paint, by auth.js and the (site) layout) */
html[data-as="member"] .bfb { display: none; }

.bfb__track { display: flex; width: max-content; animation: bfb-slide 40s linear infinite; }
.bfb:hover .bfb__track, .bfb:focus-visible .bfb__track { animation-play-state: paused; }
.bfb__set { display: flex; align-items: center; flex: none; }
.bfb__i { display: inline-flex; align-items: center; gap: 8px; padding: 0 20px; color: rgba(12, 10, 9, 0.68); }
.bfb__i b { font-weight: 600; color: var(--bfb-ink); }
.bfb__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--bfb-dot); flex: none; }
.bfb__code {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 8px;
  background: var(--bfb-ink); color: var(--bfb-bg);
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.06em; line-height: 1;
}

@keyframes bfb-slide { to { transform: translateX(-50%); } }

@media (max-width: 640px) {
  .bfb { font-size: 13px; }
  .bfb__i { padding: 0 14px; }
  .bfb__track { animation-duration: 28s; }
}

/* no motion wanted: one still line, centred */
@media (prefers-reduced-motion: reduce) {
  .bfb__track { animation: none; width: 100%; justify-content: center; }
  .bfb__set + .bfb__set { display: none; }
  .bfb__set > :nth-child(n + 8) { display: none; } /* one copy of the message, not three */
}
