/* Document preview pages (document.php, reader: assets/js/doc-preview.js).
   Only the theme's own colours (style.css :root): --color-primary (green),
   --color-secondary (near black), --color-body (grey text) and, in dark mode,
   --color-success, with the theme's greys and white. No orange (as asked).
   Headings in Exo, text in Albert Sans. The hero and the reader are marked
   .dm-keep so the site's dark mode script leaves them alone: their dark
   colours are set here instead (paper stays white in both). */

.ndp {
  --ndp-green: var(--color-primary, #006834);
  --ndp-dark: var(--color-secondary, #1f1f25);
  --ndp-accent: var(--color-primary, #006834);
  --ndp-ink: var(--color-heading-1, #1f1f25);
  --ndp-muted: var(--color-body, #6e777d);
  --ndp-surface: #ffffff;
  --ndp-soft: #f7f7f7;
  --ndp-stage: #eaeaea;
  --ndp-line: #eaeaea;
  --ndp-shadow: 0 24px 60px -24px rgba(31, 31, 37, .35);
  font-family: 'Albert Sans', sans-serif;
  color: var(--ndp-ink);
}
html[data-theme="dark"] .ndp {
  --ndp-ink: #ffffff;
  --ndp-muted: #a7b0ab;
  --ndp-accent: var(--color-success, #3eb75e);
  --ndp-surface: var(--color-secondary, #1f1f25);
  --ndp-soft: #0f1512;
  --ndp-stage: #0f1512;
  --ndp-line: rgba(255, 255, 255, .1);
  --ndp-shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
}
.ndp-vh {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------------------------------------------------------------- hero */
.ndp-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 56px 0 96px;
  background: var(--ndp-green);
}
/* a field of solar panels running away towards the horizon */
.ndp-hero::before {
  content: "";
  position: absolute;
  left: -20%; right: -20%; bottom: -38%;
  height: 78%;
  background-image:
    linear-gradient(rgba(255, 255, 255, .13) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(255, 255, 255, .13) 1.5px, transparent 1.5px);
  background-size: 64px 40px;
  transform: perspective(520px) rotateX(58deg);
  transform-origin: 50% 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 45%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 45%);
  pointer-events: none;
}

.ndp-hero .container { position: relative; z-index: 1; }

.ndp-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 36px;
  font-size: 14px;
  color: rgba(255, 255, 255, .72);
}
.ndp-crumbs a { color: rgba(255, 255, 255, .86); text-decoration: none; transition: color .2s; }
.ndp-crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ndp-crumbs a:last-child { color: #fff; font-weight: 600; }
.ndp-crumbs i { font-size: 10px; opacity: .6; }

.ndp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 64px;
  align-items: center;
}

.ndp-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  backdrop-filter: blur(6px);
}
.ndp-chip i { color: #fff; }

.ndp-title {
  margin: 18px 0 16px;
  font-family: 'Exo', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -.01em;
  color: #fff;
  overflow-wrap: anywhere;
}
.ndp-lead {
  max-width: 640px;
  margin: 0 0 26px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .84);
}

.ndp-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}
.ndp-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .18);
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.ndp-facts li[hidden] { display: none; }
.ndp-facts li i { color: #fff; }
.ndp-facts li.is-new { animation: ndp-pop .45s ease both; }
@keyframes ndp-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------- buttons */
.ndp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
}
.ndp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  font-family: 'Exo', sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.ndp-btn:hover { transform: translateY(-2px); text-decoration: none; }
.ndp-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ndp-btn--primary {
  background: #fff;
  color: var(--ndp-green);
  box-shadow: 0 12px 28px -12px rgba(31, 31, 37, .5);
}
.ndp-btn--primary:hover { background: var(--ndp-dark); color: #fff; }
/* on the light panels (reader messages, office files) the main button is green */
.ndp-failed .ndp-btn--primary, .ndp-office .ndp-btn--primary { background: var(--ndp-green); color: #fff; }
.ndp-failed .ndp-btn--primary:hover, .ndp-office .ndp-btn--primary:hover { background: var(--ndp-dark); color: #fff; }
.ndp-failed .ndp-btn:focus-visible, .ndp-office .ndp-btn:focus-visible { outline-color: var(--ndp-accent); }
.ndp-btn--ghost {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
}
.ndp-btn--ghost:hover { background: #fff; border-color: #fff; color: var(--ndp-green); }
.ndp-btn--text {
  min-height: 44px;
  padding: 0 6px;
  color: #fff;
  font-weight: 600;
  font-family: 'Albert Sans', sans-serif;
}
.ndp-btn--text:hover { color: #fff; transform: none; text-decoration: underline; text-underline-offset: 4px; }
.ndp-btn-note {
  font-family: 'Albert Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
}
.ndp-btn--ghost:hover .ndp-btn-note { background: rgba(0, 104, 52, .1); }

/* -------------------------------------------------------------- share */
.ndp-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
}
.ndp-share h6 {
  margin: 0 6px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, .75);
}
.ndp-share button {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s;
}
.ndp-share button:hover { background: #fff; color: var(--ndp-green); transform: translateY(-2px); }
.ndp-share button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.ndp-copied { font-size: 13px; font-weight: 600; color: #fff; }

/* -------------------------------------------- the cover: a stack of paper */
.ndp-cover {
  position: relative;
  display: block;
  width: 100%;
  max-width: 340px;
  justify-self: center;
  aspect-ratio: 1 / 1.3;
  text-decoration: none;
  perspective: 1200px;
}
.ndp-sheet {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.ndp-sheet--back { transform: rotate(8deg) translate(18px, 6px); background: #eaeaea; }
.ndp-sheet--mid  { transform: rotate(3.5deg) translate(8px, 2px); background: #f7f7f7; }
.ndp-sheet--front {
  overflow: hidden;
  transform: rotate(-3deg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ndp-cover:hover .ndp-sheet--front,
.ndp-cover:focus-visible .ndp-sheet--front { transform: rotate(0deg) translateY(-10px) scale(1.02); }
.ndp-cover:hover .ndp-sheet--back { transform: rotate(11deg) translate(26px, 8px); }
.ndp-cover:hover .ndp-sheet--mid { transform: rotate(5deg) translate(12px, 2px); }
.ndp-cover:focus-visible { outline: none; }
.ndp-cover:focus-visible .ndp-sheet--front { box-shadow: 0 0 0 4px #fff, 0 30px 60px -20px rgba(0, 0, 0, .5); }

.ndp-cover-img,
.ndp-cover canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.ndp-cover canvas { animation: ndp-fade .6s ease both; }
@keyframes ndp-fade { from { opacity: 0; } to { opacity: 1; } }

/* before the first page arrives: a page sketched in lines */
.ndp-cover-blank {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  padding: 18% 14%;
}
.ndp-cover-blank i { font-size: 54px; color: var(--ndp-green); margin-bottom: 10px; }
.ndp-cover-blank span {
  display: block;
  height: 10px;
  width: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #eaeaea 0%, #f7f7f7 50%, #eaeaea 100%);
  background-size: 200% 100%;
  animation: ndp-shimmer 1.4s linear infinite;
}
.ndp-cover-blank span:nth-child(3) { width: 82%; }
.ndp-cover-blank span:nth-child(4) { width: 64%; }
@keyframes ndp-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.ndp-cover.has-page .ndp-cover-blank,
.ndp-cover.has-page .ndp-cover-img { display: none; }

.ndp-cover-tag {
  position: absolute;
  right: 14px; bottom: 14px;
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--ndp-green);
  color: #fff;
  font-family: 'Exo', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  box-shadow: 0 6px 16px -6px rgba(31, 31, 37, .5);
}

/* ------------------------------------------------------------- reader */
.ndp-reader-section {
  position: relative;
  margin-top: -56px;
  padding: 0 0 90px;
  background: linear-gradient(to bottom, transparent 56px, var(--ndp-soft) 56px);
  scroll-margin-top: 130px;
}
.ndp-reader {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--ndp-surface);
  border: 1px solid var(--ndp-line);
  box-shadow: var(--ndp-shadow);
}

.ndp-toolbar {
  display: flex;
  align-items: center;
  gap: 10px 16px;
  padding: 10px 14px;
  background: var(--ndp-dark);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.ndp-pager, .ndp-zoom, .ndp-toolbar-end { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.ndp-pager { margin-left: auto; }
.ndp-toolbar-end { margin-left: auto; gap: 6px; }

.ndp-tool, .ndp-zoom-level {
  flex: 0 0 auto;
  width: auto;
  height: 40px;
  min-width: 40px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .88);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.ndp-tool:hover, .ndp-zoom-level:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.ndp-tool:focus-visible, .ndp-zoom-level:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.ndp-tool[aria-pressed="true"] { background: rgba(255, 255, 255, .16); color: #fff; }
.ndp-tool:disabled { opacity: .35; cursor: default; background: transparent; }
.ndp-zoom-level {
  min-width: 64px;
  border: 1px solid rgba(255, 255, 255, .18);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}
.ndp-tool--download {
  background: var(--ndp-green);
  color: #fff;
  padding: 0 14px;
}
.ndp-tool--download:hover { background: #fff; color: var(--ndp-green); }

.ndp-page-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 4px;
  font-size: 14px;
  color: rgba(255, 255, 255, .75);
  white-space: nowrap;
}
.ndp-page-box input {
  width: 52px;
  height: 36px;
  padding: 0 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ndp-page-box input:focus { outline: 2px solid #fff; outline-offset: 0; border-color: transparent; }
.ndp-of b { color: #fff; font-variant-numeric: tabular-nums; }

.ndp-stage {
  position: relative;
  display: flex;
  height: clamp(480px, 82vh, 1100px);
  background: var(--ndp-stage);
}
.ndp-pages {
  flex: 1 1 auto;
  min-width: 0;
  overflow: auto;
  padding: 28px 24px 40px;
  scroll-behavior: auto;
  overscroll-behavior: contain;
  position: relative;
}
.ndp-pages:focus { outline: none; }
.ndp-pages:focus-visible { box-shadow: inset 0 0 0 3px var(--ndp-accent); }

.ndp-page {
  position: relative;
  margin: 0 auto 22px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 12px 32px -14px rgba(0, 40, 20, .35);
  overflow: hidden;
}
.ndp-page canvas { display: block; width: 100%; height: 100%; }
.ndp-page::after {
  content: attr(data-label);
  position: absolute;
  right: 10px; bottom: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(31, 31, 37, .75);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  transition: opacity .2s;
}
.ndp-page:hover::after { opacity: 1; }
.ndp-page:not(.is-drawn) {
  background:
    linear-gradient(90deg, #f7f7f7 0%, #ffffff 50%, #f7f7f7 100%) 0 0 / 200% 100%;
  animation: ndp-shimmer 1.6s linear infinite;
}

/* the page overview */
.ndp-thumbs {
  flex: 0 0 168px;
  overflow: auto;
  padding: 18px 14px;
  background: var(--ndp-surface);
  border-right: 1px solid var(--ndp-line);
}
.ndp-thumbs[hidden] { display: none; }
.ndp-thumb {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: center;
  color: var(--ndp-muted);
  font-size: 12px;
  font-weight: 600;
}
.ndp-thumb-paper {
  display: block;
  margin: 0 auto 6px;
  width: 112px;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 0 0 1px var(--ndp-line), 0 4px 10px -4px rgba(0, 0, 0, .25);
  overflow: hidden;
  transition: box-shadow .15s, transform .15s;
}
.ndp-thumb canvas { display: block; width: 100%; height: 100%; }
.ndp-thumb:hover .ndp-thumb-paper { transform: translateY(-2px); }
.ndp-thumb.is-current { color: var(--ndp-accent); }
.ndp-thumb.is-current .ndp-thumb-paper { box-shadow: 0 0 0 3px var(--ndp-accent), 0 6px 14px -4px rgba(31, 31, 37, .4); }
.ndp-thumb:focus-visible { outline: none; }
.ndp-thumb:focus-visible .ndp-thumb-paper { box-shadow: 0 0 0 3px var(--ndp-green); }

/* opening, and when it can't */
.ndp-status, .ndp-failed {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--ndp-stage);
  z-index: 3;
}
.ndp-reader[data-state="ready"] .ndp-status { opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.ndp-status-card {
  max-width: 380px;
  text-align: center;
  color: var(--ndp-ink);
}
.ndp-status-card p {
  margin: 18px 0 14px;
  font-family: 'Exo', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ndp-ink);
}
.ndp-status-note { display: block; margin-top: 14px; color: var(--ndp-muted); font-size: 13px; line-height: 1.5; }
.ndp-spinner { display: inline-flex; gap: 8px; }
.ndp-spinner i {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--ndp-green);
  animation: ndp-bounce 1s ease-in-out infinite;
}
.ndp-spinner i:nth-child(2) { background: var(--ndp-muted); animation-delay: .15s; }
.ndp-spinner i:nth-child(3) { animation-delay: .3s; }
@keyframes ndp-bounce { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-10px); opacity: 1; } }
.ndp-progress {
  height: 6px;
  width: 240px;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--ndp-line);
  overflow: hidden;
}
.ndp-progress span {
  display: block;
  height: 100%;
  width: 8%;
  border-radius: inherit;
  background: var(--ndp-accent);
  transition: width .25s ease;
}

.ndp-failed { flex-direction: column; text-align: center; z-index: 4; }
.ndp-failed[hidden] { display: none; }
.ndp-failed h3, .ndp-office h3 {
  margin: 18px 0 8px;
  font-family: 'Exo', sans-serif;
  font-size: 24px;
  color: var(--ndp-ink);
}
.ndp-failed p, .ndp-office p { max-width: 480px; margin: 0 auto 24px; color: var(--ndp-muted); line-height: 1.6; }
.ndp-failed-icon {
  width: 84px; height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: rgba(0, 104, 52, .1);
  color: var(--ndp-green);
  font-size: 38px;
}
.ndp-failed .ndp-actions, .ndp-office .ndp-actions { justify-content: center; }
.ndp-failed .ndp-btn--ghost, .ndp-office .ndp-btn--ghost, .ndp-missing .ndp-btn--ghost {
  color: var(--ndp-green);
  border-color: var(--ndp-green);
  background: transparent;
}
.ndp-failed .ndp-btn--ghost:hover, .ndp-office .ndp-btn--ghost:hover { background: var(--ndp-green); color: #fff; }
.ndp-failed .ndp-btn-note, .ndp-office .ndp-btn-note { background: rgba(0, 104, 52, .1); }
html[data-theme="dark"] .ndp-failed .ndp-btn--ghost,
html[data-theme="dark"] .ndp-office .ndp-btn--ghost { color: var(--ndp-accent); border-color: var(--ndp-accent); }
html[data-theme="dark"] .ndp-failed-icon { color: var(--ndp-accent); background: rgba(62, 183, 94, .12); }

/* Word, Excel and PowerPoint files */
.ndp-office {
  display: flex;
  gap: 28px;
  align-items: center;
  padding: 40px;
  border-radius: 24px;
  background: var(--ndp-surface);
  border: 1px solid var(--ndp-line);
  box-shadow: var(--ndp-shadow);
}
.ndp-office h3 { margin-top: 0; }
.ndp-office p { margin-left: 0; }
.ndp-office .ndp-actions { justify-content: flex-start; }

/* full screen: the reader fills it */
.ndp-reader:fullscreen { border-radius: 0; border: 0; display: flex; flex-direction: column; }
.ndp-reader:fullscreen .ndp-stage { height: auto; flex: 1 1 auto; }
.ndp-reader:-webkit-full-screen { border-radius: 0; border: 0; display: flex; flex-direction: column; width: 100%; height: 100%; }
.ndp-reader:-webkit-full-screen .ndp-stage { height: auto; flex: 1 1 auto; }

/* ------------------------------------------------------- more documents */
.ndp-related { padding: 80px 0 100px; }
.ndp-related-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
}
.ndp-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ndp-accent);
}
.ndp-related h2 {
  font-weight: 700;
  margin: 0;
  font-family: 'Exo', sans-serif;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  color: var(--color-heading-1, #1f1f25);
}
.ndp-related .ndp-btn--text { color: var(--ndp-green); white-space: nowrap; }
html[data-theme="dark"] .ndp-related .ndp-btn--text { color: var(--ndp-accent); }
/* a related document drawn from its first page instead of the generic icon */
.ndp-related .news-card .thumbnail .inner img.ndp-paper {
  object-fit: cover;
  object-position: top center;
  padding: 0;
  background: #fff;
}

/* ------------------------------------------------- the "not found" page */
.ndp-hero--missing { padding: 90px 0 120px; }
.ndp-missing { max-width: 640px; margin: 0 auto; text-align: center; }
.ndp-missing .ndp-lead { margin: 0 auto 30px; }
.ndp-missing .ndp-actions { justify-content: center; }
.ndp-missing .ndp-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
.ndp-missing-icon {
  width: 96px; height: 96px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 28px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 44px;
  color: #fff;
}

/* ------------------------------------------------------------ smaller */
@media (max-width: 991px) {
  .ndp-hero { padding: 40px 0 88px; }
  .ndp-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .ndp-cover { max-width: 260px; order: -1; }
  .ndp-crumbs { margin-bottom: 28px; }
  .ndp-thumbs { position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; box-shadow: 12px 0 30px -12px rgba(0, 0, 0, .35); }
}
@media (max-width: 767px) {
  .ndp-hero { padding: 28px 0 80px; }
  .ndp-lead { font-size: 16px; }
  .ndp-cover { max-width: 210px; }
  .ndp-actions .ndp-btn { flex: 1 1 auto; justify-content: center; }
  .ndp-actions .ndp-btn--text { flex: 0 0 100%; }
  .ndp-toolbar { flex-wrap: wrap; padding: 8px; gap: 6px; }
  .ndp-pager { margin-left: 0; order: 3; flex: 1 1 100%; justify-content: center; }
  .ndp-toolbar-end { margin-left: auto; }
  .ndp-tool-label { display: none; }
  .ndp-stage { height: 78vh; }
  .ndp-pages { padding: 14px 10px 28px; }
  .ndp-reader { border-radius: 18px; }
  .ndp-office { flex-direction: column; text-align: center; padding: 28px 20px; }
  .ndp-office p { margin-left: auto; }
  .ndp-office .ndp-actions { justify-content: center; }
  .ndp-related { padding: 60px 0 70px; }
  .ndp-related-head { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .ndp-cover-blank span, .ndp-page:not(.is-drawn), .ndp-spinner i { animation: none; }
  .ndp-sheet, .ndp-btn { transition: none; }
}
