h2 + h3, p + h3, {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

h2 + p {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

h1, h2 {
    margin-bottom: 0.6em;
    border-bottom: 1px solid #a2a9b1;
}

h1, h2, h3, h4, h5, h6 {
    padding-bottom: 0.17em;
}

.question img {
    margin-bottom: 3px;
}

#siteSub {
    display: none;
}

#contentSub {
    font-size: 84% !important;
    line-height: 1.2em !important;
    margin: 0 0 0 1em !important;
    color: #54595d !important;
    width: auto !important;
}

.btn-big {
    font-size: 32px !important;
    line-height: 40px;
}

.mw-jump-link:not(:focus) {
    display: block;
    position: absolute !important;
    clip: rect(1px,1px,1px,1px);
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    overflow: hidden;
}

.col-sidebar-header {
    background: url(logo.png) no-repeat center;
    height: 124px;
}

.col-sidebar {
    max-width: 300px;
    width: 300px;
}

.col-header {
    background: url(header.png) no-repeat;
    height: 124px;
}

.header-right {
    height: 124px;
    width: 225px;
    background: url(header-right.png) no-repeat;
    position: absolute;
    right: 0;
}

.link-fill-block {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.pos-relative {
    position: relative;
}

.footer {
    text-align: right;
    border-top: 1px solid #ccc;
    margin: 50px 0 30px 0;
    padding-top: 20px;
}

.mw-first-heading {
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0 !important;
    margin-bottom: 10px !important;
    border: 0;
    font-size: 30px;
    font-weight: bold;
}

#searchInput:focus {
    box-shadow: none !important;
    border-color: rgb(108, 117, 125) !important;
    outline: 0 none !important;;
}

.actions h2, .actions h3 {
    position: absolute;
    top: -9999px;
    left: 0;
}

.portlet h3 {
    font-weight: bold;
    margin: 0;
    padding: 6px 0;
    font-size: 20px;
}

.portlet h3 a {
    display: block;
}

.portlet h3 a:hover {
    color: #000;
}

.portlet a, .portlet a:visited {
    color: #000;
}

.portlet a:hover, .portlet a:focus, .portlet a:active {
    color: rgba(51, 51, 51, 0.7);
    text-decoration: none;
}

.portlet ul {
    list-style: none;
    margin: 0;
}

.portlet li {
    padding: 0;
    margin: 0;
}

.portlet li a {
    display: block;
    padding: 4px 8px 4px 32px;
    position: relative;
}

.portlet li a:before {
    display: inline-block;
    padding-right: 6px;
    content: "—";
    color: #bbb;
    position: absolute;
    left: 8px;
}

.portlet li:last-child a {
    border: 0px;
}

.portlet li a:hover {
    background: #eee;
    color: #000;
}

#p-search {
    margin-top: 10px;
}

footer, footer a, footer a:visited {
    color: #666;
}

footer a:hover {
    color: #000;
}

.actions .col-md-auto ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.actions .col-md-auto li {
    display: inline-block;
    margin-right: 10px;
}

.actions .col-md-auto li:last-child {
    margin-right: 0;
}

.actions .col-md-auto a, .actions .col-md-auto a:visited, .actions .col-md-auto a:hover, .actions .col-md-auto a:focus, .actions .col-md-auto a:active {
    color: #fff !important;
    text-decoration: none;
}

.actions .col a {
    text-decoration: none;
}

.card-img-top {
    object-fit: cover;
    height: 200px;
}

.card-img {
    width: 100%;
    min-height: 160px;
    max-height: 180px;
    object-fit: contain;
    border-radius: 0 !important;
}

.card-img-small {
    width: 100%;
    height: 130px;
    object-fit: contain;
    border-radius: 0 !important;
}

.card ul {
    margin: 0 !important;
    padding: 0 !important;
}

.fs-7 {
    font-size: 0.9rem !important;
}

.table-striped tr:last-of-type th, .table-striped tr:last-of-type td {
    border-bottom: 0 !important;
}

ul.files {
    list-style: none !important;
    margin: 14px 0 0 0 !important;
    padding: 0 !important;
}

ul.files li {
    line-height: 24px;
    margin-bottom: 10px;
    padding-bottom: 1px;
}

ul.files li:last-child {
    margin: 0;
}

ul.files li a {
    color: #000;
    border-bottom: 1px solid #000;
    padding-bottom: 1px;
    text-decoration: none;
}

ul.files li a:after {
    display: none;
}

div.files-icon {
    display: inline-block;
    padding: 0 8px 2px 8px;
    color: #fff;
    margin-right: 10px;
    font-weight: bold;
    border-radius: 5px;
    box-sizing: border-box;
    text-align: center;
}

div.files-icon-table {
    margin: 0 !important;
}

div.files-icon.pdf, div.files-icon.PDF {
    width: 48px;
    background: #ff0000;
}

div.files-icon.djvu {
    background: #0000af;
}

div.files-icon.png {
    background: #00c783;
}

div.files-icon.a7z {
    width: 48px;
    background: #006600;
}

div.files-icon.jpg {
    width: 48px;
    background: #006600;
}

div.files-icon.rar {
    width: 48px;
    background: #15078e;
}

