/* 各级标题统一粗体（Material 主题默认 h1/h2 是 300 细体，不符合预期） */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
  font-weight: 700;
}

/* 顶部导航条：覆盖 Material 默认的 primary（indigo）色
   .md-header 背景用 --md-primary-fg-color，文字/图标用 --md-primary-bg-color。
   只在 .md-header 作用域内覆盖，避免影响其它用到 primary 的元素。
   - 浅色模式：浅灰底 + 黑字
   - 暗色模式：深灰底 + 白字 */
[data-md-color-scheme="default"] .md-header {
  --md-primary-fg-color: #ebebeb;
  --md-primary-fg-color--light: #f4f4f4;
  --md-primary-fg-color--dark: #cccccc;
  --md-primary-bg-color: #000000;
  --md-primary-bg-color--light: #525252;
}

[data-md-color-scheme="slate"] .md-header {
  --md-primary-fg-color: #2b2b2b;
  --md-primary-fg-color--light: #383838;
  --md-primary-fg-color--dark: #1f1f1f;
  --md-primary-bg-color: #ffffff;
  --md-primary-bg-color--light: #b0b0b0;
}

/* 收窄左侧导航栏（Material 默认 12rem，本项目目录项较短，缩到 9rem）
   只在桌面端（≥ 1220px）生效，移动端 drawer 保持原宽度 */
@media screen and (min-width: 76.25em) {
  .md-sidebar--primary {
    width: 7rem;
  }
}

/* 压缩 list 行间距（Material 默认 list-item 垂直间距偏松，
   有序/无序都调小，保持紧凑）*/
.md-typeset ul li,
.md-typeset ol li {
  margin-block: 0.1em;
}

/* 放大表格字号（Material 默认表格 0.64rem 偏小，提升到 0.74rem）
   同时压缩行高（默认偏松，调小 td/th padding）*/
.md-typeset table:not([class]) {
  font-size: 0.74rem;
}
.md-typeset table:not([class]) th,
.md-typeset table:not([class]) td {
  padding-block: 0.25em;
}

/* 表格加上完整边框（Material 默认只有表头底线、无竖线，加上完整网格更清晰）*/
.md-typeset table:not([class]) th,
.md-typeset table:not([class]) td {
  border: 1px solid var(--md-default-fg-color--lightest);
}
