/**
 * Site header — premium spacing (8px grid, three-zone layout)
 * [ Brand ] · gap · [ Navigation cluster ] · flex · [ Utilities ]
 * Shared by .style-one.style-six (all Laravel pages use both classes).
 */
.main-header.style-one .header-lower .outer-box,
.main-header.style-six .header-lower .outer-box,
.sticky-header .outer-box {
    display: flex;
    align-items: center;
    gap: 0 64px;
}

.main-header.style-one .header-lower .logo-box.pull-left,
.main-header.style-one .header-lower .menu-area.pull-right,
.main-header.style-six .header-lower .logo-box.pull-left,
.main-header.style-six .header-lower .menu-area.pull-right,
.sticky-header .logo-box,
.sticky-header .menu-area {
    float: none !important;
}

.main-header.style-one .header-lower .logo-box,
.main-header.style-six .header-lower .logo-box {
    padding: 26px 16px 18px 0;
    flex-shrink: 0;
}

.main-header.style-one .header-lower .logo-box .logo img,
.main-header.style-six .header-lower .logo-box .logo img {
    display: block;
    max-height: 52px;
    width: auto;
}

.main-header.style-one .header-lower .menu-area,
.main-header.style-six .header-lower .menu-area {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 16px;
    justify-content: flex-end;
}

.main-header.style-one .header-lower .main-menu,
.main-header.style-six .header-lower .main-menu {
    float: none !important;
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 0;
}

.main-header.style-one .header-lower .menu-right-content,
.main-header.style-six .header-lower .menu-right-content {
    float: none !important;
    margin: 0 0 0 auto !important;
    padding-left: 16px;
    flex: 0 0 auto;
    flex-shrink: 0;
    position: relative;
    z-index: 5;
    background: #fff;
}

.main-header.style-one .header-lower .menu-right-content:before,
.main-header.style-six .header-lower .menu-right-content:before {
    left: 0;
}

.main-header.style-one .main-menu .navigation > li,
.main-header.style-six .main-menu .navigation > li {
    padding: 32px 0 26px;
    margin-right: 20px;
}

.main-header.style-one .main-menu .navigation > li:last-child,
.main-header.style-six .main-menu .navigation > li:last-child {
    margin-right: 0 !important;
}

