
/* Moved out of the per-post 'Custom CSS and JS' meta box (echoed unconditionally into <head> on every request) on 2026-09-03, so it gets real browser caching. Original source: postmeta _nl_custom_css on page 9003241321134675 (NaturesLens Mobile Tree Menu). */

.nl-mobile-tree-menu {
    display: none;
}

@media (max-width: 991px) {

    .nl-mobile-tree-menu {
        display: block;
        width: 100%;
        background: #fff;
        border-top: 1px solid var(--nl-line, #dfe3da);
        font-family: inherit;
    }

    .nl-mobile-tree-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .nl-mobile-tree-menu li {
        position: relative;
        border-bottom: 1px solid var(--nl-line, #dfe3da);
    }

    .nl-mobile-tree-menu a {
        display: block;
        padding: 1rem 3.5rem 1rem 1rem;
        color: var(--nl-ink, #151914);
        text-decoration: none;
        font-size: var(--text-m);
        line-height: 1.35;
    }

    .nl-mobile-tree-menu a:hover {
        background: var(--nl-soft, #f3f7ee);
    }

    .nl-tree-controls {
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        display: flex;
        align-items: stretch;
    }

    .nl-tree-controls label {
        width: 3rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        border-left: 1px solid var(--nl-line, #dfe3da);
        color: var(--nl-action-dark, #5f6f42);
        font-size: var(--text-xs);
    }

    .nl-tree-controls input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .nl-tree-close {
        display: none !important;
    }

    .nl-mobile-tree-menu .sub {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows .35s ease;
        overflow: hidden;
        background: var(--nl-paper, #fffdf8);
    }

    .nl-mobile-tree-menu .sub > ul {
        overflow: hidden;
        min-height: 0;
    }

    .nl-mobile-tree-menu li:has(> .nl-tree-controls input:checked) > .sub {
        grid-template-rows: 1fr;
    }

    .nl-mobile-tree-menu li:has(> .nl-tree-controls input:checked) > .nl-tree-controls .nl-tree-open {
        display: none;
    }

    .nl-mobile-tree-menu li:has(> .nl-tree-controls input:checked) > .nl-tree-controls .nl-tree-close {
        display: flex !important;
    }

    .nl-mobile-tree-menu .sub a {
        padding-left: 2rem;
    }

    .nl-mobile-tree-menu .sub .sub a {
        padding-left: 3rem;
    }

    .nl-mobile-tree-menu .sub .sub .sub a {
        padding-left: 4rem;
    }
}
