{"version":3,"mappings":"AAAA,qTAeA,2DAKA,gEAIA,2FAIA,6BAGA,gFAKA,wGAQE,6DAIA,sFAGA,+RAUE,qBAGA,iFAGA,8CAIE,4JAOA,iBAEE,sEAKA,oCAGA,uDAIE,yGAaN,2TAeA,6BAIA,sBACE,oDAGE,oBAEF,0DAMF,gEAGA,gIAOE,8CAIF,4GAKA,8BAGA,iFAMA,wFAEE,sDAIF,2FAGA,wCAMJ,8MAaA,uDAIA,uJAUE,4FAMA,0GASF,qLASE,iDACA,4CACA,qEACA,iEACA,oCACA,qCAEF,kDAIA,0FAKA,2GAIE,uCAGA,uCAIF,uGAIE,qCAGA,wCAIF,yDAKA,mBACE,4BAEE,gCAGA,kCAIF,+BAEE,wCAMJ,uCACA,aACE,4BACA,0BACA,sCAIE,8DAOJ,mCACE","sources":["pages.css"],"sourcesContent":[":root {\n  --paper-width: 210mm;\n  --paper-height: 297mm;\n  --paper-margin-top: 40px;\n  --paper-margin-right: 80px;\n  --paper-margin-bottom: 40px;\n  --paper-margin-left: 80px;\n  --page-header-height: 40px;\n  --page-header-bottom: 40px;\n  --page-footer-height: 40px;\n  --page-footer-top: 40px;\n  /* (copies, so that a landscape page can swap the sizes without a cycle) */\n  --paper-w: var(--paper-width);\n  --paper-h: var(--paper-height);\n}\n@page {\n  size: var(--paper-width) var(--paper-height);\n  margin: 0;\n}\n/* the page of a float that is too wide for a portrait page (pages.js): the paper turned */\n@page wide {\n  size: var(--paper-height) var(--paper-width);\n  margin: 0;\n}\n@page multiple {\n  margin-top: var(--paper-margin-top);\n  margin-bottom: var(--paper-margin-bottom);\n}\n.page-multiple {\n  page: multiple;\n}\n.page-wide {\n  page: wide;\n  --paper-width: var(--paper-h);\n  --paper-height: var(--paper-w);\n}\n.pagesjs {\n  padding: 0;\n  max-width: 100%;\n  margin: 5mm;\n  display: flex;\n  justify-content: center;\n  flex-wrap: wrap;\n  gap: 5mm;\n  .pagesjs-front, .chapter {\n    min-height: unset;\n    box-shadow: none;\n  }\n  & > *, &:not(:has(.pagesjs-front)):has(.chapter-toc) #TOC:not(.chapter-toc) {\n    display: none;\n  }\n  .pagesjs-page {\n    width: var(--paper-width);\n    height: var(--paper-height);\n    flex: none;  /* (keep the paper size in a narrow window: the content is laid out for it) */\n    padding: var(--paper-margin-top) var(--paper-margin-right) var(--paper-margin-bottom) var(--paper-margin-left);\n    break-before: page;  /* (not break-after: a named page after a break-after gets a blank page in Chrome) */\n    display: flex;\n    flex-direction: column;\n    justify-content: space-between;\n    overflow: hidden;\n    img {\n      max-width: 100%;\n    }\n    .chapter-before, .chapter-after, .buttons:has(+ .chapter-before) {\n      display: none;\n    }\n    #TOC {\n      border: none;\n      padding: 0;\n      margin-left: auto;\n      &:not(.chapter-toc):is(.fragment-first, :not(.pagesjs-fragmented))::before {\n        content: \"Contents\";\n        display: block;\n        font-weight: bold;\n        font-size: 1.5em;\n        margin-bottom: 1em;\n      }\n      a {\n        display: flex;\n        &::after {\n          content: attr(data-page-number);\n          align-self: end;\n          margin-left: 1ch;\n        }\n        .section-number {\n          margin-right: .3em;\n        }\n        .toc-text {\n          position: relative;\n          flex: 1 0;\n          overflow: hidden;\n          &::after {\n            content: \"\";\n            width: 100%;\n            position: absolute;\n            bottom: 1.5ex;\n            margin-left: 1ch;\n            border-bottom: dashed 1px;\n          }\n        }\n      }\n    }\n    /* wrappers cloned from the content root and its ancestors: keep their\n       context for CSS selectors, but not their boxes */\n    .pagesjs-wrap {\n      display: block !important;\n      margin: 0 !important;\n      padding: 0 !important;\n      border: none !important;\n      box-shadow: none !important;\n      background: none !important;\n      width: auto !important;\n      max-width: none !important;\n      min-height: 0 !important;\n      height: auto !important;\n      float: none !important;\n      position: static !important;\n      transform: none !important;\n    }\n    .pagesjs-run {\n      display: block;\n    }\n    /* pieces of a fragmented element: slice it (instead of decorating each piece) */\n    .pagesjs-fragmented {\n      &:not(.fragment-first) {\n        border-top: none;\n        margin-top: 0;\n        & > thead { opacity: .5; }\n      }\n      &:not(.fragment-last) {\n        border-bottom: none;\n        margin-bottom: 0;\n      }\n    }\n    /* a list item continued from the previous page has no marker */\n    li.pagesjs-fragmented:not(.fragment-first)::marker {\n      content: \"\";\n    }\n    .fullwidth {\n      float: none;\n      max-width: none;\n      width: var(--paper-width);\n      margin-left: calc(0px - var(--paper-margin-left));\n      transform: none;\n      /* (article.css caps the content at the viewport, which differs between screen and print) */\n      & * { max-width: calc(var(--paper-width) - 4em); }\n    }\n    /* center the content of a page vertically: the page of a float that takes the whole\n       page, or of a part title (the classes are set by pages.js) */\n    &:is(.page-float, .page-center) .pagesjs-body {\n      display: flex;\n      flex-direction: column;\n      justify-content: safe center;  /* (content taller than the page starts at the top) */\n    }\n    .footnotes {\n      margin-top: 1.5em;\n    }\n    .footnotes::before {\n      content: \"\";\n      display: block;\n      max-width: 20em;\n      border-top: solid 1px;\n    }\n    &:has(.side-left, .embed-left) .pagesjs-body {\n      padding-left: calc(0px - var(--side-margin));\n      .fullwidth {\n        transform: translate(var(--side-margin));\n      }\n    }\n    &:has(.side-right, .embed-right) .pagesjs-body {\n      padding-right: calc(0px - var(--side-margin));\n    }\n    .side {\n      font-size: .9em;\n      background: none;\n    }\n  }\n}\n.pagesjs > .pagesjs-progress {\n  display: block;\n  position: fixed;\n  top: 50%;\n  left: 50%;\n  transform: translate(-50%, -50%);\n  z-index: 9999;\n  padding: .3em .8em;\n  border-radius: 1em;\n  background: rgba(0, 0, 0, .75);\n  color: white;\n  font: 14px sans-serif;\n}\n.pagesjs-hit {\n  outline: 3px solid #e33;\n  outline-offset: 2px;\n}\n.pagesjs-tools {\n  position: absolute;  /* (scrolls with the unpaginated page; fixed when paginated) */\n  top: 1em;\n  left: 1em;\n  z-index: 9999;\n  display: flex;\n  flex-direction: column;\n  align-items: flex-start;\n  gap: .5em;\n  font: 14px sans-serif;\n  & > a, .pagesjs-panel {\n    background: Canvas;\n    color: CanvasText;\n    border: 1px solid;\n    border-radius: .3em;\n  }\n  & > a {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    width: 2.2em;\n    height: 2.2em;\n    text-decoration: none;\n  }\n}\n.pagesjs-panel {\n  position: absolute;\n  top: 0;\n  left: calc(100% + .5em);  /* (beside the buttons) */\n  width: min(30em, calc(100vw - 5em));\n  max-height: calc(100vh - 2em);  /* (the panel starts at the top of the toolbar, 1em from the top) */\n  overflow: auto;\n  padding: .5em 1em;\n  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);\n  ul { margin: 0; padding-left: 1.2em; list-style: none; }\n  & > nav > ul, .pagesjs-problems { padding-left: 0; }\n  a { display: block; padding: .15em 0; color: inherit; text-decoration: none; }\n  a::before { content: attr(data-page-number); float: right; opacity: .6; }\n  a:hover { text-decoration: underline; }\n  li { cursor: pointer; padding: .15em 0; }\n}\n.pagesjs-settle .pagesjs-body {\n  /* the probe page that holds all content has sides, but normal pages don't */\n  padding: 0 !important;\n}\n.pagesjs-header, .pagesjs-footer {\n  font-size: .9em;\n  display: flex;\n  justify-content: space-between;\n}\n.pagesjs-header {\n  flex: 0 0 var(--page-header-height);\n  margin-bottom: var(--page-header-bottom);\n  align-items: end;\n  &::before {\n    content: attr(data-main-title);\n  }\n  &::after {\n    content: attr(data-page-title);\n  }\n}\n.pagesjs-footer {\n  flex: 0 0 var(--page-footer-height);\n  margin-top: var(--page-footer-top);\n  align-items: start;\n  &::before {\n    content: attr(data-page-url);\n  }\n  &::after {\n    content: attr(data-page-number);\n  }\n}\n.pagesjs-body {\n  flex-grow: 1;\n  min-height: 0;  /* don't let the body push the footer down when content overhangs by a few pixels */\n  position: relative;\n}\n@media only screen {\n  .pagesjs {\n    background: #f7f7f7;\n    .pagesjs-page {\n      background: white;\n    }\n    .page-multiple {\n      overflow-y: auto;\n    }\n  }\n  .pagesjs-filling {\n    display: block;\n    .pagesjs-page {\n      opacity: 0;  /* don't show the page that is being filled (only the progress) */\n      height: auto;\n    }\n  }\n}\n.pagesjs .pagesjs-tools { position: fixed; }\n@media print {\n  .pagesjs-tools { display: none; }\n  .pagesjs-hit { outline: none; }\n  .pagesjs {\n    display: block;  /* (named pages, i.e., landscape ones, don't work in a flex container) */\n    margin: 0;\n    gap: 0;\n    .page-multiple {\n      padding-top: 0;\n      padding-bottom: 0;\n      height: auto;\n    }\n  }\n}\n@media (prefers-color-scheme: dark) {\n  .pagesjs-page {\n    box-shadow: 0 0 0 1px #bbb;\n  }\n}\n"],"names":[]}