:root {
    --hm-shell-sidebar: 18.25rem;
    --hm-shell-border: #e8ebe5;
    --hm-shell-muted: #747a70;
    --hm-shell-panel: #f7faf5;
    --hm-shell-panel-strong: #ffffff;
    --hm-shell-accent: #60cf00;
    --hm-shell-active: #dedede;
}

.dark {
    --hm-shell-border: rgba(255, 255, 255, 0.11);
    --hm-shell-muted: #a5aba0;
    --hm-shell-panel: rgba(255, 255, 255, 0.045);
    --hm-shell-panel-strong: #0b0d0a;
    --hm-shell-active: rgba(255, 255, 255, 0.11);
}

[data-docs-theme="mint"] #navigation-items > div.hm-sidebar-group-hidden {
    display: none !important;
}

@media (min-width: 1024px) {
    .hm-docs-shell [data-docs-theme="mint"] #navbar {
        position: fixed;
        inset: 0 auto auto 0;
        width: var(--hm-shell-sidebar);
        height: 0;
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .hm-docs-shell [data-docs-theme="mint"] #navbar-transition {
        display: none;
    }

    .hm-docs-shell [data-docs-theme="mint"] #navbar .max-w-8xl,
    .hm-docs-shell [data-docs-theme="mint"] #navbar .lg\:px-12,
    .hm-docs-shell [data-docs-theme="mint"] #navbar .h-full.relative.flex-1 {
        display: contents;
    }

    .hm-docs-shell [data-docs-theme="mint"] #navbar .flex.lg\:hidden.items-center.gap-3,
    .hm-docs-shell [data-docs-theme="mint"] #navbar nav[aria-label="Main"] {
        display: none !important;
    }

    .hm-docs-shell [data-docs-theme="mint"] #sidebar {
        left: 0 !important;
        right: auto !important;
        top: 0 !important;
        bottom: 0 !important;
        display: flex !important;
        width: var(--hm-shell-sidebar) !important;
        height: 100vh !important;
        flex-direction: column;
        border-right: 1px solid var(--hm-shell-border);
        background: var(--hm-shell-panel-strong);
    }

    .hm-docs-shell [data-docs-theme="mint"] .hm-sidebar-top {
        display: grid;
        gap: 0.75rem;
        padding: 1.15rem 1.15rem 0.75rem;
        border-bottom: 1px solid color-mix(in srgb, var(--hm-shell-border) 72%, transparent);
        background: var(--hm-shell-panel-strong);
    }

    .hm-docs-shell [data-docs-theme="mint"] .hm-sidebar-logo {
        display: flex;
        min-height: 2rem;
        align-items: center;
        justify-content: space-between;
    }

    .hm-docs-shell [data-docs-theme="mint"] .hm-sidebar-logo a {
        display: inline-flex;
        align-items: center;
        min-width: 0;
    }

    .hm-docs-shell [data-docs-theme="mint"] .hm-sidebar-logo .nav-logo {
        height: 1.85rem;
        max-width: 10.5rem;
        object-fit: contain;
    }

    .hm-docs-shell [data-docs-theme="mint"] .hm-sidebar-search #search-bar-entry {
        width: 100%;
        max-width: none;
        height: 2.45rem;
        border: 1px solid var(--hm-shell-border);
        border-radius: 0.72rem;
        background: var(--hm-shell-panel);
        box-shadow: none;
        color: var(--hm-shell-muted);
    }

    .hm-docs-shell [data-docs-theme="mint"] .hm-section-picker {
        position: relative;
    }

    .hm-docs-shell [data-docs-theme="mint"] .hm-section-trigger {
        display: flex !important;
        width: 100%;
        height: 2.65rem;
        align-items: center;
        gap: 0.65rem;
        border: 1px solid var(--hm-shell-border);
        border-radius: 0.75rem;
        background: var(--hm-shell-panel);
        color: rgb(var(--gray-900));
        padding: 0 0.75rem;
        text-align: left;
    }

    .hm-docs-shell [data-docs-theme="mint"] .hm-section-trigger:focus,
    .hm-docs-shell [data-docs-theme="mint"] .hm-section-trigger:focus-visible {
        outline: none;
        box-shadow: 0 0 0 2px color-mix(in srgb, var(--hm-shell-accent) 18%, transparent);
    }

    .dark.hm-docs-shell [data-docs-theme="mint"] .hm-section-trigger {
        color: rgb(var(--gray-100));
    }

    .hm-docs-shell [data-docs-theme="mint"] .hm-section-icon {
        width: 1.35rem;
        height: 1.35rem;
        flex: 0 0 auto;
        border: 1px solid var(--hm-shell-border);
        border-radius: 0.45rem;
        background:
            radial-gradient(circle at 35% 35%, var(--hm-shell-accent) 0 0.16rem, transparent 0.18rem),
            radial-gradient(circle at 66% 35%, var(--hm-shell-accent) 0 0.16rem, transparent 0.18rem),
            radial-gradient(circle at 35% 66%, var(--hm-shell-accent) 0 0.16rem, transparent 0.18rem),
            radial-gradient(circle at 66% 66%, var(--hm-shell-accent) 0 0.16rem, transparent 0.18rem),
            color-mix(in srgb, var(--hm-shell-accent) 13%, transparent);
    }

    .hm-docs-shell [data-docs-theme="mint"] .hm-section-label {
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
        color: inherit;
        font-weight: 650;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hm-docs-shell [data-docs-theme="mint"] .hm-section-chevron {
        flex: 0 0 auto;
        margin-left: auto;
        color: var(--hm-shell-muted);
        font-size: 1rem;
        transform: translateY(-1px);
    }

    .hm-docs-shell [data-docs-theme="mint"] .hm-section-menu {
        position: absolute;
        z-index: 60;
        top: calc(100% + 0.45rem);
        left: 0;
        display: none;
        width: 100%;
        padding: 0.35rem;
        border: 1px solid var(--hm-shell-border);
        border-radius: 0.75rem;
        background: var(--hm-shell-panel-strong);
        box-shadow: 0 18px 36px rgba(13, 16, 10, 0.11);
    }

    .dark.hm-docs-shell [data-docs-theme="mint"] .hm-section-menu {
        box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
    }

    .hm-docs-shell [data-docs-theme="mint"] .hm-section-picker.is-open .hm-section-menu {
        display: grid;
        gap: 0.1rem;
    }

    .hm-docs-shell [data-docs-theme="mint"] .hm-section-menu a {
        display: flex;
        min-height: 2.2rem;
        align-items: center;
        border-radius: 0.55rem;
        padding: 0.45rem 0.55rem;
        color: var(--hm-shell-muted);
        font-size: 0.88rem;
        text-decoration: none;
    }

    .hm-docs-shell [data-docs-theme="mint"] .hm-section-menu a:hover {
        background: var(--hm-shell-panel);
        color: rgb(var(--gray-900));
    }

    .dark.hm-docs-shell [data-docs-theme="mint"] .hm-section-menu a:hover {
        color: rgb(var(--gray-100));
    }

    .hm-docs-shell [data-docs-theme="mint"] .hm-section-menu a.is-active {
        background: var(--hm-shell-active);
        color: rgb(var(--gray-950));
        font-weight: 600;
    }

    .dark.hm-docs-shell [data-docs-theme="mint"] .hm-section-menu a.is-active {
        color: rgb(var(--gray-50));
    }

    .hm-docs-shell [data-docs-theme="mint"] #sidebar-content {
        position: relative !important;
        inset: auto !important;
        flex: 1 1 auto;
        min-height: 0;
        padding: 0 0.85rem 0.75rem 1rem;
        overflow: auto;
        mask-image: linear-gradient(transparent, #000 0.8rem, #000 calc(100% - 0.9rem), transparent);
        scrollbar-width: none;
    }

    .hm-docs-shell [data-docs-theme="mint"] #sidebar-content::-webkit-scrollbar {
        display: none;
    }

    .hm-docs-shell [data-docs-theme="mint"] #sidebar-content .sticky {
        height: 0.85rem;
    }

    .hm-docs-shell [data-docs-theme="mint"] #navigation-items {
        padding-top: 0.35rem;
        padding-bottom: 1rem;
    }

    .hm-docs-shell [data-docs-theme="mint"] #navigation-items > div {
        margin-top: 1.5rem;
    }

    .hm-docs-shell [data-docs-theme="mint"] #navigation-items > div:first-child {
        margin-top: 0;
    }

    .hm-docs-shell [data-docs-theme="mint"] #navigation-items > div.hm-sidebar-group-hidden {
        display: none !important;
    }

    .hm-docs-shell [data-docs-theme="mint"] .sidebar-group-header {
        margin-bottom: 0.45rem;
        padding-left: 0.65rem;
        color: rgb(var(--gray-900));
        font-size: 0.84rem;
        font-weight: 550;
        letter-spacing: 0;
    }

    .dark.hm-docs-shell [data-docs-theme="mint"] .sidebar-group-header {
        color: rgb(var(--gray-200));
    }

    .hm-docs-shell [data-docs-theme="mint"] .sidebar-group {
        display: grid;
        gap: 0.12rem;
    }

    .hm-docs-shell [data-docs-theme="mint"] .sidebar-group a,
    .hm-docs-shell [data-docs-theme="mint"] .sidebar-group button {
        min-height: 2.15rem;
        align-items: center;
        border-radius: 0.65rem;
        padding-top: 0.45rem;
        padding-bottom: 0.45rem;
        padding-right: 0.65rem;
        color: var(--hm-shell-muted);
        font-size: 0.9rem;
        line-height: 1.25rem;
        transition: background 0.12s ease, color 0.12s ease;
    }

    .hm-docs-shell [data-docs-theme="mint"] .sidebar-group a:hover,
    .hm-docs-shell [data-docs-theme="mint"] .sidebar-group button:hover {
        background: var(--hm-shell-panel);
        color: rgb(var(--gray-900));
    }

    .dark.hm-docs-shell [data-docs-theme="mint"] .sidebar-group a:hover,
    .dark.hm-docs-shell [data-docs-theme="mint"] .sidebar-group button:hover {
        color: rgb(var(--gray-100));
    }

    .hm-docs-shell [data-docs-theme="mint"] .sidebar-group [data-active="true"] > a,
    .hm-docs-shell [data-docs-theme="mint"] .sidebar-group a[aria-current="page"] {
        background: var(--hm-shell-active) !important;
        color: rgb(var(--gray-950)) !important;
        box-shadow: none;
        text-shadow: none !important;
    }

    .dark.hm-docs-shell [data-docs-theme="mint"] .sidebar-group [data-active="true"] > a,
    .dark.hm-docs-shell [data-docs-theme="mint"] .sidebar-group a[aria-current="page"] {
        color: rgb(var(--gray-50)) !important;
    }

    .hm-docs-shell [data-docs-theme="mint"] .sidebar-group [style*="padding-left:1rem"] {
        padding-left: 0.65rem !important;
    }

    .hm-docs-shell [data-docs-theme="mint"] .sidebar-group [style*="padding-left:1.75rem"] {
        padding-left: 1.5rem !important;
    }

    .hm-docs-shell [data-docs-theme="mint"] .hm-sidebar-footer {
        display: flex;
        justify-content: flex-end;
        padding: 0.7rem 1.15rem 0.9rem;
        border-top: 1px solid color-mix(in srgb, var(--hm-shell-border) 72%, transparent);
        background: color-mix(in srgb, var(--hm-shell-panel-strong) 92%, transparent);
    }

    .hm-docs-shell [data-docs-theme="mint"] .hm-sidebar-footer button[aria-label="Toggle dark mode"] {
        width: 3.1rem;
        height: 2.05rem;
        border: 1px solid var(--hm-shell-border);
        border-radius: 999px;
        background: var(--hm-shell-panel);
    }

    .hm-docs-shell [data-docs-theme="mint"] #content-area {
        padding-left: calc(var(--hm-shell-sidebar) + 4.7rem) !important;
        margin-left: 0 !important;
    }

    .hm-docs-shell [data-docs-theme="mint"] #content-container > .flex {
        padding-top: 3.6rem;
    }

    .hm-docs-shell [data-docs-theme="mint"] #header {
        max-width: 48rem;
    }

    .hm-docs-shell [data-docs-theme="mint"] #page-title {
        font-size: 2.1rem;
        line-height: 2.55rem;
        letter-spacing: 0;
    }

    .hm-docs-shell [data-docs-theme="mint"] #table-of-contents {
        color: var(--hm-shell-muted);
    }

    .hm-docs-shell [data-docs-theme="mint"] #table-of-contents h2 button {
        color: var(--hm-shell-muted);
        font-weight: 500;
    }

    .hm-docs-shell [data-docs-theme="mint"] #table-of-contents-content {
        border-color: var(--hm-shell-border);
    }
}

