/* Center the chapter navigation on the viewport, with balanced side space. */
@media screen and (min-width:1100px) {
  .site-header {
    grid-template-columns:155px minmax(0,1fr) 155px!important;
  }
  .site-header .chapter-nav {
    grid-column:2!important;
    grid-row:1/3!important;
    justify-content:center;
  }
  .site-header .quick-resume,
  .site-header .header-cookbook-link {
    grid-column:3!important;
  }
}
@media screen and (min-width:761px) and (max-width:1099px) {
  .site-header {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  }
  .site-header .chapter-nav {
    grid-column:1/-1!important;
    grid-row:1!important;
    justify-content:center;
  }
  .site-header .quick-resume {
    grid-column:1!important;
    grid-row:2!important;
    justify-self:end!important;
  }
  .site-header .header-cookbook-link {
    grid-column:2!important;
    grid-row:2!important;
    justify-self:start!important;
  }
}

/* Keep the book's position and cover rotation on the same animation clock. */
@media (prefers-reduced-motion:no-preference) {
  .book-stage,
  .book-scene.is-closing .book-stage {
    transition:transform .85s cubic-bezier(.4,0,.2,1)!important;
  }
  .book-cover-sheet,
  .book-scene.is-closing .book-cover-sheet {
    transition:transform .85s cubic-bezier(.4,0,.2,1)!important;
  }
}
.book-stage.is-open .book-cover-front::after {
  animation:none!important;
  opacity:0;
}

.book-turn-next { pointer-events:auto; }
.book-turn-next span { pointer-events:none; }
