/* Sagatales booklet look: a saddle-stitched, soft-cover A4 booklet rather than a case-bound book.
   Load after print-reader.css (and after the site stylesheet). */
:is(.saga-print-host,.himmelsor-site):is(.saga-print-host,.himmelsor-site) :is(#reader,#inline-reader) .reader-stage :is(.spread,.folio){border-radius:0!important}
:is(.saga-print-host,.himmelsor-site):is(.saga-print-host,.himmelsor-site) :is(.reader-jacket,.saga-cover.reader-jacket){border-radius:0}
/* No boards: only a few thin sheets show under the open spread, trimmed flush with the cover. */
:is(.saga-print-host,.himmelsor-site):is(.saga-print-host,.himmelsor-site) :is(#reader,#inline-reader) .reader-stage .spread::before{
 inset:0 calc(var(--board-right,0%) - 1px) -3px calc(var(--board-inset,0%) - 1px)!important;border:0!important;border-radius:0!important;
 background:repeating-linear-gradient(to bottom,#f6f1e7 0 1px,#d8d0c0 1px 1.5px)!important;
 box-shadow:0 1px 0 #cfc7b6,0 12px 26px -8px #1d2c2440!important;
}
/* Soft glossy cover: a rolled fold at the spine instead of a hinge groove, and a sheen across the laminate. */
:is(.saga-print-host,.himmelsor-site):is(.saga-print-host,.himmelsor-site) .reader-jacket::after,
.saga-cover.reader-jacket::after{
 background:linear-gradient(90deg,#0b161d73 0,#ffffff47 .9%,#ffffff14 2%,transparent 4%),linear-gradient(112deg,transparent 28%,#ffffff2e 43%,#ffffff0d 51%,transparent 60%),var(--jacket-shade,linear-gradient(180deg,#192d3938 0%,#192d3929 19%,transparent 36%,transparent 82%,#192d3944 100%))!important;
}
/* Staples. Inside the centre spread the two legs are clinched towards each other; on the outside of the fold only the crown shows.
   --staple follows the height of the book (1 at 480px), so a small book on a phone gets small staples: about 4% of the page, as on a real A4 booklet. */
:is(.saga-print-host,.himmelsor-site):is(.saga-print-host,.himmelsor-site) :is(#reader,#inline-reader) .reader-stage .spread[data-staples="true"]::after{
 --k:var(--staple,1);
 --wire:linear-gradient(90deg,#4f555a,#aab0b5 28%,#f6f8f9 46%,#b9bfc4 62%,#585e63);
 --hole:radial-gradient(circle,#00000059 0 calc(1.1px*var(--k)),#00000026 calc(1.1px*var(--k)) calc(2.1px*var(--k)),transparent calc(2.6px*var(--k)));
 --cast:linear-gradient(90deg,transparent,#0000001f 38%,#00000030 50%,#0000001f 62%,transparent);
 --w:max(1px,calc(2px*var(--k)));--leg:calc(8.5px*var(--k));--gap:calc(5px*var(--k));--dot:calc(6px*var(--k));
 background:
  var(--wire) 50% calc(22% - var(--gap))/var(--w) var(--leg) no-repeat,var(--wire) 50% calc(22% + var(--gap))/var(--w) var(--leg) no-repeat,
  var(--hole) 50% calc(22% - 9.5px*var(--k))/var(--dot) var(--dot) no-repeat,var(--hole) 50% calc(22% + 9.5px*var(--k))/var(--dot) var(--dot) no-repeat,
  var(--cast) calc(50% + 1px) calc(22% + 1px)/calc(7px*var(--k)) calc(22px*var(--k)) no-repeat,
  var(--wire) 50% calc(78% - var(--gap))/var(--w) var(--leg) no-repeat,var(--wire) 50% calc(78% + var(--gap))/var(--w) var(--leg) no-repeat,
  var(--hole) 50% calc(78% - 9.5px*var(--k))/var(--dot) var(--dot) no-repeat,var(--hole) 50% calc(78% + 9.5px*var(--k))/var(--dot) var(--dot) no-repeat,
  var(--cast) calc(50% + 1px) calc(78% + 1px)/calc(7px*var(--k)) calc(22px*var(--k)) no-repeat,
  linear-gradient(90deg,transparent,#0000001c 45%,#ffffff30 52%,transparent) 50% 0/5px 100% no-repeat!important;
}
:is(.saga-print-host,.himmelsor-site):is(.saga-print-host,.himmelsor-site) :is(#reader,#inline-reader) .reader-stage .spread[data-staples="spine"]::after{
 --k:var(--staple,1);
 --wire:linear-gradient(90deg,#4f555a,#aab0b5 28%,#f6f8f9 46%,#b9bfc4 62%,#585e63);
 --w:max(1px,calc(2px*var(--k)));--crown:calc(20px*var(--k));
 background:
  var(--wire) calc(50% + 1.5px) 22%/var(--w) var(--crown) no-repeat,linear-gradient(90deg,transparent,#00000030,transparent) calc(50% + 3px) calc(22% + 1px)/calc(5px*var(--k)) calc(22px*var(--k)) no-repeat,
  var(--wire) calc(50% + 1.5px) 78%/var(--w) var(--crown) no-repeat,linear-gradient(90deg,transparent,#00000030,transparent) calc(50% + 3px) calc(78% + 1px)/calc(5px*var(--k)) calc(22px*var(--k)) no-repeat!important;
}
/* Start page hero: a thin booklet with a folded edge, not a board book with a spine. */
.himmelsor-site .hero #peek{--depth:2px!important;--board-radius:0!important}
.himmelsor-site .hero #peek .binding-spine{display:none!important}
.himmelsor-site .hero #peek .binding-front{border-radius:0!important}
.himmelsor-site .hero #peek .binding-back{background:#efe9dc!important;border-radius:0!important;box-shadow:10px 18px 26px #11251e33,2px 3px 4px #11251e26!important}
.himmelsor-site .hero #peek .binding-paper{border-block:0!important;background:repeating-linear-gradient(#f6f1e7 0 1px,#d8d0c0 1px 1.5px)!important}
.himmelsor-site .hero #peek::after{background:repeating-linear-gradient(to right,#f6f1e7 0 1px,#d8d0c0 1px 1.5px)!important}
.himmelsor-site .hero #peek .binding-front .cover-shade{box-shadow:inset 1px 0 0 #ffffff59,inset 5px 0 6px -5px #0b161d99!important}
.himmelsor-site .hero #peek .binding-front::before,.himmelsor-site .hero #peek .binding-front::after{left:.5px!important;width:2px!important;height:clamp(12px,3.4%,20px)!important;border-radius:1px;background:linear-gradient(90deg,#4f555a,#aab0b5 28%,#f6f8f9 46%,#b9bfc4 62%,#585e63)!important;box-shadow:1px 1px 1px #0005!important}
.himmelsor-site .hero #peek .binding-front::before{top:22%!important}
.himmelsor-site .hero #peek .binding-front::after{bottom:22%!important}
/* Prototype covers outside the reader. */
.px .cover{border-radius:0!important}
.px .cover:after{width:2.2%!important;background:linear-gradient(90deg,#0b161d66,#ffffff47 45%,transparent)!important}