.hm-search-dialog {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 10vh 1rem 1rem;
}

.hm-search-dialog.is-open {
    display: flex;
}

.hm-search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 16, 10, 0.18);
    backdrop-filter: blur(3px);
}

.dark .hm-search-backdrop {
    background: rgba(0, 0, 0, 0.45);
}

.hm-search-panel {
    position: relative;
    width: min(100%, 38rem);
    overflow: hidden;
    border: 1px solid var(--hm-shell-border);
    border-radius: 0.85rem;
    background: var(--hm-shell-panel-strong);
    box-shadow: 0 28px 70px rgba(13, 16, 10, 0.18);
}

.dark .hm-search-panel {
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.hm-search-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem 0;
}

.hm-search-label {
    color: rgb(var(--gray-900));
    font-size: 0.85rem;
    font-weight: 650;
}

.dark .hm-search-label {
    color: rgb(var(--gray-100));
}

.hm-search-kbd {
    display: inline-flex;
    min-height: 1.55rem;
    align-items: center;
    border: 1px solid var(--hm-shell-border);
    border-radius: 0.45rem;
    padding: 0 0.45rem;
    color: var(--hm-shell-muted);
    font-size: 0.72rem;
    font-weight: 650;
}

.hm-search-input {
    width: calc(100% - 2rem);
    height: 2.85rem;
    margin: 0.75rem 1rem 0.65rem;
    border: 1px solid var(--hm-shell-border);
    border-radius: 0.65rem;
    background: var(--hm-shell-panel);
    color: rgb(var(--gray-950));
    padding: 0 0.85rem;
    font-size: 1rem;
    outline: none;
}

