/*=== Recommended Menu Bar Style Rules ===*/

/*-- Flex Wrapper allows main menu bar and quick menu (Give, Search) to co-exist on the same line) --*/

DIV.gt-menu-flex-wrapper {
  padding-top: 8px;
  padding-left: 4px;
  line-height: 1.2;
  display: flex;
}

@media all and (min-width: 966px) {

  DIV.gt-menu-flex-wrapper {
    padding-left: 14px;
  }

}

DIV.gt-menu-flex-wrapper > DIV:nth-child(0) {
  flex: 1 1 100%;
}

DIV.gt-menu-flex-wrapper > DIV:nth-child(1) {
  flex: 1 1 50px;
}


/*-- Mobile Menu Activator --*/

BUTTON.gt-mobile-menu-activator {
  margin: 8px 0;
  padding: 4px 4px 4px 0;
  white-space: nowrap;
  font-size: 1.2em;
  line-height: 1.5;
  color: black;
}

DIV.gt-mobile-menu-activator I {
}

DIV.gt-mobile-icon-wrapper {
  display: inline-block;
  padding: 6px 6px 4px 6px;
  line-height: 1;
  width: 16px;
}

SPAN.gt-mobile-text {
  vertical-align: 3px;
}

@media all and (min-width: 966px) {

  /*-- Hide the mobile menu activator --*/
  BUTTON.gt-mobile-menu-activator {
    display: none;
  }

}


/*-- Main Menu Links: Rules for mobile views (under 966px wide screens) --*/

/* Format all UL objects with no list symbols and appropriate margins and paddings */
DIV.gt-main-menu NAV UL {
  list-style-type: none;
  margin: 8px 0;
  padding: 0;
}

/* Hide the top-level UL object and make all menu text 8% bigger than the page standard */
DIV.gt-main-menu NAV > UL {
  display: none;
  font-size: 108%;
}

/* Set padding and position on all LI objects.  'relative' is necessary to get the sub-menu trays to work in desktop view */
DIV.gt-main-menu NAV UL LI {
  padding: 8px 0;
  position: relative;
}

/* Format all ULs below the top-level UL with progressive 12px indentations */
DIV.gt-main-menu NAV UL UL {
  margin-left: 12px;
}

/* Hide top-level sub-menu trays (will be opened as accordions), and force all to be at least 220px wide */
DIV.gt-main-menu NAV DIV.gt-menu-tray {
  display: none;
  min-width: 220px;
}

/* Make each descending level in the sub-menu tray a bit smaller in font size */
DIV.gt-main-menu NAV DIV.gt-menu-tray UL {
  font-size: 90%;
}

/* For all ULs below the first-level menu in sub-menu trays, kill the top margin */
DIV.gt-main-menu NAV DIV.gt-menu-tray > UL UL {
  margin-top: 0;
  line-height: 1.2;
}

/* Add proper spacing for all sub-menu tray LI objects */
DIV.gt-main-menu NAV DIV.gt-menu-tray LI {
  margin-bottom: 8px;
  padding: 0;
}

/* Display all sub-menu tray  links as inline-blocks with proper margin */
DIV.gt-main-menu NAV DIV.gt-menu-tray LI A {
  display: inline-block;
  margin: 4px;
}

/*-- Main Menu Links: Rules for desktop views (966px+ wide screens) --*/

