body {
    min-height: 1000px;
}

body,
p,
li {
    font-family: "Neue-Haas-Grotesk-Text", "helvetica", "arial", sans-serif !important;
}

main {
    /* background-color: #fff; */
}

.footer {
    padding: 60px;
}

/*  https://jhildenbiddle.github.io/docsify-themeable/#/customization   */
/* https://www.markdownguide.org/basic-syntax/ */

.docs .nav-bar {
    position: fixed !important;
}

html body,
:root {
    --base-font-family: "Neue-Haas-Grotesk-Text", Neue-Haas-Grotesk-Text, sans-serif;
    --content-max-width: 800px;
    --sidebar-width: calc(25vw - 30px);
    --sidebar-padding: 0 30px;
    --base-font-size: 19px;
    --base-line-height: 1.6;
    --theme-color: black;
    /*    --heading-h2-margin: 1.2em 0 0 0;*/
    /*    --heading-h3-margin: 1.2em 0 0 0;*/
    --theme-color: black;
    --theme-saturation: 100%;
    --heading-color: black;
    --sidebar-nav-link-color: black;
    --base-color: black;
    --kbd-background: #eee;
    --kbd-border: 1px solid #b4b4b4;
    --kbd-border-radius: 5px;
    --table-row-odd-background: transparent;
    --kbd-padding: 0.65em 0.5em;
    --sidebar-toggle-offset-top: -5px;
    --code-font-size: 15px;
    --heading-h2-font-size: 40px;
    --heading-h4-font-size: 20px;
    letter-spacing: 0.3px;

    --blockquote-padding: 20px;
    --blockquote-border-width: 1px;
    --blockquote-border-style: solid;
    --blockquote-border-color: transparent;
    --blockquote-border-radius: 20px;
    --blockquote-background: white;
    --blockquote-color: black;
    --blockquote-font-family: "Neue-Haas-Grotesk-Text", "helvetica", "arial", sans-serif;
    --blockquote-font-size: 19px;
    --blockquote-font-style: normal;
    --blockquote-font-weight: normal;
}

.markdown-section blockquote {
    quotes: "»" "«" "»" "«";
}

body #docs .markdown-section blockquote * {
    font-size: var(--blockquote-font-size)!important;
    font-style: var(--blockquote-font-style);
    font-weight: var(--blockquote-font-weight);
    line-height: inherit!important;
    letter-spacing: inherit!important;
}

.markdown-section a.anchor:hover {
    text-decoration: underline solid black 1px;
    text-underline-offset: 5px;
}

#content {
    display: block !important;
}

main {
    overflow: hidden;
    background-color: #f7f7f7;
}

h1 code,
h2 code,
h3 code,
h4 code,
h5 code,
h6 code,
li code,
p code {
    /* color:blue!important; */
    background-color: rgb(221, 221, 255) !important;
    color: #000 !important;
    font-size: 0.85em !important;
    letter-spacing: 0 !important;
}

/* #docs {
    border: 1px solid #000;
    border-bottom: none;
} */

.sidebar-docs .sidebar-subnav,
.sidebar-dev .sidebar-subnav {
    display: none;
}

.sidebar-docs:has(.active) .sidebar-subnav {
    display: block;
}

.sidebar-dev:has(.active) .sidebar-subnav {
    display: block;
}

.sidebar-nav > ul:first-of-type {
    padding-bottom: 20px;
}

#docs .content {
    padding: 60px 30px 30px 30px;
}

/* .markdown-section > :first-child:not(.lazyframe) {
    margin-top: 0;
    margin-top: 0;
} */

.markdown-section .lazyframe {
    margin-top: 30px;
}

#docs .content li,
#docs .content td,
#docs .content p {
    color: rgb(0 0 0 / 70%);
    line-height: 1.5;
}

#docs .content a {
    color: #000;
}

.sidebar {
    position: fixed;
    top: 40px;
    /* right: calc(100% - 30px); */
    border: none !important;
    background-color: transparent;
}

.sidebar:has(.search) {
    margin-top: 0;
}

.table-top table th,
.table-top table td {
    vertical-align: top;
}
.text-small {
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 0.5px;
    hyphens: auto;
}

.table-first-nobreak table td:first-child {
    white-space: nowrap;
}

