/* Post table-of-contents rail: fixed in the left gutter beside the 1000px
   article column, so it only exists where that gutter does (wide desktop).
   Progressive enhancement: without JS the nav is a plain visible anchor list;
   toc-1.js adds .toc-js (fade in/out with scroll) + the progress fill/spy. */

.post-main .prose h2{scroll-margin-top:120px}

.post-toc{display:none}

@media (min-width:1400px){
.post-toc{display:flex;gap:16px;position:fixed;left:40px;top:50%;transform:translateY(-50%);z-index:5;width:calc(50vw - 500px - 80px);max-width:240px}
.post-toc.toc-js{opacity:0;pointer-events:none;transition:opacity .3s ease}
.post-toc.toc-js.is-visible{opacity:1;pointer-events:auto}
.toc-track{position:relative;flex:none;width:1px;background:rgba(0,0,0,.15)}
.toc-fill{position:absolute;top:0;left:-.5px;width:2px;height:0;background:#000}
.post-toc ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.post-toc a{display:block;font-size:12px;line-height:1.4;font-weight:400;color:rgba(0,0,0,.4);text-decoration:none;transition:color .2s ease}
.post-toc a:hover{color:#000}
.post-toc a[aria-current="true"]{color:#000;font-weight:500}
}
