/* ComputerWeek — Testata illustrata 1.1.0. Second visual proposal. */
.site-header {
    background: linear-gradient(110deg, #eff3f6 0%, #e5eef5 53%, #edf3f7 100%);
}

.site-header .cwg-topbar {
    display: none;
}

.site-header .masthead {
    position: relative;
    isolation: isolate;
    min-height: 112px;
    gap: 24px;
}

/* Decorative artwork stays outside the document and accessibility trees. */
.site-header .masthead::before {
    content: "";
    position: absolute;
    left: 60%;
    top: 0;
    width: min(46%, 520px);
    height: 112px;
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;
    background: url("header-tech.webp") center / auto 128px no-repeat;
}

.site-header .masthead > div:first-child {
    min-width: 0;
}

.site-header .masthead .cwg-wordmark {
    font-size: 44px;
    color: #172b37;
}

.site-header .masthead .cwg-wordmark span {
    color: #a51d36;
}

.site-header .masthead .custom-logo-link {
    width: 350px;
}

.site-header .cwg-header-actions {
    flex: 0 0 auto;
    position: relative;
    z-index: 5;
}

/* Anchor the search panel to the complete action group on narrow screens. */
.site-header .cwg-header-search {
    position: static;
}

.site-header .cwg-header-search summary {
    color: #fff;
    background: #a51d36;
    border-color: #a51d36;
}

.site-header .cwg-header-search summary:hover,
.site-header .cwg-header-search[open] summary {
    color: #fff;
    background: #82162b;
    border-color: #82162b;
}

.site-header .cwg-header-search-panel {
    z-index: 40;
}

.site-header .nav-bar {
    color: #172b37;
    background: #fff;
    border-top: 1px solid #cedbe4;
    border-bottom: 3px solid #a51d36;
}

.site-header .navlinks {
    justify-content: space-between;
    column-gap: clamp(20px, 2.4vw, 36px);
    row-gap: 0;
    flex-wrap: wrap;
}

.site-header .navlinks a,
.site-header .navlinks li:first-child a,
.site-header .navlinks .current-menu-item > a,
.site-header .navlinks .current-menu-ancestor > a {
    color: #172b37;
}

.site-header .navlinks a:hover,
.site-header .navlinks .current-menu-item > a,
.site-header .navlinks .current-menu-ancestor > a {
    color: #a51d36;
    text-decoration: underline;
    text-decoration-color: #a51d36;
    text-decoration-thickness: 2px;
    text-underline-offset: 7px;
}

.site-header .navlinks a:focus-visible {
    color: #172b37;
    outline-color: #a51d36;
}

.site-header .menu-toggle {
    color: #fff;
    background: #172b37;
    border-color: #172b37;
    min-height: 44px;
}

.site-header .menu-toggle:hover,
.site-header .menu-toggle[aria-expanded="true"] {
    background: #294553;
    border-color: #294553;
}

@media (max-width: 1100px) and (min-width: 901px) {
    .site-header .masthead .cwg-wordmark {
        font-size: 38px;
    }

    .site-header .masthead .custom-logo-link {
        width: 280px;
    }

    .site-header .masthead::before {
        left: 61%;
        width: 34%;
        background-size: contain;
    }
}

@media (max-width: 900px) {
    .site-header .masthead {
        min-height: 88px;
    }

    .site-header .masthead::before {
        display: none;
    }

    .site-header .masthead .cwg-wordmark {
        font-size: 34px;
    }

    .site-header .navlinks {
        gap: 0;
        flex-wrap: nowrap;
    }

    .site-header .navlinks a {
        border-bottom: 1px solid #e1e8ed;
        padding: 12px 10px;
    }

    .site-header .navlinks li:last-child a {
        border-bottom: 0;
    }

    .site-header .navlinks a:hover {
        background: #f2f6f9;
    }
}

@media (max-width: 620px) {
    .site-header .masthead {
        min-height: 82px;
        gap: 10px;
    }

    .site-header .masthead .cwg-wordmark {
        font-size: clamp(23px, 5vw, 30px);
    }

    .site-header .masthead .custom-logo-link {
        width: min(100%, 245px);
    }

    .site-header .cwg-header-actions {
        gap: 6px;
    }

    .site-header .cwg-header-search summary {
        width: 44px;
        height: 44px;
    }

    .site-header .menu-toggle {
        padding: 7px 8px;
        font-size: 11px;
    }

}