.table-first-nobreak table th,
.table-first-nobreak table td {
    width: auto;
    min-width: 100px;
}

@media only screen and (max-width: 1000px) {
    html body,
    :root {
        --sidebar-width: 250px;
        --code-block-padding: 15px;
        --sidebar-padding: 0 0 0 30px;
    }

    .sidebar {
        right: 100%;
    }

    #docs .content {
        /* padding: 20px 15px 30px 30px; */
    }
}

@media (max-width: 960px) {
    .block-docs-1142 {
        padding-left: 0;
        padding-right: 0;
    }
}

ol li {
    list-style-type: unset;
}

.markdown-section tr {
    border-bottom: 1px solid #b3b3b3;
    vertical-align: top;
}

.markdown-section th {
    min-width: 200px;
}

#docs {
    position: relative;
}

#docs h1,
#docs h2,
#docs h3,
#docs h4 {
    text-transform: none;
}

@media only screen and (min-width: 1000px) {
    #docs h1 {
        font-size: 70px !important;
        letter-spacing: 0 !important;
    }
}

#docs .sidebar li {
    list-style: none;
}

body.sticky .sidebar,
body.sticky .sidebar-toggle {
    /* position: absolute; */
    /* top: auto; */
}

#docs .sidebar-toggle {
    display: none;
    top: 44px;
    content: "Menu";
}

.sidebar-toggle-button {
    /* border: 1px solid #000!important; */
    background-color: #000 !important;
}

.sidebar-toggle-button span {
    /* border: 1px solid #000!important; */
    background-color: #fff !important;
}

@media only screen and (max-width: 768px) {
    #docs .sidebar-toggle {
        display: block;
        top: 64px;
    }

    .markdown-section {
        padding: 0 !important;
    }
    html body,
    :root {
        --code-font-size: 13px;
    }
    #docs .content {
        padding: 70px 15px 30px 15px;
    }

    /* #docs .markdown-section h3 {
        font-size: 20px!important;
    } */
}

@media only screen and (max-width: 640px) {
    #docs .sidebar-toggle {
        display: block;
        top: 44px;
    }
}

.markdown-section video,
.markdown-section img {
    width: 100%;
    padding: 10px 0;
}

.markdown-section table video,
.markdown-section table img {
    padding: 0;
}

#main.markdown-section {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    padding: 0;
    /* padding-top: 10px; */
}

@media only screen and (max-width: 640px) {
    #main.markdown-section {
        padding: 0;
        padding-top: 55px;
    }
}

#main.markdown-section p a {
    color: black;
    text-underline-offset: 4px;
    /*   text-decoration-color: blue;*/
    text-decoration-thickness: 1px;
}

a {
    color: black;
    text-underline-offset: 3px;
    /*   text-decoration-color: blue;*/
    text-decoration-thickness: 1px;
}

.markdown-section p {
    /* font-size: 18px; */
    margin: 1.1em 0;
    color: black;
}

.markdown-section li {
    /* font-size: 18px; */
    font-family: "Neue-Haas-Grotesk-Text";
    list-style-position: outside;
}

.markdown-section h1 {
    /* font-weight: 600; */
    color: black;
    padding-bottom: 15px;
}

.markdown-section h1,
.markdown-section h2 {
    line-height: 1.2;
}

.markdown-section h2 {
    font-size: var(--heading-h2-font-size) !important;
    letter-spacing: -0.3px !important;
}

.markdown-section h3 {
    font-size: var(--heading-h3-font-size) !important;
    line-height: 1.3;
}

.markdown-section h1 + h3 {
    padding: 1rem 0;
    margin: 0 !important;
}

.markdown-section h4 {
    font-size: var(--heading-h4-font-size) !important;
    line-height: 1.3;
}

/**
 * prism.js Funky theme
 * Based on “Polyfilling the gaps” talk slides http://lea.verou.me/polyfilling-the-gaps/
 * @author Lea Verou
 */

code[class*="language-"],
pre[class*="language-"] {
    display: block;
    overflow: auto;
    font-family: var(--code-font-family, "Consolas, Monaco");
    font-size: var(--code-font-size);
    font-weight: var(--code-font-weight);
    direction: ltr;
    text-align: left;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    line-height: 1.5;
    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4;
    hyphens: none;
}

