/* Ehna performance: let the browser skip style / layout / paint for blocks that are off screen
   (content-visibility: auto). Only on blocks whose popups are positioned outside them or that have none. */
@supports (content-visibility: auto) {
  /* right column cards (desktop) and the promoted strips under the feed on phones */
  aside.xl\:block > *, .xl\:hidden > [data-carousel] { content-visibility: auto; contain-intrinsic-size: auto 300px; }
}
/* phones: frosted-glass blur on large areas is expensive while scrolling, use a solid tint instead */
@media (max-width: 767px) {
  .ehna-ad-pop, .ehna-wl { backdrop-filter: none !important; }
}
/* honour reduced motion (also saves battery) */
@media (prefers-reduced-motion: reduce) {
  .identity-name, .ehna-identity-badge, .user-badge-chip { animation: none !important; }
}

/* news ticker: compositor-only marquee via the Web Animations API (index.newsfeed.tpl) */
.ehna-ticker-track { will-change: transform; }
/* skeleton pulses on hidden placeholders must not keep animating */
.hidden.animate-pulse, [hidden].animate-pulse, .hidden .animate-pulse { animation: none !important; }
