:root {
    --md-text-font: "IBM Plex Sans", "Source Sans 3", "Segoe UI", system-ui, sans-serif;
    --md-code-font: Consolas, Monaco, Menlo, "SFMono-Regular", "Cascadia Mono", "Liberation Mono", "DejaVu Sans Mono", monospace;
}

/* Typography weight tuning for docs readability */

/* Base text */
.md-typeset,
.md-typeset p,
.md-typeset li,
.md-typeset td {
    font-weight: 400;
    font-synthesis-weight: none;
}

/* Headings: balanced hierarchy, closer to Material native feel */
.md-typeset h1 {
    font-weight: 560;
    letter-spacing: 0;
    line-height: 1.18;
    color: var(--md-default-fg-color);
}

.md-typeset h2 {
    font-weight: 620;
    letter-spacing: 0;
}

.md-typeset h3,
.md-typeset h4 {
    font-weight: 600;
    letter-spacing: 0;
}

/* Emphasis in prose and lists */
.md-typeset strong,
.md-typeset b {
    font-weight: 600 !important;
    font-variation-settings: "wght" 600;
    color: inherit;
}

/* Keep bold inside table/code contexts from looking too heavy */
.md-typeset td strong,
.md-typeset li code strong,
.md-typeset p code strong {
    font-weight: 600 !important;
    font-variation-settings: "wght" 600;
}

/* Table readability */
.md-typeset table:not([class]) th {
    font-weight: 620;
}

/* Keep code readable without looking heavy */
.md-typeset code,
.md-typeset pre code {
    font-family: var(--md-code-font);
    font-weight: 400;
}

[data-md-color-scheme="slate"] .md-typeset h1 {
    color: rgba(255, 255, 255, 0.88);
}
