/* The new allamericanspeakers.com nav (aas-nav.php). Copied from the Rails app's
   app/assets/aas/stylesheets/semantic/top-nav.scss, scoped to #aas-nav so it
   neither depends on nor disturbs the blog's Bootstrap 5 and main.css. */
#aas-nav {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: normal;
  line-height: 1.5;
}
#aas-nav ul { list-style: none; margin: 0; padding: 0; }
#aas-nav a { text-decoration: none; }

#aas-nav .aas-nav-banner { background-color: #b29247; height: 24px; }
#aas-nav .aas-nav-banner-bottom { background-color: #b29247; height: 6px; }
#aas-nav .aas-nav-bar { background-color: #030303; padding: 0 15px; }

/* main.css pushes the page down to clear the legacy header, which overlaps it
   with a negative margin. This nav sits in the flow, so undo that. */
#aas-nav ~ .td-container-wrap { margin-top: 0; }

/* Logo on the left across both rows; contact row, then search and menu, on the right. */
#aas-nav .aas-nav-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  margin: 0 auto;
  max-width: 1140px;
}

#aas-nav .aas-nav-brand { grid-row: 1 / span 2; padding: 1rem 0; }
#aas-nav .aas-nav-brand img { display: block; width: 140px; height: auto; max-height: 110px; }

#aas-nav .aas-nav-main { display: flex; justify-content: flex-end; }

#aas-nav .aas-nav-contact { display: flex; padding-right: 15px; font-size: 14px; font-weight: 700; text-transform: uppercase; }
#aas-nav .aas-nav-contact li + li { margin-left: 50px; }
#aas-nav .aas-nav-contact a { display: block; padding: 0.5rem; }

#aas-nav .aas-nav-contact a,
#aas-nav .aas-nav-links > li > a { color: #fff; }
#aas-nav .aas-nav-contact a:hover,
#aas-nav .aas-nav-links > li > a:hover { color: #b29247; }

#aas-nav .aas-nav-search { display: flex; width: 450px; max-width: 100%; margin: 0.5rem 0 1rem; }
#aas-nav .aas-nav-search input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0.375rem 0.75rem;
  font: inherit;
  font-size: 1rem;
  color: #495057;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.25rem 0 0 0.25rem;
  outline: none;
}
#aas-nav .aas-nav-search button {
  height: 38px;
  padding: 0.375rem 0.75rem;
  font: inherit;
  font-size: 1rem;
  color: #fff;
  background-color: #b29247;
  border: 0;
  border-radius: 0 0.25rem 0.25rem 0;
  cursor: pointer;
}
#aas-nav .aas-nav-search button:hover { background-color: #8d0106; }

#aas-nav .aas-nav-links { display: flex; font-size: 18px; text-transform: uppercase; padding-right: 7px; }
#aas-nav .aas-nav-links > li { position: relative; margin-left: 50px; }
#aas-nav .aas-nav-links > li > a { display: block; padding: 0.5rem; }
#aas-nav .aas-nav-mobile-only { display: none; }

#aas-nav .aas-nav-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  min-width: 200px;
  text-align: left;
  background-color: #fff;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
  z-index: 99999;
}
#aas-nav .aas-nav-dropdown:hover .aas-nav-dropdown-content { display: block; }
#aas-nav .aas-nav-dropdown-content a {
  display: block;
  padding: 3px 10px;
  font-size: 16px;
  color: #333;
  white-space: nowrap;
  text-transform: none;
}
#aas-nav .aas-nav-dropdown-content a:hover { background-color: #b29247; color: #fff; }

#aas-nav .aas-nav-toggler {
  display: none;
  width: 56px;
  height: 40px;
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") center / 30px no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.25rem;
}

/* Desktop: the menu is always open, whatever Bootstrap's collapse says. */
@media (min-width: 992px) {
  #aas-nav .aas-nav-menu { display: flex !important; flex-direction: column; align-items: flex-end; }
}

/* Mobile: logo and toggler on one row, the open menu full width below them. */
@media (max-width: 991px) {
  #aas-nav .aas-nav-brand { grid-row: auto; }
  #aas-nav .aas-nav-contact { display: none; }
  #aas-nav .aas-nav-toggler { display: block; }
  #aas-nav .aas-nav-menu { grid-column: 1 / -1; padding-bottom: 0.5rem; text-align: right; }
  #aas-nav .aas-nav-search { width: 100%; }
  #aas-nav .aas-nav-links { display: block; font-size: 14px; padding-right: 15px; }
  #aas-nav .aas-nav-links > li { margin-left: 0; }
  #aas-nav .aas-nav-mobile-only { display: block; }
  #aas-nav .aas-nav-dropdown-content { right: 0; }
}

@media (max-width: 575px) {
  #aas-nav .aas-nav-brand img { width: calc(33.3vw - 9.815px); }
}