.main-header.style-one .main-menu .navigation > li > a,
.main-header.style-six .main-menu .navigation > li > a {
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.sticky-header .logo-box {
    padding: 14px 12px 14px 0 !important;
}

.sticky-header .menu-area {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 24px;
}

.sticky-header .main-menu {
    float: none;
}

.sticky-header .menu-right-content {
    margin-left: auto;
    padding-left: 40px;
}

/* Desktop: flex nav — prevent float wrap / utility overlap */
@media (min-width: 992px) {
    /* Override legacy responsive.css (max-width: 1200px) float margins */
    .main-header .header-lower .menu-right-content {
        margin: 0 0 0 auto !important;
        padding-left: 16px !important;
    }

    .main-header.style-one .header-lower .menu-right-content:before,
    .main-header.style-six .header-lower .menu-right-content:before {
        display: block;
    }

    .main-header.style-one .main-menu .navigation,
    .main-header.style-six .main-menu .navigation,
    .sticky-header .main-menu .navigation {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        float: none;
    }

    .main-header.style-one .main-menu .navigation > li,
    .main-header.style-six .main-menu .navigation > li,
    .sticky-header .main-menu .navigation > li {
        float: none;
        flex: 0 0 auto;
    }
}

@media (min-width: 1200px) {
    .main-header.style-one .header-lower .outer-box,
    .main-header.style-six .header-lower .outer-box,
    .sticky-header .outer-box {
        gap: 0 56px;
    }

    .main-header.style-one .main-menu .navigation > li,
    .main-header.style-six .main-menu .navigation > li {
        margin-right: 22px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .main-header.style-one .header-lower .outer-box,
    .main-header.style-six .header-lower .outer-box,
    .sticky-header .outer-box {
        gap: 0 40px;
    }

    .main-header.style-one .main-menu .navigation > li,
    .main-header.style-six .main-menu .navigation > li {
        margin-right: 16px;
    }

    .main-header.style-one .main-menu .navigation > li > a,
    .main-header.style-six .main-menu .navigation > li > a {
        font-size: 15px;
    }

    .main-header.style-one .header-lower .menu-right-content,
    .main-header.style-six .header-lower .menu-right-content {
        padding-left: 12px;
    }
}

/* English: tighter rhythm — longer labels, same single-row bar */
@media (min-width: 992px) {
    html[lang="en"] .main-header.style-one .header-lower .outer-box,
    html[lang="en"] .sticky-header .outer-box {
        gap: 0 40px;
    }

    html[lang="en"] .main-header.style-one .header-lower .logo-box {
        padding-right: 8px;
    }

    html[lang="en"] .main-header.style-one .header-lower .menu-area {
        gap: 16px;
    }

    html[lang="en"] .main-header.style-one .main-menu .navigation > li {
        margin-right: 12px;
        padding: 30px 0 24px;
    }

    html[lang="en"] .main-header.style-one .main-menu .navigation > li > a {
        font-size: 14px;
        letter-spacing: 0;
    }

    html[lang="en"] .main-header.style-one .header-lower .menu-right-content {
        padding-left: 20px;
    }
}

@media (min-width: 1200px) {
    html[lang="en"] .main-header.style-one .header-lower .outer-box,
    html[lang="en"] .sticky-header .outer-box {
        gap: 0 48px;
    }

    html[lang="en"] .main-header.style-one .main-menu .navigation > li {
        margin-right: 16px;
    }

    html[lang="en"] .main-header.style-one .main-menu .navigation > li > a {
        font-size: 15px;
    }
}

@media (min-width: 1400px) {
    html[lang="en"] .main-header.style-one .header-lower .outer-box,
    html[lang="en"] .sticky-header .outer-box {
        gap: 0 56px;
    }

    html[lang="en"] .main-header.style-one .main-menu .navigation > li {
        margin-right: 20px;
    }

    html[lang="en"] .main-header.style-one .main-menu .navigation > li > a {
        font-size: 16px;
    }

    html[lang="en"] .main-header.style-one .header-lower .menu-right-content {
        padding-left: 32px;
    }
}

@media (min-width: 1400px) {
    html[lang="en"] .main-header.style-one .header-lower .outer-box,
    html[lang="en"] .sticky-header .outer-box {
        gap: 0 64px;
    }

    html[lang="en"] .main-header.style-one .main-menu .navigation > li {
        margin-right: 24px;
    }
}

/* Chinese + shared: premium spacing on wide screens */
@media (min-width: 1400px) {
    .main-header.style-one .header-lower .outer-box,
    .main-header.style-six .header-lower .outer-box,
    .sticky-header .outer-box {
        gap: 0 64px;
    }

    .main-header.style-one .main-menu .navigation > li,
    .main-header.style-six .main-menu .navigation > li {
        margin-right: 28px;
    }

    .main-header.style-one .main-menu .navigation > li > a,
    .main-header.style-six .main-menu .navigation > li > a {
        font-size: 16px;
    }

    .main-header.style-one .header-lower .menu-right-content,
    .main-header.style-six .header-lower .menu-right-content {
        padding-left: 24px;
    }

    .main-header.style-one .header-lower .logo-box .logo img,
    .main-header.style-six .header-lower .logo-box .logo img {
        max-height: 54px;
    }
}

@media (min-width: 1600px) {
    .main-header.style-one .header-lower .outer-box,
    .main-header.style-six .header-lower .outer-box,
    .sticky-header .outer-box {
        gap: 0 72px;
    }

    .main-header.style-one .main-menu .navigation > li,
    .main-header.style-six .main-menu .navigation > li {
        margin-right: 32px;
    }

    html[lang="en"] .main-header.style-one .main-menu .navigation > li,
    html[lang="en"] .main-header.style-six .main-menu .navigation > li {
        margin-right: 22px;
    }
}

@media (max-width: 991px) {
    .main-header.style-one .header-lower .outer-box,
    .main-header.style-six .header-lower .outer-box {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
    }

    .main-header.style-one .header-lower .logo-box,
    .main-header.style-six .header-lower .logo-box {
        padding: 14px 0 !important;
        flex: 0 0 auto;
    }

    .main-header.style-one .header-lower .logo-box .logo img,
    .main-header.style-six .header-lower .logo-box .logo img {
        max-height: 44px;
    }

    .main-header.style-one .header-lower .menu-area,
    .main-header.style-six .header-lower .menu-area,
    .sticky-header .menu-area {
        flex: 1 1 auto;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 0;
        margin: 0 !important;
        padding: 0 !important;
        min-width: 0;
    }

    .main-header.style-one .header-lower .main-menu,
    .main-header.style-six .header-lower .main-menu {
        display: none !important;
    }

    .main-header.style-one .header-lower .menu-right-content,
    .main-header.style-six .header-lower .menu-right-content {
        margin-left: 0;
        padding-left: 0;
    }

    .main-header.style-one .header-lower .menu-right-content:before {
        display: none;
    }
}

/* Language switcher — globe icon before search */
.main-header .header-top {
    display: none !important;
}

/* Utility icons: globe · search · menu — compact cluster */
.main-header.style-one .header-lower .menu-right-content,
.sticky-header .menu-right-content {
    display: flex;
    align-items: center;
    gap: 0;
}

.menu-right-content__tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.main-header .header-lower .menu-right-content .lang-switcher,
.main-header .header-lower .menu-right-content .search-btn,
.main-header .header-lower .menu-right-content .nav-btn {
    position: relative;
    top: 0 !important;
    float: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    flex-shrink: 0;
}

.main-header .header-lower .menu-right-content .lang-switcher {
    vertical-align: unset;
}

/* Hover bridge: globe icon → language menu */
.main-header .header-lower .menu-right-content .lang-switcher::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
}

.main-header.style-six .header-lower .menu-right-content .lang-switcher__toggle,
.main-header.style-six .header-lower .menu-right-content .search-btn button,
.main-header.style-six .header-lower .menu-right-content .nav-btn,
.sticky-header .menu-right-content .lang-switcher__toggle,
.sticky-header .menu-right-content .search-btn button,
.sticky-header .menu-right-content .nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    line-height: 1;
    font-size: 18px;
}

