.md-typeset .phos-mermaid-output {
  max-width: 100%;
  overflow: auto;
}

.md-typeset pre.mermaid[hidden] {
  display: none !important;
}

.md-typeset .phos-mermaid-output svg {
  display: block;
  max-width: 100%;
  height: auto;
}

.md-typeset .phos-mermaid-error {
  margin-block: 0.5rem;
  color: var(--md-default-fg-color--light);
  font-size: 0.85rem;
}
