/* User Provided Stylesheet */

/* ---- CDIF Handbook custom styles (MyST v2 book-theme) ----
   The theme uses Tailwind "prose" rules (line-height 1.75, large heading and
   list margins) via low-specificity :where() selectors, so these overrides are
   scoped to `article` and use !important to win.
   NOTE: MyST renders the page title as <h1> and shifts content headings +1, so a
   source-level "### property" heading is rendered as <h4>. */

/* Underline property-name headings. With a single H1 (page title) per doc,
   mystmd does not shift levels, so source "### property" renders as <h3>. */
article h3 {
  text-decoration: underline;
}

/* Tighten the gap between a heading and the content immediately following it */
article h1, article h2, article h3, article h4, article h5, article h6 {
  margin-bottom: 0.25em !important;
}
/* Generous breathing room above H2-H6, but not above the page title (H1) */
article h2, article h3, article h4, article h5, article h6 {
  margin-top: 3em !important;
}
/* Page title sits close to the top of the content area */
article h1 {
  margin-top: 0 !important;
}
article :is(h1, h2, h3, h4, h5, h6) + * {
  margin-top: 0.1em !important;
}

/* Decrease general line spacing and block gaps */
article p, article li {
  line-height: 1.2 !important;
}
article p, article ul, article ol {
  margin-top: 0.5em !important;
  margin-bottom: 0.5em !important;
}
article li {
  margin-top: 0.1em !important;
  margin-bottom: 0.1em !important;
}
