/* Demo-only additions. Original layout, image frames and animation rules stay in style.css. */
:root {
  --demo-banner-height: 36px;
}
.demo-banner {
  position: fixed;
  inset: 0 0 auto;
  min-height: var(--demo-banner-height);
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 7px 12px;
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
  line-height: 22px;
  font-weight: 600;
}
.demo-banner a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Only the navigation offset changes to keep it clear of the required top notice. */
#header {
  top: calc(18px + var(--demo-banner-height));
}
.reading-progress {
  top: var(--demo-banner-height);
}
.demo-image-label {
  position: absolute;
  inset: 16px auto auto 16px;
  z-index: 3;
  padding: 5px 9px;
  border: 1px solid #d8d8cd;
  background: #f3f1ebeb;
  color: #292c26;
  font:
    11px/1.5 Plex,
    sans-serif;
  letter-spacing: 0;
  pointer-events: none;
}
.demo-notice {
  padding: 28px 0;
  border-block: 1px solid var(--line);
  color: var(--ink);
}
.demo-notice h2 {
  margin: 0 0 16px;
  font:
    600 20px/1.6 Plex,
    sans-serif;
  letter-spacing: normal;
}
.demo-notice p {
  margin: 12px 0;
  max-width: none;
  font:
    16px/1.9 Plex,
    sans-serif;
  color: var(--ink);
}
#demo-message {
  width: min(540px, calc(100% - 40px));
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
#demo-message::backdrop {
  background: #272b2580;
}
#demo-message h2 {
  margin: 0 0 16px;
  font:
    600 24px/1.5 Plex,
    sans-serif;
}
#demo-message p {
  font:
    16px/1.8 Plex,
    sans-serif;
}
.demo-dismiss {
  margin-top: 20px;
  padding: 10px 24px;
  border: 1px solid var(--ink);
  background: var(--dark);
  color: var(--paper);
  font: inherit;
  cursor: pointer;
}
@media (max-width: 900px) {
  :root {
    --demo-banner-height: 48px;
  }
  .demo-banner {
    padding: 3px 12px;
    line-height: 21px;
  }
  #header {
    top: calc(12px + var(--demo-banner-height));
  }
}
