
.vrail {
  position: fixed; z-index: 45; left: 22px; top: 50%; height: min(52vh, 480px); width: 40px; transform: translateY(-50%);
  opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
  font-family: var(--font-mono, "Geist Mono", ui-monospace, monospace); color: var(--publication-ink, #150d2b);
}
html:not(.js) .vrail { display: none; }
.vrail.is-on { opacity: 1; pointer-events: auto; }
.vrail-track { position: absolute; left: 14px; top: 0; bottom: 0; width: 1px; background: rgb(21 13 43 / 0.14); }
.vrail-fill { position: absolute; left: 0; top: 0; width: 1px; height: calc(var(--p, 0) * 100%); background: var(--accent, #6d3fd6); }
.vrail-head {
  position: absolute; left: 0; top: calc(var(--p, 0) * 100%); width: 7px; height: 7px; margin: -3.5px 0 0 -3px; border-radius: 50%;
  background: var(--accent, #6d3fd6); box-shadow: 0 0 0 3px #fff, 0 0 14px 1px rgb(109 63 214 / 0.45);
}
.vrail-tick {
  position: absolute; left: -4px; top: calc(var(--y, 0) * 100%); width: 9px; height: 1px; background: rgb(21 13 43 / 0.32);
  transition: width 0.25s ease, left 0.25s ease, background-color 0.25s ease;
}
.vrail-tick.is-past { background: rgb(109 63 214 / 0.55); }
.vrail-tick.is-now { left: -8px; width: 17px; background: var(--accent, #6d3fd6); }
.vrail-now {
  position: absolute; left: 30px; top: calc(var(--p, 0) * 100%); transform: translateY(-50%);
  font-size: 10.5px; letter-spacing: 0.1em; color: var(--accent, #6d3fd6); white-space: nowrap; transition: opacity 0.2s ease;
}
.vrail-left { position: absolute; left: 0; top: calc(100% + 14px); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgb(21 13 43 / 0.5); white-space: nowrap; }
.vrail-hit { position: absolute; left: 0; top: -16px; bottom: -16px; width: 34px; padding: 0; border: 0; background: none; cursor: pointer; }
.vrail-hit:focus-visible { outline: 2px solid var(--accent, #6d3fd6); outline-offset: 2px; border-radius: 6px; }
.vrail-list {
  position: absolute; left: 38px; top: 50%; width: 300px; max-height: 78vh; overflow: auto; margin: 0; padding: 12px; list-style: none;
  background: rgb(255 255 255 / 0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgb(21 13 43 / 0.08); border-radius: 14px; box-shadow: 0 28px 56px -28px rgb(21 13 43 / 0.4);
  opacity: 0; visibility: hidden; transform: translate(-10px, -50%);
  transition: opacity 0.2s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}
.vrail.is-open .vrail-list, .vrail:focus-within .vrail-list { opacity: 1; visibility: visible; transform: translate(0, -50%); transition: opacity 0.2s ease, transform 0.25s ease; }
@media (hover: hover) { .vrail:hover .vrail-list { opacity: 1; visibility: visible; transform: translate(0, -50%); transition: opacity 0.2s ease, transform 0.25s ease; } .vrail:hover .vrail-now { opacity: 0; } }
.vrail-list a { display: grid; grid-template-columns: 30px 1fr; gap: 6px; align-items: baseline; padding: 7px 8px; border-radius: 8px; text-decoration: none; color: rgb(21 13 43 / 0.58); }
.vrail-n { font-size: 10.5px; letter-spacing: 0.08em; }
.vrail-t { font-family: var(--font-sans, "Hanken Grotesk", system-ui, sans-serif); font-size: 13.5px; line-height: 1.3; }
.vrail-list a:hover, .vrail-list a:focus-visible { background: rgb(109 63 214 / 0.07); color: var(--publication-ink, #150d2b); outline: none; }
.vrail-list a[aria-current] { color: var(--publication-ink, #150d2b); }
.vrail-list a[aria-current] .vrail-n { color: var(--accent, #6d3fd6); }
.vrail-list a[aria-current] .vrail-t { font-weight: 600; }
@media (max-width: 1359px) { .vrail-now { display: none; } }

@media (max-width: 899px) {
  .vrail { left: 0; width: 14px; height: 38vh; }
  .vrail-track { left: 6px; }
  .vrail-tick { left: -3px; width: 7px; }
  .vrail-tick.is-now { left: -5px; width: 12px; }
  .vrail-hit { width: 16px; }
  .vrail-left { display: none; }
  .vrail-list { left: 18px; width: min(300px, calc(100vw - 40px)); }
}
@media (prefers-reduced-motion: reduce) { .vrail, .vrail-tick, .vrail-list, .vrail-now { transition: none; } }
@media print { .vrail { display: none; } }
