/* 列印樣式：base.html 以 <link media="print"> 載入；報告與每日摘要的「下載圖檔」（report_image.js）
   也把這份樣式套到頁面上再轉成圖檔，所以列印 / 存 PDF 與圖檔的版面一致。 */
@page { size: A4; margin: 12mm; }
/* 一律用淺色配色（深色模式下列印也是白紙黑字） */
:root, :root[data-theme], :root:not([data-theme="light"]) {
  --bg: #fff; --surface: #fff; --text: #000; --muted: #555; --border: #bbb; --rule: #000;
  --accent: #8e1f1a; --accent-weak: #eee; --danger: #a3241c; --ok: #2f5d34; --warn: #8a5a00;
  --news: #000; --article: #4a3b6b; --post: #2f5d34; --video: #8e1f1a; --audio: #7a4a12;
  --chart-grid: #ccc; --chart-mark: #2b2722; --focus-bg: #fff; --mark-bg: #e9d38a;
  color-scheme: light;
}
/* 關鍵字標示等底色也印出來（瀏覽器列印預設省略背景），與下載的圖檔相同 */
html { background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.masthead-tools, .skip-link { display: none !important; }
.topbar, .no-print, .flash, footer, .theme-switch, .install { display: none !important; }
/* 報告：精簡版面（當日報告控制在 A4 4 頁內） */
body { font-size: 9.5pt; }
.wrap { max-width: none; padding: 0; }
.report-head h1 { font-size: 15pt; margin: 0 0 2px; padding-bottom: 2px; }
.report-head p { margin: 0 0 4px; }
.stats { margin-bottom: 6px; }
.stat { padding: 2px 8px; }
.stat b { font-size: 13pt; }
.two-col { grid-template-columns: 1fr 1fr; gap: 0 16px; }
.chart-card, .report-section { padding: 4px 0 !important; margin-bottom: 6px !important; border-width: 1px 0 0 !important; break-inside: auto; }
.chart-title { font-size: 10.5pt; margin: 2px 0 4px; }
.table th, .table td { padding: 1px 6px; font-size: 9pt; }
.quotes blockquote { margin: 3px 0; padding: 1px 8px; font-size: 9pt; }
.report-list { padding-left: 2em; }  /* 兩位數編號不被切到 */
.report-list li { padding: 1px 0; break-inside: avoid; }
body { background: #fff; color: #000; }
.card { box-shadow: none; border: 1px solid #999; break-inside: avoid; }
a { color: #000; }
.thumb img, .detail .hero { filter: grayscale(1); }
/* 每日摘要：人物專欄不在標頭後斷頁，引言與主打不拆開 */
.columnist { padding: 6px 0 8px; }
.columnist-head { break-after: avoid; }
.columnist-head .avatar { flex-basis: 32px; width: 32px; height: 32px; }
.columnist-head .avatar img { filter: grayscale(1); }
.columnist-head h2 { font-size: 13pt; }
.pull-quote, .columnist-lead { break-inside: avoid; }
.columnist-list li { padding: 1px 0; break-inside: avoid; }
.digest-others .columnist-list { column-width: 240px; }
