/* =========================
   PAGE / GIST CONTAINER
========================= */

.gist-card {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    overflow: hidden;
}

.gist-card__head {
    background: #151b23;
    border-bottom: 1px solid #30363d;
    padding: 10px 16px;
}

.gist-card__file {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.85rem;
    color: #4493F8;
}

.gist-card__body {
    padding: 32px;
}
@media (max-width: 767.98px) {
    .gist-card__body {
        padding: 12px;
    }
}

/* =========================
   MARKDOWN CONTENT BASE
========================= */

.kod-content {
    font-size: 1rem;
    line-height: 1.75;
    color: #e6edf3;
}

.kod-content > :first-child {
    margin-top: 0;
}

.kod-content > :last-child {
    margin-bottom: 0;
}

.kod-content p {
    margin: 0 0 1rem;
}


/* =========================
   HEADINGS
========================= */

.kod-content h1,
.kod-content h2,
.kod-content h3,
.kod-content h4,
.kod-content h5,
.kod-content h6 {
    font-weight: 600;
    line-height: 1.25;
    margin: 1.5rem 0 0.75rem;
    scroll-margin-top: 90px;
}

.kod-content h1 { font-size: 2rem; }
.kod-content h2 { font-size: 1.5rem; }
.kod-content h3 { font-size: 1.25rem; }
.kod-content h4 { font-size: 1.1rem; }

.kod-content h5,
.kod-content h6 {
    font-size: 1rem;
    color: #8b949e;
}


/* =========================
   LINKS
========================= */

.kod-content a {
    color: #4493F8;
}

/* =========================
   LISTS
========================= */

.kod-content ul,
.kod-content ol {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}

.kod-content li {
    margin-bottom: 0.25rem;
}


/* =========================
   HR
========================= */

.kod-content hr {
    border: 0;
    border-top: 1px solid #30363d;
    margin: 1rem 0;
}


/* =========================
   BLOCKQUOTE
========================= */

.kod-content blockquote {
    margin: 0 0 1.25rem;
    padding: 0.25rem 1rem;
    border-left: 3px solid #30363d;
    color: #8b949e;
}

.kod-content blockquote p {
    margin: 0;
}


/* =========================
   IMAGES
========================= */

.kod-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1rem 0;
}


/* =========================
   TABLES
========================= */

.kod-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.5rem;
    font-size: 0.9rem;
    display: block;
    overflow-x: auto;
    border-radius: 8px;
}

.kod-content th,
.kod-content td {
    padding: 0.6rem 0.75rem;
    border: 1px solid #30363d;
}

.kod-content th {
    background-color: #161b22;
    font-weight: 600;
    text-align: left;
}

.kod-content tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}


/* =========================
   INLINE CODE
========================= */

.kod-content :not(pre) > code {
    background-color: rgba(110, 118, 129, 0.18);
    border: 1px solid rgba(48, 54, 61, 0.9);
    border-radius: 6px;
    padding: 0.15em 0.4em;
    font-size: 0.85em;
    color: #e6edf3;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}


/* =========================
   CODE BLOCKS
========================= */

.kod-content pre {
    margin: 0 0 1.25rem;
    padding: 16px;
    overflow-x: auto;
    background: #151b23f2;
    border: 1px solid rgba(48, 54, 61, 0.9);
    border-radius: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    line-height: 1.5;
}

.kod-content .highlight {
    margin: 0 0 1.25rem;
    border-radius: 8px;
    overflow: hidden;
}

.kod-content .highlight pre {
    margin: 0;
}

.kod-content pre::-webkit-scrollbar {
    height: 6px;
}

.kod-content pre::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 999px;
}


/* =========================
   HTML BLOCKS (dl / dt / dd)
========================= */

.kod-content dl {
    margin: 0 0 1.25rem;
    padding: 0;
}

.kod-content dt {
    font-weight: 600;
    margin-top: 1rem;
    color: #e6edf3;
}

.kod-content dd {
    margin: 0.25rem 0 0.75rem 1.25rem;
    color: #8b949e;
}


/* =========================
   DETAILS / SUMMARY (FAQ)
========================= */

.kod-content details {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 0 0 1rem;
}

.kod-content summary {
    cursor: pointer;
    font-weight: 600;
    color: #e6edf3;
}


/* =========================
   KBD (keyboard keys)
========================= */

.kod-content kbd {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 0.85em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas;
    color: #e6edf3;
}

/* =========================
   PYGMENTS TOKENS
========================= */

pre { line-height: 125%; }

.c  { color: #8B949E; font-style: italic; }
.err { color: #F85149; }

.k  { color: #FF7B72; }
.o  { color: #FF7B72; font-weight: bold; }

.n  { color: #E6EDF3; }
.p  { color: #E6EDF3; }

.cm, .c1, .cs { color: #8B949E; font-style: italic; }
.cp { color: #8B949E; font-weight: bold; }

.s, .s1, .s2 { color: #A5D6FF; }

.m { color: #A5D6FF; }

.nb { color: #E6EDF3; }

.nt { color: #7EE787; }
.na { color: #E6EDF3; }

.gd { color: #FFA198; background-color: #490202; }
.gi { color: #56D364; background-color: #0F5323; }

.gs { font-weight: bold; }
.ge { font-style: italic; }

.nc, .ne { color: #F0883E; font-weight: bold; }
.nf { color: #D2A8FF; font-weight: bold; }

.w { color: #6E7681; }