/**
 * Additional styles for sticky footer
 */

html, body {
    height: 100%;
}

html {
    overflow-x: unset;
}

h2, h3 {
    margin-bottom: 12px;
    font-size: var(--font-size-big);
}

.container > p:first-child {
    margin-top: 0;
}

.base-margin-bottom {
    margin-bottom: var(--margin-main);
}

#main-content-wrapper {
    min-height: 100%;
    display: grid;
    grid-template-rows: auto 1fr auto;
    border: 1px solid var(--new_blue);
}

.main-section {
    padding-top: var(--margin-main);
}

/* padding before footer */
.main-section, .sidebar {
    padding-bottom: 80px;
}

.main-section-full {
    width: 100%;
    max-width: initial;
}

.main-wrapper.main .main-section, .main-wrapper.main .sidebar.news-block {
    padding-top: 40px;
}

.content-wrapper {
    display: flex;
    flex-flow: column;
}

.main-wrapper {
    height: 100%;
}

hr.main {
    height: 5px;
    background: var(--new_blue);
    margin: var(--margin-main) 25px;
}

/* breadcrumbs */
.slash {
  margin: 0 8px;
}


/**
 * Here I rewrite footer styles in idea to make it looks smaller
 */
/* do we need it? Idk */
#footer .label, #footer .label p {
    margin-bottom: 0;
}

#footer, #footer .label {
    line-height: var(--line-height);
}

/* news block styles */
.sidebar.news-block .news-date,
.sidebar.news-block .news-title,
.sidebar.news-block .blog-archive > li > a,
.breadcrumbs-wrap .breadcrumbs a
{
    font-size: var(--font-size-small);
    font-weight: 700;
    margin: 0;
}

.sidebar.news-block .news-date {
    color: var(--grey);
}

.sidebar.news-block .blog-archive > li > a {
    color: var(--dark_blue);
    display: inline-block;
    margin-bottom: 8px;
}

.sidebar.news-block .blog-archive ul {
    padding-left: 18px;
    margin-bottom: 24px;
    border-left: 2px solid var(--grey);
}

.news-title-wrap {
    margin-bottom: 24px;
}

.news-wrap, .another-news-wrap, .large-links--item, .nmu-description > div:not(:last-of-type) {
    padding-bottom: var(--margin-main);
}

.links-block--wrap p:last-of-type, .nmu-description p:last-of-type {
    margin-bottom: 0;
}

.nmu-menu {
    border-right: 2px solid var(--grey);
}
