/* ─── Typography ──────────────────────────────────────────────────────────── */

.md-typeset p {
    line-height: 1.7;
    margin-bottom: 1.25em;
}

.md-typeset h1 { font-size: 1.8rem; font-weight: 700; margin-top: 0; margin-bottom: 0.6em; }
.md-typeset h2 { font-size: 1.4rem; font-weight: 600; margin-top: 1.6em; margin-bottom: 0.5em; }
.md-typeset h3 { font-size: 1.15rem; font-weight: 600; margin-top: 1.4em; margin-bottom: 0.4em; }
.md-typeset h4 { font-size: 1.0rem;  font-weight: 600; margin-top: 1.2em; margin-bottom: 0.3em; }
.md-typeset h5 { font-size: 0.9rem;  font-weight: 600; margin-top: 1.0em; margin-bottom: 0.3em; }
.md-typeset h6 { font-size: 0.85rem; font-weight: 600; margin-top: 1.0em; margin-bottom: 0.3em; color: var(--md-default-fg-color--light); }

/* Remove top margin on first heading in a page */
.md-typeset > h1:first-child,
.md-content__inner > h1:first-child {
    margin-top: 0;
}

/* ─── Links ───────────────────────────────────────────────────────────────── */

.md-typeset a {
    color: var(--md-primary-fg-color);
    text-decoration: none;
}
.md-typeset a:hover {
    text-decoration: underline;
}

/* ─── Lists ───────────────────────────────────────────────────────────────── */

.md-typeset ul,
.md-typeset ol {
    margin-left: 1.5rem;
    margin-bottom: 1em;
}
.md-typeset ul ul,
.md-typeset ul ol,
.md-typeset ol ul,
.md-typeset ol ol {
    margin-left: 1.25rem;
    margin-bottom: 0;
}
.md-typeset li {
    margin-bottom: 0.3em;
}

/* ─── Tables ──────────────────────────────────────────────────────────────── */

.md-typeset table:not([class]) {
    border-radius: 0.4rem;
    overflow: hidden;
    font-size: 0.85rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.md-typeset table:not([class]) th {
    background-color: var(--md-primary-fg-color);
    color: var(--md-primary-bg-color);
    font-weight: 600;
    padding: 0.6em 1em;
}
.md-typeset table:not([class]) td {
    padding: 0.5em 1em;
    border-top: 1px solid var(--md-default-fg-color--lightest);
}
.md-typeset table:not([class]) tr:hover td {
    background-color: var(--md-accent-fg-color--transparent);
}

/* ─── Code ────────────────────────────────────────────────────────────────── */

.md-typeset code {
    border-radius: 0.25rem;
    font-size: 0.85em;
}
.md-typeset pre > code {
    font-size: 0.8rem;
    line-height: 1.6;
}

/* ─── Admonitions ─────────────────────────────────────────────────────────── */

.md-typeset .admonition,
.md-typeset details {
    border-radius: 0.4rem;
    font-size: 0.9rem;
}

/* ─── Navigation sidebar ──────────────────────────────────────────────────── */

.md-nav__item .md-nav__link {
    font-size: 0.75rem;
}
.md-nav--primary .md-nav__title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */

.md-copyright {
    font-size: 0.72rem;
    opacity: 0.7;
}

/* ─── Misc ────────────────────────────────────────────────────────────────── */

strong {
    font-weight: 700;
}