.main-header.style-six .header-lower .menu-right-content .search-btn button,
.sticky-header .menu-right-content .search-btn button {
    border: none;
    background: transparent;
}

.main-header.style-six .header-lower .menu-right-content .search-btn button i,
.main-header.style-six .header-lower .menu-right-content .nav-btn i,
.main-header.style-six .header-lower .menu-right-content .lang-switcher__toggle i,
.sticky-header .menu-right-content .search-btn button i,
.sticky-header .menu-right-content .nav-btn i,
.sticky-header .menu-right-content .lang-switcher__toggle i {
    display: block;
    line-height: 1;
}

.main-header.style-six .header-lower .menu-right-content .nav-btn i {
    font-size: 18px;
}

.main-header.style-six .header-lower .menu-right-content .lang-switcher__toggle {
    position: relative;
    border: none;
    background: transparent;
    color: #222;
    cursor: pointer;
    transition: color 0.2s ease;
}

.main-header.style-six .header-lower .menu-right-content .lang-switcher__toggle:hover,
.main-header.style-six .header-lower .menu-right-content .lang-switcher.is-open .lang-switcher__toggle {
    color: #00856f;
}

.lang-switcher__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.lang-switcher__menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 120;
    min-width: 132px;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0.18s ease;
}

.lang-switcher.is-open .lang-switcher__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.lang-switcher__menu::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 8px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-left: 1px solid #e5e7eb;
    border-top: 1px solid #e5e7eb;
    transform: rotate(45deg);
}

.lang-switcher__menu li {
    margin: 0;
    padding: 0;
}

