/*
 * ModelWebcam responsive header.
 * Desktop: compact, non-sticky single row.
 * <= 991.98px: two-stage sticky header inspired by the whitelabel behaviour.
 */

.mw-header {
    --mw-accent: #ff2d87;
    --mw-main-h: 58px;
    --mw-quick-h: 42px;
    position: relative;
    z-index: 1200;
    background: #111;
}

.mw-header a,
.mw-header button {
    -webkit-tap-highlight-color: transparent;
}

.mw-header .mw-brand {
    min-width: 0;
}

.mw-brand__link {
    display: flex;
    align-items: center;
    min-width: 0;
    color: #f4f4f4;
    text-decoration: none;
    outline: 0;
}

.mw-brand__image {
    display: block;
    width: auto;
    height: auto;
    max-width: var(--mw-logo-max-desktop, 235px);
    max-height: 48px;
    object-fit: contain;
}

.mw-brand__text {
    display: block;
    overflow: hidden;
    color: #f5f5f5;
    font-size: clamp(24px, 2.2vw, 34px);
    font-weight: 800;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mw-brand__link .fa {
    margin-right: 6px;
    color: var(--mw-accent);
}

/* ---------------- Desktop ---------------- */
.mw-header-desktop {
    display: block;
    position: relative;
    background: #171717;
    border-bottom: 1px solid #282828;
}

.mw-header-desktop__inner {
    display: grid;
    grid-template-columns: minmax(170px, auto) minmax(0, 1fr);
    align-items: center;
    gap: 26px;
    min-height: 70px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.mw-header-desktop .mw-brand__image {
    max-height: 60px;
    max-width: var(--mw-logo-max-desktop, 235px);
}

.mw-desktop-nav {
    min-width: 0;
    justify-self: end;
}

.mw-desktop-nav ul,
.mw-desktop-nav li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mw-desktop-menu {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 4px;
}

.mw-desktop-menu > li {
    position: relative;
}

.mw-desktop-menu > li > a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 15px;
    border-radius: 5px;
    color: #ddd;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background-color .16s ease, color .16s ease;
}

.mw-desktop-menu > li:hover > a,
.mw-desktop-menu > li:focus-within > a,
.mw-desktop-menu > li.current-menu-item > a,
.mw-desktop-menu > li.current-menu-ancestor > a,
.mw-desktop-menu > li.current_page_item > a {
    background: var(--mw-accent);
    color: #fff;
}

.mw-desktop-menu li ul {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    z-index: 9999;
    min-width: 190px;
    padding: 6px 0;
    background: #202020;
    border: 1px solid #303030;
    box-shadow: 0 12px 28px rgba(0,0,0,.32);
}

.mw-desktop-menu li:hover > ul,
.mw-desktop-menu li:focus-within > ul {
    display: block;
}

.mw-desktop-menu li ul li {
    position: relative;
}

.mw-desktop-menu li ul a {
    display: block;
    padding: 10px 14px;
    color: #ddd;
    font-size: 13px;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
}

.mw-desktop-menu li ul a:hover,
.mw-desktop-menu li ul a:focus,
.mw-desktop-menu li ul .current-menu-item > a {
    background: #2e2e2e;
    color: #fff;
}

.mw-desktop-menu li ul ul {
    top: -7px;
    left: 100%;
}

.mw-header-ad {
    text-align: center;
    line-height: 0;
}

.mw-header-ad--desktop {
    padding: 10px 20px;
}

.mw-header-ad--mobile {
    display: none;
}

/* Mobile shell is not used on desktop and desktop remains non-sticky. */
.mw-mobile-shell,
.mw-mobile-spacer {
    display: none;
}


/* Extended RetroTube menu-icon catalogue. These classes are configured in
 * Appearance > Menus > CSS Classes and deliberately reuse the parent's single
 * ::before icon mechanism; the child no longer injects a second guessed icon. */
.live-icon a:before,
.webcam-icon a:before,
.models-icon a:before,
.girls-icon a:before,
.boys-icon a:before,
.trans-icon a:before,
.couples-icon a:before,
.sites-icon a:before,
.search-icon a:before,
.fire-icon a:before,
.random-icon a:before,
.chat-icon a:before,
.eye-icon a:before,
.bolt-icon a:before,
.heart-icon a:before {
    font-family: fontAwesome;
    margin-right: .4em;
}

.live-icon a:before { content: "\f03d"; }
.webcam-icon a:before { content: "\f030"; }
.models-icon a:before { content: "\f0c0"; }
.girls-icon a:before { content: "\f182"; }
.boys-icon a:before { content: "\f183"; }
.trans-icon a:before { content: "\f225"; }
.couples-icon a:before { content: "\f228"; }
.sites-icon a:before { content: "\f0ac"; }
.search-icon a:before { content: "\f002"; }
.fire-icon a:before { content: "\f06d"; }
.random-icon a:before { content: "\f074"; }
.chat-icon a:before { content: "\f086"; }
.eye-icon a:before { content: "\f06e"; }
.bolt-icon a:before { content: "\f0e7"; }
.heart-icon a:before { content: "\f004"; }

/* ---------------- Tablet / mobile ---------------- */
@media screen and (max-width: 991.98px) {
    .mw-header {
        background: transparent;
        z-index: 99990;
    }

    .mw-header-desktop {
        display: none;
    }

    /* Fixed rather than sticky: a sticky child would be constrained by the
       finite height of <header>. The spacer preserves the initial document
       geometry while the fixed shell can remain available throughout scroll. */
    .mw-mobile-spacer {
        display: block;
        height: calc(var(--mw-main-h) + var(--mw-quick-h));
    }

    .mw-mobile-spacer.no-quick {
        height: var(--mw-main-h);
    }

    .mw-mobile-shell {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 99991;
        width: 100%;
        background: #191919;
        box-shadow: 0 2px 10px rgba(0,0,0,.28);
    }

    .admin-bar .mw-mobile-shell {
        top: 32px;
    }

    /* The menu/search drawer lives inside the mobile shell stacking context,
     * while the shared backdrop is a sibling. Raise that context only while
     * one of its own drawers is open so the visible drawer receives pointer
     * events; the backdrop remains above the page and below the drawer. */
    .mw-mobile-shell.is-menu-open,
    .mw-mobile-shell.is-search-open {
        z-index: 99994;
    }

    /* The custom mobile header intentionally replaces the parent's top bar.
       Switching Header mode to Original restores it unchanged. */
    .mw-header > .top-bar {
        display: none;
    }

    .mw-mobile-main {
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr) 46px;
        align-items: center;
        gap: 6px;
        height: var(--mw-main-h);
        max-height: var(--mw-main-h);
        padding: 0 9px;
        overflow: hidden;
        background: #171717;
        border-bottom: 1px solid #2a2a2a;
        transition: max-height .20s ease, transform .20s ease, opacity .15s ease, border-width .20s ease;
    }

    .mw-mobile-shell.has-action .mw-mobile-main {
        grid-template-columns: 46px minmax(0, 1fr) auto 46px;
    }

    .mw-mobile-shell.no-search.has-action .mw-mobile-main {
        grid-template-columns: 46px minmax(0, 1fr) auto 46px;
    }

    .mw-mobile-menu-toggle,
    .mw-mobile-search-toggle,
    .mw-mobile-balance {
        width: 42px;
        height: 42px;
    }

    .mw-mobile-menu-toggle,
    .mw-mobile-search-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: transparent !important;
        box-shadow: none !important;
        color: #f4f4f4;
        cursor: pointer;
    }

    .mw-mobile-menu-toggle:hover,
    .mw-mobile-menu-toggle:focus,
    .mw-mobile-search-toggle:hover,
    .mw-mobile-search-toggle:focus {
        background: rgba(255,255,255,.07) !important;
        color: #fff;
        outline: none;
    }

    .mw-mobile-menu-toggle {
        flex-direction: column;
        gap: 5px;
    }

    .mw-mobile-menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        border-radius: 2px;
        background: #f5f5f5;
        transition: transform .18s ease, opacity .18s ease;
    }

    .mw-mobile-shell.is-menu-open .mw-mobile-menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mw-mobile-shell.is-menu-open .mw-mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .mw-mobile-shell.is-menu-open .mw-mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .mw-mobile-search-toggle .fa {
        font-size: 21px;
        line-height: 1;
    }

    .mw-mobile-main .mw-brand {
        min-width: 0;
        justify-self: stretch;
    }

    .mw-mobile-main .mw-brand__link {
        justify-content: flex-start;
        width: 100%;
    }

    .mw-mobile-main .mw-brand__image {
        /* The admin control is an actual rendered-width cap, not merely an
         * intrinsic-size ceiling. width:100% lets the same image-logo-file grow
         * up to the configured value while the grid track remains the physical
         * viewport safety limit. height:auto preserves the source aspect ratio. */
        width: 100%;
        max-width: var(--mw-logo-max-mobile, 190px);
        height: auto;
        max-height: none;
        object-fit: contain;
    }

    .mw-mobile-shell.has-action .mw-brand__image {
        /* v100's 48vw cap made values above ~mobile half-width visually inert.
         * The grid track already protects burger / Sign Up / Search from overlap. */
        max-width: var(--mw-logo-max-mobile, 190px);
    }

    .mw-mobile-main .mw-brand__text {
        font-size: clamp(22px, 6.4vw, 30px);
        text-align: center;
    }

    .mw-mobile-action {
        display: inline-flex;
        position: relative;
        box-sizing: border-box;
        align-items: center;
        justify-content: center;
        min-width: 0;
        max-width: clamp(58px, 24vw, 112px);
        min-height: 32px;
        padding: 4px 11px;
        border: 1px solid rgba(255,255,255,.12);
        border-radius: 7px;
        background: var(--mw-accent);
        color: #fff !important;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.05;
        text-decoration: none;
        overflow: visible;
        white-space: nowrap;
    }

    /* Keep a comfortable ~44px touch target without making the pink visual
     * button itself as tall as v100. The pseudo-element is transparent and
     * remains part of the anchor hit area. */
    .mw-mobile-action::before {
        content: "";
        position: absolute;
        top: -6px;
        right: 0;
        bottom: -6px;
        left: 0;
    }

    .mw-mobile-action > span {
        display: block;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mw-mobile-balance {
        display: block;
    }

    .mw-mobile-quick {
        height: var(--mw-quick-h);
        max-height: var(--mw-quick-h);
        overflow: hidden;
        background: #202020;
        border-bottom: 1px solid #303030;
        opacity: 1;
        transform: translateY(0);
        transition: max-height .18s ease, transform .18s ease, opacity .14s ease, border-width .18s ease;
    }

    .mw-quick-nav {
        display: flex;
        align-items: center;
        gap: 5px;
        height: var(--mw-quick-h);
        padding: 5px 7px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
    }

    .mw-quick-nav::-webkit-scrollbar { display: none; }

    .mw-quick-nav__item {
        display: flex;
        flex: 1 0 max(62px, calc((100% - 20px) / 5));
        align-items: center;
        justify-content: center;
        min-width: 0;
        height: 32px;
        padding: 0 4px;
        border: 1px solid #383838;
        border-radius: 17px;
        background: #292929;
        color: #eee !important;
        font-size: 11px;
        font-weight: 700;
        line-height: 1;
        text-align: center;
        text-decoration: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mw-quick-nav__item:hover,
    .mw-quick-nav__item:focus,
    .mw-quick-nav__item.is-active {
        border-color: var(--mw-accent) !important;
        background: var(--mw-accent) !important;
        color: #fff !important;
        outline: none;
    }

    /* Stage 1: quick row hides after the shorter downward threshold. */
    .mw-mobile-shell.is-quick-hidden .mw-mobile-quick {
        max-height: 0;
        border-bottom-width: 0;
        opacity: 0;
        transform: translateY(-8px);
    }

    /* The whitelabel keeps its compact mobile toolbar pinned while scrolling.
       Burger, brand and filter therefore remain visible at every scroll depth. */
    .mw-mobile-shell.is-main-hidden .mw-mobile-main {
        max-height: var(--mw-main-h);
        border-bottom-width: 1px;
        opacity: 1;
        transform: none;
    }

    .mw-mobile-panel {
        position: relative;
        z-index: 2;
        background: #1b1b1b;
        border-bottom: 1px solid #303030;
        box-shadow: 0 8px 18px rgba(0,0,0,.24);
    }

    .mw-mobile-panel[hidden] {
        display: none !important;
    }

    .mw-mobile-menu-list,
    .mw-mobile-menu-list ul,
    .mw-mobile-menu-list li {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .mw-mobile-menu-list {
        max-height: min(70vh, 560px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .mw-mobile-menu-list a {
        display: block;
        padding: 12px 18px;
        border-bottom: 1px solid #2d2d2d;
        color: #eee;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.25;
        text-decoration: none;
    }

    .mw-mobile-menu-list > li.current-menu-item > a,
    .mw-mobile-menu-list > li.current-menu-ancestor > a,
    .mw-mobile-menu-list a:hover,
    .mw-mobile-menu-list a:focus {
        background: #262626;
        color: #fff;
    }

    .mw-mobile-menu-list ul {
        display: block;
        background: #202020;
    }

    .mw-mobile-menu-list ul a {
        padding-left: 34px;
        color: #cfcfcf;
        font-size: 13px;
        font-weight: 500;
    }

    .mw-mobile-menu-list ul ul a {
        padding-left: 48px;
    }

    .mw-mobile-search {
        padding: 10px;
    }

    .mw-mobile-search-form {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 46px;
        gap: 6px;
        margin: 0;
    }

    .mw-mobile-search-form input[type="search"] {
        width: 100%;
        min-width: 0;
        height: 42px;
        margin: 0;
        padding: 0 12px;
        border: 1px solid #3b3b3b;
        border-radius: 6px;
        background: #111;
        color: #fff;
        box-shadow: none;
    }

    .mw-mobile-search-form button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 42px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 6px;
        background: var(--mw-accent) !important;
        color: #fff;
        box-shadow: none !important;
    }

    .mw-header-ad--desktop {
        display: none;
    }

    .mw-header-ad--mobile {
        display: block;
        padding: 8px 10px;
        background: #111;
    }

    /* Parent mobile header rules target .site-header/.site-branding/#site-navigation;
       our custom markup intentionally does not use those legacy structures. */
    .mw-custom-header-active #content {
        margin-top: 0;
    }
}

@media screen and (max-width: 782px) {
    .admin-bar .mw-mobile-shell {
        top: 46px;
    }
}

@media screen and (max-width: 420px) {
    .mw-mobile-main {
        gap: 3px;
        padding-left: 5px;
        padding-right: 5px;
    }

    .mw-mobile-shell.has-action .mw-mobile-main {
        grid-template-columns: 43px minmax(0, 1fr) auto 43px;
    }

    .mw-mobile-menu-toggle,
    .mw-mobile-search-toggle,
    .mw-mobile-balance {
        width: 40px;
        height: 40px;
    }

    .mw-mobile-action {
        min-height: 34px;
        padding: 0 9px;
        font-size: 11px;
    }

    .mw-quick-nav {
        gap: 3px;
        padding-left: 4px;
        padding-right: 4px;
    }

    .mw-quick-nav__item {
        padding: 0 2px;
        font-size: 10.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mw-mobile-main,
    .mw-mobile-quick,
    .mw-mobile-menu-toggle span {
        transition: none !important;
    }
}

/* v58: whitelabel-style mobile drawers and header-owned contextual filter. */
@media screen and (max-width: 991.98px) {
    html.mw-drawer-open,
    html.mw-drawer-open body {
        overflow: hidden;
    }

    .mw-mobile-search-toggle {
        position: relative;
    }

    .mw-mobile-search-toggle .mw-filter-count {
        position: absolute;
        top: 2px;
        right: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        border: 2px solid #171717;
        border-radius: 10px;
        background: var(--mw-accent);
        color: #fff;
        font-size: 10px;
        font-weight: 800;
        line-height: 1;
    }

    .mw-filter-count[hidden] { display: none !important; }

    .mw-mobile-backdrop {
        position: fixed;
        inset: 0;
        z-index: 99992;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: rgba(0,0,0,.58) !important;
        box-shadow: none !important;
    }

    .mw-mobile-backdrop[hidden],
    .mw-mobile-drawer[hidden] {
        display: none !important;
    }

    .mw-mobile-drawer {
        position: fixed;
        top: 0;
        bottom: 0;
        z-index: 99993;
        display: flex;
        flex-direction: column;
        width: min(88vw, 380px);
        max-width: 100%;
        overflow: hidden;
        background: #191919;
        box-shadow: 0 0 30px rgba(0,0,0,.48);
    }

    .admin-bar .mw-mobile-drawer { top: 32px; }

    .mw-mobile-menu {
        left: 0;
        animation: mw-drawer-from-left .22s ease both;
    }

    .mw-mobile-filter,
    .mw-mobile-search {
        right: 0;
        animation: mw-drawer-from-right .22s ease both;
    }

    .mw-mobile-drawer__heading {
        display: flex;
        flex: 0 0 var(--mw-main-h);
        align-items: center;
        justify-content: space-between;
        min-height: var(--mw-main-h);
        padding: 0 10px 0 18px;
        border-bottom: 1px solid #303030;
        color: #fff;
        font-size: 15px;
        text-transform: uppercase;
        letter-spacing: .04em;
    }

    .mw-mobile-drawer__close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: transparent !important;
        color: #fff;
        box-shadow: none !important;
        font-size: 30px;
        font-weight: 300;
        line-height: 1;
    }

    .mw-mobile-menu > nav,
    .mw-mobile-search-form,
    .mw-mobile-filter > .wpstfc-header-filter {
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .mw-mobile-menu > nav::-webkit-scrollbar,
    .mw-mobile-search-form::-webkit-scrollbar,
    .mw-mobile-filter > .wpstfc-header-filter::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .mw-mobile-menu-list { max-height: none; }

    .mw-mobile-menu-list > li {
        position: relative;
    }

    .mw-mobile-menu-list > li > a {
        position: relative;
        padding-left: 18px;
    }

    .mw-mobile-menu-list > li.has-mw-submenu > a {
        padding-right: 50px;
    }

    .mw-submenu-toggle {
        position: absolute;
        top: 3px;
        right: 7px;
        z-index: 2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: transparent !important;
        color: #bbb;
        box-shadow: none !important;
    }

    .mw-submenu-toggle .fa {
        font-size: 12px;
        transition: transform .18s ease;
    }

    .mw-mobile-menu-list > li.is-submenu-open > .mw-submenu-toggle .fa {
        transform: rotate(180deg);
    }

    .mw-mobile-menu-list ul[hidden] {
        display: none !important;
    }

    .mw-mobile-search { padding: 0; }
    .mw-mobile-search-form { padding: 12px; }

    .mw-mobile-filter .wpstfc-row {
        margin: 0;
        padding: 12px;
        z-index: auto;
    }

    .mw-mobile-filter .wpstfc-row__description-slot {
        display: none !important;
    }

    .mw-mobile-filter .wpstfc-row__bar {
        display: flex !important;
        margin-bottom: 12px;
    }

    .mw-mobile-filter .wpstfc-row__bar > .wpstfc-row__toggle {
        display: none !important;
    }

    .mw-mobile-filter .wpstfc-row__public-controls {
        width: 100%;
        padding-bottom: 3px;
    }

    .mw-mobile-filter .wpstfc-row__panel,
    .mw-mobile-filter .wpstfc-row__panel[hidden] {
        display: block !important;
        position: static;
        max-height: none;
        padding: 0;
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    /* v67: page-level contextual Rows keep their own Burger. Only the copy
     * rendered inside the header filter drawer suppresses its nested toggle. */

    @keyframes mw-drawer-from-left {
        from { transform: translateX(-100%); }
        to { transform: translateX(0); }
    }

    @keyframes mw-drawer-from-right {
        from { transform: translateX(100%); }
        to { transform: translateX(0); }
    }
}

@media screen and (max-width: 782px) {
    .admin-bar .mw-mobile-drawer { top: 46px; }
}

@media screen and (min-width: 600px) and (max-width: 991.98px) {
    .mw-mobile-main .mw-brand__image { max-width: var(--mw-logo-max-mobile, 190px); }
    .mw-mobile-main .mw-brand__text { font-size: 30px; text-align: left; }
}

/* v62: optional revised desktop composition and one shared filter dialog. */
.mw-header-desktop--revised .mw-header-desktop__inner {
    /* Desktop >=1200px: let the existing image-logo-file use its natural
     * 340x60 asset size without overflowing a 220px brand track. The
     * user max-width remains a shrink-only ceiling because the image keeps
     * width:auto/height:auto; no upscaling is forced. */
    grid-template-columns: minmax(150px, clamp(150px, var(--mw-logo-max-desktop, 235px), 340px)) minmax(0, 1fr) auto;
    gap: clamp(14px, 2vw, 32px);
    width: 100%;
    max-width: 1600px;
    min-height: 76px;
    margin-right: auto;
    margin-left: auto;
    padding: 9px clamp(20px, 3.4vw, 56px);
    box-sizing: border-box;
}

.mw-header-desktop--revised .mw-desktop-nav {
    justify-self: stretch;
    overflow: visible;
}

.mw-header-desktop--revised .mw-desktop-menu {
    justify-content: flex-end;
    gap: clamp(1px, .35vw, 5px);
}

.mw-header-desktop--revised .mw-desktop-menu > li > a {
    min-height: 44px;
    padding: 0 clamp(9px, .9vw, 15px);
    border-radius: 4px;
    background: transparent;
    color: #e3e3e3;
    font-size: clamp(13px, .9vw, 14px);
    white-space: nowrap;
}

.mw-header-desktop--revised .mw-desktop-menu > li:hover > a,
.mw-header-desktop--revised .mw-desktop-menu > li:focus-within > a {
    background: #272727;
    color: #fff;
}

.mw-header-desktop--revised .mw-desktop-menu > li.current-menu-item > a,
.mw-header-desktop--revised .mw-desktop-menu > li.current-menu-ancestor > a,
.mw-header-desktop--revised .mw-desktop-menu > li.current_page_item > a {
    background: rgba(255,255,255,.07);
    box-shadow: inset 0 -3px 0 var(--mw-accent);
    color: #fff;
}

.mw-header-desktop--revised.no-menu-icons .mw-desktop-menu a > .fa,
.mw-header-desktop--revised.no-menu-icons .mw-desktop-menu a > [class*=" icon-"] {
    display: none !important;
}

.mw-header-desktop--revised .mw-desktop-menu li.menu-item-has-children > a,
.mw-header-desktop--revised .mw-desktop-menu li.page_item_has_children > a {
    padding-right: 31px;
}

.mw-desktop-submenu-toggle {
    display: inline-flex;
    position: absolute;
    top: 50%;
    right: 2px;
    z-index: 2;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent !important;
    color: #aaa;
    box-shadow: none !important;
    transform: translateY(-50%);
}

.mw-desktop-submenu-toggle:hover,
.mw-desktop-submenu-toggle:focus {
    color: #fff;
    outline: 2px solid var(--mw-accent);
    outline-offset: -2px;
}

.mw-desktop-submenu-toggle .fa {
    font-size: 10px;
    transition: transform .16s ease;
}

.mw-desktop-menu li.is-submenu-open > .mw-desktop-submenu-toggle .fa {
    transform: rotate(180deg);
}

.mw-header-desktop--revised .mw-desktop-menu li > ul,
.mw-header-desktop--revised .mw-desktop-menu li:hover > ul,
.mw-header-desktop--revised .mw-desktop-menu li:focus-within > ul {
    display: none;
}

.mw-header-desktop--revised .mw-desktop-menu li.is-submenu-open > ul {
    display: block;
}

.mw-desktop-more-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: 4px;
    background: transparent !important;
    color: #e3e3e3;
    box-shadow: none !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.mw-desktop-more-toggle:hover,
.mw-desktop-more-toggle:focus,
.mw-desktop-more.is-submenu-open > .mw-desktop-more-toggle {
    background: #272727 !important;
    color: #fff;
    outline: 2px solid transparent;
}

.mw-desktop-more-toggle .fa {
    font-size: 10px;
    transition: transform .16s ease;
}

.mw-desktop-more.is-submenu-open > .mw-desktop-more-toggle .fa {
    transform: rotate(180deg);
}

.mw-desktop-more > .mw-desktop-more-menu {
    right: 0;
    left: auto;
}

.mw-desktop-more-menu li > ul {
    right: 100%;
    left: auto;
}

.mw-desktop-more.contains-current > .mw-desktop-more-toggle {
    box-shadow: inset 0 -3px 0 var(--mw-accent) !important;
}

.mw-desktop-more[hidden] {
    display: none !important;
}

.mw-header-desktop__tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    white-space: nowrap;
}

.mw-desktop-filter-trigger__label,
.mw-desktop-action > span {
    max-width: clamp(90px, 12vw, 180px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mw-desktop-filter-trigger,
.mw-desktop-action {
    display: inline-flex;
    position: relative;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    margin: 0;
    padding: 0 15px;
    border-radius: 22px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.mw-desktop-filter-trigger {
    border: 1px solid #444;
    background: #242424 !important;
    color: #f2f2f2;
    box-shadow: none !important;
}

.mw-desktop-filter-trigger:hover,
.mw-desktop-filter-trigger:focus {
    border-color: var(--mw-accent);
    background: #2d2d2d !important;
    color: #fff;
    outline: 2px solid transparent;
}

.mw-desktop-action {
    border: 1px solid transparent;
    background: var(--mw-accent);
    color: #fff !important;
}

.mw-desktop-action:hover,
.mw-desktop-action:focus {
    filter: brightness(1.08);
    color: #fff !important;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.mw-desktop-filter-trigger .mw-filter-count {
    position: absolute;
    top: -3px;
    right: -3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 2px solid #171717;
    border-radius: 10px;
    background: var(--mw-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    box-sizing: border-box;
}

.mw-desktop-filter-trigger .mw-filter-count[hidden] {
    display: none !important;
}

html.mw-drawer-open,
html.mw-drawer-open body {
    overflow: hidden;
}

html.mw-drawer-open .xcg-sidebar-toggle {
    visibility: hidden;
}

html.mw-drawer-open .mw-header {
    z-index: 100010;
}

.mw-global-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99992;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(0,0,0,.62) !important;
    box-shadow: none !important;
}

.mw-global-backdrop[hidden],
.mw-global-filter[hidden] {
    display: none !important;
}

.mw-global-filter {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 99993;
    flex-direction: column;
    width: min(440px, 100vw);
    max-width: 100%;
    overflow: hidden;
    background: #191919;
    box-shadow: 0 0 34px rgba(0,0,0,.5);
    animation: mw-global-filter-from-right .22s ease both;
}

@keyframes mw-global-filter-from-right {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.admin-bar .mw-global-filter {
    top: 32px;
}

.mw-global-filter .mw-mobile-drawer__heading {
    display: flex;
    flex: 0 0 var(--mw-main-h);
    align-items: center;
    justify-content: space-between;
    min-height: var(--mw-main-h);
    padding: 0 10px 0 18px;
    border-bottom: 1px solid #303030;
    color: #fff;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.mw-global-filter .mw-mobile-drawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent !important;
    color: #fff;
    box-shadow: none !important;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
}

.mw-global-filter .mw-mobile-drawer__close:hover,
.mw-global-filter .mw-mobile-drawer__close:focus {
    background: rgba(255,255,255,.08) !important;
    outline: 2px solid var(--mw-accent);
}

.mw-global-filter__home {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
}

.mw-global-filter .wpstfc-header-filter {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mw-global-filter .wpstfc-header-filter::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.mw-global-filter .wpstfc-row {
    margin: 0;
    padding: 16px;
}

@media screen and (min-width: 992px) and (max-width: 1199.98px) {
    .mw-header-desktop--revised .mw-header-desktop__inner {
        grid-template-columns: minmax(135px, 185px) minmax(0, 1fr) auto;
        gap: 10px;
        padding-right: 18px;
        padding-left: 18px;
    }

    .mw-header-desktop--revised .mw-brand__image {
        max-width: min(var(--mw-logo-max-desktop, 235px), 185px);
        max-height: 46px;
    }

    .mw-header-desktop--revised .mw-desktop-menu > li > a {
        padding-right: 8px;
        padding-left: 8px;
        font-size: 12.5px;
    }

    .mw-header-desktop--revised .mw-desktop-menu li.menu-item-has-children > a,
    .mw-header-desktop--revised .mw-desktop-menu li.page_item_has_children > a {
        padding-right: 27px;
    }

    .mw-desktop-filter-trigger {
        width: 44px;
        padding: 0;
    }

    .mw-desktop-filter-trigger__label {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }

    .mw-desktop-action {
        width: 44px;
        padding-right: 11px;
        padding-left: 11px;
        font-size: 12px;
    }

    .mw-desktop-action > span {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }
}

@media screen and (max-width: 991.98px) {
    .mw-global-filter {
        width: min(88vw, 380px);
    }

    .mw-global-filter .wpstfc-row {
        z-index: auto;
        padding: 12px;
    }
}

@media screen and (max-width: 782px) {
    .admin-bar .mw-global-filter {
        top: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mw-global-filter {
        animation: none !important;
    }
}
