/* ════════════════════════════════════════════════════════════════
   Beta ticker: yellow strip across the very top of the homepage
   (Josh, 17 Oct). Gold is the one accent colour. Loaded after
   nav-glass.css: pushes the floating nav and the page down by its
   height. Reduced motion: the strip stands still.
   ════════════════════════════════════════════════════════════════ */

:root { --ticker-h: 32px; }

.beta-ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  display: block;
  height: var(--ticker-h);
  overflow: hidden;
  background: var(--gold, #FFED00);
  color: #111;
  text-decoration: none;
  font: 500 13px/var(--ticker-h) var(--font-text, "Helvetica Neue", Helvetica, Arial, sans-serif);
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.beta-ticker:focus-visible { outline: 2px solid #111; outline-offset: -4px; }

.beta-ticker__track {
  display: inline-flex;
  will-change: transform;
  animation: beta-ticker 40s linear infinite;
}
/* Pause on hover only where there is a real mouse: on phones a tap
   leaves :hover stuck and the strip would freeze. */
@media (hover: hover) {
  .beta-ticker:hover .beta-ticker__track { animation-play-state: paused; }
}
.beta-ticker__item { padding-right: 48px; }
.beta-ticker__item::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 48px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
}

/* The track holds the list twice; moving by half loops seamlessly. */
@keyframes beta-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Room for the strip only: the photo starts right under it and the glass
   nav floats over the photo (Josh, 18 Oct: no dead black band). */
.lgn { top: calc(var(--ticker-h) + var(--lgn-top)); }
body { padding-top: var(--ticker-h); }

@media (prefers-reduced-motion: reduce) {
  .beta-ticker__track { animation: none; }
}
