﻿html {
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
    box-sizing: inherit;
}

html, body {
    margin: 0;
    padding: 0;
}

:root {
    --site-header-height: 64px;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: var(--bs-body-bg);
}

.site-main {
    width: 100%;
    padding-top: var(--site-header-height);
}

.site-content {
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.content-narrow {
    width: 100%;
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .content-narrow {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

.md-content,
.site-content {
    min-width: 0;
    overflow-wrap: break-word;
}

    .md-content img,
    img {
        max-width: 100%;
        height: auto;
    }

.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
    /*border-radius: 0.5rem;*/
}

.post-content .mermaid {
    width: 100%;
    overflow-x: auto;
    text-align: center;
}

    .post-content .mermaid svg {
        display: inline-block !important;
    }

.error {
    max-width: 40rem;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 1rem;
}

.error-code {
    color: #2d353c;
    font-size: clamp(3rem, 10vw, 6rem);
    line-height: 1;
    margin-bottom: 1rem;
}

.error-desc {
    font-size: 0.875rem;
    color: #647788;
}

.m-b-10 {
    margin-bottom: 10px !important;
}

.m-b-20 {
    margin-bottom: 20px !important;
}

.m-t-20 {
    margin-top: 20px !important;
}
