/* ------------------------------------------------------------------------ */
/* ------------------------ Drupal specific styles ------------------------ */
/* ------------------------------------------------------------------------ */

/* move site header down to account for Drupal toolbar when logged in */
.toolbar-fixed .erg-site-header {
  top: 39px;
}
.toolbar-tray-open.toolbar-horizontal .erg-site-header {
  top: 79px;
}

/* ensure erg branding block's contextual icon always displays */
@media (min-width: 60em) {
  #block-erg-branding {
    float: left;
  }
}

/* reset contextual links font weights in site header and site footer menus */
.erg-site-header nav .contextual-links a {
  font-weight: 400;
}
.erg-site-footer nav .contextual-links a {
  font-weight: 400;
  text-transform: none;
}

/* reset position of home navigation block, so nav toggle doesn't move
(contentual-regions have a position of relative) */
#block-home-navigation {
  position: static;
}

/* special formatting for Drupal status messages */
.erg-status-messages div {
  margin-bottom: 2.625rem;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  background-color: #eee;
}

/* special formatting for local tasks */
#block-erg-local-tasks {
  position: absolute;
  z-index: 1;
  margin-top: -2.5rem;
  width: 100%;
}
#block-erg-local-tasks ul {
  overflow: hidden;
  padding: 0.5rem 0;
  list-style: none;
  text-align: center;
}
#block-erg-local-tasks li {
  display: inline-block;
}
#block-erg-local-tasks a {
  display: inline-block;
  margin: 0 0.1875rem;
  border: 1px solid rgba(0, 0, 0, 0.625);
  padding: 0.3125rem 0.4325rem;
  border-radius: 3px;
  font-size: 0.8125rem;
  text-decoration: none;
  color: #444;
  background-color: rgba(255, 255, 255, 0.875);
}
#block-erg-local-tasks a:hover,
#block-erg-local-tasks a:focus {
  color: #fff;
  background-color: rgba(0, 0, 0, 0.625);
}
/* undo unintended overrides to contextual links */
#block-erg-local-tasks .contextual-links a {
  background-color: #fff;
  color: #333;
  display: block;
  font-size: small;
  padding: 0.4em 0.6em;
}

/* remove bullets from contextual links in erg-copy sections */
.erg-copy .contextual-links li::before {
  display: none;
}

/* hide status messages on pages with reversed site header, as they mess up layout */
.erg-reversed-site-header + main .erg-status-messages {
  display: none;
}
