/* ============================================================
   almanac — shared stylesheet
   现代极简:白底 / 靖蓝强调 / 全无衬线 / 去装饰
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --ink: #0a0a0a;
  --ink-soft: #404040;
  --ink-muted: #737373;
  --line: #e5e5e5;
  --line-strong: #d4d4d4;
  --accent: #1e3a8a;
  --accent-soft: rgba(30, 58, 138, .08);

  /* 保留栏目色变量作向后兼容(空值,避免引用断裂) */
  --c-archive: var(--accent);
  --c-travel:   var(--accent);
  --c-living:   var(--accent);
  --c-notes:    var(--accent);

  --sans: 'Inter', 'Noto Sans SC', 'HarmonyOS Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --radius: 6px;
  --radius-lg: 10px;
}

/* ---------- Reset & base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

/* ---------- Page container (article width) ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 0 32px; position: relative; }

/* ============================================================
   ARTICLE COMPONENTS
   ============================================================ */

/* ---------- Cover ---------- */
.cover { padding: 96px 0 64px; border-bottom: 1px solid var(--line); }
.cover-meta { display: none; }
.cover-label { display: none; }
.cover h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 44px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.cover h1 em {
  display: block;
  font-style: normal;
  font-weight: 400;
  color: var(--ink-muted);
  font-size: 0.36em;
  margin-top: 12px;
  letter-spacing: 0;
}
.cover-sub {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 560px;
  line-height: 1.75;
  margin-top: 32px;
}
.cover-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.cover-footer-item {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cover-footer-item strong {
  display: block;
  font-family: var(--sans);
  font-size: 20px;
  color: var(--ink);
  font-weight: 600;
  margin-top: 4px;
  letter-spacing: 0;
}

/* ---------- Table of contents ---------- */
.toc { padding: 64px 0; border-bottom: 1px solid var(--line); }
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.section-title em {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  color: var(--ink-muted);
  font-size: 0.6em;
  margin-left: 10px;
}
.toc-list { margin-top: 40px; list-style: none; }
.toc-list li {
  display: flex;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.toc-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-muted);
  width: 40px;
  flex-shrink: 0;
}
.toc-title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  flex-grow: 1;
}
.toc-en { display: none; }
.toc-page {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-muted);
  width: 36px;
  text-align: right;
}

/* ---------- Sections & chapters ---------- */
section { padding: 72px 0; border-bottom: 1px solid var(--line); position: relative; }
.chapter-header { display: flex; align-items: baseline; gap: 20px; margin-bottom: 40px; }
.chapter-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  padding-top: 6px;
}
.chapter-title-block { flex-grow: 1; }
.chapter-kicker { display: none; }
.chapter-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.lead {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 40px;
}
.lead::first-letter {
  font-family: var(--sans);
  font-size: inherit;
  float: none;
  margin: 0;
  color: inherit;
  font-weight: inherit;
}

/* ---------- Tree (directory structure) ---------- */
.tree {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.85;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  color: var(--ink-soft);
  overflow-x: auto;
  white-space: pre;
  word-break: normal;
  tab-size: 2;
}
.tree::before { content: none; }
.tree .root { color: var(--ink); font-weight: 600; }
.tree .key { color: var(--ink); }
.tree .note { color: var(--ink-muted); }
.tree .accent { color: var(--accent); }

