.ir-menu-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0;
    position: relative;
    width: 100%;
}
.ir-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 10;
    transition: opacity 0.3s ease, visibility 0.3s;
}
.ir-menu-item {
    text-decoration: none;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    padding-bottom: 5px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}
.ir-menu-item:hover, .ir-menu-item.ir-active {
    border-bottom-color: #333; /* Fallback */
}
.ir-description-container {
    z-index: 5;
    pointer-events: none; /* Let clicks pass through to background */
}
.ir-description-overlay {
    line-height: 1.5;
    pointer-events: auto;
    transition-property: opacity;
    transition-timing-function: ease;
    background-color: transparent; /* Removed default black background */
    box-shadow: none; /* Removed default shadow */
}
.ir-desc-title {
    margin: 0 0 10px 0;
    font-size: 1.5em;
    font-weight: bold;
}
.ir-desc-text {
    margin: 0;
}

/* Force center on tablet and mobile */
@media (max-width: 1024px) {
    .ir-description-container {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        width: 90% !important;
        max-width: 500px !important;
        z-index: 9999 !important;
    }
    .ir-description-overlay {
        width: 100% !important;
        max-width: none !important;
        text-align: center;
        box-shadow: none !important; /* Removed shadow on mobile/tablet */
    }
}

/* Hide menu list on mobile when active */
@media (max-width: 767px) {
    .ir-mobile-active .ir-menu-list {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    /* Add a visual hint that the description can be clicked to close */
    .ir-description-overlay {
        cursor: pointer;
    }
    .ir-description-overlay::after {
        content: '× Tap to close';
        display: block;
        font-size: 0.8em;
        opacity: 0.7;
        margin-top: 15px;
        text-align: center;
    }
}
