/* 2026-12-04 小布：台灣聖經網舊站暗色模式（原型）。亮色完全不受影響；只有暗色成立時才蓋過舊的顏色。 */
:root { color-scheme: light dark; }
:root:has(> head > meta[name="color-scheme"][content="dark"]) { color-scheme: dark; }
:root:has(> head > meta[name="color-scheme"][content="light"]) { color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) {
    body { background: #15191e !important; color: #d6dbe1 !important; }
    table, tbody, tr, td, th, div, p, span, li, ul, fieldset, legend, center {
      background-color: transparent !important; color: inherit !important; border-color: #3a434d !important; }
    .box_member, .tb-card, fieldset { background-color: #1d232a !important; }
    .menu_bg, [class*="_background"] { background-image: none !important; background-color: #1d232a !important; }
    table[style*="/header/"] { background-color: transparent !important; } /* 頁首橫幅的背景圖裡畫著「台灣聖經網」標誌，不拿掉（12/4 預覽拿掉後標誌消失） */
    font { color: #d6dbe1 !important; }
    a, a:link, a:visited { color: #8cc3f5 !important; }
    .w16_news_headline, .w13_news_headline, h1, h2, h3, h4 { color: #a9d2fa !important; }
    hr { border-color: #3a434d !important; }
    img:not([src*="logo"]) { filter: brightness(.9); }
    input, textarea, select, button { background-color: #232a32 !important; color: #e6eaee !important; border-color: #4a5560 !important; }
    th, .bordered th { background-image: none !important; background-color: #26303a !important; color: #cfe3f7 !important; } /* 12/4 小薇：table5_2.css 的表頭是漸層「圖」，只設 background-color 蓋不掉 */
    a.button, a.button:link, a.button:visited { background-image: none !important; background-color: #2a323b !important; color: #d6dbe1 !important; border-color: #4a5560 !important; }
  }
}
:root:has(> head > meta[name="color-scheme"][content="dark"]) {
  body { background: #15191e !important; color: #d6dbe1 !important; }
  table, tbody, tr, td, th, div, p, span, li, ul, fieldset, legend, center {
    background-color: transparent !important; color: inherit !important; border-color: #3a434d !important; }
  .box_member, .tb-card, fieldset { background-color: #1d232a !important; }
  .menu_bg, [class*="_background"] { background-image: none !important; background-color: #1d232a !important; }
  table[style*="/header/"] { background-color: transparent !important; } /* 頁首橫幅的背景圖裡畫著「台灣聖經網」標誌，不拿掉（12/4 預覽拿掉後標誌消失） */
  font { color: #d6dbe1 !important; }
  a, a:link, a:visited { color: #8cc3f5 !important; }
  .w16_news_headline, .w13_news_headline, h1, h2, h3, h4 { color: #a9d2fa !important; }
  hr { border-color: #3a434d !important; }
  img:not([src*="logo"]) { filter: brightness(.9); }
  input, textarea, select, button { background-color: #232a32 !important; color: #e6eaee !important; border-color: #4a5560 !important; }
  th, .bordered th { background-image: none !important; background-color: #26303a !important; color: #cfe3f7 !important; } /* 12/4 小薇：table5_2.css 的表頭是漸層「圖」，只設 background-color 蓋不掉 */
  a.button, a.button:link, a.button:visited { background-image: none !important; background-color: #2a323b !important; color: #d6dbe1 !important; border-color: #4a5560 !important; }
}
/* 切換鈕：只顯示「切到另一種」那一個（不靠 JS 判斷目前狀態） */
.tb-theme-btn { cursor: pointer; font-size: 13px; background: #fff; color: #333; border: 1px solid #9ab; border-radius: 4px; padding: 3px 8px; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.tb-to-light { display: none; }
@media (prefers-color-scheme: dark) { :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .tb-to-dark { display: none; } :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .tb-to-light { display: inline; } }
:root:has(> head > meta[name="color-scheme"][content="dark"]) .tb-to-dark { display: none; }
:root:has(> head > meta[name="color-scheme"][content="dark"]) .tb-to-light { display: inline; }
