/* align maintext */
section {
    text-align: justify;
}

/* --- Global theme variable overrides --- */
:root {
  --pst-color-primary: #C1002A !important ;
  --pst-color-link: #C1002A !important ;
  --pst-color-link-hover: #C1002A !important ;
  --pst-color-inline-code-links: #C1002A !important ;
}

/* others ? 
:root {
  --pst-color-primary: #C1002A; 
  --pst-color-link: #C1002A; 
  --pst-secondary-color: #C1002A;
  --pst-color-link-hover: #C1002A; 
  --bs-color-primary: #C1002A;
  --bs-link-color: #C1002A;
  --bs-secondary-color: #C1002A;
}
*/

/* Fix vertical alignment of inline math rendered by MathJax */
mjx-container[jax="CHTML"][display="inline"] {
    font-size: 1em !important ;           /* match surrounding text */
    vertical-align: middle !important ;   /* -0.2em to adjust manually if needed or use "text-bottom"  */
    line-height: 1 !important ;
}

/* Fix vertical alignment for inline math (MathJax v3) */
/*
mjx-container[jax="CHTML"][display="inline"] {
  vertical-align: middle !important;
}
*/

/* override frame boxing to do */

/* Fix vertical alignment of inline math rendered by MathJax 
mjx-container[jax="CHTML"][display="inline"] {
  vertical-align: middle !important;   /* or try -0.2em to fine-tune 
}
*/

/* toogle things */
.toggle .header {
    display: block;
    clear: both;
}

.toggle .header:after {
    content: " ▶";
}

.toggle .header.open:after {
    content: " ▼";
}

/* === Remove spurious frames and boxes === */
/* Remove any Bootstrap card/shadow styling 
# .admonition, .toggle ?
*/
.sd-card,
.sd-shadow-sm,
.figure {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Remove unwanted boxing on blockquotes */
blockquote {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  margin: 1em 0 !important;
  padding: 0 !important;
}