/* ==========================================================================
   Website 2.0 site-wide additions (loaded on every page by filta_website2_global_assets()).
   Kept outside dist/ so no rebuild is needed.
   ========================================================================== */

/* "NEW" pill next to Free Resources in the Insights menus (Figma 2291:21119) */
.menu-new-pill {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 80px;
    background: #fbbc04;
    color: #1a1a1a;
    -webkit-text-fill-color: #1a1a1a;
    font-family: "Work Sans", sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    vertical-align: middle;
}

/* Desktop dropdown: underline only the label, not the pill (pill 45px + 8px gap) */
.desktop-header ul li a.sub-menu-link-new:hover::after {
    width: calc(100% - 53px);
}

/* ==========================================================================
   Nav over light sections. src/js/w2-nav-contrast.js adds .nav-on-light to the
   desktop and mobile headers while the background under the nav is light.
   `html body` keeps these above the light-theme / .scrolled rules in main.css and header.php.
   ========================================================================== */

/* ---------- Desktop ---------- */
html body .desktop-header.nav-on-light .nav-center > ul > li > a {
    color: #1a1a1a !important;
    opacity: 1;
}

html body .desktop-header.nav-on-light .logo-full {
    filter: brightness(0); /* white wordmark -> black */
}

html body .desktop-header.nav-on-light .logo-icon {
    filter: invert(1); /* white tile + black F -> black tile + white F */
}

/* Scrolled "glass" bars: light instead of dark */
html body .site-header.scrolled.nav-on-light .nav-main-box,
html body .site-header.scrolled.nav-on-light .nav-right {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(26, 26, 26, 0.08);
    box-shadow: 0 6px 24px rgba(16, 19, 33, 0.08);
}

/* Phone selector */
html body .desktop-header.nav-on-light .select2-container--default .select2-selection--single,
html body .mobile-header.nav-on-light .select2-container--default .select2-selection--single {
    background-color: #eef3ff;
}

html body .desktop-header.nav-on-light .select2-container--default .select2-selection--single .select2-selection__rendered,
html body .desktop-header.nav-on-light .select2-container--default .select2-selection--single .select2-selection__rendered span,
html body .mobile-header.nav-on-light .select2-container--default .select2-selection--single .select2-selection__rendered,
html body .mobile-header.nav-on-light .select2-container--default .select2-selection--single .select2-selection__rendered span {
    color: #1a1a1a !important;
    background: transparent;
}

html body .desktop-header.nav-on-light .select2-container--default .select2-selection--single .select2-selection__arrow,
html body .mobile-header.nav-on-light .select2-container--default .select2-selection--single .select2-selection__arrow {
    filter: invert(100%);
}

/* ---------- Mobile ---------- */
html body .mobile-header.nav-on-light .hamburger-icon img,
html body .mobile-header.nav-on-light .mobile-logo img {
    filter: brightness(0);
}

html body .mobile-header.nav-on-light .phone-wrapper {
    background: rgba(0, 0, 0, 0.06);
}

html body .mobile-header.nav-on-light .container {
    border-top-color: rgba(0, 0, 0, 0.1);
}

@media (max-width: 1033px) {
    html body .mobile-header.nav-solid.nav-on-light {
        background: #fff;
        opacity: 1;
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .desktop-header .nav-center > ul > li > a,
    .desktop-header .nav-logo img,
    .mobile-header,
    .mobile-header .hamburger-icon img,
    .mobile-header .mobile-logo img {
        transition: color 0.25s ease, filter 0.25s ease, background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    }
}
