/* The mobile controls share one drawer; desktop keeps its existing navigation. */
.sh-mobile-header, .sh-menu-floating-button, .sh-mobile-fallback { display: none; }
.sh-mobile-drawer:not([open]) { display: none; }
body .sh-mobile-drawer {
    box-sizing: border-box; position: fixed; inset: 0; margin: 0; padding: 0;
    width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none;
    /* Native modal autofocus must not scroll the off-screen animated panel into view. */
    border: 0; background: transparent; color: #fff; overflow: clip;
}
.sh-mobile-drawer::backdrop { background: rgba(15, 20, 43, .48); }
body .sh-mobile-panel {
    box-sizing: border-box; display: flex; flex-direction: column;
    width: min(400px, calc(100% - 24px)); height: 100%; margin-left: auto;
    padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
    background: #1d254e; box-shadow: -12px 0 40px rgba(0, 0, 0, .18);
    transform: translateX(100%); transition: transform .22s ease;
}
.sh-mobile-drawer.is-open .sh-mobile-panel { transform: translateX(0); }
body .sh-mobile-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-shrink: 0; }
body .sh-mobile-panel-header h2 { margin: 0; padding: 0; font-size: 24px !important; line-height: 1.3; color: #fff; }
body .sh-menu-close, body .sh-submenu-toggle {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 44px; height: 44px; margin: 0; padding: 0;
    color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.3);
    border-radius: 8px; box-shadow: none; cursor: pointer;
}
body .sh-mobile-links { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
body .sh-mobile-menu, body .sh-mobile-menu ul { list-style: none; padding: 0; margin: 0; }
body .sh-mobile-menu li { position: relative; margin: 0; padding: 0; }
body .sh-mobile-menu > li { border-bottom: 1px solid rgba(255,255,255,.15); }
body .sh-mobile-menu li > a {
    display: block; box-sizing: border-box; padding: 15px 4px; min-height: 52px;
    color: #fff !important; background: transparent; text-decoration: none !important;
    font-size: 20px !important; line-height: 1.35 !important; overflow-wrap: anywhere;
}
body .sh-mobile-menu li > a:is(:hover, :focus-visible),
body .sh-mobile-menu li.current-menu-item > a,
body .sh-mobile-menu li.current-menu-ancestor > a { color: #ed625f !important; }
body .sh-mobile-menu li.current-menu-item > a { font-weight: 700; }
body .sh-mobile-menu .menu-item-has-children > a { padding-right: 56px; }
body .sh-submenu-toggle { position: absolute; right: 0; top: 6px; }
.sh-submenu-toggle svg { transition: transform .2s ease; }
.sh-submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
body .sh-mobile-menu ul { padding: 0 0 12px 16px; }
body .sh-mobile-menu ul[hidden] { display: none; }
body .sh-mobile-menu ul li > a { font-size: 17px !important; min-height: 44px; padding: 11px 4px; }
body .sh-mobile-contact { flex-shrink: 0; padding-top: 24px; }
body .sh-mobile-contact p { margin: 0 0 12px; color: #fff; font-size: 16px !important; }
body .sh-mobile-contact-actions { display: flex; gap: 12px; }
body .sh-mobile-contact-actions a {
    flex: 1; padding: 12px 8px; text-align: center; min-height: 44px; box-sizing: border-box;
    color: #fff !important; border: 1px solid rgba(255,255,255,.4); border-radius: 8px;
    font-size: 16px !important; line-height: 1.5; text-decoration: none;
}
body .sh-mobile-contact-actions a:hover, body .sh-menu-close:hover, body .sh-submenu-toggle:hover { background: rgba(255,255,255,.1); }
body :is(.sh-mobile-drawer, .sh-mobile-header, .sh-mobile-fallback) :is(a, button):focus-visible,
body .sh-menu-floating-button:focus-visible { outline: 3px solid #ed625f; outline-offset: 3px; }
html.sh-mobile-menu-open { overflow: hidden; }
html.sh-mobile-menu-open body { position: fixed; top: var(--sh-mobile-scroll-top); width: 100%; overflow: hidden; }
@media (max-width: 1023px) {
    body .sh-mobile-header {
        display: flex; align-items: center; justify-content: space-between; gap: 16px;
        box-sizing: border-box; min-height: 88px; padding: 18px 16px;
        background: #fff; border-bottom: 1px solid #ececf0;
    }
    body .sh-mobile-brand { display: block; min-width: 0; max-width: 220px; }
    body .sh-mobile-brand img { display: block; width: 100%; height: auto; max-height: 60px; }
    body .sh-menu-button {
        display: none; align-items: center; justify-content: center; gap: 9px;
        flex-shrink: 0; box-sizing: border-box; margin: 0; padding: 12px 16px;
        min-height: 48px; border: 0; border-radius: 28px; box-shadow: none;
        color: #fff; background: #1d254e; font-size: 16px; line-height: 1.5;
        font-weight: 700; cursor: pointer;
    }
    .sh-mobile-ready body .sh-menu-button { display: inline-flex; }
    body .sh-menu-header-button { flex-direction: column; gap: 2px; padding: 6px 8px; border-radius: 8px; background: transparent; color: #1d254e; font-size: 12px; }
    body .sh-menu-header-button span { font-size: 12px !important; line-height: 1.2; }
    body .sh-menu-floating-button {
        position: fixed; z-index: 9990; right: max(20px, env(safe-area-inset-right));
        bottom: calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 4px 20px rgba(29,37,78,.24);
    }
    body .sh-menu-floating-button:hover { background: #303b70; }
    body #wrapper { padding-top: 0; }
    body #wrapper #header { display: none; }
    .sh-mobile-ready body #wrapper .ie-dropdown-fix { display: none; }
    body #footer { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
    body .sh-mobile-fallback { display: block; padding: 8px 20px; background: #1d254e; }
}
@media (prefers-reduced-motion: reduce) {
    .sh-mobile-panel, .sh-submenu-toggle svg { transition: none !important; }
}
