/* DeshiHut mobile navigation: flat five-slot layout, independent of icon fonts. */
.dh-mobile-nav { display: none; }
.dh-mobile-nav-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 767.98px) {
    html { scroll-padding-bottom: calc(var(--dh-mobile-nav-space, 68px + env(safe-area-inset-bottom, 0px)) + 12px); }
    body.dh-has-mobile-nav { padding-bottom: var(--dh-mobile-nav-space, calc(68px + env(safe-area-inset-bottom, 0px))); }
    body.dh-has-mobile-nav footer.dh-foot { padding-bottom: 0; }
    #dh-mobile-nav {
        position: fixed;
        z-index: 990;
        left: 0;
        right: 0;
        bottom: 0;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0;
        box-sizing: border-box;
        width: 100%;
        min-height: calc(68px + env(safe-area-inset-bottom, 0px));
        padding: 3px max(2px, env(safe-area-inset-right, 0px)) calc(3px + env(safe-area-inset-bottom, 0px)) max(2px, env(safe-area-inset-left, 0px));
        border: 0;
        border-top: 1px solid #e4e5e9;
        border-radius: 0;
        background: #f3f4f7;
        box-shadow: none;
        color: #252525;
        font-family: Arial, "Noto Sans Bengali", "Noto Sans SC", sans-serif;
    }
    #dh-mobile-nav .dh-mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 2px;
        min-width: 0;
        min-height: 60px;
        margin: 0;
        padding: 1px;
        box-sizing: border-box;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        color: #252525;
        text-decoration: none;
        text-align: center;
        font: inherit;
        -webkit-tap-highlight-color: transparent;
    }
    #dh-mobile-nav .dh-mobile-nav-icon { display: flex; width: 30px; height: 30px; align-items: center; justify-content: center; flex: 0 0 30px; border-radius: 50%; }
    #dh-mobile-nav svg { display: block; width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    #dh-mobile-nav .dh-mobile-nav-label { display: block; max-width: 100%; font-size: clamp(.625rem, 2.6vw, .6875rem); line-height: 1.25; font-weight: 400; overflow-wrap: anywhere; }
    #dh-mobile-nav small { display: block; margin-top: 1px; font-size: .5625rem; line-height: 1.2; color: #62656d; }
    #dh-mobile-nav [aria-current="page"] { color: #b94100; }
    #dh-mobile-nav [aria-current="page"] .dh-mobile-nav-icon { color: #fff; background: #ff6500; }
    #dh-mobile-nav [aria-current="page"] svg { width: 22px; height: 22px; }
    #dh-mobile-nav .dh-mobile-nav-unavailable { cursor: default; color: #62656d; }
    #dh-mobile-nav a:focus-visible { outline: 3px solid #2265a3; outline-offset: -3px; border-radius: 5px; }
    #dh-mobile-nav a:hover { color: #b94100; }
    body.dh-has-mobile-nav :is(input, textarea, select, button, [tabindex]) { scroll-margin-bottom: calc(var(--dh-mobile-nav-space, 68px + env(safe-area-inset-bottom, 0px)) + 12px); }
    /* Let the normal mobile keyboard/form flow use the space. No global scroll lock. */
    body.dh-has-mobile-nav.dh-mobile-nav-editing #dh-mobile-nav { display: none; }
}

/* Approved logo replaces only the Home slot's house/text. Original PNG unchanged. */
@media (max-width: 767.98px) {
    #dh-mobile-nav .dh-mobile-nav-brand { display: flex; flex-direction: column; align-items: center; gap: 3px; width: min(54px, 100%); padding-top: 2px; line-height: 0; }
    #dh-mobile-nav .dh-mobile-nav-brand-symbol { display: block; position: relative; overflow: hidden; width: 30px; height: 26px; }
    #dh-mobile-nav .dh-mobile-nav-brand-word { display: block; position: relative; overflow: hidden; width: 100%; aspect-ratio: 1876 / 359; }
    #dh-mobile-nav .dh-mobile-nav-brand img { display: block; position: absolute; left: 0; top: 0; width: 100%; height: auto; max-width: none; margin: 0; }
    #dh-mobile-nav .dh-mobile-nav-brand-word img { transform: translateY(-83.14%); }
    #dh-mobile-nav [data-dh-mobile-item="home"][aria-current="page"] { background: #fff; border-radius: 8px; box-shadow: inset 0 -2px 0 #df5e12; }
}
