/* 強制所有 Markdown 文章段落保留 Enter 換行 */
.md-typeset p {
  white-space: pre-line;
}
/* 縮小頂部導覽列 Logo 的右側間距，讓標題往左靠攏 */
.md-header__button.md-logo {
  margin-right: 0.2rem !important; /* 預設間距較大，縮小至貼近文字 */
  padding: 0.2rem !important;
}

/* 微調標題文字的內縮 */
.md-header__topic {
  margin-left: 0.2rem !important;
}

/* 確保 Logo 圖片垂直置中並適應高度 */
.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 1.6rem;
  width: auto;
}
/* 自訂 H5 標題大小與顏色，避免字體過小 */
.md-typeset h5 {
  font-size: 1.05rem !important;  /* 調整為略大於內文 */
  font-weight: 700 !important;   /* 加粗 */
  color: var(--md-primary-fg-color) !important; /* 使用網站主題色 */
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}