/* MOBILIFE mobile navigation popup */
.nav-section {
    display: contents;
}

.nav-section-label {
    display: none;
}

.mobile-nav-backdrop {
    display: none;
}

@media (max-width: 920px) {
    body.mobile-nav-open {
        overflow: hidden;
    }

    .header {
        z-index: 1000;
    }

    .header-inner {
        position: relative;
        height: 64px;
        flex-wrap: nowrap !important;
    }

    .mobile-menu-btn {
        display: inline-flex !important;
        min-width: 72px;
        height: 40px;
        min-height: 40px;
        padding: 0 15px;
        border-radius: 999px;
        font-size: 14px;
        box-shadow: 0 8px 18px rgba(31, 91, 69, .18);
    }

    .mobile-menu-btn[aria-expanded="true"] {
        background: #17251f;
    }

    .mobile-nav-backdrop.is-open {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 900;
        background: rgba(15, 23, 42, .34);
        backdrop-filter: blur(2px);
    }

    .nav.site-nav {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        z-index: 1002;
        display: none !important;
        width: min(360px, calc(100vw - 24px));
        max-height: calc(100vh - 104px);
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px;
        border: 1px solid rgba(229, 224, 216, .95);
        border-radius: 22px;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
        font-size: 15px;
    }

    .nav.site-nav.open,
    .nav.site-nav.active {
        display: flex !important;
    }

    .nav-section {
        display: grid;
        gap: 6px;
        padding: 10px;
        border: 1px solid #ece7df;
        border-radius: 17px;
        background: #faf8f2;
    }

    .nav-section-label {
        display: block;
        padding: 0 4px 5px;
        color: #1f5b45;
        font-size: 12px;
        font-weight: 900;
        letter-spacing: .08em;
    }

    .nav.site-nav a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 42px;
        padding: 0 13px;
        border: 1px solid rgba(229, 224, 216, .88);
        border-radius: 13px;
        background: #fff;
        color: #17251f;
        font-size: 14px;
        font-weight: 900;
        line-height: 1.25;
    }

    .nav.site-nav a::after {
        content: "›";
        color: #9ca3af;
        font-size: 18px;
        font-weight: 900;
        line-height: 1;
    }

    .nav.site-nav a:hover,
    .nav.site-nav a:focus-visible {
        color: #1f5b45;
        background: #eaf3ef;
        border-color: rgba(31, 91, 69, .24);
        outline: none;
    }

    .nav.site-nav a.btn {
        width: 100%;
        min-height: 44px;
        margin-top: 2px;
        border-color: #1f5b45;
        border-radius: 13px;
        background: #1f5b45;
        color: #fff;
        box-shadow: none;
    }

    .nav.site-nav a.btn::after {
        content: "문의";
        color: rgba(255, 255, 255, .82);
        font-size: 12px;
        font-weight: 900;
    }

    .nav.site-nav a.btn:hover,
    .nav.site-nav a.btn:focus-visible {
        background: #153f31;
        color: #fff;
    }
}

@media (max-width: 520px) {
    .topbar {
        font-size: 12px;
    }

    .topbar .wrap {
        display: block;
        padding: 7px 0;
    }

    .topbar .wrap div + div {
        margin-top: 2px;
    }

    .header-inner {
        height: 60px;
    }

    .nav.site-nav {
        left: 50%;
        right: auto;
        width: calc(100vw - 20px);
        max-width: 360px;
        transform: translateX(-50%);
        top: calc(100% + 8px);
        padding: 12px;
        border-radius: 20px;
    }

    .nav-section {
        padding: 9px;
        border-radius: 15px;
    }

    .nav.site-nav a {
        min-height: 41px;
        padding: 0 12px;
        font-size: 14px;
    }
}
