/* Product menu - entry dropdown (js/product-menu.js). Same family as the toolbar hamburger's
   .dropdown-menu in NRichLobbyDark/Light.css: 0.375rem radius, 0.75rem x 1rem items with
   divider lines, the same shadow, and each theme's own toolbar-dropdown colours. */

.product-menu {
    position: absolute;
    z-index: 1000;
    min-width: 220px;
    box-sizing: border-box;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
}

    .product-menu[hidden] {
        display: none;
    }

    .product-menu a {
        display: block;
        padding: 0.75rem 1rem;
        text-decoration: none;
        font-size: 1rem;
        line-height: 1.4;
        white-space: normal;
    }

        .product-menu a:last-child {
            border-bottom: none;
        }

        .product-menu a:focus-visible {
            outline: 2px solid var(--color-primary, #8b5cf6);
            outline-offset: -2px;
        }

/* Dark: NRichLobbyDark.css .dropdown-menu */
.product-menu--dark {
    background-color: var(--color-bg-medium, #1f2937);
    border: 1px solid var(--color-bg-light, #374151);
}

    .product-menu--dark a {
        color: var(--color-text-medium, #d1d5db);
        border-bottom: 1px solid var(--color-bg-light, #374151);
    }

        .product-menu--dark a:hover,
        .product-menu--dark a:focus-visible {
            background-color: var(--color-bg-light, #374151);
            color: var(--color-text-light, #ffffff);
        }

/* Light: NRichLobbyLight.css .dropdown-menu (hover darkened with it, 29 Sep) */
.product-menu--light {
    background-color: var(--color-bg-light, #ffffff);
    border: 1px solid var(--color-border, #e5e7eb);
}

    .product-menu--light a {
        color: var(--color-text-medium, #4b5563);
        border-bottom: 1px solid var(--color-border, #e5e7eb);
    }

        .product-menu--light a:hover,
        .product-menu--light a:focus-visible {
            background-color: var(--color-bg-dark, #e5e7eb);
            color: var(--color-text-dark, #111827);
        }
