/* CSS-only dropdown fallback for the top nav.
   The original theme relied on a YUI2 MenuBar JS widget (loaded through a PHP
   combo-loader that doesn't exist on static hosting) to reposition .yuimenu
   panels on hover/click. This replaces that behavior with plain CSS :hover. */

.yui-top-nav .yuimenubaritem,
.yui-top-nav .yuimenuitem {
    position: relative;
}

.yui-top-nav .yuimenubaritem > .yuimenu,
.yui-top-nav .yuimenuitem > .yuimenu {
    display: none;
    position: absolute;
    top: auto !important;
    left: auto !important;
    z-index: 1000;
    min-width: 220px;
}

/* top-level dropdown: opens directly below the nav bar item */
.yui-top-nav .yuimenubar > .bd > ul > .yuimenubaritem > .yuimenu {
    top: 100% !important;
    left: 0 !important;
}

/* nested (second-level+) dropdown: opens to the right of its parent item */
.yui-top-nav .yuimenuitem > .yuimenu {
    top: 0 !important;
    left: 100% !important;
}

.yui-top-nav .yuimenubaritem:hover > .yuimenu,
.yui-top-nav .yuimenuitem:hover > .yuimenu {
    display: block;
}

.yui-top-nav .yuimenu .bd ul {
    white-space: nowrap;
}

/* pointer cursor across the whole hit area at every level */
.yui-top-nav .yuimenubaritem,
.yui-top-nav .yuimenubaritemlabel,
.yui-top-nav .yuimenuitem,
.yui-top-nav .yuimenuitemlabel {
    cursor: pointer;
}

/* dropdown item hover highlight, at every nesting level (top nav bar items excluded) */
.yui-top-nav .yuimenubar .yuimenuitem:hover {
    background-color: #ffffff;
}

.yui-top-nav .yuimenubar .yuimenuitem:hover > .yuimenuitemlabel {
    color: #302f30;
}
