
.py-vtl__chapters{display:flex;overflow-x:auto;gap:6px 18px;padding:12px 0;border-block:1px solid var(--line);margin-bottom:40px;scrollbar-width:thin}
.py-vtl__chapters a{display:inline-flex;align-items:center;min-height:44px;white-space:nowrap;flex-shrink:0;padding:0 4px;color:var(--muted);text-decoration:none;font-size:13px;border-bottom:1px solid transparent}
.py-vtl__chapters a[aria-current]{color:var(--ink);border-bottom-color:var(--py-accent)}

.py-vtl[data-py-history]{--py-history-header:var(--header-height,0px);--py-history-nav-height:70px}
.py-vtl[data-py-history] .py-vtl__chapters{position:sticky;top:var(--py-history-header);z-index:30;isolation:isolate;justify-content:space-between;gap:18px;padding:12px 4px;background:var(--paper);overscroll-behavior-x:contain;scroll-padding-inline:16px;-webkit-overflow-scrolling:touch}
.py-vtl[data-py-history] .py-vtl__chapters.is-stuck{box-shadow:0 6px 14px #2827250a}
.py-vtl[data-py-history] .py-vtl__chapters a{min-width:44px;justify-content:center;font-variant-numeric:tabular-nums;letter-spacing:.025em}
.py-vtl[data-py-history] .py-vtl__chapters a:hover{color:var(--ink)}
.py-vtl[data-py-history] .py-vtl__year{scroll-margin-top:calc(var(--py-history-anchor-header,var(--py-history-header)) + var(--py-history-nav-height) + 24px)}
.py-vtl[data-py-history] .py-vtl__rail-sticky{top:calc(var(--py-history-header) + var(--py-history-nav-height) + 24px);min-height:100px;height:calc(100svh - var(--py-history-header) - var(--py-history-nav-height) - 48px)}

.py-vtl[data-py-history] .py-vtl__chapters a:focus-visible{outline:2px solid var(--py-accent,#76533a);outline-offset:-2px}
@media(max-width:600px){.py-vtl__chapters{margin-bottom:20px}}