:root {
    --site-custom-tricolor-blue: #146DEB;
    --site-custom-tricolor-yellow: #FCD34F;
    --site-custom-tricolor-red: #DC2626;
    --site-custom-tricolor-band-height: 30px;
    --site-custom-tricolor-band-height-mobile: 42px;
}

body #masthead,
body #colophon {
    position: relative;
}

body #masthead::before,
body #colophon::after {
    content: "";
    display: block;
    height: var(--site-custom-tricolor-band-height);
    width: 100%;
    background: linear-gradient(
        to right,
        var(--site-custom-tricolor-blue) 0%,
        var(--site-custom-tricolor-blue) 33.3333%,
        var(--site-custom-tricolor-yellow) 33.3333%,
        var(--site-custom-tricolor-yellow) 66.6666%,
        var(--site-custom-tricolor-red) 66.6666%,
        var(--site-custom-tricolor-red) 100%
    );
}

body #masthead::after,
body #colophon::before {
    content: "SITE \0000CEN CONSTRUC\00021AIE\00A0\2022\00A0ZIDUL PRINDE VIA\00021A\000102";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: var(--site-custom-tricolor-band-height);
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: "Montserrat", "Open Sans", "Helvetica Neue", Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #111111;
    white-space: nowrap;
    pointer-events: none;
    z-index: 2;
}

body #masthead::after {
    top: 0;
}

body #colophon::before {
    bottom: 0;
}

@media (max-width: 921px) {
    body #masthead::before,
    body #colophon::after {
        height: var(--site-custom-tricolor-band-height-mobile);
    }

    body #masthead {
        padding-top: 30px;
    }

    body #masthead::before {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
    }

    body #masthead > * {
        position: relative;
        z-index: 3;
    }

    body #masthead::after,
    body #colophon::before {
        content: "SITE \0000CEN CONSTRUC\00021AIE\A ZIDUL PRINDE VIA\00021A\000102";
        box-sizing: border-box;
        height: var(--site-custom-tricolor-band-height-mobile);
        width: 33.3333%;
        padding: 0 4px;
        font-size: 8px;
        line-height: 1.6;
        letter-spacing: 0.02em;
        white-space: pre-line;
        z-index: 2;
        background-image: linear-gradient(
            to right,
            transparent 0%,
            transparent 38%,
            #111111 38%,
            #111111 62%,
            transparent 62%,
            transparent 100%
        );
        background-position: center;
        background-repeat: no-repeat;
        background-size: 100% 1px;
    }
}
