/* Small readability tweaks for the Shermo manual pages. */
.md-typeset {
  font-size: 0.78rem;
}

.md-typeset pre > code {
  font-size: 0.72rem;
}

.md-typeset table:not([class]) {
  font-size: 0.72rem;
}

/* long console output should scroll rather than overflow the page */
.md-typeset pre {
  overflow-x: auto;
}

/* equations that are wider than the text column */
.md-typeset .arithmatex {
  overflow-x: auto;
  overflow-y: hidden;
}

.md-footer-meta__inner {
  display: flex !important;
  justify-content: center !important;
  text-align: center !important;
  padding-top: 2px !important;    /* 关键：去掉或大幅减小默认的巨大上内边距 */
  padding-bottom: 2px !important; /* 关键：减小下内边距 */
}

.md-copyright {
  color: #ffffff !important;
  width: 100% !important;
  text-align: center !important;
  font-weight: 500; /* 可选：稍作加粗让亮白更醒目清晰 */
  font-size: 0.75rem; /* 可选：稍微调小一点字号，视觉上更精致紧凑 */
  line-height: 0.8 !important; /* 缩小行高 */
  margin: 0 !important; /* 消除默认外边距 */
}

.md-footer-meta {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 100 !important; /* 确保浮在正文内容之上 */
  background-color: #483D8B !important;
  padding: 4px 0 !important; /* 关键：压缩外层上下内边距（可根据喜好改为 0~6px） */
}

.md-main__inner {
  margin-bottom: 36px !important;
}

/* 左侧主导航栏标题容器 */
.md-nav--primary > label.md-nav__title {
  display: block !important;
  text-align: center !important;
  justify-content: center !important;
  font-size: 0 !important; /* 隐藏原本的文字 */
}

/* 替换为黑色、居中的 Contents: */
.md-nav--primary > label.md-nav__title::after {
  content: "Contents";
  display: block !important;
  text-align: center !important;
  font-size: 0.85rem !important; /* 恢复字号 */
  font-weight: bold !important;
  color: #483D8B !important;     /* 纯黑 */
}

/* 二级列表：空心圆 */
.md-typeset ul li ul {
  list-style-type: circle !important;
}

/* 三级列表（如有）：实心小方块 */
.md-typeset ul li ul li ul {
  list-style-type: square !important;
}

/* 四级及更深层级列表：横杠破折号（可选） */
.md-typeset ul li ul li ul li ul {
  list-style-type: "- " !important;
}
