/* Use Roboto for body text */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
}

/* Smaller headings */
h1, h2, h3, h4 { font-family: 'Roboto', sans-serif; font-weight: 500; }
strong, b { font-weight: 500; }
h1 { font-size: 1.8em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.2em; }
h4 { font-size: 1.0em; }

/* Sidebar */
body {
    --color-sidebar-link-text: #06437a;
    --color-sidebar-link-text--top-level: #06437a;
    /* --color-sidebar-caption-text: #06437a; */
    --color-sidebar-brand-text: #06437a;
    --color-sidebar-search-text: #06437a;
    --color-sidebar-item-text: #06437a;
}
.sidebar-brand, .sidebar-tree, .toc-tree,
.toc-drawer, .bd-sidebar, .bd-sidebar-primary, .bd-sidebar-secondary,
.bd-toc, .nav-bar, .article-header-buttons {
    font-family: 'Roboto', sans-serif;
}

/* "Download notebook" link at top of right-side TOC */
.nb-download-link {
    padding: 0 0 0.75em 0;
    border-bottom: 1px solid var(--color-background-border, #e0e0e0);
    margin-bottom: 0.5em;
    font-size: 0.85em;
}
.nb-download-link a {
    color: var(--color-sidebar-link-text, #06437a);
    text-decoration: none;
}
.nb-download-link a:hover {
    text-decoration: underline;
}

/* Make the TOC drawer a flex column so the download link sticks to the bottom */
.toc-drawer {
    display: flex;
    flex-direction: column;
}

/* Dark mode: lighter dark-gray sidebars, near-black main content */
[data-theme="dark"] .bd-sidebar-primary,
[data-theme="dark"] .bd-sidebar-secondary,
[data-theme="dark"] .toc-drawer {
    background-color: #1e2227;
}

[data-theme="dark"] .bd-article-container,
[data-theme="dark"] .bd-content {
    background-color: #0d1117;
}