/* MD styles */
.md-content {
    line-height: 1.5;
    color: var(--text-secondary);
}

.md-content .post-title {
    border-bottom: none;
}

/* Table of Contents */
.md-content .toc-title {
    margin-top: 0rem;
}

.md-content .toc li {
    list-style: none;
}

.md-content .toc ul ul,
.md-content .toc ol ol {
    padding-left: 1.25rem;
    margin: 0;
}

.md-content .toc li::before {
    content: none;
}

.md-content .toc li {
    list-style: disc;
}

/* General */
.md-content h1,
.md-content h2,
.md-content h3,
.md-content h4,
.md-content h5,
.md-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.25;
}

.md-content h1 {
    font-size: 2em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid var(--border-bottom);
}
.md-content h2 {
    font-size: 1.5em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid var(--border-bottom);
}
.md-content h3 {
    font-size: 1.25em;
}
.md-content h4 {
    font-size: 1em;
}
.md-content h5 {
    font-size: 0.875em;
}
.md-content h6 {
    font-size: 0.85rem;
}

.md-content a.heading-link {
    color: unset;
}

.md-content p {
    font-size: 1rem;
    margin: 1rem 0;
}

.md-content ul,
.md-content ol {
    margin: 1rem 0;
    padding-left: 1rem;
}

.md-content li {
    margin: 0.5rem 0;
}
.md-content li::before {
    content: "- ";
}

.md-content strong {
    font-weight: 600;
}

.md-content hr {
    height: 0.25em;
    background-color: var(--border-bottom);
    border: none;
}

/* Images */
.md-content img:hover {
    cursor: zoom-in;
}

/** Image zoom */
.zoom-overlay {
    cursor: zoom-out;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: grid;
    place-items: center;
    z-index: 999;
}

.zoom-overlay img {
    max-width: 100vw;
    max-height: 100vh;
}

/* To the top btn */
main .to-the-top {
    all: unset;
    cursor: pointer;
    visibility: hidden;
    color: var(--to-the-top);
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 1.75rem;
    transition: transform 150ms ease-out;
}

main .to-the-top.is-visible {
    visibility: visible;
}

main .to-the-top:hover {
    transform: translateY(-4px);
}

@media (min-width: 1000px) {
    main .to-the-top {
        right: 20px;
    }
}
