/* =========================================================
   GLOBAL COLORS
========================================================= */

:root {
    --md-primary-fg-color: #0f172a;
    --md-default-bg-color: #0b1120;
}

/* =========================================================
   LAYOUT
========================================================= */

.md-grid {
    max-width: 1600px;
}

.md-content__inner {
    margin: 0 auto;
    padding-bottom: 5rem;
}

/* =========================================================
   TYPOGRAPHY
========================================================= */

.md-typeset {
    font-size: 0.78rem;
    line-height: 1.85;
}

.md-typeset p,
.md-typeset li {
    line-height: 1.85;
}

.md-typeset h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
}

.md-typeset h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 2.7rem;
    letter-spacing: -0.02em;
}

.md-typeset h3 {
    font-weight: 700;
}

/* =========================================================
   LINKS
========================================================= */

.md-typeset a {
    transition: opacity 0.2s ease;
}

.md-typeset a:hover {
    opacity: 0.8;
}

/* =========================================================
   IMAGES
========================================================= */

.md-content img {
    width: 100%;
    height: auto;

    border-radius: 16px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.02);

    margin-top: 1.2rem;
    margin-bottom: 1.8rem;
}

/* =========================================================
   CODE BLOCKS
========================================================= */

.highlight pre {
    border-radius: 16px;

    border: 1px solid rgba(255, 255, 255, 0.06);

    padding: 1rem;

    background-color: rgba(255, 255, 255, 0.015);
}

.md-typeset code {
    border-radius: 6px;
    padding: 0.15rem 0.35rem;
}

/* =========================================================
   SIDEBAR
========================================================= */

.md-sidebar--primary,
.md-sidebar--secondary {
    padding-top: 1rem;
}

.md-nav__title {
    font-weight: 700;
}

.md-nav__link {
    border-radius: 8px;
}

/* =========================================================
   TABLES
========================================================= */

.md-typeset table:not([class]) {
    border-radius: 14px;
    overflow: hidden;
}

/* =========================================================
   SEARCH
========================================================= */

.md-search__form {
    border-radius: 14px;
}

/* =========================================================
   HEADER
========================================================= */

.md-header {
    backdrop-filter: blur(10px);
    background-color: rgba(15, 23, 42, 0.75);
}

/* =========================================================
   SCROLL
========================================================= */

html {
    scroll-behavior: smooth;
}

/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width: 768px) {

    .md-typeset h1 {
        font-size: 1.7rem;
    }

    .md-grid {
        max-width: 100%;
    }

    .md-content__inner {
        padding-bottom: 3rem;
    }
}