.hm-search-input:focus {
    border-color: color-mix(in srgb, var(--hm-shell-accent) 52%, var(--hm-shell-border));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--hm-shell-accent) 16%, transparent);
}

.dark .hm-search-input {
    color: rgb(var(--gray-50));
}

.hm-search-sitemap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 1rem 0.7rem;
    border: 1px solid var(--hm-shell-border);
    border-radius: 0.6rem;
    background: var(--hm-shell-panel);
    color: rgb(var(--gray-900));
    padding: 0.7rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.dark .hm-search-sitemap {
    color: rgb(var(--gray-100));
}

.hm-search-results {
    display: grid;
    gap: 0.15rem;
    max-height: 22rem;
    overflow: auto;
    border-top: 1px solid var(--hm-shell-border);
    padding: 0.45rem;
}

.hm-search-result {
    display: grid;
    gap: 0.1rem;
    border-radius: 0.58rem;
    padding: 0.65rem 0.7rem;
    color: rgb(var(--gray-900));
    text-decoration: none;
}

.dark .hm-search-result {
    color: rgb(var(--gray-100));
}

.hm-search-result:hover {
    background: var(--hm-shell-panel);
}

.hm-search-result span {
    font-size: 0.92rem;
    font-weight: 600;
}

.hm-search-result small {
    color: var(--hm-shell-muted);
    font-size: 0.76rem;
}

.hm-search-empty {
    margin: 0;
    padding: 1rem;
    color: var(--hm-shell-muted);
    font-size: 0.9rem;
}

.hm-search-open body {
    overflow: hidden;
}

@media (max-width: 1023px) {
    [data-docs-theme="mint"] #navbar {
        border-bottom: 1px solid var(--hm-shell-border);
        background: color-mix(in srgb, rgb(var(--background-light)) 88%, transparent);
        backdrop-filter: blur(16px);
    }

    .dark [data-docs-theme="mint"] #navbar {
        background: color-mix(in srgb, rgb(var(--background-dark)) 80%, transparent);
    }
}

@media (max-width: 640px) {
    .hm-search-dialog {
        padding-top: 7vh;
    }

    .hm-search-kbd {
        display: none;
    }
}
