/* ==========================================================================
   Bottom fade (component) — softens content as it reaches the bottom edge.
   Markup is printed by cultnerds_component_bottom_fade_markup() (inc/assets.php).

   Replaces the legacy .cn-bottom-blur (8 stacked backdrop-filter layers up to
   64px), which the browser had to re-blur on every scroll and animation frame.
   A static gradient on a fixed layer is painted once and never again.
   ========================================================================== */

.cn-bottom-fade {
  position: fixed;
  inset: auto 0 0;
  height: clamp(80px, 15vh, 140px);
  z-index: 1000;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.22) 40%,
    rgba(0, 0, 0, 0.5) 75%,
    rgba(0, 0, 0, 0.62) 100%
  );
}

@media print {
  .cn-bottom-fade {
    display: none;
  }
}
