/* Mode Encore Front — shared shell and mobile overlays. */
body.mef-native-v2 {
    padding-top: 0 !important;
    background: var(--mev2-canvas) !important;
    color: var(--mev2-text) !important;
    font-family: var(--mev2-font) !important;
}

body.mef-native-v2 .mere-topbar,
body.mef-native-v2 .mere-subnav,
body.mef-native-v2 .mere-bottom-nav,
body.mef-native-v2 .site-header,
body.mef-native-v2 .page-header,
body.mef-native-v2 .site-footer:not(.mev2-site-footer),
body.mef-native-v2 .site-footer-inner,
body.mef-native-v2 footer#colophon,
body.mef-native-v2 #site-footer,
body.mef-native-v2 .elementor-location-footer,
body.mef-native-v2 .elementor-element[data-elementor-type="footer"],
body.mef-native-v2 .mere-footer {
    display: none !important;
}

/* Legacy snippets may still run on hooks. Keep them active for V1, but never
 * let a Smartbar/Smart Sidebar enter a native V2 route. */
body.mef-native-v2 .mere-smart-sidebar,
body.mef-native-v2 .mere-smartbar,
body.mef-native-v2 .mere-sidebar-l,
body.mef-native-v2 .mere-sidebar-r,
body.mef-native-v2 .smart-sidebar,
body.mef-native-v2 #mere-smart-sidebar,
body.mef-native-v2 #mere-sidebar,
body.mef-native-v2 #smart-sidebar {
    display: none !important;
}

/* The native white footer remains visible while every legacy footer is hidden. */
body.mef-native-v2 .mev2-site-footer {
    display: block !important;
}

body.mef-native-v2 .site,
body.mef-native-v2 .site-content,
body.mef-native-v2 .content-area,
body.mef-native-v2 .site-main,
body.mef-native-v2 .entry-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.mev2-site-header,
.mev2-site-header *,
.mev2-site-footer,
.mev2-site-footer * { box-sizing: border-box; }

.mev2-site-header {
    position: sticky;
    top: 0;
    z-index: 1200;
    width: 100%;
    border-bottom: 1px solid var(--mev2-border);
    background: rgba(var(--mev2-surface-rgb), 0.94);
    color: var(--mev2-text);
    font-family: var(--mev2-font) !important;
    backdrop-filter: saturate(135%) blur(14px);
}

.admin-bar .mev2-site-header { top: 32px; }

.mev2-site-header__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(320px, 370px);
    align-items: center;
    gap: 26px;
    width: min(1360px, calc(100% - 48px));
    min-height: 76px;
    margin: 0 auto;
}

.mev2-site-tools {
    display: grid;
    grid-template-columns: minmax(0,1fr) 42px 42px;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.mev2-site-tool {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--mev2-border);
    border-radius: 13px;
    background: var(--mev2-surface);
    color: var(--mev2-text-secondary) !important;
    text-decoration: none !important;
    transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease;
}

.mev2-site-tool:hover,
.mev2-site-tool.is-active {
    border-color: var(--mev2-accent-border);
    background: var(--mev2-accent-soft);
    color: var(--mev2-accent) !important;
    transform: translateY(-1px);
}

.mev2-site-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    color: var(--mev2-text) !important;
    text-decoration: none !important;
}

.mev2-site-brand img {
    display: block;
    width: 150px;
    height: auto;
    max-height: 40px;
    object-fit: contain;
}

.mev2-site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
}

.mev2-site-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--mev2-text-secondary) !important;
    font-family: var(--mev2-font) !important;
    font-size: 13px;
    font-weight: 720;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background .16s ease, color .16s ease;
}

.mev2-site-nav__link:hover {
    background: var(--mev2-surface-alt);
    color: var(--mev2-text) !important;
}

.mev2-site-nav__link.is-active {
    background: var(--mev2-accent-soft);
    color: var(--mev2-accent) !important;
}

.mev2-site-search,
.mev2-mobile-search {
    display: grid;
    grid-template-columns: auto minmax(0,1fr);
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--mev2-border);
    border-radius: 999px;
    background: var(--mev2-surface-alt);
    color: var(--mev2-muted);
}

.mev2-site-search:focus-within,
.mev2-mobile-search:focus-within {
    border-color: var(--mev2-accent-border);
    background: var(--mev2-surface);
    box-shadow: 0 0 0 3px rgba(var(--mev2-accent-rgb), 0.07);
}

.mev2-site-search input,
.mev2-mobile-search input {
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--mev2-text) !important;
    font-family: var(--mev2-font) !important;
    font-size: 13px !important;
    font-weight: 600;
}

