/* PDF 內嵌檢視器的容器樣式（文字層本身的樣式在 textlayer.css，那份是官方抽出來的別動） */

.pdf-embed {
  margin: 28px 0;
}

.pdf-embed-pages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* 每一頁：canvas 與文字層疊在一起，所以要 relative 當定位基準 */
.pdf-embed-page {
  position: relative;
  max-width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgb(0 0 0 / 0.08);
  background: #fff;
}

.pdf-embed-page canvas {
  display: block;
}

.pdf-embed-status,
.pdf-embed-fallback {
  padding: 32px 16px;
  text-align: center;
  color: #666;
  font-size: 15px;
  background: #fafafa;
  border: 1px dashed #ddd;
  border-radius: 6px;
}

.pdf-embed-fallback a {
  color: #d7263d;
  text-decoration: underline;
}

/* 選取時看得到反白——文字層的字本身是透明的，
   不設這個使用者會以為「選不起來」，其實只是看不見 */
.pdf-embed .textLayer ::selection {
  background: rgb(0 100 255 / 0.28);
}
