.XulMenu {
    font-family: georgia, tahoma, verdana;
    font-size: 11pt;
    -moz-user-select: none;
}
.XulMenu .button,
.XulMenu .buttonitem,
.XulMenu .button:hover,
.XulMenu .button-active,
.XulMenu .button-active:hover {
    line-height: normal;
    padding: 1px 6px 1px 6px;
    border: 1px solid #F0F0F0;
    color: #000000;
    text-decoration: none;
    cursor: default;
    white-space: nowrap;
    display: block;
    position: relative;
}
.XulMenu .button:hover, .buttonitem:hover {
    border-color: #F11979;
    color: #FFF;
    background-color: #F11979;
}
.XulMenu .button-active,
.XulMenu .button-active:hover {
    border-color: #F11979;
    color: #FFF;
    background-color: #F11979;
}
.XulMenu .item,
.XulMenu .item:hover,
.XulMenu .item-active,
.XulMenu .item-active:hover {
    background: #ffffff;
    line-height: normal;
    padding: 3px 30px 3px 20px;
    color: #000000;
    text-decoration: none;
    cursor: default;
    white-space: nowrap;
    display: block;
    position: relative;
}
.XulMenu .item:hover,
.XulMenu .item-active,
.XulMenu .item-active:hover {
    background: #F11979;
    color: #ffffff;
}
.XulMenu .section {
    background: #ffffff;
    border: 1px solid;
    border-color: #F1EFE2 #716F64 #716F64 #F1EFE2;
    padding: 2px 1px 1px 2px;
    position: absolute;
    visibility: hidden;
    z-index: -1;
}
.XulMenu .arrow {
    position: absolute;
    top: 7px;
    right: 8px;
    border: 0;
}

.XulMenu .itemright {
    text-align: right;
}

    #bar {
        background: #F0F0F0;
        border: 1px solid;
        border-color: #ffffff #ACA899 #ACA899 #ffffff;
        padding-top: 3px;
        padding-bottom: 3px;
        padding-left: 5px;
        cursor: default;
    }
    #search {
	text-align: right;
    }
    #search input,
    #search select {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 11pt;
        margin-top: 4px;
    }

    #search.orig {
        position: absolute;
        top: 0;
        right: 5px;
    }


* html .XulMenu td { position: relative; } /* ie 5.0 fix */
/* The desktop menu stays intact; touch navigation uses the same loaded links. */
.start-mobile-menu { display: none; }
@media (max-width: 700px) {
  .bar_top, .bar_top > tbody, .bar_top > tbody > tr,
  .bar_top > tbody > tr > td {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    white-space: normal;
    text-align: left;
  }
  .bar_top { padding: 8px 10px; }
  .bar_top > tbody > tr > td { padding: 2px 0; overflow-wrap: anywhere; }
  .start-navigation { padding: 4px 8px; }
  .start-navigation > #menu1,
  .start-navigation > #menu1 > tbody { display: block; width: 100%; }
  .start-navigation > #menu1 > tbody > tr {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px;
  }
  .start-navigation > #menu1 > tbody > tr > td {
    display: block;
    width: auto;
    white-space: normal;
  }
  .start-navigation #topMenuAjax,
  .start-navigation > #menu1 > tbody > tr > .start-menu-spacer { display: none; }
  .start-mobile-menu { display: block; padding: 4px 0; }
  .start-mobile-menu summary { cursor: pointer; padding: 8px; color: #243d53; }
  .start-mobile-menu > summary { font-weight: bold; }
  .start-mobile-menu nav { border: 1px solid #dce3e9; background: white; }
  .start-mobile-menu nav details { margin-left: 12px; border-top: 1px solid #edf2f6; }
  .start-mobile-menu nav > details { margin-left: 0; }
  .start-mobile-menu nav a { display: block; padding: 8px 12px; overflow-wrap: anywhere; }
  .start-mobile-menu nav a:hover { background: #edf2f6; }
  .start-mobile-menu .arrow { display: none; }
  .author-header #bar > table,
  .author-header #bar > table > tbody { display: block; width: 100%; }
  .author-header #bar > table > tbody > tr { display: flex; flex-wrap: wrap; gap: 6px; }
  .author-header #bar > table > tbody > tr > td { display: block; width: auto; white-space: normal; }
  .author-header #bar > table > tbody > tr > td[width="100%"] { display: none; }
}
@media (max-width: 700px) {
  .bar_top, .bar_top > tbody, .bar_top > tbody > tr,
  .bar_top > tbody > tr > td { height: auto !important; }
  .start-navigation > #menu1 > tbody > tr > td#topMenuAjax { display: none; }
}
