/* Broken Truth latest-stories ticker. Sits directly under the main header.
   Built at publish time as static HTML. No third-party scripts or widgets. */

.bt-chrome{
  position:sticky;
  top:0;
  z-index:30;
  background:rgba(11,10,10,.96);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
/* Header already painted the sticky bar; keep it in normal flow inside the chrome. */
.bt-chrome > .bar{
  position:relative;
  top:auto;
  z-index:2;
  background:transparent;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  border-bottom:0;
}

.bt-ticker{
  --bt-ticker-bg:#140c0c;
  --bt-ticker-ink:#ece3d2;
  --bt-ticker-red:#c8102e;
  display:flex;
  align-items:stretch;
  gap:0;
  min-height:2.25rem;
  background:var(--bt-ticker-bg);
  border-top:1px solid #2a1c1c;
  border-bottom:1px solid #2a1c1c;
  color:var(--bt-ticker-ink);
}
.bt-ticker__label{
  flex:none;
  display:flex;
  align-items:center;
  margin:0;
  padding:.35rem .7rem .3rem  clamp(1rem,4vw,2.5rem);
  font:1.05rem/1 Bebas,Impact,sans-serif;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#fff;
  background:var(--bt-ticker-red);
  border-right:1px solid #2a1c1c;
}
.bt-ticker__viewport{
  flex:1 1 auto;
  min-width:0;
  overflow:hidden;
  display:flex;
  align-items:center;
  padding-left:.7rem;
}
.bt-ticker__track{
  display:flex;
  align-items:center;
  width:max-content;
  animation:bt-ticker-scroll 48s linear infinite;
}
.bt-ticker:hover .bt-ticker__track,
.bt-ticker:focus-within .bt-ticker__track{
  animation-play-state:paused;
}

.bt-ticker__list{
  display:flex;
  align-items:center;
  list-style:none;
  margin:0;
  padding:0;
}
.bt-ticker__item{
  display:flex;
  align-items:center;
  margin:0;
  padding:0;
}
.bt-ticker__item + .bt-ticker__item::before,
.bt-ticker__dup .bt-ticker__item:first-child::before{
  content:"";
  display:inline-block;
  width:4px;
  height:4px;
  margin:0 .95rem;
  border-radius:50%;
  background:#c8102e;
  flex:none;
}
.bt-ticker__link{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  max-width:min(42rem,70vw);
  padding:.35rem 0;
  color:var(--bt-ticker-ink);
  text-decoration:none;
  white-space:nowrap;
}
.bt-ticker__link:hover,
.bt-ticker__link:focus-visible{
  color:#fff;
}
.bt-ticker__link:hover .bt-ticker__t,
.bt-ticker__link:focus-visible .bt-ticker__t{
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-color:#ff2a3d;
}
.bt-ticker__k{
  flex:none;
  display:inline-block;
  font:700 .68rem/1 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#fff;
  background:var(--bt-ticker-red);
  padding:.28rem .38rem .22rem;
  border-radius:2px;
}
.bt-ticker__k--post{
  background:#0b0a0a;
  box-shadow:inset 0 0 0 1px #ff2a3d;
  color:#fff;
}
.bt-ticker__t{
  font:600 .92rem/1.25 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  overflow:hidden;
  text-overflow:ellipsis;
}

@keyframes bt-ticker-scroll{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}

/* Phones: one swipeable line, no animation. Same treatment for reduced motion. */
@media (max-width:720px){
  .bt-ticker__label{padding-left:.85rem;padding-right:.6rem;font-size:.95rem;letter-spacing:.14em}
  .bt-ticker__item + .bt-ticker__item::before,
  .bt-ticker__dup .bt-ticker__item:first-child::before{margin:0 .7rem}
  .bt-ticker__link{max-width:80vw}
}
@media (max-width:720px), (prefers-reduced-motion:reduce){
  .bt-ticker__track{
    animation:none;
    width:auto;
    transform:none;
    overflow-x:auto;
    overflow-y:hidden;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x mandatory;
    scrollbar-width:thin;
    scrollbar-color:#c8102e #140c0c;
  }
  .bt-ticker__dup{display:none}
  .bt-ticker__item{scroll-snap-align:start}
  .bt-ticker__list{padding-right:1rem}
}
