/* ==========================================================================
   靜態法遵頁排版修復層  v1.54  ·  [11] / V-01 / V-03
   --------------------------------------------------------------------------
   適用：/p/:slug 六個靜態法遵頁
         （views/misc.js 的 <div class="wrap static-page"> /
          <p class="page-sub"> / <div class="rich static-body">）。
   由 views/layout.js 加 body.is-static-page 並條件載入本檔；
   移除該 <link> 即整層回退。這些頁不載入 doc-page.css，
   故 [11] / V-01 / V-03 的修法必須寫在這裡。

   紀律：全部規則掛 body.is-static-page，不洩漏到其他頁面；
   不改 DOM、不改 class 名、不動前四層 CSS 的結構性規則。
   ========================================================================== */

/* --------------------------------------------------------------------------
   v1.54 修復層（逐條標註修復編號，可整段刪除回退）
   -------------------------------------------------------------------------- */

/* [11] 排版與 41 個文件頁對齊
   現況：正文寬 1132px、15px / 段落行高 2.05（site.css:3915-3920 .rich p,li）、
         H2 20.48px + margin 46px 0 14px + 無髮絲線（site.css:3907-3910）。
   文件頁：16px / 1.8、H2 22px + 髮絲線。
   v1.54.2：取消 768px 置中欄（使用者回報「內容呈居中布局、左右大片空白」）。
         法遵頁沒有目錄側欄，768px 在 1180px 的容器裡兩側各留 206px 空白，
         讀起來像「縮在中間」；這裡改回滿版，只保留字級與 H2 髮絲線的改善。
         H1 刻意不動：visual-a.css:86-93 已統一 42px / 700 / 無襯線，
         與文件頁 44px 僅差 2px（4.8%），不構成視覺重量斷層。 */
body.is-static-page .static-body {
  max-width: none;
  margin-inline: 0;
  font-size: 16px;
  line-height: 1.8;
}
body.is-static-page .static-body p,
body.is-static-page .static-body li {
  font-size: 16px;
  line-height: 1.8;
}
body.is-static-page .static-body h2 {
  margin: 26px 0 12px;
  padding-bottom: 10px;
  font-size: 22px;
  line-height: 1.4;
  border-bottom: 1px solid #DBE9E0;
}
body.is-static-page .static-body h2:first-child { margin-top: 0; }

/* [V-01] ≤768 三欄表第三欄整欄內容永久不可達（高 / P1）
   根因：theme.css:2213-2221 的 `.static-body table{overflow:hidden}`
         （theme.css 後載入、與 site.css 同特異度）覆蓋了
         site.css:6116-6126 的 overflow-x:auto；site.css:6127-6136 的
         th,td{white-space:nowrap} 讓表格固有寬 733px；外層 .table-wrap
         零滾動量；body{overflow-x:clip}（site.css:5884）又吃掉頁面級溢出。
   實測：360 → 733/324（裁 409px）、390 → 733/354、768 → 733/716，
         1440/1920 → 1130/1130 完整，故精確影響 ≤768。
   修法：以高特異度覆寫，讓 table 自身成為可捲動層
         （display:block + overflow-x:auto），並放開儲存格換行；
         與 site.css:6116 同斷點，桌面（>768）完全不受影響。 */
@media (max-width: 768px) {
  body.is-static-page .static-body table {
    display: block;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  body.is-static-page .static-body th,
  body.is-static-page .static-body td {
    white-space: normal;
  }
}

/* [V-03] 副標日期 2026-10-29 在 390/360 被折成兩段
   根因：site.css:5959 / 5966 窄屏 media 的 overflow-wrap:anywhere /
         word-break:break-word 命中 .page-sub（p）。
   views/misc.js 已把日期包進 <span class="nowrap">；此處提供 nowrap
   並讓 .page-sub 回到不斷詞。
   註：.nowrap 依本檔作用域紀律掛 body.is-static-page 前綴，
       等價於 `.nowrap{white-space:nowrap}`（span 位於靜態頁容器內，
       且本檔僅在 /p/* 頁條件載入，不洩漏）。 */
body.is-static-page .nowrap { white-space: nowrap; }
body.is-static-page .page-sub {
  overflow-wrap: normal;
  word-break: normal;
}