.mev2-site-search input::placeholder,
.mev2-mobile-search input::placeholder { color: var(--mev2-muted); opacity: 1; }

.mev2-site-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--mev2-border) !important;
    border-radius: 13px !important;
    background: var(--mev2-surface) !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mev2-site-mobile-tools { display: none; }

.mev2-mobile-search-trigger,
.mev2-mobile-random-trigger {
    display: grid;
    width: 40px;
    height: 42px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: var(--mev2-radius-control);
    background: transparent;
    color: var(--mev2-text-secondary) !important;
    text-decoration: none !important;
    cursor: pointer;
}

.mev2-mobile-search-trigger:hover,
.mev2-mobile-random-trigger:hover,
.mev2-mobile-search-trigger:focus-visible,
.mev2-mobile-random-trigger:focus-visible {
    background: var(--mev2-accent-soft);
    color: var(--mev2-accent) !important;
}

.mev2-site-menu-toggle span {
    display: block;
    width: 17px;
    height: 2px;
    border-radius: 2px;
    background: var(--mev2-text-secondary);
    transition: transform .18s ease, opacity .18s ease;
}

.mev2-site-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mev2-site-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mev2-site-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mev2-mobile-backdrop[hidden],
.mev2-mobile-panel[hidden],
.mev2-mobile-search-screen[hidden] { display: none !important; }

.mev2-mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100000;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(24, 25, 38, .36);
    opacity: 0;
    transition: opacity .34s ease;
    cursor: default;
}

.mev2-mobile-backdrop.is-open { opacity: 1; }

.mev2-mobile-panel {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 100001;
    display: flex;
    flex-direction: column;
    width: min(420px, 100vw);
    height: 100vh;
    height: 100dvh;
    margin: 0;
    overflow: hidden;
    border-left: 1px solid var(--mev2-border);
    background: var(--mev2-surface);
    box-shadow: -18px 0 52px rgba(32, 31, 60, .12);
    color: var(--mev2-text);
    font-family: var(--mev2-font) !important;
    transform: translate3d(102%, 0, 0);
    transition: transform .4s cubic-bezier(.22,.75,.2,1);
    will-change: transform;
}

.mev2-mobile-panel.is-open { transform: translate3d(0, 0, 0); }
.mev2-mobile-panel, .mev2-mobile-panel * { box-sizing: border-box; }
.mev2-mobile-panel a { text-decoration: none !important; }

.mev2-mobile-panel__body {
    opacity: .7;
    transform: translateX(14px);
    transition: opacity .3s ease, transform .4s cubic-bezier(.22,.75,.2,1);
}

.mev2-mobile-panel.is-open .mev2-mobile-panel__body { opacity: 1; transform: translateX(0); }

.mev2-mobile-panel__header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 76px;
    padding: max(14px, env(safe-area-inset-top)) 24px 14px;
    border-bottom: 1px solid var(--mev2-border);
}

.mev2-mobile-panel__brand { display: inline-flex; min-width: 0; }
.mev2-mobile-panel__brand img { display: block; width: 150px; max-width: 100%; max-height: 40px; height: auto; object-fit: contain; }

.mev2-mobile-close {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: var(--mev2-radius-control);
    background: transparent;
    color: var(--mev2-text-secondary);
    cursor: pointer;
}

.mev2-mobile-close:hover { background: var(--mev2-accent-soft); color: var(--mev2-accent); }

.mev2-mobile-panel__body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 24px 24px 30px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.mev2-mobile-search { min-height: 48px; margin-bottom: 16px; }
.mev2-mobile-search input { font-size: 16px !important; }

.mev2-mobile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 26px;
}

.mev2-mobile-actions a {
    display: inline-flex;
    min-width: 0;
    min-height: 50px;
    padding: 8px 10px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--mev2-border);
    border-radius: var(--mev2-radius-control);
    background: var(--mev2-surface-alt);
    color: var(--mev2-text) !important;
    font-family: var(--mev2-font) !important;
    font-size: 12px;
    font-weight: 760;
    white-space: nowrap;
}

.mev2-mobile-actions a svg { flex: 0 0 auto; }
.mev2-mobile-actions a.mev2-mobile-actions__find,
.mev2-mobile-actions a.mev2-mobile-actions__find.is-active {
    border-color: var(--mev2-accent-border);
    background: var(--mev2-action);
    color: var(--mev2-on-image) !important;
}

.mev2-mobile-actions a:hover { transform: translateY(-1px); border-color: var(--mev2-accent-border); }

