
/* ===== the index cards are the open card (hubcard.py) ===== */
/* the card is nothing, the picture carries the corners. These two
   lines are the whole difference between the rail and the grid: the
   cards sit at the top of their row rather than stretching, and each
   one fills its own cell. */
html body .rlg{align-items:start;}
html body .rlg .rl-card{height:100%;}
/* the chip on the picture, in the site's own eyebrow. Matt, 19
   October, when the knowledge rail was rebuilt: "the 'eyebrow' inside
   each image needs to be the standard eyebrow styling." Scoped to the
   grid rather than made site-wide, because the industries pages are
   the reference for .rl-tag and changing them was never the ask. */
html body .rlg .rl-tag{  background:var(--aqua,#00eecc) !important;
  color:#0b0f2e !important;
  border-radius:999px !important;
  padding:7px 14px 5px !important;
  font-size:11px !important;
  font-weight:700 !important;
  letter-spacing:1.6px !important;
  text-transform:uppercase !important;
  line-height:1.25 !important;
}

.rl-bar{display:flex;gap:14px;flex:0 0 auto;}
.rl-btn{width:60px;height:60px;border-radius:50%;border:0;cursor:pointer;
  display:grid;place-items:center;background:rgba(255,255,255,.07);color:#fff;
  transition:background .25s,color .25s,opacity .25s;}
.rl-btn svg{width:26px;height:26px;}
.rl-next svg{transform:scaleX(-1);}
.rl-btn:hover{background:var(--aqua);color:#0b0f2e;}
.rl-btn[disabled]{opacity:.3;cursor:default;background:rgba(255,255,255,.07);color:#fff;}
/* Matt, 23 September: "the scroll sometimes sticks if the mouse is over an
   image". A horizontal scroller with mandatory snapping eats part of a
   trackpad gesture: the sideways component is taken by the rail, the page
   stops for a moment and the snap pulls back. overscroll-behavior keeps the
   rail's own scrolling to itself, and snapping is left to touch, where a
   swipe is deliberate and a snap helps. Nothing on this tier is pinned. */
.rl{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 2 * 28px) / 3);
  gap:28px;overflow-x:auto;overflow-y:hidden;overflow-y:clip;scroll-behavior:smooth;overscroll-behavior-x:contain;
  scroll-snap-type:none;scrollbar-width:none;outline:none;}
@media (hover:none){
.rl{scroll-snap-type:x proximity;}
}
.rl::-webkit-scrollbar{display:none;}
.rl-card{scroll-snap-align:start;display:flex;flex-direction:column;color:#fff;}
.rl-ph{position:relative;display:block;overflow:hidden;border-radius:26px;
  aspect-ratio:4/3;background:#12173d;}
.rl-ph i{position:absolute;inset:0;background-size:cover;background-position:center;
  transition:transform 1.2s cubic-bezier(.22,1,.36,1);}
.rl-card:hover .rl-ph i{transform:scale(1.07);}
/* WHERE THE CHIP SITS. What it LOOKS like is chipmark.py's, on
   every rail at once: Matt, 21 October, picking from six
   treatments on the full brightness range, "Let's do new A
   please." This rule used to carry the look as well, at 14px
   with .1px tracking and an 8px corner, which was a second chip
   nobody could see was different from the knowledge rail's. */
.rl-tag{position:absolute;top:18px;left:18px;}
.rl-cat{margin-top:24px;font-size:14px;color:rgba(255,255,255,.55);letter-spacing:.2px;}
.rl-card h3{margin-top:14px;font-size:24px;font-weight:600;letter-spacing:-.4px;color:#fff;}
.rl-card p{margin:10px 0 0;font-size:17px;line-height:1.5;color:rgba(255,255,255,.78);}
.rl-arw{display:block;width:40px;height:40px;margin-top:32px;color:var(--aqua);
  transition:transform .3s cubic-bezier(.22,1,.36,1);}
.rl-arw svg{width:100%;height:100%;}
.rl-card:hover .rl-arw{transform:translate(5px,-5px);}
@media (max-width:640px){
.op .rl{grid-auto-columns:82%;gap:18px;}
.rl-btn{width:48px;height:48px;}
}
@media (max-width:1080px){
.rl{grid-auto-columns:calc((100% - 28px) / 2);}
}