html, body {
    font-family: Montserrat,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;
}

.mermaid {
    background: #f8f8f8
}

/* Main content titles */
article h1,
article h2,
article h3,
article h4,
article h5,
article h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

article h1 { font-size: 2.2rem; }
article h2 { font-size: 1.8rem; }
article h3 { font-size: 1.45rem; }


img.only-light, img.only-dark {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Paragraph spacing + leading */
article p {
  margin-top: 0.9rem;
  margin-bottom: 1.1rem;
  line-height: 1.75;
}
/* Right sidebar active item styling */
.toc-tree li.scroll-current > .reference {
  background: #f5f5f5;
  border-radius: 4px;
  padding: 4px 8px;
  display: inline-block;
}
/* Optional dark theme override */
body[data-theme="dark"] .toc-tree li.scroll-current > .reference {
  background: #222222;
}
/* Community CTA button */
article a.sd-btn.sd-btn-primary {
  background-color: #ffc502 !important;
  border-color: #ffc502 !important;
  color: #222222 !important;
}

article a.sd-btn.sd-btn-primary:hover {
  background-color: #ffda27 !important;
  border-color: #ffda27 !important;
  color: #222222 !important;
}
