/* 长虹投资 · 研究笔记视觉（暖纸 + 陶土强调，对齐产品设计） */
:root {
  --ch-paper: #f7f3ec;
  --ch-ink: #1c1917;
  --ch-muted: #57534e;
  --ch-clay: #c6613f;
  --ch-line: rgba(28, 25, 23, 0.12);
}

[data-md-color-scheme="default"] {
  --md-default-bg-color: var(--ch-paper);
  --md-default-fg-color: var(--ch-ink);
  --md-primary-fg-color: #5d4037;
  --md-accent-fg-color: var(--ch-clay);
}

/* 页顶固定免责 */
.ch-disclaimer {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #f3e7d9;
  color: var(--ch-ink);
  border-bottom: 1px solid var(--ch-line);
  border-left: 4px solid var(--ch-clay);
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.md-typeset .admonition.warning,
.md-typeset details.warning {
  border-color: var(--ch-clay);
}
.md-typeset blockquote {
  border-left-color: var(--ch-clay);
  color: var(--ch-muted);
}
.md-typeset table {
  font-size: 0.85rem;
  display: block;
  overflow-x: auto;
  max-width: 100%;
}
.md-typeset table:not([class]) th {
  white-space: nowrap;
}
.md-footer {
  background: transparent !important;
  color: var(--ch-muted) !important;
  border-top: 1px solid var(--ch-line);
}
.md-footer-meta {
  background: transparent !important;
}
.md-header {
  background: #5d4037 !important;
}

/* 全页免责作为页头同级元素，滚动到页脚仍可见。 */
.ch-disclaimer { height: 2.3rem; box-sizing: border-box; z-index: 10; display: flex; align-items: center; }
.md-header { top: 2.3rem; }
.md-typeset { font-family: system-ui, -apple-system, "Noto Sans CJK SC", sans-serif; }
.md-typeset h1, .md-typeset h2, .md-typeset h3 { scroll-margin-top: 6rem; }
.md-typeset table { font-variant-numeric: tabular-nums; }
.md-typeset .md-typeset__scrollwrap { overflow-x: auto; }
.md-copyright, .md-copyright__highlight { color: var(--ch-muted); }
.md-typeset .ch-card {
  border: 1px solid var(--ch-line); border-radius: 8px;
  padding: 1rem 1.2rem; margin: 1rem 0;
  background: #fffcf7; box-shadow: 0 2px 8px rgba(28,25,23,.04);
}
.md-typeset .ch-latest { border-top: 3px solid var(--ch-clay); }
.md-typeset .ch-research { border-left: 3px solid var(--ch-clay); }
.md-typeset .ch-card h3 { margin-top: .5rem; }
.md-typeset .ch-meta { color: var(--ch-muted); font-size: .75rem; }
.ch-tag { color: #91452d; background: #f3e7d9; border-radius: 3px; padding: .15rem .35rem; margin-right: .4rem; }
.md-typeset .ch-read { font-weight: 600; color: #a24b2e; }
@media (max-width: 600px) {
  .ch-disclaimer { font-size: .7rem; padding: .4rem .6rem; }
  .md-typeset .ch-card { padding: .8rem; }
}
