/* DatasheetHub PDF viewer (dsh-pdf-viewer.js). Theme colours when present, neutral otherwise. */
.dpv { border: 1px solid var(--dsh-line, #e2e8f0); border-radius: var(--dsh-radius, 8px); background: var(--dsh-surface, #fff); overflow: hidden; }
.dpv__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 6px 8px 6px 12px; border-bottom: 1px solid var(--dsh-line, #e2e8f0); background: var(--dsh-line-2, #f8fafc); }
.dpv__info { font-size: 13px; color: var(--dsh-muted, #64748b); font-variant-numeric: tabular-nums; }
.dpv__tools { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.dpv__btn { display: inline-flex; align-items: center; gap: 5px; height: 30px; min-width: 30px; justify-content: center; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: var(--dsh-ink, #0f172a); font: 600 13px/1 var(--dsh-font, system-ui, sans-serif); text-decoration: none; cursor: pointer; }
.dpv__btn:hover { background: var(--dsh-tint-2, #e2e8f0); color: var(--dsh-accent, #2563eb); }
.dpv__btn:focus-visible { outline: 2px solid var(--dsh-accent, #2563eb); outline-offset: 1px; }
.dpv__zoom { min-width: 44px; text-align: center; font-size: 12px; color: var(--dsh-muted, #64748b); font-variant-numeric: tabular-nums; }
.dpv__pages { position: relative; height: min(80vh, 1100px); min-height: 420px; overflow: auto; padding: 12px; background: #525659; display: flex; flex-direction: column; align-items: center; gap: 12px; overscroll-behavior: contain; }
.dpv__pages:focus { outline: none; }
.dpv__page { flex: 0 0 auto; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); max-width: none; position: relative; }
.dpv__page:empty::after { content: ""; position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; border: 3px solid #cbd5e1; border-top-color: #64748b; border-radius: 50%; animation: dpv-spin .8s linear infinite; }
.dpv__page canvas { display: block; }
.dpv__err { margin: auto; max-width: 420px; padding: 18px; border-radius: 8px; background: #fff; color: #334155; text-align: center; font-size: 14px; }
.dpv.is-error .dpv__pages { background: var(--dsh-line-2, #f1f5f9); }
@keyframes dpv-spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
  .dpv__pages { position: relative; height: 72vh; min-height: 360px; padding: 8px; }
  .dpv__btn span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .dpv__page:empty::after { animation: none; } }
/* section around it on post pages */
.dsh-pdfsec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dsh-pdfsec__meta { font-size: 13px; color: var(--dsh-muted, #64748b); }