@media all and (min-width: 966px) {

  /* Default all menu bar links to have no decoration */
  DIV.gt-main-menu NAV A {
    text-decoration: none;
    border-bottom: none;
  }

  /* Kill any pre-defined margins on all UL objets */
  DIV.gt-main-menu NAV UL {
    margin: 0;
  }

  /* Position the top-level UL object appropriately */
  DIV.gt-main-menu NAV > UL {
    display: block;
    margin-left: -18px;
    margin-bottom: 5px;
  }

  /* Configure the top-level LI objects to position as inline blocks with no padding */
  DIV.gt-main-menu NAV > UL > LI {
    display: inline-block;
    padding: 0;
  }

  /* Format the inline vertical spaces on the top-level menu bar */
  DIV.gt-main-menu NAV > UL > LI:not(:last-child) SPAN.gt-menu-spacer {
    display: inline-block;
    width: 2px;
    height: 18px;
    margin: 0 0 -4px 4px;
    background-color: #b0b0b0; background-color: var(--gtweb-primary-gold);
  }

  /* Format the links in the top-level menu bar - normal view */
  DIV.gt-main-menu NAV > UL > LI > A,
  HEADER#gt-header DIV.gt-main-menu NAV > UL > LI > A {
    display: inline-block;
    padding: 6px;
    border-bottom: solid 2px transparent;
  }

  /* Format the links in the top-level menu bar - hover/focus view */
  DIV.gt-main-menu NAV > UL > LI > A:hover,
  DIV.gt-main-menu NAV > UL > LI > A:focus,
  HEADER#gt-header DIV.gt-main-menu NAV > UL > LI > A:hover,
  HEADER#gt-header DIV.gt-main-menu NAV > UL > LI > A:focus {
    text-decoration: none;
    background-color: #e0e0e0;
  }

  /* Position the trays that hold the top-level sub-menus (visual formatting is on the UL object inside the tray) */
  DIV.gt-main-menu NAV DIV.gt-menu-tray {
    position: absolute;
    top: 33px;
    margin-left: 0px;
    z-index: 200;
  }

  /* Display the sub-menu tray when hovering over the parent LI object, which encompasses the tray as well */
  DIV.gt-main-menu NAV LI:hover DIV.gt-menu-tray {
    display: block;
  }

  /* Format the sub-menu tray visual dislpay, which is done to the UL inside the tray DIV */
  DIV.gt-main-menu NAV DIV.gt-menu-tray > UL {
    padding: 0 4px;
    margin: 1px 0 0 0;
    background-color: #ffffff;  border-bottom: solid 4px var(--gtweb-primary-gold);
    box-shadow: 0px 5px 8px 0 rgba(0,0,0,0.3);
  }

  /* Make links on the first level of a sub-menu tray 500 boldness */
  DIV.gt-main-menu NAV DIV.gt-menu-tray > UL > LI {
    font-weight: 500;
  }

  HEADER#gt-header DIV.gt-main-menu NAV DIV.gt-menu-tray > UL > LI > SPAN,
  HEADER#gt-header DIV.gt-main-menu NAV DIV.gt-menu-tray > UL > LI > A {
    color: #303030;  color: var(--gtweb-accessible-gold);
    font-family: "Roboto Condensed";
    font-weight: 600;
  }

  /* Make links on the lower levels of a sub-menu tray 400 boldness and shorter */
  DIV.gt-main-menu NAV DIV.gt-menu-tray > UL UL LI {
    font-weight: 400;
    line-height: 1.1;
  }

  /* Formatting for all sub-menu tray LI objects */
  DIV.gt-main-menu NAV DIV.gt-menu-tray LI {
    margin: 0;
  }

  /* Formatting for all sub-menu tray links - normal view */
  /*DIV.gt-main-menu NAV DIV.gt-menu-tray LI SPAN,*/
  DIV.gt-main-menu NAV DIV.gt-menu-tray LI A {
    margin: 0;
    padding: 8px 8px;
    display: block;
    color: black;
  }

  /* Add horizontal divider bars to first-level sub-menu tray items */
  HEADER#gt-header DIV.gt-main-menu NAV DIV.gt-menu-tray > UL > LI:not(:first-child) > SPAN,
  HEADER#gt-header DIV.gt-main-menu NAV DIV.gt-menu-tray > UL > LI:not(:first-child) > A {
    border-top: solid thin #dddddd;
  }

  /* Kill horizontal divider after a horizontal break line */
  HEADER#gt-header DIV.gt-main-menu NAV DIV.gt-menu-tray > UL > LI.gt-menu-breaker + LI:not(:first-child) > A {
    border-top: none;
  }

  /* Format horizontal break lines */
  DIV.gt-main-menu NAV DIV.gt-menu-tray UL LI.gt-menu-breaker HR {
    color: #f0f0f0;
  }

  /* Formatting for all sub-menu tray links - hover/focus view */

  DIV.gt-main-menu NAV DIV.gt-menu-tray LI A:hover,
  DIV.gt-main-menu NAV DIV.gt-menu-tray LI A:focus {
    background-color: #e0e0e0;
    border-bottom: none;
  }

}

/*-- Quick Menu Formatting --*/

DIV.gt-quick-menu NAV {
  float: right;
  padding-top: 6px;
}

@media all and (min-width: 966px) {

  DIV.gt-quick-menu NAV {
    padding-top: 0;
  }

}

/* Format the quick menu UL object with proper spacing and font sizing */
DIV.gt-quick-menu NAV > UL {
  list-style-type: none;
  margin: 0 0 8px 0;
  padding: 0;
  font-size: 110%;
}

/* Quick menu uses simple layout, so float all menu LI objects to the left */
DIV.gt-quick-menu NAV > UL > LI {
  float: left;
}

/* Format the links in the top-level menu bar - normal view */
HEADER#gt-header DIV.gt-quick-menu NAV > UL > LI > A,
HEADER#gt-header DIV.gt-quick-menu NAV > UL > LI > A:link {
  display: block;
  padding: 7px 6px;
  font-weight: 500;
  color: var(--gtweb-accessible-gold);
  border-bottom: none;
}

HEADER#gt-header DIV.gt-quick-menu NAV > UL > LI > A#gt-search-toggle {
  padding-left: 12px;
}

/* Format the links in the top-level menu bar - hover/focus view */
HEADER#gt-header DIV.gt-quick-menu NAV > UL > LI > A:hover,
HEADER#gt-header DIV.gt-quick-menu NAV > UL > LI > A:focus {
  color: black;
}


/***-- Search Tray Formatting --***/

DIV.gt-search-tray {
  position: absolute;
  z-index: 1;
  right: 0;
  height: 0;
  visibility: hidden;
  margin-top: -8px;
  overflow: hidden;
  background-color: #ffffff;
  padding: 0 4px;
  border-radius: 0 0 0.25rem 0.25rem;
  transition-duration: 0.8s;
  transition-property: all;
}

DIV.gt-search-tray FORM {
  float: right;
  font-size: unset;
}

DIV.gt-search-tray FORM DIV.form-item {
  margin: 6px 0 4px 0;
  height: 31px;
  border-radius: .25rem;
  border: solid 1px #cccccc;
}

DIV.gt-search-tray FORM LABEL {
  position: absolute;
  left: -10000px;
}

DIV.gt-search-tray FORM INPUT.form-search {
  float: none;
  width: auto;
  padding: .25rem;
  color: var(--gtweb-black-text);
  font-size: .85rem;
  border: none;
}

DIV.gt-search-tray FORM BUTTON#gt-searchsubmit {
  line-height: 1.6;
  height: 31px;
  width: 31px;
  background: var(--gtweb-primary-gold);
  border: solid 2px transparent;
  box-sizing: border-box;
}

DIV.gt-search-tray FORM BUTTON#gt-searchsubmit I.svg-magglass {
  width: 12px;
  height: 12px;
}


/***-- Print Output Special Rules --***/

@media print {

  DIV.gt-main-menu, DIV.gt-quick-menu {
    display: none;
  }

}