/* Code blocks */
pre[class*="language-"],
pre:has(code) {
    padding: var(--code-block-padding);
    margin: var(--code-block-margin);
    overflow: auto;
    background-image: none;
    background-color: black;
    color: white;
}

code[class*="language-"] {
    background: black;
    color: white;
    /* box-shadow: -.3em 0 0 .3em black, .3em 0 0 .3em black; */
}

/* Inline code */
:not(pre) > code[class*="language-"] {
    padding: 0.2em;
    border-radius: 0.3em;
    box-shadow: none;
}

.token.comment {
    color: #757575;
}

.token.punctuation {
    /* color: #999; */
}

.namespace {
    opacity: 0.7;
}

.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol {
    color: rgb(160, 160, 255);
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin {
    color: #71e8a3;
}

/* .token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.toke.variable,
.token.inserted {
    color: #abddfa;
} */

.token.atrule,
.token.attr-value,
.token.keyword {
    color: rgb(218, 126, 180);
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.toke.variable,
.token.inserted,
.token.prolog,
.token.cdata,
.php .token.punctuation,
.token.doctype,
.token.regex,
.token.important {
    color: #b9b9b9;
}

.token.function {
    color: #dbc978;
    color: #71e8a3;
}

.token.important,
.token.bold {
    font-weight: normal;
}
.token.italic {
    font-style: italic;
}

.token.entity {
    cursor: help;
}

.token.deleted {
    color: red;
}

/* search */
.search input:focus {
    box-shadow: none !important;
}

.sidebar .search {
    margin-top: 100px;
}

.markdown-section kbd {
    font-size: 90%;
    box-shadow:
        0 1px 1px rgba(0, 0, 0, 0.2),
        0 2px 0 0 rgba(255, 255, 255, 0.7) inset;
}

.markdown-section kbd + kbd {
    margin: var(--kbd-margin);
}

.markdown-section iframe {
    margin: 0;
}

/* note styles */
.flat {
    display: inline-flex;
    align-items: baseline;
    padding: 15px !important;
    margin: 0.8em 0 !important;
    width: 100%;
}

.flat p {
    margin-top: 0;
    /* color: blue!important; */
}

.flat .title {
    font-size: 0;
    /* filter: grayscale(); */
}

.markdown-section div,
.markdown-section h2,
.markdown-section h3,
.markdown-section h4 {
    scroll-margin-top: 100px;
}

.markdown-section h5 {
    font-size: 18px;
}

.markdown-section .tip,
.markdown-section .note {
    display: inline-block !important;
    align-items: baseline !important;
    margin: 1em 0 !important;
    padding: 15px !important;
    padding-left: 40px !important;
    width: 100% !important;
    word-wrap: break-word !important;
    position: relative !important;
    word-break: break-word !important;
    background-repeat: no-repeat !important;
    background-position: 10px 16px !important;
}

.tip {
    background-color: rgba(0, 255, 0, 0.12) !important;
    border: 1px solid rgba(0, 255, 0, 0.4) !important;
    background-image: url(../../docs/assets/icon-tip.svg) !important;
}

.note {
    background-color: rgba(0, 0, 255, 0.05) !important;
    border: 1px solid rgba(0, 0, 255, 0.15) !important;
    background-image: url(../../docs/assets/icon-note.svg) !important;
}

.markdown-section .note *,
.markdown-section .tip * {
    padding: 0 !important;
    margin: 0 !important;
}

small {
    font-size: 12px;
    color: #000;
    opacity: 0.5;
}

.matching-post h1,
.matching-post h2,
.matching-post h3,
.matching-post h4,
.matching-post h5 {
    letter-spacing: 0;
}

/* blcoks grid */

#docs .content:has(.blocks-grid) {
    padding-right: 0;
}

.blocks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.block-card {
    background-color: #fff;
    border: 1px solid #000;
    border-radius: 30px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    /* min-height: 200px; */
}

.block-icon {
    text-align: center;
    padding: 30px 50px 50px 50px;
    font-size: 40px !important;
}

#content .block-card h4 {
    font-size: 18px !important;
}

#content .block-card .description {
    color: rgba(0, 0, 0, 0.6);
}