.mev2-mobile-nav__heading {
    margin: 0 0 8px;
    padding: 16px 4px 8px;
    border-top: 1px solid var(--mev2-border);
    color: var(--mev2-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.mev2-mobile-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mev2-mobile-nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    min-height: 96px;
    padding: 12px 6px;
    border: 1px solid var(--mev2-border);
    border-radius: var(--mev2-radius-control);
    background: var(--mev2-surface);
    color: var(--mev2-text) !important;
    font-family: var(--mev2-font) !important;
    font-size: 13px;
    font-weight: 720;
    text-align: center;
    line-height: 1.25;
    transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.mev2-mobile-nav__icon { flex: 0 0 auto; width: 24px; height: 24px; color: var(--mev2-accent); }
.mev2-mobile-nav__link:hover { color: var(--mev2-accent) !important; border-color: var(--mev2-accent-border); background: var(--mev2-surface-alt); transform: translateY(-2px); }
.mev2-mobile-nav__link:hover .mev2-mobile-nav__icon,
.mev2-mobile-nav__link.is-active .mev2-mobile-nav__icon { color: var(--mev2-accent); }

.mev2-mobile-nav__link.is-active {
    color: var(--mev2-accent) !important;
    border-color: var(--mev2-accent-border);
    background: var(--mev2-accent-soft);
}

.mev2-mobile-nav__link--all { background: var(--mev2-surface); }

.mev2-mobile-panel__footer {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 4px;
    padding: 17px 24px max(20px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--mev2-border);
    background: var(--mev2-surface);
}

.mev2-mobile-panel__footer strong { color: var(--mev2-text); font-size: 13px; font-weight: 800; }
.mev2-mobile-panel__footer strong span { color: var(--mev2-accent); }
.mev2-mobile-panel__footer small { color: var(--mev2-muted); font-size: 11px; }

.mev2-mobile-search-screen {
    position: fixed;
    inset: 0;
    z-index: 100003;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: auto;
    background: var(--mev2-surface);
    color: var(--mev2-text);
}

.mev2-mobile-search-screen, .mev2-mobile-search-screen * { box-sizing: border-box; }

.mev2-mobile-search-screen__top {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 72px;
    padding: max(12px, env(safe-area-inset-top)) 16px 12px;
    border-bottom: 1px solid var(--mev2-border);
}

.mev2-mobile-search-screen__close {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: var(--mev2-radius-control);
    background: transparent;
    color: var(--mev2-text-secondary);
    cursor: pointer;
}

.mev2-mobile-search-screen__close:hover { background: var(--mev2-accent-soft); color: var(--mev2-accent); }

.mev2-mobile-search-screen__form {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: 20px minmax(0,1fr) 38px;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 48px;
    padding: 0 5px 0 14px;
    border: 1px solid var(--mev2-border);
    border-radius: var(--mev2-radius-control);
    background: var(--mev2-surface-alt);
    color: var(--mev2-muted);
}

.mev2-mobile-search-screen__form:focus-within {
    border-color: var(--mev2-accent-border);
    background: var(--mev2-surface);
    box-shadow: 0 0 0 3px rgba(var(--mev2-accent-rgb), 0.1);
}

.mev2-mobile-search-screen__form input[type="search"] {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--mev2-text) !important;
    font-family: var(--mev2-font) !important;
    font-size: 16px !important;
    font-weight: 600;
}

.mev2-mobile-search-screen__form input::placeholder { color: var(--mev2-muted); opacity: 1; }

.mev2-mobile-search-screen__form button {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: var(--mev2-action);
    color: var(--mev2-on-image);
    cursor: pointer;
}

.mev2-mobile-search-screen__hint { padding: 26px 24px; }
.mev2-mobile-search-screen__hint strong { display: block; font-size: 17px; font-weight: 780; }
.mev2-mobile-search-screen__hint p { max-width: 32ch; margin: 8px 0 0; color: var(--mev2-muted); font-size: 14px; line-height: 1.6; }

html.mev2-menu-open, body.mev2-menu-open,
html.mev2-search-open, body.mev2-search-open { overflow: hidden !important; }

.mev2-site-menu-toggle:focus-visible,
.mev2-mobile-close:focus-visible,
.mev2-mobile-panel a:focus-visible,
.mev2-mobile-panel button:focus-visible,
.mev2-mobile-panel input:focus-visible,
.mev2-mobile-search-screen button:focus-visible {
    outline: 2px solid var(--mev2-accent) !important;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .mev2-mobile-panel, .mev2-mobile-backdrop, .mev2-mobile-panel__body { transition: none; }
}

.mev2-site-footer {
    width: 100%;
    padding: 0 24px 24px;
    background: var(--mev2-canvas);
    color: var(--mev2-text);
    font-family: var(--mev2-font) !important;
}

.mev2-site-footer__inner {
    width: min(1360px, 100%);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--mev2-border);
    border-radius: 26px;
    background: var(--mev2-surface);
}