/* ---------- Categories ---------- */
.categories { display: grid; gap: 12px; }
.category {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  transition: border-color 0.2s ease;
}
.category[data-cat="1"] { border-left-color: #c8392b; }
.category[data-cat="2"] { border-left-color: #2d5a88; }
.category[data-cat="3"] { border-left-color: #4a7048; }
.category[data-cat="4"] { border-left-color: #b8852b; }
.category[data-cat="5"] { border-left-color: #8a8170; }
.cat-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1;
}
.cat-body h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cat-body .en { display: none; }
.cat-body .items { font-size: 13.5px; color: var(--ink-soft); }
.cat-color { display: none; }

/* ---------- Subheads ---------- */
.subhead {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  margin: 40px 0 16px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.subhead::before {
  content: attr(data-num);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
}
.subhead-rule { flex-grow: 1; height: 1px; background: var(--line); margin-left: 4px; }

/* ---------- Tables ---------- */
.tbl { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.tbl thead th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--ink);
  font-weight: 500;
}
.tbl tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-soft);
}
.tbl tbody td:first-child {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--ink);
}
.tbl tbody tr:hover { background: var(--bg-subtle); }
.tbl .num { font-family: var(--mono); color: var(--accent); }
.tbl .price { font-family: var(--mono); text-align: right; color: var(--ink); font-weight: 500; }
.tbl tfoot td {
  padding: 16px;
  border-top: 2px solid var(--ink);
  font-family: var(--sans);
  font-weight: 600;
}
.tbl tfoot .price { font-size: 16px; color: var(--accent); }

/* ---------- Multi-column layouts ---------- */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}
.col-card { padding: 24px 20px; border-right: 1px solid var(--line); }
.col-card:last-child { border-right: none; }
.col-card .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 6px;
  line-height: 1;
  text-transform: uppercase;
}
.col-card h4 { font-family: var(--sans); font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.col-card p { font-size: 13px; color: var(--ink-soft); line-height: 1.7; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 24px 0; }

/* ---------- Callout ---------- */
.callout {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  color: var(--ink);
  padding: 24px 28px;
  margin: 28px 0;
  border-radius: var(--radius);
}
.callout::before { content: none; }
.callout p {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  padding-left: 0;
}
.callout .accent { color: var(--accent); font-weight: 600; }

/* ---------- Timeline (weekly plan) ---------- */
.timeline { margin: 24px 0; }
.week { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.week:last-child { border-bottom: none; }
.week-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 16px;
}
.week-label { font-family: var(--mono); font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; }
.week-title { font-family: var(--sans); font-size: 18px; font-weight: 600; }
.week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.day {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 10px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
}
.day-num { font-family: var(--mono); font-size: 10px; color: var(--accent); letter-spacing: 0.08em; margin-bottom: 6px; text-transform: uppercase; }
.day-task { font-family: var(--sans); font-size: 12px; line-height: 1.5; color: var(--ink); font-weight: 500; }
.day-time { margin-top: auto; font-family: var(--mono); font-size: 10px; color: var(--ink-muted); padding-top: 6px; }

/* ---------- Cheatsheet ---------- */
.cheatsheet {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 40px 36px;
  margin: 28px 0;
  border-radius: var(--radius-lg);
}
.cheatsheet::before { content: none; }
.cheatsheet-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.cheatsheet-title { font-family: var(--sans); font-size: 20px; font-weight: 600; color: var(--ink); }
.cheatsheet-title em { display: none; }
.cheatsheet-label { font-family: var(--mono); font-size: 10px; color: var(--ink-muted); letter-spacing: 0.15em; text-transform: uppercase; }
.cheat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.cheat-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.cheat-row .find { color: var(--ink); font-family: var(--sans); }
.cheat-row .arrow { color: var(--ink-muted); font-family: var(--mono); padding: 0 10px; font-size: 12px; }
.cheat-row .loc { color: var(--accent); font-family: var(--mono); font-size: 12px; text-align: right; letter-spacing: 0.02em; }

/* ---------- Principles ---------- */
.principles { text-align: center; padding: 32px 0; }
.principle {
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.5;
  margin: 12px 0;
}
.principle em {
  font-family: var(--sans);
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}
.principle-divider { width: 32px; height: 1px; background: var(--line); margin: 24px auto; }

/* ---------- Tips & tags ---------- */
.tip {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.tip-mark {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  line-height: 1.6;
  flex-shrink: 0;
  text-transform: uppercase;
}

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-right: 4px;
}
.tag.red { color: #c8392b; border-color: rgba(200,57,43,.3); background: rgba(200,57,43,.06); }
.tag.blue { color: #2d5a88; border-color: rgba(45,90,136,.3); background: rgba(45,90,136,.06); }
.tag.green { color: #4a7048; border-color: rgba(74,112,72,.3); background: rgba(74,112,72,.06); }
.tag.yellow { color: #b8852b; border-color: rgba(184,133,43,.3); background: rgba(184,133,43,.06); }
.tag.gray { color: var(--ink-muted); }

/* ---------- Article (in-page) footer ---------- */
.page-footer {
  padding: 48px 0 64px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
}
.page-footer .mark {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 12px;
  font-weight: 500;
}
.page-footer .colophon {
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0;
}

/* ============================================================
   SITE FRAMEWORK
   ============================================================ */

/* ---------- Site header / nav ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  background: rgba(255,255,255,0.85);
}
.site-nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
}
.site-nav .brand {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav .brand em {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-muted);
  margin-left: 6px;
  letter-spacing: 0;
}
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.site-nav ul a {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.site-nav ul a:hover { color: var(--ink); }
.site-nav ul a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- Home hero ---------- */
.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 96px 32px 64px;
  position: relative;
  z-index: 2;
}
.hero-meta { display: none; }
.hero-label { display: none; }
.hero h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}
.hero h1 em {
  display: none;
}
.hero-slogan {
  font-family: var(--sans);
  font-size: 20px;
  color: var(--ink-soft);
  margin-top: 24px;
  line-height: 1.6;
  max-width: 620px;
  font-weight: 500;
}
.hero-intro {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 600px;
  margin-top: 32px;
}

/* ---------- Home section cards ---------- */
.section-cards {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 32px 96px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.cards-label {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.cards-label::before { content: '§ '; }
.section-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 32px 28px;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  border-radius: var(--radius-lg);
}
.section-card::before { content: none; }
.section-card:hover {
  border-color: var(--accent);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.section-card[data-section] { --card-color: var(--accent); }
.card-num { display: none; }
.card-name {
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.card-en { display: none; }
.card-desc {
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.75;
}
.card-arrow { display: none; }

/* ---------- Section index page ---------- */
.section-index {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}
.section-hero {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--line);
}
.section-hero .sh-num { display: none; }
.section-hero .sh-kicker { display: none; }
.section-hero h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-hero h1 em { display: none; }
.section-hero .sh-tagline {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 560px;
  line-height: 1.8;
  margin-top: 20px;
}

/* ---------- Article list ---------- */
.article-list { padding: 48px 0 32px; }
.article-list-header {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.article-list-header::before { content: '§ '; }
.article-item {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.15s ease;
}
.article-item:hover { border-bottom-color: var(--accent); }
.article-item:hover .article-item-title { color: var(--accent); }
.article-item-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.article-item-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-muted);
  width: 28px;
  flex-shrink: 0;
}
.article-item-title {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  transition: color 0.15s;
}
.article-item-en { display: none; }
.article-item-meta {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}
.article-item-desc {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 8px;
  padding-left: 42px;
  line-height: 1.7;
}

/* ---------- Empty state ---------- */
.empty-state {
  padding: 64px 0 32px;
  text-align: center;
}
.empty-state .empty-mark {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 16px;
}
.empty-state .empty-text {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.85;
  max-width: 460px;
  margin: 0 auto;
}
.empty-state .empty-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-top: 24px;
}
.empty-state .empty-note::before { content: '— '; }

/* ---------- Site footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 32px 56px;
  text-align: center;
  position: relative;
  z-index: 2;
  margin-top: 32px;
}
.site-footer-mark { display: none; }
.site-footer-main {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0;
}
.site-footer-sub {
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .page { padding: 0 20px; }
  .cover { padding: 56px 0 40px; }
  .cover h1 { font-size: 32px; }
  .cover-footer { gap: 24px; margin-top: 48px; }
  .chapter-header { flex-direction: column; gap: 8px; }
  .chapter-title { font-size: 22px; }
  .toc { padding: 40px 0; }
  .section-title { font-size: 22px; }
  section { padding: 48px 0; }
  .week-grid { grid-template-columns: 1fr; }
  .cheat-grid { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr; }
  .col-card { border-right: none; border-bottom: 1px solid var(--line); }
  .col-card:last-child { border-bottom: none; }
  .two-col { grid-template-columns: 1fr; gap: 16px; }
  .principle { font-size: 20px; }
  .cheatsheet { padding: 28px 20px; }

  /* site framework */
  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 20px;
  }
  .site-nav ul { gap: 16px; flex-wrap: wrap; }
  .hero { padding: 56px 20px 40px; }
  .hero h1 { font-size: 40px; }
  .hero-slogan { font-size: 17px; }
  .hero-intro { font-size: 15px; }
  .section-cards { grid-template-columns: 1fr; padding: 24px 20px 64px; gap: 16px; }
  .section-card { padding: 24px 20px; }
  .card-name { font-size: 22px; }
  .section-index { padding: 0 20px; }
  .section-hero { padding: 48px 0 32px; }
  .section-hero h1 { font-size: 28px; }
  .article-item-title { font-size: 16px; }
  .article-item-meta { width: 100%; margin-left: 0; padding-left: 42px; }
  .article-item-desc { padding-left: 42px; }
  .site-footer { padding: 32px 20px 48px; }
}

/* ============================================================
   Print
   ============================================================ */
@media print {
  body { background: white; font-size: 11pt; }
  .site-header { display: none; }
  .site-footer { display: none; }
  .page { max-width: 100%; padding: 0 16px; }
  .section-index { max-width: 100%; padding: 0 16px; }
  section { page-break-inside: avoid; padding: 20px 0; }
  .cheatsheet { page-break-inside: avoid; }
  .cover { page-break-after: always; }
  .section-hero { page-break-after: avoid; }
}
