/* Shared mobile navigation. Desktop headers retain their page styles. */
@media (max-width: 991px) {
    body[data-mobile-nav-style="modern"] header nav.navbar {
        padding: 0;
    }
    body[data-mobile-nav-style="modern"] header nav.navbar > .menu-new-bar {
        flex-wrap: nowrap;
        width: 90% !important;
        max-width: none;
        min-height: 64px;
        padding: 8px 20px !important;
        border-radius: 999px;
    }
    body[data-mobile-nav-style="modern"] header .menu-new-bar > div {
        flex: 0 0 auto;
        width: auto;
        max-width: none;
        padding: 0;
    }
    body[data-mobile-nav-style="modern"] header .menu-new-bar .menu-new-container {
        margin: 0 0 0 auto !important;
    }
    body[data-mobile-nav-style="modern"] header .menu-new-bar .navbar-brand img {
        width: 36px !important;
        height: 36px !important;
        max-height: none;
        object-fit: contain;
    }
    body[data-mobile-nav-style="modern"] header .navbar-toggler {
        width: 48px;
        height: 48px;
        min-width: 48px;
        padding: 0;
        margin: 0 !important;
    }
    body[data-mobile-nav-style="modern"] header .navbar-toggler-line { left: 13px; }
    body[data-mobile-nav-style="modern"] header .navbar-toggler-line:nth-child(1) { top: 17px; }
    body[data-mobile-nav-style="modern"] header .navbar-toggler-line:nth-child(2),
    body[data-mobile-nav-style="modern"] header .navbar-toggler-line:nth-child(3) { top: 23px; }
    body[data-mobile-nav-style="modern"] header .navbar-toggler-line:nth-child(4) { top: 29px; }
}
.tb-mobile-drawer {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    height: 100%;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: linear-gradient(155deg, #0b3b91 0%, #073588 65%, #07327e 100%);
    color: #fff;
    transform: translate3d(100%, 0, 0);
    transition: transform 340ms cubic-bezier(.22, 1, .36, 1);
    font-family: Inter, Roboto, 'Helvetica Neue', sans-serif;
    text-align: left;
    scrollbar-width: thin;
    scrollbar-color: #658dcc transparent;
}
.tb-mobile-drawer.is-open { transform: translate3d(0, 0, 0); }
.tb-mobile-drawer::backdrop {
    background: rgba(3, 22, 58, .24);
}
html.tb-mobile-menu-open,
.tb-mobile-menu-open body { overflow: hidden !important; }
.tb-mobile-drawer .tb-mobile-close {
    position: sticky;
    top: max(16px, env(safe-area-inset-top));
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 12px auto;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: #0b3b91;
    color: #fff;
    cursor: pointer;
}
.tb-mobile-close .tb-mobile-icon { width: 28px; height: 28px; }
.tb-mobile-nav { max-width: 600px; margin: 0 auto; padding: 0 22px max(32px, env(safe-area-inset-bottom)); }
.tb-mobile-drawer ul { margin: 0; padding: 0; list-style: none; }
.tb-mobile-group { border-bottom: 1px solid rgba(190, 215, 255, .16); }
.tb-mobile-group:last-child { border-bottom: 0; }
.tb-mobile-drawer .tb-mobile-row {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-height: 68px;
    margin: 0;
    padding: 12px 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 160ms ease;
    -webkit-tap-highlight-color: transparent;
}
.tb-mobile-icon { display: block; flex: 0 0 auto; }
.tb-mobile-icon-tile {
    display: flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(135, 179, 255, .17);
    color: #fff;
}
.tb-mobile-label { flex: 1; min-width: 0; }
.tb-mobile-heading { display: flex; align-items: center; }
.tb-mobile-heading .tb-mobile-row { flex: 1; min-width: 0; }
.tb-mobile-drawer .tb-mobile-group-toggle {
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}
.tb-mobile-group-toggle > .tb-mobile-icon { width: 20px; height: 20px; transition: transform 240ms ease; }
.tb-mobile-row > .tb-mobile-icon { width: 20px; height: 20px; margin-right: 4px; transition: transform 240ms ease; }
.is-expanded > .tb-mobile-row > .tb-mobile-icon,
.is-expanded > .tb-mobile-heading > .tb-mobile-group-toggle > .tb-mobile-icon { transform: rotate(180deg); }
.tb-mobile-submenu { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 260ms ease; }
.is-expanded > .tb-mobile-submenu { grid-template-rows: 1fr; }
.tb-mobile-submenu-inner { min-height: 0; overflow: hidden; }
.tb-mobile-drawer .tb-mobile-card {
    margin: 0 0 12px;
    padding: 6px;
    border: 1px solid rgba(184, 213, 255, .12);
    border-radius: 18px;
    background: rgba(144, 185, 255, .09);
}
.tb-mobile-drawer .tb-mobile-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 10px;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    transition: background-color 160ms ease;
    -webkit-tap-highlight-color: transparent;
}
.tb-mobile-option .tb-mobile-icon-tile { flex-basis: 36px; width: 36px; height: 36px; border-radius: 11px; }
.tb-mobile-option .tb-mobile-icon-tile .tb-mobile-icon { width: 20px; height: 20px; }
.tb-mobile-copy { display: block; flex: 1; min-width: 0; }
.tb-mobile-option-title { display: block; color: #fff; font-size: 16px; font-weight: 600; line-height: 1.4; }
.tb-mobile-description { display: block; margin-top: 5px; color: #c0d3f5; font-size: 14px; font-weight: 400; line-height: 1.55; }
.tb-mobile-option > .tb-mobile-icon { width: 18px; height: 18px; margin-top: 3px; color: #b3ceff; }
.tb-mobile-drawer a[aria-current=page] { background: rgba(160, 197, 255, .08); }
.tb-mobile-drawer :is(a,button):focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (hover: hover) {
    .tb-mobile-drawer .tb-mobile-row:hover,
    .tb-mobile-drawer .tb-mobile-option:hover,
    .tb-mobile-drawer .tb-mobile-group-toggle:hover,
    .tb-mobile-drawer .tb-mobile-close:hover { background: rgba(160, 197, 255, .16); color: #fff; }
}
@media (max-width: 359px) {
    .tb-mobile-nav { padding-left: 16px; padding-right: 16px; }
    .tb-mobile-drawer .tb-mobile-option { gap: 10px; padding: 14px 8px; }
    .tb-mobile-description { font-size: 13px; }
    .tb-mobile-option-title { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .tb-mobile-drawer,
    .tb-mobile-submenu,
    .tb-mobile-row > .tb-mobile-icon,
    .tb-mobile-group-toggle > .tb-mobile-icon { transition: none; }
}
