/* ScrollRail — horizontal card rails hide the native scrollbar; a neutral white
   edge fade + circular arrow (Longbridge-style, gray) signals overflow. The
   overlays sit in a positioned wrapper that is a sibling of the rail, so they
   stay pinned to the rail edges instead of scrolling with the content.

   Trigger: [data-scroll-rail] only (content cards). The page nav uses the separate
   NavRail component (nav-rail.css), NOT this one.
   The JS companion (output/js/clarity/scroll-rail.js) wraps the rail in
   .scroll-rail-wrap and toggles .is-visible per scrollable side. */
body.clarity .scroll-rail-wrap{position:relative;max-width:1400px;margin-left:auto;margin-right:auto}
body.clarity .scroll-rail-wrap [data-scroll-rail]{max-width:none;margin-left:0;margin-right:0}
body.clarity [data-scroll-rail]{scrollbar-width:none;-ms-overflow-style:none}
body.clarity [data-scroll-rail]::-webkit-scrollbar{display:none;width:0;height:0}
.scroll-rail-fade{position:absolute;top:0;bottom:0;width:96px;pointer-events:none;z-index:1;opacity:0;transition:opacity .25s ease}
.scroll-rail-fade-left{left:0;background:linear-gradient(90deg,#fff,rgba(255,255,255,0))}
.scroll-rail-fade-right{right:0;background:linear-gradient(270deg,#fff,rgba(255,255,255,0))}
.scroll-rail-btn{position:absolute;top:50%;transform:translateY(-50%);z-index:2;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:.5px solid #e4e6e9;border-radius:50%;background:#fff;color:#8b909a;cursor:pointer;opacity:0;pointer-events:none;transition:opacity .25s ease,background-color .15s,color .15s}
.scroll-rail-btn:hover{background:#f0f2f4;color:#5f646e}
.scroll-rail-btn:focus-visible{outline:2px solid #8b909a;outline-offset:2px}
.scroll-rail-btn-left{left:8px}
.scroll-rail-btn-right{right:8px}
.scroll-rail-btn svg{width:14px;height:14px;display:block}
/* Reveal the scrollable side on hover; hide again on mouse leave. */
body.clarity .scroll-rail-wrap:hover .scroll-rail-fade.is-visible,
body.clarity .scroll-rail-wrap:hover .scroll-rail-btn.is-visible{opacity:1}
body.clarity .scroll-rail-wrap:hover .scroll-rail-btn.is-visible{pointer-events:auto}
/* Touch has no hover: keep the scrollable side visible for tap access. */
@media (hover:none){
 body.clarity .scroll-rail-fade.is-visible{opacity:1}
 body.clarity .scroll-rail-btn.is-visible{opacity:1;pointer-events:auto}
}
