/* Optional tweaks; safe to keep empty */
/* Improve code block spacing slightly */
.md-typeset pre code {
    font-size: 0.7rem;
}

/* Make signatures a bit smaller and tighter */
.md-typeset .doc-signature {
    font-size: 0.7rem;
    /* 0.9–1.0rem works well */
    line-height: 1.35;
    padding: 0.5rem 0.75rem;
    border-radius: 0.4rem;
}

/* Slightly tighten code blocks generated by mkdocstrings */
.md-typeset .highlight>pre {
    margin: 0.2rem 0 0.7rem 0;
}

/* Optional: inline code a touch smaller so headings don’t look weird */
.md-typeset h1 code,
.md-typeset h2 code,
.md-typeset h3 code {
    font-size: 0.7em;
}

/* Hide Parameters/Returns in the left (integrated) nav */
.md-nav__link[href$="#parameters"],
.md-nav__link[href$="#returns"] {
    display: none;
}

/* Also hide in the right-hand page ToC if you keep it */
.md-sidebar--secondary .md-nav__link[href$="#parameters"],
.md-sidebar--secondary .md-nav__link[href$="#returns"] {
    display: none;
}

/* ── Rendered notebook cells ────────────────────────────────────────── */

/* Code cell input: coloured left border to mark it as "source" */
.nb-cell-input {
    border-left: 3px solid var(--md-primary-fg-color, #4051b5);
    padding-left: 1rem;
    margin: 0.75rem 0 0 0;
}

/* Code cell output: muted left border to distinguish from input */
.nb-cell-output {
    border-left: 3px solid var(--md-default-fg-color--lighter, #aaa);
    padding-left: 1rem;
    margin: 0 0 0.75rem 0;
}

/* Text output (stdout / plain text): strip Material's grey background
   and tighten the block.  The double-class selector beats Material's
   .md-typeset pre specificity. */
.md-typeset .nb-cell-output > pre,
.md-typeset .nb-cell-output > pre > code {
    margin: 0.25rem 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    background: transparent;
    border-radius: 0.25rem;
    overflow-x: auto;
}

/* Error tracebacks: red-ish left border */
.nb-cell-error {
    border-left-color: #d32f2f;
}

/* ── Output figures (images / SVG) ─────────────────────────────────── */
/* Render at native pixel size (1:1) so a 390 px-tall image always
   appears 390 px tall regardless of width; scroll horizontally when
   wider than the content area. */
.nb-output-figure {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nb-output-figure img {
    display: block;
    max-width: none;            /* disable shrink-to-fit — use native size */
    height: auto;
}

/* ── Output tables (DataFrames) ────────────────────────────────────── */
.nb-output-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nb-output-table table {
    border-collapse: collapse;
    white-space: nowrap;
    font-size: 0.75rem;
}

.nb-output-table th,
.nb-output-table td {
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--md-typeset-table-color, #e0e0e0);
}

.nb-output-table th {
    font-weight: 700;
    background: var(--md-default-fg-color--lightest, #f5f5f5);
}

.nb-output-table tr:hover td {
    background: var(--md-accent-fg-color--transparent, rgba(68, 138, 255, 0.08));
}