/* markdown2dash content styling (ported from dash-documentation-boilerplate)
   + the docs side-nav link styles. Scoped to docs pages via the m2d-* classes
   that markdown2dash emits + the .docs-nav-link class. */

h2.m2d-heading { font-weight: 600; font-size: 30px; margin-top: 8px; }
h3.m2d-heading { font-weight: 600; font-size: 20px; margin-top: 40px; margin-bottom: 15px; }
h4.m2d-heading { font-weight: 600; margin-top: 30px; margin-bottom: 15px; }
h5.m2d-heading { font-weight: 600; margin-top: 30px; margin-bottom: 15px; }

.m2d-paragraph, .m2d-list {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 10px;
    margin-top: 10px;
}

.m2d-block-code { margin-top: 20px; margin-bottom: 20px; }

:root[data-mantine-color-scheme="light"] .m2d-block-code pre {
    background-color: #f8f9fa; border: 1px solid #dee2e6; color: #1a1b1e;
}
:root[data-mantine-color-scheme="dark"] .m2d-block-code pre {
    background-color: #1a1b1e; border: 1px solid #373a40; color: #c1c2c5;
}

:root[data-mantine-color-scheme="light"] .m2d-paragraph code,
:root[data-mantine-color-scheme="light"] .m2d-list code {
    background-color: #f1f3f5; color: #1a1b1e;
}
:root[data-mantine-color-scheme="dark"] .m2d-paragraph code,
:root[data-mantine-color-scheme="dark"] .m2d-list code {
    background-color: #25262b; color: #c1c2c5;
}

.m2d-block-exec > *:first-child { margin-bottom: 10px; }
.m2d-block-exec { margin-bottom: 20px; }
.m2d-strong { font-weight: 600; }
.m2d-block-kwargs { margin-bottom: 30px; }
.m2d-block-kwargs > thead > tr > th { font-size: 15px; font-weight: 600; }
.m2d-block-kwargs td:nth-child(3) { width: 250px; }
.m2d-block-kwargs td:nth-child(1) { width: 200px; }
.m2d-link { font-size: 15px; }
.m2d-table > thead > tr > th { font-size: 15px; font-weight: 600; }
.m2d-table td:nth-child(3) { width: 500px; }
.m2d-table td:nth-child(1) { width: 200px; }
.m2d-block-admonition { margin: 10px 0; }

/* ---- Docs side-nav links (AppShellNavbar) ---------------------------------*/
.docs-nav-link {
    border-radius: var(--mantine-radius-md);
    transition: background-color 120ms ease;
}
.docs-nav-link:hover { text-decoration: none; }
