/* Remove header underline AND the extra spacing below headers */
.markdown-rendered h1,
.markdown-rendered h2,
.markdown-rendered h3,
.markdown-rendered h4,
.markdown-rendered h5,
.markdown-rendered h6 {
  border-bottom: none !important;
  margin-bottom: 0 !important;
}

/* Ensure the divider is the only visual line */
.markdown-rendered hr {
  border: 0 !important;
  border-top: 1px solid var(--background-modifier-border) !important;
  margin-top: 0.25em !important;  /* small breathing space */
  margin-bottom: 1.5em !important;
}