/* Fixed-rail variant (boostude-rail.html). Loaded after style.css. */

.rail-track rect{fill:var(--line);}
.rail-fill,.rail-fill rect{transform-box:fill-box;transform-origin:50% 100%;}
.rail-fill rect{fill:var(--teal);}
.rail-cap{fill:var(--ink);}
.rail-stair{overflow:visible;display:block;}

/* Desktop: a small panel pinned to the right edge, shown by rail.js once Motion runs */
.rail{
  display:none;position:fixed;z-index:70;pointer-events:none;
  top:calc(50% - 96px);right:max(12px, calc((100vw - 1180px) / 2 - 118px));
  width:100px;padding:16px 8px 12px;text-align:center;
  background:rgba(255,255,255,.88);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  border:1px solid var(--line);border-radius:18px;
  box-shadow:0 18px 40px -18px rgba(20,33,54,.35);
}
.rail .rail-stair{width:70px;height:57px;margin:0 auto 12px;}
.rail-label{display:flex;flex-direction:column;gap:1px;line-height:1.2;}
.rail-num{font-family:'Fraunces',serif;font-weight:600;font-size:15px;color:var(--teal-dark);min-height:18px;}
.rail-name{font-size:10px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--ink);}
.rail-percent{margin-top:8px;padding-top:8px;border-top:1px solid var(--line);font-size:11px;font-weight:700;color:var(--ink-soft);font-variant-numeric:tabular-nums;}

@media (min-width:901px){
  .rail.is-on{display:block;}
  /* The rail carries the staircase: the large one at the contact form is for phones */
  .has-rail .stair-summit{display:none;}
}
/* Between the single-column layout and wide screens the side margin is too thin: make room for the rail */
@media (min-width:901px) and (max-width:1439px){
  .has-rail main .wrap,
  .has-rail footer .wrap{padding-right:140px;}
}

/* Phones and tablets: the rail becomes a dock at the bottom, next to the call to action */
@media (max-width:900px){
  .has-rail .mobile-cta{
    display:flex;align-items:center;gap:10px;position:fixed;z-index:80;
    left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));
    padding:8px 8px 8px 12px;
    background:rgba(255,255,255,.93);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
    border:1px solid var(--line);border-radius:16px;
    box-shadow:0 16px 36px -12px rgba(20,33,54,.5);
    transform:translateY(140%);visibility:hidden;
  }
  .has-rail .mobile-cta .rail-stair{width:58px;height:47px;flex-shrink:0;}
  .has-rail .mobile-cta .btn{flex:1;width:auto;background:var(--teal);box-shadow:none;padding:13px 12px;}
}
