/* Print / PDF: one clean column, everything expanded, no chrome. */
@page { margin: 16mm 14mm; }
:root, [data-theme] {
  --bg: #fff; --bg-2: #f6f6f8; --panel: #fff; --panel-2: #f2f2f6; --panel-3: #e9e9f0; --line: #d4d6e0; --line-2: #e2e3ea;
  --text: #111; --text-2: #222; --muted: #555; --faint: #777; --accent: #3f2fb8; --accent-2: #0a6d64; --accent-soft: #eeeafc;
  --ok: #0c6b3e; --ok-soft: #eef8f2; --warn: #7a5000; --warn-soft: #fbf4e4; --bad: #a11d38; --bad-soft: #fbeef1; --info: #1a58ad; --info-soft: #eef4fc;
  --code-bg: #f7f7fa; --code-head: #efeff5; --shadow: none;
}
.sidebar, .sidebar-toggle, .sidebar-scrim, .filter-bar, .chapter-progress, .card-actions, .copy-btn, .viz-controls,
.chapter-nav, .toast, .state-tools, .search, .theme-toggle, .resume, .dash, .finder { display: none !important; }
.reader { margin: 0 !important; padding: 0 !important; max-width: none !important; }
.reader > * { max-width: none; }
.card { break-inside: auto; box-shadow: none; border: 1px solid #ccc; border-radius: 6px; padding: 10mm 8mm; margin: 0 0 8mm; }
.card.is-filtered-out { display: block !important; }
.card-head { opacity: 1 !important; }
.card-head, .gotcha, .tricky-item, .code-block, .viz, .tbl-wrap { break-inside: avoid; }
.sec.eli5 { margin: 0; padding-left: 0; padding-right: 0; background: none; }
details > *:not(summary) { display: block !important; }
.viz-fallback { display: block !important; }
.code-block pre { white-space: pre-wrap; word-break: break-word; }
.code-block code { white-space: pre-wrap; }
a { color: inherit; text-decoration: none; }