.mev2-footer-main {
    display: grid;
    grid-template-columns: minmax(280px, 1.5fr) repeat(3, minmax(150px, .7fr));
    gap: 40px;
    padding: 44px 48px 36px;
}

.mev2-footer-brand { max-width: 390px; }
.mev2-footer-logo { display: inline-flex; text-decoration: none !important; }
.mev2-footer-logo img { display: block; width: 150px; height: auto; object-fit: contain; }

.mev2-footer-brand p {
    max-width: 350px;
    margin: 18px 0 0 !important;
    color: var(--mev2-muted) !important;
    font-family: var(--mev2-font) !important;
    font-size: 14px;
    line-height: 1.55;
}

.mev2-footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.mev2-footer-column h2 {
    margin: 0 0 7px !important;
    color: var(--mev2-text) !important;
    font-family: var(--mev2-font) !important;
    font-size: 12px !important;
    font-weight: 820 !important;
    letter-spacing: .06em;
    line-height: 1.2 !important;
    text-transform: uppercase;
}

.mev2-footer-column a {
    color: var(--mev2-text-secondary) !important;
    font-family: var(--mev2-font) !important;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.4;
    text-decoration: none !important;
}

.mev2-footer-column a:hover { color: var(--mev2-accent) !important; }

.mev2-footer-stats {
    display: flex;
    align-items: stretch;
    padding: 0 48px;
    border-top: 1px solid var(--mev2-border);
    border-bottom: 1px solid var(--mev2-border);
    background: var(--mev2-surface);
}

.mev2-footer-stats > div {
    display: flex;
    align-items: baseline;
    gap: 7px;
    min-height: 68px;
    padding: 0 30px;
    border-right: 1px solid var(--mev2-border);
}

.mev2-footer-stats > div:first-child { padding-left: 0; }
.mev2-footer-stats > div:last-child { border-right: 0; }
.mev2-footer-stats strong {
    color: var(--mev2-text) !important;
    font-family: var(--mev2-font) !important;
    font-size: 22px;
    font-weight: 850;
}
.mev2-footer-stats span {
    color: var(--mev2-muted) !important;
    font-family: var(--mev2-font) !important;
    font-size: 12px;
    font-weight: 650;
}

.mev2-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 48px;
    color: var(--mev2-muted);
    font-family: var(--mev2-font) !important;
    font-size: 11px;
    font-weight: 650;
}

@media (max-width: 1260px) {
    .mev2-site-header__inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }
    .mev2-site-nav { display: none; }
    .mev2-site-tools { justify-self: end; width: min(430px, 100%); }
    .mev2-site-search { width: 100%; }
    .mev2-site-menu-toggle { display: flex; }
    .mev2-footer-main { grid-template-columns: minmax(260px, 1.4fr) repeat(2, minmax(150px, .8fr)); }
    .mev2-footer-main .mev2-footer-column:last-child { grid-column: 2; }
}

@media (max-width: 782px) {
    .admin-bar .mev2-site-header { top: 46px; }
}

@media (max-width: 720px) {
    .mev2-site-header__inner {
        width: min(100% - 28px, 1360px);
        min-height: 66px;
        gap: 4px;
        grid-template-columns: minmax(0,1fr) auto auto;
    }
    .mev2-site-brand img, .mev2-mobile-panel__brand img { width: 180px; }
    .mev2-site-tools { display: none; }
    .mev2-site-mobile-tools { display: flex; align-items: center; gap: 2px; }
    .mev2-site-menu-toggle { display: flex; }
    .mev2-site-menu-toggle {
        width: 40px;
        height: 42px;
        border: 0 !important;
        background: transparent !important;
    }

    .mev2-site-footer { padding: 0 12px 12px; }
    .mev2-site-footer__inner { border-radius: 20px; }
    .mev2-footer-main {
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 30px 20px;
        padding: 32px 24px 28px;
    }
    .mev2-footer-brand { grid-column: 1 / -1; }
    .mev2-footer-main .mev2-footer-column:last-child { grid-column: auto; }
    .mev2-footer-stats { padding: 0 24px; overflow-x: auto; }
    .mev2-footer-stats > div { flex: 0 0 auto; min-height: 58px; padding: 0 18px; }
    .mev2-footer-stats > div:first-child { padding-left: 0; }
    .mev2-footer-stats strong { font-size: 18px; }
    .mev2-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        padding: 16px 24px 20px;
    }
}

