/* "From behind" page turns between the sections of every page.
   js/turn.js wraps each section as a sheet. A sheet holds still (position: sticky) while the sheet before it
   lifts away, so it is uncovered from underneath; the browser does the holding, the script only adds the
   slight scale and the fading shade. */
.turn-wrap { position: relative; }
.turn-wrap > .turn-sheet { position: sticky; top: var(--turn-top, 0px); }
/* the shadow a sheet casts on the one underneath: a thin strip under its bottom edge (a shadow around the whole sheet is costly to draw on long sections) */
.turn-wrap > .turn-sheet::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 42px; background: linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, 0)); pointer-events: none; }
.turn-wrap:last-child > .turn-sheet::before, .turn-wrap > footer.turn-sheet::before { display: none; }
.turn-wrap.turn-first > .turn-sheet { position: relative; top: auto; }
.turn-wrap > div.turn-sheet { background: var(--paper); }
.turn-wrap > .turn-sheet::after { content: ""; position: absolute; inset: 0; z-index: 5; background: #000; opacity: var(--shade, 0); pointer-events: none; }
.turn-gap { pointer-events: none; }
@media print { .turn-wrap { margin-top: 0 !important; } .turn-gap { display: none; } .turn-wrap > .turn-sheet { position: static; } .turn-wrap > .turn-sheet::before { display: none; } }
