.article-with-sidebars .article-sidebar {
    min-width: 0;
}

.article-with-sidebars .content-center {
    margin: 0;
    padding: 0 15px;
}

.article-sidebar-block {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: var(--article-panel-height, 720px);
    min-width: 0;
}

.article-sidebar-heading {
    flex: 0 0 auto;
    margin: 0 0 12px;
    padding: 0 12px;
    background: #ff7a00;
    color: #fff;
    font-family: 'Fira Sans', sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 40px;
    text-align: center;
    text-transform: uppercase;
}

.article-sidebar-description {
    flex: 0 0 auto;
    margin: 0 0 16px;
    color: #595959;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
}

.article-sidebar-scroll {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.article-sidebar-scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.article-sidebar-scroll:focus-visible {
    outline: 2px solid #9c4d00;
    outline-offset: 3px;
}

.article-sidebar-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.article-sidebar-list li {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.article-sidebar-list li:last-child {
    margin-bottom: 0;
    border-bottom: 0;
}

.article-sidebar-list a {
    display: block;
    color: #202428;
    font-size: 14px;
    line-height: 21px;
    overflow-wrap: break-word;
}

.article-sidebar-list a:hover,
.article-sidebar-list a:focus {
    color: #9c4d00;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-sidebar-list a:focus-visible {
    outline: 2px solid #9c4d00;
    outline-offset: 3px;
}

.article-sidebar-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-top: 6px;
    color: #595959;
    font-size: 12px;
    line-height: 18px;
    font-variant-numeric: tabular-nums;
}

.article-sidebar-meta span {
    white-space: nowrap;
}

.article-sidebar-empty {
    color: #595959;
    font-size: 14px;
    line-height: 21px;
}

.article-sidebar-calendar {
    margin: 16px 0 0;
}

.article-sidebar-calendar iframe {
    display: block;
    width: 100%;
    height: 206px;
    border: 0;
}

.article-with-sidebars .news-footer-size {
    width: 100% !important;
    height: auto !important;
}

.article-with-sidebars .news-footer-size .widget {
    margin-bottom: 0;
}

.article-with-sidebars .news-footer-size .widget_content {
    width: 100%;
    max-width: 336px;
    height: auto;
}

.article-with-sidebars .bottom-margin {
    margin-bottom: 24px !important;
}

.article-with-sidebars #vk_comments,
.article-with-sidebars #vk_comments iframe {
    max-width: 100%;
}

.article-with-sidebars .col-12.afterpost {
    min-height: 0;
    margin-top: 0;
}

.article-with-sidebars .afterpost .adsbygoogle[data-ad-status="unfilled"] {
    display: none !important;
}

.article-with-sidebars .afterpost .adsbygoogle[data-ad-status="filled"] {
    margin-top: 16px;
}

.article-comments {
    width: 100%;
    min-width: 0;
    order: 14;
}

.article-comments #vk_comments {
    margin: 0 auto;
}

@media (min-width: 768px) {
    .article-with-sidebars .article-columns {
        display: grid;
        grid-template-columns: 5fr 14fr 5fr;
        grid-template-rows: auto 1fr;
        align-items: start;
    }

    /* Bootstrap adds flex clearfix boxes on some site layouts. */
    .article-columns::before, .article-columns::after {
        display: none;
    }

    .article-columns > .article-sidebar,
    .article-columns > .content-center {
        max-width: none;
    }

    .article-popular-sidebar { grid-area: 1 / 1 / 3 / 2; }
    .article-updates-sidebar { grid-area: 1 / 3 / 3 / 4; }
    .article-columns > .content-center { grid-area: 1 / 2; min-width: 0; }
    .article-comments { grid-area: 2 / 2; padding: 0 15px; }
}

@media (max-width: 767px) {
    .article-with-sidebars .news-footer-size + .news-footer-size {
        margin-top: 16px;
    }

    .article-popular-sidebar {
        margin-top: 24px;
    }

}
