/* PAGE & BLOG TITLES */
.home h1 {
    text-align: center !important;
    font-size: clamp(24px, 3vw, 36px);
    max-width: 100%;
    line-height: 1.2;
}

.page .entry-title,
.single-post h1.entry-title {
    text-align: center;
}

/* HEADER CARD & FLAGS */
#masthead {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    margin: 15px auto !important;
    padding: 15px 20px !important;
    border: 1px solid #d5d5d5 !important;
    border-radius: 12px !important;
    box-shadow: 0 3px 10px rgba(0,0,0,.08);
    background:
        linear-gradient(to right,
            rgba(255,255,255,.88),
            rgba(255,255,255,.98),
            rgba(255,255,255,.88))
            center / 100% 100% no-repeat,
        url("https://flagcdn.com/w1280/us.png")
            left center / 50% auto no-repeat,
        url("https://flagcdn.com/w1280/us-co.png")
            right center / 50% auto no-repeat,
        #fff !important;
}

/* BRANDING */
#masthead .site-branding,
#masthead .site-title,
#masthead .site-title a,
#masthead .site-description,
#masthead .custom-logo-link,
#masthead .custom-logo {
    background: transparent !important;
    box-shadow: none !important;
}

#masthead .site-branding {
    display: grid !important;
    grid-template-columns: 60px minmax(0,1fr);
    align-items: center;
    column-gap: 10px;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

#masthead .custom-logo-link {
    grid-area: 1 / 1 / 3 / 2;
    margin: 0 !important;
}

#masthead .custom-logo {
    width: 60px !important;
    height: auto !important;
    margin: 0 !important;
    mix-blend-mode: multiply;
    border: none !important;
}

#masthead .site-title,
#masthead .site-description {
    grid-column: 2;
    text-align: left !important;
    color: #000 !important;
}

#masthead .site-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.15;
    margin: 0 !important;
}

#masthead .site-title a {
    color: #000 !important;
}

#masthead .site-description {
    font-size: 10px !important;
    line-height: 1.4;
    margin: 3px 0 !important;
}

/* MENU COLORS & HOVER */
#masthead #top-menu a {
    color: #000 !important;
    border-radius: 6px;
    transition: background-color .15s ease;
}

#masthead #top-menu li:hover > a,
#masthead #top-menu a:focus,
#masthead #top-menu .current-menu-item > a,
#masthead #top-menu .current-menu-ancestor > a {
    background: #e8e8e8 !important;
    color: #000 !important;
}

#masthead #top-menu .sub-menu {
    background: #fff !important;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.10);
    padding: 5px !important;
}

#masthead #top-menu .sub-menu a {
    background: transparent !important;
    border-radius: 5px;
}

#masthead #top-menu .sub-menu a:hover,
#masthead #top-menu .sub-menu a:focus {
    background: #eee !important;
}

/* MENU TOGGLE */
#masthead .menu-toggle {
    background: #222 !important;
    color: #fff !important;
    border: 1px solid #222 !important;
    border-radius: 8px !important;
    width: auto !important;
    max-width: 100%;
    padding: 8px 18px !important;
    margin: 8px auto !important;
    font-size: 15px !important;
    font-weight: 600;
    box-shadow: none !important;
}

#masthead .menu-toggle:hover,
#masthead .menu-toggle:focus {
    background: #444 !important;
}

/* DESKTOP HEADER */
@media (min-width: 1300px) {
    #masthead {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        min-height: 150px;
        gap: 5px !important;
    }

    #masthead .site-branding {
        grid-template-columns: 130px minmax(0,1fr);
        flex: 0 0 435px;
        column-gap: 14px;
        float: none !important;
    }

    #masthead .custom-logo {
        width: 130px !important;
        max-width: 130px !important;
    }

    #masthead .site-title {
        font-size: 32px !important;
    }

    #masthead .site-description {
        font-size: 15px !important;
        font-weight: 400 !important;
    }

    #masthead .site-title,
    #masthead .site-description {
        position: relative;
        top: -6px;
        left: 10px;
    }

    #masthead #site-navigation {
        flex: 1 1 auto;
        min-width: 0;
        width: auto !important;
        max-width: none !important;
        position: relative !important;
        float: none !important;
        clear: none !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        background: transparent !important;
        border: 0 !important;
    }

    #masthead #site-navigation,
    #masthead .menu-primary-container,
    #masthead #top-menu,
    #masthead #top-menu > li {
        margin: 0 !important;
        padding: 0 !important;
    }

    #masthead .menu-primary-container,
    #masthead #top-menu {
        position: static !important;
        width: 100% !important;
        transform: none !important;
    }

    #masthead #top-menu {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap;
        gap: 2px 4px;
    }

    #masthead #top-menu,
    #masthead #top-menu > li {
        float: none !important;
    }

    #masthead #top-menu > li::before,
    #masthead #top-menu > li::after {
        content: none !important;
    }

    #masthead #top-menu > li > a {
        font-size: 17px !important;
        font-weight: 600 !important;
        letter-spacing: 0 !important;
        padding: 10px 8px !important;
        white-space: nowrap;
    }
}

/* TABLET */
@media (max-width: 1299px) {
    #masthead {
        display: block !important;
    }

    #masthead .site-branding {
        max-width: 420px !important;
        margin: 0 auto !important;
    }

    #masthead #site-navigation {
        margin: 10px 0 0 !important;
    }
}

/* MOBILE HEADER & FLOATING MENU */
@media (max-width: 767px) {
    #masthead {
        margin: 10px auto !important;
        padding: 12px !important;
        position: relative !important;
        overflow: visible !important;
        z-index: 100;
    }

    #masthead #site-navigation {
        position: static !important;
        background: transparent !important;
        border: none !important;
        text-align: center;
    }

    #masthead .menu-primary-container {
        position: absolute !important;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        width: 100% !important;
        z-index: 9999;
    }

    #masthead #top-menu {
        background: #fff !important;
        border: 1px solid #d5d5d5;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,.15);
        padding: 8px !important;
        margin: 0 !important;
        max-height: 65vh;
        overflow-y: auto;
    }

    #masthead #top-menu .sub-menu,
    #masthead #top-menu li,
    #masthead #top-menu li a {
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    #masthead #top-menu > li {
        margin: 0 !important;
        border-bottom: 1px solid #e5e5e5 !important;
    }

    #masthead #top-menu > li:last-child {
        border-bottom: none !important;
    }

    #masthead #top-menu a {
        font-size: 15px !important;
        text-align: left !important;
        padding: 12px 15px !important;
    }

    #masthead #top-menu .sub-menu {
        padding: 0 0 0 18px !important;
        margin: 0 !important;
    }

    #masthead #top-menu .sub-menu a {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    #masthead #top-menu a:hover,
    #masthead #top-menu a:focus {
        background: #f0f0f0 !important;
    }
}