/* Unbroken binding, not a fixed progress bar. The sheet has no hit targets,
   owns no layout height and cannot intercept a touch, text selection or link. */
#main,.thread-leaves {position:relative;}
.thread-sheet {position:absolute;inset:0;width:100%;height:100%;z-index:6;display:block;overflow:hidden;pointer-events:none;visibility:hidden;--line:#f52e14;}
[data-thread-ready] .thread-sheet[data-inked] {visibility:visible;}
.thread-line {fill:none;stroke:var(--line);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1 1;stroke-dashoffset:1;}
.thread-nib {fill:#ff8354;stroke:#aa3122;stroke-width:.8;}
[data-thread-sheet=margin] {--line:#ab482e;}.thread-sheet[data-thread-sheet=margin] .thread-line {stroke-width:1.1;opacity:.76;}
.thread-sheet[data-static] .thread-nib {display:none;}
/* Ordinary print binding when scripts aren't available. On the cover it starts
   below the epigraph, not at the top of the portrait. */
body:not(.is-landing) #main:not([data-thread-ready])::before,#main:not([data-thread-ready]) [data-thread-fallback]::before {content:"";position:absolute;z-index:5;pointer-events:none;left:clamp(5px,1.6vw,26px);top:0;bottom:0;width:1px;background:#c25339;}
body:not(.is-landing) #main:not([data-thread-ready])::before {left:clamp(4px,.55vw,9px);top:var(--head-space,0);opacity:.6;}
#main:not([data-thread-ready]) .end-signature::after {content:"";position:absolute;inset:65% 0 auto;height:1px;background:#f54a23;}
/* Reserve a printer's margin instead of drawing over dates, captions or links. */
.thread-leaves {--folio-inset:clamp(22px,5.8vw,112px);}
.thread-leaves :is(.mega-index,.acid-repos) .wrap-wide {width:min(calc(100% - 2 * var(--folio-inset)),1600px);}
.thread-leaves .mega-row a {width:min(calc(100% - 2 * var(--folio-inset)),1600px);padding-inline:0;}
/* The moving ink is printed first. Mounts and labels are real DOM above it;
   no screen-space mask, border overlay or cloned pictures in the panorama. */
.gallery-stage {position:relative;isolation:isolate;}
.press-thread {display:block;position:absolute;left:0;top:0;height:100%;width:100%;overflow:visible;z-index:0;visibility:hidden;pointer-events:none;--line:#f52e14;}
[data-thread-ready] .press-thread[data-inked] {visibility:visible;}
.wall-pin .press-thread {transform:translate3d(var(--wall-x,0px),0,0);}
.gallery-folio,.work-clip,.work-colophon {position:relative;z-index:1;}
.print-mount {display:block;min-width:0;background:var(--sheet);}
.wall-pin .print-mount {aspect-ratio:var(--print-ratio);width:min(100%,calc(63svh * var(--print-ratio)));}
.h-gallery.is-index .print-label {background:var(--sheet);}
.press-line {fill:none;stroke:var(--line);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1 1;stroke-dashoffset:1;}
.press-nib {fill:#ff8354;stroke:#aa3122;stroke-width:.8;}
.press-thread[data-static] .press-nib {display:none;}
.id-route {display:flex;gap:0;margin:0 0 15px;border-block:1px solid #a59a89;}
.id-route a {flex:1;padding:7px 2px;color:inherit;text-decoration:none;text-align:center;font:650 11px/1.2 var(--f-sans);}
.id-route a[aria-current=location],.id-route a:is(:hover,:focus-visible) {background:#322925;color:#fff2de;}
.toc a[aria-current=location] {text-decoration:underline;text-underline-offset:3px;text-decoration-color:#b54c31;}
@media(max-width:700px){.thread-line,.press-line {stroke-width:1.45;}}
@media print{.thread-sheet,.press-thread,.end-signature,#main::before,[data-thread-fallback]::before {display:none!important;}}

/* The fourth print feeds the right edge of this sheet. Its live impression
   replaces the bitmap; neither the line nor an invisible canvas owns a link. */
[data-fork-sheet] {display:none;}
@media (prefers-reduced-motion:no-preference) and (min-height:320px){
 .fork-leaf[data-fork-pin] {height:calc(100svh + clamp(630px,155svh,1700px));}
 [data-fork-pin] .studio-fork {position:sticky;top:0;height:100svh;min-height:0;}
 [data-fork-pin] .studio-fork>a {flex:1;transition:none;}

 [data-fork-pin] .fork-type {z-index:2;}
 [data-fork-pin] a:is(:hover,:focus-visible) .fork-type small {text-decoration:underline;text-underline-offset:4px;}
 [data-fork-ready] .fork-figure--code img {visibility:hidden;}
 [data-fork-ready] [data-fork-sheet] {display:block;position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;fill:none;stroke:#f52e14;stroke-linecap:round;stroke-linejoin:round;}
 [data-fork-sheet] path {stroke-width:1.7;stroke-dasharray:1 1;stroke-dashoffset:1;}
 [data-fork-sheet] :is([data-empty],circle:not([data-writing])) {visibility:hidden;}
 [data-fork-sheet] circle {fill:#ff8354;stroke:#a93621;stroke-width:.8;}
}
@media (min-width:681px){
 [data-fork-pin] .fork-figure--code {right:1.1vw;bottom:9%;width:65%;height:85%;transform:none;}
}
@media print{.fork-leaf[data-fork-pin]{height:auto}.fork-leaf .studio-fork{position:relative}.fork-leaf [data-fork-sheet]{display:none}.fork-leaf .fork-figure--code img{visibility:visible}}
