.page-nav-menu {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1000;
}

/* On edit pages, position in hero section below preview banner */
body:has(.preview-banner) .page-nav-menu {
    position: absolute;
    top: auto;
    bottom: 16px;
    left: 16px;
    z-index: 10;
}

/* Make hero section relative positioning for menu placement */
body:has(.preview-banner) .hero {
    position: relative;
}

.page-nav-menu__toggle {
    background: color-mix(in srgb, var(--primary, #1f2937) 92%, white);
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 44px;
    height: 44px;
}

.page-nav-menu__toggle:hover {
    background: color-mix(in srgb, var(--primary, #1f2937) 90%, black);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.page-nav-menu__toggle:active {
    transform: translateY(0);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}

.page-nav-menu__toggle i,
.page-nav-menu__toggle svg {
    width: 24px;
    height: 24px;
    display: block;
}

.page-nav-menu__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 260px;
    background: #ffffff;
    color: #1f2937;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.08);
    border: none;
    border-radius: 12px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1001;
}

/* When dropdown is open */
.page-nav-menu__dropdown.is-open {
    max-height: 80vh;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
}

.page-nav-menu__list {
    list-style: none;
    margin: 0;
    padding: 6px;
}

.page-nav-menu__item {
    margin-bottom: 2px;
}

.page-nav-menu__item:last-child {
    margin-bottom: 0;
}

.page-nav-menu__link {
    display: block;
    padding: 14px 18px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    position: relative;
}

.page-nav-menu__link:hover {
    background: color-mix(in srgb, var(--primary, #1f2937) 12%, white);
    color: var(--primary, #1f2937);
}

.page-nav-menu__link.is-active {
    background: var(--primary, #1f2937);
    color: #ffffff;
    font-weight: 600;
}

.page-nav-menu__link.is-active:hover {
    background: color-mix(in srgb, var(--primary, #1f2937) 90%, black);
}

.page-nav-menu__link.is-home {
    font-weight: 600;
}
