/* --------------------------------------------------------------------------

GitHub markdown style kinda taken from https://github.com/sindresorhus/github-markdown-css

-----------------------------------------------------------------------------

MIT License

Copyright (c) 2025-2026 Lorenzo Pegorari (@LorenzoPegorari)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

-------------------------------------------------------------------------- */


/* General */
.markdown-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    line-height: 1.5;
    word-wrap: break-word;
}

.markdown-body p, .markdown-body blockquote,
.markdown-body ul, .markdown-body ol,
.markdown-body dl, .markdown-body table,
.markdown-body pre, .markdown-body details {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Text decorations */
.markdown-body b, .markdown-body strong {
    font-weight: 600;
}

.markdown-body a {
    text-decoration: none;
}

/* Headings */
.markdown-body h1, .markdown-body h2, 
.markdown-body h3, .markdown-body h4, 
.markdown-body h5, .markdown-body h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.25;
    border-bottom: 1px solid #3d444d66;
}

.markdown-body h1 {
    margin: .67em 0;
    padding-bottom: .3em;
    font-size: 2em;
}

.markdown-body h2 {
    padding-bottom: .3em;
    font-size: 1.5em;
}

.markdown-body h3 {
    padding-bottom: 0.225em;
    font-weight: 600;
    font-size: 1.25em;
}

.markdown-body h4 {
    padding-bottom: 0.2em;
    font-weight: 600;
    font-size: 1em;
}

.markdown-body h5 {
    padding-bottom: 0.175em;
    font-weight: 600;
    font-size: .925em;
}

.markdown-body h6 {
    padding-bottom: 0.15em;
    font-weight: 600;
    font-size: .875em;
}

/* Lists */
.markdown-body ul, .markdown-body ol {
    padding-left: 32px;
}

.markdown-body li {
    padding: 5px 0 0 0;
}

.markdown-body li+li {
    margin-top: .25em;
}

/* Image and video */
.markdown-body img, .markdown-body video {
    width: 100%;
}

/* Blockquote */
.markdown-body blockquote {
    margin-left: 2%;
    margin-right: 2%;
    border-left: 4px solid rgb(29, 149, 29);
    border-radius: 0 8px 8px 0;
    padding: 8px 0 8px 15px;
    background-color: rgba(0, 256, 0, 0.05);
    color: inherit;
}

/* Hr */
.markdown-body hr {
    height: .25em;
    margin: 1.5rem 0;
    border: 0;
    padding: 0;
    background-color: #3d444d66;
}

/* Table */
.markdown-body table {
    max-width: 100%;
    width: max-content;
    border-spacing: 0;
    border-collapse: collapse;
    font-variant: tabular-nums;
    overflow: auto;
    display: block;
}

.markdown-body table tr {
    background-color: transparent;
    border-top: 1px solid #3d444d66;
}

.markdown-body table th, .markdown-body table td {
    padding: 6px 13px;
    border: 1px solid #3d444d66;
}

.markdown-body table th {
    font-weight: 600;
}

/* Code */
.markdown-body code, .markdown-body tt {
    margin: 0;
    padding: .2em .4em;
    border-radius: 6px;
    background-color: #656c7633;
    font-size: 105%;
    white-space: break-spaces;
}

.markdown-body .highlight pre, .markdown-body pre {
    padding: 1rem;
    border-radius: 6px;
    background-color: #656c7633;
    line-height: 1.45;
    overflow: auto;
}

.markdown-body .highlight pre code, .markdown-body pre code, 
.markdown-body .highlight pre tt, .markdown-body pre tt {
    background-color: transparent;
}