div.files-icon.exclusive {
    background: #aea3ff;
}

div.files-icon.exclusive img {
    vertical-align: -1px;
}

div.files-icon.language {
    width: 48px;
    background: #777;
    margin-top: 3px;
}

.thumb {
    margin: 0 !important;
}

.tleft {
    margin: 0.5em 1.4em 1.3em 0 !important;
}

.tright {
    margin: 0.5em 0 1.3em 1.4em !important;
}

.alert-danger a {
    color: inherit !important;
}

.mw-parser-output > p {
    text-align: justify;
}

.header-mobile {
    display: none;
    margin-top: 12px;
}

.infobox {
    min-width: 280px;
    max-width: 340px;
    clear: right;
}

.header-desktop {
    margin-top: 25px;
}

.header-block {
    height: 200px;
    background: url(/images/header.jpg) top left no-repeat;
    position: relative;
}

.reset-color-link a {
    color: inherit !important;
}

.books .col-md-auto {
    flex: 0 0 auto !important;
    width: auto !important;
}

.pageTabs .tabs div {
    width: 50%;
    font-size: 18px;
    border-bottom: 2px solid #000;
}

.pageTabs .tabs div a {
    color: #000 !important;
    border: 0;
    background-color: transparent !important;

    &:hover {
        color: #000 !important;
    }
}

.pageTabs .tabs div.selected {
    font-weight: bold;
    border-bottom: 4px solid #000;
}

.pageTabs .tabs div.left {
    float: left;
}

.pageTabs .tabs div.right {
    float: right;
}

.pageTabs .clear {
    clear: both !important;
    width: 0 !important;
    height: 0 !important;
    visiblity: hidden !important;
    border: 0 !important;
}

.tabs-content {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    margin-top: 5px;
}

#tabs-content-1 a {
    color: #fff;
    text-decoration: none;
}

#tabs-content-2 {
    display: none;
    overflow: hidden;
}

#tabs-content-2 h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
}

.tabs-table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #eee;
}

.tabs-table td {
    border: 1px solid #eee;
    background-clip: padding-box;
    text-align: center;
    padding: 3px;
}

.tabs-table tr > td + td {
    border-left-width: 2px;
}

.tabs-table tr + tr > td {
    border-top-width: 2px;
}

.tabs-table .th {
    background: #eee;
    font-weight: bold;
}

.download-button a {
    display: inline-block;
    background: #8170ff;
    border-radius: 5px;
    display: inline-block;
    padding: 4px 62px 4px 18px;
    color: #fff;
    font-weight: bold;
    font-size: 36px;
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-image: url('download.png');
}

.download-button a:hover {
    color: #fff !important;
    background: #9966cc;
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-image: url('download.png');
    text-decoration: none;
}

.download-button a:visited {
    color: #fff !important;
}

.fullImageLink {
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 5px;
}

.modal-help-image {
    cursor: pointer;
}

/* responsive */

@media (max-width: 769px) { 
    .infobox {
        float: none;
        max-width: 100%;
        width: 100%;
    }

    .col-menu {
        flex-basis: 100% !important;
        margin-top: 10px !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .thumb {
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
    }

    .thumb:first-child {
        margin-top: 10px !important;
    }

    .header-desktop {
        display: none;
    }

    .header-mobile {
        display: block;
    }
}

.nav-head {
  font-size: 36px;
  font-weight: 700;
}

.nav-head a {
  color: #000;
  text-decoration: none;
}

.nav-head a:hover {
  text-decoration: underline;
}

.nav-head a:visited {
  color: #000;
}

.projects a.external {
    background: none !important;
}

.thumb .thumbinner .thumbimage {
    border: 0 !important;
    background: transparent !important;
}

.thumb .thumbinner {
    padding: 8px !important;
    box-sizing: content-box !important;
}

.thumb .thumbinner .thumbcaption {
    font-size: 0.8em;
    padding: 0;
    margin-top: 5px;
}

h1 + h2, h2 + h3, h3 + h4, h4 + h5, h5 + h6, h2 + h3, h2:first-child, p + h2 {
    padding-top: 0;
    margin-top: 0;
}

.card p.card-text {
    margin: 0;
}

.card-title {
    margin-bottom: 4px;
}

@media (max-width: 1400px) { 
    .demodulation-header {
        height: 230px !important;
    }
}

@media (max-width: 1200px) { 
    .demodulation-header {
        height: 200px !important;
    }
}

@media (max-width: 993px) { 
    .demodulation-header {
        height: 180px !important;
    }
}

@media (max-width: 769px) { 
    .demodulation-header {
        height: 150px !important;
    }
}

@media (max-width: 579px) { 
    .demodulation-header {
        height: 100px !important;
    }

    .header-desktop {
        margin-top: 10px !important;
    }

    .navbar {
        margin-top: 15px !important;
    }
}

.demodulation-header {
    position: relative;
    height: 250px;
    background: url(/media/colorbars.png) no-repeat;
    background-size: 100% auto;
}

.demodulation-header > a {
    display: block; 
    position: absolute; 
    width: 100%; 
    height: 100%; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background: url(/media/demodulation-header.png) no-repeat center center;
    background-size: contain;
}