@media (max-width: 440px) {
    .mev2-footer-main { grid-template-columns: 1fr; }
    .mev2-footer-brand { grid-column: auto; }
    .mev2-mobile-panel__header { padding-left: 18px; padding-right: 18px; }
    .mev2-mobile-panel__body { padding-left: 18px; padding-right: 18px; }
    .mev2-mobile-panel__footer { padding-left: 18px; padding-right: 18px; }
    .mev2-mobile-search-screen__top { padding-left: 10px; padding-right: 10px; }
}

@media (max-width: 350px) {
    .mev2-site-brand img, .mev2-mobile-panel__brand img { width: 138px; }
    .mev2-mobile-search-trigger, .mev2-mobile-random-trigger { width: 35px; }
}

/* 1.7: one permanent navigation rail; content templates keep their own layout. */
@media (min-width: 1025px) {
    body.mef-native-v2 { --mev2-navigation-width: 232px; }
    body.mef-native-v2 .mef-native-view,
    body.mef-native-v2 .mev2-site-footer {
        width: calc(100% - var(--mev2-navigation-width));
        margin-left: var(--mev2-navigation-width);
    }
    .mev2-site-header--sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: 232px;
        height: 100vh;
        height: 100dvh;
        border: 0;
        border-right: 1px solid var(--mev2-border);
        background: var(--mev2-surface);
        backdrop-filter: none;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .admin-bar .mev2-site-header--sidebar { top: 32px; height: calc(100vh - 32px); height: calc(100dvh - 32px); }
    .mev2-site-header--sidebar .mev2-site-header__inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        width: 100%;
        min-height: 100%;
        padding: 28px 16px 18px;
    }
    .mev2-site-header--sidebar .mev2-site-brand { padding: 0 8px; }
    .mev2-site-header--sidebar .mev2-site-brand img { width: 168px; max-width: 100%; height: auto; }
    .mev2-site-header--sidebar .mev2-site-search { width: 100%; min-height: 42px; }
    .mev2-site-header--sidebar .mev2-site-search input { font-size: 12px !important; }
    .mev2-site-header--sidebar .mev2-site-nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 0;
    }
    .mev2-site-header--sidebar .mev2-site-nav__link {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        min-height: 44px;
        padding: 10px 12px;
        border-radius: var(--mev2-radius-xs) !important;
        font-size: 14px;
        font-weight: 650;
    }
    .mev2-site-nav__link svg { flex: 0 0 20px; }
    .mev2-site-header--sidebar .mev2-site-tools {
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 100%;
        margin-top: auto;
        padding-top: 16px;
        border-top: 1px solid var(--mev2-border);
    }
    .mev2-site-header--sidebar .mev2-site-tool {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 8px 12px;
        border: 0;
        border-radius: var(--mev2-radius-xs) !important;
        background: transparent;
        font-size: 12px;
        font-weight: 650;
    }
    .mev2-site-header--sidebar .mev2-site-menu-toggle,
    .mev2-site-header--sidebar .mev2-site-mobile-tools { display: none; }
}

@media (max-width: 1024px) {
    .mev2-site-header--sidebar .mev2-site-header__inner {
        display: grid;
        grid-template-columns: minmax(0,1fr) auto auto;
        gap: 4px;
        min-height: 66px;
        width: calc(100% - 28px);
    }
    .mev2-site-header--sidebar .mev2-site-nav,
    .mev2-site-header--sidebar .mev2-site-search,
    .mev2-site-header--sidebar .mev2-site-tools { display: none; }
    .mev2-site-header--sidebar .mev2-site-mobile-tools { display: flex; align-items: center; gap: 2px; }
    .mev2-site-header--sidebar .mev2-site-menu-toggle { display: flex; border: 0 !important; background: transparent !important; }
    .mev2-site-header--sidebar .mev2-site-brand img,
    .mev2-mobile-panel .mev2-mobile-panel__brand img { width: min(160px, calc(100vw - 192px)); max-width: 100%; }
}

.mev2-mobile-panel .mev2-mobile-nav { display: flex; flex-direction: column; gap: 2px; }
.mev2-mobile-panel .mev2-mobile-nav__link {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    min-height: 44px;
    padding: 10px 12px;
    border: 0;
    border-radius: var(--mev2-radius-xs) !important;
    text-align: left;
}
