/* "Breaking news" ticker fixed along the bottom of the home page (public/news-ticker.js fills it).
   Built from the theme variables in theme.css, so it follows light/dark and the colour scheme
   in Settings and mirrors the countdown banner at the top. */
.bru-ticker-wrap {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  overflow: hidden;
  background: var(--ob-card-2);
  border-top: 1px solid var(--ob-rule);
  display: flex; flex-direction: column;
  font-family: var(--ob-font);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bru-row { display: flex; align-items: center; overflow: hidden; white-space: nowrap; padding: 5px 0; }
.bru-row + .bru-row { border-top: 1px solid var(--ob-rule); }
.bru-track { display: inline-flex; white-space: nowrap; will-change: transform; }
.bru-track > span {
  font-size: clamp(13px, 1.5vw, 15px);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ob-ink);
}
.bru-t2 > span { color: var(--ob-muted); }
.bru-track b { font-weight: 700; color: var(--ob-accent); }
.bru-track em { font-style: normal; color: var(--ob-ink); background: linear-gradient(transparent 58%, color-mix(in srgb, var(--ob-highlight) 55%, transparent) 58% 92%, transparent 92%); padding: 0 .1em; }
.bru-track .bru-dot { color: var(--ob-accent); padding: 0 1.1em; }
@keyframes bru-scroll-a { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes bru-scroll-b { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.bru-t1 { animation: bru-scroll-a 40s linear infinite; }
.bru-t2 { animation: bru-scroll-b 48s linear infinite; }
@media (prefers-reduced-motion: reduce) { .bru-t1, .bru-t2 { animation: none; } }
:root[data-motion="reduce"] .bru-t1, :root[data-motion="reduce"] .bru-t2 { animation: none !important; }

/* Lift the floating bottom nav and the page's end padding clear of the ticker.
   --bru-h is the ticker's measured height, set by news-ticker.js. */
html[data-page="home"] .ob-bnav { bottom: calc(var(--bru-h, 0px) + 16px); }
html[data-page="home"] body { padding-bottom: calc(var(--bru-h, 0px) + 96px); }
