.md-top-button {
    font-size: 0.8rem;
    color: #fff;
    text-decoration: none;
    padding: 0 16px;
    line-height: 48px;
    display: inline-block;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    letter-spacing: 0.03em;
    box-sizing: border-box;
}

.md-top-button:last-of-type {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    margin-right: 1rem;
}

.md-top-button:hover,
.md-top-button:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    outline: none;
}

.md-header__title {
    margin-left: 0.1rem !important;
}

/* Footer */
.md-footer-meta__inner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.5rem;
    box-sizing: border-box;
}

.md-footer-top {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-align: center;
    align-items: center;
    width: 100%;
}

.md-footer-logo {
    height: 1.25rem;
    max-height: 1.25rem;
    max-width: 100px;
    margin: 0.5rem 0.6rem;
    width: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.md-social {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 0.1rem;
    padding: 0;
}

.md-social__link svg {
    height: 1.25rem;
    width: 1.25rem;
    display: inline-block;
    vertical-align: middle;
    max-height: none !important;
}

.md-copyright {
    text-align: center;
}

/* Mobile styles */
@media screen and (max-width: 767px) {
    .md-top-button {
        display: none !important;
    }

    .md-footer-meta__inner {
        gap: 0.3rem;
    }

    .md-footer-top {
        -ms-flex-direction: column;
        flex-direction: column;
        -ms-align-items: flex-start;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .md-social {
        order: 2;
        justify-content: flex-start;
    }

    .md-footer-logo {
        order: 1;
    }

    .md-copyright {
        text-align: left;
        width: 100%;
        margin: 0 !important;
        padding: 0.4rem !important;
    }
}

@media screen and (max-width: 59.984375em) {
    .md-top-button:last-of-type {
        margin-right: 0;
    }
}