.lang-switcher__menu a {
    display: block;
    padding: 10px 16px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.lang-switcher__menu a:hover {
    background: #ecfdf5;
    color: #00856f;
}

.lang-switcher__menu a.is-active {
    color: #00856f;
    font-weight: 600;
    background: #f0fdf9;
}

@media (max-width: 991px) {
    .main-header .header-lower .menu-right-content .lang-switcher {
        margin-right: 0;
    }

    .main-header.style-one .header-lower .menu-right-content,
    .sticky-header .menu-right-content {
        gap: 12px;
    }
}

/* ── Desktop nav: green underline sweep → megamenu unfold ───────────── */

@media (min-width: 992px) {
    :root {
        --nav-brand-line: #00856f;
        --nav-underline-duration: 0.28s;
        --nav-menu-delay: 0.06s;
        --nav-menu-duration: 0.4s;
        --nav-menu-ease: cubic-bezier(0.16, 1, 0.3, 1);
        --nav-header-height: 88px;
    }

    /* Desktop (图三): horizontal nav + globe · search · sidebar icon */
    .main-header.style-one .menu-area .mobile-nav-toggler,
    .main-header.style-six .menu-area .mobile-nav-toggler,
    .sticky-header .menu-area .mobile-nav-toggler {
        display: none !important;
    }

    .main-header.style-one .header-lower .main-menu,
    .main-header.style-six .header-lower .main-menu,
    .sticky-header .main-menu {
        display: block !important;
    }

    .main-header.style-one .header-lower .menu-right-content .nav-btn.navSidebar-button,
    .main-header.style-six .header-lower .menu-right-content .nav-btn.navSidebar-button,
    .sticky-header .menu-right-content .nav-btn.navSidebar-button {
        display: flex !important;
    }

    .main-header.style-one .header-lower .menu-right-content .lang-switcher,
    .main-header.style-six .header-lower .menu-right-content .lang-switcher,
    .sticky-header .menu-right-content .lang-switcher {
        display: flex !important;
    }

    /* Subtle backdrop while mega-menu is open (Hikari-style focus) */
    body.nav-megamenu-open::before {
        content: "";
        position: fixed;
        inset: 0;
        top: var(--nav-header-height);
        z-index: 40;
        pointer-events: none;
        background: rgba(15, 23, 42, 0.035);
        opacity: 1;
        transition: opacity 0.28s ease;
    }

    @keyframes navMegaColIn {
        from {
            opacity: 0;
            transform: translateY(12px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .main-header.style-one .main-menu .navigation > li > a,
    .sticky-header .main-menu .navigation > li > a {
        position: relative;
        display: inline-block;
        padding-bottom: 6px;
    }

    .main-header.style-one .main-menu .navigation > li > a::before,
    .sticky-header .main-menu .navigation > li > a::before {
        display: block !important;
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 2px;
        background: var(--nav-brand-line);
        transform: scaleX(0);
        transform-origin: left center;
        transition: transform var(--nav-underline-duration) var(--nav-menu-ease);
    }

    .main-header.style-one .main-menu .navigation > li:hover > a::before,
    .main-header.style-one .main-menu .navigation > li.current > a::before,
    .sticky-header .main-menu .navigation > li:hover > a::before,
    .sticky-header .main-menu .navigation > li.current > a::before {
        transform: scaleX(1);
    }

    /* Only the active dropdown sits above siblings (fixes overlap when switching nav items) */
    .main-header.style-one .main-menu .navigation > li.dropdown,
    .sticky-header .main-menu .navigation > li.dropdown {
        z-index: 2;
    }

    .main-header.style-one .main-menu .navigation > li.dropdown:hover,
    .main-header.style-one .main-menu .navigation > li.dropdown.is-mega-pending,
    .main-header.style-one .main-menu .navigation > li.dropdown.is-mega-open,
    .sticky-header .main-menu .navigation > li.dropdown:hover,
    .sticky-header .main-menu .navigation > li.dropdown.is-mega-pending,
    .sticky-header .main-menu .navigation > li.dropdown.is-mega-open {
        z-index: 80;
    }

    .main-header.style-one .main-menu .navigation > li.dropdown > .megamenu,
    .sticky-header .main-menu .navigation > li.dropdown > .megamenu {
        z-index: 100;
    }

    .main-header.style-one .main-menu .navigation > li.dropdown > .megamenu,
    .sticky-header .main-menu .navigation > li.dropdown > .megamenu {
        display: block !important;
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px) scaleY(0.98);
        transform-origin: top center;
        will-change: opacity, transform;
        transition:
            opacity 0.22s ease,
            transform 0.22s ease,
            visibility 0s linear 0.22s;
    }

    /* Close inactive menus quickly when switching */
    .main-header.style-one .main-menu .navigation > li.dropdown:not(.is-mega-open):not(:focus-within) > .megamenu,
    .sticky-header .main-menu .navigation > li.dropdown:not(.is-mega-open):not(:focus-within) > .megamenu {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateY(-6px) scaleY(0.98) !important;
        transition:
            opacity 0.16s ease,
            transform 0.16s ease,
            visibility 0s linear 0.16s !important;
    }

    .main-header.style-one .main-menu .navigation > li.dropdown.is-mega-pending > .megamenu,
    .sticky-header .main-menu .navigation > li.dropdown.is-mega-pending > .megamenu {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .main-header.style-one .main-menu .navigation > li.dropdown.is-mega-open > .megamenu,
    .main-header.style-one .main-menu .navigation > li.dropdown:focus-within > .megamenu,
    .sticky-header .main-menu .navigation > li.dropdown.is-mega-open > .megamenu,
    .sticky-header .main-menu .navigation > li.dropdown:focus-within > .megamenu {
        pointer-events: auto;
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scaleY(1);
        transition:
            opacity var(--nav-menu-duration) var(--nav-menu-ease) var(--nav-menu-delay),
            transform var(--nav-menu-duration) var(--nav-menu-ease) var(--nav-menu-delay),
            visibility 0s linear 0s;
    }

    /* Inner columns: staggered fade-in after panel shell opens */
    .main-header.style-one .main-menu .navigation > li.dropdown.is-mega-open > .megamenu [class$="__layout"] > *,
    .sticky-header .main-menu .navigation > li.dropdown.is-mega-open > .megamenu [class$="__layout"] > * {
        animation: navMegaColIn 0.42s var(--nav-menu-ease) backwards;
    }

    .main-header.style-one .main-menu .navigation > li.dropdown.is-mega-open > .megamenu [class$="__layout"] > *:nth-child(1),
    .sticky-header .main-menu .navigation > li.dropdown.is-mega-open > .megamenu [class$="__layout"] > *:nth-child(1) {
        animation-delay: 0.08s;
    }

    .main-header.style-one .main-menu .navigation > li.dropdown.is-mega-open > .megamenu [class$="__layout"] > *:nth-child(2),
    .sticky-header .main-menu .navigation > li.dropdown.is-mega-open > .megamenu [class$="__layout"] > *:nth-child(2) {
        animation-delay: 0.14s;
    }

    .main-header.style-one .main-menu .navigation > li.dropdown.is-mega-open > .megamenu [class$="__layout"] > *:nth-child(3),
    .sticky-header .main-menu .navigation > li.dropdown.is-mega-open > .megamenu [class$="__layout"] > *:nth-child(3) {
        animation-delay: 0.2s;
    }

    /* Override legacy style.css instant :hover megamenu — JS controls reveal timing */
    .main-header.style-one .main-menu .navigation > li.dropdown:hover:not(.is-mega-open):not(:focus-within) > .megamenu,
    .sticky-header .main-menu .navigation > li.dropdown:hover:not(.is-mega-open):not(:focus-within) > .megamenu {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateY(-6px) scaleY(0.98) !important;
    }

    /* Keep megamenu open while moving from link into panel */
    .main-header.style-one .main-menu .navigation > li.dropdown > .megamenu::before,
    .sticky-header .main-menu .navigation > li.dropdown > .megamenu::before {
        content: "";
        position: absolute;
        top: -18px;
        left: 0;
        width: 100%;
        height: 18px;
    }
}

@media (min-width: 992px) and (prefers-reduced-motion: reduce) {
    .main-header.style-one .main-menu .navigation > li > a::before,
    .sticky-header .main-menu .navigation > li > a::before {
        transition: none;
    }

    body.nav-megamenu-open::before {
        transition: none;
    }

    .main-header.style-one .main-menu .navigation > li.dropdown > .megamenu,
    .sticky-header .main-menu .navigation > li.dropdown > .megamenu {
        transform: none;
        transition: opacity 0.15s ease, visibility 0.15s ease;
    }

    .main-header.style-one .main-menu .navigation > li.dropdown.is-mega-open > .megamenu,
    .main-header.style-one .main-menu .navigation > li.dropdown:focus-within > .megamenu,
    .sticky-header .main-menu .navigation > li.dropdown.is-mega-open > .megamenu,
    .sticky-header .main-menu .navigation > li.dropdown:focus-within > .megamenu {
        transition: opacity 0.15s ease, visibility 0.15s ease;
    }

    .main-header.style-one .main-menu .navigation > li.dropdown.is-mega-open > .megamenu [class$="__layout"] > *,
    .sticky-header .main-menu .navigation > li.dropdown.is-mega-open > .megamenu [class$="__layout"] > * {
        animation: none;
    }
}

/* Login — subtle text link, separated at far right (enterprise pattern) */
.site-login-entry {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 14px;
    padding-left: 14px;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.site-login-entry__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 2px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.site-login-entry__link:hover,
.site-login-entry__link:focus-visible {
    color: #00856f;
}

.site-login-entry__link i {
    font-size: 17px;
    line-height: 1;
    color: #555;
    transition: color 0.2s ease;
}

.site-login-entry__link:hover i,
.site-login-entry__link:focus-visible i {
    color: #00856f;
}

@media (min-width: 992px) and (max-width: 1199px) {
    .site-login-entry__label {
        display: none;
    }

    .site-login-entry {
        margin-left: 10px;
        padding-left: 10px;
    }
}

@media (min-width: 1200px) {
    .site-login-entry {
        margin-left: 16px;
        padding-left: 16px;
    }

    .site-login-entry__link {
        font-size: 15px;
    }
}

/* Phone + iPad header: logo · [🌐][🔍][☰] flush right */
@media (max-width: 991px) {
    .main-header.style-one .header-lower .menu-right-content .nav-btn.navSidebar-button,
    .main-header.style-six .header-lower .menu-right-content .nav-btn.navSidebar-button,
    .sticky-header .menu-right-content .nav-btn.navSidebar-button {
        display: none !important;
    }

    .main-header.style-one .header-lower .menu-right-content .lang-switcher,
    .main-header.style-six .header-lower .menu-right-content .lang-switcher,
    .sticky-header .menu-right-content .lang-switcher {
        display: flex !important;
        position: relative;
        z-index: 130;
    }

    .menu-right-content__tools {
        display: inline-flex;
        align-items: center;
        gap: 0;
    }

    .menu-right-content__tools .lang-switcher {
        order: 1;
    }

    .menu-right-content__tools .search-btn {
        order: 2;
    }

    .main-header.style-six .header-lower .menu-right-content .lang-switcher__toggle,
    .sticky-header .menu-right-content .lang-switcher__toggle {
        width: 44px;
        height: 44px;
        font-size: 18px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .main-header .header-lower .menu-right-content .lang-switcher__menu {
        z-index: 1001;
        min-width: 168px;
        top: calc(100% + 6px);
        right: 0;
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
    }

    .lang-switcher__menu a {
        padding: 12px 16px;
        font-size: 15px;
    }

    .site-login-entry {
        order: -1;
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }

    .site-login-entry__label {
        display: none;
    }

    .site-login-entry__link {
        width: 44px;
        height: 44px;
        padding: 0;
    }

    /* Icon cluster: globe · search · hamburger */
    .main-header.style-one .menu-area .mobile-nav-toggler,
    .main-header.style-six .menu-area .mobile-nav-toggler {
        float: none !important;
        display: inline-flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        order: 3;
        width: 44px;
        height: 44px;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 0;
        line-height: 1;
        cursor: pointer;
        border: none;
        background: transparent;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .main-header.style-one .menu-area .mobile-nav-toggler .icon-bar,
    .main-header.style-six .menu-area .mobile-nav-toggler .icon-bar {
        width: 22px;
        height: 2px;
        margin: 0 0 5px !important;
        background: #222 !important;
        border-radius: 1px;
    }

    .main-header.style-one .menu-area .mobile-nav-toggler .icon-bar:last-child,
    .main-header.style-six .menu-area .mobile-nav-toggler .icon-bar:last-child {
        margin-bottom: 0 !important;
    }

    .main-header.style-one .header-lower .menu-right-content,
    .main-header.style-six .header-lower .menu-right-content,
    .sticky-header .menu-right-content {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center;
        flex-shrink: 0;
        order: 2;
        gap: 0;
        float: none !important;
        margin: 0 !important;
        margin-top: 0 !important;
        padding: 0 !important;
    }
    .main-header.style-one .header-lower .menu-right-content .search-btn,
    .main-header.style-six .header-lower .menu-right-content .search-btn {
        float: none !important;
        margin: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-header.style-one .header-lower .menu-right-content .search-btn button,
    .main-header.style-six .header-lower .menu-right-content .search-btn button,
    .sticky-header .menu-right-content .search-btn button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        margin: 0;
        line-height: 1;
        font-size: 18px;
    }

    .main-header.style-one .header-lower .menu-right-content .search-btn button i,
    .main-header.style-six .header-lower .menu-right-content .search-btn button i,
    .sticky-header .menu-right-content .search-btn button i {
        display: block;
        line-height: 1;
    }

    .main-header.style-six .header-lower {
        padding-bottom: 0;
    }

    /* Legacy mobile-menu — disabled; sidebar drawer used instead */
    .mobile-menu {
        display: none !important;
    }

    body.site-drawer-open {
        overflow: hidden;
    }

    /* Prevent hidden desktop megamenus from intercepting taps on mobile */
    .main-header .main-menu .navigation,
    .main-header .main-menu .megamenu {
        pointer-events: none !important;
    }
}
