/* Fix /page#foo going to the top of the viewport and being hidden by the navbar */
html {
    scroll-padding-top: 60px;
    font-size: 105%;
}

/* Fit the Twitter handle alongside the GitHub one in the top right. */

.md-grid {
    max-width: 72rem; /* Overall width */
}

div.md-header__source {
    width: revert;
    max-width: revert;
}

a.md-source {
    display: inline-block;
}

a.md-source:hover {
    transform: translateY(-2px);
}

.md-source__repository {
    max-width: 100%;
}

nav.md-nav {
    padding-left: 5px;
}

nav.md-nav--secondary {
    border-left: revert !important;
}

.md-nav__title {
    font-size: 0.9rem;
}

.md-nav__item--section > .md-nav__link {
    font-size: 0.9rem;
}

/* Indent autogenerated documentation */

div.doc-contents {
    padding-left: 25px;
    border-left: 4px solid rgba(230, 230, 230);
}

/* Increase visibility of splitters "---" */

[data-md-color-scheme="default"] .md-typeset hr {
    border-bottom-color: rgba(0, 0, 0, 0.2);
    border-bottom-width: 1.5pt;
    margin: 2rem 0;
}

[data-md-color-scheme="slate"] .md-typeset hr {
    border-bottom-color: rgba(255, 255, 255, 0.2);
    border-bottom-width: 1.5pt;
    margin: 2rem 0;
}

/* More space at the bottom of the page */

.md-main__inner {
    margin-bottom: 2.5rem;
}

/* Remove prev/next footer buttons */

.md-footer__inner {
    display: none;
}

/* Change font sizes and styling */

.md-typeset .admonition {
    font-size: 95% !important;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.md-typeset details {
    font-size: 95% !important;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.md-typeset h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    letter-spacing: -0.01em;
}

.md-typeset h2 {
    font-size: 1.5rem;
    font-weight: 600;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 1.6rem;
}

.md-typeset h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-top: 1.4rem;
}

.md-typeset h4 {
    font-size: 1.1rem;
    font-weight: 500;
}

.md-typeset h5, .md-typeset h6 {
    font-size: 0.95rem;
}


.md-typeset details .mkdocstrings > h4 {
    display: none;
}

.md-typeset details .mkdocstrings > h5 {
    display: none;
}

/* Change default colours for <a> tags */

[data-md-color-scheme="default"] {
    --md-typeset-a-color: rgb(33, 150, 243) !important;
}

[data-md-color-scheme="slate"] {
    --md-typeset-a-color: rgb(100, 180, 255) !important;
}

/* Highlight functions, classes etc. type signatures. Really helps to make clear where
   one item ends and another begins. */

[data-md-color-scheme="default"] {
    --doc-heading-color: #f1f5f9;
    --doc-heading-border-color: #e2e8f0;
    --doc-heading-color-alt: #f8fafc;
}

[data-md-color-scheme="slate"] {
    --doc-heading-color: rgb(30, 41, 59);
    --doc-heading-border-color: rgb(51, 65, 85);
    --doc-heading-color-alt: rgb(40, 53, 72);
    --md-code-bg-color: rgb(30, 41, 59);
}

h4.doc-heading {
    background-color: var(--doc-heading-color);
    border: solid var(--doc-heading-border-color);
    border-width: 1px;
    border-radius: 4px;
    padding: 6px 10px;
    margin-top: 1.2em;
}

h5.doc-heading, h6.heading {
    background-color: var(--doc-heading-color-alt);
    border-radius: 4px;
    padding: 6px 10px;
    margin-top: 1em;
}

/* Improve code blocks */
.md-typeset code {
    border-radius: 4px;
    padding: 0.2em 0.4em;
}

/* Make errors in notebooks have scrolling */
.output_error > pre {
    overflow: auto;
    border-radius: 4px;
}

/* Add better tables */
.md-typeset table:not([class]) {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.md-typeset table:not([class]) th {
    background-color: var(--md-primary-fg-color--light);
    color: var(--md-primary-bg-color);
}