/* Magic Feathers header ticker: latest Broken Truth stories.
   Sits under the sticky site header. Built at publish time as static HTML.
   Links go to https://www.brokentruth.com/…  No third-party widgets. */

.mfo-chrome{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(11,11,11,.94);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.mfo-chrome > .top{
  position:relative;
  top:auto;
  z-index:2;
  background:transparent;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  border-bottom:0;
}

.mfo-ticker{
  --mfo-ticker-bg:#141414;
  --mfo-ticker-ink:#f4f1ea;
  --mfo-ticker-red:#e8311a;
  --mfo-ticker-gold:#ffc21a;
  display:flex;
  align-items:stretch;
  gap:0;
  min-height:2.25rem;
  background:var(--mfo-ticker-bg);
  border-top:1px solid #2a2a2a;
  border-bottom:1px solid #2a2a2a;
  color:var(--mfo-ticker-ink);
}
.mfo-ticker__label{
  flex:none;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  margin:0;
  padding:.28rem .7rem .22rem clamp(1rem,4vw,2.5rem);
  line-height:1;
  color:#fff;
  background:var(--mfo-ticker-red);
  border-right:1px solid #2a2a2a;
}
.mfo-ticker__label-lead{
  display:block;
  font:700 .62rem/1.1 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#fff;
  margin:0 0 .12rem;
}
.mfo-ticker__label-brand{
  display:block;
  font:400 1.15rem/1 Anton,Impact,sans-serif;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#fff;
}
.mfo-ticker__viewport{
  flex:1 1 auto;
  min-width:0;
  overflow:hidden;
  display:flex;
  align-items:center;
  padding-left:.7rem;
}
.mfo-ticker__track{
  display:flex;
  align-items:center;
  width:max-content;
  animation:mfo-ticker-scroll 48s linear infinite;
}
.mfo-ticker:hover .mfo-ticker__track,
.mfo-ticker:focus-within .mfo-ticker__track{
  animation-play-state:paused;
}
.mfo-ticker__list{
  display:flex;
  align-items:center;
  list-style:none;
  margin:0;
  padding:0;
}
.mfo-ticker__item{
  display:flex;
  align-items:center;
  margin:0;
  padding:0;
}
.mfo-ticker__item + .mfo-ticker__item::before,
.mfo-ticker__dup .mfo-ticker__item:first-child::before{
  content:"";
  display:inline-block;
  width:4px;
  height:4px;
  margin:0 .95rem;
  border-radius:50%;
  background:var(--mfo-ticker-gold);
  flex:none;
}
.mfo-ticker__link{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  max-width:min(42rem,70vw);
  padding:.35rem 0;
  color:var(--mfo-ticker-ink);
  text-decoration:none;
  white-space:nowrap;
}
.mfo-ticker__link:hover,
.mfo-ticker__link:focus-visible{
  color:#fff;
}
.mfo-ticker__link:hover .mfo-ticker__t,
.mfo-ticker__link:focus-visible .mfo-ticker__t{
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-color:var(--mfo-ticker-gold);
}
.mfo-ticker__k{
  flex:none;
  display:inline-block;
  font:700 .68rem/1 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#fff;
  background:var(--mfo-ticker-red);
  padding:.28rem .38rem .22rem;
  border-radius:2px;
}
.mfo-ticker__k--post{
  background:#0b0b0b;
  box-shadow:inset 0 0 0 1px var(--mfo-ticker-gold);
  color:#fff;
}
.mfo-ticker__t{
  font:600 .92rem/1.25 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  overflow:hidden;
  text-overflow:ellipsis;
}
@keyframes mfo-ticker-scroll{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}
@media (max-width:720px){
  .mfo-ticker__label{padding-left:.7rem;padding-right:.55rem}
  .mfo-ticker__label-lead{font-size:.55rem;letter-spacing:.1em}
  .mfo-ticker__label-brand{font-size:1.05rem}
  .mfo-ticker__item + .mfo-ticker__item::before,
  .mfo-ticker__dup .mfo-ticker__item:first-child::before{margin:0 .7rem}
  .mfo-ticker__link{max-width:80vw}
}
@media (max-width:720px), (prefers-reduced-motion:reduce){
  .mfo-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:#e8311a #141414;
  }
  .mfo-ticker__dup{display:none}
  .mfo-ticker__item{scroll-snap-align:start}
  .mfo-ticker__list{padding-right:1rem}
}
