
:root {
    --h: 220deg;
    --s: 50%;
    --l: 50%;
    --hs: var(--h), var(--s);
    --hsl: var(--hs), var(--l);
}

body {
    background-color: hsl(var(--hs), 40%);
}

* {
    text-decoration: unset;
}

.grid {
    display: grid;
    gap: 8px;
}

#app {
    max-width: 900px;
}

#article {
    max-width: 500px;
}

#posts {
}

@media screen and (max-width: 900px) {

    #section_container {
        width: 100%;
    }

    #posts {
        border-radius: 8px !important;
        overflow: hidden;
    }

    .post {
        margin-bottom: 0 !important;
        border-radius: unset !important;
    }


    .post:not(:first-child) {
        box-shadow: rgb(0, 0, 0, .2) 0 -1px;
    }

    #aside_container {
        display: none;
    }

    #article {
        max-width: unset;
    }

    #posts {
        border: unset !important;
    }
}


.container {
    margin: 0 auto;
    display: block;
    position: relative;
    width: 100%;
}

#section {
    display: flex;
}

#aside_container {
    flex-basis: 500px;
}

img, video, audio {
    width: 100%;
    margin-bottom: 10px;
    border-radius: 4px;
}

.post {
    min-height: 150px;
    overflow: hidden;
}

.card .small {
    color: hsl(var(--h), 20%, 50%);
}

.post_meta {
}
.btn_link, button {
    background: hsl(var(--hsl));
    color: white;
    border-radius: 100px;
    margin-top: -5.5px;
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 11px 4.5px;
}


.post_media {
    max-width: 100%;
    max-height: 400px;
    display: block;
    margin: 0 auto;
}

video {
    width: 100%;
}

a {
    color: hsl(var(--hsl));
}


.post_caption {
    padding: 13px 13px 16px;
    transition: .15s;
}

.post_meta {
    font-size: .8rem;
    margin-bottom: 10px;
    color: #616161;
}

.post_container {
    max-width: 500px;
    margin: 0 auto;
}

#breadcrumb {
    display: block;
    font-size: .95rem;
    margin-bottom: 16px;
}

#breadcrumb li {
    margin-top: 2px;
    display: inline-block;
}

#breadcrumb li:not(#breadcrumb li:last-child):after {
    content: ' / ';
    color: hsl(var(--hsl));
    margin: 2px 5px 0;
    display: inline-block;
}

#aside_container, #article_container {
    padding: 16px;
}

#aside {
    height: calc(100% - 35px);
    max-width: 300px;
    position: fixed;
}

* {
    vertical-align: top;
    outline: none;
    border: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: IRANSansX, sans-serif;
}

body {
    color: hsl(var(--hs), 95%);
}

h1, h2, h3, h4, h5, h6 {
    color: white;
}

.card h1, .card h2, .card h3, .card h4, .card h5, .card h6 {
    color: black;
}

.card {
    transition: .2s;
    background-color: white;
    border-radius: 8px;
    display: block;
    margin-bottom: 8px;
    position: relative;
    color: hsl(var(--h), 20%, 20%);
}


.card.transparent {
    background: hsl(var(--hs), 60%);
    color: white;
    box-shadow: inset 0 0 0 1px hsl(var(--hs), 65%);
}

.heading {
    padding-bottom: 15px;
}

.list {
    list-style-type: none;
}

h1, h2 {
    font-weight: 800;
}

.label {
    background: hsl(var(--hs), 95%);
    border-radius: 100px;
    font-weight: 500;
    padding: 5px 12px 4px;
    margin-bottom: 5px;
    font-size: .95rem;
    user-select: none;
    text-decoration: unset !important;
    display: inline-block;
}

.link_list {
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

.link_list .card {
    display: block;
    text-align: center;
}

.link_list .link_name {
    font-size: .7rem;
    white-space: nowrap;
    margin-bottom: -3px;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: unset;
}

.card .link_icon {
    width: 50%;
    border-radius: 6px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    object-position: center;
    object-fit: scale-down;
}

.card_body_container {
    padding: 8px 12px 7px;
}

.small {
    font-size: .8rem;
}

#footer {
    position: absolute;
    bottom: 0;
}