.api-module-path {
    margin-bottom: 1rem;
    font-size: 0.8rem;
    overflow-wrap: anywhere;
}

.md-typeset .doc-heading {
    font-size: 0.85rem;
    line-height: 1.6;
}

.md-typeset .doc-heading code {
    white-space: normal;
}

.md-typeset .doc-labels {
    font-size: 0.65rem;
}

.md-typeset .api-example-image {
    display: block;
    width: auto;
    height: auto;
    max-width: min(240px, 100%);
    max-height: 420px;
    margin: 0.75rem auto;
}

/* Change the 'attr' badge text to 'a' in TOC */
/* Used for attributes in the API reference TOC */
code.doc-symbol.doc-symbol-attribute.doc-symbol-toc::after {
    content: "a" !important;
}
/* Change the 'class' badge text to 'cls' in TOC */
/* Used for classes in the API reference TOC */
code.doc-symbol.doc-symbol-toc.doc-symbol-class::after{
    content: "cls" !important;
}
/* Change the 'meth' badge text to 'func' */
/* Used for class methods in the API reference */
code.doc-symbol.doc-symbol-method.doc-symbol-heading::after {
    content: "cls.fn" !important;
}
/* Change the 'meth' badge text to 'f' in TOC */
/* Used for class methods in the API reference TOC */
code.doc-symbol.doc-symbol-method.doc-symbol-toc::after {
    content: "c.f" !important;
}
/* Change the 'func' badge text to 'fn' in TOC */
/* Used for functions in the API reference TOC */
code.doc-symbol.doc-symbol-function.doc-symbol-toc::after {
    content: "fn" !important;
}
/* Adds a subtle line separator after every mkdocstrings documentation block */
.doc-object {
    border-bottom: .05rem solid var(--md-code-hl-name-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Optional: Removes the line from the very last object on the page */
.doc-object:last-child {
    border-bottom: none;
}

/* 1. Reclaim the large blank gutters on the far left and right.
      Default is ~61rem (976px). Increasing this gives the content room to breathe. */
.md-grid {
  max-width: 88rem; /* ~1400px. Adjust higher (e.g. 95rem) or use 92% for fluid width */
}

/* 2. Widen the Table of Contents (TOC) on the right.
      Default is 12.1rem. */
@media screen and (min-width: 60em) {
  .md-sidebar--secondary {
    width: 16rem; /* Adjust to 15rem - 18rem depending on your heading lengths */
  }

  .md-sidebar--secondary .md-sidebar__scrollwrap {
    width: 100%;
  }
}

/* 3. (Optional) Widen the left API navigation sidebar if deep module paths wrap */
@media screen and (min-width: 76.25em) {
  .md-sidebar--primary {
    width: 14.5rem; /* Default is 12.1rem */
  }

  .md-sidebar--primary .md-sidebar__scrollwrap {
    width: 100%;
  }
}