/* PostRoll Page Studio — viewer chrome. Copyright PostRoll. AGPL-3.0. */
html,
body {
  margin: 0;
  padding: 0;
}
body {
  background: #e8e4dc;
  font:
    14px/1.45 system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: #1d232a;
}
body.host {
  background: #5f666e;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 12px 16px;
  background: #1d232a;
  color: #f4f1ea;
}
.bar-title {
  font-weight: 600;
  margin-right: auto;
}
.bar-status {
  opacity: 0.85;
}
.bar-failed .bar-status {
  opacity: 1;
  color: #f6c46a;
}
.bar-print {
  font: inherit;
  font-weight: 600;
  border: 0;
  border-radius: 6px;
  padding: 7px 12px;
  background: #e0a33b;
  color: #1d232a;
  cursor: pointer;
}
.bar-print:disabled {
  opacity: 0.6;
  cursor: default;
}
.bar-help ul {
  margin: 6px 0 0 18px;
  padding: 0;
}
.bar-help summary,
.bar-source {
  color: #f4f1ea;
  cursor: pointer;
}

/* Vivliostyle shows one page at a time; the preview scrolls through them all. */
@media screen {
  .vp-all [data-vivliostyle-outer-zoom-box],
  .vp-all [data-vivliostyle-spread-container] {
    display: block !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    transform: none !important;
  }
  .vp-all [data-vivliostyle-page-container] {
    display: block !important;
    margin: 0 auto 12px !important;
  }
}
@media print {
  .bar {
    display: none !important;
  }
  body {
    background: none;
  }
}

.about {
  max-width: 680px;
  margin: 48px auto;
  padding: 0 16px;
}
.about code {
  font-size: 0.92em;
}
