/* 參考來源長 URL 溢出修正（2026-12-01）
 *
 * 問題：文章頁「參考來源」清單中的完整 URL（如
 *   https://pmc.ncbi.nlm.nih.gov/articles/PMC12425691/）
 * 在 320px 行動視窗無法斷行，導致 documentElement.scrollWidth
 * 超過 clientWidth → 整頁水平溢出。
 *
 * 修法：讓 URL 可在任意字元處斷行，並移除連結的下劃線干擾
 *      （長 URL 下劃線會讓閱讀更困難）。
 * 另修正 .term-table-wrap 內表格未 clamp 的問題（表格可橫向捲動，
 * 但其本身不應撐大頁面寬度）。
 */

.article-refs,
.article-refs ol,
.article-refs li {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-refs a {
  overflow-wrap: anywhere;
  word-break: break-all;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.article-refs a:hover {
  text-decoration: underline;
}

/* 術語對照表：容器可橫向捲動，表格本身不撐大頁面 */
.term-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.term-table-wrap table {
  max-width: 100%;
}

/* 一般的寬表格容器（若各頁使用不同 class 名，一併涵蓋） */
.table-wrap,
.table-scroll,
.table-responsive {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
