/*
Dev style (GitHub-like)
2024 Jal
*/

@font-face {
    font-family: jetbrains;
    src: url('../../fonts/JetBrainsMono.ttf');
    font-display: swap;
}

#content {
    font-family: sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #1f2328;
    background: #ffffff;
}

#content h1 {
    font-family: sans-serif;
    font-weight: bold;
    border-bottom: 1px solid #cccccc;
    width: 100%;
    padding-bottom: 3px;
}

#content h2 {
    font-family: sans-serif;
    font-weight: normal;
    border-bottom: 1px solid #cccccc;
    width: 100%;
    padding-bottom: 3px;
}

#content h3,
#content h4,
#content h5 {
    font-family: sans-serif;
    font-weight: bold;
}

#content a {
    color: #0a64d9;
}

#content table {
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
}

#content th,
#content td {
    padding: 0.63em;
    text-align: left;
    border: 1px solid #637080;
    vertical-align: top;
    white-space: normal;
    overflow-wrap: anywhere;
}

#content pre {
    overflow-x: auto;
}

#content code {
    font-family: jetbrains, monospace;
    font-size: 0.88em;
    background-color: #edf0f3;
    padding: 0 0.2em 0 0.2em;
    border-radius: 0.2em;
}

#content pre code.hljs {
    display: block;
    background-color: #edf0f3;
    padding: 0.6rem 0.8rem;
}

#content blockquote {
    margin: 1.5em 10px;
    padding: 0.5em 10px;
    background-color: #f6f7fa;
    border-left: 0.2em solid #cccccc;
}

#content hr {
    height: 0.25em;
    padding: 0;
    margin: 24px 0;
    background-color: #e1e4e8;
    border: 0;
}

@media (prefers-color-scheme: dark) {
    #content {
        background: #0d1117;
        color: #dce3e9;
    }

    #content a {
        color: #4493f8;
    }

    #content h1,
    #content h2 {
        border-bottom: 1px solid #48525c;
    }

    #content code {
        background-color: #232a33;
    }

    #content pre code.hljs {
        background-color: #232a33;
    }

    #content blockquote {
        background-color: #14181d;
        border-left-color: #48525c;
    }

    #content hr {
        background-color: #48525c;
    }
}