.md-sidebar__inner .md-nav__item {
    margin-bottom: 0.7em;
}

.md-sidebar__inner .md-nav__link {
    padding-top: 0.4em;
    padding-bottom: 0.4em;
}

.navbar.o-header .header-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
}

.navbar.o-header .navbar-brand img {
    max-height: 48px;
    height: auto;
}

.navbar.o-header .navbar-search {
    flex: 1 1 300px;
    min-width: 180px;
    max-width: 400px;
    margin: 0 1em;
}

.navbar.o-header p {
    flex: 2 1 200px;
    margin: 0 1em 0 0;
    font-size: 1.2em;
    text-align: left;
}

@media (max-width: 900px) {
    .navbar.o-header .header-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5em;
    }

    .navbar.o-header .navbar-search {
        max-width: 100%;
        margin: 0;
    }

    .navbar.o-header p {
        text-align: center;
        margin: 0.5em 0;
    }

    .navbar.o-header .btn-github {
        margin: 0 auto 0.5em auto;
        display: block;
    }
}

@media (max-width: 600px) {

    html,
    body {
        font-size: 14px !important;
    }

    .navbar.o-header .header-container {
        padding: 0 0.5em;
    }

    .navbar.o-header .navbar-brand img {
        max-height: 32px;
    }

    .navbar.o-header p {
        font-size: 0.95em;
    }
}

.md-typeset {
    font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial,
        sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4 {
    font-family: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, Arial,
        sans-serif;
}

.md-typeset h1 {
    font-size: 2.1rem;
    margin-bottom: 1rem;
}

.md-typeset h2 {
    margin-top: 2.2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 0.35rem;
}

.md-typeset h3 {
    margin-top: 1.6rem;
}

.md-typeset a {
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.md-typeset a:hover {
    border-bottom-color: currentColor;
}

.md-typeset table {
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95rem;
}

.md-typeset table th,
.md-typeset table td {
    padding: 10px 12px;
    vertical-align: top;
}

.md-typeset table thead th {
    background: rgba(0, 0, 0, 0.04);
    font-weight: 600;
}

.md-typeset table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

.md-typeset ul li {
    margin-bottom: 0.4em;
}

.md-main__inner {
    max-width: 1200px;
}

.md-sidebar {
    top: 0 !important;
    height: 100vh !important;
    overflow: hidden !important;
}

.md-sidebar--primary .md-sidebar__scrollwrap,
.md-sidebar--secondary .md-sidebar__scrollwrap {
    max-height: calc(100vh - 120px) !important;
    overflow: auto !important;
}

.btn-github {
    padding: 4px 10px;
    font-size: 0.85rem;
    line-height: 1.2;
    border-radius: 6px;
}

.navbar.o-header .header-container {
    margin: 0 2em;
    padding: 0;
    align-items: center;
}

.navbar.o-header {
    justify-content: center;
}

.navbar.o-header .header-container .navbar-brand {
    margin: 0;
}

.md-search {
    position: relative;
    z-index: 50;
}